/*
 * ZigO Design System v1.0 — component classes (auth surfaces).
 *
 * Skin classes layered over Metronic's layout classes: Metronic utilities
 * (btn, form-control, d-flex, …) own geometry; .zigo-* classes own brand
 * skin — color, radius, elevation, motion and typography — consuming the
 * semantic tokens in zigo-design-tokens.css so both themes resolve
 * automatically (§25.1: semantic names, no palette values in components).
 *
 * Palette voice: warm-cream canvas (#fffefb), deep coffee ink (#201515)
 * and a single saturated orange CTA (#ff4f00) — every neutral carries
 * warmth; no cool greys, no second chromatic accent.
 */

/* ── Metronic / Bootstrap bridge ──────────────────────────────────────
   Re-points the host framework's semantic CSS vars at the warm ZigO
   palette so un-skinned chrome (app canvas, sidebar, menus, cards,
   borders, links) resolves through the same tokens. The zigo vars they
   reference swap under [data-bs-theme="dark"], so one block themes both
   modes; the *-rgb triplets stay on the light scale (they only feed
   translucent washes). */
:root {
  --bs-body-bg: var(--zigo-bg-canvas);
  --bs-body-color: var(--zigo-text-primary);
  --bs-emphasis-color: var(--zigo-text-primary);
  --bs-secondary-color: var(--zigo-text-secondary);
  --bs-tertiary-color: var(--zigo-text-tertiary);
  --bs-secondary-bg: var(--zigo-bg-subtle);
  --bs-tertiary-bg: var(--zigo-bg-subtle);
  --bs-heading-color: var(--zigo-text-primary);
  --bs-border-color: var(--zigo-border-default);
  --bs-border-color-translucent: rgba(32, 21, 21, 0.12);
  --bs-link-color: var(--zigo-link);
  --bs-link-color-rgb: 191, 60, 0;
  --bs-link-hover-color: var(--zigo-link-hover);
  --bs-link-hover-color-rgb: 152, 48, 0;
  --bs-primary: var(--zigo-accent);
  --bs-primary-rgb: 255, 79, 0;
  --bs-dark: var(--zigo-neutral-950);
  --bs-light: var(--zigo-neutral-100);

  /* Warm grey ramp — Metronic's gray-* text/bg utilities and the
     rgba(var(--bs-gray-*-rgb), …) washes. */
  --bs-gray-100: var(--zigo-neutral-100);
  --bs-gray-200: var(--zigo-neutral-200);
  --bs-gray-300: var(--zigo-neutral-300);
  --bs-gray-400: var(--zigo-neutral-400);
  --bs-gray-500: var(--zigo-neutral-500);
  --bs-gray-600: var(--zigo-neutral-600);
  --bs-gray-700: var(--zigo-neutral-700);
  --bs-gray-800: var(--zigo-neutral-800);
  --bs-gray-900: var(--zigo-neutral-950);
  --bs-gray-100-rgb: 239, 233, 224;
  --bs-gray-200-rgb: 226, 218, 205;
  --bs-gray-300-rgb: 197, 192, 177;
  --bs-gray-400-rgb: 168, 162, 148;
  --bs-gray-500-rgb: 147, 144, 132;
  --bs-gray-600-rgb: 96, 93, 82;
  --bs-gray-700-rgb: 74, 70, 62;
  --bs-gray-800-rgb: 54, 52, 46;
  --bs-gray-900-rgb: 32, 21, 21;

  /* App chrome (light-sidebar layout). */
  --bs-app-bg-color: var(--zigo-bg-canvas);
  --bs-app-blank-bg-color: var(--zigo-bg-canvas);
  --bs-app-header-light-separator-color: var(--zigo-border-default);
  --bs-app-header-minimize-bg-color: var(--zigo-bg-surface);
  --bs-app-sidebar-light-bg-color: var(--zigo-bg-canvas);
  --bs-app-sidebar-light-separator-color: var(--zigo-border-default);
  --bs-app-sidebar-light-scrollbar-color-hover: var(--zigo-border-strong);
  --bs-app-sidebar-light-menu-link-color: var(--zigo-text-primary);
  --bs-app-sidebar-light-menu-link-icon-color: var(--zigo-text-tertiary);
  --bs-app-sidebar-light-menu-link-bg-color-active: var(--zigo-bg-subtle);
  --bs-app-sidebar-light-header-menu-link-bg-color-active: var(
    --zigo-bg-subtle
  );
  --bs-app-sidebar-light-menu-heading-color: var(--zigo-text-tertiary);
  --bs-app-sidebar-base-border-color: var(--zigo-border-default);
  --bs-app-sidebar-base-toggle-btn-bg-color: var(--zigo-bg-surface);
  --bs-app-sidebar-base-toggle-btn-border-color: var(--zigo-border-default);

  /* Menu/dropdown skin — ink links, cream hover, orange active. */
  --bs-menu-link-color-hover: var(--zigo-text-primary);
  --bs-menu-link-color-here: var(--zigo-text-primary);
  --bs-menu-link-color-show: var(--zigo-text-primary);
  --bs-menu-link-color-active: var(--zigo-accent-strong);
  --bs-menu-link-bg-color-hover: var(--zigo-bg-subtle);
  --bs-menu-link-bg-color-here: var(--zigo-bg-subtle);
  --bs-menu-link-bg-color-show: var(--zigo-bg-subtle);
  --bs-menu-link-bg-color-active: var(--zigo-bg-subtle);
  --bs-menu-heading-color: var(--zigo-text-tertiary);
}

/* ── Card skin ──────────────────────────────────────────────────────
   Metronic's .card joins the warm token surface: the vendored widget
   markup themes through the same semantic vars in both modes — the
   zigo refs flip under [data-bs-theme="dark"] on their own. */
.card {
  --bs-card-bg: var(--zigo-bg-surface);
  --bs-card-border-color: var(--zigo-border-default);
}

/* ── Bootstrap utility shims ──────────────────────────────────────────
   Metronic's bundle omits a few utilities authors legitimately reach
   for; define the missing ones so the markup does what it says. Without
   this, `min-w-0` is a dead class — flex items keep min-width:auto and
   text-truncate pairs overflow instead of shrinking (WCAG 1.4.10). */
.min-w-0 {
  min-width: 0;
}

/* ── Skip-to-content link (WCAG 2.4.1) ────────────────────────────────
   Shared by the SPA shell (#app) and the SSR chrome pages
   (#kt_app_main): parked off-canvas until it receives keyboard focus,
   then docks over the chrome. No transition — instant appearance is
   the accessible behavior. */
.zigo-skip-link {
  position: fixed;
  inset-block-start: -100px;
  inset-inline-start: 0.75rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--zigo-bg-surface);
  color: var(--zigo-text-primary);
  border: 2px solid var(--zigo-accent-fixed);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.zigo-skip-link:focus,
.zigo-skip-link:focus-visible {
  inset-block-start: 0.75rem;
}

/* ── Buttons ────────────────────────────────────────────────────────
   Primary = saturated orange surface + warm-white label (the brand's
   conversion signature). Height 48px, radius-md, one primary per group. */
.zigo-btn-primary {
  min-height: 48px;
  padding-inline: var(--zigo-space-6);
  border: 1px solid transparent;
  border-radius: var(--zigo-radius-md);
  background-color: var(--zigo-action-primary-bg);
  color: var(--zigo-action-primary-text);
  font-weight: 600;
  transition:
    background-color var(--zigo-motion-fast) var(--zigo-ease-enter),
    box-shadow var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-btn-primary:hover:not(:disabled),
.zigo-btn-primary:active:not(:disabled),
.zigo-btn-primary.active:not(:disabled) {
  background-color: var(--zigo-action-primary-hover);
  color: var(--zigo-action-primary-text);
}
.zigo-btn-primary:active:not(:disabled) {
  background-color: var(--zigo-action-primary-pressed);
}
/* WF-216 — pending-edits emphasis: an amber halo flags a dirty form's
   Save while the paired hint text carries the state non-color-only.
   :focus-visible keeps its own ring — focus always wins. */
.zigo-btn-primary.is-dirty:not(:focus-visible) {
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--zigo-warning) 55%, transparent);
}
.zigo-btn-primary:focus-visible {
  outline: 0;
  box-shadow: var(--zigo-shadow-focus);
  color: var(--zigo-action-primary-text);
}
.zigo-btn-primary:disabled {
  background-color: var(--zigo-disabled-bg);
  color: var(--zigo-disabled-text);
  opacity: 1;
}

/* Icon-only control — eye toggles and the like. 40px hit target (§22). */
.zigo-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border: 0;
  cursor: pointer;
  border-radius: var(--zigo-radius-sm);
  background: transparent;
  color: var(--zigo-text-tertiary);
  transition:
    color var(--zigo-motion-fast) var(--zigo-ease-enter),
    background-color var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-icon-btn:hover {
  color: var(--zigo-text-primary);
  background-color: var(--zigo-bg-subtle);
}
.zigo-icon-btn:focus-visible {
  outline: 0;
  box-shadow: var(--zigo-shadow-focus);
  color: var(--zigo-action-primary-bg);
}

/* Glyphs inside filled buttons always take the button's on-surface
   color — covers ki-duotone ::before/::after layers and Material
   ligatures, and beats stray text-* utilities (which carry
   !important) so icons stay white like the label. */
:is(
    .zigo-btn-primary,
    .zigo-btn-block-accent,
    .zigo-btn-accent,
    .zigo-btn-info,
    .zigo-btn-dark,
    .zigo-play-btn,
    .zigo-button-primary,
    .zigo-filter-pill.is-active,
    zigo-button
  )
  :is(.ki-duotone, .material-symbols-outlined, .svg-icon, svg) {
  color: inherit !important;
}

/* ── Small size modifier — compact controls for dense workspaces
   (Stitch "Integrated Planning": ~22–28px controls). Composes with
   each button family; the base sizes stay unchanged elsewhere. ───── */
.zigo-btn-primary.zigo-btn-sm {
  min-height: 28px;
  padding: 4px var(--zigo-space-3);
  border-radius: var(--zigo-radius-sm);
  font-size: 12px;
  line-height: 16px;
}
.zigo-btn-soft.zigo-btn-sm {
  padding: 6px var(--zigo-space-3);
  font-size: 12px;
  line-height: 16px;
}
.zigo-btn-accent.zigo-btn-sm {
  padding: 4px var(--zigo-space-3);
  font-size: 12px;
  line-height: 16px;
}
.zigo-icon-btn.zigo-btn-sm {
  min-width: 28px;
  min-height: 28px;
}
.zigo-filter-pill.zigo-btn-sm {
  padding: 4px var(--zigo-space-2);
  font-size: 11px;
  line-height: 14px;
}

/* ── Inputs ─────────────────────────────────────────────────────────
   44px minimum height (the touch-target floor), radius-sm (6px — the
   spec's input radius), surface bg + strong hairline border; focus
   lifts the border to orange and adds the focus ring (§11, §22). */
.zigo-input {
  min-height: 44px;
  padding: 5px 10px;
  border: 1px solid var(--zigo-border-strong);
  border-radius: var(--zigo-radius-sm);
  background-color: var(--zigo-bg-surface);
  color: var(--zigo-text-primary);
  transition:
    border-color var(--zigo-motion-fast) var(--zigo-ease-enter),
    box-shadow var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-input::placeholder {
  color: var(--zigo-text-tertiary);
  opacity: 1;
}
.zigo-input:focus,
.zigo-input:focus-visible {
  border-color: var(--zigo-border-focus);
  box-shadow: var(--zigo-shadow-focus);
  background-color: var(--zigo-bg-surface);
  color: var(--zigo-text-primary);
  outline: 0;
}
.zigo-input:disabled {
  background-color: var(--zigo-bg-subtle);
  color: var(--zigo-text-tertiary);
}
.zigo-input.is-invalid {
  border-color: var(--zigo-error-500);
}
.zigo-input.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(240, 68, 56, 0.22);
}

/* ── Checkbox — checked/focus skin on Metronic's form-check control ── */
.zigo-checkbox:checked {
  background-color: var(--zigo-action-primary-bg);
  border-color: var(--zigo-action-primary-bg);
}
.zigo-checkbox:focus,
.zigo-checkbox:focus-visible {
  border-color: var(--zigo-border-focus);
  box-shadow: var(--zigo-shadow-focus);
}

/* ── Password strength meter — neutral track + orange fill (§21) ──── */
.zigo-meter {
  display: flex;
  gap: var(--zigo-space-2);
}
.zigo-meter-bar {
  flex: 1 1 auto;
  height: 5px;
  border-radius: var(--zigo-radius-full);
  background-color: var(--zigo-meter-track);
  transition: background-color var(--zigo-motion-base) var(--zigo-ease-enter);
}
.zigo-meter-bar.active {
  background-color: var(--zigo-action-primary-bg);
}

/* ── Overlay auth panel — the card floating over the page image ─────
   Hero surface: radius-2xl, surface bg, shadow-md (§8, §9). */
.zigo-auth-panel {
  border: 1px solid var(--zigo-border-default);
  border-radius: var(--zigo-radius-2xl);
  background-color: var(--zigo-bg-surface);
  box-shadow: var(--zigo-shadow-md);
}

/* ── Typography ─────────────────────────────────────────────────────
   Degular Display (Manrope substitute) carries display hierarchy at
   weight 500; Manrope carries UI text — sentence-case, no uppercase (§4). */
.zigo-headline {
  font-family: var(--zigo-font-display);
  font-size: var(--zigo-text-h1-size);
  line-height: var(--zigo-text-h1-line);
  font-weight: var(--zigo-text-h1-weight);
  letter-spacing: var(--zigo-text-h1-tracking);
  color: var(--zigo-text-primary);
}
.zigo-headline-sm {
  font-size: var(--zigo-text-h2-size);
  line-height: var(--zigo-text-h2-line);
}
.zigo-title {
  font-family: var(--zigo-font-display);
  font-size: var(--zigo-text-h3-size);
  line-height: var(--zigo-text-h3-line);
  font-weight: var(--zigo-text-h3-weight);
  letter-spacing: var(--zigo-text-h3-tracking);
  color: var(--zigo-text-primary);
}
.zigo-subtitle {
  font-family: var(--zigo-font-ui);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: var(--zigo-text-secondary);
}
.zigo-lead {
  font-family: var(--zigo-font-ui);
  font-size: var(--zigo-text-body-sm-size);
  line-height: var(--zigo-text-body-sm-line);
  font-weight: 600;
  color: var(--zigo-text-secondary);
}
.zigo-caption {
  font-family: var(--zigo-font-ui);
  font-size: var(--zigo-text-caption-size);
  line-height: var(--zigo-text-caption-line);
  font-weight: var(--zigo-text-caption-weight);
  color: var(--zigo-text-tertiary);
}
.zigo-hint {
  font-family: var(--zigo-font-ui);
  font-size: var(--zigo-text-body-sm-size);
  line-height: var(--zigo-text-body-sm-line);
  font-weight: 400;
  color: var(--zigo-text-tertiary);
}

/* Semantic text-color utilities (§3.4 mapping). */
.zigo-text-primary {
  color: var(--zigo-text-primary);
}
.zigo-text-secondary {
  color: var(--zigo-text-secondary);
}
.zigo-text-tertiary {
  color: var(--zigo-text-tertiary);
}
.zigo-text-inverse {
  color: var(--zigo-text-inverse);
}
/* Fixed white — text over media that never swaps with the theme
   (e.g. the corporate aside's fixed dark background image). */
.zigo-text-on-media {
  color: #ffffff;
}

/* ── Links ──────────────────────────────────────────────────────────
   Theme-aware link token (orange-700 light / orange-300 dark) so inline
   links keep AA contrast instead of Metronic blue. */
.zigo-link {
  color: var(--zigo-link);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-link:hover,
.zigo-link:active {
  color: var(--zigo-link-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.zigo-link:focus-visible {
  outline: 0;
  border-radius: var(--zigo-radius-xs);
  box-shadow: var(--zigo-shadow-focus);
}

/* ── Reduced motion (§10, §22) ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .zigo-btn-primary,
  .zigo-icon-btn,
  .zigo-input,
  .zigo-meter-bar,
  .zigo-link {
    transition: none;
  }
}

/* ════════════════════════════════════════════════════════════════════
   Dashboard (Today) — Stitch "Calm Intelligence" components.
   Same contract as the auth components above: Metronic utilities own
   geometry; these classes own brand skin over the semantic tokens, so
   every element resolves in both light and dark data-bs-theme modes.
   ════════════════════════════════════════════════════════════════════ */

/* ── Panel — cream card on the warm canvas (Level-2 elevation: the
   canvas-soft fill carries separation, no shadow, radius-md 12px) ── */
.zigo-panel {
  display: flex;
  flex-direction: column;
  background-color: var(--zigo-bg-subtle);
  border-radius: var(--zigo-radius-md);
  padding: var(--zigo-space-6);
}
.zigo-panel-lg {
  padding: var(--zigo-space-8);
}
.zigo-panel-label {
  font-size: 11px;
  line-height: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--zigo-text-tertiary);
}
/* Definition-list inside a panel (task-detail meta) — the dl's UA
   margin would otherwise trail the last row inside the card. */
.zigo-meta-list {
  margin-bottom: 0;
}
.zigo-meta-list > div:last-child {
  padding-bottom: 0;
}

/* ── Chips & status dots ──────────────────────────────────────────── */
.zigo-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--zigo-space-1);
  padding: 2px var(--zigo-space-2);
  border-radius: var(--zigo-radius-full);
  font-size: 11px;
  line-height: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.zigo-chip-accent {
  background-color: var(--zigo-accent-fixed);
  color: var(--zigo-accent-fixed-text);
}
.zigo-chip-neutral {
  background-color: var(--zigo-neutral-fixed);
  color: var(--zigo-neutral-fixed-text);
}
/* Compound chips (multi-part status text) must reflow under 1.4.10 —
   atomic nowrap is reserved for short single labels. */
.zigo-chip-wrap {
  flex-wrap: wrap;
  white-space: normal;
}
.zigo-chip-success {
  background-color: var(--zigo-success-soft);
  color: var(--zigo-success-text);
}
/* Button host for the shell sync chip (WF-102 0c) — UA button chrome
   stripped so the chip keeps its exact look while gaining keyboard/
   click affordances. */
.zigo-chip-button {
  border: 0;
  font: inherit;
  font-size: 11px;
  line-height: 14px;
  font-weight: 600;
  cursor: pointer;
}
.zigo-chip-button:focus-visible {
  outline: 0;
  box-shadow: var(--zigo-shadow-focus);
}
.zigo-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: var(--zigo-radius-full);
  background-color: var(--zigo-accent);
}
.zigo-dot-success {
  background-color: var(--zigo-success);
}
.zigo-dot-muted,
.zigo-dot-neutral {
  background-color: var(--zigo-text-tertiary);
}

/* ── Quick-action tiles ───────────────────────────────────────────── */
.zigo-action-tile {
  display: flex;
  align-items: center;
  gap: var(--zigo-space-4);
  width: 100%;
  padding: var(--zigo-space-4);
  border: 0;
  border-radius: var(--zigo-radius-md);
  background-color: var(--zigo-bg-subtle);
  text-align: start;
  transition: background-color var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-action-tile:hover {
  background-color: var(--zigo-bg-surface);
}
.zigo-action-tile:focus-visible {
  outline: 0;
  box-shadow: var(--zigo-shadow-focus);
}
.zigo-icon-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--zigo-radius-sm);
  transition:
    background-color var(--zigo-motion-fast) var(--zigo-ease-enter),
    color var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-icon-tile-accent {
  background-color: var(--zigo-accent-fixed);
  color: var(--zigo-accent-fixed-text);
}
.zigo-action-tile:hover .zigo-icon-tile-accent {
  background-color: var(--zigo-accent);
  color: var(--zigo-action-primary-text);
}
.zigo-icon-tile-neutral {
  background-color: var(--zigo-neutral-fixed);
  color: var(--zigo-neutral-fixed-text);
}
.zigo-action-tile:hover .zigo-icon-tile-neutral {
  background-color: var(--zigo-bg-inverse);
  color: var(--zigo-text-inverse);
}
.zigo-icon-tile-info {
  background-color: var(--zigo-info-fixed);
  color: var(--zigo-info-fixed-text);
}
.zigo-action-tile:hover .zigo-icon-tile-info {
  background-color: var(--zigo-info);
  color: var(--zigo-action-primary-text);
}
.zigo-icon-tile-danger {
  background-color: var(--zigo-danger-soft);
  color: var(--zigo-danger-text);
}
.zigo-action-tile:hover .zigo-icon-tile-danger {
  background-color: var(--zigo-danger);
  color: var(--zigo-action-primary-text);
}
.zigo-action-tile:hover .zigo-icon-tile-success {
  background-color: var(--zigo-success);
  color: var(--zigo-action-primary-text);
}

/* ── Buttons ──────────────────────────────────────────────────────── */
.zigo-btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--zigo-space-2);
  padding: 10px var(--zigo-space-4);
  border: 0;
  border-radius: var(--zigo-radius-sm);
  background-color: var(--zigo-neutral-fixed);
  color: var(--zigo-text-primary);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  transition: background-color var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-btn-soft:hover {
  background-color: var(--zigo-border-default);
}
.zigo-btn-soft:focus-visible {
  outline: 0;
  box-shadow: var(--zigo-shadow-focus);
}
.zigo-btn-block-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--zigo-space-2);
  width: 100%;
  padding: 10px var(--zigo-space-4);
  border: 0;
  border-radius: var(--zigo-radius-sm);
  background-color: var(--zigo-action-primary-bg);
  color: var(--zigo-action-primary-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  box-shadow: var(--zigo-shadow-sm);
  transition: background-color var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-btn-block-accent:hover {
  background-color: var(--zigo-action-primary-hover);
}
.zigo-btn-block-accent:focus-visible {
  outline: 0;
  box-shadow: var(--zigo-shadow-focus);
}

/* ── AI orb — pulsing voice/AI core ───────────────────────────────── */
.zigo-orb-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.zigo-orb-pulse {
  position: absolute;
  width: 112px;
  height: 112px;
  border-radius: var(--zigo-radius-full);
  background-color: var(--zigo-accent);
  opacity: 0.15;
  animation: zigo-orb-ping 1.5s var(--zigo-ease-enter) infinite;
}
.zigo-orb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border: 0;
  border-radius: var(--zigo-radius-full);
  background-color: var(--zigo-orb-bg);
  color: var(--zigo-orb-fg);
  box-shadow: var(--zigo-shadow-md);
  cursor: pointer;
  transition: transform var(--zigo-motion-base) var(--zigo-ease-enter);
}
.zigo-orb:hover {
  transform: scale(1.05);
}
.zigo-orb:focus-visible {
  outline: 0;
  box-shadow: var(--zigo-shadow-focus);
}
@keyframes zigo-orb-ping {
  75%,
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* ── Agenda event accent bar ──────────────────────────────────────── */
.zigo-event {
  display: flex;
  align-items: flex-start;
  gap: var(--zigo-space-4);
  padding: var(--zigo-space-4);
  border-radius: var(--zigo-radius-sm);
  background-color: var(--zigo-surface-low);
}
/* Clickable agenda row — the tasks workspace renders each instance as
   a whole-row button that opens the event editor. */
button.zigo-event {
  font: inherit;
  color: inherit;
  border: 0;
  cursor: pointer;
  text-align: start;
  transition:
    background-color var(--zigo-motion-fast) var(--zigo-ease-enter),
    box-shadow var(--zigo-motion-fast) var(--zigo-ease-enter);
}
button.zigo-event:hover:not(:disabled) {
  background-color: var(--zigo-bg-surface);
  box-shadow: var(--zigo-shadow-sm);
}
button.zigo-event:focus-visible {
  outline: 0;
  box-shadow: var(--zigo-shadow-focus);
}
button.zigo-event:disabled {
  cursor: default;
  opacity: 0.8;
}

/* ── Progress bars (category meters) ──────────────────────────────── */
.zigo-track {
  width: 100%;
  height: 8px;
  border-radius: var(--zigo-radius-full);
  background-color: var(--zigo-neutral-fixed);
  overflow: hidden;
}
.zigo-track-fill {
  height: 100%;
  border-radius: var(--zigo-radius-full);
  background-color: var(--zigo-accent);
}
.zigo-track-fill-dark {
  background-color: var(--zigo-bg-inverse);
}
.zigo-track-fill-info {
  background-color: var(--zigo-info);
}

/* ── Market sparkline bars ────────────────────────────────────────── */
.zigo-sparkbar {
  flex: 1 1 0%;
  border-radius: 3px 3px 0 0;
  background-color: var(--zigo-success);
}
.zigo-sparkbar-accent {
  background-color: var(--zigo-accent);
}
.zigo-sparkbar-info {
  background-color: var(--zigo-info);
}
.zigo-sparkbar-muted {
  background-color: var(--zigo-meter-track);
}

/* ── Hoverable list rows (emails, news) ───────────────────────────── */
.zigo-row {
  display: block;
  padding: 10px;
  border-radius: var(--zigo-radius-sm);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-row:hover {
  background-color: var(--zigo-surface-low);
  color: inherit;
}
.zigo-tag {
  display: inline-block;
  padding: 2px 6px;
  border-radius: var(--zigo-radius-xs);
  font-size: 10px;
  font-weight: 700;
  line-height: 14px;
  text-transform: uppercase;
}
.zigo-tag-accent {
  /* accent-500 fails WCAG AA under near-white text (≈3.2:1) — reuse the
     primary-action pair (#BF3C00/#FFFEFB, ≥4.5:1 in both themes). */
  background-color: var(--zigo-action-primary-bg);
  color: var(--zigo-action-primary-text);
}
.zigo-tag-soft {
  background-color: var(--zigo-accent-fixed);
  color: var(--zigo-accent-fixed-text);
}
.zigo-tag-neutral {
  background-color: var(--zigo-neutral-fixed);
  color: var(--zigo-neutral-fixed-text);
}

/* ── Header search pill ───────────────────────────────────────────── */
.zigo-search {
  display: flex;
  align-items: center;
  gap: var(--zigo-space-2);
  min-width: 0;
  border: 1px solid var(--zigo-border-default);
  border-radius: var(--zigo-radius-full);
  background-color: var(--zigo-bg-surface);
  padding: 6px var(--zigo-space-4);
  color: var(--zigo-text-tertiary);
  transition:
    border-color var(--zigo-motion-fast) var(--zigo-ease-enter),
    box-shadow var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-search:focus-within {
  border-color: var(--zigo-border-focus);
  box-shadow: var(--zigo-shadow-focus);
}
.zigo-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--zigo-text-primary);
  font-size: 14px;
  outline: 0;
}
.zigo-search input::placeholder {
  color: var(--zigo-text-tertiary);
  opacity: 1;
}
/* Decorative label inside the header affordance (role=button — a real
   input there would be a nested interactive). */
.zigo-search .zigo-search-placeholder {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--zigo-text-tertiary);
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.zigo-kbd {
  flex-shrink: 0;
  padding: 2px 6px;
  border: 1px solid var(--zigo-border-default);
  border-radius: var(--zigo-radius-xs);
  background-color: var(--zigo-surface-low);
  font-size: 10px;
  font-weight: 600;
  color: var(--zigo-text-tertiary);
}

/* ── Sidebar nav — ZigO accent for the active item (both themes) ──── */
[data-kt-app-layout="light-sidebar"]
  .app-sidebar
  .menu
  .menu-item
  .menu-link.active {
  background-color: var(--zigo-accent-fixed);
}
[data-kt-app-layout="light-sidebar"]
  .app-sidebar
  .menu
  .menu-item
  .menu-link.active
  .menu-title,
[data-kt-app-layout="light-sidebar"]
  .app-sidebar
  .menu
  .menu-item
  .menu-sub
  .menu-item
  .menu-link.active
  .menu-title {
  color: var(--zigo-accent-fixed-text);
}
[data-kt-app-layout="light-sidebar"]
  .app-sidebar
  .menu
  .menu-item
  .menu-link.active
  .menu-icon,
[data-kt-app-layout="light-sidebar"]
  .app-sidebar
  .menu
  .menu-item
  .menu-sub
  .menu-item
  .menu-link.active
  .menu-icon {
  color: var(--zigo-accent-strong);
}

/* ── Buttons carrying link/row styles need the UA reset ─────────────
   Metronic's .menu-link and ZigO's .zigo-row are tag-agnostic; native
   buttons bring their own border/background/font that must be cleared. */
button.menu-link,
button.zigo-row {
  width: 100%;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: start;
}

/* ── Disabled/inert placeholders — unbuilt surfaces render with no
   href (no '#' jump) and read as not-yet-available. Nav links also
   carry Metronic's own .disabled class so its :not(.disabled) guards
   suppress hover state; a.disabled gets pointer-events:none on top.
   .zigo-disabled is the generic counterpart for content-area links
   (actions that have no destination yet) and for static data rows. */
.zigo-nav-disabled {
  opacity: 0.55;
}
.zigo-link.zigo-disabled {
  cursor: default;
  opacity: 0.55;
}
.zigo-link.zigo-disabled:hover {
  color: var(--zigo-link);
  text-decoration: none;
}
.zigo-row.zigo-disabled {
  cursor: default;
}
.zigo-row.zigo-disabled:hover {
  background-color: transparent;
}

/* ── Sidebar nav section heading ──────────────────────────────────── */
.zigo-nav-heading {
  padding: var(--zigo-space-2) var(--zigo-space-3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--zigo-text-tertiary);
}
.zigo-nav-count {
  margin-inline-start: auto;
  min-width: 18px;
  padding: 1px 6px;
  border-radius: var(--zigo-radius-full);
  background-color: var(--zigo-neutral-fixed);
  color: var(--zigo-neutral-fixed-text);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}
.menu-link.active .zigo-nav-count {
  background-color: var(--zigo-accent-strong);
  color: var(--zigo-action-primary-text);
}

/* ── Sidebar LIFE AREAS — collapsible compact group ───────────────
   Metronic's menu-accordion owns expand/collapse + arrow rotation;
   these rules render the section toggle and shrink child items well
   below the primary nav scale. Icon sizing needs #kt_app_body scope
   to beat the 20px Material Symbols baseline. */
.app-sidebar .menu-item .menu-link.zigo-nav-toggle {
  padding-block: 0.4rem;
}
.app-sidebar .menu-item .menu-link.zigo-nav-toggle:focus-visible {
  background-color: var(--zigo-bg-subtle);
}
.app-sidebar .menu-sub-accordion.zigo-nav-sm .menu-item {
  padding: 0.05rem 0;
}
.app-sidebar .menu-sub-accordion.zigo-nav-sm .menu-link {
  padding-block: 0.45rem;
  padding-inline-start: 1.15rem;
  padding-inline-end: 0.75rem;
}
#kt_app_body .app-sidebar .zigo-nav-sm .menu-icon {
  width: 1.6rem;
  margin-inline-end: 0.5rem;
}
#kt_app_body .app-sidebar .zigo-nav-sm .menu-icon .material-symbols-outlined,
#kt_app_body .app-sidebar .zigo-nav-sm .menu-icon .ki-duotone {
  font-size: 17px;
}
.app-sidebar .menu-sub-accordion.zigo-nav-sm .menu-title {
  font-size: 13px;
  font-weight: 500;
}
.app-sidebar .menu-sub-accordion.zigo-nav-sm .zigo-nav-count {
  min-width: 16px;
  padding: 0 5px;
  font-size: 10px;
}

