/* ================= The Admin Console, in the Suite's clothes =================
   Read alt-tokens.css and alt-components.css first; a new primitive here is likely a duplicate.
   Not `.pane-grid`: with a 240px section list, the pane's own width matters, so columns use a
   container query. Nothing here hides a control or changes what one does. */

/* ---------- the console frame ----------
   240px, not the suite's 320: fourteen section labels need less width than note groups and board
   names. Deliberately outranks alt-responsive.css's `--a-left` steps (300/280px). */
.alt-app.a-admin{ --a-left:240px; }

/* The context strip is a sibling of .a-main, never a child: `altGridTracks()` counts
   .a-main's children to place splitters, so a strip inside it is a phantom column
   (sys_design-system.md §12). Repeated because this page has no splitter. */
.a-admin-band{
  display:flex; align-items:baseline; gap:var(--a-3); flex-wrap:wrap;
  padding-bottom:var(--a-2);
}
.a-admin-band h1{ margin:0; font:600 var(--a-fs-18)/var(--a-lh-tight) var(--a-display); color:var(--a-text); }  /* DS-A08: the console's one visible title */

/* The title and its manual are one group, not a `.a-quick` strip of their own (that gave every
   screen a tall empty band). Centred rather than baseline, one item in the band's flex row. */
.a-admin-title{ display:flex; align-items:center; flex-wrap:wrap; gap:var(--a-2); flex:0 1 auto; min-width:0; max-width:100%; }
/* A long organization name ellipsizes inside the row (its title carries the whole name), so the Help link stays on screen at 420. */
#adminRoleChip{ max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
/* One faint sentence under the title, never a banner; the hint role (DS-48), announced by role="status". */
.a-admin-scope{
  margin:0; font-size:var(--a-fs-12); line-height:var(--a-lh-ui); color:var(--a-faint);
  max-width:96ch; flex:1 1 320px; min-width:0;
}

/* The pane-local block grid was removed: it duplicated admin.html's `.pane-grid` (#overviewPane).
   Known cost: `.pane-grid` uses a window media query, so its panes reach two/three columns a
   little before there is room. Fix would be a container query for all its panes (changes Security
   and SMTP breakpoints, needs browser measurement). `.a-admin-sec` stays: #auditPane uses it. */

/* ---------- a block ---------- */
.a-admin-sec{ min-width:0; }
.a-admin-sec > h2{ margin:0 0 var(--a-sp-4); font:600 var(--a-fs-16)/var(--a-lh-tight) var(--a-display); color:var(--a-text); }
.a-admin-sec > h3{ margin:var(--a-sp-16) 0 var(--a-sp-4); font:600 var(--a-fs-16)/var(--a-lh-tight) var(--a-display); color:var(--a-text); }

/* THE PROSE KEEPS A MEASURE; THE PANE DOES NOT. Cap the TEXT, never the page — an
   application surface has no page-level max-width, and the tables want every pixel. */
.a-admin-p{
  margin:0 0 var(--a-3); font-size:var(--a-fs-12); line-height:var(--a-lh-body); color:var(--a-dim); max-width:78ch;
}
.a-admin-p:last-child{ margin-bottom:0; }

/* ---------- the bulk bar ----------
   The count is the affordance: a destructive action states what it acts on and is disabled at
   zero rather than hidden (`Delete 0 teams` says what the control is for; sys_design-system.md §9). */
.a-admin-bulk{
  display:flex; align-items:center; gap:var(--a-2); flex-wrap:wrap; min-width:0;
  padding-bottom:var(--a-2); margin-bottom:var(--a-2);
  border-bottom:1px solid var(--a-line-soft);
}
.a-admin-bulk .ct{ margin-right:auto; font-size:var(--a-fs-11); color:var(--a-faint); white-space:nowrap; }
.a-admin-drow{ display:flex; align-items:center; gap:var(--a-sp-8); padding:var(--a-sp-6) 0; font-size:var(--a-fs-13); line-height:var(--a-lh-ui); flex-wrap:wrap; }

.a-admin-drow + .a-admin-drow{ border-top:1px solid var(--a-line-soft); }
/* `min-width:0` lets the box shrink but does not wrap text. A person with no display_name falls
   back to their email (admin-team-detail.js), an unbreakable string that painted over the meta
   column; `overflow-wrap:anywhere` fixes it (as CSS/admin.css `.aea-attempt .dmeta`). `.dm` also
   needs a basis and `min-width:0` or it cannot shrink. */
.a-admin-drow .dn{ font-weight:600; flex:1 1 120px; min-width:0; overflow-wrap:anywhere; }
.a-admin-drow .dm{ color:var(--a-faint); font-size:var(--a-fs-12); flex:1 1 200px; min-width:0; overflow-wrap:anywhere; }
/* A row whose job is an action rather than a fact takes no separator above it. */
.a-admin-drow.act-row{ border-top:none; padding-top:8px; }
.a-admin-drow b{ font-weight:600; line-height:var(--a-lh-ui); }
/* THE SENTENCE UNDER A CONFIGURATION ROW belongs to the row above it, so it carries no
   separator of its own and sits inside the row's rhythm rather than starting a new one. */
/* Each setting is a card on the `.a-stat` tile recipe (raised ground, soft edge, --a-r) so the figures
   and the settings read as one family; 3 across at 1280, 2 at 768, 1 at 390. A card holding an
   `st-hold` chip takes the amber edge, the same token as `.a-stat.warn`, without being reordered. */
#overviewConfig,
.a-admin-config-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(290px, 1fr)); gap:12px; }
.a-admin-config-item{
  min-width:0; padding:10px 12px;
  border-radius:var(--a-r); background:var(--a-raised); border:1px solid var(--a-line-soft);
}
.a-admin-config-item:has(.st-hold),
.a-admin-config-item.warn{ border-color:var(--a-amber); box-shadow:0 0 0 1px var(--a-amber) inset; }
.a-admin-config-note{ margin:6px 0 0; }

/* ---------- a data table ----------
   Scenarios, composition, ages and maintenance are four halves of one question, so they share
   one table shape. Wrapped in its own scroller so wide content scrolls inside it. */
