/* fz-overlays.css — Task drawer, reel drawer, list drawer, OpsClientsTable / editors / strategists table skins. Owner: overlays agent.
   Components that live in ops-ui.jsx and are shared by several pages.
   Loaded AFTER nova-shell.css (see index.php), so equal-specificity rules here win.
   Light is the base theme; dark lives under [data-theme="dark"] (app.jsx always sets it on <html>).

   Only --fz-* tokens (DESIGN-SYSTEM.md). Every colour below follows the theme switch
   instantly — nothing here is computed in JS at render time.

   Sections
     1. Chips (OpsChip / OpsStatusChip / OpsRiskChip / OpsPrioChip) — soft-fill tones
     2. Person role, task card accents
     3. Drawer chrome additions (avatar, meta row, action bar, eyebrow)
     4. Drawer body cards, facts, callouts, folds, comments, history
     5. Stage stepper (OpsStagePath)
     6. Reel drawer parts (team tiles, views, compact rows, steps)
     7. List drawer rows (OpsListDrawer)
     8. Resources (OpsResourceList / Card / Add / Menu — were inline OPS_RES_* styles)
     9. Modals defined in ops-ui.jsx (icon tile, prompt, add client, month start, resolve, video)
    10. Shared tables (OpsClientsTable, OpsEditorsCard, OpsStrategistsCard, week dots, legend) */


/* ═══ 1. CHIPS ══════════════════════════════════════════════════════════════
   OpsChip maps the caller's hex to a token tone (ops-ui.jsx opsChipTone) and only
   sets a class; the soft tint + ink come from here. `.is-custom` (role / label
   colours with no status meaning) mixes the hue with the theme's text ink, so it
   stays ≥4.5:1 on both themes. `.fsw-chip` (ops-theme) draws a 1px currentColor
   border by default — cleared, the soft fill carries the shape. */
.fsw-chip.fz-chip {
  --fz-k: var(--fz-neutral); --fz-k-soft: var(--fz-neutral-soft); --fz-k-ink: var(--fz-neutral-ink);
  background: var(--fz-k-soft);
  color: var(--fz-k-ink);
  border-color: transparent;
  font-weight: var(--fz-fw-semi);
}
.fsw-chip.fz-chip.is-ok      { --fz-k: var(--fz-ok);      --fz-k-soft: var(--fz-ok-soft);      --fz-k-ink: var(--fz-ok-ink); }
.fsw-chip.fz-chip.is-warn    { --fz-k: var(--fz-warn);    --fz-k-soft: var(--fz-warn-soft);    --fz-k-ink: var(--fz-warn-ink); }
.fsw-chip.fz-chip.is-crit    { --fz-k: var(--fz-crit);    --fz-k-soft: var(--fz-crit-soft);    --fz-k-ink: var(--fz-crit-ink); }
.fsw-chip.fz-chip.is-info    { --fz-k: var(--fz-info);    --fz-k-soft: var(--fz-info-soft);    --fz-k-ink: var(--fz-info-ink); }
.fsw-chip.fz-chip.is-violet  { --fz-k: var(--fz-violet);  --fz-k-soft: var(--fz-violet-soft);  --fz-k-ink: var(--fz-violet-ink); }
.fsw-chip.fz-chip.is-accent  { --fz-k: var(--fz-accent);  --fz-k-soft: var(--fz-accent-soft);  --fz-k-ink: var(--fz-accent-ink); }
.fsw-chip.fz-chip.is-neutral { --fz-k: var(--fz-neutral); --fz-k-soft: var(--fz-neutral-soft); --fz-k-ink: var(--fz-neutral-ink); }
/* "ink" = the strong neutral of the old palette (#111827 / #374151: Ready to start,
   In progress, Medium). Neutral fill, full-strength text. */
.fsw-chip.fz-chip.is-ink     { --fz-k: var(--fz-text-2);  --fz-k-soft: var(--fz-surface-3);    --fz-k-ink: var(--fz-text-1); }
.fsw-chip.fz-chip.is-custom  { --fz-k: var(--fz-chip-c, var(--fz-neutral)); }
@supports (color: color-mix(in oklab, red 50%, blue)) {
  .fsw-chip.fz-chip.is-custom {
    --fz-k-soft: color-mix(in srgb, var(--fz-chip-c, var(--fz-neutral)) 14%, transparent);
    --fz-k-ink: color-mix(in oklab, var(--fz-chip-c, var(--fz-neutral)) 55%, var(--fz-text-1));
  }
}
.fsw-chip.fz-chip .fsw-chip-ico { color: inherit; }
.fsw-chip.fz-chip .fsw-dot { background: var(--fz-k); }
.fsw-chip.fz-chip.is-ink .fsw-dot { background: var(--fz-text-2); }


/* ═══ 2. PERSON ROLE, TASK CARD ═════════════════════════════════════════════
   Role label colour = role hue mixed with the theme ink (was opsChipInk at
   render time, which froze on a theme switch). */
.fsw-person-role {
  color: var(--fz-text-2);
  font-size: var(--fz-fs-micro);
  font-weight: var(--fz-fw-bold);
  letter-spacing: .04em;
}
@supports (color: color-mix(in oklab, red 50%, blue)) {
  .fsw-person-role { color: color-mix(in oklab, var(--fz-chip-c, var(--fz-text-3)) 55%, var(--fz-text-1)); }
}
/* Task card (OpsTaskCard / OpsTaskList — client "Open tasks" / "Late tasks",
   My Week lists, Approval). Was ops-theme's outlined card with a red border +
   red→card gradient wash and red titles on every late card. Now: a surface-2
   tile (surface-1 when the list sits on a surface-2 card, via --fz-task-bg),
   16px radius, no outline; "late" = a 3px red edge + the red "Late" due line
   (colour + word), the title stays --fz-text-1. Locked / cancelled tasks are
   never "late" (OpsTaskCard drops is-overdue for them): a recessed surface,
   --fz-text-2 title and a "Locked · …" line instead of an opacity fade.
   fz-mywork.css restyles the card inside its drawers with higher specificity. */
.fsw-task-list { gap: var(--fz-s-2); }
.fsw-task {
  position: relative;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--fz-s-3);
  padding: var(--fz-s-3) var(--fz-s-3) var(--fz-s-3) var(--fz-s-4);
  background: var(--fz-task-bg, var(--fz-surface-2));
  border: 0;
  border-radius: var(--fz-r-md);
  box-shadow: none;
  color: var(--fz-text-1);
  transition: background-color var(--fz-t-fast) var(--fz-ease);
}
.fsw-task:hover,
.fsw-task.is-overdue:hover { background: var(--fz-surface-3); border-color: transparent; box-shadow: none; transform: none; }
.fsw-task-bar {
  position: absolute;
  top: var(--fz-s-3);
  bottom: var(--fz-s-3);
  left: 0;
  width: 3px;
  border-radius: 0 var(--fz-r-pill) var(--fz-r-pill) 0;
  background: transparent;
}
.fsw-task-bar.is-late { background: var(--fz-crit); }
.fsw-task.is-overdue { background: var(--fz-task-bg, var(--fz-surface-2)); border: 0; }
.fsw-task.is-overdue .fsw-task-title,
[data-theme="dark"] .fsw-task.is-overdue .fsw-task-title { color: var(--fz-text-1); }
.fsw-task-main { gap: var(--fz-s-1); }
.fsw-task-top { gap: var(--fz-s-2); font-size: var(--fz-fs-meta); color: var(--fz-text-2); }
.fsw-task-ctx { font-size: var(--fz-fs-meta); font-weight: var(--fz-fw-semi); color: var(--fz-text-2); }
.fsw-task-title { font-size: var(--fz-fs-body); font-weight: var(--fz-fw-semi); line-height: 1.35; color: var(--fz-text-1); }
/* Priority / revision tag: a small soft pill (was bold mono coloured text). */
.fsw-task-prio {
  display: inline-flex;
  align-items: center;
  height: var(--fz-s-5);
  padding: 0 var(--fz-s-2);
  border-radius: var(--fz-r-pill);
  background: var(--fz-warn-soft);
  color: var(--fz-warn-ink);
  font-family: var(--fz-font-body);
  font-size: var(--fz-fs-micro);
  font-weight: var(--fz-fw-semi);
  letter-spacing: 0;
  white-space: nowrap;
}
.fsw-task-prio.is-crit { background: var(--fz-crit-soft); color: var(--fz-crit-ink); }
.fsw-task-prio.is-warn { background: var(--fz-warn-soft); color: var(--fz-warn-ink); }
.fsw-task-prio.is-ink, .fsw-task-prio.is-neutral { background: var(--fz-surface-3); color: var(--fz-text-2); }
/* Brief toggle: a line chevron right after the title (not floating at the far
   edge); it turns over when open (ops-theme .fsw-kmore.is-open). */
.fsw-task-titlerow { align-items: center; gap: var(--fz-s-1); }
.fsw-task-titlerow > .fsw-task-title { flex: 0 1 auto; }
.fsw-task-more { color: var(--fz-text-3); }
.fsw-task-more.is-open { color: var(--fz-accent-ink); border-color: transparent; }
.fsw-task-brief { color: var(--fz-text-2); }
/* Due / locked line: one line icon + word + date, no emoji. */
.fsw-task-meta { gap: var(--fz-s-1) var(--fz-s-3); font-size: var(--fz-fs-meta); color: var(--fz-text-3); }
.fsw-task-due,
.fsw-task-block { display: inline-flex; align-items: center; gap: var(--fz-s-1); min-width: 0; }
.fsw-task-due > .fsw-ic,
.fsw-task-block > .fsw-ic { flex: none; }
.fsw-task-due b,
.fsw-task-block b { font-weight: var(--fz-fw-semi); }
.fsw-task-due { color: var(--fz-text-3); }
.fsw-task-due.is-late { color: var(--fz-crit-ink); font-weight: var(--fz-fw-semi); }
.fsw-task-due.is-none { color: var(--fz-text-3); font-style: normal; }
.fsw-task-block { color: var(--fz-text-2); }
.fsw-task-block > span { color: var(--fz-text-3); }
/* Locked / cancelled / done: no opacity fade (it dropped text to ~2:1). */
.fsw-task.is-muted,
.fsw-task.is-muted:hover,
.fsw-task.is-done { opacity: 1; }
.fsw-task.is-muted { background: var(--fz-surface-sunken); box-shadow: inset 0 0 0 1px var(--fz-border); }
.fsw-task.is-muted:hover { background: var(--fz-surface-2); }
.fsw-task.is-muted .fsw-task-title,
.fsw-task.is-done .fsw-task-title { color: var(--fz-text-2); }
.fsw-task.is-done .fsw-task-title { text-decoration-color: var(--fz-text-3); }
.fsw-section.is-waiting .fsw-task-list { opacity: 1; }
.fsw-task.is-compact { padding: var(--fz-s-2) var(--fz-s-3) var(--fz-s-2) var(--fz-s-4); }
.fsw-task.is-compact .fsw-task-title { font-size: var(--fz-fs-body); }


