/* ================= THE TEAM BOARD =================
   Page chrome: context strip, glance, assignee strip, toolbar, density, hosted #taskModal/#adminModal.
   Kanban is alt-team-kanban.css + -compact.css; alt-responsive.css loads after and owns widths.
   No authored z-index on a layer (JS/alt/alt-layers.js). `at-` is this page's prefix; `a-` names are shared. */

/* ================= 0 · THE PAGE STANDS DOWN =================
   No board access hides every board control (only the notice shows); while config loads, nothing shows.
   `a-tb-no-access`/`a-tb-settling` are set on <body> by altTBApplyNoAccessChrome() (JS/alt/alt-team-board.js).
   Ids are named, not `#altMain` (the notice draws into #altTeamView); hiding the rail would leave a blank track. */
body.a-tb-no-access #altTeamGlance,
body.a-tb-no-access #altTeamPeople,
body.a-tb-no-access #altTeamToolbar,
body.a-tb-settling #altTeamGlance,
body.a-tb-settling #altTeamPeople,
body.a-tb-settling #altTeamToolbar{
  display:none;
}

/* ---------- THE TEAM SELECT GOES TOO, AND THAT REVERSES A RULING RECORDED HERE ----------
   A first ruling carried a `:not(.at-ctx-team)` exemption; it is withdrawn.
   `#altTeamCtx` hides wholesale (no `.at-ctx-team` exemption for a denied reader); safe because the
   switcher lives on `#altTeamBtn` in the shell, outside this chrome. If that closes, revisit with the owner.
   `#altTeamBanner` is a sibling of `.at-ctx`, so hiding the host takes it too. */
body.a-tb-no-access #altTeamCtx,
body.a-tb-settling #altTeamCtx{
  display:none;
}

/* ================= 1 · THE FILTER TOOLS =================
   The strip's tools host (#altTeamTools) holds the board's toolbar and this cluster; the row, tabs and scope slots are the shared page top's
   (CSS/alt/alt-page-top.css). */
/* NOT `.a-toolbar`: it carries `padding:var(--a-2) 0` because it IS a row of its own. */
.alt-app .at-ctx-btns{ display:flex; align-items:center; gap:var(--a-2); min-width:0; }
/* The board's own toolbar (#altTeamToolbar) is adopted into the tools host by altTeamPaintTools(); its controls sit in one wrapping row. */
.alt-app #altTeamToolbar{ display:flex; align-items:center; flex-wrap:wrap; gap:6px; min-width:0; flex:0 1 auto; }
/* On a phone the toolbar's controls and the filter cluster flow as ONE wrapping row, not a wrapped toolbar above a lone Filters button. */
@media (max-width:639px){ .alt-app #altTeamToolbar{ display:contents; } }

/* ---------- the two filter chips in the glance header ----------
   Match tasks.html's pair: rounded pill, glyph, label, count as a small badge. Scoped by id because
   `.a-btn .n` is alt-tasks.css's own selector (not loaded here) and a global rule would reach every button.
   The badge is `hidden` at zero, as `#altFilterCount2` does on tasks.html. */
.alt-app #altFiltersBtn .n,
.alt-app #altTeamClearFiltersBtn .n{
  margin-left:6px;
  padding:1px 7px;
  border-radius:var(--a-r-pill);
  background:var(--a-raised);
  font-family:var(--a-body); font-size:var(--a-fs-ctl-sm); font-weight:var(--a-fw-ctl); line-height:var(--a-lh-ui);
  font-variant-numeric:tabular-nums;
  opacity:.85;
}
/* LIT STATE: the Filters chip takes `.tog.on` when something is filtering, which fills it — the
   badge sits ON that fill, so it borrows the button's own colour rather than keeping a raised
   grey block that would read as a hole punched in the pill. */
.alt-app #altFiltersBtn.on .n{ background:rgba(255,255,255,.22); color:inherit; opacity:1; }
/* ---------- the filter summary line, inside the Filters menu ----------
   See altTeamFiltersSummaryLine() (alt-team-context.js); it is the menu's leading `head` row (altMenuOpen()).
   `.a-menu-head` (10px uppercase) suits captions, not a sentence, so this scopes to the first row and
   borrows `.a-hint` values (CSS/alt/alt-shell.css). No width rule: `.a-menu` caps at `min(360px, 92vw)`, so it wraps. */
.at-filter-menu > .a-menu-head:first-child{
  font-size:var(--a-fs-ctl-sm); font-weight:400; line-height:var(--a-lh-ui); text-transform:none; letter-spacing:normal;
  color:var(--a-dim); white-space:normal; padding:6px 11px 8px;
}

/* ================= 2 · THE BREAKDOWN =================
   Status, tag and assignee regions of the strip's drop-down (altTeamPaintBreakdown()). */
.alt-app .at-part{ min-width:0; display:flex; flex-direction:column; gap:var(--a-2); }
.alt-app .at-part > .a-sec-h{ margin:0 0 2px; }
/* THREE COLUMNS, not the shared sheet's two: By status, By tag, By assignee (decision D5). Two columns below 1280 with the assignee
   region across the bottom; one below 640. */
#altTeamGlance .a-fs-drop{ grid-template-columns:repeat(3, minmax(0,1fr)); }
@media (max-width:1279px){
  #altTeamGlance .a-fs-drop{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  #altTeamGlance .a-fs-drop > .at-part-people{ grid-column:1 / -1; }
}
@media (max-width:639px){
  #altTeamGlance .a-fs-drop{ grid-template-columns:minmax(0,1fr); }
}

/* THE BAND HEADER carries the section name and its controls on one line. `.a-sec-h` is the
   shared uppercase label; this only says how its children divide the row. */
.alt-app .at-band-h{ margin-bottom:var(--a-2); gap:var(--a-3); flex-wrap:wrap; }
.alt-app .at-band-h h2{
  font-size:var(--a-fs-11); font-weight:700; letter-spacing:.1em; text-transform:uppercase;
  color:var(--a-dim); margin:0;
}
/* The shared fold (`.a-w-fold`, alt-rail.css) holds chevron, icon square and title. It is content-sized here, not the rail's `flex:1`,
   so what follows the title (`.at-due`, the count, the button cluster) keeps the placement its own rules give it. */
.alt-app .at-band-h > .a-w-fold{ flex:0 1 auto; }
.alt-app .at-band-h > .at-due{ margin-left:var(--a-4); }
/* A plain count until a topic narrows the band, then "8 people · in Q1 Onsite" — reader-chosen
   text with no length limit. Truncates the same way `.at-person-n` does: min-width:0 so the
   flex item can shrink, ellipsis rather than wrap or overrun; the full phrase reaches `title`. */