.a-admin-tscroll{ overflow-x:auto; min-width:0; }
.a-admin-table{ border-collapse:collapse; width:100%; font-size:var(--a-fs-13); line-height:var(--a-lh-ui); }
.a-admin-table th{
  text-align:left; padding:var(--a-sp-6) 12px; white-space:nowrap;
  font-size:var(--a-fs-11); font-weight:700; line-height:var(--a-lh-tight); letter-spacing:.08em; text-transform:uppercase;
  color:var(--a-dim); border-bottom:1px solid var(--a-line);
}
.a-admin-table td{
  padding:7px 12px; border-bottom:1px solid var(--a-line-soft);
  color:var(--a-text); font-variant-numeric:tabular-nums; vertical-align:middle;
}

.a-admin-table tr:last-child td{ border-bottom:none; }
.a-admin-table td.num,.a-admin-table th.num{ text-align:right; }

/* THE RECOMMENDED ROW, marked with weight as well as a wash — a pick communicated by
   background alone is one a reader with any colour difficulty cannot see. */
.a-admin-table tr.is-pick td{ background:var(--a-blue-soft); font-weight:700; }
/* Open content is protected, and the row says so quietly rather than sitting beside the
   completed one as though it were the same kind of opportunity. */
.a-admin-table tr.is-protected td{ color:var(--a-dim); font-style:italic; }

/* ---------- figures ----------
   `.a-stats`/`.a-stat` come from alt-components.css. The console reports six to eight figures
   where a task band reports three, so the track count is measured rather than fixed at three. */
.a-admin-figures{ grid-template-columns:repeat(auto-fit, minmax(136px, 1fr)); }

/* ---------- the activity feed ----------
   Every row is a record that exists: the feed is composed from role changes, purge runs and
   creation timestamps the tables carry (there is no audit table). Where a kind of change is not
   recorded, the feed says so rather than implying it is quiet. */
