/* fz-admin.css — Secondary pages: OS Settings, Manage Users, White Board, Ask the System, How-To. Owner: admin-pages agent.
   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>).

   Page roots: .fz-p-settings · .fz-p-users · .fz-p-board · .fz-p-ask · .fz-p-help
   (each also carries the legacy .fsw-page). Every rule below is scoped under one
   of them, under the assistant panel (.fsw-assist-wrap), or under a class only
   these files render (.fz-set-*, .fz-usr-*, .fz-acc-*, .fz-tl-*, .fz-kpi*,
   .fz-bd-*, .fz-ask-*, .fz-help-*, .fz-asst-*). Tokens only (DESIGN-SYSTEM.md). */


/* ═══ 0. PAGE RHYTHM ═══════════════════════════════════════════════════════ */
.fz-p-settings, .fz-p-users, .fz-p-board, .fz-p-ask, .fz-p-help {
  gap: var(--fz-gap);
  min-width: 0;
}
.fz-p-settings > .xcs-pagehead, .fz-p-users > .xcs-pagehead, .fz-p-board > .xcs-pagehead,
.fz-p-ask > .xcs-pagehead, .fz-p-help > .xcs-pagehead { margin-bottom: var(--fz-s-2); }

/* Kit avatar stacks on these pages (Manage Users hero + role bars, KPI roles).
   Page-scoped until fz-kit.css fixes it for every page (requested from the kit
   owner): the "+N" chip is not positioned, so the positioned avatar before it
   painted over its "+"; and an initials disc that is overlapped by its
   neighbour lost its second letter. The chip now paints on top, and the disc
   after an initials-only avatar only overlaps by the 2px ring. Photos keep
   the kit's deeper overlap. */
.fz-p-users .fz-avstack-more,
.fz-p-settings .fz-avstack-more { position: relative; z-index: 1; }
.fz-p-users .fz-avstack > .fsw-avatar:not(.has-photo) + *,
.fz-p-settings .fz-avstack > .fsw-avatar:not(.has-photo) + * { margin-left: calc(var(--fz-s-1) * -.5); }


/* ═══ 1. OS SETTINGS — layout + section nav ═══════════════════════════════ */
.fz-set-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: var(--fz-gap);
  align-items: start;
  min-width: 0;
}
.fz-set-main { min-width: 0; display: flex; flex-direction: column; gap: var(--fz-gap); }
.fz-set-stack { display: flex; flex-direction: column; gap: var(--fz-gap); min-width: 0; }

.fz-set-nav {
  position: sticky;
  top: var(--fz-s-4);
  padding: var(--fz-s-3);
  border-radius: var(--fz-r-xl);
  background: var(--fz-surface-1);
  box-shadow: var(--fz-shadow-soft);
}
[data-theme="dark"] .fz-set-nav { box-shadow: none; }
.fz-set-navl { display: flex; flex-direction: column; gap: 2px; }
.fz-set-navg {
  padding: var(--fz-s-3) var(--fz-s-3) var(--fz-s-1);
  font-size: var(--fz-fs-micro);
  font-weight: var(--fz-fw-semi);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fz-text-3);
}
.fz-set-navg:first-child { padding-top: var(--fz-s-1); }
.fz-set-navb {
  appearance: none;
  display: flex;
  align-items: center;
  gap: var(--fz-s-3);
  width: 100%;
  min-height: 48px;
  padding: var(--fz-s-2);
  border: 0;
  border-radius: var(--fz-r-sm);
  background: transparent;
  color: var(--fz-text-2);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--fz-t-fast) var(--fz-ease), color var(--fz-t-fast) var(--fz-ease);
}
.fz-set-navb:hover { background: var(--fz-surface-hover); color: var(--fz-text-1); }
.fz-set-navb.is-on { background: var(--fz-surface-2); color: var(--fz-text-1); box-shadow: inset 0 0 0 1px var(--fz-border); }
[data-theme="dark"] .fz-set-navb.is-on { background: var(--fz-surface-3); box-shadow: none; }
.fz-set-navi {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: var(--fz-r-xs);
  background: var(--fz-surface-2);
  color: var(--fz-text-2);
  transition: background-color var(--fz-t-fast) var(--fz-ease), color var(--fz-t-fast) var(--fz-ease);
}
[data-theme="dark"] .fz-set-navi { background: var(--fz-surface-3); }
.fz-set-navb.is-on .fz-set-navi { background: var(--fz-accent); color: var(--fz-text-on-accent); }
.fz-set-navt { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.fz-set-navt b {
  font-size: var(--fz-fs-body);
  font-weight: var(--fz-fw-semi);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fz-set-navt small {
  font-size: var(--fz-fs-meta);
  line-height: 1.3;
  color: var(--fz-text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Narrow (769–1180): the nav becomes a block of pills above the content that
   WRAPS — every section stays visible, nothing is clipped or faded. */
@media (max-width: 1180px) {
  .fz-set-layout { grid-template-columns: minmax(0, 1fr); }
  .fz-set-nav { position: static; padding: var(--fz-s-1); border-radius: var(--fz-r-xl); }
  .fz-set-navl { flex-direction: row; flex-wrap: wrap; gap: var(--fz-s-1); }
  .fz-set-navg { display: none; }
  .fz-set-navb { flex: none; width: auto; min-height: 40px; padding: var(--fz-s-1) var(--fz-s-3) var(--fz-s-1) var(--fz-s-1); border-radius: var(--fz-r-pill); gap: var(--fz-s-2); }
  .fz-set-navi { width: 32px; height: 32px; border-radius: var(--fz-r-pill); background: transparent; }
  [data-theme="dark"] .fz-set-navi { background: transparent; }
  .fz-set-navt small { display: none; }
  .fz-set-navb.is-on { box-shadow: none; }
}
/* Tablet + phone (QA r1): the pills keep WRAPPING exactly like at 1024 — no
   sideways scroller, no edge fade, no word cut at either edge. Every section
   stays visible, so the selected one is always on screen. */
@media (max-width: 768px) {
  .fz-set-navb { min-height: 44px; }
}
/* Phone (≤480): nine pills would need four rows, so the pills give way to
   ONE full-width "Section" select (OpsSetNav renders both; CSS picks). The
   current section's icon sits in the same lime disc the selected pill uses. */
.fz-set-navsel { display: none; }
@media (max-width: 480px) {
  .fz-set-nav { padding: var(--fz-s-2); border-radius: var(--fz-r-lg); }
  .fz-set-navl { display: none; }
  .fz-set-navsel { display: flex; align-items: center; gap: var(--fz-s-3); min-width: 0; }
  .fz-set-navsel .fz-set-navi { width: 40px; height: 40px; border-radius: var(--fz-r-pill); background: var(--fz-accent); color: var(--fz-text-on-accent); }
  [data-theme="dark"] .fz-set-navsel .fz-set-navi { background: var(--fz-accent); }
  .fz-set-navsel .fsw-input { flex: 1 1 auto; min-width: 0; width: auto; min-height: 44px; font-size: var(--fz-fs-body); font-weight: var(--fz-fw-semi); color: var(--fz-text-1); }
}
/* Non-manager: only "My account" — no section nav, the panel takes the row. */
.fz-set-layout.is-solo { grid-template-columns: minmax(0, 1fr); }


/* ═══ 2. SETTINGS — rows, info, segmented, save bar, callouts ═════════════ */
.fz-set-list { display: flex; flex-direction: column; }
.fz-set-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 340px);
  align-items: center;
  gap: var(--fz-s-2) var(--fz-s-6);
  padding: var(--fz-s-3) 0;
  border-top: 1px solid var(--fz-border);
}
.fz-set-row:first-child { border-top: 0; padding-top: 0; }
.fz-set-row:last-child { padding-bottom: 0; }
.fz-set-row-l { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fz-set-row-lt { display: flex; align-items: center; flex-wrap: wrap; gap: var(--fz-s-2); min-width: 0; }
.fz-set-row .fz-set-row-t {
  letter-spacing: 0;
  font-size: var(--fz-fs-body);
  font-weight: var(--fz-fw-medium);
  line-height: 1.4;
  color: var(--fz-text-1);
  cursor: default;
}
.fz-set-row label.fz-set-row-t { cursor: pointer; }
.fz-set-row-meta { font-size: var(--fz-fs-meta); line-height: 1.45; color: var(--fz-text-3); }
.fz-set-row-c { min-width: 0; display: flex; justify-content: flex-end; }
.fz-set-row-c > .fsw-input, .fz-set-row-c > select.fsw-input { width: 100%; }
.fz-set-row-c > .fsw-input.is-num { max-width: 140px; }
.fz-set-row-c > .fsw-chipset { justify-content: flex-end; }
.fz-set-row-hint,
.fz-p-settings p.fz-set-row-hint {
  grid-column: 1 / -1;
  margin: 0;
  padding: var(--fz-s-3) var(--fz-s-4);
  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.55;
  max-width: 78ch;
}
.fz-set-row-hint[hidden] { display: none; }
.fz-set-row-hint code { font-family: var(--fz-font-mono); font-size: var(--fz-fs-meta); color: var(--fz-text-1); }

/* "i" button: a 22px disc (44px hit area on touch). */
.fz-set-info {
  appearance: none;
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid var(--fz-border-strong);
  border-radius: var(--fz-r-pill);
  background: transparent;
  color: var(--fz-text-3);
  font-family: var(--fz-font-display);
  font-size: var(--fz-fs-micro);
  font-weight: var(--fz-fw-bold);
  font-style: normal;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--fz-t-fast) var(--fz-ease), color var(--fz-t-fast) var(--fz-ease), border-color var(--fz-t-fast) var(--fz-ease);
}
.fz-set-info::after { content: ''; position: absolute; inset: -12px; }
.fz-set-info:hover { color: var(--fz-text-1); border-color: var(--fz-text-3); }
.fz-set-info.is-on { background: var(--fz-accent-soft); border-color: var(--fz-accent-line); color: var(--fz-accent-ink); }
/* Phone: a 32px disc (+6px ring = 44px target). Must sit AFTER the base rule
   above — in the nav's media block it lost to it on source order. */
@media (max-width: 768px) {
  .fz-set-info { width: 32px; height: 32px; font-size: var(--fz-fs-meta); }
  .fz-set-info::after { inset: -6px; }
}

.fz-set-lock {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  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);
}
.fz-set-muted, .fz-p-settings p.fz-set-muted { margin: 0; color: var(--fz-text-3); font-size: var(--fz-fs-meta); }
.fz-set-foot, .fz-p-settings p.fz-set-foot { margin: 0; color: var(--fz-text-3); font-size: var(--fz-fs-meta); line-height: 1.5; }
.fz-p-settings .fz-panel-act { flex-wrap: nowrap; flex-shrink: 0; }
.fz-set-actrow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--fz-s-2) var(--fz-s-3); }
/* Settings → Google Calendar (8 Oct 2026) */
.fz-set-gcal { display: flex; flex-direction: column; gap: var(--fz-s-3); min-width: 0; }
.fz-set-gcal-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--fz-s-3) var(--fz-s-5); margin: 0; }
.fz-set-gcal-kv > div { min-width: 0; }
.fz-set-gcal-kv dt { font-size: var(--fz-fs-meta); color: var(--fz-text-3); }
.fz-set-gcal-kv dd { margin: 2px 0 0; color: var(--fz-text-1); font-weight: var(--fz-fw-medium); overflow-wrap: anywhere; }
.fz-set-gcal-form { display: flex; flex-direction: column; gap: var(--fz-s-2); min-width: 0; }
.fz-set-gcal-steps { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: var(--fz-s-2); color: var(--fz-text-2); line-height: 1.5; }
.fz-set-gcal-steps b { color: var(--fz-text-1); }
.fz-set-gcal-steps + .fz-set-row-hint { margin-top: var(--fz-s-3); }
.fz-set-iconbtn {
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--fz-border-strong);
  border-radius: var(--fz-r-pill);
  background: transparent;
  color: var(--fz-text-2);
  cursor: pointer;
  transition: background-color var(--fz-t-fast) var(--fz-ease), color var(--fz-t-fast) var(--fz-ease);
}
.fz-set-iconbtn:hover { background: var(--fz-surface-hover); color: var(--fz-text-1); }

