/* EdOps App Design Language v2 — reference component CSS.
 *
 * The executable version of DESIGN_LANGUAGE.md §6. Every value comes from a token in
 * ../dist/tokens.css; nothing here is a literal color or size except 0, 1px hairlines and
 * percentages. Density-dependent components read --eo-density-*, so the same markup is
 * correct in a summary page (data-density="comfortable") and a workspace grid
 * (data-density="compact"|"dense").
 *
 * Treat this as the reference, not a dependency: Django apps fold the pieces they use into
 * static/themes/edops/components/*.css; React apps port them into their component library.
 * The class names ARE the contract — keep them when porting.
 */

/* ---------- base ---------- */
.eo-app { font: var(--eo-type-body); color: var(--eo-text-primary); background: var(--eo-surface-page);
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
/* Menus, select lists, popovers and tooltips render at the end of <body> (D39), outside .eo-app, so they carry .eo-portal for the same base. */
.eo-portal { font: var(--eo-type-body); color: var(--eo-text-primary); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; outline: none; }
.eo-app *, .eo-app *::before, .eo-app *::after, .eo-portal *, .eo-portal *::before, .eo-portal *::after { box-sizing: border-box; }
.eo-app :focus-visible, .eo-portal :focus-visible { outline: none; box-shadow: var(--eo-focus-ring); border-radius: var(--eo-radius-sm); }
.eo-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.eo-icon { width: var(--eo-density-icon); height: var(--eo-density-icon); flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.eo-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.eo-caps { font: var(--eo-type-label-caps); letter-spacing: var(--eo-type-label-caps-tracking); text-transform: uppercase; color: var(--eo-text-secondary); }

/* ---------- buttons ---------- */
.eo-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--eo-space-2);
  height: var(--eo-density-control); padding: 0 var(--eo-space-5); border-radius: var(--eo-radius-control);
  font: var(--eo-type-body-strong); font-size: var(--eo-density-text-table); white-space: nowrap; cursor: pointer;
  border: 1px solid var(--eo-action-secondary-border); background: var(--eo-action-secondary-bg); color: var(--eo-action-secondary-fg);
  transition: background var(--eo-motion-fast), border-color var(--eo-motion-fast), color var(--eo-motion-fast); }
.eo-btn:hover { background: var(--eo-action-secondary-bg-hover); border-color: var(--eo-border-strong); }
.eo-btn-primary { background: var(--eo-action-primary-bg); border-color: var(--eo-action-primary-bg); color: var(--eo-action-primary-fg); }
.eo-btn-primary:hover { background: var(--eo-action-primary-bg-hover); border-color: var(--eo-action-primary-bg-hover); }
.eo-btn-quiet { border-color: transparent; background: transparent; color: var(--eo-action-quiet-fg); }
.eo-btn-quiet:hover { background: var(--eo-surface-hover); color: var(--eo-text-primary); border-color: transparent; }
.eo-btn-danger { color: var(--eo-action-danger-fg); }
/* D72, Josh's Accounts: an outlined Add (blue text and rule on the card), and a row's small Delete (muted red). */
.eo-btn-outline { background: var(--eo-surface-card); border-color: var(--eo-action-outline-fg); color: var(--eo-action-outline-fg); font-weight: var(--eo-font-weight-bold); }
.eo-btn-outline:hover { background: var(--eo-blue-50); border-color: var(--eo-action-outline-fg); }
.eo-btn-outline-danger { background: var(--eo-surface-card); border-color: var(--eo-action-danger-quiet-rule); color: var(--eo-action-danger-quiet-fg); }
.eo-btn-outline-danger:hover { background: var(--eo-status-severe-bg); border-color: var(--eo-action-danger-quiet-fg); }
.eo-btn-inverse { background: var(--eo-surface-inverse); border-color: var(--eo-surface-inverse); color: var(--eo-text-inverse); }
.eo-btn-sm { height: var(--eo-density-control-sm); padding: 0 var(--eo-space-3); font: var(--eo-type-chip); font-family: var(--eo-font-family-text); }
.eo-btn[disabled] { opacity: 1; background: var(--eo-surface-sunken); border-color: var(--eo-surface-sunken); color: var(--eo-text-disabled); cursor: default; }
.eo-icon-btn { display: inline-grid; place-items: center; width: var(--eo-density-control); height: var(--eo-density-control);
  border: 0; border-radius: var(--eo-radius-control); background: transparent; color: var(--eo-text-secondary); cursor: pointer; }
.eo-icon-btn:hover { background: var(--eo-surface-hover); color: var(--eo-text-primary); }
.eo-icon-btn { position: relative; }
/* A count on an icon button (the menu bar's bell) sits on its top-right corner and never takes a click. */
.eo-icon-btn > .eo-badge { position: absolute; top: -3px; right: -3px; pointer-events: none; }
/* Quiet is the default. Standard sits on the control border, like a secondary button; danger turns red on hover only. */
.eo-icon-btn.is-standard { border: 1px solid var(--eo-action-secondary-border); background: var(--eo-action-secondary-bg); }
.eo-icon-btn.is-standard:hover { background: var(--eo-action-secondary-bg-hover); border-color: var(--eo-border-strong); }
.eo-icon-btn.is-danger:hover { color: var(--eo-action-danger-fg); }
.eo-icon-btn[aria-pressed="true"] { background: var(--eo-surface-selected); color: var(--eo-action-quiet-fg-active); }
.eo-icon-btn[disabled] { background: transparent; color: var(--eo-text-disabled); cursor: default; }
.eo-icon-btn.is-standard[disabled] { background: var(--eo-surface-sunken); border-color: var(--eo-surface-sunken); }
/* In a grid or table cell (D44): 2px shorter than the row (an in-cell input is 4px), so a row action never makes its row taller. */
.eo-grid td .eo-icon-btn, .eo-table td .eo-icon-btn { width: calc(var(--eo-density-row) - 2px); height: calc(var(--eo-density-row) - 2px); vertical-align: middle; }

/* ---------- filter track and segmented control (D46) ---------- */
/* One look, Josh's Forecast view options: a sunken track of segments, the chosen one raised. Filters (.eo-filters of
   .eo-filter, aria-pressed, a count after a divider) and view switches (.eo-segmented, a radio group) share it. */
.eo-filters, .eo-segmented { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: var(--eo-space-half);
  padding: calc(var(--eo-space-half) + 1px); border: 1px solid var(--eo-border-default); border-radius: var(--eo-radius-md);
  background: var(--eo-surface-sunken); box-shadow: inset 0 1px 1px var(--eo-black-a-4); }
.eo-filter, .eo-segmented button { display: inline-flex; align-items: center; justify-content: center; height: calc(var(--eo-density-control) - 2px);
  padding: 0 var(--eo-space-4); border: 0; border-radius: var(--eo-radius-control); background: transparent;
  font: var(--eo-type-segment); color: var(--eo-action-quiet-fg); cursor: pointer; white-space: nowrap;
  transition: background var(--eo-motion-fast), color var(--eo-motion-fast), box-shadow var(--eo-motion-fast); }
.eo-filter:hover, .eo-segmented button:hover { background: color-mix(in srgb, var(--eo-surface-card) 58%, transparent); color: var(--eo-text-primary); }
.eo-filter[aria-pressed="true"], .eo-segmented button[aria-pressed="true"], .eo-segmented button[aria-checked="true"] {
  background: var(--eo-surface-card); color: var(--eo-text-primary); box-shadow: 0 1px 2px var(--eo-black-a-14), 0 0 0 1px var(--eo-border-default); }
/* An option with nothing to show (a department with no revenue): disabled, never hidden, so the set keeps its shape (D33). */
.eo-filter:disabled, .eo-filter:disabled:hover, .eo-segmented button:disabled, .eo-segmented button:disabled:hover { background: transparent; color: var(--eo-text-disabled); cursor: default; }
.eo-filter, .eo-segmented button, .eo-tag, .eo-badge { letter-spacing: 0; }
/* The count follows a 1px divider. text.secondary, not tertiary: tertiary fails AA on the sunken track. */
/* D72, Josh's Accounts toolbar: a track can lead with its caption (HIERARCHY, TYPE) in 9px caps, ruled off from its segments. In
   the head's actual grey: his lighter one fails AA on the track. */
.eo-filters-caption { flex: none; display: inline-flex; align-items: center; height: calc(var(--eo-density-control) - 12px); padding: 0 var(--eo-space-3) 0 calc(var(--eo-space-1) + 1px);
  margin-right: var(--eo-space-1); border-right: 1px solid var(--eo-border-strong); font: var(--eo-type-label-caps); letter-spacing: var(--eo-type-label-caps-tracking);
  text-transform: uppercase; color: var(--eo-data-head-actual-fg); }
.eo-filter .eo-count { margin-left: calc(var(--eo-space-2) + 1px); padding-left: calc(var(--eo-space-2) + 1px); border-left: 1px solid var(--eo-border-strong);
  font-size: var(--eo-font-size-9); font-weight: var(--eo-font-weight-black); line-height: var(--eo-font-line-height-14); color: var(--eo-action-filter-count); }
/* D58, Josh's 2026-11-15 bar: counts in steel blue, a deeper blue on the chosen or hovered filter. */
.eo-filter:hover .eo-count, .eo-filter[aria-pressed="true"] .eo-count { color: var(--eo-action-filter-count-active); }
.eo-filter:disabled .eo-count { color: inherit; }
.eo-filter .eo-swatch { width: 8px; height: 8px; margin-right: var(--eo-space-2); border-radius: 2px; }

/* ---------- fields ---------- */
.eo-search, .eo-select, .eo-input { display: inline-flex; align-items: center; gap: var(--eo-space-2); height: var(--eo-density-control);
  padding: 0 var(--eo-space-4); border: 1px solid var(--eo-border-default); border-radius: var(--eo-radius-control);
  background: var(--eo-surface-card); color: var(--eo-text-primary); font: var(--eo-type-small); font-family: var(--eo-font-family-data); font-size: var(--eo-density-text-table); }
.eo-search { color: var(--eo-text-secondary); min-width: 200px; background: var(--eo-surface-search); } /* light blue at rest (D30); secondary, since tertiary is 4.45:1 on it */
.eo-search:focus-within, .eo-input:focus { border-color: var(--eo-border-focus); }
.eo-search:focus-within { background: var(--eo-surface-overlay); }
.eo-search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent;
  font: inherit; color: var(--eo-text-primary); } /* a real <input> inside the field: the field draws the box, the input none */
.eo-search input:focus-visible, .eo-input-group input:focus-visible { box-shadow: none; } /* the field's border is the focus signal */
.eo-search input::placeholder { color: var(--eo-text-secondary); opacity: 1; }
.eo-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.eo-select { position: relative; }
.eo-select:focus-within { border-color: var(--eo-border-focus); }
/* A real <select> or combobox <input> inside the field: the field draws the box and the chevron, the control none. */
.eo-select select, .eo-select input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent;
  font: inherit; color: inherit; appearance: none; cursor: pointer; }
.eo-select input { cursor: text; }
.eo-select select:focus-visible, .eo-select input:focus-visible { box-shadow: none; }
.eo-select:has(select:disabled), .eo-select:has(input:disabled), .eo-select:disabled { background: var(--eo-surface-sunken); border-color: var(--eo-surface-sunken); color: var(--eo-text-disabled); cursor: default; }
.eo-select-btn { position: absolute; top: 0; right: 0; bottom: 0; width: calc(var(--eo-space-4) * 2 + 6px); padding: 0; border: 0; background: transparent; cursor: pointer; }
.eo-select-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.eo-select-value[data-placeholder] { color: var(--eo-text-secondary); }
.eo-select::after { content: ""; width: 6px; height: 6px; margin-left: auto; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .7; }

/* ---------- pills, codes, tags ---------- */
.eo-pill { display: inline-flex; align-items: center; gap: var(--eo-space-1); height: 20px; padding: 0 var(--eo-space-3);
  border-radius: var(--eo-radius-pill); font: var(--eo-type-chip); letter-spacing: var(--eo-type-chip-tracking); white-space: nowrap;
  background: var(--eo-status-neutral-bg); color: var(--eo-status-neutral-fg); }
.eo-pill-good { background: var(--eo-status-good-bg); color: var(--eo-status-good-fg); }
.eo-pill-attention { background: var(--eo-status-attention-bg); color: var(--eo-status-attention-fg); }
.eo-pill-ahead { background: var(--eo-status-ahead-bg); color: var(--eo-status-ahead-fg); }
.eo-pill-severe { background: var(--eo-status-severe-bg); color: var(--eo-status-severe-fg); }
.eo-pill-discussion { background: var(--eo-discussion-bg); color: var(--eo-discussion-fg); }
/* A category (what kind of thing: Expense, Revenue, Salary) is never colored, so color always means "look at this" (D13). */
.eo-pill-category { background: transparent; color: var(--eo-text-secondary); box-shadow: inset 0 0 0 1px var(--eo-border-strong); }
.eo-pill-edited { background: var(--eo-data-edited-bg); color: var(--eo-data-edited-fg); }
.eo-code { display: inline-grid; place-items: center; min-width: 30px; height: 16px; padding: 0 var(--eo-space-1);
  border-radius: var(--eo-radius-sm); font: var(--eo-type-code); letter-spacing: var(--eo-type-code-tracking); text-transform: uppercase;
  background: var(--eo-surface-sunken); color: var(--eo-text-secondary); }
.eo-code-detail { background: var(--eo-blue-50); color: var(--eo-blue-525); } /* Josh's method badge (D52) */
.eo-code-manual { background: var(--eo-neutral-200); color: var(--eo-text-primary); }
.eo-code-quiet { background: transparent; color: var(--eo-text-disabled); }
/* D78, QC severity: a solid badge with its white numeral, 0 (informational) to 5. Never a text color (most steps fall under
   4.5:1 as text on the page or a selected row). The numeral is the meaning; give it a spoken name:
   <span class="eo-sev" data-sev="5"><span class="eo-sr-only">Severity </span>5</span>
   Josh's size (Make export 2026-11-20): 18px square, 3px corners, a 10px bold numeral, so it sits in a compact row. */
.eo-sev { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 2px;
  border-radius: var(--eo-radius-xs); font: var(--eo-type-meta-data); font-size: var(--eo-font-size-10); line-height: 18px; font-weight: var(--eo-font-weight-bold);
  color: var(--eo-severity-on); background: var(--eo-severity-0); }
.eo-sev[data-sev="1"] { background: var(--eo-severity-1); }
.eo-sev[data-sev="2"] { background: var(--eo-severity-2); }
.eo-sev[data-sev="3"] { background: var(--eo-severity-3); }
.eo-sev[data-sev="4"] { background: var(--eo-severity-4); }
.eo-sev[data-sev="5"] { background: var(--eo-severity-5); }
/* D68, Josh's method pill: a 17px pill in 9px bold Inter, its family in its fill: driven by detail, observed or typed, or set from
   the budget. */
.eo-code.eo-method { min-width: 27px; height: 17px; padding: 0 var(--eo-space-1); border-radius: var(--eo-radius-pill);
  font: var(--eo-font-weight-bold) var(--eo-font-size-9) / 17px var(--eo-font-family-data); letter-spacing: 0.02em;
  background: var(--eo-method-observed-bg); color: var(--eo-method-observed-fg); }
.eo-code.eo-method.eo-code-detail { background: var(--eo-method-detail-bg); color: var(--eo-method-detail-fg); }
.eo-code.eo-method.eo-code-budget { background: var(--eo-method-budget-bg); color: var(--eo-method-budget-fg); }
/* D75's 1px nudge left is gone (D81, Josh, 2026-11-21): the pill sits centered in its cell. */
/* D71: a code that's a button (it opens the method menu) is the same pill, with no button chrome. */
button.eo-code { border: 0; margin: 0; cursor: pointer; }
/* D71, Josh's Budget method pill: a method changed in this budget, the unsaved-edit amber with its ring (D13). */
.eo-code.eo-method.is-changed { background: var(--eo-data-edited-bg); color: var(--eo-data-plan-fg); box-shadow: inset 0 0 0 1px var(--eo-data-edited-mark); }
.eo-tag { display: inline-flex; align-items: center; gap: var(--eo-space-2); height: 24px; padding: 0 var(--eo-space-3);
  border-radius: var(--eo-radius-pill); background: var(--eo-surface-sunken); font: var(--eo-type-meta); color: var(--eo-text-primary); }