/* ── Sidebar menu scroll region — must fill .app-sidebar-menu exactly,
   else a dead strip appears above the pinned footer. Flex fill is the
   backstop for KTScroll's pixel height (which can go stale when font
   loading shifts the logo/footer heights after init). The fluid middle
   must be allowed to SHRINK too: .flex-column-fluid is flex:1 0 auto
   (shrink:0), and without Metronic's data-kt-scroll-height JS nothing
   bounds it — the pinned footer is pushed off-viewport on short
   windows. */
.app-sidebar .app-sidebar-menu {
  flex: 1 1 auto;
  min-height: 0;
}
.app-sidebar .app-sidebar-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.app-sidebar #kt_app_sidebar_menu_scroll {
  flex: 1 1 auto;
  min-height: 0;
}

/* ── Sidebar footer — pinned utility block. The top-edge hairline +
   soft shadow read as elevation above the scrolling menu; the border
   carries the separation in dark mode where the shadow is faint.
   z-index keeps the shadow painted over the (overflow-hidden) menu. */
.app-sidebar .zigo-sidebar-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--zigo-border-default);
  box-shadow: 0 -6px 12px -8px rgba(32, 21, 21, 0.15);
}

/* ── Minimized icon rail (lg+) — Metronic's contract only covers its
   own classes (.menu-title/.menu-content fade, logo variant swap), so
   ZigO chrome opts out of the 75px rail explicitly. With
   data-kt-app-sidebar-hoverable the rail re-expands on :hover, hence
   the same rules for the not-hovered state. */
@media (min-width: 992px) {
  [data-kt-app-sidebar-minimize="on"]:not(
      [data-kt-app-sidebar-hoverable="true"]
    )
    .app-sidebar
    .zigo-logo-word,
  [data-kt-app-sidebar-minimize="on"]:not(
      [data-kt-app-sidebar-hoverable="true"]
    )
    .app-sidebar
    .app-sidebar-logo
    .zigo-chip,
  [data-kt-app-sidebar-minimize="on"]:not(
      [data-kt-app-sidebar-hoverable="true"]
    )
    .app-sidebar
    .zigo-nav-count,
  [data-kt-app-sidebar-minimize="on"]:not(
      [data-kt-app-sidebar-hoverable="true"]
    )
    .app-sidebar
    .zigo-nav-toggle,
  [data-kt-app-sidebar-minimize="on"][data-kt-app-sidebar-hoverable="true"]
    .app-sidebar:not(:hover)
    .zigo-logo-word,
  [data-kt-app-sidebar-minimize="on"][data-kt-app-sidebar-hoverable="true"]
    .app-sidebar:not(:hover)
    .app-sidebar-logo
    .zigo-chip,
  [data-kt-app-sidebar-minimize="on"][data-kt-app-sidebar-hoverable="true"]
    .app-sidebar:not(:hover)
    .zigo-nav-count,
  [data-kt-app-sidebar-minimize="on"][data-kt-app-sidebar-hoverable="true"]
    .app-sidebar:not(:hover)
    .zigo-nav-toggle {
    display: none !important;
  }
  /* User chip: hide the meta column + unfold icon but keep their space
     — the rail preserves each row's expanded height/geometry (same
     contract as Metronic's opacity:0 titles), so the avatar sits where
     the nav icons do and the footer doesn't reflow upward. */
  [data-kt-app-sidebar-minimize="on"]:not(
      [data-kt-app-sidebar-hoverable="true"]
    )
    .app-sidebar
    .zigo-user-meta,
  [data-kt-app-sidebar-minimize="on"]:not(
      [data-kt-app-sidebar-hoverable="true"]
    )
    .app-sidebar
    .zigo-user-menu
    .material-symbols-outlined,
  [data-kt-app-sidebar-minimize="on"]:not(
      [data-kt-app-sidebar-hoverable="true"]
    )
    .app-sidebar
    .zigo-user-menu
    .ki-duotone,
  [data-kt-app-sidebar-minimize="on"][data-kt-app-sidebar-hoverable="true"]
    .app-sidebar:not(:hover)
    .zigo-user-meta,
  [data-kt-app-sidebar-minimize="on"][data-kt-app-sidebar-hoverable="true"]
    .app-sidebar:not(:hover)
    .zigo-user-menu
    .material-symbols-outlined,
  [data-kt-app-sidebar-minimize="on"][data-kt-app-sidebar-hoverable="true"]
    .app-sidebar:not(:hover)
    .zigo-user-menu
    .ki-duotone {
    /* nowrap: hidden text must not wrap — wrapping would inflate the
       row's height (the meta caption and icon ligature are text). */
    visibility: hidden;
    white-space: nowrap;
  }
  /* Metronic's title fade is scoped to .app-sidebar-menu only — the
     footer nav (Connections / Memory & Privacy / Settings) lives in
     .app-sidebar-footer and needs the same treatment. The nowrap matters
     as much as the opacity: the footer isn't inside .app-sidebar-wrapper
     (which keeps the expanded width), so titles would wrap into several
     invisible lines and inflate each row's height. */
  [data-kt-app-sidebar-minimize="on"]:not(
      [data-kt-app-sidebar-hoverable="true"]
    )
    .app-sidebar
    .app-sidebar-footer
    .menu-title,
  [data-kt-app-sidebar-minimize="on"][data-kt-app-sidebar-hoverable="true"]
    .app-sidebar:not(:hover)
    .app-sidebar-footer
    .menu-title {
    opacity: 0;
    white-space: nowrap;
    transition: opacity 0.3s ease !important;
  }
  /* Metronic collapses an open accordion sub with height:0 only — the
     links inside stay in the a11y tree and tab order. Belt-and-braces:
     once a life-area item gets a real href it must not be tabbable
     while invisible. Scoped to -accordion subs: .menu-sub-dropdown
     (the footer account menu) must stay visible in the rail. */
  [data-kt-app-sidebar-minimize="on"]:not(
      [data-kt-app-sidebar-hoverable="true"]
    )
    .app-sidebar
    .menu-sub-accordion,
  [data-kt-app-sidebar-minimize="on"][data-kt-app-sidebar-hoverable="true"]
    .app-sidebar:not(:hover)
    .menu-sub-accordion {
    visibility: hidden;
  }
}

/* ── Topbar icon buttons — neutral hover instead of Metronic's blue
   btn-active-color-primary (keeps ZigO accent as the only warm hue) ── */
.zigo-icon-btn-nav:hover,
.zigo-icon-btn-nav:focus-visible {
  color: var(--zigo-accent-strong);
  background-color: var(--zigo-accent-fixed);
}

/* ── Header capture CTA — matches the 35px topbar controls. Metronic's
   :not()-stacked .btn padding and .zigo-btn-primary's 48px min-height
   out-specify size modifiers, so the trim is scoped by the header id;
   font-size stays whatever the button's own size class sets. ──────── */
#kt_app_header .zigo-btn-primary {
  min-height: 35px;
  padding-block: 4px;
}
/* Below lg the wrapper's flex-item min-width:auto pins it to its
   content size (search placeholder + navbar), overflowing the page on
   narrow viewports. min-width:0 lets it shrink — the placeholder
   already ellipsizes. */
#kt_app_header_wrapper {
  min-width: 0;
}

/* ── Misc helpers ─────────────────────────────────────────────────── */
.zigo-text-accent {
  color: var(--zigo-accent-strong);
}
.zigo-text-success {
  color: var(--zigo-success-text);
}
.zigo-text-warning {
  color: var(--zigo-warning-text);
}
.zigo-mono {
  font-variant-numeric: tabular-nums;
}
.zigo-panel-inset {
  background-color: var(--zigo-bg-surface);
  border-radius: var(--zigo-radius-sm);
}
.zigo-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--zigo-radius-md);
  background-color: var(--zigo-accent-fixed);
  color: var(--zigo-accent-fixed-text);
  font-size: 13px;
  font-weight: 700;
}
/* Uploaded-photo fill — inherits the host's shape (round/md variants). */
.zigo-avatar > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* ── Logo lockup — carbon mark + wordmark (sidebar) ───────────────── */
.zigo-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background-color: var(--zigo-bg-inverse);
  color: var(--zigo-accent);
  flex-shrink: 0;
}
img.zigo-logo-mark {
  display: inline-block;
  background-color: transparent;
}
.zigo-logo-word {
  font-family: var(--zigo-font-brand);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--zigo-text-primary);
  line-height: 1;
}

/* ── Material Symbols sizing helpers (dashboard iconography) ─────── */
/* Scoped to the app shell so the vendor class isn't restyled on pages
   that load zigo-components.css but use Material Symbols differently. */
#kt_app_body .material-symbols-outlined,
#kt_app_body .ki-duotone {
  font-size: 20px;
  line-height: 1;
  vertical-align: middle;
  user-select: none;
}
/* Bundled Iconify SVGs size through the shared zigo-ms-* font scale
   (width/height 1em) and take tone via fill="currentColor"; the
   -0.125em baseline matches the ligature glyphs they sit beside. */
.zigo-iconify,
#kt_app_body .zigo-iconify {
  display: inline-block;
  vertical-align: -0.125em;
}
/* WF-100 R21 — directional glyphs mirror in RTL. createIcon/setIcon
   (icons.js) and Icon::render() stamp zigo-rtl-mirror on names in
   RTL_MIRROR; the transform flips the glyph around its own box so
   back/forward, send/reply, share and trend arrows read correctly
   under [dir="rtl"]. */
[dir="rtl"] .zigo-rtl-mirror,
[dir="rtl"].zigo-rtl-mirror {
  transform: scaleX(-1);
}
/* The ID-scoped twins keep these utilities winning over the
   #kt_app_body icon defaults above; the plain class still serves
   pages outside the app shell (auth, previews). */
.zigo-ms-14,
#kt_app_body .zigo-ms-14 {
  font-size: 14px;
}
.zigo-ms-16,
#kt_app_body .zigo-ms-16 {
  font-size: 16px;
}
.zigo-ms-18,
#kt_app_body .zigo-ms-18 {
  font-size: 18px;
}
.zigo-ms-20,
#kt_app_body .zigo-ms-20 {
  font-size: 20px;
}
.zigo-ms-22,
#kt_app_body .zigo-ms-22 {
  font-size: 22px;
}
.zigo-ms-24,
#kt_app_body .zigo-ms-24 {
  font-size: 24px;
}
.zigo-ms-32,
#kt_app_body .zigo-ms-32 {
  font-size: 32px;
}
.zigo-ms-44,
#kt_app_body .zigo-ms-44 {
  font-size: 44px;
}

@media (prefers-reduced-motion: reduce) {
  .zigo-orb-pulse {
    animation: none;
    opacity: 0.1;
  }
  .zigo-orb,
  .zigo-action-tile,
  .zigo-icon-tile,
  .zigo-btn-soft,
  .zigo-btn-block-accent,
  .zigo-row {
    transition: none;
  }
}

/* ════════════════════════════════════════════════════════════════════
   Universal Voice Capture — Stitch "Multi-Intent Extraction" sheet.
   Overlay sits above the app shell (inerted by capture.js); every color
   resolves through the semantic tokens so light/dark need no overrides.
   ════════════════════════════════════════════════════════════════════ */

/* ── Overlay + sheet frame ──────────────────────────────────────────
   Shared centered-dialog contract: .zigo-overlay + .zigo-sheet is the
   generic frame (Add Calendar Event and future dialogs); the Voice
   Capture pair predates it and shares the same rules via these grouped
   selectors. [hidden] is the UA contract for the closed state — the
   explicit guard rule keeps author display:flex from overriding it. */
.zigo-capture-overlay,
.zigo-overlay {
  position: fixed;
  inset: 0;
  z-index: 1090;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--zigo-space-4);
  background-color: var(--zigo-scrim-strong);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity var(--zigo-motion-base) var(--zigo-ease-enter);
}
.zigo-capture-overlay[hidden],
.zigo-overlay[hidden] {
  display: none;
}
.zigo-capture-overlay.is-open,
.zigo-overlay.is-open {
  opacity: 1;
}
/* Mid-fade (closing) the sheet must not take clicks. */
.zigo-capture-overlay:not(.is-open),
.zigo-overlay:not(.is-open) {
  pointer-events: none;
}
@media (min-width: 992px) {
  .zigo-capture-overlay,
  .zigo-overlay {
    padding: var(--zigo-space-8);
  }
}

.zigo-capture-sheet,
.zigo-sheet {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: calc(100vh - var(--zigo-space-8));
  max-height: calc(100dvh - var(--zigo-space-8));
  border-radius: var(--zigo-radius-2xl);
  background-color: var(--zigo-bg-surface);
  box-shadow: var(--zigo-shadow-lg);
  overflow: hidden;
  outline: 0;
  opacity: 0;
  transform: scale(0.96) translateY(10px);
  transition:
    transform var(--zigo-motion-base) var(--zigo-ease-enter),
    opacity var(--zigo-motion-base) var(--zigo-ease-enter);
}
.is-open > .zigo-capture-sheet,
.is-open > .zigo-sheet {
  opacity: 1;
  transform: none;
}
.zigo-capture-sheet {
  max-width: 896px;
}

/* Card stack is the sheet's only scroll region — header, transcript
   and footers stay pinned (Stitch max-h 46vh equivalent). */
.zigo-capture-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  background-color: var(--zigo-bg-subtle);
}
.zigo-capture-zdr {
  background-color: var(--zigo-surface-low);
}

/* ── Listening status pill + ping dot ─────────────────────────────── */
.zigo-capture-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding: 6px var(--zigo-space-3);
  border-radius: var(--zigo-radius-full);
  background-color: var(--zigo-accent-fixed);
  font-size: 11px;
  line-height: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--zigo-text-primary);
  white-space: nowrap;
}
.zigo-capture-ping {
  position: relative;
  display: inline-flex;
  width: 10px;
  height: 10px;
}
.zigo-capture-ping::before,
.zigo-capture-ping::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--zigo-radius-full);
  background-color: var(--zigo-accent);
}
.zigo-capture-ping::before {
  animation: zigo-capture-ping 1.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes zigo-capture-ping {
  75%,
  100% {
    transform: scale(2.1);
    opacity: 0;
  }
}

/* ── Equalizer waveform — pure-CSS bars mirroring the mockup ──────── */
.zigo-eq {
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 var(--zigo-space-2);
  border-radius: 6px;
  background-color: var(--zigo-neutral-fixed);
}
.zigo-eq-bar {
  width: 4px;
  border-radius: var(--zigo-radius-full);
  background-color: var(--zigo-accent);
  transform-origin: center;
  animation: zigo-eq-pulse 0.8s ease-in-out infinite alternate;
}
.zigo-eq-bar:nth-child(1) {
  height: 16px;
  animation-duration: 0.6s;
}
.zigo-eq-bar:nth-child(2) {
  height: 10px;
  animation-duration: 0.9s;
  animation-delay: 0.1s;
}
.zigo-eq-bar:nth-child(3) {
  height: 20px;
  animation-duration: 0.7s;
  animation-delay: 0.2s;
}
.zigo-eq-bar:nth-child(4) {
  height: 12px;
  animation-duration: 1.1s;
  animation-delay: 0.15s;
}
.zigo-eq-bar:nth-child(5) {
  height: 18px;
  animation-duration: 0.8s;
  animation-delay: 0.3s;
}
.zigo-eq-bar:nth-child(6) {
  height: 14px;
  animation-duration: 1s;
  animation-delay: 0.05s;
}
.zigo-eq-bar:nth-child(7) {
  height: 8px;
  animation-duration: 0.5s;
  animation-delay: 0.25s;
}
@keyframes zigo-eq-pulse {
  from {
    transform: scaleY(0.3);
  }
  to {
    transform: scaleY(1);
  }
}

/* Paused state (data-zigo-capture-pause toggle): waveform + ping freeze. */
.zigo-capture-overlay.is-paused .zigo-eq-bar,
.zigo-capture-overlay.is-paused .zigo-capture-ping::before {
  animation-play-state: paused;
}
.zigo-capture-overlay.is-paused .zigo-eq-bar {
  transform: scaleY(0.3);
}
.zigo-capture-overlay.is-paused .zigo-capture-ping::before {
  opacity: 0;
}

/* Extracted-entity highlights (inbox + routed-intent surfaces). */
.zigo-mark {
  padding: 0 var(--zigo-space-1);
  border-radius: var(--zigo-radius-xs);
  font-weight: 600;
  color: var(--zigo-text-primary);
}
.zigo-mark-accent {
  background-color: var(--zigo-accent-fixed);
}
.zigo-mark-info {
  background-color: var(--zigo-info-fixed);
}
.zigo-mark-neutral {
  background-color: var(--zigo-neutral-fixed);
}

/* ── Intent count badge (capture outcome sheet) ───────────────────── */
.zigo-intent-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  padding: 1px 6px;
  border-radius: var(--zigo-radius-full);
  background-color: var(--zigo-neutral-fixed);
  color: var(--zigo-neutral-fixed-text);
  font-size: 10px;
  font-weight: 700;
}

/* Confirm toggle — hidden until the card state flips it visible. */
.zigo-confirm-done {
  display: none;
}

/* 32px icon tile (card headers). */
.zigo-icon-tile-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--zigo-radius-sm);
  background-color: var(--zigo-neutral-fixed);
}

/* ── Buttons ──────────────────────────────────────────────────────── */
/* Inverse-surface confirm — Stitch's carbon-black action resolves to
   the secondary-action tokens so it flips correctly in dark mode. */
.zigo-btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--zigo-space-1);
  padding: 6px var(--zigo-space-3);
  border: 0;
  border-radius: var(--zigo-radius-sm);
  background-color: var(--zigo-action-secondary-bg);
  color: var(--zigo-action-secondary-text);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  transition: background-color var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-btn-dark:hover {
  background-color: var(--zigo-action-secondary-hover);
}
.zigo-btn-dark:focus-visible {
  outline: 0;
  box-shadow: var(--zigo-shadow-focus);
}
/* Solid danger action — destructive CTAs (vault key shredding). */
.zigo-btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--zigo-space-1);
  padding: 6px var(--zigo-space-3);
  border: 0;
  border-radius: var(--zigo-radius-sm);
  background-color: var(--zigo-error-700);
  color: var(--zigo-action-primary-text);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  transition: filter var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-btn-danger:hover {
  filter: brightness(0.88);
}
.zigo-btn-danger:focus-visible {
  outline: 0;
  box-shadow: var(--zigo-shadow-focus);
}
/* Quiet tertiary action — text-level buttons in the sheet chrome. */
.zigo-ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border: 0;
  border-radius: var(--zigo-radius-xs);
  background: transparent;
  color: var(--zigo-text-tertiary);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  transition:
    color var(--zigo-motion-fast) var(--zigo-ease-enter),
    background-color var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-ghost-btn:hover {
  color: var(--zigo-text-primary);
  background-color: var(--zigo-neutral-fixed);
}
.zigo-ghost-btn-danger:hover {
  color: var(--zigo-error-500);
}
/* Engaged state for quiet toggles (Pause AI Memory → AI Memory Paused). */
.zigo-ghost-btn.is-on {
  background-color: var(--zigo-warning-soft);
  color: var(--zigo-warning-text);
}
.zigo-ghost-btn:focus-visible {
  outline: 0;
  box-shadow: var(--zigo-shadow-focus);
}
/* Keyboard hint on accent/inverse surfaces. */
.zigo-kbd-inverse {
  flex-shrink: 0;
  padding: 2px 6px;
  border-radius: var(--zigo-radius-xs);
  background-color: rgba(0, 0, 0, 0.18);
  font-size: 10px;
  font-weight: 400;
  color: var(--zigo-action-primary-text);
}
/* ⌘↵ press feedback on the bulk-execute button. */
.zigo-btn-primary.is-pressing {
  transform: scale(0.95);
  transition: transform var(--zigo-motion-fast) var(--zigo-ease-enter);
}

/* Info-tinted text/icon utility — matches .zigo-text-accent/-success. */
.zigo-text-info {
  color: var(--zigo-info-fixed-text);
}

@media (prefers-reduced-motion: reduce) {
  .zigo-capture-overlay,
  .zigo-overlay,
  .zigo-capture-sheet,
  .zigo-sheet,
  .zigo-btn-dark,
  .zigo-ghost-btn,
  .zigo-btn-primary.is-pressing {
    transition: none;
  }
  .zigo-capture-ping::before,
  .zigo-eq-bar {
    animation: none;
  }
}

/* ════════════════════════════════════════════════════════════════════
   Inbox / Review — Stitch "Capture Review & Triage" surface.
   Same contract: Metronic utilities own geometry; these classes own
   brand skin over the semantic tokens (warning/danger triage tones
   resolve per theme like the existing accent/info/success set).
   ════════════════════════════════════════════════════════════════════ */

/* ── Label chips — review-card meta tags (radius-sm, icon + label) ── */
.zigo-label-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px var(--zigo-space-2);
  border-radius: var(--zigo-radius-sm);
  font-size: 11px;
  line-height: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.zigo-label-chip-success {
  background-color: var(--zigo-success-soft);
  color: var(--zigo-success-text);
}
.zigo-label-chip-warning {
  background-color: var(--zigo-warning-soft);
  color: var(--zigo-warning-text);
}
.zigo-label-chip-danger {
  background-color: var(--zigo-danger-soft);
  color: var(--zigo-danger-text);
}
.zigo-label-chip-info {
  background-color: var(--zigo-info-fixed);
  color: var(--zigo-info-fixed-text);
}
.zigo-label-chip-neutral {
  background-color: var(--zigo-neutral-fixed);
  color: var(--zigo-neutral-fixed-text);
}

/* ── Pill-chip tones — filter bar counts, stage + status chips ───── */
.zigo-chip-warning {
  background-color: var(--zigo-warning-soft);
  color: var(--zigo-warning-text);
}
.zigo-chip-danger {
  background-color: var(--zigo-danger-soft);
  color: var(--zigo-danger-text);
}
.zigo-chip-info {
  background-color: var(--zigo-info-fixed);
  color: var(--zigo-info-fixed-text);
}

/* ── Status dots — section markers + live-queue pulse ────────────── */
.zigo-dot-warning {
  background-color: var(--zigo-warning);
}
.zigo-dot-danger {
  background-color: var(--zigo-danger);
}
.zigo-dot-info {
  background-color: var(--zigo-info);
}
.zigo-dot-live {
  width: 8px;
  height: 8px;
  background-color: var(--zigo-accent);
  animation: zigo-dot-live 1.6s ease-in-out infinite;
}
@keyframes zigo-dot-live {
  50% {
    opacity: 0.35;
  }
}

/* ── Breadcrumb workspace pill + mini logo mark ──────────────────── */
.zigo-crumb-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--zigo-radius-full);
  background-color: var(--zigo-surface-low);
  color: var(--zigo-text-primary);
  font-size: 12px;
  font-weight: 600;
}
.zigo-logo-mark-xs {
  width: 18px;
  height: 18px;
  border-radius: var(--zigo-radius-full);
}

/* ── Filter pills — queue category switcher ──────────────────────── */
.zigo-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px var(--zigo-space-3);
  border: 0;
  border-radius: var(--zigo-radius-sm);
  background-color: var(--zigo-bg-surface);
  box-shadow: var(--zigo-shadow-xs);
  color: var(--zigo-text-primary);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  transition:
    background-color var(--zigo-motion-fast) var(--zigo-ease-enter),
    color var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-filter-pill:hover {
  background-color: var(--zigo-surface-low);
}
.zigo-filter-pill.is-active,
.zigo-filter-pill.is-active:hover {
  background-color: var(--zigo-action-secondary-bg);
  color: var(--zigo-action-secondary-text);
}
.zigo-filter-pill:focus-visible {
  outline: 0;
  box-shadow: var(--zigo-shadow-focus);
}
.zigo-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  padding: 0 6px;
  border-radius: var(--zigo-radius-full);
  background-color: var(--zigo-neutral-fixed);
  color: var(--zigo-neutral-fixed-text);
  font-size: 10px;
  font-weight: 700;
}
.zigo-filter-pill.is-active .zigo-count {
  background-color: var(--zigo-action-secondary-hover);
  color: var(--zigo-action-secondary-text);
}

/* ── Compact search pill (filter parameters) ─────────────────────── */
.zigo-search-sm {
  padding-block: 4px;
  border-radius: var(--zigo-radius-sm);
}

/* ── Areas grid reorder mode (WF-187) — own cards carry the grab      */
/*    affordance on the icon-tile; the dragged col dims + outlines,    */
/*    and the drop boundary marks its inline-start edge (logical       */
/*    property — never physical left/right, so RTL flips correctly).   */
[data-zigo-area-grid].is-reordering [data-zigo-area-col] {
  position: relative;
}
[data-zigo-area-grid].is-reordering
  [data-zigo-area][data-zigo-area-mine="true"] {
  cursor: grab;
}
[data-zigo-area-grid].is-reordering
  [data-zigo-area][data-zigo-area-mine="true"]
  .zigo-icon-tile {
  cursor: grab;
}
[data-zigo-area-grid].is-reordering
  [data-zigo-area][data-zigo-area-mine="true"]:active {
  cursor: grabbing;
}
[data-zigo-area-grid] [data-zigo-area-col].is-dragging {
  opacity: 0.5;
  outline: 2px dashed var(--zigo-border-focus);
  outline-offset: 2px;
  border-radius: var(--zigo-radius-lg);
}
[data-zigo-area-grid] [data-zigo-area-col].is-drop-target::before,
[data-zigo-area-grid] [data-zigo-area-col].is-drop-after::before {
  content: "";
  position: absolute;
  inset-block: 6px;
  width: 3px;
  border-radius: var(--zigo-radius-full);
  background-color: var(--zigo-accent);
}
/* is-drop-target = insertion before the col (inline-start edge);
   is-drop-after = appended after the last col (inline-end edge).   */
[data-zigo-area-grid] [data-zigo-area-col].is-drop-target::before {
  inset-inline-start: -3px;
}
[data-zigo-area-grid] [data-zigo-area-col].is-drop-after::before {
  inset-inline-end: -3px;
}
.zigo-area-movers {
  display: flex;
  justify-content: flex-end;
  gap: var(--zigo-space-1);
  padding: var(--zigo-space-1) 0 0;
}
/* Disabled pill/search while reorder mode paints the full payload. */
.zigo-filter-pill:disabled {
  opacity: 0.55;
  cursor: default;
}
@media (prefers-reduced-motion: reduce) {
  [data-zigo-area-grid] [data-zigo-area-col].is-dragging,
  [data-zigo-area-grid] [data-zigo-area-col].is-drop-target::before {
    transition: none;
  }
}

/* ── Areas grid polish — card affordance, paint-in stagger, and the   */
/*    trailing create tile. .zigo-area-card keeps .zigo-panel chrome   */
/*    and adds the lift/border affordance only to card hosts; reorder  */
/*    cols opt out (.is-reordering suspends the stagger so drag        */
/*    reparents never replay it). The stagger var rides each col.      */
@keyframes zigo-area-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
[data-zigo-area-grid]:not(.is-reordering) > * {
  animation:
    zigo-area-in var(--zigo-motion-base) var(--zigo-ease-enter) backwards;
  animation-delay: calc(var(--zigo-area-i, 0) * 35ms);
}
.zigo-area-card {
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform var(--zigo-motion-base) var(--zigo-ease-enter),
    box-shadow var(--zigo-motion-base) var(--zigo-ease-enter),
    background-color var(--zigo-motion-fast) var(--zigo-ease-enter),
    border-color var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-area-card:hover {
  transform: translateY(-2px);
  border-color: var(--zigo-border-default);
  background-color: var(--zigo-bg-surface);
  box-shadow: var(--zigo-shadow-md);
}
.zigo-area-card:focus-visible {
  outline: 0;
  box-shadow: var(--zigo-shadow-focus);
}
/* The icon glyph joins the tile's solid hover state — color on the
   icon element itself (not just the tile) so keenduotone ::before and
   iconify currentColor both resolve white. */
.zigo-area-card:hover .zigo-icon-tile-accent {
  background-color: var(--zigo-accent);
  color: var(--zigo-action-primary-text);
}
.zigo-area-card:hover .zigo-icon-tile-accent > * {
  color: var(--zigo-action-primary-text);
}
.zigo-area-card:hover .zigo-icon-tile-info {
  background-color: var(--zigo-info);
  color: var(--zigo-action-primary-text);
}
.zigo-area-card:hover .zigo-icon-tile-info > * {
  color: var(--zigo-action-primary-text);
}
.zigo-area-card:hover .zigo-icon-tile-neutral {
  background-color: var(--zigo-bg-inverse);
  color: var(--zigo-text-inverse);
}
.zigo-area-card:hover .zigo-icon-tile-neutral > * {
  color: var(--zigo-text-inverse);
}
.zigo-area-card .zigo-area-arrow {
  transition: transform var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-area-card:hover .zigo-area-arrow {
  transform: translateX(3px);
}
/* RTL: the arrow is a zigo-rtl-mirror glyph — compose the nudge WITH
   scaleX(-1) (a lone translate would un-mirror it), forward = left. */
[dir="rtl"] .zigo-area-card:hover .zigo-area-arrow {
  transform: translateX(-3px) scaleX(-1);
}
/* The dashed create tile — same col slot + radius as the cards so the
   grid reads continuous; the hover state echoes the action-tile
   accent swap. */
.zigo-area-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--zigo-space-2);
  width: 100%;
  height: 100%;
  padding: var(--zigo-space-6);
  border: 1.5px dashed var(--zigo-border-strong);
  border-radius: var(--zigo-radius-md);
  background-color: transparent;
  color: var(--zigo-text-secondary);
  text-align: center;
  cursor: pointer;
  transition:
    border-color var(--zigo-motion-fast) var(--zigo-ease-enter),
    background-color var(--zigo-motion-fast) var(--zigo-ease-enter),
    color var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-area-add:hover {
  border-color: var(--zigo-accent);
  background-color: var(--zigo-accent-fixed);
  color: var(--zigo-accent-fixed-text);
}
.zigo-area-add:hover .zigo-icon-tile-accent {
  background-color: var(--zigo-accent);
  color: var(--zigo-action-primary-text);
}
.zigo-area-add:hover .zigo-icon-tile-accent > * {
  color: var(--zigo-action-primary-text);
}
.zigo-area-add:focus-visible {
  outline: 0;
  box-shadow: var(--zigo-shadow-focus);
}
@media (prefers-reduced-motion: reduce) {
  [data-zigo-area-grid] > * {
    animation: none;
  }
  .zigo-area-card,
  .zigo-area-card .zigo-area-arrow,
  .zigo-area-add {
    transition: none;
  }
}

/* ── Field-definition reorder (WF-193) — the same affordance language */
/*    as the areas grid, block-axis: the drop boundary marks the       */
/*    landing row's block-start edge (block-end on the final append).  */
/*    Logical properties keep RTL correct by construction.            */
[data-zigo-fields-list].is-reordering [data-zigo-field-row] {
  position: relative;
  cursor: grab;
  padding-block: var(--zigo-space-1);
  border-radius: var(--zigo-radius-md);
}
[data-zigo-fields-list].is-reordering [data-zigo-field-row]:active {
  cursor: grabbing;
}
[data-zigo-fields-list] [data-zigo-field-row].is-dragging {
  opacity: 0.5;
  outline: 2px dashed var(--zigo-border-focus);
  outline-offset: 2px;
}
/* is-drop-target = insertion before the row (block-start edge);
   is-drop-after = appended after the last row (block-end edge).   */
[data-zigo-fields-list] [data-zigo-field-row].is-drop-target::before,
[data-zigo-fields-list] [data-zigo-field-row].is-drop-after::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 2px;
  border-radius: var(--zigo-radius-full);
  background-color: var(--zigo-accent);
}
[data-zigo-fields-list] [data-zigo-field-row].is-drop-target::before {
  inset-block-start: -3px;
}
[data-zigo-fields-list] [data-zigo-field-row].is-drop-after::before {
  inset-block-end: -3px;
}
@media (prefers-reduced-motion: reduce) {
  [data-zigo-fields-list] [data-zigo-field-row].is-dragging,
  [data-zigo-fields-list] [data-zigo-field-row].is-drop-target::before,
  [data-zigo-fields-list] [data-zigo-field-row].is-drop-after::before {
    transition: none;
  }
}