/* Segmented control for short two-way choices (rides on the base .fsw-tabs look). */
.fz-p-settings .fz-set-seg { flex-wrap: nowrap; }
.fz-p-settings .fz-set-seg .fsw-tab { min-width: 72px; justify-content: center; }
.fz-p-settings .fz-set-seg .fsw-tab:disabled { cursor: not-allowed; opacity: .55; }

/* Sticky save bar — appears only while something is unsaved. */
.fz-set-save {
  position: fixed;
  bottom: var(--fz-s-5);
  z-index: 30;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--fz-s-3);
  padding: var(--fz-s-3) var(--fz-s-3) var(--fz-s-3) var(--fz-s-5);
  border-radius: var(--fz-r-pill);
  background: var(--fz-surface-1);
  box-shadow: var(--fz-shadow-pop), inset 0 0 0 1px var(--fz-border-strong);
  animation: fz-set-rise var(--fz-t-med) var(--fz-ease);
}
.fz-set-save-t { display: inline-flex; align-items: center; gap: var(--fz-s-2); font-size: var(--fz-fs-body); font-weight: var(--fz-fw-medium); color: var(--fz-text-1); }
.fz-set-save-t i { width: 8px; height: 8px; border-radius: var(--fz-r-pill); background: var(--fz-warn); flex: none; }
/* A failed save is reported on the bar itself (the tab's OpsErr may be off-screen). */
.fz-set-save-t.is-err { flex: 1 1 240px; min-width: 0; color: var(--fz-crit-ink); line-height: 1.4; }
.fz-set-save-t.is-err i { background: var(--fz-crit); }
.fz-set-save-a { display: inline-flex; align-items: center; gap: var(--fz-s-2); margin-left: auto; }
@keyframes fz-set-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* Room under the content so the floating bar never hides the last row. */
.fz-set-stack:has(> .fz-set-save) { padding-bottom: 88px; }
@media (max-width: 768px) {
  body.has-fsw-bottombar .fz-set-save { bottom: calc(var(--fsw-bbar-h, 78px) + var(--fz-s-3) + env(safe-area-inset-bottom, 0px)); }
  /* Phones have no floating assistant button (it lives in the top bar), so the
     bar spans the measured content column like on desktop. */
  .fz-set-save { border-radius: var(--fz-r-lg); padding: var(--fz-s-2) var(--fz-s-2) var(--fz-s-2) var(--fz-s-3); }
  .fz-set-save-t { font-size: var(--fz-fs-meta); }
}

.fz-set-banner {
  display: flex;
  align-items: flex-start;
  gap: var(--fz-s-3);
  padding: var(--fz-s-3) var(--fz-s-4);
  border-radius: var(--fz-r-md);
  background: var(--fz-warn-soft);
  color: var(--fz-text-1);
  font-size: var(--fz-fs-meta);
  line-height: 1.55;
}
.fz-set-banner b { color: var(--fz-warn-ink); font-weight: var(--fz-fw-semi); }
.fz-set-banner-i { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: var(--fz-r-pill); background: var(--fz-surface-1); color: var(--fz-warn-ink); }
.fz-set-callout {
  display: flex;
  align-items: flex-start;
  gap: var(--fz-s-2);
  padding: var(--fz-s-3) var(--fz-s-4);
  border-radius: var(--fz-r-sm);
  font-size: var(--fz-fs-meta);
  line-height: 1.5;
}
.fz-set-callout .fsw-ic { flex: none; margin-top: 2px; }
.fz-set-callout.is-info { background: var(--fz-info-soft); color: var(--fz-info-ink); }
.fz-set-callout.is-ok { background: var(--fz-ok-soft); color: var(--fz-ok-ink); }
.fz-set-callout b { font-weight: var(--fz-fw-semi); }

/* AI tab: the config snippet well. */
.fz-set-code {
  display: flex;
  flex-direction: column;
  gap: var(--fz-s-2);
  padding: var(--fz-s-4);
  border-radius: var(--fz-r-md);
  background: var(--fz-surface-sunken);
  box-shadow: inset 0 0 0 1px var(--fz-border);
}
.fz-set-code-h { display: flex; align-items: center; gap: var(--fz-s-2); font-size: var(--fz-fs-meta); font-weight: var(--fz-fw-medium); color: var(--fz-text-2); }
.fz-set-code-h code, .fz-set-code-b { font-family: var(--fz-font-mono); color: var(--fz-text-1); }
.fz-set-code-b { font-size: var(--fz-fs-meta); padding: var(--fz-s-2) var(--fz-s-3); border-radius: var(--fz-r-xs); background: var(--fz-surface-2); overflow-wrap: anywhere; }
.fz-p-settings .fz-set-code p { margin: 0; font-size: var(--fz-fs-meta); color: var(--fz-text-3); line-height: 1.5; }

/* Install tab: two sample-data blocks side by side. */
.fz-set-seed { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--fz-s-3); }
.fz-set-seed-c { display: flex; flex-direction: column; gap: var(--fz-s-3); padding: var(--fz-s-4); border-radius: var(--fz-r-md); background: var(--fz-surface-2); min-width: 0; }
.fz-set-seed-h { display: flex; align-items: center; gap: var(--fz-s-2); }
.fz-set-seed-c > :last-child { margin-top: auto; }
.fz-set-seed-h b { font-size: var(--fz-fs-body); font-weight: var(--fz-fw-semi); color: var(--fz-text-1); }
.fz-set-seed-c .fsw-inline-form { align-items: flex-end; }
.fz-set-seed-c .fsw-inline-form .fsw-field { flex: 1 1 180px; }
.fz-p-settings .fsw-install-log {
  margin: 0;
  max-height: 280px;
  overflow: auto;
  background: var(--fz-surface-sunken);
  border: 1px solid var(--fz-border);
  border-radius: var(--fz-r-sm);
  color: var(--fz-text-2);
  font-family: var(--fz-font-mono);
}

@media (max-width: 640px) {
  .fz-set-row { grid-template-columns: minmax(0, 1fr); gap: var(--fz-s-2); }
  .fz-set-row-c { justify-content: stretch; }
  .fz-set-row-c > .fsw-input.is-num { max-width: none; }
  .fz-set-row-c > .fsw-chipset { justify-content: flex-start; }
  .fz-p-settings .fz-set-seg { width: 100%; }
  .fz-p-settings .fz-set-seg .fsw-tab { flex: 1 1 0; }
}


/* ═══ 3. SETTINGS — monthly timeline editor ══════════════════════════════ */
.fz-tl-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--fz-s-2) var(--fz-s-3); }
.fz-tl-pick { flex: 1 1 320px; min-width: 0; max-width: 520px; }
.fz-tl-pick .fsw-input { width: 100%; }
.fz-tl-acts { display: flex; flex-wrap: wrap; gap: var(--fz-s-2); }
.fz-tl-meta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--fz-s-3) var(--fz-s-4); }
.fz-tl-read { margin-top: calc(var(--fz-s-1) * -1); }