.eo-tag-scope { background: var(--eo-surface-selected); color: var(--eo-text-link); }
.eo-tag button { border: 0; background: none; padding: 0; color: inherit; opacity: .6; cursor: pointer; font: inherit; }
.eo-tag-add { background: transparent; border: 1px dashed var(--eo-border-strong); color: var(--eo-text-secondary); }
.eo-badge { display: inline-grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px; border-radius: var(--eo-radius-pill);
  background: var(--eo-mark-badge-bg); color: var(--eo-mark-badge-fg); font: var(--eo-type-code); }
.eo-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--eo-mark-star); }

/* ---------- switch, avatar ---------- */
.eo-switch { position: relative; width: 32px; height: 18px; border-radius: var(--eo-radius-pill); background: var(--eo-neutral-300); border: 0; cursor: pointer; flex: none; }
.eo-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--eo-white);
  box-shadow: 0 1px 2px var(--eo-black-a-14); transition: left var(--eo-motion-fast); }
.eo-switch[aria-checked="true"] { background: var(--eo-action-primary-bg); }
.eo-switch[aria-checked="true"]::after { left: 16px; }
.eo-switch:disabled { background: var(--eo-surface-sunken); cursor: default; }
.eo-switch[aria-checked="true"]:disabled { background: var(--eo-blue-200); }
/* A switch is always followed by its Yes/No state in words (§5.9). */
.eo-switch-row { display: inline-flex; align-items: center; gap: var(--eo-space-3); font: var(--eo-type-small); color: var(--eo-text-primary); }
.eo-switch-state { min-width: 3ch; color: var(--eo-text-secondary); }
.eo-avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--eo-sky-500);
  color: var(--eo-white); font: var(--eo-type-chip); flex: none; overflow: hidden; }
.eo-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- menu / popover ---------- */
.eo-menu { overflow: auto; min-width: 220px; padding: var(--eo-space-1); border: 1px solid var(--eo-border-default); border-radius: var(--eo-radius-md);
  background: var(--eo-surface-overlay); box-shadow: var(--eo-shadow-overlay); font: var(--eo-type-small); }
.eo-menu-list { outline: none; }
.eo-menu-list:focus-visible { box-shadow: none; }
.eo-menu-item-text { display: flex; flex-direction: column; min-width: 0; padding: var(--eo-space-2) 0; }
.eo-menu-item-desc { font: var(--eo-type-meta); color: var(--eo-text-secondary); font-weight: var(--eo-font-weight-regular); }
.eo-menu-title { padding: var(--eo-space-3) var(--eo-space-4) var(--eo-space-2); font: var(--eo-type-body-strong); font-size: var(--eo-font-size-13); border-bottom: 1px solid var(--eo-border-subtle); margin-bottom: var(--eo-space-1); }
.eo-menu-section { padding: var(--eo-space-3) var(--eo-space-4) var(--eo-space-1); }
.eo-menu-item { display: flex; align-items: center; gap: var(--eo-space-3); width: 100%; min-height: 28px; padding: 0 var(--eo-space-4);
  border: 0; border-radius: var(--eo-radius-control); background: transparent; color: var(--eo-text-primary); font: inherit; text-align: left; cursor: pointer; }
.eo-menu-item:hover { background: var(--eo-surface-hover); }
.eo-menu-item[aria-checked="true"], .eo-menu-item[aria-selected="true"] { background: var(--eo-surface-selected); color: var(--eo-action-quiet-fg-active); font-weight: var(--eo-font-weight-semibold); }
.eo-menu-item .eo-menu-aside { margin-left: auto; font: var(--eo-type-code); letter-spacing: var(--eo-type-code-tracking); color: var(--eo-text-tertiary); }
.eo-menu-item[aria-disabled="true"] { color: var(--eo-text-disabled); cursor: default; }
.eo-menu-item-danger { color: var(--eo-action-danger-fg); }
.eo-menu hr, .eo-menu [role="separator"] { border: 0; border-top: 1px solid var(--eo-border-subtle); margin: var(--eo-space-1) 0; }
.eo-menu-link { color: var(--eo-text-link); }

/* ---------- cards & KPI tiles ---------- */
.eo-card { background: var(--eo-surface-card); border: 1px solid var(--eo-border-default); border-radius: var(--eo-density-radius-card);
  box-shadow: var(--eo-shadow-raised); overflow: hidden; }
.eo-card-head { display: flex; align-items: center; gap: var(--eo-space-5); flex-wrap: wrap;
  padding: var(--eo-density-card-head-pad-y) var(--eo-density-card-pad); border-bottom: 1px solid var(--eo-border-default); }
.eo-card-title { font: var(--eo-type-title-card); margin: 0; }
.eo-card-title .eo-count { font-weight: var(--eo-font-weight-regular); color: var(--eo-text-tertiary); margin-left: var(--eo-space-1); }
.eo-card-hint { font: var(--eo-type-meta); color: var(--eo-text-secondary); margin: 2px 0 0; }
.eo-card-actions { margin-left: auto; display: flex; gap: var(--eo-space-3); align-items: center; }
.eo-card-body { padding: var(--eo-density-card-pad); }
/* Summary figures. There are no KPI tiles (D12): headline numbers live in a stat line under the page title,
   in a key-figures panel beside a chart, in the table's own filter control, and in a leading total row. */
.eo-stat { display: flex; flex-wrap: wrap; align-items: center; gap: var(--eo-space-2) var(--eo-space-6);
  padding: var(--eo-space-3) var(--eo-density-card-pad); background: var(--eo-surface-card);
  border: 1px solid var(--eo-border-default); border-radius: var(--eo-density-radius-card); }
.eo-stat-item { display: inline-flex; align-items: baseline; gap: var(--eo-space-2); white-space: nowrap; }
.eo-stat-label { font: var(--eo-type-meta); color: var(--eo-text-secondary); }
.eo-stat-value { font: var(--eo-type-figure); }
.eo-stat-sep { width: 1px; align-self: stretch; background: var(--eo-border-subtle); }
.eo-stat .eo-pace { flex: 0 0 120px; }
.eo-keyfigs { background: var(--eo-surface-card); border: 1px solid var(--eo-border-default); border-radius: var(--eo-density-radius-card); overflow: hidden; }
.eo-keyfigs-head { padding: var(--eo-space-3) var(--eo-space-5) var(--eo-space-1); font: var(--eo-type-meta); font-weight: var(--eo-font-weight-semibold); color: var(--eo-text-secondary); background: var(--eo-surface-muted); border-bottom: 1px solid var(--eo-border-subtle); }
.eo-keyfig { display: grid; grid-template-columns: 1fr auto; gap: 2px var(--eo-space-5); align-items: center; padding: var(--eo-space-3) var(--eo-space-5); border-bottom: 1px solid var(--eo-border-subtle); }
.eo-keyfig:last-child { border-bottom: 0; }
.eo-keyfig-label { font: var(--eo-type-small); color: var(--eo-text-primary); }
.eo-keyfig-note { font: var(--eo-type-meta); color: var(--eo-text-secondary); grid-column: 1; }
.eo-keyfig-value { font: var(--eo-type-figure); text-align: right; grid-column: 2; grid-row: 1 / span 2; }
/* D83 (Josh's Make, Departmental): the panel can open with its headline, the figure the chart is about, in place of its title row:
   a meta label (Spent through Dec), the figure in display type with its status pill, a meta line (53.9% of $175,000 annual budget)
   and the pace bar. The rows follow under a rule. */
.eo-keyfigs-lead { display: grid; gap: var(--eo-space-1); padding: var(--eo-space-4) var(--eo-space-5); border-bottom: 1px solid var(--eo-border-subtle); }
.eo-keyfigs-lead-label { font: var(--eo-type-meta); color: var(--eo-text-secondary); }
.eo-keyfigs-lead-value { display: flex; align-items: center; flex-wrap: wrap; gap: var(--eo-space-2) var(--eo-space-3); font: var(--eo-type-display);
  letter-spacing: var(--eo-type-display-tracking); color: var(--eo-text-primary); }
.eo-keyfigs-lead-note { font: var(--eo-type-meta); color: var(--eo-text-secondary); }
.eo-keyfigs-lead-note b { font-family: var(--eo-font-family-data); font-weight: var(--eo-font-weight-semibold); color: var(--eo-text-primary); }
.eo-keyfigs-lead .eo-pace { margin-top: var(--eo-space-2); }
/* A population split drawn as a thin line under the filter control that carries its counts. */
.eo-split { display: flex; gap: 2px; height: 4px; }
.eo-split > i { display: block; border-radius: 2px; }

/* ---------- measure bars ---------- */
/* Pace: progress toward a budget against where you should be by now (the marker). */
.eo-pace { position: relative; height: 8px; min-width: 80px; border-radius: var(--eo-radius-sm); background: var(--eo-status-track); } /* fill width is min(% used, 100%); never rescale the track (§5.14) */
.eo-pace > i { position: absolute; inset: 0 auto 0 0; border-radius: var(--eo-radius-sm); background: var(--eo-status-neutral-fill); }
.eo-pace > b { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--eo-status-marker); }
.eo-pace.is-good > i { background: var(--eo-status-good-fill); }
.eo-pace.is-attention > i { background: var(--eo-status-attention-fill); }
.eo-pace.is-ahead > i { background: var(--eo-status-ahead-fill); }
.eo-pace.is-severe > i { background: var(--eo-status-severe-fill); }
/* Variance to plan: a solid block, length ∝ |variance|, color = judgement. */
.eo-variance { display: inline-block; height: 8px; border-radius: 2px; min-width: 3px; background: var(--eo-status-good-fill); vertical-align: middle; }
.eo-variance.is-attention { background: var(--eo-status-attention-fill); }
.eo-variance.is-severe { background: var(--eo-status-severe-fill); }
.eo-variance.is-unfavorable { background: var(--eo-status-unfavorable-fill); } /* Forecasting's unfavorable (D47); Departmental's over budget stays attention */
/* Movement since prior forecast: a lollipop — deliberately unlike the solid variance block. */
.eo-movement { display: inline-flex; align-items: center; vertical-align: middle; }
/* D75 (Josh, 2026-11-19: "too thin"): a 3px stem and an 8px head. */
.eo-movement > i { height: 4px; background: currentColor; }
.eo-movement::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.eo-movement { color: var(--eo-status-good-fill); }
.eo-movement.is-attention { color: var(--eo-status-attention-fill); }
.eo-movement.is-unfavorable { color: var(--eo-status-unfavorable-fill); } /* Forecasting (D47) */
.eo-movement.is-down { flex-direction: row-reverse; }
/* Composition: how a population splits across statuses. */
.eo-composition { display: flex; height: 8px; border-radius: var(--eo-radius-sm); overflow: hidden; gap: 2px; background: var(--eo-surface-card); }
.eo-composition > i { display: block; }

/* ---------- summary table (comfortable tier) ---------- */
.eo-table { width: 100%; border-collapse: collapse; font: var(--eo-type-meta-data); font-size: var(--eo-density-text-table); line-height: var(--eo-density-text-table-lh); }
.eo-table th { height: var(--eo-density-row-header); padding: 0 var(--eo-density-cell-x); font: var(--eo-type-meta-data); font-size: var(--eo-density-text-meta);
  color: var(--eo-text-secondary); text-align: left; border-bottom: 1px solid var(--eo-border-default); white-space: nowrap; }
.eo-table td { height: var(--eo-density-row); padding: 0 var(--eo-density-cell-x); border-bottom: 1px solid var(--eo-border-subtle); }
.eo-table th:first-child, .eo-table td:first-child { padding-left: var(--eo-density-card-pad); }
.eo-table th:last-child, .eo-table td:last-child { padding-right: var(--eo-density-card-pad); }
.eo-table th.eo-num, .eo-table td.eo-num { text-align: right; }
/* Section rows (D18, revised by Josh 2026-11-06): slate band, slate rules above and below, and a 3px slate handle on the
   left edge. Slate, not the selection's blue.600, and section rows are never selectable, so the two handles can't be confused.
   Replaces the old .eo-group dark rule in summary tables, so both apps group rows the same way. */
.eo-table tr.eo-section td, .eo-grid tr.eo-section td { height: var(--eo-density-row-section); background: var(--eo-data-section-bg);
  font-weight: var(--eo-font-weight-bold); color: var(--eo-text-primary); border-top: 1px solid var(--eo-data-section-rule); border-bottom: 1px solid var(--eo-data-section-rule); }
.eo-grid tr.eo-section td.eo-c0 { box-shadow: inset 3px 0 0 var(--eo-data-section-bar); padding-left: calc(var(--eo-density-cell-x) + 3px); }
.eo-table tr.eo-section td:first-child { box-shadow: inset 3px 0 0 var(--eo-data-section-bar); padding-left: calc(var(--eo-density-card-pad) + 3px); }
.eo-table tr.eo-section td a { color: var(--eo-text-link); text-decoration: none; }
.eo-table td:first-child, .eo-grid td.eo-c0 { font-family: var(--eo-font-family-text); font-variant-numeric: normal; } /* the row label is text (§3.2) */
.eo-grid td.eo-c0 .eo-id { font-family: var(--eo-font-family-data); font-variant-numeric: tabular-nums; }
/* Totals (D19): two warm steps. A total is muted with a 1px rule; the grand total is sunken under a 2px ink "sum line". */
.eo-table tr.eo-total td { font-weight: var(--eo-font-weight-semibold); background: var(--eo-data-total-bg); border-top: 1px solid var(--eo-border-strong); color: var(--eo-text-primary); }
.eo-table tr.eo-grand-total td { font-weight: var(--eo-font-weight-bold); background: var(--eo-surface-sunken); border-top: 2px solid var(--eo-text-primary); border-bottom: 1px solid var(--eo-border-strong); color: var(--eo-text-primary); }
.eo-table tr.eo-grand-total.is-lead td { border-top: 0; border-bottom: 2px solid var(--eo-text-primary); } /* a leading district total (§5.13): the sum line sits under it */
.eo-table .eo-row-link { font-weight: var(--eo-font-weight-semibold); color: var(--eo-text-link); text-decoration: none; white-space: nowrap; }
.eo-table td .eo-pace { min-width: 96px; }
.eo-table .eo-id { color: var(--eo-text-secondary); margin-right: var(--eo-space-2); }
.eo-table .eo-muted { color: var(--eo-text-tertiary); }
.eo-table tr.eo-section .eo-muted { color: var(--eo-text-secondary); } /* tertiary misses AA on the section band */

/* ---------- workspace grid (compact / dense tiers) ---------- */
.eo-grid { border-collapse: separate; border-spacing: 0; font: var(--eo-type-grid); font-size: var(--eo-density-text-grid);
  line-height: var(--eo-density-text-table-lh); background: var(--eo-surface-card); }
.eo-grid th, .eo-grid td { height: var(--eo-density-row); padding: 0 var(--eo-density-cell-x); border-right: 1px solid var(--eo-border-subtle);
  border-bottom: 1px solid var(--eo-border-subtle); white-space: nowrap; text-align: right; }
/* Column-group bands and headers (D47, Josh's Forecast grid): each band in its group's color, 9px caps centered over its columns (D63); the header
   row on head-bg with the open months in blue on a blue wash, closed months in slate, the year's columns in bold ink. */
.eo-grid thead tr.eo-bands th { height: var(--eo-density-row-band); text-align: center; background: var(--eo-data-band-bg);
  font: var(--eo-type-label-caps); letter-spacing: var(--eo-type-label-caps-tracking); text-transform: uppercase; color: var(--eo-text-secondary); }
.eo-grid thead tr.eo-bands th[data-period="actual"] { color: var(--eo-data-head-actual-fg); }
.eo-grid thead tr.eo-bands th[data-period="forecast"] { background: var(--eo-data-forecast-band-bg); color: var(--eo-data-forecast-band-fg); }
.eo-grid thead tr.eo-bands th[data-period="plan"] { background: var(--eo-data-plan-band); color: var(--eo-data-plan-fg); }
.eo-grid thead tr.eo-bands th[data-period="workflow"] { color: var(--eo-data-workflow-fg); }
.eo-grid thead tr.eo-heads th { height: var(--eo-density-row-header); background: var(--eo-data-head-bg); color: var(--eo-text-secondary);
  font-weight: var(--eo-font-weight-bold); font-size: var(--eo-density-text-grid-head); border-bottom: 1px solid var(--eo-border-strong); vertical-align: middle; }
