
/* NIGHT_PORTALS_V5: compact filters and inspectable cross-page allocation. */
.portal-filter-grid { gap:14px;align-items:end; }
.portal-filter-grid > div { min-width:0;padding:0;border:0;border-radius:0;background:transparent; }
.portal-filter-grid > div > p { margin:0 0 6px;font-weight:600; }
.portal-filters-accounts { grid-template-columns:repeat(4,minmax(0,1fr)) auto auto; }
.portal-filters-cards { grid-template-columns:repeat(3,minmax(0,1fr)) auto auto; }
.portal-filters-users { grid-template-columns:repeat(2,minmax(0,1fr)) auto auto; }
.portal-selection-bar { display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 20px;background:var(--muted);border-bottom:1px solid var(--border);font-size:13px; }
.portal-allocation-preview { margin:8px 0 14px;padding:10px 12px;border:1px solid var(--border);border-radius:8px;background:var(--muted);font-size:13px; }
.portal-allocation-preview summary { cursor:pointer;font-weight:600; }
.portal-allocation-preview p { margin:8px 0 0;max-height:112px;overflow:auto;overflow-wrap:anywhere;line-height:1.7; }
.portal-table-scroll { overscroll-behavior-inline:contain;scrollbar-gutter:stable; }
.portal-table-scroll:focus-visible { outline:2px solid var(--primary);outline-offset:-2px; }
.portal-empty-state { display:grid;justify-items:center;gap:10px;max-width:460px;margin:4px auto;line-height:1.6; }
.portal-empty-state strong { color:var(--foreground);font-size:15px; }
.portal-empty-state p { margin:0;max-width:100%;overflow-wrap:anywhere; }
.portal-empty-actions { display:flex;flex-wrap:wrap;gap:8px;justify-content:center; }
.portal-read-error { display:flex;align-items:center;justify-content:space-between;gap:12px; }
.portal-read-error > span { min-width:0;overflow-wrap:anywhere; }
.portal-table-scroll table :is(th,td):first-child { position:sticky;left:0;z-index:1;background:var(--background); }
.portal-table-scroll table thead th:first-child { z-index:3;background:var(--muted); }
.portal-table-scroll table[aria-label="账号列表"] :is(th,td):first-child { width:44px;min-width:44px;max-width:44px;padding-inline:14px; }
.portal-table-scroll table[aria-label="账号列表"] :is(th,td):nth-child(2) { position:sticky;left:44px;z-index:1;background:var(--background);box-shadow:1px 0 0 var(--border); }
.portal-table-scroll table[aria-label="账号列表"] thead th:nth-child(2) { z-index:3;background:var(--muted); }
@media(max-width:1100px){.portal-filter-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }}
@media(max-width:600px){
 .portal-filter-grid { gap:12px; }
 .portal-filter-grid > div > button { width:100%; }
 .portal-selection-bar { padding:8px 12px;align-items:flex-start; }
 .portal-selection-bar > span { min-width:0;line-height:1.6; }
 .portal-allocation-preview { margin-block:6px 12px; }
 .portal-read-error { align-items:flex-start;flex-direction:column; }
 .portal-page-controls { justify-content:space-between; }
 .portal-page-controls > div:first-child { flex-basis:100%;justify-content:flex-start;margin-bottom:2px; }
}