/* Day ruler — one column per D+ day, steps as chips. */
.fz-tl-ruler { display: flex; flex-direction: column; gap: var(--fz-s-2); min-width: 0; }
.fz-tl-ruler-s { overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
/* Edge fade only while columns really hide on that side (OpsTlRuler sets
   the classes), so a wide ruler reads as "scroll for more", not as clipped. */
.fz-tl-ruler-s.is-more-r { -webkit-mask-image: linear-gradient(to right, var(--fz-text-1) calc(100% - 48px), transparent); mask-image: linear-gradient(to right, var(--fz-text-1) calc(100% - 48px), transparent); }
.fz-tl-ruler-s.is-more-l { -webkit-mask-image: linear-gradient(to left, var(--fz-text-1) calc(100% - 48px), transparent); mask-image: linear-gradient(to left, var(--fz-text-1) calc(100% - 48px), transparent); }
.fz-tl-ruler-s.is-more-l.is-more-r { -webkit-mask-image: linear-gradient(to right, transparent, var(--fz-text-1) 48px, var(--fz-text-1) calc(100% - 48px), transparent); mask-image: linear-gradient(to right, transparent, var(--fz-text-1) 48px, var(--fz-text-1) calc(100% - 48px), transparent); }
.fz-tl-days { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--fz-s-1); min-width: 0; }
.fz-tl-day {
  display: flex;
  flex-direction: column;
  gap: var(--fz-s-2);
  min-width: 0;
  min-height: 112px;
  padding: var(--fz-s-2);
  border-radius: var(--fz-r-sm);
  background: var(--fz-surface-2);
}
.fz-tl-day:not(.has-steps) { background: transparent; box-shadow: inset 0 0 0 1px var(--fz-border); }
.fz-tl-day-h { display: flex; flex-direction: column; gap: 1px; }
.fz-tl-day-h b { font-family: var(--fz-font-display); font-size: var(--fz-fs-body); font-weight: var(--fz-fw-semi); color: var(--fz-text-1); letter-spacing: -.01em; }
.fz-tl-day-h span { font-size: var(--fz-fs-micro); color: var(--fz-text-3); }
.fz-tl-day-b { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fz-tl-chip {
  display: block;
  min-width: 0;
  padding: var(--fz-s-1) var(--fz-s-2) var(--fz-s-1) var(--fz-s-1);
  border-radius: var(--fz-r-xs);
  background: var(--fz-neutral-soft);
  color: var(--fz-neutral-ink);
  font-size: var(--fz-fs-micro);
  font-weight: var(--fz-fw-medium);
  line-height: 1.35;
  overflow-wrap: break-word;
  hyphens: auto;
}
.fz-tl-chip i {
  display: inline-grid;
  place-items: center;
  margin-right: 4px;
  vertical-align: 1px;
  min-width: 16px;
  height: 16px;
  border-radius: var(--fz-r-xs);
  background: var(--fz-surface-1);
  font-style: normal;
  font-weight: var(--fz-fw-semi);
  font-size: var(--fz-fs-micro);
}
.fz-tl-chip.is-violet { background: var(--fz-violet-soft); color: var(--fz-violet-ink); }
.fz-tl-chip.is-info { background: var(--fz-info-soft); color: var(--fz-info-ink); }
.fz-tl-chip.is-ok { background: var(--fz-ok-soft); color: var(--fz-ok-ink); }
.fz-tl-legend { display: flex; flex-wrap: wrap; align-items: center; gap: var(--fz-s-1) var(--fz-s-4); font-size: var(--fz-fs-meta); color: var(--fz-text-3); }
.fz-tl-legend span { display: inline-flex; align-items: center; gap: 6px; }
.fz-tl-legend i { width: 8px; height: 8px; border-radius: var(--fz-r-pill); background: var(--fz-neutral); }
.fz-tl-legend i.is-violet { background: var(--fz-violet); }
.fz-tl-legend i.is-info { background: var(--fz-info); }
.fz-tl-legend i.is-ok { background: var(--fz-ok); }
.fz-tl-legend-n { margin-left: auto; }

/* Step list: one compact row per step, details on demand. */
.fz-tl-head,
.fz-tl-row {
  display: grid;
  grid-template-columns: 52px minmax(200px, 1fr) 96px 136px 112px 84px;
  grid-template-areas: "ord title owner dplus time end" "ord sum sum sum sum sum";
  align-items: center;
  gap: var(--fz-s-2) var(--fz-s-3);
}
.fz-tl-head { grid-template-areas: none; }
.fz-tl-head {
  align-items: end;
  padding: var(--fz-s-2) var(--fz-s-3) 0;
  font-size: var(--fz-fs-micro);
  font-weight: var(--fz-fw-semi);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fz-text-3);
}
.fz-tl-steps { list-style: none; margin: calc(var(--fz-s-2) * -1) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--fz-s-2); }
.fz-tl-step {
  padding: var(--fz-s-3);
  border-radius: var(--fz-r-md);
  background: var(--fz-surface-2);
  transition: box-shadow var(--fz-t-fast) var(--fz-ease);
}
.fz-tl-step.is-open { box-shadow: inset 0 0 0 1px var(--fz-border-strong); }
.fz-tl-ord { grid-area: ord; align-self: start; display: flex; align-items: center; gap: 2px; padding-top: 4px; }
.fz-tl-n {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: var(--fz-r-pill);
  background: var(--fz-surface-1);
  color: var(--fz-text-1);
  font-family: var(--fz-font-display);
  font-size: var(--fz-fs-meta);
  font-weight: var(--fz-fw-semi);
}
.fz-tl-mv { display: flex; flex-direction: column; }
.fz-tl-title { grid-area: title; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fz-tl-title .fsw-input { width: 100%; }
.fz-tl-sum { grid-area: sum; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--fz-s-2); min-width: 0; padding: 0 2px; font-size: var(--fz-fs-meta); line-height: 1.45; color: var(--fz-text-3); }
.fz-tl-sum code { flex: none; font-family: var(--fz-font-mono); font-size: var(--fz-fs-micro); color: var(--fz-text-2); }
.fz-tl-sum span { min-width: 0; }
.fz-tl-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fz-tl-f .fsw-input { width: 100%; min-width: 0; }
.fz-tl-owner { grid-area: owner; }
.fz-tl-dplus { grid-area: dplus; flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: var(--fz-s-2); }
.fz-tl-dplus .fsw-input { width: 64px; flex: none; }
.fz-tl-dplus .fz-tl-fl { flex-basis: 100%; }
.fz-tl-time { grid-area: time; }
.fz-tl-fl { display: none; font-size: var(--fz-fs-micro); font-weight: var(--fz-fw-semi); color: var(--fz-text-3); text-transform: uppercase; letter-spacing: .05em; }
.fz-tl-date { font-size: var(--fz-fs-micro); color: var(--fz-text-3); white-space: nowrap; }
.fz-tl-end { grid-area: end; display: flex; justify-content: flex-end; gap: var(--fz-s-1); }
.fz-tl-ib {
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: var(--fz-r-pill);
  background: transparent;
  color: var(--fz-text-2);
  font: inherit;
  font-size: var(--fz-fs-body);
  cursor: pointer;
  transition: background-color var(--fz-t-fast) var(--fz-ease), color var(--fz-t-fast) var(--fz-ease);
}
.fz-tl-ib:hover:not(:disabled) { background: var(--fz-surface-hover); color: var(--fz-text-1); }
[data-theme="dark"] .fz-tl-ib:hover:not(:disabled) { background: var(--fz-surface-3); }
.fz-tl-ib:disabled { opacity: .35; cursor: default; }
.fz-tl-ib.is-xs { width: 24px; height: 18px; border-radius: var(--fz-r-xs); font-size: var(--fz-fs-meta); line-height: 1; }
.fz-tl-ib.is-danger:hover { background: var(--fz-crit-soft); color: var(--fz-crit-ink); }
.fz-tl-tog .fsw-ic { transition: transform var(--fz-t-fast) var(--fz-ease); }
.fz-tl-tog.is-on { background: var(--fz-surface-1); color: var(--fz-text-1); }
.fz-tl-tog.is-on .fsw-ic { transform: rotate(180deg); }
.fz-tl-more {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--fz-s-3);
  margin: var(--fz-s-3) 0 0 calc(52px + var(--fz-s-3));
  padding-top: var(--fz-s-3);
  border-top: 1px solid var(--fz-border);
}
.fz-tl-more .fsw-field { margin: 0; min-width: 0; }
.fz-tl-more .fsw-input { width: 100%; }
.fz-tl-add { display: flex; }

/* The step list answers to its own width (nav column / sidebar / phone),
   not the viewport: below ~760px of panel width the row folds in two. */
.fz-tl > .fz-panel-b { container-type: inline-size; }
@container (max-width: 760px) {
  .fz-tl-head { display: none; }
  .fz-tl-fl { display: block; }
  .fz-tl-row {
    grid-template-columns: 36px repeat(3, minmax(0, 1fr)) 40px 40px;
    grid-template-areas: "ord title title title end end" "ord owner dplus time time time" "ord sum sum sum sum sum";
    align-items: start;
    gap: var(--fz-s-2) var(--fz-s-2);
  }
  .fz-tl-ord { align-self: start; flex-direction: column; align-items: center; }
  .fz-tl-mv { flex-direction: row; }
  .fz-tl-ib.is-xs { width: 18px; height: 24px; }
  .fz-tl-more { margin-left: 0; }
  .fz-tl-meta { grid-template-columns: minmax(0, 1fr); }
  .fz-tl-dplus .fsw-input { width: 100%; flex: 1 1 56px; }
}
@container (max-width: 520px) {
  .fz-tl-row {
    grid-template-columns: 36px minmax(72px, .9fr) minmax(64px, .8fr) minmax(0, 1.2fr);
    grid-template-areas: "ord title title title" "ord owner dplus time" "ord sum sum end";
  }
  .fz-tl-mv { flex-direction: column; gap: 2px; }
  .fz-tl-ib.is-xs { width: 32px; height: 36px; }
  .fz-tl-end { align-self: start; }
  .fz-tl-sum { align-self: center; }
}
/* Phones (QA r3): three fields in one row left TIME ~95px, and the native
   clock icon cut "17.00" to "17". Owner | D+ stay paired; TIME gets the
   next row at the same half width, with the row's ⌄ / delete beside it
   (aligned to the input, not the label); the summary spans underneath. */
@container (max-width: 400px) {
  .fz-tl-row {
    grid-template-columns: 36px repeat(2, minmax(0, 1fr));
    grid-template-areas: "ord title title" "ord owner dplus" "ord time end" "ord sum sum";
  }
  .fz-tl-end { align-self: end; }
  .fz-tl-sum { align-self: start; }
}
@media (max-width: 768px) {
  .fz-tl-ib { width: 40px; height: 40px; }
  .fz-tl-ord { gap: var(--fz-s-1); }
  .fz-tl-mv { flex-direction: column; gap: 2px; }
  .fz-tl-ib.is-xs { width: 32px; height: 36px; }
  .fz-tl-legend-n { margin-left: 0; }
}
@media (max-width: 640px) {
  .fz-p-settings .fz-tl-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--fz-s-2); }
  .fz-p-settings .fz-tl-kpis .fz-metric { padding: var(--fz-s-3); }
}


/* ═══ 4. SETTINGS — KPI matrix ════════════════════════════════════════ */
/* 14 Nov 2026 — aturan .fz-set-pod* (kartu tab Pod) dihapus: pod lama diganti
   sistem POD baru (ops-plan.jsx). */
.fz-kpi { display: flex; flex-direction: column; min-width: 0; }
.fz-kpi-r {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) repeat(3, minmax(72px, .6fr)) minmax(120px, 1fr);
  align-items: center;
  gap: var(--fz-s-3);
  padding: var(--fz-s-3) 0;
  border-top: 1px solid var(--fz-border);
}
.fz-kpi-r.is-head {
  border-top: 0;
  padding-top: 0;
  font-size: var(--fz-fs-micro);
  font-weight: var(--fz-fw-semi);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fz-text-3);
}
.fz-kpi-r .is-num { text-align: right; }
.fz-kpi-role { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.fz-kpi-ppl { display: flex; align-items: center; gap: var(--fz-s-2); font-size: var(--fz-fs-meta); color: var(--fz-text-3); }
.fz-kpi-c { min-width: 0; font-variant-numeric: tabular-nums; font-size: var(--fz-fs-body); color: var(--fz-text-1); }
.fz-kpi-c .fsw-input { width: 100%; }
.fz-kpi-c.is-num .fsw-input { text-align: right; }
@media (max-width: 760px) {
  .fz-kpi-r.is-head { display: none; }
  .fz-kpi-r { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--fz-s-2); }
  .fz-kpi-role { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .fz-kpi-c { display: flex; flex-direction: column; gap: 4px; }
  .fz-kpi-c::before { content: attr(data-l); font-size: var(--fz-fs-micro); font-weight: var(--fz-fw-semi); text-transform: uppercase; letter-spacing: .05em; color: var(--fz-text-3); text-align: left; }
  .fz-kpi-c:last-child { grid-column: 1 / -1; }
  .fz-kpi-r .is-num { text-align: left; }
}


/* ═══ 5. ROLE PILL, PERSON STATUS (shared by Users + Settings) ════════════ */
/* Role, access and capacity pills are the kit's OpsStatusPill (neutral, sm —
   QA r3) via OpsUsrPill; only "No OS role" carries a hue (warn). The chip
   below is just the fallback for a missing kit. */
.fz-usr-st { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fz-fs-meta); font-weight: var(--fz-fw-medium); color: var(--fz-text-3); white-space: nowrap; }
.fz-usr-st i { width: 8px; height: 8px; border-radius: var(--fz-r-pill); background: var(--fz-neutral); flex: none; }
.fz-usr-st.is-on { color: var(--fz-ok-ink); }
.fz-usr-st.is-on i { background: var(--fz-ok); }
.fz-usr-chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  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);
  white-space: nowrap;
}
.fz-usr-chip.is-warn { background: var(--fz-warn-soft); color: var(--fz-warn-ink); }
.fz-usr-you {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 var(--fz-s-2);
  border-radius: var(--fz-r-pill);
  background: var(--fz-accent-soft);
  color: var(--fz-accent-ink);
  font-size: var(--fz-fs-micro);
  font-weight: var(--fz-fw-semi);
}
.fz-usr-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* ═══ 6. MY ACCOUNT (Settings → My account) ═══════════════════════════════ */
.fz-acc { display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); gap: var(--fz-gap); align-items: start; }
.fz-acc-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--fz-s-4);
  padding: var(--fz-s-7) var(--fz-s-6) var(--fz-s-5);
  border-radius: var(--fz-r-xl);
  background: var(--fz-surface-1);
  box-shadow: var(--fz-shadow-soft);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