.a-admin-feed{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.a-admin-fitem{
  display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:var(--a-sp-4) var(--a-sp-8); align-items:baseline;
  padding:7px 10px 7px 8px; border-radius:var(--a-r);   /* DS-A03: the list row's corner and padding */
}

.a-admin-fitem:hover{ background:var(--a-raised); }
.a-admin-fitem .k{ align-self:center; color:var(--a-faint); display:flex; }
.a-admin-fitem .k svg{ width:15px; height:15px; }
.a-admin-fitem .tx{ font-size:var(--a-fs-12); line-height:var(--a-lh-ui); color:var(--a-text); min-width:0; }
.a-admin-fitem .tx b{ font-weight:600; }
.a-admin-fitem .ag{
  font-size:var(--a-fs-11); color:var(--a-faint); white-space:nowrap; font-variant-numeric:tabular-nums;
}
.a-admin-fitem .wh{ grid-column:2; font-size:var(--a-fs-11); color:var(--a-faint); }

/* ---------- account retention (People pane) ----------
   The four threshold fields wrap rather than squeeze. `.control-row` already wraps above 640px;
   `.ar-fields` only widens the row gap once wrapped. `.a-field` is alt-components.css's. */
/* Two by two: a grid keeps columns aligned (when somebody is told, how long the record is kept).
   `max-content` sizes each column to its widest member so both rows start at the same x. Start
   aligned so the pair reads as a group; one column at phone width, where captions would wrap.
   (Email configuration's inbound fields keep this; People's retention is one inline row, below.) */
.alt-app .ar-fields{
  display:grid;
  grid-template-columns:max-content max-content;
  justify-content:start;
  align-items:start;
  column-gap:var(--a-6);
  row-gap:var(--a-4);
}
.alt-app .ar-fields .a-field{ flex:0 0 auto; }
@media (max-width:520px){
  .alt-app .ar-fields{ grid-template-columns:max-content; }
}
/* People: one inline row, the four fields, a spacer, Save. */
.alt-app #accountRetentionPanel .ar-fields{ display:flex; flex-wrap:wrap; align-items:flex-end; gap:var(--a-2) var(--a-4); }
/* Compact retention (spec 5.2): tight vertical rhythm, the fields stay a caption-over-input row, and the preview
   and an empty status line take only the height they need. */
.alt-app #accountRetentionPanel .ar-fields{ margin:0 0 var(--a-1); gap:var(--a-1) var(--a-4); }
.alt-app #accountRetentionPanel .ar-fields{ flex-wrap:wrap; align-items:center; }
.alt-app #accountRetentionPanel .ar-fields .a-field{ flex-direction:row; align-items:center; gap:var(--a-2); }
.alt-app #accountRetentionPanel .ar-fields .a-field > span{ white-space:nowrap; }
.alt-app #accountRetentionPanel .ar-fields .ar-num{ width:60px; }
.alt-app #accountRetentionPanel .a-admin-sec-head{ margin-bottom:0; }
.alt-app #accountRetentionPanel .a-admin-sec-tail{ margin-top:0; margin-bottom:0; }
.alt-app #accountRetentionPanel .ar-fields{ padding:0; }
.alt-app #accountRetentionPanel .cfg-status{ margin-top:0; }
.alt-app #accountRetentionPanel .a-admin-sec-tail .switch-check{ min-height:0; margin:0; padding:0; }
.alt-app #accountRetentionPanel > .sec-desc{ margin-bottom:var(--a-1); }
/* The 48-hour constraint stays in view (a reader needs it before choosing First notice), in the compact form
   the OKRs caution uses. */
.alt-app #accountRetentionPanel > .a-notice{ margin:0 0 var(--a-2); max-width:none; }
.alt-app #accountRetentionPanel .a-hint{ margin:0; font-size:var(--a-fs-11); line-height:var(--a-lh-ui); }
.alt-app #accountRetentionPanel .cfg-status{ min-height:0; }
.alt-app #accountRetentionPanel .cfg-status:empty{ display:none; }

/* Per-row exemption control: `.ar-exempt` is emitted by userRow() in JS/features/admin-users.js
   and selected by account-retention-people.test.js. Its label is the longest in a people row,
   so `nowrap` + `flex:0 0 auto` keep it whole. No `margin-left:auto`: it sits by the dormancy
   badge it acts on. */
.alt-app .ar-exempt{ white-space:nowrap; flex:0 0 auto; }
.alt-app .ar-log-row{
  display:flex; flex-direction:column; gap:var(--a-sp-4); margin-bottom:var(--a-gap-row); padding:7px 10px 7px 8px;
  background:var(--a-panel); border:1px solid transparent; border-radius:var(--a-r);   /* DS-A03: the list row */
}
.alt-app .ar-log-row:hover{ background:var(--a-raised); }
.alt-app .ar-log-head{
  display:flex; align-items:center; flex-wrap:wrap; gap:var(--a-2);
}
.alt-app .ar-log-name{ font-size:var(--a-fs-13); font-weight:600; color:var(--a-text); }
.alt-app .ar-log-email{ font-size:var(--a-fs-12); color:var(--a-dim); }
.alt-app .ar-log-meta{
  display:flex; flex-wrap:wrap; gap:var(--a-2) var(--a-3);
  font-size:var(--a-fs-11); color:var(--a-faint); font-variant-numeric:tabular-nums;
}
.alt-app .ar-log-counts,
.alt-app .ar-log-transfers{ font-size:var(--a-fs-12); line-height:var(--a-lh-ui); color:var(--a-dim); }

/* ---------- one team, in depth ----------
   The card is `.a-modal` from alt-shell.css (fixed, centred, min(920px,92vw) by min(760px,88vh));
   this adds the head row and the one scroll region under the tabs (`.a-tabs`/`.a-tab` are in
   alt-components.css). Head and tabs are pinned so title and close don't scroll away. */
.a-admin-team-modal{ width:min(760px, 94vw); height:min(680px, 88vh); }
.a-admin-team-head{
  display:flex; align-items:center; gap:var(--a-sp-8); flex:0 0 auto;
  padding:var(--a-sp-12) var(--a-pad-body); border-bottom:1px solid var(--a-line); background:transparent;
}
.a-admin-team-head h2{
  margin:0; min-width:0; font:600 var(--a-fs-16)/var(--a-lh-tight) var(--a-display);
  color:var(--a-text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.a-admin-team-body{
  flex:1 1 auto; min-height:0; overflow-y:auto; scrollbar-gutter:stable;
  padding:var(--a-pad-body);
}

/* The tab strip is one line tall, and it does not wrap: four labels and their counts fit at
   every width this card has. */
.a-admin-team-modal .a-tabs{ flex:0 0 auto; flex-wrap:nowrap; padding:0 10px; }
@media (max-width: 639px){
  /* THE CARD IS THE WINDOW ON A PHONE. A centred 94vw card with 6vw of scrim around it wastes
     the only dimension a roster needs, and the scrim is not a control here — the close button
     and Escape both are. */
  .a-admin-team-modal{
    /* vh first: the fallback for an engine without dvh, not a second answer. */
    width:100%; height:100vh; height:100dvh; max-width:none; border-radius:0; border:0;
    top:0; left:0; transform:none;
  }
}
/* THE CLASSIC BUTTON the Message Center's shared markup still draws on every page (`.btn.small` Mark all, `.icon-btn` close): geometry is
   components.css's `.alt-app .btn` (DS-20); the colour and the edge are here because this page defines no `.btn` of its own. Nothing else in the
   console emits one: delete this block when the Message Center's markup moves to .a-btn (okrs.html already has). */
.alt-app .btn{
  display:inline-flex; align-items:center; gap:var(--a-gap-label); white-space:nowrap; text-decoration:none; cursor:pointer;
  background:var(--a-raised); color:var(--a-text); border:1px solid var(--a-line);
}
.alt-app .btn:hover:not(:disabled){ border-color:var(--a-line-strong); }
.alt-app .btn:disabled{ opacity:.5; cursor:not-allowed; }
.alt-app .icon-btn{
  display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box; flex:0 0 auto;
  width:var(--a-ctl); height:var(--a-ctl); padding:0; border:1px solid transparent; border-radius:var(--a-r-sm);
  background:transparent; color:var(--a-dim); font-size:var(--a-fs-16); line-height:var(--a-lh-ctl); cursor:pointer;
}
.alt-app .icon-btn:hover{ background:var(--a-raised); color:var(--a-text); }
/* The mount the modules fill. `display:contents` makes the button the flex item of the control
   row (a wrapper box would sit between `align-items:center` and the control). It also handles
   the empty case: the component returns nothing when there is no group to fold, and a box-less
   element adds nothing to the row's 8px gap, whereas an empty `<span>` would leave a hole. */
.alt-app .a-admin-fold-mount{ display:contents; }
.alt-app input[type=text]:not(.a-input),.alt-app input[type=email]:not(.a-input),
.alt-app input[type=password]:not(.a-input),.alt-app input[type=date]:not(.a-input),
.alt-app input[type=number]:not(.a-input),.alt-app input[type=tel]:not(.a-input),
.alt-app input[type=search]:not(.a-input),.alt-app input[type=url]:not(.a-input),
.alt-app select:not(.a-select),.alt-app textarea:not(.a-textarea){
  height:var(--a-ctl); padding:0 10px; border-radius:var(--a-r-sm);
  background:var(--a-field-bg); border:1px solid var(--a-ctl-edge); color:var(--a-text);
  font-family:var(--a-body); font-size:var(--a-fs-ctl); font-weight:400; line-height:var(--a-lh-ctl);
}
/* DS-38: the platform arrow is off and the caret drawn, as `.a-select`. */
.alt-app select:not(.a-select){
  -webkit-appearance:none; appearance:none; padding-right:28px; cursor:pointer;
  background-image:linear-gradient(45deg, transparent 50%, var(--a-dim) 50%), linear-gradient(135deg, var(--a-dim) 50%, transparent 50%);
  background-position:calc(100% - 15px) 50%, calc(100% - 10px) 50%; background-size:5px 5px, 5px 5px; background-repeat:no-repeat;
}
.alt-app textarea:not(.a-textarea){ height:auto; padding:var(--a-sp-8) 10px; line-height:var(--a-lh-body); }
.alt-app select[multiple][size]:not([size="1"]){ height:auto; padding:var(--a-sp-6) var(--a-sp-8); background-image:none; }
.alt-app input:focus,.alt-app select:focus,.alt-app textarea:focus{ border-color:var(--a-blue); }
.alt-app input:focus-visible,.alt-app select:focus-visible,.alt-app textarea:focus-visible{ outline:var(--a-focus); outline-offset:var(--a-focus-offset); }

/* `opacity:1` is the half that matters (sys_design-system.md §18): Firefox applies ~54% opacity
   to ::placeholder on top of any colour, dragging --a-faint under the 3:1 floor. Same trap
   noted in CSS/help.css and CSS/okr-suite.css. At (0,1,2) this outranks `.a-input::placeholder`. */
.alt-app input::placeholder{ color:var(--a-faint); opacity:1; }
.alt-app input[type=checkbox],.alt-app input[type=radio]{ accent-color:var(--a-blue); }
.alt-app input[type=radio]{ width:var(--a-check); height:var(--a-check); margin:0; }  /* DS-A09: a radio matches the checkbox */
/* A record row (DS-A03) is the list row: radius 9, panel ground, a transparent edge, 7px 10px 7px 8px, 4px between rows. */
.alt-app .row{
  display:flex; align-items:center; flex-wrap:wrap; gap:var(--a-sp-12); min-width:0;
  margin-bottom:var(--a-gap-row); padding:7px 10px 7px 8px;
  background:var(--a-panel); border:1px solid transparent; border-radius:var(--a-r);
  font-size:var(--a-fs-13); line-height:var(--a-lh-ui);
}
.alt-app .row:hover{ background:var(--a-raised); }
.alt-app .row.selected,.alt-app .row.on{ border-color:var(--a-blue); background:var(--a-blue-soft); }
.alt-app .row .pick{ width:var(--a-check); height:var(--a-check); flex:0 0 auto; margin:0; accent-color:var(--a-blue); }
.alt-app .row .name{ font-size:var(--a-fs-13); font-weight:600; line-height:var(--a-lh-ui); color:var(--a-text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.alt-app .row .sub{ font-size:var(--a-fs-12); line-height:var(--a-lh-ui); color:var(--a-faint); margin-top:0; }
.alt-app .row .meta{ font-size:var(--a-fs-12); line-height:var(--a-lh-ui); color:var(--a-faint); white-space:nowrap; }

.alt-app .row .expand{ color:var(--a-faint); }
.alt-app .row .expand.open{ color:var(--a-blue-text); }

.alt-app .badge.admin{ border-color:var(--a-blue-text); color:var(--a-blue-text); }
.alt-app .badge.pending{ border-color:var(--a-amber); color:var(--a-amber); }
.alt-app .sec-section h3{ margin:0 0 var(--a-sp-4); font:600 var(--a-fs-16)/var(--a-lh-tight) var(--a-display); color:var(--a-text); }
/* DS-A13: an h4 inside a band is the eyebrow (DS-10). */
.alt-app .sec-sub,.alt-app .profile-sec h4{
  margin:var(--a-sp-16) 0 var(--a-gap-label); font:700 var(--a-fs-11)/var(--a-lh-tight) var(--a-body);
  letter-spacing:.08em; text-transform:uppercase; color:var(--a-dim);
}
.alt-app .sec-desc{ font-size:var(--a-fs-12); line-height:var(--a-lh-body); color:var(--a-dim); }
/* A panel is a container: radius 14 (DS-05, DS-79) and the body padding (DS-45). */
.alt-app .sec-section,
.alt-app #auditPane > .a-admin-sec{
  background:var(--a-panel); border:1px solid var(--a-line-soft); border-radius:var(--a-r-lg);
  padding:var(--a-pad-body); margin-top:18px; max-width:none;
}

.alt-app .sec-section:first-of-type,
.alt-app #auditPane > .a-admin-sec:first-of-type{ margin-top:0; }
/* Cap the text, never the page. #turnstilePane is single-column prose where the 720px cap was the reading measure
   (lifted: ~146 chars a line vs the console's 78ch). #storagePane and `.a-admin-p` use 78ch too. Only this pane:
   #securityPane/#smtpPane are narrow grid columns, #auditPane is capped, #usersPane's wide descriptions hold a roster. */
.alt-app #turnstilePane .sec-desc{ max-width:78ch; }
.alt-app #turnstilePane .a-notice{ max-width:78ch; }

.alt-app .sec-section .a-notice:not(:first-child){ margin-top:var(--a-gap-section); }  /* DS-A05: a notice inside a panel sits one section gap below what precedes it */
/* DS-A09: a radio card is a card: radius 9, padding 12px, a 13px/600 title, the hint under it, a blue edge and wash when selected. */
.alt-app .sec-level{
  padding:var(--a-sp-12); background:var(--a-panel); border:1px solid var(--a-line-soft); border-radius:var(--a-r);
}

.alt-app .sec-level:hover{ border-color:var(--a-line-strong); }
.alt-app .sec-level.on{ border-color:var(--a-blue); background:var(--a-blue-soft); }
.alt-app .sec-level .lv-name{ font-size:var(--a-fs-13); font-weight:600; color:var(--a-text); }
.alt-app .sec-level .lv-hint{ font-size:var(--a-fs-12); line-height:var(--a-lh-ui); color:var(--a-dim); }

.alt-app .sec-level .lv-floor{ font-size:var(--a-fs-11); color:var(--a-faint); }

.alt-app .bulk-bar{ gap:var(--a-2); border-bottom:1px solid var(--a-line-soft); }
.alt-app .bulk-count{ font-size:var(--a-fs-11); line-height:var(--a-lh-ui); color:var(--a-faint); }
.alt-app .empty{ color:var(--a-faint); font-size:var(--a-fs-12); padding:26px; }
/* The page's own status line, where every RPC refusal is surfaced verbatim. Not the suite's
   toast: it persists until the next action so an administrator can read a Postgres refusal. */
.alt-app .status{ border-radius:var(--a-r-sm); font-size:var(--a-fs-12); }
.alt-app .status.err{ background:var(--a-red-soft); color:var(--a-text); border-color:var(--a-red); }
.alt-app .status.ok{ background:var(--a-green-soft); color:var(--a-text); border-color:var(--a-green); }
.alt-app .cfg-status{ font-size:var(--a-fs-12); color:var(--a-dim); }
/* `.cfg-status.err`/`.ok` (CSS/components.css) never won here: it ties the bare `.alt-app .cfg-status` at (0,2,0) and this
   file loads later, so `--red-text` was never applied. Narrower fixes cover two modals (`.alt-app #taskModal .cfg-status.err`,
   `#adminModal`, CSS/alt/alt-team.css) but not panes like `#niSettingsStatus`. Fixed once at (0,3,0). */
.alt-app .cfg-status.err{ color:var(--a-red); }
.alt-app .cfg-status.ok{ color:var(--a-green); }
.alt-app .cfg-status.warn{ color:var(--a-amber); }
/* DS-12, DS-49: a group header is 32px, 13px/600, sentence case, no ground; hover is a wash on a 6px corner. */
.alt-app .group-head,
.alt-app .inactive-head{
  display:flex; align-items:center; gap:var(--a-sp-8); height:var(--a-ctl); padding:0 var(--a-sp-8); margin:var(--a-sp-12) 0 var(--a-sp-4);
  border-radius:var(--a-r-sm); cursor:pointer; user-select:none;
  font-size:var(--a-fs-13); font-weight:600; line-height:var(--a-lh-ctl); letter-spacing:0; text-transform:none;
  color:var(--a-text); background:var(--a-bg);
}
.alt-app .group-head{ position:sticky; top:0; z-index:var(--z-sticky); }
.alt-app .group-head:first-child{ margin-top:0; }
.alt-app .group-head-sub{
  display:flex; align-items:center; gap:var(--a-sp-8); height:var(--a-ctl-sm); padding:0 var(--a-sp-8); margin:var(--a-sp-8) 0 var(--a-sp-4) 18px;
  border-radius:var(--a-r-sm); cursor:pointer; user-select:none;
  font-size:var(--a-fs-12); font-weight:600; line-height:var(--a-lh-ctl); color:var(--a-dim);
}
.alt-app .group-head-sub:first-child{ margin-top:0; }
.alt-app .group-head-sub:hover{ background:var(--a-raised); color:var(--a-text); }

.alt-app .inactive-head{ color:var(--a-dim); }
.alt-app .inactive-head:hover,.alt-app .group-head:hover{ background:var(--a-raised); color:var(--a-text); }

.alt-app .detail{
  background:var(--a-raised); border:1px solid var(--a-line-soft);
  border-left:3px solid var(--a-blue); border-radius:0 var(--a-r-sm) var(--a-r-sm) 0;
}
.alt-app .drow + .drow{ border-top:1px solid var(--a-line-soft); }
.alt-app .dname{ font-weight:600; color:var(--a-text); }
.alt-app .dmeta{ color:var(--a-faint); font-size:var(--a-fs-12); }
.alt-app .profile-grid dt{ color:var(--a-dim); font-size:var(--a-fs-12); }
.alt-app .profile-grid dd{ font-size:var(--a-fs-13); }
.alt-app code.temp-pw-value{
  font-family:var(--a-mono); background:var(--a-bg); border:1px solid var(--a-line);
  border-radius:var(--a-r-sm); color:var(--a-text);
}

.alt-app .temp-pw-status{ color:var(--a-green); }

/* ---------- email, the bench and the team roster ---------- */
/* The console's state chip is the pill of the control specification (DS-28): the same shape as .badge below; the variants change colour only. */
.alt-app .email-admin-state{
  display:inline-flex; align-items:center; flex:0 0 auto; height:var(--a-chip-h); padding:0 9px; white-space:nowrap;
  border-radius:var(--a-r-pill); font-family:var(--a-body); font-size:var(--a-fs-11); font-weight:600; line-height:var(--a-lh-tight);
  background:var(--a-raised); border:1px solid var(--a-line-soft);
}
.alt-app .email-admin-state.on{ color:var(--a-green); }
.alt-app .email-admin-state.off{ color:var(--a-dim); }
.alt-app .email-admin-state.warn{ color:var(--a-amber); }
.alt-app .email-stat{
  background:var(--a-raised); border:1px solid var(--a-line-soft); border-radius:var(--a-r-sm);
}
.alt-app .email-stat b{ font-family:var(--a-display); font-size:var(--a-fs-18); color:var(--a-text); }
.alt-app .email-stat span{ font-size:var(--a-fs-11); letter-spacing:.09em; color:var(--a-faint); }

/* ---------- storage and retention ----------
   The largest section and the one whose figures matter most, so its surfaces get the same
   treatment rather than staying classic. */
.alt-app .storage-sort-label,.alt-app .switcher-label{
  font-size:var(--a-fs-11); font-weight:700; letter-spacing:.09em; color:var(--a-dim);
}
.alt-app .storage-sort-label .dbs-need{ text-transform:none; letter-spacing:0; color:var(--a-text); }
/* One chip for every badge-shaped label in the console (DS-28); the variants below change colour only. */
.alt-app .badge{
  display:inline-flex; align-items:center; flex:0 0 auto; height:var(--a-chip-h); padding:0 9px; white-space:nowrap;
  border-radius:var(--a-r-pill); font-family:var(--a-body); font-size:var(--a-fs-11); font-weight:600; line-height:var(--a-lh-tight);
  letter-spacing:0; text-transform:none;
  background:var(--a-raised); border:1px solid var(--a-line-soft); color:var(--a-dim);
}
.alt-app .admin-filter-check{ font-size:var(--a-fs-12); color:var(--a-dim); }
.alt-app .admin-filter-check:hover{ color:var(--a-text); }
.alt-app .admin-filter-count{ font-size:var(--a-fs-11); color:var(--a-faint); }

/* ---------- browser errors (Browser errors pane) ----------
   Row is the deleted-accounts log's (`.ar-log-*`); the stack sits behind the Storage Explorer's
   `.sx-more`. Messages and paths can be one token wider than a phone, so both break anywhere; the
   stack is monospaced with its line breaks. Emitted by JS/features/admin-client-errors.js. */
.alt-app .ce-row .ar-log-name,
.alt-app .ce-row .ar-log-counts{ min-width:0; overflow-wrap:anywhere; }
.alt-app .ce-row .sx-more{ margin-top:var(--a-1); }
.alt-app .ce-stack{
  margin-top:var(--a-3);
  font-family:var(--a-mono); font-size:var(--a-fs-11); line-height:var(--a-lh-ui); color:var(--a-dim);
  white-space:pre-wrap; overflow-wrap:anywhere;
}

/* ================= Admin Console section template (D1) =================
   The seven redesigned panes speak the Overview's language: full-width `.sec-section` bands, a
   head row, settings and rules as `.a-admin-config-item` cards, lists as separator rows. Presentation
   only; every module still emits its own classes and ids. Tokens only. */

/* A band's head: the h3 with a count or control trailing it. */
.alt-app .a-admin-sec-head{ display:flex; align-items:center; flex-wrap:wrap; gap:var(--a-1) var(--a-3); margin-bottom:var(--a-1); min-width:0; }
.alt-app .a-admin-sec-head > h3{ margin:0; }
.alt-app .a-admin-sec-head .ct{ font-size:var(--a-fs-11); color:var(--a-faint); white-space:nowrap; }
.alt-app .a-admin-sec-tail{ margin-left:auto; display:flex; align-items:center; flex-wrap:wrap; gap:var(--a-2); padding:0; min-width:0; }
.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane,#featureUsagePane) .sec-section > .sec-desc{ max-width:78ch; margin:0 0 var(--a-3); }
.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane,#featureUsagePane) .sec-section > h3{ margin:0 0 var(--a-1); }

/* Setting cards: the card's own title row, lead sentence and a state chip beside the title. */
.alt-app .a-admin-config-grid{ margin-top:var(--a-3); }
.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane) .a-admin-config-item h4{
  margin:0 0 var(--a-gap-label); display:flex; align-items:center; flex-wrap:wrap; gap:var(--a-sp-8);
  font:700 var(--a-fs-11)/var(--a-lh-tight) var(--a-body); letter-spacing:.08em; text-transform:uppercase; color:var(--a-dim);
}

.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane) .a-admin-config-item > .sec-desc,
.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane) .a-admin-config-item > p{ margin:0 0 var(--a-2); font-size:var(--a-fs-12); line-height:var(--a-lh-ui); color:var(--a-dim); max-width:none; }
.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane) .a-admin-config-item .control-row{ margin:0 0 var(--a-2); flex-wrap:wrap; gap:var(--a-2); align-items:center; }
.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane) .a-admin-config-item .control-row input[type=text],
.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane) .a-admin-config-item .control-row input[type=password]{ flex:1 1 160px; min-width:0; width:100%; }
.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane) .a-admin-config-item .cfg-status{ margin:0 0 var(--a-2); }
.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane) .a-admin-config-item.warn{ border-color:var(--a-amber); box-shadow:0 0 0 1px var(--a-amber) inset; }
/* `display:flex` above would otherwise outrank the attribute. */
.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane) .sec-section [hidden]{ display:none !important; }
/* An empty status line is not a status line: it takes no height until it has something to say. */
.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane) .cfg-status:empty{ display:none; }