/* ── Goal milestone reorder (WF-212) — drag handle + insertion       */
/*    indicator on [data-zigo-goald-milestones] rows. The handle is    */
/*    progressive-disclosure (hover/focus-within reveal, always on     */
/*    coarse pointers); the indicator marks the landing boundary: a    */
/*    block-edge line anchored by an inline-start nub, so it flips     */
/*    with the reading direction in RTL.                               */
[data-zigo-goald-milestones] [data-milestone-id] {
  position: relative;
}
.zigo-ms-drag-handle {
  align-self: flex-start;
  cursor: grab;
  opacity: 0;
  transition: opacity var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-ms-drag-handle:active {
  cursor: grabbing;
}
[data-milestone-id]:hover .zigo-ms-drag-handle,
[data-milestone-id]:focus-within .zigo-ms-drag-handle {
  opacity: 1;
}
@media (pointer: coarse) {
  .zigo-ms-drag-handle {
    opacity: 1;
  }
}
[data-zigo-goald-milestones] [data-milestone-id].is-dragging {
  opacity: 0.5;
  outline: 2px dashed var(--zigo-border-focus);
  outline-offset: 2px;
}
/* is-drop-before = insertion before the row (block-start edge);
   is-drop-after  = appended after the last row (block-end edge).   */
[data-zigo-goald-milestones] [data-milestone-id].is-drop-before::before,
[data-zigo-goald-milestones] [data-milestone-id].is-drop-after::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 2px;
  border-radius: var(--zigo-radius-full);
  background-color: var(--zigo-accent);
}
[data-zigo-goald-milestones] [data-milestone-id].is-drop-before::before {
  inset-block-start: -3px;
}
[data-zigo-goald-milestones] [data-milestone-id].is-drop-after::before {
  inset-block-end: -3px;
}
/* inline-start marker nub on the boundary line — the RTL tell. */
[data-zigo-goald-milestones] [data-milestone-id].is-drop-before::after,
[data-zigo-goald-milestones] [data-milestone-id].is-drop-after::after {
  content: "";
  position: absolute;
  inset-inline-start: -2px;
  width: 6px;
  height: 6px;
  border-radius: var(--zigo-radius-full);
  background-color: var(--zigo-accent);
}
[data-zigo-goald-milestones] [data-milestone-id].is-drop-before::after {
  inset-block-start: -5px;
}
[data-zigo-goald-milestones] [data-milestone-id].is-drop-after::after {
  inset-block-end: -5px;
}
@media (prefers-reduced-motion: reduce) {
  .zigo-ms-drag-handle,
  [data-zigo-goald-milestones] [data-milestone-id] {
    transition: none;
  }
}

/* ── Goal progress journal (WF-214) — the per-row Correct ghost is    */
/*    progressive-disclosure like the milestone drag handle above:     */
/*    revealed on hover/focus-within (keyboard parity), always shown   */
/*    on coarse pointers.                                              */
.zigo-progress-correct {
  opacity: 0;
  transition: opacity var(--zigo-motion-fast) var(--zigo-ease-enter);
}
[data-progress-id]:hover .zigo-progress-correct,
[data-progress-id]:focus-within .zigo-progress-correct {
  opacity: 1;
}
@media (pointer: coarse) {
  .zigo-progress-correct {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .zigo-progress-correct {
    transition: none;
  }
}
/* .zigo-ghost-btn is display:inline-flex — [hidden] loses without a   */
/* re-declare (same contract as [data-zigo-goal-select] above).        */
.zigo-progress-correct[hidden],
[data-zigo-progress-more][hidden],
[data-zigo-progress-less][hidden] {
  display: none !important;
}

/* ── Goal detail hero — document-style editor + glance strip + the   */
/*    sticky context rail. Title/description shed the boxed .zigo-    */
/*    input chrome for a document feel: the border box stays (no      */
/*    layout shift) but renders transparent until hover/focus        */
/*    reveals the editable affordance.                               */
.zigo-input-display {
  min-height: 0;
  padding-block: 2px;
  padding-inline: 0;
  border-color: transparent;
  background-color: transparent;
  font-family: var(--zigo-font-display);
  font-size: var(--zigo-text-h3-size);
  line-height: var(--zigo-text-h3-line);
  font-weight: var(--zigo-text-h3-weight);
  letter-spacing: var(--zigo-text-h3-tracking);
}
.zigo-input-ghost {
  min-height: 0;
  padding-block: 2px;
  padding-inline: 0;
  border-color: transparent;
  background-color: transparent;
  color: var(--zigo-text-secondary);
  /* Vertical only — a horizontal drag would blow out the hero row. */
  resize: vertical;
}
.zigo-input-display:hover,
.zigo-input-ghost:hover {
  border-color: var(--zigo-border-default);
}
/* Hero title/desc block — wraps the side fixture (progress dial, meta)
   onto its own centered line under ~620px instead of squeezing to a
   sliver. Shared by the record-detail heroes (goal/task). */
.zigo-detail-hero-text {
  min-inline-size: 260px;
}
/* Context rail — sticky on xl so record meta stays in view while the
   working column scrolls (the inspector's 92px top offset). Shared by
   the record-detail routes (goal/task). */
@media (min-width: 1200px) {
  .zigo-detail-rail {
    position: sticky;
    top: 92px;
  }
}
/* Milestone status glyph — checklist read on every roadmap row. */
[data-zigo-goald-milestones] .zigo-ms-status {
  display: inline-flex;
  flex-shrink: 0;
  margin-block-start: 2px;
}

/* ── Select-option editor (WF-198) — row-based label+value editor    */
/*    rendered by the shared optionListEditor composable inside the   */
/*    field-kind=select dialog. Rows reuse the shared .zigo-input     */
/*    skin at compact metrics and .is-invalid for duplicate/empty     */
/*    values; logical properties keep RTL correct by construction.    */
.zigo-optlist {
  display: flex;
  flex-direction: column;
  gap: var(--zigo-space-2);
}
.zigo-optlist__rows {
  display: flex;
  flex-direction: column;
  gap: var(--zigo-space-2);
}
.zigo-optlist__row {
  display: flex;
  align-items: center;
  gap: var(--zigo-space-2);
}
.zigo-optlist__row .zigo-input {
  min-height: 36px;
  min-width: 0;
  padding-block: 3px;
  font-size: var(--zigo-text-body-sm-size);
}
.zigo-optlist__label {
  flex: 3 1 0;
}
.zigo-optlist__value {
  flex: 2 1 0;
}
.zigo-optlist__moves {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.zigo-optlist__row .zigo-ghost-btn {
  flex-shrink: 0;
}
.zigo-optlist [data-zigo-option-add] {
  align-self: flex-start;
}
.zigo-optlist__error {
  margin: 0;
  font-size: var(--zigo-text-caption-size);
  line-height: 1.4;
  color: var(--zigo-danger-text);
}

/* ── Records toolbar (WF-192) — sort/order controls + per-field       */
/*    filter rows above the area records list. Logical properties      */
/*    only, token spacing; the controls reuse the shared input/pill    */
/*    skins so focus, disabled and reduced-motion states come free.    */
.zigo-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--zigo-space-2) var(--zigo-space-3);
  padding: var(--zigo-space-2) var(--zigo-space-3);
  margin-block-end: var(--zigo-space-3);
  border: 1px solid var(--zigo-border-default);
  border-radius: var(--zigo-radius-md);
  background-color: var(--zigo-bg-surface);
}
.zigo-toolbar-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--zigo-space-2);
  min-width: 0;
}
.zigo-toolbar-filters {
  flex: 1 1 auto;
}
.zigo-toolbar-field {
  display: inline-flex;
  align-items: center;
  gap: var(--zigo-space-2);
  margin: 0;
}
.zigo-toolbar-filter {
  display: inline-flex;
  align-items: center;
  gap: var(--zigo-space-2);
  padding: var(--zigo-space-0-5) var(--zigo-space-2);
  border: 1px solid var(--zigo-border-default);
  border-radius: var(--zigo-radius-sm);
  background-color: var(--zigo-surface-low);
}
/* Toolbar controls sit in a dense row — compact input metrics. */
.zigo-toolbar .zigo-input {
  min-height: 32px;
  padding-block: 2px;
  font-size: var(--zigo-text-caption-size);
  line-height: var(--zigo-text-caption-line);
}
.zigo-toolbar .zigo-select-wrap {
  min-width: 8rem;
}
.zigo-toolbar .zigo-select {
  width: 100%;
}
.zigo-filter-pill-add {
  border: 1px dashed var(--zigo-border-strong);
  background-color: transparent;
  box-shadow: none;
}
@media (prefers-reduced-motion: reduce) {
  .zigo-toolbar .zigo-input {
    transition: none;
  }
}

/* ── Record table view (WF-194) — one row per record under the same   */
/*    data-zigo-* contract as the cards. The scroll host keeps wide    */
/*    schemas usable on narrow viewports (overflow-x only — no stacked */
/*    morphing, the card mode is the small-screen layout), the header  */
/*    sticks inside the scroll host, and number/money columns align    */
/*    to the numeric edge. Logical properties only, so RTL mirrors.    */
.zigo-table-scroll {
  overflow-x: auto;
  /* The vertical bound makes the HOST the scroll container, which is */
  /* what position:sticky resolves against — unbounded it grows to    */
  /* content height and the sticky thead can never engage.            */
  max-block-size: min(70vh, 44rem);
  border: 1px solid var(--zigo-border-default);
  border-radius: var(--zigo-radius-md);
  background-color: var(--zigo-bg-surface);
}
.zigo-table {
  inline-size: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.zigo-table th,
.zigo-table td {
  padding: var(--zigo-space-2) var(--zigo-space-3);
  border-block-end: 1px solid var(--zigo-border-default);
  text-align: start;
  vertical-align: middle;
}
.zigo-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background-color: var(--zigo-bg-surface);
  color: var(--zigo-text-secondary);
  font-size: var(--zigo-text-caption-size);
  line-height: var(--zigo-text-caption-line);
  font-weight: 600;
  white-space: nowrap;
}
.zigo-table tbody tr:last-child td {
  border-block-end: 0;
}
.zigo-table tbody td {
  color: var(--zigo-text-primary);
  font-size: var(--zigo-text-body-sm-size);
  line-height: var(--zigo-text-body-sm-line);
}
/* Long values (the ≤4000-char text kind, URLs) can never bust the
   column budget — text/link cells additionally title the raw value. */
.zigo-table td {
  max-inline-size: 16rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* overflow:hidden clips focus rings at the padding box — a focused    */
/* cell control (e.g. a truncated link anchor) gets its outline back   */
/* through a transient unclip rather than losing focus visibility.     */
.zigo-table td:focus-within {
  overflow: visible;
}
.zigo-table-num {
  text-align: end;
}
/* The actions column hugs its ghost-button cluster at the end edge. */
.zigo-table-actions {
  inline-size: 1%;
  white-space: nowrap;
  text-align: end;
}

/* ── Bulk record selection (WF-200) — opt-in mode paints a leading    */
/*    checkbox on every mounted card/row; the checked set reads         */
/*    through the shared accent-wash treatment (mail-item parity),      */
/*    mirrored for RTL. The disabled box marks non-writable rows        */
/*    (shared spaces: another member's records).                        */
.zigo-table .zigo-table-check {
  inline-size: 2.75rem;
  padding-inline: var(--zigo-space-2);
  text-align: center;
}
[data-zigo-area-record].is-selecting {
  position: relative;
}
.zigo-panel-inset[data-zigo-area-record].is-selected {
  box-shadow: inset 0 0 0 1.5px
    color-mix(in srgb, var(--zigo-accent) 45%, transparent);
  background-image: linear-gradient(
    90deg,
    color-mix(in srgb, var(--zigo-accent) 10%, transparent),
    transparent 45%
  );
}
/* Same mirror as .zigo-mail-item.is-selected — the brand wash must    */
/* follow the inline-start edge in RTL too.                            */
[dir="rtl"] .zigo-panel-inset[data-zigo-area-record].is-selected {
  background-image: linear-gradient(
    270deg,
    color-mix(in srgb, var(--zigo-accent) 10%, transparent),
    transparent 45%
  );
}
/* <tr> can't hold the ::before edge — its cells take the flat wash. */
.zigo-table tbody tr[data-zigo-area-record].is-selected td {
  background-color: color-mix(in srgb, var(--zigo-accent) 8%, transparent);
}
/* .zigo-ghost-btn is display:inline-flex — the [hidden] UA rule loses, */
/* the same re-declare as [data-zigo-record-overflow][hidden] above.    */
[data-zigo-select-toggle][hidden] {
  display: none !important;
}

/* ── WF-209 goal bulk selection — the WF-200 record contract carried  */
/*    onto portfolio cards: a leading checkbox per card and the shared */
/*    accent-wash on the checked row, mirrored for RTL. Both card      */
/*    variants ride .zigo-panel.                                       */
.zigo-panel[data-zigo-goal-filters].is-selected {
  box-shadow: inset 0 0 0 1.5px
    color-mix(in srgb, var(--zigo-accent) 45%, transparent);
  background-image: linear-gradient(
    90deg,
    color-mix(in srgb, var(--zigo-accent) 10%, transparent),
    transparent 45%
  );
}
[dir="rtl"] .zigo-panel[data-zigo-goal-filters].is-selected {
  background-image: linear-gradient(
    270deg,
    color-mix(in srgb, var(--zigo-accent) 10%, transparent),
    transparent 45%
  );
}
/* .zigo-ghost-btn is display:inline-flex — the [hidden] UA rule loses,
   same re-declare as [data-zigo-select-toggle][hidden] above. */
[data-zigo-goal-select][hidden] {
  display: none !important;
}

/* ── WF-210 empty-state split — .zigo-panel is display:flex, so the   */
/*    portfolio variant's [hidden] needs the same re-declare; the      */
/*    filtered variant carries it for symmetry.                        */
[data-zigo-goal-empty-filtered][hidden],
[data-zigo-goal-empty-portfolio][hidden] {
  display: none !important;
}

/* ── Record expander (WF-195) — the read-only <dl> inside the        */
/*    transient zigo-dialog: every schema field as a term/definition   */
/*    pair through the shared fieldValue() output. The list scrolls    */
/*    inside a bounded block so a 100-field schema can't push the      */
/*    meta/actions rows off screen; logical properties keep RTL        */
/*    aligned to the start edge.                                       */
.zigo-dl {
  display: flex;
  flex-direction: column;
  gap: var(--zigo-space-3);
  max-block-size: 60vh;
  margin: 0;
  overflow-block: auto;
  overscroll-behavior: contain;
}
.zigo-dl dt {
  color: var(--zigo-text-tertiary);
  font-size: var(--zigo-text-caption-size);
  line-height: var(--zigo-text-caption-line);
}
.zigo-dl dd {
  margin: var(--zigo-space-0-5) 0 0;
  color: var(--zigo-text-primary);
  font-size: var(--zigo-text-body-sm-size);
  line-height: var(--zigo-text-body-sm-line);
  overflow-wrap: anywhere;
  text-align: start;
}
/* ≤4000-char `text` values render full-length — newlines survive. */
.zigo-pre-wrap {
  white-space: pre-wrap;
}
/* The card overflow block carries .d-flex — Bootstrap's display   */
/* utilities are !important and would otherwise beat the [hidden]  */
/* UA rule (the same reason ZigoElement re-declares it on :host).  */
[data-zigo-record-overflow][hidden] {
  display: none !important;
}

/* ── Areas card kebab + shared action menu (WF-188) — the trigger    */
/*    floats at the col's inline-end edge above the card chrome; the   */
/*    menu surface is the shared .zigo-menu appended to document.body  */
/*    with position:fixed — the JS anchor math already resolved        */
/*    LTR/RTL, so only logical spacing lives in these rules.           */
[data-zigo-area-col] {
  position: relative;
  /* Column flex: the card grows into the stretched row height (equal-
     height cards per row) while the movers keep natural height INSIDE
     the col — the old h-100 card covered them instead. */
  display: flex;
  flex-direction: column;
}
[data-zigo-area-col] > [data-zigo-area] {
  flex: 1 0 auto;
}
.zigo-area-menu {
  position: absolute;
  inset-block-start: var(--zigo-space-2);
  inset-inline-end: var(--zigo-space-2);
  z-index: 2;
  /* WCAG 2.5.8 — the kebab is the card's only menu affordance; the
     ghost-btn's ~20px box under-ran the 24×24 target floor. */
  min-block-size: 24px;
  min-inline-size: 24px;
  justify-content: center;
}
/* The chips share the card's top row with the kebab — reserve the
   trigger's footprint so a long chip list never slides beneath it. */
.zigo-area-chips {
  padding-inline-end: var(--zigo-space-8);
}

@keyframes zigo-menu-in {
  from {
    opacity: 0;
    transform: translateY(-2px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.zigo-menu {
  position: fixed;
  z-index: 1050; /* above shell chrome, below .zigo-overlay (1090+) */
  min-inline-size: 180px;
  max-inline-size: min(280px, calc(100vw - 16px));
  max-block-size: min(320px, calc(100vh - 16px));
  overflow-block: auto;
  padding: var(--zigo-space-1);
  border: 1px solid var(--zigo-border-default);
  border-radius: var(--zigo-radius-md);
  background-color: var(--zigo-bg-surface);
  color: var(--zigo-text-primary);
  box-shadow: var(--zigo-shadow-lg);
  animation: zigo-menu-in var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-menu__item {
  display: flex;
  align-items: center;
  gap: var(--zigo-space-2);
  inline-size: 100%;
  padding: var(--zigo-space-2) var(--zigo-space-3);
  border: 0;
  border-radius: var(--zigo-radius-sm);
  background: transparent;
  color: var(--zigo-text-primary);
  font-size: var(--zigo-text-body-sm-size);
  font-weight: 500;
  line-height: var(--zigo-text-body-sm-line);
  text-align: start;
  cursor: pointer;
}
.zigo-menu__item:hover {
  background-color: var(--zigo-neutral-fixed);
}
.zigo-menu__item:focus-visible {
  outline: 0;
  box-shadow: var(--zigo-shadow-focus);
}
.zigo-menu__item:disabled {
  opacity: 0.55;
  cursor: default;
}
.zigo-menu__item.zigo-danger {
  color: var(--zigo-danger-text);
}
.zigo-menu__item.zigo-danger:hover,
.zigo-menu__item.zigo-danger:focus-visible {
  background-color: var(--zigo-danger-soft);
}
.zigo-menu__sep {
  block-size: 1px;
  margin-block: var(--zigo-space-1);
  background-color: var(--zigo-border-default);
}
@media (prefers-reduced-motion: reduce) {
  .zigo-menu {
    animation: none;
  }
}

/* ── Template blueprint preview (WF-190) — the disclosure chevron   */
/*    sits beside the selection card (never nested inside it); the    */
/*    panel hangs under the row as an inset list of label/kind/       */
/*    required/option chips. Logical properties only, so RTL mirrors  */
/*    cleanly.                                                        */
/* Ligature glyphs render as inline <span>/<i> — transforms need a
   block-level box to rotate. */
[data-zigo-template-expand] .zigo-ms-16 {
  display: inline-block;
  transition: transform var(--zigo-motion-fast) var(--zigo-ease-enter);
}
[data-zigo-template-expand][aria-expanded="true"] .zigo-ms-16 {
  transform: rotate(180deg);
}
.zigo-template-fields {
  margin-block-start: var(--zigo-space-1);
  margin-inline-start: var(--zigo-space-2);
  padding-block: var(--zigo-space-1);
  padding-inline: var(--zigo-space-3);
  border-inline-start: 2px solid var(--zigo-border-default);
  border-radius: var(--zigo-radius-sm);
  background-color: var(--zigo-bg-surface);
}
@media (prefers-reduced-motion: reduce) {
  [data-zigo-template-expand] .zigo-ms-16 {
    transition: none;
  }
}

/* ── Review cards ────────────────────────────────────────────────── */
.zigo-review {
  box-shadow: var(--zigo-shadow-sm);
  transition:
    box-shadow var(--zigo-motion-fast) var(--zigo-ease-enter),
    outline-color var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-review:hover {
  box-shadow: var(--zigo-shadow-md);
}
/* The queue's active item — amber leading edge like the mockup. */
.zigo-review.is-selected {
  outline: 2px solid color-mix(in srgb, var(--zigo-warning) 40%, transparent);
  outline-offset: -2px;
  background-image: linear-gradient(
    90deg,
    var(--zigo-warning-soft),
    transparent 45%
  );
}
/* The leading-edge wash is a physical gradient — mirror it so the edge
   stays on the inline-start side in RTL. */
[dir="rtl"] .zigo-review.is-selected {
  background-image: linear-gradient(
    270deg,
    var(--zigo-warning-soft),
    transparent 45%
  );
}

/* ── Source quote block ──────────────────────────────────────────── */
.zigo-quote {
  display: flex;
  align-items: flex-start;
  gap: var(--zigo-space-2);
  padding: var(--zigo-space-3);
  border-radius: var(--zigo-radius-sm);
  background-color: var(--zigo-surface-low);
}

/* ── Inline clarification box (ambiguity resolution) ─────────────── */
.zigo-clarify {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--zigo-space-2);
  padding: var(--zigo-space-3);
  border-radius: var(--zigo-radius-sm);
  background-color: var(--zigo-warning-soft);
}
.zigo-clarify-label {
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: var(--zigo-warning-text);
}
.zigo-clarify-label .material-symbols-outlined,
.zigo-clarify-label .ki-duotone {
  color: var(--zigo-warning);
}
.zigo-option-pill {
  padding: 4px 10px;
  border: 0;
  border-radius: var(--zigo-radius-xs);
  background-color: var(--zigo-bg-surface);
  box-shadow: var(--zigo-shadow-xs);
  color: var(--zigo-text-primary);
  font-size: 11px;
  font-weight: 500;
  line-height: 14px;
  white-space: nowrap;
  transition:
    background-color var(--zigo-motion-fast) var(--zigo-ease-enter),
    outline-color var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-option-pill:hover {
  background-color: var(--zigo-neutral-fixed);
}
.zigo-option-pill.is-selected {
  outline: 2px solid var(--zigo-accent);
  outline-offset: -2px;
  font-weight: 600;
}
.zigo-option-pill:focus-visible {
  outline: 0;
  box-shadow: var(--zigo-shadow-focus);
}
.zigo-option-more {
  background-color: color-mix(in srgb, var(--zigo-warning) 18%, transparent);
  box-shadow: none;
  color: var(--zigo-warning-text);
}
.zigo-option-more:hover {
  background-color: color-mix(in srgb, var(--zigo-warning) 28%, transparent);
}

/* ── Before/proposed diff (consequential external actions) ───────── */
.zigo-diff {
  display: flex;
  flex-direction: column;
  gap: var(--zigo-space-3);
  padding: var(--zigo-space-3);
  border-radius: var(--zigo-radius-md);
  background-color: var(--zigo-surface-low);
}
@media (min-width: 768px) {
  .zigo-diff {
    flex-direction: row;
    align-items: stretch;
  }
}
.zigo-diff-card {
  flex: 1 1 0%;
  padding: var(--zigo-space-3);
  border-radius: var(--zigo-radius-sm);
  background-color: var(--zigo-bg-surface);
  box-shadow: var(--zigo-shadow-xs);
}
.zigo-diff-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: var(--zigo-radius-full);
  background-color: var(--zigo-accent-fixed);
  color: var(--zigo-accent-strong);
}
/* The mutation arrow reads left-to-right in LTR; flip for RTL. */
[dir="rtl"] .zigo-diff-arrow .material-symbols-outlined,
[dir="rtl"] .zigo-diff-arrow .ki-duotone {
  transform: scaleX(-1);
}

/* ── Inline status banner (conflict check, provenance) ───────────── */
.zigo-banner {
  display: flex;
  align-items: center;
  gap: var(--zigo-space-2);
  padding: 8px var(--zigo-space-3);
  border-radius: var(--zigo-radius-sm);
  font-size: 11px;
  line-height: 16px;
}
.zigo-banner-success {
  background-color: var(--zigo-success-soft);
  color: var(--zigo-success-text);
}

/* ── Multi-intent sub-cards + batch commit strip ─────────────────── */
.zigo-intent {
  display: flex;
  flex-direction: column;
  padding: var(--zigo-space-3);
  border-radius: var(--zigo-radius-md);
  background-color: var(--zigo-surface-low);
}
.zigo-commit-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--zigo-space-2);
  padding: var(--zigo-space-2) var(--zigo-space-3);
  border-radius: var(--zigo-radius-sm);
  background-color: var(--zigo-neutral-fixed);
}

/* ── Compact accent action (card-level primary) ──────────────────── */
.zigo-btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--zigo-space-2);
  padding: 10px var(--zigo-space-4);
  border: 0;
  border-radius: var(--zigo-radius-sm);
  background-color: var(--zigo-action-primary-bg);
  color: var(--zigo-action-primary-text);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  box-shadow: var(--zigo-shadow-sm);
  transition:
    background-color var(--zigo-motion-fast) var(--zigo-ease-enter),
    transform var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-btn-accent:hover {
  background-color: var(--zigo-action-primary-hover);
  color: var(--zigo-action-primary-text);
}
.zigo-btn-accent:focus-visible {
  outline: 0;
  box-shadow: var(--zigo-shadow-focus);
}
/* Soft-danger variant of the quiet button (Discard Item). */
.zigo-btn-danger-soft:hover {
  background-color: var(--zigo-danger-soft);
  color: var(--zigo-danger-text);
}

/* ── Live inspector — sticky right rail ──────────────────────────── */
.zigo-inspector {
  box-shadow: var(--zigo-shadow-md);
}
@media (min-width: 1200px) {
  .zigo-inspector-sticky {
    position: sticky;
    top: 92px;
  }
}
/* Compact controls inside the inspector (mockup's 36px fields). */
.zigo-inspector .zigo-input {
  min-height: 38px;
  padding-block: 6px;
  font-size: 12px;
}
/* Inspector live ping — reuses the capture ping keyframes. */
.zigo-ping {
  position: relative;
  display: inline-flex;
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}
.zigo-ping::before,
.zigo-ping::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--zigo-radius-full);
  background-color: var(--zigo-accent);
}
.zigo-ping::before {
  animation: zigo-capture-ping 1.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* ── Audio playback — round play trigger + static waveform ───────── */
.zigo-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: var(--zigo-radius-full);
  background-color: var(--zigo-action-primary-bg);
  color: var(--zigo-action-primary-text);
  box-shadow: var(--zigo-shadow-sm);
  cursor: pointer;
  transition:
    transform var(--zigo-motion-fast) var(--zigo-ease-enter),
    background-color var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-play-btn:hover {
  transform: scale(1.06);
  background-color: var(--zigo-action-primary-hover);
}
.zigo-play-btn:focus-visible {
  outline: 0;
  box-shadow: var(--zigo-shadow-focus);
}
.zigo-wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 40px;
  padding: 0 var(--zigo-space-1);
}
.zigo-wave-bar {
  width: 4px;
  border-radius: var(--zigo-radius-full);
  background-color: var(--zigo-accent);
}
.zigo-wave-bar.is-muted {
  background-color: var(--zigo-border-strong);
}

/* ── Tokenized transcript marks (entity highlights) ──────────────── */
.zigo-transcript {
  padding: var(--zigo-space-2);
  border-radius: var(--zigo-radius-sm);
  background-color: var(--zigo-bg-surface);
  color: var(--zigo-text-primary);
  line-height: 1.7;
}
.zigo-mark-warning {
  background-color: var(--zigo-warning-soft);
  color: var(--zigo-warning-text);
}
.zigo-mark-success {
  background-color: var(--zigo-success-soft);
  color: var(--zigo-success-text);
}