[data-theme="dark"] .fz-acc-hero { box-shadow: none; }
.fz-acc-hero::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 84px;
  background: var(--fz-surface-2);
  z-index: -1;
}
[data-theme="dark"] .fz-acc-hero::before { background: var(--fz-surface-3); }
.fz-acc-photo { padding: var(--fz-s-1); border-radius: var(--fz-r-pill); background: var(--fz-surface-1); }
.fz-acc-who { display: flex; flex-direction: column; align-items: center; gap: var(--fz-s-2); min-width: 0; }
.fz-p-settings .fz-acc-name {
  margin: 0;
  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);
  overflow-wrap: anywhere;
}
.fz-acc-tags { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--fz-s-2); }
.fz-acc-dept { font-size: var(--fz-fs-meta); color: var(--fz-text-3); }
.fz-acc-facts { width: 100%; margin: 0; padding: 0; text-align: left; }
.fz-acc-facts > div { display: flex; align-items: baseline; justify-content: space-between; gap: var(--fz-s-3); padding: var(--fz-s-3) 0; border-top: 1px solid var(--fz-border); }
.fz-acc-facts dt { font-size: var(--fz-fs-meta); color: var(--fz-text-3); }
.fz-acc-facts dd { margin: 0; font-size: var(--fz-fs-body); font-weight: var(--fz-fw-medium); color: var(--fz-text-1); text-align: right; min-width: 0; overflow-wrap: anywhere; }
.fz-acc-facts code { font-family: var(--fz-font-mono); font-size: var(--fz-fs-meta); background: none; color: var(--fz-text-1); }
.fz-p-settings .fz-acc-hint { margin: 0; font-size: var(--fz-fs-meta); color: var(--fz-text-3); line-height: 1.5; }
.fz-acc-pw { display: flex; flex-direction: column; gap: var(--fz-s-4); max-width: 520px; }
.fz-acc-pw > label.fsw-field { margin: 0; }
/* Same input width on all three rows: Hide | Random sit in fixed columns. */
.fz-acc-pw .fsw-passwrap { display: grid; grid-template-columns: minmax(0, 1fr) 64px 92px; align-items: center; }
.fz-acc-pw .fsw-passwrap .fsw-passtog { justify-content: center; }
.fz-acc-pw .fsw-note.is-crit { background: var(--fz-crit-soft); border-color: transparent; color: var(--fz-crit-ink); border-radius: var(--fz-r-sm); }
.fz-acc-act { display: flex; justify-content: flex-start; padding-top: var(--fz-s-2); }
@media (max-width: 1100px) { .fz-acc { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .fz-acc-pw { max-width: none; }
  .fz-acc-act .xcs-btn-primary { width: 100%; justify-content: center; }
}

/* Password field (OpsPassField — used by the account panel and the users modals). */
.fsw-passwrap { gap: var(--fz-s-1); }
.fsw-passwrap .fsw-passtog {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  padding: 0 var(--fz-s-3);
  border-radius: var(--fz-r-pill);
  color: var(--fz-accent-ink);
  font-size: var(--fz-fs-meta);
  font-weight: var(--fz-fw-semi);
  transition: background-color var(--fz-t-fast) var(--fz-ease);
}
.fsw-passwrap .fsw-passtog:hover { background: var(--fz-surface-hover); }
.fsw-passwrap .fsw-passtog.is-alt { color: var(--fz-text-2); }
.fsw-passwrap .fsw-passtog.is-alt:hover { color: var(--fz-text-1); }
/* Phones (QA r3): beside Hide + Random, "New password" shrank to about half
   the width of the other password inputs. Every input now spans the full
   row: Hide sits inside the field at its right end (same grid cell, the
   input keeps room for it), Random moves to its own line under the input.
   Applies to My account, the Change-password modal and both users modals. */
@media (max-width: 640px) {
  .fsw-passwrap,
  .fz-acc-pw .fsw-passwrap { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; row-gap: var(--fz-s-1); }
  .fsw-passwrap > .fsw-input { grid-area: 1 / 1; width: 100%; min-width: 0; padding-right: 76px; }
  .fsw-passwrap > .fsw-passtog:not(.is-alt) { grid-area: 1 / 1; justify-self: end; margin-right: var(--fz-s-1); min-width: 64px; min-height: 36px; justify-content: center; }
  .fsw-passwrap > .fsw-passtog.is-alt { grid-area: 2 / 1; justify-self: start; min-height: 40px; }
}


/* ═══ 7. MANAGE USERS ═════════════════════════════════════════════════════ */
.fz-p-users .fz-usr-sum { padding: var(--fz-s-6); }
.fz-usr-hero {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(0, 1.5fr);
  align-items: center;
  gap: var(--fz-s-7);
  min-width: 0;
}
.fz-usr-hero-l { display: flex; flex-direction: column; align-items: flex-start; gap: var(--fz-s-3); min-width: 0; }
.fz-usr-hero-k { font-size: var(--fz-fs-meta); font-weight: var(--fz-fw-medium); color: var(--fz-text-3); }
.fz-usr-hero-n { display: flex; align-items: baseline; gap: var(--fz-s-2); }
.fz-usr-hero-n b {
  font-family: var(--fz-font-display);
  font-size: var(--fz-fs-num-xl);
  font-weight: var(--fz-fw-bold);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--fz-text-1);
}
.fz-usr-hero-n span { font-size: var(--fz-fs-body); color: var(--fz-text-3); }
.fz-usr-hero-pills { display: flex; flex-wrap: wrap; gap: var(--fz-s-2); }
.fz-usr-hero-r { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fz-usr-rbar {
  appearance: none;
  display: grid;
  grid-template-columns: 150px 92px minmax(0, 1fr) 32px;
  align-items: center;
  gap: var(--fz-s-3);
  width: 100%;
  min-height: 40px;
  padding: var(--fz-s-1) var(--fz-s-3);
  border: 0;
  border-radius: var(--fz-r-sm);
  background: transparent;
  color: var(--fz-text-1);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--fz-t-fast) var(--fz-ease);
}
.fz-usr-rbar:hover { background: var(--fz-surface-hover); }
.fz-usr-rbar.is-on { background: var(--fz-accent-soft); box-shadow: inset 0 0 0 1px var(--fz-accent-line); }
.fz-usr-rbar-l { font-size: var(--fz-fs-body); font-weight: var(--fz-fw-medium); color: var(--fz-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fz-usr-rbar.is-on .fz-usr-rbar-l { color: var(--fz-accent-ink); font-weight: var(--fz-fw-semi); }
.fz-usr-rbar.is-warn .fz-usr-rbar-l { color: var(--fz-warn-ink); }
/* Counts, not progress (QA r3): the fills are neutral (OpsProgress tone
   neutral); while another role filters the list, the other labels step back. */
.fz-usr-rbar.is-dim:not(.is-warn) .fz-usr-rbar-l { color: var(--fz-text-3); }
.fz-usr-rbar-av { display: flex; align-items: center; min-height: 20px; min-width: 0; }
.fz-usr-rbar-t { min-width: 0; }
.fz-usr-rbar-t .fz-prog { gap: 0; }
.fz-usr-rbar-n {
  font-family: var(--fz-font-display);
  font-size: var(--fz-fs-card);
  font-weight: var(--fz-fw-semi);
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--fz-text-1);
}

/* List panel + toolbar. */
.fz-usr-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--fz-s-2); }
.fz-usr-tools .fz-search { flex: 0 1 340px; min-width: 200px; }