/* Prose a reader needs once: the first sentence stays, the rest folds. A bare disclosure inside a
   band or card drops the panel chrome of the shared `.sx-more` (the band already is the panel). */
.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane,#featureUsagePane) .a-admin-config-item .sx-more,
.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane,#featureUsagePane) .sec-section .sx-more{ border:none; background:transparent; border-radius:0; margin-top:var(--a-1); }
.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane,#featureUsagePane) .a-admin-config-item .sx-more > summary,
.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane,#featureUsagePane) .sec-section .sx-more > summary{
  padding:var(--a-1) 0; list-style:none; color:var(--a-blue-text); font-size:var(--a-fs-12); font-weight:600;
}
.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane,#featureUsagePane) .sec-section .sx-more > summary::-webkit-details-marker{ display:none; }
.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane,#featureUsagePane) .sec-section .sx-more > summary::before{ content:"\25B8\00a0"; }
.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane,#featureUsagePane) .sec-section .sx-more[open] > summary::before{ content:"\25BE\00a0"; }
.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane,#featureUsagePane) .sec-section .sx-more[open] > summary{ border-bottom:none; color:var(--a-blue-text); }
.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane,#featureUsagePane) .sec-section .sx-more > *:not(summary){ margin-left:0; margin-right:0; }
.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane,#featureUsagePane) .sec-section .sx-more > *:last-child{ margin-bottom:0; }
.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane,#featureUsagePane) .sec-section .sx-more .sec-desc{ margin:var(--a-1) 0 0; max-width:78ch; }

