/* fz-team.css — Team — people-first cards, member drawer, QC queue. Owner: team agent (ops-performance.jsx).
   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). Page scope: .fz-p-team. Drawers render inside the page
   but are fixed overlays — their rules are scoped to .fz-tim-drawer.

   Sections
     0. Page rhythm, shared bits (count chip, dot, mono, "How …" disclosure)
     1. Hero summary (OpsTimHero)
     2. Toolbar (filter pills, search, month, Cards/Table)
     3. Person cards (OpsTimMemberCard) + client face stack
     4. QC queue (OpsTimQcQueue / OpsTimQcItem)
     5. Member drawer + QC "View all" drawer (OpsTimPersonDrawer, OpsTimQcAllDrawer)
     6. KPI tab, Trend tab, Client report, clients modal
     7. Responsive */


/* ═══ 0. PAGE RHYTHM & SHARED BITS ═════════════════════════════════════════ */
/* Between modules = --fz-gap (16, 12 on phones), the same rhythm as Today / My Week /
   Users (QA r3: Team was the only page at 24, so Today → Team visibly loosened). */
.fz-p-team,
.fz-p-team > .fsw-page { gap: var(--fz-gap); }
.fz-p-team .fz-tim-people { display: flex; flex-direction: column; gap: var(--fz-s-5); min-width: 0; }
.fz-p-team .fz-tim-loading { display: flex; flex-direction: column; gap: var(--fz-gap); }

/* Neutral count chip (same recipe as .fz-panel-n / .fz-ov-n, smaller). */
.fz-tim-n {
  display: inline-grid;
  place-items: center;
  flex: none;
  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);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: 1;
}
.fz-tim-dot {
  flex: none;
  width: var(--fz-s-2);
  height: var(--fz-s-2);
  border-radius: var(--fz-r-pill);
  background: var(--fz-neutral);
}
.fz-tim-dot.is-violet { background: var(--fz-violet); }
.fz-tim-dot.is-info   { background: var(--fz-info); }
.fz-tim-dot.is-ok     { background: var(--fz-ok); }
.fz-tim-dot.is-warn   { background: var(--fz-warn); }
.fz-tim-mono {
  font-family: var(--fz-font-mono);
  font-size: var(--fz-fs-meta);
  font-weight: var(--fz-fw-semi);
  letter-spacing: 0;
  color: var(--fz-text-2);
}
.fz-tim-late { color: var(--fz-crit-ink); font-weight: var(--fz-fw-semi); }
.fz-p-team .fsw-table td.fz-tim-late { color: var(--fz-crit-ink); font-weight: var(--fz-fw-bold); }

/* "How the numbers are calculated" — a quiet one-line disclosure instead of a card of prose. */
.fz-tim-how { align-self: flex-start; max-width: 100%; min-width: 0; }
.fz-tim-how > summary {
  display: inline-flex;
  align-items: center;
  gap: var(--fz-s-2);
  min-height: 36px;
  padding: 0 var(--fz-s-4) 0 var(--fz-s-2);
  border-radius: var(--fz-r-pill);
  color: var(--fz-text-2);
  font-size: var(--fz-fs-meta);
  font-weight: var(--fz-fw-medium);
  list-style: none;
  cursor: pointer;
  user-select: none;
  transition: background-color var(--fz-t-fast) var(--fz-ease), color var(--fz-t-fast) var(--fz-ease);
}
.fz-tim-how > summary::-webkit-details-marker { display: none; }
.fz-tim-how > summary:hover { background: var(--fz-surface-hover); color: var(--fz-text-1); }
.fz-tim-how-i {
  display: inline-grid;
  place-items: center;
  width: var(--fz-s-5);
  height: var(--fz-s-5);
  border-radius: var(--fz-r-pill);
  background: var(--fz-surface-3);
  color: var(--fz-text-2);
  font-family: var(--fz-font-display);
  font-size: var(--fz-fs-micro);
  font-weight: var(--fz-fw-bold);
  font-style: normal;
}
.fz-tim-how-c { color: var(--fz-text-3); transition: transform var(--fz-t-fast) var(--fz-ease); }
.fz-tim-how[open] > summary .fz-tim-how-c { transform: rotate(180deg); }
.fz-tim-how-b {
  margin-top: var(--fz-s-2);
  padding: var(--fz-s-4) var(--fz-card-pad);
  max-width: 760px;
  background: var(--fz-surface-1);
  border-radius: var(--fz-r-md);
  box-shadow: var(--fz-shadow-soft);
}
[data-theme="dark"] .fz-tim-how-b { box-shadow: none; }
.fz-tim-how-b ul { margin: 0; padding-left: var(--fz-s-5); display: flex; flex-direction: column; gap: var(--fz-s-2); }
.fz-tim-how-b li { font-size: var(--fz-fs-meta); line-height: 1.55; color: var(--fz-text-2); }


/* Hairline ring of the client faces (.fz-tim-cstack, §3) — the member drawer
   card sets its own (§5). */
.fz-p-team { --fz-tim-ring: rgba(20, 24, 22, .06); }
[data-theme="dark"] .fz-p-team { --fz-tim-ring: rgba(255, 255, 255, .08); }


/* ═══ 1. SUMMARY CARDS ═════════════════════════════════════════════════════
   Four equal cards (B7: "calmer — label, ONE strong number, one short context
   line, subtle progress only where useful"). Kit metric cards; the wrapper is a
   size container so the row is 4 across when there is room and 2 × 2 otherwise
   (never a 3 + 1 orphan). The icon sits as a quiet tile in the top-right corner. */
.fz-tim-sumwrap { container: fz-tim-sum / inline-size; min-width: 0; }
.fz-tim-hero {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--fz-s-4);
  min-width: 0;
}
@container fz-tim-sum (max-width: 879px) {
  .fz-tim-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.fz-tim-hero > .fz-metric.fz-tim-sum {
  min-height: 152px;
  gap: var(--fz-s-2);
  padding: var(--fz-s-5);
  border-radius: var(--fz-r-lg);
}
/* Cards in one row share four rows — label · number · context · bar — so the
   numbers stay on one line even when one label wraps ("Strategist tasks done" on
   a narrow card). Same subgrid recipe as the drawer tiles (§5). */
@supports (grid-template-rows: subgrid) {
  .fz-tim-hero > .fz-metric.fz-tim-sum {
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    min-height: 0;
    row-gap: var(--fz-s-2);
  }
  .fz-tim-hero > .fz-metric.fz-tim-sum > .fz-metric-l { align-self: start; }
  .fz-tim-hero > .fz-metric.fz-tim-sum > .fz-metric-x { align-self: end; margin-top: 0; }
}
.fz-tim-hero > .fz-metric.fz-tim-sum .fz-metric-l {
  min-height: var(--fz-s-6);
  padding-right: calc(var(--fz-s-7) + var(--fz-s-3));
  font-size: var(--fz-fs-body);
  font-weight: var(--fz-fw-medium);
  line-height: 1.35;
  color: var(--fz-text-2);
}
.fz-tim-hero > .fz-metric.fz-tim-sum .fz-metric-ico {
  position: absolute;
  top: var(--fz-s-4);
  right: var(--fz-s-4);
  width: calc(var(--fz-s-7) + var(--fz-s-1));
  height: calc(var(--fz-s-7) + var(--fz-s-1));
  border-radius: var(--fz-r-sm);
  background: var(--fz-surface-2);
  color: var(--fz-text-2);
}
.fz-tim-hero > .fz-metric.fz-tim-sum.is-warn .fz-metric-ico,
.fz-tim-hero > .fz-metric.fz-tim-sum.is-crit .fz-metric-ico { background: var(--fz-k-soft); color: var(--fz-k-ink); }
.fz-tim-hero > .fz-metric.fz-tim-sum .fz-metric-ico .fsw-ic { width: 18px; height: 18px; }
/* Narrow cards (the row below ~1040px: a 1280 laptop's ~210px cards, the 2 × 2
   tablet/phone grid): the corner icon steps aside so the label keeps the width. */
@container fz-tim-sum (max-width: 1039px) {
  .fz-tim-hero > .fz-metric.fz-tim-sum .fz-metric-ico { display: none; }
  .fz-tim-hero > .fz-metric.fz-tim-sum .fz-metric-l { padding-right: 0; }
}
.fz-tim-hero > .fz-metric.fz-tim-sum .fz-metric-v { margin-top: var(--fz-s-2); }
.fz-tim-hero > .fz-metric.fz-tim-sum .fz-metric-num { font-size: calc(var(--fz-fs-num) + 4px); letter-spacing: -.03em; }
.fz-tim-hero > .fz-metric.fz-tim-sum .fz-metric-of { font-size: var(--fz-fs-card); }
.fz-tim-hero > .fz-metric.fz-tim-sum .fz-metric-h {
  font-size: var(--fz-fs-body);
  line-height: 1.45;
  color: var(--fz-text-3);
}
.fz-tim-hero > .fz-metric.fz-tim-sum .fz-metric-x { padding-top: var(--fz-s-3); }
/* The bar stays quiet: no visible caption (its % is in the card tooltip; the track
   keeps its aria-label). */
.fz-tim-hero .fz-tim-sum-bar > .fz-prog-row { display: none; }
/* Material, hover wash and lift are the kit's (fz-kit.css §6) — one look with
   every other metric card in the app; only the lift is a hair more here, as on
   the member cards below. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .fz-tim-hero > .fz-metric.fz-tim-sum.is-click:hover { transform: translateY(-2px); }
}
.fz-tim-hero > .fz-metric.fz-tim-sum.is-click:active { transform: none; }


/* ═══ 2. TOOLBAR ═══════════════════════════════════════════════════════════
   The Clients toolbar's line: search FIRST, then the filter pills, then (right)
   month + Cards/Table — every control 44px tall, the search up to 420px. */
.fz-p-team .fz-tim-tools .fz-search { width: 280px; }
/* Desktop: search + pills share the row with month + view toggle — the search gives
   way (420 → 200px) before the month/toggle pair drops to a lonely second line.
   Below ~1200 the kit's wrapping applies. */
@media (min-width: 1200px) {
  .fz-p-team .fz-tim-tools > .fz-toolbar-s { flex: 1 1 0; flex-wrap: nowrap; }
  .fz-p-team .fz-tim-tools .fz-search { flex: 1 1 420px; width: auto; max-width: 420px; min-width: 200px; }
}
/* One height on the line (the kit's 40px, the month's 36px → Clients' 44px). Phones
   already get 44 from --fz-ctl-h and §7. */
@media (min-width: 769px) {
  .fz-p-team .fz-tim-tools .fz-search { height: 44px; }
  .fz-p-team .fz-tim-tools .fz-search input.fz-search-in { font-size: var(--fz-fs-body); }
  .fz-p-team .fz-tim-tools .fz-fpill { height: 44px; padding: 0 var(--fz-s-4); font-size: var(--fz-fs-body); }
  .fz-p-team .fz-tim-tools .fz-viewtog { height: 44px; box-sizing: border-box; }
  .fz-p-team .fz-tim-tools .fz-viewtog-b { height: 36px; padding: 0 var(--fz-s-3); font-size: var(--fz-fs-meta); }
}
/* The existing <input type=month>, dressed as a pill next to the view toggle. Beats
   fz-base/nova (0,2,1) dark input rules. */
.fz-p-team input.fsw-sel.fz-tim-month,
[data-theme="dark"] .fz-p-team input.fsw-sel.fz-tim-month {
  height: 36px;
  min-height: 36px;
  padding: 0 var(--fz-s-3) 0 var(--fz-s-4);
  border: 1px solid var(--fz-border);
  border-radius: var(--fz-r-pill);
  background-color: var(--fz-surface-1);
  color: var(--fz-text-1);
  font-family: var(--fz-font-body);
  font-size: var(--fz-fs-body);
  font-weight: var(--fz-fw-medium);
  color-scheme: light;
}
[data-theme="dark"] .fz-p-team input.fsw-sel.fz-tim-month { color-scheme: dark; }
.fz-p-team input.fsw-sel.fz-tim-month:hover:not(:focus) { border-color: var(--fz-border-strong); }
.fz-p-team input.fsw-sel.fz-tim-month:focus { border-color: var(--fz-focus); box-shadow: 0 0 0 3px var(--fz-accent-soft); }
@media (min-width: 769px) {
  .fz-p-team input.fsw-sel.fz-tim-month,
  [data-theme="dark"] .fz-p-team input.fsw-sel.fz-tim-month { height: 44px; min-height: 44px; }
}

.fz-p-team .fz-tim-grp {
  display: flex;
  align-items: center;
  gap: var(--fz-s-2);
  margin: 0 0 var(--fz-s-3);
  font-family: var(--fz-font-display);
  font-size: var(--fz-fs-section);
  font-weight: var(--fz-fw-semi);
  letter-spacing: -.01em;
  color: var(--fz-text-1);
}
/* "Editors 8" / "Strategists 4" = the Clients section heading (20px + a 26 × 24
   count chip); the shared .fz-tim-n default stays small for the drawers. */
.fz-p-team .fz-tim-grp > .fz-tim-n { min-width: 26px; height: 24px; }
.fz-p-team .fz-tim-group + .fz-tim-group { margin-top: var(--fz-s-3); }
.fz-p-team .fz-tim-tables { display: flex; flex-direction: column; gap: var(--fz-gap); }
.fz-p-team .fz-tim-empty { padding: var(--fz-s-7) var(--fz-card-pad); background: var(--fz-surface-1); border-radius: var(--fz-r-lg); }


/* ═══ 3. PERSON CARDS ══════════════════════════════════════════════════════
   Photo first (5 Oct 2026, owner: "edit team view same as client 'having big
   image and interface'"). The member card is the TWIN of the client card
   (fz-clients.css §5–6): same grid steps, card face per skin, radius, insets,
   cover ratio, overlays, type, capsules, inset foot row and hover — only the
   content is the person's:
     cover   OpsCoverPhoto 16:10 (16:9 on phones) — the person's photo, or the
             large-initials placeholder in the SAME box; pace pill top-left
             (overlay variant), round ⋯ top-right
     head    name 18px semibold (a real button) + "Editor · 5 clients" 13px;
             the client faces on the right (32px, overlapped like the client
             card's team pair, at most 3 items)
     row     "Approved 1/60 ……… Projected 7" (strategists "Done n/quota ……
             Next 7d: n") — the chip is the client card's Batch chip
     bar     five 6px capsules = the monthly target in fifths (full = ok green,
             the fifth in progress = an accent fill as long as its share)
     foot    one inset 40px row: icon · "Late 134 · Open 149" · ›
   Values are written out here instead of shared with fz-clients.css: that file
   scopes every rule under the Clients page root (.fz-clh), and the two pages
   load the same tokens — so equal numbers give the identical face. */

/* Grid: the Clients grid's steps, measured on the grid's own width —
     < 600 → 1 column   600–899 → 2   900–1179 → 3   ≥ 1180 → 4
   (1440 desktop ≈ 3 × 350, 1920 = 4 × 328, tablet 768 → 2, phones always 1). */
.fz-tim-gridwrap { container-type: inline-size; container-name: fztimg; min-width: 0; }
.fz-tim-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--fz-s-5);
  min-width: 0;
}
@container fztimg (min-width: 600px) {
  .fz-tim-grid { grid-template-columns: repeat(auto-fill, minmax(max(290px, calc((100% - var(--fz-s-5)) / 2)), 1fr)); }
}
@container fztimg (min-width: 900px) {
  .fz-tim-grid { grid-template-columns: repeat(auto-fill, minmax(max(280px, calc((100% - 2 * var(--fz-s-5)) / 3)), 1fr)); }
}
@container fztimg (min-width: 1180px) {
  .fz-tim-grid { grid-template-columns: repeat(auto-fill, minmax(max(280px, calc((100% - 3 * var(--fz-s-5)) / 4)), 1fr)); }
}
@media (max-width: 767px) {
  .fz-tim-grid { grid-template-columns: minmax(0, 1fr); gap: var(--fz-s-4); }
}
/* Each cell is a size container (the ⋯ menu and the crop modal are portalled to
   <body>), so a narrow card can tighten its own insets. */