/* Cards. */
.fz-usr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--fz-s-3); }
.fz-usr-card {
  display: flex;
  flex-direction: column;
  gap: var(--fz-s-3);
  min-width: 0;
  padding: var(--fz-s-4);
  border-radius: var(--fz-r-md);
  background: var(--fz-surface-2);
  box-shadow: inset 0 0 0 1px var(--fz-border);
  cursor: pointer;
  --fz-avstack-ring: var(--fz-surface-2);
  transition: background-color var(--fz-t-fast) var(--fz-ease), box-shadow var(--fz-t-fast) var(--fz-ease);
}
[data-theme="dark"] .fz-usr-card { box-shadow: none; }
.fz-usr-card:hover { box-shadow: inset 0 0 0 1px var(--fz-border-strong), var(--fz-shadow-soft); }
[data-theme="dark"] .fz-usr-card:hover { background: var(--fz-surface-hover); box-shadow: inset 0 0 0 1px var(--fz-border-strong); }
.fz-usr-card:focus-visible { outline: 2px solid var(--fz-focus); outline-offset: 2px; }
.fz-usr-card.is-busy { opacity: .6; pointer-events: none; }
.fz-usr-card-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--fz-s-3); }
.fz-usr-card-id { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.fz-usr-card-n {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  font-size: var(--fz-fs-card);
  font-weight: var(--fz-fw-semi);
  line-height: 1.25;
  color: var(--fz-text-1);
  min-width: 0;
}
.fz-usr-card-n > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fz-usr-card.is-off .fz-usr-card-n { color: var(--fz-text-2); }
.fz-usr-card-m { max-width: 100%; font-size: var(--fz-fs-meta); color: var(--fz-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fz-usr-card-m code, .fz-usr-dmeta code, .fz-usr-table code { font-family: var(--fz-font-mono); font-size: var(--fz-fs-meta); background: none; padding: 0; color: var(--fz-text-2); }
.fz-usr-card-go { display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--fz-r-pill); color: var(--fz-text-3); transition: background-color var(--fz-t-fast) var(--fz-ease), color var(--fz-t-fast) var(--fz-ease); }
.fz-usr-card:hover .fz-usr-card-go { background: var(--fz-surface-1); color: var(--fz-text-1); }
.fz-usr-card-f { display: flex; flex-wrap: wrap; align-items: center; gap: var(--fz-s-2); padding-top: var(--fz-s-3); border-top: 1px solid var(--fz-border); min-width: 0; }
.fz-usr-mgr { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; min-width: 0; max-width: 50%; font-size: var(--fz-fs-meta); color: var(--fz-text-2); }
.fz-usr-mgr > span:last-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* One camera badge per row on a list page is noise (QA r3): in the Cards and
   Table lists it appears on hover of the card/row or keyboard focus of the
   avatar (the kit's .is-tiny reveal). The drawer + My account keep it always
   on. Touch screens have no hover to reveal it, so there it stays visible —
   the avatar is a photo button inside a tappable card and must say so. */
@media (hover: hover) {
  .fz-usr-grid .fz-avup .fz-avup-badge,
  .fz-usr-table .fz-avup .fz-avup-badge { opacity: 0; }
  .fz-usr-grid .fz-usr-card:hover .fz-avup-badge,
  .fz-usr-grid .fz-avup-btn:focus-visible .fz-avup-badge,
  .fz-usr-table tr:hover .fz-avup-badge,
  .fz-usr-table .fz-avup-btn:focus-visible .fz-avup-badge { opacity: 1; }
}

/* Table view. */
.fz-usr-cell { display: flex; align-items: center; gap: var(--fz-s-3); min-width: 190px; }
.fz-usr-cell-t { display: flex; flex-direction: column; min-width: 0; }
.fz-usr-cell-t b { font-size: var(--fz-fs-body); font-weight: var(--fz-fw-semi); color: var(--fz-text-1); white-space: nowrap; }
.fz-usr-cell-t span { font-size: var(--fz-fs-meta); color: var(--fz-text-3); white-space: nowrap; }
.fz-usr-table tr.is-busy td { opacity: .5; }
.fz-usr-table .fsw-input.is-sm { min-width: 140px; }
.fz-usr-table .fsw-input.is-sm.is-num { min-width: 0; width: 76px; }
.fz-usr-more {
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--fz-border-strong);
  border-radius: var(--fz-r-pill);
  background: transparent;
  color: var(--fz-text-2);
  cursor: pointer;
  transition: background-color var(--fz-t-fast) var(--fz-ease), color var(--fz-t-fast) var(--fz-ease);
}
.fz-usr-more:hover { background: var(--fz-surface-hover); color: var(--fz-text-1); }
/* Phones: the Password pill beside it is 44px tall — same touch floor here (QA r3). */
@media (max-width: 768px) {
  .fz-p-users .fz-usr-more { width: 44px; height: 44px; }
}

/* Account drawer. */
.fz-usr-dr { gap: var(--fz-s-5); }
/* Save error at the top of the drawer: icon stays beside the text (the legacy
   row wraps it onto its own line on a phone). */
.fz-usr-dr > .fsw-err { margin: 0; flex-wrap: nowrap; align-items: flex-start; border-radius: var(--fz-r-sm); line-height: 1.45; }
.fz-usr-dr > .fsw-err > svg { flex: none; margin-top: 2px; }
.fz-usr-dhero {
  display: flex;
  align-items: center;
  gap: var(--fz-s-4);
  padding: var(--fz-s-4);
  border-radius: var(--fz-r-md);
  background: var(--fz-surface-2);
  min-width: 0;
}
.fz-usr-dwho { display: flex; flex-direction: column; align-items: flex-start; gap: var(--fz-s-2); min-width: 0; }
.fz-usr-dmeta { font-size: var(--fz-fs-meta); color: var(--fz-text-3); overflow-wrap: anywhere; }
.fz-usr-dtags { display: flex; flex-wrap: wrap; align-items: center; gap: var(--fz-s-2); }
.fz-usr-drawer p.fz-usr-dnote, .fz-usr-dnote { margin: 0; font-size: var(--fz-fs-meta); color: var(--fz-text-3); }
.fz-usr-dsec { display: flex; flex-direction: column; gap: var(--fz-s-3); }
.fz-usr-drawer h3.fz-usr-dh {
  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);
}
.fz-usr-dgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--fz-s-3) var(--fz-s-4); }
.fz-usr-dgrid .fsw-field { margin: 0; min-width: 0; }
.fz-usr-dgrid .fsw-input { width: 100%; }
.fz-usr-dactive { display: flex; flex-direction: column; gap: 6px; }
.fz-usr-drawer .fz-usr-switch { min-height: 40px; display: flex; align-items: center; gap: var(--fz-s-2); font-size: var(--fz-fs-body); font-weight: var(--fz-fw-medium); letter-spacing: 0; color: var(--fz-text-1); }
.fz-usr-dacts { display: flex; flex-wrap: wrap; gap: var(--fz-s-2); }
.fz-usr-dsec.is-danger { flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--fz-s-3); padding-top: var(--fz-s-4); border-top: 1px solid var(--fz-border); }

@media (max-width: 1100px) {
  .fz-usr-hero { grid-template-columns: minmax(0, 1fr); gap: var(--fz-s-5); }
}
@media (max-width: 640px) {
  .fz-p-users .fz-usr-sum { padding: var(--fz-card-pad); }
  .fz-usr-rbar { grid-template-columns: minmax(0, 1fr) minmax(64px, 34%) 28px; gap: var(--fz-s-2); min-height: 44px; padding: var(--fz-s-1) var(--fz-s-2); }
  .fz-usr-rbar-av { display: none; }
  .fz-usr-tools .fz-search { flex: 1 1 100%; min-width: 0; }
  .fz-usr-grid { grid-template-columns: minmax(0, 1fr); }
  .fz-usr-dgrid { grid-template-columns: minmax(0, 1fr); }
  .fz-usr-dhero { flex-direction: column; text-align: center; }
  .fz-usr-dwho { align-items: center; }
  .fz-usr-dtags { justify-content: center; }
  .fz-usr-dacts .xcs-btn-ghost { flex: 1 1 100%; justify-content: center; }
}


/* ═══ 8. WHITE BOARD (chrome only — the canvas mechanics are untouched) ═══
   ops-theme.css:918+ draws the legacy look at (0,1,0); nova-ui.css forces the
   board title font with !important, matched below. Canvas rule kept: nothing
   inside .fsw-bd-canvas may start receiving pointer events. */
.fz-p-board .fz-bd-who {
  appearance: none;
  display: flex;
  align-items: center;
  gap: var(--fz-s-4);
  width: 100%;
  padding: var(--fz-s-4) var(--fz-s-5);
  border: 0;
  border-radius: var(--fz-r-xl);
  background: var(--fz-surface-1);
  color: var(--fz-text-1);
  box-shadow: var(--fz-shadow-soft);
  text-align: left;
  cursor: pointer;
  transition: background-color var(--fz-t-fast) var(--fz-ease);
}
[data-theme="dark"] .fz-p-board .fz-bd-who { box-shadow: none; }
.fz-p-board .fz-bd-who:hover { transform: none; background: var(--fz-surface-hover); box-shadow: var(--fz-shadow-soft); }
[data-theme="dark"] .fz-p-board .fz-bd-who:hover { box-shadow: none; }
.fz-p-board .fz-bd-who:focus-visible { outline: 2px solid var(--fz-focus); outline-offset: 2px; }
.fz-bd-who-av { display: inline-flex; flex: none; }
.fz-bd-who-gen {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--fz-r-sm);
  background: var(--fz-surface-3);
  color: var(--fz-text-1);
}
.fz-p-board .fz-bd-who .fsw-bd-batchbtn-l { flex: 1 1 auto; gap: 2px; }
.fz-p-board .fz-bd-who .fsw-bd-batchbtn-k {
  opacity: 1;
  font-size: var(--fz-fs-micro);
  font-weight: var(--fz-fw-semi);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fz-text-3);
}
.fz-p-board .fz-bd-who .fsw-bd-batchbtn-v {
  font-family: var(--fz-font-display) !important;
  font-size: var(--fz-fs-num-sm);
  font-weight: var(--fz-fw-semi);
  letter-spacing: -.02em;
  line-height: 1.15;
  color: var(--fz-text-1);
}
.fz-p-board .fz-bd-who .fsw-bd-batchbtn-s { opacity: 1; font-size: var(--fz-fs-meta); color: var(--fz-text-3); }
.fz-p-board .fz-bd-who .fsw-bd-batchbtn-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--fz-s-2);
  min-height: 40px;
  padding: 0 var(--fz-s-4);
  border-radius: var(--fz-r-pill);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--fz-border-strong);
  color: var(--fz-text-1);
  font-size: var(--fz-fs-body);
  font-weight: var(--fz-fw-semi);
  transition: background-color var(--fz-t-fast) var(--fz-ease);
}
.fz-p-board .fz-bd-who:hover .fsw-bd-batchbtn-cta { background: var(--fz-surface-1); }

/* Board strip: one chip per board, client face + name + item count. */
.fz-p-board .fz-bd-lanes {
  gap: var(--fz-s-2);
  padding: 2px 40px var(--fz-s-1) 2px;
  scrollbar-width: thin;
  -webkit-mask-image: linear-gradient(to right, var(--fz-text-1) calc(100% - 48px), transparent);
  mask-image: linear-gradient(to right, var(--fz-text-1) calc(100% - 48px), transparent);
}
.fz-p-board .fz-bd-lanes .fsw-bd-lane {
  flex: none;
  min-height: 36px;
  padding: 0 var(--fz-s-3) 0 var(--fz-s-2);
  gap: var(--fz-s-2);
  border: 1px solid var(--fz-border);
  border-radius: var(--fz-r-pill);
  background: var(--fz-surface-1);
  color: var(--fz-text-2);
  font-size: var(--fz-fs-meta);
  font-weight: var(--fz-fw-medium);
  transition: background-color var(--fz-t-fast) var(--fz-ease), border-color var(--fz-t-fast) var(--fz-ease);
}
.fz-p-board .fz-bd-lanes .fsw-bd-lane:hover { border-color: var(--fz-border-strong); background: var(--fz-surface-hover); color: var(--fz-text-1); }
.fz-p-board .fz-bd-lanes .fsw-bd-lane.is-on {
  background: var(--fz-accent-soft);
  border-color: var(--fz-accent-line);
  color: var(--fz-accent-ink);
  font-weight: var(--fz-fw-semi);
}
.fz-bd-lane-ico { display: grid; place-items: center; width: 20px; height: 20px; border-radius: var(--fz-r-xs); background: var(--fz-surface-3); color: var(--fz-text-2); }
.fz-p-board .fsw-bd-n {
  min-width: 18px;
  height: 18px;
  padding: 0 var(--fz-s-1);
  background: var(--fz-surface-3);
  color: var(--fz-text-2);
  font-size: var(--fz-fs-micro);
  font-weight: var(--fz-fw-semi);
}
.fz-p-board .fsw-bd-lane.is-on .fsw-bd-n { background: var(--fz-accent); color: var(--fz-text-on-accent); }

/* Stage: tool bar + canvas in one module. */
.fz-bd-stage {
  display: flex;
  flex-direction: column;
  gap: var(--fz-s-3);
  min-width: 0;
  padding: var(--fz-s-3);
  border-radius: var(--fz-r-xl);
  background: var(--fz-surface-1);
  box-shadow: var(--fz-shadow-soft);
}
[data-theme="dark"] .fz-bd-stage { box-shadow: none; }
.fz-p-board .fsw-bd-bar { gap: var(--fz-s-2); align-items: center; }
.fz-p-board .fsw-bd-tools {
  gap: 2px;
  padding: var(--fz-s-1);
  border: 0;
  border-radius: var(--fz-r-pill);
  background: var(--fz-surface-2);
}
[data-theme="dark"] .fz-p-board .fsw-bd-tools { background: var(--fz-surface-sunken); }
.fz-p-board .fsw-bd-tool { width: 36px; height: 36px; color: var(--fz-text-2); transition: background-color var(--fz-t-fast) var(--fz-ease), color var(--fz-t-fast) var(--fz-ease); }
.fz-p-board .fsw-bd-tool:hover { background: var(--fz-surface-1); color: var(--fz-text-1); }
[data-theme="dark"] .fz-p-board .fsw-bd-tool:hover { background: var(--fz-surface-3); }
.fz-p-board .fsw-bd-tool.is-on { background: var(--fz-accent); color: var(--fz-text-on-accent); }
.fz-p-board .fsw-bd-ink { width: 36px; height: 36px; border-width: 7px; }
.fz-p-board .fsw-bd-ink.is-on { border-width: 5px; box-shadow: inset 0 0 0 2px var(--fz-text-1); }
.fz-p-board .fsw-bd-size { width: 36px; height: 36px; }
.fz-p-board .fsw-bd-size span { background: var(--fz-text-3); }
.fz-p-board .fsw-bd-size.is-on { background: var(--fz-surface-1); }
[data-theme="dark"] .fz-p-board .fsw-bd-size.is-on { background: var(--fz-surface-3); }
.fz-p-board .fsw-bd-size.is-on span { background: var(--fz-text-1); }
.fz-p-board .fsw-bd-sep { background: var(--fz-border-strong); }
.fz-p-board .fsw-bd-zoom { color: var(--fz-text-2); font-size: var(--fz-fs-meta); }
.fz-bd-count { margin-left: auto; padding-right: var(--fz-s-2); font-size: var(--fz-fs-meta); color: var(--fz-text-3); white-space: nowrap; }