/* The one toolbar: search, labelled filters, switches, a spacer, the count. */
.alt-app .a-admin-toolbar,
.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane) .sec-section .admin-filter-row{
  display:flex; flex-wrap:wrap; align-items:center; gap:var(--a-2) var(--a-3);
  padding:var(--a-2) 0; margin:0; min-width:0;
}
.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane) .sec-section > .admin-filter-row:not(:first-child),
.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane) .sec-section > .a-admin-toolbar:not(:first-child){ border-top:1px solid var(--a-line-soft); }
.alt-app .a-admin-spacer,
.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane) .sec-section .control-spacer{ flex:1 1 auto; min-width:0; }
/* `.a-admin-toolbar > label` unscoped too: a pane outside the list above (Feature usage) wraps each label around its select,
   and without this the select keeps its widest option's width and overruns the panel at 420. */
.alt-app .a-admin-toolbar > label,
.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane) .sec-section .admin-filter-row > label,
.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane,#featureUsagePane) .sec-section .admin-filter-row .switch-check{ display:inline-flex; align-items:center; gap:var(--a-2); min-width:0; white-space:nowrap; }
.alt-app .a-admin-toolbar > label select,
.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane) .sec-section .admin-filter-row > label select{ min-width:0; max-width:100%; }
.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane) .sec-section .admin-people-search,
.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane) .sec-section .admin-filter-row input[type=search]{ flex:0 1 220px; min-width:0; width:220px; max-width:100%; }