.fz-tim-cell { display: flex; min-width: 0; container: fztimcard / inline-size; }
.fz-tim-file { display: none !important; }

/* The card face: tonal surface, a hairline of light at the rim instead of a
   border, soft shadow; hover lifts 2px. */
.fz-tim-card {
  --fz-cover-ar: 16 / 10;
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--fz-r-lg);
  background: var(--fz-surface-1);
  color: var(--fz-text-1);
  text-align: left;
  box-shadow: 0 0 0 1px var(--fz-kit-veil, var(--fz-border)), var(--fz-shadow-soft);
  --fz-avstack-ring: var(--fz-surface-1);
  transition:
    transform var(--fz-t-med) var(--fz-ease),
    background-color var(--fz-t-med) var(--fz-ease),
    box-shadow var(--fz-t-med) var(--fz-ease);
}
[data-theme="dark"] .fz-tim-card {
  background-image: linear-gradient(180deg, var(--fz-kit-sheen, transparent), transparent 55%);
}
.fz-tim-card.is-click { cursor: pointer; }
@media (hover: hover) {
  .fz-tim-card.is-click:hover {
    background-color: var(--fz-surface-hover);
    box-shadow: 0 0 0 1px var(--fz-kit-veil-2, var(--fz-border-strong)), var(--fz-shadow-pop);
    --fz-avstack-ring: var(--fz-surface-hover);
  }
  [data-theme="light"] .fz-tim-card.is-click:hover { background-color: var(--fz-surface-1); --fz-avstack-ring: var(--fz-surface-1); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .fz-tim-card.is-click:hover { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  .fz-tim-card { transition: background-color var(--fz-t-fast) linear, box-shadow var(--fz-t-fast) linear; }
}
/* Skin material — the client card's, value for value: a translucent fill over the
   skin's slab plus a lit 1px rim (an overlay ring, ::after masked to 1px, so the
   cover keeps its geometry and the rim runs over the photo edge like glass).
   --fz-avstack-ring = the opaque colour the fill settles to (the faces' gap). */
:root[data-hud-skin="silver"] .fsw-page.fz-p-team .fz-tim-card {
  --fz-tim-rim: linear-gradient(145deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03) 32%, rgba(0, 0, 0, .26));
  background-color: rgba(26, 29, 29, .55);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 -1px 0 rgba(0, 0, 0, .22) inset, 0 10px 24px rgba(0, 0, 0, .24);
  --fz-avstack-ring: #1C1F1F;
}
:root[data-hud-skin="burgundy"] .fsw-page.fz-p-team .fz-tim-card {
  --fz-tim-rim: linear-gradient(150deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .04) 36%, rgba(244, 111, 123, .20));
  background-color: rgba(47, 24, 32, .72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 14px 34px -16px rgba(10, 2, 5, .70);
  --fz-avstack-ring: #29141B;
}
:root[data-hud-skin="premium-light"] .fsw-page.fz-p-team .fz-tim-card {
  --fz-tim-rim: linear-gradient(150deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .55) 40%, rgba(214, 216, 255, .55) 75%, rgba(255, 190, 215, .45));
  background-color: transparent;
  background-image: linear-gradient(165deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .62) 55%, rgba(255, 255, 255, .72));
  box-shadow: var(--light-shadow-card), 0 16px 36px -18px var(--light-reflection-blue), 0 14px 32px -18px var(--light-reflection-pink);
}
:root[data-hud-skin="silver"] .fsw-page.fz-p-team .fz-tim-card::after,
:root[data-hud-skin="burgundy"] .fsw-page.fz-p-team .fz-tim-card::after,
:root[data-hud-skin="premium-light"] .fsw-page.fz-p-team .fz-tim-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1px;
  border-radius: inherit;
  background: var(--fz-tim-rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
@media (hover: hover) {
  :root[data-hud-skin="silver"] .fsw-page.fz-p-team .fz-tim-card.is-click:hover {
    background-color: rgba(38, 42, 42, .62);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .10) inset, 0 -1px 0 rgba(0, 0, 0, .22) inset, 0 18px 36px rgba(0, 0, 0, .34);
    --fz-avstack-ring: #232727;
  }
  :root[data-hud-skin="burgundy"] .fsw-page.fz-p-team .fz-tim-card.is-click:hover {
    background-color: rgba(58, 30, 40, .76);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 22px 44px -18px rgba(10, 2, 5, .80);
    --fz-avstack-ring: #331A22;
  }
  :root[data-hud-skin="premium-light"] .fsw-page.fz-p-team .fz-tim-card.is-click:hover { box-shadow: var(--light-shadow-raised); }
}
/* Keyboard: the name is the real button; the ring goes round the whole card. */
.fz-tim-card:has(.fz-tim-card-btn:focus-visible) { outline: 2px solid var(--fz-focus); outline-offset: 3px; }
@supports selector(:has(*)) {
  .fz-p-team .fz-tim-card-btn:focus-visible { outline: none; }
}
/* Touch / narrow: the name button's hit area stretches over the card body; the
   photo layer (⋯) sits above it. */
@media (max-width: 768px), (pointer: coarse) {
  .fz-tim-card-btn::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
  .fz-tim-card-btn { position: static; }
}

/* Cover box. The kit's .fz-cover reserves it from --fz-cover-ar (no layout shift);
   the card's overflow rounds its top corners. z-index 1 keeps the ⋯ above the
   stretched name button on touch. */
.fz-tim-card .fz-tim-cover { position: relative; z-index: 1; flex: none; width: 100%; }
.fz-tim-card .fz-cover-ov { padding: var(--fz-s-3); }
.fz-tim-card .fz-tim-cover-pill { max-width: calc(100% - 52px); overflow: hidden; text-overflow: ellipsis; }
.fz-tim-card .fz-tim-cover-more { margin-left: auto; }
/* Admin, no photo yet: a camera disc bottom-right on the placeholder — the same
   upload as ⋯ → Add photo, one click away (the client detail's camera button). */
.fz-tim-card .fz-tim-addph { position: absolute; right: var(--fz-s-3); bottom: var(--fz-s-3); }

/* Body. 16px top, 20px sides and foot; the foot row is pinned to the bottom so a
   row of cards lines its bottoms up whatever the name length. */