/* A rule atop each header (D47; 1px since D75): every column but the label carries it. D76 (Josh, 2026-11-20): one calm grey for all of
   them, not a period's color. */
.eo-grid thead tr.eo-heads th[data-period]:not(.eo-c0) { box-shadow: inset 0 1px 0 var(--eo-data-head-rule); } /* D72: a plain text column (no period) has no rule, as Josh's */
.eo-grid thead tr.eo-heads th[data-period="actual"] { color: var(--eo-data-head-actual-fg); } /* bold, as every header (D71, Josh) */
.eo-grid thead tr.eo-heads th[data-period="forecast"] { background: var(--eo-data-forecast-bg); color: var(--eo-data-forecast-fg); }
/* D71 (Josh, 2026-11-18): the current year (Budgeting's SY26, this year's forecast) is grey, under a grey band and rule, in regular
   weight; the years that are worked on are the blue ones. */
.eo-grid thead tr.eo-bands th[data-period="current"] { color: var(--eo-data-head-actual-fg); }
.eo-grid thead tr.eo-heads th[data-period="current"] { color: var(--eo-data-head-actual-fg); font-weight: var(--eo-font-weight-regular); }
.eo-grid td[data-period="current"] { color: var(--eo-data-actual-fg); }
.eo-grid thead tr.eo-heads th[data-period="workflow"] { color: var(--eo-data-workflow-fg); font-size: var(--eo-font-size-9); } /* Josh's 9px Method (D71) */
/* D63 (Adam, 2026-11-16): column headers are centered over their figures; the label column and text columns (.eo-left) keep left. */
.eo-grid thead tr.eo-heads th:not(.eo-c0):not(.eo-left) { text-align: center; }
/* D63: workflow headers read as one (Method over the badge and the notes icon), so their rule is a background that runs under
   the transparent rule between them, not an inset shadow that stops at it. */
.eo-grid thead tr.eo-heads th[data-period="workflow"] { box-shadow: none;
  background-image: linear-gradient(to bottom, var(--eo-data-head-rule) 1px, transparent 1px); }
/* D76 (Josh, 2026-11-20): under bands, the rule above the headers is the bands' own grey bottom edge, unbroken where a period's
   vertical rule meets it; the bands are divided in the same grey. D81 (Josh, 2026-11-21, which supersedes D76's "a period's rule
   starts below them"): a period's rule runs from the top of the bands down, so its band takes the rule (the light blue around the
   open forecast and the budget years, the slate before workflow, the strong rule of a .eo-boundary). */
.eo-grid thead tr.eo-bands th { border-right-color: var(--eo-data-head-rule); border-bottom-color: var(--eo-data-head-rule); }
.eo-grid thead tr.eo-bands ~ tr.eo-heads th, .eo-grid thead tr.eo-bands ~ tr.eo-heads th[data-period] { box-shadow: none; background-image: none; }
/* Body rows ruled in Josh's cool hairline (D47); the header keeps its strong rule. */
.eo-grid tbody td { border-bottom-color: var(--eo-data-row-rule); }
/* Period roles on body cells (D47): no tint; the figure's color carries the role. Plan figures are ink. */
.eo-grid td[data-period="actual"] { color: var(--eo-data-actual-fg); }
.eo-grid td[data-period="forecast"] { color: var(--eo-data-forecast-fg); }
.eo-grid td[data-period="plan"] { color: var(--eo-text-primary); }
/* D81 (Josh, 2026-11-21): a total row's figures are ink in every period, as the annual plan's; and a grid whose bands and rules
   already say which years are which (Budgeting's) sets .has-ink-figures to print every figure in ink. The id stays grey. An
   edit's own color (below) still wins. */
.eo-grid tr.eo-total td:where([data-period]), .eo-grid tr.eo-grand-total td:where([data-period]) { color: var(--eo-text-primary); }
.eo-grid.has-ink-figures td:where([data-period="actual"], [data-period="current"], [data-period="forecast"]) { color: var(--eo-text-primary); }
/* Rules (D47): 1px everywhere. A light-blue rule where the open forecast and the annual plan start (.eo-structural), slate before
   the workflow columns, warm subtle for the cell grid, and a 1px strong rule inside a block (.eo-boundary). */
.eo-grid .eo-structural { border-left: 1px solid var(--eo-data-forecast-boundary); }
.eo-grid .eo-structural[data-period="workflow"] { border-left-color: var(--eo-data-workflow-boundary); }
/* D76 (Josh, 2026-11-20, which supersedes D75's 2px ink): where the annual plan follows the open forecast, the same 1px light blue. */
.eo-grid [data-period="forecast"] + .eo-structural[data-period="plan"] { border-left: 1px solid var(--eo-data-plan-boundary); }
.eo-grid .eo-boundary { border-left: 1px solid var(--eo-border-strong); }
/* frozen first column: a 1px rule and the sticky edge's shadow, always */
.eo-grid .eo-c0 { position: sticky; left: 0; z-index: 1; text-align: left; background: var(--eo-surface-card); border-right: 1px solid var(--eo-border-subtle);
  box-shadow: var(--eo-shadow-sticky-edge); min-width: 220px; }
.eo-grid thead .eo-c0 { background: var(--eo-data-head-bg); z-index: 2; color: var(--eo-text-primary); }
.eo-grid thead tr.eo-bands .eo-c0 { background: var(--eo-data-band-bg); }
.eo-grid .eo-c0 .eo-id { color: var(--eo-data-id-fg); font-size: var(--eo-font-size-10); font-weight: var(--eo-font-weight-regular); margin-right: var(--eo-space-2); } /* D68, Josh's */
.eo-grid tr[aria-selected="true"] .eo-c0 .eo-id { color: var(--eo-data-id-fg-selected); }
/* D67, Josh's IS and BS: the number and the name read as one label, *4000 · Per-pupil alloc* (the Forecast grid keeps them apart). */
.eo-grid.has-dotted-ids .eo-c0 .eo-id { color: inherit; margin-right: 0; }
.eo-grid.has-dotted-ids .eo-c0 .eo-id::after { content: " · "; white-space: pre; }
/* D67, Josh's BS: a balance's date under its header (*PY YTD* over *4/30/25*), regular weight in the actual header grey (his
   lighter grey fails AA). */
.eo-grid thead tr.eo-heads th .eo-head-date { display: block; font-size: var(--eo-font-size-9); font-weight: var(--eo-font-weight-regular);
  line-height: 1.1; color: var(--eo-data-head-actual-fg); }
/* row hierarchy (D47): section = slate band; group = a warm band across every cell, bold slate-blue label;
   the grid's totals (Total revenue, Net income) = the slate band in bold, as Josh's grand totals */
.eo-grid tr.eo-section td { color: var(--eo-data-section-fg); }
.eo-grid tr.eo-section .eo-c0 { background: var(--eo-data-section-bg); }
.eo-grid tr.eo-group td { background: var(--eo-data-group-bg); font-weight: var(--eo-font-weight-bold); border-bottom-color: var(--eo-border-subtle); }
.eo-grid tr.eo-group td:not([data-period]) { color: var(--eo-data-group-fg); }
.eo-grid tr.eo-group .eo-c0 { color: var(--eo-data-group-fg); padding-left: calc(var(--eo-density-cell-x) + var(--eo-space-3)); }
.eo-grid tr.eo-account .eo-c0 { padding-left: calc(var(--eo-density-cell-x) + var(--eo-space-6)); }
/* Totals (D48, Josh's grid): a group's Total row is warm (data.grid-total-bg) in bold under a default rule, indented as its lines;
   a section's totals and net income (.eo-grand-total) are the section's slate band in bold, between slate rules. */
.eo-grid tr.eo-total td { font-weight: var(--eo-font-weight-bold); background: var(--eo-data-grid-total-bg); border-top: 1px solid var(--eo-border-default); }
.eo-grid tr.eo-total td:not([data-period]), .eo-grid tr.eo-total td[data-period="plan"] { color: var(--eo-text-primary); }
.eo-grid tr.eo-total .eo-c0 { padding-left: calc(var(--eo-density-cell-x) + var(--eo-space-6)); }
/* D75 (Josh, 2026-11-19: "the blue is confusing"): a section's totals and net income are a Total row's warm grey too, set apart by
   their rules and their bolder indent. */
.eo-grid tr.eo-grand-total td { font-weight: var(--eo-font-weight-bold); background: var(--eo-data-grid-total-bg); border-top: 1px solid var(--eo-border-strong); border-bottom: 1px solid var(--eo-border-strong); }
.eo-grid tr.eo-grand-total td:not([data-period]), .eo-grid tr.eo-grand-total td[data-period="plan"] { color: var(--eo-text-primary); }
.eo-grid tr.eo-grand-total .eo-c0 { padding-left: calc(var(--eo-density-cell-x) + var(--eo-space-3)); }
/* Fixed columns (D48): each column at its own width (MainGrid's colgroup), the table as wide as its columns, never stretched;
   a label too long for its column ends in an ellipsis. A figure never shrinks: its column widens to fit it (D73, which retires D48's 9px .is-long). */
.eo-grid.has-fixed-columns { table-layout: fixed; }
/* D49: the columns keep their widths, but every row runs on to the frame's edge, as Josh's do: a last cell made of CSS (no
   column, nothing for a screen reader) takes the width left over, and carries the row's band and rules. */
.eo-grid-frame > .eo-grid.has-fixed-columns { min-width: 100%; }
.eo-grid.has-fixed-columns tr::after { content: ""; display: table-cell; border-bottom: 1px solid var(--eo-data-row-rule); }
.eo-grid.has-fixed-columns thead tr.eo-bands::after { background: var(--eo-data-band-bg); border-bottom-color: var(--eo-border-subtle); }
.eo-grid.has-fixed-columns thead tr.eo-heads::after { background: var(--eo-data-head-bg); border-bottom-color: var(--eo-border-strong); }
.eo-grid.has-fixed-columns tr.eo-section::after { background: var(--eo-data-section-bg); border-top: 1px solid var(--eo-data-section-rule); border-bottom-color: var(--eo-data-section-rule); }
.eo-grid.has-fixed-columns tr.eo-group::after { background: var(--eo-data-group-bg); border-bottom-color: var(--eo-border-subtle); }
.eo-grid.has-fixed-columns tr.eo-total::after { background: var(--eo-data-grid-total-bg); border-top: 1px solid var(--eo-border-default); }
.eo-grid.has-fixed-columns tr.eo-grand-total::after { background: var(--eo-data-grid-total-bg); border-top: 1px solid var(--eo-border-strong); border-bottom-color: var(--eo-data-total-rule); }
.eo-grid.has-fixed-columns tr.eo-message::after { content: none; }
.eo-grid.has-fixed-columns .eo-c0 { min-width: 0; }
.eo-grid.has-fixed-columns th, .eo-grid.has-fixed-columns td { overflow: hidden; text-overflow: ellipsis; }
/* In fixed columns the sort arrow floats beside the label instead of taking room, so a 56px header keeps its alignment; bands
   keep 4px of padding (Josh's WORKFLOW fits its 66px); a workflow header may run over the blank header beside it (Method over notes). */
.eo-grid.has-fixed-columns .eo-sort { position: relative; }
.eo-grid.has-fixed-columns .eo-sort .eo-icon { position: absolute; right: 100%; top: 50%; transform: translateY(-50%); }
.eo-grid.has-fixed-columns th[aria-sort="ascending"] .eo-sort .eo-icon { transform: translateY(-50%) rotate(180deg); }
.eo-grid.has-fixed-columns thead tr.eo-bands th { padding: 0 var(--eo-space-1); text-overflow: clip; }
.eo-grid.has-fixed-columns thead tr.eo-heads th[data-period="workflow"] { overflow: visible; }
/* Workflow cells in fixed columns hug their contents (Josh's 44px method badge, 22px notes icon): 1px of padding, the icon
   centered, so a 20px icon button fits its 22px column instead of clipping into the next. */
.eo-grid.has-fixed-columns td[data-period="workflow"] { padding: 0 1px; }
.eo-grid.has-fixed-columns td[data-period="workflow"]:has(.eo-icon-btn) { text-align: center; }
/* Workflow columns read as one (Josh's single Method header over the badge and the notes icon): no rule between neighbours. */
.eo-grid [data-period="workflow"]:has(+ [data-period="workflow"]) { border-right-color: transparent; }
.eo-grid.has-fixed-columns thead tr.eo-heads th[data-period="workflow"].eo-structural { z-index: 3; } /* above the blank header its label runs over */
/* D71 (Josh, Budgeting): workflow columns pinned to the grid's right edge (.eo-pin-right; MainGrid sets each one's right offset),
   so the years scroll under them; the first is ruled on its left, as the frozen label column on its right. */
.eo-grid .eo-pin-right { position: sticky; z-index: 1; background: var(--eo-surface-card); }
.eo-grid thead .eo-pin-right { z-index: 2; background: var(--eo-data-head-bg); }
.eo-grid thead tr.eo-bands .eo-pin-right { background: var(--eo-data-band-bg); }
.eo-grid tr.eo-section .eo-pin-right { background: var(--eo-data-section-bg); }
.eo-grid tr.eo-group .eo-pin-right { background: var(--eo-data-group-bg); }
.eo-grid tr.eo-total .eo-pin-right { background: var(--eo-data-grid-total-bg); }
.eo-grid tr.eo-grand-total .eo-pin-right { background: var(--eo-data-grid-total-bg); }
.eo-grid .eo-pin-right.eo-pin-edge { border-left: 1px solid var(--eo-data-workflow-boundary); }
/* Months (actual and forecast figures) sit closer to their rules: Josh's 3px. */
.eo-grid td[data-period="actual"], .eo-grid td[data-period="forecast"], .eo-grid th[data-period="actual"], .eo-grid th[data-period="forecast"] { padding: 0 calc(var(--eo-space-half) + 1px); }
/* D61: a figure that changed from the period before (Enrollment's quarters, Josh's): a warm fill, bold ink, a 2px left rule and a
   6px dot, green when it rose and red when it fell. The cell says which in words for a screen reader (.eo-sr-only). */
.eo-grid td.is-changed { background: var(--eo-data-change-bg); color: var(--eo-data-change-fg); font-weight: var(--eo-font-weight-bold);
  box-shadow: inset 2px 0 0 var(--eo-data-change-rule); }
.eo-change-mark { display: inline-block; width: 6px; height: 6px; margin-right: var(--eo-space-1); border-radius: 50%; vertical-align: 1px;
  background: var(--eo-data-change-rule); }
td[data-change="up"] > .eo-change-mark { background: var(--eo-data-change-up); }
td[data-change="down"] > .eo-change-mark { background: var(--eo-data-change-down); }
/* D62: a run of rows that belong together (a position handoff, Josh's Staff grid): edged above and below, a 1px line down the
   label cell's indent joining them; the row's leading mark sits over the line. */
.eo-grid tr[data-joined] td.eo-c0::after { content: ""; position: absolute; left: 13px; width: 1px; background: var(--eo-data-joined-rule); }
.eo-grid tr[data-joined="first"] td.eo-c0::after { top: 50%; bottom: -1px; }
.eo-grid tr[data-joined="middle"] td.eo-c0::after { top: -1px; bottom: -1px; }
.eo-grid tr[data-joined="last"] td.eo-c0::after { top: -1px; bottom: 50%; }
.eo-grid tr[data-joined] td.eo-c0 > :not(.eo-star) { position: relative; z-index: 1; }
.eo-grid tr[data-joined="first"] td { border-top: 1px solid var(--eo-data-joined-edge); }
.eo-grid tr[data-joined="last"] td { border-bottom-color: var(--eo-data-joined-edge); }
/* D60: a balance-sheet change below zero is red (Josh's), the one exception to §4.5's ink negatives. */
.eo-grid td.is-decrease { color: var(--eo-data-decrease-fg); }
/* Row labels in the grid are Inter, as Josh's, an account's name at medium weight (amends §3.2 for the grid only). */
.eo-grid td.eo-c0 { font-family: var(--eo-font-family-data); }
.eo-grid tr.eo-account td.eo-c0 { font-weight: var(--eo-font-weight-medium); }
/* states */
/* Hover (D17; D71, Josh 2026-11-18: one grey across the row, the forecast months too). Surface only. */
.eo-grid tr.eo-account:hover td, .eo-table tbody tr:hover td { background: var(--eo-data-row-hover); }
/* Selected (D17, Make's SelectedRow in brand blue): one band across the grid, so it still reads when the handle is scrolled off.
   Selection wins over hover; an edited cell keeps its ring. */