/* Prose that shares a toolbar row (a last-change note) sits in the row, not under it. */
.alt-app .a-admin-toolbar .sec-desc{ margin:0; max-width:none; }
.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane) .sec-section .a-hint{ margin:0 0 var(--a-2); }
.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane) .sec-section .a-hint:empty{ display:none; }
.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane) .sec-section .email-admin-grid{ margin:0 0 var(--a-3); }

/* The selection bar: "N selected" leading, actions after, destructive last. */
.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane) .sec-section .bulk-bar{
  display:flex; flex-wrap:wrap; align-items:center; gap:var(--a-2);
  padding:var(--a-1) 0 var(--a-2); margin:0 0 var(--a-1); border-bottom:1px solid var(--a-line-soft);
}
.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane) .sec-section .bulk-bar:not(:has(*)){ display:none; }
.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane) .sec-section .bulk-count{ margin-right:0; flex:0 0 auto; }
/* No selection, no count: the actions start at the bar's left edge rather than after an empty gap. */
.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane) .sec-section .bulk-count:empty{ display:none; }
.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane) .sec-section .row{ min-width:0; }

.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane) .sec-section .row > *{ order:0; }
.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane) .sec-section .row .who-col{ flex:1 1 100px; min-width:0; }
.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane) .sec-section .row .name{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane) .sec-section .row .sub{ overflow-wrap:anywhere; }
.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane) .sec-section .row .badge,
.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane) .sec-section .row .godmode-slot{ flex:0 0 auto; }
.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane) .sec-section .row .meta{ flex:0 0 130px; min-width:0; white-space:nowrap; text-align:left; }
.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane) .sec-section .row .a-btn{ flex:0 0 auto; white-space:nowrap; justify-content:center; text-align:center; }
.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane) .sec-section .row .meta + .a-btn{ min-width:66px; }
.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane) .sec-section .row .meta + .a-btn + .a-btn{ min-width:92px; }
.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane) .sec-section .row .expand{ flex:0 0 22px; background:none; border:none; padding:0; cursor:pointer; }
/* OKRs: one Delete track at the right. */
.alt-app #okrCleanupList .row .meta + .a-btn{ min-width:84px; }
/* Live editing: the change line, then the switch. */
.alt-app #liveEditList .row .meta{ flex:0 1 230px; white-space:normal; }
.alt-app #liveEditList .row .pref-switch{ margin:0; }
/* People: line one is who, chips and the three buttons, right-aligned; line two is the meta
   (and the exemption control, which only dormant accounts carry). Nothing here can overflow. */