.fz-tim-card-b {
  display: flex;
  flex-direction: column;
  gap: var(--fz-s-4);
  flex: 1 1 auto;
  min-width: 0;
  padding: var(--fz-s-4) var(--fz-s-5) var(--fz-s-5);
}
.fz-tim-card-h { display: flex; align-items: flex-start; gap: var(--fz-s-3); min-width: 0; }
.fz-tim-card-id { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.fz-p-team .fz-tim-card-name {
  margin: 0;
  padding: 0;
  min-width: 0;
  font-family: var(--fz-font-display);
  font-size: var(--fz-fs-name);
  font-weight: var(--fz-fw-semi);
  line-height: 1.3;
  letter-spacing: -.012em;
  color: var(--fz-text-1);
}
/* Two lines at most, then an ellipsis. 8px of invisible padding (cancelled by the
   margin) gives the button a 40px+ hit box without moving the text. */
.fz-tim-card-btn {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  max-width: 100%;
  margin: calc(var(--fz-s-2) * -1) 0;
  padding: var(--fz-s-2) 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  white-space: normal;
  overflow: hidden;
  cursor: pointer;
}
.fz-tim-card-nm {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.fz-tim-card-sub {
  min-width: 0;
  font-size: var(--fz-fs-meta);
  line-height: 1.4;
  color: var(--fz-text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fz-tim-card-sep { margin: 0 6px; color: var(--fz-text-3); opacity: .7; }

/* Client faces: 32px, overlapped like the client card's team pair (6px after a
   photo, 4px after initials, a 2px ring of the card surface between them); an
   initials face with a neighbour centres its letters in its visible part. No
   clients → the client card's quiet dashed slot. */
.fz-tim-card-cl { display: inline-flex; align-items: center; flex: none; margin-top: 2px; }
.fz-tim-card-cl > .fz-tim-cstack { flex: none; gap: 0; }
.fz-tim-card-cl > .fz-tim-cstack > .fz-cav,
.fz-tim-card-cl > .fz-tim-cstack > .fz-tim-cstack-more {
  position: relative;
  box-shadow: 0 0 0 2px var(--fz-avstack-ring, var(--fz-surface-1));
}
.fz-tim-card-cl > .fz-tim-cstack > * + * { margin-left: -6px; }
.fz-tim-card-cl > .fz-tim-cstack > .fz-cav:not(.has-photo) + * { margin-left: calc(var(--fz-s-1) * -1); }
.fz-tim-card-cl > .fz-tim-cstack > .fz-cav:not(.has-photo):not(:last-child) { padding-right: 6px; }
.fz-tim-card-cl.is-none {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--fz-r-pill);
  border: 1px dashed var(--fz-border-strong);
  color: var(--fz-text-3);
}

/* The month row: "Approved 1/60 ……… Projected 7", then the five capsules (6px). */
.fz-tim-step { display: flex; flex-direction: column; gap: var(--fz-s-3); min-width: 0; }
.fz-tim-step-l { display: flex; align-items: center; gap: var(--fz-s-2); min-width: 0; min-height: 24px; }
.fz-tim-step-t {
  flex: 0 1 auto;
  min-width: 0;
  font-size: var(--fz-fs-body);
  font-weight: var(--fz-fw-semi);
  line-height: 1.4;
  color: var(--fz-text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fz-tim-step-n {
  flex: none;
  font-size: var(--fz-fs-meta);
  font-weight: var(--fz-fw-semi);
  font-variant-numeric: tabular-nums;
  color: var(--fz-text-2);
}
.fz-tim-step-n > span { color: var(--fz-text-3); font-weight: var(--fz-fw-medium); }
.fz-tim-chip {
  display: inline-flex;
  align-items: center;
  flex: none;
  height: 24px;
  margin-left: auto;
  padding: 0 var(--fz-s-2);
  border-radius: var(--fz-r-pill);
  background: var(--fz-surface-2);
  color: var(--fz-text-2);
  font-size: var(--fz-fs-meta);
  font-weight: var(--fz-fw-semi);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.fz-tim-card .fz-tim-seg { height: 6px; gap: var(--fz-s-1); }
.fz-tim-card .fz-tim-seg > .fz-seg { position: relative; overflow: hidden; }
.fz-tim-card .fz-tim-seg > .fz-seg.is-empty { background: var(--fz-surface-3); }
[data-theme="dark"] .fz-tim-card .fz-tim-seg > .fz-seg.is-empty { background: var(--fz-kit-veil-2, var(--fz-surface-3)); }
/* "You are here": the fifth in progress (also the first one at 0) is lit — an
   accent-tinted track with an accent rim, the client card's current capsule —
   so a row of 0/60 cards never reads as five dead tracks. Outlined, not filled:
   a filled tint read as a done fifth next to Core's dimmed done-green. The real
   fill still sits on top. */
.fz-tim-card .fz-tim-seg > .fz-seg.is-empty.is-cur,
[data-theme="dark"] .fz-tim-card .fz-tim-seg > .fz-seg.is-empty.is-cur {
  background: color-mix(in srgb, var(--fz-accent) 14%, var(--fz-kit-veil-2, var(--fz-surface-3)));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fz-accent) 62%, transparent);
}
/* The fifth in progress: an accent fill as long as its share (1/60 stays a sliver). */
.fz-tim-card .fz-tim-seg .fz-tim-seg-f { position: absolute; top: 0; bottom: 0; left: 0; min-width: 4px; border-radius: inherit; }
/* Core dark: the same calmer done-green as the client capsules while one is "here". */
:root[data-hud-skin="core"][data-theme="dark"] .fz-tim-seg:has(.fz-tim-seg-f) > .fz-seg.is-ok {
  background: color-mix(in srgb, var(--fz-ok) 50%, var(--fz-surface-3));
}

/* Foot: one inset row (40px, soft fill) — icon · "Late 134 · Open 149" · ›. Late
   takes crit ink only when it is above 0 (icon too); past months say "Late now /
   Open now", so a ~280px card may clip the end with an ellipsis (every figure
   stays in the pair's tooltip and the member drawer). */
.fz-tim-next {
  display: flex;
  align-items: center;
  gap: var(--fz-s-2);
  min-width: 0;
  height: 40px;
  margin-top: auto;
  padding: 0 var(--fz-s-2) 0 var(--fz-s-3);
  border-radius: var(--fz-r-sm);
  background: var(--fz-surface-2);
  color: var(--fz-text-2);
  font-size: var(--fz-fs-meta);
  line-height: 1.3;
}
.fz-tim-next > .fsw-ic { flex: none; color: var(--fz-text-3); }
.fz-tim-next-t { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fz-tim-q-sep { margin: 0 6px; color: var(--fz-text-3); }
.fz-tim-q-l { font-weight: var(--fz-fw-medium); color: var(--fz-text-2); }
.fz-tim-q-v { font-weight: var(--fz-fw-semi); font-variant-numeric: tabular-nums; color: var(--fz-text-1); }
.fz-tim-q.is-crit .fz-tim-q-l,
.fz-tim-q.is-crit .fz-tim-q-v,
.fz-tim-next.is-late > .fsw-ic:first-child { color: var(--fz-crit-ink); }
.fz-tim-q.is-crit .fz-tim-q-l { font-weight: var(--fz-fw-semi); }
.fz-tim-q.is-warn .fz-tim-q-v,
.fz-tim-next.is-warn > .fsw-ic:first-child { color: var(--fz-warn-ink); }
.fz-tim-next .fz-tim-next-go { color: var(--fz-text-3); transition: transform var(--fz-t-fast) var(--fz-ease), color var(--fz-t-fast) var(--fz-ease); }
@media (hover: hover) {
  .fz-tim-card.is-click:hover .fz-tim-next { background: var(--fz-surface-3); }
  .fz-tim-card.is-click:hover .fz-tim-next .fz-tim-next-go { color: var(--fz-text-1); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .fz-tim-card.is-click:hover .fz-tim-next .fz-tim-next-go { transform: translateX(2px); }
}

/* Narrow card (280–300px: 4 columns near a 1180px grid, 3 near 900px): 16px insets,
   the › keeps its place with 4px less on each side. Under 260px it steps aside. */
@container fztimcard (max-width: 300px) {
  .fz-tim-card-b { padding: var(--fz-s-4); }
  .fz-tim-next { padding-right: var(--fz-s-1); }
  .fz-tim-next .fz-tim-next-go { margin-left: calc(-1 * var(--fz-s-1)); }
}
@container fztimcard (max-width: 260px) {
  .fz-tim-next { padding: 0 var(--fz-s-3); }
  .fz-tim-next .fz-tim-next-go { display: none; }
}

/* Loading: the card's silhouette, static (no shimmer), built on the card's own
   boxes — same cover ratio, body insets and gaps, a header as tall as name + sub,
   the 24px step row over the 6px bar, the 40px foot — so nothing jumps when the
   real cards arrive. */
.fz-tim-skc {
  --fz-cover-ar: 16 / 10;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--fz-r-lg);
  background: var(--fz-surface-1);
}
.fz-tim-skc-ph { display: block; flex: none; aspect-ratio: var(--fz-cover-ar); background: var(--fz-surface-2); }
.fz-tim-skc-b { display: flex; flex-direction: column; gap: var(--fz-s-4); flex: 1 1 auto; min-width: 0; padding: var(--fz-s-4) var(--fz-s-5) var(--fz-s-5); }
.fz-tim-skc-h {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--fz-s-2);
  min-height: calc(var(--fz-fs-name) * 1.3 + var(--fz-fs-meta) * 1.4 + 2px);
}
.fz-tim-skc-st { display: flex; flex-direction: column; gap: var(--fz-s-3); }
.fz-tim-skc-l { display: block; flex: none; height: 12px; border-radius: var(--fz-r-pill); background: var(--fz-surface-2); }
.fz-tim-skc-l.is-t { width: 56%; height: 16px; }
.fz-tim-skc-l.is-s { width: 36%; }
.fz-tim-skc-l.is-step { width: 64%; margin: 6px 0; }
.fz-tim-skc-l.is-bar { width: 100%; height: 6px; }
.fz-tim-skc-l.is-row { width: 100%; height: 40px; margin-top: auto; border-radius: var(--fz-r-sm); }
@container fztimcard (max-width: 300px) {
  .fz-tim-skc-b { padding: var(--fz-s-4); }
}

/* Client faces (member drawer header; the member card overlaps them, above): a
   row of round faces. Round on purpose (the kit draws clients as rounded
   squares): they read as "faces", the count text carries the number. 12px
   initials and a hairline ring (r2b); --fz-tim-ring is set on .fz-p-team, the
   fallback serves the drawer header outside it. */
.fz-tim-cstack { display: inline-flex; align-items: center; gap: var(--fz-s-1); min-width: 0; }
.fz-tim-cstack > .fz-cav {
  border-radius: var(--fz-r-pill);
  box-shadow: 0 0 0 1px var(--fz-tim-ring, rgba(255, 255, 255, .08));
  font-size: var(--fz-fs-micro) !important;  /* inline 11px from opsKitAvatarFont(28) */
}
/* The "+N" chip: a matching round chip that keeps its natural width (min = one
   face) — never squeezed into the count text beside it. */
.fz-tim-cstack-more {
  flex: none;
  width: auto;
  display: inline-grid;
  place-items: center;
  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-micro);
  font-weight: var(--fz-fw-semi);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
/* Silver (r2b): --fz-surface-3 is a .74 smoke that melts into the glass card, so
   "+N" read as loose text. A frosted chip instead — a light veil, a hairline rim
   with a lit top edge, bright figures; no own blur (the slab already blurred). */
:root[data-hud-skin="silver"] .fz-tim-cstack-more {
  background: rgba(255, 255, 255, .14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .14);
  color: #EEF2F1;
}


/* ═══ 4. QC QUEUE ══════════════════════════════════════════════════════════
   Kanban-like: one sunken column per gate, white/surface-1 queue cards inside. */
.fz-p-team .fz-tim-qc { scroll-margin-top: var(--fz-s-6); }
.fz-tim-rev { display: inline-flex; align-items: center; gap: var(--fz-s-2); min-width: 0; --fz-avstack-ring: var(--fz-surface-1); }
.fz-tim-rev-l { font-size: var(--fz-fs-meta); font-weight: var(--fz-fw-medium); color: var(--fz-text-3); white-space: nowrap; }

.fz-tim-qc-cols {
  display: grid;
  grid-template-columns: repeat(var(--fz-tim-qcn, 3), minmax(0, 1fr));
  gap: var(--fz-s-3);
  align-items: start;
  min-width: 0;
}
.fz-tim-qc-cols.is-2 { --fz-tim-qcn: 2; }
.fz-tim-qc-cols.is-1 { --fz-tim-qcn: 1; }
.fz-tim-qc-col {
  display: flex;
  flex-direction: column;
  gap: var(--fz-s-2);
  min-width: 0;
  padding: var(--fz-s-3);
  background: var(--fz-surface-2);
  border-radius: var(--fz-r-md);
  --fz-avstack-ring: var(--fz-surface-1);
}
.fz-tim-qc-colh {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--fz-s-2);
  min-height: var(--fz-s-7);
  padding: 0 var(--fz-s-1);
}
.fz-tim-qc-colh h3 {
  margin: 0;
  font-family: var(--fz-font-display);
  font-size: var(--fz-fs-body);
  font-weight: var(--fz-fw-semi);
  letter-spacing: -.005em;
  color: var(--fz-text-1);
}
.fz-tim-qc-colh .fz-tim-all { margin-left: auto; min-height: var(--fz-s-7); padding: 0 var(--fz-s-2); }
/* An empty gate is one compact row: its header plus a green "✓ Clear" at the end. */
.fz-tim-qc-clear {
  display: inline-flex;
  align-items: center;
  gap: var(--fz-s-1);
  margin-left: auto;
  padding: 0 var(--fz-s-1);
  color: var(--fz-ok-ink);
  font-size: var(--fz-fs-meta);
  font-weight: var(--fz-fw-semi);
  white-space: nowrap;
}
.fz-tim-qc-col.is-clear { padding-top: var(--fz-s-2); padding-bottom: var(--fz-s-2); }

.fz-tim-qc-it {
  display: flex;
  flex-direction: column;
  gap: var(--fz-s-3);
  min-width: 0;
  padding: var(--fz-s-3);
  background: var(--fz-surface-1);
  border: 1px solid var(--fz-border);
  border-radius: var(--fz-r-sm);
  cursor: pointer;
  transition: border-color var(--fz-t-fast) var(--fz-ease), background-color var(--fz-t-fast) var(--fz-ease);
}
[data-theme="dark"] .fz-tim-qc-it { border-color: transparent; }
.fz-tim-qc-it:hover { border-color: var(--fz-border-strong); }
[data-theme="dark"] .fz-tim-qc-it:hover { background: var(--fz-surface-hover); border-color: transparent; }
.fz-tim-qc-it:focus-visible { outline: 2px solid var(--fz-focus); outline-offset: 2px; }
.fz-tim-qc-it.is-late { box-shadow: inset 3px 0 0 var(--fz-crit); }
.fz-tim-qc-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--fz-s-3);
  min-width: 0;
}
.fz-tim-qc-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fz-tim-qc-cl {
  font-size: var(--fz-fs-card);
  font-weight: var(--fz-fw-semi);
  line-height: 1.3;
  color: var(--fz-text-1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fz-tim-qc-code {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px var(--fz-s-2);
  min-width: 0;
  font-size: var(--fz-fs-meta);
  font-weight: var(--fz-fw-medium);
  color: var(--fz-text-3);
}
/* The step under review (Titles / Fullscript …): the one word that tells two Script QC
   cards of one client-month apart, so it reads stronger than the gate. */
.fz-tim-qc-step {
  min-width: 0;
  max-width: 100%;
  font-weight: var(--fz-fw-semi);
  color: var(--fz-text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fz-tim-qc-step::before { content: "·"; margin-right: var(--fz-s-2); font-weight: var(--fz-fw-medium); color: var(--fz-text-3); }
/* Under its gate's header the card drops the gate name, so the step can lead the line. */
.fz-tim-qc-step:first-child::before { content: none; }
.fz-tim-qc-wait { display: flex; flex-direction: column; align-items: flex-end; gap: var(--fz-s-1); }
.fz-tim-qc-age {
  display: inline-flex;
  align-items: center;
  gap: var(--fz-s-1);
  font-size: var(--fz-fs-meta);
  font-weight: var(--fz-fw-semi);
  font-variant-numeric: tabular-nums;
  color: var(--fz-text-2);
  white-space: nowrap;
}
.fz-tim-qc-age .fsw-ic { color: var(--fz-text-3); }
.fz-tim-qc-it.is-late .fz-tim-qc-age { color: var(--fz-crit-ink); }
/* 13 Okt 2026 — exact deadline date (with year) under Late / waiting time. */
.fz-tim-qc-due {
  font-size: var(--fz-fs-meta);
  font-weight: var(--fz-fw-medium);
  font-variant-numeric: tabular-nums;
  color: var(--fz-text-2);
  white-space: nowrap;
}
.fz-tim-qc-it.is-late .fz-tim-qc-due { color: var(--fz-crit-ink); font-weight: var(--fz-fw-semi); }
.fz-tim-qc-by {
  display: flex;
  align-items: center;
  gap: var(--fz-s-2);
  min-width: 0;
  font-size: var(--fz-fs-meta);
  color: var(--fz-text-2);
}
.fz-tim-qc-byl { color: var(--fz-text-3); }
.fz-tim-qc-byn { min-width: 0; font-weight: var(--fz-fw-semi); color: var(--fz-text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fz-tim-qc-acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--fz-s-2); min-width: 0; }
.fz-tim-qc-acts > .xcs-btn-ghost { flex: 1 1 auto; justify-content: center; }
/* Pass QC: the calm "approve" pill — ok tint + ok ink, not another lime fill per card.
   The dark ghost button is pinned with !important in fz-base/nova-ui — matched here. */
.fz-tim-qc-acts > .xcs-btn-ghost.fz-tim-qc-pass,
[data-theme="dark"] .fz-tim-qc-acts > .xcs-btn-ghost.fz-tim-qc-pass {
  gap: var(--fz-s-1);
  background: var(--fz-ok-soft) !important;
  border-color: transparent !important;
  color: var(--fz-ok-ink) !important;
  font-weight: var(--fz-fw-semi);
}
.fz-tim-qc-acts > .xcs-btn-ghost.fz-tim-qc-pass:hover:not(:disabled),
[data-theme="dark"] .fz-tim-qc-acts > .xcs-btn-ghost.fz-tim-qc-pass:hover:not(:disabled) {
  border-color: var(--fz-ok) !important;
  background: var(--fz-ok-soft) !important;
  color: var(--fz-ok-ink) !important;
}
.fz-tim-qc-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-3); }
.fz-tim-qc-who > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


/* ═══ 5. DRAWERS ═══════════════════════════════════════════════════════════
   Stacking: OpsTaskDrawer's host is mounted BEFORE <main>, at the same z 1150 as
   this drawer — so a task opened from a member/QC drawer used to paint BEHIND it.
   This drawer's scrim sits one step lower (1149, still above everything at ≤1100);
   the task drawer (1150), prompts and modals (1200+) open on top. An is-top drawer
   (opened over a modal) keeps 1250. Escape order is the shared stack's job.
   Two mechanisms, same result: the :has() rule, and — for browsers without :has()
   (Firefox < 121, e.g. ESR 115) — the .fz-tim-layer wrapper the drawer components
   render around themselves (not when opened over a modal). The wrapper is an
   out-of-flow stacking layer at 1149: no flex gap, and the fixed scrim inside it
   still covers the viewport (no ancestor creates a stacking context or transform). */
.fsw-drawer-scrim:not(.is-top):has(> .fsw-drawer.fz-tim-drawer) { z-index: 1149; }
.fz-tim-layer { position: absolute; z-index: 1149; }

.fz-tim-drawer .fz-tim-dbody { gap: var(--fz-s-3); }
.fz-tim-drawer .fz-tim-dcard { gap: var(--fz-s-3); --fz-tim-ring: var(--fz-surface-2); }
.fz-tim-drawer .fz-ov-card-h h3 { font-size: var(--fz-fs-card); }
.fz-tim-drawer .fz-tim-dsub { margin: calc(var(--fz-s-2) * -1) 0 0; font-size: var(--fz-fs-meta); color: var(--fz-text-3); }
.fz-tim-drawer .fz-tim-none { font-size: var(--fz-fs-body); color: var(--fz-text-3); }
.fz-tim-drawer .fsw-drawer-hsub { color: var(--fz-text-3); }
/* Profile header: hero photo, name, role · month, then verdict pill + client faces. */
.fz-tim-person .fsw-drawer-h.has-av { align-items: center; }
.fz-tim-person .fsw-drawer-av { padding-top: 0; }
.fz-tim-person .fsw-drawer-h .fsw-x { align-self: flex-start; }
.fz-tim-person .fsw-drawer-htitle { font-size: var(--fz-fs-num-sm); letter-spacing: -.02em; }
.fz-tim-dmeta { display: flex; align-items: center; flex-wrap: wrap; gap: var(--fz-s-2) var(--fz-s-3); min-width: 0; }
.fz-tim-dmeta-c { display: inline-flex; align-items: center; flex-wrap: wrap; gap: var(--fz-s-1) var(--fz-s-2); min-width: 0; font-size: var(--fz-fs-meta); font-weight: var(--fz-fw-medium); color: var(--fz-text-3); }
/* Same rule as the card's client row: the faces never shrink (a squeezed stack slid
   its "+9" chip into the text → "+912 assigned clients"); the count text may drop
   under the faces on a very narrow header instead of colliding with them. */
.fz-tim-dmeta-c > .fz-tim-cstack { flex: none; }
.fz-tim-dmeta-t { white-space: nowrap; }
/* Drawer faces = the card's faces: the shared .fz-tim-cstack rules (§3). */

/* Metric tiles inside a drawer card (card = surface-2 → tile = surface-1). */
.fz-tim-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--fz-s-2); min-width: 0; }
.fz-tim-tiles.is-1 { grid-template-columns: minmax(0, 1fr); }
.fz-tim-tiles.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fz-tim-drawer .fz-tim-tiles .fz-metric {
  padding: var(--fz-s-3);
  background: var(--fz-surface-1);
  border-radius: var(--fz-r-sm);
  box-shadow: none;
  gap: 2px;
}
.fz-tim-drawer .fz-tim-tiles .fz-metric-num { font-size: var(--fz-fs-num-sm); }
.fz-tim-drawer .fz-tim-tiles .fz-metric-l { font-size: var(--fz-fs-meta); color: var(--fz-text-3); }
.fz-tim-drawer .fz-tim-tiles .fz-metric-h { font-size: var(--fz-fs-meta); }
/* Tiles in one row share three rows — label · number · hint — so the numbers line up
   even when one label wraps (QA r3, 390: "Late in hands" took two lines and its value
   sat 16px below "QC wait" / "Load"). Every drawer tile has at most those three parts. */
@supports (grid-template-rows: subgrid) {
  .fz-tim-drawer .fz-tim-tiles > .fz-metric {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 2px;
  }
  .fz-tim-drawer .fz-tim-tiles > .fz-metric > .fz-metric-l { align-self: start; }
  .fz-tim-drawer .fz-tim-tiles > .fz-metric > .fz-metric-v,
  .fz-tim-drawer .fz-tim-tiles > .fz-metric > .fz-metric-h { align-self: start; }
}

/* Monthly output: number + projection over a bar (labels share a line, values share a line). */
.fz-tim-out {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: end;
  gap: var(--fz-s-1) var(--fz-s-4);
  min-width: 0;
}
.fz-tim-out-main, .fz-tim-out-side { display: contents; }
.fz-tim-out-main > .fz-tim-out-l { grid-column: 1; grid-row: 1; }
.fz-tim-out-main > .fz-tim-out-v { grid-column: 1; grid-row: 2; }
.fz-tim-out-side > .fz-tim-out-l { grid-column: 2; grid-row: 1; text-align: right; }
.fz-tim-out-side > .fz-tim-out-v { grid-column: 2; grid-row: 2; justify-self: end; padding-bottom: 2px; }
.fz-tim-out-l { font-size: var(--fz-fs-meta); font-weight: var(--fz-fw-medium); color: var(--fz-text-3); }
.fz-tim-out-v { display: flex; align-items: baseline; gap: var(--fz-s-2); font-family: var(--fz-font-display); line-height: 1; white-space: nowrap; }
.fz-tim-out-v b { font-size: var(--fz-fs-num); font-weight: var(--fz-fw-semi); letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--fz-text-1); }
.fz-tim-out-v.is-sm b { font-size: var(--fz-fs-num-sm); }
.fz-tim-out-v i {
  font-family: var(--fz-font-body);
  font-style: normal;
  font-size: var(--fz-fs-body);
  font-weight: var(--fz-fw-medium);
  color: var(--fz-text-3);
}