.alt-app .at-count{
  font-size:var(--a-fs-11); color:var(--a-faint); flex:0 1 auto; min-width:0;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.alt-app .at-band-h > .at-count{ margin-left:auto; }
.alt-app .at-band-h > .at-due ~ .at-count{ margin-left:auto; }

/* ---------- the status bar and its chips ----------
   A lane outside the six the product ships with still needs a colour. `.k-todo…k-complete`
   (alt-components.css) name the six by meaning; these six name POSITIONS, so a board configuring
   "Triage", "Design" and "QA" gets three distinguishable segments, not three identical blues. */
.alt-app .a-seg > span.k-x0{ background:#2564cf; }
.alt-app .a-seg > span.k-x1{ background:#107c41; }
.alt-app .a-seg > span.k-x2{ background:#ca5010; }
.alt-app .a-seg > span.k-x3{ background:#8764b8; }
.alt-app .a-seg > span.k-x4{ background:#0891b2; }
.alt-app .a-seg > span.k-x5{ background:#b5893a; }
/* The bar is a summary of a whole board and reads better a little taller than the rail's. */
.alt-app .at-part .a-seg{ height:10px; border-radius:5px; }
/* A chip with a count is two pieces of text, so the label elides, not the number — "Platform
   Road…" is useful, "Platform Roadmap 1" is not. ("Platform Roadmap" is a synthetic board name;
   nothing here measures the string — 190px is a fixed cap, not derived from it.) */
.alt-app .at-part .a-chip{ max-width:190px; }
/* `.a-chip .lb` truncation moved to alt-components.css — this page and alt-okrs.css had each
   re-derived it independently, which was the evidence it belonged in the shared file. Core rule 4. */
.alt-app .at-part .a-chip .n{ flex:0 0 auto; }
.alt-app .at-part .a-chip[disabled]{ opacity:.55; cursor:default; }
/* One row, then a control. 24px because `button.a-chip{min-height:24px}` (alt-responsive.css, §18 floor)
   raised the chip after this ceiling was set. `+NN more` folds the rest in place, like altClampChips()
   on tasks.html. */
.alt-app .at-part .a-dist-chips.clipped{ max-height:24px; }
/* The overflow control sits ON the chips' own line now — `.a-dist` is column-direction by
   default (alt-tasks.css), which cost two rows to show one. `.a-dist-inline` is scoped to the
   Tags region, whose `.a-dist` holds only chips and the control; Status keeps its column, since
   its proportion bar above the chips wants the full width. */
.alt-app .at-part .a-dist{ gap:var(--a-2); padding-top:0; border-top:0; }
.alt-app .at-part .a-dist.a-dist-inline{ flex-direction:row; align-items:flex-start; flex-wrap:nowrap; }
.alt-app .at-part .a-dist-inline > .a-dist-chips{ flex:1 1 auto; min-width:0; }
/* Never shrinks — "+11 more" elided to "+11 m" is a control that stops saying what it does. */
.alt-app .at-part .a-dist-inline > .a-dist-more-h{ flex:0 0 auto; }
/* One row is 26px on a phone — alt-responsive.css's §18 block raises `button.a-chip` to 26
   below 640; the ceiling follows the chip. */
@media (max-width:639px){
  .alt-app .at-part .a-dist-chips.clipped{ max-height:26px; }
}

/* ================= 3 · BY ASSIGNEE =================
   Cards wrap and the band clips to the first row, with "+N more people" opening the rest in place (same fold as
   the tag chips). Sideways scrolling hid the rest of a large board. The ceiling is set in JS
   (altTeamClampPeople()) from the first row's measured bottom, since a constant fits only one density. */
.alt-app .at-people{
  display:flex; flex-wrap:wrap; gap:var(--a-2); min-width:0;
}
/* No `overflow-y` in the unclipped state: a scrollbar over a folded-open band is a second way to
   reach rows the "+N more" control has already brought into view. */
.alt-app .at-people.clipped{ overflow:hidden; }
/* Sits under the cards, not in the band header — it would read as a second action beside Hide. */
.alt-app .at-people-more{ display:flex; align-items:center; margin-top:var(--a-1); }
/* Nothing to fold is nothing to reserve space for — an empty host still carried its margin. */
.alt-app .at-people-more:empty{ display:none; }
.alt-app .at-person{
  flex:0 0 auto;
  display:flex; align-items:center; gap:var(--a-2);
  width:176px; min-height:52px; padding:7px 10px;
  border:1px solid var(--a-line-soft); border-radius:var(--a-r);
  background:var(--a-raised); color:inherit; font:inherit; text-align:left; cursor:pointer;
}
.alt-app .at-person:hover{ border-color:var(--a-line-strong); }
.alt-app .at-person:focus-visible{ outline:2px solid var(--a-ring); outline-offset:1px; }
/* The lit card's wash lifts the ground, so the caption comes up with it — `--a-faint` on the
   blue soft measures under the 4.5:1 floor, the same fix `.a-stat.on span` already uses. */
.alt-app .at-person.on{
  border-color:var(--a-blue); background:var(--a-blue-soft);
  box-shadow:0 0 0 1px var(--a-blue) inset;
}
.alt-app .at-person.on .at-person-n,
.alt-app .at-person.on .at-person-p{ color:var(--a-blue-text); }
.alt-app .at-person.on .at-person-s{ color:var(--a-dim); }
/* `.is-zero` now covers only a name the people filter is holding whose work nothing in view matches: quiet,
   not disabled, so it can still be pressed to clear. Applied in JS, not `[data-total="0"]`, because on-hold-only
   work also totals zero but renders at full opacity (see altTeamRenderPeople()). */
.alt-app .at-person.is-zero{ opacity:.55; }
.alt-app .at-person.is-zero:hover{ opacity:.8; }
/* When there are no cards at all, the band states which of the two reasons rather than leaving
   a heading over a gap. */
.alt-app .at-people-none{
  margin:0; padding:6px 2px; font-size:var(--a-fs-ctl-sm); line-height:var(--a-lh-ui);
  color:var(--a-faint); max-width:60ch;
}
.alt-app .at-person-t{ display:flex; flex-direction:column; gap:1px; min-width:0; }
.alt-app .at-person-n{
  font-size:var(--a-fs-ctl-sm); font-weight:600; color:var(--a-text); line-height:var(--a-lh-tight);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
/* The percentage is the figure on this card and wears the display face, like `.a-stat b`. */
.alt-app .at-person-p{
  font-family:var(--a-display); font-size:var(--a-fs-16); font-weight:600; line-height:var(--a-lh-tight);
  color:var(--a-text);
}
/* `overflow`/`text-overflow` added alongside `.at-person-n`'s, since the on-hold suffix
   ("3 of 3 done · 2 on hold") can now run longer than "N of M done" ever did at the 152px
   compact-width card; clipping with an ellipsis beats the line spilling out of the card. */
.alt-app .at-person-s{
  font-size:var(--a-fs-11); color:var(--a-faint); line-height:var(--a-lh-tight); white-space:nowrap;
  overflow:hidden; text-overflow:ellipsis;
}
/* Unassigned's avatar carries a dash rather than initials; the em dash needs no weight. */
.alt-app .at-person .a-av{ font-size:var(--a-fs-11); }

/* ---------- the due-date window, in the assignee band's header ----------
   Lives with the people because that's the pair of questions asked together — who is carrying
   what, over what period — and it's the same filter the Filters menu edits. */
.alt-app .at-due{
  display:flex; align-items:center; gap:var(--a-2); flex-wrap:wrap; min-width:0;
  text-transform:none; letter-spacing:0;
}
.alt-app .at-due-win{ display:flex; align-items:center; gap:6px; flex-wrap:wrap; min-width:0; }
.alt-app .at-due .a-input{
  height:26px; padding:0 6px; font-size:var(--a-fs-ctl-sm); line-height:var(--a-lh-tight); width:auto; min-width:0;
}
.alt-app .at-dash{ color:var(--a-faint); }
/* "Tasks with no due date are hidden while a range is set" — otherwise deduced from a card that
   is not there; `.warn` is for a range that cannot match anything. */
.alt-app .at-due-note{
  font-size:var(--a-fs-11); color:var(--a-faint); line-height:var(--a-lh-tight);
  text-transform:none; letter-spacing:0; font-weight:400; min-width:0;
}
.alt-app .at-due-note.warn{ color:var(--a-red); font-weight:600; }
.alt-app .at-presets{ display:inline-flex; align-items:center; gap:4px; }
/* The switch and its word are one control: the wrapping `<label>` forwards clicks to the checkbox. Uses the
   canonical `.pref-switch` (switchHtml(), JS/components/switch.js), whose `opacity:0` input paints no outline;
   the ring is `.pref-switch input:focus-visible ~ .track`. */
.alt-app .at-any{
  display:inline-flex; align-items:center; gap:6px; cursor:pointer;
  font-size:var(--a-fs-11); font-weight:600; color:var(--a-dim); line-height:var(--a-lh-tight);
  text-transform:none; letter-spacing:0;
  min-height:24px;
}
.alt-app .at-any:hover{ color:var(--a-text); }

/* ================= 4 · THE BOARD — MOVED =================
   The kanban is CSS/alt/alt-team-kanban.css + alt-team-kanban-compact.css, linked AFTER this
   file so a board rule here beats one there on source order, if it ever needs to. The lane
   canvas and the settings dialog were not the same work in one file. */

/* ================= 5 · THE TWO HOSTED DIALOGS =================
   `#taskModal` and `#adminModal` keep markup from the retired classic_team_board.html, ported with
   CSS/tokens.css variables. Scoped to the two ids on purpose: a bare `input, textarea, select` would beat
   `.a-input` and repaint every control. `#altViewPane`/`#altViewTab` (JS/alt/alt-team-settings.js) are covered. */

/* ---------- shared form and button primitives ---------- */
/* TEAM SETTINGS' FIELDS AND BUTTONS ARE THE SHARED ONES (DS-69, DS-72, DS-73, DS-80, DS-81). `#adminModal` re-dressed every native field
   (a panel ground, padding 8px 11px, radius 7, `height:auto` on `.a-input`, an ID-specific focus colour) and every `.btn`; that block is gone.
   The markup wears `.a-input` / `.a-select` / `.a-textarea` / `.a-btn`, whose rules (alt-components.css) give the 32px ladder, `--a-field-bg`,
   `--a-ctl-edge`, `--a-placeholder` and the one focus ring. #taskModal's own fields live in CSS/task-editor-core.css (`.te-core`). */
.alt-app #taskModal input[type=checkbox],
.alt-app #taskModal input[type=radio]{ accent-color:var(--accent); }
.alt-app #adminModal .a-textarea{ resize:vertical; }
/* `resize`/`min-height` stay for #taskModal — core states neither. */
.alt-app #taskModal textarea:not(.a-ncl-t):not(.a-ncl-d){ resize:vertical; min-height:80px; }
/* The shared checklist's one-row fields (.a-ncl-t/.a-ncl-d) own their own box; see CSS/alt/alt-components.css. */
/* #taskModal's .rich-text-field sizing and chrome moved to CSS/task-editor-core.css, which gives the
   description `flex:1 1 auto; min-height:300px` with no ceiling (the old capped height was the bug).
   `altTeamDescSize()` (JS/alt/alt-team-task.js) reads whatever floor resolves. */

/* ================= THE TASK'S CHECKLIST =================
   The `.tcl-*` component lives in CSS/checklist.css, unprefixed, so every host shares one definition (this
   dialog and tasks.html's `#panel`; classic_tasks.html is retired). */

/* The section body itself, not `.tcl-*` — CSS/checklist.css knows nothing of
   `#taskSecChecklist`, this dialog's own host; CSS/components.css turns the shared gap off for
   this pane, so this states its own spacing (host chrome, not component). */
.alt-app #taskModal #taskSecChecklist{ padding-bottom:var(--a-3); }

/* #taskModal'S OWN focus COLOUR MOVED TOO — core's `.te-core .rich-text-field:focus` states
   `border-color:var(--a-blue)`. #adminModal keeps its own. */
.alt-app #adminModal .rich-text-field:focus{ border-color:var(--accent); }
.alt-app #taskModal .rich-text-field[contenteditable="false"],
.alt-app #adminModal .rich-text-field[contenteditable="false"]{ opacity:.65; cursor:default; }
.alt-app #taskModal .rich-text-field > *:first-child,
.alt-app #adminModal .rich-text-field > *:first-child{ margin-top:0; }
.alt-app #taskModal .rich-text-field > *:last-child,
.alt-app #adminModal .rich-text-field > *:last-child{ margin-bottom:0; }
.alt-app #taskModal .rich-text-field p,
.alt-app #adminModal .rich-text-field p{ margin:0 0 8px; }
.alt-app #taskModal .rich-text-field ul,
.alt-app #adminModal .rich-text-field ul,
.alt-app #taskModal .rich-text-field ol,
.alt-app #adminModal .rich-text-field ol{ margin:0 0 8px; padding-left:22px; }
.alt-app #taskModal .rich-text-field li,
.alt-app #adminModal .rich-text-field li{ margin-bottom:3px; }
.alt-app #taskModal .rich-text-field h1,
.alt-app #adminModal .rich-text-field h1,
.alt-app #taskModal .rich-text-field h2,
.alt-app #adminModal .rich-text-field h2,
.alt-app #taskModal .rich-text-field h3,
.alt-app #adminModal .rich-text-field h3,
.alt-app #taskModal .rich-text-field h4,
.alt-app #adminModal .rich-text-field h4{ font-size:var(--a-fs-14); font-weight:700; margin:10px 0 5px; }
.alt-app #taskModal .rich-text-field blockquote,
.alt-app #adminModal .rich-text-field blockquote{ margin:0 0 8px; padding-left:10px; border-left:2px solid var(--border); color:var(--text-dim); }
.alt-app #taskModal .rich-text-field table,
.alt-app #adminModal .rich-text-field table{ border-collapse:collapse; margin-bottom:8px; }
.alt-app #taskModal .rich-text-field td,
.alt-app #adminModal .rich-text-field td,
.alt-app #taskModal .rich-text-field th,
.alt-app #adminModal .rich-text-field th{ border:1px solid var(--border-soft); padding:3px 6px; }
.alt-app #taskModal .rich-text-field:empty::before,
.alt-app #adminModal .rich-text-field:empty::before{ content:attr(data-placeholder); color:var(--text-faint); }
.alt-app #taskModal select.board-switcher,
.alt-app #adminModal select.board-switcher{ flex:0 1 210px; min-width:140px; max-width:260px; font-weight:600; }
@media (max-width:1520px){
.alt-app #taskModal select.board-switcher,
.alt-app #adminModal select.board-switcher{ flex:0 1 190px; }
}
.alt-app #taskModal .settings-board-row select,
.alt-app #adminModal .settings-board-row select{ width:auto; min-width:180px; max-width:100%; }
.alt-app #taskModal .settings-board-row select:disabled,
.alt-app #adminModal .settings-board-row select:disabled{ opacity:.7; }
.alt-app #taskModal .assignee-note,
.alt-app #adminModal .assignee-note{ grid-column:2; font-size:var(--a-fs-11); line-height:var(--a-lh-ui); color:var(--text-dim); margin-top:4px; }
.alt-app #taskModal .assignee-note.err,
.alt-app #adminModal .assignee-note.err{ color:var(--red-text); }
.alt-app #taskModal .tag-chip-row,
.alt-app #adminModal .tag-chip-row{ display:flex; flex-wrap:wrap; gap:6px; }
/* BUFFER BETWEEN THE ASSIGNED CHIPS AND "+ New tag…", owner, 2026-10-08: the two sat with a
   measured 0px gap — #altTaskTagAdd (JS/alt/alt-team-task.js) is appended as `.tag-chip-row`'s
   own sibling, not inside it, so the chip row's own `gap` above never reached it. Task-editor
   only: this creation control does not exist on `#adminModal`. */
.alt-app #taskModal #altTaskTagAdd{ margin-top:8px; }
.alt-app #taskModal .tag-pick,
.alt-app #adminModal .tag-pick{ display:inline-flex; align-items:center; gap:5px; padding:3px 9px; border-radius:999px; cursor:pointer; border:1px solid var(--border); background:var(--panel-2); font-size:var(--a-fs-ctl-sm); color:var(--text-dim); user-select:none; }
.alt-app #taskModal .tag-pick .dot,
.alt-app #adminModal .tag-pick .dot{ width:7px; height:7px; border-radius:50%; flex-shrink:0; }
.alt-app #taskModal .tag-pick-toggle,
.alt-app #adminModal .tag-pick-toggle{ background:transparent; border:1px dashed var(--border); border-radius:999px; padding:3px 10px; font-size:var(--a-fs-ctl-sm); color:var(--text-faint); }
.alt-app #taskModal .tag-pick-toggle:hover,
.alt-app #adminModal .tag-pick-toggle:hover{ border-color:var(--accent); color:var(--accent-text); }
.alt-app #taskModal .tag-pick.on,
.alt-app #adminModal .tag-pick.on{ color:var(--text); }
.alt-app #taskModal .tag-pick.disabled,
.alt-app #adminModal .tag-pick.disabled{ cursor:default; opacity:.55; }
/* #taskModal's `.form-row` geometry and label typography live in CSS/task-editor-core.css (`.te-core .field`). Team settings has no
   `.form-row` emitter left (its labels are `.a-eyebrow`, DS-77), so the #adminModal copies of `.form-row`, its label and `.form-row-inline` are gone. */
/* The old title row (`.form-row.title-field-row`, `--tt-label-w`, `#followupField` padding-left) is gone;
   the markup moved to `.field.title` and `.field.task-action-group`, which CSS/task-editor-core.css now styles
   (`--te-label-w:44px`, `.te-core .field.title`, `.te-core .task-action-group`). #taskModal only. */
/* Email section body: tasks.html loads CSS/task-editor-panel.css's `.email-source-meta`, but this page doesn't
   load that file (its field-box styling would double up with task-editor-core.css), so the markup needs its own
   rule. CSS/alt/alt-embed-task.css restates it for the embed editor (`:root.embed-task .email-source-meta`). */
.alt-app #taskModal .email-source-meta{
  display:flex; flex-direction:column; gap:2px; font-size:var(--a-fs-ctl-sm); color:var(--text-dim);
  min-width:0;
}
.alt-app #taskModal .email-source-meta span{
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.alt-app #taskModal .cfg-dot svg,
.alt-app #adminModal .cfg-dot svg{ display:block; }
.alt-app #taskModal .readonly-note,
.alt-app #adminModal .readonly-note{ background:var(--gray-soft); border-radius:var(--radius-sm); padding:8px 10px; font-size:var(--a-fs-ctl-sm); color:var(--text-dim); margin-bottom:12px; }
.alt-app #adminModal .add-row input{ flex:1 1 140px; min-width:0; }
.alt-app #adminModal .lane-complete-toggle input{ margin:0; cursor:pointer; }
/* `margin-top:8px` suits a `.cfg-status` under a control, not three of them here. `#taskModalSave`
   (`.cfg-status.save-status`) would sit 8px low; task-editor-core.css's `.te-tabs > .save-status` zeroes it
   but can't beat this id, so #taskModal excludes `.save-status` and the two comment status ids.
   #adminModal has none of these and keeps the plain rule. */
.alt-app #taskModal .cfg-status:not(.save-status):not(#taskCommentStatus):not(#altTaskCommentTidyStatus),
.alt-app #adminModal .cfg-status{ font-size:var(--a-fs-ctl-sm); color:var(--text-faint); margin-top:8px; min-height:1em; }
.alt-app #taskModal .cfg-status.ok,
.alt-app #adminModal .cfg-status.ok{ color:var(--green-text); }
.alt-app #taskModal .cfg-status.err,
.alt-app #adminModal .cfg-status.err{ color:var(--red-text); }
/* `.warn`, the third tone, for partial results ("removed 3, skipped 1"). `.cfg-status.warn` in components.css
   (0,2,0) loses to the ID-bearing `.alt-app #adminModal .cfg-status` (measured: identical to neutral in both
   themes), so it is defined here, as in CSS/alt/alt-admin.css. Uses `--warn-text` (CSS/tokens.css), beside
   `.ok` and `.err`. */
.alt-app #taskModal .cfg-status.warn,
.alt-app #adminModal .cfg-status.warn{ color:var(--warn-text); }
.alt-app #adminModal .add-row input{ flex:1; }
/* #taskModal's `.status-note` is `#taskMetaNote`, the footer line only (created/last-updated); the save state
   moved to the tab row (`#taskModalSave`, see taskModalRenderMeta() in board-task-modal.js).
   task-editor-core.css's `.te-core .meta-line, .te-core .status-note` states size, colour and layout, so only
   `margin-top` is left. #adminModal has no `.status-note` and keeps its full declaration. */
.alt-app #adminModal .status-note{ font-size:var(--a-fs-ctl-sm); color:var(--text-faint); margin-top:10px; }
.alt-app #taskModal .status-note{ margin-top:10px; }
/* `.status-note.err` has no live target now: `setTaskModalSaveState()` toggles `.err` on `#taskModalSave`
   (`.cfg-status.save-status`), never on `#taskMetaNote`. Kept rather than deleted on a guess, since removing
   dead-looking CSS is how a live state goes missing. */
.alt-app #taskModal .status-note.err{ color:var(--red-text); font-weight:600; }
/* Team settings' disabled buttons and fields are the shared `.a-btn[disabled]` / `.a-input:disabled` (opacity only); only the dimmed tab keeps this wash. */
.alt-app #taskModal button:disabled,
.alt-app #taskModal input:disabled,
.alt-app #taskModal select:disabled,
.alt-app #taskModal textarea:disabled,
.alt-app #taskModal .is-disabled,
.alt-app #adminModal .is-disabled{ opacity:.55; background:var(--gray-soft); border-color:var(--border-soft); cursor:not-allowed; }

/* BUTTONS (DS-73): Team settings wears `.a-btn` / `.a-btn.sm` (primary and danger tiers per DS-18, DS-19) and the dialog close is
   `.a-btn.icon.ghost`; the classic-button and `button.icon-btn` re-dresses Team settings used to carry are gone.
   #taskModal's `.btn` family lives in CSS/task-editor-core.css (`.te-core .btn`). */
/* #taskModal'S OWN `.icon-btn` BASE FAMILY MOVED TO CSS/task-editor-core.css (`.te-core .icon-btn`, `.te-core .te-head .icon-btn`,
   `.te-titlebar .icon-btn`): base, hover, danger, complete-btn, header sizing and focus ring. The Team settings close is `.a-btn.icon.ghost`. */
.alt-app #taskModal button.btn.small{ align-self:flex-end; }
.alt-app #taskModal a.btn{ text-decoration:none; cursor:pointer; }
.alt-app #taskModal a.btn svg,
.alt-app #taskModal button.btn svg{ flex:0 0 auto; }
/* Mark complete in the board task modal header is `.a-btn.ghost.complete-btn` (it carries a label): the green is this id's own colour. */
.alt-app #taskModal #completeTaskBtn.complete-btn{ color:var(--a-green); }
.alt-app #taskModal #completeTaskBtn.complete-btn:hover{ background:var(--a-green-soft); color:var(--a-green); }
/* The follow-up button's label. #followupToggleBtn is static markup that emitted-class-styling-check.py sees
   (DoD 4d), unlike the runtime-injected spans JS/components/task-watch-mail.js styles inline. task-editor-core.css
   (`.te-core .te-head .icon-btn .icon-btn-lb`) states font-size/weight; only `line-height`/`margin-left` remain. */
.alt-app #taskModal .icon-btn-lb{ line-height:var(--a-lh-ctl); margin-left:5px; }
.alt-app #taskModal .section-toolbar .btn.small,
.alt-app #adminModal .section-toolbar .a-btn.sm{ align-self:center; }
.alt-app #taskModal .person-actions > .btn,
.alt-app #adminModal .person-actions > .a-btn{ flex:0 0 auto; white-space:nowrap; }
.alt-app #adminModal .cfg-row .a-btn{ flex:0 0 auto; align-self:center; white-space:nowrap; }
.alt-app #adminModal .topics-grid > .a-btn{ width:100%; justify-content:center; }
@media (max-width: 880px){
.alt-app #adminModal .topics-grid > .a-btn{ width:auto; }
}
.alt-app #adminModal .group-actions .a-btn{ font-variant-numeric:tabular-nums; }
.alt-app #adminModal .group-row .group-actions .a-btn{ align-self:auto; }

/* ---------- the settings panes ---------- */
.alt-app #adminModal .avatar-dot{ width:26px; height:26px; border-radius:50%; background:var(--accent-fill); color:#fff; font-size:var(--a-fs-11); font-weight:700; display:flex; align-items:center; justify-content:center; margin-left:-8px; border:2px solid var(--panel); }
.alt-app #adminModal .avatar-dot:first-child{ margin-left:0; }
.alt-app #adminModal .avatar-dot[data-tooltip]{ position:relative; cursor:default; }
.alt-app #adminModal .avatar-dot[data-tooltip]:hover::after{ content:attr(data-tooltip); position:absolute; top:130%; right:0; left:auto; background:var(--panel); color:var(--text); border:1px solid var(--border); padding:5px 9px; border-radius:6px; font-size:var(--a-fs-ctl-sm); font-weight:600; white-space:nowrap; z-index:var(--z-float); box-shadow:0 4px 14px rgba(0,0,0,.35); pointer-events:none; }
.alt-app #adminModal .avatar-dot[data-tooltip]:hover::before{ content:''; position:absolute; top:100%; right:8px; border:5px solid transparent; border-bottom-color:var(--border); z-index:calc(var(--z-float) + 1); pointer-events:none; }
.alt-app #adminModal .modal-title-row,
.alt-app #adminModal .admin-tabs{ flex-shrink:0; }
.alt-app #adminModal .admin-pane.active{ display:flex; flex-direction:column; flex:1 1 auto; min-height:0; overflow-y:auto; }
.alt-app #adminModal .settings-board-row{ display:flex; align-items:center; gap:9px; flex-wrap:wrap; margin:0 0 14px; padding:0 0 12px; border-bottom:1px solid var(--border-soft); }
.alt-app #adminModal .settings-board-label{ font-size:var(--a-fs-11); text-transform:uppercase; letter-spacing:.4px; color:var(--text-faint); font-weight:700; }
.alt-app #adminModal .settings-board-row select{ width:auto; min-width:180px; max-width:100%; }
.alt-app #adminModal .settings-board-note{ font-size:var(--a-fs-ctl-sm); line-height:var(--a-lh-ui); color:var(--a-faint); }
.alt-app #adminModal .settings-board-row select:disabled{ opacity:.7; }
.alt-app #adminModal .section-toolbar{ display:flex; justify-content:flex-end; gap:6px; margin-bottom:4px; }
.alt-app #adminModal .section-toolbar .a-btn.sm{ align-self:center; }
.alt-app #adminModal .inactive-head{ display:flex; align-items:center; gap:var(--a-sp-8); cursor:pointer; user-select:none; font-size:var(--a-fs-ctl-sm); font-weight:var(--a-fw-ctl); color:var(--a-faint); margin:18px 0 8px; padding-top:10px; border-top:1px solid var(--a-line-soft); }
.alt-app #adminModal .inactive-head:hover{ color:var(--text-dim); }
.alt-app #adminModal .inactive-head.collapsed .chev{ transform:rotate(-90deg); }
.alt-app #adminModal .inactive-badge{ font-size:var(--a-fs-11); letter-spacing:.04em; text-transform:uppercase; background:var(--gray-soft); color:var(--text-faint); border-radius:999px; padding:2px 7px; flex-shrink:0; }
.alt-app #adminModal .import-dropzone{ border:1px dashed var(--a-line-strong); border-radius:var(--a-r); padding:20px; text-align:center; color:var(--a-dim); font-size:var(--a-fs-ctl); cursor:pointer; }
.alt-app #adminModal .import-dropzone.dragover{ border-color:var(--accent); background:var(--accent-soft); color:var(--text); }
.alt-app #adminModal .import-hint{ font-size:var(--a-fs-ctl-sm); line-height:var(--a-lh-ui); color:var(--a-faint); margin-top:var(--a-sp-12); }
.alt-app #adminModal .import-hint code{ background:var(--a-raised); padding:1px 4px; border-radius:var(--a-r-sm); font-size:inherit; }
.alt-app #adminModal .team-row-name{ flex:1; min-width:0; font-weight:var(--a-fw-ctl); font-size:var(--a-fs-ctl); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.alt-app #adminModal .team-detail{ margin:10px 0 4px; padding:11px 13px; background:var(--panel-2); border:1px solid var(--border-soft); border-radius:var(--radius-sm); }
.alt-app #adminModal .team-detail h4{ margin:0 0 var(--a-sp-8); }
.alt-app #adminModal .team-detail-grid{ display:flex; gap:18px; flex-wrap:wrap; }
.alt-app #adminModal .team-stat .n{ font-size:var(--a-fs-18); font-weight:700; line-height:var(--a-lh-tight); }

.alt-app #adminModal .admin-tabs{ display:flex; gap:var(--a-sp-2); margin-bottom:0; padding:0 var(--a-pad-body); overflow-x:auto; border-bottom:1px solid var(--a-line); }
.alt-app #adminModal .admin-tab{ flex:0 0 auto; height:34px; padding:0 var(--a-sp-12); background:none; border:none; border-bottom:2px solid transparent; border-radius:0; color:var(--a-faint); font-family:var(--a-body); font-size:var(--a-fs-ctl); font-weight:var(--a-fw-ctl); line-height:var(--a-lh-ctl); white-space:nowrap; cursor:pointer; }
.alt-app #adminModal .admin-tab:hover{ color:var(--a-dim); }
.alt-app #adminModal .admin-tab.active{ color:var(--a-text); border-bottom-color:var(--a-blue); }
/* A disabled tab (the OKRs tab on a team without OKRs) is dimmed; the shared `.is-disabled` rule paints a grey wash that no longer fits a panel tab. */
.alt-app #adminModal .admin-tab.is-disabled{ opacity:.55; cursor:not-allowed; }
.alt-app #adminModal .admin-pane{ display:none; }
.alt-app #adminModal .admin-pane.active{ display:block; }
.alt-app #adminModal .people-grid{ display:grid; grid-template-columns:minmax(170px, 1.5fr) 122px minmax(150px, 1.1fr) minmax(150px, 1.1fr) 292px; gap:8px 10px; align-items:center; }
.alt-app #adminModal .person-head > :last-child{ text-align:right; }
.alt-app #adminModal .person-head{ padding:2px 4px 6px; border-bottom:1px solid var(--a-line-soft); position:sticky; top:0; z-index:1; background:var(--panel); }
.alt-app #adminModal .person-row{ padding:8px 4px; border-bottom:1px solid var(--border-soft); }
.alt-app #adminModal .person-row:hover{ background:var(--panel-2); }
.alt-app #adminModal .person-id{ min-width:0; }
.alt-app #adminModal .person-id .name{ font-size:var(--a-fs-ctl); font-weight:var(--a-fw-ctl); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.alt-app #adminModal .person-id .email{ font-size:var(--a-fs-ctl-sm); line-height:var(--a-lh-ui); color:var(--a-faint); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.alt-app #adminModal .person-row select{ width:100%; min-width:0; }
.alt-app #adminModal .person-actions{ display:flex; gap:6px; align-items:center; justify-content:flex-end; flex-wrap:wrap; }
.alt-app #adminModal .person-actions > .a-btn{ flex:0 0 auto; white-space:nowrap; }
@media (max-width: 880px){
.alt-app #adminModal .people-grid{ grid-template-columns:1fr; gap:6px; }
}
@media (max-width: 880px){
.alt-app #adminModal .person-actions{ flex-wrap:wrap; }
}
@media (max-width: 880px){
.alt-app #adminModal .person-head{ padding:2px 4px 6px; border-bottom:1px solid var(--a-line-soft); position:sticky; top:0; z-index:1; background:var(--panel); }
}
@media (max-width: 880px){
.alt-app #adminModal .person-actions{ justify-content:flex-start; }
}
.alt-app #adminModal .invite-panel{ margin:0 0 12px; padding:9px 11px; background:var(--panel-2); border:1px solid var(--border-soft); border-radius:var(--radius-sm); }
.alt-app #adminModal .invite-copy{ font-size:var(--a-fs-ctl-sm); line-height:var(--a-lh-ui); color:var(--a-faint); margin-bottom:var(--a-sp-8); }
.alt-app #adminModal .invite-row{ margin:0; }
/* THE INVITE FEEDBACK SITS BESIDE THE CONTROL THAT CAUSED IT. It used to print at the bottom of
   the People pane, off-screen on any real team roster. Wraps rather than truncates — these
   sentences are long on purpose, so the status takes the remaining width and wraps under the
   button; `min-width:0` is what lets it wrap at all inside a flex row. */
.alt-app #adminModal .invite-actions{
  display:flex; align-items:flex-start; gap:10px; flex-wrap:wrap; margin-top:8px;
}
.alt-app #adminModal .invite-actions .cfg-status{ margin:0; flex:1 1 220px; min-width:0; }
.alt-app #adminModal .invite-actions .a-btn{ flex:0 0 auto; }
.alt-app #adminModal .people-filter-row{ margin:0 0 10px; padding:0 4px; }

.alt-app #adminModal .people-filter-row .ms-field{ flex:0 1 240px; }
.alt-app #adminModal .people-filter-count{ font-size:var(--a-fs-ctl-sm); line-height:var(--a-lh-ui); color:var(--a-faint); }
.alt-app #adminModal .people-search{ width:auto; min-width:150px; max-width:220px; flex:0 1 190px; }
.alt-app #adminModal .roster-row{ display:flex; align-items:center; gap:8px; padding:8px 4px; border-bottom:1px solid var(--border-soft); }
.alt-app #adminModal .roster-row .name{ font-size:var(--a-fs-ctl); font-weight:var(--a-fw-ctl); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.alt-app #adminModal .roster-row .email{ font-size:var(--a-fs-ctl-sm); line-height:var(--a-lh-ui); color:var(--a-faint); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.alt-app #adminModal .roster-row .role-badge{ font-size:var(--a-fs-11); padding:2px 8px; border-radius:999px; background:var(--panel-2); color:var(--text-dim); }
.alt-app #adminModal .roster-row .role-badge.admin{ background:var(--accent-soft); color:var(--accent-text); }
.alt-app #adminModal .add-row{ display:flex; align-items:center; gap:8px; margin-top:10px; flex-wrap:wrap; }
/* The add row leads its list now, so its spacing moved below it — the old top margin pushed
   against the thing above while the row ended flush on the list beneath (measured: 0px on
   Topics). The redundant top margin comes off wherever the row is genuinely first. */
.alt-app #adminModal .add-row{ margin-bottom:12px; }
.alt-app #adminModal .stg-sec-body > .add-row:first-child,
.alt-app #adminModal .admin-pane > .add-row,
.alt-app #adminModal .admin-pane > .stg-pane-head + .add-row{ margin-top:0; }
.alt-app #adminModal .add-row input{ flex:1 1 140px; min-width:0; }
.alt-app #adminModal .lane-complete-toggle{ display:inline-flex; align-items:center; gap:var(--a-sp-6); white-space:nowrap; font-size:var(--a-fs-ctl-sm); color:var(--a-dim); cursor:pointer; }
.alt-app #adminModal .lane-complete-toggle input{ margin:0; cursor:pointer; }
.alt-app #adminModal .lane-complete-toggle:hover{ color:var(--text); }
.alt-app #adminModal .cfg-row{ display:flex; align-items:center; gap:8px; margin-bottom:6px; }
.alt-app #adminModal .cfg-row input[type=text]{ flex:1; }
.alt-app #adminModal .cfg-row input[type=color],
.alt-app #adminModal .add-row input[type=color]{ width:var(--a-ctl-sm); height:var(--a-ctl-sm); padding:0; border:1px solid var(--a-ctl-edge); border-radius:var(--a-r-sm); background:none; flex:0 0 auto; }
.alt-app #adminModal .add-row input[type=color]{ width:var(--a-ctl); height:var(--a-ctl); }
.alt-app #adminModal .cfg-row .a-btn{ flex:0 0 auto; align-self:center; white-space:nowrap; }
.alt-app #adminModal .cfg-row .cfg-swatch-gap{ width:28px; flex:0 0 auto; }
.alt-app #adminModal .cfg-row .cfg-pick{ flex:0 0 auto; margin:0; }
.alt-app #adminModal .section-toolbar .bulk-count{ margin-right:auto; font-size:var(--a-fs-ctl-sm); line-height:var(--a-lh-ui); color:var(--a-faint); align-self:center; }
.alt-app #adminModal .tag-bulk-bar{ padding-bottom:6px; border-bottom:1px solid var(--border-soft); margin-bottom:8px; }
.alt-app #adminModal .cfg-row .cfg-pseudo-label{ flex:1; font-size:var(--a-fs-ctl); color:var(--text-dim); font-style:italic; }
/* Six columns: grip, topic, state, tasks, clone, remove. */
.alt-app #adminModal .topics-grid{ display:grid; grid-template-columns:22px minmax(0,1fr) 110px 138px 84px 84px; gap:6px 8px; align-items:center; }
.alt-app #adminModal .topic-id{ display:flex; align-items:center; gap:8px; min-width:0; }
.alt-app #adminModal .topic-head{ padding:2px 0 6px; border-bottom:1px solid var(--border-soft); font-size:var(--a-fs-11); text-transform:uppercase; letter-spacing:.4px; color:var(--text-faint); font-weight:700; position:sticky; top:0; z-index:1; background:var(--panel); }
.alt-app #adminModal .topic-head > :nth-child(n+3){ text-align:center; }
.alt-app #adminModal .topics-grid > .a-btn{ width:100%; justify-content:center; }
.alt-app #adminModal .reorder-gap{ width:22px; }
@media (max-width: 880px){
.alt-app #adminModal .topics-grid{ grid-template-columns:1fr; gap:6px; }
}
@media (max-width: 880px){
.alt-app #adminModal .topic-head{ display:none; }
}
@media (max-width: 880px){
.alt-app #adminModal .topics-grid > .a-btn{ width:auto; }
}
.alt-app #adminModal .pane-intro{ font-size:var(--a-fs-ctl-sm); line-height:var(--a-lh-ui); color:var(--a-faint); margin-bottom:var(--a-sp-12); }
.alt-app #adminModal .cfg-row.group-row{ display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; column-gap:16px; padding:9px 0; margin-bottom:0; border-bottom:1px solid var(--border-soft); }
.alt-app #adminModal .cfg-row.group-row:last-child{ border-bottom:none; }
.alt-app #adminModal .group-id{ min-width:0; display:flex; flex-direction:column; gap:2px; }
.alt-app #adminModal .group-actions{ display:flex; align-items:center; gap:6px; }
.alt-app #adminModal .group-actions .a-btn{ font-variant-numeric:tabular-nums; }
.alt-app #adminModal .group-row .group-actions .a-btn{ align-self:auto; }
.alt-app #adminModal .group-row input[type=text].group-name{ width:100%; background:transparent; border:1px solid transparent; border-radius:var(--a-r-sm); padding:3px 6px; margin-left:-6px; font-size:var(--a-fs-ctl); font-weight:var(--a-fw-ctl); line-height:var(--a-lh-ctl); color:var(--a-text); }
.alt-app #adminModal .group-row input[type=text].group-name:hover{ background:var(--panel-2); border-color:var(--border); }
.alt-app #adminModal .group-row input[type=text].group-name:focus{ background:var(--panel-2); border-color:var(--accent); }
.alt-app #adminModal .group-sub{ font-size:var(--a-fs-ctl-sm); color:var(--a-faint); line-height:var(--a-lh-ui); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.alt-app #adminModal .group-sub.warn{ color:var(--warn-text); }
.alt-app #adminModal .group-editor{ margin:2px 0 12px 10px; padding:8px 0 8px 10px; border-left:2px solid var(--border-soft); }
.alt-app #adminModal .group-editor-head{ font-size:var(--a-fs-11); text-transform:uppercase; letter-spacing:.4px; color:var(--text-faint); font-weight:700; margin-bottom:6px; }
.alt-app #adminModal .add-row input{ flex:1; }
.alt-app #adminModal .empty-state{ color:var(--a-faint); font-size:var(--a-fs-ctl); padding:30px; text-align:center; }

/* ---------- the two dialogs' own frames ---------- */
.alt-app #adminModal .modal-card{ display:flex; flex-direction:column; overflow:hidden; }
/* DS-40, DS-42: the shell has no inner padding; the header band, the tab strip and each pane own theirs, so the coloured header sits on the card edge. */
.alt-app #adminModal .modal-card.stg-shell{ padding:0; }
.alt-app #adminModal .modal-card.stg-shell .admin-pane{ padding:var(--a-pad-body); }
.alt-app #adminModal .modal-title-row,
.alt-app #adminModal .admin-tabs{ flex-shrink:0; }
.alt-app #adminModal .admin-pane.active{ display:flex; flex-direction:column; flex:1 1 auto; min-height:0; overflow-y:auto; }
/* The same crushed-card bug this file found independently (a `.stg-sec` flex item with
   `overflow:hidden` crushes toward 0 rather than letting the pane scroll — reproduced as
   `#inviteRow` at 2px tall over a 61-person roster) is fixed at its own component,
   `.stg-sec{flex-shrink:0}` in alt-settings-stride.css §3 — every host gets it, not just this one. */

/* ================= 4a · THE TEAMS TAB'S TWO-COLUMN LAYOUT =================
   Cards follow the number sequence in `TEAM_PANE_GRID_ORDER` (JS/features/team-pane.js). Scoped to `#teamPane`.
   `grid-auto-rows:min-content` is load-bearing (an open tall card otherwise overflows into the next row);
   `.stg-sec{min-height:min-content}` means a stretched card is padded, never clipped. */
.alt-app #adminModal #teamPane.active{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  grid-auto-rows:min-content;
  align-items:stretch;
  column-gap:14px;
  /* Matches the row rhythm every other settings pane already has
     (`.admin-pane.active{row-gap:10px}`, CSS/alt/alt-settings-stride.css) — grid's `row-gap` is
     the same property flexbox uses, so this restates that pane's own vertical spacing at the
     specificity this layout needs, rather than fighting it. */
  row-gap:10px;
}
/* Full-width rows: Team Insights, Delete this team and Your teams each sit alone. `.stg-grid-solo` covers the
   runtime case where five of eight paired cards are gated independently, so the odd one out is only known at
   runtime (stgTeamPaneGridRepaint(), team-pane.js). `#teamEmailBuilderRow` spans both columns, by id, because
   reordering `TEAM_PANE_GRID_ORDER` would break the owner's sequence and it is the tall outlier (~1842px open). */
.alt-app #adminModal #teamPane.active > .stg-pane-head,
.alt-app #adminModal #teamPane.active > #yourTeamsSection,
.alt-app #adminModal #teamPane.active > #teamInsightsLaunch,
.alt-app #adminModal #teamPane.active > #teamEmailBuilderRow,
.alt-app #adminModal #teamPane.active > #teamDeleteRow,
.alt-app #adminModal #teamPane.active .stg-grid-solo{
  grid-column:1 / -1;
}
/* Team details and Team admins become two grid cells, not one — team-config.js builds both as
   children of this single static mount, so `display:contents` removes the host div's own box
   from layout while the DOM stays exactly as built. Changes painted layout only, not focus order. */
.alt-app #adminModal #teamConfigHost{
  display:contents;
}
/* Same crushed-card bug as above in grid mode: `min-height:auto` on an `overflow:hidden` grid item resolves like
   flex's automatic minimum (a card clipped to ~31px over a 1726px body). `min-height:min-content` is the grid
   analogue of `flex-shrink:0`. */
.alt-app #adminModal #teamPane.active .stg-sec{
  min-height:min-content;
}
/* Below 880px — this file's own established breakpoint (People and Topics grids collapse at
   the same width) — the pane stacks to one column; nothing narrowed it before this rule. */
@media (max-width: 880px){
.alt-app #adminModal #teamPane.active{
  grid-template-columns:1fr;
}
}

/* ================= 5a · THE STRIDE SETTINGS SHELL =================
   This dialog's half of the contract shared with My Settings. Header and section-card components are
   alt-settings-stride.css's own (§5, §3), not restated here (Core rule 4). Genuinely local: the tab strip, the
   pane head, and the one framing rule that drops the eyebrow below 900px (that file's §8 leaves framing to each host). */

/* ---------- the header's one host-owned responsive rule — §5/§8c ---------- */
/* The eyebrow (STRIDE · TEAM SETTINGS) drops entirely under 900px — the mark and title alone
   are enough, and a truncated eyebrow reads worse than none. Framing, not a component
   property — alt-settings-stride.css's own §8 leaves this to the host. */
@media (max-width:900px){
  .alt-app #adminModal .stg-eyebrow{ display:none; }
}

/* ---------- the tab strip — restyle + the overflow affordance (risk R6) ---------- */
/* 13 tabs sum to ~690px in a strip at most 598px wide and scrolled silently. The pinned declarations below are
   asserted by `modal-size.test.js`; this adds an edge fade via `mask-image` on the scroll
   container, GPU-composited so it never intercepts a click on the tab beneath. */
.alt-app #adminModal .admin-tabs{
  position:relative;
  -webkit-mask-image:linear-gradient(to right, transparent 0, #000 0, #000 100%, transparent 100%);
          mask-image:linear-gradient(to right, transparent 0, #000 0, #000 100%, transparent 100%);
  scroll-behavior:smooth;
}
/* The fade widens only on the side there is more to see — toggled by stgTabStripSync()
   (team-pane.js) off the strip's real scrollLeft/scrollWidth, never guessed from the tab count,
   since a role that hides tabs changes whether it overflows at all. */
.alt-app #adminModal .admin-tabs.stg-can-scroll-start{
  -webkit-mask-image:linear-gradient(to right, transparent 0, #000 28px, #000 100%, transparent 100%);
          mask-image:linear-gradient(to right, transparent 0, #000 28px, #000 100%, transparent 100%);
}
.alt-app #adminModal .admin-tabs.stg-can-scroll-end{
  -webkit-mask-image:linear-gradient(to right, transparent 0, #000 0, #000 calc(100% - 28px), transparent 100%);
          mask-image:linear-gradient(to right, transparent 0, #000 0, #000 calc(100% - 28px), transparent 100%);
}
.alt-app #adminModal .admin-tabs.stg-can-scroll-start.stg-can-scroll-end{
  -webkit-mask-image:linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
          mask-image:linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
}
/* A reader who cannot see the mask still has a working, keyboard-reachable, scrolling strip —
   the mask is a hint, never the only signal. `scrollbar-width:thin` stays visible rather than
   hidden, so the fade is not the only affordance. */
.alt-app #adminModal .admin-tabs{ scrollbar-width:thin; }
.alt-app #adminModal .admin-tab:focus-visible{ outline:var(--a-focus); outline-offset:var(--a-focus-inset); }

/* ---------- the pane head — §3 rule 5 ---------- */
/* The fold-all control sits outside the scrolling pane, on the same line as the intro copy —
   never inside the scroll region, never repeated per card. `flex-wrap` so a narrow dialog drops
   it under the intro rather than clipping it. */
.alt-app #adminModal .stg-pane-head{
  display:flex; align-items:flex-start; justify-content:space-between; gap:12px;
  flex-wrap:wrap; margin-bottom:12px;
}
.alt-app #adminModal .stg-pane-head .pane-intro{ flex:1 1 240px; margin-bottom:0; }
.alt-app #adminModal .stg-pane-actions{ display:flex; gap:8px; flex:0 0 auto; }
.alt-app #adminModal .stg-pane-actions .a-btn svg{ flex:0 0 auto; }

/* ---------- the fold-all toggle ----------
   One toggle replaced Expand all / Collapse all (sys_design-system.md, "Hierarchical lists: one fold-all toggle").
   `.stg-fold-mount{display:contents}` avoids a gap around nothing while a pane has no foldable card. */
.alt-app #adminModal .stg-fold-mount{ display:contents; }
/* The dialog close keeps its one ladder square at every width (a flex item would otherwise give up width to a long title). */
.alt-app #adminModal #closeAdminModalBtn{ flex:0 0 auto; }
/* The fold-all button is the shared `.a-btn.a-fold-all` (alt-components.css): the Team settings height, padding, radius and unlit-face
   overrides it carried are gone (DS-73). */

/* ================= WIDTHS =================
   The breakdown's column count is in section 2; the row, tabs and strip wrap in CSS/alt/alt-page-top.css. What is left is this page's own:
   the person card's width and the assignee header's due-date row. Nothing is removed at any width, only rearranged. */
@media (max-width:1279px){
  .alt-app .at-person{ width:164px; }
}
@media (max-width:819px){
  /* The header's controls fall under its title rather than squeezing it; stops the due-date row being pinned to the trailing edge of a line it is now alone on. */
  .alt-app .at-band-h > .at-due{ margin-left:0; flex:1 1 100%; }
  .alt-app .at-band-h > .at-count{ margin-left:0; }
}
@media (max-width:479px){
  .alt-app .at-person{ width:152px; }
}

/* ================= MOTION: THE MICRO RESPONSE =================
   Touched controls change between two frames at `--dur-micro`; `.micro` (CSS/components.css) is unreachable
   from JS/alt/ markup, so selectors are local. Hover-revealed controls use `--a-quick` instead. `box-shadow`
   and layout are left out (paint the compositor can't skip). Reduced motion is handled at the token. */
/* `.at-tab` is not in this list — it moved to alt-components.css and is eased there instead. */
.alt-app .at-person,
.alt-app .at-any,
.alt-app .a-tb-retired-h,
.alt-app .a-tb-lane-h,
.alt-app .a-tb-card-t,
.alt-app .a-tb-lane-btn{
  transition:background-color var(--dur-micro, 140ms) linear,
             border-color     var(--dur-micro, 140ms) linear,
             color            var(--dur-micro, 140ms) linear,
             opacity          var(--dur-micro, 140ms) linear;
}
/* The card: its edge on hover, and its whole self while it is being dragged. */
.alt-app .a-tb-card{
  transition:border-color var(--dur-micro, 140ms) linear,
             opacity      var(--dur-micro, 140ms) linear;
}
/* The row and topic actions, which are hidden until the row is hovered or focused. Same clock
   as every other hover-reveal in the suite. */
.alt-app .a-tb-topic-acts .a-btn,
.alt-app .a-tb-row-acts .a-btn{
  transition:opacity var(--a-quick) var(--a-ease);
}

/* ---------- "Bulk Import": which import is showing ----------
   Own classes, not a nested `.admin-tabs`/`.admin-tab` pair, which team-pane.js's `querySelectorAll` would sweep
   into the dialog's top-level tab switching. `.import-kind-panel[hidden]` needs no rule (CSS/base.css `[hidden]`). */
.alt-app #adminModal .import-kind-tabs{
  display:flex; gap:var(--a-sp-2); margin-bottom:var(--a-sp-12); border-bottom:1px solid var(--a-line);
}
.alt-app #adminModal .import-kind-tab{
  height:34px; padding:0 var(--a-sp-12); background:none; border:none; border-bottom:2px solid transparent; border-radius:0; cursor:pointer;
  color:var(--a-faint); font-family:var(--a-body); font-size:var(--a-fs-ctl); font-weight:var(--a-fw-ctl); line-height:var(--a-lh-ctl);
}
.alt-app #adminModal .import-kind-tab:hover{ color:var(--a-dim); }
.alt-app #adminModal .import-kind-tab.active{ color:var(--a-text); border-bottom-color:var(--a-blue); }
.alt-app #adminModal .import-kind-tab:focus-visible{ outline:var(--a-focus); outline-offset:var(--a-focus-inset); }