.fz-p-board .fsw-bd-canvas {
  border: 0;
  border-radius: var(--fz-r-md);
  background: var(--fz-surface-sunken);
  box-shadow: inset 0 0 0 1px var(--fz-border);
}
.fz-p-board .fsw-bd-grid { background-image: radial-gradient(var(--fz-border-strong) 1px, transparent 1px); opacity: .8; }
.fz-p-board .fsw-bd-item.is-sel { outline-color: var(--fz-focus); }
.fz-p-board .fsw-bd-item.is-edit { outline: 2px solid var(--fz-focus); }
.fz-p-board .fsw-bd-item.is-img img { background: var(--fz-surface-2); }
.fz-p-board .fsw-bd-grip { background: var(--fz-accent); border-color: var(--fz-surface-1); }
.fz-p-board .fsw-bd-selbar {
  gap: var(--fz-s-1);
  padding: var(--fz-s-1) var(--fz-s-2);
  border: 1px solid var(--fz-border);
  background: var(--fz-surface-1);
  box-shadow: var(--fz-shadow-pop);
}
.fz-p-board .fsw-bd-swatch { width: 22px; height: 22px; border-color: var(--fz-border-strong); }
.fz-p-board .fsw-bd-veil { background: var(--fz-surface-sunken); opacity: .92; }
.fz-p-board .fsw-bd-toast { background: var(--fz-surface-1); color: var(--fz-text-1); box-shadow: var(--fz-shadow-pop); font-size: var(--fz-fs-meta); }
.fz-p-board .fsw-bd-toast.is-soft { background: var(--fz-accent); color: var(--fz-text-on-accent); }
.fz-p-board .fsw-bd-empty { gap: var(--fz-s-2); color: var(--fz-text-3); }
.fz-bd-empty-ico {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--fz-s-1);
  border-radius: var(--fz-r-pill);
  background: var(--fz-surface-1);
  box-shadow: inset 0 0 0 1px var(--fz-border);
  color: var(--fz-text-2);
}
.fz-p-board .fsw-bd-empty b { color: var(--fz-text-1); font-family: var(--fz-font-display); font-size: var(--fz-fs-card); font-weight: var(--fz-fw-semi); }
.fz-p-board .fsw-bd-empty span { font-size: var(--fz-fs-meta); color: var(--fz-text-3); }
.fz-p-board .fsw-bd-empty span b { font-family: inherit; font-size: inherit; color: var(--fz-text-1); }
.fz-p-board .fsw-bd-empty kbd { background: var(--fz-surface-1); border-color: var(--fz-border-strong); color: var(--fz-text-1); font-family: var(--fz-font-mono); }

/* Board picker (OpsModal renders inline inside the page root). */
.fz-p-board .fsw-modal .fz-search { width: 100%; max-width: none; flex: 1 1 auto; }
.fz-p-board .fz-bd-picklist { gap: 2px; max-height: min(56vh, 520px); overflow-y: auto; margin: 0 calc(var(--fz-s-2) * -1); padding: 0 var(--fz-s-2); }
.fz-p-board .fz-bd-picklist .fsw-bd-pick {
  gap: var(--fz-s-3);
  min-height: 52px;
  padding: var(--fz-s-2) var(--fz-s-3);
  border: 0;
  border-radius: var(--fz-r-sm);
  background: transparent;
  color: var(--fz-text-1);
  transition: background-color var(--fz-t-fast) var(--fz-ease);
}
.fz-p-board .fz-bd-picklist .fsw-bd-pick:hover { background: var(--fz-surface-hover); }
.fz-p-board .fz-bd-picklist .fsw-bd-pick.is-on { background: var(--fz-accent-soft); color: var(--fz-accent-ink); box-shadow: inset 0 0 0 1px var(--fz-accent-line); }
.fz-bd-pick-ico { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: var(--fz-r-xs); background: var(--fz-surface-3); color: var(--fz-text-1); }
.fz-bd-pick-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.fz-p-board .fz-bd-picklist .fsw-bd-pick-n { flex: none; font-size: var(--fz-fs-body); font-weight: var(--fz-fw-semi); color: var(--fz-text-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fz-p-board .fz-bd-picklist .fsw-bd-pick-m { font-size: var(--fz-fs-meta); color: var(--fz-text-3); }
.fz-p-board .fz-bd-picklist .fsw-bd-pick.is-on .fsw-bd-pick-m { color: var(--fz-accent-ink); }
.fz-bd-none { padding: var(--fz-s-4); color: var(--fz-text-3); font-size: var(--fz-fs-meta); text-align: center; }

@media (max-width: 768px) {
  .fz-p-board .fz-bd-who { flex-direction: row; flex-wrap: wrap; align-items: center; padding: var(--fz-s-4); gap: var(--fz-s-3); }
  .fz-p-board .fz-bd-who .fsw-bd-batchbtn-l { flex: 1 1 0; min-width: 0; }
  .fz-p-board .fz-bd-who .fsw-bd-batchbtn-cta { flex: 1 1 100%; align-self: auto; justify-content: center; min-height: 44px; }
  .fz-bd-stage { padding: var(--fz-s-2); border-radius: var(--fz-r-lg); }
  /* Every tool stays visible: the bar wraps per group (as ops-theme always
     did), and each group widens to fill its row so the rows read as one
     deliberate toolbar instead of a ragged edge. A group only wraps inside
     itself on a screen narrower than the group (never at ≥360px). */
  .fz-p-board .fsw-bd-bar { flex-wrap: wrap; gap: var(--fz-s-2); }
  .fz-p-board .fsw-bd-tools { flex: 1 0 auto; flex-wrap: wrap; justify-content: space-around; max-width: 100%; }
  .fz-bd-count { display: none; }
  /* Zoom (QA r1): − 100% + ⟳ always hug their buttons. Stretched over a row
     of its own (768) the − and + ended up 360px apart. */
  .fz-p-board .fsw-bd-tools.fz-bd-zoomg { flex: 0 0 auto; justify-content: flex-start; }
  .fz-p-board .fz-bd-lanes .fsw-bd-lane { min-height: 44px; }
}


/* ═══ 9. ASK THE SYSTEM ════════════════════════════════════════════════════ */
.fz-ask-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr); gap: var(--fz-gap); align-items: start; }
.fz-ask-grid.is-solo { grid-template-columns: minmax(0, 1fr); }
.fz-ask-grid.is-solo .fz-ask-chat { max-width: 980px; }
.fz-ask-side { display: flex; flex-direction: column; gap: var(--fz-gap); min-width: 0; position: sticky; top: var(--fz-s-4); }
.fz-ask-info {
  appearance: none;
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--fz-border-strong);
  border-radius: var(--fz-r-pill);
  background: transparent;
  color: var(--fz-text-2);
  font-family: var(--fz-font-display);
  font-size: var(--fz-fs-meta);
  font-weight: var(--fz-fw-bold);
  cursor: pointer;
}
.fz-ask-info::after { content: ''; position: absolute; inset: -8px; }
.fz-ask-info:hover { color: var(--fz-text-1); background: var(--fz-surface-hover); }
.fz-ask-info.is-on { background: var(--fz-accent-soft); border-color: var(--fz-accent-line); color: var(--fz-accent-ink); }
.fz-ask-guard {
  list-style: none;
  margin: 0;
  padding: var(--fz-s-3) var(--fz-s-4);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--fz-s-2) var(--fz-s-5);
  border-radius: var(--fz-r-sm);
  background: var(--fz-surface-2);
  font-size: var(--fz-fs-meta);
  line-height: 1.5;
  color: var(--fz-text-2);
}
.fz-ask-guard[hidden] { display: none; }
.fz-ask-guard li { display: flex; gap: var(--fz-s-2); align-items: flex-start; }
.fz-ask-guard .fsw-ic { flex: none; margin-top: 2px; color: var(--fz-text-3); }

/* Conversation log. */
.fz-ask-log {
  display: flex;
  flex-direction: column;
  gap: var(--fz-s-4);
  min-height: 320px;
  max-height: min(62vh, 640px);
  overflow-y: auto;
  padding: var(--fz-s-4);
  border-radius: var(--fz-r-md);
  background: var(--fz-surface-sunken);
  box-shadow: inset 0 0 0 1px var(--fz-border);
  overscroll-behavior: contain;
}
.fz-ask-row { display: flex; align-items: flex-end; gap: var(--fz-s-2); min-width: 0; }
.fz-ask-row.is-q { justify-content: flex-end; }
.fz-ask-row.is-a { justify-content: flex-start; align-items: flex-start; }
.fz-ask-bot {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  border-radius: var(--fz-r-pill);
  background: var(--fz-accent-soft);
  color: var(--fz-accent-ink);
}
.fz-p-ask .fsw-msg { max-width: min(82%, 640px); padding: var(--fz-s-3) var(--fz-s-4); border-radius: var(--fz-r-md); font-size: var(--fz-fs-body); line-height: 1.55; }
.fz-p-ask .fsw-msg.is-q,
[data-theme="dark"] .fz-p-ask .fsw-msg.is-q { background: var(--fz-surface-3); color: var(--fz-text-1); border-bottom-right-radius: var(--fz-r-xs); }
.fz-p-ask .fsw-msg.is-a,
[data-theme="dark"] .fz-p-ask .fsw-msg.is-a { background: var(--fz-surface-1); color: var(--fz-text-1); border: 0; box-shadow: inset 0 0 0 1px var(--fz-border); border-top-left-radius: var(--fz-r-xs); border-bottom-left-radius: var(--fz-r-md); }
.fz-p-ask .fsw-msg-meta,
.fz-p-ask .fsw-msg.is-q .fsw-msg-meta { color: var(--fz-text-3); font-size: var(--fz-fs-micro); margin-top: var(--fz-s-2); }
.fz-p-ask .fsw-msg p { margin: 0 0 var(--fz-s-2); }
.fz-p-ask .fsw-msg p:last-child { margin-bottom: 0; }
.fz-p-ask .fsw-brief-refs { gap: var(--fz-s-1); margin-top: var(--fz-s-2); }
.fz-p-ask .fsw-ref {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 var(--fz-s-2);
  border-radius: var(--fz-r-pill);
  background: var(--fz-surface-2);
  color: var(--fz-text-1);
  font-family: var(--fz-font-mono);
  font-size: var(--fz-fs-micro);
  font-weight: var(--fz-fw-medium);
  text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--fz-border);
  transition: background-color var(--fz-t-fast) var(--fz-ease), color var(--fz-t-fast) var(--fz-ease);
}
.fz-p-ask .fsw-ref:hover { background: var(--fz-accent-soft); color: var(--fz-accent-ink); text-decoration: none; box-shadow: inset 0 0 0 1px var(--fz-accent-line); }