/* ═══ 3. DRAWER CHROME ADDITIONS ════════════════════════════════════════════
   The shell itself (floating card, 480px, phone sheet) is fz-kit.css §11. Here:
   the client avatar in the header, the pill row under the title, the eyebrow
   with its client link, and the always-visible action bar at the bottom. */
.fsw-drawer-h.has-av { align-items: flex-start; gap: var(--fz-s-3); padding-left: var(--fz-s-5); }
.fsw-drawer-av { flex: none; display: flex; padding-top: var(--fz-s-1); }
.fsw-drawer-hmeta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--fz-s-1) var(--fz-s-2);
  margin-top: var(--fz-s-2);
  min-width: 0;
}
.fsw-drawer-hmeta .fsw-chips { gap: var(--fz-s-1) var(--fz-s-2); }
.fz-ov-drawer .fsw-drawer-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--fz-s-1) var(--fz-s-2);
  color: var(--fz-text-3);
}
.fz-ov-drawer .fsw-drawer-eyebrow > * + *::before {
  content: '·';
  margin-right: var(--fz-s-2);
  color: var(--fz-text-3);
  font-family: var(--fz-font-body);
}
.fz-ov-drawer .fsw-drawer-eyebrow .xcs-mono { font-family: var(--fz-font-mono); font-size: var(--fz-fs-micro); color: var(--fz-text-2); letter-spacing: 0; }
.fz-ov-eyc {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: var(--fz-fw-semi);
  color: var(--fz-text-1);
  cursor: pointer;
  border-radius: var(--fz-r-xs);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fz-ov-eyc:hover { color: var(--fz-accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.fz-ov-eyc.is-plain { cursor: default; }
.fz-ov-eyc.is-plain:hover { color: var(--fz-text-1); text-decoration: none; }
.fz-ov-seq { font-family: var(--fz-font-mono); font-weight: var(--fz-fw-semi); color: var(--fz-text-2); letter-spacing: -.02em; }

/* Action bar: the footer of the drawer card. The body scrolls on its own above it. */
.fsw-drawer-f {
  flex: none;
  padding: var(--fz-s-3) var(--fz-s-6);
  background: var(--fz-surface-1);
  border-top: 1px solid var(--fz-border);
}
.fz-ov-bar { display: flex; flex-direction: column; gap: var(--fz-s-2); min-width: 0; }
.fz-ov-bar .fsw-action-row { gap: var(--fz-s-2); }
.fz-ov-bar-main { align-items: center; }
.fz-ov-bar .fsw-more.xcs-btn-ghost { padding: 0 var(--fz-s-4); align-self: auto; min-height: 36px; }
.fz-ov-bar-tog { gap: var(--fz-s-1); }
/* "More" opens a small menu UPWARD from the bar (same buttons, menu skin). */
.fz-ov-more { position: relative; margin-left: auto; flex: none; }
.fz-ov-bar .fz-ov-more-pop {
  position: absolute;
  right: 0;
  bottom: calc(100% + var(--fz-s-2));
  z-index: 3;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: var(--fz-s-1);
  min-width: 208px;
  padding: var(--fz-s-2);
  background: var(--fz-surface-1);
  border: 1px solid var(--fz-border);
  border-radius: var(--fz-r-md);
  box-shadow: var(--fz-shadow-pop);
  animation: fzOvPop var(--fz-t-fast) var(--fz-ease);
}
@keyframes fzOvPop { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.fz-ov-more-pop > .xcs-btn-ghost {
  justify-content: flex-start;
  width: 100%;
  min-height: 40px;
  padding: 0 var(--fz-s-3);
  gap: var(--fz-s-2);
  border: 0;
  border-radius: var(--fz-r-xs);
  background: transparent;
  font-weight: var(--fz-fw-medium);
  color: var(--fz-text-1);
}
.fz-ov-more-pop > .xcs-btn-ghost:hover { background: var(--fz-surface-hover); }
.fz-ov-more-pop > .xcs-btn-ghost .fsw-ic { color: var(--fz-text-3); }
.fz-ov-more-pop > .xcs-btn-ghost.is-danger,
.fz-ov-more-pop > .xcs-btn-ghost.is-danger .fsw-ic { color: var(--fz-crit-ink); }
/* fz-base.css paints every `.xcs-btn-ghost.is-danger` as a red pill with
   !important (tint at rest, red outline on hover). Inside this menu the danger
   item is a flat row like its neighbours — red text at rest, red tint on hover,
   never an outline — so the same !important is matched here (BRIEF §3). */
.fz-ov-more-pop > .xcs-btn-ghost.is-danger,
[data-theme="dark"] .fz-ov-more-pop > .xcs-btn-ghost.is-danger {
  background: transparent !important;
  border-color: transparent !important;
}
.fz-ov-more-pop > .xcs-btn-ghost.is-danger:hover:not(:disabled),
[data-theme="dark"] .fz-ov-more-pop > .xcs-btn-ghost.is-danger:hover:not(:disabled) {
  background: var(--fz-crit-soft) !important;
  border-color: transparent !important;
}
.fz-ov-bar .fsw-err { margin: 0; }
@media (max-width: 640px) {
  /* Phone: buttons share each row evenly instead of leaving ragged gaps. */
  .fz-ov-bar-main > .xcs-btn-primary,
  .fz-ov-bar-main > .xcs-btn-ghost,
  .fz-ov-bar-main > .xcs-btn-danger { flex: 1 1 auto; justify-content: center; }
}
/* OpsDrawerShell focuses the drawer itself on open (opsFocusTrap root mode), so
   no control lights up a ring by surprise; the dialog card needs no ring. */
.fsw-drawer:focus,
.fsw-drawer:focus-visible { outline: none; }
@media (max-width: 640px) {
  .fsw-drawer-h.has-av { padding-left: var(--fz-s-4); }
  .fsw-drawer-f { padding: var(--fz-s-3) var(--fz-s-4) calc(var(--fz-s-3) + env(safe-area-inset-bottom, 0px)); }
  /* Client link: a 44px hit area on phones without changing the row height.
     The padding is equal on all sides so a negative outline-offset can pull
     the keyboard ring back around the NAME (2px clear) — around the padded
     box it covered the title line below ("#01"). */
  .fz-ov-eyc { padding: var(--fz-s-3); margin: calc(var(--fz-s-3) * -1); }
  .fz-ov-eyc:focus-visible { outline-offset: calc(var(--fz-s-3) * -1 + 2px); }
  .fz-ov-ey-x { display: none; }
  .fz-ov-more-pop > .xcs-btn-ghost { min-height: 44px; }
}


/* ═══ 4. DRAWER BODY — CARDS ════════════════════════════════════════════════
   One recipe for every section: a surface-2 card (16px radius) on the surface-1
   drawer. Depth by surface, not by outlines. Card title = display face 14/600. */
.fz-ov-body { gap: var(--fz-s-3); }
.fz-ov-card {
  display: flex;
  flex-direction: column;
  gap: var(--fz-s-3);
  min-width: 0;
  padding: var(--fz-s-4);
  background: var(--fz-surface-2);
  border-radius: var(--fz-r-md);
  --fzb-cover: var(--fz-surface-2);
  --fz-avstack-ring: var(--fz-surface-2);
  --fz-res-row-bg: var(--fz-surface-1);
  --fz-task-bg: var(--fz-surface-1);
}
.fz-ov-card-h {
  display: flex;
  align-items: center;
  gap: var(--fz-s-2);
  min-width: 0;
  min-height: var(--fz-s-6);
}
.fz-ov-card-h h3 {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-family: var(--fz-font-display);
  font-size: var(--fz-fs-body);
  font-weight: var(--fz-fw-semi);
  letter-spacing: -.005em;
  line-height: 1.3;
  color: var(--fz-text-1);
}
.fz-ov-n {
  flex: none;
  display: inline-grid;
  place-items: center;
  min-width: var(--fz-s-6);
  height: var(--fz-s-5);
  padding: 0 var(--fz-s-2);
  border-radius: var(--fz-r-pill);
  background: var(--fz-surface-3);
  color: var(--fz-text-2);
  font-size: var(--fz-fs-meta);
  font-weight: var(--fz-fw-semi);
  font-variant-numeric: tabular-nums;
}
.fz-ov-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: var(--fz-s-7);
  height: var(--fz-s-7);
  border-radius: var(--fz-r-xs);
  background: var(--fz-k-soft, var(--fz-surface-3));
  color: var(--fz-k-ink, var(--fz-text-2));
}
.fz-ov-x {
  flex: none;
  appearance: none;
  display: grid;
  place-items: center;
  width: var(--fz-s-7);
  height: var(--fz-s-7);
  padding: 0;
  border: 0;
  border-radius: var(--fz-r-pill);
  background: transparent;
  color: var(--fz-text-3);
  cursor: pointer;
  transition: background-color var(--fz-t-fast) var(--fz-ease), color var(--fz-t-fast) var(--fz-ease);
}
.fz-ov-x:hover { background: var(--fz-surface-3); color: var(--fz-text-1); }
.fz-ov-card .fsw-list-empty {
  padding: 0;
  border: 0;
  background: none;
  color: var(--fz-text-3);
  font-size: var(--fz-fs-body);
  text-align: left;
  min-height: 0;
}

/* Facts: Due · PIC · Reviewer · Client deadline / Slot · Posted. */
.fz-ov-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--fz-s-3) var(--fz-s-4);
}
.fz-ov-fact { display: flex; flex-direction: column; gap: var(--fz-s-1); min-width: 0; }
.fz-ov-fact-l { font-size: var(--fz-fs-meta); font-weight: var(--fz-fw-medium); line-height: 1.3; color: var(--fz-text-3); }
.fz-ov-fact-v {
  display: flex;
  align-items: center;
  gap: var(--fz-s-2);
  min-width: 0;
  min-height: var(--fz-s-6);
  font-size: var(--fz-fs-body);
  line-height: 1.35;
  color: var(--fz-text-1);
}
.fz-ov-fact-v > .fsw-ic { flex: none; color: var(--fz-text-3); }
.fz-ov-fact-v b { font-weight: var(--fz-fw-semi); min-width: 0; overflow-wrap: anywhere; }
.fz-ov-fact-v b.is-none { font-weight: var(--fz-fw-medium); color: var(--fz-text-3); }
.fz-ov-fact-s { font-size: var(--fz-fs-meta); line-height: 1.3; color: var(--fz-text-2); }
.fz-ov-fact-s.is-warn { color: var(--fz-warn-ink); font-weight: var(--fz-fw-semi); }
.fz-ov-fact.is-late .fz-ov-fact-v,
.fz-ov-fact.is-late .fz-ov-fact-v > .fsw-ic,
.fz-ov-fact.is-late .fz-ov-fact-s { color: var(--fz-crit-ink); }
.fz-ov-fact .fsw-person { min-width: 0; max-width: 100%; }
.fz-ov-fact .fsw-person-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: var(--fz-fw-semi); }
.fz-ov-fact .fsw-person.is-none { color: var(--fz-text-3); font-size: var(--fz-fs-body); }
.fz-ov-role { font-weight: var(--fz-fw-semi); }
.fz-ov-factcard > .fz-ov-stage,
.fz-ov-factcard > .fz-ov-stage + .fz-ov-facts,
.fz-ov-factcard > .fz-ov-facts + .fz-ov-stage,
.fz-ov-factcard > .fz-ov-desc {
  padding-top: var(--fz-s-3);
  border-top: 1px solid var(--fz-border);
}
.fz-ov-factcard > .fz-ov-stage:first-child { padding-top: 0; border-top: 0; }
.fz-ov-desc { margin: 0; font-size: var(--fz-fs-body); line-height: 1.55; color: var(--fz-text-2); overflow-wrap: anywhere; }
@media (max-width: 380px) { .fz-ov-facts { grid-template-columns: minmax(0, 1fr); } }