.eo-grid tr[aria-selected="true"] td, .eo-grid tr[aria-selected="true"]:hover td { background: var(--eo-data-row-selected);
  border-bottom-color: var(--eo-data-row-selected-rule); box-shadow: inset 0 1px 0 var(--eo-data-row-selected-rule); }
/* D49: Josh's selected row is ruled above and below without growing (the top rule is drawn inside the cell), and its label keeps
   its ink beside a 4px handle. Not bold (D68, Josh 2026-11-17). */
/* D71: the hovered selected row keeps its handle (the hover rule above outranked it, so a row just clicked showed none). */
.eo-grid tr[aria-selected="true"] .eo-c0, .eo-grid tr[aria-selected="true"]:hover .eo-c0 { color: var(--eo-text-primary);
  box-shadow: inset 4px 0 0 var(--eo-data-row-selected-handle), inset 0 1px 0 var(--eo-data-row-selected-rule), var(--eo-shadow-sticky-edge); }
/* D68: on the selected row an edited cell is its tint alone; an amber ring against the blue rules read badly (Josh). */
.eo-grid tr[aria-selected="true"]::after { background: var(--eo-data-row-selected); border-bottom-color: var(--eo-data-row-selected-rule);
  box-shadow: inset 0 1px 0 var(--eo-data-row-selected-rule); }
/* D84 (Josh's grid change treatment, Make export 2026-11-30; supersedes D76's and D81's rings): a change is one quiet gold band.
   Every changed month, typed or moved, is the pale fill with a 1px gold rule above and below; a run of them reads as one band, with
   an outer edge only where it starts and ends (.is-run-start, .is-run-end). The month typed in (.is-edited, the direct edit) is gold
   text; the months it or a method change moved (.is-edited-run, propagated) stay ink. A direct edit cleared to zero (.is-cleared)
   is a dashed gold outline, so an intentional clear isn't read as missing. The Total a change reaches (.is-edited-sum, annual
   impact) is gold text with a 2px gold bar on its left. The cell says which in words for a screen reader. Selection keeps all of it. */
.eo-grid td.is-edited, .eo-grid td.is-edited-run, .eo-grid td.is-edited-sum { background: var(--eo-data-edited-bg); }
.eo-grid td.is-edited, .eo-grid td.is-edited-sum { color: var(--eo-data-edited-cell-fg); }
.eo-grid td.is-edited-run { color: var(--eo-data-edited-run-fg); }
.eo-grid td:is(.is-edited, .is-edited-run) { box-shadow: inset 0 1px 0 var(--eo-data-edited-rule), inset 0 -1px 0 var(--eo-data-edited-rule); }
.eo-grid td:is(.is-edited, .is-edited-run).is-run-start { box-shadow: inset 1px 0 0 var(--eo-data-edited-rule), inset 0 1px 0 var(--eo-data-edited-rule), inset 0 -1px 0 var(--eo-data-edited-rule); }
.eo-grid td:is(.is-edited, .is-edited-run).is-run-end { box-shadow: inset -1px 0 0 var(--eo-data-edited-rule), inset 0 1px 0 var(--eo-data-edited-rule), inset 0 -1px 0 var(--eo-data-edited-rule); }
.eo-grid td:is(.is-edited, .is-edited-run).is-run-start.is-run-end { box-shadow: inset 0 0 0 1px var(--eo-data-edited-rule); }
.eo-grid td.is-edited.is-cleared { box-shadow: none; outline: 1px dashed var(--eo-data-edited-cleared-rule); outline-offset: -1px; }
.eo-grid td.is-edited-sum { box-shadow: inset 2px 0 0 var(--eo-data-edited-sum-rule); }
/* D84: a changed line's 6px gold marker beside its identity, for scanning; the cells still carry the change. */
.eo-changed-mark { display: inline-block; flex: none; width: 6px; height: 6px; margin-right: var(--eo-space-2); border-radius: 50%; vertical-align: middle;
  background: var(--eo-data-changed-mark); box-shadow: 0 0 0 2px var(--eo-data-changed-mark-halo); }
.eo-grid td input { width: 100%; height: calc(var(--eo-density-row) - 4px); border: 1px solid transparent; border-radius: var(--eo-radius-xs);
  background: transparent; font: inherit; color: inherit; text-align: right; padding: 0 var(--eo-space-1); }
.eo-grid td input:hover { border-color: var(--eo-border-default); }
.eo-grid td input:focus { outline: none; border-color: var(--eo-border-focus); background: var(--eo-surface-card); box-shadow: 0 0 0 2px var(--eo-blue-100); }
.eo-grid .eo-left { text-align: left; }
/* D75 (Josh, 2026-11-19): Budgeting's method columns, header and pill, centered in the column. */
.eo-grid .eo-center { text-align: center; }
/* D72, Josh's Accounts grid. Numbers in a column of their own (MainGrid's idWidth), so names line up; an added account's dot before
   it; a mapping typed over in place with a bare select (a chevron, no box) or, where it can't be changed, read-only in the ID grey
   (his lighter grey fails AA). */
.eo-grid .eo-c0 .eo-id { display: inline-block; min-width: var(--eo-grid-id-width, 0); }
.eo-custom-dot { display: inline-block; box-sizing: border-box; width: 8px; height: 8px; margin-right: var(--eo-space-2); border-radius: 50%; vertical-align: 0;
  background: var(--eo-mark-custom-account); border: 1px solid var(--eo-mark-custom-account-rule); box-shadow: 0 0 0 2px var(--eo-mark-custom-account-halo); }
.eo-cell-select { appearance: none; width: 100%; height: calc(var(--eo-density-row) - 2px); padding: 0 var(--eo-space-6) 0 0; border: 0; border-radius: var(--eo-radius-xs);
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2.5 3.75 5 6.25l2.5-2.5' fill='none' stroke='%23687585' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 4px center / 10px;
  font: inherit; color: var(--eo-text-primary); text-overflow: ellipsis; cursor: pointer; }
.eo-cell-select:hover { background-color: var(--eo-surface-hover); }
.eo-cell-select:focus-visible { outline: none; box-shadow: var(--eo-focus-ring); }
.eo-cell-select:disabled { cursor: default; }
.eo-grid .eo-cell-readonly { color: var(--eo-data-id-fg); }
/* D72: a button in a grid row fits the row (Josh's 21px Delete in 9px), so the row keeps its height. */
.eo-grid td .eo-btn-sm { height: calc(var(--eo-density-row) - 1px); padding: 0 calc(var(--eo-space-2) - 1px); border-radius: var(--eo-radius-control);
  font: var(--eo-font-weight-semibold) var(--eo-font-size-9) / 1 var(--eo-font-family-data); }
.eo-grid .eo-note { color: var(--eo-mark-note-empty); }
/* D71, D75 (Josh: "just a hint that it could be there"): an empty note is his faint #F7F8F9 until its row is hovered or it has focus. */
.eo-grid tr:hover .eo-note:not(.has-notes) { color: var(--eo-text-secondary); } /* D75: Josh's #F7F8F9 is itself the hint */
.eo-grid tr:hover .eo-note, .eo-grid .eo-note:focus-visible { opacity: 1; }
/* The board-presentation star (D49, Josh's): a button in the label cell's indent. Empty, it shows only as a ring while the row is
   hovered or its label has focus; starred, a 6px dot with a halo; in a presentation group, the group's number in a ring. */
.eo-star { position: relative; flex: none; width: 18px; height: 18px; padding: 0; border: 0; display: inline-grid; place-items: center; vertical-align: middle;
  background: transparent; color: var(--eo-mark-star); cursor: pointer; font: var(--eo-font-weight-bold) var(--eo-font-size-9) / 1 var(--eo-font-family-data); }
span.eo-star { cursor: default; } /* .is-on: the mark alone, for someone who can't edit */
.eo-star::before { content: ""; width: 6px; height: 6px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--eo-mark-star-empty); opacity: 0; }
.eo-grid tr:hover .eo-c0 > .eo-star::before, .eo-grid .eo-c0:focus > .eo-star::before, .eo-drawer-head > .eo-star::before { opacity: 1; }
.eo-star:hover::before { box-shadow: inset 0 0 0 1.5px var(--eo-mark-star); }
.eo-star:is([aria-pressed="true"], .is-on)::before { background: var(--eo-mark-star); box-shadow: 0 0 0 2px var(--eo-mark-star-halo); opacity: 1; }
.eo-star.has-group::before { content: none; }
.eo-star.has-group::after { content: ""; position: absolute; inset: 2px; border: 1.5px solid currentColor; border-radius: 50%; }
/* D68: in the drawer's head the dot is Josh's 10px (the grid keeps 6px). */
.eo-drawer-head > .eo-star::before { width: 10px; height: 10px; }
.eo-star:focus-visible { outline: 2px solid var(--eo-border-focus); outline-offset: -2px; border-radius: 50%; }
/* In the grid it sits in the label cell's indent. */
.eo-grid .eo-c0 > .eo-star { position: absolute; left: 4px; top: 50%; margin-top: -9px; }
.eo-grid .eo-note.has-notes { color: var(--eo-mark-note-icon); }
/* The grid's frame and its working parts (§5.16). The frame scrolls both ways; the header rows and the frozen label column
   stay put. Inside the frame the grid stacks its own parts (body label 1, header 2, the corner 3); nothing outside sees them.
   D82: the frame is positioned, so whatever a cell places absolutely (a screen-reader label, say) is clipped by it and never
   stretches the shell's content: the grid's own scrollbar is the window's only vertical one. */
.eo-grid-frame { position: relative; flex: 1 1 auto; min-height: 160px; overflow: auto; background: var(--eo-surface-card); border: 1px solid var(--eo-border-default);
  border-radius: var(--eo-density-radius-card); }
.eo-grid-frame > .eo-grid { min-width: 100%; }
.eo-grid thead th { position: sticky; top: 0; z-index: 2; }
.eo-grid.has-bands thead tr.eo-heads th { top: var(--eo-density-row-band); }
.eo-grid thead th.eo-c0 { z-index: 3; }
/* The active cell: one tab stop for the whole grid, arrow keys move it. An outline, so it never fights the edited ring or
   the selection handle (both box-shadows). */
.eo-grid td[tabindex], .eo-grid th[tabindex] { outline: none; }
/* The active cell's ring is for the keyboard (D68): a click selects the row, or edits an open month, without it. */
.eo-grid td[tabindex]:focus-visible, .eo-grid th[tabindex]:focus-visible { outline: 2px solid var(--eo-border-focus); outline-offset: -2px; }
.eo-grid td.is-editable { cursor: text; }
.eo-grid td.is-editable:not(.is-edited):hover { box-shadow: inset 0 0 0 1px var(--eo-border-default); }
.eo-grid td.is-editing { padding: 0 var(--eo-space-1); }
/* Group rows (D18a): a disclosure triangle before the label, as the specimen's ▾. The cell takes the keyboard; the triangle is for the pointer. */
.eo-disclosure { display: inline-grid; place-items: center; width: 16px; height: 16px; margin: 0 var(--eo-space-1) 0 0; padding: 0;
  border: 0; border-radius: var(--eo-radius-xs); background: transparent; color: inherit; cursor: pointer; vertical-align: -3px; }
.eo-disclosure .eo-icon { transition: transform var(--eo-motion-fast); }
.eo-disclosure[aria-expanded="false"] .eo-icon { transform: rotate(-90deg); }
.eo-disclosure:hover { background: var(--eo-surface-muted); }
[data-density="dense"] .eo-disclosure { width: 14px; height: 14px; vertical-align: -2px; }
.eo-grid tr.eo-section .eo-c0 .eo-muted { color: var(--eo-text-secondary); font-weight: var(--eo-font-weight-regular); margin-left: var(--eo-space-1); }
/* Sorting: the header names the column; the arrow shows only on the sorted one (and on hover, where sorting is offered). */
.eo-sort { display: inline-flex; align-items: center; gap: var(--eo-space-1); padding: 0; border: 0; background: transparent; font: inherit; color: inherit; cursor: pointer; }
.eo-sort:focus-visible { outline: none; box-shadow: var(--eo-focus-ring); border-radius: var(--eo-radius-xs); }
.eo-grid th[aria-sort="none"] .eo-sort .eo-icon { visibility: hidden; }
.eo-grid th[aria-sort="none"] .eo-sort:hover .eo-icon, .eo-grid th[aria-sort="none"] .eo-sort:focus-visible .eo-icon { visibility: visible; color: var(--eo-text-tertiary); }
.eo-grid th[aria-sort="ascending"] .eo-sort .eo-icon { transform: rotate(180deg); }
/* The label column's width grip (its width persists per user). A separator: arrow keys resize it. */
.eo-col-grip { position: absolute; top: 0; right: -2px; bottom: 0; width: 7px; cursor: col-resize; touch-action: none; }
.eo-col-grip:hover, .eo-col-grip:focus-visible, .eo-col-grip.is-dragging { outline: none; box-shadow: inset -3px 0 0 var(--eo-border-focus); }
/* Once the user has set it, the label column holds that width (--eo-grid-label-width, set on the grid) and long names truncate. */
.eo-grid.has-label-width .eo-c0 { width: var(--eo-grid-label-width, auto); min-width: var(--eo-grid-label-width, 0); max-width: var(--eo-grid-label-width, none); overflow: hidden; text-overflow: ellipsis; }
/* Rows that hold a message (empty, error) or a skeleton keep the headers and column widths (§5.23, D32). The message sits at
   the frame's left edge whatever the scroll, as wide as the frame (--eo-grid-viewport, measured). */
.eo-grid tr.eo-message td { height: auto; padding: 0; white-space: normal; text-align: left; background: var(--eo-surface-card); border-right: 0; }
.eo-grid tr.eo-message td > * { position: sticky; left: 0; width: var(--eo-grid-viewport, 100%); box-sizing: border-box; }
.eo-grid .eo-skeleton { width: 48px; margin-left: auto; }
.eo-grid .eo-c0 .eo-skeleton { width: 60%; margin-left: 0; }

/* ---------- toolbar (D15) ---------- */
/* One toolbar for both apps: standalone above a workspace, or .is-attached as the head of the card it filters.
   Never wraps. Under 1120px the title block hides; then the scroll region scrolls sideways, with a fade and an arrow
   button on any side that has more. A few lines of script toggle .can-start/.can-end from scrollLeft and make the
   arrows scroll by about 70% of the visible width (see §5.17). */
.eo-toolbar { display: flex; align-items: center; gap: var(--eo-space-6); flex-wrap: nowrap; min-width: 0;
  min-height: calc(var(--eo-density-control) + 2 * var(--eo-space-3)); padding: var(--eo-space-half) var(--eo-space-3) var(--eo-space-half) var(--eo-space-5);
  border: 1px solid transparent; } /* flat on the page (D43): no fill, border or shadow */
.eo-toolbar.is-attached { background: var(--eo-surface-card); border-color: var(--eo-border-default) var(--eo-border-default) var(--eo-border-subtle);
  border-radius: var(--eo-density-radius-card) var(--eo-density-radius-card) 0 0; } /* heads a card (D16) */