/* ---------- LINK TASK: the checklist item's picker (JS/alt/alt-team-task.js) ----------
   A `.a-modal` body, sized smaller than the task editor it opens from — this is a search-and-
   pick, not a form. `--a-*` tokens throughout, matching the modal system it lives inside rather
   than this file's own mixed classic/`--a-*` usage elsewhere. */
.tcl-link-dlg{ width:min(480px, 92vw); height:min(520px, 80vh); }
.tcl-link-dlg-h{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 16px; border-bottom:1px solid var(--a-line); flex:0 0 auto;
}
.tcl-link-dlg-h b{ font:600 var(--a-fs-14)/var(--a-lh-tight) var(--a-body); color:var(--a-text); }
.tcl-link-dlg-b{
  flex:1 1 auto; min-height:0; display:flex; flex-direction:column; gap:8px;
  padding:12px 16px; overflow:hidden;
}
.tcl-link-dlg-row{ display:flex; gap:8px; flex:0 0 auto; }
.tcl-link-dlg-row .a-input{ flex:1 1 auto; min-width:0; }
.tcl-link-dlg-row .a-select{ flex:0 0 auto; width:auto; }
.tcl-link-dlg-list{
  flex:1 1 auto; min-height:0; overflow:auto; display:flex; flex-direction:column; gap:2px;
}
.tcl-link-dlg-item{
  display:flex; flex-direction:column; align-items:flex-start; gap:2px; width:100%;
  text-align:left; padding:8px 10px; border-radius:var(--a-r-sm); border:1px solid transparent;
  background:transparent; cursor:pointer;
}
.tcl-link-dlg-item:hover,
.tcl-link-dlg-item:focus-visible{ background:var(--a-raised); border-color:var(--a-line); }
.tcl-link-dlg-item:focus-visible{ outline:var(--a-focus); outline-offset:var(--a-focus-inset); }
.tcl-link-dlg-item .t{ font-size:var(--a-fs-ctl); font-weight:600; color:var(--a-text); }
.tcl-link-dlg-item .meta{ font-size:var(--a-fs-11); color:var(--a-faint); }