/* Callouts (locked reason, reviewer notes, Instagram fetch result). Tint + ink, no outline. */
.fz-ov-callout {
  display: flex;
  align-items: flex-start;
  gap: var(--fz-s-2);
  padding: var(--fz-s-3);
  border-radius: var(--fz-r-sm);
  background: var(--fz-neutral-soft);
  color: var(--fz-text-2);
  font-size: var(--fz-fs-body);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.fz-ov-callout > .fsw-ic { flex: none; height: 1lh; } /* one text line tall: the 14px glyph centres on the first line */
.fz-ov-callout b { font-weight: var(--fz-fw-semi); }
.fz-ov-callout.is-crit { background: var(--fz-crit-soft); color: var(--fz-crit-ink); }
.fz-ov-callout.is-ok   { background: var(--fz-ok-soft);   color: var(--fz-ok-ink); }
.fz-ov-callout.is-warn { background: var(--fz-warn-soft); color: var(--fz-warn-ink); }

/* Notes (typed in place) + its save badge. */
.fz-ov-save { flex: none; font-size: var(--fz-fs-meta); color: var(--fz-text-3); }
.fz-ov-save.is-err { color: var(--fz-crit-ink); }
.fz-ov-card .fz-ov-notes { min-height: 72px; resize: vertical; line-height: 1.5; }
.fz-ov-pre { font-size: var(--fz-fs-body); line-height: 1.55; color: var(--fz-text-2); white-space: pre-wrap; overflow-wrap: anywhere; }

/* Action form card (opened from the action bar) — a toned edge says which action. */
.fz-ov-formcard { --fz-k: var(--fz-accent-line); --fz-k-soft: var(--fz-accent-soft); --fz-k-ink: var(--fz-accent-ink); box-shadow: inset 0 0 0 1px var(--fz-k); }
.fz-ov-formcard.is-ok   { --fz-k: var(--fz-ok);   --fz-k-soft: var(--fz-ok-soft);   --fz-k-ink: var(--fz-ok-ink); }
.fz-ov-formcard.is-crit { --fz-k: var(--fz-crit); --fz-k-soft: var(--fz-crit-soft); --fz-k-ink: var(--fz-crit-ink); }
.fz-ov-formcard .fsw-form { padding: 0; margin: 0; background: none; border: 0; border-radius: 0; gap: var(--fz-s-3); display: flex; flex-direction: column; }
.fz-ov-formcard .fsw-form-actions { margin-top: var(--fz-s-1); }
.fz-ov-formcard .fsw-note { background: var(--fz-surface-1); border: 0; border-radius: var(--fz-r-sm); color: var(--fz-text-2); }
.fz-ov-result { display: flex; align-items: center; gap: var(--fz-s-2); min-width: 0; }
.fz-ov-result a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fz-accent-ink); }

/* Folds (Details / Flow & revisions / History) — rows inside a card. */
.fz-ov-folds { gap: 0; padding-top: var(--fz-s-1); padding-bottom: var(--fz-s-1); }
.fz-ov-folds .fsw-fold + .fsw-fold { border-top: 1px solid var(--fz-border); }
.fz-ov-drawer .fsw-fold { gap: var(--fz-s-2); }
.fz-ov-drawer .fsw-fold.is-open { padding-bottom: var(--fz-s-3); }
.fz-ov-drawer .fsw-fold-t {
  align-self: stretch;
  width: 100%;
  min-height: 44px;
  padding: 0;
  gap: var(--fz-s-2);
  font-family: var(--fz-font-display);
  font-size: var(--fz-fs-body);
  font-weight: var(--fz-fw-semi);
  text-transform: none;
  letter-spacing: 0;
  color: var(--fz-text-1);
  border-radius: var(--fz-r-xs);
}
.fz-ov-drawer .fsw-fold-t:hover { color: var(--fz-text-1); }
.fz-ov-drawer .fsw-fold-t > .fsw-fold-c { color: var(--fz-text-3); }
.fz-ov-drawer .fsw-fold-n,
.fz-ov-drawer .fsw-fold.is-open .fsw-fold-n {
  margin-left: auto;
  min-width: var(--fz-s-6);
  height: var(--fz-s-5);
  padding: 0 var(--fz-s-2);
  font-family: var(--fz-font-body);
  font-size: var(--fz-fs-meta);
  font-weight: var(--fz-fw-semi);
  background: var(--fz-surface-3);
  color: var(--fz-text-2);
}
.fz-ov-drawer .fsw-kv { gap: var(--fz-s-3) var(--fz-s-4); }
.fz-ov-drawer .fsw-kv span { font-size: var(--fz-fs-meta); font-weight: var(--fz-fw-medium); text-transform: none; letter-spacing: 0; color: var(--fz-text-3); }
.fz-ov-drawer .fsw-kv b { font-size: var(--fz-fs-body); font-weight: var(--fz-fw-semi); color: var(--fz-text-1); }
.fz-ov-deps { gap: var(--fz-s-2); }
.fz-ov-drawer .fsw-dep { font-size: var(--fz-fs-body); gap: var(--fz-s-2); color: var(--fz-text-1); }
.fz-ov-drawer .fsw-dep.is-muted { color: var(--fz-text-2); }
.fz-ov-dep-l { flex: none; min-width: 80px; font-size: var(--fz-fs-meta); color: var(--fz-text-3); }

/* Comments + history inside drawer cards. */
.fz-ov-drawer .fsw-comments { display: flex; flex-direction: column; gap: var(--fz-s-3); }
.fz-ov-drawer .fsw-comment { grid-template-columns: 28px minmax(0, 1fr); gap: var(--fz-s-2); }
.fz-ov-drawer .fsw-comment-b { min-width: 0; padding: var(--fz-s-2) var(--fz-s-3); background: var(--fz-surface-1); border-radius: var(--fz-r-sm); }
.fz-ov-drawer .fsw-comment-h { font-size: var(--fz-fs-meta); color: var(--fz-text-3); }
.fz-ov-drawer .fsw-comment-h strong { color: var(--fz-text-1); font-weight: var(--fz-fw-semi); }
.fz-ov-drawer .fsw-comment-t { font-size: var(--fz-fs-body); color: var(--fz-text-1); overflow-wrap: anywhere; }
.fz-ov-drawer .fsw-comment-compose { gap: var(--fz-s-2); align-items: end; }
.fz-ov-drawer .fsw-comment-compose textarea { min-height: 44px; resize: vertical; }
.fz-ov-drawer .fsw-events { gap: var(--fz-s-3); }
.fz-ov-drawer .fsw-event { grid-template-columns: 24px minmax(0, 1fr); gap: var(--fz-s-2); }
.fz-ov-drawer .fsw-event-line { font-size: var(--fz-fs-body); line-height: 1.45; color: var(--fz-text-2); overflow-wrap: anywhere; }
.fz-ov-drawer .fsw-event-line strong { color: var(--fz-text-1); font-weight: var(--fz-fw-semi); }
.fz-ov-drawer .fsw-event-time { font-size: var(--fz-fs-meta); color: var(--fz-text-3); }
.fz-ov-drawer .fsw-event.kind-escalated .fsw-event-line,
.fz-ov-drawer .fsw-event.kind-rejected .fsw-event-line { color: var(--fz-crit-ink); }
.fz-ov-drawer .fsw-event.kind-approved .fsw-event-line { color: var(--fz-ok-ink); }

/* Legacy text-room editors keep their markup; only the surface follows the card. */
.fz-ov-write .fsw-write-bar h4 { font-family: var(--fz-font-display); font-size: var(--fz-fs-body); font-weight: var(--fz-fw-semi); text-transform: none; letter-spacing: 0; color: var(--fz-text-1); }
.fz-ov-write .fsw-write-n { font-size: var(--fz-fs-meta); color: var(--fz-text-3); }
.fz-ov-write .fsw-read { color: var(--fz-text-1); }


/* ═══ 5. STAGE STEPPER (OpsStagePath) ═══════════════════════════════════════
   Seven capsules: done + current = lime (progress), current is taller, ahead =
   surface-3 track. Light lime gets the --fz-focus hairline (lime on a light
   track is ~1.3:1; --fz-focus is 3.38:1 on surface-3). */