/* ── Inspector form fields ───────────────────────────────────────── */
.zigo-field-label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
  color: var(--zigo-text-tertiary);
}
.zigo-field-required::after {
  content: " *";
  color: var(--zigo-accent);
}
.zigo-field-warn {
  background-color: var(--zigo-warning-soft);
  font-weight: 500;
}
/* Select wrapper — drops the native chrome for a token chevron. */
.zigo-select-wrap {
  position: relative;
  display: block;
}
.zigo-select {
  appearance: none;
  -webkit-appearance: none;
  padding-inline-end: var(--zigo-space-8);
}
.zigo-select-wrap::after {
  content: "";
  position: absolute;
  inset-inline-end: 10px;
  top: 50%;
  translate: 0 -50%;
  width: 16px;
  height: 16px;
  pointer-events: none;
  background-color: var(--zigo-text-tertiary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat center / contain;
}

/* Select2 (global plugins bundle) replaces the native select inside
   .zigo-select-wrap — the wrap keeps painting the token chevron while
   the plugin's selection box takes .zigo-input metrics (44px, radius-md,
   surface bg + default border, focus ring). zigo-components.css loads
   after plugins.bundle.css, so equal-specificity overrides win without
   !important. */
.zigo-select-wrap .select2-container {
  display: block;
  width: 100%;
}
.zigo-select-wrap .select2-selection {
  display: flex;
  align-items: center;
  min-height: 44px;
  height: auto;
  border: 1px solid var(--zigo-border-default);
  border-radius: var(--zigo-radius-md);
  background-color: var(--zigo-bg-surface);
  transition:
    border-color var(--zigo-motion-fast) var(--zigo-ease-enter),
    box-shadow var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-select-wrap .select2-selection__rendered {
  width: 100%;
  padding-inline: var(--zigo-space-3) var(--zigo-space-8);
  color: var(--zigo-text-primary);
  line-height: 1.4;
}
/* The bootstrap5 theme zeroes the rendered padding + repaints color
   at 3-class specificity — re-assert the token insets with the same
   weight (this sheet loads after plugins.bundle.css). */
.zigo-select-wrap .select2-selection--single .select2-selection__rendered {
  padding-inline: var(--zigo-space-3) var(--zigo-space-8);
  color: var(--zigo-text-primary);
}
/* Same lead-icon clearance .has-lead gives .zigo-input. */
.zigo-input-icon.has-lead .zigo-select-wrap .select2-selection__rendered {
  padding-inline-start: 36px;
}
/* The wrap's ::after chevron is the indicator — hide select2's own. */
.zigo-select-wrap .select2-selection__arrow {
  display: none;
}
.zigo-select-wrap .select2-container--focus .select2-selection,
.zigo-select-wrap .select2-container--open .select2-selection {
  border-color: var(--zigo-border-focus);
  box-shadow: var(--zigo-shadow-focus);
}

/* JS-driven hiding — class display rules (e.g. .zigo-panel flex) would
   otherwise beat the UA's [hidden] display:none. */
.zigo-review[hidden],
[data-zigo-section][hidden],
[data-zigo-inspector][hidden] {
  display: none;
}
/* The dirty-edits bar carries .d-flex — Bootstrap's display utilities
   are !important and would otherwise beat the [hidden] UA rule. */
[data-zigo-edit-bar][hidden] {
  display: none !important;
}
/* Learning detail affordances carry .d-inline-flex / .zigo-icon-btn —
   the utilities beat the [hidden] UA rule (same re-declare as the
   dirty-edits bar above). */
[data-zigo-journal-more][hidden],
[data-zigo-progress-correct][hidden],
[data-zigo-course-add][hidden],
[data-zigo-resource-add][hidden],
[data-zigo-resource-remove][hidden] {
  display: none !important;
}
/* Keyboard-triage press feedback (inbox.js flashes .is-pressing). */
.zigo-btn-accent.is-pressing,
.zigo-btn-soft.is-pressing,
.zigo-btn-block-accent.is-pressing {
  transform: scale(0.97);
}

@media (prefers-reduced-motion: reduce) {
  .zigo-filter-pill,
  .zigo-review,
  .zigo-option-pill,
  .zigo-btn-accent,
  .zigo-play-btn {
    transition: none;
  }
  .zigo-dot-live,
  .zigo-ping::before {
    animation: none;
  }
  .zigo-ping::before {
    opacity: 0;
  }
}

/* ── Mutation state — cards dim while a request is in flight ─────── */
.zigo-review[aria-busy="true"] {
  opacity: 0.55;
  pointer-events: none;
}

/* ── Mutation toasts — fixed stack above the shell; the aria-live
   region on the container announces each appended row. ───────────── */
.zigo-toasts {
  position: fixed;
  inset-inline-end: var(--zigo-space-4);
  inset-block-end: var(--zigo-space-4);
  z-index: 1120;
  display: flex;
  flex-direction: column;
  gap: var(--zigo-space-2);
  max-width: min(24rem, calc(100vw - 2 * var(--zigo-space-4)));
}
.zigo-toast {
  padding: var(--zigo-space-3) var(--zigo-space-4);
  border-radius: var(--zigo-radius-sm);
  background-color: var(--zigo-bg-surface);
  box-shadow: var(--zigo-shadow-lg);
  border-inline-start: 3px solid var(--zigo-info);
  color: var(--zigo-text-primary);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}
.zigo-toast-success {
  border-inline-start-color: var(--zigo-success);
}
.zigo-toast-warning {
  border-inline-start-color: var(--zigo-warning);
}
.zigo-toast-danger {
  border-inline-start-color: var(--zigo-danger);
}

/* The empty-state + history overlay honour [hidden] (same guard as the
   review cards — class display rules would beat the UA otherwise). */
[data-zigo-empty][hidden],
[data-zigo-queue][hidden],
[data-zigo-readiness][hidden],
[data-zigo-history][hidden],
.zigo-nav-count[hidden] {
  display: none;
}
/* Fixed overlays don't stack under the app chrome. */
.zigo-toasts,
[data-zigo-history] {
  isolation: isolate;
}

@media (prefers-reduced-motion: reduce) {
  .zigo-toast {
    transition: none;
  }
}

/* ════════════════════════════════════════════════════════════════════
   Email — Stitch "Email Intelligence & Action Workspace" surface.
   Same contract: Metronic utilities own geometry; these classes own
   brand skin over the semantic tokens. Three-column workspace: inbox
   triage / thread reading / docked action agent.
   ════════════════════════════════════════════════════════════════════ */

/* Synced-status pulse — green live dot; must follow .zigo-dot-live
   (equal specificity, later order wins over its accent fill). */
.zigo-dot-live.zigo-dot-success {
  background-color: var(--zigo-success);
}

/* ── Segmented control — workspace view tabs + mailbox switcher ───── */
.zigo-seg {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: var(--zigo-radius-sm);
  background-color: var(--zigo-surface-low);
}
.zigo-seg-item {
  padding: 4px 10px;
  border: 0;
  border-radius: var(--zigo-radius-xs);
  background: transparent;
  color: var(--zigo-text-secondary);
  font-size: 11px;
  font-weight: 500;
  line-height: 14px;
  white-space: nowrap;
  transition:
    background-color var(--zigo-motion-fast) var(--zigo-ease-enter),
    color var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-seg-item:hover {
  color: var(--zigo-text-primary);
}
.zigo-seg-item.is-active,
.zigo-seg-item.is-active:hover {
  background-color: var(--zigo-bg-surface);
  color: var(--zigo-text-primary);
  font-weight: 600;
  box-shadow: var(--zigo-shadow-xs);
}
.zigo-seg-item:focus-visible {
  outline: 0;
  box-shadow: var(--zigo-shadow-focus);
}
/* Equal-column variant — the per-account inbox switcher stretches to
   fill its card, columns sized by item count. */
.zigo-seg-split {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
}
/* Stacked label + meta variant — the per-account inbox switcher. */
.zigo-seg-item-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 6px 4px;
}
.zigo-seg-item-col.is-active,
.zigo-seg-item-col.is-active:hover {
  background-color: var(--zigo-accent-fixed);
  color: var(--zigo-accent-fixed-text);
  box-shadow: none;
}
.zigo-seg-item-col.is-active .zigo-seg-meta {
  opacity: 0.8;
}
.zigo-seg-meta {
  font-size: 10px;
  font-weight: 500;
  line-height: 14px;
}

/* ── AI triage buckets — per-owner queue switcher rows ────────────── */
.zigo-triage-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--zigo-space-2);
  width: 100%;
  padding: 8px;
  border: 0;
  border-radius: var(--zigo-radius-sm);
  background: transparent;
  color: var(--zigo-text-secondary);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  text-align: start;
  transition:
    background-color var(--zigo-motion-fast) var(--zigo-ease-enter),
    color var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-triage-item:hover {
  background-color: var(--zigo-surface-low);
  color: var(--zigo-text-primary);
}
.zigo-triage-item.is-active,
.zigo-triage-item.is-active:hover {
  background-color: color-mix(
    in srgb,
    var(--zigo-accent-fixed) 55%,
    transparent
  );
  color: var(--zigo-text-primary);
}
.zigo-triage-item:focus-visible {
  outline: 0;
  box-shadow: var(--zigo-shadow-focus);
}
.zigo-triage-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  padding: 1px 8px;
  border-radius: var(--zigo-radius-full);
  background-color: var(--zigo-neutral-fixed);
  color: var(--zigo-neutral-fixed-text);
  font-size: 11px;
  font-weight: 700;
  line-height: 14px;
}
.zigo-triage-count-accent {
  background-color: var(--zigo-accent);
  color: var(--zigo-action-primary-text);
}
.zigo-triage-count-plain {
  background: transparent;
  color: var(--zigo-text-secondary);
}

/* ── Message stream items ─────────────────────────────────────────── */
.zigo-mail-item {
  position: relative;
  display: block;
  width: 100%;
  padding: var(--zigo-space-4);
  border: 0;
  border-radius: var(--zigo-radius-md);
  background-color: var(--zigo-bg-surface);
  box-shadow: var(--zigo-shadow-xs);
  text-align: start;
  cursor: pointer;
  transition:
    box-shadow var(--zigo-motion-fast) var(--zigo-ease-enter),
    background-color var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-mail-item:hover {
  box-shadow: var(--zigo-shadow-md);
}
.zigo-mail-item:focus-visible {
  outline: 0;
  box-shadow: var(--zigo-shadow-focus);
}
/* Selected thread — accent leading edge + faint brand wash (mockup). */
.zigo-mail-item.is-selected {
  box-shadow: var(--zigo-shadow-md);
  background-image: linear-gradient(
    90deg,
    color-mix(in srgb, var(--zigo-accent) 10%, transparent),
    transparent 45%
  );
}
.zigo-mail-item.is-selected::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 4px;
  border-radius: var(--zigo-radius-xs) 0 0 var(--zigo-radius-xs);
  background-color: var(--zigo-accent);
}
[dir="rtl"] .zigo-mail-item.is-selected::before {
  border-radius: 0 var(--zigo-radius-xs) var(--zigo-radius-xs) 0;
}
/* Same mirror as .zigo-review.is-selected — the brand wash must follow
   the inline-start edge in RTL too. */
[dir="rtl"] .zigo-mail-item.is-selected {
  background-image: linear-gradient(
    270deg,
    color-mix(in srgb, var(--zigo-accent) 10%, transparent),
    transparent 45%
  );
}
.zigo-mail-item.is-muted {
  color: var(--zigo-text-secondary);
}
/* Inline AI micro-summary box inside the selected card. */
.zigo-mail-summary {
  padding: var(--zigo-space-2);
  border-radius: var(--zigo-radius-sm);
  background-color: var(--zigo-surface-low);
}

/* ── Connected Hub & Triage workspace (/email) ────────────────────── */
/* Mailbox tile inside the Connected Accounts card — bordered surface
   with the provider glyph, handle and live status row. */
.zigo-account-tile {
  border: 1px solid var(--zigo-border-default);
  border-radius: var(--zigo-radius-md);
  background-color: var(--zigo-bg-surface);
  transition:
    border-color var(--zigo-motion-fast) var(--zigo-ease-enter),
    background-color var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-account-tile:hover {
  border-color: var(--zigo-border-strong);
}
/* Dashed "Add Account" affordance — same footprint, quiet surface. */
.zigo-account-tile-add {
  height: 100%;
  border-style: dashed;
  border-color: var(--zigo-accent-strong);
  background-color: var(--zigo-surface-low);
  cursor: pointer;
}
.zigo-account-tile-add:hover {
  background-color: var(--zigo-accent-fixed);
}
.zigo-account-tile-add:focus-visible {
  outline: 0;
  box-shadow: var(--zigo-shadow-focus);
}
/* Feed item — bordered inset card inside each feed section. */
.zigo-mail-card {
  padding: var(--zigo-space-4);
  border: 1px solid var(--zigo-border-default);
  border-radius: var(--zigo-radius-lg);
  background-color: var(--zigo-surface-low);
  transition: border-color var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-mail-card:hover {
  border-color: var(--zigo-border-strong);
}
/* Provider mini-badge — brand glyph disc at the avatar's trailing
   corner (inline-end keeps it off the leading edge in RTL). */
.zigo-provider-badge {
  position: absolute;
  inset-block-end: -3px;
  inset-inline-end: -3px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: var(--zigo-radius-full);
  background-color: var(--zigo-bg-surface);
  box-shadow: var(--zigo-shadow-xs);
  color: var(--zigo-text-tertiary);
}
.zigo-provider-badge .zigo-provider-glyph {
  font-size: 10px;
  line-height: 1;
}

/* ── Thread reading column ────────────────────────────────────────── */
/* Collapsed prior-turn row — click expands the historical message. */
.zigo-thread-turn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--zigo-space-2);
  width: 100%;
  padding: var(--zigo-space-2);
  border: 0;
  border-radius: var(--zigo-radius-sm);
  background-color: var(--zigo-surface-low);
  text-align: start;
  cursor: pointer;
  transition: background-color var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-thread-turn:hover {
  background-color: var(--zigo-neutral-fixed);
}
.zigo-thread-turn:focus-visible {
  outline: 0;
  box-shadow: var(--zigo-shadow-focus);
}
/* Round avatars for thread participants (Stitch uses circles here). */
.zigo-avatar-round {
  border-radius: var(--zigo-radius-full);
}
.zigo-avatar-sm {
  width: 24px;
  height: 24px;
  font-size: 10px;
}
.zigo-avatar-lg {
  width: 40px;
  height: 40px;
  font-size: 13px;
}
/* AI synthesis banner — accent-fixed gradient wash into the card. */
.zigo-synthesis {
  background-image: linear-gradient(
    135deg,
    color-mix(in srgb, var(--zigo-accent-fixed) 55%, transparent),
    color-mix(in srgb, var(--zigo-accent-fixed) 25%, transparent) 45%,
    var(--zigo-surface-low)
  );
}
/* Line-clamp helpers — message previews cap at 1–2 lines (no Bootstrap util). */
.zigo-clamp-1,
.zigo-clamp-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.zigo-clamp-1 {
  -webkit-line-clamp: 1;
  line-clamp: 1;
}
.zigo-clamp-2 {
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

/* ── Action agent column ──────────────────────────────────────────── */
/* Pulsing live dot on the agent panel header (reuses dot-live timing). */
.zigo-agent-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--zigo-radius-full);
  background-color: var(--zigo-accent);
  animation: zigo-dot-live 1.6s ease-in-out infinite;
}
/* Amber caution strip — mutation-safeguard warning tone. */
.zigo-banner-warning {
  background-color: var(--zigo-warning-soft);
  color: var(--zigo-warning-text);
}
/* Cross-life action rows — real checkboxes inside a clickable label. */
.zigo-checkline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: var(--zigo-space-2);
  border-radius: var(--zigo-radius-sm);
  background-color: var(--zigo-surface-low);
  cursor: pointer;
  transition: background-color var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-checkline:hover {
  background-color: var(--zigo-neutral-fixed);
}
.zigo-checkline:focus-within {
  box-shadow: var(--zigo-shadow-focus);
}
.zigo-checkline .form-check-input {
  margin-top: 2px;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .zigo-seg-item,
  .zigo-triage-item,
  .zigo-mail-item,
  .zigo-thread-turn,
  .zigo-checkline {
    transition: none;
  }
  .zigo-agent-dot {
    animation: none;
  }
}

/* ════════════════════════════════════════════════════════════════════
   Tasks & Calendar — Stitch "Integrated Planning" surface.
   Same contract: Metronic utilities own geometry; these classes own
   brand skin over the semantic tokens.
   ════════════════════════════════════════════════════════════════════ */

/* ── Tones this surface needs that predate it ────────────────────── */
.zigo-text-danger {
  color: var(--zigo-danger-text);
}
.zigo-dot-accent {
  background-color: var(--zigo-accent);
}
/* Uppercase eyebrow label (proposals, diff-cell headers). */
.zigo-micro {
  font-size: 10px;
  line-height: 14px;
  letter-spacing: 0.04em;
}

/* ── Label-chip accent variant (IN PROGRESS pill) ────────────────── */
.zigo-label-chip-accent {
  background-color: var(--zigo-accent-fixed);
  color: var(--zigo-accent-fixed-text);
}

/* ── Banner danger variant (overdue strip) ───────────────────────── */
.zigo-banner-danger {
  background-color: var(--zigo-danger-soft);
  color: var(--zigo-danger-text);
}

/* ── Solid info button (Confirm Block) — matches .zigo-btn-accent ── */
.zigo-btn-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--zigo-space-2);
  padding: 4px var(--zigo-space-3);
  border: 0;
  border-radius: var(--zigo-radius-xs);
  background-color: var(--zigo-info);
  color: var(--zigo-action-primary-text);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  box-shadow: var(--zigo-shadow-xs);
  transition: opacity var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-btn-info:hover {
  opacity: 0.9;
  color: var(--zigo-action-primary-text);
}
.zigo-btn-info:focus-visible {
  outline: 0;
  box-shadow: var(--zigo-shadow-focus);
}

/* ── Queue tab strip — bottom rule under the filter pills ────────── */
.zigo-tabs {
  border-bottom: 1px solid var(--zigo-border-default);
}

/* ── Task rows ───────────────────────────────────────────────────── */
.zigo-task {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--zigo-space-2);
  border: 1px solid
    color-mix(in srgb, var(--zigo-border-default) 70%, transparent);
  border-radius: var(--zigo-radius-sm);
  background-color: var(--zigo-surface-low);
  transition:
    background-color var(--zigo-motion-fast) var(--zigo-ease-enter),
    border-color var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-task:hover {
  background-color: var(--zigo-bg-surface);
  border-color: var(--zigo-border-default);
}
.zigo-task.is-muted {
  opacity: 0.8;
}
.zigo-task.is-done .zigo-task-title {
  text-decoration: line-through;
  color: var(--zigo-text-tertiary);
}
.zigo-task-title {
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  color: var(--zigo-text-primary);
}
.zigo-task-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--zigo-space-2);
  padding-top: 6px;
  border-top: 1px solid
    color-mix(in srgb, var(--zigo-border-default) 50%, transparent);
  font-size: 10px;
  line-height: 14px;
  color: var(--zigo-text-secondary);
}
/* Bordered mini-tag inside a task footer ("Seed Advisory"). */
.zigo-task-tag {
  display: inline-flex;
  padding: 2px 6px;
  border: 1px solid var(--zigo-border-default);
  border-radius: var(--zigo-radius-xs);
  background-color: var(--zigo-bg-surface);
  color: var(--zigo-text-secondary);
}
/* Small white bordered action (Reschedule, Keep Original, Decline). */
.zigo-task-action {
  padding: 4px var(--zigo-space-2);
  border: 1px solid var(--zigo-border-default);
  border-radius: var(--zigo-radius-xs);
  background-color: var(--zigo-bg-surface);
  color: var(--zigo-text-primary);
  font-size: 11px;
  font-weight: 500;
  line-height: 14px;
  white-space: nowrap;
  transition: background-color var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-task-action:hover {
  background-color: var(--zigo-surface-low);
}
.zigo-task-action:focus-visible {
  outline: 0;
  box-shadow: var(--zigo-shadow-focus);
}
/* Text-level action in a task footer ("Auto-Timeblock", "Block"). */
.zigo-task-link {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 10px;
  font-weight: 600;
  line-height: 14px;
  white-space: nowrap;
}
.zigo-task-link:hover {
  text-decoration: underline;
}
.zigo-task-link:focus-visible {
  outline: 0;
  box-shadow: var(--zigo-shadow-focus);
  border-radius: var(--zigo-radius-xs);
}

/* ── Task card affordances — priority edge + flag, due chip, hint
   icons, hover-revealed kebab. The whole row is a click-to-open
   surface (the title stays a real link for keyboard/screen-reader
   users); nested controls stay independently operable. ──────────── */
[data-zigo-task-list] .zigo-task {
  cursor: pointer;
}
.zigo-task[data-priority="4"] {
  border-inline-start: var(--zigo-space-1) solid var(--zigo-warning);
}
.zigo-task[data-priority="5"] {
  border-inline-start: var(--zigo-space-1) solid var(--zigo-danger);
}
.zigo-task-prio {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.zigo-task-kebab {
  flex-shrink: 0;
  margin-block-start: calc(var(--zigo-space-1) * -0.5);
  margin-inline-end: calc(var(--zigo-space-1) * -1);
}
/* Fine-pointer surfaces hide the kebab until the row is hovered,
   focus lands inside it, or its menu is open — the control stays
   tabbable so keyboard users always reach it. Touch layouts keep it
   visible (no hover state to reveal it). */
@media (hover: hover) and (pointer: fine) {
  .zigo-task-kebab {
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--zigo-motion-fast) var(--zigo-ease-enter);
  }
  .zigo-task:hover .zigo-task-kebab,
  .zigo-task:focus-within .zigo-task-kebab,
  .zigo-task-kebab:focus-visible,
  .zigo-task-kebab[aria-expanded="true"] {
    opacity: 1;
    pointer-events: auto;
  }
}
/* Due chip — the relative-day label rides a label-chip tone; the wall
   clock sits next to it for timed dues. */
.zigo-task-due {
  max-width: 100%;
}
.zigo-task-due > span {
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Secondary metadata row — due chip + presence hints (notes,
   recurrence, provenance, blockers). Hints are decorative glyphs
   labelled for screen readers via the wrapping span. */
.zigo-task-meta {
  row-gap: var(--zigo-space-1);
}
.zigo-task-hints {
  display: inline-flex;
  align-items: center;
  gap: var(--zigo-space-1);
  color: var(--zigo-text-tertiary);
}
.zigo-task-hint {
  display: inline-flex;
  align-items: center;
}
/* Completed rows — the whole card quiets down; the checkbox check
   carries the state, the title strikes, metadata mutes one step
   deeper. */
.zigo-task.is-done {
  background-color: var(--zigo-surface-low);
  border-color: color-mix(in srgb, var(--zigo-border-default) 45%, transparent);
}
.zigo-task.is-done .zigo-task-meta,
.zigo-task.is-done .zigo-task-hints {
  opacity: 0.75;
}

/* ── Goal coverage ring ──────────────────────────────────────────── */
.zigo-goal-ring {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transform: rotate(-90deg);
}
.zigo-goal-ring-track {
  stroke: var(--zigo-border-default);
}
.zigo-goal-ring-fill {
  stroke: var(--zigo-accent);
}

/* ── Day timeline ────────────────────────────────────────────────── */
.zigo-timeline-head {
  border-bottom: 1px solid var(--zigo-border-default);
}
.zigo-tl-row {
  display: flex;
  align-items: flex-start;
  gap: var(--zigo-space-4);
}
.zigo-tl-time {
  width: 64px;
  flex-shrink: 0;
  padding-top: 4px;
  text-align: end;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: var(--zigo-text-tertiary);
  font-variant-numeric: tabular-nums;
}
/* Bare hour gridline. */
.zigo-tl-line {
  flex: 1;
  height: 1px;
  margin-top: 10px;
  background-color: color-mix(
    in srgb,
    var(--zigo-border-default) 70%,
    transparent
  );
}
/* Any content block on the timeline. */
.zigo-tl-block {
  flex: 1;
  min-width: 0;
  padding: var(--zigo-space-3);
  border: 1px solid var(--zigo-border-default);
  border-radius: var(--zigo-radius-md);
  background-color: var(--zigo-bg-surface);
  box-shadow: var(--zigo-shadow-xs);
}
.zigo-tl-block.is-done,
.zigo-tl-block.is-muted {
  background-color: var(--zigo-surface-low);
  opacity: 0.9;
}
.zigo-tl-block.is-done .zigo-task-title {
  text-decoration: line-through;
}
/* Live-now marker: accent pill + rule above the active block. */
.zigo-tl-now {
  display: flex;
  align-items: center;
  gap: var(--zigo-space-2);
  margin-bottom: var(--zigo-space-2);
}
.zigo-tl-now-line {
  flex: 1;
  height: 2px;
  border-radius: var(--zigo-radius-full);
  background-color: color-mix(in srgb, var(--zigo-accent) 80%, transparent);
}
/* The active block gets an accent leading edge (logical property —
   stays on the inline-start side under RTL). */
.zigo-tl-live {
  border-inline-start: 4px solid var(--zigo-accent);
  box-shadow: var(--zigo-shadow-sm);
}
.zigo-tl-progress {
  width: 100%;
  height: 6px;
  border-radius: var(--zigo-radius-full);
  background-color: var(--zigo-surface-low);
  border: 1px solid
    color-mix(in srgb, var(--zigo-border-default) 50%, transparent);
  overflow: hidden;
}
.zigo-tl-progress-fill {
  height: 100%;
  border-radius: inherit;
  background-color: var(--zigo-accent);
}
/* AI-proposed slot — info-tinted, dashed-adjacent calm surface. */
.zigo-tl-proposal {
  background-color: color-mix(
    in srgb,
    var(--zigo-info-fixed) 40%,
    var(--zigo-bg-surface)
  );
  border-color: color-mix(in srgb, var(--zigo-info) 20%, transparent);
}
/* Free-form timeline annotation (wind-down note). */
.zigo-tl-note {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  line-height: 16px;
  color: var(--zigo-text-tertiary);
}

/* ── Calendar-mutation diff cells ────────────────────────────────── */
.zigo-mutation-cell {
  height: 100%;
  padding: var(--zigo-space-2);
  border: 1px solid var(--zigo-border-default);
  border-radius: var(--zigo-radius-xs);
  background-color: var(--zigo-bg-surface);
}
.zigo-mutation-cell.is-proposed {
  background-color: var(--zigo-accent-fixed);
  border-color: color-mix(in srgb, var(--zigo-accent) 20%, transparent);
}

/* ── Cross-life link rows — real anchors to the linked modules ──── */
.zigo-link-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: var(--zigo-space-2);
  border: 1px solid
    color-mix(in srgb, var(--zigo-border-default) 70%, transparent);
  border-radius: var(--zigo-radius-sm);
  background-color: var(--zigo-surface-low);
  color: inherit;
  text-decoration: none;
  transition:
    background-color var(--zigo-motion-fast) var(--zigo-ease-enter),
    border-color var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-link-row:hover {
  background-color: var(--zigo-bg-surface);
  border-color: var(--zigo-border-default);
  color: inherit;
}
.zigo-link-row:focus-visible {
  outline: 0;
  box-shadow: var(--zigo-shadow-focus);
  border-color: var(--zigo-border-default);
}

/* ── Honest-disabled stubs — visibly inert, never fake affordances ──
   The stub classes (zigo-btn-soft/-icon-btn/-ghost-btn) carry no
   :disabled rule, so without this a stub would keep enabled colors and
   still light up on hover while clicks are silently eaten. The marker
   scopes the treatment to explained stubs only. */
[data-zigo-stub]:disabled,
[data-zigo-stub]:disabled:hover {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

/* ── Daily energy balance — segmented load bar ───────────────────── */
.zigo-segbar {
  display: flex;
  width: 100%;
  height: 8px;
  border-radius: var(--zigo-radius-full);
  background-color: var(--zigo-surface-low);
  border: 1px solid
    color-mix(in srgb, var(--zigo-border-default) 50%, transparent);
  overflow: hidden;
}
.zigo-segbar-fill {
  height: 100%;
}
.zigo-segbar-accent {
  background-color: var(--zigo-accent);
}
.zigo-segbar-info {
  background-color: var(--zigo-info);
}
.zigo-segbar-success {
  background-color: var(--zigo-success);
}
.zigo-segbar-warning {
  background-color: var(--zigo-warning);
}

/* ── Add Calendar Event dialog — Stitch "Add Calendar Event Modal".
   The dialog rides the shared .zigo-overlay/.zigo-sheet frame (see the
   Voice Capture section); these classes own the modal's inner skin. ── */

/* Sheet width — Stitch's max-w-2xl dialog (the shared frame caps height
   and carries the open transition). */
.zigo-sheet-md {
  max-width: 672px;
}
/* Compact dialogs (reassign picker, confirmations) — the base .zigo-sheet
   is width:100% so an undefined size class would stretch full-bleed. */
.zigo-sheet-sm {
  max-width: 448px;
}
/* The form is the sheet's flex body so the footer pins while the field
   region scrolls (header + footer stay fixed like the mockup). */
.zigo-modal-form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}
.zigo-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

/* Compact field density inside the overlay dialogs — the modals'
   fields run tighter than the page-level 44px inputs; the select2 skin
   shares the override so selects match. */
#zigo-task-modal .zigo-input,
#zigo-event-modal .zigo-input,
#zigo-task-modal .zigo-select-wrap .select2-selection,
#zigo-event-modal .zigo-select-wrap .select2-selection {
  min-height: 36px;
}
#zigo-task-modal .zigo-subtask {
  padding-block: 6px;
}
#zigo-task-modal .zigo-add-line {
  padding-block: 4px;
}

/* Strong field label — the mockup's 12px semibold on-surface labels
   (heavier than .zigo-field-label's inspector caption). */
.zigo-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  color: var(--zigo-text-primary);
}

/* Input with a leading decorative icon or a trailing action button —
   .has-lead/.has-trail shift the padding to clear the overlay element. */
.zigo-input-icon {
  position: relative;
}
.zigo-input-icon.has-lead .zigo-input {
  padding-inline-start: 36px;
}
.zigo-input-icon.has-trail .zigo-input {
  padding-inline-end: 40px;
}
.zigo-input-lead {
  position: absolute;
  inset-inline-start: 10px;
  top: 50%;
  translate: 0 -50%;
  color: var(--zigo-info-fixed-text);
  pointer-events: none;
  /* The icon sits ahead of the field in DOM order, so a positioned
     sibling (.zigo-select-wrap's relative box + the select's opaque
     background) would otherwise paint over it. */
  z-index: 1;
}
/* Trailing icon action inside a field (title dictation mic). */
.zigo-input-action {
  position: absolute;
  inset-inline-end: 6px;
  top: 50%;
  translate: 0 -50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border: 0;
  border-radius: var(--zigo-radius-sm);
  background: transparent;
  color: var(--zigo-text-tertiary);
  transition:
    color var(--zigo-motion-fast) var(--zigo-ease-enter),
    background-color var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-input-action:hover {
  color: var(--zigo-accent);
  background-color: var(--zigo-surface-low);
}
.zigo-input-action:focus-visible {
  outline: 0;
  box-shadow: var(--zigo-shadow-focus);
}
/* Dictation-in-progress skin — the same soft-danger pressed state the
   composer mic carries (zigo-misc.js button.mic[aria-pressed]). */
.zigo-input-action[aria-pressed="true"] {
  background-color: var(--zigo-danger-soft);
  color: var(--zigo-danger-text);
}

/* Classification pills — single-select rounded chips; the selected one
   picks up the accent soft fill + leading dot (mockup state). */
.zigo-class-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--zigo-border-default);
  border-radius: var(--zigo-radius-full);
  background-color: var(--zigo-surface-low);
  color: var(--zigo-text-secondary);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  transition:
    background-color var(--zigo-motion-fast) var(--zigo-ease-enter),
    border-color var(--zigo-motion-fast) var(--zigo-ease-enter),
    color var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-class-pill:hover {
  background-color: var(--zigo-neutral-fixed);
}
.zigo-class-pill.is-selected,
.zigo-class-pill.is-selected:hover {
  background-color: var(--zigo-accent-fixed);
  border-color: var(--zigo-accent);
  color: var(--zigo-accent-fixed-text);
  font-weight: 600;
}
.zigo-class-pill:focus-visible {
  outline: 0;
  box-shadow: var(--zigo-shadow-focus);
}
.zigo-class-pill .zigo-class-dot {
  display: none;
}
.zigo-class-pill.is-selected .zigo-class-dot {
  display: inline-block;
}