/* The title block and the scope block are the same 196px column (D46): Inter bold over a one-line subtitle, no divider. */
.eo-toolbar-id { display: grid; flex: none; min-width: 196px; max-width: 320px; padding-right: var(--eo-space-4); }
.eo-toolbar-title { font: var(--eo-type-scope-title); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eo-toolbar-sub { font: var(--eo-type-meta); font-size: var(--eo-density-text-meta); color: var(--eo-text-secondary); margin: 0; white-space: nowrap; }
.eo-toolbar-scroll { position: relative; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; }
.eo-toolbar-track { display: flex; align-items: center; gap: var(--eo-space-6); min-width: 0; flex: 1 1 auto; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.eo-toolbar-track::-webkit-scrollbar { display: none; }
.eo-toolbar-track > * { flex: none; }
.eo-toolbar-scroll::before, .eo-toolbar-scroll::after { content: ""; position: absolute; top: 0; bottom: 0; width: 48px; pointer-events: none; opacity: 0; transition: opacity var(--eo-motion-fast); z-index: 1; }
.eo-toolbar-scroll::before { left: 0; background: linear-gradient(to right, var(--eo-surface-page) 45%, transparent); }
.eo-toolbar-scroll::after { right: 0; background: linear-gradient(to left, var(--eo-surface-page) 45%, transparent); }
.eo-toolbar.is-attached .eo-toolbar-scroll::before { background: linear-gradient(to right, var(--eo-surface-card) 45%, transparent); }
.eo-toolbar.is-attached .eo-toolbar-scroll::after { background: linear-gradient(to left, var(--eo-surface-card) 45%, transparent); }
.eo-toolbar-scroll.can-start::before, .eo-toolbar-scroll.can-end::after { opacity: 1; }
.eo-toolbar-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; display: none; place-items: center; width: 24px; height: 24px; padding: 0;
  border: 1px solid var(--eo-border-default); border-radius: 50%; background: var(--eo-surface-overlay); color: var(--eo-text-primary); box-shadow: var(--eo-shadow-overlay); cursor: pointer; }
.eo-toolbar-arrow[data-dir="start"] { left: 2px; } .eo-toolbar-arrow[data-dir="end"] { right: 2px; }
.eo-toolbar-scroll.can-start .eo-toolbar-arrow[data-dir="start"], .eo-toolbar-scroll.can-end .eo-toolbar-arrow[data-dir="end"] { display: grid; }
/* Action bar additions (D35, D46): the scope block, then one to three adjustable KPI slots, then local controls. The slots are selects, not tiles (D12). */
.eo-scope { flex: none; display: grid; width: 196px; padding-right: var(--eo-space-4); }
.eo-scope .eo-select { justify-self: start; max-width: 100%; height: auto; min-height: 0; padding: 0; border: 0; background: transparent; font: var(--eo-type-scope-title); }
.eo-scope .eo-select select { field-sizing: content; } /* as wide as the chosen campus, so the chevron sits beside it */
.eo-scope-sub { font: var(--eo-type-meta); font-size: var(--eo-density-text-meta); color: var(--eo-text-secondary); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* KPI slots (D46, after D35/D43): a 108px slot, label over figure; the label carries the comparison (*vs budget*). The whole slot is the picker:
   a transparent native select covers it. A short divider sits between slots. */
/* Three 108px slots' worth of room, always (D46): with one or two KPIs shown, the rest stays blank and nothing after it moves. */
.eo-kpis { flex: none; display: flex; align-items: center; gap: calc(var(--eo-space-6) + var(--eo-space-half)); width: calc(3 * 108px + 2 * (var(--eo-space-6) + var(--eo-space-half))); }
.eo-kpi { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: var(--eo-space-half); width: 108px; min-width: 0;
  padding: 1px calc(var(--eo-space-1) + 1px); border: 1px solid transparent; border-radius: var(--eo-radius-md); white-space: nowrap;
  transition: background var(--eo-motion-fast); }
.eo-kpi + .eo-kpi::before { content: ""; position: absolute; left: calc(-1 * var(--eo-space-4)); top: 50%; height: 24px; border-left: 1px solid var(--eo-border-strong); transform: translateY(-50%); pointer-events: none; }
.eo-kpi:has(select):hover { background: var(--eo-border-subtle); }
/* D75 (Josh, 2026-11-19): a picked KPI shows the hover tint, not the focus ring (the toolbar clipped it to two ochre brackets). */
.eo-kpi:has(select:focus-visible) { background: var(--eo-border-subtle); }
.eo-kpi > select { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; font: var(--eo-type-meta-data); }
.eo-kpi-pick { display: inline-flex; align-items: center; gap: var(--eo-space-1); max-width: 100%; overflow: hidden; text-overflow: ellipsis;
  font: var(--eo-type-kpi-label); letter-spacing: var(--eo-type-kpi-label-tracking); color: var(--eo-text-secondary); }
.eo-kpi:has(select) .eo-kpi-pick::after { content: ""; flex: none; border-left: 3.5px solid transparent; border-right: 3.5px solid transparent; border-top: 4px solid currentColor; opacity: .75; } /* a small filled caret */
.eo-kpi-value { font: var(--eo-type-kpi-value); letter-spacing: var(--eo-type-kpi-value-tracking); color: var(--eo-text-primary); }
.eo-kpi-value[data-tone="good"] { color: var(--eo-status-good-fg); }
.eo-kpi-value[data-tone="attention"] { color: var(--eo-status-attention-fg); }
.eo-kpi-value[data-tone="severe"] { color: var(--eo-status-severe-fg); }
.eo-kpi-value[data-tone="unfavorable"] { color: var(--eo-status-unfavorable-fg); } /* Forecasting (D47): unfavorable is red there */
.eo-kpi-value[data-tone="neutral"] { color: var(--eo-status-neutral-fg); }
/* A slot still loading holds its place with a skeleton the width of a figure; an empty one shows – (D20, D32). */
.eo-kpi-value .eo-skeleton { width: 5ch; height: 16px; margin: 1px 0; }
.eo-toolbar-end { margin-left: auto; display: flex; align-items: center; gap: var(--eo-space-3); flex: none; } /* pending-work chips, then actions; the primary action last */
@media (max-width: 1120px) { .eo-toolbar-id { display: none; } }
@media (prefers-reduced-motion: reduce) { .eo-toolbar-track { scroll-behavior: auto; } }

/* ---------- page header (summary tier) ---------- */
.eo-back { display: inline-flex; align-items: center; gap: var(--eo-space-2); font: var(--eo-type-body-strong); font-size: var(--eo-font-size-13); color: var(--eo-text-link); text-decoration: none; }
.eo-h1 { font: var(--eo-type-title-page); letter-spacing: var(--eo-type-title-page-tracking); margin: var(--eo-space-3) 0 var(--eo-space-2); }
.eo-lede { font: var(--eo-type-body); color: var(--eo-text-secondary); margin: 0; }
.eo-lede b { color: var(--eo-text-primary); }

/* ---------- charts (D26–D29): blue is this year, budget is neutral; bars per period, lines for running totals ---------- */
.eo-chart-legend { display: flex; flex-wrap: wrap; gap: var(--eo-space-1) 14px; font: var(--eo-type-meta); color: var(--eo-text-secondary); }
.eo-chart-legend > * { display: inline-flex; align-items: center; gap: var(--eo-space-2); white-space: nowrap; }
button.eo-chart-legend-item { border: 0; background: none; padding: var(--eo-space-1) 0; font: inherit; color: inherit; cursor: pointer; }
button.eo-chart-legend-item[aria-pressed="false"] { color: var(--eo-text-disabled); }
button.eo-chart-legend-item[aria-pressed="false"] .eo-key { opacity: .35; }
/* Swatch drawn as its mark. */
.eo-key { display: inline-block; flex: none; }
.eo-key-line, .eo-key-dot, .eo-key-dash { width: 16px; height: 0; border-top: 2px solid var(--eo-key, var(--eo-chart-actual)); }
.eo-key-dot { border-top-style: dotted; }
.eo-key-dash { border-top-style: dashed; }
.eo-key-bar { width: 10px; height: 10px; border-radius: 2px; background: var(--eo-key, var(--eo-chart-actual)); }
.eo-key-hatch { width: 10px; height: 10px; border-radius: 2px;
  background: repeating-linear-gradient(135deg, var(--eo-chart-forecast) 0 2px, var(--eo-chart-forecast-hatch) 2px 5px); }
.eo-key-outline { width: 10px; height: 10px; border: 1px dashed var(--eo-chart-prior-outline); background: var(--eo-chart-prior-fill); }
.eo-key-tick { width: 12px; height: 3px; border-radius: 1px; background: var(--eo-chart-ledger); }
/* The mirror chart (D50, Josh's line drawer): one row under a fixed-width grid's columns, so each period's bars sit under its
   column. A legend in the label cell; per period the actual (solid) or forecast (hatched) bar beside the budget's, 18px each,
   on an 86px baseline; the prior forecast a dashed box behind both; the ledger so far a 2px line; a flagged period marked. */
.eo-mirror-chart { table-layout: fixed; border-collapse: collapse; width: max-content; background: var(--eo-surface-card); }
.eo-mirror-chart td { height: 96px; padding: 0 var(--eo-space-half); vertical-align: middle; border-right: 1px solid var(--eo-border-subtle); }
.eo-mirror-chart td.eo-structural { border-left: 1px solid var(--eo-data-forecast-boundary); }
.eo-mirror-chart .eo-mirror-legend { padding: var(--eo-space-2) var(--eo-space-2) var(--eo-space-1); vertical-align: top; }
.eo-mirror-legend .eo-chart-legend { gap: var(--eo-space-1) var(--eo-space-4); font-size: var(--eo-font-size-10); }
.eo-mirror-legend .eo-chart-legend > * { gap: var(--eo-space-1); }
.eo-mirror-scale { margin-top: var(--eo-space-2); text-align: right; font: var(--eo-type-meta-data); font-size: var(--eo-font-size-10); color: var(--eo-text-tertiary); }
.eo-key-bar.is-budget { background: var(--eo-chart-budget-bar); }
.eo-bars { position: relative; height: 86px; display: flex; justify-content: center; align-items: flex-end; gap: 3px; border-bottom: 1px solid var(--eo-chart-grid); }
.eo-bar { position: relative; width: 18px; border-radius: 2px 2px 0 0; }
.eo-bar.is-actual { background: var(--eo-chart-actual); }
.eo-bar.is-forecast { background: repeating-linear-gradient(135deg, var(--eo-chart-forecast) 0 3px, var(--eo-chart-forecast-hatch) 3px 6px);
  box-shadow: inset 1px 1px 0 var(--eo-chart-forecast); }
.eo-bar.is-budget { background: var(--eo-chart-budget-bar); }
.eo-bar-ghost { position: absolute; left: 50%; bottom: 0; width: 40px; margin-left: -20px; border: 1px dashed var(--eo-chart-prior-outline); border-bottom: 0;
  border-radius: 2px 2px 0 0; background: var(--eo-chart-prior-fill); }
.eo-bar-ledger { position: absolute; left: var(--eo-space-1); right: var(--eo-space-1); height: 0; border-top: 2px solid var(--eo-chart-ledger); }
.eo-bar-flag { position: absolute; top: 0; right: 0; width: 14px; height: 14px; display: grid; place-items: center; border-radius: 50%;
  background: var(--eo-status-severe-fg); color: var(--eo-text-inverse); font: var(--eo-font-weight-bold) var(--eo-font-size-10) / 1 var(--eo-font-family-data); }
.eo-bar-flag::before { content: ""; position: absolute; right: 7px; top: 6px; width: 34px; height: 2px; background: var(--eo-status-severe-fg); }
.eo-chart-end { font: var(--eo-type-meta-data); font-weight: var(--eo-font-weight-semibold); color: var(--eo-text-primary); }
.eo-chart-gap-tag { display: inline-flex; align-items: center; gap: var(--eo-space-1); height: 20px; padding: 0 var(--eo-space-3); border-radius: var(--eo-radius-pill);
  background: var(--eo-surface-overlay); border: 1px solid var(--eo-status-attention-fill); color: var(--eo-status-attention-fg);
  font: var(--eo-type-chip); white-space: nowrap; }
.eo-chart-gap-tag.is-good { border-color: var(--eo-status-good-fill); color: var(--eo-status-good-fg); }
.eo-chart-tooltip { position: absolute; z-index: var(--eo-layer-chart-tooltip); min-width: 160px; padding: var(--eo-space-2) var(--eo-space-3); pointer-events: none;
  background: var(--eo-surface-overlay); border: 1px solid var(--eo-border-default); border-radius: var(--eo-radius-sm); box-shadow: var(--eo-shadow-overlay);
  font: var(--eo-type-meta); color: var(--eo-text-secondary); }
.eo-chart-tooltip-title { font-weight: var(--eo-font-weight-semibold); color: var(--eo-text-primary); margin-bottom: var(--eo-space-1); }
.eo-chart-tooltip-row { display: flex; align-items: center; gap: var(--eo-space-2); padding: 1px 0; }
.eo-chart-tooltip-row b { margin-left: auto; font: var(--eo-type-meta-data); font-weight: var(--eo-font-weight-semibold); color: var(--eo-text-primary); }
.eo-chart-tooltip-diff { border-top: 1px solid var(--eo-border-subtle); margin-top: var(--eo-space-1); padding-top: var(--eo-space-1); }

/* ---------- overlays (D21–D25): four kinds, no others ---------- */
/* The workspace (§5.18): the grid's frame over the drawer, in one positioned column. The drawer is a flex sibling, so opening
   it shortens the frame; the side panel overlays the workspace's right edge. */
.eo-workspace { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: var(--eo-space-3); }
.eo-workspace > .eo-drawer { max-height: calc(100% - 160px - var(--eo-space-3)); } /* the grid keeps at least 160px */
/* Drawer: a tray under the grid. It's a flex sibling of the grid card, so the grid gets shorter; nothing is covered.
   D50 (Josh's line drawer): full width under the grid, ruled only on top. An app whose workspace is padded sets
   --eo-drawer-bleed to that padding: the drawer then runs to the app's edges and its cards start where the grid's frame does,
   so a driver table at the grid's column widths puts each month under its column. */
.eo-drawer { flex: 0 0 auto; height: 400px; min-height: 160px; margin: 0 calc(-1 * var(--eo-drawer-bleed, 0px)); display: flex; flex-direction: column; min-width: 0;
  background: var(--eo-surface-page); border-top: 1px solid var(--eo-border-strong); border-radius: var(--eo-radius-card) var(--eo-radius-card) 0 0;
  box-shadow: var(--eo-shadow-drawer); padding: 2px var(--eo-drawer-bleed, var(--eo-space-5)) var(--eo-space-5); animation: eo-rise var(--eo-motion-base); }
.eo-drawer-grip { flex: none; height: 12px; display: grid; place-items: center; cursor: row-resize; }
.eo-drawer-grip::before { content: ""; width: 52px; height: 3px; border-radius: 2px; background: var(--eo-border-strong); }
.eo-drawer-grip:focus-visible { outline: none; box-shadow: var(--eo-focus-ring); border-radius: var(--eo-radius-xs); }
/* The header heads the evidence column (beside the rail, not over it): the line's mark, *4010 · Per-pupil alloc*, then the
   tools, whose first field (the report comment) takes the width left. */
.eo-drawer-head { flex: none; display: flex; align-items: center; gap: var(--eo-space-3); min-height: var(--eo-density-control); padding: 0 var(--eo-space-1) var(--eo-space-2);
  border-bottom: 1px solid var(--eo-border-default); white-space: nowrap; }
.eo-drawer-main > .eo-drawer-head { position: sticky; top: 0; z-index: 2; background: var(--eo-surface-page); } /* stays while the cards scroll */
.eo-drawer-title { font: var(--eo-type-title-card); font-size: var(--eo-font-size-14); color: var(--eo-data-section-fg); margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.eo-drawer-title .eo-id { font: inherit; color: inherit; }
.eo-drawer-title .eo-id::after { content: " · "; }
.eo-drawer-tools { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: var(--eo-space-3); min-width: 0; }
.eo-drawer-tools > :first-child:is(.eo-field, .eo-input, .eo-input-group) { flex: 1; min-width: 0; }
.eo-drawer-tools > .eo-field:first-child .eo-input { width: 100%; }
/* D81 (Josh): the drawer's text field (the board note) adds no ring when chosen: its own border turning the focus blue says so,
   as a search field's does. */
.eo-drawer-tools .eo-input:focus-visible { box-shadow: none; }
.eo-drawer-body { flex: 1; min-height: 0; display: flex; gap: var(--eo-space-5); }
.eo-drawer-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--eo-space-3); overflow: auto; }
.eo-drawer-main > :not(.eo-drawer-head), .eo-drawer-rail { flex: none; background: var(--eo-surface-card); border: 1px solid var(--eo-border-default); border-radius: var(--eo-radius-sm); }
.eo-drawer-main > .eo-grid-frame { min-height: 0; } /* a driver table in the drawer is as tall as its rows */
/* The method rail (D50, Josh's): a 174px card headed by a tab strip (its name, underlined, and the drawer's close); its choices
   are compact, a group's label in small caps over one-line options, the chosen one on an ochre wash. */
.eo-drawer-rail { flex: 0 0 174px; display: flex; flex-direction: column; overflow: hidden; }
.eo-drawer-rail-head { flex: none; display: flex; align-items: stretch; justify-content: space-between; height: 30px; padding: 0 var(--eo-space-half) 0 var(--eo-space-2);
  background: var(--eo-data-group-bg); border-bottom: 1px solid var(--eo-border-default); }
.eo-drawer-rail-title { display: flex; align-items: center; margin: 0; padding: 0 var(--eo-space-2); border-bottom: 2px solid var(--eo-data-row-selected-handle);
  font: var(--eo-type-label-caps); font-size: var(--eo-font-size-10); letter-spacing: 0; text-transform: none; color: var(--eo-text-primary); }
.eo-drawer-rail-head .eo-icon-btn { align-self: center; }
.eo-drawer-rail-body { flex: 1; min-height: 0; overflow: auto; padding: var(--eo-space-1); display: grid; align-content: start; gap: var(--eo-space-3); }
/* Grid items and a fieldset are as wide as their content unless told; here a long option name ends in an ellipsis. */
.eo-drawer-rail-body > *, .eo-drawer-rail .eo-choices, .eo-drawer-rail .eo-radio { min-width: 0; }
.eo-drawer-rail .eo-choices { gap: 1px; }
.eo-drawer-rail .eo-radio > span:not(.eo-radio-hint) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.eo-drawer-rail .eo-choices > legend { padding: var(--eo-space-2) var(--eo-space-2) 1px; margin-bottom: 1px; width: 100%; border-top: 1px solid var(--eo-border-subtle);
  font: var(--eo-type-label-caps); letter-spacing: var(--eo-type-label-caps-tracking); text-transform: uppercase; color: var(--eo-text-tertiary); }
.eo-drawer-rail .eo-choices:first-child > legend { border-top: 0; }
.eo-drawer-rail .eo-radio { align-items: center; gap: var(--eo-space-2); min-height: 23px; padding: 0 var(--eo-space-1);
  font-family: var(--eo-font-family-text); font-size: var(--eo-font-size-12); line-height: 1.25; white-space: nowrap; border: 1px solid transparent; border-radius: var(--eo-radius-control); }
.eo-drawer-rail .eo-radio input { width: 12px; height: 12px; margin: 0; }
.eo-drawer-rail .eo-radio input:checked { background: radial-gradient(circle, var(--eo-action-primary-bg) 0 3px, var(--eo-surface-overlay) 3.5px); }
.eo-drawer-rail .eo-radio:has(input:checked) { background: var(--eo-data-choice-selected-bg); border-color: var(--eo-data-choice-selected-rule); }
/* The option's name says it; its hint stays for a screen reader and is the option's tooltip. */
.eo-drawer-rail .eo-radio-hint { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.eo-drawer-rail .eo-field { padding: 0 var(--eo-space-1); }
@media (max-width: 1100px) { .eo-drawer-body { flex-direction: column; overflow: auto; } .eo-drawer-rail { flex-basis: auto; } }

/* Side panel (D53, Josh's Forecasting panel; restores D24's docking and supersedes D36): a 320px tray docked beside the app's
   content (`.eo-dock`), full height under the app header, so the action bar, grid and drawer narrow and nothing is covered.
   Its accents are warm: the chosen tab an ochre chip, author avatars ochre, Post brown. */
.eo-dock { flex: 1 1 auto; display: flex; min-height: 0; min-width: 0; height: 100%; }
.eo-dock-main { flex: 1 1 auto; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.eo-side-panel { position: relative; flex: 0 0 var(--eo-side-panel-width, 320px); width: var(--eo-side-panel-width, 320px); z-index: var(--eo-layer-panel); display: flex; flex-direction: column; min-height: 0; background: var(--eo-surface-page);
  border-left: 1px solid var(--eo-border-strong); box-shadow: var(--eo-shadow-side); animation: eo-slide var(--eo-motion-base); font-family: var(--eo-font-family-text); }
.eo-side-panel-tabs { flex: none; display: flex; align-items: center; gap: var(--eo-space-1); min-height: 45px; padding: var(--eo-space-2) 7px;
  background: var(--eo-surface-card); border-bottom: 1px solid var(--eo-border-default); }
.eo-side-panel-tabs .eo-tab { height: 31px; padding: 0 var(--eo-space-4); border: 1px solid transparent; border-radius: var(--eo-radius-control);
  font: var(--eo-font-weight-semibold) var(--eo-font-size-12) / 1 var(--eo-font-family-text); color: var(--eo-text-secondary); }
.eo-side-panel-tabs .eo-tab[aria-selected="true"] { background: var(--eo-panel-tab-selected-bg); border-color: var(--eo-panel-tab-selected-rule); color: var(--eo-panel-tab-selected-fg); }
.eo-side-panel-tablist { display: flex; align-items: center; gap: var(--eo-space-1); min-width: 0; }
.eo-side-panel-title { font: var(--eo-type-title-card); margin: 0 0 0 var(--eo-space-2); }
.eo-side-panel-close { margin-left: auto; width: 28px; height: 28px; background: var(--eo-surface-overlay); border: 1px solid var(--eo-chart-budget-bar); border-radius: var(--eo-radius-control); }
.eo-side-panel-close:hover { color: var(--eo-action-danger-fg); background: var(--eo-status-severe-bg); }
.eo-side-panel-subject { flex: none; display: flex; align-items: center; gap: var(--eo-space-2); min-height: 42px; padding: 7px 11px;
  font: var(--eo-font-weight-bold) var(--eo-font-size-12) / 1.3 var(--eo-font-family-text); color: var(--eo-text-primary);
  background: var(--eo-data-group-bg); border-bottom: 1px solid var(--eo-border-default); }
.eo-side-panel-subject .eo-id { color: inherit; font-family: var(--eo-font-family-data); } /* the number in Inter, the name in DM Sans */
.eo-side-panel-subject .eo-id::after { content: " ·"; } /* the flex gap is the space after it */
.eo-side-panel-subject > :last-child:not(:first-child) { margin-left: auto; }
.eo-side-panel-body { flex: 1; min-height: 0; overflow: auto; padding: 11px; display: grid; gap: var(--eo-space-3); align-content: start; }
.eo-side-panel-body > * { min-width: 0; } /* a grid item is as wide as its content unless told; the panel is 320px */
.eo-side-panel-composer { flex: none; padding: 9px 10px 10px; background: var(--eo-surface-card); border-top: 1px solid var(--eo-border-default); }
/* In the panel, filters are Josh's pills (D53, an exception to D46's track): equal widths, the chosen one dark. */
.eo-side-panel .eo-filters { display: flex; flex-wrap: wrap; gap: var(--eo-space-1); padding: 0 0 var(--eo-space-half); border: 0; border-radius: 0; background: none; box-shadow: none; }
.eo-side-panel .eo-filter { flex: 1 1 0; min-width: max-content; height: 24px; padding: 0 var(--eo-space-2); border: 1px solid var(--eo-panel-filter-rule); border-radius: var(--eo-radius-pill);
  background: var(--eo-surface-card); font: var(--eo-font-weight-bold) var(--eo-font-size-10) / 1 var(--eo-font-family-text); color: var(--eo-text-secondary); box-shadow: none; }
.eo-side-panel .eo-filter:hover { background: var(--eo-surface-card); color: var(--eo-text-primary); }
.eo-side-panel .eo-filter[aria-pressed="true"] { background: var(--eo-panel-filter-on-bg); border-color: var(--eo-panel-filter-on-bg); color: var(--eo-text-inverse); box-shadow: none; }
.eo-side-panel .eo-filter .eo-count { margin-left: var(--eo-space-1); padding-left: 0; border-left: 0; }
.eo-side-panel .eo-filter[aria-pressed="true"] .eo-count { color: inherit; } /* white on the dark pill */
.eo-side-panel .eo-filter .eo-swatch { border-radius: 50%; } /* Josh's tier dots */
/* The resize grip (D65, Josh's): a 10px strip straddling the panel's left edge; drag it, or focus it and use the arrow keys. The app
   sets the width as --eo-side-panel-width on the panel. Its pill shows while the strip is hovered, focused or dragged. */
.eo-side-panel-grip { position: absolute; left: -5px; top: 0; bottom: 0; width: 10px; z-index: 1; cursor: ew-resize; touch-action: none; outline: none; }
.eo-side-panel-grip::after { content: ""; position: absolute; left: 3px; top: 50%; width: 4px; height: 44px; margin-top: -22px; border-radius: 2px;
  background: var(--eo-panel-grip); opacity: 0; transition: opacity var(--eo-motion-fast); }
.eo-side-panel-grip:hover::after, .eo-side-panel-grip.is-dragging::after, .eo-side-panel-grip:focus-visible::after { opacity: 1; }
.eo-side-panel-grip:focus-visible::after { box-shadow: 0 0 0 2px var(--eo-border-focus); }
.eo-side-panel.is-resizing { animation: none; user-select: none; }
.eo-side-panel.is-modal .eo-side-panel-grip { display: none; }
/* A scope switch in the subject band (History's *This item / Everything*, D59) takes the band's full width under the name. */
.eo-side-panel-subject:has(> .eo-segmented) { flex-wrap: wrap; }
.eo-side-panel-subject > .eo-segmented { flex: 1 0 100%; margin-left: 0; }
.eo-side-panel-subject > .eo-segmented button { flex: 1; }
/* Below about 600px the side panel is a full-width modal tray over the scrim, with focus held inside it. */
.eo-side-panel.is-modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: var(--eo-layer-modal); width: 100%; border-left: 0; }

/* Textarea, radio group, inline notice (D37). Prose is DM Sans (type-small); the field itself matches .eo-input. */
.eo-textarea { display: block; width: 100%; min-height: calc(3 * var(--eo-density-control)); padding: var(--eo-space-3) var(--eo-space-4); resize: vertical;
  border: 1px solid var(--eo-border-default); border-radius: var(--eo-radius-control); background: var(--eo-surface-card); color: var(--eo-text-primary); font: var(--eo-type-small); }
.eo-textarea::placeholder { color: var(--eo-text-secondary); opacity: 1; }
.eo-textarea:focus { outline: 0; border-color: var(--eo-border-focus); box-shadow: var(--eo-focus-ring); }
.eo-textarea:disabled { color: var(--eo-text-disabled); background: var(--eo-surface-muted); resize: none; }
.eo-choices { display: grid; gap: var(--eo-space-1); margin: 0; padding: 0; border: 0; }
.eo-choices.is-inline { display: flex; flex-wrap: wrap; gap: var(--eo-space-2) var(--eo-space-6); }
.eo-radio { display: flex; align-items: flex-start; gap: var(--eo-space-3); min-height: var(--eo-density-control-sm); padding: var(--eo-space-1) 0; font: var(--eo-type-small); color: var(--eo-text-primary); cursor: pointer; }
.eo-radio input { appearance: none; flex: none; width: 16px; height: 16px; margin: 1px 0 0; border: 1.5px solid var(--eo-border-strong); border-radius: 50%; background: var(--eo-surface-overlay); cursor: inherit; }
.eo-radio input:hover { border-color: var(--eo-text-secondary); }
.eo-radio input:checked { border-color: var(--eo-action-primary-bg); background: radial-gradient(circle, var(--eo-action-primary-bg) 0 4px, var(--eo-surface-overlay) 4.5px); }
.eo-radio input:focus-visible { outline: none; box-shadow: var(--eo-focus-ring); }
.eo-radio input:disabled { background: var(--eo-surface-muted); border-color: var(--eo-border-default); }
.eo-radio:has(input:disabled) { color: var(--eo-text-disabled); cursor: default; }
.eo-radio-hint { display: block; font: var(--eo-type-meta); font-size: var(--eo-density-text-meta); color: var(--eo-text-secondary); }
/* D80: a checkbox, to pick any number from a list (Josh's Run Tests picks the tests to run). The radio's look in a square: a 16px box on
   surface.overlay with a border.strong ring; checked or partly checked (a select-all over some) fills blue.500 with a white check or dash.
   The native input stays, invisible over the whole label, so keys, forms and screen readers work as a checkbox's do. */
.eo-check { position: relative; display: inline-flex; align-items: flex-start; gap: var(--eo-space-3); min-height: var(--eo-density-control-sm); padding: var(--eo-space-1) 0;
  font: var(--eo-type-small); color: var(--eo-text-primary); cursor: pointer; }
.eo-check > input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; }
.eo-check-box { flex: none; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-top: 1px; border: 1.5px solid var(--eo-border-strong);
  border-radius: var(--eo-radius-xs); background: var(--eo-surface-overlay); color: var(--eo-text-inverse); }
.eo-check-box > svg { display: none; width: 12px; height: 12px; }
.eo-check:hover .eo-check-box { border-color: var(--eo-text-secondary); }
.eo-check > input:checked + .eo-check-box, .eo-check > input:indeterminate + .eo-check-box { border-color: var(--eo-action-primary-bg); background: var(--eo-action-primary-bg); }
.eo-check > input:checked:not(:indeterminate) + .eo-check-box > .eo-check-mark, .eo-check > input:indeterminate + .eo-check-box > .eo-check-dash { display: block; }
.eo-check > input:focus-visible + .eo-check-box { box-shadow: var(--eo-focus-ring); }
.eo-check > input:disabled + .eo-check-box { background: var(--eo-surface-muted); border-color: var(--eo-border-default); }
.eo-check > input:disabled:checked + .eo-check-box { background: var(--eo-border-default); }
.eo-check:has(> input:disabled) { color: var(--eo-text-disabled); cursor: default; }
/* In a grid or table cell, the box alone (its name is the input's aria-label), centred in the row. */
.eo-check.is-bare { gap: 0; min-height: 0; padding: 0; vertical-align: middle; }
.eo-check.is-bare .eo-check-box { margin-top: 0; }
.eo-notice { display: flex; align-items: center; gap: var(--eo-space-3); min-height: var(--eo-density-control); padding: var(--eo-space-1) var(--eo-space-3) var(--eo-space-1) var(--eo-space-5);
  border: 1px solid var(--eo-border-default); border-radius: var(--eo-radius-control); background: var(--eo-surface-muted); color: var(--eo-text-primary); font: var(--eo-type-small); }
.eo-notice-text { flex: 1; min-width: 0; }
.eo-notice .eo-btn { flex: none; }
/* D70 (approved by Josh, 2026-11-19): a warning is the same inline notice in the attention tone: something to look at, nothing blocked. Never amber
   (unsaved edits, D13) and never red (errors and severe, §4.2). The triangle and the words carry it; the tint and the 3px rule only reinforce
   (§8). Persistent while its cause holds: it is not a confirmation, so it has no Undo and isn't dismissed by saving. */
.eo-notice[data-tone="attention"] { background: var(--eo-status-attention-bg); border-color: var(--eo-status-attention-fill); box-shadow: inset 3px 0 0 var(--eo-status-attention-fill); padding-left: var(--eo-space-4); }
.eo-notice[data-tone="attention"] > .eo-icon { color: var(--eo-status-attention-fg); }

/* App header (D34): TabBar at the start, MenuBar at the end. 48px, never wraps; tabs scroll sideways when they don't fit. */
.eo-app-header { display: flex; align-items: flex-end; gap: var(--eo-space-5); min-height: 48px; min-width: 0; padding: var(--eo-space-3) var(--eo-space-6) 0; background: var(--eo-surface-card); border-bottom: 1px solid var(--eo-border-default); }
.eo-tabs { display: flex; align-items: flex-end; gap: 0; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.eo-tabs::-webkit-scrollbar { display: none; }
.eo-tab { flex: none; text-decoration: none; display: inline-flex; align-items: center; gap: var(--eo-space-2); height: 35px; padding: 0 var(--eo-space-5); border: 0; border-bottom: 2px solid transparent; border-radius: var(--eo-radius-md) var(--eo-radius-md) 0 0; background: transparent;
  font: var(--eo-type-small); font-weight: var(--eo-font-weight-semibold); color: var(--eo-tab-fg); cursor: pointer; white-space: nowrap; }
.eo-tab:hover { background: var(--eo-tab-bg-hover); color: var(--eo-tab-fg-hover); }
.eo-tab[aria-selected="true"], .eo-tab[aria-current="page"] { background: var(--eo-tab-bg-selected); color: var(--eo-tab-fg-selected); border-bottom-color: var(--eo-tab-rule-selected); }
/* D72: a utility's tabs (Accounts, Settings) select in Josh's blue; the apps' stay gold. */
.eo-tabs[data-tone="utility"] .eo-tab:is([aria-selected="true"], [aria-current="page"]) { background: var(--eo-tab-utility-bg-selected); color: var(--eo-tab-utility-fg-selected);
  border-bottom-color: var(--eo-tab-utility-rule-selected); }
.eo-tab:focus-visible { outline: none; box-shadow: var(--eo-focus-ring); }
.eo-tab:disabled, .eo-tab[aria-disabled="true"] { color: var(--eo-text-disabled); background: transparent; cursor: default; }
.eo-tab .eo-icon { width: 16px; height: 16px; }
.eo-menubar { flex: none; margin-left: auto; align-self: center; display: flex; align-items: center; gap: var(--eo-space-3); padding-bottom: var(--eo-space-3); }
.eo-menubar .eo-icon-btn.is-quiet { border-color: transparent; background: transparent; }
.eo-menubar-label { font-weight: var(--eo-font-weight-regular); color: var(--eo-text-secondary); }
.eo-menubar-select { display: inline-flex; align-items: center; gap: var(--eo-space-2); font: var(--eo-type-meta); color: var(--eo-text-secondary); }
.eo-menubar-select .eo-select { height: var(--eo-density-control); }
.eo-menubar .eo-icon-btn.is-quiet:hover, .eo-menubar .eo-icon-btn.is-quiet[aria-expanded="true"] { background: var(--eo-surface-overlay); border-color: var(--eo-border-default); }
/* D54, Josh's AppHeader, TabBar and MenuBar (his component spec §4, §5.2, §5.3), in DM Sans (D55); 7px 14px padding; tabs 12.5px
   with 13px sides and 7px corners; menu controls 30px, 7px corners, 12px bold, a cool rule and a faint shadow; icon controls
   30px and borderless until hovered or open. */
.eo-app-header { gap: var(--eo-space-5); padding: 7px 14px 0; font-family: var(--eo-font-family-text); }
.eo-app-header .eo-tab { padding: 0 13px; border-radius: 7px 7px 0 0; font: var(--eo-font-weight-semibold) var(--eo-font-size-12-5) / 1 var(--eo-font-family-text); }
.eo-menubar { gap: 7px; }
.eo-menubar .eo-btn, .eo-menubar .eo-select { height: 30px; padding: 0 10px; border: 1px solid var(--eo-header-control-rule); border-radius: 7px; background: var(--eo-surface-overlay);
  font: var(--eo-font-weight-bold) var(--eo-font-size-12) / 1 var(--eo-font-family-text); box-shadow: 0 1px 1px var(--eo-black-a-4); }
.eo-menubar .eo-btn:hover, .eo-menubar .eo-btn[aria-expanded="true"], .eo-menubar .eo-select:hover { background: var(--eo-header-control-bg-hover); border-color: var(--eo-header-control-rule-hover); }
.eo-menubar .eo-select select { font: inherit; }
.eo-menubar-select { font: var(--eo-font-size-12-5) / 1 var(--eo-font-family-text); color: var(--eo-text-secondary); }
.eo-menubar .eo-icon-btn { width: 30px; height: 30px; }
.eo-menubar .eo-icon-btn.is-quiet:hover, .eo-menubar .eo-icon-btn.is-quiet[aria-expanded="true"] { background: var(--eo-header-control-bg-hover); border-color: var(--eo-header-control-rule-hover); }

/* Sheet and dialog: modal, on surface.overlay over the scrim. The page behind stops scrolling. */
.eo-scrim { position: fixed; inset: 0; background: var(--eo-surface-scrim); z-index: var(--eo-layer-scrim); }
.eo-sheet { position: fixed; top: 0; right: 0; bottom: 0; width: min(900px, calc(100vw - 48px)); z-index: var(--eo-layer-modal); display: flex; flex-direction: column;
  background: var(--eo-surface-overlay); box-shadow: var(--eo-shadow-overlay); animation: eo-slide var(--eo-motion-base); }
.eo-sheet-head { flex: none; display: flex; align-items: flex-start; gap: var(--eo-space-5); padding: var(--eo-space-7) var(--eo-space-7) var(--eo-space-5); }
.eo-sheet-kicker { font: var(--eo-type-meta); color: var(--eo-text-secondary); }
.eo-sheet-title { font: var(--eo-type-title-card); margin: var(--eo-space-1) 0 0; }
.eo-sheet-facts { font: var(--eo-type-meta-data); color: var(--eo-text-secondary); margin-top: 2px; }
.eo-sheet-body { flex: 1; min-height: 0; overflow: auto; border-top: 1px solid var(--eo-border-default); }
.eo-dialog { position: fixed; left: 50%; top: 12vh; transform: translateX(-50%); width: min(480px, calc(100vw - 32px)); max-height: 76vh; z-index: var(--eo-layer-modal);
  display: flex; flex-direction: column; background: var(--eo-surface-overlay); border-radius: var(--eo-radius-md); box-shadow: var(--eo-shadow-overlay);
  animation: eo-fade var(--eo-motion-base); }
.eo-dialog.is-wide { width: min(880px, calc(100vw - 32px)); }
.eo-dialog-head { display: flex; align-items: center; gap: var(--eo-space-3); padding: var(--eo-space-6) var(--eo-space-6) var(--eo-space-3); }
.eo-dialog-title { font: var(--eo-type-title-section); letter-spacing: var(--eo-type-title-section-tracking); margin: 0; flex: 1; }
.eo-dialog-body { flex: 1; min-height: 0; overflow: auto; padding: 0 var(--eo-space-6) var(--eo-space-5); font: var(--eo-type-small); color: var(--eo-text-secondary); }
.eo-dialog-foot { display: flex; justify-content: flex-end; gap: var(--eo-space-3); padding: var(--eo-space-5) var(--eo-space-6); border-top: 1px solid var(--eo-border-subtle); }
@keyframes eo-rise { from { transform: translateY(24px); opacity: 0; } }
@keyframes eo-slide { from { transform: translateX(24px); opacity: 0; } }
@keyframes eo-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .eo-drawer, .eo-side-panel, .eo-sheet { animation-name: eo-fade; } }

/* ---------- side panel comment ---------- */
/* D53, Josh's note card: a 24px ochre initial, the name and when on one line, the text, and the note's tools (pin, flag) as
   icon buttons down the right. */
.eo-comment { display: grid; grid-template-columns: 24px 1fr auto; gap: var(--eo-space-1) var(--eo-space-3); padding: var(--eo-space-3) var(--eo-space-2) var(--eo-space-3) 11px;
  border: 1px solid var(--eo-border-default); border-radius: var(--eo-radius-md); background: var(--eo-surface-card);
  font: var(--eo-font-size-12) / 1.4 var(--eo-font-family-text); color: var(--eo-text-primary); }
.eo-comment > .eo-avatar { grid-row: 1 / span 3; width: 24px; height: 24px; background: var(--eo-panel-avatar); font: var(--eo-font-weight-bold) var(--eo-font-size-11) / 1 var(--eo-font-family-text); }
.eo-comment-who { grid-column: 2; font-weight: var(--eo-font-weight-bold); }
.eo-comment-who small { font-weight: var(--eo-font-weight-regular); color: var(--eo-text-tertiary); margin-left: var(--eo-space-2); font-size: var(--eo-font-size-10); }
.eo-comment > :not(.eo-avatar):not(.eo-comment-who):not(.eo-comment-tools) { grid-column: 2; }
.eo-comment-tools { grid-column: 3; grid-row: 1 / span 3; display: flex; flex-direction: column; gap: var(--eo-space-half); }
.eo-comment-tools .eo-icon-btn { width: 22px; height: 22px; color: var(--eo-chart-budget-bar); }
.eo-comment-tools .eo-icon-btn:hover, .eo-comment-tools .eo-icon-btn[aria-pressed="true"] { color: var(--eo-text-secondary); }
/* D66 (Josh, 2026-11-17): a close's notes start under its name (*Jul close*), a caps label with a rule to the panel's edge.
   Each note keeps its own when (*Yesterday*). */
.eo-comment-break { display: flex; align-items: center; gap: var(--eo-space-2); margin: var(--eo-space-2) 0 0;
  font: var(--eo-type-label-caps); letter-spacing: var(--eo-type-label-caps-tracking); text-transform: uppercase; color: var(--eo-text-secondary); }
.eo-comment-break::after { content: ""; flex: 1; border-top: 1px solid var(--eo-border-default); }
.eo-comment-break:first-child { margin-top: 0; }
/* D85 (Adam, 2026-11-30, QC feedback): a tag that took. In a posted comment it's the person's name in monospace on the discussion
   wash, so it reads as a tag and not as a word with an at sign. In the composer (`.eo-mention-field`) a tag can't change font
   inside a textarea, so it gets the same wash, drawn by a backdrop that mirrors the text exactly, and the field's help line names
   who will be notified. Typing @ offers the people who can be tagged (`.eo-mention-list`, an `.eo-menu` listbox opening above the
   field, since composers sit at the foot of a panel or drawer, while focus stays in the text: arrows move, Enter or Tab picks, Escape closes). */
.eo-mention { padding: 0 var(--eo-space-half); border-radius: var(--eo-radius-sm); background: var(--eo-discussion-bg); color: var(--eo-discussion-fg);
  font: var(--eo-type-mention); letter-spacing: var(--eo-type-mention-tracking); white-space: nowrap; }
.eo-mention-field { position: relative; display: grid; }
.eo-mention-field > .eo-textarea, .eo-mention-backdrop { grid-area: 1 / 1; scrollbar-gutter: stable; }
.eo-mention-field > .eo-textarea { position: relative; background: transparent; }
.eo-mention-backdrop { overflow: hidden; padding: var(--eo-space-3) var(--eo-space-4); border: 1px solid transparent; border-radius: var(--eo-radius-control);
  background: var(--eo-surface-card); color: transparent; font: var(--eo-type-small); white-space: pre-wrap; overflow-wrap: break-word; pointer-events: none; }
.eo-mention-backdrop mark { border-radius: var(--eo-radius-sm); background: var(--eo-discussion-bg); color: transparent; box-shadow: 0 0 0 1px var(--eo-discussion-bg); }
.eo-mention-list { position: absolute; left: 0; bottom: calc(100% + var(--eo-space-1)); z-index: var(--eo-layer-popover); max-height: 224px; margin: 0; list-style: none; }
.eo-mention-list .eo-menu-item { cursor: pointer; }
/* D69, Josh's Chat tab: a thread of messages, the person's own on the right in the panel's dark brown, the assistant's as cards on the
   left; an intro card before the first question. Text wraps as written. */
.eo-chat { display: flex; flex-direction: column; gap: var(--eo-space-2); }
.eo-chat-msg { max-width: 92%; align-self: flex-start; padding: 7px 10px; border: 1px solid var(--eo-border-default); border-radius: 10px 10px 10px 3px;
  background: var(--eo-surface-card); color: var(--eo-text-primary); font: var(--eo-font-size-12) / 1.45 var(--eo-font-family-text); white-space: pre-wrap; overflow-wrap: anywhere; }
.eo-chat-msg.is-mine { align-self: flex-end; background: var(--eo-panel-chat-mine-bg); border-color: var(--eo-panel-chat-mine-bg); color: var(--eo-text-inverse); border-radius: 10px 10px 3px 10px; }
.eo-chat-intro { padding: 10px 11px; border: 1px solid var(--eo-panel-chat-intro-rule); border-radius: var(--eo-radius-md); background: var(--eo-panel-chat-intro-bg);
  color: var(--eo-text-secondary); font: var(--eo-font-size-12) / 1.45 var(--eo-font-family-text); white-space: pre-wrap; }
.eo-chat-intro strong { display: block; margin-bottom: var(--eo-space-1); color: var(--eo-text-primary); }
.eo-chat-refs { display: flex; flex-wrap: wrap; gap: var(--eo-space-1); margin-top: var(--eo-space-2); white-space: normal; }
/* The composer (D53): the box beside Post, which is the panel's brown. */
.eo-side-panel-composer .eo-btn-primary { background: var(--eo-panel-post-bg); border-color: var(--eo-panel-post-bg); }
.eo-side-panel-composer .eo-btn-primary:hover:not(:disabled) { background: var(--eo-panel-post-bg-hover); border-color: var(--eo-panel-post-bg-hover); }

/* ---------- states (D20) ---------- */
/* Empty: inside the card, under its headers. One sentence (why) + at most one action (what to do). */
.eo-empty { min-height: 120px; display: grid; place-content: center; justify-items: center; gap: var(--eo-space-4); padding: var(--eo-space-7);
  text-align: center; font: var(--eo-type-small); color: var(--eo-text-secondary); }
.eo-empty b { color: var(--eo-text-primary); font-weight: var(--eo-font-weight-semibold); }
/* Loading: skeleton rows in the real table, shown only after 300ms (the app adds .is-loading after a 300ms timer). */
.eo-skeleton { display: block; height: 10px; border-radius: var(--eo-radius-xs); background: var(--eo-surface-sunken); animation: eo-pulse 1.4s ease-in-out infinite; }
.eo-num .eo-skeleton { margin-left: auto; }
@keyframes eo-pulse { 50% { opacity: .55; } }
/* Refreshing data already on screen: keep it, and say so in the toolbar. Never blank the grid to reload it. */
.eo-busy { display: inline-flex; align-items: center; gap: var(--eo-space-2); font: var(--eo-type-meta); color: var(--eo-text-secondary); }
.eo-busy::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--eo-text-link); animation: eo-pulse 1s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .eo-skeleton, .eo-busy::before { animation: none; } }
/* Error: in the card that failed, with Try again. Plain words; no codes. A page-top banner only when the whole page failed. */
.eo-error { min-height: 120px; display: grid; place-content: center; justify-items: center; gap: var(--eo-space-3); padding: var(--eo-space-7);
  text-align: center; font: var(--eo-type-small); color: var(--eo-text-secondary); }