.fsw-stagepath.fz-ov-stage { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: var(--fz-s-2); min-width: 0; }
.fz-ov-stage-top { display: flex; align-items: baseline; gap: var(--fz-s-2); min-width: 0; }
.fz-ov-stage-l { flex: none; font-size: var(--fz-fs-meta); font-weight: var(--fz-fw-medium); color: var(--fz-text-3); }
.fz-ov-stage-now {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--fz-fs-body);
  font-weight: var(--fz-fw-semi);
  color: var(--fz-text-1);
}
.fz-ov-stage-n { flex: none; font-size: var(--fz-fs-meta); font-weight: var(--fz-fw-semi); color: var(--fz-text-2); font-variant-numeric: tabular-nums; }
.fz-ov-stage-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: center;
  gap: var(--fz-s-1);
  height: 12px;
}
.fz-ov-stage-track li { height: 6px; border-radius: var(--fz-r-pill); background: var(--fz-surface-3); }
.fz-ov-stage-track li.is-past,
.fz-ov-stage-track li.is-now { background: var(--fz-accent); box-shadow: inset 0 0 0 1px var(--fz-focus); }
.fz-ov-stage-track li.is-now { height: 12px; }
[data-theme="dark"] .fz-ov-stage-track li.is-past,
[data-theme="dark"] .fz-ov-stage-track li.is-now { box-shadow: none; }
/* Task drawer, task not done yet (locked / in progress / in QC): the current
   capsule marks WHERE the step sits, so it is an outline only — a full lime
   fill read as "finished / posted". Light: --fz-focus ring (3.38:1 on the
   surface-3 track, more on the card); dark: the lime itself. */
.fz-ov-stage-track li.is-now.is-open { background: transparent; box-shadow: inset 0 0 0 2px var(--fz-focus); }
[data-theme="dark"] .fz-ov-stage-track li.is-now.is-open { background: transparent; box-shadow: inset 0 0 0 2px var(--fz-accent); }
.fz-ov-stage-next { font-size: var(--fz-fs-meta); line-height: 1.35; color: var(--fz-text-3); min-height: 16px; }
.fz-ov-stage-next > span { color: var(--fz-text-2); font-weight: var(--fz-fw-semi); }


/* ═══ 6. REEL DRAWER PARTS ══════════════════════════════════════════════════ */
/* Team: one quiet row per person — avatar, name, role at the right. */
.fz-ov-people { display: flex; flex-direction: column; min-width: 0; }
.fz-ov-person {
  display: flex;
  align-items: center;
  gap: var(--fz-s-3);
  min-width: 0;
  min-height: 48px;
  padding: var(--fz-s-2) 0;
  border-top: 1px solid var(--fz-border);
}
.fz-ov-people > .fz-ov-person:first-child { border-top: 0; padding-top: 0; }
.fz-ov-people > .fz-ov-person:last-child { padding-bottom: 0; }
.fz-ov-person-n { flex: 1 1 auto; min-width: 0; font-size: var(--fz-fs-body); font-weight: var(--fz-fw-semi); color: var(--fz-text-1); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fz-ov-person-r { flex: none; font-size: var(--fz-fs-meta); color: var(--fz-text-3); }
.fz-ov-person.is-none .fz-ov-person-n { color: var(--fz-text-3); font-weight: var(--fz-fw-medium); }

.fz-ov-views {
  display: flex;
  flex-direction: column;
  gap: var(--fz-s-2);
  padding: var(--fz-s-3) var(--fz-s-4);
  background: var(--fz-surface-1);
  border-radius: var(--fz-r-sm);
}
.fz-ov-views-n { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--fz-s-1) var(--fz-s-2); }
.fz-ov-views-n b {
  font-family: var(--fz-font-display);
  font-size: var(--fz-fs-num);
  font-weight: var(--fz-fw-semi);
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--fz-text-1);
  font-variant-numeric: tabular-nums;
}
.fz-ov-views-n span { font-size: var(--fz-fs-meta); color: var(--fz-text-3); }
.fz-ov-views-spark .fsw-spark { display: block; width: 100%; height: 56px; }
.fz-ov-views-one { font-size: var(--fz-fs-meta); color: var(--fz-text-3); }