.alt-app #userList .row .meta{ order:2; flex:1 1 calc(100% - 190px); white-space:normal; padding-left:calc(15px + var(--a-3)); }
.alt-app #userList .row .ar-exempt{ order:3; min-width:0; margin-left:auto; }
.alt-app #userList .row .meta + .a-btn{ order:1; min-width:66px; margin-left:auto; }
.alt-app #userList .row .meta + .a-btn + .a-btn{ order:1; min-width:116px; margin-left:0; }
.alt-app #userList .row .meta + .a-btn + .a-btn + .a-btn{ order:1; min-width:92px; }

/* People, wide (1181px and up). Line one is the pick, the name (never under 180px; it takes the slack) and the
   fixed-width controls anchored right: the exemption control, the God Mode slot, Profile, Reset password,
   Inactivate, so each sits at one x on every row. Line two, under the name, is the chips (they wrap there, never
   into the name's width) and the meta. `::after` is the line break and `::before` the indent under the pick.
   The exemption and God Mode widths exist only while the list carries one. Between 901 and 1180px the stacked
   flex rows above stay. */
@media (min-width: 1181px){
  .alt-app #userList{ --u-god:0px; --u-ex:0px; }
  .alt-app #userList:has(.godmode-slot > *){ --u-god:150px; }
  .alt-app #userList:has(.ar-exempt){ --u-ex:140px; }
  .alt-app #userList .row{ display:flex; flex-wrap:wrap; align-items:center; column-gap:var(--a-2); row-gap:var(--a-1); }
  .alt-app #userList .row .pick{ order:0; }
  .alt-app #userList .row .who-col{ order:0; flex:1 1 180px; min-width:180px; }
  .alt-app #userList .row .ar-exempt{ order:1; flex:0 0 var(--u-ex); min-width:0; margin-left:0; }
  .alt-app #userList .row .godmode-slot{ order:2; flex:0 0 var(--u-god); min-width:0; margin-left:0; }
  .alt-app #userList .row .godmode-slot > .badge{ margin-left:0; max-width:100%; }
  .alt-app #userList .row .meta + .a-btn{ order:3; flex:0 0 64px; min-width:0; margin-left:0; }
  .alt-app #userList .row .meta + .a-btn + .a-btn{ order:3; flex:0 0 112px; min-width:0; margin-left:0; }
  .alt-app #userList .row .meta + .a-btn + .a-btn + .a-btn{ order:3; flex:0 0 84px; min-width:0; }
  .alt-app #userList .row::after{ content:""; order:4; flex:0 0 100%; height:0; }
  .alt-app #userList .row::before{ content:""; order:5; flex:0 0 15px; height:0; }
  .alt-app #userList .row > .badge{ order:5; margin-left:0; }
  .alt-app #userList .row .meta{ order:6; flex:1 1 auto; min-width:0; padding-left:0; white-space:normal; }
}

/* A phone: a row stops being a track layout (sys_design-system §7); name first, then chips and buttons.
   The meta keeps its own wrapped line, as main's 880px rule does: it is never hidden. */