/* Empty conversation: one calm prompt + idea cards. */
.fz-ask-start { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--fz-s-2); margin: auto 0; padding: var(--fz-s-5) 0; }
.fz-ask-start-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--fz-r-pill); background: var(--fz-accent); color: var(--fz-text-on-accent); margin-bottom: var(--fz-s-1); }
.fz-ask-start b { font-family: var(--fz-font-display); font-size: var(--fz-fs-section); font-weight: var(--fz-fw-semi); color: var(--fz-text-1); }
.fz-ask-start > span { font-size: var(--fz-fs-meta); color: var(--fz-text-3); }
.fz-ask-ideas { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--fz-s-2); width: 100%; margin-top: var(--fz-s-4); text-align: left; }
.fz-ask-idea {
  appearance: none;
  padding: var(--fz-s-3) var(--fz-s-4);
  border: 0;
  border-radius: var(--fz-r-sm);
  background: var(--fz-surface-1);
  box-shadow: inset 0 0 0 1px var(--fz-border);
  color: var(--fz-text-1);
  font: inherit;
  font-size: var(--fz-fs-meta);
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
  transition: box-shadow var(--fz-t-fast) var(--fz-ease), background-color var(--fz-t-fast) var(--fz-ease);
}
.fz-ask-idea:hover { box-shadow: inset 0 0 0 1px var(--fz-border-strong); background: var(--fz-surface-hover); }

/* Composer + idea chips. */
.fz-p-ask .fz-ask-composer {
  display: flex;
  gap: var(--fz-s-2);
  padding: var(--fz-s-1);
  border-radius: var(--fz-r-pill);
  background: var(--fz-surface-sunken);
  box-shadow: inset 0 0 0 1px var(--fz-border-strong);
}
.fz-p-ask .fz-ask-composer:focus-within { box-shadow: inset 0 0 0 1px var(--fz-focus), 0 0 0 3px var(--fz-accent-soft); }
.fz-p-ask .fz-ask-composer .fsw-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding-left: var(--fz-s-4);
  font-size: var(--fz-fs-body);
}
.fz-p-ask .fz-ask-composer .fsw-input:focus { box-shadow: none; outline: none; }
.fz-p-ask .fz-ask-composer .xcs-btn-primary { flex: none; gap: var(--fz-s-2); }
.fz-p-ask .fz-ask-chips { gap: var(--fz-s-2); }
.fz-p-ask .fz-ask-chips button {
  min-height: 32px;
  padding: 0 var(--fz-s-3);
  border: 0;
  border-radius: var(--fz-r-pill);
  background: var(--fz-surface-2);
  color: var(--fz-text-2);
  font-size: var(--fz-fs-meta);
  box-shadow: inset 0 0 0 1px var(--fz-border);
  transition: background-color var(--fz-t-fast) var(--fz-ease), color var(--fz-t-fast) var(--fz-ease);
}
.fz-p-ask .fz-ask-chips button:hover { background: var(--fz-surface-hover); color: var(--fz-text-1); border: 0; }
.fz-p-ask .fz-ask-chips .fz-ask-more { background: transparent; box-shadow: none; color: var(--fz-accent-ink); font-weight: var(--fz-fw-semi); }

/* Brief panel: numbers first, then the numbered items with a tone edge. */
.fz-p-ask .fsw-brief { gap: var(--fz-s-2); }
.fz-p-ask .fsw-brief-item,
.fz-p-ask .fsw-brief-item.is-critical,
.fz-p-ask .fsw-brief-item.is-warning,
.fz-p-ask .fsw-brief-item.is-ok {
  grid-template-columns: 24px minmax(0, 1fr);
  gap: var(--fz-s-3);
  padding: var(--fz-s-3);
  border: 0;
  border-radius: var(--fz-r-sm);
  background: var(--fz-surface-2);
  box-shadow: none;
  font-size: var(--fz-fs-meta);
  line-height: 1.5;
  color: var(--fz-text-1);
}
.fz-p-ask .fz-ask-bi.is-crit .fsw-brief-n { background: var(--fz-crit-soft); color: var(--fz-crit-ink); }
.fz-p-ask .fz-ask-bi.is-warn .fsw-brief-n { background: var(--fz-warn-soft); color: var(--fz-warn-ink); }
.fz-p-ask .fz-ask-bi.is-info .fsw-brief-n { background: var(--fz-info-soft); color: var(--fz-info-ink); }
.fz-p-ask .fz-ask-bi.is-ok .fsw-brief-n { background: var(--fz-ok-soft); color: var(--fz-ok-ink); }
.fz-p-ask .fsw-brief-n,
[data-theme="dark"] .fz-p-ask .fsw-brief-n {
  width: 24px;
  height: 24px;
  background: var(--fz-surface-1);
  color: var(--fz-text-1);
  font-family: var(--fz-font-display);
  font-size: var(--fz-fs-micro);
  font-weight: var(--fz-fw-semi);
}
.fz-ask-bi-b { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fz-ask-bi-l { font-size: var(--fz-fs-micro); font-weight: var(--fz-fw-semi); letter-spacing: .05em; text-transform: uppercase; color: var(--fz-text-3); }
.fz-ask-bi.is-crit .fz-ask-bi-l { color: var(--fz-crit-ink); }
.fz-ask-bi.is-warn .fz-ask-bi-l { color: var(--fz-warn-ink); }
.fz-ask-bi.is-info .fz-ask-bi-l { color: var(--fz-info-ink); }
.fz-ask-bi.is-ok .fz-ask-bi-l { color: var(--fz-ok-ink); }
.fz-ask-bi-t { overflow-wrap: anywhere; }

@media (max-width: 1100px) {
  .fz-ask-grid { grid-template-columns: minmax(0, 1fr); }
  .fz-ask-side { position: static; }
}
@media (max-width: 768px) {
  .fz-p-ask .fsw-ref { min-height: 32px; margin: 0; padding-top: 0; padding-bottom: 0; }
  .fz-ask-info { width: 36px; height: 36px; }
}
@media (max-width: 640px) {
  .fz-ask-log { max-height: none; min-height: 0; padding: var(--fz-s-3); }
  .fz-p-ask .fsw-msg { max-width: 88%; }
  .fz-ask-guard { grid-template-columns: minmax(0, 1fr); }
  .fz-p-ask .fz-ask-composer .xcs-btn-primary { min-height: 44px; }
  .fz-p-ask .fz-ask-chips button { min-height: 40px; }
}


/* ═══ 10. HOW-TO ═══════════════════════════════════════════════════════════ */
.fz-help-me {
  display: inline-flex;
  align-items: center;
  gap: var(--fz-s-3);
  min-width: 0;
  padding: var(--fz-s-2) var(--fz-s-2) var(--fz-s-2) var(--fz-s-2);
  border-radius: var(--fz-r-pill);
  background: var(--fz-surface-1);
  box-shadow: var(--fz-shadow-soft);
}
[data-theme="dark"] .fz-help-me { box-shadow: inset 0 0 0 1px var(--fz-border); }
.fz-help-me-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.fz-help-me-t b { font-size: var(--fz-fs-body); font-weight: var(--fz-fw-semi); color: var(--fz-text-1); white-space: nowrap; }
.fz-help-me-t span { font-size: var(--fz-fs-meta); color: var(--fz-text-3); white-space: nowrap; }
.fz-help-ver {
  margin-left: var(--fz-s-1);
  padding: 0 var(--fz-s-3);
  height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--fz-r-pill);
  background: var(--fz-surface-2);
  color: var(--fz-text-2);
  font-family: var(--fz-font-mono);
  font-size: var(--fz-fs-micro);
}
[data-theme="dark"] .fz-help-ver { background: var(--fz-surface-3); }

.fz-help-hero {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(0, 2fr);
  gap: var(--fz-s-6);
  align-items: center;
  padding: var(--fz-s-6);
  border-radius: var(--fz-r-xl);
  background: var(--fz-surface-1);
  box-shadow: var(--fz-shadow-soft);
}
[data-theme="dark"] .fz-help-hero { box-shadow: none; }
.fz-help-hero-l { display: flex; flex-direction: column; gap: var(--fz-s-2); min-width: 0; }
.fz-help-hero-k { font-size: var(--fz-fs-meta); font-weight: var(--fz-fw-medium); color: var(--fz-text-3); }
.fz-help-hero-n { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--fz-s-2); }
.fz-help-hero-n b { font-family: var(--fz-font-display); font-size: var(--fz-fs-num-xl); font-weight: var(--fz-fw-bold); line-height: 1; letter-spacing: -.03em; color: var(--fz-text-1); }
.fz-help-hero-n span { font-size: var(--fz-fs-body); color: var(--fz-text-2); }
.fz-help-hero-n strong { color: var(--fz-text-1); font-weight: var(--fz-fw-semi); }
.fz-p-help .fz-help-hero-l p { margin: 0; font-size: var(--fz-fs-meta); color: var(--fz-text-3); }
.fz-help-guard { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--fz-s-3); }
.fz-help-guard li {
  display: flex;
  flex-direction: column;
  gap: var(--fz-s-1);
  min-width: 0;
  padding: var(--fz-s-4);
  border-radius: var(--fz-r-md);
  background: var(--fz-surface-2);
}
/* Three equal guarantees → three equal neutral icon tiles (no decorative lime). */
.fz-help-guard-i { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: var(--fz-s-2); border-radius: var(--fz-r-sm); background: var(--fz-surface-1); color: var(--fz-text-1); }
[data-theme="dark"] .fz-help-guard-i { background: var(--fz-surface-3); }
.fz-help-guard b { font-size: var(--fz-fs-body); font-weight: var(--fz-fw-semi); color: var(--fz-text-1); line-height: 1.35; }
.fz-help-guard li > span:not(.fz-help-guard-i) { font-size: var(--fz-fs-meta); color: var(--fz-text-3); line-height: 1.45; }