.fz-ov-rows { display: flex; flex-direction: column; min-width: 0; }
.fz-ov-row {
  display: flex;
  align-items: center;
  gap: var(--fz-s-3);
  min-width: 0;
  min-height: 52px;
  padding: var(--fz-s-2) 0;
  border-top: 1px solid var(--fz-border);
}
.fz-ov-rows > .fz-ov-row:first-child { border-top: 0; }
.fz-ov-row-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: var(--fz-s-7);
  height: var(--fz-s-7);
  border-radius: var(--fz-r-xs);
  background: var(--fz-surface-3);
  color: var(--fz-text-2);
}
.fz-ov-row-ico.is-accent { background: var(--fz-accent-soft); color: var(--fz-accent-ink); }
.fz-ov-row-t { flex: 1 1 auto; display: flex; flex-direction: column; gap: var(--fz-s-1); min-width: 0; }
.fz-ov-row-t b { font-size: var(--fz-fs-body); font-weight: var(--fz-fw-semi); color: var(--fz-text-1); line-height: 1.3; }
.fz-ov-row-t span { font-size: var(--fz-fs-meta); line-height: 1.35; color: var(--fz-text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fz-ov-row.is-warn .fz-ov-row-t span { color: var(--fz-warn-ink); white-space: normal; }
.fz-ov-row > .xcs-btn-ghost, .fz-ov-row > a.xcs-btn-ghost { flex: none; text-decoration: none; }

.fz-ov-steps { display: flex; flex-direction: column; gap: var(--fz-s-1); min-width: 0; }
.fz-ov-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 88px;
  align-items: center;
  gap: var(--fz-s-2) var(--fz-s-3);
  min-height: 48px;
  margin: 0 calc(var(--fz-s-2) * -1);
  padding: var(--fz-s-1) var(--fz-s-2);
  border-radius: var(--fz-r-sm);
  cursor: pointer;
  transition: background-color var(--fz-t-fast) var(--fz-ease);
}
.fz-ov-step:hover { background: var(--fz-surface-3); }
.fz-ov-step-t { display: flex; flex-direction: column; gap: var(--fz-s-1); min-width: 0; }
.fz-ov-step-t b { font-size: var(--fz-fs-body); font-weight: var(--fz-fw-semi); color: var(--fz-text-1); line-height: 1.3; overflow-wrap: anywhere; }
.fz-ov-step-t > span { font-size: var(--fz-fs-meta); color: var(--fz-text-3); }
.fz-ov-step-t em.is-late { display: inline-flex; align-items: center; gap: var(--fz-s-1); font-style: normal; font-weight: var(--fz-fw-semi); color: var(--fz-crit-ink); }
.fz-ov-step.is-done .fz-ov-step-t b { color: var(--fz-text-2); font-weight: var(--fz-fw-medium); }
.fz-ov-step .fsw-chips { justify-content: flex-end; flex-wrap: wrap; max-width: 168px; }
.fz-ov-step-who { display: inline-flex; align-items: center; gap: var(--fz-s-2); min-width: 0; font-size: var(--fz-fs-meta); color: var(--fz-text-2); }
.fz-ov-step-who > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fz-ov-steps-done {
  appearance: none;
  display: flex;
  align-items: center;
  gap: var(--fz-s-2);
  width: 100%;
  min-height: 44px;
  margin: 0 0 var(--fz-s-1);
  padding: 0 var(--fz-s-3) 0 var(--fz-s-2);
  border: 0;
  border-radius: var(--fz-r-sm);
  background: var(--fz-surface-1);
  color: var(--fz-text-2);
  font: inherit;
  font-size: var(--fz-fs-body);
  text-align: left;
  cursor: pointer;
}
.fz-ov-steps-done:hover { color: var(--fz-text-1); }
.fz-ov-steps-done.is-open { justify-content: center; margin: var(--fz-s-1) 0 0; background: transparent; color: var(--fz-text-3); font-size: var(--fz-fs-meta); }
.fz-ov-steps-ok { display: grid; place-items: center; width: var(--fz-s-6); height: var(--fz-s-6); border-radius: var(--fz-r-pill); background: var(--fz-ok-soft); color: var(--fz-ok-ink); flex: none; }
.fz-ov-steps-sh { margin-left: auto; color: var(--fz-accent-ink); font-size: var(--fz-fs-meta); font-weight: var(--fz-fw-semi); }
@media (max-width: 480px) {
  .fz-ov-step { grid-template-columns: minmax(0, 1fr) auto auto; }
  .fz-ov-step-who > span:last-child { display: none; }
  .fz-ov-step .fsw-chips { max-width: 128px; }
}


/* ═══ 7. LIST DRAWER ROWS (OpsListDrawer) ═══════════════════════════════════ */
.fz-ov-li-list { display: flex; flex-direction: column; gap: var(--fz-s-2); }
.fsw-it.fz-ov-li {
  display: flex;
  align-items: center;
  gap: var(--fz-s-3);
  min-height: 60px;
  padding: var(--fz-s-3);
  background: var(--fz-surface-2);
  border: 0;
  border-radius: var(--fz-r-md);
  transition: background-color var(--fz-t-fast) var(--fz-ease);
}
.fsw-it.fz-ov-li.is-click { cursor: pointer; }
.fsw-it.fz-ov-li.is-click:hover { background: var(--fz-surface-3); }
.fz-ov-li-t { flex: 1 1 auto; display: flex; flex-direction: column; gap: var(--fz-s-1); min-width: 0; }
.fz-ov-li-t b { font-size: var(--fz-fs-body); font-weight: var(--fz-fw-semi); color: var(--fz-text-1); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fz-ov-li-s { font-size: var(--fz-fs-meta); line-height: 1.4; color: var(--fz-text-2); overflow-wrap: anywhere; }
.fz-ov-li-r { flex: none; font-size: var(--fz-fs-meta); font-weight: var(--fz-fw-semi); color: var(--fz-text-2); font-variant-numeric: tabular-nums; }
.fz-ov-li-go { flex: none; color: var(--fz-text-3); }
.fsw-it.fz-ov-li.is-click:hover .fz-ov-li-go { color: var(--fz-text-1); }


/* ═══ 8. RESOURCES (OpsResourceList / Card / Add / Menu) ════════════════════
   Were inline OPS_RES_* style objects — now themable classes. Rows sit on
   --fz-res-row-bg: surface-2 by default (on a surface-1 card), surface-1 inside
   the drawer cards (which are surface-2). */
.fsw-sec.fz-res { min-width: 0; gap: var(--fz-s-3); }
.fz-res-head { display: flex; align-items: center; justify-content: space-between; gap: var(--fz-s-2); min-width: 0; min-height: var(--fz-s-6); }
.fsw-sec.fz-res .fz-res-head h4 {
  display: flex;
  align-items: center;
  gap: var(--fz-s-2);
  margin: 0;
  font-family: var(--fz-font-display);
  font-size: var(--fz-fs-body);
  font-weight: var(--fz-fw-semi);
  letter-spacing: 0;
  text-transform: none;
  color: var(--fz-text-1);
}
.fz-res-n {
  display: inline-grid;
  place-items: center;
  min-width: var(--fz-s-5);
  height: var(--fz-s-5);
  padding: 0 var(--fz-s-2);
  border-radius: var(--fz-r-pill);
  background: var(--fz-surface-3);
  color: var(--fz-text-2);
  font-family: var(--fz-font-body);
  font-size: var(--fz-fs-meta);
  font-weight: var(--fz-fw-semi);
}
.fz-res-list { display: flex; flex-direction: column; gap: var(--fz-s-2); min-width: 0; }
.fz-res-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--fz-s-3);
  min-width: 0;
  padding: var(--fz-s-1) var(--fz-s-1) var(--fz-s-1) var(--fz-s-2);
  background: var(--fz-res-row-bg, var(--fz-surface-2));
  border-radius: var(--fz-r-sm);
}
.fz-res-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: var(--fz-s-7);
  height: var(--fz-s-7);
  border-radius: var(--fz-r-xs);
  background: var(--fz-surface-3);
  color: var(--fz-text-2);
}
.fz-res-main { display: flex; flex-direction: column; gap: var(--fz-s-1); flex: 1 1 auto; min-width: 0; overflow: hidden; }
.fz-res-name { font-size: var(--fz-fs-body); font-weight: var(--fz-fw-semi); line-height: 1.3; color: var(--fz-text-1); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fz-res-meta { font-size: var(--fz-fs-meta); line-height: 1.3; color: var(--fz-text-3); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fz-res-open {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 var(--fz-s-3);
  border-radius: var(--fz-r-pill);
  font-size: var(--fz-fs-meta);
  font-weight: var(--fz-fw-semi);
  white-space: nowrap;
  text-decoration: none;
  color: var(--fz-accent-ink);
  transition: background-color var(--fz-t-fast) var(--fz-ease);
}
a.fz-res-open:hover { background: var(--fz-accent-soft); }
.fz-res-open.is-off { color: var(--fz-text-3); font-weight: var(--fz-fw-medium); }
.fsw-reel-menu.fz-res-dots {
  position: static;
  flex: none;
  width: 40px;
  height: 40px;
  min-height: 40px;
  border: 0;
  border-radius: var(--fz-r-pill);
  background: transparent;
  color: var(--fz-text-3);
}
.fsw-reel-menu.fz-res-dots:hover { background: var(--fz-surface-3); color: var(--fz-text-1); border-color: transparent; }
.fz-res-empty { display: flex; align-items: center; justify-content: space-between; gap: var(--fz-s-3); flex-wrap: wrap; min-width: 0; }
.fz-res-empty-t { display: inline-flex; align-items: center; gap: var(--fz-s-2); font-size: var(--fz-fs-body); color: var(--fz-text-3); }
.fz-res-add {
  display: flex;
  flex-direction: column;
  gap: var(--fz-s-3);
  min-width: 0;
  padding: var(--fz-s-3);
  border: 1px dashed var(--fz-border-strong);
  border-radius: var(--fz-r-sm);
  background: var(--fz-surface-sunken);
  --fzb-cover: var(--fz-surface-sunken);
}
.fz-res-add .fsw-muted { display: inline-flex; align-items: center; gap: var(--fz-s-1); font-size: var(--fz-fs-meta); color: var(--fz-text-2); }
.fsw-menu .fsw-menu-item.fz-res-danger,
.fsw-menu .fsw-menu-item.fz-res-danger:hover { color: var(--fz-crit-ink); }
.fsw-sec.fz-res .fsw-links { gap: var(--fz-s-2); }
@media (max-width: 640px) {
  .fz-res-open { min-height: 44px; }
  .fsw-reel-menu.fz-res-dots { width: 44px; height: 44px; min-height: 44px; }
}


/* ═══ 9. MODALS DEFINED IN ops-ui.jsx ═══════════════════════════════════════
   Chrome (surface, radius, header, sunken footer) is fz-base.css §9. Here: the
   optional icon tile OpsModal now renders (`icon` + `tone` props) and the inner
   parts of the modals this file owns. */
.fsw-modal-h .fz-ov-mht { flex: 1 1 auto; min-width: 0; }
.fz-ov-mico {
  --fz-k-soft: var(--fz-surface-3); --fz-k-ink: var(--fz-text-2);
  flex: none;
  display: grid;
  place-items: center;
  width: var(--fz-s-8);
  height: var(--fz-s-8);
  margin-top: var(--fz-s-1);
  border-radius: var(--fz-r-sm);
  background: var(--fz-k-soft);
  color: var(--fz-k-ink);
}
.fz-ov-mico.is-ok      { --fz-k-soft: var(--fz-ok-soft);      --fz-k-ink: var(--fz-ok-ink); }
.fz-ov-mico.is-warn    { --fz-k-soft: var(--fz-warn-soft);    --fz-k-ink: var(--fz-warn-ink); }
.fz-ov-mico.is-crit    { --fz-k-soft: var(--fz-crit-soft);    --fz-k-ink: var(--fz-crit-ink); }
.fz-ov-mico.is-info    { --fz-k-soft: var(--fz-info-soft);    --fz-k-ink: var(--fz-info-ink); }
.fz-ov-mico.is-violet  { --fz-k-soft: var(--fz-violet-soft);  --fz-k-ink: var(--fz-violet-ink); }
.fz-ov-mico.is-accent  { --fz-k-soft: var(--fz-accent-soft);  --fz-k-ink: var(--fz-accent-ink); }
.fz-ov-mico.is-neutral { --fz-k-soft: var(--fz-surface-3);    --fz-k-ink: var(--fz-text-2); }
.fsw-modal.has-ico .fsw-modal-h { gap: var(--fz-s-3); }
.fsw-modal.has-ico .fsw-modal-h h3 { padding-top: var(--fz-s-1); }
.fz-ov-modal .fz-ov-callout { margin: 0; }
.fz-ov-meta { margin: 0; font-size: var(--fz-fs-meta); color: var(--fz-text-3); }
/* A confirm prompt has no field: no empty body gap under the header. */
.fz-ov-prompt.is-confirm .fsw-modal-b:empty { display: none; }
.fz-ov-prompt.is-confirm .fsw-modal-h { padding-bottom: var(--fz-s-5); }

/* Option cards (OpsResolveModal radios). The radio stays real and focusable. */
.fz-ov-opts { display: flex; flex-direction: column; gap: var(--fz-s-2); }
.fz-ov-opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--fz-s-3);
  min-height: 56px;
  padding: var(--fz-s-2) var(--fz-s-3);
  border-radius: var(--fz-r-sm);
  background: var(--fz-surface-2);
  box-shadow: inset 0 0 0 1px transparent;
  cursor: pointer;
  transition: background-color var(--fz-t-fast) var(--fz-ease), box-shadow var(--fz-t-fast) var(--fz-ease);
}
.fz-ov-opt:hover { background: var(--fz-surface-3); }
.fz-ov-opt > input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.fz-ov-opt:has(input:focus-visible) { outline: 2px solid var(--fz-focus); outline-offset: 2px; }
.fz-ov-opt.is-on { background: var(--fz-accent-soft); box-shadow: inset 0 0 0 1px var(--fz-accent-line); }
.fz-ov-opt-ico { flex: none; display: grid; place-items: center; width: var(--fz-s-7); height: var(--fz-s-7); border-radius: var(--fz-r-xs); background: var(--fz-surface-1); color: var(--fz-text-2); }
.fz-ov-opt.is-on .fz-ov-opt-ico { color: var(--fz-accent-ink); }
.fz-ov-opt-t { display: flex; flex-direction: column; gap: var(--fz-s-1); min-width: 0; }
.fz-ov-opt-t b { font-size: var(--fz-fs-body); font-weight: var(--fz-fw-semi); color: var(--fz-text-1); }
.fz-ov-opt-t span { font-size: var(--fz-fs-meta); color: var(--fz-text-3); }
.fz-ov-opt.is-on .fz-ov-opt-t b { color: var(--fz-accent-ink); }

/* OpsSlider (Add client · Edit contract · Change position) — refine QA 5 Oct:
   the unit under the number ("batches", "months") and the range ends under the
   rail were 11px (ops-theme.css), under the 12px floor. The stacked number
   column is sized for the 12px word, and the ends' right padding follows it
   (column + the slider's 10px gap) so the max value still sits under the end
   of the rail. */
.fsw-slider-v { min-width: 56px; } /* "batches" in 12px mono ≈ 54px */
.fsw-slider-u { font-size: var(--fz-fs-micro); }
.fsw-slider-ends { padding-right: 66px; font-size: var(--fz-fs-micro); }