@media (max-width: 900px){
  .alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane) .sec-section .row .meta{ flex:1 1 100%; white-space:normal; }
  .alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane) .sec-section .row .who-col{ flex:1 1 calc(100% - 70px); }
  .alt-app #userList .row .meta + .a-btn{ margin-left:0; }
  .alt-app #userList .row .ar-exempt{ margin-left:0; }
}
@media (max-width: 480px){
  .alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane) .sec-section .admin-filter-row input[type=search],
  .alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane) .sec-section .admin-people-search{ flex:1 1 100%; width:100%; }
  .alt-app .a-admin-fld{ flex:1 1 100%; }
  .alt-app .a-admin-fld select{ flex:1 1 auto; }
  .alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane) .sec-section .bulk-bar .a-btn{ flex:1 1 auto; }
  .alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane) .sec-section{ padding:12px; }
  .alt-app .a-admin-sec-tail{ margin-left:0; }
}

/* Hooks WP-1 puts on the work band and its selection bar: the band never overflows its panel. */
.alt-app .a-admin-work{ min-width:0; }
.alt-app .a-admin-selbar{ min-width:0; }

/* Master and detail: the list beside the card it selects, the card sticky so it stays in view. */
.alt-app .a-admin-master{
  display:grid; grid-template-columns:minmax(0, 3fr) minmax(280px, 2fr); gap:var(--a-4); align-items:start;
}
.alt-app .a-admin-master > *{ min-width:0; }
.alt-app .a-admin-master-detail{ position:sticky; top:var(--a-2); align-self:start; }
/* OKRs: the titles are the list, so the review card takes a third, and none at all until something is selected
   (it then sits below the list, saying so). */
@media (min-width: 1181px){
  .alt-app #okrCleanupPane .a-admin-master{ grid-template-columns:minmax(0, 2fr) minmax(260px, 1fr); }
  .alt-app #okrCleanupPane .a-admin-master:has(#okrCleanupSelCount:empty){ grid-template-columns:minmax(0, 1fr); }
  .alt-app #okrCleanupPane .a-admin-master:has(#okrCleanupSelCount:empty) > .a-admin-master-detail{ position:static; }
}
@media (max-width: 1180px){
  .alt-app .a-admin-master{ grid-template-columns:minmax(0, 1fr); }
  .alt-app .a-admin-master-detail{ position:static; order:-1; }
}
/* On a phone the list comes first: reaching it in under a screen outranks seeing the detail above it. */
@media (max-width: 640px){
  .alt-app .a-admin-master-detail{ order:0; }
}

/* A label kept with its select when the toolbar wraps (sys_design-system §4b). */
/* The amber caution inside a work band stays amber and takes only the height it needs. */
.alt-app .a-admin-master-list > .a-notice{ margin:0 0 var(--a-2); max-width:none; }
.alt-app .a-admin-fld{ display:inline-flex; align-items:center; gap:var(--a-2); min-width:0; }
/* A pair whose select the module hides (the Organization filter) takes no space. */
.alt-app .a-admin-fld:has(> select[style*="none"]){ display:none; }
.alt-app .a-admin-fld select{ min-width:0; max-width:100%; }
.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane) .a-admin-fold-mount{ display:inline-flex; align-items:center; }
.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane) .a-admin-fold-mount:empty{ display:none; }
.alt-app :where(#turnstilePane,#organizationsPane,#teamsPane,#boardsPane,#okrCleanupPane,#usersPane,#liveEditPane,#systemAiPane) .admin-filter-count{ font-size:var(--a-fs-11); color:var(--a-faint); white-space:nowrap; }

/* Rule cards at the foot of a section: static safeguard text, verbatim, in the settings grid. */
.alt-app .a-admin-rules{ margin-top:0; }
.alt-app .a-admin-rules .a-admin-config-item p{ margin:0; }
.alt-app .a-admin-rules{ margin-top:var(--a-2); grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); }

/* The live-edit switch in a detail row is a span inside a span: an inline box ignores width and
   height, so only the absolutely placed knob drew. */
.alt-app .a-admin-drow .dm .pref-switch{ display:inline-block; vertical-align:middle; }
.alt-app .a-admin-drow .dm:has(.pref-switch){ flex:0 0 auto; margin-left:auto; }

/* Summary tiles and detail definition lists never break a word to fit a rail. */
.alt-app .a-stat span{ overflow-wrap:normal; word-break:normal; hyphens:none; }
.alt-app .a-admin-detail .a-admin-drow,
.alt-app #organizationDetail .a-admin-drow{ display:grid; grid-template-columns:minmax(0, 9em) minmax(0, 1fr); gap:var(--a-1) var(--a-3); align-items:center; }
.alt-app #organizationDetail .a-admin-drow .dn,
.alt-app #organizationDetail .a-admin-drow .dm{ flex:none; }
.alt-app #organizationDetail .a-admin-drow.act-row{ display:flex; }
/* System AI's notes are hints (design-spec controls.hint: 1.45), as the fleet pane's are; the pane-wide .sec-desc sets body leading. */
.alt-app #systemAiPane .sec-desc{ line-height:var(--a-lh-ui); }

/* DEFAULT-DENY UNTIL THE ROLE IS KNOWN: the section list is drawn by the markup before admin_console_role() answers
   (about 7 s on a cold load, measured on production 2026-11-16), and a System Admin saw every platform section name
   in that window. adminConsoleApplyRole() sets data-admin-role, then the list shows and, for a System Admin, trims.
   `visibility` keeps the column's space, so nothing shifts when it appears. */
body:not([data-admin-role="god"]):not([data-admin-role="system_admin"]) #tabs{ visibility:hidden; }

/* One organization needs no organization filter or grouping (L3 review F4, 2026-11-16). Role-keyed here, not hidden per element, because
   feature files re-show their own controls. A drawing decision only: Postgres scopes every list to the System Admin's organization. */
body[data-admin-role="system_admin"] :is(#userOrgFilter, #okrCleanupOrgFilter, label[for="okrCleanupGroupToggle"]){ display:none !important; }
