.pt-directory {
  margin: 0 auto;
  min-width: 0;
  padding: clamp(16px, 2.7vw, 36px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.pt-heading, .pt-pager, .pt-lines li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pt-heading { flex-wrap: wrap; margin-bottom: 22px; }
.pt-heading h1 { margin-top: 5px; font-size: clamp(32px, 3.2vw, 52px); }
.pt-tools { display: grid; grid-template-columns: minmax(190px, 2fr) minmax(170px, 1fr); gap: 12px; max-width: 760px; }
.pt-tools label { margin: 0 0 5px; font-size: .82rem; color: var(--muted); }
.pt-tools input, .pt-tools select { width: 100%; min-width: 0; }
.pt-result-summary, .pt-disclosure, .pt-lines small { font-size: .8rem; color: var(--muted); }
.pt-result-summary { margin: 18px 0 6px; font-variant-numeric: tabular-nums; }
.pt-scroll { max-width: 100%; overflow-x: auto; }
.pt-roster { width: 100%; border-collapse: collapse; line-height: 1.36; font-variant-numeric: tabular-nums; font-size: .89rem; }
.pt-roster th { padding: 13px 8px; color: var(--muted); font-size: .72rem; text-align: left; letter-spacing: .085em; text-transform: uppercase; border-bottom: 2px solid var(--line); }
.pt-roster td { padding: 11px 8px; border-bottom: 1px solid var(--line); }
.pt-roster tr { cursor: pointer; }
.pt-roster th:first-child, .pt-roster td:first-child { padding-left: 0; }
.pt-roster tr:hover, .pt-roster tr:focus-within { background: var(--surface2); }
.pt-name, .pt-claim { padding: 4px 0; min-height: 38px; color: var(--ink); font-weight: 700; text-align: left; }
.pt-name:hover, .pt-claim:hover { color: var(--green); text-decoration: underline; text-underline-offset: .22em; }
.pt-mrn, .pt-code { color: var(--green); font-family: var(--mono); font-size: .82rem; }
.pt-plan, .pt-pill { display: inline-block; padding: 4px 8px; border-radius: 7px; color: var(--ink); background: var(--surface2); font-size: .78rem; font-weight: 600; }
.pt-plan.mint { color: var(--green); background: var(--green-bg); }
.pt-plan.blue { color: var(--blue); background: var(--blue-bg); }
.pt-plan.amber { color: var(--amber); background: var(--amber-bg); }
.pt-plan.plum { color: #694774; background: #f3eaf4; }
html[data-theme=dark] .pt-plan.plum { color: #e0badf; background: #493248; }
.pt-count button { font: inherit; font-weight: bold; color: var(--green); min-height: 36px; min-width: 36px; text-decoration: underline; text-underline-offset: 3px; }
.pt-pager { justify-content: flex-end; margin-top: 14px; font-size: .82rem; }
.pt-pager button { padding: 7px 11px; min-height: 42px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.pt-disclosure { display: block; margin-top: 19px; padding: 12px 0 0; border-top: 1px solid var(--line); line-height: 1.5; }
.pt-tabs { display: flex; flex-wrap: wrap; gap: 2px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.pt-tabs button { flex: 1 0 auto; padding: 8px; min-height: 44px; border-bottom: 3px solid transparent; color: var(--muted); font-size: .85rem; font-weight: 600; }
.pt-tabs button[aria-selected=true] { border-bottom-color: var(--green); color: var(--green); background: var(--green-bg); }
.pt-group { margin: 0 0 19px; }
.pt-group h3 { font-size: 1.25rem; color: var(--green); margin: 0 0 9px; font-weight: 600; }
.pt-group dl { margin: 0; }
.pt-field { display: grid; grid-template-columns: minmax(82px, .85fr) minmax(105px, 1.2fr); gap: 10px; padding: 10px 2px; align-items: baseline; border-bottom: 1px solid var(--line); font-size: .92rem; }
.pt-field dt { color: var(--muted); }
.pt-field dd { margin: 0; overflow-wrap: anywhere; text-align: right; font-weight: 600; }
.pt-highlight { color: var(--green); }
.pt-lines { margin: 0; padding: 0; list-style: none; }
.pt-lines li { padding: 9px 0; align-items: start; border-bottom: 1px solid var(--line); }
.pt-lines small { display: block; margin-top: 2px; }
.pt-lines .pt-pill { flex: 0 1 auto; overflow-wrap: anywhere; }
.pt-claim { color: var(--green); }
.pt-claim strong { font-family: var(--mono); font-size: .88rem; }
.pt-empty { margin: 10px 0; padding: 14px; border-radius: 10px; color: var(--muted); background: var(--surface2); font-size: .9rem; }
@media(max-width: 760px) {
  .pt-heading { margin-bottom: 14px; }
  .pt-tools { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .pt-scroll { overflow: visible; }
  .pt-roster, .pt-roster tbody { display: block; }
  .pt-roster thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .pt-roster tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px 15px; margin: 10px 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
  .pt-roster td, .pt-roster td:first-child { padding: 0; border: 0; overflow-wrap: anywhere; }
  .pt-roster td::before { display: block; content: attr(data-label); margin-bottom: 2px; font-family: var(--sans); font-size: .71rem; color: var(--muted); }
  .pt-roster .pt-person-cell { grid-column: 1 / -1; }
  .pt-roster .pt-person-cell::before { display: none; }
  .pt-name { min-height: 30px; font-size: 1.08rem; }
  .pt-ins-cell { grid-column: 1 / -1; }
  .pt-count button { padding: 0; min-height: 30px; min-width: 34px; text-align: left; }
  .pt-pager { justify-content: space-between; flex-wrap: wrap; }
}
@media(max-width: 405px) {
  .pt-directory { padding: 14px; border-radius: 14px; }
  .pt-tabs button { padding-inline: 5px; font-size: .78rem; }
  .pt-heading .button { padding: 8px 12px; }
  .pt-chart .pt-field { gap: 6px; font-size: .85rem; }
}