/* Workload verdict line. */
.fz-tim-verdict { display: flex; align-items: center; flex-wrap: wrap; gap: var(--fz-s-2); min-width: 0; }
.fz-tim-verdict > span:last-child { font-size: var(--fz-fs-meta); line-height: 1.45; color: var(--fz-text-2); min-width: 0; }

/* Task-group pills: compact inside a 480px drawer. Two labelled rows — "By status"
   (adds up to the open total) and "By deadline" (cuts across statuses) — so the
   counts are never read as one sum. Labels share a column so both rows line up. */
.fz-tim-pgrid {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: start;
  gap: var(--fz-s-2) var(--fz-s-3);
  min-width: 0;
}
.fz-tim-pills-l {
  display: flex;
  align-items: center;
  min-height: 32px;
  font-size: var(--fz-fs-meta);
  font-weight: var(--fz-fw-semi);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fz-text-3);
  white-space: nowrap;
}
.fz-tim-pills { display: flex; flex-wrap: wrap; gap: var(--fz-s-2); min-width: 0; }
.fz-tim-drawer .fz-tim-pills .fz-fpill { height: 32px; padding: 0 var(--fz-s-3); font-size: var(--fz-fs-meta); background: var(--fz-surface-1); }
.fz-tim-drawer .fz-tim-pills .fz-fpill-n { margin-right: calc(var(--fz-s-1) * -1); }