/* Sync-status dot inside a .zigo-select-wrap — sits inline-end of the
   chevron the wrapper already paints. */
.zigo-select-status {
  position: absolute;
  inset-inline-end: 32px;
  top: 50%;
  translate: 0 -50%;
}

/* Token input box — attendee chips + free text inside one bordered
   surface, focus-within lifts the border like .zigo-input. */
.zigo-token-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--zigo-space-2);
  padding: var(--zigo-space-2);
  border: 1px solid var(--zigo-border-default);
  border-radius: var(--zigo-radius-md);
  background-color: var(--zigo-surface-low);
  transition:
    border-color var(--zigo-motion-fast) var(--zigo-ease-enter),
    box-shadow var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-token-box:focus-within {
  border-color: var(--zigo-border-focus);
  box-shadow: var(--zigo-shadow-focus);
}
.zigo-token {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--zigo-border-default);
  border-radius: var(--zigo-radius-sm);
  background-color: var(--zigo-bg-surface);
  box-shadow: var(--zigo-shadow-xs);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: var(--zigo-text-primary);
  white-space: nowrap;
}
/* Same [hidden] guard as the review cards — the inline-flex display
   would otherwise beat the UA's hidden rule. */
.zigo-token[hidden] {
  display: none;
}
.zigo-token-remove {
  display: inline-flex;
  align-items: center;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: var(--zigo-text-tertiary);
  transition: color var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-token-remove:hover {
  color: var(--zigo-danger-text);
}
.zigo-token-remove:focus-visible {
  outline: 0;
  box-shadow: var(--zigo-shadow-focus);
  border-radius: var(--zigo-radius-xs);
}
.zigo-token-input {
  flex: 1 1 170px;
  min-width: 0;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  font-size: 12px;
  line-height: 16px;
  color: var(--zigo-text-primary);
}
.zigo-token-input::placeholder {
  color: var(--zigo-text-tertiary);
  opacity: 1;
}
.zigo-token-input:focus,
.zigo-token-input:focus-visible {
  outline: 0;
}

/* Success round-check — the guard banner's 20px status circle. */
.zigo-check-round {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: var(--zigo-radius-full);
  background-color: var(--zigo-success-soft);
  color: var(--zigo-success-text);
}

/* All-day switch — Metronic's form-switch skinned to the action tokens
   (equal specificity to the bundle rule, later in the cascade). */
.form-switch .zigo-switch:checked {
  background-color: var(--zigo-action-primary-bg);
  border-color: var(--zigo-action-primary-bg);
}
.form-switch .zigo-switch:focus {
  border-color: var(--zigo-border-focus);
  box-shadow: var(--zigo-shadow-focus);
}

@media (prefers-reduced-motion: reduce) {
  .zigo-task,
  .zigo-task-action,
  .zigo-link-row,
  .zigo-btn-info,
  .zigo-input-action,
  .zigo-class-pill,
  .zigo-token-box,
  .zigo-token-remove {
    transition: none;
  }
}

/* ── "New Target" form dialogs — Metronic's Set-First-Target layout on
   the shared .zigo-overlay/.zigo-sheet frame: borderless header with
   the corner close, centered icon + title, strong labels, two-column
   field rows, and centered footer actions. Shared by the contact,
   developer-app and custom-space modals (.zigo-form-modal). ────────── */

/* Compact field density — the same 36px rows the task/event overlay
   fields run; the textarea keeps its row-driven height. */
.zigo-form-modal .zigo-input {
  min-height: 36px;
}
.zigo-form-modal textarea.zigo-input {
  min-height: 0;
}
/* The flex banner's display would otherwise beat the UA's [hidden]
   display:none (same guard as the review cards). */
.zigo-form-modal .zigo-banner[hidden] {
  display: none;
}
/* Long pick-lists (scope checkboxes, template cards) scroll inside the
   sheet instead of growing the dialog past the frame's height cap. */
.zigo-form-modal .zigo-option-list {
  max-height: 240px;
  overflow-y: auto;
}

/* Context note rows — the tag chip keeps the input's owner visible. */
.zigo-person-modal [data-zigo-person-ctx-note] .zigo-tag {
  min-width: 72px;
  text-align: center;
}

/* ── Create New Task dialog — Stitch "Create New Task Modal". Rides
   the shared .zigo-overlay/.zigo-sheet frame; these classes own the
   task-specific inner skin. ─────────────────────────────────────── */

/* Wide trailing affordance — the Dictate pill clears ~100px inside the
   title field (the icon-only .has-trail only clears 40px). */
.zigo-input-icon.has-trail-btn .zigo-input {
  padding-inline-end: 104px;
}
.zigo-dictate {
  position: absolute;
  inset-inline-end: 6px;
  top: 50%;
  translate: 0 -50%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 0;
  border-radius: var(--zigo-radius-sm);
  background-color: var(--zigo-accent-fixed);
  color: var(--zigo-accent-fixed-text);
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
  white-space: nowrap;
  transition: background-color var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-dictate:hover {
  background-color: color-mix(
    in srgb,
    var(--zigo-accent-fixed) 80%,
    var(--zigo-accent)
  );
}
.zigo-dictate:focus-visible {
  outline: 0;
  box-shadow: var(--zigo-shadow-focus);
}

/* Duration option chips — equal-width single-select buttons; the
   selected chip is solid accent (mockup's orange 45m). */
.zigo-option-chip {
  flex: 1 1 0;
  padding: 6px 4px;
  border: 1px solid var(--zigo-border-default);
  border-radius: var(--zigo-radius-sm);
  background-color: var(--zigo-bg-surface);
  color: var(--zigo-text-secondary);
  font-size: 11px;
  font-weight: 500;
  line-height: 14px;
  text-align: center;
  white-space: nowrap;
  transition:
    background-color var(--zigo-motion-fast) var(--zigo-ease-enter),
    border-color var(--zigo-motion-fast) var(--zigo-ease-enter),
    color var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-option-chip:hover {
  background-color: var(--zigo-surface-low);
  color: var(--zigo-text-primary);
}
.zigo-option-chip.is-selected,
.zigo-option-chip.is-selected:hover {
  background-color: var(--zigo-action-primary-bg);
  border-color: var(--zigo-action-primary-bg);
  color: var(--zigo-action-primary-text);
  font-weight: 700;
}
.zigo-option-chip:focus-visible {
  outline: 0;
  box-shadow: var(--zigo-shadow-focus);
}

/* Accent callout — the auto-schedule suggestion panel (accent-fixed
   wash + soft accent border, matching the mockup's primary-soft card). */
.zigo-callout-accent {
  border: 1px solid color-mix(in srgb, var(--zigo-accent) 25%, transparent);
  border-radius: var(--zigo-radius-md);
  background-color: var(--zigo-accent-fixed);
}

/* "More options" disclosure in the create-task dialog — the ghost
   toggle's chevron rotates open; same pattern as
   [data-zigo-template-expand]. Ligature glyphs need a block-level box
   to transform. */
[data-zigo-more] .zigo-ms-16 {
  display: inline-block;
  transition: transform var(--zigo-motion-fast) var(--zigo-ease-enter);
}
[data-zigo-more][aria-expanded="true"] .zigo-ms-16 {
  transform: rotate(180deg);
}
@media (prefers-reduced-motion: reduce) {
  [data-zigo-more] .zigo-ms-16 {
    transition: none;
  }
}

/* Deviation count on the same toggle — signals how many secondary
   controls differ from their seeded defaults while the panel is
   collapsed. The inline-flex display would beat the UA's [hidden]
   rule, so the guard re-declares it (same convention as
   .zigo-minted-box[hidden]). */
.zigo-more-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 5px;
  border-radius: var(--zigo-radius-full);
  background-color: var(--zigo-accent-fixed);
  color: var(--zigo-accent-fixed-text);
  font-size: 10px;
  font-weight: 700;
}
.zigo-more-count[hidden] {
  display: none !important;
}

/* Subtask checklist rows — clickable labels wrapping a real checkbox,
   bordered like the mockup; done rows strike the title through. The
   remove affordance reveals on hover/focus-within (keyboard users get
   it as soon as the row's checkbox takes focus). */
.zigo-subtask {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--zigo-border-default);
  border-radius: var(--zigo-radius-md);
  background-color: var(--zigo-surface-low);
  cursor: pointer;
  transition:
    background-color var(--zigo-motion-fast) var(--zigo-ease-enter),
    border-color var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-subtask:hover {
  background-color: var(--zigo-bg-surface);
}
.zigo-subtask:focus-within {
  border-color: var(--zigo-border-focus);
  box-shadow: var(--zigo-shadow-focus);
}
.zigo-subtask[hidden] {
  display: none;
}
.zigo-subtask-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: var(--zigo-text-primary);
}
.zigo-subtask.is-done .zigo-subtask-title {
  color: var(--zigo-text-tertiary);
  font-weight: 400;
  text-decoration: line-through;
}
.zigo-subtask-remove {
  opacity: 0;
  flex-shrink: 0;
}
.zigo-subtask:hover .zigo-subtask-remove,
.zigo-subtask:focus-within .zigo-subtask-remove,
.zigo-subtask-remove:focus-visible {
  opacity: 1;
}

/* Inline add row — dashed affordance under the checklist (mockup's
   "add next subtask" line); solidifies on focus like .zigo-input. */
.zigo-add-line {
  display: flex;
  align-items: center;
  gap: var(--zigo-space-2);
  padding: 6px 12px;
  border: 1px dashed var(--zigo-border-default);
  border-radius: var(--zigo-radius-md);
  background-color: var(--zigo-bg-surface);
  transition:
    border-color var(--zigo-motion-fast) var(--zigo-ease-enter),
    box-shadow var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-add-line:hover {
  border-color: color-mix(
    in srgb,
    var(--zigo-accent) 50%,
    var(--zigo-border-default)
  );
}
.zigo-add-line:focus-within {
  border-style: solid;
  border-color: var(--zigo-border-focus);
  box-shadow: var(--zigo-shadow-focus);
}
.zigo-add-line input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 12px;
  line-height: 16px;
  color: var(--zigo-text-primary);
  outline: 0;
}
.zigo-add-line input::placeholder {
  color: var(--zigo-text-tertiary);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .zigo-dictate,
  .zigo-option-chip,
  .zigo-subtask,
  .zigo-add-line {
    transition: none;
  }
}

/* ════════════════════════════════════════════════════════════════════
   ZigO AI Assistant — Stitch "AI Assistant Workspace" surface.
   Same contract: Metronic utilities own geometry; these classes own
   brand skin over the semantic tokens. Three-column workspace:
   threads rail / grounded dialogue stream / memory + privacy inspector.
   ════════════════════════════════════════════════════════════════════ */

/* ── Thread cards — conversations rail (per-owner listbox items) ──── */
.zigo-thread-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: var(--zigo-space-3);
  border: 0;
  border-radius: var(--zigo-radius-md);
  background-color: var(--zigo-surface-low);
  box-shadow: var(--zigo-shadow-xs);
  text-align: start;
  cursor: pointer;
  transition:
    background-color var(--zigo-motion-fast) var(--zigo-ease-enter),
    box-shadow var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-thread-item:hover {
  background-color: var(--zigo-bg-surface);
  box-shadow: var(--zigo-shadow-sm);
}
.zigo-thread-item:focus-visible {
  outline: 0;
  box-shadow: var(--zigo-shadow-focus);
}
/* Selected thread — accent leading edge + faint brand wash (mockup). */
.zigo-thread-item.is-selected {
  background-color: var(--zigo-bg-surface);
  box-shadow: var(--zigo-shadow-sm);
  background-image: linear-gradient(
    90deg,
    color-mix(in srgb, var(--zigo-accent-fixed) 45%, transparent),
    transparent 55%
  );
}
.zigo-thread-item.is-selected::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 4px;
  border-radius: var(--zigo-radius-xs) 0 0 var(--zigo-radius-xs);
  background-color: var(--zigo-accent);
}
[dir="rtl"] .zigo-thread-item.is-selected::before {
  border-radius: 0 var(--zigo-radius-xs) var(--zigo-radius-xs) 0;
}
[dir="rtl"] .zigo-thread-item.is-selected {
  background-image: linear-gradient(
    270deg,
    color-mix(in srgb, var(--zigo-accent-fixed) 45%, transparent),
    transparent 55%
  );
}
.zigo-thread-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  color: var(--zigo-text-primary);
}

/* ── Live ping inside the ACTIVE tag — white dot on the accent pill ── */
.zigo-dot-ping {
  position: relative;
  display: inline-flex;
  width: 6px;
  height: 6px;
}
.zigo-dot-ping::before,
.zigo-dot-ping::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--zigo-radius-full);
  background-color: var(--zigo-action-primary-text);
}
.zigo-dot-ping::before {
  animation: zigo-capture-ping 1.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* ── Chat bubbles — dialogue stream cards with a single sharp corner
   (logical properties so the tail follows the inline-start side in
   RTL). ─────────────────────────────────────────────────────────── */
.zigo-chat-bubble {
  border-radius: var(--zigo-radius-lg);
  border-start-start-radius: var(--zigo-radius-xs);
}

/* ── AI avatar — 40px accent orb for ZigO AI turns ────────────────── */
.zigo-avatar-ai {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--zigo-radius-full);
  background-color: var(--zigo-accent);
  color: var(--zigo-action-primary-text);
  box-shadow: var(--zigo-shadow-sm);
}

/* ── Sticky composer — pinned above the fold while the stream scrolls ─ */
.zigo-composer {
  position: sticky;
  bottom: var(--zigo-space-4);
  z-index: 10;
  box-shadow: var(--zigo-shadow-lg);
}

/* ── Voice hold-to-talk — recording pulse on the primary button ───── */
.zigo-btn-primary.is-recording {
  animation: zigo-voice-recording 1.2s ease-in-out infinite;
}
@keyframes zigo-voice-recording {
  50% {
    background-color: var(--zigo-action-primary-hover);
    box-shadow: 0 0 0 6px
      color-mix(in srgb, var(--zigo-accent) 22%, transparent);
  }
}

/* ── Memory inference candidates — accent-tinted review cards ─────── */
.zigo-inference {
  border-radius: var(--zigo-radius-sm);
  background-color: color-mix(
    in srgb,
    var(--zigo-accent-fixed) 40%,
    transparent
  );
}
.zigo-inference.is-confirmed {
  outline: 2px solid var(--zigo-success);
  outline-offset: -2px;
}
/* Confirm/done label swap — base rules must be non-important so the
   .is-confirmed guards can flip them. */
.zigo-confirm-check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.zigo-inference.is-confirmed .zigo-confirm-check,
.zigo-inference.is-confirmed [data-zigo-inference-dismiss] {
  display: none;
}
.zigo-inference.is-confirmed .zigo-confirm-done {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ── Proposal card confirmed state — same confirm/done contract ───── */
[data-zigo-proposal].is-confirmed {
  outline: 2px solid var(--zigo-success);
  outline-offset: -2px;
}
[data-zigo-proposal].is-confirmed .zigo-confirm-check {
  display: none;
}
[data-zigo-proposal].is-confirmed .zigo-confirm-done {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* JS-driven hiding — these elements carry d-flex (display:flex
   !important), so the guard needs !important to beat it. */
.zigo-thread-item[hidden],
[data-zigo-thread-group][hidden],
[data-zigo-inference][hidden],
[data-zigo-proposal][hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .zigo-thread-item {
    transition: none;
  }
  .zigo-dot-ping::before,
  .zigo-btn-primary.is-recording {
    animation: none;
  }
}

/* ════════════════════════════════════════════════════════════════════
   Learning & Skills Workspace — Stitch "Simplified Rail View" surface.
   Same contract: Metronic utilities own geometry; these classes own
   brand skin over the semantic tokens. Two-column workspace: sprint
   spotlight + syllabus + secondary tracks / copilot + connections +
   stream rail.
   ════════════════════════════════════════════════════════════════════ */

/* ── Curriculum module rows — status icon + title/date + state label ── */
.zigo-module {
  display: flex;
  align-items: flex-start;
  gap: var(--zigo-space-3);
  padding: var(--zigo-space-3);
  border: 1px solid
    color-mix(in srgb, var(--zigo-border-default) 70%, transparent);
  border-radius: var(--zigo-radius-sm);
  background-color: var(--zigo-surface-low);
}
.zigo-module-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  border-radius: var(--zigo-radius-full);
  background-color: var(--zigo-neutral-fixed);
  color: var(--zigo-text-tertiary);
}
.zigo-module-icon.is-done {
  background-color: var(--zigo-success-soft);
  color: var(--zigo-success-text);
}
.zigo-module.is-locked {
  background-color: transparent;
}

/* ── Current-focus module — accent-ringed card in the syllabus list ── */
.zigo-module-current {
  display: flex;
  flex-direction: column;
  gap: var(--zigo-space-3);
  padding: var(--zigo-space-4);
  border: 2px solid var(--zigo-accent);
  border-radius: var(--zigo-radius-md);
  background-color: var(--zigo-bg-surface);
  box-shadow: var(--zigo-shadow-sm);
}

/* ── Focus-session live indicator — pulsing accent dot + label ─────── */
.zigo-focus-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--zigo-accent-strong);
}
.zigo-focus-live[hidden] {
  display: none;
}

/* ── Connection icon tiles — tinted 32px tiles on the link rows ────── */
.zigo-icon-tile-sm.zigo-tile-accent {
  background-color: var(--zigo-accent-fixed);
  color: var(--zigo-accent-fixed-text);
}
.zigo-icon-tile-sm.zigo-tile-info {
  background-color: var(--zigo-info-fixed);
  color: var(--zigo-info-fixed-text);
}
.zigo-icon-tile-sm.zigo-tile-success {
  background-color: var(--zigo-success-soft);
  color: var(--zigo-success-text);
}

/* ── Copilot CTA confirmed state — scheduled blocks read as success ── */
.zigo-btn-accent.is-done,
.zigo-btn-accent.is-done:hover:not(:disabled) {
  background-color: var(--zigo-success-soft);
  color: var(--zigo-success-text);
  box-shadow: none;
  cursor: default;
}

/* ════════════════════════════════════════════════════════════════════
   Personal Finance & Cash Flow — Stitch "Finance Ledger" surface.
   Same contract: Metronic utilities own geometry; these classes own
   brand skin over the semantic tokens.
   ════════════════════════════════════════════════════════════════════ */

/* ── Success track fill — the net-flow surplus meter ───────────────── */
.zigo-track-fill-success {
  background-color: var(--zigo-success);
}

/* ── Segbar dark/muted tones — the aggregate-liquidity split bar ───── */
.zigo-segbar-dark {
  background-color: var(--zigo-bg-inverse);
}
.zigo-segbar-muted {
  background-color: var(--zigo-neutral-400);
}

/* ── Warning callout — the pending-disambiguation banner card ─────── */
.zigo-callout-warning {
  border: 1px solid color-mix(in srgb, var(--zigo-warning) 30%, transparent);
  border-radius: var(--zigo-radius-md);
  background-color: var(--zigo-warning-soft);
}

/* ── Danger callout — the connections-hub pending-attention metric ── */
.zigo-callout-danger {
  border: 1px solid color-mix(in srgb, var(--zigo-danger) 30%, transparent);
  border-radius: var(--zigo-radius-md);
  background-color: var(--zigo-danger-soft);
}

/* ── Warning icon tile — pending-disambiguation banner badge ─────── */
.zigo-icon-tile-sm.zigo-tile-warning {
  background-color: var(--zigo-warning-soft);
  color: var(--zigo-warning-text);
}

/* ── Success icon tile — inbound-ledger-entry badge ──────────────── */
.zigo-icon-tile.zigo-icon-tile-success {
  background-color: var(--zigo-success-soft);
  color: var(--zigo-success-text);
}

/* JS-driven hiding on the ledger feed — .zigo-panel's flex display
   would otherwise beat the UA's [hidden] display:none (same guard as
   the review cards). */
[data-zigo-entry][hidden],
[data-zigo-ledger-empty][hidden] {
  display: none;
}

/* ── Record Transaction dialog — Stitch "Record Transaction Modal".
   Wider than the shared md sheet (Stitch max-w-[840px]); the orange
   edge bar crowns the dialog. ─────────────────────────────────────── */
.zigo-sheet-lg {
  max-width: 840px;
}
.zigo-sheet-edge {
  flex-shrink: 0;
  height: 4px;
  background-color: var(--zigo-accent);
}

/* Body canvas + tonal cards — Stitch's surface-bright body carrying
   white surface-container-lowest cards with pure tonal depth. */
.zigo-record-body {
  background-color: var(--zigo-bg-subtle);
}
.zigo-record-card {
  border-radius: var(--zigo-radius-md);
  background-color: var(--zigo-bg-surface);
  box-shadow: var(--zigo-shadow-xs);
}
/* Clickable card variant (voice dictation) — hover/focus affordance. */
button.zigo-record-card {
  border: 0;
  text-align: start;
  cursor: pointer;
  transition: background-color var(--zigo-motion-fast) var(--zigo-ease-enter);
}
button.zigo-record-card:hover {
  background-color: var(--zigo-surface-low);
}
button.zigo-record-card:focus-visible {
  outline: 0;
  box-shadow: var(--zigo-shadow-focus);
}
/* Voice-planned cards are inert: no hover/press affordance, muted. */
button.zigo-record-card:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}
button.zigo-record-card:disabled:hover {
  background-color: var(--zigo-bg-surface);
}

/* Voice-dictation mic orb — accent-fixed circle with the listening
   ping ring (reuses the capture ping keyframes). The neutral variant
   carries the receipt-OCR glyph without the ring. */
.zigo-voice-mic {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--zigo-radius-full);
  background-color: var(--zigo-accent-fixed);
  color: var(--zigo-accent-fixed-text);
}
.zigo-voice-mic::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--zigo-radius-full);
  background-color: color-mix(in srgb, var(--zigo-accent) 20%, transparent);
  animation: zigo-capture-ping 1.2s cubic-bezier(0, 0, 0.2, 1) infinite;
  pointer-events: none;
}
.zigo-voice-mic-neutral {
  background-color: var(--zigo-neutral-fixed);
  color: var(--zigo-neutral-fixed-text);
}
.zigo-voice-mic-neutral::after {
  content: none;
}

/* Mode pills — the leading dot only shows on the selected type
   (Stitch's Expense pill). */
.zigo-seg-dots .zigo-seg-item .zigo-dot {
  visibility: hidden;
}
.zigo-seg-dots .zigo-seg-item.is-active .zigo-dot {
  visibility: visible;
}

/* Giant amount field — display-face numerals on a transparent,
   borderless input (Stitch's 44px extrabold tnum hero). */
.zigo-amount-field {
  display: flex;
  align-items: baseline;
  gap: var(--zigo-space-2);
  min-width: 0;
  flex: 1 1 auto;
}
.zigo-amount-symbol {
  font-family: var(--zigo-font-display);
  font-size: 38px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--zigo-text-primary);
  user-select: none;
}
.zigo-amount-input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: var(--zigo-radius-xs);
  background: transparent;
  font-family: var(--zigo-font-display);
  font-size: 44px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--zigo-text-primary);
}
.zigo-amount-input:focus-visible {
  outline: 0;
  box-shadow: var(--zigo-shadow-focus);
}

/* Static trailing flag inside a field (merchant auto-match check). */
.zigo-input-flag {
  position: absolute;
  inset-inline-end: 10px;
  top: 50%;
  translate: 0 -50%;
  pointer-events: none;
}

/* Soft fields — Stitch's borderless surface-container-low inputs
   (account select, merchant field); focus keeps the accent ring. */
.zigo-input-soft {
  background-color: var(--zigo-surface-low);
  border-color: transparent;
}
.zigo-input-soft:hover {
  background-color: var(--zigo-neutral-fixed);
}
/* The record modal's lead icons read as quiet metadata, not the
   info-blue treatment other dialogs use. */
#zigo-record-modal .zigo-input-lead {
  color: var(--zigo-text-tertiary);
}

/* Accent text action — Stitch's "+ New Offline Vault" / "+ Add Split"
   link-styled buttons (paired with .zigo-ghost-btn geometry). */
.zigo-ghost-btn-accent {
  color: var(--zigo-link);
  font-weight: 600;
}
.zigo-ghost-btn-accent:hover {
  color: var(--zigo-link-hover);
  background-color: transparent;
}

/* Compact field density inside the record dialog (same treatment as
   the task/event modals). */
#zigo-record-modal .zigo-input,
#zigo-record-modal .zigo-select-wrap .select2-selection {
  min-height: 38px;
}

/* ── Record Transaction — Income tab ─────────────────────────────── */

/* Type panels — each transaction type owns a body+footer pair sharing
   a [data-zigo-record-panel] slug; JS swaps the visible pair. The
   [hidden] attribute must beat Bootstrap's !important display
   utilities on the flex bodies/footers. */
#zigo-record-modal [data-zigo-record-panel][hidden] {
  display: none !important;
}

/* Income body — Stitch's white canvas carrying tonal sections (the
   expense body runs the inverse: subtle canvas + white cards). */
.zigo-record-body-flush {
  background-color: var(--zigo-bg-surface);
}

/* Income hero — the credited symbol reads brand-orange like the mockup. */
[data-zigo-record-panel="income"] .zigo-amount-symbol {
  color: var(--zigo-accent-strong);
}

/* Revenue-stream category pills — Stitch's icon+label grid; selection
   rings accent like the intent cards' outline treatment. */
.zigo-cat-pill {
  display: flex;
  align-items: center;
  gap: var(--zigo-space-2);
  width: 100%;
  padding: 8px var(--zigo-space-3);
  border: 0;
  border-radius: var(--zigo-radius-sm);
  background-color: var(--zigo-surface-low);
  color: var(--zigo-text-secondary);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  text-align: start;
  outline: 1px solid transparent;
  outline-offset: -1px;
  transition:
    background-color var(--zigo-motion-fast) var(--zigo-ease-enter),
    color var(--zigo-motion-fast) var(--zigo-ease-enter),
    outline-color var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-cat-pill:hover {
  background-color: var(--zigo-neutral-fixed);
  color: var(--zigo-text-primary);
}
.zigo-cat-pill.is-active,
.zigo-cat-pill.is-active:hover {
  background-color: var(--zigo-bg-surface);
  color: var(--zigo-text-primary);
  font-weight: 600;
  outline-color: var(--zigo-accent);
  box-shadow: var(--zigo-shadow-xs);
}
.zigo-cat-pill:focus-visible {
  outline: 0;
  box-shadow: var(--zigo-shadow-focus);
}
.zigo-cat-pill.is-active .zigo-cat-icon {
  color: var(--zigo-accent-strong);
}

/* Partition sub-rule rows — clickable check labels on the container
   surface; unchecked rows dim so the net-credit math reads at a
   glance. */
.zigo-rule-row {
  border-radius: var(--zigo-radius-sm);
  background-color: var(--zigo-neutral-fixed);
  cursor: pointer;
  transition:
    background-color var(--zigo-motion-fast) var(--zigo-ease-enter),
    opacity var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-rule-row:hover {
  background-color: var(--zigo-meter-track);
}
.zigo-rule-row.is-off {
  opacity: 0.55;
}
.zigo-rule-row:has(.zigo-checkbox:focus-visible) {
  box-shadow: var(--zigo-shadow-focus);
}

/* Net-credit banner — the darker strip closing the destination card
   (M3 surface-container-highest equivalent). */
.zigo-net-banner {
  border-radius: var(--zigo-radius-sm);
  background-color: var(--zigo-meter-track);
}

@media (prefers-reduced-motion: reduce) {
  .zigo-voice-mic::after,
  button.zigo-record-card,
  .zigo-cat-pill,
  .zigo-rule-row {
    animation: none;
    transition: none;
  }
}

/* WF-020 — step-up (sudo) dialog. Native <dialog> so focus-trap and
   Escape dismissal come free; tokens only, no module-specific styling. */
dialog.zigo-stepup {
  border: 1px solid var(--zigo-border-default);
  border-radius: var(--zigo-radius-lg);
  background-color: var(--zigo-bg-surface);
  color: var(--zigo-text-primary);
  padding: var(--zigo-space-6);
  max-width: 26rem;
  width: calc(100% - 2 * var(--zigo-space-6));
  box-shadow: var(--zigo-shadow-lg);
}
dialog.zigo-stepup::backdrop {
  background-color: var(--zigo-scrim-strong);
}
.zigo-stepup__hint {
  color: var(--zigo-text-secondary);
}
.zigo-stepup__methods {
  display: grid;
  gap: var(--zigo-space-3);
  margin-block: var(--zigo-space-4);
}
.zigo-stepup__factor {
  display: flex;
  gap: var(--zigo-space-2);
  align-items: center;
}
.zigo-stepup__factor input {
  flex: 1;
  min-width: 0;
}
.zigo-stepup__status:not(:empty) {
  color: var(--zigo-danger-text);
}

/* ════════════════════════════════════════════════════════════════════
   Security settings — sessions/passkeys/TOTP/recovery rows plus the
   TOTP enrollment wizard. Token-styled, logical properties throughout
   so the section stays correct in RTL (Arabic reference locale).
   ════════════════════════════════════════════════════════════════════ */

/* Card head — icon tile + title/subtitle + status chip. */
.zigo-security-cardhead {
  display: flex;
  align-items: center;
  gap: var(--zigo-space-3);
  margin-block-end: var(--zigo-space-4);
}
.zigo-security-cardhead__text {
  flex: 1;
  min-inline-size: 0;
}
.zigo-security-cardhead__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}
.zigo-security-cardhead .zigo-caption {
  margin: 0;
}
.zigo-security-cardhead .zigo-chip {
  flex-shrink: 0;
}

/* Method/session/identity rows. */
.zigo-security-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--zigo-space-1);
}
.zigo-security-list > li {
  display: flex;
  align-items: center;
  gap: var(--zigo-space-3);
  flex-wrap: wrap;
  padding-block: var(--zigo-space-2);
  border-block-end: 1px solid var(--zigo-border-default);
}
.zigo-security-list > li:last-child {
  border-block-end: 0;
}
.zigo-security-list__text {
  flex: 1;
  min-inline-size: 0;
}
.zigo-security-list__meta {
  display: block;
  color: var(--zigo-text-secondary);
  font-size: var(--zigo-text-caption-size);
  line-height: var(--zigo-text-caption-line);
}
.zigo-security-list__badge {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--zigo-space-2);
  border-radius: var(--zigo-radius-full);
  background-color: var(--zigo-neutral-fixed);
  color: var(--zigo-neutral-fixed-text);
  font-size: 11px;
  line-height: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* TOTP enrollment wizard — numbered steps inside a bordered panel. */
