.ps-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-6, 1.5em);
  padding: var(--gutter, 1.25em);
}
.ps-actions,
.ps-options {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2, 0.5em);
  width: 100%;
}
.ps-options .tlabel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35em;
}
.ps-area {
  min-height: 160px;
  resize: vertical;
  padding: 0.55em 0.65em;
  border: 1px solid var(--border-strong);
  background: var(--card-bg);
  color: var(--text-color);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1.5;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.ps-area:focus {
  outline: none;
  border-color: var(--link-color);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
}
.ps-rail {
  justify-content: center;
}
.ps-hint {
  display: block;
  text-align: center;
}
.ps-results {
  margin-top: 1.25em;
}
.ps-counts {
  padding: 0.7em 1em;
  border-bottom: 1px solid var(--border-color);
}
.ps-table-wrap {
  max-height: 440px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.ps-table {
  border-collapse: collapse;
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
}
.ps-table th,
.ps-table td {
  border: 1px solid var(--border-color);
  padding: 0.4em 0.6em;
  text-align: left;
  white-space: nowrap;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ps-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--panel-bg);
  color: var(--text-color);
  font-weight: 700;
}
.ps-table tbody tr:nth-child(even) {
  background: var(--panel-bg);
}
.ps-table td {
  color: var(--text-color);
}
.ps-body,
.ps-table-wrap,
.tpanel {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
@media (max-width: 700px) {
  .ps-options {
    flex-direction: column;
    align-items: stretch;
  }
  .ps-options .tlabel,
  .ps-options select,
  .ps-options .tsel {
    width: 100%;
    max-width: none;
  }
  .ps-table th,
  .ps-table td {
    max-width: 200px;
  }
}