/* ================= THE TEMPORARY-PASSWORD DIALOG (#tempPwOverlay) =================
   "Reset password" (team-admin.js, org-people.js) shows the one-off password here. Its rules lived only in
   admin.html and CSS/alt/alt-admin.css (not loaded on this page), so it drew as bare text. Same geometry as
   admin.html and colours as alt-admin.css's `.temp-pw-*`, tokens only. */
.alt-app .temp-pw-who{ font-size:var(--a-fs-ctl); color:var(--a-dim); margin-bottom:10px; }
.alt-app .temp-pw-value{
  font-family:var(--a-mono); font-size:var(--a-fs-18); letter-spacing:.09em; text-align:center;
  padding:13px 10px; user-select:all; word-break:break-all;
  background:var(--a-bg); border:1px solid var(--a-line); border-radius:var(--a-r-sm);
  color:var(--a-text);
}
.alt-app .temp-pw-actions{ display:flex; align-items:center; gap:10px; margin-top:10px; }
.alt-app .temp-pw-status{ font-size:var(--a-fs-ctl-sm); color:var(--a-green); }
.alt-app .temp-pw-note{
  margin-top:14px; padding:11px 13px; font-size:var(--a-fs-ctl-sm); line-height:var(--a-lh-ui);
  background:var(--a-amber-soft); border:1px solid var(--a-amber); color:var(--a-text);
  border-radius:var(--a-r-sm);
}