/* Task rows: client face · #reel step · client · due · status. */
.fz-tim-tlist { display: flex; flex-direction: column; min-width: 0; }
.fz-tim-trow {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--fz-s-3);
  min-width: 0;
  padding: var(--fz-s-2);
  margin: 0 calc(var(--fz-s-2) * -1);
  border-radius: var(--fz-r-sm);
  cursor: pointer;
  transition: background-color var(--fz-t-fast) var(--fz-ease);
}
.fz-tim-trow + .fz-tim-trow { box-shadow: 0 -1px 0 var(--fz-border); }
.fz-tim-trow:hover { background: var(--fz-surface-1); box-shadow: none; }
.fz-tim-trow:hover + .fz-tim-trow { box-shadow: none; }
.fz-tim-trow:focus-visible { outline: 2px solid var(--fz-focus); outline-offset: -2px; }
.fz-tim-trow-m { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fz-tim-trow-t {
  display: flex;
  align-items: baseline;
  gap: var(--fz-s-2);
  min-width: 0;
  font-size: var(--fz-fs-body);
  font-weight: var(--fz-fw-semi);
  line-height: 1.35;
  color: var(--fz-text-1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fz-tim-trow-s { display: flex; align-items: baseline; gap: var(--fz-s-2); min-width: 0; font-size: var(--fz-fs-meta); line-height: 1.35; color: var(--fz-text-3); }
.fz-tim-trow-c { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fz-text-2); }
.fz-tim-trow-d { flex: none; white-space: nowrap; }
.fz-tim-trow-d.is-late { color: var(--fz-crit-ink); font-weight: var(--fz-fw-semi); }
.fz-tim-trow-x { font-size: var(--fz-fs-meta); line-height: 1.45; color: var(--fz-text-2); overflow-wrap: anywhere; }
.fz-tim-trow-x b { color: var(--fz-text-1); font-weight: var(--fz-fw-semi); }
.fz-tim-trow-st { display: flex; justify-content: flex-end; }
/* Read-only rows (5 Oct 2026): a teammate's drawer seen by staff — plain rows,
   not buttons (no pointer, no hover fill; the separator stays put). */
.fz-tim-trow.is-static { cursor: default; }
.fz-tim-trow.is-static:hover { background: transparent; }
.fz-tim-trow.is-static + .fz-tim-trow.is-static,
.fz-tim-trow.is-static:hover + .fz-tim-trow.is-static { box-shadow: 0 -1px 0 var(--fz-border); }

/* Day headers in "Next 7 days". */
.fz-tim-day {
  display: flex;
  align-items: center;
  gap: var(--fz-s-2);
  padding: var(--fz-s-3) 0 var(--fz-s-1);
  font-size: var(--fz-fs-meta);
  font-weight: var(--fz-fw-semi);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fz-text-3);
}
.fz-tim-day:first-child { padding-top: 0; }
.fz-tim-day.is-late { color: var(--fz-crit-ink); }
.fz-tim-day.is-today { color: var(--fz-accent-ink); }

.fz-tim-more {
  appearance: none;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: var(--fz-s-1);
  min-height: 32px;
  margin-top: var(--fz-s-1);
  padding: 0 var(--fz-s-3);
  border: 0;
  border-radius: var(--fz-r-pill);
  background: transparent;
  color: var(--fz-accent-ink);
  font: inherit;
  font-size: var(--fz-fs-meta);
  font-weight: var(--fz-fw-semi);
  cursor: pointer;
  margin-left: calc(var(--fz-s-3) * -1);
}
.fz-tim-more:hover { background: var(--fz-accent-soft); }
.fz-tim-tog {
  appearance: none;
  margin-left: auto;
  min-height: 32px;
  padding: 0 var(--fz-s-3);
  border: 0;
  border-radius: var(--fz-r-pill);
  background: transparent;
  color: var(--fz-accent-ink);
  font: inherit;
  font-size: var(--fz-fs-meta);
  font-weight: var(--fz-fw-semi);
  cursor: pointer;
}
.fz-tim-tog:hover { background: var(--fz-accent-soft); }

/* Assigned clients: face + name chips, two per row. */
.fz-tim-clients { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--fz-s-2); min-width: 0; }
.fz-tim-client {
  appearance: none;
  display: flex;
  align-items: center;
  gap: var(--fz-s-2);
  min-width: 0;
  min-height: 40px;
  padding: var(--fz-s-2);
  border: 0;
  border-radius: var(--fz-r-sm);
  background: var(--fz-surface-1);
  color: var(--fz-text-1);
  font: inherit;
  font-size: var(--fz-fs-meta);
  font-weight: var(--fz-fw-semi);
  text-align: left;
  cursor: pointer;
  transition: background-color var(--fz-t-fast) var(--fz-ease);
}
.fz-tim-client:hover { background: var(--fz-surface-hover); }
/* Read-only: a client the viewer cannot open — a label, not a button. */
.fz-tim-client.is-static { cursor: default; }
.fz-tim-client.is-static:hover { background: var(--fz-surface-1); }
.fz-tim-client-n { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fz-tim-client-late { flex: none; color: var(--fz-crit-ink); font-size: var(--fz-fs-meta); }
.fz-tim-client-o { flex: none; color: var(--fz-text-3); font-size: var(--fz-fs-meta); font-variant-numeric: tabular-nums; }

/* QC "View all" drawer: the same queue cards, full width. */
.fz-tim-qcdrawer .fz-tim-dbody { gap: var(--fz-s-2); }
.fz-tim-qcdrawer .fz-tim-qc-it { background: var(--fz-surface-1); border-color: var(--fz-border); }
[data-theme="dark"] .fz-tim-qcdrawer .fz-tim-qc-it { background: var(--fz-surface-2); border-color: transparent; }


/* ═══ 6. KPI · TREND · CLIENT REPORT · CLIENTS MODAL ═══════════════════════ */
.fz-p-team .fz-tim-kpi,
.fz-p-team .fz-tim-rep { gap: var(--fz-gap); }
.fz-tim-bar { display: flex; align-items: center; flex-wrap: wrap; gap: var(--fz-s-2) var(--fz-s-3); min-width: 0; }
.fz-tim-bar-l {
  font-size: var(--fz-fs-meta);
  font-weight: var(--fz-fw-semi);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fz-text-3);
}
.fz-tim-bar-h { font-size: var(--fz-fs-meta); color: var(--fz-text-3); }
.fz-p-team .fz-tim-kpi-panel .fsw-table-wrap { --fzb-cover: var(--fz-surface-1); }
/* A row with late work: no full red wash (in dark it turned every row muddy brown —
   most people have something late); a 3px crit edge on the name cell, and the Late
   number itself stays crit ink. */
.fz-p-team .fz-tim-kpi-panel .fsw-table tr.is-red td { background: transparent; }
.fz-p-team .fz-tim-kpi-panel .fsw-table tr.fsw-tim-tr.is-red:hover td,
.fz-p-team .fz-tim-kpi-panel .fsw-table tr.fsw-tim-tr:hover td { background: var(--fz-surface-hover); filter: none; }
.fz-p-team .fz-tim-kpi-panel .fsw-table tr.is-red > td:first-child { box-shadow: inset 3px 0 0 var(--fz-crit); }
.fz-p-team .fz-tim-kpi-panel .fsw-person { gap: var(--fz-s-2); }
/* A name never wraps (QA r2: "ZZ Head Creative" broke onto 3 lines at 1024 and its
   row grew to 83px against ~50px for the rest). */
.fz-p-team .fz-tim-kpi-panel .fsw-table td:first-child { white-space: nowrap; }
/* The 8-column role tables (Strategist, Editor, PM, CEO — same columns) share one set
   of column widths, so a column sits at the same x in every stacked card instead of
   zig-zagging with each table's own content (QA r3). Shares sum to 100; below 1200px
   Duration is display:none and the other seven scale up (smallest table, ~610px at
   641: every column still ≥ its header). The 10-column reviewer tables (.is-rev)
   keep auto layout. */
.fz-p-team .fz-tim-kpi-panel .fsw-table.fz-tim-kpi-t:not(.is-rev) { table-layout: fixed; width: 100%; }
.fz-tim-kpi-t:not(.is-rev) > thead > tr > th:nth-child(1) { width: 22%; }
.fz-tim-kpi-t:not(.is-rev) > thead > tr > th:nth-child(2) { width: 10%; }
.fz-tim-kpi-t:not(.is-rev) > thead > tr > th:nth-child(3) { width: 16%; }
.fz-tim-kpi-t:not(.is-rev) > thead > tr > th:nth-child(4),
.fz-tim-kpi-t:not(.is-rev) > thead > tr > th:nth-child(5) { width: 9%; }
.fz-tim-kpi-t:not(.is-rev) > thead > tr > th:nth-child(6),
.fz-tim-kpi-t:not(.is-rev) > thead > tr > th:nth-child(7) { width: 11%; }
.fz-tim-kpi-t:not(.is-rev) > thead > tr > th:nth-child(8) { width: 12%; }
/* Fixed layout never widens a column for its content: a very long name ends in "…"
   inside its own column instead of running under the Clients number. */
.fz-tim-kpi-t:not(.is-rev) td:first-child { overflow: hidden; }
.fz-tim-kpi-t:not(.is-rev) td:first-child .fsw-person { max-width: 100%; min-width: 0; }
.fz-tim-kpi-t:not(.is-rev) td:first-child .fsw-person-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* "Done / target": the number in status ink + "/ 64", over a 4px bar (amber below
   target, green at/above) — length is the second channel next to the colour. The
   legacy kpim colours (ops-theme hex) are swapped for the status inks. */