.fz-help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--fz-gap); align-items: start; }
.fz-help-steps, .fz-help-faq { display: flex; flex-direction: column; gap: var(--fz-s-1); }
.fz-help-step,
.fz-help-faq details {
  border-radius: var(--fz-r-sm);
  background: transparent;
  transition: background-color var(--fz-t-fast) var(--fz-ease);
}
.fz-help-step[open], .fz-help-faq details[open] { background: var(--fz-surface-2); }
.fz-help-step > summary,
.fz-help-faq summary {
  display: flex;
  align-items: center;
  gap: var(--fz-s-3);
  min-height: 48px;
  padding: var(--fz-s-2) var(--fz-s-3);
  border-radius: var(--fz-r-sm);
  list-style: none;
  cursor: pointer;
  color: var(--fz-text-1);
  font-size: var(--fz-fs-body);
  font-weight: var(--fz-fw-medium);
  line-height: 1.4;
}
.fz-help-step > summary::-webkit-details-marker, .fz-help-faq summary::-webkit-details-marker { display: none; }
.fz-help-step > summary:hover, .fz-help-faq summary:hover { background: var(--fz-surface-hover); }
.fz-help-step[open] > summary:hover, .fz-help-faq details[open] summary:hover { background: transparent; }
.fz-help-n {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: var(--fz-r-xs);
  background: var(--fz-surface-2);
  color: var(--fz-text-2);
  font-family: var(--fz-font-display);
  font-size: var(--fz-fs-meta);
  font-weight: var(--fz-fw-semi);
}
[data-theme="dark"] .fz-help-n { background: var(--fz-surface-3); }
.fz-help-step[open] .fz-help-n { background: var(--fz-accent); color: var(--fz-text-on-accent); }
.fz-help-st { flex: 1 1 auto; min-width: 0; }
.fz-help-chev { display: grid; place-items: center; flex: none; color: var(--fz-text-3); transition: transform var(--fz-t-fast) var(--fz-ease); }
.fz-help-step[open] .fz-help-chev,
.fz-help-faq details[open] .fz-help-chev { transform: rotate(180deg); }
.fz-help-sb { padding: 0 var(--fz-s-4) var(--fz-s-4) calc(var(--fz-s-3) + 28px + var(--fz-s-3)); }
.fz-p-help .fz-help-sb p,
.fz-p-help .fz-help-faq p { margin: 0; font-size: var(--fz-fs-body); line-height: 1.6; color: var(--fz-text-2); max-width: 72ch; }
.fz-p-help .fz-help-faq p { padding: 0 var(--fz-s-4) var(--fz-s-4) var(--fz-s-3); }
.fz-p-help .fz-help-sb strong, .fz-p-help .fz-help-faq strong { color: var(--fz-text-1); font-weight: var(--fz-fw-semi); }
.fz-p-help .fz-help-sb em { color: var(--fz-text-1); }

@media (max-width: 1100px) {
  .fz-help-grid { grid-template-columns: minmax(0, 1fr); }
  .fz-help-hero { grid-template-columns: minmax(0, 1fr); gap: var(--fz-s-4); }
}
@media (max-width: 640px) {
  .fz-help-hero { padding: var(--fz-card-pad); }
  .fz-help-guard { grid-template-columns: minmax(0, 1fr); }
  .fz-help-guard li { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: var(--fz-s-3); }
  .fz-help-guard-i { margin-bottom: 0; }
  .fz-help-guard li b { flex: 1 1 0; }
  .fz-help-guard li > span:not(.fz-help-guard-i) { flex: 1 1 100%; }
  .fz-help-sb { padding-left: var(--fz-s-3); }
  .fz-help-me { max-width: 100%; }
}


/* ═══ 11. ASSISTANT PANEL (FAB itself untouched: position/size/z locked) ═══ */
/* QA r3: the panel's 24px bottom-right corner left a lime crescent of the FAB
   (z 40, under the panel) peeking out. Hide the FAB while the panel is open —
   visibility only, never position/size/z. Opacity (not visibility/display) so
   the focus trap can still hand focus back to it the moment the panel closes. */
:root .xcs-app .fsw-assist-fab.is-open { opacity: 0; pointer-events: none; }
.fz-asst .fsw-assist-scrim { background: var(--fz-scrim); }
.fz-asst .fsw-assist {
  right: var(--fz-s-5);
  bottom: var(--fz-s-5);
  width: min(440px, calc(100vw - 40px));
  max-height: min(680px, calc(100dvh - 40px));
  background: var(--fz-surface-1);
  color: var(--fz-text-1);
  border: 1px solid var(--fz-border);
  border-radius: var(--fz-r-xl);
  box-shadow: var(--fz-shadow-pop);
  animation: fz-asst-in var(--fz-t-med) var(--fz-ease);
}
@keyframes fz-asst-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.fz-asst .fsw-assist-h { padding: var(--fz-s-4) var(--fz-s-4) var(--fz-s-3) var(--fz-s-5); border-bottom: 1px solid var(--fz-border); }
.fz-asst .fsw-assist-id { gap: var(--fz-s-3); }
.fz-asst .fsw-assist-id .fz-asst-ico { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: var(--fz-r-pill); background: var(--fz-accent); color: var(--fz-text-on-accent); }
.fz-asst .fsw-assist-id b { font-family: var(--fz-font-display); font-size: var(--fz-fs-card); font-weight: var(--fz-fw-semi); color: var(--fz-text-1); }
.fz-asst .fsw-assist-id span { font-size: var(--fz-fs-meta); color: var(--fz-text-3); }
.fz-asst .fsw-assist-x { border: 0; border-radius: var(--fz-r-pill); color: var(--fz-text-2); background: transparent; }
.fz-asst .fsw-assist-x:hover { background: var(--fz-surface-hover); color: var(--fz-text-1); }
.fz-asst .fsw-assist-body { padding: var(--fz-s-4) var(--fz-s-5); gap: var(--fz-s-3); background: var(--fz-surface-1); }
.fz-asst .fsw-assist-intro p { margin: 0 0 var(--fz-s-3); font-size: var(--fz-fs-body); color: var(--fz-text-2); line-height: 1.5; }
.fz-asst .fsw-assist-quick { gap: var(--fz-s-2); }
.fz-asst .fsw-assist-quick button {
  display: inline-flex;
  align-items: center;
  gap: var(--fz-s-2);
  min-height: 34px;
  padding: 0 var(--fz-s-3);
  border: 0;
  border-radius: var(--fz-r-pill);
  background: var(--fz-surface-2);
  box-shadow: inset 0 0 0 1px var(--fz-border);
  color: var(--fz-text-1);
  font-size: var(--fz-fs-meta);
  font-weight: var(--fz-fw-medium);
  transition: background-color var(--fz-t-fast) var(--fz-ease), box-shadow var(--fz-t-fast) var(--fz-ease);
}
.fz-asst .fsw-assist-quick button:hover { background: var(--fz-surface-hover); box-shadow: inset 0 0 0 1px var(--fz-border-strong); color: var(--fz-text-1); }
.fz-asst .fsw-assist-quick .fz-asst-client { padding-left: 5px; }
/* Suggestion row under a conversation (QA r1): the chips WRAP onto a second
   line instead of scrolling sideways — a faded, half-cut "Late task…" read
   as clipped text. Four short chips need at most two lines at any width. */
.fz-asst .fsw-assist-quick.is-row {
  flex-wrap: wrap;
  overflow: visible;
  gap: var(--fz-s-2);
  padding: var(--fz-s-3) var(--fz-s-5) var(--fz-s-2);
  border-top: 1px solid var(--fz-border);
}
.fz-asst-row { display: flex; align-items: flex-end; gap: var(--fz-s-2); min-width: 0; }
.fz-asst-row.is-q { justify-content: flex-end; }
.fz-asst-row.is-a { align-items: flex-start; }
.fz-asst-bot { display: grid; place-items: center; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: var(--fz-r-pill); background: var(--fz-accent-soft); color: var(--fz-accent-ink); }
.fz-asst .fsw-assist-msg { max-width: 86%; padding: var(--fz-s-3); border-radius: var(--fz-r-md); font-size: var(--fz-fs-meta); line-height: 1.55; }
.fz-asst .fsw-assist-msg.is-q,
[data-theme="dark"] .fz-asst .fsw-assist-msg.is-q { background: var(--fz-surface-3); color: var(--fz-text-1); border-bottom-right-radius: var(--fz-r-xs); }
.fz-asst .fsw-assist-msg.is-a,
[data-theme="dark"] .fz-asst .fsw-assist-msg.is-a { background: var(--fz-surface-2); color: var(--fz-text-1); border: 0; border-top-left-radius: var(--fz-r-xs); }
.fz-asst .fsw-assist-refs button {
  min-height: 24px;
  padding: 0 var(--fz-s-2);
  border: 0;
  border-radius: var(--fz-r-pill);
  background: var(--fz-surface-1);
  box-shadow: inset 0 0 0 1px var(--fz-border);
  color: var(--fz-text-1);
  font-family: var(--fz-font-mono);
  font-size: var(--fz-fs-micro);
}
.fz-asst .fsw-assist-refs button:hover { background: var(--fz-accent-soft); color: var(--fz-accent-ink); box-shadow: inset 0 0 0 1px var(--fz-accent-line); }
.fz-asst .fsw-assist-note { color: var(--fz-text-3); font-size: var(--fz-fs-micro); }
.fz-asst .fsw-assist-ask {
  margin: var(--fz-s-2) var(--fz-s-4) var(--fz-s-3);
  padding: var(--fz-s-1);
  border: 0;
  border-radius: var(--fz-r-pill);
  background: var(--fz-surface-sunken);
  box-shadow: inset 0 0 0 1px var(--fz-border-strong);
}
.fz-asst .fsw-assist-ask:focus-within { box-shadow: inset 0 0 0 1px var(--fz-focus), 0 0 0 3px var(--fz-accent-soft); }
.fz-asst .fsw-assist-ask .fsw-input { border: 0; background: transparent; box-shadow: none; padding-left: var(--fz-s-3); font-size: var(--fz-fs-body); }
.fz-asst .fsw-assist-ask .fsw-input:focus { box-shadow: none; outline: none; }
.fz-asst .fsw-assist-ask .xcs-btn-primary { width: 40px; min-height: 40px; height: 40px; padding: 0; border-radius: var(--fz-r-pill); }
.fz-asst .fsw-assist-f { padding: var(--fz-s-3) var(--fz-s-5); background: var(--fz-surface-sunken); border-top: 1px solid var(--fz-border); gap: var(--fz-s-1) var(--fz-s-4); }
.fz-asst .fsw-assist-link { color: var(--fz-text-2); font-size: var(--fz-fs-meta); font-weight: var(--fz-fw-medium); text-decoration: none; }
.fz-asst .fsw-assist-link:first-child { color: var(--fz-accent-ink); font-weight: var(--fz-fw-semi); }
.fz-asst .fsw-assist-link:hover { color: var(--fz-text-1); text-decoration: underline; }
@media (max-width: 768px) {
  .fz-asst .fsw-assist {
    right: 0;
    left: 0;
    bottom: 0;
    width: auto;
    max-height: 88dvh;
    border-radius: var(--fz-r-xl) var(--fz-r-xl) 0 0;
    border-bottom: 0;
  }
  .fz-asst .fsw-assist-f { padding-top: var(--fz-s-1); padding-bottom: calc(var(--fz-s-1) + env(safe-area-inset-bottom, 0px)); }
  .fz-asst .fsw-assist-quick button { min-height: 40px; }
  /* The footer links are the only way to the Ask page / WhatsApp: 44px targets. */
  .fz-asst .fsw-assist-link { display: inline-flex; align-items: center; gap: var(--fz-s-1); min-height: 44px; }
}