.eo-error-title { display: inline-flex; align-items: center; gap: var(--eo-space-2); color: var(--eo-text-primary); font-weight: var(--eo-font-weight-semibold); }
.eo-error-title::before { content: "!"; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%;
  background: var(--eo-status-severe-bg); color: var(--eo-status-severe-fg); font: var(--eo-type-code); }
/* Freshness: a quiet fact in the toolbar's context line; attention when stale or the last sync failed. */
.eo-fresh.is-stale { color: var(--eo-status-attention-fg); }
.eo-fresh.is-stale::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: var(--eo-space-1); background: var(--eo-status-attention-fill); }
/* D68: the sync as an icon at the bar's end (Josh's), its words in a tooltip; stale turns it orange, without the square. */
.eo-fresh-icon { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: var(--eo-radius-sm); color: var(--eo-text-secondary); }
.eo-fresh-icon .eo-icon { width: 14px; height: 14px; }
.eo-fresh-icon.is-stale::before { content: none; }
.eo-fresh-icon:focus-visible { outline: none; box-shadow: var(--eo-focus-ring); }
/* D71 (Josh, 2026-11-18): the sync sits in the header beside the bell, at his header-icon size (30px box, 18px icon, 7px radius). */
.eo-menubar .eo-fresh-icon { width: 30px; height: 30px; border-radius: 7px; }
.eo-menubar .eo-fresh-icon .eo-icon { width: 18px; height: 18px; }