.fz-p-team .fz-tim-kpi-panel .fsw-kpim-v.is-over { color: var(--fz-ok-ink); }
.fz-p-team .fz-tim-kpi-panel .fsw-kpim-v.is-under { color: var(--fz-warn-ink); }
.fz-tim-kpi-done {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--fz-s-1);
  min-width: 64px;
  vertical-align: middle;
}
.fz-tim-kpi-dv {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: var(--fz-s-1);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.fz-tim-kpi-dv > i { font-style: normal; font-size: var(--fz-fs-meta); font-weight: var(--fz-fw-medium); color: var(--fz-text-3); }
.fz-tim-kpi-bar { width: 100%; }
/* Duration is the first column to go below 1200px (it stays in the person drawer's
   tiles), so Name → Late fits a 1024 laptop without scrolling. The reviewer tables
   (Head Creative / Visual Director, 10 columns) also drop Decisions and Rejected
   (.fz-tim-kpi-lo) — both stay in the person drawer's tiles and the phone list —
   so Queue is never cut off at the right edge. */
@media (max-width: 1199px) {
  .fz-p-team .fz-tim-kpi-panel .fsw-table .fz-tim-kpi-dur,
  .fz-p-team .fz-tim-kpi-panel .fsw-table .fz-tim-kpi-lo { display: none; }
}
/* Phones (≤640, OpsTeamPerformance swaps the table for this list): no table shows
   Name → Late in 358px — it scrolled and cut LATE to "LA". One block per person:
   name, then the key numbers (Clients · Done/target · Open · Late) in one row and
   the quality numbers under them, each value under its own label. The whole block
   opens the person drawer; the Clients number keeps its own button. */
.fz-tim-kpi-list { display: flex; flex-direction: column; min-width: 0; }
.fz-tim-kpi-it {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--fz-s-3) var(--fz-s-1);
  min-width: 0;
  padding: var(--fz-s-4) var(--fz-card-pad);
  cursor: pointer;
  transition: background-color var(--fz-t-fast) var(--fz-ease);
}
.fz-tim-kpi-it + .fz-tim-kpi-it { border-top: 1px solid var(--fz-border); }
.fz-tim-kpi-it:hover { background: var(--fz-surface-hover); }
.fz-tim-kpi-it:focus-visible { outline: 2px solid var(--fz-focus); outline-offset: -2px; }
/* Late work: the same 3px crit edge as the table row (the Late number stays crit ink). */
.fz-tim-kpi-it.is-late { box-shadow: inset 3px 0 0 var(--fz-crit); }
.fz-tim-kpi-who { grid-column: 1 / -1; min-width: 0; }
.fz-tim-kpi-who .fsw-person-name { font-weight: var(--fz-fw-semi); color: var(--fz-text-1); }
/* Four columns that line up from row to row (2 · 4 · 3 · 3 of 12): Clients / On time /
   Rejected · Done-target / Duration / Queue · Open / Revisions · Late / Decisions. */
.fz-tim-kpi-c { grid-column: span 3; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fz-tim-kpi-c:nth-child(4n+2) { grid-column: span 2; }
.fz-tim-kpi-c:nth-child(4n+3) { grid-column: span 4; }
.fz-tim-kpi-l {
  font-size: var(--fz-fs-micro);
  font-weight: var(--fz-fw-medium);
  line-height: 1.3;
  color: var(--fz-text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fz-tim-kpi-v {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: var(--fz-s-6);
  font-size: var(--fz-fs-card);
  font-weight: var(--fz-fw-semi);
  font-variant-numeric: tabular-nums;
  color: var(--fz-text-1);
}
.fz-tim-kpi-c.fz-tim-late .fz-tim-kpi-v { color: var(--fz-crit-ink); font-weight: var(--fz-fw-bold); }
.fz-tim-kpi-list .fsw-kpim-v.is-over { color: var(--fz-ok-ink); }
.fz-tim-kpi-list .fsw-kpim-v.is-under { color: var(--fz-warn-ink); }
.fz-tim-kpi-list .fz-tim-kpi-done { min-width: 0; width: 100%; max-width: 88px; }
.fz-tim-kpi-list .fz-tim-kpi-dv { justify-content: flex-start; }
/* Clients keeps its 40px tap target without making its cell taller than the rest. */
.fz-tim-kpi-list .fsw-tim-nama.is-num { justify-content: flex-start; min-width: 40px; margin: calc(var(--fz-s-2) * -1) 0; }

.fz-tim-metric { display: inline-flex; align-items: center; gap: var(--fz-s-2); }
.fz-tim-rank { display: flex; flex-direction: column; min-width: 0; }
.fz-tim-rank-r {
  display: grid;
  grid-template-columns: auto minmax(120px, 200px) minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--fz-s-3);
  padding: var(--fz-s-2) 0;
  min-width: 0;
}
.fz-tim-rank-r + .fz-tim-rank-r { border-top: 1px solid var(--fz-border); }
.fz-tim-rank-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fz-tim-rank-id b { font-size: var(--fz-fs-body); font-weight: var(--fz-fw-semi); color: var(--fz-text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fz-tim-rank-id span { font-size: var(--fz-fs-meta); color: var(--fz-text-3); }
.fz-tim-rank-v {
  display: inline-flex;
  align-items: baseline;
  gap: var(--fz-s-1);
  justify-content: flex-end;
  min-width: 72px;
  font-family: var(--fz-font-display);
  font-size: var(--fz-fs-card);
  font-weight: var(--fz-fw-semi);
  font-variant-numeric: tabular-nums;
  color: var(--fz-text-1);
}
.fz-tim-rank-v i { font-family: var(--fz-font-body); font-style: normal; font-size: var(--fz-fs-meta); font-weight: var(--fz-fw-medium); color: var(--fz-text-3); }

.fz-tim-rep-panel .fz-panel-ico { background: transparent; }
/* One row, one height: the native date inputs were 40px and the selects 38px, so the
   bottom-aligned row put "From"/"To" 2px above "Client"/"Contract" (QA r1). Every
   control (selects, dates, both buttons) is 40px now; labels share one line box. */
.fz-tim-rep-form { align-items: flex-end; }
.fz-p-team .fz-tim-rep-form .fsw-field-l { line-height: 1.5; }
.fz-p-team .fz-tim-rep-form .fsw-input,
[data-theme="dark"] .fz-p-team .fz-tim-rep-form .fsw-input {
  box-sizing: border-box;
  height: 40px;
  min-height: 40px;
}
.fz-p-team .fz-tim-rep-form > .xcs-btn-primary,
.fz-p-team .fz-tim-rep-form > .xcs-btn-ghost { box-sizing: border-box; height: 40px; min-height: 40px; }
/* The built report is a printable white "paper" in both themes (nova-ui keeps its ink
   dark in dark mode). Its stat tiles used to take the dark card surface in dark mode →
   dark numbers on a near-black tile (invisible). On the paper they are now outlined
   tiles; muted text is derived from the paper's own ink (no new colours). */
.fz-p-team .fsw-report { border-radius: var(--fz-r-lg); }
/* Report tables scroll inside the paper on narrow screens instead of spilling past it. */
.fz-p-team .fsw-report > div:has(> table) { min-width: 0; overflow-x: auto; }
@media print { .fz-p-team .fsw-report > div:has(> table) { overflow: visible; } }
.fz-p-team .fz-tim-rep-h { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--fz-s-4); min-width: 0; }
.fz-p-team .fz-tim-rep-h > div { min-width: 0; }
/* Print sits on the paper, so it takes the paper's ink in both themes. */
.fz-p-team .fz-tim-rep-h > .xcs-btn-ghost.fz-tim-rep-print,
[data-theme="dark"] .fz-p-team .fz-tim-rep-h > .xcs-btn-ghost.fz-tim-rep-print {
  flex: none;
  background: transparent !important;
  color: inherit !important;
  border-color: color-mix(in srgb, currentColor 24%, transparent) !important;
}
.fz-p-team .fz-tim-rep-h > .xcs-btn-ghost.fz-tim-rep-print:hover,
[data-theme="dark"] .fz-p-team .fz-tim-rep-h > .xcs-btn-ghost.fz-tim-rep-print:hover {
  background: color-mix(in srgb, currentColor 6%, transparent) !important;
  border-color: color-mix(in srgb, currentColor 40%, transparent) !important;
}
.fz-p-team .fsw-report .fsw-report-stat { border-radius: var(--fz-r-sm); padding: var(--fz-s-3); }
/* One table look on the paper in both themes (QA r3): light had sentence-case 12.5px
   headers with 6/8 cells, dark picked up styles.css's dark `thead th` / `tbody td`
   (uppercase 10.5px, 12/14 cells) plus nova-ui's #F4F4F4 band. Now both: an 11px
   uppercase header in the paper's muted ink on a faint band of that ink, 8/12 cells,
   body text in the paper's ink. Matches the dark rules' specificity, loads later. */
.fz-p-team .fsw-report thead th,
[data-theme="dark"] .fz-p-team .fsw-report thead th {
  padding: var(--fz-s-2) var(--fz-s-3);
  color: color-mix(in srgb, currentColor 64%, transparent);
  background: color-mix(in srgb, currentColor 8%, transparent);
  font-size: var(--fz-fs-micro);
  font-weight: var(--fz-fw-semi);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.fz-p-team .fsw-report tbody td,
[data-theme="dark"] .fz-p-team .fsw-report tbody td {
  padding: var(--fz-s-2) var(--fz-s-3);
  color: inherit;
}
/* "paid/mixed/uncertain" warning on the white paper. Light: the warn ink token (#8A5400,
   ≥6:1 on white). Dark: the token turns pale (made for dark cards) but the paper stays
   white, so the warn base is darkened with the paper's own ink (≈5.6:1) — no new colour. */
.fz-p-team .fsw-report .fz-tim-rep-warn {
  display: flex;
  align-items: center;
  gap: var(--fz-s-1);
  font-size: var(--fz-fs-meta);
  font-weight: var(--fz-fw-medium);
  color: var(--fz-warn-ink);
}
[data-theme="dark"] .fz-p-team .fsw-report .fz-tim-rep-warn { color: color-mix(in srgb, var(--fz-warn) 55%, currentColor); }
/* Post "link" on the paper. Light: info ink (≈7:1 on white). Dark: the browser's
   dark-scheme link colour was pale lilac (2.4:1 on the white paper) — the same
   recipe as the warn line: info base darkened with the paper's own ink. */
.fz-p-team .fsw-report a { color: var(--fz-info-ink); text-underline-offset: 2px; }
[data-theme="dark"] .fz-p-team .fsw-report a { color: color-mix(in srgb, var(--fz-info) 50%, currentColor); }
[data-theme="dark"] .fz-p-team .fsw-report .fsw-report-stat {
  background: transparent;
  border-color: color-mix(in srgb, currentColor 16%, transparent);
}
[data-theme="dark"] .fz-p-team .fsw-report .fsw-report-stat span,
[data-theme="dark"] .fz-p-team .fsw-report .fsw-report-stat small,
[data-theme="dark"] .fz-p-team .fsw-report .fsw-report-kicker,
[data-theme="dark"] .fz-p-team .fsw-report .fsw-ig-source { color: color-mix(in srgb, currentColor 64%, transparent); }
.fz-p-team .fz-tim-rep-empty .fsw-empty { padding: var(--fz-s-7) var(--fz-card-pad); background: var(--fz-surface-1); border-radius: var(--fz-r-lg); }

.fz-tim-cl .fz-tim-cl-r { display: flex; align-items: center; gap: var(--fz-s-3); }
.fz-tim-cl .fz-tim-cl-t { flex: 1 1 auto; min-width: 0; }


/* ═══ 7. RESPONSIVE ════════════════════════════════════════════════════════ */
@media (max-width: 1280px) {
  .fz-tim-qc-cols { grid-template-columns: minmax(0, 1fr); }
  .fz-tim-qc-cols .fz-tim-qc-col { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); align-items: start; }
  .fz-tim-qc-cols .fz-tim-qc-colh { grid-column: 1 / -1; }
  /* All three gates clear → keep them as three short tiles in one row. */
  .fz-tim-qc-cols.is-allclear { grid-template-columns: repeat(var(--fz-tim-qcn, 3), minmax(0, 1fr)); }
  .fz-tim-qc-cols.is-allclear .fz-tim-qc-col { display: flex; align-items: stretch; }
  /* ~200px tiles: "● Script QC  ✓ Clear" stays on one line (the gate name gives way
     first, never "Clear" dropping to a second line). */
  .fz-tim-qc-cols.is-allclear .fz-tim-qc-colh { flex-wrap: nowrap; }
  .fz-tim-qc-cols.is-allclear .fz-tim-qc-colh h3 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 768px) {
  /* Person cards = the client cards on a phone: 16:9 cover, 16px insets. */
  .fz-tim-card,
  .fz-tim-skc { --fz-cover-ar: 16 / 9; }
  .fz-tim-card-b,
  .fz-tim-skc-b { padding: var(--fz-s-4); gap: var(--fz-s-3); }
  .fz-tim-step,
  .fz-tim-skc-st { gap: var(--fz-s-2); }
  .fz-p-team .fz-tim-tools .fz-toolbar-s { width: 100%; }
  .fz-p-team .fz-tim-tools .fz-search { flex: 1 1 100%; width: auto; }
  .fz-p-team .fz-tim-tools .fz-toolbar-e { width: 100%; flex-wrap: nowrap; justify-content: space-between; margin-left: 0; }
  .fz-p-team .fz-tim-tools .fz-toolbar-e > .fz-tim-month { flex: 1 1 0; min-width: 0; width: auto; max-width: 240px; }
  .fz-p-team .fz-tim-tools .fz-toolbar-e > .fz-viewtog { flex: none; }
  .fz-p-team input.fsw-sel.fz-tim-month,
  [data-theme="dark"] .fz-p-team input.fsw-sel.fz-tim-month { height: 44px; min-height: 44px; }
  .fz-tim-rank-r { grid-template-columns: auto minmax(0, 1fr) auto; }
  .fz-tim-rank-r .fz-tim-rank-bar { grid-column: 2 / -1; grid-row: 2; }
  .fz-tim-how > summary { min-height: 44px; }
  .fz-p-team .fsw-report > div > table th,
  .fz-p-team .fsw-report > div > table td { white-space: nowrap; }
  .fz-p-team .fsw-report td a { display: inline-block; padding: var(--fz-s-3) var(--fz-s-1); margin: calc(var(--fz-s-3) * -1) 0; }
  /* Report form on phones/tablets: phone inputs get 16px text, and the 40px box with
     11px top/bottom padding left a 16px content box for a ~19px line — "Aisyah" lost
     its descenders ("Aisvah", QA r3). Every control is 44px (the phone touch floor)
     with no block padding, so the text centres in the box. */
  .fz-p-team .fz-tim-rep-form .fsw-input,
  [data-theme="dark"] .fz-p-team .fz-tim-rep-form .fsw-input {
    height: 44px;
    min-height: 44px;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 1.25;
  }
  .fz-p-team .fz-tim-rep-form > .xcs-btn-primary,
  .fz-p-team .fz-tim-rep-form > .xcs-btn-ghost { height: 44px; min-height: 44px; }
}
@media (max-width: 640px) {
  /* Phones: the four summary cards become ONE sideways snap rail (Today's v3.10.1
     phone rail recipe) instead of a 2 × 2 block — ~125px tall instead of ~295, so
     the first person cover sits above the tab bar, as the first client card does
     on Clients. No card is removed; the next one peeks in at the edge. Each card
     keeps its `grid-row: span 4` subgrid: with column flow they still share four
     row tracks, so the numbers stay on one line. Tighter padding, a 28px number,
     the corner icon steps aside (size container). The inner padding (deeper at
     the bottom, for the light themes' soft card shadow) keeps the rim, shadow and
     focus ring unclipped; the matching negative margin keeps the layout. */
  .fz-tim-hero {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 72%;
    gap: var(--fz-s-3);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--fz-s-1);
    scrollbar-width: none;
    padding: var(--fz-s-1) var(--fz-s-1) var(--fz-s-4);
    margin: calc(var(--fz-s-1) * -1) calc(var(--fz-s-1) * -1) calc(var(--fz-s-4) * -1);
  }
  .fz-tim-hero::-webkit-scrollbar { display: none; }
  .fz-tim-hero > .fz-metric.fz-tim-sum { scroll-snap-align: start; }
  .fz-tim-hero > .fz-metric.fz-tim-sum { min-height: 0; padding: var(--fz-s-4); gap: var(--fz-s-1); row-gap: var(--fz-s-1); }
  .fz-tim-hero > .fz-metric.fz-tim-sum .fz-metric-l { min-height: 0; font-size: var(--fz-fs-body); }
  .fz-tim-hero > .fz-metric.fz-tim-sum .fz-metric-v { margin-top: var(--fz-s-1); }
  .fz-tim-hero > .fz-metric.fz-tim-sum .fz-metric-num { font-size: calc(var(--fz-fs-num-sm) + 4px); }
  .fz-tim-hero > .fz-metric.fz-tim-sum .fz-metric-of { font-size: var(--fz-fs-body); }
  .fz-tim-hero > .fz-metric.fz-tim-sum .fz-metric-h { font-size: var(--fz-fs-meta); }
  .fz-tim-hero > .fz-metric.fz-tim-sum .fz-metric-x { padding-top: var(--fz-s-2); }
  .fz-tim-qc-cols.is-allclear { grid-template-columns: minmax(0, 1fr); }
  .fz-tim-qc-acts > .xcs-btn-ghost { min-height: 44px; }
  .fz-tim-drawer .fz-tim-pills .fz-fpill { height: 40px; }
  .fz-tim-more, .fz-tim-tog { min-height: 40px; }
  .fz-tim-trow { min-height: 52px; }
  /* Phone: two status chips ("Ready to start" + "Late") used to squeeze the client to
     "Brya…" — the chips now wrap under the title / client line instead. */
  .fz-tim-trow { grid-template-columns: auto minmax(0, 1fr); row-gap: var(--fz-s-2); }
  .fz-tim-trow > .fz-cav { grid-row: 1 / span 2; align-self: start; margin-top: 2px; }
  .fz-tim-trow-st { grid-column: 2; justify-content: flex-start; }
  /* "By status" / "By deadline" become a caption above their pills, so the pills wrap
     side by side across the full width (QA r3: the 90px label column left one pill
     per line — "Overdue 134" and "Next 7 days 15" stacked, ~50px of dead height). */
  .fz-tim-pgrid { grid-template-columns: minmax(0, 1fr); row-gap: var(--fz-s-2); }
  .fz-tim-pills-l { min-height: 0; }
  .fz-tim-pills + .fz-tim-pills-l { margin-top: var(--fz-s-2); }
  .fz-tim-client { min-height: 44px; }
  .fz-tim-tiles.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* Three tiles on a phone are ~80px inside: "149 / 15/wk" cannot share a line, so
     the "/ 15/wk" suffix takes the hint row (where "0 in QC" sits) — numbers on one
     line, every second line on the next (QA r3). */
  @supports (grid-template-rows: subgrid) {
    .fz-tim-drawer .fz-tim-tiles.is-3 > .fz-metric > .fz-metric-v { display: contents; }
    .fz-tim-drawer .fz-tim-tiles.is-3 > .fz-metric .fz-metric-num { grid-row: 2; align-self: start; }
    .fz-tim-drawer .fz-tim-tiles.is-3 > .fz-metric .fz-metric-of { grid-row: 3; align-self: start; font-size: var(--fz-fs-micro); white-space: nowrap; }
  }
  /* Panel header actions get their own row on phones (QA r1): the Trend metric picker
     used to squeeze "Steps completed" into two lines with the METRIC label drawn over
     it, and the QC "Reviewers" stack pushed the count pill under "QC queue". */
  .fz-p-team .fz-tim-trend > .fz-panel-h,
  .fz-p-team .fz-tim-qc > .fz-panel-h { flex-wrap: wrap; }
  .fz-p-team .fz-tim-trend > .fz-panel-h > .fz-panel-act,
  .fz-p-team .fz-tim-qc > .fz-panel-h > .fz-panel-act {
    order: 3;
    flex: 1 0 100%;
    max-width: none;
    margin-left: 0;
    justify-content: flex-start;
  }
  /* Trend: the select takes the row (it already names the metric; aria-label kept). */
  .fz-p-team .fz-tim-trend .fz-tim-metric { display: flex; width: 100%; }
  .fz-p-team .fz-tim-trend .fz-tim-metric > .fz-tim-bar-l { display: none; }
  .fz-p-team .fz-tim-trend .fz-tim-metric > .fsw-sel { flex: 1 1 auto; min-width: 0; width: auto; }
  /* QC: the reviewers row lines up with the title text, not under the icon tile. */
  .fz-p-team .fz-tim-qc > .fz-panel-h > .fz-panel-ico ~ .fz-panel-act { padding-left: calc(var(--fz-s-7) + var(--fz-s-3)); }
  /* Client report form on phones: one even column instead of four controls of four
     widths — Client and Contract full width, From | To side by side, the two buttons
     share the last row. */
  .fz-p-team .fz-tim-rep-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--fz-s-3) var(--fz-s-2); }
  .fz-p-team .fz-tim-rep-form > .fsw-field:nth-child(-n+2) { grid-column: 1 / -1; }
  .fz-p-team .fz-tim-rep-form .fsw-input { width: 100%; min-width: 0; }
  .fz-p-team .fz-tim-rep-form > .xcs-btn-primary,
  .fz-p-team .fz-tim-rep-form > .xcs-btn-ghost { justify-content: center; min-width: 0; padding-left: var(--fz-s-3); padding-right: var(--fz-s-3); }
}
/* Built report on a phone screen (not print): the paper keeps a card's inset, and each
   table row becomes a small block — ID, then the title, then the other columns two
   per row, each value under its own label (td[data-label]). No header row to cut off
   ("Pu…") and nothing scrolls sideways (QA r3); same pattern as the KPI phone list. */