/* Month start: client picker rows with avatars. */
.fz-ov-picklist { max-height: 320px; overflow-y: auto; gap: var(--fz-s-1); margin-top: var(--fz-s-2); padding-right: var(--fz-s-1); }
.fsw-it.fz-ov-pick {
  display: flex;
  align-items: center;
  gap: var(--fz-s-3);
  min-height: 48px;
  padding: var(--fz-s-1) var(--fz-s-3);
  border: 0;
  border-radius: var(--fz-r-sm);
  cursor: pointer;
  transition: background-color var(--fz-t-fast) var(--fz-ease);
}
.fsw-it.fz-ov-pick:hover { background: var(--fz-surface-hover); }
.fsw-it.fz-ov-pick.is-on { background: var(--fz-accent-soft); }
.fz-ov-pick-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: var(--fz-s-1); }
.fz-ov-pick-t b { font-weight: var(--fz-fw-semi); color: var(--fz-text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fz-ov-pick-t span { font-size: var(--fz-fs-meta); font-weight: var(--fz-fw-regular); color: var(--fz-text-3); text-transform: capitalize; }
.fz-ov-pick-r { flex: 0 1 auto; min-width: 0; font-size: var(--fz-fs-meta); color: var(--fz-text-3); text-align: right; }
.fsw-it.fz-ov-pick.is-on .fz-ov-pick-r { color: var(--fz-text-2); }
/* Phones: the NAME is what is being picked, so it keeps the full row width and
   the batch/month line drops under it (same text column), instead of the
   meta squeezing the name to "Brian Mi…". */
@media (max-width: 480px) {
  .fsw-it.fz-ov-pick {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    column-gap: var(--fz-s-3);
    row-gap: 0;
    padding-top: var(--fz-s-2);
    padding-bottom: var(--fz-s-2);
  }
  .fsw-it.fz-ov-pick > input,
  .fsw-it.fz-ov-pick > .fz-cav { grid-row: 1 / span 2; align-self: center; }
  .fz-ov-pick-t { grid-column: 3; grid-row: 1; }
  .fz-ov-pick-r { grid-column: 3; grid-row: 2; text-align: left; }
}

/* Add client: numbered section cards, day pills, PIC fields with avatar, summary. */
.fz-ov-msec {
  display: flex;
  flex-direction: column;
  gap: var(--fz-s-3);
  padding: var(--fz-s-4) var(--fz-s-5) var(--fz-s-5);
  background: var(--fz-surface-2);
  border-radius: var(--fz-r-md);
  --fzb-cover: var(--fz-surface-2);
}
.fz-ov-msec-h { display: flex; align-items: center; gap: var(--fz-s-2); min-width: 0; }
.fz-ov-msec-h h4 { margin: 0; font-family: var(--fz-font-display); font-size: var(--fz-fs-card); font-weight: var(--fz-fw-semi); color: var(--fz-text-1); letter-spacing: -.01em; }
.fz-ov-msec-n {
  display: grid;
  place-items: center;
  width: var(--fz-s-6);
  height: var(--fz-s-6);
  border-radius: var(--fz-r-pill);
  background: var(--fz-surface-3);
  color: var(--fz-text-2);
  font-family: var(--fz-font-mono);
  font-size: var(--fz-fs-micro);
  font-weight: var(--fz-fw-semi);
}
.fz-ov-msec-s { margin-left: auto; font-size: var(--fz-fs-meta); color: var(--fz-text-3); }
.fz-ov-days { display: flex; flex-wrap: wrap; gap: var(--fz-s-2); }
.fz-ov-day {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 36px;
  padding: 0 var(--fz-s-3);
  border-radius: var(--fz-r-pill);
  background: var(--fz-surface-1);
  box-shadow: inset 0 0 0 1px var(--fz-border-strong);
  color: var(--fz-text-2);
  font-size: var(--fz-fs-meta);
  font-weight: var(--fz-fw-semi);
  cursor: pointer;
  user-select: none;
  transition: background-color var(--fz-t-fast) var(--fz-ease), color var(--fz-t-fast) var(--fz-ease);
}
.fz-ov-day > input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.fz-ov-day:hover { color: var(--fz-text-1); }
.fz-ov-day:has(input:focus-visible) { outline: 2px solid var(--fz-focus); outline-offset: 2px; }
.fz-ov-day.is-on { background: var(--fz-accent-soft); box-shadow: inset 0 0 0 1px var(--fz-accent-line); color: var(--fz-accent-ink); }
/* Picker field (OpsPickField → OpsUserSelect / OpsClientSelect, every form):
   the <input list> well reads as a picker — a token ▾ chevron at the right and,
   for people, the picked face (a person icon while empty) at the left. Both are
   pointer-events none, so a click still lands on the input and on the
   browser's own list button under the chevron (it opens the full list). */
.fz-ov-pf { position: relative; display: block; min-width: 0; }
.fz-ov-pf > .fsw-input { padding-right: calc(var(--fz-s-6) + var(--fz-s-1)); } /* = select caret room (fz-base) */
.fz-ov-pf.has-lead > .fsw-input { padding-left: 40px; }
.fz-ov-pf-lead,
.fz-ov-pf-chev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
  color: var(--fz-text-3);
}
.fz-ov-pf-lead { left: var(--fz-s-3); display: inline-flex; align-items: center; }
.fz-ov-pf-chev { right: var(--fz-s-2); transition: color var(--fz-t-fast) var(--fz-ease); }
.fz-ov-pf:hover > .fz-ov-pf-chev,
.fz-ov-pf:focus-within > .fz-ov-pf-chev { color: var(--fz-text-1); }
/* Chrome/Safari paint their own list arrow on hover: keep it (clickable) but
   invisible, so only one chevron ever shows. */
.fz-ov-pf > .fsw-input::-webkit-calendar-picker-indicator { opacity: 0; cursor: pointer; }
.fz-ov-pf > .fsw-input::-webkit-list-button { opacity: 0; }
/* Rows that already show the PIC's face right beside the picker (client header
   inline edit, Workflow step "Assign") skip the in-field face — no double face.
   The header inline edit is also a ~120px field opened by clicking that PIC
   (already focused, list on typing): it keeps its old full-width text instead
   of a chevron that would clip "Daffa · CS". */
.fz-cd-pic.is-edit .fz-ov-pf.has-lead > .fz-ov-pf-lead,
.fz-cd-sp-assign .fz-ov-pf.has-lead > .fz-ov-pf-lead,
.fz-cd-pic.is-edit .fz-ov-pf > .fz-ov-pf-chev { display: none; }
.fz-cd-pic.is-edit .fz-ov-pf.has-lead > .fsw-input,
.fz-cd-sp-assign .fz-ov-pf.has-lead > .fsw-input { padding-left: var(--fz-s-3); }
.fz-cd-pic.is-edit .fz-ov-pf > .fsw-input { padding-right: var(--fz-s-3); }
.fz-ov-sum {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: var(--fz-s-2);
  padding: var(--fz-s-2);
  border-radius: var(--fz-r-md);
  background: var(--fz-surface-2);
}
.fz-ov-sum-i { display: flex; flex-direction: column; gap: var(--fz-s-1); min-width: 0; padding: var(--fz-s-2) var(--fz-s-3); border-radius: var(--fz-r-sm); background: var(--fz-surface-1); }
.fz-ov-sum-i b { font-family: var(--fz-font-display); font-size: var(--fz-fs-num-sm); font-weight: var(--fz-fw-semi); letter-spacing: -.02em; line-height: 1.2; color: var(--fz-text-1); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fz-ov-sum-i span { font-size: var(--fz-fs-meta); color: var(--fz-text-3); }
.fz-ov-sum-i.is-hero { background: var(--fz-accent-soft); }
.fz-ov-sum-i.is-hero b { color: var(--fz-accent-ink); }
.fz-ov-sum-x { grid-column: 1 / -1; padding: var(--fz-s-2) var(--fz-s-3); font-size: var(--fz-fs-body); color: var(--fz-text-3); }
.fz-ov-foot-n { margin-right: auto; font-size: var(--fz-fs-meta); color: var(--fz-text-3); }
.fz-ov-foot-n b { color: var(--fz-text-1); font-weight: var(--fz-fw-semi); }
@media (max-width: 640px) {
  .fz-ov-msec { padding: var(--fz-s-3) var(--fz-s-3) var(--fz-s-4); }
  .fz-ov-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fz-ov-sum-i.is-hero { grid-column: 1 / -1; }
  .fz-ov-day { height: 44px; min-width: 56px; }
}

/* Change position: now → new code tiles, explanation folded away. */
.fz-ov-codes { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: var(--fz-s-2); }
.fz-ov-code { display: flex; flex-direction: column; gap: var(--fz-s-1); min-width: 0; padding: var(--fz-s-3); border-radius: var(--fz-r-sm); background: var(--fz-surface-2); }
.fz-ov-code > span { font-size: var(--fz-fs-meta); color: var(--fz-text-3); }
.fz-ov-code > b { font-size: var(--fz-fs-body); font-weight: var(--fz-fw-semi); color: var(--fz-text-1); }
.fz-ov-code > code { font-family: var(--fz-font-mono); font-size: var(--fz-fs-meta); color: var(--fz-text-2); overflow-wrap: anywhere; }
.fz-ov-code.is-new { background: var(--fz-accent-soft); box-shadow: inset 0 0 0 1px var(--fz-accent-line); }
.fz-ov-code.is-new > b, .fz-ov-code.is-new > code { color: var(--fz-accent-ink); }
.fz-ov-code-arrow { display: grid; place-items: center; color: var(--fz-text-3); }
.fz-ov-info { border-radius: var(--fz-r-sm); background: var(--fz-surface-2); }
.fz-ov-info > summary {
  display: flex;
  align-items: center;
  gap: var(--fz-s-2);
  min-height: 44px;
  padding: 0 var(--fz-s-3);
  font-size: var(--fz-fs-body);
  font-weight: var(--fz-fw-medium);
  color: var(--fz-text-2);
  cursor: pointer;
  list-style: none;
}
.fz-ov-info > summary::-webkit-details-marker { display: none; }
.fz-ov-info > p { margin: 0; padding: 0 var(--fz-s-3) var(--fz-s-3); font-size: var(--fz-fs-body); line-height: 1.55; color: var(--fz-text-2); }
@media (max-width: 480px) {
  .fz-ov-codes { grid-template-columns: minmax(0, 1fr); }
  .fz-ov-code-arrow { transform: rotate(90deg); }
}

/* Video modal: a 9:16 stage on the deepest surface, rounded like a phone screen. */
.fz-ov-video .fsw-video-wrap {
  border-radius: var(--fz-r-md);
  background: var(--fz-surface-sunken);
  border: 1px solid var(--fz-border);
  overflow: hidden;
}
.fz-ov-video .fsw-video-alt { margin: var(--fz-s-3) 0 0; font-size: var(--fz-fs-meta); }
.fz-ov-video .fsw-video-alt a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--fz-s-3); border-radius: var(--fz-r-pill); color: var(--fz-accent-ink); font-weight: var(--fz-fw-semi); text-decoration: none; }
@media (max-width: 640px) { .fz-ov-video .fsw-video-alt a { min-height: 44px; } }
.fz-ov-video .fsw-video-alt a:hover { text-decoration: underline; }

/* 9 Okt 2026 — pop-up gambar chat (OpsChatImageModal): hampir tanpa chrome,
   gambar sendiri yang jadi fokus, bukan kartu dialog. */