/* ---------- app shell (D39) ---------- */
/* Rail | (header over content). Only the content scrolls; the rail and header stay put. The content is the positioning
   context for the drawer (it shortens the grid, D21) and the side panel (it overlays the grid's right edge, D36). */
.eo-shell { display: grid; grid-template-columns: auto minmax(0, 1fr); height: 100dvh; overflow: hidden; background: var(--eo-surface-page); }
.eo-shell-main { grid-column: 2; display: flex; flex-direction: column; min-width: 0; min-height: 0; } /* always the 1fr column: a host that draws its own rail leaves column 1 empty, at 0px; in the auto column the content would size the grid that sizes it */
.eo-shell-main > .eo-app-header { position: relative; z-index: var(--eo-layer-shell); flex: none; }
.eo-shell-content { position: relative; flex: 1 1 auto; min-height: 0; overflow: auto; display: flex; flex-direction: column; margin: 0; padding: 0; } /* a <main>: a host page's own main rules must not pad it */
.eo-shell-content > * { flex: 0 0 auto; }
.eo-shell-content > :only-child { flex: 1 1 auto; min-height: 0; } /* one child, such as an embedded legacy screen, fills it */

/* ---------- app rail (D38) ---------- */
/* The suite's one dark region: 50px of tiles, or 210px with labels. Groups are separated by space, not headings (each
   group's name is its list's accessible name). Utility items sit at the bottom under a rule. */