@media screen and (max-width: 640px) {
  .fz-p-team .fsw-report { padding: var(--fz-card-pad); }
  .fz-p-team .fsw-report > div:has(> table.fz-tim-rep-t) { overflow: visible; }
  .fz-p-team .fsw-report table.fz-tim-rep-t,
  .fz-p-team .fsw-report table.fz-tim-rep-t > tbody { display: block; width: 100%; }
  .fz-p-team .fsw-report table.fz-tim-rep-t > thead { display: none; }
  .fz-p-team .fsw-report table.fz-tim-rep-t > tbody > tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--fz-s-2) var(--fz-s-4);
    padding: var(--fz-s-3) 0;
    border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  }
  .fz-p-team .fsw-report table.fz-tim-rep-t > tbody > tr > td,
  [data-theme="dark"] .fz-p-team .fsw-report table.fz-tim-rep-t > tbody > tr > td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  /* ID: the small mono line on top; title: the strong line under it. */
  .fz-p-team .fsw-report table.fz-tim-rep-t > tbody > tr > td:nth-child(1) {
    grid-column: 1 / -1;
    font-size: var(--fz-fs-micro);
    color: color-mix(in srgb, currentColor 64%, transparent);
  }
  .fz-p-team .fsw-report table.fz-tim-rep-t > tbody > tr > td:nth-child(2) {
    grid-column: 1 / -1;
    margin-top: calc(var(--fz-s-1) * -1);
    font-size: var(--fz-fs-body);
    font-weight: var(--fz-fw-semi);
  }
  .fz-p-team .fsw-report table.fz-tim-rep-t > tbody > tr > td[colspan] {
    grid-column: 1 / -1;
    margin-top: 0;
    font-size: var(--fz-fs-meta);
    font-weight: var(--fz-fw-medium);
  }
  .fz-p-team .fsw-report table.fz-tim-rep-t td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: var(--fz-fs-micro);
    font-weight: var(--fz-fw-semi);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: color-mix(in srgb, currentColor 64%, transparent);
  }
}
@media (max-width: 400px) {
  .fz-tim-clients { grid-template-columns: minmax(0, 1fr); }
}
/* ≤379 (360-wide phones): "October 2026" plus the calendar icon needs ~152px — the
   Cards/Table toggle goes icon-only (each button keeps its title / radio name) so the
   month input never clips its year (QA r1: "October 202▯"). */
@media (max-width: 379px) {
  .fz-p-team .fz-tim-tools .fz-toolbar-e > .fz-tim-month { min-width: 152px; }
  .fz-p-team .fz-tim-tools .fz-viewtog-l { display: none; }
  .fz-p-team .fz-tim-tools .fz-viewtog-b { min-width: 44px; justify-content: center; }
  /* Two dates or two buttons side by side no longer fit (calendar icon on the year,
     "Sync Instagram" on two lines): the report form becomes one column. */
  .fz-p-team .fz-tim-rep-form { grid-template-columns: minmax(0, 1fr); }
}