.zigo-security-enroll {
  display: grid;
  gap: var(--zigo-space-4);
  margin-block-start: var(--zigo-space-3);
  padding: var(--zigo-space-4);
  border: 1px solid var(--zigo-border-default);
  border-radius: var(--zigo-radius-md);
  background-color: var(--zigo-bg-subtle);
}
.zigo-totp-steps {
  counter-reset: zigo-totp-step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--zigo-space-4);
}
.zigo-totp-steps > li {
  counter-increment: zigo-totp-step;
  position: relative;
  display: grid;
  gap: var(--zigo-space-2);
  padding-inline-start: calc(var(--zigo-space-6) + var(--zigo-space-2));
}
.zigo-totp-steps > li::before {
  content: counter(zigo-totp-step);
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  inline-size: var(--zigo-space-6);
  block-size: var(--zigo-space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--zigo-radius-full);
  background-color: var(--zigo-accent-fixed);
  color: var(--zigo-accent-fixed-text);
  font-size: 12px;
  font-weight: 700;
}
[dir="rtl"] .zigo-totp-steps > li::before {
  content: counter(zigo-totp-step, arabic-indic);
}
.zigo-totp-step__title {
  margin: 0;
  font-weight: 600;
  color: var(--zigo-text-primary);
}
.zigo-totp-step__hint {
  margin: 0;
}

/* QR frame — fixed paper surface keeps the symbol scannable in both
   themes; centered so narrow cards still read balanced. */
.zigo-totp-qr {
  inline-size: fit-content;
  margin-inline: auto;
  padding: var(--zigo-space-3);
  border: 1px solid var(--zigo-border-default);
  border-radius: var(--zigo-radius-md);
  background-color: var(--zigo-neutral-0);
}
.zigo-totp-qr svg {
  display: block;
  inline-size: 168px;
  block-size: 168px;
}

/* Manual-entry disclosure — summary reads as a quiet accent link. */
.zigo-totp-manual > summary {
  cursor: pointer;
  color: var(--zigo-text-accent);
  font-size: var(--zigo-text-body-sm-size);
  font-weight: 600;
}
.zigo-totp-manual__body {
  display: grid;
  gap: var(--zigo-space-2);
  margin-block-start: var(--zigo-space-2);
}
.zigo-totp-key {
  display: flex;
  align-items: center;
  gap: var(--zigo-space-3);
  flex-wrap: wrap;
}
.zigo-totp-key code {
  padding: var(--zigo-space-2) var(--zigo-space-3);
  border: 1px solid var(--zigo-border-default);
  border-radius: var(--zigo-radius-sm);
  background-color: var(--zigo-bg-surface);
  color: var(--zigo-text-primary);
  font-size: 15px;
  letter-spacing: 0.08em;
  direction: ltr;
}
.zigo-totp-verify {
  display: grid;
  gap: var(--zigo-space-2);
}
.zigo-totp-input {
  max-inline-size: 12rem;
  text-align: center;
  letter-spacing: 0.15em;
}
.zigo-totp-alert:not(:empty) {
  color: var(--zigo-danger-text);
}
.zigo-totp-actions {
  display: flex;
  justify-content: flex-end;
}

/* Recovery codes — fixed-width grid, monospace digits. */
.zigo-security-codes__list {
  list-style: none;
  margin: var(--zigo-space-3) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: var(--zigo-space-2);
}
.zigo-security-codes__list > li {
  padding: var(--zigo-space-2) var(--zigo-space-3);
  border: 1px solid var(--zigo-border-default);
  border-radius: var(--zigo-radius-sm);
  background-color: var(--zigo-bg-subtle);
  text-align: center;
}
.zigo-security-codes__list code {
  direction: ltr;
  letter-spacing: 0.06em;
}

/* ════════════════════════════════════════════════════════════════════
   Relationships & Connections — Stitch workspace surface.
   Contact cards carry the active inline-start accent edge (logical
   direction → RTL-safe); remaining pieces reuse the shared tiles,
   tracks, pills and panels above.
   ════════════════════════════════════════════════════════════════════ */

/* Inverse tile + extended avatar tones (dossier hero, cadence tile). */
.zigo-icon-tile-inverse {
  background-color: var(--zigo-bg-inverse);
  color: var(--zigo-text-inverse);
}
.zigo-icon-tile-sm.zigo-tile-inverse {
  background-color: var(--zigo-bg-inverse);
  color: var(--zigo-text-inverse);
}
.zigo-avatar-neutral {
  background-color: var(--zigo-neutral-fixed);
  color: var(--zigo-neutral-fixed-text);
}
.zigo-avatar-ink {
  background-color: var(--zigo-bg-inverse);
  color: var(--zigo-text-inverse);
}
.zigo-avatar-xl {
  width: 64px;
  height: 64px;
  border-radius: var(--zigo-radius-lg);
  font-size: 20px;
}

/* Contact card — directory row button. */
.zigo-contact {
  display: block;
  width: 100%;
  padding: var(--zigo-space-3);
  border: 0;
  border-inline-start: 4px solid transparent;
  border-radius: var(--zigo-radius-md);
  background: transparent;
  text-align: start;
  cursor: pointer;
  transition:
    background-color var(--zigo-motion-fast) var(--zigo-ease-enter),
    border-color var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-contact:hover {
  background-color: var(--zigo-surface-low);
}
.zigo-contact:focus-visible {
  outline: 0;
  box-shadow: var(--zigo-shadow-focus);
}
.zigo-contact.is-active {
  background-color: var(--zigo-surface-low);
  border-inline-start-color: var(--zigo-accent);
}

/* Muted filter pill (archived circle) + fulfilled commitment state. */
.zigo-filter-pill.is-muted {
  color: var(--zigo-text-tertiary);
}
.zigo-commitment.is-done {
  opacity: 0.65;
}
.zigo-commitment.is-done .zigo-commitment-title {
  text-decoration: line-through;
}

/* Hairline separators for stacked rail rows (linked nodes). */
.zigo-stack-lines > * + * {
  border-top: 1px solid var(--zigo-border-default);
}

@media (prefers-reduced-motion: reduce) {
  .zigo-contact {
    transition: none;
  }
}

/* ════════════════════════════════════════════════════════════════════
   Maps & Places — Stitch "Maps & Places Context Workspace" surface.
   The spatial-overview canvas renders as a fixed dark basemap in both
   themes (map chrome, not a themed panel); pins/routes resolve through
   the semantic tones so the palette stays centralized.
   ════════════════════════════════════════════════════════════════════ */

/* Schematic map canvas — dark basemap under the control stack and the
   selected-trip bar. */
.zigo-map {
  position: relative;
  border-radius: var(--zigo-radius-md);
  overflow: hidden;
  background-color: #171110;
}
.zigo-map svg {
  display: block;
  width: 100%;
  height: auto;
}
.zigo-map-label {
  fill: #a8a294;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.zigo-map-pin {
  color: var(--zigo-neutral-400);
}
.zigo-map-pin-accent {
  color: var(--zigo-accent);
}
.zigo-map-pin-info {
  color: var(--zigo-info);
}
.zigo-map-pin-success {
  color: var(--zigo-success);
}
.zigo-map-pin-muted {
  color: var(--zigo-neutral-400);
}
/* Halo-stroked labels stay legible over the dark basemap. */
.zigo-map-pin-label {
  fill: #f7f2eb;
  font-size: 13px;
  font-weight: 600;
  paint-order: stroke;
  stroke: #171110;
  stroke-width: 5px;
  stroke-linejoin: round;
}
/* Zoom/recenter stack — dark glass over the canvas. */
.zigo-map-controls {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.zigo-map-controls .zigo-icon-btn {
  background-color: rgba(23, 17, 16, 0.88);
  border: 1px solid rgba(197, 192, 177, 0.25);
  color: #cfc8ba;
}
.zigo-map-controls .zigo-icon-btn:hover {
  background-color: rgba(43, 36, 32, 0.95);
  color: #f7f2eb;
}
/* Selected-trip summary bar — floating dark pill inside the canvas. */
.zigo-map-selected {
  position: absolute;
  inset-inline: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: var(--zigo-radius-sm);
  background-color: rgba(20, 15, 13, 0.92);
  border: 1px solid rgba(197, 192, 177, 0.18);
  color: #efe9e0;
  font-size: 12px;
  font-weight: 500;
}
.zigo-map-seg {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}
.zigo-map-seg + .zigo-map-seg {
  padding-inline-start: 14px;
  border-inline-start: 1px solid rgba(197, 192, 177, 0.28);
}
.zigo-map-seg-accent {
  color: var(--zigo-orange-300);
}
.zigo-map-seg-success {
  color: var(--zigo-success);
}
/* ════════════════════════════════════════════════════════════════════
   Unified Search & Global Retrieval modal — Stitch screen
   909bf34666374c64aac6f0ff1265ac0d (WF-059 query path). Rides the shared
   .zigo-overlay/.zigo-sheet frame; these classes own the surface skin:
   input bar, facet strip, synthesis card, hit cards, states, telemetry.
   ════════════════════════════════════════════════════════════════════ */

.zigo-search-sheet {
  max-width: 840px;
}

/* ── Input bar — the Stitch hero field (borderless, tracking-tight). ── */
.zigo-search-bar {
  border-bottom: 1px solid var(--zigo-border-default);
}
.zigo-search-input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  font-family: var(--zigo-font-ui);
  font-size: var(--zigo-text-h4-size);
  line-height: var(--zigo-text-h4-line);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--zigo-text-primary);
  caret-color: var(--zigo-accent);
}
.zigo-search-input::placeholder {
  color: var(--zigo-text-tertiary);
  font-weight: 500;
}
.zigo-search-input:focus {
  outline: none;
  box-shadow: none;
}
/* Native search-field chrome (clear button, decorations) — the sheet
   renders its own clear control so behaviour is identical everywhere. */
.zigo-search-input::-webkit-search-decoration,
.zigo-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

/* ── Facet strip — horizontal scroll without a visible scrollbar. ─── */
.zigo-search-facetbar {
  border-bottom: 1px solid var(--zigo-border-default);
  background-color: var(--zigo-bg-subtle);
}
.zigo-scroll-none {
  scrollbar-width: none;
}
.zigo-scroll-none::-webkit-scrollbar {
  display: none;
}
.zigo-facet {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 4px var(--zigo-space-3);
  border: 1px solid var(--zigo-border-default);
  border-radius: var(--zigo-radius-full);
  background-color: var(--zigo-bg-surface);
  color: var(--zigo-text-secondary);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color var(--zigo-motion-fast) var(--zigo-ease-enter),
    color var(--zigo-motion-fast) var(--zigo-ease-enter),
    border-color var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-facet:hover {
  background-color: var(--zigo-surface-low);
  color: var(--zigo-text-primary);
}
.zigo-facet:focus-visible {
  outline: 2px solid var(--zigo-border-focus);
  outline-offset: 2px;
}
/* The active facet inverts like the Stitch "All Sources" pill. */
.zigo-facet.is-active {
  background-color: var(--zigo-bg-inverse);
  border-color: var(--zigo-bg-inverse);
  color: var(--zigo-text-inverse);
}
.zigo-facet.is-active .zigo-facet-count {
  background-color: var(--zigo-surface-low);
  color: var(--zigo-accent-fixed-text);
}
.zigo-facet-count {
  padding: 0 6px;
  border-radius: var(--zigo-radius-full);
  font-size: 10px;
  line-height: 15px;
  font-weight: 700;
}

/* ── Results scroll region — the sheet's only scroll area. ────────── */
.zigo-search-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  background-color: var(--zigo-bg-subtle);
}

/* ── AI cross-domain synthesis card — accent rail + verified chips. ── */
.zigo-synthesis-card {
  position: relative;
  overflow: hidden;
  padding: var(--zigo-space-5);
  border: 1px solid var(--zigo-border-default);
  border-radius: var(--zigo-radius-xl);
  background-color: var(--zigo-bg-surface);
  box-shadow: var(--zigo-shadow-sm);
}
.zigo-synthesis-card::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 6px;
  background-color: var(--zigo-accent);
}
.zigo-synthesis-body {
  font-size: 13px;
  line-height: 20px;
  color: var(--zigo-text-secondary);
}
/* Styled answer runs — tone contract from SearchSynthesis::segments. */
.zigo-synthesis-body .is-strong {
  font-weight: 600;
  color: var(--zigo-text-primary);
}
.zigo-synthesis-body .is-accent {
  font-weight: 600;
  color: var(--zigo-accent);
}
.zigo-synthesis-body .is-mono {
  font-family: var(--zigo-font-mono, ui-monospace, monospace);
  font-weight: 500;
  color: var(--zigo-text-primary);
}
.zigo-cite {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: 1px solid var(--zigo-border-default);
  border-radius: var(--zigo-radius-sm);
  background-color: var(--zigo-surface-low);
  color: var(--zigo-text-secondary);
  font-size: 11px;
  line-height: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.zigo-cite:hover {
  color: var(--zigo-text-primary);
  background-color: var(--zigo-surface-low-hover, var(--zigo-neutral-100));
}

/* ── Hit card — ranked candidate row (SRC-006/007). ───────────────── */
.zigo-hit {
  position: relative;
  padding: var(--zigo-space-4);
  border: 1px solid var(--zigo-border-default);
  border-radius: var(--zigo-radius-xl);
  background-color: var(--zigo-bg-surface);
  cursor: pointer;
  transition:
    background-color var(--zigo-motion-fast) var(--zigo-ease-enter),
    border-color var(--zigo-motion-fast) var(--zigo-ease-enter),
    box-shadow var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-hit:hover {
  background-color: var(--zigo-bg-canvas);
}
.zigo-hit:focus-visible {
  outline: 2px solid var(--zigo-border-focus);
  outline-offset: 2px;
}
/* Keyboard-traversal state — the Stitch orange wash + accent rail. */
.zigo-hit.is-active {
  background-color: var(--zigo-accent-fixed);
  border-color: color-mix(in srgb, var(--zigo-accent) 40%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--zigo-accent) 30%, transparent);
}
.zigo-hit.is-active::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 4px;
  background-color: var(--zigo-accent);
}
.zigo-hit-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--zigo-radius-sm);
  font-size: 10px;
  line-height: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
/* Badge tones reuse the tile-tone token pairs (single source). */
.zigo-hit-badge.zigo-tone-accent {
  background-color: var(--zigo-accent-fixed);
  color: var(--zigo-accent-fixed-text);
}
.zigo-hit-badge.zigo-tone-info {
  background-color: var(--zigo-info-fixed);
  color: var(--zigo-info-fixed-text);
}
.zigo-hit-badge.zigo-tone-success {
  background-color: var(--zigo-success-soft);
  color: var(--zigo-success-text);
}
.zigo-hit-badge.zigo-tone-warning {
  background-color: var(--zigo-warning-soft);
  color: var(--zigo-warning-text);
}
.zigo-hit-badge.zigo-tone-inverse {
  background-color: var(--zigo-bg-inverse);
  color: var(--zigo-text-inverse);
}
.zigo-hit-title {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--zigo-text-primary);
}
.zigo-hit:hover .zigo-hit-title,
.zigo-hit.is-active .zigo-hit-title {
  /* accent-500 fails WCAG AA on the accent-fixed wash + canvas —
     the strong step keeps the accent hue inside the 4.5:1 floor. */
  color: var(--zigo-accent-strong);
}
.zigo-hit-excerpt {
  font-size: 13px;
  line-height: 19px;
  color: var(--zigo-text-secondary);
}
.zigo-hit-amount {
  font-family: var(--zigo-font-mono, ui-monospace, monospace);
  font-weight: 600;
  color: var(--zigo-text-primary);
  white-space: nowrap;
}
.zigo-hit-tag {
  padding: 2px 8px;
  border-radius: var(--zigo-radius-sm);
  background-color: var(--zigo-surface-low);
  color: var(--zigo-text-tertiary);
  font-family: var(--zigo-font-mono, ui-monospace, monospace);
  font-size: 10px;
  line-height: 14px;
}
/* Commitment/progress sub-panel inside relationship/goal hits. */
.zigo-hit-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  padding: 8px;
  border-radius: var(--zigo-radius-md);
  background-color: var(--zigo-surface-low);
  font-size: 12px;
  line-height: 16px;
  color: var(--zigo-text-primary);
}
.zigo-hit-sub strong {
  font-weight: 600;
}
.zigo-hit-sub-due {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: var(--zigo-radius-sm);
  background-color: var(--zigo-accent-fixed);
  color: var(--zigo-accent-fixed-text);
  font-size: 10px;
  line-height: 14px;
  font-weight: 700;
}
.zigo-hit-track {
  width: 100%;
  height: 8px;
  margin-top: 8px;
  border-radius: var(--zigo-radius-full);
  background-color: var(--zigo-surface-low);
  overflow: hidden;
}
.zigo-hit-track-fill {
  height: 100%;
  border-radius: inherit;
  background-color: var(--zigo-accent);
}
/* Hover-revealed action cluster (fades in; stays visible when a button
   inside has focus so keyboard users never lose it). */
.zigo-hit-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-hit:hover .zigo-hit-actions,
.zigo-hit:focus-within .zigo-hit-actions,
.zigo-hit.is-active .zigo-hit-actions {
  opacity: 1;
}
@media (hover: none) {
  .zigo-hit-actions {
    opacity: 1;
  }
}
.zigo-hit-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: var(--zigo-radius-md);
  background-color: var(--zigo-surface-low);
  color: var(--zigo-text-primary);
  cursor: pointer;
}
.zigo-hit-action:hover {
  background-color: var(--zigo-surface-low-hover, var(--zigo-neutral-100));
}
.zigo-hit-action:focus-visible {
  outline: 2px solid var(--zigo-border-focus);
  outline-offset: 2px;
}

/* ── States — one visible at a time inside the results region. ────── */
.zigo-search-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--zigo-space-2);
  padding: var(--zigo-space-8) var(--zigo-space-4);
  text-align: center;
}
/* [hidden] must beat the flex display above (UA rule loses to class). */
.zigo-search-state[hidden],
[data-zigo-search-synthesis][hidden],
[data-zigo-search-clear][hidden] {
  display: none;
}
.zigo-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid var(--zigo-accent-fixed);
  border-top-color: var(--zigo-accent);
  border-radius: var(--zigo-radius-full);
  animation: zigo-search-spin 0.8s linear infinite;
}
@keyframes zigo-search-spin {
  to {
    transform: rotate(1turn);
  }
}
@media (prefers-reduced-motion: reduce) {
  .zigo-spinner {
    animation-duration: 2.4s;
  }
  .zigo-hit,
  .zigo-hit-actions,
  .zigo-facet {
    transition: none;
  }
}

/* ── Footer — telemetry + hotkey legend (SRC-009/010). ────────────── */
.zigo-search-footer {
  border-top: 1px solid var(--zigo-border-default);
  background-color: var(--zigo-bg-surface);
}
/* Sidebar Search entry — the nav item renders as a <button> trigger for
   the unified search modal; reset UA button chrome to the menu-link skin. */
button.menu-link.zigo-nav-trigger {
  width: 100%;
  border: 0;
  background: none;
  text-align: start;
  cursor: pointer;
  font: inherit;
}

/* ── OAuth handshake ceremony (Stitch "Authorizing GitHub") ────────
   Provider-consent interstitial: handshake conduit, countdown meter,
   dark telemetry console (theme-stable — a log surface stays dark in
   both themes), presence dot and scope-check badge. */

/* Conduit — the bidirectional pulse line linking ZigO ⇄ provider. */
.zigo-conduit {
  position: relative;
  height: 2px;
  border-radius: var(--zigo-radius-full);
  background-color: var(--zigo-meter-track);
  overflow: hidden;
}
.zigo-conduit-pulse {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 33%;
  border-radius: inherit;
  background: linear-gradient(
    to right,
    transparent,
    var(--zigo-accent),
    transparent
  );
  animation: zigo-conduit-pulse 2s linear infinite;
}
@keyframes zigo-conduit-pulse {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(300%);
  }
}

/* Countdown meter — continuous accent fill draining over N seconds. */
.zigo-progress-track {
  height: 6px;
  border-radius: var(--zigo-radius-full);
  background-color: var(--zigo-meter-track);
  overflow: hidden;
}
.zigo-progress-fill {
  height: 100%;
  border-radius: inherit;
  background-color: var(--zigo-accent);
  transition: width 1s linear;
}
.zigo-progress-fill.is-aborted {
  background-color: var(--zigo-danger);
}
.zigo-progress-fill.is-granted {
  background-color: var(--zigo-info);
}

/* Inline button spinner — currentColor ring inside the authorize CTA. */
.zigo-btn-spinner {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  border: 2px solid color-mix(in srgb, currentColor 30%, transparent);
  border-top-color: currentColor;
  border-radius: var(--zigo-radius-full);
  animation: zigo-search-spin 0.8s linear infinite;
}
.zigo-spin {
  animation: zigo-search-spin 0.8s linear infinite;
}

/* Presence dot — accent ring overlay on the account avatar. */
.zigo-presence {
  position: absolute;
  inset-block-end: 0;
  inset-inline-end: 0;
  width: 12px;
  height: 12px;
  border-radius: var(--zigo-radius-full);
  background-color: var(--zigo-accent);
  box-shadow: 0 0 0 2px var(--zigo-bg-surface);
}

/* Scope check — small accent circle closing each requested scope row. */
.zigo-scope-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--zigo-radius-full);
  background-color: var(--zigo-accent);
  color: var(--zigo-accent-fixed-text);
}

/* Card edge accent — the in-flight item's top flag. */
.zigo-edge-accent {
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  background-color: var(--zigo-accent);
}

/* Telemetry console — fixed dark surface (terminals stay dark in both
   themes); fixed palette scales, not semantic tokens that flip. */
.zigo-console {
  border-radius: var(--zigo-radius-lg);
  background-color: var(--zigo-neutral-950);
  color: var(--zigo-neutral-100);
  font-family: var(--zigo-font-mono);
  font-size: var(--zigo-text-caption-size);
  line-height: var(--zigo-text-caption-line);
  padding: var(--zigo-space-5);
}
.zigo-console-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--zigo-radius-full);
  flex-shrink: 0;
}
.zigo-console-dot-error {
  background-color: var(--zigo-error-500);
}
.zigo-console-dot-accent {
  background-color: var(--zigo-orange-500);
}
.zigo-console-dot-info {
  background-color: var(--zigo-info-500);
}
.zigo-console-dim {
  color: var(--zigo-neutral-400);
}
.zigo-console-ts {
  color: var(--zigo-info-500);
}
.zigo-console-tag {
  color: var(--zigo-neutral-25);
  font-weight: 600;
}
.zigo-console-accent {
  color: var(--zigo-orange-400);
}
.zigo-console-strong {
  color: var(--zigo-neutral-25);
  font-weight: 600;
}
.zigo-console-inset {
  border-radius: var(--zigo-radius-xs);
  background-color: var(--zigo-neutral-900);
}
.zigo-console-chip {
  border-radius: var(--zigo-radius-xs);
  padding: 2px var(--zigo-space-2);
  background-color: color-mix(in srgb, var(--zigo-orange-500) 15%, transparent);
  color: var(--zigo-orange-400);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.zigo-console-kv {
  border-top: 1px solid var(--zigo-neutral-800);
}

/* Settings save drawer — sticky bottom bar revealed when a designed
   control reports a dirty state (Stitch settings mockup). It is the
   route's last in-flow element, so its width is exactly the page body's
   .app-container content box: it never reaches under the sidebar rail
   or past the container padding, needs no sidebar-width offset (fixed
   265px-expanded / 75px-rail / hoverable states all stay correct), and
   stays RTL-correct. Sticky pins it to the viewport bottom while the
   page scrolls and lets it settle at the content end. Elevated surface
   + blur backdrop; honors reduced motion. */
.zigo-savebar {
  position: sticky;
  inset-block-end: var(--zigo-space-4);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--zigo-space-3);
  flex-wrap: wrap;
  margin-block-start: var(--zigo-space-6);
  padding: var(--zigo-space-3) var(--zigo-space-4);
  border: 1px solid var(--zigo-border-default);
  border-radius: var(--zigo-radius-lg);
  background-color: color-mix(in srgb, var(--zigo-bg-surface) 95%, transparent);
  backdrop-filter: blur(12px);
  box-shadow: var(--zigo-shadow-lg);
  transition:
    translate var(--zigo-motion-base) var(--zigo-ease-enter),
    opacity var(--zigo-motion-base) var(--zigo-ease-enter);
}
.zigo-savebar[hidden] {
  display: none;
}
/* Slide-up on reveal — [hidden] removal is a display:none → flex
   transition, so @starting-style supplies the pre-insert frame the
   translate/opacity transition eases out of. */