.fz-chat-imgmodal-img { display: block; width: 100%; max-height: 72vh; object-fit: contain; border-radius: var(--fz-r-md); background: var(--fz-surface-sunken); }
.fz-chat-imgmodal-open {
  display: inline-flex; align-items: center; gap: 4px; margin-bottom: var(--fz-s-2);
  font-size: var(--fz-fs-meta); color: var(--fz-text-3); text-decoration: none;
}
.fz-chat-imgmodal-open:hover { color: var(--fz-accent-ink); text-decoration: underline; }

/* Link sheet. */
.fz-ov-linksheet .fsw-linksheet-url { background: var(--fz-surface-2); border: 0; border-radius: var(--fz-r-sm); color: var(--fz-text-1); }
.fz-ov-linksheet .fsw-linksheet-hint { color: var(--fz-text-3); font-size: var(--fz-fs-meta); }


/* ═══ 10. SHARED TABLES ═════════════════════════════════════════════════════
   OpsClientsTable (Today / Clients "Table" view / My Week), OpsEditorsCard and
   OpsStrategistsCard (Today, Team, My Week). Faces on every row, numbers as bars. */
.fz-ov-tcl { display: flex; align-items: center; gap: var(--fz-s-3); min-width: 0; }
.fz-ov-tcl-t { display: flex; flex-direction: column; gap: 0; min-width: 0; line-height: 1.3; }
.fz-ov-tcl-t b { font-weight: var(--fz-fw-semi); color: var(--fz-text-1); max-width: 24ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fz-ov-tcl-t span { font-size: var(--fz-fs-meta); color: var(--fz-text-3); max-width: 24ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fz-ov-tperson { display: inline-flex; align-items: center; gap: var(--fz-s-2); white-space: nowrap; color: var(--fz-text-1); }
.fz-ov-tnone { color: var(--fz-text-3); }
.fz-ov-tmuted { color: var(--fz-text-2); }
td.fz-ov-tmuted { color: var(--fz-text-2); }
/* Long milestone labels ("Brief video shoot & editing · 24 Sep") used to wrap into
   four lines and swell every row; one clipped line, full text in the tooltip. */
.fz-ov-tclip { display: block; max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fz-ov-tstep { display: inline-flex; align-items: baseline; gap: var(--fz-s-2); white-space: nowrap; }
.fz-ov-tstep > i { font-style: normal; font-family: var(--fz-font-mono); font-size: var(--fz-fs-micro); color: var(--fz-text-3); }
.fz-ov-tstep > span { font-weight: var(--fz-fw-medium); color: var(--fz-text-1); }
.fz-ov-tstep > em { font-style: normal; font-size: var(--fz-fs-meta); color: var(--fz-text-3); font-variant-numeric: tabular-nums; }
.fz-ov-tstep.is-done > span { color: var(--fz-ok-ink); }
/* Batch copy inside the Step cell: only shown once the Batch column folds away. */
.fz-ov-ctable .fz-ov-tstep > em.fz-ov-tstep-b { display: none; }
.fz-ov-tstep > em + em.fz-ov-tstep-b::before { content: '· '; }
/* Milestone: the name clips, the date never does. A due date in the past reads
   "Late · 1 Oct" in crit ink — the same word and colour as the client cards. */
.fz-ov-tms { display: inline-flex; align-items: baseline; gap: var(--fz-s-1); max-width: 100%; min-width: 0; white-space: nowrap; vertical-align: middle; }
.fz-ov-tms-n { min-width: 0; max-width: 18ch; overflow: hidden; text-overflow: ellipsis; }
.fz-ov-tms-d { flex: none; font-variant-numeric: tabular-nums; }
.fz-ov-tms-d.is-late { color: var(--fz-crit-ink); font-weight: var(--fz-fw-semi); }
/* Due copy inside the Step cell: hidden while the Milestone column shows, its
   own line once that column folds away (or with `compact`), so the table never
   drops the due date or the lateness. Another step's milestone keeps its name
   in front; only that name clips (12ch, so it never widens the narrow Step
   column) and the date drops under it when the column is tight. */
.fz-ov-ctable .fz-ov-tstep > em.fz-ov-tstep-d { display: none; }
.fz-ov-tstep > em.fz-ov-tstep-d { flex-wrap: wrap; align-items: baseline; gap: 0 var(--fz-s-1); min-width: 0; max-width: 100%; white-space: nowrap; }
.fz-ov-tstep-dn { min-width: 0; max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fz-ov-tstep-dd { flex: none; white-space: nowrap; }
.fz-ov-tstep-dn + .fz-ov-tstep-dd::before { content: '· '; }
.fz-ov-tstep > em.fz-ov-tstep-d.is-late { color: var(--fz-crit-ink); font-weight: var(--fz-fw-semi); }
.fz-ov-ctable.is-compact .fz-ov-tstep { flex-wrap: wrap; row-gap: 0; white-space: normal; line-height: 1.3; }
.fz-ov-ctable.is-compact .fz-ov-tstep > em.fz-ov-tstep-d { display: inline-flex; flex: 1 0 100%; }
.fz-ov-tbatch { white-space: nowrap; color: var(--fz-text-2); }
.fsw-mbar.fz-ov-mbar { display: flex; align-items: center; gap: var(--fz-s-2); min-width: 128px; }
.fz-ov-mbar .fz-segwrap { flex: 1 1 72px; min-width: 56px; }
.fz-ov-mbar .fsw-mbar-n { flex: none; font-size: var(--fz-fs-meta); color: var(--fz-text-3); font-variant-numeric: tabular-nums; }
.fz-ov-mbar .fsw-mbar-n b { color: var(--fz-text-1); font-weight: var(--fz-fw-semi); }
.fz-ov-ctable .fz-pill, .fz-ov-ttable .fz-pill { vertical-align: middle; }
.fz-ov-tteam { display: inline-flex; align-items: center; gap: var(--fz-s-1); vertical-align: middle; }
/* Every client row is the same height whether or not it has an @handle line
   (the owner has flagged row heights that jump before — nova-ui.css B4 note). */
.fz-ov-ctable .fz-ov-tcl-t { min-height: 2.6em; justify-content: center; }

/* Clients table — fits its box instead of scrolling sideways (owner spec:
   "horizontal scroll only as final fallback"). The SAME table sits in boxes of
   very different widths (Clients page, My Week, Today), so the steps key off the
   table's own width — a container query — not the window. Every column carries
   an fz-ov-c-* class, so `compact` (fewer columns) never shifts a rule.
     ≥ 1160  all nine columns
     < 1160  tighter cells, shorter name / milestone clip, slimmer month bar
     < 1080  Strategist + Editor fold into one "Team" column (two faces, names in the tooltip)
     < 1000  the step number hides (it is in the Step tooltip)
     <  880  Milestone hides (it stays in the client page)
     <  760  Batch and the sent/total count hide (both in the Step tooltip)
     <  600  each row becomes a small card: name + status / step + team / month + week
   The row is still the same <tr>: whole-row click, keyboard and title unchanged. */
.fz-ov-ctable { container: fzovct / inline-size; }
.fz-ov-ctable .fz-ov-c-team { display: none; }
@container fzovct (max-width: 1159px) {
  .fz-ov-ctable > .fsw-table > thead > tr > th,
  .fz-ov-ctable > .fsw-table > tbody > tr > td { padding-left: var(--fz-s-2); padding-right: var(--fz-s-2); }
  .fz-ov-ctable .fz-ov-tcl { gap: var(--fz-s-2); }
  .fz-ov-ctable .fz-ov-tcl-t b,
  .fz-ov-ctable .fz-ov-tcl-t span { max-width: 18ch; }
  .fz-ov-ctable .fz-ov-tclip { max-width: 16ch; }
  .fz-ov-ctable .fz-ov-tms-n { max-width: 12ch; }
  .fz-ov-ctable .fsw-mbar.fz-ov-mbar { min-width: 104px; }
}
@container fzovct (max-width: 1079px) {
  .fz-ov-ctable .fz-ov-c-str,
  .fz-ov-ctable .fz-ov-c-ed { display: none; }
  .fz-ov-ctable .fz-ov-c-team { display: table-cell; }
}
@container fzovct (max-width: 999px) {
  .fz-ov-ctable .fz-ov-tstep > i { display: none; }
  .fz-ov-ctable .fz-ov-tcl-t b,
  .fz-ov-ctable .fz-ov-tcl-t span { max-width: 16ch; }
}
@container fzovct (max-width: 879px) {
  .fz-ov-ctable .fz-ov-c-ms { display: none; }
  /* …and its due date moves under the step name ("Late · 1 Oct" in crit ink). */
  .fz-ov-ctable .fz-ov-tstep { flex-wrap: wrap; row-gap: 0; white-space: normal; line-height: 1.3; }
  .fz-ov-ctable .fz-ov-tstep > em.fz-ov-tstep-d { display: inline-flex; flex: 1 0 100%; }
}
@container fzovct (max-width: 759px) {
  .fz-ov-ctable .fz-ov-c-batch { display: none; }
  /* The Step cell takes two lines (same height as the name + @handle cell):
     step name, then "sent/total · Batch N" — nothing is dropped. */
  .fz-ov-ctable .fz-ov-tstep { flex-wrap: wrap; row-gap: 0; column-gap: var(--fz-s-1); white-space: normal; line-height: 1.3; }
  .fz-ov-ctable .fz-ov-tstep > span { flex: 1 0 100%; white-space: nowrap; }
  .fz-ov-ctable .fz-ov-tstep > em { white-space: nowrap; }
  .fz-ov-ctable .fz-ov-tstep > em.fz-ov-tstep-b { display: inline; }
  .fz-ov-ctable .fsw-mbar.fz-ov-mbar { min-width: 96px; }
}
@container fzovct (max-width: 599px) {
  .fz-ov-ctable > .fsw-table { display: block; }
  .fz-ov-ctable > .fsw-table > thead { display: none; }
  .fz-ov-ctable > .fsw-table > tbody { display: flex; flex-direction: column; }
  .fz-ov-ctable > .fsw-table > tbody > tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "cl st" "step team" "mon wk";
    align-items: center;
    gap: var(--fz-s-2) var(--fz-s-4);
    padding: var(--fz-s-3) var(--fz-s-2);
    border-bottom: 1px solid var(--fz-border);
    border-radius: var(--fz-r-sm);
    transition: background-color var(--fz-t-fast) var(--fz-ease);
  }
  .fz-ov-ctable > .fsw-table > tbody > tr:last-child { border-bottom: 0; }
  .fz-ov-ctable > .fsw-table > tbody > tr.is-click:hover { background: var(--fz-surface-hover); }
  .fz-ov-ctable > .fsw-table > tbody > tr > td {
    display: block;
    height: auto;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }
  /* Hover hanya me-reset latar sel (fz-base mewarnai td saat hover). JANGAN
     taruh display di sini: (0,4,3) mengalahkan aturan sembunyi di bawah, lalu
     Strategist/Editor/Batch/Milestone muncul lagi saat hover / tap. */
  .fz-ov-ctable > .fsw-table > tbody > tr.is-click:hover > td { background: transparent; }
  .fz-ov-ctable > .fsw-table > tbody > tr > td.fz-ov-c-str,
  .fz-ov-ctable > .fsw-table > tbody > tr > td.fz-ov-c-ed,
  .fz-ov-ctable > .fsw-table > tbody > tr > td.fz-ov-c-batch,
  .fz-ov-ctable > .fsw-table > tbody > tr > td.fz-ov-c-ms { display: none; }
  .fz-ov-ctable td.fz-ov-c-cl   { grid-area: cl; }
  .fz-ov-ctable td.fz-ov-c-st   { grid-area: st; justify-self: end; }
  .fz-ov-ctable td.fz-ov-c-step { grid-area: step; }
  .fz-ov-ctable td.fz-ov-c-team { grid-area: team; justify-self: end; }
  .fz-ov-ctable td.fz-ov-c-mon  { grid-area: mon; }
  .fz-ov-ctable td.fz-ov-c-wk   { grid-area: wk; justify-self: end; }
  /* The header row is gone, so the two visual columns name themselves. */
  .fz-ov-ctable td.fz-ov-c-mon::before,
  .fz-ov-ctable td.fz-ov-c-wk::before {
    display: block;
    margin-bottom: var(--fz-s-1);
    font-size: var(--fz-fs-micro);
    font-weight: var(--fz-fw-medium);
    letter-spacing: .01em;
    text-transform: uppercase;
    color: var(--fz-text-3);
  }
  .fz-ov-ctable td.fz-ov-c-mon::before { content: "This month"; }
  .fz-ov-ctable td.fz-ov-c-wk::before { content: "This week"; }
  .fz-ov-ctable .fz-ov-tcl-t b,
  .fz-ov-ctable .fz-ov-tcl-t span { max-width: none; }
  .fz-ov-ctable .fz-ov-tstep { white-space: normal; flex-wrap: wrap; }
  .fz-ov-ctable .fz-ov-tstep > i { display: inline; }
  .fz-ov-ctable .fz-ov-tstep > em { display: inline; }
  .fz-ov-ctable .fz-ov-tstep > span { flex: 0 1 auto; }
  /* The card row is wide: another step's milestone name may run to the edge. */
  .fz-ov-ctable .fz-ov-tstep-dn { max-width: none; }
  /* Labels on one line, bar and dots on one line: both cells start at the top
     and their content shares one 20px line box. */
  .fz-ov-ctable td.fz-ov-c-mon,
  .fz-ov-ctable td.fz-ov-c-wk { align-self: start; }
  .fz-ov-ctable .fsw-mbar.fz-ov-mbar { min-width: 0; min-height: var(--fz-s-5); }
  .fz-ov-ctable td.fz-ov-c-wk .fsw-wdots { min-height: var(--fz-s-5); }
}

/* Week dots: seven rounded squares, status = token base colour (+ legend). */
.fsw-wdots { gap: var(--fz-s-1); align-items: center; }
.fsw-wdots i {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: calc(var(--fz-r-xs) / 2);
  background: var(--fz-surface-2);
  box-shadow: inset 0 0 0 1px var(--fz-border-strong);
}
.fsw-wdots i.is-ahead     { background: var(--fz-surface-3); box-shadow: none; }
.fsw-wdots i.is-posted    { background: var(--fz-ok); box-shadow: none; }
.fsw-wdots i.is-missed    { background: var(--fz-crit); box-shadow: none; }
.fsw-wdots i.is-scheduled { background: var(--fz-accent); box-shadow: inset 0 0 0 1px var(--fz-focus); }
.fsw-wdots i.is-waiting   { background: var(--fz-warn); box-shadow: none; }
.fsw-wdots i.is-today     { background: transparent; box-shadow: inset 0 0 0 2px var(--fz-text-2); }
[data-theme="dark"] .fsw-wdots i.is-scheduled { box-shadow: none; }

/* Legend under the clients table. */
.fsw-legend.fz-ov-legend { align-items: center; gap: var(--fz-s-2) var(--fz-s-4); font-size: var(--fz-fs-meta); color: var(--fz-text-2); }
.fz-ov-legend > span { display: inline-flex; align-items: center; gap: var(--fz-s-2); }
.fz-ov-legend-h { color: var(--fz-text-3); font-weight: var(--fz-fw-semi); }
.fz-ov-legend .fz-ov-legend-h:not(:first-child) { margin-left: var(--fz-s-3); }
.fz-ov-sw { display: inline-block; width: 12px; height: 6px; border-radius: var(--fz-r-pill); background: var(--fz-surface-3); flex: none; }
.fz-ov-sw.is-sq { width: 10px; height: 10px; border-radius: calc(var(--fz-r-xs) / 2); }
.fz-ov-sw.is-ok     { background: var(--fz-ok); }
.fz-ov-sw.is-crit   { background: var(--fz-crit); }
.fz-ov-sw.is-warn   { background: var(--fz-warn); }
.fz-ov-sw.is-accent { background: var(--fz-accent); box-shadow: inset 0 0 0 1px var(--fz-focus); }
.fz-ov-sw.is-today  { background: transparent; box-shadow: inset 0 0 0 2px var(--fz-text-2); }
.fz-ov-sw.is-rest   { background: var(--fz-surface-3); }
[data-theme="dark"] .fz-ov-sw.is-accent { box-shadow: none; }

/* Editors / strategists cards: bars with the number beside them. */
.fz-ov-tbar { display: inline-flex; align-items: center; gap: var(--fz-s-2); min-width: 104px; width: 100%; max-width: 200px; vertical-align: middle; }
.fz-ov-tbar > .fz-prog { flex: 1 1 64px; min-width: 48px; }
.fz-ov-ttable .fsw-person { white-space: nowrap; }
.fz-ov-tbar-n { flex: none; min-width: 3ch; font-size: var(--fz-fs-meta); color: var(--fz-text-3); font-variant-numeric: tabular-nums; }
.fz-ov-tbar-n b { color: var(--fz-text-1); font-weight: var(--fz-fw-semi); }
.fz-ov-ttable .fsw-person-name { font-weight: var(--fz-fw-semi); }
.fz-ov-teamcard .fsw-table-wrap { margin: 0 calc(var(--fz-s-2) * -1); }

/* Editors / strategists tables in a narrow box (phones, a narrow column): each
   row becomes a two-line card — face + status pill, then the three numbers with
   their own labels (data-l) — instead of scrolling sideways. Same <tr>, so
   OpsTimBaris' whole-row click / Enter still opens the person. */
.fz-ov-ttable { container: fzovtt / inline-size; }
/* 600–719: tighter cells and slimmer bars so the five columns still fit. */
@container fzovtt (max-width: 719px) {
  .fz-ov-ttable > .fsw-table > thead > tr > th,
  .fz-ov-ttable > .fsw-table > tbody > tr > td { padding-left: var(--fz-s-2); padding-right: var(--fz-s-2); }
  .fz-ov-ttable .fz-ov-tbar { min-width: 88px; }
}
@container fzovtt (max-width: 599px) {
  .fz-ov-ttable > .fsw-table { display: block; }
  .fz-ov-ttable > .fsw-table > thead { display: none; }
  .fz-ov-ttable > .fsw-table > tbody { display: flex; flex-direction: column; }
  .fz-ov-ttable > .fsw-table > tbody > tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas: "who who st" "a b c";
    align-items: center;
    gap: var(--fz-s-2) var(--fz-s-4);
    padding: var(--fz-s-3) var(--fz-s-2);
    border-bottom: 1px solid var(--fz-border);
    border-radius: var(--fz-r-sm);
    transition: background-color var(--fz-t-fast) var(--fz-ease);
  }
  .fz-ov-ttable > .fsw-table > tbody > tr:last-child { border-bottom: 0; }
  .fz-ov-ttable > .fsw-table > tbody > tr.is-click:hover,
  .fz-ov-ttable > .fsw-table > tbody > tr.is-click:focus-visible { background: var(--fz-surface-hover); }
  .fz-ov-ttable > .fsw-table > tbody > tr > td,
  .fz-ov-ttable > .fsw-table > tbody > tr.is-click:hover > td,
  .fz-ov-ttable > .fsw-table > tbody > tr.is-click:focus-visible > td {
    display: block;
    height: auto;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
  }
  .fz-ov-ttable td.fz-ov-t-who { grid-area: who; }
  .fz-ov-ttable td.fz-ov-t-st  { grid-area: st; justify-self: end; }
  .fz-ov-ttable td.fz-ov-t-a   { grid-area: a; }
  .fz-ov-ttable td.fz-ov-t-b   { grid-area: b; }
  .fz-ov-ttable td.fz-ov-t-c   { grid-area: c; }
  .fz-ov-ttable td[data-l]::before {
    content: attr(data-l);
    display: block;
    margin-bottom: var(--fz-s-1);
    font-size: var(--fz-fs-micro);
    font-weight: var(--fz-fw-medium);
    letter-spacing: .01em;
    text-transform: uppercase;
    color: var(--fz-text-3);
  }
  .fz-ov-ttable .fz-ov-tbar { min-width: 0; max-width: none; }
}
/* Strategists: three plain counts — equal thirds so PIC on / Due / Done line up. */
@container fzovtt (max-width: 599px) {
  .fz-ov-ttable.is-st > .fsw-table > tbody > tr { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}


/* ═══ 11. TREND CHART (OpsTrendChart) ═══════════════════════════════════════
   The SVG is drawn at 1 unit = 1 CSS px (its width is measured), so the axis
   text is a real 11px and the target label 12px at every width — it used to
   stretch with a fixed 560-wide viewBox (≈4px on phones, ≈23px at 1920). */
.fsw-chartwrap .fsw-chart text { font-family: var(--fz-font-body); fill: var(--fz-text-3); }
.fsw-chartwrap .fsw-chart text.is-tgt-l { fill: var(--fz-text-2); font-weight: var(--fz-fw-medium); }