/* 13 Okt 2026 — pemilik: "color block jelek, buat list samping saja yang
   warnanya berbeda beda" — hanya GARIS SAMPING kiri yang berwarna, latar
   kartu tetap: sudah dikirim (menunggu keputusan QC) = oranye; belum dikirim
   (PIC tahap sebelumnya belum kerja / kirim link) = merah. Ditulis sesudah
   .is-late supaya oranye menang meski kartunya telat; pil "Late" tetap merah. */
.fz-tim-qc-it.is-notsent { box-shadow: inset 4px 0 0 var(--fz-crit); }
.fz-tim-qc-it.is-sent, .fz-tim-qc-it.is-sent.is-late { box-shadow: inset 4px 0 0 var(--fz-warn); }
/* 13 Okt 2026 — kalimat "Can't QC yet — <PIC> hasn't sent <step>" di kartu Not sent. */
.fz-tim-qc-block { flex-wrap: wrap; font-size: var(--fz-fs-meta); color: var(--fz-text-2); }
.fz-tim-qc-block b { color: var(--fz-text-1); font-weight: var(--fz-fw-semi); }

/* 21 Okt 2026 — KPI tab "Range": dua tanggal di baris tab. */
.fz-tim-range { display: inline-flex; flex-wrap: wrap; align-items: flex-end; gap: var(--fz-s-2); }
.fz-tim-range label { display: flex; flex-direction: column; gap: 2px; font-size: var(--fz-fs-meta); color: var(--fz-text-3); }
.fz-tim-range .fsw-input { width: 150px; min-height: 36px; }

/* 21 Okt 2026 — daftar "Approved reels": tautan terkirim per video. */
.fz-tim-reel-link { font-weight: var(--fz-fw-semi); font-size: var(--fz-fs-meta); color: var(--fz-accent-ink); white-space: nowrap; text-decoration: none; padding: 4px 10px; border-radius: var(--fz-r-pill); background: var(--fz-accent-soft); }
.fz-tim-reel-link:hover { text-decoration: underline; }
.fz-tim-reel-none { font-size: var(--fz-fs-meta); color: var(--fz-text-3); white-space: nowrap; }

/* View as (22 Okt 2026) — bilah tetap di atas saat admin melihat sebagai akun lain. */
.fsw-viewas{position:fixed;top:0;left:50%;transform:translateX(-50%);z-index:2000;display:flex;align-items:center;gap:12px;padding:6px 8px 6px 16px;border-radius:0 0 12px 12px;background:#b45309;color:#fff;font-size:13px;box-shadow:0 4px 16px rgba(0,0,0,.35)}
.fsw-viewas button{border:0;border-radius:8px;padding:4px 12px;background:#fff;color:#7c2d12;font-weight:600;cursor:pointer}

.fsw-viewas-fab{position:fixed;right:20px;bottom:380px;z-index:38;width:54px;height:54px;border-radius:50%;background:var(--fz-surface-1);color:var(--fz-text-1);border:1px solid var(--fz-border-strong);display:grid;place-items:center;cursor:pointer;padding:0;box-shadow:var(--fz-shadow-pop);touch-action:none;-webkit-user-select:none;user-select:none}
.fsw-viewas-fab.is-open{opacity:0;pointer-events:none}
.fsw-viewas-pop{position:fixed;right:20px;bottom:90px;z-index:1300;width:min(320px,calc(100vw - 32px));max-height:70vh;display:flex;flex-direction:column;gap:10px;padding:14px;border-radius:16px;background:var(--fz-surface-1);color:var(--fz-text-1);border:1px solid var(--fz-border-strong);box-shadow:var(--fz-shadow-pop)}
.fsw-viewas-hd{display:flex;align-items:center;justify-content:space-between}
.fsw-viewas-hd button{background:none;border:0;color:inherit;cursor:pointer}
.fsw-viewas-list{overflow:auto;display:flex;flex-direction:column;gap:2px}
.fsw-viewas-list button{display:flex;align-items:center;gap:10px;padding:8px;border:0;border-radius:10px;background:none;color:inherit;cursor:pointer;text-align:left}
.fsw-viewas-list button:hover{background:var(--fz-surface-2,rgba(128,128,128,.15))}
.fsw-viewas-list em{margin-left:auto;font-style:normal;font-size:12px;opacity:.65}
.fsw-viewas-note,.fsw-viewas-none{margin:0;font-size:12px;opacity:.65}
@media (max-width:768px){.fsw-viewas-fab{right:16px;bottom:calc(300px + env(safe-area-inset-bottom,0px))}body.has-fsw-bottombar .fsw-viewas-fab{bottom:calc(360px + env(safe-area-inset-bottom,0px))}}

.fz-collab{display:flex;flex-direction:column;gap:8px}
.fz-collab-chips{display:flex;flex-wrap:wrap;gap:6px}
.fz-collab-chip{display:inline-flex;align-items:center;gap:6px;padding:3px 6px 3px 4px;border-radius:999px;background:var(--fz-surface-2,rgba(128,128,128,.16));font-size:13px}
.fz-collab-chip button{border:0;background:none;color:inherit;cursor:pointer;opacity:.7;padding:0;display:grid;place-items:center}

.fsw-comment-pin{align-self:flex-start;margin-top:4px;border:0;background:none;color:var(--fz-accent,#8b9cff);font-size:12px;cursor:pointer;padding:0;opacity:.85}
.fsw-comment-pin:hover{opacity:1;text-decoration:underline}
.fz-mw-qcs-pic{display:inline-flex;align-items:center;gap:6px}

.fz-collab-chip{padding:3px 10px 3px 4px;font-size:14px}
.fz-collab-add{align-self:flex-start}
.fz-collab-pop{display:flex;flex-direction:column;gap:8px;padding:10px;border-radius:14px;background:var(--fz-surface-2,rgba(128,128,128,.12));border:1px solid var(--fz-border-strong,rgba(128,128,128,.3))}
.fz-collab-list{max-height:260px;overflow:auto;display:flex;flex-direction:column;gap:2px}
.fz-collab-row{display:flex;align-items:center;gap:12px;padding:8px 10px;border:0;border-radius:10px;background:none;color:inherit;cursor:pointer;text-align:left}
.fz-collab-row:hover,.fz-collab-row:focus-visible{background:var(--fz-surface-1,rgba(128,128,128,.18));outline:none}
.fz-collab-n{display:flex;flex-direction:column;min-width:0;flex:1}
.fz-collab-n b{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fz-collab-n small{opacity:.65;font-size:12px}
.fz-collab-none{padding:8px}

.fz-mw-qcs-dedit{display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px}
.fz-mw-qcs-dedit .fsw-input{width:auto}
.fz-mw-qcs-dbtn{margin-left:8px;border:0;background:none;color:inherit;opacity:.8;cursor:pointer;display:inline-flex;align-items:center;gap:4px;font-size:12px;text-decoration:underline}

/* Prioritas tugas manual (22 Okt 2026) */
.fz-prio{display:inline-flex;align-items:center;gap:6px;padding:3px 9px;border-radius:999px;border:1px solid transparent;font-size:12px;font-weight:600;line-height:1.3;background:rgba(128,128,128,.16);color:inherit}
.fz-prio i{width:7px;height:7px;border-radius:50%;background:#9ca3af}
.fz-prio.is-urgent{background:rgba(239,68,68,.16);color:#f87171}.fz-prio.is-urgent i{background:#ef4444}
.fz-prio.is-high{background:rgba(245,158,11,.16);color:#fbbf24}.fz-prio.is-high i{background:#f59e0b}
.fz-prio.is-med{background:rgba(96,165,250,.14);color:#93c5fd}.fz-prio.is-med i{background:#60a5fa}
.fz-prio.is-low{background:rgba(156,163,175,.16);color:#9ca3af}.fz-prio.is-low i{background:#9ca3af}
.fz-prio.is-btn{cursor:pointer}
.fz-prio.is-btn:hover{border-color:currentColor}
.fz-prio-wrap{position:relative;display:inline-flex}
.fz-prio-menu{position:absolute;right:0;top:calc(100% + 4px);z-index:30;display:flex;flex-direction:column;gap:4px;padding:6px;border-radius:12px;background:var(--fz-surface-1,#1c1c1e);border:1px solid var(--fz-border-strong,rgba(128,128,128,.3));box-shadow:var(--fz-shadow-pop,0 8px 24px rgba(0,0,0,.4))}
.fz-prio-menu .fz-prio{cursor:pointer;border:1px solid transparent;justify-content:flex-start}
.fz-prio-menu .fz-prio.is-on{border-color:currentColor}
.fz-mw-qcs-prio{display:flex;align-items:center;gap:10px;margin:10px 0}
.fz-mw-qcs-prio>span:first-child{font-size:12px;letter-spacing:.06em;text-transform:uppercase;opacity:.65}

.fz-ov-mrow{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin-bottom:12px}

/* Satu gerbang QC saja (mis. Script QC milik Head Creative): kartu 3 ke samping, penuh → turun (22 Okt 2026) */
@media (min-width: 900px) {
  .fz-tim-qc-cols.is-1 .fz-tim-qc-col:not(.is-clear) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: start; }
  .fz-tim-qc-cols.is-1 .fz-tim-qc-col:not(.is-clear) .fz-tim-qc-colh { grid-column: 1 / -1; }
}

/* Antrean dua kolom (Working on progress / Finish): kartu berjajar ke samping, penuh → turun (22 Okt 2026) */
@media (min-width: 900px) {
  .fz-tim-qc-cols.is-2.fz-mw-q-cols { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .fz-tim-qc-cols.is-2.fz-mw-q-cols .fz-mw-q-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; align-items: start; }
  .fz-tim-qc-cols.is-2.fz-mw-q-cols .fz-tim-qc-col.is-kelar .fz-mw-q-list { grid-template-columns: minmax(0, 1fr); }
}

/* Kolom Finish (sempit): judul tampil penuh, label + Undo turun di bawahnya (23 Okt 2026) */
.fz-tim-qc-col.is-kelar .fsw-it.fz-mw-q { grid-template-columns: auto minmax(0, 1fr); }
.fz-tim-qc-col.is-kelar .fz-mw-q-acts { grid-column: 2; justify-content: flex-start; }

/* @mention di komentar (30 Okt 2026) */
.fsw-comment-compose { position: relative; }
.fsw-mention-pop { position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 20; min-width: 220px; max-width: 100%; display: flex; flex-direction: column; padding: 6px; border-radius: 12px; background: var(--fz-surface-1, #1c1c1e); border: 1px solid var(--fz-border-strong, rgba(128,128,128,.3)); box-shadow: var(--fz-shadow-pop, 0 8px 24px rgba(0,0,0,.4)); }
.fsw-mention-it { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.fsw-mention-it.is-on, .fsw-mention-it:hover { background: var(--fz-surface-2, rgba(128,128,128,.18)); }

/* My Manual Task: Working on progress · QC · Finish (30 Okt 2026) */
@media (min-width: 900px) {
  .fz-tim-qc-cols.is-man3.fz-mw-q-cols { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
  .fz-tim-qc-cols.is-man3.fz-mw-q-cols .fz-mw-q-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 10px; align-items: start; }
  .fz-tim-qc-cols.is-man3.fz-mw-q-cols .fz-tim-qc-col:not(.is-saya) .fz-mw-q-list { grid-template-columns: minmax(0, 1fr); }
}
.fz-tim-qc-col.is-qc .fsw-it.fz-mw-q { grid-template-columns: auto minmax(0, 1fr); }
.fz-tim-qc-col.is-qc .fz-mw-q-acts { grid-column: 2; justify-content: flex-start; }