@starting-style {
  .zigo-savebar {
    translate: 0 var(--zigo-space-2);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .zigo-savebar {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zigo-conduit-pulse,
  .zigo-btn-spinner,
  .zigo-spin {
    animation-duration: 2.4s;
  }
  .zigo-progress-fill {
    transition: none;
  }
}
/* ════════════════════════════════════════════════════════════════════
   Air Datepicker (vendored v3.6.0 — the task dialog's Target Date &
   Deadline pickers). Every --adp-* knob resolves to ZigO tokens so the
   popover tracks light/dark themes without a second stylesheet; RTL
   mirrors the grid through direction inheritance (the global container
   mounts on <body>). Z-index rides above .zigo-overlay (1090).
   ════════════════════════════════════════════════════════════════════ */
body .air-datepicker {
  --adp-z-index: 1200;
  --adp-font-family: var(--zigo-font-ui);
  --adp-font-size: var(--zigo-text-body-sm-size);
  --adp-padding: var(--zigo-space-1);
  --adp-border-radius: var(--zigo-radius-lg);
  --adp-cell-border-radius: var(--zigo-radius-sm);
  --adp-border-color: var(--zigo-border-default);
  --adp-border-color-inner: var(--zigo-border-default);
  --adp-border-color-inline: var(--zigo-border-default);
  --adp-background-color: var(--zigo-bg-surface);
  --adp-background-color-hover: var(--zigo-bg-subtle);
  --adp-background-color-active: var(--zigo-surface-low);
  --adp-background-color-in-range: var(--zigo-accent-fixed);
  --adp-background-color-in-range-focused: var(--zigo-accent-fixed);
  --adp-background-color-selected-other-month: var(--zigo-accent-fixed);
  --adp-background-color-selected-other-month-focused: var(--zigo-accent-fixed);
  --adp-color: var(--zigo-text-primary);
  --adp-color-secondary: var(--zigo-text-secondary);
  --adp-accent-color: var(--zigo-accent);
  --adp-color-current-date: var(--zigo-accent);
  --adp-color-other-month: var(--zigo-text-tertiary);
  --adp-color-disabled: var(--zigo-disabled-text);
  --adp-color-disabled-in-range: var(--zigo-text-tertiary);
  --adp-color-other-month-hover: var(--zigo-text-secondary);
  --adp-nav-arrow-color: var(--zigo-text-secondary);
  --adp-nav-color-secondary: var(--zigo-text-secondary);
  --adp-day-name-color: var(--zigo-text-tertiary);
  --adp-day-name-color-hover: var(--zigo-accent);
  --adp-cell-background-color-hover: var(--zigo-bg-subtle);
  --adp-cell-background-color-selected: var(--zigo-action-primary-bg);
  --adp-cell-background-color-selected-hover: var(--zigo-action-primary-hover);
  --adp-cell-background-color-in-range: var(--zigo-accent-fixed);
  --adp-cell-background-color-in-range-hover: var(--zigo-accent-fixed);
  --adp-cell-border-color-in-range: var(--zigo-accent);
  --adp-btn-color: var(--zigo-accent);
  --adp-btn-color-hover: var(--zigo-accent-strong);
  --adp-btn-border-radius: var(--zigo-radius-sm);
  --adp-btn-background-color-hover: var(--zigo-bg-subtle);
  --adp-btn-background-color-active: var(--zigo-surface-low);
  --adp-time-track-color: var(--zigo-border-default);
  --adp-time-track-color-hover: var(--zigo-border-strong);
  --adp-time-day-period-color: var(--zigo-text-secondary);
  --adp-transition-duration: var(--zigo-motion-base);
  --adp-transition-ease: var(--zigo-ease-enter);
  box-shadow: var(--zigo-shadow-lg);
}
body .air-datepicker-overlay {
  --adp-overlay-z-index: 1190;
  --adp-overlay-background-color: var(--zigo-scrim);
  --adp-overlay-transition-duration: var(--zigo-motion-base);
}
/* The library hardcodes a Century Gothic stack for the time readout and
   white range thumbs — map both onto the token surface. */
body .air-datepicker-time--current-hours,
body .air-datepicker-time--current-minutes {
  font-family: var(--zigo-font-ui);
}
body .air-datepicker-time--row input[type="range"]::-webkit-slider-thumb {
  background: var(--zigo-bg-surface);
}
body .air-datepicker-time--row input[type="range"]::-moz-range-thumb {
  background: var(--zigo-bg-surface);
}
@media (prefers-reduced-motion: reduce) {
  body .air-datepicker {
    --adp-transition-duration: 0ms;
  }
  body .air-datepicker-overlay {
    --adp-overlay-transition-duration: 0ms;
  }
}

/* ════════════════════════════════════════════════════════════════════
   Today route (/today) — WF-041 canonical read model. Sections are
   light-DOM <zigo-today-section> Metronic cards on a Bootstrap
   row-cols grid; only the item tone accents stay custom — Bootstrap
   has no inline-start accent-bar primitive.
   ════════════════════════════════════════════════════════════════════ */

.list-group-flush > .list-group-item.zigo-ts-tone-danger {
  border-inline-start: 3px solid var(--zigo-danger, #b3261e);
}
.list-group-flush > .list-group-item.zigo-ts-tone-warn {
  border-inline-start: 3px solid var(--zigo-accent-strong);
}
.list-group-flush > .list-group-item.zigo-ts-tone-accent {
  border-inline-start: 3px solid var(--zigo-accent);
}

/* ════════════════════════════════════════════════════════════════════
   Calendar route (/calendar) — day/week/month/year planning surface.
   Token-driven layout skin; the grids themselves are shadow-scoped
   elements (zigo-calendar-grid / zigo-month-grid / zigo-year-grid /
   zigo-mini-month), so these rules own only the route chrome: the
   aside rail, the anchored quick-create popover, and responsive fold.
   ════════════════════════════════════════════════════════════════════ */

.zigo-cal-body {
  display: flex;
  align-items: flex-start;
  gap: var(--zigo-space-5);
}
.zigo-cal-aside {
  inline-size: 16rem;
  flex-shrink: 0;
  position: sticky;
  inset-block-start: var(--zigo-space-4);
}
.zigo-cal-aside > [data-zigo-cal-mini] {
  background: var(--zigo-bg-surface);
  border: 1px solid var(--zigo-border-default);
  border-radius: var(--zigo-radius-md);
  padding: var(--zigo-space-3);
}
.zigo-cal-main {
  flex: 1;
}

/* ── Quick-create popover — anchored card seeded by a grid slot ──── */
.zigo-cal-pop {
  position: absolute;
  z-index: 60;
  inline-size: 300px;
  max-inline-size: min(92vw, 340px);
  background: var(--zigo-bg-surface);
  border: 1px solid var(--zigo-border-default);
  border-radius: var(--zigo-radius-md);
  box-shadow: var(--zigo-shadow-lg);
  padding: var(--zigo-space-4);
  /* Pops open from the slot's click point (transform-origin set in JS);
     leaves with a quick accelerate. */
  animation: zigo-cal-pop-in var(--zigo-motion-base) var(--zigo-ease-enter) both;
  will-change: transform, opacity;
}
.zigo-cal-pop.is-leaving {
  pointer-events: none;
  animation: zigo-cal-pop-out var(--zigo-motion-fast) var(--zigo-ease-exit) both;
}
@keyframes zigo-cal-pop-in {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(-6px);
  }
}
@keyframes zigo-cal-pop-out {
  to {
    opacity: 0;
    transform: scale(0.96) translateY(-4px);
  }
}
.zigo-cal-pop-title {
  font-size: 1rem;
  font-weight: 600;
}
[data-zigo-calendar] {
  position: relative;
}
[data-zigo-calendar] [data-zigo-cal-empty] {
  margin-block-start: var(--zigo-space-4);
}

/* ── Route motion — enter animations keyed by navigation direction ──
   .cal-enter lands on the grid host + mini rail after a user-driven
   navigation (step/view/pick/today); silent refetches repaint without
   motion. data-enter is the PHYSICAL slide direction — the route has
   already mirrored it for RTL. */
[data-zigo-calendar].cal-fade {
  animation: zigo-cal-fade-in var(--zigo-motion-base) var(--zigo-ease-enter)
    both;
}
.cal-enter[data-enter="0"] {
  animation: zigo-cal-fade-in var(--zigo-motion-base) var(--zigo-ease-enter)
    both;
}
.cal-enter[data-enter="1"] {
  animation: zigo-cal-slide-next var(--zigo-motion-slow) var(--zigo-ease-enter)
    both;
}
.cal-enter[data-enter="-1"] {
  animation: zigo-cal-slide-prev var(--zigo-motion-slow) var(--zigo-ease-enter)
    both;
}
@keyframes zigo-cal-fade-in {
  from {
    opacity: 0;
    transform: scale(0.995);
  }
}
@keyframes zigo-cal-slide-next {
  from {
    opacity: 0.35;
    transform: translateX(28px);
  }
}
@keyframes zigo-cal-slide-prev {
  from {
    opacity: 0.35;
    transform: translateX(-28px);
  }
}
/* Async adornments (empty hint, conflicts chip) fade in on arrival. */
[data-zigo-cal-empty],
[data-zigo-cal-conflicts] > * {
  animation: zigo-cal-fade-in var(--zigo-motion-base) var(--zigo-ease-enter)
    both;
}
/* Press feedback — the shared buttons already transition color/
   background; the calendar scope adds the transform layer + scale. */
[data-zigo-calendar] .zigo-icon-btn,
[data-zigo-calendar] .zigo-seg-item,
[data-zigo-calendar] .zigo-task-action,
[data-zigo-calendar] .zigo-btn-sm,
.zigo-cal-pop button {
  transition:
    transform var(--zigo-motion-fast) var(--zigo-ease-enter),
    background-color var(--zigo-motion-fast) var(--zigo-ease-enter),
    color var(--zigo-motion-fast) var(--zigo-ease-enter),
    box-shadow var(--zigo-motion-fast) var(--zigo-ease-enter);
}
[data-zigo-calendar] .zigo-icon-btn:active,
[data-zigo-calendar] .zigo-seg-item:active,
[data-zigo-calendar] .zigo-task-action:active,
.zigo-cal-pop button:active {
  transform: scale(0.94);
}

/* ── Responsive fold — the rail only ships on lg+ widths ─────────── */
@media (max-width: 991.98px) {
  .zigo-cal-body {
    display: block;
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-zigo-calendar].cal-fade,
  .cal-enter,
  [data-zigo-cal-empty],
  [data-zigo-cal-conflicts] > *,
  .zigo-cal-pop,
  .zigo-cal-pop.is-leaving {
    animation: none;
  }
  .zigo-cal-pop {
    transition: none;
    will-change: auto;
  }
  [data-zigo-calendar] .zigo-icon-btn,
  [data-zigo-calendar] .zigo-seg-item,
  [data-zigo-calendar] .zigo-task-action,
  [data-zigo-calendar] .zigo-btn-sm,
  .zigo-cal-pop button {
    transition: none;
    transform: none;
  }
}

/* ══════════════════════════════════════════════════════════════════
   /dashboard — Zapier-inspired home surface
   Layout: mail card · hero · rail (calendar + tasks) on xl+, a
   five-card context strip underneath; collapses to a single column
   below lg. Cards reuse .zigo-panel chrome; this block only carries
   the surface's own geometry — every color is a token.
   ══════════════════════════════════════════════════════════════════ */

.zigo-dash {
  display: grid;
  gap: var(--zigo-space-4);
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr) minmax(0, 320px);
  grid-template-areas:
    "mail hero rail"
    "strip strip strip";
  align-items: start;
}
.zigo-dash-mail-slot {
  grid-area: mail;
  min-width: 0;
  /* Full-height cell — the Emails card fills the row against the
     hero/rail stack (.zigo-dash-card carries height: 100%). */
  align-self: stretch;
}
.zigo-dash-hero-slot {
  grid-area: hero;
  min-width: 0;
}
.zigo-dash-rail {
  grid-area: rail;
  display: flex;
  flex-direction: column;
  gap: var(--zigo-space-4);
  min-width: 0;
}
.zigo-dash-strip-slot {
  grid-area: strip;
  min-width: 0;
}
.zigo-dash-strip {
  display: grid;
  gap: var(--zigo-space-4);
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.zigo-dash-strip .zigo-panel {
  padding: var(--zigo-space-4);
}

/* Card chrome — tighter head + full-height fill so states align. */
.zigo-dash-card {
  gap: var(--zigo-space-3);
  height: 100%;
}
.zigo-dash-head {
  display: flex;
  align-items: center;
  gap: var(--zigo-space-2);
}
.zigo-dash-view {
  white-space: nowrap;
}
.zigo-dash-notice {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: var(--zigo-space-4);
}
.zigo-dash-skel {
  display: flex;
  flex-direction: column;
  gap: var(--zigo-space-2);
  padding-block: var(--zigo-space-2);
}
.zigo-dash-skel-line {
  display: block;
  height: 10px;
  border-radius: var(--zigo-radius-sm);
  background-color: var(--zigo-bg-surface);
  animation: zigo-dash-skel-pulse 1.4s var(--zigo-ease-enter) infinite;
}
@keyframes zigo-dash-skel-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}
.zigo-dash-footlink {
  display: inline-flex;
  align-items: center;
  gap: var(--zigo-space-1);
  margin-block-start: auto;
  padding-block-start: var(--zigo-space-2);
  font-size: var(--zigo-text-caption-size);
  font-weight: 600;
  color: var(--zigo-link);
  text-decoration: none;
}
.zigo-dash-footlink:hover {
  color: var(--zigo-link-hover);
}
.zigo-dash-footlink:focus-visible {
  outline: 0;
  box-shadow: var(--zigo-shadow-focus);
  border-radius: var(--zigo-radius-sm);
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.zigo-dash-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--zigo-space-8) var(--zigo-space-6);
}
.zigo-dash-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--zigo-text-tertiary);
  margin-block-end: var(--zigo-space-2);
}
.zigo-dash-greeting {
  font-family: var(--zigo-font-display);
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--zigo-text-primary);
  margin-block-end: var(--zigo-space-2);
}
.zigo-dash-sub {
  font-size: var(--zigo-text-body-sm-size);
  color: var(--zigo-text-secondary);
  margin-block-end: var(--zigo-space-6);
}
.zigo-dash-orbrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--zigo-space-4);
  margin-block-end: var(--zigo-space-3);
}
/* The design's signature orb — a saturated orange sphere (identical in
   dark mode, so palette tokens not aliases) with a soft accent glow. */
.zigo-dash-orbrow .zigo-orb-pulse {
  inline-size: 8.5rem;
  block-size: 8.5rem;
}
.zigo-dash-orbrow .zigo-orb {
  inline-size: 7rem;
  block-size: 7rem;
  color: var(--zigo-orange-50);
  background: radial-gradient(
    circle at 34% 26%,
    var(--zigo-orange-300) 0%,
    var(--zigo-orange-500) 55%,
    var(--zigo-orange-700) 100%
  );
  box-shadow:
    0 20px 44px -12px
      color-mix(in srgb, var(--zigo-orange-500) 55%, transparent),
    inset 0 -12px 24px
      color-mix(in srgb, var(--zigo-orange-800) 35%, transparent),
    inset 0 8px 18px color-mix(in srgb, #ffffff 28%, transparent);
}
/* Bare waveform bars flanking the orb (the reference drops the .zigo-eq
   pill) — taller per-bar heights pair with the 7rem orb. */
.zigo-dash-eq {
  gap: 3px;
  padding: 0;
  height: 44px;
  background-color: transparent;
}
.zigo-dash-eq .zigo-eq-bar {
  inline-size: 3px;
}
.zigo-dash-eq .zigo-eq-bar:nth-child(1) {
  height: 26px;
}
.zigo-dash-eq .zigo-eq-bar:nth-child(2) {
  height: 16px;
}
.zigo-dash-eq .zigo-eq-bar:nth-child(3) {
  height: 32px;
}
.zigo-dash-eq .zigo-eq-bar:nth-child(4) {
  height: 20px;
}
.zigo-dash-eq .zigo-eq-bar:nth-child(5) {
  height: 28px;
}
.zigo-dash-eq .zigo-eq-bar:nth-child(6) {
  height: 22px;
}
.zigo-dash-eq .zigo-eq-bar:nth-child(7) {
  height: 14px;
}
/* The trailing bar set mirrors toward the orb for the symmetric look. */
.zigo-dash-eq-end {
  transform: scaleX(-1);
}
.zigo-dash-tap {
  font-size: var(--zigo-text-caption-size);
  color: var(--zigo-text-tertiary);
  margin: 0 0 var(--zigo-space-6);
}
.zigo-dash-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--zigo-space-2);
  margin-block-end: var(--zigo-space-6);
}
.zigo-dash-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--zigo-space-2);
  padding: 6px var(--zigo-space-3);
  border: 1px solid var(--zigo-border-default);
  border-radius: var(--zigo-radius-full);
  background-color: var(--zigo-bg-surface);
  color: var(--zigo-text-primary);
  font-size: var(--zigo-text-caption-size);
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color var(--zigo-motion-fast) var(--zigo-ease-enter),
    color var(--zigo-motion-fast) var(--zigo-ease-enter),
    transform var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-dash-chip:hover {
  border-color: var(--zigo-accent);
  color: var(--zigo-accent-strong);
}
.zigo-dash-chip:active {
  transform: scale(0.97);
}
.zigo-dash-chip:focus-visible {
  outline: 0;
  box-shadow: var(--zigo-shadow-focus);
}

/* Ask bar — the pill input that submits a typed capture. */
.zigo-ask {
  display: flex;
  align-items: center;
  gap: var(--zigo-space-2);
  inline-size: 100%;
  max-inline-size: 560px;
  padding: 4px;
  border: 1px solid var(--zigo-border-default);
  border-radius: var(--zigo-radius-full);
  background-color: var(--zigo-bg-surface);
  transition:
    border-color var(--zigo-motion-fast) var(--zigo-ease-enter),
    box-shadow var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-ask:focus-within {
  border-color: var(--zigo-border-focus);
  box-shadow: var(--zigo-shadow-focus);
}
.zigo-ask-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: none;
  padding: 6px var(--zigo-space-2);
  font: inherit;
  font-size: var(--zigo-text-body-sm-size);
  color: var(--zigo-text-primary);
}
.zigo-ask-input::placeholder {
  color: var(--zigo-text-tertiary);
}
.zigo-ask-input:focus {
  outline: none;
}
.zigo-ask-send {
  border-radius: var(--zigo-radius-full);
  inline-size: 3.75rem;
  block-size: 2.25rem;
  padding: 0;
}
.zigo-ask-attach {
  flex-shrink: 0;
}

/* ── Mail rows ────────────────────────────────────────────────────── */
.zigo-dash-mail {
  display: flex;
  align-items: flex-start;
  gap: var(--zigo-space-3);
}
/* Unread rows read at a glance: accent dot before the sender, heavier
   subject; read rows mute one step so the eye lands on what's new. */
.zigo-dash-mail-meta {
  display: flex;
  align-items: center;
  gap: var(--zigo-space-2);
  margin-block-start: var(--zigo-space-1);
}
.zigo-provider-badge {
  position: absolute;
  inset-block-end: -2px;
  inset-inline-end: -2px;
}

/* ── Task checklines ──────────────────────────────────────────────── */
.zigo-dash-task.is-done .zigo-task-title {
  text-decoration: line-through;
  opacity: 0.55;
}

/* ── Weather card ─────────────────────────────────────────────────── */
.zigo-dash-wx-temp {
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
  color: var(--zigo-text-primary);
}
.zigo-dash-wx-hours {
  display: flex;
  justify-content: space-between;
  gap: var(--zigo-space-2);
  margin-block-start: var(--zigo-space-3);
  padding-block-start: var(--zigo-space-3);
  border-block-start: 1px solid var(--zigo-border-default);
}
.zigo-dash-wx-hour {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

/* ── Finance card ─────────────────────────────────────────────────── */
.zigo-dash-fin {
  font-size: 1.75rem;
  line-height: 1.1;
  font-weight: 700;
  color: var(--zigo-text-primary);
}
.zigo-dash-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--zigo-space-2);
  margin-block-start: var(--zigo-space-3);
}
.zigo-dash-stat {
  padding: var(--zigo-space-2);
  border-radius: var(--zigo-radius-sm);
  background-color: var(--zigo-bg-surface);
  min-width: 0;
}

/* ── Maps card ────────────────────────────────────────────────────── */
.zigo-dash-map {
  block-size: 132px;
}
.zigo-dash-map svg {
  block-size: 100%;
  object-fit: cover;
}

/* ── Responsive folds ─────────────────────────────────────────────── */
@media (max-width: 1199.98px) {
  .zigo-dash {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "hero hero"
      "mail rail"
      "strip strip";
  }
  .zigo-dash-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 767.98px) {
  .zigo-dash {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "hero"
      "rail"
      "mail"
      "strip";
  }
  .zigo-dash-strip {
    grid-template-columns: minmax(0, 1fr);
  }
  .zigo-dash-hero {
    padding: var(--zigo-space-6) var(--zigo-space-4);
  }
  .zigo-dash-orbrow {
    gap: var(--zigo-space-3);
  }
}

@media (prefers-reduced-motion: reduce) {
  .zigo-dash-skel-line {
    animation: none;
  }
  .zigo-dash-chip {
    transition: none;
  }
}

/* ── Privacy controls (settings privacy + location sections) ────────
   Consent list, per-domain flag grid, audit/export/import history and
   the import form — token-styled so the section stops rendering as a
   raw unstyled table/list. */
.zigo-privacy-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--zigo-space-3);
}
.zigo-privacy-list > li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: var(--zigo-space-3);
  row-gap: 2px;
  align-items: start;
}
.zigo-privacy-list > li > input[type="checkbox"] {
  margin-block-start: 3px;
}
.zigo-privacy-list > li > label {
  color: var(--zigo-text-primary);
}
.zigo-privacy-list > li > .zigo-security-list__meta {
  grid-column: 2;
}

.zigo-privacy-grid {
  inline-size: 100%;
  border-collapse: collapse;
}
.zigo-privacy-grid th,
.zigo-privacy-grid td {
  padding: var(--zigo-space-2) var(--zigo-space-3);
  border-block-end: 1px solid var(--zigo-border-default);
  text-align: center;
  vertical-align: middle;
}
.zigo-privacy-grid thead th {
  color: var(--zigo-text-secondary);
  font-size: var(--zigo-text-caption-size);
  font-weight: 600;
}
.zigo-privacy-grid tbody tr:last-child th,
.zigo-privacy-grid tbody tr:last-child td {
  border-block-end: 0;
}
.zigo-privacy-grid th[scope="row"],
.zigo-privacy-grid thead th:first-child {
  text-align: start;
  color: var(--zigo-text-primary);
  font-weight: 500;
}
.zigo-privacy-grid input[type="checkbox"] {
  margin: 0;
}

.zigo-privacy-history {
  list-style: none;
  margin: var(--zigo-space-3) 0 0;
  padding: 0;
  display: grid;
  gap: var(--zigo-space-2);
  color: var(--zigo-text-primary);
}

/* WF-103 — the privacy-center DSR intake form shares the same narrow
 * grid (logical props only, so no RTL mirror is needed). */
.zigo-privacy-import,
.zigo-dsr-form {
  display: grid;
  gap: var(--zigo-space-2);
  max-inline-size: 26rem;
  margin-block-start: var(--zigo-space-3);
}
/* The radio-card picker + correction fieldset span the form's full
 * width — the 26rem cap only suits the plain stacked fields. */
.zigo-dsr-form--wide {
  max-inline-size: none;
  gap: var(--zigo-space-3);
}

/* ── /privacy — the data-rights center ──────────────────────────────
 * Hero explainer, posture stat strip, two-column body (intake+history
 * lane | data-tools rail), request-type radio cards, DSR card heads
 * with deadline chips, and the collapsible per-module progress.
 * Logical props only — the Arabic mirror needs no overrides. */

/* Hero — the rights explainer beside a tinted shield tile. */
.zigo-privacy-hero__row {
  display: flex;
  align-items: flex-start;
  gap: var(--zigo-space-4);
}
.zigo-privacy-hero__text {
  display: grid;
  gap: var(--zigo-space-2);
  min-inline-size: 0;
}
.zigo-privacy-hero__text h2 {
  margin: 0;
}
.zigo-privacy-hero__text p {
  margin: 0;
  max-inline-size: 72ch;
}

/* Posture strip — auto-fit so a short row never stretches one tile
 * full-width; each tile is a plain zigo-card around an icon + stat
 * (the friends stats contract). */
.zigo-privacy-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr));
  gap: var(--zigo-space-3);
}
.zigo-privacy-stat {
  display: block;
}
.zigo-privacy-stat__row {
  display: flex;
  align-items: center;
  gap: var(--zigo-space-3);
}
.zigo-privacy-stat__text {
  display: grid;
  gap: 0;
  min-inline-size: 0;
}
.zigo-privacy-stat__label {
  font-size: 0.8125rem;
  line-height: 1.3;
  color: var(--zigo-text-tertiary);
}
.zigo-privacy-stat__value {
  font-family: var(--zigo-font-display);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--zigo-text-primary);
  overflow-wrap: anywhere;
}

/* Two-column body — single column until the rail has real estate;
 * the intake/history lane stays primary, the data-tools rail docks
 * inline-end (friends layout contract). */
.zigo-privacy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--zigo-space-4);
  align-items: start;
}
@media (min-width: 992px) {
  .zigo-privacy-layout {
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 22rem);
  }
}
.zigo-privacy-main,
.zigo-privacy-side {
  display: flex;
  flex-direction: column;
  gap: var(--zigo-space-4);
  min-inline-size: 0;
}

/* Request-type radio cards — a responsive grid of bordered options;
   the native radio stays visible for semantics/focus, the whole label
   is the click target, and :has() paints the honest checked/hover/
   focus states (onboarding option-card contract). */
.zigo-dsr-types {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--zigo-space-3);
  margin: 0;
  padding: 0;
  border: 0;
}
@media (max-width: 575.98px) {
  .zigo-dsr-types {
    grid-template-columns: minmax(0, 1fr);
  }
}
.zigo-dsr-types > legend {
  padding: 0;
  margin-block-end: var(--zigo-space-1);
  font-size: var(--zigo-text-caption-size);
  font-weight: 600;
  color: var(--zigo-text-primary);
}
.zigo-dsr-type {
  display: flex;
  align-items: flex-start;
  gap: var(--zigo-space-3);
  padding: var(--zigo-space-3);
  border: 1px solid var(--zigo-border-default);
  border-radius: var(--zigo-radius-md);
  cursor: pointer;
  transition:
    border-color var(--zigo-motion-fast) var(--zigo-ease-enter),
    background-color var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-dsr-type:hover {
  background-color: var(--zigo-bg-subtle);
}
.zigo-dsr-type:has(:checked) {
  border-color: var(--zigo-accent-strong);
  background-color: var(--zigo-accent-fixed);
}
.zigo-dsr-type:has(:focus-visible) {
  box-shadow: var(--zigo-shadow-focus);
}
.zigo-dsr-type:has(:checked) .zigo-icon-tile-sm {
  background-color: var(--zigo-accent);
  color: var(--zigo-action-primary-text);
}
/* Erasure reads danger — the selected card, its tile, and the submit
   button all carry the destructive tone. */
.zigo-dsr-type--danger:has(:checked) {
  border-color: var(--zigo-danger);
  background-color: var(--zigo-danger-soft);
}
.zigo-dsr-type--danger:has(:checked) .zigo-icon-tile-sm {
  background-color: var(--zigo-danger);
  color: var(--zigo-action-primary-text);
}
.zigo-dsr-type > input[type="radio"] {
  margin-block-start: 6px;
  flex-shrink: 0;
}
.zigo-dsr-type__text {
  display: grid;
  gap: 2px;
  min-inline-size: 0;
}
.zigo-dsr-type__name {
  font-weight: 600;
  color: var(--zigo-text-primary);
}
.zigo-dsr-type__desc {
  font-size: var(--zigo-text-caption-size);
  line-height: var(--zigo-text-caption-line);
  color: var(--zigo-text-secondary);
}
@media (forced-colors: active) {
  .zigo-dsr-type:has(:checked) {
    border-color: Highlight;
    background-color: Canvas;
  }
}

/* Requests section head — heading at the start, filter seg + refresh
   docked at the end. */
.zigo-dsr-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--zigo-space-3);
  flex-wrap: wrap;
}
.zigo-dsr-head h2 {
  margin: 0;
}
.zigo-dsr-tools {
  display: flex;
  align-items: center;
  gap: var(--zigo-space-2);
  flex-wrap: wrap;
}
/* Muted numeral inside filter chips (the friends tabcount contract). */
.zigo-dsr-count {
  color: var(--zigo-text-tertiary);
  font-size: 10px;
  font-weight: 700;
}
.zigo-seg-item.is-active .zigo-dsr-count {
  color: inherit;
}

/* DSR card head — type-tinted icon tile + "{type} request" title;
   status + deadline badges wrap onto their own lane on narrow cards. */
.zigo-dsr__head {
  display: flex;
  align-items: center;
  gap: var(--zigo-space-3);
  flex-wrap: wrap;
}
.zigo-dsr__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  flex: 1 1 auto;
  min-inline-size: 8rem;
}
.zigo-dsr__title:focus-visible {
  outline: 0;
  box-shadow: var(--zigo-shadow-focus);
}
.zigo-dsr__badges {
  display: flex;
  align-items: center;
  gap: var(--zigo-space-2);
  flex-wrap: wrap;
}
.zigo-icon-tile-sm.zigo-tile-danger {
  background-color: var(--zigo-danger-soft);
  color: var(--zigo-danger-text);
}
.zigo-icon-tile-sm.zigo-tile-neutral {
  background-color: var(--zigo-neutral-fixed);
  color: var(--zigo-neutral-fixed-text);
}

/* Per-module erasure progress — a details/summary keeps long module
   lists collapsed once everything is done; the meter carries the
   at-a-glance read (role="progressbar" + aria-valuetext set in JS). */
details.zigo-dsr-steps {
  margin-block-start: var(--zigo-space-3);
}
details.zigo-dsr-steps > summary {
  display: flex;
  align-items: center;
  gap: var(--zigo-space-2);
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
details.zigo-dsr-steps > summary::-webkit-details-marker {
  display: none;
}
details.zigo-dsr-steps > summary .zigo-ms-16 {
  display: inline-block;
  transition: transform var(--zigo-motion-fast) var(--zigo-ease-enter);
}
details.zigo-dsr-steps[open] > summary .zigo-ms-16 {
  transform: rotate(90deg);
}
details.zigo-dsr-steps > summary:focus-visible {
  outline: 0;
  box-shadow: var(--zigo-shadow-focus);
  border-radius: var(--zigo-radius-xs);
}
details.zigo-dsr-steps > summary .zigo-dsr-count {
  font-size: 0.8125rem;
}
.zigo-dsr-progress {
  display: grid;
  gap: var(--zigo-space-1);
  margin-block-start: var(--zigo-space-2);
}

/* Consent rows — label + help on the start lane, the switch docked at
   the end (settings toggle-row contract). */
.zigo-privacy-consents > li {
  display: flex;
  align-items: center;
  gap: var(--zigo-space-3);
  padding-block: var(--zigo-space-2);
  border-block-end: 1px solid var(--zigo-border-default);
}
.zigo-privacy-consents > li:last-child {
  border-block-end: 0;
}
.zigo-privacy-consents__text {
  display: grid;
  gap: 2px;
  min-inline-size: 0;
  flex: 1;
}
.zigo-privacy-consents__text > label {
  color: var(--zigo-text-primary);
  font-weight: 600;
}
/* The switch column shrinks to its control; the padded form-switch
   wrapper must not stretch. */
.zigo-privacy-consents .form-switch {
  flex-shrink: 0;
}
/* Grid cells host the same switch — keep it optically centered. */
.zigo-privacy-grid td .form-switch {
  display: inline-block;
  vertical-align: middle;
}

@media (prefers-reduced-motion: reduce) {
  .zigo-dsr-type,
  details.zigo-dsr-steps > summary .zigo-ms-16 {
    transition: none;
  }
}

/* ── Metronic badge-light-* contrast remediation (SR-CTL-005) ──────
 * The vendored bundle pairs each brand color with its ~90%-tint
 * (.badge-light-success = bs-success #17c653 on #dfffea ≈ 2.1:1) —
 * every variant misses the WCAG AA 4.5:1 text floor. The theme-aware
 * --bs-*-text-emphasis steps keep each hue dark-on-light in the
 * default theme and light-on-dark in the dark theme. */
.badge-light-primary {
  color: var(--bs-primary-text-emphasis);
}
.badge-light-success {
  color: var(--bs-success-text-emphasis);
}
.badge-light-info {
  color: var(--bs-info-text-emphasis);
}
.badge-light-warning {
  color: var(--bs-warning-text-emphasis);
}
.badge-light-danger {
  color: var(--bs-danger-text-emphasis);
}

/* ── /friends — the social-graph surface (WF-132) ─────────────────
 * Head with the primary "Add Friend" action, the summary stat strip,
 * the tab+filter toolbar, then a two-column body: the active tab
 * panel on the main lane and the "People you may know" rail docked
 * at the inline end. Logical properties throughout — the Arabic
 * mirror needs no overrides; the rail folds under the panel below
 * the xl breakpoint. */

.zigo-friends-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--zigo-space-4);
  flex-wrap: wrap;
  margin-block-end: var(--zigo-space-4);
}
.zigo-friends-head__text {
  display: grid;
  gap: var(--zigo-space-1);
  min-inline-size: 0;
}
.zigo-friends-head__text h1 {
  margin: 0;
}
.zigo-friends-head__text .zigo-caption {
  margin: 0;
  max-inline-size: 52ch;
}

/* Summary strip — auto-fit so a short row never stretches one tile
 * full-width; each tile is a plain zigo-card around a stat. */
.zigo-friends-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr));
  gap: var(--zigo-space-3);
}
.zigo-friends-stat {
  display: block;
}
.zigo-friends-stat zigo-earnings-stat {
  display: block;
}

/* Toolbar — the controls lane under the tablist: search + selects,
 * start-aligned, wrapping to stacked rows on narrow widths. */
.zigo-friends-toolbar {
  display: flex;
  align-items: center;
  gap: var(--zigo-space-3);
  flex-wrap: wrap;
}
.zigo-friends-search {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-inline-size: min(100%, 16rem);
  flex: 1 1 20rem;
  max-inline-size: 26rem;
}
.zigo-friends-search > .zigo-ms-18,
.zigo-friends-search > svg,
.zigo-friends-search > .svg-icon,
.zigo-friends-search > .ki-duotone,
.zigo-friends-search > .material-symbols-outlined {
  position: absolute;
  inset-inline-start: var(--zigo-space-3);
  color: var(--zigo-text-tertiary);
  pointer-events: none;
}
.zigo-friends-filter {
  inline-size: 100%;
  padding-inline-start: calc(var(--zigo-space-3) + 18px + var(--zigo-space-2));
}
@media (max-width: 575.98px) {
  .zigo-friends-search {
    flex: 1 1 100%;
  }
}

/* Two-column body — single column until the rail has real estate;
 * .has-side on the grid marks the rail as painted + on the friends
 * tab so the column only opens when there is content for it. The
 * rail tops out beside the stats strip: stats/tabs/toolbar/list all
 * live inside the main column. */
.zigo-friends-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--zigo-space-4);
  align-items: start;
}
.zigo-friends-main {
  display: flex;
  flex-direction: column;
  gap: var(--zigo-space-4);
  min-inline-size: 0;
}
@media (min-width: 992px) {
  .zigo-friends-layout.has-side {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem);
  }
}
.zigo-friends-side {
  display: block;
  min-inline-size: 0;
}
.zigo-friends-side[hidden] {
  display: none;
}
/* The [hidden] contract loses to ANY author display rule — every
 * hidden-toggleable element whose class declares a display needs the
 * re-declare guard (the .zigo-friends-side precedent above). */