.eo-rail { position: relative; z-index: var(--eo-layer-shell); display: flex; flex-direction: column; width: 50px; height: 100%;
  padding: var(--eo-space-3) var(--eo-space-2) var(--eo-space-4); overflow: hidden auto; scrollbar-width: none;
  background: var(--eo-shell-rail-bg); color: var(--eo-shell-rail-fg); font: var(--eo-type-small); font-weight: var(--eo-font-weight-semibold);
  border-right: 1px solid var(--eo-shell-rail-rule); transition: width var(--eo-motion-base); }
.eo-rail::-webkit-scrollbar { display: none; }
.eo-rail.is-expanded { width: 210px; }
.eo-rail-client { flex: none; display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: var(--eo-space-4); padding: 0;
  border: 1px solid var(--eo-shell-rail-client-rule); border-radius: var(--eo-radius-md); background: var(--eo-shell-rail-client-bg); color: var(--eo-shell-rail-fg-active);
  font: var(--eo-type-meta-data); font-weight: var(--eo-font-weight-bold); cursor: pointer; }
.eo-rail-client:hover, .eo-rail-client[aria-expanded="true"] { background: var(--eo-shell-rail-hover); }
.eo-rail-group { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.eo-rail-group + .eo-rail-group { margin-top: var(--eo-space-3); }
.eo-rail-item { position: relative; display: flex; align-items: center; gap: var(--eo-space-3); width: 100%; height: 36px; padding: 0 var(--eo-space-1);
  border: 0; border-radius: var(--eo-radius-md); background: transparent; color: inherit; font: inherit; text-align: left; text-decoration: none;
  white-space: nowrap; cursor: pointer; }
.eo-rail-item:hover { background: var(--eo-shell-rail-hover); }
.eo-rail-item[aria-current="page"] { background: var(--eo-shell-rail-active); color: var(--eo-shell-rail-fg-active); }
.eo-rail-item[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 50%; width: 2px; height: 22px; transform: translateY(-50%);
  border-radius: 1px; background: var(--eo-shell-rail-marker); }
.eo-rail-item[aria-disabled="true"] { color: var(--eo-shell-rail-fg-muted); cursor: default; }
.eo-rail-item[aria-disabled="true"]:hover { background: transparent; }
/* D56, Josh's NavBar (§5.1): each tile a 145° shade of its group's hue with a lighter rule, a faint top highlight and a small
   shadow, its icon muted; the current app's tile brighter, its icon cream. Hue is taxonomy, never status (D38a). */
.eo-rail-tile { --tile: var(--eo-shell-rail-tile-utility); --tile-deep: var(--eo-shell-rail-tile-utility-deep); --tile-rule: var(--eo-shell-rail-tile-utility-rule);
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--tile-rule); border-radius: var(--eo-radius-md);
  background: linear-gradient(145deg, var(--tile), var(--tile-deep)); color: var(--eo-shell-rail-icon);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--eo-white) 8%, transparent), 0 1px 2px var(--eo-black-a-14); }
.eo-rail-tile[data-group="plan"] { --tile: var(--eo-shell-rail-tile-plan); --tile-deep: var(--eo-shell-rail-tile-plan-deep); --tile-rule: var(--eo-shell-rail-tile-plan-rule); }
.eo-rail-tile[data-group="operate"] { --tile: var(--eo-shell-rail-tile-operate); --tile-deep: var(--eo-shell-rail-tile-operate-deep); --tile-rule: var(--eo-shell-rail-tile-operate-rule); }
.eo-rail-tile[data-group="review"] { --tile: var(--eo-shell-rail-tile-review); --tile-deep: var(--eo-shell-rail-tile-review-deep); --tile-rule: var(--eo-shell-rail-tile-review-rule); }
.eo-rail-item[aria-current="page"] .eo-rail-tile { --tile: var(--eo-shell-rail-tile-current); --tile-deep: var(--eo-shell-rail-tile-current-deep); --tile-rule: var(--eo-shell-rail-tile-current-rule);
  color: var(--eo-shell-rail-icon-active); }
.eo-rail-tile .eo-icon { width: 18px; height: 18px; }
/* An app that isn't available yet reads as unavailable: the whole tile faded, not only its icon (F5 leftover). */
.eo-rail-item[aria-disabled="true"] .eo-rail-tile { opacity: .38; box-shadow: none; }
.eo-rail-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.eo-rail:not(.is-expanded) .eo-rail-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); }
.eo-rail-utility { margin-top: auto; padding-top: var(--eo-space-3); border-top: 1px solid var(--eo-shell-rail-rule); }
/* D71 (Josh, 2026-11-18): the utilities sit at the rail's foot (the adjacent-group gap outranked margin-top: auto). No chevron:
   the rail's empty space toggles it (his prototype's .rail{cursor:pointer}); the keyboard's toggle is the blank gap between the
   apps and the utilities, showing only the focus ring. */
.eo-rail > .eo-rail-utility { margin-top: auto; }
.eo-rail { cursor: pointer; }
.eo-rail-item.eo-rail-toggle { flex: 1 0 var(--eo-space-3); height: auto; min-height: var(--eo-space-3); }
.eo-rail-item.eo-rail-toggle:hover { background: transparent; }
@media (prefers-reduced-motion: reduce) { .eo-rail { transition: none; } }

/* ---------- tooltip (D40) ---------- */
/* Names or explains a control; never holds anything interactive. Positioned by the component, flipped to stay on screen. */
.eo-tooltip { position: fixed; z-index: var(--eo-layer-tooltip); max-width: 240px; padding: var(--eo-space-1) var(--eo-space-3);
  border-radius: var(--eo-radius-sm); background: var(--eo-surface-inverse); color: var(--eo-text-inverse); font: var(--eo-type-meta);
  pointer-events: none; animation: eo-fade var(--eo-motion-fast); }

/* ---------- field anatomy (D41) ---------- */
/* Label above, then the control, then one line of help or, when invalid, the error in its place. */
.eo-field { display: flex; flex-direction: column; gap: var(--eo-space-1); min-width: 0; }
.eo-field-label { font: var(--eo-type-small); font-weight: var(--eo-font-weight-semibold); color: var(--eo-text-primary); }
.eo-field-optional { font-weight: var(--eo-font-weight-regular); color: var(--eo-text-secondary); }
.eo-field-help { font: var(--eo-type-meta); color: var(--eo-text-secondary); }
.eo-field-foot { display: flex; align-items: flex-start; gap: var(--eo-space-3); }
.eo-field-foot > :first-child { flex: 1; min-width: 0; }
.eo-field-count { flex: none; margin-left: auto; font: var(--eo-type-meta-data); color: var(--eo-text-secondary); }
.eo-field-count.is-over { color: var(--eo-status-severe-fg); }
.eo-field-error { display: flex; align-items: flex-start; gap: var(--eo-space-1); font: var(--eo-type-meta); color: var(--eo-status-severe-fg); }
.eo-field-error::before { content: "!"; flex: none; display: inline-grid; place-items: center; width: 14px; height: 14px; margin-top: 1px; border-radius: 50%;
  background: var(--eo-status-severe-bg); color: var(--eo-status-severe-fg); font: var(--eo-type-code); }
.eo-input[aria-invalid="true"], .eo-select[aria-invalid="true"], .eo-textarea[aria-invalid="true"], .eo-input-group:has([aria-invalid="true"]) { border-color: var(--eo-status-severe-fill); }
.eo-input[readonly], .eo-input-group:has(input[readonly]) { background: var(--eo-surface-muted); border-color: var(--eo-border-subtle); }
.eo-input:disabled, .eo-select:disabled, .eo-input-group:has(input:disabled) { background: var(--eo-surface-sunken); border-color: var(--eo-surface-sunken); color: var(--eo-text-disabled); }
/* An input with a prefix or suffix ($, %, per student): the group draws the box, the input none, as .eo-search does. */
.eo-input-group { display: inline-flex; align-items: center; gap: var(--eo-space-2); height: var(--eo-density-control); padding: 0 var(--eo-space-4);
  border: 1px solid var(--eo-border-default); border-radius: var(--eo-radius-control); background: var(--eo-surface-card);
  font: var(--eo-type-small); font-family: var(--eo-font-family-data); font-size: var(--eo-density-text-table); }
.eo-input-group:focus-within { border-color: var(--eo-border-focus); }
.eo-input-group input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; font: inherit; color: var(--eo-text-primary); }
.eo-affix { flex: none; color: var(--eo-text-secondary); }
/* A select with many options opens a menu with a search at its top. */
.eo-menu-search { display: flex; padding: var(--eo-space-1) var(--eo-space-1) var(--eo-space-2); }
.eo-menu-search .eo-search { flex: 1; min-width: 0; }

/* ---------- notification and account menus (D42) ---------- */
.eo-menu.is-notifications { width: 360px; max-height: min(480px, 70vh); display: flex; flex-direction: column; }
.eo-menu-title.has-action { display: flex; align-items: center; gap: var(--eo-space-3); }
.eo-menu-title.has-action > :first-child { flex: 1; }
.eo-notifs { flex: 1; min-height: 0; overflow: auto; margin: 0; padding: 0; list-style: none; }
.eo-notif { display: grid; grid-template-columns: 8px minmax(0, 1fr); gap: 2px var(--eo-space-3); padding: var(--eo-space-3) var(--eo-space-4);
  border-radius: var(--eo-radius-control); color: var(--eo-text-primary); text-decoration: none; cursor: pointer; }
.eo-notif:hover { background: var(--eo-surface-hover); }
.eo-notif::before { content: ""; grid-row: 1; align-self: center; width: 8px; height: 8px; border-radius: 50%; }
.eo-notif.is-unread::before { background: var(--eo-mark-badge-bg); }
.eo-notif-text { grid-column: 2; font: var(--eo-type-small); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.eo-notif.is-unread .eo-notif-text { font-weight: var(--eo-font-weight-semibold); }
.eo-notif-meta { grid-column: 2; font: var(--eo-type-meta); color: var(--eo-text-secondary); }
.eo-account-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 var(--eo-space-3); align-items: center; }
.eo-account-head .eo-avatar { grid-row: span 2; }
.eo-account-name { font: var(--eo-type-small); font-weight: var(--eo-font-weight-semibold); }
.eo-account-meta { font: var(--eo-type-meta); color: var(--eo-text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eo-account-acting { margin: var(--eo-space-1) 0; padding: var(--eo-space-2) var(--eo-space-4); border-radius: var(--eo-radius-control);
  background: var(--eo-status-attention-bg); color: var(--eo-status-attention-fg); font: var(--eo-type-meta); }
.eo-account-acting a, .eo-account-acting button { color: inherit; font-weight: var(--eo-font-weight-semibold); }
/* View as… (D42): a wide dialog listing the school in play's users, then its EdOps team (Departments' Impersonate), each row with
   an outline *View as*. Find narrows both; an email on neither gets its own primary *View as …*. */
.eo-viewas-lede { margin: 0 0 var(--eo-space-4); font: var(--eo-type-body); color: var(--eo-text-secondary); }
.eo-viewas-typed { margin-top: var(--eo-space-3); }
.eo-viewas-group { margin-top: var(--eo-space-6); }
.eo-viewas-title { margin: 0 0 var(--eo-space-2); font: var(--eo-type-body-strong); color: var(--eo-text-primary); }
.eo-viewas-person { display: inline-flex; align-items: center; gap: var(--eo-space-3); }
.eo-viewas-name { display: block; font: var(--eo-type-body); color: var(--eo-text-primary); }
.eo-viewas-email { display: block; font: var(--eo-type-meta); color: var(--eo-text-secondary); }
.eo-viewas-role { color: var(--eo-text-secondary); white-space: nowrap; }
.eo-viewas-act { text-align: right; white-space: nowrap; }
.eo-viewas-none { margin: var(--eo-space-2) 0 0; font: var(--eo-type-body); color: var(--eo-text-secondary); }

/* ---------- dragging an account to another group (D74, Josh's Accounts) ----------
   A draggable row's grip sits before its number; while a row is dragged, each group row it can land on takes .is-drop-target, the one
   under the pointer .is-drop-active ("Move here"), and .eo-drag-list (fixed at the right, under the header) lists the same groups by
   section. It is a drag's destinations, not an overlay: it opens with the drag and closes with the drop. */
.eo-drag-grip { display: inline-block; width: 10px; height: 14px; margin-right: var(--eo-space-2); vertical-align: middle; cursor: grab;
  background: radial-gradient(circle, var(--eo-drag-grip) 1.2px, transparent 1.3px) 0 0 / 5px 5px; }
.eo-grid tr:hover .eo-drag-grip { background-image: radial-gradient(circle, var(--eo-drag-grip-hover) 1.2px, transparent 1.3px); }
.eo-grid tr[draggable="true"] { cursor: grab; }
.eo-grid tr.is-drop-active > td, .eo-grid tr.is-drop-active > th { background: var(--eo-drag-drop-bg); }
.eo-grid tr.is-drop-active > :first-child { box-shadow: inset 3px 0 var(--eo-drag-drop-rule), inset 0 0 0 1px var(--eo-drag-drop-ring); }
.eo-grid tr.is-drop-active > .eo-c0::after { content: 'Move here'; margin-left: var(--eo-space-3); color: var(--eo-drag-drop-rule);
  font: var(--eo-type-label-caps); letter-spacing: .03em; text-transform: uppercase; }
.eo-drag-list { position: fixed; z-index: var(--eo-layer-panel); top: 112px; right: 18px; bottom: 18px; width: 304px; display: flex; flex-direction: column;
  box-sizing: border-box; border: 1px solid var(--eo-drag-list-rule); border-radius: var(--eo-radius-md); background: var(--eo-surface-overlay);
  box-shadow: var(--eo-shadow-overlay); }
.eo-drag-list-head { padding: 10px 11px; border-bottom: 1px solid var(--eo-drag-list-divider); background: var(--eo-drag-list-head-bg);
  color: var(--eo-drag-list-head-fg); font: var(--eo-type-meta); font-weight: var(--eo-font-weight-bold); }
.eo-drag-list-targets { min-height: 0; overflow: auto; padding: 5px; }
.eo-drag-list-section { height: 24px; display: flex; align-items: center; margin-top: 4px; padding: 0 7px; border-top: 1px solid var(--eo-drag-list-divider);
  color: var(--eo-drag-list-section-fg); font: var(--eo-type-label-caps); letter-spacing: .055em; text-transform: uppercase; }
.eo-drag-list-section:first-child { margin-top: 0; border-top: 0; }
.eo-drag-target { width: 100%; min-height: 29px; display: flex; align-items: center; gap: 7px; padding: 4px 7px; border: 1px solid transparent;
  border-radius: var(--eo-radius-sm); background: var(--eo-surface-overlay); color: var(--eo-drag-target-fg); font: var(--eo-type-segment); text-align: left; }
.eo-drag-target::before { content: ''; width: 6px; height: 6px; flex: 0 0 6px; border: 1px solid var(--eo-drag-target-dot); border-radius: 50%;
  background: var(--eo-drag-target-hover-bg); }
.eo-drag-target span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eo-drag-target:hover, .eo-drag-target.is-drop-active { border-color: var(--eo-drag-target-hover-rule); background: var(--eo-drag-target-hover-bg); color: var(--eo-drag-drop-fg); }
.eo-drag-target.is-drop-active { border-color: var(--eo-drag-drop-rule); background: var(--eo-drag-drop-bg); box-shadow: inset 3px 0 var(--eo-drag-drop-rule); }
.eo-drag-target:hover::before, .eo-drag-target.is-drop-active::before { border-color: var(--eo-drag-drop-rule); background: var(--eo-drag-drop-rule); }
.eo-drag-list-foot { padding: 7px 10px; border-top: 1px solid var(--eo-drag-list-divider); background: var(--eo-surface-muted);
  color: var(--eo-text-secondary); font: var(--eo-type-meta); }

/* ---------- tabular figures, everywhere (§3.2) ----------
   The `font` shorthand resets font-variant-numeric, so every rule that sets type with the shorthand and a type token, here or in an
   app's own CSS (which loads after this), drops the tabular-nums .eo-app and .eo-portal set for their children: grid figures, KPI
   values and chip counts came out proportional. This puts it back on every element. The doubled class is deliberate: at two
   classes it beats any rule of up to two classes wherever it loads; the row label's `normal` (.eo-grid td.eo-c0) is more
   specific still and keeps it. It's a no-op on DM Sans (no tnum). */
.eo-app.eo-app *, .eo-portal.eo-portal * { font-variant-numeric: tabular-nums; }