.zigo-count[hidden],
.zigo-security-list__meta[hidden],
.zigo-friends-stats[hidden] {
  display: none !important;
}
/* Minted-token box — the display-once secret row (token field + copy
 * affordance) shared by the /friends invite mint and the /rewards
 * Invite links manager (components/minted-token.js). */
.zigo-minted-box {
  display: flex;
  flex-direction: column;
  gap: var(--zigo-space-2);
}
.zigo-minted-box[hidden] {
  display: none !important;
}
.zigo-minted {
  display: flex;
  align-items: center;
  gap: var(--zigo-space-2);
}
.zigo-minted > input {
  flex: 1 1 10rem;
  min-inline-size: 0;
  font-family: var(--zigo-font-mono);
}
.zigo-minted > button {
  flex: none;
  align-self: center;
}

/* Stat card — the design's tinted icon tile beside a label/value
 * pair (replaces the plain earnings-stat tile). The flex lives on an
 * inner wrapper: slotted children ignore display on the host. */
.zigo-friends-stat__row {
  display: flex;
  align-items: center;
  gap: var(--zigo-space-3);
}
.zigo-friends-stat__text {
  display: grid;
  gap: 0;
  min-inline-size: 0;
}
.zigo-friends-stat__label {
  font-size: 0.8125rem;
  line-height: 1.3;
  color: var(--zigo-text-tertiary);
}
.zigo-friends-stat__value {
  font-family: var(--zigo-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--zigo-text-primary);
}
.zigo-icon-tile-warning {
  background-color: var(--zigo-warning-soft);
  color: var(--zigo-warning-text);
}

/* Toolbar controls row — search + presence/sort selects share the
 * lane under the tablist. */
.zigo-friends-select {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.zigo-friends-select > .zigo-ms-18,
.zigo-friends-select > svg,
.zigo-friends-select > .svg-icon,
.zigo-friends-select > .ki-duotone,
.zigo-friends-select > .material-symbols-outlined {
  position: absolute;
  inset-inline-start: var(--zigo-space-3);
  color: var(--zigo-text-tertiary);
  pointer-events: none;
  z-index: 1;
}
.zigo-friends-select > select {
  inline-size: auto;
  min-inline-size: 9rem;
  padding-inline-start: calc(var(--zigo-space-3) + 18px + var(--zigo-space-2));
}

.zigo-friends-count {
  margin: 0;
}

/* Tab count — a bare coloured numeral beside the label, not a chip.
 * Shared by every role=tablist strip (friends, learning). On the
 * active (primary) tab the numeral takes the button's on-surface
 * colour — an accent numeral is unreadable on orange. */
.zigo-tabcount {
  color: var(--zigo-danger-text, var(--zigo-accent));
  font-size: 0.8125rem;
  font-weight: 700;
}
zigo-button[variant="primary"] .zigo-tabcount {
  color: var(--zigo-action-primary-text);
}
.zigo-tabcount--muted {
  color: var(--zigo-text-tertiary);
}
.zigo-tabcount[hidden] {
  display: none;
}

/* The rail is a card stack — Invite links above the suggestions card. */
.zigo-friends-side {
  display: flex;
  flex-direction: column;
  gap: var(--zigo-space-4);
}
.zigo-friends-manage {
  align-self: center;
  color: var(--zigo-text-tertiary);
  font-size: 0.8125rem;
  text-decoration: none;
}
.zigo-friends-manage:hover {
  text-decoration: underline;
}
.zigo-friends-more {
  display: inline-block;
  border: 0;
  background: none;
  padding: 0;
  color: var(--zigo-accent);
  font-weight: 600;
  cursor: pointer;
  text-align: start;
}
.zigo-friends-more:hover {
  text-decoration: underline;
}
/* Suggestion dismiss — a bare × glyph, no boxed button (reference). */
.zigo-friends-dismiss {
  border: 0;
  background: none;
  padding: var(--zigo-space-1);
  color: var(--zigo-text-tertiary);
  cursor: pointer;
  line-height: 1;
  font-size: 1rem;
}
.zigo-friends-dismiss:hover {
  color: var(--zigo-text-primary);
}
.zigo-friends-dismiss:focus-visible {
  outline: 2px solid var(--zigo-accent);
  outline-offset: 1px;
  border-radius: var(--zigo-radius-sm);
}

/* Dialog section — labelled lanes inside the add-friend sheet. */
.zigo-friends-addsec {
  display: grid;
  gap: var(--zigo-space-3);
  padding-block-start: var(--zigo-space-4);
  margin-block-start: var(--zigo-space-4);
  border-block-start: 1px solid var(--zigo-border-default);
}
.zigo-friends-addsec:first-of-type {
  padding-block-start: 0;
  margin-block-start: 0;
  border-block-start: 0;
}
.zigo-friends-addsec__title {
  display: flex;
  align-items: center;
  gap: var(--zigo-space-2);
  font-family: var(--zigo-font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--zigo-text-primary);
}

/* Sheet-style dialog head — title + caption on the text lane, a
 * labelled close button docked at the inline end. Used by the
 * add-friend and direct-message sheets. */
.zigo-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--zigo-space-3);
  margin-block-end: var(--zigo-space-4);
}
.zigo-dialog-head__text {
  display: grid;
  gap: var(--zigo-space-1);
  min-inline-size: 0;
}
.zigo-dialog-title {
  font-family: var(--zigo-font-display);
  font-size: var(--zigo-text-h3-size);
  line-height: var(--zigo-text-h3-line);
  font-weight: var(--zigo-text-h3-weight);
  letter-spacing: var(--zigo-text-h3-tracking);
  color: var(--zigo-text-primary);
}
.zigo-dialog-close {
  flex: 0 0 auto;
  margin-block-start: calc(var(--zigo-space-1) * -1);
  margin-inline-end: calc(var(--zigo-space-2) * -1);
}

/* Direct-message thread — the log fills the sheet's scrollable lane,
 * the composer docks at the bottom. Own bubbles sit at the
 * inline-end with the accent wash; incoming at the inline-start on
 * the subtle neutral wash. */
.zigo-dm {
  display: flex;
  flex-direction: column;
  gap: var(--zigo-space-3);
  min-block-size: 0;
}
.zigo-dm-list {
  display: flex;
  flex-direction: column;
  gap: var(--zigo-space-3);
  min-block-size: 12rem;
  max-block-size: min(50vh, 24rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-inline-end: var(--zigo-space-1);
}
.zigo-dm-earlier {
  align-self: center;
}
.zigo-dm-msgs {
  display: flex;
  flex-direction: column;
  gap: var(--zigo-space-2);
}
.zigo-dm-msg {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-inline-size: 85%;
}
.zigo-dm-msg.own {
  align-self: flex-end;
  align-items: flex-end;
}
.zigo-dm-bubble {
  padding: var(--zigo-space-2) var(--zigo-space-3);
  border-radius: var(--zigo-radius-lg);
  border-start-start-radius: var(--zigo-radius-xs);
  background: var(--zigo-bg-subtle);
  color: var(--zigo-text-primary);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.zigo-dm-msg.own .zigo-dm-bubble {
  border-start-start-radius: var(--zigo-radius-lg);
  border-start-end-radius: var(--zigo-radius-xs);
  background: var(--zigo-accent-fixed);
  color: var(--zigo-accent-fixed-text);
}
.zigo-dm-meta {
  font-size: var(--zigo-text-caption-size);
  line-height: var(--zigo-text-caption-line);
  color: var(--zigo-text-tertiary);
  padding-inline: var(--zigo-space-1);
}
.zigo-dm-empty {
  margin: auto;
  padding-block: var(--zigo-space-8);
  text-align: center;
  color: var(--zigo-text-secondary);
  font-size: var(--zigo-text-body-sm-size);
}
.zigo-dm-composer {
  display: flex;
  align-items: flex-end;
  gap: var(--zigo-space-2);
  border-block-start: 1px solid var(--zigo-border-default);
  padding-block-start: var(--zigo-space-3);
}
.zigo-dm-field {
  flex: 1 1 auto;
  min-inline-size: 0;
}
.zigo-dm-composer > zigo-button {
  flex: 0 0 auto;
}

@media (prefers-reduced-motion: reduce) {
  .zigo-friends-search > .zigo-ms-18,
  .zigo-dm-bubble {
    transition: none;
  }
}

/* ════════════════════════════════════════════════════════════════════
   Onboarding — the WF-042 first-run flow. Same skin contract: Metronic
   utilities own geometry; these classes own brand surface over the
   semantic tokens, so light/dark resolve with zero overrides.
   ════════════════════════════════════════════════════════════════════ */

/* The wizard column caps at a readable measure — the w-100 card
   otherwise stretches the whole content lane on desktop. */
.zigo-onboarding-card {
  max-width: 44rem;
  margin-inline: auto;
}

/* Card entrance — a direction-neutral rise keeps LTR/RTL identical and
   never fires under reduced-motion. */
@media (prefers-reduced-motion: no-preference) {
  .zigo-onboarding-card {
    animation: zigo-onb-in var(--zigo-motion-slow) var(--zigo-ease-enter);
  }
}
@keyframes zigo-onb-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ── Segmented progress rail — sits atop each step card; the
   role="progressbar" + aria-valuetext live on the track (JS), the
   visible "Step X of Y" caption stays the screen-reader-free text. ── */
.zigo-onboarding-progress {
  display: flex;
  gap: var(--zigo-space-1);
}
.zigo-onboarding-seg {
  flex: 1 1 0%;
  height: 4px;
  border-radius: var(--zigo-radius-full);
  background-color: var(--zigo-meter-track);
  transition: background-color var(--zigo-motion-base) var(--zigo-ease-enter);
}
.zigo-onboarding-seg.is-done,
.zigo-onboarding-seg.is-current {
  background-color: var(--zigo-accent);
}

/* ── Selectable option cards (intent picks, life areas). The native
   control stays visible for semantics/focus — the whole label is the
   click target; :has() paints the honest checked/hover/focus states.
   border-color needs !important to beat Bootstrap's .border utility. ── */
.zigo-onboarding-option,
.zigo-onboarding-area {
  cursor: pointer;
  transition:
    border-color var(--zigo-motion-fast) var(--zigo-ease-enter),
    background-color var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-onboarding-option:hover,
.zigo-onboarding-area:hover {
  background-color: var(--zigo-bg-subtle);
}
.zigo-onboarding-option:has(:checked),
.zigo-onboarding-area:has(:checked) {
  border-color: var(--zigo-accent-strong) !important;
  background-color: var(--zigo-accent-fixed);
}
.zigo-onboarding-option:has(:focus-visible),
.zigo-onboarding-area:has(:focus-visible) {
  box-shadow: var(--zigo-shadow-focus);
}
/* Metronic's checked-check accent is its stock blue — the flow retints
   it to the brand accent so the check reads as one system. */
.zigo-onboarding .form-check-input:checked {
  background-color: var(--zigo-accent);
  border-color: var(--zigo-accent);
}

/* ── A provider card that landed its ceremony reads as success. ───── */
.zigo-onboarding-provider.is-connected {
  border-color: var(--zigo-success) !important;
  background-color: var(--zigo-success-soft);
}

/* ── Welcome value bullets + the done-card recap list. ────────────── */
.zigo-onboarding-points {
  display: grid;
  gap: var(--zigo-space-3);
  margin: 0 0 var(--zigo-space-4);
  padding: 0;
  list-style: none;
}
.zigo-onboarding-points > li {
  display: flex;
  align-items: flex-start;
  gap: var(--zigo-space-3);
}
.zigo-onboarding-summary {
  margin: 0 0 var(--zigo-space-4);
}
.zigo-onboarding-summary-row {
  display: flex;
  align-items: center;
  gap: var(--zigo-space-3);
  padding-block: var(--zigo-space-2);
}
.zigo-onboarding-summary-row + .zigo-onboarding-summary-row {
  border-block-start: 1px solid var(--zigo-border-default);
}
.zigo-onboarding-summary-row > dt {
  display: flex;
  align-items: center;
  gap: var(--zigo-space-2);
  margin: 0;
  font-weight: 600;
}
.zigo-onboarding-summary-row > dd {
  margin: 0;
  margin-inline-start: auto;
  text-align: end;
  color: var(--zigo-text-secondary);
}

@media (prefers-reduced-motion: reduce) {
  .zigo-onboarding-seg,
  .zigo-onboarding-option,
  .zigo-onboarding-area {
    transition: none;
  }
}

/* Forced-colors: progress + selection states stay legible on system
   colors instead of the token fills (which collapse to Canvas). */
@media (forced-colors: active) {
  .zigo-onboarding-seg {
    forced-color-adjust: none;
    background-color: GrayText;
  }
  .zigo-onboarding-seg.is-done,
  .zigo-onboarding-seg.is-current {
    background-color: Highlight;
  }
  .zigo-onboarding-option:has(:checked),
  .zigo-onboarding-area:has(:checked) {
    border-color: Highlight !important;
    background-color: Canvas;
  }
  .zigo-onboarding-provider.is-connected {
    border-color: Highlight !important;
    background-color: Canvas;
  }
}

/* Option-card icon accents — the sm tile fills with the checked state
   so the selection reads as one accent system; the connected provider
   tile fills success the same way. */
.zigo-area-icon {
  color: var(--zigo-text-secondary);
}
.zigo-onboarding-option:has(:checked) .zigo-icon-tile-sm,
.zigo-onboarding-area:has(:checked) .zigo-area-icon {
  background-color: var(--zigo-accent);
  color: var(--zigo-action-primary-text);
}
.zigo-onboarding-provider.is-connected .zigo-icon-tile {
  background-color: var(--zigo-success);
  color: var(--zigo-action-primary-text);
}
@media (forced-colors: active) {
  .zigo-onboarding-option:has(:checked) .zigo-icon-tile-sm,
  .zigo-onboarding-area:has(:checked) .zigo-area-icon,
  .zigo-onboarding-provider.is-connected .zigo-icon-tile {
    forced-color-adjust: none;
    background-color: Highlight;
    color: HighlightText;
  }
}

/* Provider cards ease into their connected skin after the ceremony. */
.zigo-onboarding-provider {
  transition:
    border-color var(--zigo-motion-fast) var(--zigo-ease-enter),
    background-color var(--zigo-motion-fast) var(--zigo-ease-enter);
}
@media (prefers-reduced-motion: reduce) {
  .zigo-onboarding-provider {
    transition: none;
  }
}

/* ── Voice consent card (WF-231) — the one-time "enable voice" prompt.
   Fixed bottom-inline-end panel (non-modal, toast-adjacent); logical
   props keep it RTL-correct; the entrance honors reduced-motion. */
.zigo-voice-consent {
  position: fixed;
  inset-block-end: var(--zigo-space-5);
  inset-inline-end: var(--zigo-space-5);
  z-index: 95;
  inline-size: min(92vw, 360px);
  padding: var(--zigo-space-4);
  background-color: var(--zigo-bg-surface);
  border: 1px solid var(--zigo-border-default);
  border-radius: var(--zigo-radius-lg);
  box-shadow: var(--zigo-shadow-lg);
  animation: zigo-voice-consent-enter var(--zigo-motion-slow)
    var(--zigo-ease-enter);
}
@keyframes zigo-voice-consent-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
.zigo-voice-consent-head {
  display: flex;
  align-items: center;
  gap: var(--zigo-space-3);
  margin-block-end: var(--zigo-space-3);
}
.zigo-voice-consent-title {
  flex-grow: 1;
  min-width: 0;
  margin: 0;
  font-size: var(--zigo-text-body-sm-size);
  font-weight: 600;
  color: var(--zigo-text-primary);
}
.zigo-voice-consent-body {
  margin: 0 0 var(--zigo-space-3);
  font-size: var(--zigo-text-body-sm-size);
  line-height: 1.5;
  color: var(--zigo-text-secondary);
}
.zigo-voice-consent-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--zigo-space-2);
}
@media (prefers-reduced-motion: reduce) {
  .zigo-voice-consent {
    animation: none;
  }
}
@media (forced-colors: active) {
  .zigo-voice-consent {
    border-color: ButtonBorder;
  }
}

/* ── /rewards — task-tab shell + overview projections ─────────── */

/* The [hidden] contract loses to ANY author display rule — .row
 * carries display:flex, so the hidden tab panel needs the explicit
 * re-declare (the .zigo-friends-side precedent). */
.zigo-rewards-panel[hidden] {
  display: none !important;
}

/* Page head — the lede wraps under the support lane on narrow view
 * widths; the link docks start so RTL mirrors it automatically. */
.zigo-rewards-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--zigo-space-4);
  flex-wrap: wrap;
}
.zigo-rewards-head .zigo-hint {
  margin: 0;
  max-inline-size: 60ch;
}

/* Balance hero — balances and contextual actions share one row at
 * lg+; below it they stack in reading order (meta → balances →
 * actions), so the primary CTA never scrolls off first. */
.zigo-rewards-hero {
  display: grid;
  gap: var(--zigo-space-4);
}
@media (min-width: 992px) {
  .zigo-rewards-hero {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}
.zigo-rewards-hero__main {
  display: flex;
  flex-direction: column;
  gap: var(--zigo-space-3);
  min-inline-size: 0;
}
.zigo-rewards-hero__meta {
  display: flex;
  align-items: center;
  gap: var(--zigo-space-2);
  flex-wrap: wrap;
}
.zigo-rewards-hero__balances {
  display: flex;
  gap: var(--zigo-space-6);
  flex-wrap: wrap;
}
.zigo-rewards-hero__bal {
  display: grid;
  gap: var(--zigo-space-1);
  min-inline-size: 0;
}
.zigo-rewards-hero__actions {
  display: flex;
  gap: var(--zigo-space-2);
  flex-wrap: wrap;
  align-items: center;
}
@media (max-width: 575.98px) {
  .zigo-rewards-hero__actions > zigo-button {
    flex: 1 1 100%;
  }
}

/* The attention strip — a compact flag list, one row per verified
 * "needs you" item with its drill-down lane docked at the end. */
.zigo-rewards-flags {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--zigo-space-2);
}
.zigo-rewards-flags > li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--zigo-space-3);
  flex-wrap: wrap;
}

/* ── /rewards wallet tab — balance hero, breakdown stats, ledger ──── */

/* Balance hero — the warm-tinted band the owner lands on: status and
 * currency meta beside the money-lane actions up top, the spendable/
 * redeemable headline derivations underneath. Both gradient stops are
 * semantic tokens, so the band re-skins dark without overrides. */
.zigo-wallet-hero {
  display: flex;
  flex-direction: column;
  gap: var(--zigo-space-4);
  padding: var(--zigo-space-5);
  border: 1px solid var(--zigo-border-default);
  border-radius: var(--zigo-radius-lg);
  background: linear-gradient(
    135deg,
    var(--zigo-accent-fixed) 0%,
    var(--zigo-surface-low) 65%
  );
}
.zigo-wallet-hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--zigo-space-3);
  flex-wrap: wrap;
}
.zigo-wallet-hero__meta {
  display: flex;
  align-items: center;
  gap: var(--zigo-space-2);
  flex-wrap: wrap;
}
.zigo-wallet-hero__currency {
  font-size: var(--zigo-text-body-sm-size);
  font-weight: 600;
  color: var(--zigo-text-secondary);
}
.zigo-wallet-hero__actions {
  display: flex;
  align-items: center;
  gap: var(--zigo-space-2);
  flex-wrap: wrap;
}
.zigo-wallet-hero__figures {
  display: flex;
  align-items: flex-end;
  gap: var(--zigo-space-8);
  flex-wrap: wrap;
}
.zigo-wallet-figure {
  display: grid;
  gap: var(--zigo-space-1);
  min-inline-size: 0;
}
.zigo-wallet-figure__label {
  font-size: var(--zigo-text-caption-size);
  font-weight: 600;
  color: var(--zigo-text-secondary);
}

/* Lane subheads — the quiet section labels inside the wallet card
 * (breakdown, coin ledger). */
.zigo-wallet-subhead {
  margin: 0;
  font-size: var(--zigo-text-body-sm-size);
  line-height: var(--zigo-text-body-sm-line);
  font-weight: 600;
  color: var(--zigo-text-secondary);
}

/* Breakdown — the four maintained components as a 2x2 quiet-tile grid
 * over the shared zigo-earnings-stat renderer. */
.zigo-wallet-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--zigo-space-3);
}
@media (max-width: 575.98px) {
  .zigo-wallet-stats {
    grid-template-columns: minmax(0, 1fr);
  }
}
.zigo-wallet-stat {
  padding: var(--zigo-space-3) var(--zigo-space-4);
  border: 1px solid var(--zigo-border-default);
  border-radius: var(--zigo-radius-md);
  background: var(--zigo-surface-low);
}

/* The exclusions explainer — an info-toned note under the stats; the
 * reason rows split label/amount across the full width. */
.zigo-wallet-note {
  display: flex;
  align-items: flex-start;
  gap: var(--zigo-space-2);
  padding: var(--zigo-space-3) var(--zigo-space-4);
  border-radius: var(--zigo-radius-md);
  background: var(--zigo-info-fixed);
  color: var(--zigo-info-fixed-text);
}
.zigo-wallet-note > div {
  flex: 1;
  min-inline-size: 0;
  display: flex;
  flex-direction: column;
  gap: var(--zigo-space-2);
}
.zigo-wallet-note__title {
  margin: 0;
  font-size: var(--zigo-text-caption-size);
  font-weight: 600;
}
.zigo-wallet-note ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--zigo-space-1);
}
.zigo-wallet-note li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--zigo-space-3);
  font-size: var(--zigo-text-caption-size);
}

/* Holds — a warning callout while reservations sit on the wallet; the
 * honest empty line stays quiet with a small check glyph. */
.zigo-wallet-holds {
  display: flex;
  flex-direction: column;
  gap: var(--zigo-space-2);
  padding: var(--zigo-space-3) var(--zigo-space-4);
  border: 1px solid color-mix(in srgb, var(--zigo-warning) 30%, transparent);
  border-radius: var(--zigo-radius-md);
  background: var(--zigo-warning-soft);
}
.zigo-wallet-holds__head {
  display: flex;
  align-items: center;
  gap: var(--zigo-space-2);
  font-size: var(--zigo-text-caption-size);
  font-weight: 600;
  color: var(--zigo-warning-text);
}
.zigo-wallet-holds ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--zigo-space-2);
}
.zigo-wallet-holds-empty {
  display: flex;
  align-items: center;
  gap: var(--zigo-space-2);
  margin: 0;
  font-size: var(--zigo-text-caption-size);
  color: var(--zigo-text-secondary);
}

/* The immutable ledger — transaction rows: a direction-toned icon
 * tile, type + timestamp, the signed amount + status chip, and a
 * chevron that marks the expandable drill-down. */
.zigo-ledger {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.zigo-ledger > li + li {
  border-block-start: 1px solid var(--zigo-border-default);
}
.zigo-ledger__row {
  display: flex;
  align-items: center;
  gap: var(--zigo-space-3);
  width: 100%;
  padding: var(--zigo-space-3) var(--zigo-space-2);
  border: 0;
  border-radius: var(--zigo-radius-sm);
  background: none;
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: background-color var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-ledger__row:hover {
  background: var(--zigo-surface-low);
}
.zigo-ledger__row:focus-visible {
  outline: 0;
  box-shadow: var(--zigo-shadow-focus);
}
.zigo-ledger__ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--zigo-radius-full);
  background: var(--zigo-neutral-fixed);
  color: var(--zigo-neutral-fixed-text);
}
.zigo-ledger__ic--credit {
  background: var(--zigo-success-soft);
  color: var(--zigo-success-text);
}
.zigo-ledger__main {
  flex: 1;
  min-inline-size: 0;
  display: grid;
  gap: 2px;
}
.zigo-ledger__title {
  font-size: var(--zigo-text-body-sm-size);
  font-weight: 600;
  color: var(--zigo-text-primary);
}
.zigo-ledger__meta {
  font-size: var(--zigo-text-caption-size);
  color: var(--zigo-text-secondary);
}
.zigo-ledger__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--zigo-space-1);
  flex-shrink: 0;
}
.zigo-ledger__chev {
  flex-shrink: 0;
  color: var(--zigo-text-tertiary);
  transition: transform var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-ledger__row[aria-expanded="true"] .zigo-ledger__chev {
  transform: rotate(90deg);
}
.zigo-ledger__detail {
  padding-inline-start: calc(36px + var(--zigo-space-3) + var(--zigo-space-2));
  padding-block-end: var(--zigo-space-3);
  font-size: var(--zigo-text-caption-size);
  color: var(--zigo-text-secondary);
  overflow-wrap: anywhere;
}
.zigo-ledger__more {
  display: flex;
  justify-content: center;
  padding-block-start: var(--zigo-space-2);
}
@media (prefers-reduced-motion: reduce) {
  .zigo-ledger__row,
  .zigo-ledger__chev {
    transition: none;
  }
}

/* ── Rewards payout (Cash out MaCoin) — the eligibility verdict band,
   lane subheads, bordered form panels, disclosure notes and the
   finality row share one visual grammar across the card. */
.zigo-payout-verdict {
  display: flex;
  align-items: center;
  gap: var(--zigo-space-3);
  flex-wrap: wrap;
  padding: var(--zigo-space-3) var(--zigo-space-4);
  border: 1px solid color-mix(in srgb, var(--zigo-success) 30%, transparent);
  border-radius: var(--zigo-radius-md);
  background: var(--zigo-success-soft);
}
.zigo-payout-verdict--warn {
  border-color: color-mix(in srgb, var(--zigo-warning) 30%, transparent);
  background: var(--zigo-warning-soft);
}
.zigo-payout-verdict__text {
  flex: 1;
  min-inline-size: 0;
  display: grid;
  gap: 2px;
}
.zigo-payout-verdict__title {
  margin: 0;
  font-size: var(--zigo-text-body-sm-size);
  line-height: var(--zigo-text-body-sm-line);
  font-weight: 600;
  color: var(--zigo-success-text);
}
.zigo-payout-verdict--warn .zigo-payout-verdict__title {
  color: var(--zigo-warning-text);
}
.zigo-payout-verdict__meta {
  margin: 0;
  font-size: var(--zigo-text-caption-size);
  color: var(--zigo-text-secondary);
}
.zigo-payout-verdict__figure {
  flex-shrink: 0;
  display: grid;
  gap: 2px;
  justify-items: end;
  text-align: end;
}

/* Lane subhead — the quiet lane label with its affordance pinned to
 * the inline end (destination roster, panel heads). */
.zigo-payout-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--zigo-space-3);
  flex-wrap: wrap;
}

/* Bordered quiet panel — the add-destination and redeem forms, the
 * terminal receipt. */
.zigo-payout-panel {
  display: grid;
  gap: var(--zigo-space-3);
  padding: var(--zigo-space-3) var(--zigo-space-4);
  border: 1px solid var(--zigo-border-default);
  border-radius: var(--zigo-radius-md);
  background: var(--zigo-surface-low);
}

/* Disclosure band — provider/settle-tender facts ride an info note;
 * the reconciliation wedge rides the warning tone. */
.zigo-payout-note {
  display: flex;
  align-items: flex-start;
  gap: var(--zigo-space-2);
  padding: var(--zigo-space-3) var(--zigo-space-4);
  border-radius: var(--zigo-radius-md);
  background: var(--zigo-info-fixed);
  color: var(--zigo-info-fixed-text);
  font-size: var(--zigo-text-caption-size);
}
.zigo-payout-note[hidden] {
  display: none !important;
}
.zigo-payout-note--warn {
  background: var(--zigo-warning-soft);
  color: var(--zigo-warning-text);
}
.zigo-payout-note__body {
  flex: 1;
  min-inline-size: 0;
  display: flex;
  flex-direction: column;
  gap: var(--zigo-space-1);
}

/* The irreversibility row — consequence copy under the redeem
 * controls: a quiet warning-tinted line, not an error. */
.zigo-payout-finality {
  display: flex;
  align-items: flex-start;
  gap: var(--zigo-space-2);
  font-size: var(--zigo-text-caption-size);
  line-height: var(--zigo-text-caption-line);
  color: var(--zigo-warning-text);
}

/* ── Connections hub lean refresh — secondary card facts (scopes,
   notices, tags, ledger, healthy consent windows) and the privacy-
   guarantee pillars collapse behind native <details> disclosures;
   the summary rows carry a rotating chevron (mirrored under RTL via
   zigo-rtl-mirror on the icon). Same idiom as details.zigo-dsr-steps. */
.zigo-conn-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--zigo-space-2);
  cursor: pointer;
  list-style: none;
}
.zigo-conn-details > summary::-webkit-details-marker {
  display: none;
}
.zigo-conn-details > summary .zigo-conn-chevron {
  display: inline-block;
  transition: transform var(--zigo-motion-fast) var(--zigo-ease-enter);
}
.zigo-conn-details[open] > summary .zigo-conn-chevron {
  transform: rotate(90deg);
}
.zigo-conn-details > summary:focus-visible {
  outline: 0;
  box-shadow: var(--zigo-shadow-focus);
  border-radius: var(--zigo-radius-xs);
}
@media (prefers-reduced-motion: reduce) {
  .zigo-conn-details > summary .zigo-conn-chevron {
    transition: none;
  }
}

/* Tone combos for the small tile — .zigo-icon-tile-sm's neutral fill
   is declared after the tone classes, so the pair needs an explicit
   rule (same fix as .zigo-icon-tile-sm.zigo-tile-warning). */
.zigo-icon-tile-sm.zigo-icon-tile-accent {
  background-color: var(--zigo-accent-fixed);
  color: var(--zigo-accent-fixed-text);
}
.zigo-icon-tile-sm.zigo-icon-tile-info {
  background-color: var(--zigo-info-fixed);
  color: var(--zigo-info-fixed-text);
}
.zigo-icon-tile-sm.zigo-icon-tile-danger {
  background-color: var(--zigo-danger-soft);
  color: var(--zigo-danger-text);
}

/* ── WF-218 completion pop — the commit-gated payoff pulse applied to
   a goal's pct tile (.zigo-icon-tile) or detail <zigo-progress> for
   one ~600ms cycle (zigoPop() adds then times out the class). The
   media query IS the reduced-motion gate: under `reduce` the class is
   inert and the announce/toast carry the moment alone. Scale +
   brightness are direction-neutral (RTL-safe) and every painted value
   is a design token (theme-safe); filter reaches into the
   <zigo-progress> shadow where color can't. ── */
@media (prefers-reduced-motion: no-preference) {
  .zigo-pop {
    animation: zigo-pop 600ms var(--zigo-ease-enter);
  }
}
@keyframes zigo-pop {
  0% {
    transform: scale(1);
    filter: none;
  }
  35% {
    transform: scale(1.12);
    filter: brightness(1.2) saturate(1.4);
    background-color: var(--zigo-success);
    color: var(--zigo-action-primary-text);
  }
  100% {
    transform: scale(1);
    filter: none;
  }
}
