/* account_menu.css */
/* Account-only rules: shared light/dark tokens come from the application palette. */
.fx-account .fx-account__menu { width: 296px; padding: 8px; border-radius: 18px; background: var(--surface); }
.fx-account .fx-account__who { padding: 9px 10px 12px; margin: 0; }
.fx-account .fx-account__email { font-size: 14px; letter-spacing: -.01em; line-height: 1.5; }
.fx-account .fx-account__role { margin: 1px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.45; }
.fx-account .fx-account__org { margin: 2px 0 0; font-size: 12px; overflow-wrap: anywhere; }
.fx-account__switch { display: inline-block; margin-top: 6px; padding: 3px 0; color: var(--accent-strong); font-size: 12px; }
.fx-account__appearance { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 10px; font-size: 13px; color: var(--muted); }
.fx-account__themes { display: flex; gap: 2px; padding: 3px; background: var(--surface-muted); border: 1px solid var(--line); border-radius: 10px; }
.fx-account__themes button { min-width: 55px; min-height: 32px; padding: 5px 8px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; }
.fx-account__themes button[aria-pressed="true"] { background: var(--surface); color: var(--ink); border-color: var(--line-strong); font-weight: 600; box-shadow: var(--shadow-input); }
.fx-account__themes button:hover { color: var(--ink); }
.fx-account .fx-account__list a, .fx-account .fx-account__item, .fx-account__admin > summary { min-height: 38px; padding: 8px 10px; font-size: 13px; line-height: 1.5; }
.fx-account__admin { margin-top: 3px; }
.fx-account__admin > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; list-style: none; cursor: pointer; border-radius: 10px; }
.fx-account__admin > summary::-webkit-details-marker { display: none; }
.fx-account__admin > summary:hover { background: var(--accent-soft); }
.fx-account__admin > summary svg { flex: none; color: var(--muted); }
.fx-account__admin[open] > summary svg { transform: rotate(90deg); }
.fx-account__admin > .fx-account__list { margin: 2px 0 4px 10px; padding-left: 6px; border-left: 1px solid var(--line); }
.fx-account .fx-account__footer { margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--line); }
@media (pointer: coarse) {
  .fx-account .fx-account__list a, .fx-account .fx-account__item, .fx-account__admin > summary, .fx-account__themes button { min-height: 44px; }
}
/* The learning loop's weekly accuracy alert, admins only (WeeklyAccuracy): a dot on the avatar and one line at the top. */
.fx-account__button { position: relative; }
.fx-account__alert-dot { position: absolute; top: 1px; right: 1px; width: 9px; height: 9px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 2px var(--surface); }
.fx-account__notice { margin: 0 0 6px; padding: 8px 10px; border-radius: 10px; background: var(--warn-bg); font-size: 13px; line-height: 1.45; }
.fx-account__notice a { color: var(--warn); font-weight: 600; }

/* application.css */
/* ClearPath, Direction D: "Bold and precise" (docs/focus/DESIGN-D.md, owner choice 2026-09-26).
   Geist for the interface, Geist Mono for codes and money; white with near-black ink, one indigo accent; very large
   confident type on the main screen, calm precise screens elsewhere; soft depth on the main card only.

   The Tarivo stylesheet bundle preserves this name-ordered cascade:
     application.css   tokens (the only place colours, type, radii and depth are defined), base, page frame, utilities
     components.css    top bar, buttons, links, fields, badges, cards, disclosures, tables, dialogs, toasts, flash, states
     exposure.css      duty exposure and planning (xp-)
     one_box.css       the box, the answer card (HTS card, tariff card), the legal path, home (ob-, lp-)
     packet.css        the printable evidence packet (its own page)
     pages.css         saved products, import, SAP, compare, alerts, profile, abbreviations, members, tools, sign-in, errors
     result_state.css  the result-state pieces (rs__): questions, assumptions, breakdown, and the earlier result component
     zz_glass.css      current visual foundation, light/dark palette, glass app shell and shared control overrides
   The original tokens below provide fallbacks; zz_glass.css supplies the current appearance after screen styles. */

:root {
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* Colour (DESIGN-D "Tokens") */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-muted: #f4f5f8;
  --ink: #0a0e14;
  --ink-soft: #3a4250;
  --muted: #5a6270;
  --faint: #8a919d;            /* large text only (24px and up) */
  --line: #eceef2;
  --line-strong: #d6dae1;
  --control-border: #858c98; /* inputs and secondary buttons: 3.4:1 on white (WCAG 1.4.11) */
  --accent: #4f46e5;
  --accent-ink: #ffffff;
  --accent-soft: #eef0ff;      /* "Ready to approve" and the selected state */
  --accent-strong: #3730a3;
  --good: #146c3c;
  --good-bg: #e9f7ef;
  --warn: #a35a00;
  --warn-bg: #fff4e2;
  --bad: #b42318;              /* a message at a field that must be fixed (not in the owner's palette: errors only) */
  --bad-bg: #fef3f2;
  --hero: #0a0e14;             /* the dark duty card */
  --hero-ink: #ffffff;
  --hero-soft: #c9ced6;
  --hero-muted: #a3aab6;
  --hero-line: #232a35;
  /* inside a dark card (DESIGN-D "Revision 2026-09-26: dark cards for answers"): the dark-theme pairs, measured on --hero */
  --hero-edge: #0a0e14;        /* the dark card's border: invisible on the light page, a lift on the dark page */
  --hero-raised: #1c2330;      /* a surface inside a dark card: grey badges, bar tracks, hover (hero-muted on it 6.7:1) */
  --hero-line-strong: #3a4452; /* link underlines inside a dark card */
  --hero-control: #8a919d;     /* the light outline of pills and inputs on a dark card: 6.1:1 on --hero */
  --hero-accent: #8b85ff;      /* 6.4:1 on --hero */
  --hero-accent-ink: #0a0e14;
  --hero-accent-soft: #1d1b4b;
  --hero-accent-strong: #b9b5ff;
  --hero-good: #6fd39a;
  --hero-good-bg: #10271b;
  --hero-warn: #f2b35a;
  --hero-warn-bg: #2a1d08;
  --hero-bad: #ff8a80;
  --hero-bad-bg: #2c1210;
  --hero-301: #f2a93b;         /* Section 301 on the dark track: 9.7:1 */
  --hero-layer-general: #7b8391; /* the general duty on the dark card: 5.1:1 on --hero, 3.6:1 on a raised track in dark */
  --scrim: rgba(10, 14, 20, 0.55);

  /* Chart layers: they differ in lightness, not only hue; segments are 3px apart */
  --layer-general: #6b7380;
  --layer-232: var(--accent);
  --layer-301: #b86e00; /* 3.7:1 on the light track */
  --layer-other: #22a3a3;

  /* Type scale (px) */
  --text-display: 76px;
  --text-hero: 72px;
  --text-h1: 44px;
  --text-code: 38px;
  --text-h2: 24px;
  --text-body-l: 18px;
  --text-body: 16px;
  --text-label: 14px;
  --text-small: 13px;

  /* Radius */
  --radius-control: 12px;
  --radius-card: 20px;
  --radius-row: 16px;
  --radius-pill: 999px;

  /* Spacing (4px base) and the page gutter */
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --gutter: 64px;
  --content: 1312px;
  --reading: 880px;

  /* Depth: the main card and inputs, nothing else */
  --shadow-card: 0 12px 32px -12px rgba(10, 14, 20, 0.14);
  --shadow-input: 0 1px 2px rgba(10, 14, 20, 0.06);
  --shadow-menu: 0 12px 32px -12px rgba(10, 14, 20, 0.14);

  --ease: cubic-bezier(0.2, 0.65, 0.3, 1);
  --motion: 150ms;
  --topbar-height: 72px;

  color-scheme: light;
}

/* Light is the default. Dark appearance is an explicit, saved account-menu choice. */
:root[data-theme="dark"] {
  --bg: #0a0e14; --surface: #10151d; --surface-muted: #151b24;
  --ink: #f1f3f6; --ink-soft: #c9ced6; --muted: #a3aab6; --faint: #7b8391;
  --line: #232a35; --line-strong: #2f3845; --control-border: #636c7d; --layer-301: #f2a93b;
  --accent: #8b85ff; --accent-ink: #0a0e14; --accent-soft: #1d1b4b; --accent-strong: #b9b5ff;
  --good: #6fd39a; --good-bg: #10271b; --warn: #f2b35a; --warn-bg: #2a1d08; --bad: #ff8a80; --bad-bg: #2c1210;
  --hero: #151b24; --hero-ink: #f1f3f6; --hero-soft: #c9ced6; --hero-muted: #a3aab6; --hero-line: #2f3845;
  --hero-edge: #2f3845; --hero-raised: #252d3a; --hero-line-strong: #4a5463;
  --scrim: rgba(0, 0, 0, 0.6);
  --shadow-card: 0 12px 32px -12px rgba(0, 0, 0, 0.6);
  --shadow-input: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-menu: 0 12px 32px -12px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

@media (max-width: 720px) {
  :root { --gutter: 16px; --text-display: 40px; --text-hero: 52px; --text-h1: 30px; --text-code: 30px; --text-h2: 20px; }
}

/* ------------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100%; background: var(--bg); color: var(--ink);
  font-family: var(--font-sans); font-size: var(--text-body); line-height: 1.45;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 600; line-height: 1.2; }
h1 { font-size: var(--text-h1); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; }
h2 { font-size: var(--text-h2); letter-spacing: -0.02em; }
h3 { font-size: var(--text-body-l); letter-spacing: -0.01em; }
h4 { font-size: var(--text-body); }
p { margin: 0 0 var(--space-2); }
a { color: var(--ink); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { color: var(--ink-soft); text-decoration-color: currentColor; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
img, svg { max-width: 100%; }
code, kbd, samp { font-family: var(--font-mono); }
kbd { font-size: 0.85em; padding: 1px 6px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface-muted); color: var(--ink-soft); }
::selection { background: var(--accent-soft); color: var(--ink); }
[hidden] { display: none !important; }

/* Focus: 2px accent ring, 2px offset, on every control (DESIGN-D "Accessibility") */
:focus { outline: none; }
/* a dark card sets --focus-ring to --hero-ink (components.css "dark cards") */
:focus-visible { outline: 2px solid var(--focus-ring, var(--accent)); outline-offset: 2px; }

/* Motion: 150ms opacity and transform only, on hover and press; nothing moves for a viewer who asks for stillness */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }

/* ------------------------------------------------------------------ utilities */

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.small { font-size: var(--text-small); }
.tiny { font-size: var(--text-small); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.print-only { display: none; }
.empty { color: var(--muted); padding: var(--space-8) 0; font-size: var(--text-label); }

/* Quoted authority: text the law itself wrote (schedule wording, notes, rulings) is set off by an accent rule, as in the
   broker memo; everything the application wrote stays plain. */
.authority__quote, .path__text, .alternative__text, .ruling__holding { font-style: normal; }
.authority__quote { margin: var(--space-2) 0 0; padding: 2px 0 2px var(--space-3); border-left: 2px solid var(--accent); color: var(--ink-soft); line-height: 1.55; overflow-wrap: anywhere; }
.authority__label { font-size: var(--text-small); font-weight: 600; color: var(--ink); cursor: pointer; }

/* ------------------------------------------------------------------ the page frame */

.fx-main { display: block; min-height: calc(100vh - var(--topbar-height)); }
.fx-page { padding: var(--space-12) var(--gutter) var(--space-16); }
.fx-page--tool { max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; }
.fx-wrap { max-width: var(--content); margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-6); min-width: 0; }
.fx-wrap > * { margin-top: 0; margin-bottom: 0; }
/* a reading-width page keeps the same left edge as the wide pages, so titles never jump between screens */
.fx-wrap--narrow, .fx-wrap--reading { max-width: var(--reading); margin-left: max(0px, calc((100% - var(--content)) / 2)); margin-right: auto; }

.fx-printed { margin: 0; font-size: 10pt; color: #333; }
.product-print-footer { padding-top: 6pt; border-top: 1px solid #ccc; }
.product-print-footer p { margin: 0 0 3pt; font-size: 10pt; color: #333; }

@media (max-width: 720px) {
  .fx-page { padding: var(--space-6) var(--gutter) var(--space-12); }
  .fx-wrap { gap: var(--space-4); }
}

/* ------------------------------------------------------------------ print: the page as a record */

@media print {
  :root { --bg: #fff; --surface: #fff; --surface-muted: #f4f4f4; --ink: #000; --ink-soft: #1a1a1a; --muted: #444; --line: #ccc; --line-strong: #999;
          --hero: #fff; --hero-ink: #000; --hero-soft: #1a1a1a; --hero-muted: #444; --shadow-card: none; --shadow-input: none;
          --hero-edge: #999; --hero-raised: #f4f4f4; --hero-line: #ccc; --hero-line-strong: #999; --hero-control: #666;
          --hero-accent: #3730a3; --hero-accent-ink: #fff; --hero-accent-soft: #eef0ff; --hero-accent-strong: #3730a3;
          --hero-good: #146c3c; --hero-good-bg: #e9f7ef; --hero-warn: #a35a00; --hero-warn-bg: #fff4e2; --hero-bad: #b42318; --hero-bad-bg: #fef3f2; --hero-301: #b86e00; --hero-layer-general: #6b7380; }
  body { background: #fff; font-size: 11pt; }
  * { box-shadow: none !important; animation: none !important; }
  .topbar, .toasts, .no-print, .fx-flash, .command-bar, .fx-dialog { display: none !important; }
  .fx-page { padding: 0; }
  .fx-wrap { max-width: none; }
  .print-only { display: block; }
  details:not([open]) > *:not(summary) { display: block !important; }
  a { color: #000; }
}

/* assumption_impact.css */
.ob-card .cp-edit-impact { margin: 0 0 24px; padding: 18px 20px; border: 1px solid var(--glass-outline, var(--line)); border-radius: 16px; background: var(--glass-inset, var(--surface-muted)); color: var(--ink); }
.ob-card .cp-edit-impact__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ob-card .cp-edit-impact__header > strong { font-size: 15px; }
.ob-card .cp-edit-impact__dismiss { flex-shrink: 0; border: 0; padding: 6px; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: 12px; }
.ob-card .cp-edit-impact__dismiss:hover { color: var(--ink); background: var(--surface); }
.ob-card .cp-edit-impact__dismiss:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ob-card .cp-edit-impact__label { margin: 6px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.ob-card .cp-edit-impact__amounts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
.ob-card .cp-edit-impact__amounts span { display: block; color: var(--muted); font-size: 11px; }
.ob-card .cp-edit-impact__amounts strong { display: block; margin-top: 3px; font-family: var(--font-mono); font-size: clamp(17px, 4vw, 24px); font-weight: 600; overflow-wrap: anywhere; }
.ob-card .cp-edit-impact__delta { margin: 12px 0 0; font-weight: 650; font-size: 14px; }
.ob-card .cp-edit-impact__code { margin: 12px 0 0; font-size: 13px; overflow-wrap: anywhere; }
.ob-card .cp-edit-impact__note { margin: 8px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
.ob-card .cp-edit-impact[data-state="lower"] .cp-edit-impact__delta { color: var(--good); }
.ob-card .cp-edit-impact[data-state="higher"] .cp-edit-impact__delta, .ob-card .cp-edit-impact[data-state="error"] .cp-edit-impact__delta { color: var(--warn); }
@media (prefers-reduced-transparency: reduce) {
  .ob-card .cp-edit-impact { background: var(--surface); }
}
@media print { .cp-edit-impact { display: none !important; } }

/* assumptions.css */
/* Workspace result details: provenance, assumptions and edits share one readable surface. */
.ob-fold__body .cp-assumptions { margin: 20px 0 28px; padding: 0; border: 0; color: var(--ink); }
.ob-card .cp-assumptions__header { margin-bottom: 12px; }
.ob-card .cp-assumptions .ob-subhead { margin: 0; color: var(--ink); font-size: 24px; font-weight: 650; letter-spacing: -.035em; }
.ob-card .cp-assumptions__intro, .ob-card .cp-assumptions__empty { max-width: 65ch; margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.ob-card .cp-assumptions__intro .ob-subhead { margin-bottom: 8px; }
.ob-card .cp-assumptions__group { margin-top: 24px; }
.ob-card .cp-assumptions__group-heading { margin-bottom: 12px; }
.ob-card .cp-assumptions__group-heading h4 { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; font-weight: 650; }
.ob-card .cp-assumptions__group-heading h4 span { min-width: 21px; border: 1px solid var(--line-strong); border-radius: 7px; padding: 1px 5px; color: var(--muted); font-size: 11px; text-align: center; }
.ob-card .cp-assumptions__group-heading p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.ob-card .cp-assumptions .cp-assumptions__list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ob-card .cp-assumptions__list + .cp-assumptions__list { margin-top: 12px; }
/* product-duty-9: the assumptions that change nothing, one line each (answered in duty review) */
.ob-card .cp-assumptions__lines { display: grid; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; color: var(--ink-soft); font-size: 14px; line-height: 1.55; }
.ob-card .cp-assumptions .cp-assumption { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0; padding: 18px 20px; border: 1px solid var(--glass-outline, var(--line)); border-radius: 18px; background: var(--glass-inset, var(--surface-muted)); box-shadow: var(--glass-highlight, none); }
.ob-card .cp-assumptions__group[data-assumption-group="assumed"] .cp-assumptions__group-heading h4 { color: var(--assumed); }
.ob-card .cp-assumptions__group[data-assumption-group="assumed"] .cp-assumptions__group-heading h4 span { color: var(--assumed); border-color: var(--assumed-line); background: var(--assumed-bg); }
.ob-card .cp-assumption--assumed .cp-assumption__source { color: var(--assumed); }
.ob-card .cp-assumption__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.ob-card .cp-assumption__source { display: inline-block; margin-bottom: 8px; color: var(--muted); font-size: 11px; font-weight: 600; line-height: 1.35; }
.ob-card .cp-assumption__meta .cp-assumption__source { margin: 0; }
.ob-card .cp-assumption__impact { display: inline-block; padding: 3px 7px; border-radius: 6px; background: var(--glass-raised, var(--surface)); color: var(--assumed); font-size: 11px; font-weight: 600; }
.ob-card .cp-assumption[data-uncertain="true"] .cp-assumption__impact { background: var(--warn-bg); color: var(--warn); }
.ob-card .cp-assumption .rs__assume-text { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.55; }
.ob-card .cp-assumption .rs__assume-lead { color: var(--ink); font-weight: 600; }
.ob-card .cp-assumption .rs__assume-if { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.ob-card .cp-assumption .cp-assumption__effect { display: block; margin: 10px 0 0; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--glass-raised, var(--surface)); color: var(--ink-soft); font-size: 13px; font-weight: 500; line-height: 1.5; }
.ob-card .cp-assumption .cp-assumption__effect[data-change="lower"] { background: var(--good-bg); border-color: color-mix(in srgb, var(--good) 15%, transparent); color: var(--good); }
.ob-card .cp-assumption .cp-assumption__editor { display: flex; flex-direction: column; align-items: stretch; gap: 10px; width: 100%; margin: 0; padding-top: 14px; border-top: 1px solid var(--line); }
.ob-card .cp-assumption .cp-assumption__editor .rs__assume-form { margin: 0; }
.ob-card .cp-assumption .cp-assumption__editor .fx-btn { min-height: 36px; white-space: normal; text-align: left; }
.ob-card .cp-assumption .cp-assumption__form { display: grid; gap: 12px; width: 100%; max-width: none; margin: 0; padding: 0; border: 0; background: none; }
.ob-card .cp-assumption__form .rs__question-wrap, .ob-card .cp-assumption__form .rs__question { margin: 0; padding: 0; border: 0; min-width: 0; }
.ob-card .cp-assumption__form .rs__question-text { margin: 0 0 8px; padding: 0; color: var(--ink-soft); font-size: 12px; font-weight: 500; line-height: 1.5; }
.ob-card .cp-assumption__form .rs__options { display: flex; flex-flow: row wrap; gap: 7px; margin: 0; }
.ob-card .cp-assumption__form .rs__option { display: inline-flex; flex: 0 1 auto; align-items: center; gap: 7px; min-height: 36px; margin: 0; padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); color: var(--ink-soft); font-size: 12px; line-height: 1.4; cursor: pointer; }
.ob-card .cp-assumption__form .rs__option:hover { border-color: var(--accent); }
.ob-card .cp-assumption__form .rs__option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); }
.ob-card .cp-assumption__form .rs__option input { width: 13px; height: 13px; margin: 0; accent-color: var(--accent); }
.ob-card .cp-assumption__form .rs__option--unknown { color: var(--muted); }
.ob-card .cp-assumption__form .fx-input { min-height: 38px; font-size: 14px; }
.ob-card .cp-assumption__form .fx-hint { margin-top: 6px; font-size: 12px; }
.ob-card .cp-assumption__form .cp-assumption__save { justify-self: start; }
.ob-card .cp-assumption__saving, .ob-card .cp-assumption__error { display: none; font-size: 12px; }
.cp-answer-status { color: var(--muted); font-size: 12px; line-height: 1.5; }
[data-edit-state="unsaved"] .cp-answer-status { color: var(--warn); }
[data-edit-state="error"] .cp-answer-status { color: var(--bad); }
.ob-card .cp-basis-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 12px; line-height: 1.5; }
.ob-card .cp-basis-summary__label { color: var(--muted); }
.ob-card .cp-basis-summary__hint { display: block; flex-basis: 100%; color: var(--muted); font-size: 11px; }
.fx-dark .cp-basis-summary { border-color: var(--hero-line); color: var(--hero-soft); }
.fx-dark .cp-basis-summary__label, .fx-dark .cp-basis-summary__hint { color: var(--hero-muted); }
@media (min-width: 900px) {
  .ob-card .cp-assumptions .cp-assumption:has(.cp-assumption__editor) { grid-template-columns: minmax(0, 1.1fr) minmax(240px, 1fr); gap: 20px; }
  .ob-card .cp-assumption .cp-assumption__editor { padding-top: 0; padding-left: 20px; border-top: 0; border-left: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .ob-card .cp-assumptions .ob-subhead { font-size: 21px; }
  .ob-card .cp-assumptions .cp-assumption { padding: 15px; border-radius: 14px; }
}
@media (prefers-reduced-transparency: reduce) {
  .ob-card .cp-assumptions .cp-assumption { background: var(--surface); }
}
@media print {
  .ob-card .cp-assumptions .cp-assumption { display: block; break-inside: avoid; box-shadow: none; background: white; }
  .ob-card .cp-basis-summary__hint { display: none; }
}
/* TPD: where an assumption comes from ("Company default", "Most likely", "Assumed the costlier case"). */
.ob-card .cp-assumption[data-source="safe_side"] .cp-assumption__source { color: var(--warn, var(--assumed)); }
.ob-card .cp-assumption[data-source="company_profile"] .cp-assumption__source { color: var(--ink-soft, var(--muted)); }
.rs__assume-source { margin: 0 0 2px; font-size: 11px; font-weight: 600; }

/* calculation_coverage.css */
/* What a saved duty estimate leaves out and the dates it is for: two quiet lines, deliberately apart from confidence badges. */
.ob-card .cp-coverage { display: grid; gap: 4px; margin: 0 0 var(--space-4); font-size: var(--text-small); line-height: 1.5; }
.ob-card .cp-coverage p { margin: 0; }
.ob-card .cp-coverage__limits { color: var(--ink-soft); }
.ob-card .cp-coverage__dates { color: var(--muted); }

/* components.css */
/* Direction D components (docs/focus/DESIGN-D.md "Components"), used on every screen. Tokens only (application.css). */

/* ------------------------------------------------------------------ top bar: 72 high, wordmark, tabs, search pill

   PLAN-2 T: the tabs are text links; the active one is ink with a 2 px underline on the bar's bottom rule
   (aria-current="page"), and Changes carries a small accent dot while a tariff change is unseen. At 900 px and below the
   bar has two rows: the wordmark, search and avatar, then the tabs as one horizontally scrollable row (no hamburger). */

.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: var(--space-10);
  height: var(--topbar-height); padding: 0 var(--gutter); background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.fx-brand, .topbar__brand {
  display: inline-flex; align-items: center; gap: 10px; flex: none; min-height: 44px;
  font-size: 20px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); text-decoration: none;
}
.fx-brand:hover { color: var(--ink); }
.fx-nav { position: relative; display: flex; align-items: stretch; align-self: stretch; gap: 28px; min-width: 0; }
.fx-nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--muted); font-size: 15px; font-weight: 500;
  text-decoration: none; white-space: nowrap; transition: color var(--motion) var(--ease);
}
.fx-nav__link:hover { color: var(--ink); }
.fx-nav__link--active, .fx-nav__link[aria-current="page"] { color: var(--ink); }
.fx-nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px 2px 0 0; background: var(--ink);
}
.fx-nav__link:focus-visible { outline-offset: -2px; border-radius: 6px; }
.fx-nav__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; transform: translateY(-5px); }
.fx-search-trigger {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px; height: 40px; min-width: 44px; padding: 0 18px; flex: none;
  border: 1px solid var(--control-border); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink);
  font-size: var(--text-label); font-weight: 500; cursor: pointer; transition: opacity var(--motion) var(--ease);
}
.fx-search-trigger svg { color: var(--muted); }
.fx-search-trigger kbd { border: 0; background: none; padding: 0; color: var(--muted); font-family: var(--font-sans); font-size: var(--text-label); }
.fx-search-trigger:hover { opacity: .8; }
.topbar__reviewer { margin-left: auto; color: var(--muted); font-size: var(--text-label); }
.topbar__signout { display: inline; margin: 0; }

.fx-account { position: relative; flex: none; }
.fx-account__button {
  list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; cursor: pointer;
  border-radius: var(--radius-pill); color: var(--muted);
}
.fx-account__button::-webkit-details-marker { display: none; }
.fx-account__avatar {
  width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--surface-muted); color: var(--ink); font-weight: 600; font-size: var(--text-label);
}
.fx-account__menu {
  position: absolute; right: 0; top: calc(100% + 8px); width: 300px; max-width: calc(100vw - 2 * var(--gutter)); z-index: 40; padding: var(--space-2);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-row); box-shadow: var(--shadow-menu);
}
.fx-account__who { padding: var(--space-2) var(--space-3) var(--space-3); border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.fx-account__email { margin: 0; font-weight: 600; font-size: var(--text-label); overflow-wrap: anywhere; }
.fx-account__org { margin: 2px 0 0; color: var(--muted); font-size: var(--text-small); }
.fx-account__heading { margin: var(--space-2) var(--space-3) 2px; color: var(--muted); font-size: var(--text-small); font-weight: 500; }
.fx-account__list { list-style: none; margin: 0; padding: 0; }
.fx-account__list a, .fx-account__item {
  display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 var(--space-3); border: 0; background: none;
  border-radius: var(--radius-control); color: var(--ink); font-size: var(--text-label); text-align: left; text-decoration: none; cursor: pointer;
}
.fx-account__list a:hover, .fx-account__item:hover { background: var(--surface-muted); color: var(--ink); }
.fx-account__form { margin: 0; }
.fx-account__sep { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }

.fx-skip { position: absolute; left: -9999px; top: 8px; }
.fx-skip:focus { left: var(--space-3); z-index: 50; padding: var(--space-2) var(--space-3); border-radius: var(--radius-control); background: var(--ink); color: var(--bg); }

/* breadcrumbs, only where they help (a product: Products › its name; one change: Changes › …) */
.fx-crumbs { margin: 0; }
.fx-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--muted); font-size: var(--text-label); font-weight: 500; }
.fx-crumbs li { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.fx-crumbs li + li::before { content: "›"; color: var(--muted); }
.fx-crumbs a { color: var(--muted); }
.fx-crumbs a:hover { color: var(--ink); }
.fx-crumbs [aria-current="page"] { color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 48ch; }

/* sub-tabs inside one tab (Changes: alerts · tariff impact · change impact) */
.fx-subtabs { display: flex; gap: var(--space-2); overflow-x: auto; scrollbar-width: none; margin: 0; padding: 2px 0; }
.fx-subtabs::-webkit-scrollbar { display: none; }
.fx-subtabs__link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 var(--space-4); flex: none; white-space: nowrap;
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill); color: var(--ink-soft); font-size: var(--text-label); font-weight: 500; text-decoration: none;
}
.fx-subtabs__link:hover { color: var(--ink); border-color: var(--control-border); }
.fx-subtabs__link[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.fx-subtabs__count { font-variant-numeric: tabular-nums; color: inherit; opacity: .75; }

@media (max-width: 1100px) {
  .topbar { gap: var(--space-6); }
  .fx-nav { gap: var(--space-5); }
}
@media (max-width: 720px) {
  .fx-brand { font-size: 17px; }
  .fx-search-trigger { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .fx-search-trigger__text, .fx-search-trigger kbd, .fx-account__chev { display: none; }
}
@media (max-width: 400px) {
  .fx-brand { gap: 6px; font-size: 16px; }
  .fx-account__avatar { width: 32px; height: 32px; }
}

/* ------------------------------------------------------------------ headings and text on a page */

.fx-title { margin: 0; font-size: var(--text-h1); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; }
.fx-h2 { margin: 0; font-size: var(--text-h2); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.fx-lede { margin: 0; max-width: 64ch; color: var(--ink-soft); font-size: var(--text-body-l); line-height: 1.45; }
.fx-eyebrow { margin: 0; color: var(--muted); font-size: var(--text-label); font-weight: 500; }
.fx-eyebrow a { color: var(--muted); }
.fx-head { display: flex; flex-direction: column; gap: var(--space-3); }
.fx-listhead { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-4); flex-wrap: wrap; }
.fx-listhead > div { display: flex; flex-direction: column; gap: var(--space-3); }
.fx-hint { color: var(--muted); font-size: var(--text-small); line-height: 1.45; margin: 0; }
.fx-optional, .fx-label__optional { color: var(--muted); font-weight: 400; font-size: var(--text-small); }

/* ------------------------------------------------------------------ links */

.fx-link { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.fx-link:hover { color: var(--ink); text-decoration-color: currentColor; }
.fx-link--quiet { font-weight: 400; }
.fx-link--nav { text-decoration: none; font-weight: 600; }
.fx-link--nav::after { content: " →" / ""; transition: margin var(--motion) var(--ease); }
.fx-link--nav:hover { text-decoration: underline; text-decoration-color: currentColor; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: var(--text-label); font-weight: 500; text-decoration: none; }
.back-link:hover { color: var(--ink); }

/* ------------------------------------------------------------------ buttons: primary (ink, 12 radius), accent pill, secondary pill */

.fx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border: 1px solid var(--control-border); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink);
  font-size: var(--text-label); font-weight: 500; line-height: 1.2; text-align: center; text-decoration: none; white-space: normal; cursor: pointer;
  transition: opacity var(--motion) var(--ease), transform var(--motion) var(--ease);
}
.fx-btn:hover { color: var(--ink); opacity: .82; }
.fx-btn:active { transform: translateY(1px); }
.fx-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.fx-btn--primary { border-color: var(--ink); border-radius: var(--radius-control); background: var(--ink); color: var(--bg); font-weight: 600; }
.fx-btn--primary:hover { color: var(--bg); }
.fx-btn--box { min-height: 52px; font-size: var(--text-body); }
.fx-btn--accent { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.fx-btn--accent:hover { color: var(--accent-ink); }
.fx-btn--invert { border-color: var(--hero-ink); background: var(--hero-ink); color: var(--hero); font-weight: 600; }
.fx-btn--invert:hover { color: var(--hero); }
.fx-btn--secondary { font-weight: 500; }
.fx-btn--quiet { border-color: transparent; background: transparent; padding: 0 12px; font-weight: 500; }
.fx-btn--quiet:hover { background: var(--surface-muted); opacity: 1; }
.fx-btn--small { padding: 0 16px; font-size: var(--text-label); }
.fx-btn__arrow { font-weight: 600; }
button.fx-btn { font-family: inherit; }
summary.fx-btn { list-style: none; }
summary.fx-btn::-webkit-details-marker { display: none; }
form.button_to, .ob-inline-form, .rs__action-form, .rs__assume-form { display: inline-flex; margin: 0; }

/* ------------------------------------------------------------------ fields */

.fx-form { display: grid; gap: var(--space-5); grid-template-columns: minmax(0, 1fr); }
.fx-field { display: grid; gap: 6px; min-width: 0; grid-template-columns: minmax(0, 1fr); }
.fx-label { font-weight: 500; font-size: var(--text-label); color: var(--ink); }
.fx-input, .ob-input {
  width: 100%; min-width: 0; min-height: 48px; padding: 0 16px;
  border: 1px solid var(--control-border); border-radius: var(--radius-control); background: var(--surface); color: var(--ink);
  font-size: var(--text-body); box-shadow: var(--shadow-input);
}
.fx-input::placeholder, .ob-input::placeholder { color: var(--faint); opacity: 1; }
.fx-input:focus-visible, .ob-input:focus-visible { border-color: var(--accent); }
.fx-input[aria-invalid="true"], .ob-input[aria-invalid="true"] { border-color: var(--bad); }
select.fx-input, select.ob-input { padding-right: 36px; }
textarea.fx-input, .fx-textarea { min-height: 140px; padding: var(--space-3) 16px; line-height: 1.5; resize: vertical; }
.fx-input--code { max-width: 280px; font-family: var(--font-mono); font-size: var(--text-body-l); }
.fx-input--short { max-width: 180px; }
.fx-money { position: relative; max-width: 280px; }
.fx-money > span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-family: var(--font-mono); pointer-events: none; }
.fx-money .fx-input { padding-left: 32px; font-family: var(--font-mono); }
.fx-unit { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.fx-unit__suffix { color: var(--muted); font-size: var(--text-label); }
.fx-file { font-size: var(--text-label); max-width: 100%; }
.fx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-5); }
.fx-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); }

/* errors at the field, in plain words; the summary names the field */
.fx-error { margin: 0; color: var(--bad); font-size: var(--text-label); font-weight: 500; }
.fx-error::before { content: "! " / ""; font-weight: 700; }
.fx-errors { padding: var(--space-4) var(--space-5); border: 1px solid var(--bad); border-radius: var(--radius-row); background: var(--bad-bg); color: var(--ink); }
.fx-errors__title { margin: 0 0 6px; font-weight: 600; color: var(--bad); }
.fx-errors ul { margin: 0; padding-left: 20px; }
.fx-errors a { color: var(--ink); }

/* the country picker (ARIA combobox) */
.fx-combo { position: relative; min-width: 0; }
.fx-combo__list {
  position: absolute; z-index: 25; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none;
  max-height: 280px; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-control); box-shadow: var(--shadow-menu);
}
.fx-combo__option { display: flex; align-items: center; min-height: 40px; padding: 0 var(--space-3); border-radius: 8px; cursor: pointer; font-size: var(--text-body); }
.fx-combo__option--active, .fx-combo__option:hover { background: var(--accent-soft); color: var(--ink); }

.fx-callout { margin: 0; padding: var(--space-4) var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-row); background: var(--surface-muted); font-size: var(--text-label); }
.fx-callout p { margin: 0 0 var(--space-2); }
.fx-callout p:last-child { margin-bottom: 0; }
.fx-callout--warn { border-color: transparent; background: var(--warn-bg); }

/* ------------------------------------------------------------------ status badges: pills, the word always shown */

.fx-state, .ob-badge, .pill {
  display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 3px 12px; border-radius: var(--radius-pill);
  background: var(--surface-muted); color: var(--muted); font-size: var(--text-small); font-weight: 600; line-height: 1.2; white-space: nowrap;
}
.fx-state--grey, .fx-state--neutral, .ob-badge--grey, .pill--grey, .pill--neutral { background: var(--surface-muted); color: var(--muted); }
.fx-state--warn, .fx-state--review, .ob-badge--warn, .pill--warn { background: var(--warn-bg); color: var(--warn); }
.fx-state--accent, .fx-state--active, .ob-badge--accent { background: var(--accent-soft); color: var(--accent-strong); }
.fx-state--good, .ob-badge--good, .pill--good { background: var(--good-bg); color: var(--good); }
.fx-state--review::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.fx-products__by { font-weight: 400; }

/* ------------------------------------------------------------------ cards and panels */

.fx-panel, .card {
  display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; padding: var(--space-6);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
}
.fx-panel > *, .card > * { margin-top: 0; margin-bottom: 0; }
.fx-panel h2, .card h2 { font-size: var(--text-body-l); font-weight: 600; letter-spacing: -0.01em; }
.fx-panel--muted { background: var(--surface-muted); border-color: transparent; }
.fx-empty { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-10) var(--space-8); border-radius: var(--radius-card); background: var(--surface-muted); }
.fx-empty > * { margin: 0; }
.fx-empty__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-2); }

/* ------------------------------------------------------------------ dark cards (DESIGN-D "Revision 2026-09-26: dark cards for answers")

   The owner chose the dark duty card as the look for every answer and summary card: the HTS and tariff
   cards, the Planning total, scenario results and biggest savings, the tariff change summary, the welcome cards, the
   Overview's exposure card, the Compare countries key fact and the Tariff impact figures. Long lists, tables and forms
   stay light.

   .fx-dark re-points the page tokens at the hero tokens for everything inside it, so the shared components need nothing
   of their own: text is --hero-ink / --hero-soft / --hero-muted, badges take their dark-theme pairs, the chart layers
   their dark-track colours, a secondary pill a light outline (--hero-control), the primary button turns white with dark
   text (--ink on --bg), and the focus ring is --hero-ink. Use it alone on a part of a card (the face of a card that
   opens: its body stays light, since the body is outside the face), or use .fx-card--dark on a whole card, which also
   paints the card and its edge (--hero-edge: invisible on the light page, a lifted border on the dark page). */
.fx-dark, .fx-card--dark {
  --bg: var(--hero); --surface: var(--hero); --surface-muted: var(--hero-raised);
  --ink: var(--hero-ink); --ink-soft: var(--hero-soft); --muted: var(--hero-muted); --faint: var(--hero-muted);
  --line: var(--hero-line); --line-strong: var(--hero-line-strong); --control-border: var(--hero-control);
  --accent: var(--hero-accent); --accent-ink: var(--hero-accent-ink); --accent-soft: var(--hero-accent-soft); --accent-strong: var(--hero-accent-strong);
  --good: var(--hero-good); --good-bg: var(--hero-good-bg); --warn: var(--hero-warn); --warn-bg: var(--hero-warn-bg); --bad: var(--hero-bad); --bad-bg: var(--hero-bad-bg);
  --layer-general: var(--hero-layer-general); --layer-232: var(--hero-accent); --layer-301: var(--hero-301);
  --focus-ring: var(--hero-ink);
  --shadow-input: none;
  color: var(--hero-ink); color-scheme: dark;
}
/* doubled up (:root) so a card's own background and border, set in its screen's stylesheet, give way to the dark card */
:root .fx-card--dark { background: var(--hero); border: 1px solid var(--hero-edge); }
.fx-card--dark ::selection, .fx-dark ::selection { background: var(--hero-accent-soft); color: var(--hero-ink); }
/* a link keeps a visible underline on the dark surface, as on the tariff card */
:is(.fx-dark, .fx-card--dark) .fx-link { text-decoration-color: var(--hero-muted); }
:is(.fx-dark, .fx-card--dark) .fx-link:hover { text-decoration-color: currentColor; }
/* print: the hero tokens turn white and black (application.css), so a dark card prints as a plain outlined card */

/* ------------------------------------------------------------------ disclosures */

.fx-disclosure { border-top: 1px solid var(--line); }
.fx-disclosure > summary {
  list-style: none; display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; min-height: 52px; padding: var(--space-2) 0;
  cursor: pointer; font-weight: 600; font-size: var(--text-body);
}
.fx-disclosure > summary::-webkit-details-marker { display: none; }
.fx-disclosure > summary::after {
  content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform var(--motion) var(--ease); flex: none;
}
.fx-disclosure[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.fx-disclosure__note { color: var(--muted); font-weight: 400; font-size: var(--text-label); }
.fx-disclosure__body { padding: 0 0 var(--space-5); display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.fx-disclosure--quiet > summary { font-weight: 500; font-size: var(--text-label); color: var(--muted); min-height: 44px; }

/* ------------------------------------------------------------------ tables: no zebra, line dividers, numbers right in tabular figures */

.fx-table-wrap, .duty-table-wrap { overflow-x: auto; max-width: 100%; }
.fx-table, .duty-table { width: 100%; border-collapse: collapse; font-size: var(--text-label); }
.fx-table caption { text-align: left; padding: 0 0 var(--space-3); color: var(--muted); font-size: var(--text-small); caption-side: top; }
.fx-table th, .fx-table td, .duty-table th, .duty-table td { padding: var(--space-3) var(--space-3); text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.fx-table thead th, .duty-table thead th { color: var(--muted); font-size: var(--text-label); font-weight: 500; border-bottom-color: var(--line-strong); white-space: nowrap; }
.fx-table th:first-child, .fx-table td:first-child, .duty-table th:first-child, .duty-table td:first-child { padding-left: 0; }
.fx-table th:last-child, .fx-table td:last-child, .duty-table th:last-child, .duty-table td:last-child { padding-right: 0; }
.fx-table tbody th { font-weight: 500; }
.fx-num, .duty-table__num { text-align: right !important; white-space: nowrap; font-variant-numeric: tabular-nums; }
.duty-state { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 10px; border-radius: var(--radius-pill); background: var(--surface-muted); color: var(--muted); font-size: var(--text-small); font-weight: 600; white-space: nowrap; }
.duty-state--needs_fact, .duty-state--lower_bound, .duty-state--refused { background: var(--warn-bg); color: var(--warn); }
.money__ccy { font-family: var(--font-sans); font-size: .72em; font-weight: 600; letter-spacing: .04em; color: var(--muted); text-decoration: none; }

/* ------------------------------------------------------------------ flash, "Saved", toasts */

.flash {
  display: flex; align-items: center; gap: var(--space-2); margin: 0; padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-row); font-size: var(--text-label); font-weight: 500; animation: fx-in var(--motion) var(--ease);
}
.flash--good { background: var(--good-bg); color: var(--good); }
.flash--good::before { content: "✓" / ""; font-weight: 700; }
.flash--warn { background: var(--warn-bg); color: var(--warn); }
.fx-flash--page { max-width: calc(var(--content) + 2 * var(--gutter)); margin: var(--space-4) auto 0; width: calc(100% - 2 * var(--gutter)); }
/* A confirmation floats at the top right, just under the navigation: a light glass card with a green check, the
   message, a close button and a thin bar that runs down while it stays (toast controller; hover pauses it).
   It sits just under the top bar's layer (30), so the account menu opens over it; page content stays below. */
.flash.flash--toast, .flash.flash--toast.fx-flash--page, .toast {
  display: flex; align-items: center; gap: 12px; width: auto; margin: 0;
  max-width: min(420px, calc(100vw - 32px)); padding: 12px 44px 12px 12px; overflow: hidden;
  background: var(--glass-sheen, none), var(--glass-raised, var(--surface)); color: var(--ink);
  border: 1px solid var(--glass-border, var(--line)); border-radius: var(--radius-row);
  box-shadow: var(--glass-shadow, var(--shadow-menu)), 0 0 0 1px var(--glass-outline, transparent);
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  font-size: var(--text-label); font-weight: 500; line-height: 1.4; cursor: pointer;
  animation: toast-in 240ms var(--ease);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
}
.flash--toast, .flash--toast.fx-flash--page { position: fixed; top: calc(var(--topbar-height) + var(--space-3)); right: var(--gutter); z-index: 29; }
.toast { position: relative; }
.flash--toast::before, .toast--good::before {
  content: "✓" / ""; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--good); color: var(--surface); font-size: 13px; font-weight: 700;
}
.toast--warn::before { content: "!" / ""; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--warn); color: var(--surface); font-size: 14px; font-weight: 700; }
.flash__text { flex: 1; min-width: 0; }
.flash__close {
  position: absolute; top: 50%; right: 10px; transform: translateY(-50%); display: grid; place-items: center;
  width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer;
}
.flash__close:hover { background: var(--glass-inset, var(--surface-muted)); color: var(--ink); }
.flash__timer {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--good); opacity: .45;
  transform-origin: left; animation: toast-timer var(--toast-life, 6000ms) linear forwards;
}
.flash--toast:hover .flash__timer, .toast:hover .flash__timer { animation-play-state: paused; }
.is-persistent .flash__timer { display: none; }
.flash--toast.is-leaving, .toast.is-leaving { opacity: 0; transform: translateY(-6px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes toast-timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media print { .flash--toast, .toasts { display: none; } }
@keyframes fx-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.toasts { position: fixed; top: calc(var(--topbar-height) + var(--space-3)); right: var(--gutter); z-index: 29; display: grid; gap: var(--space-2); }
.toast__link { margin-left: var(--space-2); color: inherit; font-weight: 600; }

/* ------------------------------------------------------------------ the command bar (⌘K) and the shortcuts dialog */

.command-bar { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-start; justify-content: center; padding: 12vh var(--space-4) 0; }
.command-bar__backdrop { position: absolute; inset: 0; background: var(--scrim); }
.command-bar__panel {
  position: relative; width: 100%; max-width: 600px; max-height: 64vh; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-menu); animation: fx-in var(--motion) var(--ease);
}
.command-bar__input { height: 60px; padding: 0 var(--space-6); border: 0; border-bottom: 1px solid var(--line); background: transparent; font-size: var(--text-body-l); }
.command-bar__input:focus-visible { outline: none; }
.command-bar__results { list-style: none; margin: 0; padding: var(--space-2); overflow-y: auto; }
.command-bar__item { display: flex; align-items: center; gap: var(--space-3); min-height: 44px; padding: 0 var(--space-3); border-radius: var(--radius-control); cursor: pointer; font-size: var(--text-label); }
.command-bar__item--active { background: var(--accent-soft); }
.command-bar__item-kind { flex: none; min-width: 64px; font-size: var(--text-small); color: var(--muted); }
.command-bar__item-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.command-bar__item-meta { flex: none; color: var(--muted); font-size: var(--text-small); }
.command-bar__empty { padding: var(--space-6); text-align: center; color: var(--muted); font-size: var(--text-label); }

.fx-dialog { width: min(520px, calc(100vw - 32px)); padding: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-menu); }
.fx-dialog::backdrop { background: var(--scrim); }
.fx-dialog h2 { font-size: var(--text-h2); margin: 0 0 var(--space-4); }
.fx-dialog__keys { display: grid; grid-template-columns: max-content 1fr; gap: var(--space-3) var(--space-4); margin: 0 0 var(--space-6); align-items: baseline; }
.fx-dialog__keys dt { white-space: nowrap; }
.fx-dialog__keys dd { margin: 0; color: var(--ink-soft); font-size: var(--text-label); }
.fx-dialog__actions { display: flex; justify-content: flex-end; }

/* ------------------------------------------------------------------ states (shared/_state) */

.cp-state { margin: 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius-row); background: var(--surface-muted); font-size: var(--text-label); }
.cp-state__title { margin: 0; font-weight: 500; }
.cp-state__detail { margin: 4px 0 0; color: var(--muted); }
.cp-state--failed { background: var(--bad-bg); }
.cp-state--failed .cp-state__title { color: var(--bad); }
.cp-state--outdated { background: var(--warn-bg); }
.cp-state--banner { border-radius: 0; padding: var(--space-3) var(--gutter); }

/* ------------------------------------------------------------------ country flags (FlagsHelper) */

/* Inline, so the country name keeps the line's own baseline beside other words ("China · $10,000 · today"). */
.flagged { display: inline; white-space: nowrap; }
.flagged .flag { margin-right: .45em; }
.flag {
  display: inline-block; flex: none; width: 1.3em; height: auto; aspect-ratio: 4 / 3; border-radius: 3px; object-fit: cover;
  box-shadow: 0 0 0 1px rgba(20, 30, 45, .12); vertical-align: -.12em;
}
:root[data-theme="dark"] .flag { box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .flag { box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); } }
.fx-combo__option .flag { margin-right: 10px; }
.country-input { display: block; position: relative; min-width: 0; }
.country-input > input { width: 100%; }
/* Country decoration needs this space even inside screens that set their own input padding. */
.country-input.country-input--flagged > input { padding-left: 42px !important; }
.country-input > .country-input__flag { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 20px; pointer-events: none; }
.country-input > .country-input__flag[hidden] { display: none; }

/* info_tip: a small (i) that opens its note in place. */
.info-tip { position: relative; display: inline-block; vertical-align: middle; margin-left: 4px; font-weight: 400; text-transform: none; letter-spacing: 0; }
.info-tip > summary { display: inline-grid; place-items: center; width: 18px; height: 18px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--muted); font-size: 11px; font-style: italic; font-weight: 600; line-height: 1; cursor: pointer; list-style: none; }
.info-tip > summary::-webkit-details-marker { display: none; }
.info-tip > summary:focus-visible { outline: 2px solid var(--accent, #2563eb); outline-offset: 2px; }
.info-tip[open] > summary { color: var(--ink); border-color: currentColor; }
.info-tip__note { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: max-content; max-width: min(320px, 80vw); margin: 0; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); box-shadow: 0 8px 24px rgb(0 0 0 / 0.12); color: var(--ink-soft); font-size: 13px; line-height: 1.5; white-space: normal; }

/* documents.css */
/* Audit & broker documents (DocumentsController): the audit pack's choices and the prepared files. */
.doc-form { display: grid; gap: 12px; margin-top: 8px; }
.doc-choices { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.doc-choices legend { font-weight: 600; margin-bottom: 4px; }
.doc-choices label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.doc-choices .fx-input { min-height: 34px; }
.doc-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.doc-row form { margin: 0; }
.doc-row__warn, .prep-files .ob-recent__meta.doc-row__warn { color: var(--warn); font-weight: 600; }
.rd-documents .prep-next[data-document-next] { border-left: 3px solid var(--warn); }
.rd-documents .prep-next__action { margin: 0; flex: none; }
.doc-file-rules > summary { cursor: pointer; font-size: 12px; color: var(--ink-soft); }
.doc-file-rules[open] > summary { margin-bottom: 4px; }

/* exposure.css */
/* Annual duty, planning, overview summaries, and product annual volumes.
   Neutral totals and charts; positive outcomes use the shared good color. Prefix xp-. */

.xp-head { display: flex; flex-direction: column; gap: var(--space-3); }
.xp-lede { margin: 0; color: var(--ink-soft); font-size: var(--text-body-l); line-height: 1.45; max-width: 64ch; }
.xp-muted { color: var(--muted); font-size: var(--text-label); line-height: 1.5; margin: 0; }
.xp-eyebrow { margin: 0; font-size: var(--text-label); font-weight: 500; color: var(--muted); }
.xp-h2 { margin: 0; font-size: var(--text-h2); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.xp-h3 { margin: var(--space-3) 0 4px; font-size: var(--text-label); font-weight: 600; color: var(--ink-soft); }

.xp-card { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; padding: var(--space-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); }
.xp-card > * { margin-top: 0; margin-bottom: 0; }
.xp-sample { margin: 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius-row); background: var(--supplied-bg, var(--surface-muted)); color: var(--supplied, var(--ink-soft)); font-size: var(--text-label); line-height: 1.5; }
.xp-sample strong { color: var(--supplied, var(--ink-soft)); }
.xp-updating { margin: 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius-row); background: var(--surface-muted); color: var(--ink); font-size: var(--text-label); display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--space-2); }
.xp-updating--warn { background: var(--warn-bg); }
.xp-updating--error { background: var(--bad-bg); color: var(--bad); }
.xp-updating__progress { color: var(--muted); }
.xp-updating__progress:empty { display: none; }
.xp-spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--ink-soft); animation: xp-spin 0.9s linear infinite; flex: none; }
@keyframes xp-spin { to { transform: rotate(360deg); } }

/* the key card: the yearly total (hero) and what is included */
.xp-key { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--space-8); padding: var(--space-8); }
.xp-key__main { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; container-type: inline-size; }
.xp-key__main > * { margin: 0; }
.xp-key__amount { font-size: min(var(--text-hero), 13cqi); line-height: 1; font-weight: 700; letter-spacing: -0.05em; color: var(--hero-ink); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.xp-key__amount--none { font-size: var(--text-h1); color: var(--hero-soft); }
.xp-key__sub { color: var(--hero-soft); font-size: var(--text-body); line-height: 1.45; }
.xp-key__side { display: flex; flex-direction: column; gap: var(--space-2); padding-left: var(--space-8); border-left: 1px solid var(--hero-line); font-size: var(--text-label); line-height: 1.5; color: var(--hero-soft); min-width: 0; }
.xp-key__side > * { margin: 0; }
.xp-key__side strong { color: var(--hero-ink); }
.xp-estimate-form { margin: 4px 0 0; }
.xp-estimate-hint { font-size: var(--text-small); }

/* horizontal bars by origin and by family */
.xp-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.xp-bars__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.xp-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label amount" "track track"; gap: 6px var(--space-3); align-items: baseline; }
.xp-bar__label { grid-area: label; min-width: 0; font-size: var(--text-label); line-height: 1.35; }
.xp-bar__name { font-weight: 500; overflow-wrap: anywhere; }
.xp-bar__count { color: var(--muted); font-size: var(--text-small); white-space: nowrap; }
.xp-bar__amount { grid-area: amount; font-size: var(--text-label); font-weight: 500; white-space: nowrap; }
.xp-bar__track { grid-area: track; display: block; height: 10px; border-radius: var(--radius-pill); background: var(--surface-muted); overflow: hidden; }
.xp-bar__fill { display: block; height: 100%; background: var(--ink-soft); border-radius: var(--radius-pill); }

/* savings levers */
.xp-levers__note { font-size: var(--text-small); }
.xp-levers__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.xp-lever { display: flex; flex-direction: column; gap: 6px; padding: var(--space-4) var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-row); }
.xp-lever > * { margin: 0; }
.xp-lever__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px var(--space-4); }
.xp-lever__head > * { margin: 0; }
.xp-lever__title { font-size: var(--text-body); font-weight: 500; min-width: 0; overflow-wrap: anywhere; flex: 1 1 320px; }
.xp-lever__amount { font-size: var(--text-body); color: var(--good); font-weight: 600; white-space: nowrap; }
.xp-lever__reason { font-size: var(--text-label); color: var(--ink-soft); line-height: 1.45; }
.xp-lever__links, .xp-lever__apply { font-size: var(--text-label); display: flex; flex-wrap: wrap; gap: 4px var(--space-2); }
.xp-lever__sample { font-size: var(--text-small); color: var(--supplied, var(--ink-soft)); font-weight: 600; }
.xp-lever__items > summary { cursor: pointer; font-size: var(--text-label); font-weight: 500; min-height: 36px; display: inline-flex; align-items: center; }
.xp-lever__items ul { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: var(--text-label); }
.xp-lever__items li { display: flex; flex-wrap: wrap; gap: 2px var(--space-3); align-items: baseline; }
.xp-lever__item-amount { color: var(--ink-soft); }

/* top products */
.xp-table { width: 100%; border-collapse: collapse; font-size: var(--text-label); }
.xp-table th, .xp-table td { text-align: left; padding: var(--space-3); border-bottom: 1px solid var(--line); vertical-align: top; }
.xp-table th:first-child, .xp-table td:first-child { padding-left: 0; }
.xp-table th:last-child, .xp-table td:last-child { padding-right: 0; }
.xp-table thead th { color: var(--muted); font-weight: 500; border-bottom-color: var(--line-strong); }
.xp-table tbody th { font-weight: 500; }
.xp-table .xp-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.xp-code { display: block; color: var(--muted); font-size: var(--text-small); margin-top: 2px; }
/* Annual duty's table: the part number before the description, the code's confirmation tag on the code line */
.xp-part { display: block; color: var(--muted); font-size: 11px; font-weight: 400; margin-bottom: 2px; }
.xp-code-tag { white-space: nowrap; font-family: var(--font-sans); color: var(--ink-soft); }
.xp-code-tag--confirmed { color: var(--good); }
.xp-top__codes { margin: 0 0 var(--space-2); font-size: var(--text-small); }
.xp-tag { font-family: var(--font-sans); font-size: var(--text-small); color: var(--warn); font-weight: 600; }

/* not included */
.xp-excluded > summary { cursor: pointer; list-style: none; display: flex; align-items: center; min-height: 44px; }
.xp-excluded > summary::-webkit-details-marker { display: none; }
.xp-excluded > summary::after { content: " +"; margin-left: auto; color: var(--muted); }
.xp-excluded[open] > summary::after { content: " −"; }
.xp-excluded__list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: var(--text-label); }

/* the summary on the overview and home */
/* The yearly total's scope tag; tapping it shows how the figure is worked out. */
.xp-scope { color: var(--ink-soft); font-size: 14px; line-height: 1.55; }
.xp-scope > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; cursor: pointer; list-style: none; }
.xp-scope > summary::-webkit-details-marker { display: none; }
.xp-scope__info { display: inline-grid; place-items: center; width: 18px; height: 18px; border: 1px solid currentColor; border-radius: 50%; font-size: 11px; font-weight: 600; font-style: italic; }
.xp-scope > p { margin: 4px 0 0; max-width: 64ch; color: var(--muted); }
@media print { .xp-scope__info { display: none; } }
/* Annual duty's hero: the scope tag with what the total leaves out, and the button that fills missing estimates */
.xp-key__scope { margin-top: var(--space-2); }
.xp-key__excludes { margin: 2px 0 0; color: var(--muted); font-size: var(--text-small); line-height: 1.5; max-width: 64ch; }
.xp-key__fill { margin-top: var(--space-3); }
.xp-summary__sample { font-size: var(--text-small); color: var(--supplied, var(--ink-soft)); font-weight: 600; margin: 0; }
.overview__exposure { margin: 0 0 var(--space-6); }

/* a product's annual volume, one line (in the tariff card) ending in Change; the open form takes its own row */
.xp-volume { padding: var(--space-3) 0; border-top: 1px solid var(--line); font-size: var(--text-body); }
.xp-volume__value { display: inline; margin: 0; }
.xp-volume__sample { color: var(--supplied, var(--ink-soft)); }
.xp-volume__edit { display: inline; }
.xp-volume__edit[open] { display: block; margin-top: var(--space-2); }
.xp-volume:has(.xp-volume__edit[open]) .xp-volume__sep { display: none; }
.xp-volume__edit > summary { display: inline-flex; list-style: none; }
.xp-volume__edit > summary::-webkit-details-marker { display: none; }
.xp-volume__form { display: flex; flex-direction: column; gap: var(--space-3); margin: var(--space-3) 0 0; }
.xp-volume__fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr) minmax(0, 1fr); gap: var(--space-3); }
.xp-volume__form .fx-btn { align-self: flex-start; }

/* "Plan a scenario": at most three levers, state in the address */
.xp-plan__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px var(--space-4); }
.xp-plan__head > * { margin: 0; }
.xp-plan__form { display: flex; flex-direction: column; gap: var(--space-3); margin: 0; }
.xp-plan__lever { margin: 0; padding: 0; border: 0; min-width: 0; font-size: var(--text-body); }
.xp-plan__move { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.xp-plan__move select.ob-input { width: auto; max-width: 100%; min-height: 44px; }
.xp-plan__pct { display: inline-flex; align-items: center; gap: 4px; }
.xp-plan__pct .ob-input { width: 96px; min-height: 44px; }
.xp-plan__toggle { display: flex; align-items: flex-start; gap: var(--space-3); cursor: pointer; line-height: 1.45; min-height: 44px; }
.xp-plan__toggle input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.xp-plan__actions { display: flex; align-items: center; gap: var(--space-4); }
.xp-plan__results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
/* Each result separates neutral duty totals from potential savings. */
.xp-plan__result { display: flex; flex-direction: column; gap: 2px; padding: var(--space-3) var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-row); }
.xp-plan__result > p { margin: 0; }
.xp-plan__result--all { padding: var(--space-4) var(--space-5); }
.xp-plan__label { font-weight: 600; }
.xp-plan__nums { color: var(--ink-soft); overflow-wrap: anywhere; }
.xp-plan__result--all .xp-plan__after { font-size: var(--text-h2); font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.xp-plan__save { color: var(--good); }
.xp-plan__note { font-size: var(--text-small); }

@media (max-width: 720px) {
  .xp-key { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); padding: var(--space-6) var(--space-5); }
  .xp-key__side { padding-left: 0; border-left: 0; border-top: 1px solid var(--hero-line); padding-top: var(--space-4); }
  .xp-split { grid-template-columns: minmax(0, 1fr); }
  .xp-card { padding: var(--space-5); }
  .xp-volume__fields { grid-template-columns: minmax(0, 1fr); }
  .xp-plan__move select.ob-input { flex: 1 1 100%; }
  .xp-table thead { display: none; }
  .xp-table, .xp-table tbody, .xp-table tr, .xp-table th, .xp-table td { display: block; width: 100%; }
  .xp-table tr { padding: var(--space-3) 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px var(--space-3); }
  .xp-table th, .xp-table td { border: 0; padding: 0 !important; }
  .xp-table tbody th { grid-column: 1 / -1; }
  .xp-table td[data-label="Made in"] { color: var(--muted); }
  .xp-table td[data-label="Imports a year"] { display: none; }
}

@media print {
  .xp-updating, .xp-estimate-form, .xp-estimate-hint { display: none !important; }
  .xp-card, .xp-lever { break-inside: avoid; }
}

/* fonts.css */
/* Local Geist fonts; see vendor/fonts/README.md for source and license. */
/* cyrillic-ext */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/geist-cyrillic-ext-7a1a13dc.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/geist-cyrillic-91394633.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/geist-vietnamese-f1a2848c.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/geist-latin-ext-4f909eff.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/geist-latin-90ac0fe7.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/assets/geist-mono-cyrillic-ext-b428c8a7.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/assets/geist-mono-cyrillic-e59d7d10.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* symbols2 */
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/assets/geist-mono-symbols2-6ad17d12.woff2") format('woff2');
  unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;
}
/* vietnamese */
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/assets/geist-mono-vietnamese-2251afc9.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/assets/geist-mono-latin-ext-1a2f930e.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/assets/geist-mono-latin-a600ad3f.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* import.css */
/* Import: two clear entry surfaces, quiet supporting choices, and readable results. */
.im-page .im-wrap { max-width: 1180px; gap: 24px; }
.im-page .im-head { margin: 10px 0 8px; }
.im-page .im-home-head { display: flex; flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 32px; width: 100%; text-align: left; }
.im-home-head .im-head__copy { flex: 1; min-width: 0; }
.im-home-head .im-flow { flex: none; }
.im-eyebrow { display: block; color: var(--brand-blue, var(--accent)); font-size: 11px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 12px; }
.im-page .im-home-head .im-eyebrow { color: var(--muted); margin-bottom: 7px; }
.im-page .im-lede { max-width: 680px; color: var(--muted); font-size: 16px; line-height: 1.6; margin: 12px 0 0; }
.im-flow { display: flex; gap: 18px; list-style: none; padding: 0 0 4px; margin: 0; color: var(--muted); font-size: 11px; }
.im-flow li { display: flex; flex-direction: column; align-items: center; gap: 8px; white-space: nowrap; }
.im-flow li > span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; color: var(--brand-blue, var(--accent)); background: var(--brand-blue-soft, var(--accent-soft)); border: 1px solid color-mix(in srgb, var(--brand-blue, var(--accent)) 20%, var(--line)); font-size: 11px; font-weight: 600; }
.im-entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.im-page .im-entry-card { position: relative; padding: 30px; margin: 0; min-width: 0; border: 1px solid var(--glass-border, var(--line)); border-radius: 24px; background: var(--glass-surface, var(--surface)); box-shadow: var(--glass-shadow, var(--shadow-card)); backdrop-filter: blur(var(--glass-blur, 16px)); -webkit-backdrop-filter: blur(var(--glass-blur, 16px)); display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
/* Color identifies the two entry methods; sample and connection status stay neutral. */
.im-upload { --im-entry-accent: var(--brand-blue, var(--accent)); --im-entry-tint: var(--brand-blue-soft, var(--accent-soft)); }
.im-paste { --im-entry-accent: var(--brand-teal, var(--good)); --im-entry-tint: var(--brand-teal-soft, var(--good-bg)); }
.im-page .im-entry-card:is(.im-upload, .im-paste) { background: linear-gradient(145deg, var(--im-entry-tint), color-mix(in srgb, var(--im-entry-tint) 25%, var(--glass-raised, var(--surface))) 55%, var(--glass-raised, var(--surface))); border-color: color-mix(in srgb, var(--im-entry-accent) 19%, var(--glass-border, var(--line))); box-shadow: inset 0 3px 0 color-mix(in srgb, var(--im-entry-accent) 52%, transparent), var(--glass-shadow, var(--shadow-card)); }
.im-page :is(.im-upload, .im-paste) .im-entry-icon { background: var(--im-entry-accent); color: var(--surface); box-shadow: 0 7px 18px -8px color-mix(in srgb, var(--im-entry-accent) 55%, transparent); }
.im-entry-card h2 { color: var(--ink); margin: 0; font-size: 21px; letter-spacing: -.03em; font-weight: 600; line-height: 1.3; }
.im-entry-card > p { color: var(--muted); font-size: 13px; line-height: 1.65; margin: 0; max-width: 54ch; }
.im-entry-icon { display: grid; place-items: center; height: 42px; width: 42px; border-radius: 13px; background: var(--surface-muted); color: var(--ink-soft); margin-bottom: 3px; flex: none; }
.im-entry-icon svg { width: 22px; height: 22px; }
.im-page .im-entry-card .im-drop { width: 100%; min-height: 139px; padding: 23px 20px; margin: 7px 0 4px; border: 1px dashed var(--control-border); border-radius: 15px; background: color-mix(in srgb, var(--accent-soft) 45%, var(--glass-raised, var(--surface))); transition: border-color var(--motion), background var(--motion); }
.im-page .im-entry-card .im-drop:hover, .im-page .im-entry-card .im-drop:focus-within { border-color: var(--accent); background: var(--accent-soft); }
.im-entry-card .im-drop label { display: block; font-size: 13px; font-weight: 550; margin-bottom: 16px; color: var(--ink); }
.im-entry-card input[type=file] { width: 100%; font-size: 12px; color: var(--muted); }
.im-entry-card input[type=file]::file-selector-button { background: var(--glass-raised, var(--surface)); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 12px; cursor: pointer; margin-right: 12px; font-weight: 500; box-shadow: var(--shadow-input); }
.im-page .im-entry-card .im-paste__area { width: 100%; flex: 1; min-height: 139px; margin: 7px 0 4px; font-size: 13px; line-height: 1.75; padding: 16px 18px; border-radius: 15px; background: var(--glass-raised, var(--surface)); }
.im-page .im-entry-card > .fx-btn { margin-top: auto; min-height: 42px; gap: 26px; }
.im-entry-card--compact .im-entry-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--surface-muted); color: var(--muted); }
.im-entry-card--compact h2 { font-size: 18px; }
.im-entry-card--compact .im-entry-icon svg { width: 19px; height: 19px; }
.im-page .im-entry-card--compact { gap: 12px; }
.im-sample-choice { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 18px; padding: 14px 0 0; border-top: 1px solid var(--line); }
.im-sample-choice strong { display: block; color: var(--ink); font-size: 13px; font-weight: 550; }
.im-sample-choice small { display: block; font-size: 11px; color: var(--muted); margin-top: 5px; line-height: 1.5; }
.im-sample-choice .fx-btn { white-space: nowrap; }
.im-sample-choice--planning { margin-top: 4px; border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--supplied-bg, var(--surface-muted)); }
.sample-choices { display: grid; gap: 14px; width: 100%; }
.sample-choices--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sample-choices--compact form { margin: 0; }
.sample-choice-button { display: flex; flex-direction: column; gap: 5px; width: 100%; height: 100%; padding: 14px; text-align: left; color: var(--ink); background: var(--glass-raised, var(--surface)); border: 1px solid var(--line); border-radius: 12px; font: inherit; cursor: pointer; }
.sample-choice-button strong { font-size: 13px; font-weight: 550; }
.sample-choice-button > span { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; }
.sample-choice-button:hover { border-color: var(--accent); background: var(--accent-soft); }
.sample-choice-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.product-empty__samples { max-width: 680px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.product-empty__samples h3 { margin: 0 0 12px; color: var(--ink); font-size: 13px; font-weight: 550; }
.product-empty__samples .fx-hint { margin: 10px 0 0; font-size: 12px; }
@media(max-width: 600px) { .sample-choices--compact { grid-template-columns: 1fr; gap: 8px; }.sample-choice-button { flex-direction: row; justify-content: space-between; align-items: center; padding: 12px 14px; } }
.im-entry-card > [data-rs=planning-sample-download] { font-size: 11px; padding: 0 3px 3px; }
.im-disconnected { display: inline-block; vertical-align: middle; padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: var(--surface-muted); font-size: 10px; font-weight: 500; letter-spacing: 0; }
.im-file-help { padding: 20px 24px; border: 1px solid var(--line); border-radius: 17px; background: var(--glass-surface, var(--surface)); box-shadow: inset 3px 0 0 var(--brand-blue, var(--accent)); color: var(--muted); font-size: 12px; line-height: 1.7; }
.im-file-help > p:last-child { margin-bottom: 0; }
.im-file-help strong { color: var(--ink); font-weight: 550; }
.im-page .im-recent { margin-top: 8px; }
.im-page .im-recent h2, .im-file-help h2 { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.im-recent .ob-recent__list { padding: 0 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--glass-surface, var(--surface)); }
.im-recent .ob-recent__row:last-child { border-bottom: 0; }
.im-page .im-filter { gap: 6px; }
.im-page .im-filter > a:not(.fx-btn) { min-height: 36px; padding: 0 14px; border-radius: 10px; border-color: transparent; background: transparent; color: var(--muted); font-size: 12px; }
.im-page .im-filter > a[aria-current=page] { background: var(--glass-raised, var(--surface)); border-color: var(--line); color: var(--accent); box-shadow: var(--shadow-input); }
.im-page .im-filter > a:hover { background: var(--accent-soft); color: var(--accent); }
.im-page .im-table-wrap { border: 1px solid var(--line); border-radius: 18px; background: var(--glass-raised, var(--surface)); }
.im-page #import-products { scroll-margin-top: calc(var(--topbar-height, 68px) + 12px); }
.im-page .im-table-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.im-table-scroll-hint { display: none; }
.im-results-table { width: 100%; border-collapse: collapse; }
.im-page .im-results-table th { background: var(--surface-muted); color: var(--muted); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .055em; padding: 15px 18px; white-space: nowrap; }
.im-page .im-results-table td { padding: 19px 18px; vertical-align: middle; font-size: 12px; border-bottom: 1px solid var(--line); }
.im-page .im-results-table tr:last-child td { border-bottom: 0; }
.im-page .im-results-table tbody tr:hover { background: color-mix(in srgb, var(--accent-soft) 28%, transparent); }
.im-page .im-results-table th:first-child { width: 38%; }
.im-page .im-results-table :is(th, td):first-child { padding-left: 28px; padding-right: 30px; }
.im-page .im-results-table :is(th, td):last-child { padding-right: 28px; }
.im-page .im-results-table td:first-child { min-width: 270px; }
.im-page .im-results-table td:first-child .im-product-name { line-height: 1.65; }
.im-page .im-results-table td:first-child .im-product-meta { margin-top: 7px; }
.im-product-name { display: block; color: var(--ink); font-size: 13px; font-weight: 500; line-height: 1.6; text-decoration: none; }
.im-product-name:hover { color: var(--accent); }
.im-product-meta { display: block; color: var(--muted); font-size: 10px; font-weight: 400; margin-top: 6px; line-height: 1.6; }
.im-row-error { display: block; color: var(--bad); font-size: 11px; line-height: 1.6; margin-top: 6px; }
.im-row-status { color: var(--ink-soft); white-space: nowrap; font-size: 11px; }
.im-row-status--warn, .im-row-error--warn, .im-product-meta--warn { color: var(--warn); }
.im-row-status--bad, .im-product-meta--bad { color: var(--bad); }
.im-product-meta.im-library { color: var(--accent); font-weight: 500; }
/* One more line of description (DescriptionDetails): an invitation, in the assumed colour, not a warning */
.im-product-meta.im-needs-description { color: var(--assumed); font-weight: 500; }
.im-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.im-toolbar .ob-actions__spacer { flex: 1 1 auto; }
.im-cap-note { margin: -6px 0 0; color: var(--warn); font-size: 12px; line-height: 1.6; }
.im-unit { color: var(--muted); font-size: 11px; font-weight: 400; }
.im-mapping-form { margin: 4px 0; padding: 8px 24px 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--glass-surface, var(--surface)); box-shadow: var(--glass-shadow, var(--shadow-card)); }
.im-mapping-form > .im-actions { margin-top: 24px; }
.im-not-used { display: inline-block; margin-left: 6px; padding: 2px 7px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--muted); font-size: 10px; font-weight: 500; vertical-align: middle; }
.im-ai-reason { margin-top: 4px; font-size: 11px; color: var(--muted); }
.im-ai-reason > summary { cursor: pointer; width: fit-content; }
.im-ai-reason .im-product-meta { margin-top: 2px; }
.im-empty-state { text-align: center; padding: 58px !important; color: var(--muted); }
.im-sample-label { display: inline-block; width: fit-content; padding: 4px 8px; border-radius: 6px; background: var(--supplied-bg, var(--surface-muted)); color: var(--supplied, var(--ink-soft)); font-size: 10px; white-space: nowrap; }
.im-detected { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.im-detected summary { cursor: pointer; }
.im-detected dl { display: flex; flex-wrap: wrap; gap: 20px; padding: 16px 20px; background: var(--glass-surface, var(--surface)); border-radius: 12px; border: 1px solid var(--line); }
.im-detected dt { color: var(--ink); font-weight: 500; }.im-detected dd { margin: 4px 0 0; }
.im-repair-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 20px; }
.im-repair-fields label { display: block; margin-bottom: 8px; color: var(--muted); }
.im-repair-fields input { width: 100%; }
/* SAP folder drop: its state, files and settings, in the Import page's cards. */
.im-disconnected.im-connected { color: var(--good, var(--ink)); background: var(--good-bg, var(--surface-muted)); border-color: color-mix(in srgb, var(--good, var(--line)) 30%, var(--line)); }
.sap-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; width: 100%; margin: 4px 0 0; }
.sap-facts dt { color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.sap-facts dd { margin: 0; color: var(--ink); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.sap-off { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
.sap-problem { margin: 0; color: var(--warn); font-size: 12px; line-height: 1.6; }
.sap-page .sap-files td { font-size: 12px; }
.sap-settings .sap-field { display: grid; gap: 8px; width: 100%; border: 0; padding: 0; margin: 0; font-size: 13px; }
.sap-settings .sap-field legend { font-weight: 550; color: var(--ink); margin-bottom: 8px; padding: 0; }
.sap-settings .sap-field label:not(:first-child) { color: var(--ink-soft); }
.sap-settings .sap-field input[type=text], .sap-settings .sap-field input[type=date] { max-width: 420px; }
.sap-settings .sap-toggle { font-size: 14px; font-weight: 550; color: var(--ink); display: flex; gap: 10px; align-items: center; }
.sap-page .im-file-help .sap-steps { display: grid; gap: 8px; padding-left: 20px; margin: 0; }
.sap-page .im-entry-card ul { display: grid; gap: 12px; padding-left: 20px; font-size: 14px; color: var(--ink-soft); line-height: 1.7; margin: 4px 0; }
@media(max-width: 900px) { .im-page .im-home-head { align-items: flex-start; flex-direction: column; gap: 20px; }.im-flow { gap: 24px; }.im-flow li { flex-direction: row; }.im-sample-choice { flex-wrap: wrap; } }
@media(max-width: 720px) { .sap-facts { grid-template-columns: 1fr; }.im-entry-grid { grid-template-columns: 1fr; }.im-page .im-entry-card { padding: 24px; border-radius: 20px; }.im-page .im-results-table { min-width: 850px; }.im-table-scroll-hint { display: block; margin: 0 0 8px; color: var(--ink-soft); font-size: 12px; line-height: 1.5; }.im-result-summary { grid-template-columns: repeat(2, 1fr); }.im-result-summary > div { padding: 20px; }.im-result-summary > div:nth-child(2) { border-right: 0; }.im-result-summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }.im-repair-fields { grid-template-columns: 1fr; }.im-flow { gap: 13px; font-size: 10px; }.im-flow li { gap: 6px; }.im-flow li > span { width: 22px; height: 22px; }.im-mapping-form { padding: 8px 18px 20px; } }
@media print { .im-page .im-entry-card:is(.im-upload, .im-paste), .im-result-summary, .im-page .im-progress { background: var(--surface); box-shadow: none; }.im-file-help { box-shadow: none; }.im-flow, .im-filter, .im-more, .im-summary__actions, .im-fix-link { display: none; }.im-page .im-entry-card, .im-result-summary { backdrop-filter: none; -webkit-backdrop-filter: none; } }

/* Repair only the affected row, using its real field types. */
.im-repair__intro { color: var(--muted); font-size: 12px; margin: 0 0 18px; }
.im-repair-fields--primary { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
.im-repair-fields > div { min-width: 0; }
.im-repair-fields :is(input, select, textarea) { width: 100%; box-sizing: border-box; }
.im-repair-fields textarea { resize: vertical; }
.im-repair-fields .fx-hint { font-size: 11px; line-height: 1.5; margin: 7px 0 0; overflow-wrap: anywhere; }
.im-repair-fields [aria-invalid=true] { border-color: color-mix(in srgb, var(--accent) 70%, var(--line)); }
.im-repair-optional { margin: 0 0 18px; border-top: 1px solid var(--line); }
.im-repair-optional > summary { padding: 12px 0; color: var(--text); }
.im-repair-optional > summary span { color: var(--muted); margin-left: 8px; }
@media(max-width: 720px) { .im-repair-fields--primary { grid-template-columns: 1fr; } }
.im-repair-fields .im-repair-unknown { display: flex; align-items: center; gap: 7px; color: var(--text); font-size: 11px; margin-top: 9px; }
.im-repair-fields .im-repair-unknown input { width: auto; }
.im-sheet-choice fieldset { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.im-sheet-choice legend { margin-bottom: 8px; }
.im-sheet { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.im-sheet:has(input:checked) { border-color: var(--accent); }
.im-sheet input { margin-top: 3px; }
.im-sheet small { display: block; margin-top: 3px; }
.im-pager { display: flex; align-items: center; gap: 18px; justify-content: flex-end; padding: 12px 4px 0; font-size: 13px; color: var(--muted); }

/* Check your columns: decisions first. Needs-you columns open with only what they ask; what Tarivo read is one line. */
.im-plan .im-plan__form { display: grid; gap: 22px; padding: 22px 24px 24px; }
.im-plan .im-lede { max-width: none; font-size: 14px; overflow-wrap: anywhere; }
.im-plan__note { margin: 0; }
.im-plan__group { display: grid; gap: 10px; min-width: 0; }
.im-plan__group > .fx-h2 { font-size: 16px; margin: 0; }
.im-plan__group > .ob-hint { margin: 0; }
.im-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 20px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.im-col:last-child { border-bottom: 0; }
.im-col--needs, .im-col--needs:last-child { padding: 16px; border: 1px solid color-mix(in srgb, var(--warn) 28%, var(--line)); border-radius: 14px; background: var(--inferred-bg, var(--surface-muted)); }
.im-col__about { min-width: 0; overflow-wrap: anywhere; }
.im-col__about strong { color: var(--ink); font-weight: 600; }
.im-col__about .im-product-meta { font-size: 11px; margin-top: 4px; }
.im-col__choice { display: grid; gap: 10px; min-width: 0; }
.im-col__choice .fx-input { width: 100%; box-sizing: border-box; }
.im-setting { display: grid; gap: 5px; color: var(--muted); font-size: 12px; }
.im-setting[hidden] { display: none; }
.im-setting--switch { display: flex; gap: 8px; align-items: center; color: var(--ink); font-size: 13px; }
.im-fact { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; margin: 0; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); min-width: 0; }
.im-fact:last-child { border-bottom: 0; }
.im-fact legend { float: left; padding: 0; max-width: 100%; font-size: 13px; color: var(--ink); overflow-wrap: anywhere; }
.im-fact legend .im-product-meta { font-size: 11px; margin-top: 3px; }
.im-fact__choice { display: flex; gap: 16px; font-size: 13px; }
.im-fact__choice label { display: flex; gap: 6px; align-items: center; cursor: pointer; }
.im-read { border: 1px solid var(--line); border-radius: 14px; background: var(--glass-raised, var(--surface)); min-width: 0; }
.im-read > summary { display: flex; align-items: baseline; gap: 12px; padding: 14px 16px; cursor: pointer; min-width: 0; }
.im-read__title { flex: none; color: var(--ink); font-weight: 600; font-size: 14px; }
.im-read__tick { color: var(--good); }
.im-read__line { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; }
.im-read[open] .im-read__line { white-space: normal; }
.im-read > .ob-hint { margin: 0; padding: 0 16px; }
.im-read__group { padding: 4px 16px 8px; }
.im-read__heading { margin: 14px 0 0; color: var(--ink-soft); font-size: 12px; font-weight: 600; }
.im-read__group > .ob-hint { margin: 4px 0 0; font-size: 12px; }
.im-plan__more { color: var(--muted); font-size: 12px; line-height: 1.7; }
.im-plan__more > summary { cursor: pointer; width: fit-content; }
.im-plan__more label { display: flex; gap: 8px; align-items: center; margin: 6px 0; }
.im-table-settings { display: grid; gap: 4px; max-width: 420px; padding-top: 8px; }
.im-table-settings label[for] { display: block; margin-bottom: 4px; color: var(--ink-soft); }
.im-plan__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.im-plan__form > .ob-hint { margin: -10px 0 0; }
@media(max-width: 720px) { .im-plan .im-plan__form { padding: 16px; }.im-col { grid-template-columns: 1fr; }.im-read > summary { flex-wrap: wrap; gap: 4px 10px; }.im-read__line { flex-basis: 100%; }.im-plan__actions .fx-btn { width: 100%; justify-content: center; } }

/* Import results: one headline, one quiet line of detail, one main button and the rest under More. */
.im-summary { position: relative; z-index: 3; padding: 24px 28px; border: 1px solid var(--glass-border, var(--line)); border-radius: 22px; background: var(--glass-surface, var(--surface)); box-shadow: var(--glass-shadow, var(--shadow-card)); backdrop-filter: blur(var(--glass-blur, 16px)); -webkit-backdrop-filter: blur(var(--glass-blur, 16px)); }
.im-summary__main { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px 28px; flex-wrap: wrap; }
.im-summary__text { flex: 1 1 340px; min-width: 0; display: grid; gap: 10px; }
.im-page .im-headline { margin: 0; font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; letter-spacing: -.035em; line-height: 1.25; color: var(--ink); }
.im-headline [aria-hidden] { color: var(--muted); font-weight: 400; }
.im-headline .im-headline__need { color: var(--warn); text-decoration: none; }
.im-headline .im-headline__need:hover { text-decoration: underline; text-underline-offset: 4px; }
.im-detail { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.im-detail .fx-link { font-weight: 500; }
.im-running { display: grid; gap: 8px; }
.im-running__line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0; color: var(--ink-soft); font-size: 13px; }
.im-running__line strong { color: var(--ink); font-weight: 550; font-variant-numeric: tabular-nums; }
.im-running__status { color: var(--muted); font-size: 12px; }
.im-running progress { width: 100%; max-width: 560px; height: 6px; accent-color: var(--brand-blue, var(--accent)); }
.im-running__note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.im-page .im-sent-back { margin: 0; padding: 0; border: 0; background: none; color: var(--warn); font-size: 13px; line-height: 1.6; }
.im-summary__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.im-summary__actions form { margin: 0; }
.im-more { position: relative; }
.im-more > summary { list-style: none; cursor: pointer; gap: 8px; }
.im-more > summary::-webkit-details-marker { display: none; }
.im-more > summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.im-more[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.im-more__menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 20; display: grid; width: max-content; min-width: 240px; max-width: min(320px, calc(100vw - 32px)); padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-menu); }
.im-more__menu form { margin: 0; }
.im-more__menu :is(a, button) { display: block; width: 100%; padding: 11px 12px; border: 0; border-radius: 9px; background: none; color: var(--ink); font: inherit; font-size: 13px; text-align: left; text-decoration: none; cursor: pointer; }
.im-more__menu :is(a, button):is(:hover, :focus-visible) { background: var(--accent-soft); color: var(--accent); }
.im-more__meta { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.im-more__note { margin: 4px 0 0; padding: 9px 12px 6px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.5; }
.im-filter__count { margin-left: 2px; color: var(--muted); font-variant-numeric: tabular-nums; }
.im-filter > a[aria-current=page] .im-filter__count { color: inherit; opacity: .75; }
.im-narrowing { margin: -8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.im-narrowing strong { color: var(--ink); font-weight: 550; }
.im-results { display: grid; min-width: 0; }
.im-results-table .im-fix-link { margin-top: 10px; }
.im-foot { display: grid; gap: 10px; margin-top: 4px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.65; }
.im-foot > p { margin: 0; }
.im-foot .im-detected p { margin: 10px 0 0; }

/* Fix next: one row at a time; the fields to correct beside the cells as read. */
.im-fix__grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.im-fix__main { display: grid; gap: 20px; min-width: 0; padding: 26px 28px; border: 1px solid var(--glass-border, var(--line)); border-radius: 22px; background: var(--glass-surface, var(--surface)); box-shadow: var(--glass-shadow, var(--shadow-card)); backdrop-filter: blur(var(--glass-blur, 16px)); -webkit-backdrop-filter: blur(var(--glass-blur, 16px)); }
.im-fix__problem { padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--bad) 28%, var(--line)); border-radius: 14px; background: var(--bad-bg, var(--surface-muted)); }
.im-fix :is(.im-fix__problem, .im-fix__cells) h2 { margin: 0 0 6px; color: var(--ink); font-size: 13px; font-weight: 600; letter-spacing: 0; }
.im-fix__problem p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.im-fix .im-repair__intro { margin: 0 0 18px; }
.im-repair__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.im-fix__cells { min-width: 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--glass-raised, var(--surface)); }
.im-fix__cells dl { display: grid; margin: 0; }
.im-fix__cells dl > div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.im-fix__cells dl > div:last-child { border-bottom: 0; }
.im-fix__cells dt { color: var(--muted); font-size: 11px; }
.im-fix__cells dt span { margin-left: 4px; font-family: var(--font-mono, monospace); font-size: 10px; }
.im-fix__cells dd { margin: 3px 0 0; color: var(--ink); font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.im-fix__cells .im-fix__cell--flagged dt, .im-fix__cells .im-fix__cell--flagged dd { color: var(--bad); }
.im-fix__cells dt em { margin-left: 6px; font-style: normal; font-weight: 600; }
.im-fix .im-repair-fields--primary { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.im-fix .im-repair-description { grid-column: 1 / -1; }
.im-running__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 16px; }
.im-running__foot form { margin: 0; }
.im-running__foot .im-stop { padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.im-running__foot .im-stop:is(:hover, :focus-visible) { color: var(--bad); }
@media(max-width: 720px) {
  .im-summary { padding: 20px 18px; border-radius: 18px; }
  .im-summary__actions { width: 100%; }
  .im-summary__actions > .fx-btn, .im-summary__actions > form { flex: 1 1 auto; }
  .im-summary__actions > form .fx-btn { width: 100%; justify-content: center; }
  .im-fix__grid, .im-fix .im-repair-fields--primary { grid-template-columns: 1fr; }
  .im-fix__main { padding: 20px 18px; border-radius: 18px; }
  .im-repair__actions .fx-btn { flex: 1 1 auto; justify-content: center; }
}

/* one_box.css */
/* PLAN-2 H in Direction D: the main screen is the box and the answer (docs/focus/DESIGN-D.md).
   The headline and the box side by side; then the answer: the HTS card (the code), the tariff card (the total, its share,
   the duty layers, a cheaper origin in one line), both dark cards (DESIGN-D "Revision 2026-09-26": the face
   is .fx-dark, components.css). Each of the two main cards opens in place: its face stays dark and its body is light; an
   open card takes the wider column. Prefixes: ob- (box and card), lp- (legal path). */

/* ------------------------------------------------------------------ the hero: headline | box */

.ob-wrap { gap: var(--space-10); }
.ob-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-12) 56px; align-items: end; }
.ob-display { margin: 0; font-size: var(--text-display); font-weight: 700; line-height: 0.98; letter-spacing: -0.045em; text-wrap: balance; }
.ob-display__faint { display: block; color: var(--faint); }
.ob-product { display: flex; flex-direction: column; gap: var(--space-3); align-self: start; min-width: 0; }
.ob-title { margin: 0; font-size: var(--text-h1); font-weight: 700; line-height: 1.05; letter-spacing: -0.04em; overflow-wrap: anywhere; text-wrap: balance; }
.fx-product__review { margin: 0; color: var(--warn); font-size: var(--text-label); font-weight: 500; }

/* ------------------------------------------------------------------ the box */

.ob-box { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.ob-box__form { display: flex; flex-direction: column; gap: var(--space-3); margin: 0; }
.ob-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ob-label { font-size: var(--text-label); font-weight: 500; color: var(--muted); }
.ob-input--main { min-height: 60px; padding: 0 20px; font-size: var(--text-body-l); }
.ob-input.mono { font-family: var(--font-mono); }
.ob-input--short { max-width: 180px; }
.ob-input--date { min-height: 44px; max-width: 200px; font-size: var(--text-label); }
.ob-example { margin: 0; font-size: var(--text-small); color: var(--muted); line-height: 1.45; }
.ob-example span { color: var(--ink-soft); }
.ob-live { margin: 0; min-height: 1.3em; font-size: var(--text-small); font-weight: 500; color: var(--accent-strong); }
.ob-live:empty { display: none; }
.ob-live--warn { color: var(--warn); }
.ob-hint { margin: 0; font-size: var(--text-small); color: var(--muted); line-height: 1.4; }
.ob-hint--note { color: var(--ink-soft); }
.ob-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: start; }
.ob-field--submit { padding-top: 26px; }
.ob-submit { width: 100%; }
.ob-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-3) var(--space-6); }
.ob-field--date { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px var(--space-3); }
.ob-field--date .ob-hint, .ob-field--date .fx-error { flex-basis: 100%; }
/* product-dialog-6, product-focus-duty-5: the note that a date's rules aren't confirmed yet shows while the date is being
   edited, the one moment it helps; the estimate's own checks say it after */
[data-controller~="entry-date"]:not(:focus-within) > [data-entry-date-target="choice"] { display: none; }
.ob-field--quantity { max-width: 320px; }
.ob-try { margin: 0; }
.ob-errors { margin: 0; }
.ob-linkbtn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--ink); font: inherit; font-size: var(--text-label); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px;
}
.ob-linkbtn:hover { text-decoration-color: currentColor; }
.ob-box__summary { display: none; }
.ob-hero--product .ob-box__summary-text { display: none; }
.ob-box__summary-text { margin: 0; font-size: var(--text-body); font-weight: 500; overflow-wrap: anywhere; }
.ob-box__summary-meta { margin: 0; font-size: var(--text-small); color: var(--muted); display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }

/* ------------------------------------------------------------------ S1: the outline shown while an answer is worked out */

.ob-skeleton { display: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.9fr); gap: var(--space-5); }
/* only the answer's own frame ("one", workspace/_one_frame) loading shows the skeleton: not the list around it refreshing
   after a save, and not an answer saved from the live HTS review (data-quiet-busy, live_hts_controller.js#send), so the
   review stays on screen until the new one arrives */
turbo-frame#one[busy]:not([data-quiet-busy]) .ob-skeleton { display: grid; }
turbo-frame#one[busy]:not([data-quiet-busy]) #answer { display: none; }
.ob-skeleton__card { display: flex; flex-direction: column; gap: var(--space-3); min-height: 240px; padding: var(--space-8); border-radius: var(--radius-card); border: 1px solid var(--line); background: var(--surface); }
.ob-skeleton__card--hero, .ob-skeleton__card--muted { background: var(--hero); border-color: var(--hero-edge); }
.ob-skeleton__line { display: block; height: 14px; width: 80%; border-radius: var(--radius-pill); background: var(--line); animation: ob-pulse 1.2s ease-in-out infinite; }
.ob-skeleton__card--hero .ob-skeleton__line, .ob-skeleton__card--muted .ob-skeleton__line { background: var(--hero-line); }
.ob-skeleton__line--label { width: 30%; height: 12px; }
.ob-skeleton__line--code { width: 70%; height: 36px; }
.ob-skeleton__line--short { width: 45%; }
.ob-skeleton__line--bar { width: 100%; height: 10px; margin-top: auto; }
@keyframes ob-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* ------------------------------------------------------------------ the answer: two cards that open, and a small third */

.ob-card { display: flex; flex-direction: column; gap: var(--space-5); min-width: 0; }
.ob-card__row {
  display: grid; gap: var(--space-5); align-items: stretch;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "hts duty";
}
.ob-hts { grid-area: hts; }
.ob-duty { grid-area: duty; }

.ob-fold { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: var(--radius-card); }
/* closed, the card is its dark face; opened, the face stays dark and the body under it is light (the page's own tokens) */
.ob-hts, .ob-duty { background: var(--hero); color: var(--hero-ink); border: 1px solid var(--hero-edge); }
.ob-duty { overflow: hidden; container-type: inline-size; }
.ob-fold:is([open], [data-open="true"]) { background: var(--surface); color: var(--ink); border-color: var(--line); }

/* the face: a real button once the answer-card controller has run; a <summary> without JavaScript */
.ob-face {
  list-style: none; display: flex; flex-direction: column; gap: var(--space-3); width: 100%; min-height: 100%; padding: var(--space-8);
  border: 0; border-radius: inherit; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.ob-face::-webkit-details-marker { display: none; }
.ob-face > span { display: block; }
.ob-face:focus-visible { outline-offset: -4px; }
.ob-face--hero { background: var(--hero); color: var(--hero-ink); }
.ob-fold:is([open], [data-open="true"]) > .ob-face--hero { border-radius: calc(var(--radius-card) - 1px) calc(var(--radius-card) - 1px) 0 0; }
div.ob-face { cursor: default; }
.ob-face__label { display: inline !important; }
.ob-face__top { display: flex !important; align-items: center; justify-content: space-between; gap: var(--space-3); }
.ob-face__more { display: inline-flex !important; align-items: center; gap: 6px; flex: none; color: var(--muted); font-size: var(--text-small); font-weight: 500; }
.ob-face__more::after {
  content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px); transition: transform var(--motion) var(--ease);
}
.ob-fold:is([open], [data-open="true"]) .ob-face__more::after { transform: rotate(-135deg) translate(-2px, -2px); }
.ob-face:hover .ob-face__more { color: var(--ink); }

.ob-eyebrow { margin: 0; font-size: var(--text-label); font-weight: 500; color: var(--muted); }
/* product-low-2: a code is read as one token, never broken a digit a line */
.ob-code { margin: 0; font-family: var(--font-mono); font-size: var(--text-code); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); white-space: nowrap; }
.ob-code-desc { margin: 0; font-size: var(--text-body); color: var(--ink-soft); line-height: 1.45; }
.ob-code-block { display: flex !important; flex-direction: column; gap: var(--space-3); }
.ob-code-block > span { display: block; }
.ob-badges { margin: 0; display: flex !important; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.ob-muted { margin: 0; font-size: var(--text-small); color: var(--muted); line-height: 1.45; }
.ob-why { margin: 0; font-size: var(--text-label); color: var(--ink-soft); line-height: 1.5; }
.ob-why-line {
  margin: 0; font-size: var(--text-label); line-height: 1.5; color: var(--ink-soft);
  display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.ob-fold:is([open], [data-open="true"]) .ob-why-line { -webkit-line-clamp: unset; line-clamp: none; }
.ob-why-lead { font-weight: 600; color: var(--ink); }
.ob-face__problem { margin: 0; color: var(--bad); font-size: var(--text-body); font-weight: 500; }
.ob-headline { margin: 0; font-size: var(--text-body-l); font-weight: 600; line-height: 1.35; color: inherit; }

.ob-total { margin: 0; font-size: min(var(--text-hero), 15cqi); font-weight: 700; letter-spacing: -0.05em; line-height: 1; color: inherit; font-variant-numeric: tabular-nums; }
.ob-total--rate { font-size: var(--text-code); font-family: var(--font-mono); font-weight: 500; letter-spacing: -0.03em; }
.ob-total--partial { opacity: .85; }
.ob-total-sub { margin: 0; font-size: var(--text-body); color: var(--hero-soft); }
.ob-total-note { margin: 0; font-size: var(--text-small); color: var(--hero-muted, var(--muted)); } /* PLAN-2 W */
.ob-prompt { margin: 0; font-size: var(--text-body); color: var(--hero-soft); line-height: 1.45; }
.ob-prompt--lead { font-size: var(--text-body-l); font-weight: 600; color: var(--hero-ink); }
.ob-under { margin: 0; font-size: var(--text-small); color: var(--muted); line-height: 1.45; }
.ob-under--warn { color: var(--warn) !important; font-weight: 600; }
.ob-duty--static .ob-face { cursor: default; }

/* the duty layers: a bar of segments 3px apart, and its legend */
.ob-layers { display: flex !important; gap: 3px; height: 10px; margin-top: auto; border-radius: var(--radius-pill); overflow: hidden; }
.ob-layers__seg { display: block; height: 100%; min-width: 3px; }
.ob-layers__seg--general { background: var(--layer-general); }
.ob-layers__seg--section_232 { background: var(--layer-232); }
.ob-layers__seg--section_301 { background: var(--layer-301); }
.ob-layers__seg--other { background: var(--layer-other); }
.ob-legend { display: flex !important; flex-wrap: wrap; gap: 6px var(--space-4); font-size: var(--text-small); color: var(--muted); }
.ob-legend__item { display: inline-flex; align-items: center; gap: 6px; }
.ob-legend__item .mono { color: var(--ink-soft); }
.ob-legend__official { font-size: 12px; color: var(--muted); } /* PLAN-2 W: the official name, small */
.ob-legend__swatch { width: 10px; height: 10px; border-radius: 3px; flex: none; }

/* the card opened */
.ob-fold__body { display: flex; flex-direction: column; gap: var(--space-5); min-width: 0; padding: 0 var(--space-8) var(--space-8); }
.ob-fold > .ob-fold__body { padding-top: var(--space-6); background: var(--surface); color: var(--ink); border-radius: 0 0 var(--radius-card) var(--radius-card); }
.ob-fold__body > * { margin: 0; }
.ob-fold__body:focus { outline: none; }

.ob-section { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.ob-subhead { margin: 0; font-size: var(--text-label); font-weight: 500; color: var(--muted); }
.ob-notes { margin: 0; padding-left: 18px; font-size: var(--text-small); color: var(--muted); line-height: 1.45; }
.ob-notes-block { display: flex; flex-direction: column; gap: 6px; padding: var(--space-3) var(--space-4); border-radius: var(--radius-row); background: var(--surface-muted); }
.ob-notes-block .ob-under { color: var(--ink-soft); }

/* assumption rows: a 16-radius outline, the words and their effect, a pill to change */
.ob-card .rs__assume-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); list-style: none; margin: 0; padding: 0; }
.ob-card .rs__assume {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); padding: var(--space-4) var(--space-5);
  border: 1px solid var(--line); border-radius: var(--radius-row); background: var(--surface);
}
.ob-card .rs__assume-body, .ob-card .rs__assume > .rs__assume-text { flex: 1 1 240px; min-width: 0; }
.ob-card .rs__assume-text { margin: 0; font-size: var(--text-body); font-weight: 500; }
.ob-card .rs__assume-lead { color: var(--muted); font-weight: 500; }
.ob-card .rs__assume-effect { margin: 0; flex-basis: 100%; font-size: var(--text-label); font-weight: 500; color: var(--warn); }
.ob-card .rs__assume-effect[data-change="lower"] { color: var(--good); }
.ob-card .rs__assume-controls { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.ob-card .rs__assume-list--given .rs__assume { background: var(--surface-muted); border-color: transparent; }
.ob-card .rs__assume-change[open] { flex-basis: 100%; }
/* PLAN-2 U: an assumption that decides the code, listed first and marked */
.ob-card .rs__assume--decides { border-color: var(--assumed-line); background: var(--assumed-bg); }
.ob-card .rs__assume-flag { margin: 0 0 2px; font-size: var(--text-label); font-weight: 600; color: var(--assumed); }
.ob-card .rs__assume-other { margin: 2px 0 0; font-size: var(--text-label); color: var(--ink-soft); }
.ob-card .rs__assume--value .rs__assume-share { color: var(--muted); font-weight: 400; }
.ob-deciding { display: block; margin-top: var(--space-2); font-size: var(--text-label); font-weight: 600; color: var(--assumed); }
.ob-deciding[data-rs="readings-deciding"] { color: var(--inferred); }
/* W-READ, product-low-7: "Read as: SCR → screw · FLG → flange · Change" is one line whose Change opens each word's form;
   a deciding reading is a full row above it, as a chip with its own Change */
.ob-card .rs__readings { display: grid; gap: var(--space-3); }
.ob-card .rs__readings-row { margin: 0; font-size: var(--text-label); line-height: 1.7; }
.ob-card .rs__readings-change > summary { cursor: pointer; list-style: none; }
.ob-card .rs__readings-change > summary::-webkit-details-marker { display: none; }
.ob-card .rs__readings-change > summary:hover .rs__reading-pill { text-decoration: underline; }
.ob-card .rs__readings-lead { margin-right: var(--space-2); font-size: var(--text-label); font-weight: 500; color: var(--muted); }
.ob-card .rs__reading-line { font-size: var(--text-label); color: var(--ink-soft); }
.ob-card .rs__reading-forms { display: grid; gap: var(--space-3); margin-top: var(--space-3); }
.ob-card .rs__reading { display: block; min-width: 0; max-width: 100%; }
.ob-card .rs__reading-line .rs__reading { display: inline; }
.ob-card .rs__reading.rs__assume { padding: var(--space-3) var(--space-4); }
.ob-card .rs__reading.rs__assume--decides { border-color: var(--line); background: var(--inferred-bg); }
.ob-card .rs__reading .rs__assume-flag { color: var(--inferred); }
.ob-card .rs__reading-summary, .ob-card .rs__reading.rs__assume > .rs__reading-text {
  display: inline-flex; align-items: baseline; gap: var(--space-2); max-width: 100%; padding: 4px 10px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--surface); font-size: var(--text-label); list-style: none; overflow-wrap: anywhere;
}
.ob-card .rs__reading-summary { cursor: pointer; }
.ob-card .rs__reading-summary::-webkit-details-marker { display: none; }
.ob-card .rs__reading-summary:hover { border-color: var(--accent); }
.ob-card .rs__reading.rs__assume .rs__reading-summary { background: var(--surface); }
.ob-card .rs__reading-token { font-weight: 600; }
.ob-card .rs__reading-pill { color: var(--accent); font-weight: 600; }
.ob-card .rs__reading-form { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-2); padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line); border-radius: var(--radius-row); background: var(--surface-muted); }
.ob-card .rs__reading-form > * { margin: 0; }
.ob-card .rs__reading-options { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.ob-card .rs__reading-option, .ob-card .rs__reading-company { display: flex; align-items: baseline; gap: var(--space-2); font-size: var(--text-label); overflow-wrap: anywhere; }
.ob-card .rs__reading-other { max-width: 360px; }
.ob-card .rs__reading-suggestions { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.ob-card .rs__reading-suggestion { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.ob-card .ob-adcvd { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.ob-card .ob-adcvd .rs__adcvd-text { margin: 0; flex: 1 1 280px; font-size: var(--text-label); color: var(--muted); }
.ob-card .ob-adcvd--order_applies .rs__adcvd-text { color: var(--warn); font-weight: 600; }
.ob-card .ob-adcvd--flagged .rs__adcvd-text { color: var(--warn); }
.ob-card .ob-adcvd .rs__adcvd-orders { flex-basis: 100%; }
.ob-card .rs__how { margin: 0; }
.ob-panel-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; padding-top: var(--space-2); }
.ob-qty { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.ob-qty__row { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: center; }

/* full lines to choose, and "Check this code" */
.ob-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 440px; overflow-y: auto; }
.ob-line-form { margin: 0; display: block !important; }
.ob-line {
  display: flex; gap: var(--space-3); align-items: baseline; width: 100%; min-height: 48px; padding: var(--space-3) var(--space-4); text-align: left;
  border: 1px solid var(--line); border-radius: var(--radius-row); background: var(--surface); color: var(--ink); font: inherit; font-size: var(--text-label); cursor: pointer;
  transition: opacity var(--motion) var(--ease);
}
button.ob-line:hover { border-color: var(--accent); }
.ob-line--static { cursor: default; }
.ob-line__code { flex: none; font-weight: 500; }
.ob-line__desc { color: var(--ink-soft); min-width: 0; overflow-wrap: anywhere; }
.ob-check { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4) var(--space-5); border-radius: var(--radius-row); background: var(--surface-muted); }
.ob-check > * { margin: 0; }
.ob-check__title { font-weight: 600; }
.ob-check__line, .ob-check__verdict { font-size: var(--text-label); color: var(--ink-soft); }
.ob-check__verdict--same { color: var(--good); font-weight: 600; }
.ob-check__actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.ob-code-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.ob-actions__refused { flex-basis: 100%; }
.ob-alts { margin: 0; }
.ob-record-footer { padding-top: var(--space-3); border-top: 1px solid var(--line); font-size: var(--text-small); color: var(--muted); }

/* product-review-16: a cheaper origin, one line on the duty card's face (loaded after the card; empty when none). Never
   display: none while empty, or the lazy frame is never seen and never loads. */
.ob-origins-line { display: block; min-height: 1px; }

/* under the cards of an unsaved answer: Save product, Print record */
.ob-actions { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; }
.ob-save { position: relative; }
.ob-save[open] > summary { margin-bottom: var(--space-2); }
.ob-save__form { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-row); background: var(--surface); min-width: min(380px, 100%); }

/* ------------------------------------------------------------------ PLAN-2 L: the legal path */

.lp { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.lp__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2); }
.lp__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) 6px; }
.lp__step { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.lp__step:not(:last-child)::after { content: "→" / ""; color: var(--faint); font-size: var(--text-label); }
.lp__pill {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; max-width: 100%; padding: 4px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink);
  font: inherit; font-size: var(--text-small); font-weight: 500; text-align: left; cursor: pointer; transition: opacity var(--motion) var(--ease);
}
.lp__pill:hover { opacity: .8; }
.lp__pill[aria-expanded="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); }
.lp__short { overflow-wrap: anywhere; }
.lp__step--assumed .lp__pill { border-color: var(--assumed-line); border-style: dashed; color: var(--assumed); background: var(--assumed-bg); }
.lp__step--pending .lp__pill { border-style: dashed; color: var(--muted); }
.lp__mark { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--assumed); color: var(--assumed-bg); font-size: 11px; font-weight: 700; flex: none; }
.lp__static { font-size: var(--text-small); color: var(--ink-soft); }
.lp__step--assumed .lp__static, .lp__assumed-word { color: var(--assumed); font-weight: 500; }
.lp__details { display: flex; flex-direction: column; gap: 4px; }
.lp--js .lp__detail > summary { display: none; }
.lp--js .lp__detail:not([open]) { display: none; }
.lp__detail-summary { cursor: pointer; font-size: var(--text-small); font-weight: 500; min-height: 36px; display: flex; align-items: center; }
.lp__detail-body { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4) var(--space-5); border-radius: var(--radius-row); background: var(--surface-muted); }
.lp__detail-body > * { margin: 0; }
.lp__detail--assumed .lp__detail-body { background: var(--assumed-bg); }
.lp__detail-title { font-weight: 600; }
.lp__detail-text { color: var(--ink-soft); }
.lp__quote { margin: 0; }
.lp__how { font-size: var(--text-label); color: var(--muted); }
.lp__how--assumed, .lp__assumption { color: var(--assumed); font-weight: 500; font-size: var(--text-label); }
.lp__label { margin: var(--space-2) 0 0; font-size: var(--text-small); font-weight: 600; color: var(--ink); }
.lp__note { margin: 0; }
.lp__fact { font-size: var(--text-label); color: var(--ink-soft); }
.lp__excluded, .lp__rulings { margin: 0; padding-left: 18px; font-size: var(--text-label); color: var(--ink-soft); display: flex; flex-direction: column; gap: 4px; }
.lp__holding { font-size: var(--text-small); color: var(--muted); }
/* product-hts-4: the release and the rules applied, one muted line; a rule beyond GRI 1 or an older release stands out */
.lp__basis { margin: 0; }
.lp__basis--notable { color: var(--ink); font-weight: 600; }
.lp__basis abbr { text-decoration: underline dotted; cursor: help; }
/* the codes the legal notes rule out, one line under the steps; its reasons open from "+N" or "Why" */
.ob-excluded-notes { font-size: var(--text-label); color: var(--ink-soft); }
.ob-excluded-notes > summary { cursor: pointer; list-style: none; padding: 6px 0; }
.ob-excluded-notes > summary::-webkit-details-marker { display: none; }
.ob-excluded-notes__open { color: var(--accent); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.ob-excluded-notes__list { margin: 4px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
/* PLAN-2 W: a plain line with its citation in small type; the legal text one click away */
.lp__plain { color: var(--ink); font-weight: 500; }
.lp__plain--more { font-weight: 400; color: var(--ink-soft); }
.lp__plain--assumed .lp__plain-text { color: var(--assumed); }
.lp__cite, .pl-cite { font-size: var(--text-small); font-weight: 400; color: var(--muted); }
.lp__cite { white-space: nowrap; }
.lp__legal { font-size: var(--text-label); }
.lp__legal > summary { cursor: pointer; min-height: 32px; display: inline-flex; align-items: center; font-size: var(--text-small); font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.lp__legal[open] { display: flex; flex-direction: column; gap: var(--space-2); }

/* ------------------------------------------------------------------ recent products */

.ob-recent { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.ob-recent__title { margin: 0; font-size: var(--text-h2); font-weight: 600; letter-spacing: -0.02em; }
.ob-recent__list { list-style: none; margin: 0; padding: 0; }
.ob-recent__row { border-bottom: 1px solid var(--line); }
.ob-recent__row:first-child { border-top: 1px solid var(--line); }
.ob-recent__link {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px var(--space-4); padding: var(--space-4) 0; min-height: 44px;
  color: var(--ink); text-decoration: none; transition: opacity var(--motion) var(--ease);
}
.ob-recent__link:hover { color: var(--ink); opacity: .75; }
.ob-recent__desc { font-size: var(--text-body); font-weight: 500; overflow-wrap: anywhere; }
.ob-recent__duty { font-size: var(--text-body); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.ob-recent__meta { grid-column: 1 / -1; display: flex; gap: var(--space-2) var(--space-3); flex-wrap: wrap; align-items: center; font-size: var(--text-small); color: var(--muted); }
.ob-recent__code { font-family: var(--font-mono); color: var(--ink-soft); }
.ob-recent__all { margin: 0; font-size: var(--text-label); }

/* ------------------------------------------------------------------ narrower screens */

@media (max-width: 1100px) {
  .ob-hero { grid-template-columns: minmax(0, 1fr); align-items: start; gap: var(--space-8); }
  .ob-card__row { align-items: start; }
  .ob-skeleton { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ob-skeleton__card--muted { display: none; }
}
@media (max-width: 900px) {
  .ob-card__row { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hts" "duty"; }
  .ob-skeleton { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .ob-wrap { gap: var(--space-6); }
  .ob-display { letter-spacing: -0.04em; }
  .ob-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ob-field--submit { grid-column: 1 / -1; padding-top: 0; }
  .ob-box[data-collapsed="true"] .ob-box__summary { display: flex; flex-direction: column; gap: 4px; }
  .ob-box[data-collapsed="true"] .ob-box__form { display: none; }
  .ob-face { padding: var(--space-6) var(--space-5); }
  .ob-fold__body { padding: 0 var(--space-5) var(--space-6); }
  .ob-skeleton__card { min-height: 180px; padding: var(--space-6) var(--space-5); }
  .ob-card .rs__assume { padding: var(--space-3) var(--space-4); }
  .ob-card .rs__assume-controls, .ob-card .rs__assume-controls form, .ob-card .rs__assume-controls .fx-btn { width: 100%; }
  .ob-actions { flex-direction: column; align-items: stretch; }
  .ob-actions .fx-btn, .ob-save, .ob-save > summary { width: 100%; }
}
@media (max-width: 400px) {
  .ob-grid { grid-template-columns: minmax(0, 1fr); }
}

@media print {
  .ob-box, .ob-recent, .ob-skeleton, .ob-face__more { display: none !important; }
  .ob-hero { display: block; }
  .ob-card__row { display: block; }
  .ob-fold { border: 1px solid #999; margin-bottom: 12pt; break-inside: avoid; }
  .ob-face, .ob-face--hero, .ob-duty { background: #fff !important; color: #000 !important; }
  .ob-fold__body { display: flex !important; }
  .lp__pill { display: none !important; }
  .lp__static { display: inline !important; }
  .lp__detail { display: block !important; }
}
/* feat/ai-combined: the AI's answer on the card's face: "Use a different code" beside the code, the band's measured
   promise, and the code's "Check this" list, one item per line (product-review-8) */
.ob-code-change { margin-left: var(--space-2); font-size: var(--text-label); font-weight: 500; }
.ob-promise { font-size: var(--text-label); }
.ob-check-this { display: block; margin-top: var(--space-2); padding: 6px 10px; border-radius: 8px; background: var(--warn-bg); color: var(--ink);
                 font-size: var(--text-label); line-height: 1.45; }
.ob-check-this__lead > span[aria-hidden] { color: var(--warn); }
.ob-check-this__items { display: block; }
.ob-check-this__item { display: list-item; margin-left: 1.25em; list-style: disc; }
/* One more line of description (products/_needs_details): an invitation beside the AI's code, never a stop, so it reads
   as an assumption to improve (the assumed colour), not a warning */
.ob-needs-details { display: block; margin: var(--space-2) 0 0; padding: 4px 10px; border-left: 2px solid var(--assumed);
                    color: var(--ink); font-size: var(--text-label); font-weight: 400; line-height: 1.45; }
.ob-needs-details .fx-link { white-space: nowrap; }
/* product-hts-3, -11: the legal basis under the legal path in the HTS window (products/_hts_review_legal) */
.ob-legal-basis { display: grid; gap: var(--space-2); min-width: 0; font-size: var(--text-label); line-height: 1.5; }
.ob-legal-basis > p { margin: 0; }
.ob-legal-basis__agrees { font-weight: 500; color: var(--ink); }
.ob-legal-basis .hts-review__citations { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.ob-legal-basis .hts-review__citations > li { padding: 6px 10px; border-left: 2px solid var(--line-strong); }
.ob-legal-basis .hts-review__citations p { margin: 2px 0 0; color: var(--ink-soft); }
.ob-legal-basis .hts-review__source { margin-left: var(--space-2); font-size: var(--text-small); color: var(--muted); }
.rulings__title { margin: var(--space-2) 0 0; font-size: var(--text-small); font-weight: 600; color: var(--ink); }
.rulings__group-title { margin: var(--space-3) 0 0; font-size: var(--text-label); font-weight: 600; color: var(--muted); }
.rulings__group + .rulings__more { margin-top: var(--space-2); }
.ob-alts__list { list-style: none; margin: 0; padding: 0; }
.alternative__use-form { margin-top: 6px; }
/* Needs review's one-line reason */

/* product-review-25: on a phone a product reads title, HTS card, duty card (with Edit inputs and "Also confirm the duty
   estimate"), then Export (and Report an issue): the header's actions join the frame's column to follow the cards. The
   Review Queue's confirm bar comes last and sticks to the bottom of the screen, so Confirm with the code, its band and the
   open checks stays in reach; at the page's end it sits in its own space and covers nothing. In the DOM the bar stays
   first (on a wide screen it sticks to the top) and the cards stay in reading order. Not in a review (dialog, focused). */
@media (max-width: 720px) {
  turbo-frame#one:not([data-product-review-frame="true"]) > .ob-hero--product,
  turbo-frame#one:not([data-product-review-frame="true"]) > .ob-hero--product > .ob-product,
  turbo-frame#one:not([data-product-review-frame="true"]) > .ob-product { display: contents; }
  turbo-frame#one:not([data-product-review-frame="true"]) .product-header-actions { order: 1; justify-content: flex-start; }
  turbo-frame#one:not([data-product-review-frame="true"]) > .ob-card ~ * { order: 2; }
  turbo-frame#one:not([data-product-review-frame="true"]) > .product-confirmation { order: 3; top: auto; bottom: 0; }
  turbo-frame#one:not([data-product-review-frame="true"]) > .ob-card > .product-confirmation__duty { align-self: flex-start; }
}

/* overpayment.css */
/* The Entries page (EntryUploadsController): the upload card, the overpayment finder's results and the entry pre-check's. */
.im-page .im-entry-card.im-entries { margin-top: 20px; }
.im-entries__form { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.im-entries__list { list-style: none; margin: 4px 0 0; padding: 0; width: 100%; }
.im-entries__list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: var(--text-label); }

.op-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-4); }
.op-meta { margin: 0; color: var(--muted); font-size: var(--text-label); }
.op-notice { margin: 6px 0 0; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-muted); font-size: var(--text-label); max-width: 90ch; }
.op-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.op-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: var(--space-3) 0; }
.op-tile { padding: 14px 16px; border-radius: 16px; border: 1px solid var(--glass-border, var(--line)); background: var(--glass-surface, var(--surface)); display: flex; flex-direction: column; gap: 4px; }
.op-tile span { font-size: var(--text-small); color: var(--muted); }
.op-tile strong { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.op-tile--good strong { color: var(--good, var(--ink)); }
.op-tile--warn strong { color: var(--warn, var(--ink)); }
.op-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; margin: var(--space-3) 0; }
.op-actions form { margin: 0; }
.op-delete > summary { list-style: none; cursor: pointer; }
.op-delete[open] { padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; max-width: 46ch; }
.op-delete p { font-size: var(--text-small); color: var(--muted); }
.op-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: var(--space-3) 0; font-size: var(--text-label); }
.op-filters label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); }
.op-section { margin: var(--space-4) 0; }
.op-section h2 { font-size: var(--text-h2, 18px); margin: 0 0 var(--space-2); letter-spacing: -.02em; }
.op-section h2 small { font-weight: 400; color: var(--muted); font-size: var(--text-label); margin-left: 6px; }
.op-section--under h2 { color: var(--warn, var(--ink)); }
.op-row { display: grid; grid-template-columns: minmax(150px, 1.2fr) minmax(200px, 2.4fr) 130px 110px minmax(130px, 1fr); gap: 12px; align-items: start; padding: 10px 12px; }
.op-row--head { font-size: var(--text-small); color: var(--muted); padding-top: 0; padding-bottom: 4px; }
.op-finding { border-top: 1px solid var(--line); }
.op-finding > summary { list-style: none; cursor: pointer; }
.op-finding > summary::-webkit-details-marker { display: none; }
.op-finding > summary:hover { background: var(--surface-muted); }
.op-finding[open] > summary { background: var(--surface-muted); }
.op-cell { min-width: 0; font-size: var(--text-label); overflow-wrap: anywhere; }
.op-cell small { display: block; color: var(--muted); font-size: var(--text-small); margin-top: 2px; }
.op-cell--what { font-weight: 500; }
.op-cell--amount { text-align: right; font-weight: 600; }
.op-certainty { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: var(--text-small); border: 1px solid var(--line); }
.op-certainty--certain { background: var(--good-bg, var(--surface-muted)); }
.op-certainty--possible { background: var(--surface-muted); }
.op-certainty--expert-review { background: var(--warn-bg, var(--surface-muted)); }
.op-when--soon { color: var(--bad, var(--ink)); font-weight: 600; }
.op-when--passed, .op-when--unknown { color: var(--muted); }
.op-detail { padding: 4px 12px 16px; font-size: var(--text-label); max-width: 100ch; }
.op-detail h4 { margin: 14px 0 4px; font-size: var(--text-label); }
.op-detail p { margin: 4px 0; }
.op-rule, .op-sources { color: var(--ink-soft, var(--ink)); }
.op-codes { border-collapse: collapse; margin: 6px 0; font-size: var(--text-small); }
.op-codes th, .op-codes td { text-align: left; padding: 4px 10px 4px 0; border-bottom: 1px solid var(--line); }
.op-codes th { color: var(--muted); font-weight: 500; }
.op-codes__total td { font-weight: 600; }
.op-components { margin: 6px 0; padding-left: 18px; font-size: var(--text-small); }
.op-more { margin: var(--space-2) 0; font-size: var(--text-label); }
.op-more summary { cursor: pointer; color: var(--muted); }
/* Entry pre-check: the filed/draft choice, the problem rows (underpay and overpay alike), the assumptions, the pages */
.op-kind { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.op-kind__legend { font-size: var(--text-label); font-weight: 600; margin-bottom: 6px; padding: 0; }
.op-kind__option { flex: 1 1 260px; display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; font-size: var(--text-label); }
.op-kind__option:has(input:checked) { border-color: var(--accent, var(--ink)); background: var(--surface-muted); }
.op-kind__option input { margin-top: 3px; }
.op-kind__option small { display: block; color: var(--muted); font-size: var(--text-small); margin-top: 2px; }
.op-tile small { font-size: var(--text-small); color: var(--muted); }
.op-row--draft { grid-template-columns: minmax(150px, 1.2fr) minmax(220px, 2.6fr) 140px 130px 110px; }
.op-direction { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: var(--text-small); font-weight: 600; border: 1px solid var(--line); }
.op-direction--underpay { color: var(--warn, var(--ink)); background: var(--warn-bg, var(--surface-muted)); border-color: var(--warn, var(--line)); }
.op-direction--overpay { color: var(--good, var(--ink)); background: var(--good-bg, var(--surface-muted)); border-color: var(--good, var(--line)); }
.op-direction--none { color: var(--muted); }
.op-problem--underpay > summary { box-shadow: inset 3px 0 0 var(--warn, var(--line)); }
.op-problem--overpay > summary { box-shadow: inset 3px 0 0 var(--good, var(--line)); }
.op-assumed { margin: 6px 0; padding-left: 18px; }
.op-assumed li { margin: 2px 0; }
.op-pages { display: flex; gap: 14px; align-items: center; justify-content: center; padding: 12px 0; font-size: var(--text-label); color: var(--muted); }
/* The results' headline: each tile's label links to its list; the amounts of other certainty sit under it, never added */
.op-tile__label { font-size: var(--text-small); color: var(--muted); }
a.op-tile__label { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.op-tile small a { color: inherit; }
.op-totals--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.op-gaps { display: flex; flex-direction: column; gap: 4px; margin-top: -10px; }
.op-gap { margin: 0; font-size: var(--text-label); }
.op-cell--unpriced { font-weight: 500; color: var(--muted); }
.op-gap a { color: var(--warn, var(--ink)); font-weight: 500; }
.op-how { font-size: var(--text-small); color: var(--muted); }
.op-how > summary { cursor: pointer; width: fit-content; }
.op-how p { margin: 4px 0 0; max-width: 90ch; }
.op-section__head { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; justify-content: space-between; }
.op-section__head a { font-size: var(--text-label); }
.op-tag { color: var(--muted); font-size: var(--text-small); font-weight: 400; }
.op-tag--gate { padding: 0 6px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; white-space: nowrap; }
.op-gate { margin: var(--space-3) 0 0; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--warn, var(--line)); background: var(--warn-bg, var(--surface-muted)); font-size: var(--text-small); max-width: 90ch; }
.op-codes caption { caption-side: top; text-align: left; color: var(--muted); padding-bottom: 4px; }
.op-worked { margin-top: 6px; }
.op-worked .op-more { margin: 4px 0 0 18px; }
/* Tap-to-open popovers (sources, a tile's why) and the "More" menu: <details> that close on Escape or a click outside */
.op-pop, .op-menu { position: relative; display: inline-block; }
.op-pop > summary { list-style: none; cursor: pointer; width: fit-content; color: var(--accent-strong, var(--ink)); font-size: var(--text-small); text-decoration: underline; text-underline-offset: 3px; }
.op-pop > summary::-webkit-details-marker, .op-menu > summary::-webkit-details-marker { display: none; }
.op-pop__body, .op-menu__body { position: absolute; z-index: 20; left: 0; top: calc(100% + 6px); margin: 0; padding: 10px 12px; list-style: none; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-menu, 0 8px 24px rgb(0 0 0 / .14)); font-size: var(--text-small); }
.op-pop__body { width: max-content; max-width: min(360px, 80vw); }
.op-pop__body li + li { margin-top: 4px; }
.op-pop--info { vertical-align: 1px; margin-left: 4px; position: static; }
/* a tile's "why" opens across the tile, so it never leaves a phone's width */
.op-tile:has(.op-pop--info) { position: relative; }
.op-pop--info .op-pop__body { left: 12px; right: 12px; top: 40px; width: auto; max-width: none; }
.op-pop--info > summary { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; border: 1px solid currentColor; color: var(--muted); font: italic 700 10px/1 var(--font-sans, inherit); text-decoration: none; }
.op-pop--info .op-pop__body { color: var(--ink); font-weight: 400; line-height: 1.5; }
.op-menu > summary { list-style: none; cursor: pointer; }
.op-menu__body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; width: max-content; max-width: min(420px, 86vw); }
.op-menu__body form { margin: 0; }
.op-menu .op-delete[open] { border: 0; padding: 0; }
/* Filters apply as they change (auto-save); without JavaScript the Show button does */
.op-filters[data-autosave] .op-filters__show { display: none; }
.op-actions .ws-ai-actions { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
@media (max-width: 760px) {
  .op-row, .op-row--draft { grid-template-columns: 1fr 1fr; }
  /* the menu opens under the whole actions row, inside the page's width */
  .op-actions { position: relative; }
  .op-menu { position: static; }
  .op-menu__body { max-width: 100%; }
  .op-row--head { display: none; }
  .op-cell--what { grid-column: 1 / -1; }
  .op-cell--amount { text-align: left; }
}
@media (max-width: 520px) {
  .op-totals--pair, .op-totals--draft { grid-template-columns: 1fr; }
}

/* packet.css */
/* The evidence packet (PacketsController#show): a document meant to be printed or saved as PDF and
   defended later. Scoped to .packet-page so nothing leaks into the application. Ink on paper, no
   colour needed to read a state: every state is also a word. */
.packet-page { --paper: #fff; --ink: #1D1D1F; --muted: #636366; --line: #E5E5EA; --line-strong: #D1D1D6; --accent: #0063CC; --good: #176441; --warn: #8B5100; --warn-bg: #FFF4E5; --bad: #B42318; --shade: #F2F2F7; margin: 0; background: #F5F5F7; color: var(--ink); font: 13px/1.5 "Geist", -apple-system, "Segoe UI", system-ui, sans-serif; }
.packet-page .packet { max-width: 960px; margin: 0 auto; padding: 24px 24px 48px; background: var(--paper); }
.packet-page .mono { font-family: "Geist Mono", ui-monospace, Menlo, Consolas, monospace; font-size: 12px; overflow-wrap: anywhere; }
.packet-page .small { font-size: 12px; }
.packet-page a { color: var(--accent); text-underline-offset: 2px; }
.packet-page .muted { color: var(--muted); }
.packet-page .print-only { display: none; }
.packet-page h1 { font-size: 20px; margin: 4px 0 8px; }
.packet-page h2 { font-size: 15px; margin: 24px 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--line-strong); }
.packet-page h3 { font-size: 13px; margin: 16px 0 4px; }
.packet-page .packet__eyebrow { margin: 0; color: var(--muted); font-size: 12px; }
.packet-page .packet__tools { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.packet-page .packet__tools a { color: var(--accent); }
.packet-page .packet__tools button { font: inherit; padding: 4px 12px; border: 1px solid var(--accent); background: var(--accent); color: #fff; border-radius: 4px; cursor: pointer; }
.packet-page .packet__tools button:focus-visible, .packet-page .packet__tools a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.packet-page .packet__sample { margin: 0 0 16px; padding: 8px 12px; border-left: 4px solid var(--warn); background: var(--warn-bg); color: var(--warn); }
.packet-page .packet__gate { font-weight: 600; }
.packet-page .packet__code { font-size: 16px; font-weight: 600; }
.packet-page .packet__tag { display: inline-block; padding: 0 6px; border: 1px solid var(--line-strong); border-radius: 3px; font-size: 11px; text-transform: lowercase; }
.packet-page .packet__quote { padding-left: 8px; border-left: 2px solid var(--accent); }
.packet-page .packet__list { padding-left: 20px; }
.packet-page .packet__recheck { color: var(--warn); }
/* The measured promise behind the confidence, opened on a tap (and for printing). */
.packet-page .packet__info { display: inline; }
.packet-page .packet__info > summary { display: inline; cursor: pointer; color: var(--accent); list-style: none; }
.packet-page .packet__info > summary::-webkit-details-marker { display: none; }
.packet-page .packet__info[open] > span { display: block; margin-top: 2px; color: var(--muted); }
/* The path in the schedule as an indented tree, chapter first. */
.packet-page .packet__tree { list-style: none; padding-left: 0; margin: 4px 0; }
.packet-page .packet__tree li { padding: 1px 0; }
.packet-page .packet__tree li[data-depth="1"] { padding-left: 16px; }
.packet-page .packet__tree li[data-depth="2"] { padding-left: 32px; }
.packet-page .packet__tree li[data-depth="3"] { padding-left: 48px; }
.packet-page .packet__tree li[data-depth="4"] { padding-left: 64px; }
.packet-page .packet__tree li[data-depth="5"] { padding-left: 80px; }
.packet-page .packet__tree li[data-depth="6"] { padding-left: 96px; }
.packet-page .packet__rulings li { margin-bottom: 4px; }
.packet-page .packet__facts { padding-left: 20px; }
.packet-page .packet__facts p { margin: 2px 0; }
.packet-page .packet__exclusion { margin-top: 8px; padding-left: 8px; border-left: 2px solid var(--line-strong); }
.packet-page .packet__effect { color: var(--warn); }
.packet-page table { width: 100%; border-collapse: collapse; font-size: 12px; }
.packet-page th, .packet-page td { text-align: left; vertical-align: top; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.packet-page th { border-bottom-color: #86868B; }
.packet-page tr { break-inside: avoid; }
.packet-page .packet__nowrap { white-space: nowrap; overflow-wrap: normal; }
.packet-page .packet__declaratory td { background: var(--shade); }
.packet-page [data-ledger="verified"] { color: var(--good); }
.packet-page [data-ledger="broken"] { color: var(--bad); font-weight: 600; }
.packet-page .packet__limits { margin-top: 24px; }
.packet-page .packet__limits > summary { cursor: pointer; font-weight: 600; }
.packet-page .packet__boundary { margin-top: 16px; color: var(--muted); }
.packet-page .packet__foot { margin-top: 24px; padding-top: 8px; border-top: 1px solid var(--line-strong); font-size: 11px; color: var(--muted); }
.packet-page .packet__foot p { margin: 2px 0; }
/* A phone: each duty row as label and value, stacked. */
@media (max-width: 400px) {
  .packet-page .packet { padding: 16px 16px 32px; }
  .packet-page .packet__duty thead { display: none; }
  .packet-page .packet__duty tr { display: block; padding: 6px 0; border-bottom: 1px solid var(--line); }
  .packet-page .packet__duty td { display: flex; justify-content: space-between; gap: 12px; padding: 1px 0; border: 0; }
  .packet-page .packet__duty td::before { content: attr(data-label); color: var(--muted); }
}
@media print {
  .packet-page { background: #fff; }
  .packet-page a { color: var(--ink); }
  .packet-page .no-print { display: none !important; }
  .packet-page .print-only { display: inline; }
  .packet-page .packet { padding: 0; max-width: none; }
  .packet-page h2 { break-after: avoid; }
  @page { margin: 16mm 14mm; }
}

/* pages.css */
/* Direction D, the other screens: Saved products, Import, SAP connection, Compare countries, tariff change alerts, the
   tariff profile, abbreviations, members, the tools under More tools (overview, tariff impact, change impact), tariff
   measures and documents to read, demo reset, sign-in and errors. The page frame, headings, buttons, fields, badges,
   cards and tables are the shared components (components.css); this file only lays out each screen. */

/* ------------------------------------------------------------------ tool and account pages (the earlier layout) */

.pane, .pane--full, .tool-page { display: flex; flex-direction: column; gap: var(--space-6); min-width: 0; }
.pane--full > *, .tool-page > * { margin-top: 0; margin-bottom: 0; }
.fx-page--tool > h1:first-child, .fx-page--tool h1 { margin-bottom: var(--space-3); }
.fx-page--tool > h2, .tool-page > h2 { margin: var(--space-6) 0 var(--space-3); font-size: var(--text-h2); }
.card h2, .card h3 { margin: 0; }
.fx-page--tool > p, .fx-page--tool > ul { max-width: 80ch; }
.tool-page__head { display: flex; flex-direction: column; gap: var(--space-3); }
.tool-page__head > * { margin: 0; }
.tool-page__head .small, .impact__intro { max-width: 76ch; font-size: var(--text-body); color: var(--ink-soft); }
.tool-page__flash { font-size: var(--text-label); }
.inline-form { display: inline-flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; margin: 0; }
.inline-form input[type="text"] { min-height: 44px; padding: 0 var(--space-3); border: 1px solid var(--line-strong); border-radius: var(--radius-control); background: var(--surface); }
.print-header { display: none; }
.fx-page--tool h1:has(+ .card) { margin-bottom: 0; }

/* ------------------------------------------------------------------ Saved products */

.fx-search { display: flex; gap: var(--space-2); align-items: center; margin: 0; flex-wrap: wrap; }
.fx-search__input { max-width: 460px; flex: 1 1 240px; }

/* ------------------------------------------------------------------ PLAN-2 T: the Products tab, a list beside the answer card

   The list is sticky under the top bar and scrolls on its own; the card's pane is a size container, so the answer card
   lays itself out for the pane's width (its rules for narrower screens apply when the pane is narrow, whatever the
   window). At 900 px and below the list and the card are two screens ("‹ Products" leads back). */

.pl { display: grid; grid-template-columns: calc(var(--gutter) + 316px) minmax(0, 1fr); align-items: start; min-height: calc(100vh - var(--topbar-height)); }
.pl__side {
  position: sticky; top: var(--topbar-height); height: calc(100vh - var(--topbar-height)); display: flex; flex-direction: column; min-width: 0;
  border-right: 1px solid var(--line); background: var(--bg);
}
.pl__head { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6) var(--space-4) var(--space-4) var(--gutter); border-bottom: 1px solid var(--line); }
.pl__title { margin: 0; font-size: var(--text-h2); font-weight: 600; letter-spacing: -0.02em; }
/* PLAN-2 T (Answer merged into Products): "+ New", primary and compact, beside the list's title */
.pl__top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.pl__new { gap: 6px; padding: 0 16px; }
.pl__search { display: flex; flex-direction: column; gap: var(--space-3); margin: 0; }
.pl__input { width: 100%; }
.pl__listframe { display: block; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: var(--space-2) var(--space-2) var(--space-6) calc(var(--gutter) - var(--space-3)); }
.pl__empty, .pl__more { padding: var(--space-4) var(--space-3); color: var(--muted); font-size: var(--text-label); }
.pl__empty p, .pl__more { margin: 0 0 var(--space-2); }
.pl-back { display: none; margin: 0; }
.ob-new { display: flex; flex-direction: column; gap: var(--space-2); }
.pl-back__link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: var(--text-label); font-weight: 600; color: var(--ink); text-decoration: none; }
.ob-back { margin: 0; }

@media (max-width: 1100px) {
  .pl { grid-template-columns: calc(var(--gutter) + 296px) minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .pl { display: block; min-height: 0; }
  .pl__side { position: static; height: auto; border-right: 0; }
  .pl__head { padding: var(--space-6) var(--gutter) var(--space-4); }
  .pl__listframe { overflow: visible; padding: var(--space-2) calc(var(--gutter) - var(--space-3)) var(--space-10); }
  .pl-back { display: block; }
}
@media print {
  .pl { display: block; }
  .pl__side { display: none !important; }
}

/* ------------------------------------------------------------------ Changes: one header on Current and History (the
   title, the Current | History switch, the Ask chip inline, the tariff data line under it) */

.changes-intro { margin: 0; max-width: 64ch; color: var(--ink-soft); }

/* ------------------------------------------------------------------ Import a spreadsheet */

.im-lede, .sap-lede { margin: 0; font-size: var(--text-body-l); color: var(--ink-soft); line-height: 1.45; max-width: 64ch; }
/* PLAN-2 V: four steps (1 Get the template, 2 Upload or paste, 3 Check the columns, 4 Results); the steps on this page are
   ink, the steps before it are done (a check), the later ones muted. Two per row on a phone. */
.im-steps { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); counter-reset: none; }
.im-step { display: flex; align-items: center; gap: var(--space-3); min-height: 52px; padding: var(--space-2) var(--space-4) var(--space-2) var(--space-2);
  border-radius: var(--radius-pill); background: var(--surface-muted); color: var(--muted); font-size: var(--text-label); font-weight: 500; line-height: 1.25; }
.im-step__n { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 999px;
  border: 1px solid var(--control-border); background: var(--bg); color: var(--ink-soft); font-weight: 600; font-variant-numeric: tabular-nums; }
.im-step--here { background: var(--ink); color: var(--bg); font-weight: 600; }
.im-step--here .im-step__n { border-color: var(--bg); background: var(--bg); color: var(--ink); }
.im-step--done { color: var(--ink-soft); }
.im-step--done .im-step__n { border-color: var(--good); background: var(--good-bg); color: var(--good); }
@media (max-width: 720px) { .im-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .im-step { min-height: 48px; } }

/* the steps on /import: a numbered heading each, divided by a rule */
.im-step-section { display: flex; flex-direction: column; gap: var(--space-4); padding-top: var(--space-8); border-top: 1px solid var(--line); scroll-margin-top: calc(72px + var(--space-6)); }
.im-step-section__title { margin: 0; display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-h2); font-weight: 600; letter-spacing: -0.02em; }
.im-step-section__n { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-size: var(--text-body); font-weight: 700; }
.im-step-section__lede { margin: 0; max-width: 68ch; color: var(--ink-soft); line-height: 1.55; }
.im-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-5); align-items: stretch; }
.im-paste { display: flex; flex-direction: column; gap: var(--space-2); margin: 0; }
.im-paste__label { font-size: var(--text-body-l); font-weight: 600; color: var(--ink); }
.im-paste__area { flex: 1 1 auto; min-height: 150px; width: 100%; font-family: var(--font-mono); font-size: var(--text-label); line-height: 1.5; resize: vertical; }
.im-paste .im-actions { margin-top: var(--space-1); }
.im-sample__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); margin-top: auto; }
.im-sample__actions a { font-size: var(--text-label); }
.im-sample h3 { margin: 0; font-size: var(--text-body); font-weight: 600; letter-spacing: 0; }
.im-sample p { margin: 0; color: var(--ink-soft); font-size: var(--text-label); }
.im-sapline { margin: 0; padding-top: var(--space-6); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--text-label); scroll-margin-top: calc(72px + var(--space-6)); }
@media (max-width: 900px) { .im-two { grid-template-columns: minmax(0, 1fr); } }
.im-panel p { margin: 0; color: var(--ink-soft); line-height: 1.55; }
.im-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-2); text-align: center;
  min-height: 180px; padding: var(--space-6); border: 2px dashed var(--line-strong); border-radius: var(--radius-row); background: var(--surface-muted);
  transition: opacity var(--motion) var(--ease);
}
.im-drop--over { border-color: var(--accent); background: var(--accent-soft); }
.im-drop__title { margin: 0; font-size: var(--text-body-l); font-weight: 600; color: var(--ink); }
.im-drop__file { margin: 0; font-size: var(--text-label); color: var(--ink-soft); font-family: var(--font-mono); overflow-wrap: anywhere; }
.im-drop input[type="file"] { max-width: 100%; font-size: var(--text-label); }
.im-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; }
.im-actions form { margin: 0; }
.im-table-wrap { overflow-x: auto; max-width: 100%; }
.im-table { width: 100%; border-collapse: collapse; font-size: var(--text-label); }
.im-table caption { text-align: left; padding: 0 0 var(--space-3); font-size: var(--text-small); color: var(--muted); caption-side: top; }
.im-table th, .im-table td { padding: var(--space-3); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.im-table th:first-child, .im-table td:first-child { padding-left: 0; }
.im-table th:last-child, .im-table td:last-child { padding-right: 0; }
.im-table thead th { font-size: var(--text-label); color: var(--muted); font-weight: 500; border-bottom-color: var(--line-strong); }
.im-table tbody th { font-weight: 500; }
.im-table td.im-num, .im-table th.im-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.im-table .mono { white-space: nowrap; }
.im-table input[type="checkbox"] { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.im-check { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin: -12px; }
.im-map-field { font-weight: 600; }
.im-filter { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: center; }
.im-filter > a:not(.fx-btn) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-4); border: 1px solid var(--line-strong); border-radius: var(--radius-pill); color: var(--ink-soft); text-decoration: none; font-size: var(--text-label); font-weight: 500; }
.im-filter > a[aria-current="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.im-filter .ob-actions__spacer { flex: 1 1 auto; }
.im-progress progress { width: 100%; height: 10px; accent-color: var(--accent); }

.im-head { display: flex; flex-direction: column; gap: var(--space-3); }
.im-panel__title { margin: 0; font-size: var(--text-body-l); font-weight: 600; letter-spacing: -0.01em; }

/* ------------------------------------------------------------------ SAP connection (PLAN-2 V: its own page, /import/sap) */

.sap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
@media (max-width: 720px) { .sap-grid { grid-template-columns: minmax(0, 1fr); } }

.sap-panel ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--ink-soft); }
.sap-panel p { margin: 0; color: var(--ink-soft); }
.sap-placeholder { font-family: var(--font-mono); background: var(--warn-bg); color: var(--warn); border-radius: 6px; padding: 1px 6px; }
.sap-talk { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); border-radius: var(--radius-card); }
.sap-talk .im-panel__title { color: var(--ink); }
.sap-talk__note { color: var(--muted); }

/* ------------------------------------------------------------------ Compare countries (the chart layers are tokens) */

.fx-cmp { display: flex; flex-direction: column; gap: var(--space-6); }
.fx-cmp p, .fx-cmp li { max-width: none; }
.fx-cmp__back { margin: 0; font-size: var(--text-label); }
.fx-cmp__head { display: flex; flex-direction: column; gap: var(--space-3); }
.fx-cmp__context { margin: 0; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 0 var(--space-2); }
.fx-cmp__context > span:not(:last-child)::after { content: "·" / ""; margin-left: var(--space-2); color: var(--muted); }
.fx-cmp__key { display: flex; align-items: center; gap: var(--space-6); padding: var(--space-6) var(--space-8); border-radius: var(--radius-card); } /* a dark card */
.fx-cmp__key-amount { margin: 0; font-size: var(--text-h1); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--good); white-space: nowrap; font-family: var(--font-sans); }
.fx-cmp__key-text { margin: 0; font-size: var(--text-body); line-height: 1.45; color: var(--ink-soft); }
.fx-cmp__table { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); }
.fx-cmp__rows { list-style: none; margin: 0; padding: 0; }
.fx-cmp__row { display: grid; grid-template-columns: 200px minmax(0, 1fr) 120px 90px; gap: var(--space-5); align-items: center; padding: var(--space-4) var(--space-6); border-bottom: 1px solid var(--line); }
.fx-cmp__row--head { padding: var(--space-3) var(--space-6); border-bottom-color: var(--line-strong); font-size: var(--text-label); font-weight: 500; color: var(--muted); }
.fx-cmp__row--reference { background: var(--accent-soft); }
.fx-cmp__who { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fx-cmp__name { margin: 0; font-weight: 600; line-height: 1.3; }
.fx-cmp__this { font-size: var(--text-small); font-weight: 500; color: var(--accent-strong); white-space: nowrap; }
.fx-cmp__note { margin: 0; font-size: var(--text-small); line-height: 1.35; color: var(--muted); }
.fx-cmp__num { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.fx-cmp__total { font-weight: 600; }
.fx-cmp__rate { font-size: var(--text-label); color: var(--ink-soft); }
.fx-cmp__bar { display: flex; gap: 3px; height: 12px; border-radius: var(--radius-pill); overflow: hidden; background: var(--surface-muted); }
.fx-cmp__seg { display: block; height: 100%; min-width: 3px; flex: none; }
.fx-cmp__seg--general { background: var(--layer-general); }
.fx-cmp__seg--section_232 { background: var(--layer-232); }
.fx-cmp__seg--section_301 { background: var(--layer-301); }
.fx-cmp__seg--other { background: var(--layer-other); }
.fx-cmp__blocker { grid-column: 2 / -1; margin: 0; padding: var(--space-2) var(--space-3); border-radius: var(--radius-control); background: var(--warn-bg); font-size: var(--text-label); line-height: 1.45; color: var(--ink); }
.fx-cmp__foot { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space-3) var(--space-5); padding: var(--space-4) var(--space-6); font-size: var(--text-small); color: var(--ink-soft); }
.fx-cmp__legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); align-items: center; flex: 1 1 auto; min-height: 44px; }
.fx-cmp__legend li { display: inline-flex; align-items: center; gap: 6px; }
.fx-cmp__swatch { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.fx-cmp__add { margin-left: auto; }
.fx-cmp__add[open] { flex-basis: 100%; }
.fx-cmp__add[open] > summary { margin-left: auto; width: max-content; }
.fx-cmp__add-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-3); margin-top: var(--space-3); }
.fx-cmp__add-form .fx-field { margin: 0; flex: 1 1 260px; }
.fx-cmp__footnote { margin: 0; font-size: var(--text-small); color: var(--muted); line-height: 1.5; }

/* ------------------------------------------------------------------ tariff change alerts (product note, list, detail) */

.tca-inline { display: inline-flex; margin: 0; }
.tca-note { display: flex; gap: var(--space-2); align-items: baseline; margin: 0; font-size: var(--text-label); overflow-wrap: anywhere; }
.tca-note__mark { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transform: translateY(-1px); }
.tca-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
/* the tariff change page: the title, its seen/dismiss actions and the Ask chip on one row; the figures, then the
   exceptions at the same weight and the assumed-value warning */
.tca-head, .impact-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.tca-head .fx-title, .impact-head h1 { margin: 0; flex: 0 1 auto; min-width: 0; overflow-wrap: anywhere; }
.tca-head .ws-ai-actions, .impact-head .ws-ai-actions { align-items: center; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.tca-head .ws-ai-actions__label, .impact-head .ws-ai-actions__label { width: auto; }
.tca-summary { display: grid; gap: 4px; }
.tca-lede strong { color: var(--ink); font-weight: 600; }
.tca-exceptions, .tca-assumed { margin: 0; overflow-wrap: anywhere; }
.tca-exceptions { color: var(--ink-soft); }
.tca-assumed { color: var(--warn); font-weight: 600; }
.change-card .tca-figures strong { color: var(--ink); font-weight: 600; }
.change-card .tca-assumed { margin-top: 4px; color: var(--warn); font-size: var(--text-label); }
.changes-page .change-card__meta > .fx-state--accent { min-height: 0; padding: 1px 8px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent-strong); }
/* a change card's tags (Needs a reviewer, its status, Historical record), its code and approval state, its next step */
.change-card .change-card__meta > span.fx-state { min-height: 0; padding: 1px 8px; border-radius: var(--radius-pill); font-weight: 600; }
.change-card .change-card__meta > span.fx-state--review { background: var(--warn-bg); color: var(--warn); }
.change-card .change-card__meta > span.fx-state--grey { background: var(--surface-muted); color: var(--muted); }
.change-card__code { margin-left: 6px; color: var(--ink-soft); font-size: var(--text-small); white-space: nowrap; }
.change-card__body > .change-card__step { margin-top: 8px; font-size: var(--text-label); font-weight: 600; color: var(--ink); max-width: 85ch; }
.change-card__body > .change-card__line { margin-top: 6px; color: var(--ink-soft); overflow-wrap: anywhere; }
.change-card__records li { overflow-wrap: anywhere; }
/* a change's page: its status and who set it, with a reviewer's Resolve and "Doesn't apply" (a reason required) */
.impact-status { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.impact-status .row-more { position: static; }
.impact-status > p { margin: 0; overflow-wrap: anywhere; }
.impact-status__actions { display: flex; align-items: center; gap: 8px; }
.impact-status .row-more__list.impact-dismiss { left: 0; right: auto; display: grid; gap: 8px; width: min(320px, calc(100vw - 32px)); min-width: 0; padding: 12px; }
.impact-dismiss form { display: grid; gap: 8px; margin: 0; }
.impact-dismiss label { font-size: var(--text-label); font-weight: 600; color: var(--ink); }
.impact__more, .impact__history { margin-top: var(--space-4); }
.impact__more > summary, .impact__history > summary { cursor: pointer; }
.impact__more p { margin: 6px 0 0; overflow-wrap: anywhere; }
.impact__history ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.tca-value { display: block; margin-top: 2px; }
.tca-value.fx-state { display: inline-flex; min-height: 0; padding: 1px 8px; white-space: normal; }
.tca-tag { min-height: 0; padding: 2px 10px; white-space: normal; text-decoration: none; }
.tca-h2 { margin: 0; }
.tca-items { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.tca-item { padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-row); min-width: 0; }
.tca-item__head { display: flex; flex-wrap: wrap; gap: 4px var(--space-3); align-items: baseline; }
.tca-item__name { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.tca-item__meta { font-size: var(--text-small); color: var(--ink-soft); overflow-wrap: anywhere; }
.tca-item__figures { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-8); margin: var(--space-3) 0 0; }
.tca-item__figures > div { min-width: 0; flex: 0 1 auto; max-width: 100%; }
.tca-item__figures dt { font-size: var(--text-small); color: var(--muted); }
.tca-item__figures dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.tca-item__why { flex-basis: 100% !important; }
.tca-before { color: var(--ink-soft); }
.tca-after, .tca-delta { font-weight: 600; font-variant-numeric: tabular-nums; }
.tca-item__actions { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); align-items: center; margin-top: var(--space-3); }
.tca-source ul { margin: 6px 0 0; padding-left: 18px; }
.tca-source p, .tca-source li { overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ tariff profile and abbreviations */

.fx-profile__form { display: grid; gap: var(--space-4); margin: 0; }
.fx-profile__setting { margin: 0; padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-row); min-width: 0; }
.fx-profile__label { float: left; width: 100%; padding: 0; font-weight: 600; font-size: var(--text-body); }
.fx-profile__label + * { clear: both; }
.fx-profile__hint { margin: 4px 0 var(--space-3); max-width: 70ch; }
.fx-profile__options { display: grid; gap: 4px; }
.fx-profile__option { display: flex; gap: var(--space-3); align-items: center; min-height: 40px; cursor: pointer; }
.fx-profile__option input { flex: none; width: 18px; height: 18px; accent-color: var(--accent); }
.fx-profile__option--unset { color: var(--ink-soft); }
.fx-profile__who { margin: var(--space-2) 0 0; }
.fx-profile__why { margin: var(--space-2) 0 0; font-size: var(--text-label); }
.fx-profile__why summary { cursor: pointer; color: var(--ink-soft); }
.fx-profile__why p { margin: 4px 0 0; max-width: 70ch; }
.fx-profile__lines { display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.fx-profile__lines > li { padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
.fx-profile__line { margin: 0; }
.fx-profile__actions, .fx-glossary__actions { display: flex; gap: var(--space-2); }
.fx-profile__history summary, .fx-glossary__history summary { cursor: pointer; font-weight: 600; display: list-item; padding: 11px 0; }
.fx-glossary__form-wrap { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-card); }
.fx-glossary__form-wrap > * { margin: 0; }
.fx-glossary__add > summary { list-style: none; width: fit-content; }
.fx-glossary__add > summary::-webkit-details-marker { display: none; }
.fx-glossary__add[open] > summary { margin-bottom: var(--space-3); }
.fx-glossary__filter .fx-input { max-width: 360px; }
.fx-glossary__form { display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr); }
.fx-glossary__section { display: flex; flex-direction: column; gap: var(--space-3); margin: 0; }
.fx-glossary__table-wrap { overflow-x: auto; }
.fx-glossary__table { width: 100%; border-collapse: collapse; font-size: var(--text-label); }
.fx-glossary__table th { text-align: left; font-weight: 500; padding: var(--space-3); border-bottom: 1px solid var(--line-strong); color: var(--muted); }
.fx-glossary__table td { padding: var(--space-3); border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.fx-glossary__table th:first-child, .fx-glossary__table td:first-child { padding-left: 0; }
.fx-glossary__note { display: block; margin: 2px 0 0; }
.fx-glossary__row-actions { white-space: nowrap; text-align: right; }
.fx-glossary__row-actions > * { vertical-align: middle; }
.fx-glossary__inline { display: inline-flex; }
.fx-glossary__log { margin: var(--space-3) 0 0; padding-left: 20px; font-size: var(--text-label); }
.fx-glossary__log li { margin: 0 0 6px; }

/* ------------------------------------------------------------------ members, sign-in and the auth card */

.auth-main { display: flex; justify-content: center; padding: var(--space-16) var(--gutter); }
.auth-card { width: min(440px, 100%); display: flex; flex-direction: column; gap: var(--space-4); }
.auth-card:has(table, h2) { width: min(var(--reading), 100%); }
.auth-card > * { margin: 0; }
.auth-card h1 { font-size: var(--text-h1); }
.auth-form { display: grid; gap: var(--space-4); margin-top: var(--space-2); max-width: 520px; }
.auth-form__field { display: grid; gap: 6px; font-size: var(--text-label); font-weight: 500; }
.auth-list { list-style: none; padding: 0; display: grid; gap: var(--space-2); }
.auth-list__choice { width: 100%; justify-content: flex-start; }
.auth-list__choice[aria-current] { border-color: var(--accent); }
.auth-table { width: 100%; border-collapse: collapse; font-size: var(--text-label); }
.auth-table td, .auth-table th { padding: var(--space-3); text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.auth-table th { color: var(--muted); font-weight: 500; border-bottom-color: var(--line-strong); }
.auth-table th:first-child, .auth-table td:first-child { padding-left: 0; }
.auth-table form { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; margin: 0; }
.auth-table .fx-input { width: auto; min-width: 140px; }
.auth-card__notice { margin: 0; }
.fx-page--tool > code, .auth-card__notice code { overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ More tools, overview */

.fx-tools { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.fx-tools li { display: grid; gap: 4px; padding: var(--space-5) 0; border-bottom: 1px solid var(--line); }
.fx-tools a { font-weight: 600; font-size: var(--text-body-l); text-decoration: none; }
.fx-tools a::after { content: " →" / ""; }
.fx-tools span { color: var(--muted); font-size: var(--text-label); }
.fx-gallery__item { margin: 0 0 var(--space-10); }
.fx-gallery__name { margin: 0 0 var(--space-2); color: var(--muted); font-size: var(--text-small); }

.overview { max-width: var(--reading); }
.overview__section { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6) 0; border-top: 1px solid var(--line); break-inside: avoid; }
.overview__section > * { margin: 0; }
.overview__section h2 { font-size: var(--text-h2); }
.overview__headline { font-size: var(--text-body-l); }
.overview__money { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.overview__headline .overview__money { display: block; font-size: var(--text-h1); letter-spacing: -0.04em; line-height: 1.1; }
.overview__num { font-weight: 600; }
.overview__reasons, .overview__list, .overview__risks { margin: 0; padding-left: var(--space-6); }
.overview__reasons li, .overview__list li, .overview__risks li { margin: 4px 0; }
.overview__risks li::marker { color: var(--warn); }
.overview__empty { font-size: var(--text-body-l); padding: var(--space-6) 0; }
.overview__table { border-collapse: collapse; width: 100%; font-size: var(--text-label); }
.overview__table th, .overview__table td { text-align: left; padding: var(--space-3) var(--space-3) var(--space-3) 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.overview__table thead th { font-weight: 500; color: var(--muted); }
.overview__table tbody th { font-weight: 500; }
.overview__n { text-align: right !important; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ Tariff impact and change impact */

.impact__search { margin: 0; }
.impact__search .fx-search__input { max-width: 460px; }
/* the five figures: a dark card (.fx-card--dark) */
.impact-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-5); margin: var(--space-5) 0; padding: var(--space-6) var(--space-8); border-radius: var(--radius-card); }
.impact-figure__label { margin: 0; color: var(--muted); font-size: var(--text-label); font-weight: 500; }
.impact-figure__value { margin: 4px 0 0; font-size: var(--text-h2); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.impact-figure__link { color: var(--ink); }
.impact-figure--total { grid-column: span 2; }
.impact-figure--total .impact-figure__value { display: flex; align-items: baseline; gap: var(--space-2); white-space: nowrap; font-size: var(--text-h1); letter-spacing: -0.04em; }
.impact-figure__note { margin: 2px 0 0; line-height: 1.45; }
.impact-table td { vertical-align: middle; }
.impact-row__desc { min-width: 200px; }
.impact-row__link { font-weight: 600; }
.impact-row__by { display: block; margin-top: 2px; }
.impact-row--warn td:first-child { box-shadow: inset 3px 0 0 var(--warn); padding-left: var(--space-3) !important; }
.impact-row__action { white-space: nowrap; }
/* a status chip is a sentence ("Can't estimate yet — a tariff measure hasn't been checked"): it wraps rather than
   push the next step out of the card, or off the printed page */
.impact-row__state .duty-state { white-space: normal; }
.impact__filter, .impact__filters { margin: 0; line-height: 2; font-size: var(--text-label); }
.impact__filters a[aria-current="true"] { font-weight: 700; color: var(--ink); }
.impact__actions { display: flex; flex-direction: column; gap: var(--space-3); }
.impact__technical summary { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; }

/* ------------------------------------------------------------------ tariff data upkeep (maintainers) */

.tariff-data__summary { margin: var(--space-2) 0 0; font-weight: 600; }

.tariff-data__list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.tariff-data__measure-head { display: flex; gap: var(--space-2); align-items: baseline; flex-wrap: wrap; margin: 0; }
.tariff-data__heading-text { max-height: 9em; overflow: auto; }
.tariff-data__form { display: grid; gap: var(--space-4); max-width: 760px; }
.tariff-data__decision { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; }
.tariff-data__grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.tariff-data__field { display: grid; gap: 6px; align-content: start; }
.tariff-data__choice { display: flex; gap: var(--space-2); align-items: center; min-height: 40px; }
/* "If not in force, how" applies only to that answer: hidden until it is chosen, without JavaScript; a browser
   without :has() keeps showing it */
@supports selector(:has(*)) {
  .tariff-data__decision:not(:has(input[value="not_in_force"]:checked)) .tariff-data__status { display: none; }
}
.tariff-data__documents { display: grid; gap: var(--space-3); }
.tariff-data__documents h2 { margin: 0; }
.tariff-data__stale { color: var(--warn); background: var(--warn-bg); border-radius: var(--radius-control); padding: var(--space-2) var(--space-3); }
.tariff-data__doc-form { margin-top: var(--space-2); border-top: 1px solid var(--line); padding-top: var(--space-3); }
.tariff-data__caps { display: grid; gap: 6px; padding-left: 18px; }
.tariff-data__inline-form { display: inline-flex; margin-left: 6px; }
/* a dotted summary that opens inline: "Checked 2 h ago: …" to the exact time with its zone, a draft's model */
.tariff-data__checked { display: inline-block; margin: 0; }
.tariff-data__checked > summary { display: inline; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.tariff-data__checked > summary::-webkit-details-marker { display: none; }
.tariff-data__checked > span { margin-left: 8px; color: var(--muted); }
/* a held revision's items: one compact row each (lead, text fold, choices on one line, note folded), one submit */
.tariff-data__hold-form { display: grid; gap: var(--space-3); }
.tariff-data__hold-form > p { margin: 0; }
.tariff-data__hold-row { display: grid; gap: 2px; padding-top: var(--space-2); border-top: 1px solid var(--line); }
.tariff-data__hold-row > p { margin: 0; }
.tariff-data__hold-choices { display: flex; flex-wrap: wrap; column-gap: var(--space-5); border: 0; padding: 0; margin: 0; font-size: var(--text-small); }
/* an AI draft's two equal buttons; "Record a different reading" opens the maintainer's form below them */
.tariff-data__draft-actions { margin-top: var(--space-2); }
.tariff-data__approve { display: inline-block; margin: 0 var(--space-2) var(--space-2) 0; }
.tariff-data__reading { display: inline; }
.tariff-data__details summary { cursor: pointer; }
.card--warn { background: var(--warn-bg); border-color: transparent; }

/* ------------------------------------------------------------------ demo reset and errors */

.demo-reset { display: flex; flex-direction: column; gap: var(--space-4); max-width: 680px; }
.demo-reset__card { display: flex; flex-direction: column; gap: var(--space-4); align-items: flex-start; }
.demo-reset__card > * { margin: 0; }
.demo-reset__counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); width: 100%; margin: 0; padding: var(--space-5) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.demo-reset__counts dt { color: var(--muted); font-size: var(--text-small); }
.demo-reset__counts dd { margin: 4px 0 0; font-size: var(--text-h2); font-weight: 700; }
.demo-reset__consequence { color: var(--ink-soft); }
.demo-reset__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.demo-reset__error { padding: var(--space-3) var(--space-4); border-radius: var(--radius-row); background: var(--bad-bg); color: var(--bad); font-size: var(--text-label); }
.error-page { display: flex; flex-direction: column; gap: var(--space-4); max-width: 40rem; padding: var(--space-10) 0; }
.error-page > * { margin: 0; }
.error-page__actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }

@media (max-width: 720px) {
  .im-table--cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .im-table--cards, .im-table--cards tbody, .im-table--cards tr, .im-table--cards td, .im-table--cards th { display: block; width: 100%; }
  .im-table--cards caption { display: block; }
  .im-table--cards tr { border-top: 1px solid var(--line); padding: var(--space-2) 0; }
  .im-table--cards td, .im-table--cards th { border: 0; padding: 4px 0 !important; text-align: left; }
  .im-table--cards td.im-num { text-align: left; }
  .im-table--cards td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: var(--text-small); font-family: var(--font-sans); letter-spacing: 0; }
  .im-table--cards td.im-empty { display: none; }
  .im-table--cards .mono { white-space: normal; overflow-wrap: anywhere; }
  .im-check { margin: -8px 0; }
  .fx-cmp__row { grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px var(--space-3); padding: var(--space-3) var(--space-4); }
  .fx-cmp__row--head { display: none; }
  .fx-cmp__who { grid-column: 1; grid-row: 1; }
  .fx-cmp__total { grid-column: 2; grid-row: 1; }
  .fx-cmp__rate { grid-column: 3; grid-row: 1; }
  .fx-cmp__bar, .fx-cmp__blocker { grid-column: 1 / -1; grid-row: 2; }
  .fx-cmp__key { flex-direction: column; align-items: flex-start; gap: var(--space-2); padding: var(--space-5); }
  .fx-cmp__foot { padding: var(--space-3) var(--space-4); }
  .fx-cmp__add { margin-left: 0; width: 100%; }
  .fx-cmp__add > summary, .fx-cmp__add-form .fx-btn { width: 100%; }
  .fx-glossary__table thead { display: none; }
  .fx-glossary__table tr { display: grid; grid-template-columns: auto 1fr; gap: 2px var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
  .fx-glossary__table td { border: 0; padding: 0; }
  .fx-glossary__row-actions { grid-column: 1 / -1; text-align: left; }
  .fx-glossary__form-wrap { padding: var(--space-5); }
  .auth-table, .auth-table tbody, .auth-table tr, .auth-table td { display: block; width: 100%; }
  .auth-table thead { display: none; }
  .auth-table tr { padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
  .auth-table td { border: 0; padding: 4px 0; }
  .impact-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: var(--space-5); }
  .impact-figure--total { grid-column: 1 / -1; }
  .demo-reset__counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-main { padding: var(--space-10) var(--gutter); }
}

@media print {
  .print-header { display: block; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid #000; }
  .print-header__brand { font-weight: 700; font-size: 14px; }
  .print-header__meta { font-size: 10px; color: #444; margin-top: 3px; }
  .fx-cmp__seg { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .overview { max-width: none; }
  .impact-table { font-size: 10.5px; }
  .impact-row__by { font-size: 9px; }
}

/* ------------------------------------------------------------------ W-ACC (PLAN-2 P): How accurate is ClearPath?
   Three dark number cards (DESIGN-D revision: summary cards are dark), then light panels for the words and tables. */

.acc-head { display: flex; flex-direction: column; gap: var(--space-3); }
.acc-head > * { margin: 0; }
.acc-lede { font-size: var(--text-body-l); color: var(--ink-soft); line-height: 1.45; max-width: 64ch; }
.acc-meta { color: var(--muted); font-size: var(--text-label); font-weight: 500; }
.acc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: var(--space-4); }
.acc-card { border-radius: var(--radius-card); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.acc-card > * { margin: 0; }
.acc-card__label { color: var(--muted); font-size: var(--text-label); font-weight: 500; }
.acc-card__value { font-size: var(--text-h1); font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); }
.acc-card__of { font-size: var(--text-h2); font-weight: 600; letter-spacing: -0.02em; color: var(--ink-soft); }
.acc-card__note { color: var(--ink-soft); font-size: var(--text-small); line-height: 1.45; }
.acc-card__sub { color: var(--muted); font-size: var(--text-label); }
/* a rate on too few cases: a sentence under the cards, not a card; the confidence guardrail under them */
.acc-small { margin: 0; padding-left: 20px; display: grid; gap: 4px; color: var(--ink-soft); font-size: var(--text-small); line-height: 1.45; }
.acc-guardrail { margin: 0; color: var(--ink-soft); font-size: var(--text-small); line-height: 1.45; }
.acc-provenance .mono { overflow-wrap: anywhere; }
.acc-panel { display: flex; flex-direction: column; gap: var(--space-3); }
.acc-panel__title { margin: 0; font-size: var(--text-body-l); font-weight: 600; letter-spacing: -0.01em; }
.acc-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--ink-soft); }
.acc-note { margin: 0; color: var(--muted); font-size: var(--text-small); line-height: 1.45; }
.acc-note.mono { overflow-wrap: anywhere; }
.acc-table { margin: 0; }
.acc-how .fx-disclosure__body > * { margin: 0; }
.acc-how .acc-prose { display: grid; gap: 8px; margin-bottom: 20px; }
.acc-how .acc-prose > div { display: grid; gap: 8px; }
/* The learning loop's admin tables (accuracy/_learning) */
.acc-panel__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.acc-inline-form { display: inline-block; margin: 0; }
.acc-sub { display: block; color: var(--muted); font-size: var(--text-small); }
.acc-result { font-weight: 600; }
.acc-result--alert, .acc-result--failed, .acc-findings__alert { color: var(--warn); }
.acc-findings { font-size: var(--text-small); }
.acc-scroll { overflow-x: auto; margin: 0; }
/* tap-open help: a column header's meaning, who added a test case */
.acc-tap > summary { display: inline; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.acc-tap > summary::-webkit-details-marker { display: none; }
.acc-tap > span { display: block; max-width: 16rem; margin-top: 4px; white-space: normal; text-align: left; font-weight: 400; color: var(--muted); font-size: var(--text-small); }
.overview__n .acc-tap > span { margin-left: auto; text-align: right; }
/* a folded panel is its summary line alone (the flex gap kept a band under it) */
details.acc-panel:not([open]) { gap: 0; }
.acc-groups > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.acc-groups__unusual { font-weight: 500; font-size: var(--text-small); }
#weekly-check .acc-table, #corrections .acc-table { width: 100%; }
#weekly-check .acc-table th, #weekly-check .acc-table td { white-space: nowrap; }
#corrections .acc-table .fx-btn { white-space: nowrap; }
#corrections .acc-table td:nth-child(2) { min-width: 11rem; }
/* the HTS card's link to this page (workspace/_card_code) */
.ob-accuracy { color: var(--muted); font-size: var(--text-label); }
@media (max-width: 720px) {
  .acc-cards { grid-template-columns: minmax(0, 1fr); }
  .acc-table th, .acc-table td { padding-right: var(--space-2); }
  /* the weekly check's four columns fit a phone: no sideways scroll to the Result */
  #weekly-check .acc-table th, #weekly-check .acc-table td { white-space: normal; }
}
/* UX redesign: the unchecked measures grouped by programme, each group folded */
.tariff-data__programme { margin: 0 0 var(--space-3); }
.tariff-data__programme > summary { cursor: pointer; }
.tariff-data__programme .tariff-data__list { margin-top: var(--space-3); }
.tariff-data__programme .tariff-data__measure { padding: var(--space-3) 0; border-top: 1px solid var(--line); list-style: none; }
.tariff-data__rollback { margin-top: var(--space-2); }

/* A draft binding ruling request (RulingRequestDrafts) */
.rr-draft-banner { margin: 0 0 16px; padding: 10px 14px; border: 1px solid var(--line-strong); border-left: 4px solid #b00020; border-radius: var(--radius-card, 8px); }
.rr-draft { display: grid; gap: 18px; margin: 16px 0 24px; }
.rr-section h3 { margin: 0 0 6px; font-size: 1rem; }
.rr-section__body { width: 100%; font: inherit; line-height: 1.5; }
.rr-section__text p { margin: 0 0 8px; }

/* planning_changes.css */
/* Planning and change history share the product workspace's quieter visual rhythm. */
.planning-coverage-label { font-weight: 600; }
.planning-coverage { appearance: none; width: 100%; height: 6px; overflow: hidden; border: 0; border-radius: 9px; background: var(--line); }
.planning-coverage::-webkit-progress-bar { background: var(--line); border-radius: 9px; }
.planning-coverage::-webkit-progress-value { background: var(--good); border-radius: 9px; }
.planning-coverage::-moz-progress-bar { background: var(--good); border-radius: 9px; }
.planning-value-split { display: grid; gap: 10px; padding-top: 8px; }
.planning-value-split > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.planning-value-split dt { color: inherit; }
.planning-value-split dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--hero-ink); }
.planning-scenario-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-row); background: var(--surface-muted); }
.planning-scenario-totals > div { display: flex; flex-direction: column; gap: 8px; }
.planning-scenario-totals span { font-size: var(--text-label); color: var(--muted); }
.planning-scenario-totals strong { font-size: clamp(24px, 3vw, 36px); line-height: 1.1; letter-spacing: -.035em; }
.planning-scenario-totals__delta.is-lower strong { color: var(--good); }
.planning-scenario-totals__delta.is-higher strong { color: var(--warn); }
.planning-control-label { display: block; width: 100%; margin: 0 0 12px; font-size: var(--text-label); font-weight: 600; color: var(--ink); }
.planning-eligibility { border: 0; padding: 16px 0 0; margin: 0; }
.planning-scenario-detail > summary, .planning-method > summary { cursor: pointer; padding: 8px 0; font-size: var(--text-label); color: var(--ink-soft); }
.planning-scenario-detail .xp-plan__results { margin: 12px 0; }
.planning-portfolio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.planning-portfolio .xp-card { gap: 8px; }
.planning-portfolio strong { font-size: 36px; letter-spacing: -.04em; }
.overview-page { display: flex; flex-direction: column; gap: 28px; }
.change-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.change-heading .fx-title { margin-bottom: 8px; }
.change-heading .fx-lede { margin: 0; }
.change-section-head { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.change-section-head h2 { margin: 0; }
.change-filters { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 18px; }
.change-filter { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 13px; border: 1px solid transparent; border-radius: 8px; font-size: var(--text-label); text-decoration: none; color: var(--muted); }
.change-filter:hover { color: var(--ink); background: var(--surface-muted); }
.change-filter[aria-current=page] { background: var(--glass-raised, var(--surface)); color: var(--accent); border-color: var(--line); box-shadow: var(--shadow-input); font-weight: 600; }
.change-feed { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.change-card { display: flex; gap: 24px; justify-content: space-between; padding: 22px 24px; border: 1px solid var(--glass-border, var(--line)); border-radius: var(--radius-card); background: linear-gradient(110deg, color-mix(in srgb, var(--brand-blue-soft, var(--accent-soft)) 50%, var(--glass-surface, var(--surface))), var(--glass-surface, var(--surface)) 65%); box-shadow: var(--glass-shadow, var(--shadow-card)); backdrop-filter: blur(var(--glass-blur, 16px)); -webkit-backdrop-filter: blur(var(--glass-blur, 16px)); min-width: 0; }
.change-card__body { min-width: 0; flex: 1; }
.change-card__body > * { margin: 0; }
.change-card__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: var(--text-small); }
.change-card__meta > span { font-weight: 600; color: var(--brand-blue, var(--accent)); }
.change-card h3 { margin-top: 8px; font-size: 17px; line-height: 1.4; letter-spacing: -.015em; }
.change-card__title { color: var(--ink); text-decoration: none; }
.change-card__title:hover { text-decoration: underline; }
.change-card__product { margin-top: 8px; font-size: var(--text-label); }
.change-card__product > .mono { color: var(--muted); font-size: var(--text-small); margin-left: 6px; }
.change-card__reason { margin-top: 8px; color: var(--muted); font-size: var(--text-label); line-height: 1.5; max-width: 85ch; }
.change-card__side { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; flex-shrink: 0; gap: 12px; }
.change-card__delta { margin: 0; font-weight: 600; font-size: var(--text-label); }
.change-card__records { margin-top: 10px; font-size: var(--text-small); color: var(--muted); }
.change-card__records > summary { cursor: pointer; }
.change-card__records ul { padding-left: 18px; margin: 8px 0 0; display: grid; gap: 6px; }
.change-card--cost { border-left: 3px solid var(--brand-blue, var(--accent)); }
.change-empty { padding: 56px 24px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius-card); color: var(--muted); }
.change-empty h3 { color: var(--ink); margin: 12px 0 8px; font-size: 19px; }
.change-empty p { margin: 0; font-size: var(--text-label); }
.change-empty__icon { display: inline-grid; width: 40px; height: 40px; place-content: center; border-radius: 50%; background: var(--brand-teal-soft, var(--good-bg)); color: var(--brand-teal, var(--good)); }
.change-pagination { display: flex; justify-content: center; align-items: center; gap: 24px; padding: 24px 0; }
.change-detail-summary { margin: 24px 0; }
.change-before-after { display: flex; gap: 16px; align-items: center; }
.change-before-after > span:first-child { color: var(--muted); }
.fx-cmp .fx-cmp__row { grid-template-columns: 180px minmax(80px, 1fr) 104px 76px 115px; gap: 20px; }
.fx-cmp__delta { font-size: var(--text-label); font-weight: 600; }
.fx-cmp__delta--lower { color: var(--good); }
.fx-cmp__delta--higher { color: var(--warn); }
.fx-cmp__delta--same, .fx-cmp__delta--current { color: var(--muted); font-weight: 400; font-family: var(--font-sans); }
.compare-conditions { margin-top: 20px; }
.compare-conditions > ul { display: grid; gap: 16px; padding: 0; list-style: none; font-size: var(--text-label); }
.compare-conditions__amount { display: inline-block; margin-left: 14px; color: var(--good); font-weight: 600; }
@media (max-width: 850px) {
  .change-heading { flex-direction: column; gap: 12px; }
  .fx-cmp .fx-cmp__row { grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 12px; padding: 16px; }
  .fx-cmp .fx-cmp__row--head { display: none; }
  .fx-cmp__who { grid-column: 1 / -1; }
  .fx-cmp .fx-cmp__bar, .fx-cmp .fx-cmp__blocker { grid-column: 1 / -1; grid-row: 2; }
  .fx-cmp .fx-cmp__total { grid-column: 1; grid-row: 3; text-align: left; }
  .fx-cmp .fx-cmp__rate { grid-column: 2; grid-row: 3; }
  .fx-cmp .fx-cmp__delta { grid-column: 3; grid-row: 3; }
}
@media (max-width: 600px) {
  .planning-scenario-totals, .planning-portfolio { grid-template-columns: 1fr; }
  .planning-scenario-totals > div { flex-direction: row; justify-content: space-between; align-items: center; gap: 12px; }
  .planning-scenario-totals strong { font-size: 26px; white-space: nowrap; }
  .change-card { padding: 18px; gap: 18px; flex-direction: column; }
  .change-card__side { align-items: flex-start; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; }
}
/* A portfolio and decision workspace with explicit data scope. */
.planning-workspace { gap: 26px; }
.planning-scope-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.planning-scope { display: inline-flex; gap: 3px; padding: 4px; background: var(--surface-muted); border: 1px solid var(--line); border-radius: 11px; }
.planning-scope a { display: inline-flex; align-items: center; gap: 9px; padding: 9px 13px; color: var(--muted); font-size: var(--text-label); border-radius: 8px; text-decoration: none; }
.planning-scope a[aria-current=page] { background: var(--surface); color: var(--accent); box-shadow: var(--shadow-input); font-weight: 600; }
.planning-scope a span { font-size: 11px; background: var(--surface-muted); border-radius: 5px; padding: 2px 5px; }
.planning-tabs { display: flex; gap: 24px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.planning-tabs a { display: inline-flex; align-items: center; min-height: 42px; padding: 0 0 12px; color: var(--muted); font-size: var(--text-label); font-weight: 500; text-decoration: none; border-bottom: 2px solid transparent; }
.planning-tabs a[aria-current=page] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.planning-hero-note { color: var(--hero-soft); font-size: 12px; line-height: 1.5; max-width: 56ch; }
.planning-portfolio .xp-card strong { font-size: clamp(26px, 3vw, 36px); overflow-wrap: anywhere; }
.planning-empty { align-items: center; text-align: center; padding: 58px 24px; gap: 18px; }
.planning-empty .xp-muted { max-width: 56ch; }
.planning-empty__icon { display: grid; place-items: center; width: 50px; height: 50px; background: var(--surface-muted); color: var(--muted); font-size: 26px; border-radius: 15px; }
.planning-table-wrap { overflow-x: auto; }
.planning-cell-note { display: block; font: 11px/1.6 var(--font-sans); color: var(--muted); margin-top: 4px; }
.planning-gap-groups { display: grid; gap: 4px; }
.planning-gap-group { border-top: 1px solid var(--line); }
.planning-gap-group summary { cursor: pointer; padding: 18px 0; display: flex; justify-content: space-between; gap: 12px; font-size: var(--text-label); }
.planning-gap-group summary > span:last-child { color: var(--muted); white-space: nowrap; }
.planning-gap-group summary::before { content: "+"; color: var(--muted); flex: none; }
.planning-gap-group[open] summary::before { content: "−"; }
.planning-gap-group summary > span:first-of-type { flex: 1; }
.planning-gap-group ul { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 14px; }
.planning-gap-group li { display: flex; justify-content: space-between; gap: 14px; font-size: var(--text-label); }
.planning-caution { border-left: 3px solid var(--warn); padding: 12px 16px; font-size: var(--text-label); color: var(--ink-soft); background: var(--warn-bg); }
.planning-volume-control { border: 0; padding: 20px 0 0; margin: 0; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: var(--text-label); }
.planning-volume-control legend { float: left; }
.planning-volume-control .xp-plan__pct { width: 106px; }
.planning-volume-control .xp-muted { flex: 1 1 270px; }
.planning-scenario-explanation { display: grid; gap: 12px; padding: 18px 20px; border-radius: 10px; background: var(--surface-muted); font-size: var(--text-label); }
.planning-scenario-explanation > div { display: flex; justify-content: space-between; gap: 16px; }
.planning-scenario-scope { display: flex; gap: 12px 26px; flex-wrap: wrap; color: var(--muted); font-size: var(--text-label); }
.planning-save-form { display: flex; flex-wrap: wrap; gap: 12px 18px; padding-top: 20px; border-top: 1px solid var(--line); align-items: flex-end; }
.planning-save-form > div { flex: 1 1 270px; }
.planning-save-form label { display: block; font-size: var(--text-label); font-weight: 600; margin-bottom: 8px; }
.planning-save-form .ob-input { width: 100%; }
.planning-save-form > p { flex-basis: 100%; }
.planning-saved-list { display: grid; gap: 8px; }
.planning-saved { display: flex; justify-content: space-between; gap: 20px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; }
.planning-saved:hover { background: var(--surface-muted); border-color: var(--line-strong); }
.planning-saved small { display: block; color: var(--muted); font: 12px/1.5 var(--font-sans); margin-top: 5px; }
.planning-saved > span:last-child { text-align: right; flex: none; }
@media (max-width: 700px) {
  .planning-tabs { gap: 8px 18px; }
  .planning-tabs a { min-height: 36px; padding-bottom: 8px; }
  .planning-scope a { padding: 8px 10px; }
  .planning-gap-group summary, .planning-gap-group li { flex-wrap: wrap; }
  .planning-scenario-totals { padding: 18px; }
  .planning-scenario-explanation > div { flex-wrap: wrap; }
  .planning-saved { padding: 14px 12px; }
}

/* Financial workspaces: glass at the page boundary, solid information within. */
.planning-workspace, .overview-page { max-width: 1220px; gap: 24px; }
.planning-eyebrow { color: var(--brand-blue, var(--accent)); font-size: 11px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 12px; }
.planning-workspace > .change-heading, .overview-page > .change-heading { align-items: center; margin: 8px 0 6px; }
.planning-workspace .change-heading .xp-lede { margin-top: 12px; color: var(--muted); font-size: 16px; }
.planning-workspace .xp-card, .overview-page .xp-card { padding: 27px; border: 1px solid var(--glass-border, var(--line)); border-radius: 23px; background: var(--glass-surface, var(--surface)); box-shadow: var(--glass-shadow, var(--shadow-card)); backdrop-filter: blur(var(--glass-blur, 16px)); -webkit-backdrop-filter: blur(var(--glass-blur, 16px)); gap: 20px; }
.planning-workspace .xp-h2, .overview-page .xp-h2 { font-size: 19px; letter-spacing: -.025em; }
.planning-workspace .xp-muted, .overview-page .xp-muted { font-size: 12px; line-height: 1.65; }
.planning-scope-row { gap: 16px; }
.planning-scope { padding: 4px; border-radius: 13px; border-color: var(--line); background: var(--glass-nav, var(--surface-muted)); }
.planning-scope a { gap: 9px; min-height: 37px; padding: 7px 14px; font-size: 12px; border-radius: 10px; }
.planning-scope a[aria-current=page] { background: var(--glass-raised, var(--surface)); box-shadow: var(--shadow-input); }
.planning-scope a span { font-size: 10px; background: var(--surface-muted); padding: 2px 6px; border-radius: 5px; }
.planning-scope-row > .xp-muted { font-size: 11px; }
.planning-workspace .xp-sample, .overview-page .xp-sample { border: 1px solid var(--line); border-radius: 12px; padding: 12px 17px; background: var(--supplied-bg, var(--surface-muted)); color: var(--supplied, var(--ink-soft)); font-size: 12px; }
.planning-workspace .xp-sample strong, .overview-page .xp-sample strong { color: var(--supplied, var(--ink-soft)); }
.planning-tabs { padding: 5px; gap: 3px; width: fit-content; max-width: 100%; border: 1px solid var(--line); border-radius: 14px; background: var(--glass-nav, var(--surface-muted)); }
.planning-tabs a { min-height: 37px; border: 1px solid transparent; border-radius: 10px; padding: 7px 15px; font-size: 12px; white-space: nowrap; }
.planning-tabs a:hover { background: var(--accent-soft); color: var(--accent); }
.planning-tabs a[aria-current=page] { color: var(--accent); background: var(--glass-raised, var(--surface)); border-color: var(--line); box-shadow: var(--shadow-input); }
.planning-workspace .planning-hero, .overview-page .planning-hero { --hero-ink: var(--ink); --hero-soft: var(--ink-soft); --hero-line: var(--line); background: linear-gradient(115deg, var(--brand-blue-soft, var(--accent-soft)) 0%, color-mix(in srgb, var(--brand-blue-soft, var(--accent-soft)) 28%, var(--glass-raised, var(--surface))) 50%, var(--brand-teal-soft, var(--good-bg)) 100%); border-color: color-mix(in srgb, var(--brand-blue, var(--accent)) 17%, var(--glass-border, var(--line))); color: var(--ink); }
.planning-workspace .xp-key { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); padding: 36px 38px; gap: 38px; }
.planning-workspace .xp-key__main { justify-content: center; gap: 15px; }
.planning-workspace .xp-key__amount { font-size: clamp(38px, 8.8cqi, 68px); font-weight: 600; letter-spacing: -.06em; line-height: 1.08; }
.planning-workspace .xp-key__amount--none { font-size: clamp(27px, 6cqi, 40px); }
.planning-workspace .xp-key__sub { font-size: 13px; color: var(--muted); line-height: 1.65; max-width: 47ch; }
.planning-hero .xp-eyebrow { color: var(--brand-blue, var(--accent)); font-size: 12px; font-weight: 550; }
.planning-workspace .xp-key__side { padding: 5px 0 5px 34px; gap: 10px; border-left-color: var(--line); font-size: 12px; color: var(--muted); }
.planning-coverage-label { font-size: 11px; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .07em; }
.planning-workspace .planning-coverage-value { color: var(--ink); font-size: 35px; line-height: 1; letter-spacing: -.045em; font-weight: 600; }
.planning-coverage-value > span { color: var(--muted); font-size: 20px; font-weight: 400; margin-left: 3px; }
.planning-coverage { background: var(--line); height: 5px; }
.planning-coverage::-webkit-progress-bar { background: var(--line); }
.planning-coverage::-webkit-progress-value { background: var(--good); }
.planning-coverage::-moz-progress-bar { background: var(--good); }
.planning-workspace .planning-hero-note { color: var(--muted); font-size: 11px; line-height: 1.75; padding-top: 13px; border-top: 1px solid var(--line); max-width: 58ch; }
.planning-portfolio { gap: 16px; }
.planning-workspace .planning-portfolio .xp-card { gap: 11px; padding: 23px 26px; border-radius: 19px; }
.planning-portfolio .xp-card > strong { font-size: clamp(28px, 3vw, 36px); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.planning-portfolio .fx-link { font-size: 12px; }
.planning-workspace .xp-split { gap: 20px; }
.planning-workspace .xp-bars__list { gap: 18px; }
.planning-workspace .xp-bar { gap: 9px 15px; }
.planning-workspace .xp-bar__track { height: 6px; background: var(--line); }
.planning-workspace .xp-bar__fill { background: linear-gradient(90deg, var(--brand-blue, var(--accent)), color-mix(in srgb, var(--brand-blue, var(--accent)) 65%, var(--brand-blue-soft, var(--accent-soft)))); }
.planning-workspace [data-xp=by-family] .xp-bar__fill { background: linear-gradient(90deg, var(--brand-teal, var(--good)), color-mix(in srgb, var(--brand-teal, var(--good)) 65%, var(--brand-teal-soft, var(--good-bg)))); }
.planning-workspace .xp-bar__label, .planning-workspace .xp-bar__amount { font-size: 12px; }
.planning-workspace .xp-bar__count { font-size: 11px; }
.planning-workspace .xp-levers__list { gap: 12px; }
.planning-workspace .xp-lever { padding: 22px; border-radius: 16px; background: linear-gradient(110deg, color-mix(in srgb, var(--brand-teal-soft, var(--good-bg)) 42%, var(--glass-raised, var(--surface))), var(--glass-raised, var(--surface)) 70%); box-shadow: inset 3px 0 0 color-mix(in srgb, var(--good) 65%, transparent); gap: 10px; }
.planning-workspace .xp-lever__title { font-size: 14px; flex-basis: 280px; }
.planning-workspace .xp-lever__amount { font-size: 13px; }
.planning-workspace .xp-lever__reason { color: var(--muted); font-size: 12px; line-height: 1.65; }
.planning-workspace .xp-lever__apply a { display: inline-flex; align-items: center; min-height: 32px; border-radius: 8px; padding: 5px 11px; background: var(--accent-soft); color: var(--accent); text-decoration: none; font-size: 11px; }
.planning-workspace .xp-lever__items > summary { font-size: 12px; min-height: 32px; }
.planning-workspace .xp-lever__sample { font-size: 10px; color: var(--supplied, var(--ink-soft)); }
.planning-workspace .xp-table { font-size: 12px; }
.planning-workspace .xp-table thead th { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; padding-top: 0; padding-bottom: 16px; }
.planning-workspace .xp-table tbody td, .planning-workspace .xp-table tbody th { padding-top: 18px; padding-bottom: 18px; }
.planning-workspace .xp-table tbody tr:last-child > * { border-bottom: 0; }
.planning-workspace .xp-table tbody th { line-height: 1.6; min-width: 210px; }
.planning-workspace .xp-code { margin-top: 7px; font-size: 10px; }
.planning-workspace .xp-table .xp-num strong { font-size: 13px; font-weight: 600; }
.planning-cell-note { font-size: 10px; }
.planning-gap-group { padding: 0 4px; }
.planning-gap-group summary { padding: 19px 0; font-size: 12px; line-height: 1.6; align-items: baseline; }
.planning-gap-group summary::-webkit-details-marker { display: none; }
.planning-gap-group summary::before { width: 16px; color: var(--accent); font-size: 16px; font-weight: 400; }
.planning-gap-group li { padding: 3px 0 3px 28px; font-size: 12px; line-height: 1.65; }
.planning-caution { border: 1px solid color-mix(in srgb, var(--warn) 20%, var(--line)); border-radius: 12px; padding: 15px 18px; background: var(--warn-bg); color: var(--ink-soft); font-size: 12px; line-height: 1.65; }
.planning-workspace .xp-plan { padding: 30px; gap: 25px; }
.planning-workspace .xp-plan__head { align-items: flex-start; gap: 20px; }
.planning-workspace .xp-plan__head .xp-muted { margin-top: 10px; max-width: 65ch; }
.planning-workspace .xp-summary__sample { display: inline-block; padding: 5px 9px; border-radius: 7px; font-size: 10px; color: var(--supplied, var(--ink-soft)); background: var(--supplied-bg, var(--surface-muted)); white-space: nowrap; }
.planning-scenario-totals { padding: 0; gap: 0; border: 1px solid var(--line); border-radius: 19px; background: var(--glass-raised, var(--surface)); overflow: hidden; }
.planning-scenario-totals > div { padding: 25px; gap: 12px; border-right: 1px solid var(--line); min-width: 0; }
.planning-scenario-totals > div:last-child { border-right: 0; background: var(--surface-muted); }
.planning-scenario-totals > div.is-lower { background: var(--good-bg); }
.planning-scenario-totals > div.is-higher { background: var(--warn-bg); }
.planning-scenario-totals span { font-size: 11px; line-height: 1.5; }
.planning-scenario-totals strong { font-family: var(--font-sans); font-size: clamp(27px, 3.5vw, 41px); font-weight: 600; letter-spacing: -.045em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.planning-scenario-totals__delta.is-lower strong { color: var(--good); }
.planning-scenario-totals__delta.is-higher strong { color: var(--warn); }
.planning-workspace .xp-plan__form { gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--surface-muted) 50%, transparent); }
.planning-control-label { font-size: 13px; font-weight: 600; margin-bottom: 15px; }
.planning-workspace .xp-plan__move { display: grid; grid-template-columns: .65fr 1fr 1fr; gap: 18px; align-items: start; }
.planning-scenario-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.planning-field-label { font-size: 11px; color: var(--muted); }
.planning-workspace .xp-plan__move select.ob-input { width: 100%; min-height: 44px; font-size: 13px; }
.planning-workspace .xp-plan__pct { position: relative; display: flex; width: 100%; gap: 0; }
.planning-workspace .xp-plan__pct .ob-input { width: 100%; padding-right: 39px; min-height: 44px; font-size: 13px; }
.planning-workspace .xp-plan__pct > span { position: absolute; top: 50%; right: 26px; transform: translateY(-50%); color: var(--muted); font-size: 12px; pointer-events: none; }
.planning-volume-control { padding-top: 21px; border-top: 1px solid var(--line); font-size: 12px; gap: 12px 18px; }
.planning-volume-control legend { float: none; padding-top: 20px; }
.planning-volume-control .xp-plan__pct { width: 110px; }
.planning-workspace .planning-eligibility { padding-top: 6px; }
.planning-workspace .xp-plan__toggle { align-items: center; gap: 12px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--glass-raised, var(--surface)); margin-bottom: 9px; font-size: 12px; }
.planning-workspace .xp-plan__toggle:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.planning-workspace .xp-plan__toggle input { margin-top: 0; width: 17px; height: 17px; }
.planning-workspace .xp-plan__actions { gap: 18px; flex-wrap: wrap; padding-top: 3px; }
.planning-workspace .xp-plan__actions .fx-link { font-size: 12px; }
.planning-scenario-explanation { padding: 20px 23px; gap: 15px; background: var(--glass-raised, var(--surface)); border: 1px solid var(--line); border-radius: 15px; font-size: 12px; line-height: 1.65; }
.planning-scenario-explanation strong { font-weight: 550; }
.planning-scenario-scope { padding: 0 2px; gap: 13px 28px; font-size: 11px; line-height: 1.6; }
.planning-scenario-scope strong { color: var(--ink-soft); }
.planning-scenario-detail, .planning-method { border: 1px solid var(--line); border-radius: 13px; padding: 0 18px; background: var(--glass-surface, var(--surface)); }
.planning-scenario-detail > summary, .planning-method > summary { padding: 14px 0; min-height: 45px; font-size: 12px; color: var(--ink-soft); }
.planning-save-form { padding-top: 24px; gap: 14px 18px; }
.planning-save-form label { font-size: 13px; margin-bottom: 10px; }
.planning-save-form > p { font-size: 11px; }
.planning-saved { align-items: center; padding: 18px 20px; border-radius: 14px; background: var(--glass-raised, var(--surface)); font-size: 13px; }
.planning-saved:hover { border-color: var(--accent); background: var(--accent-soft); }
.planning-saved small { font-size: 11px; }
.planning-empty { padding: 64px 28px !important; gap: 20px !important; }
.planning-empty__icon { width: 55px; height: 55px; border-radius: 18px; background: var(--brand-teal-soft, var(--good-bg)); color: var(--brand-teal, var(--good)); }
/* A restrained blue/teal rhythm separates the portfolio story from dense data. */
.planning-workspace .xp-bars { box-shadow: inset 0 3px 0 color-mix(in srgb, var(--brand-blue, var(--accent)) 52%, transparent), var(--glass-shadow, var(--shadow-card)); }
.planning-workspace .xp-bars[data-xp=by-family] { box-shadow: inset 0 3px 0 color-mix(in srgb, var(--brand-teal, var(--good)) 52%, transparent), var(--glass-shadow, var(--shadow-card)); }
.planning-workspace .xp-levers { background: linear-gradient(145deg, var(--brand-teal-soft, var(--good-bg)), var(--glass-surface, var(--surface)) 58%); }
.planning-workspace .xp-plan { box-shadow: inset 0 3px 0 color-mix(in srgb, var(--brand-blue, var(--accent)) 52%, transparent), var(--glass-shadow, var(--shadow-card)); }
@media(max-width: 850px) {
  .planning-tabs { width: 100%; flex-wrap: nowrap; overflow-x: auto; }
  .planning-tabs a { flex: none; padding: 7px 12px; }
  .planning-workspace .xp-key { gap: 26px; padding: 30px; }
  .planning-workspace .xp-key__side { padding-left: 25px; }
  .planning-portfolio { gap: 12px; }.planning-workspace .planning-portfolio .xp-card { padding: 21px; }
  .planning-scenario-totals > div { padding: 21px; }
}
@media(max-width: 720px) {
  .planning-workspace, .overview-page { gap: 18px; }
  .planning-workspace > .change-heading, .overview-page > .change-heading { align-items: flex-start; gap: 18px; }
  .planning-workspace .xp-card, .overview-page .xp-card { padding: 23px; border-radius: 20px; }
  .planning-workspace .xp-key { grid-template-columns: 1fr; padding: 28px; }
  .planning-workspace .xp-key__amount { font-size: clamp(34px, 10cqi, 56px); }
  .planning-workspace .xp-key__side { padding: 22px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .planning-workspace .xp-plan { padding: 23px; }
  .planning-workspace .xp-plan__form { padding: 19px; }
  .planning-workspace .xp-plan__move { grid-template-columns: 1fr; gap: 17px; }
  .planning-scenario-field:first-of-type .xp-plan__pct { width: 130px; }
  .planning-scenario-totals { grid-template-columns: 1fr; padding: 0; }
  .planning-scenario-totals > div { flex-direction: row; justify-content: space-between; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); padding: 19px; }
  .planning-scenario-totals > div:last-child { border-bottom: 0; }.planning-scenario-totals strong { font-size: 27px; }
  .planning-workspace .xp-table tbody th { min-width: 0; }
  .planning-workspace .xp-table td[data-label=Classification], .planning-workspace .xp-table td[data-label=Explore] { grid-column: 1 / -1; }
  .planning-workspace .xp-table td[data-label="Annual imports"]::before { content: "Annual imports  "; font: 10px var(--font-sans); color: var(--muted); }
  .planning-workspace .xp-table td[data-label="Annual duty"]::before { content: "Annual duty  "; font: 10px var(--font-sans); color: var(--muted); }
  .planning-gap-group li { padding-left: 0; }.planning-save-form .fx-btn { width: 100%; }
}
@media print { .planning-workspace .xp-card, .overview-page .xp-card { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); box-shadow: none; }.planning-workspace .planning-hero, .overview-page .planning-hero, .planning-workspace .planning-portfolio .xp-card, .overview-page .planning-portfolio .xp-card, .planning-workspace .xp-levers, .planning-workspace .xp-lever, .change-card { background: var(--surface); box-shadow: none; }.planning-scenario-totals > div { background: var(--surface) !important; }.planning-tabs, .planning-scope-row { display: none; } }

/* The AI's change briefing on Changes and in Today's disclosure (ChangeBriefings). A frame with nothing written is empty
   and takes no space, nor does Today's disclosure around it. */
.change-briefing { display: block; }
.change-briefing:empty, .focus-briefing:has(> .change-briefing:empty) { display: none; }
.change-briefing__card { padding: 16px 20px; border: 1px solid var(--glass-border, var(--line)); border-radius: var(--radius-card); background: var(--glass-surface, var(--surface)); }
.change-briefing__title { margin: 0 0 8px; font-size: 1rem; }
.change-briefing__title .fx-hint { font-weight: 400; }
.change-briefing__headline { margin: 0 0 8px; }
.change-briefing__points, .change-briefing__actions { margin: 0 0 8px; padding-left: 20px; display: grid; gap: 4px; }
.change-briefing__todo { font-size: 0.95rem; margin: 12px 0 6px; }
.change-briefing__more { margin: 0 0 8px; }
.change-briefing__more > summary { cursor: pointer; font-size: var(--text-label); color: var(--ink-soft); }
.change-briefing__foot { margin: 8px 0 0; }
.change-briefing__sources { font-size: 0.8rem; white-space: nowrap; }
.change-briefing__sources a, .change-briefing__sources span { margin-left: 2px; color: var(--muted); }

/* result_focus.css */
/* The result card becomes a focused workspace; the native dialog makes the page behind it inert. */
html.ob-focus-open { overflow: hidden; scrollbar-gutter: stable; }
.ob-focus-dialog {
  width: min(920px, calc(100vw - 48px)); max-width: none;
  max-height: min(92dvh, 1100px); margin: auto; padding: 0;
  overflow: auto; overscroll-behavior: contain;
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 28px;
  box-shadow: 0 36px 100px -24px rgba(24, 39, 67, .35), 0 0 0 1px rgba(255, 255, 255, .5);
}
.ob-focus-dialog::backdrop { background: var(--focus-backdrop); backdrop-filter: blur(var(--glass-focus-blur, 16px)); -webkit-backdrop-filter: blur(var(--glass-focus-blur, 16px)); }
.ob-focus__bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 28px; background: var(--surface); border-bottom: 1px solid var(--line); }
.ob-focus__bar h2 { margin: 0; font-size: 15px; font-weight: 650; letter-spacing: -.02em; }
.ob-focus__heading { min-width: 0; display: grid; gap: 5px; }
.ob-focus__context { min-width: 0; display: grid; gap: 3px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.ob-focus__product { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ob-focus__identifier { font-size: 10px; letter-spacing: .035em; overflow-wrap: anywhere; }
.ob-focus__heading + .ob-focus__close { flex: none; align-self: start; }
.ob-focus__close { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--surface-muted); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.ob-focus__close::after { content: "×"; font-size: 20px; line-height: 12px; font-weight: 400; }
.ob-focus__close:hover { border-color: var(--accent); }
.ob-focus-dialog > .ob-fold { display: flex; grid-area: auto; width: 100%; margin: 0; border: 0; border-radius: 0; box-shadow: none; cursor: default; }
.ob-focus-dialog .ob-fold > .ob-face { padding: 24px 32px; min-height: 0; gap: 12px; border-radius: 0; cursor: default; box-shadow: none; }
.ob-focus-dialog .ob-face__more { display: none !important; }
.ob-focus-dialog .cp-basis-summary__hint { display: none; }
.ob-focus-dialog .ob-fold__body { padding: 28px 32px 36px; gap: 24px; cursor: default; }
.ob-focus-dialog .ob-fold__body > .cp-assumptions { margin: 0; padding: 0; border: 0; background: transparent; }
/* product-low-2: in the window the confidence and the source tag sit under the code, which keeps its width. */
.ob-focus-dialog .cp-basis-summary { margin-top: 0; padding-top: 10px; }
.ob-focus-dialog .ob-code { font-size: clamp(28px, 5vw, 40px); }
.ob-focus-dialog .ob-total { font-size: clamp(40px, 6vw, 58px); }
.ob-focus-dialog .ob-why-line { -webkit-line-clamp: unset; line-clamp: none; }
@media (max-width: 600px) {
  .ob-focus-dialog { width: calc(100vw - 16px); max-height: 96dvh; border-radius: 22px; }
  .ob-focus__bar { padding: 14px 18px; }
  .ob-focus-dialog .ob-fold > .ob-face, .ob-focus-dialog .ob-fold__body { padding: 22px 20px; }
}
@media (prefers-reduced-transparency: reduce) {
  .ob-focus-dialog::backdrop { background: var(--focus-backdrop-solid); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* result_state.css */
/* The result-state pieces (rs__) in Direction D: the questions and what stops a result (shared/_result_state_needs,
   _question), assumptions, the breakdown under "See how this was calculated", the candidates, and the earlier result
   component (shared/_result_state) that still renders estimates stored before the safe-side layout and the fixture
   gallery. Also the record sections reused inside the HTS card (alternatives, rulings, history). Tokens only. */

/* ------------------------------------------------------------------ the earlier result component */

.rs { position: relative; display: flex; flex-direction: column; gap: var(--space-5); padding: var(--space-8); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); }
.rs > * { margin: 0; }
.rs__head > * { margin: 0; }
.rs__eyebrow { margin: 0 0 4px; color: var(--muted); font-size: var(--text-label); font-weight: 500; }
.rs__headline { margin: 0; font-size: var(--text-h2); font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; }
.rs__subhead { margin: 0 0 var(--space-2); font-size: var(--text-label); font-weight: 500; color: var(--muted); }
.rs__code-block > * { margin: 0; }
.rs__code-row { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.rs__code { font-family: var(--font-mono); font-size: var(--text-code); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.rs__code-desc { margin-top: 6px !important; font-size: var(--text-body); color: var(--ink-soft); }
.rs__meta { margin-top: 6px !important; color: var(--muted); font-size: var(--text-label); }
.rs__why { color: var(--ink-soft); }
.rs__scope { margin: 0; color: var(--muted); font-size: var(--text-small); }
.rs__stale { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin: 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius-row); background: var(--warn-bg); color: var(--ink); font-size: var(--text-label); }
.rs__stale p { margin: 0; }
.rs__stale strong { color: var(--warn); }
.rs__refused { margin: 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius-row); background: var(--surface-muted); color: var(--ink-soft); font-size: var(--text-label); }
.rs__action-note { margin: 0; color: var(--ink-soft); font-size: var(--text-label); }
.rs__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.rs__more { position: relative; }
.rs__more > summary { list-style: none; cursor: pointer; }
.rs__more > summary::-webkit-details-marker { display: none; }
.rs__more-list { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.rs__action-explained { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-row); background: var(--surface-muted); }
.rs__action-hint { margin: 0; flex: 1 1 280px; color: var(--ink-soft); font-size: var(--text-label); }

.rs__progress { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4); border-radius: var(--radius-row); background: var(--accent-soft); }
.rs__progress p { margin: 0; }
.rs__progress-stage { font-weight: 600; }
.rs__progress-note { color: var(--ink-soft); font-size: var(--text-label); }
.rs__pulse { width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--accent); flex: none; animation: ob-pulse 1.4s ease-in-out infinite; }

/* amounts in the earlier component */
.rs__tariff > * { margin: 0; }
.rs__amount { display: flex; align-items: baseline; gap: var(--space-3); flex-wrap: wrap; margin: 0; }
.rs__amount-value { font-size: var(--text-h1); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.rs__amount-value--partial, .rs__amount--rate .rs__amount-value { font-size: var(--text-h2); }
.rs__amount-label { color: var(--muted); font-size: var(--text-body); }
.rs[data-current="false"] .rs__amount-value { color: var(--muted); text-decoration: line-through; }
.rs__inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3) var(--space-6); margin: 0; padding: var(--space-4) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rs__inputs dt { color: var(--muted); font-size: var(--text-small); font-weight: 500; }
.rs__inputs dd { margin: 2px 0 0; }
.rs__inputs-note, .rs__inputs-sub { display: block; color: var(--muted); font-size: var(--text-small); }
.rs__simple > * { margin: 0; }
.rs__simple > * + * { margin-top: var(--space-3); }
.rs__simple-sub { color: var(--ink-soft); }
.rs__simple-sub-note { display: block; color: var(--muted); font-size: var(--text-label); }
.rs__simple-next { font-weight: 600; padding: var(--space-3) var(--space-4); border-radius: var(--radius-row); background: var(--warn-bg); }
.rs__simple-context { display: flex; flex-wrap: wrap; gap: 4px var(--space-3); color: var(--muted); font-size: var(--text-label); }

/* ------------------------------------------------------------------ what stops a result: one form, questions, others' work */

.rs__needs { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; padding: var(--space-5); border-radius: var(--radius-row); background: var(--warn-bg); }
.rs__needs > * { margin: 0; }
.rs__needs > .rs__subhead { font-size: var(--text-body-l); font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.rs__needs:not(:has(.rs__need, .rs__form)) { background: transparent; padding: 0; }
.rs__need { margin: 0; }
.rs__need-lead { font-weight: 600; }
.rs__form, .rs__form-block { display: grid; gap: var(--space-4); min-width: 0; grid-template-columns: minmax(0, 1fr); }
.rs__form-block + .rs__form-block { border-top: 1px solid var(--line); padding-top: var(--space-4); }
.rs__form-error { margin: 0; }
.rs__question { border: 0; margin: 0; padding: 0; min-width: 0; }
.rs__question-text { padding: 0; margin: 0 0 4px; font-weight: 600; font-size: var(--text-body); }
.rs__condition, .rs__question-owner { font-style: normal; }
.rs__options { display: grid; gap: var(--space-2); margin-top: var(--space-2); }
.rs__option {
  display: flex; align-items: center; gap: var(--space-3); min-height: 48px; padding: var(--space-2) var(--space-4);
  border: 1px solid var(--line-strong); border-radius: var(--radius-control); background: var(--surface); cursor: pointer; font-size: var(--text-body);
  transition: opacity var(--motion) var(--ease);
}
.rs__option:hover { border-color: var(--accent); }
.rs__option:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.rs__option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.rs__option input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; flex: none; }
.rs__option--unknown { border-style: dashed; color: var(--ink-soft); }
.rs__option--inline { display: inline-flex; min-height: 44px; margin-top: var(--space-2); width: auto; justify-self: start; }
.rs__form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); }
.rs__form-actions .fx-hint { margin: 0; flex: 1 1 240px; }
.rs__others { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.rs__other { padding: 2px 0 2px var(--space-3); border-left: 2px solid var(--line-strong); }
.rs__owner { display: block; margin-top: 4px; color: var(--muted); font-size: var(--text-label); }
.rs__owner--inline { display: inline; margin: 0; }
.rs__conflict { margin: 0; padding-left: 18px; font-size: var(--text-label); }
.rs__conflict-source { color: var(--muted); }
.rs__choose { margin: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.rs__choose-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rs__choose-form { margin: 0; display: block !important; }
.rs__choose-item {
  width: 100%; min-height: 48px; display: flex; gap: var(--space-3); align-items: baseline; padding: var(--space-3) var(--space-4); text-align: left; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius-row); background: var(--surface); color: var(--ink); font: inherit; font-size: var(--text-label);
}
.rs__choose-item:hover { border-color: var(--accent); }
.rs__choose-code { font-weight: 600; white-space: nowrap; }
.rs__choose-desc { color: var(--ink-soft); }
.rs__question-wrap[hidden] { display: none; }

/* ------------------------------------------------------------------ notes and assumptions (outside the card too) */

.rs__notes { display: flex; flex-direction: column; gap: var(--space-2); }
.rs__notes--qualified { padding: var(--space-4); border-radius: var(--radius-row); background: var(--warn-bg); }
.rs__notelist { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: var(--text-label); color: var(--ink-soft); }
.rs__note-lead { font-weight: 600; color: var(--ink); }
.rs__notelist.print-only { display: none; }
.rs__print-open, .rs__print-only-inline { display: none; }
.rs__override { margin-top: 6px; }
.rs__override > summary { cursor: pointer; font-size: var(--text-label); font-weight: 500; min-height: 36px; display: inline-flex; align-items: center; }
.rs__override-form { display: grid; gap: var(--space-2); max-width: 440px; margin-top: var(--space-2); }
.rs__override-form .fx-btn { justify-self: start; }
.rs__assumes { display: flex; flex-direction: column; gap: var(--space-3); }
.rs__assume-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.rs__assume { display: grid; gap: var(--space-2); padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-row); }
.rs__assume-text { margin: 0; }
.rs__assume-lead { font-weight: 600; color: var(--muted); }
.rs__assume--answered .rs__assume-lead, .rs__assume--given .rs__assume-lead { color: var(--supplied); }
.rs__assume-effect { margin: 0; font-size: var(--text-label); font-weight: 500; color: var(--warn); }
.rs__assume-if, .rs__assume-note, .rs__assume-stale { margin: 0; }
.rs__assume-stale { color: var(--warn); }
.rs__assume-note-line { margin: 0; font-size: var(--text-label); color: var(--ink-soft); }
.rs__assume-controls { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.rs__assume-change { width: 100%; }
.rs__assume-change > summary { list-style: none; }
.rs__assume-change > summary::-webkit-details-marker { display: none; }
.rs__assume-change[open] > summary { margin-bottom: var(--space-3); }
.rs__assume-change-form { display: grid; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-row); background: var(--surface-muted); }
.rs__assume-change-form > button { justify-self: start; }
.rs__assume-more > summary { cursor: pointer; font-size: var(--text-label); font-weight: 500; color: var(--muted); min-height: 44px; display: flex; align-items: center; }
.rs__assume-more[open] > summary { margin-bottom: var(--space-2); }
.rs__assume-list--given { margin-top: var(--space-2); }
.rs__assume-profile-link { font-size: var(--text-label); }
.rs__adcvd { display: grid; gap: var(--space-2); padding: var(--space-3) var(--space-4); border-radius: var(--radius-row); background: var(--surface-muted); }
.rs__adcvd-text { margin: 0; color: var(--ink-soft); }
.rs__adcvd--flagged .rs__adcvd-text { color: var(--warn); }
.rs__adcvd-orders { margin: 0; font-size: var(--text-label); }
.rs__confidence { font-weight: 600; }
.rs__assumptions > summary { font-size: var(--text-label); }

/* ------------------------------------------------------------------ "See how this was calculated": the breakdown */

.rs__how > summary { color: var(--ink); font-weight: 600; font-size: var(--text-body); }
.rs__how-body { display: flex; flex-direction: column; gap: var(--space-4); }
.rs__how-body > * { margin: 0; }
.rs__how-head { margin: var(--space-2) 0 0 !important; font-size: var(--text-label); font-weight: 600; }
.rs__also-checked { font-size: var(--text-label); color: var(--ink-soft); }
.rs__also-checked > summary { cursor: pointer; list-style: none; }
.rs__also-checked > summary::-webkit-details-marker { display: none; }
.rs__also-checked strong { font-size: inherit; font-weight: 600; color: var(--ink); }
.rs__also-checked-why { color: var(--accent); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.rs__also-checked > .rs__notelist { margin-top: 6px; }
.rs__table-wrap { overflow-x: auto; max-width: 100%; }
.rs__table { width: 100%; border-collapse: collapse; font-size: var(--text-label); }
.rs__table th, .rs__table td { text-align: left; vertical-align: top; padding: var(--space-3) var(--space-3); border-bottom: 1px solid var(--line); }
.rs__table thead th { color: var(--muted); font-weight: 500; border-bottom-color: var(--line-strong); }
.rs__table th:first-child, .rs__table td:first-child { padding-left: 0; }
.rs__table th:last-child, .rs__table td:last-child { padding-right: 0; }
.rs__table tbody th { font-weight: 500; }
.rs__table tfoot th, .rs__table tfoot td { font-weight: 600; font-size: var(--text-body); border-top: 1px solid var(--ink); border-bottom: 0; }
.rs__num { text-align: right !important; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rs__duty { display: block; }
.rs__official, .rs__provision, .rs__rate-basis, .rs__rate-note { display: block; color: var(--muted); font-size: var(--text-small); font-weight: 400; }
.rs__rate { font-family: var(--font-mono); }
.rs__rate-note { color: var(--warn); }
.rs__cell-word { color: var(--muted); font-size: var(--text-small); }
.rs__cell-word--warn { color: var(--warn); font-weight: 600; }
.rs__tech { border-top: 1px solid var(--line); }
.rs__techlist { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px var(--space-4); margin: 0; font-size: var(--text-small); color: var(--ink-soft); }
.rs__techlist dt { color: var(--muted); }
.rs__techlist dd { margin: 0; overflow-wrap: anywhere; }
/* home-result-8: the record line that replaced the component's "Technical details" fold */
.rs__footer { display: grid; gap: 2px; padding-top: var(--space-3); border-top: 1px solid var(--line); font-size: var(--text-small); color: var(--muted); }
.rs__footer p { margin: 0; overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ candidates and other possible codes */

.rs__candlist { margin: var(--space-2) 0 0; padding: 0; list-style: none; }
.rs__cand { padding: var(--space-3) 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px var(--space-4); }
.rs__cand:first-child { border-top: 0; }
.rs__cand-code { font-weight: 600; grid-row: span 2; min-width: 8.5em; }
.rs__cand-desc { font-weight: 500; }
.rs__candlist--all .rs__cand-desc { font-weight: 400; }
.rs__cand-why, .rs__cand-rulings { grid-column: 2; color: var(--muted); font-size: var(--text-label); }
.rs__cand--ruling .rs__cand-code { grid-row: span 4; }
.rs__cand-support { grid-column: 2; font-size: var(--text-label); font-weight: 600; color: var(--ink-soft); }
.rs__cand-use { grid-column: 2; margin-top: 6px; }

/* ------------------------------------------------------------------ record sections reused in the HTS card */

.fx-support__item--offered:not([open]) { display: none; }
.alternative { padding: var(--space-3) 0; }
.alternative + .alternative { border-top: 1px solid var(--line); }
.alternative__head { display: flex; align-items: baseline; gap: var(--space-2); flex-wrap: wrap; }
.alternative__code { font-weight: 600; }
.alternative__why { margin: 6px 0 0; color: var(--muted); }
.alternative__full { margin: var(--space-2) 0 0; color: var(--ink-soft); line-height: 1.55; }
.alternatives__more summary, .rulings__more summary { cursor: pointer; font-weight: 500; min-height: 36px; display: inline-flex; align-items: center; }
.rulings__list { list-style: none; margin: 0; padding: 0; }
.ruling { padding: var(--space-3) 0; }
.ruling + .ruling { border-top: 1px solid var(--line); }
.ruling__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.ruling__holding { margin: var(--space-2) 0 0; color: var(--ink-soft); line-height: 1.55; }
.path__assumed { color: var(--assumed); font-weight: 500; }

.fx-product__edit { margin: 0; }

@media (max-width: 720px) {
  .rs { padding: var(--space-5); }
  .rs__inputs { grid-template-columns: 1fr; }
  .rs__actions, .rs__more-list { flex-direction: column; align-items: stretch; }
  .rs__actions .fx-btn, .rs__action-form, .rs__action-form .fx-btn { width: 100%; }
  .rs__cand { grid-template-columns: 1fr; }
  .rs__cand-code, .rs__cand-why, .rs__cand--ruling .rs__cand-code, .rs__cand-support, .rs__cand-rulings, .rs__cand-use { grid-row: auto; grid-column: 1; }
  .rs__table thead { display: none; }
  .rs__table, .rs__table tbody, .rs__table tr, .rs__table th, .rs__table td, .rs__table tfoot { display: block; width: 100%; }
  .rs__table tr { padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
  .rs__table th, .rs__table td { border: 0; padding: 0 !important; }
  .rs__table td { margin-top: 4px; }
  .rs__table .rs__num { text-align: left !important; }
  .rs__table tfoot tr { display: flex; justify-content: space-between; border-top: 1px solid var(--ink); border-bottom: 0; }
  .rs__table tfoot th, .rs__table tfoot td { width: auto; }
  .rs__choose-item { flex-direction: column; gap: 2px; }
  .rs__form-actions .fx-btn { width: 100%; }
}

@media print {
  .rs { border: 1px solid #999; padding: 14pt; break-inside: avoid; }
  .rs__form .fx-field, .rs__form .rs__question, .rs__form-actions, .rs__assume-controls { display: none !important; }
  .rs__assumptions { display: none !important; }
  .rs__notelist.print-only { display: block !important; }
  .rs__print-open { display: block !important; }
  .rs__print-only-inline { display: inline !important; }
  .rs__screen-only { display: none !important; }
}

/* Every assumption of an AI prediction or answer is listed; what the product was taken to be leads, and a long list
   folds after four ("Show all N"). */
.prediction-assumptions__list { margin: 4px 0 0; padding-left: 18px; }
.prediction-assumptions__list li + li { margin-top: 2px; }
.prediction-assumptions__more > summary,
.rs__assume-more > summary { cursor: pointer; color: var(--ink-soft); font-size: var(--text-label); margin-top: 6px; }
.rs__assume--identity .rs__assume-lead { font-weight: 600; }
/* A Low answer re-checked in depth in the background (Research::DeepRecheck) says so beside its confidence. */
.rs__rechecked { color: var(--ink-soft); }

/* rule_simulations.css */
/* The announced-rule simulator (rsim-): Money › Rule simulations. Built from the planning page's cards and tables. */
.rsim { display: flex; flex-direction: column; gap: var(--space-5, 20px); }
.rsim-label { margin: 0; padding: var(--space-3, 12px) var(--space-4, 16px); border-radius: var(--radius-row, 10px); border: 1px dashed var(--warn, #9a6700);
  background: var(--warn-bg, #fff8e6); color: var(--ink); font-size: var(--text-label, 14px); line-height: 1.5; }
.rsim-label strong { color: var(--warn, #9a6700); }
.rsim-error { margin: 0; padding: var(--space-3, 12px) var(--space-4, 16px); border-radius: var(--radius-row, 10px); background: var(--bad-bg); color: var(--bad); }
.rsim-form { display: flex; flex-direction: column; gap: var(--space-4, 16px); }
.rsim-grid { display: grid; gap: var(--space-4, 16px); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.rsim-fieldset { margin: 0; padding: var(--space-4, 16px) 0 0; border: 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--space-3, 12px); min-width: 0; }
.rsim-fieldset > legend { padding: 0; margin-bottom: var(--space-2, 8px); }
.rsim-choice { display: flex; flex-wrap: wrap; gap: var(--space-2, 8px) var(--space-4, 16px); font-size: var(--text-label, 14px); }
.rsim-choice label { display: inline-flex; align-items: center; gap: 6px; }
.rsim-choice--column { flex-direction: column; }
.rsim-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3, 12px); }
.rsim-groups { display: grid; gap: var(--space-5, 20px); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.rsim-list { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; font-size: var(--text-label, 14px); line-height: 1.5; }
.rsim .xp-table { display: block; overflow-x: auto; } /* a wide table scrolls on the phone… */
@media (min-width: 721px) { .rsim .xp-table { display: table; } } /* …and fills its card on a desk */
@media (max-width: 640px) { .rsim .planning-scenario-totals { grid-template-columns: 1fr; } }
/* Who ran it, under the measure; a tile's qualifier on its own line under the figure (a range wraps on the phone). */
.rsim-byline { display: block; margin-top: 4px; color: var(--muted); font-size: var(--text-label, 14px); }
.rsim-tile-note { color: var(--muted); font-size: var(--text-small, 12px); line-height: 1.4; }
.rsim .planning-scenario-totals strong small { font-size: .55em; letter-spacing: -.01em; } /* "up to +$Y", "of M": beside the figure, not a second one */
@media (max-width: 600px) {
  .rsim .planning-scenario-totals > div { flex-direction: column; align-items: flex-start; gap: 4px; }
  .rsim .planning-scenario-totals strong { white-space: normal; }
}
/* The runs list on the phone: one card per run with each figure on its own labelled line (the dollar figure keeps
   "Simulated"). */
@media (max-width: 720px) {
  .rsim .rsim-runs { display: block; }
  .rsim .rsim-runs tr { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .rsim .rsim-runs td[data-label] { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3, 12px); text-align: right; }
  .rsim .rsim-runs td[data-label]::before { content: attr(data-label); flex: none; color: var(--muted); font-family: var(--font-sans, inherit); font-size: var(--text-small, 12px); text-align: left; }
  .rsim .rsim-runs td[data-rsim=run-by] { color: var(--muted); font-size: var(--text-small, 12px); }
}
/* The form's countries of origin: one chip per country chosen, above the country search. */
.rsim-grid > .fx-field { align-content: start; } /* a field beside the chips keeps its own height */
.rsim-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.rsim-chips:not(:has(li)) { display: none; }
.rsim-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 9px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--glass-selected); color: var(--ink); font-size: var(--text-label, 14px); line-height: 1.5; }
.rsim-chip__remove { display: inline-grid; place-items: center; min-width: 24px; min-height: 24px; padding: 0; border: 0; border-radius: 6px;
  background: transparent; color: var(--muted); font: inherit; line-height: 1; cursor: pointer; }
.rsim-chip__remove:hover, .rsim-chip__remove:focus-visible { background: var(--glass-inset); color: var(--ink); }

/* sap_connection.css */
/* The SAP page (SapConnectionsController#show): the header, four cards, the codes in SAP against Tarivo's, how complete
   the SAP data is, what came in, Send to SAP and the connection's settings, on the glass surfaces. Colours are the
   app's tokens: good is a code SAP and Tarivo share, bad a different one, warn one missing in SAP. */
.sap {
  --sap-track: rgba(88, 109, 140, .13); --sap-fair: #c4862b; --sap-waiting: rgba(88, 109, 140, .45);
  display: flex; flex-direction: column; gap: 14px; max-width: 1360px; margin: 0 auto; padding: 24px clamp(16px, 3vw, 40px) 96px; color: var(--ink);
}
:root[data-theme="dark"] .sap { --sap-track: rgba(181, 200, 230, .14); --sap-fair: #e3b46b; --sap-waiting: rgba(181, 200, 230, .4); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sap { --sap-track: rgba(181, 200, 230, .14); --sap-fair: #e3b46b; --sap-waiting: rgba(181, 200, 230, .4); } }

.sap-card { min-width: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--glass-sheen, none), var(--glass-surface, var(--surface)); box-shadow: var(--shadow-card); }
.sap-card__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.sap-h2 { margin: 0; font-size: 16px; font-weight: 600; }
.sap-hint { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.sap-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.sap-note { margin: 8px 0 0; padding: 10px 12px; border-radius: 12px; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.sap-note--info { background: var(--accent-soft); color: var(--accent-strong); }
.sap-note--warn { background: var(--warn-bg); color: var(--ink-soft); }
.sap-note--warn strong { color: var(--warn); }

/* Header */
.sap-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.sap-head__copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 420px; }
.sap-eyebrow { margin: 0; color: var(--muted); font-size: 12px; }
.sap-title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
.sap-pill { padding: 4px 10px; border-radius: var(--radius-pill, 999px); background: var(--surface-muted); color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0; }
.sap-pill[data-state=connected] { background: var(--good-bg); color: var(--good); }
.sap-pill[data-state=paused] { background: var(--warn-bg); color: var(--warn); }
.sap-head__line { margin: 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.sap-head__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sap-head__actions form { margin: 0; }

/* The four cards */
.sap-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sap-stat { --stat: var(--accent); display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--glass-surface, var(--surface)); color: var(--ink); text-decoration: none; transition: border-color .2s ease; }
.sap-stat:hover { border-color: var(--accent); color: var(--ink); }
.sap-stat.is-on { border: 2px solid var(--accent); padding: 13px 15px; }
.sap-stat--bad { --stat: var(--bad); }
.sap-stat--fair { --stat: var(--sap-fair); }
.sap-stat--good { --stat: var(--good); }
.sap-stat__label, .sap-stat__note { color: var(--muted); font-size: 12px; }
.sap-stat__big { color: var(--stat); font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sap-stat:not(.sap-stat--bad):not(.sap-stat--fair):not(.sap-stat--good) .sap-stat__big { color: var(--ink); }
.sap-track { display: block; height: 8px; border-radius: 4px; background: var(--sap-track); overflow: hidden; }
.sap-track__fill { display: block; height: 100%; border-radius: inherit; background: var(--stat, var(--accent)); }

.sap-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.sap-grid--reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }

/* Codes: SAP and Tarivo */
.sap-codes { display: flex; flex-direction: column; gap: 12px; }
.sap-split { display: flex; height: 22px; border-radius: 6px; overflow: hidden; background: var(--sap-track); }
.sap-split__part { display: block; height: 100%; }
.sap-split__part.is-on { outline: 2px solid var(--ink); outline-offset: -2px; }
.sap-split__part--same, .sap-swatch--same { background: var(--good); }
.sap-split__part--different, .sap-swatch--different { background: var(--bad); }
.sap-split__part--missing, .sap-swatch--missing { background: var(--sap-fair); }
.sap-split__part--waiting, .sap-swatch--waiting { background: var(--sap-waiting); }
.sap-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.sap-tab { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--glass-raised, var(--surface)); color: var(--ink); font-size: 13px; font-weight: 500; text-decoration: none; }
.sap-tab:hover { border-color: var(--accent); color: var(--ink); }
.sap-tab.is-on { border-color: var(--accent); background: var(--accent-soft); }
.sap-swatch { width: 10px; height: 10px; border-radius: 2px; }
.sap-table { display: flex; flex-direction: column; gap: 6px; }
.sap-row { display: grid; grid-template-columns: minmax(0, 1.6fr) 120px 120px minmax(0, 1fr) 96px; gap: 10px; align-items: center; min-height: 46px; padding: 4px 10px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--glass-raised, var(--surface)); font-size: 13px; }
.sap-row--head { min-height: 0; border: 0; background: none; color: var(--faint, var(--muted)); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.sap-row__part { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.sap-row__part b { font-weight: 600; }
.sap-row__part small { color: var(--muted); font-size: 12px; }
.sap-row__sap { color: var(--muted); }
.sap-row__sap.is-bad { color: var(--bad); }
.sap-row__travio { font-weight: 600; }
.sap-row__label { display: none; color: var(--muted); font-family: var(--font-sans); font-weight: 400; }
.sap-row__action { display: flex; justify-content: flex-end; }
.sap-ok { color: var(--good); font-weight: 700; padding-right: 8px; }

/* How complete */
.sap-coverage { display: flex; flex-direction: column; gap: 10px; }
.sap-cov { display: flex; flex-direction: column; gap: 4px; }
.sap-cov__top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.sap-cov__top b { font-weight: 600; }
.sap-tone--good { color: var(--good); }
.sap-tone--fair { color: var(--sap-fair); }
.sap-tone--poor { color: var(--bad); }
.sap-tone-bg--good { background: var(--good); }
.sap-tone-bg--fair { background: var(--sap-fair); }
.sap-tone-bg--poor { background: var(--bad); }

/* What came in */
.sap-came { display: flex; flex-direction: column; gap: 10px; }
.sap-came form { margin: 0; }
.sap-feed { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sap-feed__item { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 13px; }
.sap-feed__item > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sap-feed__item b { font-weight: 600; }
.sap-feed__item small { color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.sap-feed__icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--surface-muted); color: var(--muted); font-weight: 700; }
.sap-feed__icon--good { background: var(--good-bg); color: var(--good); }
.sap-feed__icon--info { background: var(--accent-soft); color: var(--accent-strong); }
.sap-feed__icon--warn { background: var(--warn-bg); color: var(--warn); }
.sap-issues { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.sap-issues li { display: flex; flex-direction: column; gap: 1px; }

/* Send to SAP (sap/_sends) */
.sap-sends { display: flex; flex-direction: column; gap: 12px; }

/* Connection */
.sap-connection { display: flex; flex-direction: column; gap: 10px; padding: 12px 18px; }
.sap-connection__line { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.sap-config > summary { color: var(--accent-strong); font-size: 13px; font-weight: 500; cursor: pointer; }
.sap-config[open] > summary { margin-bottom: 12px; }
.sap-config { display: flex; flex-direction: column; gap: 16px; }
.sap-form, .sap-plant, .sap-schedule, .sap-send-settings, .sap-folder { display: grid; gap: 14px; margin: 0 0 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.sap-form { border-top: 0; padding-top: 0; }
.sap-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.sap-field { display: grid; align-content: start; gap: 6px; min-width: 0; }
.sap-field label, .sap-auth legend, .sap-optional legend { color: var(--ink); font-size: 12px; font-weight: 600; }
.sap-field .fx-input { width: 100%; min-height: 40px; margin: 0; font-size: 13px; }
.sap-field small { color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.sap-pem { font-family: var(--font-mono); font-size: 12px; resize: vertical; }
.sap-form > .fx-btn { justify-self: start; min-height: 42px; }
.sap-auth, .sap-optional { display: grid; gap: 12px; min-width: 0; margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; }
.sap-auth legend, .sap-optional legend { padding: 0 6px; font-size: 13px; }
.sap-auth__choices { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.sap-auth__choice { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; font-size: 13px; }
.sap-auth__group { display: none; gap: 12px; }
.sap-auth:has(input[value=basic]:checked) .sap-auth__group[data-auth=basic],
.sap-auth:has(input[value=oauth]:checked) .sap-auth__group[data-auth=oauth],
.sap-auth:has(input[value=certificate]:checked) .sap-auth__group[data-auth=certificate],
.sap-auth:has(input[value=api_key]:checked) .sap-auth__group[data-auth=api_key] { display: grid; }
/* SAP's sandbox has its own address (in its fields); the product service URL, the version and the server CA are not asked */
.sap-form:has(input[value=api_key]:checked) :is(.sap-field--service, .sap-field--version, .sap-ca) { display: none; }
.sap-ca > summary { color: var(--muted); font-size: 12.5px; cursor: pointer; }
.sap-ca[open] { display: grid; gap: 8px; }
.sap-optional__part { display: grid; gap: 6px; min-width: 0; }
.sap-optional__switch { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.sap-optional__url { width: 100%; min-width: 0; font-size: 12px; }
.sap-plant__row { display: flex; flex-wrap: wrap; gap: 8px; }
.sap-plant__row .fx-input { flex: 1 1 220px; min-height: 40px; }
.sap-folder__title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 600; }

.sap-about > summary { font-size: 13px; font-weight: 600; cursor: pointer; }
.sap-about p, .sap-about__fields { margin: 8px 0 0; color: var(--ink-soft); font-size: 12.5px; line-height: 1.65; }
.sap-about__fields { padding-left: 18px; }
.sap-about__route code { color: var(--ink); font-size: 11px; overflow-wrap: anywhere; }

/* Import's one line about SAP */
.im-sap-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 12px; color: var(--ink-soft); font-size: 13px; }
.im-sap-line__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.im-sap-line__dot.is-on { background: var(--good); }

@media (max-width: 1080px) {
  .sap-grid, .sap-grid--reverse { grid-template-columns: minmax(0, 1fr); }
  .sap-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .sap { padding: 16px 16px 96px; }
  .sap-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .sap-stat { padding: 12px; }
  .sap-stat__big { font-size: 22px; }
  .sap-title { font-size: 22px; }
  .sap-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 10px 12px; }
  .sap-row--head { display: none; }
  .sap-row > span { grid-column: 1; }
  .sap-row > .sap-row__part { grid-column: 1 / -1; }
  .sap-row__label { display: inline; }
  .sap-row > .sap-row__action { grid-column: 2; grid-row: 2 / span 3; align-self: center; }
  .sap-head__actions { width: 100%; }
}
@media print {
  .sap-head__actions, .sap-config, .sap-row__action { display: none; }
}

/* savings.css */
/* Savings opportunities and contract margins (SavingsOpportunitiesController, CustomerContractsController): the
   overpayment finder's rows, tiles and pills (overpayment.css), with these few additions. */
.sv-scope { display: flex; gap: 16px; font-size: var(--text-label); margin-top: 4px; }
.sv-scope a { color: var(--muted); text-decoration: none; }
.sv-scope a[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom: 2px solid currentColor; }
.sv-head { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; }
.sv-head__action { margin-left: auto; }
/* A program's name with its Sample tag. */
.sv-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
/* What the cost statement shows, opened on tap beside its button (the statement prints it too). */
.sv-note { max-width: 44em; }
.sv-note p { margin: 8px 0 0; line-height: 1.5; }
/* Savings' strip: one chip per kind (a count, the largest lead, the expert-review count; never a sum), each a filter. */
.sv-strip { display: grid; gap: 6px; margin: 0 0 var(--space-3); }
.sv-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.sv-chip { display: flex; flex-direction: column; gap: 2px; min-width: 150px; max-width: 260px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-row, 10px); color: var(--ink-soft); font-size: var(--text-small); line-height: 1.4; text-decoration: none; }
.sv-chip:hover { border-color: var(--line-strong, var(--line)); }
.sv-chip[aria-current="page"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.sv-chip strong { color: var(--ink); font-size: var(--text-label); }
.sv-chip__kind { color: var(--ink); font-weight: 600; }
.sv-chip__largest span { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sv-chip--all { justify-content: center; min-width: 0; color: var(--ink); font-weight: 600; }
.sv-chip__review { color: var(--warn); }
.sv-strip__state { margin: 0; color: var(--ink-soft); font-size: var(--text-label); }
.sv-strip__note { margin: 0; }
.sv-made summary { cursor: pointer; color: var(--muted); font-size: var(--text-label); }
.sv-filters { align-items: flex-end; }
.sv-filters__form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 0; }
.sv-filters__export { margin: 0 0 0 auto; }
.sv-row { grid-template-columns: minmax(220px, 3fr) 170px minmax(150px, 1fr); }
.sv-row__saving { text-align: right; }
.sv-row__certainty .op-certainty { white-space: nowrap; }
/* A Section 301 exclusion's end date on its row (SavingsHelper#sv_expires). */
.sv-expires { display: inline-block; padding: 0 8px; border: 1px solid color-mix(in srgb, var(--warn) 45%, var(--line)); border-radius: 999px; color: var(--warn); font-weight: 600; white-space: nowrap; }
.sv-expires--past { border-color: var(--line); color: var(--muted); }
/* The product's code isn't confident: its own marker, so the certainty pill rates only the saving. */
.sv-code-flag { display: block; width: fit-content; margin-top: 6px; padding: 1px 8px; border: 1px solid color-mix(in srgb, var(--warn) 45%, var(--line)); border-radius: 999px; color: var(--warn); font-size: var(--text-small); white-space: nowrap; }
a.sv-code-flag { text-decoration: none; }
a.sv-code-flag:hover { text-decoration: underline; }
.sv-pages { display: flex; gap: 16px; align-items: center; margin: var(--space-3) 0; font-size: var(--text-label); }
.sv-narrow { width: 7em; }
.sv-table td, .sv-table th { font-size: var(--text-label); }
.sv-status--loses-money { background: var(--bad-bg, var(--warn-bg, var(--surface-muted))); font-weight: 600; }
.sv-status--below-threshold { background: var(--warn-bg, var(--surface-muted)); }
/* A partly priced program's figure is a bound (SavingsHelper#sv_bound): the word reads as words, the figure as a figure. */
.sv-bound { color: var(--muted); font-family: var(--font-sans, inherit); font-weight: 400; }
/* A compact figure (xp_money_short: a span with the exact value in its title) keeps the tile figure's size, not a label's. */
.op-tile strong > span[title] { color: inherit; font-size: inherit; }
.sv-status--holds { background: var(--good-bg, var(--surface-muted)); }
.sv-mini { margin: 0; padding-left: 16px; }
.sv-mini small { color: var(--muted); }
.sv-forms { display: grid; gap: 12px; }
.sv-forms summary { cursor: pointer; }
.sv-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 12px; font-size: var(--text-label); }
.sv-form label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); }
.sv-form__wide { grid-column: 1 / -1; }
.sv-links { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--space-3) 0 0; }
/* A program's parts on a phone: each part a card, each figure on its own line with its label, notes under the value. */
@media (max-width: 720px) {
  table.sv-table[data-cc=parts] tr { display: block; }
  table.sv-table[data-cc=parts] th[scope=row] { margin-bottom: 6px; }
  table.sv-table[data-cc=parts] td { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 3px 0 !important; text-align: right; }
  table.sv-table[data-cc=parts] td[data-label]::before { content: attr(data-label); flex: none; color: var(--muted); font-family: var(--font-sans, inherit); font-size: 12px; font-weight: 500; text-align: left; }
  table.sv-table[data-cc=parts] td .planning-cell-note { display: block; }
  table.sv-table[data-cc=parts] td[data-label="Savings for this part"] { display: block; text-align: left; }
  table.sv-table[data-cc=parts] td[data-label="Savings for this part"]::before { display: block; margin-bottom: 2px; }
}
@media (max-width: 760px) {
  .sv-row { grid-template-columns: 1fr auto; }
  .sv-row .op-cell--amount { text-align: right; }
  .sv-chip { flex: 1 1 140px; min-width: 0; }
}

/* scenario_reports.css */
/* Saved analysis presentation only; no global print or palette overrides. */
.scenario-compare .scenario-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 16px; align-items: end; }
.scenario-picker label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.scenario-picker .fx-input { width: 100%; min-width: 0; font-size: 13px; }
.scenario-compare__notice { margin: 0; padding: 19px 22px; border: 1px solid var(--line); border-radius: 15px; color: var(--ink-soft); background: var(--surface); font-size: 13px; line-height: 1.6; }
.scenario-compare__notice--different { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 30%, var(--line)); }
.scenario-compare__notice strong { color: var(--ink); }
.scenario-compare__notice p { margin: 8px 0 0; }
.scenario-compare__notice ul { margin: 8px 0; padding-left: 19px; }
.scenario-compare__scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-card); }
.scenario-compare__scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.scenario-compare__table { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 720px; font-size: 13px; line-height: 1.5; }
.scenario-compare__table th, .scenario-compare__table td { padding: 18px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); overflow-wrap: anywhere; }
.scenario-compare__table tr > :last-child { border-right: 0; }
.scenario-compare__table tr:last-child > * { border-bottom: 0; }
.scenario-compare__table tr > :first-child { width: 190px; }
.scenario-compare__table thead th { background: var(--glass-inset, var(--surface-muted)); font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.scenario-compare__table thead th:first-child { background: var(--glass-inset, var(--surface-muted)); font-size: 12px; font-weight: 500; color: var(--muted); }
.scenario-compare__table thead a { display: block; color: var(--ink); text-decoration: none; }
.scenario-compare__table thead a:hover { color: var(--accent); text-decoration: underline; }
.scenario-compare__table tbody th { font-size: 12px; font-weight: 500; color: var(--ink-soft); background: var(--glass-surface, var(--surface)); }
.scenario-compare__table small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.55; font-weight: 400; letter-spacing: 0; }
.scenario-compare__scope { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.scenario-compare__table .scenario-compare__brief { font-size: 12px; letter-spacing: 0; margin-top: 15px; color: var(--accent); }
.scenario-compare__money td { font-size: 23px; font-weight: 650; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.scenario-compare__result td { background: var(--surface-muted); }
.scenario-compare__list { padding-left: 17px; margin: 0; display: grid; gap: 8px; }
.scenario-compare__source { overflow-wrap: anywhere; font-size: 11px; }
.scenario-compare__table details { margin-top: 10px; }
.scenario-compare__table summary { font-size: 11px; cursor: pointer; color: var(--assumed); }
.scenario-compare__table details ul { margin-top: 10px; font-size: 12px; }
@media (max-width: 900px) { .scenario-compare .scenario-picker { grid-template-columns: 1fr; gap: 14px; } .scenario-picker button { justify-self: start; } }

/* schedule_explorer.css */
.cp-schedule { color: var(--ink); }
.cp-schedule__source { color: var(--muted); font-size: 13px; line-height: 1.6; }
.cp-schedule__breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0; font-size: 13px; }
.cp-schedule__current { padding: 18px; margin: 16px 0; border: 1px solid var(--glass-outline, var(--line)); border-radius: 16px; background: var(--glass-inset, var(--surface-muted)); }
.cp-schedule__current h4 { margin: 8px 0 14px; font-size: 16px; line-height: 1.6; }
.cp-schedule__current .button_to { margin: 14px 0; }
.cp-schedule__choices { padding: 0; margin: 12px 0 20px; list-style: none; display: grid; gap: 8px; }
.cp-schedule__choice { display: grid; grid-template-columns: minmax(80px, auto) minmax(0, 1fr) 16px; gap: 14px; padding: 14px 16px; border: 1px solid var(--glass-outline, var(--line)); border-radius: 12px; background: var(--glass-inset, var(--surface-muted)); color: var(--ink); text-decoration: none; font-size: 13px; line-height: 1.6; }
.cp-schedule__choice:hover, .cp-schedule__choice:focus-visible { border-color: var(--accent); background: var(--glass-selected, var(--accent-soft)); }
.cp-schedule__choice > .mono, .cp-schedule__next { color: var(--accent); }
.cp-schedule__notes { margin: 20px 0; }
.cp-schedule__notes h4 { margin: 18px 0 10px; }
.cp-schedule__notes p { white-space: pre-line; font-size: 13px; line-height: 1.7; }
.cp-schedule-page__head { margin: 0 0 16px; }
.cp-schedule-page__title { margin: 8px 0 0; font-size: 22px; line-height: 1.3; overflow-wrap: anywhere; }
.cp-schedule__mark { margin-left: 8px; font-size: 12px; vertical-align: baseline; }
.cp-schedule__search { margin: 16px 0; }
.cp-schedule__search-row { display: flex; gap: 8px; margin-top: 6px; }
.cp-schedule__search-row .fx-input { flex: 1; min-width: 0; }
.cp-schedule__trail { display: block; color: var(--muted); font-size: 12px; }
.cp-schedule__choices--chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.cp-schedule__choices--chapters .cp-schedule__choice { grid-template-columns: 28px minmax(0, 1fr) 12px; gap: 10px; padding: 8px 12px; }
.cp-schedule__note { padding: 8px 0; border-top: 1px solid var(--line); }
.cp-schedule__note > summary { cursor: pointer; font-size: 13px; line-height: 1.6; }
.cp-schedule__note-first { color: var(--muted); }
.cp-schedule__note[open] .cp-schedule__note-first { display: none; }
@media (max-width: 600px) { .cp-schedule__choice { grid-template-columns: minmax(0, 1fr) 16px; }.cp-schedule__choice > .mono { grid-column: 1; }.cp-schedule__choice > :nth-child(2) { grid-column: 1; }.cp-schedule__next { grid-column: 2; grid-row: 1 / 3; } }
/* the chapter list keeps its one row per chapter on phones, in one column (after the rule above, which stacks lines) */
@media (max-width: 600px) {
  .cp-schedule__choices--chapters { grid-template-columns: minmax(0, 1fr); }
  .cp-schedule__choices--chapters .cp-schedule__choice > * { grid-column: auto; grid-row: auto; }
}

/* sourcing_what_ifs.css */
/* Planning > Sourcing what-if (SourcingWhatIfsController): the form, the results and the saved list. */
.sw-page { gap: var(--space-4); }
.sw-scope { margin: 0; color: var(--muted); font-size: var(--text-label); }
.sw-form { gap: var(--space-5); }
.sw-step { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sw-step__title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; padding: 0; margin-bottom: 4px; }
.sw-step__title small { font-weight: 400; }
.sw-step__num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-size: 12px; font-weight: 700; }
.sw-modes { display: flex; flex-wrap: wrap; gap: 8px; }
.sw-mode { display: inline-flex; }
.sw-mode input { position: absolute; opacity: 0; pointer-events: none; }
.sw-mode span { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: var(--text-label); cursor: pointer; background: var(--surface); }
.sw-mode input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-strong); font-weight: 600; }
.sw-mode input:focus-visible + span { outline: 2px solid var(--focus-ring, var(--accent)); outline-offset: 2px; }
.sw-panel { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-muted); }
/* Only the chosen way of picking parts is shown (all three stay usable without :has). */
.sw-step:has(.sw-mode input[value="products"]:checked) .sw-panel:not(.sw-panel--products),
.sw-step:has(.sw-mode input[value="filters"]:checked) .sw-panel:not(.sw-panel--filters),
.sw-step:has(.sw-mode input[value="saved"]:checked) .sw-panel:not(.sw-panel--saved),
.sw-step:has(.sw-mode input[value="list"]:checked) .sw-panel:not(.sw-panel--list) { display: none; }
.sw-filter { border: 0; margin: 0; padding: 0; min-width: 0; }
.sw-filter legend { font-size: var(--text-label); font-weight: 600; margin-bottom: 6px; padding: 0; }
.sw-checks { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.sw-check { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: var(--text-label); cursor: pointer; }
.sw-check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.sw-check--block { align-self: flex-start; }
.sw-field { display: flex; flex-direction: column; gap: 5px; font-size: var(--text-label); min-width: 0; }
.sw-field > span { font-weight: 500; }
.sw-field small { font-weight: 400; }
.sw-field--grow { flex: 1 1 260px; }
.sw-options { display: flex; flex-wrap: wrap; gap: 16px; }
.sw-submit { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.sw-hint { margin: 0; }
.sw-since { margin: 0; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-size: var(--text-label); }
.sw-notice { margin: 0; padding: 10px 14px; border-radius: 14px; background: var(--warn-bg); color: var(--warn); font-size: var(--text-label); }
.sw-table { width: 100%; border-collapse: collapse; font-size: var(--text-label); }
.sw-table th { text-align: left; font-size: var(--text-small); font-weight: 600; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.sw-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.sw-table td small { display: block; margin-top: 2px; font-size: var(--text-small); }
.sw-table .num { text-align: right; white-space: nowrap; }
.sw-table tr.is-selected td { background: var(--accent-soft); }
.sw-table .mono, .sw-bars .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.is-lower { color: var(--good); }
.is-higher { color: var(--warn); }
.sw-detail { display: flex; flex-direction: column; gap: var(--space-4); }
.sw-detail__title { margin: var(--space-2) 0 0; font-size: 20px; letter-spacing: -.02em; }
.sw-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sw-bars li { display: grid; grid-template-columns: minmax(140px, 220px) 1fr minmax(90px, auto); gap: 12px; align-items: center; font-size: var(--text-label); }
.sw-bars__track { height: 10px; border-radius: 999px; background: var(--surface-muted); overflow: hidden; }
.sw-bars__fill { display: block; height: 100%; border-radius: 999px; background: var(--muted); }
.sw-bars__fill.is-lower { background: var(--good); }
.sw-bars__fill.is-higher { background: var(--warn); }
.sw-bars__value { text-align: right; font-weight: 600; }
.sw-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: var(--text-label); }
.sw-source { display: inline-block; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); font-size: var(--text-small); color: var(--muted); }
.sw-effect { font-size: var(--text-small); font-weight: 600; }
.sw-warn { color: var(--warn); }
.sw-flags { border-color: var(--warn); }
.sw-today { margin: 0; font-size: var(--text-label); color: var(--muted); }
.sw-today strong { color: var(--ink); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.sw-failed { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.sw-failed p { margin: 0; }
.sw-left { display: flex; flex-direction: column; gap: var(--space-4); }
.sw-left__title { margin: 0 0 6px; font-size: var(--text-label); font-weight: 600; }
.sw-left__title small { font-weight: 400; }
@media (max-width: 640px) {
  .sw-bars li { grid-template-columns: 1fr auto; }
  .sw-bars__track { grid-column: 1 / -1; grid-row: 2; }
  .sw-table { display: block; overflow-x: auto; }
}

/* suppliers.css */
/* Supplier portal (Suppliers, a supplier, a request, the supplier's own page) and the data quality monitor. */
.sp-table-wrap { overflow-x: auto; }
.sp-table { width: 100%; border-collapse: collapse; font-size: var(--text-label); }
.sp-table th { text-align: left; font-weight: 500; padding: var(--space-3); border-bottom: 1px solid var(--line-strong); color: var(--muted); white-space: nowrap; }
.sp-table td { padding: var(--space-3); border-bottom: 1px solid var(--line); vertical-align: top; }
.sp-table td.num, .sp-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.sp-section { margin-top: var(--space-8); }
.sp-pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 0.78rem; border: 1px solid var(--line-strong); color: var(--muted); white-space: nowrap; }
.sp-pill--warn { border-color: var(--warn, #b45309); color: var(--warn, #b45309); }
.sp-pill--good { border-color: var(--good, #15803d); color: var(--good, #15803d); }
.sp-reminders { list-style: none; margin: var(--space-4) 0 0; padding: var(--space-3) var(--space-4); border-left: 3px solid var(--warn, #b45309); background: var(--surface); }
.sp-reminders li { margin: 0; }
.sp-reminders__more { list-style: none; margin: 6px 0 0; padding: 0; }
/* A request: the state beside its title, then one status line (with "Make a new link" once it is overdue or expired). */
.sp-head--title { justify-content: flex-start; align-items: center; }
.sp-request-progress { color: var(--muted); font-size: 14px; }
.sp-request-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 6px 0 0; font-size: 14px; }
.sp-request-status form { margin: 0; }
/* A part's answers in one list: answered, "I don't know" (warn) or not answered (muted). */
.sp-answers { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; row-gap: 2px; }
.sp-answers li + li::before { content: "·"; margin: 0 8px; color: var(--muted); }
.sp-answers [data-tone="good"] .sp-answer { font-weight: 600; }
.sp-answers [data-tone="good"] [aria-hidden] { color: var(--good, #15803d); }
.sp-answers [data-tone="warn"] .sp-answer { color: var(--warn, #b45309); font-weight: 600; }
.sp-answers [data-tone="muted"] .sp-answer { color: var(--muted); }
.sp-origin { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 8px; }
.sp-origin form { margin: 0; }
.sp-link-box { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; padding: var(--space-4); border: 1px solid var(--accent, #2563eb); border-radius: var(--radius-card); background: var(--surface); }
.sp-link-box input { flex: 1 1 320px; font-family: var(--font-mono, monospace); }
.sp-form-row { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: flex-end; margin-top: var(--space-4); }
.sp-facts { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.sp-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.sp-actions form { display: inline; margin: 0; }
.sp-trend { display: flex; align-items: flex-end; gap: 6px; height: 64px; margin-top: var(--space-3); }
.sp-trend__bar { flex: 0 0 28px; background: var(--accent, #2563eb); opacity: 0.75; border-radius: 3px 3px 0 0; min-height: 2px; }
.sp-trend__labels { display: flex; gap: 6px; font-size: 0.72rem; color: var(--muted); }
.sp-trend__labels span { flex: 0 0 28px; text-align: center; }
.sp-types { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.sp-type { display: inline-flex; gap: var(--space-2); align-items: center; padding: 4px 12px; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; color: inherit; font-size: var(--text-label); }
.sp-type[aria-current="true"] { border-color: var(--accent, #2563eb); color: var(--accent, #2563eb); }

/* the supplier's own page */
.sp-portal { max-width: 920px; margin: 0 auto; padding: var(--space-6) var(--space-4) var(--space-12); }
.sp-portal h1 { margin-bottom: var(--space-2); }
.sp-part { margin-top: var(--space-6); padding: var(--space-5, 20px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); }
/* A part leads with its description (what the supplier knows it by); the importer's number is second. */
.sp-part__head { display: flex; flex-direction: column; gap: 2px; }
.sp-part__no { font-weight: 500; }
.sp-question { display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, 240px); gap: var(--space-3); align-items: center; padding: var(--space-3) 0; border-top: 1px solid var(--line); }
.sp-question:first-of-type { border-top: 0; }
.sp-question label { font-weight: 500; }
.sp-question .fx-hint { margin: 2px 0 0; }
.sp-question__status { grid-column: 1 / -1; font-size: 0.8rem; color: var(--muted); min-height: 1em; }
.sp-question__status[data-state="saved"] { color: var(--good, #15803d); }
.sp-question__status[data-state="error"] { color: var(--danger, #b91c1c); }
.sp-choices { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.sp-choices label { font-weight: 400; display: inline-flex; gap: 6px; align-items: center; }
/* Each part a certificate covers on one line: the number and as much of the description as fits. */
.sp-cover { display: flex; gap: 6px; align-items: baseline; min-width: 0; font-weight: 400; margin-top: 4px; }
.sp-cover input, .sp-cover .mono { flex: none; white-space: nowrap; }
.sp-cover__desc { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
/* The company asking leads the bar; a long name gives way to "via Tarivo" (the heading below names it in full). */
.sp-requester { display: block; flex: 0 1 auto; min-width: 0; min-height: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; font-weight: 600; }
.supplier-page .topbar__reviewer { white-space: nowrap; }
@media (max-width: 640px) { .sp-question { grid-template-columns: 1fr; } }

/* On a phone each supplier is a card: name, what needs attention, the estimate figure with its caveat, the next step. */
@media (max-width: 600px) {
  .sp-table[data-suppliers], .sp-table[data-suppliers] tbody, .sp-table[data-suppliers] tr, .sp-table[data-suppliers] td { display: block; width: 100%; }
  .sp-table[data-suppliers] thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sp-table[data-suppliers] tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .sp-table[data-suppliers] td.sp-no-figure { display: none; }
  .sp-table[data-suppliers] td, .prep-page .sp-table[data-suppliers] td { padding: 3px 0; border: 0; }
  .sp-table[data-suppliers] td[data-label]::before { content: attr(data-label) " "; color: var(--muted); font-weight: 400; }
  .sp-table[data-suppliers] .sp-supplier-name { font-weight: 600; }
  .sp-table[data-suppliers] .sp-card-only { display: inline; }
  .sp-table[data-suppliers] td:last-child { padding-top: 8px; }
}

/* ui_refresh.css */
/* ClearPath: compact, result-first product workspace. Shared by every screen. */
:root { --text-h1: 34px; --text-display: 44px; --text-hero: 48px; --text-code: 30px; --radius-card: 16px; --radius-control: 9px; --gutter: 32px; }
.fx-page { padding-top: 32px; }
.fx-title { max-width: 100%; }
.fx-lede { max-width: 760px; font-size: 16px; line-height: 1.6; }
.fx-topbar { border-bottom: 1px solid var(--line); }
.fx-btn { font-size: 14px; }
.fx-input, .ob-input { font-size: 14px; }
.fx-account__menu { z-index: 60; }
.ui-eyebrow { color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: .1em; }
.ui-intro { margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.confidence-band { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid transparent; border-radius: 6px; font-size: 11px; font-weight: 600; line-height: 1.3; white-space: nowrap; color: var(--ink-soft); background: var(--surface-muted); }
.confidence-band--very-high, .confidence-band--high { background: var(--good-bg); color: var(--good); }
.confidence-band--medium { background: var(--warn-bg); color: var(--warn); }
.confidence-band--low { background: var(--warn-bg); color: var(--warn); border-color: var(--warn); }
.confidence-band { cursor: default; }
.confidence-tooltip { position: fixed; z-index: 1000; width: max-content; max-width: min(260px, calc(100vw - 16px)); padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); background: var(--surface); box-shadow: var(--shadow-menu); font-size: 12px; line-height: 1.5; pointer-events: none; }
.pl { grid-template-columns: 340px minmax(0, 1fr); }
.pl__head { padding: 24px 18px 16px; gap: 14px; }
.pl__title { font-size: 20px; }
.pl__listframe { padding: 8px 10px 24px; }
.ob-wrap { gap: 20px; }
.ob-hero { gap: 16px; }
.ob-title.fx-product__title { font-size: clamp(24px, 3.2cqi, 34px); line-height: 1.2; max-width: 900px; }
.ob-product { gap: 12px; }
.fx-crumbs { font-size: 12px; margin-bottom: 12px; }
.product-edit { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.product-edit > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; cursor: pointer; font-size: 13px; list-style: none; }
.product-edit > summary::-webkit-details-marker { display: none; }
.product-edit .ob-box { padding: 4px 18px 20px; border: 0; box-shadow: none; }
.product-edit[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.ob-box { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.ob-label { font-size: 13px; }
.ob-input--main { font-size: 18px; min-height: 56px; }
.ob-example, .ob-hint { font-size: 12px; }
.ob-grid { gap: 16px; }
.ob-card { gap: 18px; }
.ob-card__row { grid-template-columns: minmax(0,1fr) minmax(0,1fr); grid-template-areas: "hts duty"; align-items: start; gap: 16px; }
.ob-card__row:has(> .ob-hts[data-open]), .ob-card__row:has(> .ob-duty[data-open]) { grid-template-columns: minmax(0,1fr) minmax(0,1fr); grid-template-areas: "hts duty"; }
.ob-fold { border: 1px solid var(--line-strong); box-shadow: none; border-radius: 14px; min-width: 0; overflow: hidden; }
.ob-face { padding: 22px; cursor: default; min-height: 242px; }
.ob-hts .ob-face { background: var(--surface); color: var(--ink); }
.ob-eyebrow { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.ob-face__more { width: 32px; height: 32px; justify-content: center; border: 0; border-radius: 50%; padding: 4px; background: transparent; cursor: pointer; }
.ob-face__more:hover { background: var(--surface-muted); }
@media (pointer: coarse) { .ob-face__more { width: 44px; height: 44px; } }
.ob-code { font-size: clamp(22px,3.5cqi,32px); line-height: 1.2; margin-top: 22px; }
.ob-code-desc { font-size: 13px; line-height: 1.5; max-height: 60px; overflow: auto; }
.ob-badges { margin-top: 14px; }
.ob-deciding { font-size: 11px; color: var(--muted); }
.ob-why-line { font-size: 12px; line-height: 1.5; margin-top: 14px; }
.ob-total { font-size: clamp(34px,5.7cqi,52px); line-height: 1.1; }
.ob-total-sub { font-size: 13px; }
.ob-total-note { font-size: 11px; }
.ob-legend { font-size: 11px; }
.ob-fold__body { padding: 20px; }
.ob-section.rs__assumes, .ob-section.rs__notes { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin: 0; background: var(--surface); }
.ob-subhead { font-size: 14px; }
.ob-subhead .fx-hint { display: inline-block; font-weight: 400; margin-left: 8px; font-size: 12px; }
.rs__assume-list { margin-top: 12px; }
.rs__assume { padding: 12px 0; font-size: 13px; background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.rs__assume--decides { border-left: 0; padding-left: 0; }
.rs__assume-flag { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.rs__assume-if, .rs__assume-other { font-size: 12px; }
.rs__assume-change > summary { min-height: 30px; padding: 4px 12px; border-color: var(--line-strong); }
form[data-autosave] button[type="submit"] { font-size: 12px; }
form[data-autosave="saving"]::after { content: "Saving…"; font-size: 12px; color: var(--muted); }
.pl--catalog { display: block; }
.pl--catalog .pl__side { height: auto; min-height: calc(100vh - var(--topbar-height)); position: static; border: 0; }
.pl--catalog .pl__head { padding: 28px var(--gutter) 18px; }
.pl--catalog .pl__search { display: grid; grid-template-columns: 2fr 1fr; }
.pl--catalog .pl__listframe { padding: 0 var(--gutter) 32px; }
.catalog-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.catalog-table { width: 100%; min-width: 850px; }
.catalog-table td { padding: 16px; font-size: 13px; }
.catalog-table th { padding: 12px 16px; background: var(--surface-muted); font-size: 11px; }
.catalog-table > tbody > tr:hover > td { background: var(--surface-muted); }
.catalog-product { font-weight: 500; display: block; max-width: 450px; text-decoration: none; }
.catalog-id { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
@media(max-width:1100px) and (min-width:901px) { .pl { grid-template-columns: 290px minmax(0,1fr); } .ob-card__row, .ob-card__row:has(> .ob-hts[data-open]), .ob-card__row:has(> .ob-duty[data-open]) { grid-template-columns: 1fr; grid-template-areas:"hts" "duty"; } }
@media(max-width:900px) { .pl { display: block; } .pl__head { padding: 20px; }  .pl__listframe { padding: 8px 12px 24px; } .pl--catalog .pl__side { display: flex; } .pl--catalog .pl__search { display: flex; }    }
@media(max-width:600px) { :root { --gutter:20px; --text-h1:28px; } .ob-card__row, .ob-card__row:has(> .ob-hts[data-open]), .ob-card__row:has(> .ob-duty[data-open]) { grid-template-columns:1fr; grid-template-areas:"hts" "duty"; } .ob-face { min-height:220px; } .ob-subhead .fx-hint { display:block; margin:4px 0 0; } .ob-box { padding:18px; } }
@media print { .confidence-tooltip, .product-edit { display:none; } .confidence-band { border:1px solid #ccc; } .ob-card__row { display:block; } }
/* Every result face is a generous click target; its controls remain independently focusable. */
.ob-fold[data-upgraded="true"], .ob-fold[data-upgraded="true"] > .ob-face { cursor: pointer; }
.ob-fold[data-upgraded="true"] > .ob-face { transition: background-color .15s, box-shadow .15s; }
.ob-fold[data-upgraded="true"] :is(form, details, [contenteditable]) { cursor: auto; }
.ob-fold[data-upgraded="true"] > .ob-face:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.ob-fold[data-upgraded="true"] > .ob-face:focus-within { box-shadow: inset 0 0 0 2px var(--focus-ring, var(--accent)); }
.catalog-remove, .catalog-clear { border:0; background:transparent; color:var(--muted); cursor:pointer; padding:6px; }
.catalog-save-view { display:grid; gap:10px; font-size:12px; }
.catalog-muted { color:var(--muted); }
.catalog-unit { color:var(--muted); font-size:.85em; }
.catalog-bulk { display:flex; align-items:center; flex-wrap:wrap; gap:10px; padding:14px; margin-bottom:12px; background:var(--accent-soft); border:1px solid var(--line); border-radius:12px; font-size:12px; }
.catalog-bulk[hidden] { display:none; }
.catalog-bulk .fx-input { width:min(270px,100%); }
.catalog-select { width:42px; }
.catalog-select input { width:16px; height:16px; accent-color:var(--accent); }
.catalog-status { font-size:11px; color:var(--muted); }
.catalog-status--processing { color:var(--accent); }
.catalog-status--outdated, .catalog-status--failed, .catalog-status--candidate { color:var(--warn); }
@media(max-width:900px) { .catalog-bulk { align-items:stretch; } }
@media(prefers-reduced-motion:reduce) { .ob-fold[data-upgraded="true"] > .ob-face { transition:none; } }

/* zz_glass.css */
/* ClearPath material system. Every screen shares the same three layers:
   canvas, frosted card, and raised glass. Color communicates action or status. */
:root {
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #edf2fb; --surface: #fdfefe; --surface-muted: #edf1f6;
  --ink: #243248; --ink-soft: #3e4e65; --muted: #4b5c74; --faint: #52647c;
  --line: rgba(88, 109, 140, .16); --line-strong: rgba(88, 109, 140, .28); --control-border: #8492a5;
  --accent: #3268c7; --accent-ink: #ffffff; --accent-soft: #e6edfb; --accent-strong: #2454ad;
  --good: #246b50; --good-bg: #e8f3ed; --warn: #875914; --warn-bg: #fbf2e3;
  --bad: #b13e39; --bad-bg: #fbebea;
  --assumed: #66548a; --assumed-bg: #f1eef7; --assumed-line: #d3cce1;
  --inferred: #52657c; --inferred-bg: #edf1f6; --supplied: #52657c; --supplied-bg: #edf1f6;
  /* Legacy component aliases: decoration uses one accent across destinations. */
  --brand-blue: var(--accent); --brand-blue-soft: var(--accent-soft);
  --brand-teal: var(--accent); --brand-teal-soft: var(--accent-soft);
  --brand-violet: var(--accent); --brand-violet-soft: var(--accent-soft);
  --brand-coral: var(--accent); --brand-coral-soft: var(--accent-soft); --brand-icon-ink: var(--accent-ink);
  --hero: #f1f5fb; --hero-ink: var(--ink); --hero-soft: var(--ink-soft); --hero-muted: var(--muted);
  --hero-line: var(--line); --hero-edge: var(--line); --hero-raised: #eaf0f8;
  --hero-line-strong: var(--line-strong); --hero-control: var(--control-border);
  --hero-accent: var(--accent); --hero-accent-ink: var(--accent-ink); --hero-accent-soft: var(--accent-soft); --hero-accent-strong: var(--accent-strong);
  --hero-good: var(--good); --hero-good-bg: var(--good-bg); --hero-warn: var(--warn); --hero-warn-bg: var(--warn-bg); --hero-bad: var(--bad); --hero-bad-bg: var(--bad-bg);
  --hero-301: #98692f; --hero-layer-general: #76899f;
  --layer-general: #76899f; --layer-301: #98692f; --layer-other: #6477a7;
  --scrim: rgba(31, 48, 76, .22); --focus-backdrop: rgba(223, 231, 244, .48); --focus-backdrop-solid: #e6ecf5;
  --glass-surface: rgba(255, 255, 255, .42);
  --glass-raised: rgba(255, 255, 255, .76);
  --glass-inset: rgba(220, 233, 253, .42);
  --glass-selected: rgba(194, 216, 255, .62);
  --glass-nav: rgba(243, 248, 255, .54);
  --glass-border: rgba(255, 255, 255, .88);
  --glass-outline: rgba(91, 112, 148, .18);
  --glass-blur: 40px; --glass-saturation: 155%; --glass-focus-blur: 24px;
  --glass-sheen: linear-gradient(135deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .21) 30%, rgba(255, 255, 255, .04) 53%, rgba(194, 212, 250, .13));
  --glass-mint: #267970; --glass-lilac: #7561ae;
  --glass-icon-tint: rgba(76, 136, 224, .14);
  --glass-wash: rgba(94, 146, 245, .40);
  --glass-wash-secondary: rgba(91, 199, 181, .30);
  --glass-wash-tertiary: rgba(172, 137, 233, .30);
  --glass-highlight: inset 0 1px 0 #ffffff, inset 1px 0 0 rgba(255, 255, 255, .58), inset -1px -1px 0 rgba(255, 255, 255, .30);
  --glass-shadow: 0 14px 36px -18px rgba(38, 63, 103, .25), 0 4px 10px -6px rgba(36, 57, 90, .14);
  --shadow-card: var(--glass-highlight), var(--glass-shadow);
  --shadow-input: inset 0 1px 2px rgba(34, 56, 88, .03), 0 1px 0 rgba(255, 255, 255, .7);
  --shadow-menu: var(--glass-highlight), 0 24px 70px -22px rgba(36, 57, 90, .28), 0 0 0 1px var(--glass-outline);
  --text-h1: 36px; --text-display: 48px; --text-hero: 50px; --text-code: 32px;
  --radius-card: 24px; --radius-row: 16px; --radius-control: 12px;
  --gutter: 36px; --topbar-height: 76px; --motion: 180ms;
}
:root[data-theme="dark"] {
  --bg: #141c29; --surface: #263142; --surface-muted: #303d50;
  --ink: #eff3fa; --ink-soft: #d3ddec; --muted: #b1bfd3; --faint: #a9b9d0;
  --line: rgba(181, 200, 230, .15); --line-strong: rgba(181, 200, 230, .28); --control-border: #8395af;
  --accent: #a5c5ff; --accent-ink: #142c50; --accent-soft: #304767; --accent-strong: #c4d9ff;
  --good: #92dbb6; --good-bg: #244437; --warn: #efd099; --warn-bg: #433b2e;
  --bad: #ffb1ac; --bad-bg: #49343c;
  --assumed: #cbbbea; --assumed-bg: #37364d; --assumed-line: #676184;
  --inferred: #bccbde; --inferred-bg: #2b3b51; --supplied: #bccbde; --supplied-bg: #2b3b51;
  --hero: #29364b; --hero-raised: #33435a; --hero-301: #eac591; --hero-layer-general: #a5b9d2;
  --layer-general: #a5b9d2; --layer-301: #eac591; --layer-other: #bbbee6;
  --scrim: rgba(6, 13, 27, .5); --focus-backdrop: rgba(10, 18, 34, .52); --focus-backdrop-solid: #182132;
  --glass-surface: rgba(43, 56, 77, .46);
  --glass-raised: rgba(45, 59, 80, .86);
  --glass-inset: rgba(22, 34, 53, .38);
  --glass-selected: rgba(63, 86, 125, .68);
  --glass-nav: rgba(27, 39, 58, .72);
  --glass-border: rgba(208, 224, 252, .20);
  --glass-outline: rgba(151, 175, 211, .18);
  --glass-wash: rgba(66, 119, 205, .38); --glass-wash-secondary: rgba(59, 158, 145, .24); --glass-wash-tertiary: rgba(128, 99, 197, .29);
  --glass-sheen: linear-gradient(135deg, rgba(190, 221, 255, .14), rgba(190, 221, 255, .025) 45%, rgba(151, 181, 247, .05));
  --glass-mint: #98dace; --glass-lilac: #c6b4f1; --glass-icon-tint: rgba(127, 178, 252, .12);
  --glass-highlight: inset 0 1px 0 rgba(218, 232, 255, .24), inset 1px 0 0 rgba(218, 232, 255, .10), inset 0 -1px 0 rgba(218, 232, 255, .06);
  --glass-shadow: 0 8px 28px -16px rgba(0, 0, 0, .34), 0 2px 6px -3px rgba(0, 0, 0, .2);
  --shadow-input: inset 0 1px 3px rgba(0, 0, 0, .1);
  --shadow-menu: var(--glass-highlight), 0 24px 70px -22px rgba(0, 0, 0, .6), 0 0 0 1px var(--glass-outline);
}

body {
  background-color: var(--bg);
  background-image: radial-gradient(ellipse at 0% 0%, var(--glass-wash), transparent 52%),
    radial-gradient(ellipse at 100% 18%, var(--glass-wash-secondary), transparent 55%),
    radial-gradient(ellipse at 35% 100%, var(--glass-wash-tertiary), transparent 58%);
  background-attachment: fixed;
  letter-spacing: -.012em;
}
::selection { background: var(--accent-soft); color: var(--ink); }
:is(input, select, textarea, button) { font: inherit; }
:is(input[type="checkbox"], input[type="radio"]) { accent-color: var(--accent); }
:focus-visible { outline-width: 3px; outline-offset: 3px; }
:root:not([data-theme="dark"]) :is(.fx-dark, .fx-card--dark) { color-scheme: light; }
.fx-page { padding-top: 40px; padding-bottom: 64px; }
.fx-wrap { gap: 28px; }
.fx-title { font-weight: 650; letter-spacing: -.045em; line-height: 1.13; }
.fx-h2 { font-weight: 650; letter-spacing: -.025em; }
.fx-lede { color: var(--muted); font-size: 16px; line-height: 1.6; }
.fx-hint { line-height: 1.55; }
.ui-eyebrow { color: var(--muted); font-size: 11px; letter-spacing: .11em; }
.fx-crumbs { margin-bottom: 8px; }

/* Floating controls use the denser glass material; selection never changes the page palette. */
.fx-topbar {
  height: var(--topbar-height); gap: 24px; background: var(--glass-sheen), var(--glass-nav);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 1px 0 var(--line), 0 8px 26px -24px rgba(27, 46, 78, .4);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(175%);
  backdrop-filter: blur(var(--glass-blur)) saturate(175%);
}
.fx-brand { gap: 9px; color: var(--ink); font-size: 22px; font-weight: 750; letter-spacing: -.05em; white-space: nowrap; }
/* The TARIVO logo: its navy follows currentColor, lightened in the dark theme; lime and cyan stay as drawn. */
.fx-brand__logo { display: block; flex: none; width: auto; height: 1.3em; color: #022049; }
.fx-brand__logo--mark { display: none; }
:root[data-theme="dark"] .fx-brand__logo { color: #EEF3FB; }
@media (max-width: 600px) {
  /* the workspace's one-row top bar has no room for the wordmark beside the sample pill: the mark alone */
  .ws-topbar .fx-brand__logo--full { display: none; }
  .ws-topbar .fx-brand__logo--mark { display: block; }
}
.fx-nav { align-self: center; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--glass-border); border-radius: 17px; background: var(--glass-inset); box-shadow: var(--glass-highlight); }
.fx-nav__link {
  --nav-tone: var(--brand-blue); --nav-tint: var(--brand-blue-soft);
  min-height: 42px; padding: 0 15px; border: 1px solid transparent; border-radius: 13px;
  font-size: 14px; font-weight: 550; color: var(--ink-soft);
  transition: background-color var(--motion) var(--ease), color var(--motion) var(--ease), box-shadow var(--motion) var(--ease);
}
.fx-nav__link:hover { background: var(--surface-muted); color: var(--ink); }
.fx-nav__icon { width: 17px; height: 17px; flex: none; color: var(--nav-tone); opacity: .85; }
.fx-nav__link[data-nav-tab="import"] .fx-nav__icon { color: var(--glass-mint); }
.fx-nav__link[data-nav-tab="planning"] .fx-nav__icon { color: var(--glass-lilac); }
.fx-nav__link[aria-current="page"] {
  color: var(--accent-strong); background: var(--glass-sheen), var(--glass-raised); border-color: var(--glass-border);
  box-shadow: var(--shadow-card), 0 0 0 1px var(--glass-outline); font-weight: 600;
}
.fx-nav__link[aria-current="page"] .fx-nav__icon { color: inherit; opacity: 1; }
.fx-nav__link[aria-current="page"]::after { display: none; }
.fx-nav__link:focus-visible { border-radius: 13px; outline-offset: 2px; }
.fx-nav__dot { width: 6px; height: 6px; transform: none; }
.fx-search-trigger {
  height: 42px; padding: 0 12px; gap: 10px; border-radius: 13px;
  border-color: var(--line-strong); color: var(--muted); background: var(--glass-sheen), var(--glass-surface); box-shadow: var(--glass-highlight);
}
.fx-search-trigger:hover { opacity: 1; color: var(--ink); background: var(--surface); border-color: var(--control-border); }
.fx-search-trigger kbd { font-size: 11px; padding: 3px 5px; border-radius: 5px; background: var(--surface-muted); }
.fx-account__button { padding: 3px; }
.fx-account__button:hover, .fx-account[open] .fx-account__button { background: var(--surface-muted); }
.fx-account__avatar { width: 34px; height: 34px; color: var(--accent-strong); background: var(--accent-soft); border: 1px solid var(--line); }
.fx-account .fx-account__menu {
  top: calc(100% + 15px); width: 312px; padding: 10px; background: var(--glass-sheen), var(--glass-raised);
  border-color: var(--glass-border); border-radius: 20px; box-shadow: var(--shadow-menu), 0 0 0 1px var(--line);
  max-height: calc(100dvh - var(--topbar-height) - 24px); overflow-y: auto;
  -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
}
.fx-account__who { padding: 12px 12px 16px; }
.fx-account__email { font-size: 15px; letter-spacing: -.02em; }
.fx-account__org { margin-top: 5px; line-height: 1.4; }
.fx-account__heading { margin-top: 12px; font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.fx-account__list a, .fx-account__item { border-radius: 10px; }
.fx-account__list a:hover, .fx-account__item:hover { background: var(--accent-soft); }

/* Shared surfaces, controls and data. Dividers stay quiet; form boundaries and
   keyboard focus retain the contrast needed to identify interactive elements. */
.fx-panel, .card { background: var(--glass-sheen), var(--glass-surface); border-color: var(--glass-border); box-shadow: var(--shadow-card), 0 0 0 1px var(--glass-outline); padding: 28px; backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation)); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation)); }
.fx-panel--muted { background: var(--surface-muted); box-shadow: var(--glass-highlight); }
.fx-empty { background: var(--glass-sheen), var(--glass-surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); padding: 40px; }
:root .fx-card--dark { border-color: var(--hero-edge); box-shadow: var(--shadow-card); }
.fx-btn {
  min-height: 44px; border-radius: var(--radius-control); border-color: var(--control-border);
  background: var(--glass-sheen), var(--glass-raised); font-weight: 550; box-shadow: var(--glass-highlight), 0 2px 5px -3px rgba(27, 46, 78, .15);
  transition: background-color var(--motion) var(--ease), border-color var(--motion) var(--ease), box-shadow var(--motion) var(--ease), transform var(--motion) var(--ease);
}
.fx-btn:hover { opacity: 1; background: var(--surface-muted); border-color: var(--ink-soft); }
.fx-btn--primary, .fx-btn--accent { background: linear-gradient(155deg, var(--accent), var(--accent-strong)); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 5px 13px -7px var(--accent); }
.fx-btn--primary:hover, .fx-btn--accent:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-ink); }
.fx-btn--invert { background: var(--hero-accent); border-color: var(--hero-accent); color: var(--hero-accent-ink); }
.fx-btn--invert:hover { background: var(--hero-accent-strong); border-color: var(--hero-accent-strong); color: var(--hero-accent-ink); }
.fx-btn--quiet { background: transparent; border-color: transparent; box-shadow: none; }
.fx-btn--quiet:hover { background: var(--surface-muted); border-color: transparent; }
.fx-btn:disabled { opacity: .5; box-shadow: none; }
.fx-input, .ob-input { min-height: 46px; background: var(--glass-sheen), var(--glass-raised); line-height: 1.5; transition: border-color var(--motion), box-shadow var(--motion); }
.fx-input:focus-visible, .ob-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; box-shadow: 0 0 0 4px var(--accent-soft); }
.fx-input::placeholder, .ob-input::placeholder { color: var(--faint); }
.fx-label { font-size: 13px; font-weight: 600; }
.fx-subtabs { gap: 5px; padding: 5px; background: var(--surface-muted); border: 1px solid var(--line); border-radius: 15px; width: fit-content; max-width: 100%; }
.fx-subtabs__link { min-height: 38px; border: 1px solid transparent; border-radius: 10px; padding: 0 16px; font-size: 13px; }
.fx-subtabs__link[aria-current="page"] { background: var(--surface); color: var(--accent-strong); border-color: var(--line); box-shadow: 0 1px 4px rgba(27, 46, 78, .07); }
.fx-subtabs__link:hover { border-color: transparent; background: var(--glass-sheen), var(--glass-surface); }
.fx-table thead th, .duty-table thead th { font-size: 12px; font-weight: 600; padding-top: 14px; padding-bottom: 14px; }
.fx-table tbody td, .duty-table tbody td { padding-top: 16px; padding-bottom: 16px; }
.fx-state, .ob-badge, .pill { font-weight: 550; }
.confidence-band { border-radius: 8px; padding: 5px 9px; }
.confidence-tooltip { border-radius: 12px; background: var(--glass-sheen), var(--glass-raised); padding: 12px 14px; box-shadow: var(--shadow-menu); }
.fx-dialog, .command-bar__panel, .fx-combo__list { background: var(--glass-sheen), var(--glass-raised); border-color: var(--line); box-shadow: var(--shadow-menu); }
.fx-dialog, .command-bar__panel { border-radius: 24px; }
.fx-dialog::backdrop, .command-bar__backdrop { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.command-bar__input { color: var(--ink); font-size: 16px; height: 68px; }
.command-bar__item { min-height: 48px; }
.command-bar__item--active { box-shadow: inset 0 0 0 1px var(--line); }
.flash { border: 1px solid var(--line); box-shadow: var(--shadow-card); }

/* Result cards are one material. Their icons and labels explain their roles. */
.ob-hts, .ob-duty {
  border: 1px solid var(--glass-border); border-radius: var(--radius-card);
  background: var(--glass-sheen), var(--glass-surface); box-shadow: var(--shadow-card), 0 0 0 1px var(--glass-outline);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation)); backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
}
.ob-hts > .ob-face, .ob-duty > .ob-face { background: transparent; }
.ob-card-symbol { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 11px; color: var(--accent); background: var(--glass-sheen), var(--glass-raised); border: 1px solid var(--glass-border); box-shadow: var(--shadow-card); }
.ob-card-symbol svg { width: 19px; height: 19px; }
.ob-hts .ob-card-symbol { background: var(--glass-icon-tint); }
.ob-duty .ob-card-symbol { color: var(--glass-mint); background: color-mix(in srgb, var(--glass-mint) 13%, transparent); }
.ob-face .ob-face__identity { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.ob-face .ob-face__identity .ob-eyebrow { color: var(--muted); font-weight: 600; }
.ob-fold[data-upgraded="true"] > .ob-face:hover { background: var(--glass-inset); box-shadow: none; }
.ob-focus-dialog .ob-fold > .ob-face { border-bottom: 1px solid var(--line); }
.product-edit { background: var(--glass-sheen), var(--glass-surface); box-shadow: var(--glass-highlight); }
.ob-box { border-color: var(--glass-outline); box-shadow: var(--shadow-card); }
.catalog-table th { border-bottom: 1px solid var(--line); }

/* Catalog and the persistent product list share the app's quiet control language. */
.pl__side { background: var(--glass-sheen), var(--glass-surface); }
.pl__head { gap: 16px; padding: 28px 20px 20px; }
.pl__title { font-size: 23px; font-weight: 650; letter-spacing: -.035em; }
.pl--catalog .pl__side { background: transparent; }
.pl--catalog .pl__head { max-width: calc(var(--content) + 2 * var(--gutter)); width: 100%; margin: 0 auto; border-bottom: 0; padding-top: 40px; gap: 20px; }
.pl--catalog .pl__title { font-size: var(--text-h1); font-weight: 650; }
.pl--catalog .pl__listframe { width: 100%; max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; padding-bottom: 48px; }
.catalog-scroll { background: var(--glass-sheen), var(--glass-surface); border-color: var(--line); border-radius: 20px; box-shadow: var(--shadow-card); }
.catalog-table { border-spacing: 0; }
.catalog-table th { background: var(--surface-muted); font-size: 12px; font-weight: 600; padding: 16px; color: var(--muted); }
.catalog-table td { padding: 20px 16px; font-size: 14px; vertical-align: middle; }
.catalog-table th:first-child, .catalog-table td:first-child { padding-left: 20px; }
.catalog-table th:last-child, .catalog-table td:last-child { padding-right: 20px; }
.catalog-table tbody tr:last-child td { border-bottom: 0; }
/* Product-row hover must not paint the evidence tables nested inside an expanded row. */
.catalog-table > tbody > tr:hover > td { background: var(--accent-soft); }
.catalog-product { font-weight: 550; line-height: 1.45; color: var(--ink); }
.catalog-product:hover { color: var(--accent); }
.catalog-id { font-size: 12px; margin-top: 6px; }
.catalog-status { font-size: 12px; line-height: 1.45; }
.catalog-remove, .catalog-clear { min-width: 32px; min-height: 32px; border-radius: 8px; }
.catalog-remove:hover, .catalog-clear:hover { background: var(--surface-muted); color: var(--ink); }
.catalog-bulk { border-radius: 15px; padding: 16px; font-size: 13px; border-color: var(--line-strong); }

/* Secondary screens use the same materials as product cards. */
.planning-workspace .planning-eyebrow { color: var(--muted); }
.planning-tabs a[aria-current="page"] { color: var(--accent); background: var(--glass-selected); border-color: var(--glass-outline); }
.planning-workspace .planning-hero, .overview-page .planning-hero,
.planning-workspace .planning-portfolio .xp-card,
.planning-workspace .xp-levers, .planning-workspace .xp-plan, .planning-workspace .planning-saved,
.im-page .im-entry-card.im-upload, .im-page .im-entry-card.im-paste,
.change-card, .change-card--cost {
  background: var(--glass-sheen), var(--glass-surface); border: 1px solid var(--glass-border); box-shadow: var(--shadow-card), 0 0 0 1px var(--glass-outline);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation)); backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
}
.planning-scenario-totals { background: var(--glass-inset); }
.planning-workspace .xp-bars, .planning-workspace .xp-bars[data-xp=by-family], .planning-workspace .xp-lever {
  background: var(--glass-sheen), var(--glass-surface); border: 1px solid var(--glass-outline); box-shadow: var(--shadow-card);
}
.planning-caution { border: 1px solid var(--line); }
.im-page .im-upload .im-entry-icon, .im-page .im-paste .im-entry-icon { color: var(--accent); background: var(--glass-sheen), var(--glass-raised); }
.im-page .im-sample-choice--planning { background: var(--glass-inset); border-color: var(--line); }
.change-card__meta > span, .change-card--cost .change-card__meta > span { color: var(--muted); }
.changes-page .change-card__meta > span { padding: 3px 8px; border-radius: 6px; background: var(--glass-inset); }
.changes-page .change-empty { border-style: solid; background: var(--glass-sheen), var(--glass-surface); }

/* UX redesign: an overflow menu instead of a clipped, scrolling strip. Narrower than every tab: Past entries, Changes and
   the Audit trail go under "More"; on a phone one menu, named by the current page, lists every destination. */
.fx-navmore { display: none; position: relative; }
.fx-navmore > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.fx-navmore > summary::-webkit-details-marker { display: none; }
.fx-navmore__current { display: none; }
.fx-navmore__button--active { color: var(--accent-strong); background: var(--glass-sheen), var(--glass-raised); border-color: var(--glass-border); box-shadow: var(--shadow-card), 0 0 0 1px var(--glass-outline); font-weight: 600; }
.fx-navmore__list { position: absolute; top: calc(100% + 12px); right: 0; z-index: 60; min-width: 220px; margin: 0; padding: 8px; list-style: none; background: var(--surface); -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur)); border: 1px solid var(--glass-border); border-radius: 16px; box-shadow: var(--shadow-menu), 0 0 0 1px var(--line); }
.fx-navmore__list a { display: flex; min-height: 44px; align-items: center; padding: 0 12px; border-radius: 10px; color: var(--ink-soft); font-size: 14px; font-weight: 550; text-decoration: none; }
.fx-navmore__list a:hover { background: var(--surface-muted); color: var(--ink); }
.fx-navmore__list a.fx-navmore__link--current { color: var(--accent-strong); background: var(--accent-soft); font-weight: 600; }
/* UX structure (2026-10-01): five areas fit the bar, so there is no "More" overflow on a desktop; on a phone the one
   menu lists the areas, then search (or Ask Tarivo) and Settings. */
.fx-navmore__item--extra { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.fx-navmore__item--extra + .fx-navmore__item--extra { border-top: 0; margin-top: 0; padding-top: 0; }
.fx-navmore__ask { display: flex; width: 100%; min-height: 44px; align-items: center; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--ink-soft); font: inherit; font-size: 14px; font-weight: 550; cursor: pointer; text-align: left; }
.fx-navmore__ask:hover { background: var(--surface-muted); color: var(--ink); }
@media (max-width: 1500px) {
  .fx-topbar { gap: 16px; }
  .fx-nav__link { padding: 0 11px; }
  .fx-account__menu { max-height: calc(100dvh - 80px); }
}
@media (max-width: 900px) {
  .fx-nav { display: none; }
  .fx-navmore { display: block; margin-left: auto; }
  .fx-navmore__current { display: inline; max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .fx-navmore__label { display: none; }
  .fx-navmore__button { border-color: var(--glass-border); background: var(--glass-sheen), var(--glass-surface); }
  .fx-navmore__list { position: fixed; top: calc(var(--topbar-height) - 6px); left: var(--gutter); right: var(--gutter); min-width: 0; }
}
@media (max-width: 720px) {
  :root { --gutter: 20px; --text-h1: 30px; --text-display: 38px; --text-hero: 42px; --text-code: 28px; --radius-card: 18px; }
  .fx-brand { font-size: 19px; }
  .fx-page { padding-top: 28px; padding-bottom: 44px; }
  .fx-wrap { gap: 24px; }
  .fx-panel, .card { padding: 22px; }
  .fx-empty { padding: 28px 22px; }
  .fx-search-trigger { width: 42px; min-width: 42px; padding: 0; }
  .fx-search-trigger__text, .fx-search-trigger kbd, .fx-account__chev { display: none; }
  .fx-account__menu { top: calc(100% + 10px); }
  .pl--catalog .pl__head { padding-top: 28px; }
  .catalog-table td { padding-top: 18px; padding-bottom: 18px; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root, :root[data-theme="dark"] { --glass-surface: var(--surface); --glass-raised: var(--surface); --glass-inset: var(--surface-muted); --glass-selected: var(--accent-soft); --glass-nav: var(--bg); --glass-sheen: none; }
  .fx-topbar { background: var(--bg); }
  .fx-account__menu, .fx-dialog, .command-bar__panel { background: var(--surface); }
}
@media (prefers-reduced-transparency: reduce) {
  :root, :root[data-theme="dark"] { --glass-surface: var(--surface); --glass-raised: var(--surface); --glass-inset: var(--surface-muted); --glass-selected: var(--accent-soft); --glass-nav: var(--bg); --glass-blur: 0px; --glass-sheen: none; }
  body { background-image: none; }
  .fx-dialog::backdrop, .command-bar__backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-btn, .fx-nav__link, .fx-input, .ob-input { transition: none; }
  .fx-btn:active { transform: none; }
  body { background-attachment: scroll; }
}
@media (prefers-contrast: more) {
  :root, :root[data-theme="dark"] { --line: var(--control-border); --line-strong: var(--control-border); }
  .fx-nav__link[aria-current="page"] { outline: 1px solid var(--accent); outline-offset: -1px; }
}
@media print {
  :root, :root[data-theme="dark"] {
    --bg: #ffffff; --surface: #ffffff; --surface-muted: #f4f4f4; --ink: #000000; --ink-soft: #222222; --muted: #444444;
    --glass-surface: #ffffff; --glass-raised: #ffffff; --glass-inset: #f4f4f4; --glass-selected: #eeeeee; --glass-outline: #cccccc; --glass-border: #cccccc; --glass-blur: 0px; --glass-sheen: none; --glass-highlight: none; --glass-shadow: none;
    --hero: #ffffff; --hero-ink: #000000; --hero-soft: #222222; --hero-muted: #444444; --hero-edge: #cccccc;
    --accent: #2454ad; --accent-soft: #edf1f6; --accent-ink: #ffffff; --accent-strong: #2454ad;
    --good: #246b50; --good-bg: #edf5ef; --warn: #875914; --warn-bg: #fbf2e3;
    --bad: #b13e39; --bad-bg: #fbebea; --assumed: #66548a; --assumed-bg: #f1eef7;
  }
  body { background: #ffffff; }
  .fx-panel, .card, .fx-empty, .catalog-scroll, :root .fx-card--dark { box-shadow: none; border-color: #cccccc; }
  .ob-hts > .ob-face, .ob-duty > .ob-face { background: #ffffff; }
  .planning-workspace .planning-hero, .overview-page .planning-hero,
  .planning-workspace .planning-portfolio .xp-card,
  .planning-workspace .xp-levers, .planning-workspace .xp-plan, .planning-scenario-totals,
  .planning-workspace .planning-saved, .change-card, .change-card--cost { background: #ffffff; box-shadow: none; }
  .im-page .im-entry-card.im-upload, .im-page .im-entry-card.im-paste { background: #ffffff; box-shadow: none; }
  .fx-page { padding: 0; }
  .catalog-bulk, .product-filterbar__view { display: none; }
  .changes-page .change-card { background: #ffffff; box-shadow: none; }
}

/* zzz_origins_card.css */
/* The Compare countries page's glass surfaces (the product page shows its key fact as one line on the duty card).
   Color in savings, warnings and the tariff-layer chart continues to describe the data. */
.fx-cmp .fx-cmp__key {
  --surface: inherit;
  --ink: inherit;
  --ink-soft: inherit;
  --muted: inherit;
  --good: inherit;
  color-scheme: inherit;
  color: var(--ink);
  border: 1px solid var(--glass-outline, var(--line));
  background: var(--glass-sheen), var(--glass-surface);
  box-shadow: var(--shadow-card);
}
.fx-cmp .fx-cmp__table, .fx-cmp .compare-conditions {
  border: 1px solid var(--glass-outline, var(--line));
  background: var(--glass-raised);
  box-shadow: var(--shadow-card);
}
.fx-cmp .fx-cmp__row { border-bottom-color: var(--glass-outline, var(--line)); }
.fx-cmp .fx-cmp__row--head, .fx-cmp .fx-cmp__foot { background: var(--glass-inset, var(--surface-muted)); }
.fx-cmp .fx-cmp__row--head { border-radius: calc(var(--radius-card) - 1px) calc(var(--radius-card) - 1px) 0 0; }
.fx-cmp .fx-cmp__foot { border-radius: 0 0 calc(var(--radius-card) - 1px) calc(var(--radius-card) - 1px); }
.fx-cmp .fx-cmp__row--reference { background: var(--glass-selected, var(--surface-muted)); box-shadow: none; }
.fx-cmp .fx-cmp__this { color: var(--ink-soft); }
.fx-cmp .fx-cmp__key, .fx-cmp .fx-cmp__table, .fx-cmp .compare-conditions {
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
}
@media (prefers-reduced-transparency: reduce) {
  .fx-cmp .fx-cmp__key, .fx-cmp .fx-cmp__table, .fx-cmp .compare-conditions {
    background: var(--surface);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .fx-cmp .fx-cmp__row--head, .fx-cmp .fx-cmp__foot, .fx-cmp .fx-cmp__row--reference { background: var(--surface-muted); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .fx-cmp .fx-cmp__key, .fx-cmp .fx-cmp__table, .fx-cmp .compare-conditions { background: var(--surface); }
}
@media print {
  .fx-cmp .fx-cmp__key, .fx-cmp .fx-cmp__table, .fx-cmp .compare-conditions,
  .fx-cmp .fx-cmp__row--head, .fx-cmp .fx-cmp__foot, .fx-cmp .fx-cmp__row--reference {
    background: var(--surface);
    border-color: var(--line);
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* zzz_planning_simple.css */
/* One decision page: current duty, comparable options, then the editable plan. */
.planning-simple { gap: 26px; }
.planning-simple > .change-heading { margin: 0; }
.planning-simple .change-heading .xp-lede { margin-top: 8px; font-size: 14px; }
.planning-simple .planning-eyebrow { margin: 0 0 8px; }
.planning-simple :is(.planning-hero, .planning-option, .planning-custom, .planning-disclosure, .planning-recommendations__empty) {
  border: 1px solid var(--glass-outline); border-radius: 24px;
  background: var(--glass-sheen), var(--glass-surface); box-shadow: inset 0 1px 0 var(--glass-border), var(--shadow-card);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation)); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
}
.planning-simple .planning-hero { padding: 30px; gap: 30px; }
.planning-simple .xp-key__main { gap: 12px; justify-content: center; padding: 8px 6px; }
.planning-simple .planning-hero .xp-eyebrow { color: var(--ink-soft); font-size: 12px; font-weight: 650; }
.planning-simple .xp-key__amount { font-size: clamp(36px, 5vw, 56px); color: var(--ink); }
.planning-simple .xp-key__sub { max-width: 52ch; font-size: 14px; line-height: 1.6; }
.planning-simple .xp-key__side { padding: 22px 24px; gap: 8px; border: 1px solid var(--glass-outline); border-radius: 16px; background: var(--glass-inset); }
.planning-simple .planning-coverage-value { color: var(--ink); font-size: 38px; }
.planning-simple .planning-coverage { margin: 5px 0; height: 7px; }
.planning-simple .planning-hero-note { padding-top: 12px; border-color: var(--glass-outline); color: var(--ink-soft); font-size: 12px; }
.planning-recommendations { display: grid; gap: 18px; min-width: 0; }
.planning-recommendations__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.planning-recommendations__head h2 { font-size: 28px; letter-spacing: -.04em; margin: 0; line-height: 1.25; }
#recommendations-title { scroll-margin-top: 120px; }
.planning-recommendations__head p:not(.planning-eyebrow) { font-size: 13px; color: var(--muted); margin: 9px 0 0; line-height: 1.6; }
.planning-recommendations__label { flex: none; border: 1px solid var(--glass-outline); border-radius: 20px; padding: 9px 13px; color: var(--ink-soft); background: var(--glass-inset); font-size: 12px; font-weight: 550; }
.planning-recommendations__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 16px; }
.planning-option { display: flex; flex-direction: column; min-width: 0; gap: 16px; padding: 22px; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.planning-option { color: var(--ink); text-decoration: none; cursor: pointer; }
.planning-simple .planning-option:hover { color: var(--ink); opacity: 1; background: var(--glass-sheen), var(--glass-raised); box-shadow: inset 0 1px 0 var(--glass-border), var(--glass-shadow); transform: translateY(-2px); }
.planning-simple .planning-option[aria-expanded=true] { background: var(--glass-selected); }
.planning-option:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.planning-option__rank { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 11px; font-weight: 650; color: var(--muted); }
.planning-option__rank > span:first-child { padding: 6px 9px; border-radius: 8px; background: var(--glass-inset); }
.planning-option--leading .planning-option__rank > span:first-child { color: var(--accent); background: var(--glass-selected); }
.planning-option__expand { display: grid; flex: none; place-content: center; width: 24px; height: 24px; border: 1px solid var(--glass-outline); background: var(--glass-inset); color: var(--muted); border-radius: 7px; }
.planning-option__expand svg { display: block; width: 16px; height: 16px; }
.planning-option:is(:hover, :focus-visible) .planning-option__expand { color: var(--accent); }
.planning-option h3 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; margin: 0; font-size: 24px; letter-spacing: -.035em; line-height: 1.3; }
.planning-option__arrow { color: var(--muted); font-size: 18px; }
.planning-option__scope { margin: -7px 0 0; font-size: 12px; line-height: 1.6; color: var(--ink-soft); }
.planning-option__saving { margin: 2px 0 0; color: var(--good); display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px; }
.planning-option__saving > span { font-size: 13px; }
.planning-option__saving strong { font-size: clamp(27px, 2.8vw, 36px); line-height: 1.1; letter-spacing: -.04em; font-weight: 650; font-variant-numeric: tabular-nums; }
.planning-option__percent { color: var(--ink-soft); font-size: 12px; margin: -7px 0 0; }
.planning-duty-chart { display: grid; gap: 14px; padding: 17px; border: 1px solid var(--glass-outline); border-radius: 16px; background: var(--glass-inset); }
.planning-duty-chart__row { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; align-items: baseline; font-size: 11px; color: var(--muted); }
.planning-duty-chart__row strong { color: var(--ink); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.planning-duty-chart__track { grid-column: 1 / -1; display: block; height: 7px; border-radius: 8px; overflow: hidden; background: var(--surface-muted); }
.planning-duty-chart__track > span { display: block; height: 100%; border-radius: 8px; background: var(--control-border); }
.planning-duty-chart__row--scenario .planning-duty-chart__track > span { background: var(--good); }
.planning-recommendations__basis, .planning-recommendations__pending { color: var(--muted); font-size: 12px; line-height: 1.65; margin: 0; }
.planning-recommendations__pending { padding: 12px 16px; color: var(--ink-soft); background: var(--glass-inset); border: 1px solid var(--glass-outline); border-radius: 12px; }
.planning-recommendations__empty { padding: 28px; text-align: center; }
.planning-recommendations__empty h3 { font-size: 19px; margin: 8px 0 10px; letter-spacing: -.025em; }
.planning-recommendations__empty p { color: var(--muted); font-size: 13px; line-height: 1.7; max-width: 65ch; margin: auto; }
.planning-custom, .planning-disclosure { min-width: 0; overflow: hidden; }
.planning-custom { scroll-margin-top: 96px; }
.planning-simple .planning-custom:hover { background: var(--glass-sheen), var(--glass-raised); }
.planning-custom > summary:focus-visible, .planning-disclosure > summary:focus-visible { outline: 3px solid var(--accent); outline-offset: -4px; border-radius: inherit; }
.planning-custom > summary, .planning-disclosure > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 21px 24px; }
.planning-custom > summary::-webkit-details-marker, .planning-disclosure > summary::-webkit-details-marker { display: none; }
.planning-custom > summary > span:not([aria-hidden]), .planning-disclosure > summary > span:not([aria-hidden]) { min-width: 0; flex: 1; }
.planning-custom > summary strong { font-size: 19px; font-weight: 600; letter-spacing: -.025em; }
.planning-custom > summary small, .planning-disclosure > summary small { display: block; font-size: 12px; line-height: 1.6; margin-top: 5px; color: var(--ink-soft); }
.planning-custom__icon { display: grid; flex: none; place-content: center; width: 46px; height: 46px; border: 1px solid var(--glass-outline); border-radius: 12px; background: var(--glass-selected); color: var(--accent); font-size: 26px; }
.planning-disclosure__chevron { flex: none; font-size: 20px; color: var(--muted); transition: transform .16s ease; }
.planning-custom[open] > summary .planning-disclosure__chevron, .planning-disclosure[open] > summary .planning-disclosure__chevron { transform: rotate(180deg); }
.planning-custom[open] > summary, .planning-disclosure[open] > summary { border-bottom: 1px solid var(--glass-outline); }
.planning-disclosure > summary strong { font-size: 14px; font-weight: 600; }
.planning-disclosure__body { display: grid; gap: 18px; padding: 22px; }
.planning-disclosure__body > p { margin: 0; }
.planning-supporting { display: grid; gap: 10px; }
.planning-disclosure { scroll-margin-top: 96px; }
.planning-conditional__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.planning-conditional__option { border: 1px solid var(--glass-outline); border-radius: 16px; padding: 20px; background: var(--glass-inset); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.planning-conditional__option h3 { font-size: 15px; margin: 0 0 8px; line-height: 1.5; }
.planning-conditional__option p { font-size: 12px; line-height: 1.6; margin: 0; color: var(--muted); }
.planning-conditional__option .planning-conditional__saving { color: var(--good); margin-top: auto; }
.planning-conditional__saving strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.planning-count { color: var(--muted); font-size: 12px; margin-left: 5px; }
.planning-simple .planning-custom .xp-plan { border: 0; border-radius: 0; background: transparent; box-shadow: none; padding: 26px; }
.planning-custom .xp-plan__move { grid-template-columns: 1fr 1fr 150px; }
.planning-custom .xp-plan__move .xp-plan__pct { width: 100%; }
.planning-share-presets { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.planning-share-presets > span { color: var(--muted); font-size: 12px; margin-right: 4px; }
.planning-share-preset { padding: 6px 11px; border: 1px solid var(--control-border); border-radius: 12px; font-size: 12px; color: var(--ink-soft); text-decoration: none; background: var(--glass-sheen), var(--glass-raised); }
.planning-share-preset[aria-current=true] { color: var(--accent); background: var(--glass-selected); border-color: var(--accent); }
.planning-share-preset:hover { color: var(--accent); border-color: var(--accent); }
.planning-simple .planning-disclosure__body .xp-card { box-shadow: none; background: var(--glass-inset); border-color: var(--glass-outline); }
.planning-simple .planning-disclosure__body .xp-card, .planning-simple .planning-custom .xp-plan { backdrop-filter: none; -webkit-backdrop-filter: none; }
@media (max-width: 960px) {
  .planning-recommendations__grid { grid-template-columns: 1fr; }
  .planning-option { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 1fr); gap: 12px 26px; }
  .planning-option__rank, .planning-option h3, .planning-option__scope, .planning-option__saving, .planning-option__percent { grid-column: 1; }
  .planning-option .planning-duty-chart { grid-column: 2; grid-row: 2 / 5; align-self: center; }
  .planning-option__rank { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .planning-simple .planning-hero { padding: 22px; grid-template-columns: 1fr; gap: 20px; }
  .planning-simple .xp-key__main { padding: 0; }
  .planning-simple .xp-key__side { padding: 20px; }
  .planning-recommendations__head { display: block; }
  .planning-recommendations__label { display: none; }
  .planning-option { display: flex; padding: 22px; gap: 16px; }
  .planning-option .planning-duty-chart { align-self: stretch; }
  .planning-option__saving strong { font-size: 34px; }
  .planning-custom > summary, .planning-disclosure > summary { padding: 18px; gap: 12px; }
  .planning-custom > summary strong { font-size: 17px; }
  .planning-custom__icon { width: 34px; height: 34px; }
  .planning-simple .planning-custom .xp-plan, .planning-disclosure__body { padding: 18px; }
  .planning-custom .xp-plan__move { grid-template-columns: 1fr; }
  .planning-custom .xp-plan__move .xp-plan__pct { max-width: 140px; }
  .planning-conditional__grid { grid-template-columns: 1fr; }
  .planning-saved { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .planning-disclosure__chevron, .planning-option { transition: none; }.planning-simple .planning-option:hover { transform: none; } }

/* The selected scenario owns its assumptions and controls in one focused workspace. */
html.planning-focus-open { overflow: hidden; scrollbar-gutter: stable; }
.planning-focus-dialog {
  width: min(1000px, calc(100vw - 48px)); max-width: none; max-height: min(92dvh, 1100px);
  margin: auto; padding: 0; overflow: auto; overscroll-behavior: contain;
  background: var(--glass-sheen), var(--glass-raised); color: var(--ink); border: 1px solid var(--glass-outline); border-radius: 28px;
  box-shadow: inset 0 1px 0 var(--glass-border), var(--glass-shadow);
  /* Blur the backdrop, preserving viewport positioning for floating help. */
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.planning-focus-dialog::backdrop { background: var(--focus-backdrop); backdrop-filter: blur(var(--glass-focus-blur, 16px)); -webkit-backdrop-filter: blur(var(--glass-focus-blur, 16px)); }
.planning-focus__bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 28px; background: var(--glass-sheen), var(--glass-raised); border-bottom: 1px solid var(--glass-outline); }
.planning-focus__bar h2 { min-width: 0; margin: 0; color: var(--ink); font-size: 16px; line-height: 1.5; font-weight: 650; letter-spacing: -.02em; overflow-wrap: anywhere; }
.planning-focus__close { flex: none; min-height: 38px; padding: 8px 14px; border: 1px solid var(--control-border); border-radius: 12px; color: var(--accent); background: var(--glass-sheen), var(--glass-raised); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.planning-focus__close::after { content: " ×"; font-size: 18px; font-weight: 400; }
.planning-focus__close:hover { border-color: var(--accent); }
.planning-focus-dialog > turbo-frame { display: block; min-width: 0; }
.planning-focus-dialog .xp-plan { margin: 0; padding: 28px; border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.planning-focus-dialog .planning-scenario-totals { margin-bottom: 4px; padding: 0; gap: 12px; border: 0; border-radius: 0; background: transparent; overflow: visible; }
.planning-focus-dialog .planning-scenario-totals > div { padding: 22px; background: var(--glass-inset); border: 1px solid var(--glass-outline); border-radius: 16px; }
.planning-focus-dialog .planning-scenario-totals > div.is-lower span { color: var(--good); font-weight: 600; }
.planning-focus-dialog .planning-scenario-totals > div.is-higher span { color: var(--warn); }
.planning-focus-dialog .xp-plan__form { background: var(--glass-inset); border-color: var(--glass-outline); padding: 24px; border-radius: 24px; }
.planning-focus-dialog .planning-control-label { color: var(--ink); font-size: 14px; }
.planning-focus-dialog .planning-field-label { color: var(--ink-soft); font-size: 12px; }
.planning-focus-dialog .planning-volume-control { background: transparent; }
.planning-focus-dialog .planning-scenario-scope { padding: 16px 20px; border: 1px solid var(--glass-outline); border-radius: 16px; background: var(--glass-inset); font-size: 12px; }
.planning-focus-dialog .xp-plan__head h2 { font-size: 28px; letter-spacing: -.04em; }
.planning-focus-dialog .xp-plan__head .xp-muted { color: var(--ink-soft); font-size: 13px; line-height: 1.65; }
.planning-focus-dialog .xp-plan__move { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 150px; }
.planning-focus-dialog .xp-plan__move .xp-plan__pct { width: 100%; }
.planning-focus-dialog .planning-share-preset { min-width: 48px; text-align: center; padding: 8px 12px; border-radius: 12px; border-color: var(--control-border); }
.planning-focus-dialog .planning-share-preset[aria-current=true] { background: var(--glass-selected); color: var(--accent); border-color: var(--accent); font-weight: 650; }
.planning-focus-dialog .planning-save-form { padding: 22px; border: 1px solid var(--glass-outline); border-radius: 24px; background: var(--glass-inset); }
.planning-focus-dialog .planning-scenario-detail { background: var(--glass-inset); border-color: var(--glass-outline); border-radius: 16px; }
.planning-focus__message, .planning-scenario-unavailable { padding: 32px; color: var(--muted); line-height: 1.6; }
.planning-focus__message p { margin: 0 0 12px; }
.planning-scenario-assumptions { padding: 20px 22px; border: 1px solid var(--glass-outline); border-radius: 16px; background: var(--glass-inset); }
.planning-scenario-assumptions h3 { color: var(--ink); margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.planning-scenario-assumptions ul { display: grid; gap: 8px; margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 13px; line-height: 1.6; }
.planning-scenario-assumptions > p { margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
@media (max-width: 700px) {
  .planning-focus-dialog { width: calc(100vw - 16px); max-height: 96dvh; }
  .planning-focus__bar { padding: 14px 18px; }
  .planning-focus-dialog .xp-plan { padding: 20px; }
  .planning-focus-dialog .xp-plan__form { padding: 18px; }
  .planning-focus-dialog .xp-plan__move { grid-template-columns: minmax(0, 1fr); }
  .planning-focus-dialog .xp-plan__move .xp-plan__pct { max-width: 140px; }
  .planning-focus-dialog .planning-scenario-totals { grid-template-columns: 1fr; }
  .planning-focus-dialog .planning-scenario-totals > div { gap: 12px; padding: 18px; }
  .planning-focus-dialog .planning-save-form { flex-wrap: wrap; }
  .planning-scenario-assumptions { padding: 16px; }
}
@media (prefers-reduced-transparency: reduce) {
  .planning-simple :is(.planning-hero, .planning-option, .planning-custom, .planning-disclosure, .planning-recommendations__empty),
  .planning-focus-dialog, .planning-focus__bar { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .planning-simple .planning-option:hover { background: var(--surface); }
  .planning-simple .planning-option[aria-expanded=true] { background: var(--accent-soft); }
  .planning-simple :is(.xp-key__side, .planning-duty-chart, .planning-recommendations__label, .planning-recommendations__pending, .planning-conditional__option),
  .planning-focus-dialog :is(.planning-scenario-totals > div, .xp-plan__form, .planning-scenario-scope, .planning-save-form, .planning-scenario-detail, .planning-scenario-assumptions) { background: var(--surface-muted); }
  .planning-focus-dialog::backdrop { background: var(--focus-backdrop-solid); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media print {
  .planning-recommendations__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .planning-simple .planning-option { display: flex; break-inside: avoid; transform: none; }
  .planning-simple :is(.planning-hero, .planning-option, .planning-custom, .planning-disclosure, .planning-recommendations__empty,
    .xp-key__side, .planning-duty-chart, .planning-recommendations__label, .planning-recommendations__pending, .planning-conditional__option) {
    background: #fff; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .planning-option__expand, .planning-share-presets { display: none; }
  .planning-focus-dialog { display: none !important; }
}

/* Recommendations stay on Planning; custom tests and immutable saved plans have
   their own workspace. The hidden host only holds the selected dialog frame. */
.planning-custom--host:not([open]) { display: none; }
.planning-saved-disclosure > .planning-recommendations__head { padding: 22px 24px 0; }
.planning-recommendations__context { display: flex; flex-wrap: wrap; gap: 7px 14px; padding: 14px 16px; margin: 0 0 18px; border: 1px solid var(--glass-outline); border-radius: 12px; background: var(--glass-inset); font-size: 13px; line-height: 1.55; color: var(--muted); }
.planning-recommendations__context strong { color: var(--ink); }
.planning-recommendations__context > span { flex: 1 1 380px; }
.planning-option__volume { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 8px 0 0; }

/* Saved reports retain their compact supporting copy. */
.planning-saved-disclosure > p { margin: 10px 0 0; font-size: 14px; }

/* zzz_product_sidebar.css */
/* The Products header's title block and the table's count line. */
.pl__identity { min-width: 0; }

/* zzzz_expanded_surfaces.css */
/* Focused workspaces use the same frosted layers as the page.
   Surface treatments only: dialog dimensions, scrolling and form layout stay shared. */
.ob-focus-dialog {
  border-color: var(--glass-outline, var(--line));
  background: var(--glass-sheen), var(--glass-raised);
  box-shadow: var(--shadow-menu), 0 0 0 1px var(--glass-border);
  /* The native backdrop supplies the blur. Filtering this box would re-anchor
     fixed confidence tooltips to the dialog instead of the viewport. */
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.ob-focus-dialog > .ob-focus__bar {
  color: var(--ink);
  background: var(--glass-sheen), var(--glass-raised);
  border-bottom-color: var(--glass-outline, var(--line));
  box-shadow: none;
  /* Frost only the sticky title bar so scrolling content cannot show through
     its text; the dialog and its confidence-tooltip ancestors stay unfiltered. */
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.ob-focus-dialog > .ob-focus__bar h2 { color: var(--ink); }
.ob-focus-dialog .ob-focus__close {
  color: var(--accent);
  background: var(--glass-inset, var(--surface-muted));
  border-color: var(--glass-outline, var(--line));
  box-shadow: none;
}
.ob-focus-dialog .ob-focus__close:hover {
  color: var(--accent);
  border-color: var(--control-border);
  background: var(--glass-selected, var(--accent-soft));
}
.ob-focus-dialog .ob-focus__close:focus-visible { outline-color: var(--accent); }
.ob-focus-dialog > .ob-fold {
  background: transparent; border: 0; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.ob-focus-dialog > .ob-fold > .ob-face {
  background: var(--glass-inset, var(--surface-muted));
  border-bottom-color: var(--glass-outline, var(--line));
  box-shadow: none;
}
.ob-focus-dialog .ob-fold > .ob-fold__body { background: transparent; }
.ob-focus-dialog .ob-face .ob-face__identity .ob-eyebrow,
.ob-focus-dialog .ob-fold .ob-card-symbol { color: var(--accent); }
.ob-focus-dialog .ob-fold .ob-card-symbol {
  background: var(--glass-inset, var(--surface-muted));
  border-color: var(--glass-outline, var(--line));
  box-shadow: none;
}
.ob-focus-dialog .ob-duty .ob-card-symbol { color: var(--glass-mint); }
.ob-focus-dialog .cp-basis-summary { border-color: var(--glass-outline, var(--line)); }

/* Evidence uses quiet inset surfaces, without a second layer of blur or accent bars. */
.ob-focus-dialog :is(.ob-check, .ob-notes-block, .lp__detail:not(.lp__detail--assumed) .lp__detail-body) {
  background: var(--glass-inset, var(--surface-muted));
  border: 1px solid var(--glass-outline, var(--line));
  box-shadow: none;
}
.ob-focus-dialog :is(.ob-check__title, .lp__head > .ob-subhead) { color: var(--ink); }
.ob-focus-dialog .ob-line {
  background: var(--glass-inset, var(--surface-muted));
  border-color: var(--glass-outline, var(--line));
  box-shadow: none;
}
.ob-focus-dialog button.ob-line:hover { border-color: var(--accent); }
.ob-focus-dialog .lp__step:not(.lp__step--assumed) .lp__pill[aria-expanded="true"] {
  background: var(--glass-selected, var(--accent-soft));
  border-color: var(--control-border);
  color: var(--accent);
}
.ob-focus-dialog :is(.rs__how, .ob-alts) > summary { color: var(--accent); }
.ob-focus-dialog .ob-duty .rs__table { background: transparent; }
.ob-focus-dialog .ob-duty .rs__table :is(thead, tfoot) {
  background: var(--glass-inset, var(--surface-muted));
  color: var(--ink-soft);
}

/* Provenance labels remain semantic inside a shared quiet surface.
   Savings and amber/red states retain their existing meaning. */
.ob-card .ob-focus-dialog .cp-assumptions .cp-assumption {
  background: var(--glass-inset, var(--surface-muted));
  border: 1px solid var(--glass-outline, var(--line));
  box-shadow: none;
}
.ob-card .ob-focus-dialog .cp-assumption--assumed .cp-assumption__editor { border-color: var(--glass-outline, var(--line)); }
.ob-card .ob-focus-dialog .cp-assumption :is(.fx-input, .rs__option:not(:has(input:checked))) {
  background: var(--glass-sheen), var(--glass-raised);
}

/* Product inputs and the table preview are denser glass for clear text over the page. */
.ob-wrap[data-shell="products"] .product-edit[open] {
  background: var(--glass-sheen), var(--glass-raised);
  border: 1px solid var(--glass-outline, var(--line));
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
}
.ob-wrap[data-shell="products"] .product-edit[open] > summary {
  background: var(--glass-inset, var(--surface-muted));
  border-bottom-color: var(--glass-outline, var(--line));
  border-radius: inherit;
  box-shadow: none;
}
.ob-wrap[data-shell="products"] .product-edit[open] > summary strong { color: var(--ink); }
.ob-wrap[data-shell="products"] .product-edit[open] .ob-box { background: transparent; }
.ob-wrap[data-shell="products"] .product-edit[open] .ob-label { color: var(--ink-soft); }
.ob-wrap[data-shell="products"] .product-edit[open] .ob-input { background: var(--glass-sheen), var(--glass-raised); }

@media (prefers-reduced-transparency: reduce) {
  .ob-focus-dialog, .ob-focus-dialog > .ob-focus__bar,
  .ob-wrap[data-shell="products"] .product-edit[open] {
    background: var(--surface);
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
}
@media (prefers-contrast: more) {
  .ob-focus-dialog, .ob-focus-dialog > .ob-focus__bar,
  .ob-focus-dialog > .ob-fold > .ob-face,
  .ob-wrap[data-shell="products"] .product-edit[open] { border-color: var(--control-border); }
}
@media print {
  .ob-focus-dialog,
  .ob-focus-dialog > .ob-focus__bar,
  .ob-focus-dialog > .ob-fold > .ob-face,
  .ob-focus-dialog .ob-fold > .ob-fold__body,
  .ob-focus-dialog :is(.ob-check, .ob-notes-block, .lp__detail-body),
  .ob-focus-dialog .ob-duty .rs__table :is(thead, tfoot),
  .ob-card .ob-focus-dialog .cp-assumptions .cp-assumption {
    background: var(--surface);
    border-color: var(--line);
    box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .ob-focus-dialog > .ob-focus__bar h2 { color: var(--ink); }
}

/* zzzzz_screen_refresh.css */
/* A shared frosted surface family for Overview, Import and product details.
   Screen hierarchy comes from spacing and type; only interactions use accent blue. */

/* Overview: annual exposure leads, with compact and visible scope context. */
.fx-page:has(> .overview-page) { padding-top: 24px; }
.overview-page { gap: 18px; }
.overview-page > .change-heading { margin: 0; align-items: center; }
.overview-page > .change-heading .fx-title { font-size: clamp(30px, 3vw, 38px); letter-spacing: -.045em; margin: 0 0 5px; }
.overview-scope { display: grid; gap: 8px; }
.overview-scope .xp-sample {
  margin: 0; padding: 8px 12px; border: 0; border-radius: 8px;
  color: var(--supplied); background: var(--supplied-bg); font-size: 11px; line-height: 1.5;
}
.overview-page .change-empty {
  background: var(--glass-sheen), var(--glass-surface); border: 1px solid var(--glass-outline, var(--line));
  border-radius: var(--radius-card); box-shadow: var(--shadow-card);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
}
.overview-page .change-empty { text-align: left; }

/* Import: equivalent methods share one surface, with quiet icon tiles and input wells. */
.im-page .im-home-head { margin: 0 0 6px; align-items: center; }
.im-page .im-home-head .ob-title { font-size: clamp(30px, 3.6vw, 42px); letter-spacing: -.045em; }
.im-page .im-home-head .im-lede { margin-top: 8px; font-size: 15px; }
.im-page .im-flow {
  background: var(--glass-inset, var(--surface-muted)); border: 1px solid var(--glass-outline, var(--line));
  border-radius: 14px; padding: 14px 18px;
}
.im-page .im-flow li > span { background: var(--glass-raised); color: var(--ink-soft); border: 0; border-radius: 8px; }
.im-page .im-entry-card.im-upload,
.im-page .im-entry-card.im-paste,
.im-page .im-entry-card--compact,
.im-page .im-file-help,
.im-page .im-recent .ob-recent__list,
.im-page .im-progress,
.im-page .im-table-wrap {
  background: var(--glass-sheen), var(--glass-surface); border: 1px solid var(--glass-outline, var(--line));
  border-radius: var(--radius-card); box-shadow: var(--shadow-card);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
}
.im-page .im-entry-card__head {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; row-gap: 7px;
  align-self: stretch; align-content: start; margin: -30px -30px 3px; padding: 27px 30px 25px;
  border-radius: calc(var(--radius-card) - 1px) calc(var(--radius-card) - 1px) 0 0; border-bottom: 1px solid var(--glass-outline, var(--line));
  background: transparent; box-shadow: none;
}
.im-page .im-entry-card__head .im-entry-icon {
  grid-column: 1; grid-row: 1 / 3; width: 44px; height: 44px; margin: 0; border-radius: 12px;
  box-shadow: none; color: var(--accent); background: var(--glass-inset, var(--surface-muted));
}
.im-page .im-entry-card__head h2 { grid-column: 2; align-self: center; font-size: 21px; letter-spacing: -.025em; }
.im-page .im-entry-card__head p { grid-column: 2; margin: 0; font-size: 13px; line-height: 1.65; color: var(--ink-soft); }
.im-page .im-entry-card .im-drop { background: var(--glass-inset, var(--surface-muted)); border-color: var(--control-border); }
.im-page .im-entry-card .im-drop:is(:hover, :focus-within) { background: var(--glass-selected, var(--accent-soft)); border-color: var(--accent); }
.im-page .im-entry-card .im-paste__area { background: var(--glass-inset, var(--surface-muted)); }
.im-page [data-rs="samples"] > .im-entry-icon,
.im-page #sap > .im-entry-icon { color: var(--muted); background: var(--glass-inset, var(--surface-muted)); }
.im-page .im-sample-choice--planning { background: var(--supplied-bg); border-color: var(--glass-outline, var(--line)); }
.im-page .im-file-help { border-radius: var(--radius-row); }
.im-page .im-completion .im-result-summary > div { background: transparent; box-shadow: none; }
.im-page .im-completion .im-result-summary > [data-rs="ready-count"] strong { color: var(--good); }
.im-page .im-results-table th { background: var(--glass-inset, var(--surface-muted)); }

/* Product workspace: a document header without decorative rails or identity fills. */
.ob-wrap[data-shell="products"] .ob-hero--product { grid-template-columns: minmax(0, 1fr); }
.ob-wrap[data-shell="products"] .ob-product { padding-left: 0; border-left: 0; gap: 8px; }
.ob-wrap[data-shell="products"] .ob-product .fx-product__title { letter-spacing: -.035em; }
/* The product header (product-review-4, -21, product-confirmed-15): the title, and at its right one row of actions
   (Edit description or Report an issue, then the Export menu); everything else in the header spans the row. */
.ob-wrap[data-shell="products"] .ob-product:has(> .product-header-actions) { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: start; align-self: stretch; }
.ob-wrap[data-shell="products"] .ob-product:has(> .product-header-actions) > * { grid-column: 1 / -1; }
.ob-wrap[data-shell="products"] .ob-product:has(> .product-header-actions) > .fx-product__title { grid-column: 1; }
.ob-wrap[data-shell="products"] .ob-product > .product-header-actions { grid-column: 2; position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
/* the menu hangs from Export; the report form from the row's right edge, so it fits on a phone too */
.product-export { position: relative; }
:is(.product-export, .product-issue) > summary { list-style: none; }
:is(.product-export, .product-issue) > summary::-webkit-details-marker { display: none; }
.product-export__menu, .product-header-actions .product-issue-form {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; margin: 0;
  border: 1px solid var(--glass-border, var(--line)); border-radius: 16px; background: var(--glass-sheen), var(--glass-raised);
  box-shadow: var(--shadow-menu), 0 0 0 1px var(--line);
  -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
}
.product-export__menu { min-width: 264px; padding: 6px; list-style: none; }
.product-export__menu :is(a, button) {
  display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px;
  background: none; color: var(--ink); font: inherit; font-size: 14px; font-weight: 500; text-align: left; text-decoration: none; cursor: pointer;
}
.product-export__menu :is(a, button):is(:hover, :focus-visible) { background: var(--glass-selected, var(--surface-muted)); }
.product-header-actions .product-issue-form { width: min(420px, calc(100vw - 32px)); padding: 18px; }
.product-review-confirmed .product-issue { margin-top: 12px; }
.ob-face .ob-face__edit { margin-top: 6px; font-size: 13px; }
@media (max-width: 600px) {
  /* on a phone the title takes the width; the actions follow on their own row */
  .ob-wrap[data-shell="products"] .ob-product:has(> .product-header-actions) { grid-template-columns: minmax(0, 1fr); }
  .ob-wrap[data-shell="products"] .ob-product > .product-header-actions { grid-column: 1; }
}
.product-review-confirmed .product-issue-form { margin-top: 12px; }
.ob-wrap[data-shell="products"] .ob-hero:not(.ob-hero--product) > .ob-box {
  border: 1px solid var(--glass-outline, var(--line)); background: var(--glass-sheen), var(--glass-surface); box-shadow: var(--shadow-card);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
}
.ob-wrap[data-shell="products"] .product-edit { border-radius: 14px; }
.ob-wrap[data-shell="products"] .product-edit:not([open]) { display: none; }
.ob-wrap[data-shell="products"] .product-edit > summary { padding: 16px 18px; }
.product-confirmation {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px;
  padding: 11px 16px; border: 1px solid var(--glass-outline, var(--line)); border-radius: 14px;
  background: var(--glass-sheen), var(--glass-surface); box-shadow: inset 0 1px 0 var(--glass-outline, var(--line));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
}
.product-confirmation__summary { flex: 1 1 280px; min-width: 0; }
.product-confirmation__summary h2 { margin: 0 0 3px; font-size: 14px; line-height: 1.4; font-weight: 600; letter-spacing: -.01em; }
.product-confirmation__summary p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.product-confirmation__summary .mono { color: var(--ink-soft); white-space: nowrap; }
.product-confirmation__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin: 0; }
.product-confirmation__duty { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; color: var(--ink-soft); font-size: 12px; line-height: 1.4; cursor: pointer; }
.product-confirmation__duty input { flex: none; margin: 0; width: 15px; height: 15px; accent-color: var(--accent); }
.product-confirmation__actions .fx-btn { min-height: 36px; padding: 7px 14px; white-space: nowrap; font-size: 12px; }
/* The optional note stays one quiet control until someone opens it. */
.product-confirmation__actions:has(.product-confirmation__note[open]) { flex: 1 1 100%; }
.product-confirmation__note { flex: 0 0 auto; min-width: 0; }
.product-confirmation__note[open] { flex: 1 1 100%; }
.product-confirmation__note summary { color: var(--ink-soft); cursor: pointer; font-size: 12px; line-height: 1.4; }
.product-confirmation__note[open] summary { margin-bottom: 6px; }
.product-confirmation__note label { display: block; margin-bottom: 4px; color: var(--ink); font-size: 12px; font-weight: 600; }
.product-confirmation__note textarea { display: block; width: 100%; min-height: 60px; resize: vertical; }
/* The duty's open checks join the code's only while the duty is confirmed too (the box is under the duty card) */
.product-confirmation [data-checks="with-duty"],
turbo-frame#one:has(#include_duty:checked) .product-confirmation [data-checks="code"] { display: none; }
turbo-frame#one:has(#include_duty:checked) .product-confirmation [data-checks="with-duty"] { display: inline; }
.ob-card > .product-confirmation__duty { align-self: flex-end; font-size: 13px; }
.product-confirmation__notice { flex-basis: 100%; margin: 0; padding-top: 8px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.ob-wrap[data-shell="products"] .ob-new > .ui-eyebrow {
  display: inline-block; padding: 5px 8px; border-radius: 7px;
  background: var(--glass-inset, var(--surface-muted)); color: var(--muted); margin-bottom: 9px;
}

@media (min-width: 901px) {
  .im-page .im-entry-card__head { min-height: 132px; }
}
@media (max-width: 720px) {
  .overview-page { gap: 15px; }
  .overview-page > .change-heading { align-items: flex-start; flex-wrap: wrap; gap: 12px; }
  .im-page .im-home-head { align-items: flex-start; }
  .im-page .im-flow { padding: 11px 13px; }
  .im-page .im-entry-card__head { margin: -24px -24px 3px; padding: 23px 24px; grid-template-columns: 38px minmax(0, 1fr); column-gap: 12px; }
  .im-page .im-entry-card__head .im-entry-icon { width: 38px; height: 38px; }
  .im-page .im-entry-card__head h2 { font-size: 19px; }
}
@media (prefers-reduced-transparency: reduce) {
  .overview-page .change-empty,
  .im-page .im-entry-card.im-upload, .im-page .im-entry-card.im-paste,
  .im-page .im-entry-card--compact, .im-page .im-file-help,
  .im-page .im-recent .ob-recent__list, .im-page .im-progress,
  .im-page .im-table-wrap,
  .product-confirmation,
  .product-export__menu, .product-header-actions .product-issue-form,
  .ob-wrap[data-shell="products"] .ob-hero:not(.ob-hero--product) > .ob-box {
    background: var(--surface);
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
}
@media print {
  .product-confirmation { display: none; }
  .overview-page .change-empty,
  .im-page .im-entry-card.im-upload, .im-page .im-entry-card.im-paste,
  .im-page .im-entry-card--compact, .im-page .im-entry-card__head,
  .im-page .im-progress, .im-page .im-file-help, .im-page .im-recent .ob-recent__list,
  .im-page .im-table-wrap, .ob-wrap[data-shell="products"] .product-edit,
  .ob-wrap[data-shell="products"] .ob-hero:not(.ob-hero--product) > .ob-box {
    background: var(--surface); box-shadow: none; border-color: var(--line);
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .overview-scope, .im-page .im-flow { display: none; }
}

/* The account menu sits inside the top bar, whose own backdrop blur stops the menu's blur from working, so the page
   (and a notification under it) showed through. Give the menu an opaque surface. */
.fx-account .fx-account__menu { background: var(--glass-sheen), var(--surface); }

/* Table view scrolls with the page. The split list's own scroller (pages.css: overflow-y auto, overscroll contain)
   must not apply here: it swallowed mouse-wheel and Page Down over the table, so the page never moved. */
.pl--catalog .pl__listframe { overflow: visible; overscroll-behavior: auto; }

/* Country suggestions: an opaque list (the glass one let the form behind show through the options), and the card
   holding an open picker rises above the cards after it, which otherwise painted over its list (Compare origins). */
.fx-combo__list { background: var(--surface); }
:where(section, article, details, .fx-card, .xp-card, .fx-panel, .card):has(.fx-combo__list:not([hidden])) { position: relative; z-index: 26; }

/* zzzzzz_areas.css */
.today-needs { display: flex; flex-direction: column; gap: 12px; }
/* Lists: one visible action per row, the others under "⋯" (a native details menu in the existing menu look). */
.row-more { position: relative; display: inline-block; }
.row-more > summary { list-style: none; cursor: pointer; min-width: 34px; justify-content: center; }
.row-more > summary::-webkit-details-marker { display: none; }
.row-more__list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 220px; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--glass-border, var(--line)); border-radius: 12px; box-shadow: var(--shadow-menu, 0 8px 24px rgba(0,0,0,.12)); }
.row-more__list a { display: flex; min-height: 40px; align-items: center; padding: 0 10px; border-radius: 8px; color: var(--ink-soft); font-size: 14px; text-decoration: none; }
.row-more__list a:hover { background: var(--surface-muted); color: var(--ink); }
.sp-actions { white-space: nowrap; }
/* On a phone a row of the gaps list is a card with labelled figures, never squeezed table columns. */
@media (max-width: 720px) {
  .sp-table[data-quality], .sp-table[data-quality] tbody, .sp-table[data-quality] tr, .sp-table[data-quality] td { display: block; width: 100%; }
  .sp-table[data-quality] thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sp-table[data-quality] tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .sp-table[data-quality] td { padding: 4px 0; border: 0; text-align: left; }
  .sp-table[data-quality] td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
  .sp-table[data-quality] .row-more__list { right: auto; left: 0; }
}
/* The ⌘K box's groups: Recent, Products, Go to, Ask (the existing result lines, with a small group label above each). */
.command-bar__group { padding: 10px 14px 4px; color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; list-style: none; }
.command-bar__item--note { cursor: default; opacity: .9; }
.command-bar__item--note .command-bar__item-meta { white-space: normal; }
.sp-table td.sp-actions { flex-wrap: nowrap; }
/* A long hint (the app guide's) never squeezes the page name out: the name keeps its width, the hint is cut. */
.command-bar__item-label { flex: 0 1 auto; }
.command-bar__item-meta { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.command-bar__item--note .command-bar__item-meta { text-align: left; }
/* Contracts on a phone: each programme a card, each figure on its own line with its label. */
@media (max-width: 720px) {
  table[data-cc=programmes], table[data-cc=programmes] tbody, table[data-cc=programmes] tr { display: block; width: 100%; }
  table[data-cc=programmes] thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table[data-cc=programmes] tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  table[data-cc=programmes] th[scope=row] { display: block; padding: 0 0 6px; text-align: left; }
  table[data-cc=programmes] td { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 3px 0; border: 0; text-align: right; }
  table[data-cc=programmes] td[data-label]::before { content: attr(data-label); flex: none; color: var(--muted); font-family: var(--font-sans, inherit); font-size: 12px; font-weight: 500; text-align: left; }
  table[data-cc=programmes] td .planning-cell-note { display: block; }
  table[data-cc=programmes] td > :not(:first-child) { text-align: right; }
}

/* zzzzzzzz_redesign_money.css */
/* Decision pages use the existing glass surfaces and palette. Primary work is visible;
   calculation details and alternate workflows stay within labelled disclosures. */
.money-workspace { min-width: 0; }
.money-workspace.planning-simple { gap: 18px; }
.workspace-shell .money-workspace.planning-simple > .change-heading { margin-bottom: 0; }
.money-eyebrow { margin: 0 0 7px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.what-if-shortcuts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding-top: 6px; font-size: 13px; }
.planning-report-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.money-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.money-section-heading h2 { margin: 0; font-size: 20px; letter-spacing: -.035em; }
.money-section-heading p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.money-section-heading > .fx-link { flex: none; font-size: 12px; }
.money-workspace :is(.change-heading, .op-head) { margin-bottom: 20px; }
.money-workspace .planning-scope-row { margin: -10px 0 10px; }
.money-workspace .xp-sample { padding: 8px 12px; margin: 0 0 14px; font-size: 11px; }
.money-workspace.planning-simple .planning-hero { gap: 24px; padding: 24px; }
.money-workspace.planning-simple .xp-key__amount { font-size: clamp(34px, 4vw, 48px); line-height: 1.1; }
.money-workspace.planning-simple .xp-key__side { padding: 16px 18px; gap: 5px; }
.money-workspace .planning-coverage-value { font-size: 28px; }
.money-workspace .xp-split { margin-top: 18px; gap: 18px; }
.money-workspace .xp-bars__list { gap: 12px; }
.money-workspace .xp-bars { padding: 20px; }
.money-workspace .xp-top { margin-top: 18px; }
.money-create { margin: 0; scroll-margin-top: 96px; }
.money-create .xp-plan { display: grid; gap: 18px; padding: 24px; background: var(--glass-sheen), var(--glass-raised); border: 1px solid var(--glass-outline); border-radius: 18px; box-shadow: var(--glass-shadow); }
.money-create .xp-plan__head { margin: 0; }
.money-create .xp-plan__head h2 { font-size: 16px; }
.money-create .xp-plan__head p { font-size: 12px; }
.money-create .xp-plan__form { display: grid; gap: 16px; padding: 0; border: 0; background: none; }
.money-create .xp-plan__move { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) 130px; gap: 16px; padding: 0; border: 0; }
.money-create .xp-plan__move > legend { margin-bottom: 12px; }
.money-create .planning-scenario-field { min-width: 0; }
.money-create .planning-field-label { display: block; margin-bottom: 6px; font-size: 12px; color: var(--ink-soft); }
.money-create :is(.ob-input, .fx-input) { width: 100%; min-height: 40px; }
.money-create .xp-plan__pct { width: 100%; }
.money-create .xp-plan__pct .ob-input { width: 100%; }
.money-create .xp-plan__actions { margin: 0; }
.money-create .planning-scenario-totals { padding: 0; border: 0; background: none; gap: 12px; }
.money-create .planning-scenario-totals > div { padding: 18px; border: 1px solid var(--glass-outline); border-radius: 12px; background: var(--glass-inset); }
.money-create .planning-scenario-totals strong { font-size: clamp(23px, 2.7vw, 34px); }
.money-create .planning-scenario-totals__delta.is-lower { border-color: color-mix(in srgb, var(--good) 40%, var(--glass-outline)); }
.money-options, .money-supporting { padding: 14px 16px; border: 1px solid var(--glass-outline); border-radius: 12px; background: var(--glass-inset); }
.money-options > summary, .money-supporting > summary, .money-replacement-options > summary { cursor: pointer; color: var(--ink-soft); font-size: 12px; font-weight: 600; line-height: 1.6; }
.money-options > summary > span { margin-left: 8px; color: var(--muted); font-weight: 400; }
.money-options[open] > summary, .money-supporting[open] > summary { margin-bottom: 18px; }
.money-options > fieldset:last-child { margin-bottom: 0; }
.money-options .planning-volume-control { margin-top: 0; }
.money-create .money-assumptions { margin: 0; padding: 12px 16px; }
.money-create .money-assumptions .planning-scenario-assumptions { margin-top: 12px; border: 0; padding: 0; background: none; }
.money-create .planning-save-form { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; padding: 18px; margin: 0; border: 1px solid var(--glass-outline); border-radius: 14px; background: var(--glass-inset); }
.money-create .planning-save-form > div { flex: 1 1 280px; }
.money-create .planning-save-form > p { flex-basis: 100%; margin: 0; }
.money-workspace :is(#saved, #sourcing, #add-contracts, #rsim-runs) { scroll-margin-top: 96px; }
.money-workspace #saved { margin-top: 26px; }
.money-workspace .change-card { padding: 18px 20px; }
.money-workspace .change-card__meta { font-size: 11px; }
.money-workspace .op-filters { align-items: end; padding: 14px 0; margin: 0; }
.money-workspace .op-actions { margin: 10px 0 12px; }
.money-workspace .op-totals { gap: 12px; margin: 16px 0; }
.money-workspace .op-tile { padding: 18px; }
.money-workspace .op-tile strong { font-size: clamp(23px, 2.5vw, 32px); }
.money-workspace .sv-row { align-items: center; }
.money-workspace .money-next-action { color: var(--ink-soft); margin-top: 8px; line-height: 1.6; font-size: 12px; }
.money-workspace .money-next-action strong { color: var(--accent); font-weight: 600; }
.money-workspace .sv-item > summary { padding-top: 18px; padding-bottom: 18px; }
.money-workspace .sv-forms { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.money-workspace .sv-forms details { align-self: start; }
.money-workspace .rsim-fieldset { margin: 18px 0; }
.money-replacement-options { margin-top: 14px; }
.rsim-form:not(:has(input[name="measure[basis]"][value="metal_content"]:checked)) .money-metal-field { display: none; }
.rsim-form:not(:has(input[name="measure[stacking]"][value="replaces"]:checked)) .money-replacement-options { display: none; }
.money-replacement-options[open] > summary { margin-bottom: 12px; }
.money-workspace .sw-form { padding: 0; border: 0; box-shadow: none; background: transparent; }
.money-workspace .sw-step { margin-bottom: 24px; }
.money-workspace .sw-checks { gap: 8px; }
.money-workspace .sw-options { margin-top: 12px; }
.money-workspace .sw-countries { overflow-x: auto; }
.money-workspace .rsim-groups { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.money-field-hint { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.money-basis { margin: 10px 0; padding: 10px 13px; border-left: 2px solid var(--glass-outline); color: var(--muted); font-size: 12px; line-height: 1.6; }
.money-basis strong { color: var(--ink-soft); font-weight: 600; }
.money-create .money-basis { margin: 0; }
.money-basis--attention { border-color: var(--accent); background: var(--glass-inset); border-radius: 0 10px 10px 0; }
.money-partial { display: block; margin-top: 5px; color: var(--accent); font-size: 11px; font-weight: 500; }
.money-table-options { margin: 14px 0; padding: 10px 14px; }
.money-table-options .op-actions { margin-bottom: 0; }
.money-export-options { align-self: start; padding: 7px 10px; color: var(--muted); font-size: 12px; }
.money-export-options > summary { cursor: pointer; }
.money-export-options__body { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; }
.money-workspace :is(#cc-mitigation, #cc-parts-title) { scroll-margin-top: 100px; }
@media (max-width: 1100px) {
  .money-workspace .op-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .money-section-heading { align-items: flex-start; flex-direction: column; }
  .money-create .xp-plan { padding: 18px; }
  .money-create .xp-plan__move { grid-template-columns: 1fr; }
  .money-create .planning-scenario-totals { grid-template-columns: 1fr; }
  .money-create .planning-scenario-totals > div { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
  .money-workspace.planning-simple .planning-hero { padding: 18px; }
  .money-workspace .xp-split { grid-template-columns: 1fr; }
  .money-workspace .op-tile { padding: 14px; }
  .money-workspace .op-tile strong { font-size: 24px; }
}
@media print {
  .money-workspace :is(.money-options, .money-supporting, .money-create .xp-plan) { background: none; box-shadow: none; }
}

/* zzzzzzzz_redesign_products.css */
/* Workspace redesign: product decisions and evidence work, using the existing glass tokens. */
.pl { grid-template-columns: minmax(260px, 29%) minmax(0, 1fr); }
.pl__head { gap: 14px; padding: 24px 18px 16px; }
.pl__top { gap: 12px; align-items: flex-start; }
.pl__identity { min-width: 0; }
.pl__identity .ui-eyebrow { margin: 0 0 7px; font-size: 10px; letter-spacing: .12em; }
.pl__title { margin: 0; font-size: clamp(23px, 2.2vw, 32px); line-height: 1.2; }
.pl__new { flex: 0 0 auto; }
.pl--catalog .pl__head { padding: 28px var(--gutter) 18px; gap: 16px; }
.pl--catalog .catalog-table td { padding-top: 18px; padding-bottom: 18px; }
.pl--catalog .catalog-table .catalog-product { line-height: 1.5; }
.pl--catalog .catalog-table .catalog-id { margin-top: 5px; }

.rd-data-page .fx-lede { max-width: 68ch; margin-top: 8px; }
.rd-focus-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 24px 0 18px; }
.rd-focus-stats > div { padding: 19px 22px; display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--glass-sheen), var(--glass-surface); backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation)); }
.rd-focus-stats > div > span { font-size: 12px; color: var(--muted); }
.rd-focus-stats strong { font-size: clamp(23px, 2.5vw, 33px); line-height: 1.2; font-weight: 650; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.rd-focus-stats > div:last-child strong { font-size: clamp(19px, 2.1vw, 28px); }
.rd-list-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 24px; }
.rd-list-toolbar > label { font-size: 12px; font-weight: 600; }
.rd-list-toolbar > .fx-input { width: auto; max-width: 360px; min-width: 180px; }
.rd-list-toolbar > .fx-hint { margin-left: auto; }
.rd-priority-list { margin-top: 22px; }
.rd-data-page .sp-table-wrap { border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--glass-sheen), var(--glass-surface); }
.rd-data-page .sp-table td { padding: 18px 16px; line-height: 1.5; }
.rd-data-page .sp-table th { padding: 13px 16px; font-size: 11px; }
.rd-data-page .sp-table td[data-risk], .rd-data-page .sp-table td[data-at-risk] { font-weight: 600; font-variant-numeric: tabular-nums; }
.rd-data-page .sp-table td.sp-actions { display: table-cell; min-width: 140px; }
.rd-data-page .sp-table td.sp-actions .row-more { display: inline-block; vertical-align: top; }
.rd-table-caption { padding: 17px 16px; text-align: left; font-weight: 600; color: var(--ink); }
.rd-secondary { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--glass-sheen), var(--glass-surface); }
.rd-secondary > summary { cursor: pointer; font-size: 14px; font-weight: 600; }
.rd-secondary > summary .fx-hint { margin-left: 10px; font-weight: 400; }
.rd-secondary[open] > summary { margin-bottom: 18px; }
.rd-secondary .sp-actions { margin-top: 16px; }
.rd-data-page .sp-section > h2 { margin-bottom: 14px; }
.sp-portal-progress { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; padding: 18px 20px; margin: 22px 0 12px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--glass-sheen), var(--glass-surface); }
.sp-portal-progress > strong { font-size: 17px; font-variant-numeric: tabular-nums; }
.sp-portal-progress > a:not(.fx-btn) { font-size: 14px; }
.sp-portal-progress > .fx-btn { margin-left: auto; }
.sp-portal .sp-part { margin-top: 20px; padding: 24px; background: var(--glass-sheen), var(--glass-surface); }
.sp-portal .sp-part__head { padding-bottom: 16px; }
.sp-portal .sp-part__name { font-size: 17px; font-weight: 600; }
.sp-portal .sp-part__no { font-size: 13px; font-weight: 500; color: var(--muted); }
.sp-portal .sp-question { padding: 18px 0; }
.im-page .im-head { margin-bottom: 18px; }
.im-page .im-steps { margin: 18px 0 26px; gap: 12px; }
.im-page .im-step { min-height: 48px; padding: 10px 12px; border-radius: 10px; background: transparent; border: 1px solid var(--line); font-size: 12px; }
.im-page .im-step--here { border-color: var(--accent); background: var(--glass-sheen), var(--glass-surface); color: var(--ink); }
.im-page .im-step__label { white-space: normal; }
.im-page .im-one > h2 { margin: 0 0 18px; font-size: 18px; }
.im-page .im-one .im-drop { min-height: 150px; }
.im-page .im-recent { margin-top: 30px; }
.im-page .sap-settings-disclosure { margin-top: 24px; }
.im-page .sap-settings-disclosure .sap-settings { padding: 0; border: 0; box-shadow: none; background: transparent; }
.im-page .im-file-help.rd-secondary { margin-top: 20px; }
.im-page .im-mapping-form { margin-top: 22px; }
@media (min-width: 901px) and (max-width: 1200px) {
  .pl { grid-template-columns: minmax(245px, 29%) minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .pl { display: block; }
  .pl__head, .pl--catalog .pl__head { padding: 24px 20px 18px; }
}
@media (max-width: 600px) {
  .rd-secondary { padding: 16px; }
  .rd-secondary > summary .fx-hint { display: block; margin: 5px 0 0; }
  .rd-list-toolbar > .fx-hint { margin: 0; flex-basis: 100%; }
  .rd-list-toolbar > .fx-input { flex: 1; min-width: 140px; }
  .im-page .im-steps { grid-template-columns: 1fr 1fr; }
  .sp-portal .sp-part { padding: 18px; }
  .sp-portal-progress { gap: 16px; }
  .pl__title { font-size: 25px; }
  .pl__new { font-size: 11px; padding: 8px 10px; }
}
@media print { .pl { display: block; } .pl > .pl__side { display: none; } }
/* Less frequent reference and maintenance tasks use the same task-first hierarchy. */
.rd-maintenance-page .tool-page__head { margin-bottom: 22px; }
.rd-maintenance-note { margin: 12px 0; }
.rd-maintenance-note > summary { font-size: 12px; color: var(--muted); cursor: pointer; }
.rd-maintenance-note[open] > summary { margin-bottom: 12px; }
.rd-maintenance-page .tariff-data__requests { margin-top: 0; }
.rd-maintenance-page .tariff-data__requests h2 { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.rd-reference-page .cu-sources { line-height: 1.75; padding-left: 20px; margin: 0; }
.rd-reference-page .cu-sources > li { margin: 10px 0; }
/* Classification use: the organization's current option stands out; the others read as plain text. */
.rd-reference-page .cu-current { font-size: 17px; }
.rd-reference-page .cu-options { list-style: none; padding: 0; margin: 0; line-height: 1.6; }
.rd-reference-page .cu-option { padding: 4px 0 4px 15px; border-left: 3px solid transparent; }
.rd-reference-page .cu-option + .cu-option { margin-top: 12px; }
.rd-reference-page .cu-option > strong { display: block; }
.rd-reference-page .cu-option--current { padding: 12px 15px; border-left-color: var(--accent); border-radius: 0 10px 10px 0; background: var(--accent-soft); }
.rd-document-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 20px 0; }
.rr-redraft { margin-top: 28px; }
.rr-changed { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; }
.rr-changed__action { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.rr-meta { margin: 4px 0 8px; }
.rr-basis { margin: 0 0 12px; font-size: 14px; color: var(--ink-soft); }
.rd-document-actions .rr-basis { margin: 0; }
.rr-basis--warn { color: var(--warn); font-weight: 600; }
.pl--catalog .pl__head { padding-top: 24px; padding-bottom: 12px; gap: 14px; }
.product-record .pl-back { display: block; }

/* zzzzzzzz_redesign_reports.css */
/* Task-first home, records and administration. Reuse the established glass and colour tokens. */
.rd-head-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.rd-today { gap: 20px; }
.rd-today .change-heading { align-items: center; }
.rd-today .rd-section-head { margin: 2px 0 -8px; }
.rd-disclosure { padding: 16px 18px; border: 1px solid var(--glass-border); border-radius: 14px; background: var(--glass-sheen), var(--glass-surface); box-shadow: var(--glass-highlight); }
.rd-disclosure > summary { color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; }
.rd-disclosure[open] > summary { margin-bottom: 14px; }
.rd-disclosure__body { padding-top: 4px; }
.rd-task-kicker { display: block; color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; }
.rd-task-description { color: var(--ink-soft); font-size: 14px; line-height: 1.5; margin: 8px 0 20px; }
.rd-footnote { margin: 0; color: var(--muted); font-size: 12px; }
.rd-documents, .rd-entries, .rd-settings, .rd-entry-results, .rd-audit, .rd-accuracy, .rd-team, .rd-defaults, .rd-glossary { gap: 22px; }
.rd-documents .im-lede, .rd-entries .im-lede, .rd-settings .im-lede { font-size: 15px; max-width: 74ch; }
.rd-report-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; border: 0; }
.rd-report-links .ob-recent__row { border: 1px solid var(--glass-border); border-radius: 16px; background: var(--glass-sheen), var(--glass-surface); box-shadow: var(--glass-highlight); }
.rd-report-links .ob-recent__link { padding: 18px 20px; }
.rd-report-links .ob-recent__desc { font-size: 17px; }
.rd-report-links .ob-recent__meta { font-size: 13px; margin-top: 6px; }
.rd-document-builders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.rd-document-builders > section { padding: 22px; min-width: 0; margin: 0; }
.rd-document-builders h2 { font-size: 20px; margin: 7px 0 0; }
.rd-task-builder > summary { display: flex; justify-content: space-between; gap: 20px; cursor: pointer; list-style: none; width: fit-content; }
.rd-task-builder > summary::-webkit-details-marker { display: none; }
.rd-task-builder[open] > summary span { transform: rotate(45deg); }
.rd-task-builder__body { padding-top: 16px; border-top: 1px solid var(--line); margin-top: 16px; }
.rd-task-builder__body .ob-hint { font-size: 12px; }
.rd-task-builder .doc-choices { gap: 12px; }
.rd-task-builder .doc-choices label { align-items: flex-start; padding: 8px 0; }
.rd-task-builder .fx-input--short { max-width: 100%; }
.rd-document-builders h3 { font-size: 14px; margin: 24px 0 8px; }
.rd-document-builders .doc-row, .rd-document-builders .ob-recent__link { font-size: 13px; padding: 12px 0; }
.rd-document-builders .ob-recent__meta { overflow-wrap: anywhere; font-size: 12px; }
.rd-step-head { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; }
.rd-step-number { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border: 1px solid var(--glass-border); border-radius: 50%; color: var(--accent-strong); background: var(--glass-selected); font-size: 12px; font-weight: 700; }
.rd-step-head h2, .rd-step-head label { margin: 0; font-size: 18px; font-weight: 600; }
.rd-entries .im-entry-card { padding: 24px; }
.rd-entries .im-entries__form { gap: 18px; }
.rd-entries .op-kind { gap: 12px; }
.rd-entries .op-kind__option { padding: 20px; min-height: 104px; border-radius: 16px; background: var(--glass-inset); }
.rd-entries .op-kind__option:has(input:checked) { background: var(--glass-sheen), var(--glass-selected); border-color: var(--accent); box-shadow: var(--glass-highlight); }
.rd-entries .op-kind__option strong { display: block; font-size: 16px; margin-bottom: 7px; }
.rd-entries .op-kind__option small { font-size: 13px; max-width: 38ch; }
.rd-upload-step { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; width: 100%; padding-top: 8px; }
.rd-upload-step .rd-step-head { width: 100%; margin-bottom: 0; }
.rd-upload-step input[type=file] { flex: 1 1 240px; min-width: 0; max-width: 100%; padding: 12px; background: var(--glass-inset); border: 1px dashed var(--line-strong); border-radius: 12px; }
.rd-upload-step .ob-hint { width: 100%; margin: 0; }
.rd-upload-help { margin-top: 18px; padding: 12px 14px; box-shadow: none; }
.rd-upload-help .ob-hint { margin: 0 0 6px; }
/* Only the chosen kind's template and sample file; with no kind chosen (or no :has), both. */
.im-entries:has(input[name="entries_kind"][value="draft"]:checked) [data-template-kind="filed"],
.im-entries:has(input[name="entries_kind"][value="filed"]:checked) [data-template-kind="draft"] { display: none; }
.rd-entries .op-headline { color: var(--ink-soft); }
.op-pager { display: flex; gap: 18px; margin-top: 12px; font-size: 14px; }
.rd-entry-results .op-head { gap: 8px; }
.rd-entry-results .op-notice { padding: 10px 14px; font-size: 12px; line-height: 1.5; }
.rd-entry-results .op-totals { gap: 12px; }
.rd-entry-results .op-tile { padding: 16px; }
.rd-entry-results .op-actions { margin: 0; }
.rd-entry-results .op-filters { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin: 0; }
.rd-settings-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.rd-settings-group h2 { margin: 0 0 12px; font-size: 15px; }
.rd-settings-group .set-list { border: 1px solid var(--glass-border); border-radius: 16px; overflow: hidden; background: var(--glass-sheen), var(--glass-surface); box-shadow: var(--glass-highlight); }
.rd-settings-group .ob-recent__row:last-child { border-bottom: 0; }
.rd-settings-group .ob-recent__link { padding: 17px 20px; }
.rd-settings-group .ob-recent__desc { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.rd-settings-group .ob-recent__desc span { color: var(--muted); }
.rd-settings-group .ob-recent__meta { margin-top: 5px; font-size: 12px; line-height: 1.5; }
.rd-ai-status { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; border: 1px solid var(--glass-border); border-radius: 18px; background: var(--glass-sheen), var(--glass-raised); box-shadow: var(--glass-highlight); }
.rd-ai-status h2 { margin: 4px 0 8px; font-size: 20px; }
.rd-ai-status p { color: var(--ink-soft); font-size: 13px; margin: 0; line-height: 1.5; max-width: 72ch; }
.rd-ai-status > a { flex: none; }
.rd-settings .set-ai { padding: 24px; }
.rd-settings .set-ai__form { border-top: 1px solid var(--line); padding-top: 18px; }
.rd-settings .set-ai__form label { font-size: 13px; line-height: 1.65; }
.rd-settings .set-ai__form label strong { color: var(--ink); }
.rd-settings .set-ai__form input[type=checkbox] { width: 17px; height: 17px; vertical-align: middle; accent-color: var(--accent); }
.rd-settings .set-ai-key { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.rd-settings .set-ai-key > p { margin: 0; font-size: 13px; line-height: 1.6; max-width: 72ch; }
.rd-settings .set-ai-key__form { display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 560px; }
.rd-settings .set-ai-key__row { display: flex; gap: 10px; align-items: center; }
.rd-settings .set-ai-key__row .fx-input { flex: 1; min-width: 0; font-family: var(--mono, ui-monospace, monospace); }
.rd-settings .set-ai-key__remove { margin: 0; }
/* The server's own AI key (settings/_server_ai_key, operators only): three quiet facts on the card's glass, then the form. */
.rd-settings .set-server-key__who { color: var(--ink-soft); font-weight: 400; }
.rd-settings .set-server-key__facts { display: grid; grid-template-columns: repeat(3, minmax(0, max-content)); gap: 6px 28px; margin: 0; font-size: 13px; }
.rd-settings .set-server-key__facts dt { color: var(--ink-soft); font-size: 12px; }
.rd-settings .set-server-key__facts dd { margin: 2px 0 0; color: var(--ink); font-weight: 600; }
.rd-settings .set-server-key__when { color: var(--ink-soft); font-weight: 400; }
.rd-settings .set-ai-switches { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.rd-settings .set-ai-switch { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: start; width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rd-settings .set-ai-switch__main { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.rd-settings .set-ai-switch__main input[type=checkbox] { flex: none; margin-top: 3px; }
.rd-settings .set-ai-switch__main strong { display: block; font-size: 14px; }
.rd-settings .set-ai-switch__line { display: block; color: var(--ink-soft); }
.rd-settings .set-ai-switch .set-ai__cadence { grid-column: 1; padding-left: 27px; }
.rd-settings .set-ai-switch__details { grid-column: 2; grid-row: 1; font-size: 12px; color: var(--muted); }
.rd-settings .set-ai-switch__details > summary { cursor: pointer; padding-top: 2px; }
.rd-settings .set-ai-switch__details[open] { grid-column: 1 / -1; grid-row: auto; padding-left: 27px; }
.rd-settings .set-ai-switch__details p { margin: 6px 0 0; font-size: 13px; line-height: 1.6; color: var(--ink-soft); max-width: 80ch; }
.rd-settings .set-ai-switches input[type=submit] { margin-top: 14px; }
.rd-audit .fx-head { position: relative; gap: 6px; }
.rd-audit .at-integrity { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 10px 20px; padding: 14px 18px; }
.rd-audit .at-integrity__title { font-size: 15px; }
.rd-audit .at-integrity__meta { font-size: 12px; }
.rd-audit .rd-integrity-details { margin-left: auto; font-size: 12px; color: var(--muted); }
.rd-audit .rd-integrity-details summary { cursor: pointer; }
.rd-audit .rd-integrity-details[open] { width: 100%; }
.rd-audit .at-filters__form { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 12px; }
.rd-audit .at-row { padding: 17px 0 6px; }
.rd-accuracy .acc-head { gap: 8px; }
.rd-accuracy .acc-lede { font-size: 14px; max-width: 80ch; }
.rd-accuracy .acc-meta { margin: 0; font-size: 13px; }
.rd-accuracy .fx-callout { padding: 10px 14px; font-size: 12px; }
.rd-accuracy .acc-cards { gap: 14px; }
.rd-accuracy .acc-card { padding: 22px; }
.rd-accuracy .acc-panel { padding: 20px; }
.rd-team .auth-table { width: 100%; margin-top: 10px; }
.rd-team .auth-table td { padding: 14px 12px; }
.rd-team .auth-table form { display: flex; align-items: center; gap: 8px; }
.rd-team .auth-table .fx-input { max-width: 180px; }
.rd-team .auth-table th { font-size: 12px; font-weight: 500; color: var(--muted); padding: 10px 12px; }
.rd-team-head { position: relative; }
.rd-back { display: inline-block; margin-bottom: 6px; font-size: 13px; }
.rd-team-invite { flex: none; }
.rd-team-invite > summary { list-style: none; cursor: pointer; }
.rd-team-invite > summary::-webkit-details-marker { display: none; }
.rd-team-invite[open] > summary { margin-bottom: 10px; }
.rd-team-invite__form { position: absolute; right: 0; top: 100%; z-index: 5; width: min(560px, 100%); padding: 20px; border: 1px solid var(--glass-border); border-radius: 18px; background: var(--surface, #fff); box-shadow: var(--glass-highlight), 0 18px 40px rgba(15, 23, 42, .14); }
.rd-team .rd-team-invite__form.auth-form { grid-template-columns: 1fr; }
.rd-team-role-label { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.rd-role-help { font-size: 12px; color: var(--muted); }
.rd-role-help > summary { cursor: pointer; color: var(--accent); }
.rd-role-help ul { margin: 6px 0 4px; padding-left: 18px; line-height: 1.6; color: var(--ink-soft); }
.rd-team-members .auth-table + .fx-h2 { margin-top: 26px; }
.rd-team-link { display: flex; flex-direction: column; gap: 10px; }
.rd-team-link .fx-h2 { margin: 0; }
.rd-team-link .fx-hint { margin: 0; font-size: 13px; color: var(--ink-soft); }
.rd-team-members { padding: 22px; border: 1px solid var(--glass-border); border-radius: 18px; background: var(--glass-sheen), var(--glass-surface); box-shadow: var(--glass-highlight); min-width: 0; }
.rd-team .auth-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: end; max-width: 800px; }
.rd-team .auth-form .small { grid-column: 1 / -1; margin: 0; font-size: 12px; }
.rd-team .auth-form input[type=submit] { justify-self: start; }
.rd-team .auth-form__field { margin: 0; }
.rd-team .auth-form__field .fx-input { width: 100%; }
.rd-team .small { font-size: 13px; line-height: 1.5; }
.rd-team code { overflow-wrap: anywhere; }
.rd-defaults .fx-profile__form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.rd-defaults .fx-profile__setting { border: 1px solid var(--glass-border); border-radius: 16px; padding: 20px; background: var(--glass-sheen), var(--glass-surface); box-shadow: var(--glass-highlight); margin: 0; min-width: 0; }
.rd-defaults .fx-profile__label { padding: 0 5px; font-size: 16px; }
.rd-defaults .fx-profile__actions { grid-column: 1 / -1; padding: 14px 0; position: sticky; bottom: 0; background: var(--glass-sheen), var(--glass-raised); border-top: 1px solid var(--line); backdrop-filter: blur(var(--glass-blur)); }
.rd-glossary-form { padding: 22px; border: 1px solid var(--glass-border); border-radius: 16px; background: var(--glass-sheen), var(--glass-surface); box-shadow: var(--glass-highlight); }
.rd-glossary .fx-glossary__form { display: grid; grid-template-columns: minmax(140px, .7fr) minmax(200px, 1.4fr) minmax(160px, 1fr) auto; gap: 14px; align-items: end; }
.rd-glossary .fx-glossary__form .fx-input { width: 100%; max-width: none; }
@media (max-width: 1100px) {
  .rd-document-builders, .rd-defaults .fx-profile__form { grid-template-columns: 1fr; }
  .rd-glossary .fx-glossary__form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rd-glossary .fx-glossary__actions { grid-column: 1 / -1; }
  .rd-accuracy .acc-cards { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .rd-settings-groups, .rd-team .auth-form, .rd-glossary .fx-glossary__form { grid-template-columns: 1fr; }
  .rd-ai-status { align-items: flex-start; flex-direction: column; padding: 18px; }
  .rd-entries .im-entry-card, .rd-document-builders > section, .rd-settings .set-ai { padding: 18px; }
  .rd-settings .set-ai-key__row { flex-direction: column; align-items: stretch; }
  .rd-settings .set-server-key__facts { grid-template-columns: 1fr; }
  .rd-audit .at-filters__form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rd-audit .at-filters__q, .rd-audit .at-more { grid-column: 1 / -1; }
  .rd-audit .at-integrity { padding: 10px 14px; gap: 6px 12px; }
  .rd-audit .at-integrity__title { font-size: 13px; }
  .rd-audit .rd-integrity-details { margin-left: 0; }
  .rd-team-members { overflow-x: auto; }
  .rd-team .auth-table { min-width: 500px; }
  .rd-team .auth-table td:empty { display: none; }
  .rd-team .change-heading { gap: 12px; }
  .rd-step-head h2, .rd-step-head label { font-size: 16px; }
  .rd-entries .op-kind__option { min-height: 0; padding: 16px; }
}

/* zzzzzzzz_workspace_redesign.css */
/* Layout and hierarchy only. All materials, colours, transparency and shadows use the established glass tokens. */
.workspace-shell { --workspace-rail: 208px; --topbar-height: 66px; --gutter: 28px; --text-h1: 28px; --text-display: 36px; --text-hero: 38px; }
.workspace-shell .fx-main { margin-left: var(--workspace-rail); min-width: 0; }
.workspace-shell .ws-topbar { height: var(--topbar-height); padding: 0 22px; gap: 14px; z-index: 85; }
.ws-topbar .fx-brand { font-size: 23px; gap: 9px; }
.ws-nav-toggle { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--glass-surface); color: var(--ink-soft); cursor: pointer; }
.ws-nav-toggle:hover { background: var(--glass-selected); color: var(--accent-strong); }
.ws-topbar__tools { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-left: auto; min-width: 0; }
.ws-topbar .fx-search-trigger { margin-left: 0; padding: 0 12px; min-height: 38px; }
/* The workspace switch: a neutral pill on your data, an amber one on sample data (both themes' --warn tokens). */
.ws-workspace { position: relative; font-size: 12px; }
.ws-workspace > summary { display: flex; align-items: center; gap: 6px; cursor: pointer; min-height: 36px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); list-style: none; background: var(--glass-surface); color: var(--ink-soft); font-weight: 600; white-space: nowrap; }
.ws-workspace > summary::-webkit-details-marker { display: none; }
.ws-workspace[open] > summary, .ws-workspace > summary:hover { background: var(--glass-selected); }
.ws-workspace--sample > summary, .ws-workspace--sample[open] > summary, .ws-workspace--sample > summary:hover { border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: var(--warn-bg); color: var(--warn); }
.ws-workspace--fixed { display: flex; align-items: center; gap: 8px; min-height: 36px; margin: 0; padding: 0 10px; color: var(--ink-soft); }
.ws-workspace__fixed-short { display: none; }
.ws-workspace__short { display: none; }
.ws-workspace__options { position: absolute; right: 0; top: calc(100% + 10px); width: 264px; padding: 8px; border: 1px solid var(--glass-border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-menu); z-index: 100; }
:is(.ws-workspace__options, .ws-sidebar__workspace) > a { display: flex; justify-content: space-between; gap: 16px; padding: 10px; text-decoration: none; border-radius: 9px; color: var(--ink-soft); }
:is(.ws-workspace__options, .ws-sidebar__workspace) > a:hover { background: var(--glass-surface); }
:is(.ws-workspace__options, .ws-sidebar__workspace) > a[aria-current] { background: var(--glass-selected); color: var(--accent-strong); }
.ws-sidebar__workspace { display: none; }
.ws-sidebar { position: fixed; top: var(--topbar-height); bottom: 0; left: 0; z-index: 70; width: var(--workspace-rail); padding: 18px 12px 12px; display: flex; flex-direction: column; border-right: 1px solid var(--glass-border); background: var(--glass-sheen), var(--glass-nav); backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation)); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation)); }
.ws-navigation { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.ws-nav-group + .ws-nav-group { margin-top: 12px; }
.ws-nav-group__label { margin: 6px 12px 5px; font-size: 10px; font-weight: 650; letter-spacing: .095em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.ws-nav-group--tools { padding-top: 8px; border-top: 1px solid var(--line); }
.ws-nav-link { display: flex; align-items: center; gap: 11px; position: relative; min-height: 40px; margin: 2px 0; padding: 8px 12px; border: 1px solid transparent; border-radius: 10px; text-decoration: none; color: var(--ink-soft); font-size: 13px; font-weight: 500; line-height: 1.4; white-space: nowrap; }
.ws-nav-link > svg { flex: none; opacity: .85; }
.ws-nav-link:hover { color: var(--ink); background: var(--glass-surface); }
.ws-nav-link.is-current { color: var(--accent-strong); background: var(--glass-sheen), var(--glass-selected); border-color: var(--glass-border); box-shadow: var(--glass-highlight); font-weight: 650; }
.ws-nav-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-left: auto; flex: none; }
.ws-sidebar__footer { flex: none; padding-top: 10px; margin-top: 14px; border-top: 1px solid var(--line); }
.ws-sidebar__organisation { margin: 8px 12px 0; font-size: 10px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-sidebar__mobile-head { display: none; }
.ws-nav-backdrop { display: none; }
.workspace-shell.ws-nav-collapsed { --workspace-rail: 68px; }
.ws-nav-collapsed .ws-sidebar { padding-left: 10px; padding-right: 10px; }
.ws-nav-collapsed .ws-nav-link { justify-content: center; padding-left: 0; padding-right: 0; }
.ws-nav-collapsed .ws-nav-link__label, .ws-nav-collapsed .ws-nav-group__label, .ws-nav-collapsed .ws-sidebar__organisation { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.ws-nav-collapsed .ws-nav-group + .ws-nav-group { padding-top: 10px; margin-top: 10px; border-top: 1px solid var(--line); }
.ws-nav-collapsed .ws-nav-dot { position: absolute; top: 6px; right: 5px; }
.workspace-shell .fx-page { padding-top: 28px; padding-bottom: 40px; }
.workspace-shell .fx-wrap { max-width: 1400px; }
.workspace-shell .fx-wrap--reading { max-width: 1100px; }
.workspace-shell :is(.ob-title, .xp-h1, .fx-product__title) { font-size: clamp(23px, 2.2vw, 30px); line-height: 1.2; letter-spacing: -.035em; }
.workspace-shell :is(.change-heading, .im-head, .ob-head) { margin-bottom: 22px; }
.workspace-shell :is(.im-lede, .xp-lede) { font-size: 14px; line-height: 1.6; margin-top: 7px; max-width: 72ch; }
.workspace-shell .fx-page--tool { max-width: none; padding-left: var(--gutter); padding-right: var(--gutter); }
.workspace-shell > .fx-flash--page, .workspace-shell > .cp-state--banner { margin-left: calc(var(--workspace-rail) + var(--gutter)); margin-right: var(--gutter); }
@media (max-width: 1100px) { .ws-topbar__tools { gap: 8px; } }
@media (max-width: 900px) {
  .workspace-shell { --workspace-rail: 0px; --gutter: 20px; }
  .workspace-shell .ws-topbar { padding: 0 16px; gap: 10px; }
  .ws-topbar .fx-search-trigger__text, .ws-topbar .fx-search-trigger kbd { display: none; }
  .ws-topbar .fx-search-trigger { min-height: 36px; width: 36px; padding: 0; justify-content: center; }
  .ws-sidebar { width: min(300px, calc(100vw - 48px)); top: 0; z-index: 130; transform: translateX(-100%); visibility: hidden; padding: 16px; border-radius: 0 20px 20px 0; }
  .ws-nav-open { overflow: hidden; }
  .ws-nav-open .ws-sidebar { transform: none; visibility: visible; }
  .ws-sidebar__mobile-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; font-size: 17px; }
  .ws-nav-link { min-height: 40px; font-size: 14px; }
  .ws-nav-group + .ws-nav-group { margin-top: 12px; }
  .ws-nav-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 120; background: var(--scrim); }
  .workspace-shell .fx-page { padding-top: 22px; }
}
@media (max-width: 600px) {
  /* One 56 px row: navigation, logo, a sample pill or fixed workspace label, search and the account. */
  .workspace-shell { --gutter: 16px; --topbar-height: 56px; }
  .workspace-shell .ws-topbar { padding: 0 10px; gap: 6px; }
  .ws-topbar .fx-brand { font-size: 19px; gap: 7px; }
  .ws-topbar__tools { gap: 4px; }
  .ws-topbar .ws-workspace:not(.ws-workspace--sample):not(.ws-workspace--fixed) { display: none; }
  .ws-workspace__name, .ws-workspace__chev { display: none; }
  .ws-workspace__fixed-short { display: inline; white-space: nowrap; }
  .ws-workspace--fixed { padding: 0 2px; }
  .ws-workspace__short { display: inline; }
  .ws-workspace > summary { padding: 0 10px; font-size: 13px; }
  .ws-workspace__options { position: fixed; top: calc(var(--topbar-height) + 6px); left: 10px; right: 10px; width: auto; }
  .ws-sidebar__workspace { display: grid; gap: 2px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
  .ws-topbar .fx-search-trigger { width: 40px; min-width: 40px; padding: 0; }
  .ws-topbar .fx-account__button { width: 40px; }
}
@media (prefers-reduced-motion: no-preference) { .ws-sidebar { transition: transform 160ms ease, visibility 160ms ease; } }
@media print {
  .ws-sidebar, .ws-topbar, .ws-nav-backdrop { display: none !important; }
  .workspace-shell .fx-main { margin: 0 !important; }
}

/* The assistant is the starting point; the remaining rail is a stable workbench. */
.ws-nav-link[data-workspace-destination="assistant"] { min-height: 48px; margin-bottom: 9px; font-size: 14px; font-weight: 650; }
.ws-nav-link[data-workspace-destination="assistant"] > svg { color: var(--accent-strong); width: 21px; height: 21px; }
.ws-navigation { padding-bottom: 12px; }
.ws-nav-collapsed .ws-nav-link[data-workspace-destination="assistant"] { min-height: 44px; }

/* zzzzzzzzzz_client_workflows.css */
/* Client entry points: a short daily surface, with supporting detail available on demand. */
.today-first-steps { padding: 24px; display: grid; gap: 12px; }
.today-first-steps > p { margin: 0; font-size: 14px; }
.today-first-steps__actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-size: 13px; }
@media (max-width: 720px) {
  .today-page .change-heading { flex-direction: row; align-items: center; text-align: left; }
}

/* zzzzzzzzzz_preparation_journey.css */
/* Existing preparation workflows: clear next steps, compact records and optional detail. */
.prep-page > .fx-wrap { gap: 20px; }
.prep-shortcuts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; font-size: 13px; }
.prep-next { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 22px; border: 1px solid var(--glass-border); border-radius: 16px; background: var(--glass-sheen), var(--glass-surface); box-shadow: var(--glass-highlight); backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation)); }
.prep-next > div { min-width: 0; }
.prep-next h2 { margin: 5px 0 8px; font-size: 18px; line-height: 1.4; }
.prep-next h2 .mono { font-size: 14px; color: var(--muted); font-weight: 500; }
.prep-next p { margin: 0; max-width: 80ch; color: var(--ink-soft); font-size: 13px; line-height: 1.6; }
.prep-next > .fx-btn { flex: none; }
.prep-eyebrow { display: block; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .045em; text-transform: uppercase; }
.prep-page .rd-list-toolbar { margin: 4px 0 0; }
.prep-page .sp-section { margin-top: 0; }
.prep-page .sp-table td { padding: 14px 16px; }
.prep-page .sp-table th { white-space: normal; line-height: 1.4; }
.prep-cell-note { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.prep-secondary { padding: 14px 0; border-top: 1px solid var(--line); font-size: 13px; }
.prep-secondary > summary, .prep-paste > summary, .prep-why > summary { cursor: pointer; color: var(--ink-soft); font-weight: 500; }
.prep-secondary[open] > summary { margin-bottom: 14px; }
.prep-secondary .fx-hint { line-height: 1.6; }
.prep-why { margin-top: 8px; font-size: 12px; }
.prep-why > summary { color: var(--muted); }
.prep-why p { margin: 7px 0 0; max-width: 65ch; line-height: 1.6; color: var(--ink-soft); }
.prep-request-action { display: flex; align-items: end; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.prep-request-action .fx-field { margin: 0; }
.prep-request-help { margin: 9px 0 0; }
.prep-link-options { border-top: 0; padding: 10px 0 18px; }
.prep-link-options .fx-input { width: auto; }
.prep-link-options[open] .fx-field { margin: 0; }
.prep-paste { font-size: 13px; margin: 0; }
.prep-paste[open] > summary { margin-bottom: 12px; }
.prep-paste .fx-hint { margin: 8px 0 0; }
.prep-field-guide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 26px; margin: 0 0 16px; }
.prep-field-guide dt { font-weight: 600; color: var(--ink); margin-bottom: 5px; }
.prep-field-guide dd { margin: 0; color: var(--ink-soft); line-height: 1.6; }
.prep-import-handoff { margin: 14px 0 0; }
.prep-document-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.prep-document { min-width: 0; padding: 22px; border: 1px solid var(--glass-border); border-radius: 16px; background: var(--glass-sheen), var(--glass-surface); box-shadow: var(--glass-highlight); backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation)); }
.prep-document h2 { font-size: 19px; line-height: 1.4; margin: 8px 0; }
.prep-document > p { color: var(--ink-soft); font-size: 13px; line-height: 1.6; margin: 0 0 18px; }
.prep-document > .fx-btn, .prep-document-form > summary { white-space: normal; text-align: left; line-height: 1.4; font-size: 13px; }
.prep-document-form > summary { cursor: pointer; display: inline-flex; list-style: none; }
.prep-document-form > summary::-webkit-details-marker { display: none; }
.prep-document-form[open] .doc-form { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; }
.prep-document-form input[type=file] { max-width: 100%; font-size: 12px; }
.prep-document-form .doc-choices { font-size: 13px; gap: 14px; }
.prep-document-form .doc-choices legend { margin-bottom: 10px; }
.prep-document-form .fx-input--short { min-width: 0; max-width: 100%; }
.prep-document-form .fx-hint { margin: 0; font-size: 12px; line-height: 1.6; }
.prep-document-form .doc-form > button { justify-self: start; }
.prep-files { border-top: 1px solid var(--line); padding-top: 20px; }
.prep-files > h2 { font-size: 18px; margin: 0 0 7px; }
.prep-files > h3 { font-size: 14px; margin: 20px 0 8px; }
.prep-files .doc-row { padding: 14px 0; }
.prep-files .ob-recent__desc { font-size: 14px; }
.prep-files .ob-recent__meta { display: block; font-size: 12px; margin-top: 5px; overflow-wrap: anywhere; }
@media (max-width: 1150px) {
  .prep-document-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .prep-next { align-items: flex-start; flex-direction: column; padding: 18px; gap: 16px; }
  .prep-document-choices, .prep-field-guide { grid-template-columns: 1fr; }
  .prep-document { padding: 18px; }
}

/* zzzzzzzzzz_tools_directory.css */
/* Uses the existing glass material and theme tokens; no new theme palette. */
.tools-page { max-width: 1120px !important; }
.tools-search-hint { margin: 0 0 8px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.tools-group { margin: 0 0 28px; }
.tools-group > h2 { margin-bottom: 12px; }
.tools-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tools-item { display: flex; flex-direction: column; gap: 8px; padding: 18px; min-width: 0; border: 1px solid var(--glass-border); border-radius: 14px; background: var(--glass-sheen), var(--glass-surface); box-shadow: var(--glass-highlight); color: var(--ink); text-decoration: none; }
.tools-item:hover { background: var(--glass-sheen), var(--glass-selected); border-color: var(--line-strong); }
.tools-item:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; }
.tools-item__title { font-size: 14px; font-weight: 650; }
.tools-item__hint { font-size: 12px; line-height: 1.55; color: var(--muted); }
.tools-item__notice { font-size: 11px; color: var(--accent-strong); }
.pl__header-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
@media (max-width: 1100px) { .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 650px) {
  .tools-grid { grid-template-columns: minmax(0, 1fr); }
  .pl__header-actions { justify-content: flex-start; }
  .pl__top:has(.pl__header-actions) { flex-wrap: wrap; }
}

/* zzzzzzzzzzzz_supporting_work.css */
/* Supporting screens put the next action before optional portfolio context. */
.money-workspace .support-alternate { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.money-workspace .support-alternate a { margin-left: 6px; white-space: nowrap; }
.money-workspace .money-selected-builder { padding: 22px; border: 1px solid var(--glass-border); border-radius: 18px; background: var(--glass-sheen), var(--glass-surface); box-shadow: var(--glass-highlight); }
.money-selected-builder .money-section-heading { padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.money-create .support-scenario-help { margin: 0; font-size: 12px; }
.money-create .money-options { padding: 11px 14px; }
.money-create .xp-plan__form { gap: 14px; }
.money-create .money-basis { padding-block: 4px; }
.support-readiness-summary { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 4px 0; color: var(--muted); font-size: 13px; }
.support-readiness-summary strong { color: var(--ink); font-weight: 600; }
.prep-page .support-readiness-caveat { margin-top: -12px; margin-bottom: 0; font-size: 12px; }
.rd-data-page .prep-next { margin: 0; }
.support-document-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.support-document-heading h2 { margin: 0; }
.support-document-heading a { font-size: 13px; }
.rd-documents .prep-document-choices { grid-template-columns: 1fr; gap: 12px; }
.rd-documents .prep-document { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 26px; padding: 20px 22px; }
.rd-documents .prep-document > :is(.prep-eyebrow, h2, p) { grid-column: 1; }
.rd-documents .prep-document > h2 { font-size: 18px; margin: 5px 0 6px; }
.rd-documents .prep-document > p { margin: 0; max-width: 70ch; }
.rd-documents .prep-document > :is(.prep-document-form, .fx-btn) { grid-column: 2; grid-row: 1 / span 4; align-self: center; }
.rd-documents .prep-document:has(.prep-document-form[open]) > .prep-document-form { grid-column: 1 / -1; grid-row: auto; margin-top: 18px; }
.rd-documents .prep-document-form[open] .doc-form { margin-top: 16px; }
.rd-documents .prep-document-form .doc-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; }
.rd-documents .prep-document-form .doc-choices label { flex-wrap: wrap; }
.rd-documents #prepared-files { scroll-margin-top: 90px; }
.rd-documents .prep-document[data-report=executive-brief] { background: var(--glass-inset); box-shadow: var(--glass-highlight); }
@media (max-width: 760px) {
  .money-workspace .money-selected-builder { padding: 18px; }
  .rd-documents .prep-document { grid-template-columns: 1fr; padding: 18px; }
  .rd-documents .prep-document > :is(.prep-document-form, .fx-btn) { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 16px; }
  .rd-documents .prep-document-form .doc-choices { grid-template-columns: 1fr; }
  .support-readiness-summary { gap: 8px 16px; }
}

/* zzzzzzzzzzzz_unified_products.css */
/* One product workspace, with the existing transparent glass surfaces and colour tokens. */
.product-workspace .pl__head { padding-top: 26px; gap: 18px; }
.product-workspace .pl__top { align-items: center; }
.product-views { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.product-views__item { display: inline-flex; align-items: center; gap: 10px; min-height: 41px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--glass-surface); color: var(--muted); text-decoration: none; font-size: 13px; line-height: 1.35; }
.product-views__item:hover, .product-views__item:focus-visible { border-color: var(--accent); color: var(--ink); }
.product-views__item[aria-current="page"] { background: var(--glass-selected); border-color: var(--accent); color: var(--accent-strong); font-weight: 600; }
.product-views__count { font-variant-numeric: tabular-nums; font-size: 11px; padding: 2px 6px; border-radius: 6px; background: var(--glass-raised); }
.product-view-note { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.6; }
.product-workspace .product-catalog { border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--glass-sheen), var(--glass-surface); box-shadow: var(--glass-highlight); }
.product-workspace .catalog-scroll { border: 0; border-radius: 0 0 var(--radius-card) var(--radius-card); background: transparent; }
.product-workspace .product-work-table { width: 100%; min-width: 790px; table-layout: fixed; }
.product-workspace .product-work-table th { font-size: 11px; font-weight: 550; white-space: normal; padding: 13px 10px; background: var(--glass-inset); }
.product-workspace .product-work-table td { vertical-align: middle; padding: 14px 10px; font-size: 12px; }
.product-workspace .product-work-table :is(th, td):first-child { padding-left: 18px; }
.product-workspace .product-work-table :is(th, td):last-child { padding-right: 18px; }
.product-workspace .product-work-table th.catalog-select { width: 4%; }
.product-workspace .product-work-table .catalog-select[hidden] { display: none; }
.product-workspace[data-catalog-selection-active="false"] .product-work-table th.product-identity { width: 33%; }
.product-workspace [data-catalog-target="selectionToggle"][aria-expanded="true"] { color: var(--accent-strong); border-color: var(--accent); background: var(--glass-selected); }
.product-workspace .product-work-table :is(th, td).catalog-select { padding-left: 6px; padding-right: 6px; }
.product-workspace .product-work-table th.product-identity { width: 29%; }
.product-workspace .product-work-table th.product-status-heading { width: 20%; }
.product-workspace .product-work-table th[data-col="code"] { width: 14%; }
.product-workspace .product-work-table th[data-col="confidence"] { width: 10%; }
.product-workspace .product-work-table th[data-col="origin"] { width: 10%; }
.product-workspace .product-work-table th[data-col="duty"] { width: 16%; }
.product-workspace .product-work-table .catalog-product { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; line-height: 1.4; max-width: none; }
.product-workspace .product-work-table .catalog-id { margin-top: 4px; line-height: 1.35; font-family: var(--font-sans, inherit); font-size: 10.5px; white-space: normal; }
/* Under the name, one muted line: the identifier and, for read-only roles, how Tarivo read the description. */
.product-workspace .product-identity__meta { display: flex; gap: 10px; min-width: 0; }
.product-workspace .product-identity__meta > .catalog-id { flex: 0 1 auto; min-width: 0; }
.product-workspace .product-identity__meta > .product-identifiers { flex: none; max-width: 100%; }
.product-identifiers__label { color: var(--muted); font-weight: 400; }
.product-workspace .product-work-status { min-width: 0; max-width: none; }
.product-workspace .product-work-status .catalog-status { white-space: normal; line-height: 1.4; }
.product-status-icon { width: 16px; height: 16px; flex: none; }
.product-views__label { display: inline-flex; align-items: center; gap: 7px; }
.product-views__item[data-workflow="needs_review"] { --work-color: var(--warn); }
.product-views__item[data-workflow="confirmed"] { --work-color: var(--good); }
.product-views__item[data-workflow="needs_information"] { --work-color: var(--accent); }
.product-views__item:is([data-workflow="needs_review"], [data-workflow="confirmed"], [data-workflow="needs_information"]) .product-status-icon { color: var(--work-color); }
.product-views__item:is([data-workflow="needs_review"], [data-workflow="confirmed"], [data-workflow="needs_information"])[aria-current="page"] { color: var(--work-color); border-color: var(--work-color); background: color-mix(in srgb, var(--work-color) 10%, var(--glass-surface)); }
.product-views__item:is([data-workflow="needs_review"], [data-workflow="confirmed"]) .product-views__count { color: var(--work-color); background: color-mix(in srgb, var(--work-color) 10%, var(--glass-raised)); font-weight: 650; }
.product-work-table tr[data-work-tone] { --work-color: var(--muted); }
.product-work-table tr[data-work-tone="outdated"] { --work-color: var(--warn); }
.product-work-table tr[data-work-tone="complete"] { --work-color: var(--good); }
.product-work-table tr:is([data-work-tone="missing_details"], [data-work-tone="processing"]) { --work-color: var(--accent); }
.product-work-table tr[data-work-tone="failed"] { --work-color: var(--bad); }
.product-workspace .product-work-status .catalog-status { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; color: var(--work-color); font-size: 12px; font-weight: 650; }
.product-workspace .product-work-table .confidence-band { padding: 4px 5px; font-size: 10.5px; }
.product-workspace .product-work-table td[data-col="origin"] .flagged { display: inline-flex; align-items: flex-start; gap: 4px; white-space: normal; }
.product-workspace .product-work-table td[data-col="origin"] .flag { flex: none; width: 16px; height: 12px; margin: 2px 0 0; }
.product-workspace .product-work-table td[data-col="origin"] .flagged__name { min-width: 0; overflow-wrap: anywhere; }
.product-workspace .catalog-table :is(th, td)[data-col="duty"] { min-width: 0; white-space: nowrap; text-align: right; }
.product-workspace .catalog-review-link { text-decoration: none; }
.product-workspace .catalog-review-link:hover { color: var(--accent-strong); }
.product-workspace .catalog-duty-link { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 15px; line-height: 1.25; font-weight: 600; font-variant-numeric: tabular-nums; }
.product-workspace .catalog-table td[data-col="duty"] .catalog-unit { font-size: 11px; font-weight: 400; }
.product-workspace .catalog-duty-link .catalog-muted { font-size: 12px; font-weight: 400; }
.product-workspace .catalog-table .catalog-duty-note { margin-top: 2px; color: var(--warn); }
.product-workspace .catalog-table .catalog-duty-note--confirmed { display: flex; align-items: center; justify-content: flex-end; gap: 4px; color: var(--good); }
.catalog-duty-note .product-status-icon { width: 12px; height: 12px; }
.product-workspace .catalog-table .catalog-code-source--warn { color: var(--warn); }
.product-workspace .product-empty { padding: 42px 26px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--glass-sheen), var(--glass-surface); }
.product-workspace .product-empty h2 { margin: 0 0 10px; color: var(--ink); font-size: 19px; }
.product-workspace .product-empty p { max-width: 64ch; line-height: 1.6; }
.product-selection-edit { position: relative; }
.product-selection-edit > summary { cursor: pointer; }
.product-selection-edit > div { position: absolute; z-index: 65; top: calc(100% + 8px); left: 0; width: min(340px, calc(100vw - 60px)); padding: 17px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--glass-sheen), var(--glass-raised); backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation)); box-shadow: var(--shadow-card); display: flex; flex-wrap: wrap; gap: 10px; }
.product-selection-edit p { margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.product-selection-edit label { width: 100%; font-size: 12px; font-weight: 600; }
.product-selection-edit input { width: 100%; }
@media (max-width: 650px) {
  .product-workspace .pl__top { align-items: flex-start; flex-wrap: wrap; }
  .product-workspace .pl__header-actions { margin-left: 0; }
  .product-views { display: grid; grid-template-columns: 1fr 1fr; }
  .product-views__item { justify-content: space-between; padding: 9px 11px; font-size: 12px; }
  .product-workspace .pl__head { padding-left: 18px; padding-right: 18px; }
  .product-workspace .pl__listframe { padding-left: 18px; padding-right: 18px; }
}

.catalog-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* zzzzzzzzzzzzz_focus_visual.css */
/* Focus is a visual reading of stored portfolio data. Keep the shared glass surfaces and palette. */
.focus-page { gap: 26px; }
.focus-page .change-heading { align-items: center; gap: 22px; }
.focus-page .change-heading .planning-eyebrow { margin: 0 0 8px; }
.focus-page .change-heading .fx-title { margin-bottom: 8px; }
.focus-page .change-heading .fx-lede { margin: 0; max-width: 65ch; font-size: 14px; line-height: 1.55; }
.focus-page .today-header-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 14px; }
.focus-page .today-tools-link { display: inline-flex; align-items: center; min-height: 42px; padding: 9px 15px; border: 1px solid var(--glass-border); border-radius: 12px; background: var(--glass-sheen), var(--glass-surface); white-space: nowrap; }
.focus-glass { border: 1px solid var(--glass-border); border-radius: 22px; background: var(--glass-sheen), var(--glass-surface); box-shadow: var(--shadow-card); backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation)); }
.focus-snapshot { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr); gap: 18px; min-width: 0; }
.focus-exposure, .focus-origins { padding: 22px; min-width: 0; }
.focus-exposure { display: flex; flex-direction: column; background: var(--glass-sheen), var(--glass-inset); }
.focus-card-heading { display: flex; align-items: center; gap: 10px; min-width: 0; }
.focus-card-heading h2 { margin: 0; color: var(--ink); font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.focus-card-heading h2 a { color: inherit; text-decoration: none; }
.focus-card-heading h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.focus-card-heading p { margin: 3px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.focus-kicker { margin: 0; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .055em; text-transform: uppercase; }
/* "Sample data" sits on the figure itself, at every width and in print: the top bar's pill does not print. */
.focus-kicker[data-xp=sample] { padding: 3px 8px; border-radius: 7px; background: var(--supplied-bg, var(--surface-muted)); color: var(--supplied, var(--ink-soft)); white-space: nowrap; }
.focus-card-heading > .focus-kicker { margin-left: auto; }
.focus-pictogram { display: inline-grid; flex: none; place-items: center; width: 35px; height: 35px; border: 1px solid var(--glass-border); border-radius: 11px; background: var(--glass-icon-tint); color: var(--accent-strong); box-shadow: var(--glass-highlight); }
.focus-pictogram svg { width: 20px; height: 20px; }
.focus-exposure__main { display: grid; grid-template-columns: minmax(0, 1fr) 134px; align-items: center; gap: 10px 16px; flex: 1; padding: 22px 0 16px; }
.focus-exposure__amount { display: grid; align-content: start; gap: 8px; min-width: 0; }
.focus-money { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 8px; margin: 0; color: var(--ink); }
.focus-money strong { font-size: clamp(30px, 3.1vw, 48px); font-weight: 550; line-height: 1.12; letter-spacing: -.065em; font-variant-numeric: tabular-nums; }
.focus-money > span { color: var(--muted); font-size: 13px; white-space: nowrap; }
.focus-exposure__fact { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.55; }
.focus-coverage { display: grid; justify-items: center; gap: 2px; text-align: center; color: var(--muted); text-decoration: none; border-radius: 14px; font-size: 10px; line-height: 1.5; }
.focus-coverage:hover { background: var(--glass-surface); }
.focus-coverage__ring { display: block; width: 128px; height: 128px; overflow: visible; }
.focus-coverage__track { stroke: var(--line); }
.focus-coverage__fill { stroke: var(--glass-mint); }
.focus-coverage__value { fill: var(--ink); font-size: 27px; font-weight: 550; letter-spacing: -.05em; }
.focus-coverage__word { fill: var(--muted); font-size: 10px; }
.focus-coverage > span strong { color: var(--accent-strong); font-weight: 500; }
.focus-plan-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.focus-plan-counts__item { display: grid; align-content: start; gap: 3px; min-width: 0; padding: 12px 10px 4px; border-radius: 9px; color: var(--ink-soft); text-decoration: none; }
.focus-plan-counts__item:first-child { padding-left: 0; }
.focus-plan-counts__item + .focus-plan-counts__item { border-left: 1px solid var(--line); border-radius: 0; }
.focus-plan-counts__item:hover { color: var(--accent-strong); background: var(--glass-surface); }
.focus-plan-counts__item:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
.focus-plan-counts__item strong { color: var(--ink); font-size: 21px; font-weight: 550; line-height: 1.15; font-variant-numeric: tabular-nums; }
.focus-plan-counts__item span { font-size: 11px; line-height: 1.35; }
.focus-exposure__basis { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.focus-exposure__unavailable { margin: 0; color: var(--ink); font-size: clamp(20px, 2vw, 28px); line-height: 1.3; font-weight: 500; letter-spacing: -.035em; }
.focus-opportunity { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px; border: 1px solid var(--glass-border); border-radius: 13px; background: var(--glass-surface); color: var(--ink-soft); text-decoration: none; }
.focus-opportunity > span:nth-child(2) { flex: 1; }
.focus-opportunity strong { display: block; color: var(--ink); font-size: 12px; font-weight: 600; }
.focus-opportunity small { display: block; margin-top: 4px; font-size: 10px; line-height: 1.55; }
.focus-opportunity > span:last-child { color: var(--accent-strong); }
.focus-origins { display: flex; flex-direction: column; gap: 18px; }
.focus-origin-chart { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.focus-origin-chart li { min-width: 0; }
.focus-origin-chart__row { display: grid; gap: 7px; border-radius: 6px; color: var(--ink-soft); text-decoration: none; }
.focus-origin-chart__row:hover .focus-origin-chart__label strong { color: var(--accent-strong); }
.focus-origin-chart__label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 12px; line-height: 1.3; }
.focus-origin-chart__label strong { font-weight: 500; }
.focus-origin-chart__label > span { display: inline-flex; align-items: baseline; gap: 10px; flex: none; font-variant-numeric: tabular-nums; }
.focus-origin-chart__label small { color: var(--muted); font-size: 10px; min-width: 35px; text-align: right; }
.focus-origin-chart__track { display: block; width: 100%; height: 7px; overflow: hidden; border-radius: 999px; background: var(--line); }
.focus-origin-chart__fill { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.focus-origin-chart li:nth-child(n+2) .focus-origin-chart__fill { opacity: .77; }
.focus-origin-chart__go { color: var(--muted); font-size: 16px; line-height: 1; }
.focus-chart-link { margin-top: auto; padding-top: 1px; font-size: 11px; width: fit-content; }
.focus-chart-empty { flex: 1; display: grid; align-content: center; justify-items: start; gap: 10px; padding: 8px 0; }
.focus-chart-empty > svg { width: 38px; height: 38px; color: var(--accent); opacity: .65; }
.focus-chart-empty h3 { margin: 0; font-size: 15px; font-weight: 550; }
.focus-chart-empty p { margin: 0; color: var(--muted); max-width: 43ch; font-size: 12px; line-height: 1.65; }
.focus-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 0 0 14px; }
.focus-section-heading h2 { margin: 5px 0 0; font-size: 22px; font-weight: 500; line-height: 1.25; letter-spacing: -.035em; }
.focus-section-heading > span { color: var(--muted); font-size: 11px; line-height: 1.5; }
/* The figures' stamp under the title (as-of time, release, held revision); it prints with the figures. */
.focus-page .today-stamp { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.focus-page .today-add-own { font-size: 14px; white-space: nowrap; }
/* Today's list: one compact row per item (icon, title over a two-line reason, amount, button); the rows share their
   columns, so amounts and buttons line up down the list. */
.focus-page .today-list { display: grid; grid-template-columns: 35px minmax(0, 1fr) auto auto; margin: 0; padding: 2px 20px; list-style: none; border-radius: 18px; }
.focus-page .today-item { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; grid-template-areas: "icon text impact action"; align-items: center; gap: 4px 18px; padding: 14px 0; border-top: 1px solid var(--line); min-width: 0; }
.focus-page .today-item:first-child { border-top: 0; }
.focus-page .today-item__icon { grid-area: icon; align-self: start; }
.focus-page .today-item__text { grid-area: text; min-width: 0; }
.focus-page .today-item h3 { margin: 0; font-size: 16px; font-weight: 550; line-height: 1.4; letter-spacing: -.015em; }
.focus-page .today-item h3 a { color: var(--ink); text-decoration: none; }
.focus-page .today-item h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.focus-page .today-item__reason { display: -webkit-box; margin: 2px 0 0; overflow: hidden; color: var(--muted); font-size: 14px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.focus-page .today-item__date { color: var(--ink); font-weight: 500; }
.focus-page .today-item--a .today-item__date { color: var(--warn); }
.focus-page .today-item__date::after { content: " · "; color: var(--muted); font-weight: 400; }
.focus-page .today-item__impact { grid-area: impact; display: grid; justify-items: end; gap: 1px; margin: 0; text-align: right; }
.focus-page .today-item__amount { font-size: 16px; font-weight: 600; line-height: 1.3; font-variant-numeric: tabular-nums; white-space: nowrap; }
.focus-page .today-item__amount .catalog-unit { color: var(--muted); font-size: 13px; font-weight: 400; }
.focus-page :is(.today-item__label, .today-item__more) { color: var(--muted); font-size: 13px; line-height: 1.4; }
.focus-page .today-item__action { grid-area: action; justify-self: end; min-height: 44px; font-size: 14px; white-space: nowrap; }
.focus-page .today-more > summary { display: flex; align-items: center; min-height: 44px; width: fit-content; margin-top: 4px; color: var(--muted); font-size: 14px; cursor: pointer; }
.focus-clear { display: flex; align-items: center; gap: 14px; padding: 22px; }
.focus-clear h3 { margin: 0; font-size: 16px; font-weight: 500; }
.focus-clear p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.focus-clear > .fx-link { margin-left: auto; font-size: 12px; }
.focus-page .today-first-steps { padding: 30px; border-radius: 22px; background: var(--glass-sheen), var(--glass-surface); }
.focus-page .today-first-steps > h2 { font-size: 27px; font-weight: 500; letter-spacing: -.035em; }
.focus-page .today-first-steps__line { margin: 0; font-size: 14px; line-height: 1.6; }
.focus-page :is(.focus-origin-chart__row, .focus-opportunity):focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 5px; }
@media (max-width: 1120px) {
  .focus-snapshot { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; }
  .focus-exposure, .focus-origins { padding: 18px; }
  .focus-exposure__main { grid-template-columns: minmax(0, 1fr) 112px; gap: 8px; }
  .focus-coverage__ring { width: 108px; height: 108px; }
}
@media (max-width: 880px) {
  .focus-snapshot { grid-template-columns: 1fr; }
  .focus-exposure__main { grid-template-columns: minmax(0, 1fr) 134px; }
  .focus-coverage__ring { width: 128px; height: 128px; }
  .focus-money strong { font-size: 44px; }
  .focus-section-heading { align-items: start; }
  .focus-section-heading > span { max-width: 140px; text-align: right; }
}
@media (max-width: 720px) {
  .focus-page .today-list { display: block; padding: 2px 16px; }
  .focus-page .today-item { grid-template-columns: 35px minmax(0, 1fr); grid-template-areas: "icon text" ". impact" ". action"; gap: 10px 14px; }
  .focus-page .today-item__impact { justify-items: start; text-align: left; }
  .focus-page .today-item__action { justify-self: start; }
  /* A phone line holds about a third of a desktop one: three lines keep each reason's second clause too. */
  .focus-page .today-item__reason { -webkit-line-clamp: 3; line-clamp: 3; }
}
@media (max-width: 540px) {
  .focus-page { gap: 22px; }
  .focus-page .change-heading { align-items: flex-start; gap: 12px; }
  .focus-page .today-header-actions { justify-content: flex-start; }
  .focus-exposure__main { grid-template-columns: minmax(0, 1fr) 98px; gap: 8px; }
  .focus-coverage__ring { width: 98px; height: 98px; }
  .focus-money strong { font-size: 34px; }
  .focus-exposure__unavailable { font-size: 21px; }
  .focus-clear { flex-wrap: wrap; }
  .focus-clear > .fx-link { margin-left: 49px; }
}
@media print {
  .focus-glass { background: var(--surface); backdrop-filter: none; box-shadow: none; }
  .focus-page :is(.today-add-own, .today-tools-link, .today-stamp .xp-spinner, .today-stamp .xp-updating__progress), .focus-chart-link { display: none; }
}

/* zzzzzzzzzzzzz_product_review.css */
.product-workspace .catalog-row--review { scroll-margin-top: calc(var(--topbar-height, 68px) + 16px); }
html:has(.product-review-dialog) { scrollbar-gutter: stable; }
.product-review-open { overflow: hidden; }
.product-review-dialog { overflow: clip; box-sizing: border-box; width: min(720px, calc(100vw - 32px)); max-width: none; height: min(640px, calc(100dvh - 32px)); min-height: 0; max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: var(--glass-sheen), var(--glass-raised); box-shadow: var(--shadow-menu); backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation)); }
.product-review-dialog[open] { display: flex; flex-direction: column; animation: product-review-appear 160ms ease-out; }
.product-review-dialog::backdrop { background: rgb(16 28 46 / .38); backdrop-filter: blur(5px); animation: product-review-appear 160ms ease-out; }
@keyframes product-review-appear { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .product-review-dialog[open], .product-review-dialog::backdrop { animation: none; } }
.product-review-surface { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; min-height: 0; }
.product-review-dialog__header { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.product-review-dialog__header > div:first-child { min-width: 0; }
.product-review-dialog__header h2 { margin: 0; font-size: 17px; font-weight: 550; line-height: 1.4; letter-spacing: -.025em; overflow-wrap: anywhere; }
.product-review-dialog__header h2:focus { outline: none; }
.product-review-dialog__links { flex: none; display: flex; align-items: center; gap: 12px; font-size: 14px; }
.product-review-dialog__links > a { white-space: nowrap; text-underline-offset: 3px; }
.product-review-dialog__links > button { min-height: 36px; padding: 6px 10px; font-size: 14px; }
.product-review-dialog__status { min-height: 1.45em; margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.product-review-dialog__status:empty { visibility: hidden; }
.product-review-dialog__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-gutter: stable; }
.product-review-dialog__loading { display: grid; gap: 14px; padding: 20px; }
.product-review-dialog__loading-actions { display: flex; align-items: center; justify-content: space-between; padding: 0 0 16px; border-bottom: 1px solid var(--line); }
.product-review-dialog__loading span, .product-review-dialog__loading strong { display: block; width: 55%; height: 12px; border-radius: 5px; background: color-mix(in srgb, var(--ink) 8%, transparent); }
.product-review-dialog__loading-actions > span { width: 32%; height: 30px; }
.product-review-dialog__loading-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 22px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--glass-surface); }
.product-review-dialog__loading-metrics > div { display: grid; gap: 18px; }
.product-review-dialog__loading strong { width: 85%; height: 30px; }
.product-review-dialog__loading-detail { height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--glass-surface); }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .ob-wrap { display: block; height: auto; min-height: 0; max-width: none; margin: 0; padding: 0 20px 20px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .pl-back { display: none; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .ob-hero { margin: 0; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .ob-title { display: none; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .product-review-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 12px 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .product-review-meta > span + span::before { content: "·"; margin-right: 12px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .product-review-confirmed { padding: 14px 0; border-bottom: 1px solid var(--line); }
.product-review-confirmed > [role=status] :is(strong, span) { display: block; }
.product-review-confirmed > [role=status] :is(span, p) { font-size: 13px; color: var(--muted); margin: 5px 0 0; }
.product-review-confirmed .product-remove-form { margin-top: 12px; }
.product-review-removal { margin-bottom: 12px; }
.product-confirmation { position: sticky; top: calc(var(--topbar-height, 68px) + 8px); z-index: 12; background: var(--glass-sheen), var(--glass-raised); backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation)); }
.product-confirmation .fx-btn[disabled] { opacity: .6; cursor: not-allowed; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .product-confirmation { top: 0; margin: 0 -20px 16px; padding: 12px 20px; gap: 8px 16px; border-radius: 0; border-width: 0 0 1px; box-shadow: 0 4px 16px rgb(16 28 46 / .04); }
/* the product's own page and a review opened in a list scroll under the app's top bar: the bar stops below it, never
   behind it (a review window scrolls inside itself and stops at its top) */
:is(.product-review-page, .product-inline-review) .product-confirmation { top: calc(var(--topbar-height, 72px) + 8px); }
/* a link to a part of the page ("12 checks done ›" to #ld-checks) lands it below the top bar and that bar, not under them */
.product-review-page .live-duty [id] { scroll-margin-top: calc(var(--topbar-height, 72px) + 112px); }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .product-confirmation__summary { flex: 1 1 220px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .product-confirmation__summary h2 { font-size: 13px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .product-confirmation__summary p { font-size: 13px; line-height: 1.5; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .product-confirmation__actions { gap: 6px 12px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .product-confirmation__duty { font-size: 13px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .product-confirmation__notice { font-size: 13px; line-height: 1.5; }

/* The approval surface is deliberately independent of the full product result-card layout. */
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary { display: grid; gap: 12px; min-width: 0; margin: 0; padding: 0; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--glass-sheen), var(--glass-surface); }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__classification, :is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__duty { display: grid; align-content: start; gap: 7px; min-width: 0; padding: 0; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__duty { border-left: 1px solid var(--line); padding-left: 18px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__metric-label { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 9px; min-height: 25px; margin: 0; color: var(--muted); font-size: 13px; font-weight: 500; line-height: 1.4; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__classification > :first-child, :is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__duty > :first-child { margin-top: 0; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__code, :is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__duty-amount { margin: 0; color: var(--ink); font-size: 29px; font-weight: 550; letter-spacing: -.035em; line-height: 1.2; overflow-wrap: anywhere; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__duty-amount { display: block; min-width: 0; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__description { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__code > span:first-child { font-size: 13px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__code > strong { font-weight: 550; letter-spacing: inherit; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__basis { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__include-duty { display: flex; align-items: flex-start; gap: 8px; min-height: 36px; margin: 0 0 10px; color: var(--ink-soft); font-size: 14px; line-height: 1.5; cursor: pointer; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__include-duty input { flex: none; width: 15px; height: 15px; margin: 2px 0 0; accent-color: var(--accent); }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__classification .ob-badges { margin: 0; flex-wrap: wrap; gap: 6px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__classification .ob-muted { margin: 0; font-size: 13px; line-height: 1.5; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__attention { padding: 10px 12px; border: 1px solid var(--line); border-left: 3px solid var(--warn); border-radius: 9px; background: var(--glass-sheen), var(--glass-surface); color: var(--ink-soft); font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__attention > strong { font-size: 14px; color: var(--ink); }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__attention > p { margin: 0; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__attention ul { margin: 5px 0 0; padding-left: 17px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__attention li + li { margin-top: 4px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__disclosure { grid-column: 1 / -1; min-width: 0; border: 1px solid var(--line); border-radius: 11px; background: var(--glass-sheen), var(--glass-surface); }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__disclosure > summary { display: list-item; margin: 0 13px; padding: 13px 0; color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.5; cursor: pointer; overflow-wrap: anywhere; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__disclosure > summary::marker { color: var(--muted); font-size: 10px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__edit-label { float: right; margin-left: 12px; color: var(--muted); font-size: 13px; font-weight: 400; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__caveats { display: block; margin-top: 4px; color: var(--warn); font-size: 13px; font-weight: 400; line-height: 1.5; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__disclosure > summary:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; border-radius: 3px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__disclosure[open] > summary { border-bottom: 1px solid var(--line); }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__body { min-width: 0; padding: 14px; overflow-wrap: anywhere; font-size: 14px; line-height: 1.55; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__body > :first-child { margin-top: 0; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__body > :last-child { margin-bottom: 0; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__body > .approval-summary__attention { margin-bottom: 12px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__body :is(input, select, textarea, .fx-input, .ob-input) { box-sizing: border-box; max-width: 100%; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary :is(.fx-input, .ob-input) { min-height: 38px; padding: 7px 9px; font-size: 14px; line-height: 1.5; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary .fx-btn { min-height: 36px; padding: 6px 10px; font-size: 14px; line-height: 1.5; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__body :is(.ob-section, .cp-assumptions) { margin-top: 14px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__body .ob-subhead { font-size: 14px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__body .cp-assumptions__intro { font-size: 13px; line-height: 1.6; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__body .cp-assumptions__group { margin-top: 15px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__body .cp-assumptions__group-heading h4 { margin: 0; color: var(--ink); font-size: 14px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__body .cp-assumptions__group-heading p { margin: 4px 0 9px; color: var(--muted); font-size: 13px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__body .cp-assumptions__list { gap: 9px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__body .cp-assumption { grid-template-columns: minmax(0, 1fr); padding: 12px; border-radius: 10px; background: var(--glass-sheen), var(--glass-inset); }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__body .cp-assumption__meta { display: flex; flex-wrap: wrap; gap: 5px 9px; color: var(--muted); font-size: 13px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__body .cp-assumption--assumed .cp-assumption__source { color: var(--assumed); }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__body .cp-assumption__impact { color: var(--warn); font-weight: 500; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__body .cp-assumption__editor { min-width: 0; margin-top: 5px; padding-top: 10px; border-top: 1px solid var(--line); }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__body .cp-assumption__form { width: 100%; min-width: 0; margin: 0; padding: 0; border: 0; background: none; gap: 9px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__body .cp-assumption__form :is(.rs__question-wrap, .rs__question) { min-width: 0; margin: 0; padding: 0; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__body .cp-assumption__form .rs__question-text { margin: 0 0 7px; font-size: 14px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__body .cp-assumption__form .rs__options { display: flex; flex-wrap: wrap; gap: 6px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__body .cp-assumption__form .rs__option { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 8px; margin: 0; border: 1px solid var(--line); border-radius: 7px; background: var(--glass-raised); color: var(--ink-soft); font-size: 14px; line-height: 1.5; cursor: pointer; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__body .cp-assumption__form .rs__option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__body .cp-assumption__form .rs__option:has(input:focus-visible) { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__body .cp-assumption__form .rs__option input { flex: none; width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__body .ob-panel-actions { flex-wrap: wrap; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__body :is(.fx-btn, button) { max-width: 100%; white-space: normal; }

/* Expanded review content reads as a short evidence document, within the same compact dialog. */
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-review-basis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 18px; margin: 0 0 18px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--glass-sheen), var(--glass-inset); }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-review-basis > div { min-width: 0; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-review-basis dt { margin: 0 0 3px; color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.45; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-review-basis dd { margin: 0; color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.55; overflow-wrap: anywhere; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-review-basis + .approval-summary__basis { margin: -8px 0 14px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-review-section { min-width: 0; margin: 18px 0 0; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-review-section:first-child { margin-top: 0; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-review-section > h4, :is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__body .rs__how-head { margin: 0 0 9px !important; color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.4; letter-spacing: -.01em; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-review-section > p { margin: 6px 0 10px; color: var(--ink-soft); line-height: 1.65; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-review-section > :is(ul, ol) { padding-left: 18px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-review-section > :is(ul, ol) > li + li { margin-top: 6px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__body .rs__how-body { gap: 14px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__body .rs__table-wrap { min-width: 0; max-width: 100%; margin: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--glass-sheen), var(--glass-surface); }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__body .rs__table { width: 100%; min-width: 0; table-layout: fixed; margin: 0; font-size: 14px; line-height: 1.5; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__body .rs__table :is(th, td) { min-width: 0; padding: 11px 8px; white-space: normal; overflow-wrap: anywhere; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__body .rs__table :is(th, td):first-child { padding-left: 11px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__body .rs__table thead th:first-child { width: 42%; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__body .rs__table thead th:nth-child(2) { width: 30%; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__body .rs__table :is(th, td):last-child { padding-right: 11px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__body .rs__table thead th { color: var(--muted); font-size: 13px; font-weight: 500; background: var(--glass-inset); }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__body .rs__table tbody th { color: var(--ink-soft); font-weight: 500; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__body .rs__table :is(.rs__official, .rs__provision, .rs__rate-basis, .rs__rate-note, .rs__cell-word) { margin-top: 3px; font-size: 13px; line-height: 1.55; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__body .rs__table tfoot :is(th, td) { border-top: 1px solid var(--line-strong); border-bottom: 0; background: var(--glass-inset); color: var(--ink); font-size: 14px; font-weight: 600; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__body .rs__scope { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__body .rs__notelist { gap: 6px; font-size: 13px; line-height: 1.6; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__body .cp-assumptions__group > summary { padding: 9px 0; font-size: 14px; font-weight: 500; color: var(--ink-soft); }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__body .cp-assumptions__group[open] > summary { margin-bottom: 9px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__body .approval-assumption-editor { display: grid; gap: 10px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__why { margin: 0 0 18px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
:is(.product-review-dialog, .product-review-page, .product-inline-review) :is(.hts-review__why, .hts-review__facts, .hts-review__legal) > h3 { margin: 0 0 8px; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.4; letter-spacing: -.015em; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__why > p { margin: 7px 0 0; color: var(--ink-soft); line-height: 1.7; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__source, :is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__why > .hts-review__source { color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.55; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__facts { min-width: 0; margin: 0 0 20px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__table-wrap { min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--glass-sheen), var(--glass-surface); }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__table-wrap table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__table-wrap :is(th, td) { vertical-align: top; padding: 11px; border-bottom: 1px solid var(--line); text-align: left; overflow-wrap: anywhere; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__table-wrap th { width: 40%; color: var(--muted); background: var(--glass-inset); font-size: 13px; font-weight: 500; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__table-wrap th:nth-child(2) { width: 20%; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__table-wrap td > strong { font-size: 14px; font-weight: 600; color: var(--ink); }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__table-wrap td > p { margin: 5px 0 0; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__table-wrap tr:last-child td { border-bottom: 0; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__impact { color: var(--warn); font-size: 13px; font-weight: 500; line-height: 1.5; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__quote { padding-left: 8px; border-left: 2px solid var(--line-strong); color: var(--muted); font-size: 13px; line-height: 1.6; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__editor { margin-top: 7px; min-width: 0; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__editor > summary { display: list-item; color: var(--accent-strong); cursor: pointer; font-size: 13px; line-height: 1.5; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__editor[open] > summary { margin-bottom: 9px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__editor .rs__assume-change-form { min-width: 0; margin: 0; padding: 0; gap: 9px; background: none; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__editor :is(.rs__question, .rs__question-wrap) { min-width: 0; margin: 0; padding: 0; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__editor .rs__question-text { margin: 0 0 6px; font-size: 14px; line-height: 1.6; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__editor .rs__options { display: flex; flex-wrap: wrap; gap: 6px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__editor .rs__option { min-height: 36px; margin: 0; padding: 6px 8px; gap: 6px; font-size: 14px; line-height: 1.5; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__editor :is(.fx-input, .ob-input) { width: 100%; min-width: 0; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__editor .ob-lines { margin: 8px 0 0; padding: 0; list-style: none; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__editor .ob-lines > li { padding: 8px 0; border-top: 1px solid var(--line); }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__editor .ob-lines .fx-btn { margin-top: 7px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__legal { min-width: 0; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__legal > p { margin: 7px 0 10px; color: var(--ink-soft); line-height: 1.65; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__citations { display: grid; gap: 9px; margin: 12px 0; padding: 0; list-style: none; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__citations > li { padding: 10px 12px; border-left: 2px solid var(--line-strong); background: var(--glass-inset); border-radius: 0 8px 8px 0; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__citations > li > strong { font-size: 14px; font-weight: 600; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__citations > li > .hts-review__source { display: block; margin-top: 2px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__citations p { margin: 6px 0 0; font-size: 14px; line-height: 1.7; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__full-evidence { margin-top: 10px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__full-evidence > summary { color: var(--accent-strong); font-size: 14px; font-weight: 500; line-height: 1.6; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__full-evidence[open] > summary { margin-bottom: 13px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__full-evidence :is(.lp__quote, .authority__quote) { margin: 8px 0; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
/* Legacy recovery output can still appear while a product is being repaired. */
:is(.product-review-dialog, .product-review-page, .product-inline-review) .ob-card__row { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hts" "duty"; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .ob-fold > .ob-face { min-height: auto; padding: 16px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .ob-fold__body { padding: 14px; overflow-wrap: anywhere; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .ob-fold__body .fx-input { max-width: 100%; }
@media (max-width: 540px) {
  .product-review-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 14px; }
  .product-review-dialog__header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; padding: 13px 14px; }
  .product-review-dialog__header > div:first-child { grid-area: 1 / 1; }
  .product-review-dialog__header h2 { font-size: 15px; }
  .product-review-dialog__links { display: contents; }
  .product-review-dialog__links > a { grid-area: 2 / 1; justify-self: start; font-size: 14px; }
  .product-review-dialog__links > button { grid-area: 1 / 2; align-self: start; min-height: 40px; }
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .ob-wrap { padding: 0 14px 14px; }
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .product-confirmation { margin: 0 -14px 14px; padding: 12px 14px; }
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .product-confirmation__summary { flex-basis: 100%; }
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .product-confirmation__actions { width: 100%; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px; }
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .product-confirmation__actions .fx-btn { min-height: 42px; }
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .product-confirmation__duty { min-height: 32px; }
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__code, :is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__duty-amount { font-size: 25px; }
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__metrics { gap: 14px; padding: 12px; }
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__duty { padding-left: 14px; }
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__body { padding: 11px; }
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__body .cp-assumption { padding: 10px; }
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-review-basis { padding: 11px; gap: 9px 12px; }
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__body .rs__table :is(th, td) { padding: 9px 6px; }
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__body .rs__table :is(th, td):first-child { padding-left: 8px; }
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__body .rs__table :is(th, td):last-child { padding-right: 8px; }

}
@media (max-width: 600px) {
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__table-wrap :is(table, tbody) { display: block; }
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__table-wrap thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip: rect(0, 0, 0, 0); overflow: hidden; white-space: nowrap; }
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__table-wrap tbody tr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; padding: 12px; border-bottom: 1px solid var(--line); }
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__table-wrap tbody tr:last-child { border-bottom: 0; }
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__table-wrap td { display: block; padding: 0; border: 0; }
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__table-wrap td:nth-child(2)::before { content: "Source: "; color: var(--muted); font-size: 13px; }
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__table-wrap td:nth-child(3)::before { content: "Review"; display: block; margin: 2px 0 4px; color: var(--muted); font-size: 13px; }
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__table-wrap td > strong { font-size: 14px; }
}
@media (max-width: 460px) {
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__metrics { grid-template-columns: minmax(0, 1fr); }
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__duty { border-left: 0; border-top: 1px solid var(--line); padding: 13px 0 0; }
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-duty-calculation .rs__table tbody tr { padding: 11px; }
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-duty-calculation .rs__table tbody :is(th, td) { width: auto; }
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-duty-calculation .rs__table tbody td::before { display: block; margin: 5px 0 2px; color: var(--muted); font-size: 13px; font-weight: 400; }
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-duty-calculation .rs__table tbody td:nth-child(2)::before { content: "Printed rate"; }
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-duty-calculation .rs__table[data-rs="breakdown"] tbody td:last-child::before { content: "Amount"; }
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-duty-calculation .rs__table[data-rs="rates"] tbody td:last-child::before { content: "Status"; }
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-duty-calculation .rs__table tfoot tr { padding: 11px; gap: 12px; }
}
/* The full-page tariff table stacks at 720px. The narrower review dialog still has room for a real table. */
@media (min-width: 461px) {
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-duty-calculation .rs__table { display: table; }
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-duty-calculation .rs__table thead { display: table-header-group; }
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-duty-calculation .rs__table tbody { display: table-row-group; }
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-duty-calculation .rs__table tfoot { display: table-footer-group; }
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-duty-calculation .rs__table tr { display: table-row; width: auto; padding: 0; border: 0; }
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-duty-calculation .rs__table :is(th, td) { display: table-cell; width: auto; margin: 0; padding: 10px 8px !important; border-bottom: 1px solid var(--line); }
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-duty-calculation .rs__table :is(th, td):first-child { padding-left: 11px !important; }
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-duty-calculation .rs__table :is(th, td):last-child { padding-right: 11px !important; }
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-duty-calculation .rs__table .rs__num { text-align: right !important; }
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-duty-calculation .rs__table tfoot :is(th, td) { border-top: 1px solid var(--line-strong); border-bottom: 0; }
}
@media (max-width: 350px) {
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .product-confirmation__actions { align-items: stretch; }
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .product-confirmation__actions .fx-btn { width: 100%; justify-content: center; }
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__body .cp-assumption__meta { flex-wrap: wrap; }
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-review-basis { grid-template-columns: minmax(0, 1fr); }
}

:is(.product-review-dialog, .product-review-page, .product-inline-review) .product-review-position { font-size: 13px; color: var(--muted); margin-top: 5px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .product-confirmation__actions { flex-wrap: wrap; }
.product-issue-form { display: grid; gap: 14px; }
.product-issue-form__lead { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.product-issue-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.product-issue-form :is(select, textarea) { width: 100%; }
.product-issue-form .fx-btn { justify-self: start; }
.product-review-return { font-size: 13px; margin: 0 0 10px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .product-confirmation:has([data-rs=confirm-blocked]) { border-color: color-mix(in srgb, var(--accent) 48%, var(--line)); }

/* Targeted reviews keep one decision and its supporting inputs in view. */
.catalog-review-link { display: inline-flex; align-items: center; min-height: 34px; margin: -5px -6px; padding: 5px 6px; border-radius: 6px; color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--ink) 24%, transparent); text-underline-offset: 4px; text-decoration-thickness: 1px; transition: background-color 120ms ease, text-decoration-color 120ms ease; }
.catalog-review-link:hover { background: var(--glass-selected); text-decoration-color: var(--accent-strong); }
.catalog-review-link:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
.product-review-dialog__context { margin: 0 0 5px; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .045em; }
:is(.product-review-dialog, .product-inline-review)[data-review-focus="hts"] .product-review-dialog__loading-metrics,
:is(.product-review-dialog, .product-inline-review)[data-review-focus="duty"] .product-review-dialog__loading-metrics { grid-template-columns: minmax(0, 1fr); }
:is(.product-review-dialog, .product-inline-review)[data-review-focus="hts"] .product-review-dialog__loading-metrics > div + div,
:is(.product-review-dialog, .product-inline-review)[data-review-focus="duty"] .product-review-dialog__loading-metrics > div + div { display: none; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) :is(.approval-summary--hts, .approval-summary--duty, .approval-review-primary, .approval-review-columns) > :is(.approval-summary__classification, .approval-summary__duty) { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--glass-sheen), var(--glass-surface); }
:is(.product-review-dialog, .product-review-page, .product-inline-review) :is(.approval-summary--hts, .approval-summary--duty, .approval-review-primary, .approval-review-columns) > .approval-summary__body { border: 1px solid var(--line); border-radius: 11px; background: var(--glass-sheen), var(--glass-surface); }
:is(.product-review-dialog, .product-review-page, .product-inline-review) :is(.approval-summary--hts, .approval-summary--duty) .approval-summary__body > h3 { margin: 0 0 12px; color: var(--ink); font-size: 14px; font-weight: 600; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .duty-review-inputs { display: grid; gap: 14px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .duty-review-inputs :is(.ob-fields, .duty-review-inputs__fields) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .duty-review-inputs :is(input, select, textarea) { width: 100%; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .duty-review-inputs label { display: block; margin: 0 0 5px; color: var(--ink-soft); font-size: 14px; font-weight: 500; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .duty-review-inputs .fx-btn { justify-self: start; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .duty-review-inputs :is(.fx-hint, .ob-hint) { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .duty-review-inputs__origin { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
:is(.product-review-dialog, .product-review-page, .product-inline-review) [data-product-duty-confirm] .fx-btn:disabled,
:is(.product-review-dialog, .product-review-page, .product-inline-review) [data-product-review-confirm] .fx-btn:disabled { opacity: .55; cursor: not-allowed; }
.product-review-page { max-width: 760px; margin: 24px auto; }
.product-review-page > .pl-back { display: block; margin: 0 20px 18px; font-size: 13px; }
.product-review-page .ob-title { display: block; margin: 16px 0 12px; font-size: 20px; line-height: 1.4; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .duty-review-inputs .ob-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 420px) {
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .duty-review-inputs :is(.ob-fields, .duty-review-inputs__fields) { grid-template-columns: minmax(0, 1fr); }
  :is(.product-review-dialog, .product-review-page, .product-inline-review) :is(.approval-summary--hts, .approval-summary--duty, .approval-review-primary, .approval-review-columns) > :is(.approval-summary__classification, .approval-summary__duty) { padding: 14px; }
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .duty-review-inputs .ob-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Focused reviews expand beneath their product without taking over the page. */
.product-workspace .catalog-table > tbody > .catalog-row--expanded > td { background: var(--glass-inset); border-bottom-color: transparent; }
.product-workspace .catalog-review-link[aria-expanded="true"] { background: var(--glass-selected); color: var(--accent-strong); box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--accent) 55%, transparent); }
.product-workspace .catalog-table > tbody > .catalog-review-row > td { padding: 0 16px 18px; background: var(--glass-inset); white-space: normal; text-align: left; }
.product-inline-review { box-sizing: border-box; width: 100%; min-height: 0; overflow: clip; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--glass-sheen), var(--glass-raised); box-shadow: 0 6px 20px color-mix(in srgb, var(--ink) 5%, transparent); backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation)); animation: product-review-appear 160ms ease-out; }
.product-inline-review .product-review-dialog__header { align-items: center; padding: 10px 18px; }
.product-inline-review .product-review-dialog__header > div:first-child { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; flex: 1; }
.product-inline-review .product-review-dialog__context { flex: none; margin: 0; }
.product-inline-review .product-review-dialog__header h2 { flex: 1 1 180px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.product-inline-review .product-review-dialog__status { flex-basis: 100%; margin: 0; }
.product-inline-review .product-review-dialog__status:empty { display: none; }
.product-inline-review .product-review-dialog__body { flex: none; max-height: none; overflow: visible; scrollbar-gutter: auto; }
.product-inline-review .product-review-dialog__loading { min-height: 340px; box-sizing: border-box; }
.product-workspace .product-inline-review :is(th, td) { vertical-align: top; white-space: normal; }
.product-workspace .product-inline-review .hts-review__table-wrap :is(th, td) { padding: 11px; border-bottom: 1px solid var(--line); }
.product-workspace .product-inline-review .hts-review__table-wrap tr:last-child td { border-bottom: 0; }
.product-workspace .product-inline-review .approval-summary__body .rs__table :is(th, td) { border-bottom: 1px solid var(--line); }
.product-workspace .product-inline-review .approval-summary__body .rs__table tfoot :is(th, td) { border-bottom: 0; }
@media (max-width: 760px) {
  .product-workspace .catalog-table > tbody > .catalog-review-row > td { padding: 0 10px 14px; }
  .product-inline-review { position: sticky; left: 10px; width: min(100%, calc(100vw - 62px)); }
}
@media (max-width: 600px) {
  .product-workspace .product-inline-review .hts-review__table-wrap td { padding: 0; border: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .product-inline-review { animation: none; }
}

/* The same focused content stacks in a dialog and uses the row's width inline. */
.approval-review-columns, .approval-review-primary { display: contents; }
.classification-pending { min-width: 0; padding: 18px; }
.classification-pending .rs__progress-stage { color: var(--ink); font-size: 16px; line-height: 1.4; }
.classification-pending .rs__progress-note { margin-top: 5px; line-height: 1.55; }
.product-inline-review .approval-summary--classifying .approval-review-columns { grid-template-columns: minmax(0, 1fr); }
.product-inline-review { container-type: inline-size; }
.product-inline-review .ob-wrap { padding: 0 18px 18px; }
.product-inline-review .product-review-meta:not(:has([data-rs="from-library"])) { display: none; }
.product-inline-review .product-review-meta > span:not([data-rs="from-library"]) { display: none; }
.product-inline-review .product-review-meta > [data-rs="from-library"]::before { content: none; }
.product-inline-review .product-confirmation { position: relative; margin: 0 -18px 14px; padding: 10px 18px; box-shadow: none; }
.product-inline-review .approval-review-columns { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; gap: 16px; }
.product-inline-review .approval-review-primary { display: grid; align-content: start; gap: 12px; min-width: 0; }
.product-inline-review .approval-review-primary > :is(.approval-summary__classification, .approval-summary__duty) { padding: 13px 14px; gap: 5px; }
.product-inline-review .approval-review-primary > .approval-summary__duty { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; }
.product-inline-review .approval-summary__duty > .approval-summary__metric-label { grid-column: 1; margin: 0; min-height: 0; }
.product-inline-review .approval-summary__duty > .approval-summary__duty-amount { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 27px; }
.product-inline-review .approval-summary__duty > .approval-summary__description { grid-column: 1; font-size: 14px; }
.product-inline-review .approval-summary__duty > .approval-summary__caveats { grid-column: 1 / -1; }
.product-inline-review .approval-summary__code { font-size: 26px; }
.product-inline-review .approval-summary__metric-label { min-height: 0; }
.product-inline-review .approval-summary__body { padding: 13px 14px; }
.product-inline-review .duty-review-inputs { gap: 10px; }
.product-inline-review .duty-review-inputs > .approval-review-basis { margin: 0; padding: 0 0 10px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
.product-inline-review .duty-review-inputs > .approval-review-basis + .approval-summary__basis { margin: 0; }
.product-inline-review .duty-review-inputs .ob-box__form { margin: 0; gap: 10px; }
.product-inline-review .duty-review-inputs .ob-grid { gap: 10px; }
.product-inline-review .hts-review__why { margin-bottom: 12px; padding-bottom: 10px; }
.product-inline-review :is(.hts-review__why, .hts-review__facts, .hts-review__legal) > h3 { font-size: 14px; }
.product-inline-review .hts-review__why > p { line-height: 1.55; }
.product-inline-review .hts-review__facts { margin-bottom: 12px; }
.product-inline-review .hts-review__legal { margin-top: 12px; padding-top: 10px; }
.product-inline-review .approval-hts-legal > .hts-review__legal { margin: 0; padding: 0; border: 0; }
@container (max-width: 680px) {
  .product-inline-review .approval-review-columns { grid-template-columns: minmax(0, 1fr); }
}

/* The code and the duty read as plain text in their row; the chevron shows on the row's hover or focus (or while its
   review is open under the row), so a row is one click target with two in-place expanders. */
.product-workspace .catalog-review-link { gap: 6px; min-height: 0; margin: -2px -5px; padding: 2px 5px; border-radius: 6px; cursor: pointer; text-decoration: none; transition: background-color 120ms ease, color 120ms ease; }
.product-workspace .catalog-review-link:hover { color: var(--accent-strong); }
.product-workspace .catalog-review-link:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
.product-workspace .catalog-review-link[aria-expanded="true"] { background: var(--glass-selected); color: var(--accent-strong); box-shadow: none; }
.catalog-review-link__value { min-width: 0; }
.catalog-review-link__chevron { flex: none; width: 12px; height: 12px; color: var(--muted); opacity: 0; transition: transform 140ms ease, color 120ms ease, opacity 120ms ease; }
.catalog-table tr:is(:hover, :focus-within) .catalog-review-link__chevron, .catalog-review-link[aria-expanded="true"] .catalog-review-link__chevron { opacity: 1; }
.catalog-review-link:hover .catalog-review-link__chevron, .catalog-review-link[aria-expanded="true"] .catalog-review-link__chevron { color: var(--accent-strong); }
.catalog-review-link[aria-expanded="true"] .catalog-review-link__chevron { transform: rotate(180deg); }
.product-workspace .catalog-duty-link { flex-direction: row; align-items: center; gap: 6px; }
.catalog-duty-link .catalog-review-link__value { display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.product-inline-review .approval-duty-facts:empty { display: none; }
.product-inline-review .approval-duty-facts > :first-child { margin-top: 0; }
.product-inline-review .approval-duty-facts .cp-assumptions__intro { margin-bottom: 9px; }
.product-inline-review .approval-duty-facts .cp-assumptions__list { gap: 8px; }
.product-inline-review .approval-duty-facts .cp-assumption { padding: 10px; }
@media (prefers-reduced-motion: reduce) {
  .catalog-review-link__chevron, .product-workspace .catalog-review-link { transition: none; }
}

:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-duty-formula { margin: 5px 0 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--muted); font-size: 13px; line-height: 1.5; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-duty-formula > summary { display: list-item; width: fit-content; margin: 0; padding: 0; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 400; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--muted) 45%, transparent); text-underline-offset: 3px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-duty-formula > summary::marker { font-size: 9px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-duty-formula > summary:hover { color: var(--accent-strong); }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-duty-formula > summary:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-duty-formula[open] > summary { margin-bottom: 5px; }

/* Duty uses a compact input band, then places the calculation beside its assumptions. */
.product-inline-review .approval-duty-layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 14px; }
.product-inline-review .approval-duty-setup { grid-column: 1 / -1; grid-template-columns: minmax(160px, .32fr) minmax(0, 1fr); align-items: start; gap: 14px; }
.product-inline-review .approval-duty-setup > .approval-summary__duty { grid-template-columns: minmax(0, 1fr); padding: 14px; }
.product-inline-review .approval-duty-setup .approval-summary__duty > .approval-summary__duty-amount { grid-column: 1; grid-row: auto; margin: 3px 0; font-size: 29px; }
.product-inline-review .approval-duty-setup .duty-review-inputs { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
.product-inline-review .approval-duty-setup .duty-review-inputs > h3 { margin-bottom: 0; }
.product-inline-review .approval-duty-setup .duty-review-inputs > .approval-review-basis { display: flex; flex-wrap: wrap; gap: 8px 16px; grid-column: 1; padding: 0; border: 0; }
.product-inline-review .approval-duty-setup .duty-review-inputs > .approval-review-basis > div { display: flex; align-items: baseline; gap: 5px; }
.product-inline-review .approval-duty-setup .duty-review-inputs > .approval-summary__basis { grid-column: 2; grid-row: 1 / 3; align-self: center; max-width: 190px; font-size: 13px; }
.product-inline-review .approval-duty-setup #estimate-form { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.product-inline-review .approval-duty-setup #estimate-form > .fx-btn { align-self: start; margin-top: 20px; min-height: 38px; padding: 7px 10px; font-size: 14px; }
.product-inline-review .approval-duty-setup #estimate-form > .ob-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-inline-review .approval-duty-setup #estimate-form > .ob-grid:has([data-rs="quantity-field"]) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-inline-review .approval-duty-setup .duty-review-inputs .ob-hint { font-size: 13px; line-height: 1.4; }
.product-inline-review .approval-duty-facts { min-width: 0; }
.product-inline-review .approval-duty-facts .cp-assumptions { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; gap: 8px; }
.product-inline-review .approval-duty-facts .cp-assumptions__group-heading > p { display: none; }
.product-inline-review .approval-duty-facts .cp-assumptions__group { margin-top: 10px; }
.product-inline-review .approval-duty-facts .cp-assumption { padding: 9px 10px; }
.product-inline-review .approval-duty-facts .cp-assumption__editor { margin-top: 4px; padding-top: 6px; }
.product-inline-review .approval-duty-facts .cp-assumption__source { font-size: 13px; line-height: 1.4; }
.product-inline-review .approval-duty-facts .rs__assume-text { margin: 5px 0 0; font-size: 14px; line-height: 1.5; }
.product-inline-review .approval-duty-facts .cp-assumption__effect { margin: 5px 0 0; font-size: 14px; line-height: 1.5; }
.product-inline-review .approval-duty-facts .ob-adcvd { margin-top: 12px; padding: 11px; }
.product-inline-review .approval-summary__body :is(.ob-under, .rs__adcvd-text) { margin: 6px 0; font-size: 14px; line-height: 1.5; }
.product-inline-review .approval-summary__body .ob-notes-block { margin: 10px 0; }
.product-inline-review .approval-duty-facts .rs__assume-controls { gap: 6px; }
.product-inline-review .approval-duty-facts .rs__assume-controls > .fx-link { font-size: 14px; }
.product-inline-review .approval-duty-facts .rs__assume-form .fx-btn { min-height: 36px; padding: 6px 10px; font-size: 14px; }
@container (max-width: 820px) {
  .product-inline-review .approval-duty-setup #estimate-form { grid-template-columns: minmax(0, 1fr); }
  .product-inline-review .approval-duty-setup #estimate-form > .fx-btn { margin-top: 0; }
}
@container (max-width: 680px) {
  .product-inline-review .approval-duty-layout, .product-inline-review .approval-duty-setup { grid-template-columns: minmax(0, 1fr); }
  .product-inline-review .approval-duty-setup > .approval-summary__duty { grid-template-columns: minmax(0, 1fr) auto; }
  .product-inline-review .approval-duty-setup .approval-summary__duty > .approval-summary__duty-amount { grid-column: 2; grid-row: 1 / 3; }
}
@container (max-width: 430px) {
  .product-inline-review .approval-duty-setup .duty-review-inputs { grid-template-columns: minmax(0, 1fr); }
  .product-inline-review .approval-duty-setup .duty-review-inputs > .approval-summary__basis { grid-column: 1; grid-row: auto; max-width: none; }
  .product-inline-review .approval-duty-setup #estimate-form > .ob-grid, .product-inline-review .approval-duty-setup #estimate-form > .ob-grid:has([data-rs="quantity-field"]) { grid-template-columns: minmax(0, 1fr); }
}

/* Keep HTS fact answers in view without turning them into a second form page. */
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__table-wrap th:first-child { width: 44%; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__table-wrap th:nth-child(2) { width: 56%; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__fact-source { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.45; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__editor--inline { margin-top: 5px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__editor--inline .rs__assume-change-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 5px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__editor--inline .rs__question-wrap { flex: 1 1 220px; width: auto; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__editor--inline .rs__question-text { margin-bottom: 4px; font-size: 14px; font-weight: 500; line-height: 1.45; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__editor--inline .rs__options { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__editor--inline .rs__option { display: inline-flex; align-items: center; box-sizing: border-box; min-height: 36px; max-width: 100%; margin: 0; padding: 6px 9px; gap: 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--glass-sheen), var(--glass-surface); color: var(--ink-soft); font-size: 14px; font-weight: 400; line-height: 1.35; cursor: pointer; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__editor--inline .rs__option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__editor--inline .rs__option:has(input:focus-visible) { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__editor--inline .rs__option input { flex: none; width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__editor--inline :is(.fx-input, .ob-input) { min-height: 38px; padding: 7px 9px; font-size: 14px; line-height: 1.4; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__editor--inline .fx-btn { box-sizing: border-box; flex: none; width: fit-content; min-height: 36px; margin-top: 0; padding: 6px 10px; border-radius: 6px; font-size: 14px; line-height: 1.4; }
.product-inline-review .approval-summary--hts .ob-code-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 8px; }
.product-inline-review .approval-summary--hts [data-action-id="enter_code_yourself"],
.product-inline-review .approval-summary--hts #enter-code form > .fx-btn { box-sizing: border-box; width: fit-content; min-height: 36px; padding: 6px 10px; border-radius: 7px; font-size: 14px; line-height: 1.4; }
.product-inline-review .approval-summary--hts #enter-code .fx-disclosure__body { padding: 9px; }
.product-inline-review .approval-summary--hts #enter-code .fx-form { gap: 7px; }
.product-inline-review .approval-summary--hts #enter-code :is(.fx-label, .fx-hint) { font-size: 14px; line-height: 1.5; }
.product-inline-review .approval-summary--hts #enter-code .fx-input { min-height: 38px; padding: 7px 9px; font-size: 14px; }

/* Show the legal route as compact, wrapping steps; each retains its evidence disclosure. */
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__legal .lp { gap: 6px; margin: 7px 0; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__legal .lp__head { gap: 4px 8px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__legal .lp__head > .ob-subhead { margin: 0; font-size: 14px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__legal .lp__steps { gap: 6px 4px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__legal .lp__step { gap: 3px; max-width: 100%; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__legal .lp__step::after { flex: none; font-size: 13px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__legal .lp__pill { min-height: 36px; max-width: 100%; padding: 6px 9px; gap: 3px; border-radius: 7px; font-size: 14px; line-height: 1.4; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__legal .lp__short { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__legal :is(.lp__static, .lp__basis) { font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__legal .lp__detail-body { padding: 9px; gap: 6px; font-size: 14px; line-height: 1.55; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__legal .lp__cite { white-space: normal; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__legal .lp__mark { width: 13px; height: 13px; font-size: 9px; }
@media (max-width: 600px) {
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__table-wrap td:nth-child(2)::before { content: "Your answer"; display: block; margin: 2px 0 5px; color: var(--muted); font-size: 13px; }
}
@media (pointer: coarse), (max-width: 760px) {
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .product-confirmation__actions .fx-btn,
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary :is(.fx-btn, .fx-input, .ob-input),
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary__body .cp-assumption__form .rs__option,
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__editor--inline :is(.rs__option, .fx-btn, .fx-input, .ob-input),
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__legal .lp__pill,
  .product-inline-review .approval-duty-facts .rs__assume-form .fx-btn,
  .product-inline-review .approval-duty-setup #estimate-form > .fx-btn,
  .product-review-dialog__links > button,
  .product-inline-review .approval-summary--hts [data-action-id="enter_code_yourself"],
  .product-inline-review .approval-summary--hts #enter-code form > .fx-btn,
  .product-inline-review .approval-summary--hts #enter-code .fx-input { min-height: 44px; }
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .approval-summary :is(.fx-input, .ob-input),
  :is(.product-review-dialog, .product-review-page, .product-inline-review) .hts-review__editor--inline :is(.fx-input, .ob-input),
  .product-inline-review .approval-summary--hts #enter-code .fx-input { font-size: 16px; }
}

/* Trim space around the inline HTS content, keeping the main confirmation control unchanged. */
.product-inline-review[data-review-focus="hts"] .product-review-dialog__header { padding: 8px 14px; }
.product-inline-review[data-review-focus="hts"] .ob-wrap { padding: 0 14px 14px; }
.product-inline-review[data-review-focus="hts"] .product-confirmation { margin: 0 -14px 10px; padding-right: 14px; padding-left: 14px; }
.product-inline-review .approval-summary--hts { gap: 8px; }
.product-inline-review .approval-summary--hts .approval-review-columns { gap: 12px; }
.product-inline-review .approval-summary--hts .approval-review-primary { gap: 8px; }
.product-inline-review .approval-summary--hts .approval-review-primary > .approval-summary__classification { padding: 10px 11px; }
.product-inline-review .approval-summary--hts .approval-summary__body { padding: 10px 11px; }
.product-inline-review .approval-summary--hts .approval-summary__disclosure > summary { margin: 0 11px; padding: 10px 0; }
.product-inline-review .approval-summary--hts .hts-review__why { margin-bottom: 9px; padding-bottom: 8px; }
.product-inline-review .approval-summary--hts .hts-review__facts { margin-bottom: 8px; }
.product-inline-review .approval-summary--hts .hts-review__citations { margin: 8px 0; gap: 6px; }
.product-inline-review .approval-summary--hts .hts-review__citations > li { padding: 7px 9px; }
.product-inline-review .approval-summary--hts .hts-review__citations p { margin-top: 4px; line-height: 1.5; }
@media (min-width: 601px) {
  .product-workspace .product-inline-review .approval-summary--hts .hts-review__table-wrap :is(th, td) { padding: 9px; }
}

/* Independent answer forms keep related facts readable without a shared save action. */
:is(.product-review-dialog, .product-review-page, .product-inline-review) :is(.hts-review__editor, .cp-assumption__editor) .rs__assume-change-form + .rs__assume-change-form { margin-top: 12px; }

:is(.product-review-dialog, .product-review-page, .product-inline-review) .rs__assume-change-form .fx-unit { display: flex; align-items: center; flex-wrap: nowrap; gap: 8px; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .rs__assume-change-form .fx-unit > .fx-input { flex: 1 1 auto; width: 0; min-width: 0; }
:is(.product-review-dialog, .product-review-page, .product-inline-review) .rs__assume-change-form .fx-unit__suffix { flex: none; font-size: 13px; }
.classification-pending__code { display: block; margin: 8px 0; color: var(--ink); font-size: clamp(21px, 3vw, 28px); font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.classification-pending--prediction .rs__pulse { margin-top: 5px; }

.classification-unverified { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.classification-unverified .rs__progress-stage { color: var(--ink); font-size: 16px; line-height: 1.4; }
.classification-unverified .rs__progress-note { margin-top: 7px; line-height: 1.5; }

/* zzzzzzzzzzzzz_what_if_examples.css */
/* Calculated alternatives lead; visible examples offer other ways to start. */
.what-if-shortcuts { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; flex: none; }
.what-if-shortcuts a { font-size: 12px; white-space: nowrap; }
#what-if .planning-recommendations { gap: 15px; }
#what-if .planning-recommendations__head { flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; }
#what-if .planning-recommendations__head h2 { font-size: 24px; }
#what-if .planning-recommendations__head p:not(.planning-eyebrow) { margin-top: 6px; }
#what-if .planning-recommendations__head .planning-recommendations__label { margin: 0; padding: 6px 10px; font-size: 11px; }
#what-if .planning-option { height: 100%; gap: 14px; padding: 20px; }
#what-if .planning-option h3 { font-size: 21px; }
#what-if .planning-option__saving strong { font-size: clamp(27px, 2.8vw, 34px); }
#what-if .planning-option__action { display: flex; align-items: center; justify-content: space-between; gap: 12px; grid-column: 1 / -1; margin-top: auto; padding-top: 13px; border-top: 1px solid var(--glass-outline); color: var(--accent); font-size: 12px; font-weight: 600; }
#what-if .planning-option__action > span { font-size: 18px; line-height: 1; }
#what-if .planning-option:is(:hover, :focus-visible) .planning-option__action { text-decoration: underline; text-underline-offset: 3px; }
#what-if .planning-recommendations__basis { font-size: 11px; }
#what-if .what-if-examples--secondary { margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--glass-outline); }
.what-if-examples--secondary .what-if-example { padding: 12px 15px; box-shadow: var(--glass-highlight); }
.what-if-examples--secondary .what-if-example p { margin: 5px 0 9px; }
.what-if-examples--secondary .what-if-examples__heading h2 { font-size: 15px; }

.what-if-examples__heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 10px; }
.what-if-examples__heading h2 { margin: 0; font-size: 16px; letter-spacing: -.025em; }
.what-if-examples__heading p { margin: 0; color: var(--muted); font-size: 12px; }
.what-if-examples__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.what-if-example { display: flex; flex-direction: column; align-items: flex-start; padding: 15px 17px; border: 1px solid var(--glass-outline); border-radius: 14px; background: var(--glass-sheen), var(--glass-surface); box-shadow: var(--glass-highlight); }
.what-if-example h3 { margin: 0; color: var(--ink); font-size: 14px; line-height: 1.4; letter-spacing: -.015em; }
.what-if-example p { margin: 7px 0 12px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.what-if-example > :is(a, .what-if-example__access) { margin-top: auto; font-size: 12px; line-height: 1.5; }
.what-if-example__access { color: var(--muted); }
.what-if-examples__note { margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.what-if-examples__note strong { color: var(--ink-soft); font-weight: 600; }
.what-if-example a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 3px; }
@media (max-width: 760px) {
  .what-if-examples__grid { grid-template-columns: 1fr; gap: 8px; }
  .what-if-example { padding: 13px 15px; }
  .what-if-example p { margin-bottom: 9px; }
}

@media (max-width: 620px) {
  .what-if-shortcuts { width: 100%; padding-top: 3px; }
  #what-if .planning-recommendations__head h2 { font-size: 21px; }
  #what-if .planning-option { padding: 18px; }
  #what-if .planning-recommendations__label { display: inline-block; }
}

/* zzzzzzzzzzzzzz_business_impact.css */
/* Optional commercial assumptions inherit the workspace glass surface and colours. */
.sw-business { display: grid; gap: 18px; scroll-margin-top: 28px; }
.sw-business__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.sw-business__heading .xp-muted { margin-top: 8px; }
.sw-business__metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sw-business__metrics > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 18px; border-radius: 16px; background: color-mix(in srgb, var(--surface-muted) 65%, transparent); }
.sw-business__metrics span, .sw-business__metrics small { color: var(--muted); font-size: 12px; }
.sw-business__metrics strong { font-size: clamp(18px, 2.2vw, 29px); letter-spacing: -0.04em; overflow-wrap: anywhere; }
.sw-business__missing, .sw-business__margin { margin: 0; font-size: 13px; line-height: 1.65; }
.sw-business__missing { color: var(--warn); }
.sw-business__arithmetic dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 20px; font-size: 13px; margin: 16px 0; }
.sw-business__arithmetic dd { margin: 0; font-family: var(--font-mono); text-align: right; }
.sw-business__editor { border-top: 1px solid var(--line-strong); padding-top: 14px; }
.sw-business__editor > summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 14px; }
.sw-business__editor > summary span { margin-left: 12px; font-weight: 400; color: var(--muted); font-size: 12px; }
.sw-business__editor form { display: grid; gap: 18px; margin-top: 18px; }
.sw-business__scope, .sw-business__limits { color: var(--muted); font-size: 12px; line-height: 1.65; margin: 0; }
.sw-business__basis { display: flex; flex-wrap: wrap; gap: 12px; border: 0; padding: 0; margin: 0; }
.sw-business__basis legend { margin-bottom: 10px; font-size: 13px; font-weight: 600; }
.sw-business__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.sw-business__fields .sw-field { min-width: 0; }
.sw-business__fields .sw-field small { font-size: 12px; font-weight: 400; color: var(--muted); }
.sw-business__save { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.sw-business-entry { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; }
.sw-business-entry p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
@media (max-width: 720px) {
  .sw-business__metrics, .sw-business__fields { grid-template-columns: 1fr; }
  .sw-business__editor > summary span { display: block; margin: 6px 0 0 16px; }
}

#business-impact { scroll-margin-top: 110px; }

/* Connected cost comparison keeps inputs, outcomes and their drivers on one surface. */
.sw-cost-badge { padding: 5px 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.sw-connected__metrics > div:first-child { background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 25%, var(--surface))); border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line)); }
.sw-connected__metrics strong { font-size: clamp(19px, 2.1vw, 27px); }
.sw-connected__metrics strong:not(:first-child) { line-height: 1.2; }
.sw-connected .is-lower, .sw-cost-option__change.is-lower { color: var(--good); }
.sw-connected .is-higher, .sw-cost-option__change.is-higher { color: var(--warn); }
.sw-cost-comparison { padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--glass-raised, var(--surface)) 70%, transparent); }
.sw-cost-comparison__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sw-connected h4 { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.sw-cost-comparison__heading > span { color: var(--muted); font-size: 11px; }
.sw-cost-option { display: grid; grid-template-columns: minmax(135px, 1fr) minmax(140px, 2.4fr) minmax(90px, 1fr); gap: 18px; align-items: center; padding: 13px 10px; border-radius: 10px; }
.sw-cost-option.is-selected { background: var(--accent-soft); }
.sw-cost-option > strong { font-size: 13px; font-weight: 550; }
.sw-cost-option > strong a { color: var(--ink); text-decoration: none; }
.sw-cost-option > strong a:hover { color: var(--accent); text-decoration: underline; }
.sw-cost-option small { display: block; color: var(--muted); font-weight: 400; font-size: 10px; line-height: 1.4; margin-top: 4px; }
.sw-cost-option__visual { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.sw-cost-option__visual b, .sw-cost-option__change { font-size: 13px; font-weight: 550; font-variant-numeric: tabular-nums; }
.sw-cost-option__track { display: block; height: 18px; background: var(--surface-muted); border-radius: 5px; overflow: hidden; }
.sw-cost-option__track > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 60%, var(--surface))); }
.sw-cost-option--baseline .sw-cost-option__track > span { background: color-mix(in srgb, var(--muted) 45%, var(--surface-muted)); }
.sw-cost-option__track > span.is-lower { background: linear-gradient(90deg, var(--good), color-mix(in srgb, var(--good) 55%, var(--surface))); }
.sw-cost-option__track > span.is-higher { background: linear-gradient(90deg, var(--warn), color-mix(in srgb, var(--warn) 60%, var(--surface))); }
.sw-cost-option__change { text-align: right; }
.sw-connected__analysis { display: flex; flex-wrap: wrap; gap: 24px; }
.sw-contribution { flex: 1 1 420px; margin: 0; min-width: 0; }
.sw-contribution figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sw-contribution figcaption strong { font-size: 13px; font-weight: 550; }
.sw-contribution figcaption > span { color: var(--muted); font-size: 10px; }
.sw-contribution ul { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.sw-contribution li { display: grid; grid-template-columns: 95px minmax(80px, 1fr) 95px; align-items: center; gap: 12px; font-size: 12px; }
.sw-contribution li > strong { text-align: right; font-size: 12px; font-weight: 550; }
.sw-contribution__label small { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; }
.sw-contribution__track { position: relative; height: 17px; background: var(--surface-muted); border-radius: 4px; }
.sw-contribution__track::before { content: ''; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 1px; background: var(--line-strong); z-index: 1; }
.sw-contribution__bar { position: absolute; top: 0; height: 100%; border-radius: 4px; background: var(--muted); }
.sw-contribution__bar.is-lower { background: var(--good); }
.sw-contribution__bar.is-higher { background: var(--warn); }
.sw-contribution-margin { flex: 1 1 250px; padding: 18px; background: var(--surface-muted); border-radius: 14px; }
.sw-contribution-margin .xp-muted { font-size: 11px; line-height: 1.6; margin-bottom: 0; }
.sw-contribution-margin__change { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 18px 0; font-size: 25px; font-weight: 550; font-variant-numeric: tabular-nums; }
.sw-contribution-margin__change > span:nth-child(2) { color: var(--muted); font-size: 16px; }
.sw-contribution-margin__change small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; font-weight: 400; }
.sw-connected__form { display: grid; gap: 18px; padding-top: 20px; border-top: 1px solid var(--line); }
.sw-connected__form-heading p { margin: 7px 0 0; max-width: 85ch; font-size: 12px; color: var(--muted); line-height: 1.6; }
.sw-connected__parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 390px), 1fr)); gap: 16px; }
.sw-cost-part { min-width: 0; padding: 16px 18px 18px; margin: 0; border: 1px solid var(--line); border-radius: 14px; }
.sw-cost-part legend { max-width: 100%; padding: 0 6px; }
.sw-cost-part legend strong { display: block; font-size: 13px; font-weight: 550; }
.sw-cost-part legend > span { display: block; margin-top: 4px; font-size: 10px; color: var(--muted); }
.sw-cost-grid { display: grid; grid-template-columns: minmax(105px, 1.15fr) repeat(2, minmax(80px, 1fr)); gap: 10px; align-items: center; }
.sw-cost-grid__heading { color: var(--ink); font-size: 12px; font-weight: 550; padding: 0 0 5px; }
.sw-cost-grid__heading small { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; font-weight: 400; }
.sw-cost-grid__label { color: var(--ink-soft); font-size: 12px; }
.sw-cost-grid__input { min-width: 0; }
.sw-cost-part .ob-input { width: 100%; min-width: 0; min-height: 38px; padding: 8px 10px; font-size: 12px; }
.sw-cost-part__shared { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--line); }
.sw-cost-part__shared .sw-field > span, .sw-connected__programme > span { font-size: 12px; font-weight: 500; }
.sw-connected__programme { max-width: 540px; }
.sw-business__save > .xp-muted { font-size: 12px; }
.sw-duty-comparison-bar { display: block; width: 100%; min-width: 100px; height: 6px; background: var(--surface-muted); border-radius: 999px; margin-top: 7px; overflow: hidden; }
.sw-duty-comparison-bar > span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.sw-duty-comparison-bar > span.is-lower { background: var(--good); }
.sw-duty-comparison-bar > span.is-higher { background: var(--warn); }
.sw-duty-comparison-bar--current { max-width: 220px; height: 5px; }
.sw-duty-comparison-bar--current > span { background: var(--muted); }
@media (max-width: 720px) {
  .sw-cost-comparison { padding: 14px 12px; }
  .sw-cost-comparison__heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .sw-cost-option { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 12px 7px; }
  .sw-cost-option__visual { grid-column: 1 / -1; grid-row: 2; }
  .sw-cost-option__change { grid-column: 2; grid-row: 1; }
  .sw-contribution figcaption { align-items: flex-start; flex-direction: column; gap: 5px; }
  .sw-contribution li { grid-template-columns: 78px minmax(45px, 1fr) 84px; gap: 8px; }
  .sw-connected__metrics { grid-template-columns: 1fr; }
  .sw-cost-part { padding: 14px 12px; }
  .sw-cost-grid { grid-template-columns: minmax(90px, 1fr) repeat(2, minmax(60px, 1fr)); gap: 7px; }
  .sw-cost-part .ob-input { padding: 8px; }
  .sw-business__heading { flex-wrap: wrap; }
}
.sw-evidence__table { max-height: min(520px, 60vh); overflow: auto; }

.sw-connected__metrics strong.sw-metric-empty { font-size: 17px; letter-spacing: -.02em; }

/* zzzzzzzzzzzzzz_selection_experience.css */
/* Shared task pickers retain the glass palette and use real table rows. */
.selection-picker { display: grid; gap: 12px; min-width: 0; }
.selection-picker [hidden], .choice-filter [hidden] { display: none !important; }
.selection-picker__tools, .selection-picker__selection, .selection-picker__footer, .selection-picker__footer > div { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.selection-picker__tools .fx-field { flex: 1 1 260px; margin: 0; }
.selection-picker__tools > button { align-self: flex-end; min-height: 40px; }
.selection-picker__selection { justify-content: space-between; font-size: var(--text-label); }
.selection-picker__chosen { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.selection-picker__chosen:empty { display: none; }
.selection-picker__chip { border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; background: var(--accent-soft); color: var(--ink); font: inherit; font-size: var(--text-small); cursor: pointer; }
.selection-picker__chip:hover { border-color: var(--accent); }
.selection-picker__table-wrap { overflow: auto; max-height: 370px; border: 1px solid var(--line); border-radius: 14px; }
.selection-picker__table { width: 100%; border-collapse: collapse; font-size: var(--text-label); min-width: 500px; }
.selection-picker__table th { position: sticky; top: 0; z-index: 1; padding: 10px; background: var(--surface-muted); color: var(--muted); text-align: left; font-size: var(--text-small); }
.selection-picker__table tbody tr { cursor: pointer; }
.selection-picker__table tbody tr:hover { background: var(--surface-muted); }
.selection-picker__table td { padding: 10px; vertical-align: middle; border-top: 1px solid var(--line); }
.selection-picker__table td:first-child { width: 36px; }
.selection-picker__table input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
.selection-picker__table tr:has(input:checked) { background: var(--accent-soft); }
.selection-picker__table strong { font-weight: 550; }
.selection-picker button.fx-link { appearance: none; border: 0; background: transparent; padding: 6px; color: var(--accent); cursor: pointer; font: inherit; font-size: 12px; }
.selection-picker button.fx-link:disabled { cursor: default; color: var(--muted); opacity: .6; }
.selection-picker__table small { display: block; color: var(--muted); margin-top: 3px; }
.selection-picker__footer { justify-content: space-between; }
.selection-picker__footer button:disabled { opacity: .45; cursor: default; }
.choice-filter { display: grid; gap: 8px; }
.choice-filter__options { max-height: 205px; overflow: auto; padding: 2px; align-content: start; }
.choice-filter__count { margin: 0; font-size: var(--text-small); }
.choice-filter .sw-check { min-height: 35px; }
.planning-share-presets button { font: inherit; cursor: pointer; }
.planning-share-preset[aria-pressed=true] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-strong); }
.supplier-search { max-width: 480px; margin-bottom: 14px; }
@media (max-width: 640px) { .selection-picker__tools { align-items: stretch; } .selection-picker__table { min-width: 470px; } }

/* zzzzzzzzzzzzzzz_cost_analysis.css */
/* Dedicated analysis canvas; the established What-if screens keep their layout. */
.ca-page { display: grid; gap: 24px; padding-bottom: 65px; }
.ca-page > [data-page-header] { margin-bottom: 0; }
.ca-eyebrow { color: var(--accent); font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.ca-hub-intro { position: relative; overflow: hidden; display: grid; gap: 26px; padding: 32px 36px; border: 1px solid color-mix(in srgb,var(--accent) 18%,var(--line)); border-radius: 22px; background: linear-gradient(115deg,var(--accent-soft),color-mix(in srgb,var(--surface) 75%,transparent)); }
.ca-hub-intro h2 { margin: 10px 0; font-size: clamp(24px,2.6vw,34px); letter-spacing: -.04em; font-weight: 550; }
.ca-hub-intro p { max-width: 58ch; margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; }
.ca-hub-intro > div { position: relative; z-index: 1; }
.ca-hub-art { position: absolute; right: -10px; bottom: 15px; width: 36%; max-width: 390px; color: var(--accent); opacity: .25; fill: currentColor; }
.ca-hub-steps { display: flex; gap: 30px; flex-wrap: wrap; color: var(--accent); font-size: 11px; }
.ca-hub-steps strong { color: var(--ink-soft); font-size: 12px; font-weight: 500; margin-left: 6px; }
.ca-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.ca-section-heading p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.ca-section-heading > .xp-muted { font-size: 12px; }
.ca-scenario-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.ca-scenario-card { display: grid; gap: 15px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--glass-raised,var(--surface)); transition: border-color .18s,transform .18s,box-shadow .18s; }
.ca-scenario-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb,var(--accent) 40%,var(--line)); box-shadow: 0 8px 24px color-mix(in srgb,var(--accent) 7%,transparent); }
.ca-scenario-card__top { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.ca-scenario-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.ca-scenario-mark svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ca-state { font-size: 11px; color: var(--muted); }
.ca-scenario-card h3 { margin: 0; font-size: 17px; font-weight: 550; letter-spacing: -.02em; }
.ca-scenario-card h3 a { color: var(--ink); text-decoration: none; }
.ca-scenario-card > p { margin: -7px 0 0; color: var(--muted); font-size: 12px; }
.ca-scenario-countries { display: flex; flex-wrap: wrap; gap: 8px; }
.ca-country-link { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; background: var(--surface-muted); border-radius: 7px; color: var(--ink-soft); font-size: 11px; text-decoration: none; }
.ca-country-link:hover { background: var(--accent-soft); color: var(--accent); }
.ca-scenario-card__open { color: var(--accent); font-size: 12px; font-weight: 550; text-decoration: none; padding-top: 2px; }
.ca-empty { padding: 26px; display: grid; justify-items: start; gap: 14px; }
.ca-empty p { max-width: 80ch; color: var(--muted); font-size: 13px; line-height: 1.65; margin: 0; }
.ca-context-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ca-context-bar h2 { font-size: 17px; font-weight: 550; margin: 0 0 7px; }
.ca-context-bar p { font-size: 12px; color: var(--muted); margin: 0; }
.ca-country-form { display: grid; gap: 5px; min-width: 180px; }
.ca-country-form > label { font-size: 11px; color: var(--muted); }
.ca-country-form > div { display: flex; align-items: center; gap: 9px; }
.ca-country-form .fx-combo { flex: 1; min-width: 0; }
.ca-country-form .ob-input { min-height: 37px; font-size: 12px; padding: 8px 10px; }
.ca-unsaved { margin: 0; padding: 12px 16px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 6px; font-size: 12px; }
.ca-unsaved[hidden] { display: none; }
.ca-date-notice { margin: -8px 0 0; padding: 10px 14px; color: var(--ink-soft); border-left: 2px solid var(--warn); background: color-mix(in srgb,var(--warn) 5%,transparent); border-radius: 4px; font-size: 11px; line-height: 1.65; }
.ca-date-notice strong { font-weight: 600; }
.ca-hero { display: grid; grid-template-columns: 1.5fr 1fr 1fr; border: 1px solid color-mix(in srgb,var(--accent) 18%,var(--line)); background: linear-gradient(120deg,var(--accent-soft),var(--glass-raised,var(--surface))); border-radius: 21px; padding: 27px 30px; gap: 26px; align-items: center; }
.ca-hero__main { display: grid; gap: 10px; }
.ca-hero__amount { font-size: clamp(29px,3.5vw,43px); font-weight: 550; letter-spacing: -.06em; font-variant-numeric: tabular-nums; line-height: 1.12; }
.ca-hero__main p { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.6; }
.ca-hero__metric { display: grid; gap: 10px; border-left: 1px solid color-mix(in srgb,var(--accent) 14%,var(--line)); padding-left: 25px; }
.ca-hero__metric > span { font-size: 12px; color: var(--muted); }
.ca-hero__metric > strong { font-size: clamp(19px,2vw,27px); font-weight: 550; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.ca-hero__metric > small { font-size: 11px; line-height: 1.5; color: var(--muted); }
.ca-page .is-lower { color: var(--good); }
.ca-page .is-higher { color: var(--warn); }
.ca-workspace { display: grid; grid-template-columns: minmax(0,1fr) 305px; gap: 22px; align-items: start; }
.ca-charts { display: grid; gap: 22px; min-width: 0; }
.ca-chart-card { padding: 23px 24px 19px; overflow: hidden; }
.ca-chart { display: block; width: 100%; height: auto; margin-top: 22px; overflow: visible; color: var(--accent); }
.ca-gridline { stroke: var(--line); stroke-width: 1; fill: none; }
.ca-zero { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 5; opacity: .65; }
.ca-axis { fill: var(--muted); font-family: var(--font-sans,inherit); font-size: 11px; }
.ca-chart-line { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.ca-point { fill: var(--surface); stroke: currentColor; stroke-width: 2; }
.ca-point.is-selected { fill: currentColor; stroke: var(--surface); stroke-width: 2.5; }
.ca-chart-legend { display: flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 10px; color: var(--muted); }
.ca-chart-legend i { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
.ca-chart-milestones { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 19px; padding-top: 16px; border-top: 1px solid var(--line); }
.ca-chart-milestones > div { display: grid; gap: 6px; }
.ca-chart-milestones span,.ca-chart-milestones small { font-size: 10px; color: var(--muted); }
.ca-chart-milestones strong { font-size: 16px; font-weight: 550; font-variant-numeric: tabular-nums; }
.ca-sensitivity .ca-chart { color: var(--good); }
.ca-sensitivity.is-adverse .ca-chart { color: var(--warn); }
.ca-chart-caption { margin: 12px 0 0; font-size: 11px; color: var(--muted); line-height: 1.5; }
.ca-selected-dot { display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 50%; background: var(--good); }
.ca-sensitivity.is-adverse .ca-selected-dot { background: var(--warn); }
.ca-controls { display: grid; gap: 20px; padding: 22px; position: sticky; top: 95px; }
.ca-controls > div > p { font-size: 12px; line-height: 1.6; color: var(--muted); margin: 8px 0 0; }
.ca-controls fieldset { display: grid; gap: 18px; border: 0; padding: 0; margin: 0; min-width: 0; }
.ca-controls fieldset:disabled { opacity: .7; }
.ca-input-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.ca-controls .sw-field > span { font-size: 11px; font-weight: 500; }
.ca-controls .ob-input { font-size: 12px; padding: 9px; min-width: 0; width: 100%; min-height: 38px; }
.ca-input-unit { position: relative; }
.ca-input-unit .ob-input { padding-right: 25px; }
.ca-input-unit > span { position: absolute; top: 11px; right: 9px; font-size: 12px; color: var(--muted); pointer-events: none; }
.ca-control-hint { font-size: 10px; line-height: 1.6; color: var(--muted); margin: -8px 0 0; }
.ca-share { border-top: 1px solid var(--line); padding-top: 18px; }
.ca-share__heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ca-share__heading > label { font-size: 11px; font-weight: 500; }
.ca-share__number { width: 78px; flex-shrink: 0; }
.ca-share__number .ob-input { color: var(--accent); font-weight: 550; }
.ca-share input[type=range] { width: 100%; margin: 10px 0 4px; accent-color: var(--accent); }
.ca-share > small { display: flex; justify-content: space-between; font-size: 9px; color: var(--muted); }
.ca-update { width: 100%; justify-content: center; }
.ca-saved { margin: -7px 0 0; font-size: 10px; color: var(--muted); line-height: 1.5; }
.ca-headroom { display: grid; gap: 9px; padding: 17px; border: 1px solid color-mix(in srgb,var(--good) 20%,var(--line)); border-radius: 12px; background: color-mix(in srgb,var(--good) 5%,var(--surface)); }
.ca-headroom > span { font-size: 11px; color: var(--muted); }
.ca-headroom > strong { font-size: 23px; font-weight: 550; color: var(--ink); letter-spacing: -.035em; }
.ca-headroom.is-adverse { border-color: color-mix(in srgb,var(--warn) 20%,var(--line)); background: color-mix(in srgb,var(--warn) 5%,var(--surface)); }
.ca-headroom.is-adverse > strong { color: var(--warn); }
.ca-controls .ca-headroom p { font-size: 11px; margin: 0; }
.ca-headroom > small { border-top: 1px solid var(--line); padding-top: 9px; color: var(--muted); font-size: 10px; }
.ca-cost-basis { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 20px 24px; border: 1px solid var(--line); background: var(--surface-muted); border-radius: 15px; }
.ca-cost-basis > div { display: grid; gap: 7px; }
.ca-cost-basis span { font-size: 11px; color: var(--muted); }
.ca-cost-basis strong { font-size: 17px; font-weight: 550; font-variant-numeric: tabular-nums; }
.ca-cost-basis > a { font-size: 12px; }
.ca-limits { margin: 0; font-size: 11px; line-height: 1.7; color: var(--muted); }
.ca-evidence-entry { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 15px; background: var(--glass-raised,var(--surface)); }
.ca-evidence-entry p { margin: 8px 0 0; max-width: 72ch; font-size: 12px; line-height: 1.6; color: var(--muted); }
.ca-evidence-entry > a { flex-shrink: 0; }
.sw-business__next { display: flex; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }
.sw-business__next .fx-btn { font-size: 12px; padding: 8px 12px; }
.sw-cost-conditions { border-left: 3px solid var(--warn); padding: 11px 15px; border-radius: 5px; background: color-mix(in srgb,var(--warn) 5%,var(--surface)); font-size: 12px; line-height: 1.6; }
.sw-cost-conditions > strong { font-weight: 600; }
.sw-cost-conditions ul { margin: 6px 0; padding-left: 18px; color: var(--muted); }
.sw-cost-conditions > a { font-size: 11px; }
.ca-chart-placeholder { min-height: 380px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 40px; border: 1px dashed var(--line-strong); border-radius: 19px; background: linear-gradient(140deg,var(--surface-muted),transparent); }
.ca-chart-placeholder h3 { font-size: 25px; font-weight: 500; letter-spacing: -.035em; margin: 12px 0; }
.ca-chart-placeholder p { max-width: 50ch; color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0; }
.ca-placeholder-path { width: 80%; height: 60px; border-bottom: 2px solid var(--accent); border-radius: 0 0 65% 10%; transform: rotate(-8deg); opacity: .2; margin: 30px 0 20px; }
@media (prefers-reduced-motion:no-preference) {
  .ca-hero,.ca-chart-card { animation: ca-arrive .36s ease-out both; }
  .ca-sensitivity { animation-delay: .08s; }
  .ca-chart-line[pathLength] { stroke-dasharray: 1; animation: ca-trace .75s ease-out both; }
  @keyframes ca-arrive { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
  @keyframes ca-trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
}
@media (prefers-reduced-motion:reduce) { .ca-scenario-card { transition: none; }.ca-scenario-card:hover { transform: none; } }
@media (max-width:1050px) {
  .ca-workspace { grid-template-columns: minmax(0,1fr) 275px; gap: 16px; }
  .ca-controls { padding: 18px; }
  .ca-hero { padding: 23px; gap: 18px; }
  .ca-hero__metric { padding-left: 18px; }
  .ca-chart-card { padding: 20px 16px 17px; }
  .ca-chart-legend { display: none; }
}
@media (max-width:800px) {
  .ca-workspace { grid-template-columns: 1fr; }
  .ca-controls { position: static; grid-row: 1; }
  .ca-controls fieldset { grid-template-columns: 1fr 1fr; align-items: end; }
  .ca-control-hint { display: none; }
  .ca-share { border: 0; padding: 0; }
  .ca-scenario-grid { grid-template-columns: 1fr; }
  .ca-hero { grid-template-columns: 1fr 1fr; }
  .ca-hero__main { grid-column: 1/-1; }
  .ca-hero__metric { border: 0; padding: 0; }
  .ca-hub-intro { padding: 25px; }.ca-hub-art { opacity: .12; }
  .ca-context-bar { align-items: flex-start; }.ca-country-form { min-width: 140px; }
}
@media (max-width:500px) {
  .ca-page { gap: 20px; }.ca-context-bar { flex-direction: column; gap: 15px; }
  .ca-country-form { width: 100%; }.ca-country-form .ob-input { width: 100%; }
  .ca-controls fieldset { grid-template-columns: 1fr; }
  .ca-chart-milestones { gap: 9px; }.ca-chart-milestones strong { font-size: 14px; }
  .ca-cost-basis { gap: 18px; padding: 20px; }.ca-cost-basis > div { width: calc(50% - 10px); }
  .ca-chart-placeholder { padding: 25px; }.ca-hub-steps { gap: 14px; }
  .ca-evidence-entry { flex-direction: column; align-items: flex-start; }
}

/* zzzzzzzzzzzzzzz_document_scope.css */
/* Scope options reveal only the fields relevant to the chosen document. */
.rd-documents .prep-document-form .doc-scope { grid-template-columns: 1fr; gap: 8px; }
.doc-scope-choice { min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--glass-inset); }
.doc-scope-choice:has(input[type="radio"]:checked) { border-color: var(--line-strong); background: var(--glass-selected); }
.doc-scope-choice > label { min-height: 24px; cursor: pointer; }
.doc-scope-choice:has(input[type="radio"]:disabled) > label { color: var(--muted); cursor: default; }
.doc-scope-choice:not(:has(input[type="radio"]:checked)) .doc-scope-fields,
.doc-scope-fields[hidden] { display: none; }
.doc-scope-fields { display: flex; flex-wrap: wrap; gap: 10px; padding: 10px 0 2px 22px; }
.doc-scope .doc-scope-fields label { display: grid; flex: 1 1 140px; align-items: start; gap: 5px; min-width: 0; color: var(--ink-soft); font-size: 12px; }
.doc-scope-fields .fx-input { width: 100%; min-width: 0; }
@media (pointer: coarse) { .doc-scope-choice > label { min-height: 36px; } }

.im-destination { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; }
.im-destination label { font-size: 12px; flex: none; }
.im-destination .fx-input { min-width: 0; width: auto; flex: 1; }

/* zzzzzzzzzzzzzzz_evidence_worklist.css */
.evidence-worklist { margin: 28px 0; scroll-margin-top: 110px; }
.evidence-worklist__heading, .evidence-supplier__heading, .evidence-part__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.evidence-worklist__filters { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0; }
.evidence-filter { display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--glass-surface); color: var(--ink-soft); font-size: 12px; text-decoration: none; }
.evidence-filter[aria-current="page"] { border-color: var(--accent); color: var(--accent-strong); background: var(--accent-soft); }
.evidence-filter span { opacity: .7; }
.evidence-worklist__groups { display: grid; gap: 16px; }
.evidence-supplier { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--glass-sheen), var(--glass-surface); box-shadow: var(--shadow-soft); }
.evidence-supplier__heading { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.evidence-supplier__heading h3 { margin: 0 0 5px; font-size: 16px; }
.evidence-supplier__heading p, .evidence-part__heading p { margin: 0; font-size: 12px; color: var(--muted); }
.evidence-supplier__parts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.evidence-part { min-width: 0; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.evidence-part:nth-child(odd) { border-right: 1px solid var(--line); }
.evidence-part__heading strong { display: block; margin-bottom: 5px; font-size: 13px; }
.evidence-state { flex: none; border: 1px solid var(--line); border-radius: 20px; padding: 4px 9px; font-size: 11px; background: var(--glass-surface); color: var(--ink-soft); }
.evidence-state--received { color: var(--accent-strong); background: var(--accent-soft); }
.evidence-state--reviewed { color: var(--good, #34715b); }
.evidence-supplier__heading h3 a { color: inherit; text-decoration: none; }
.evidence-supplier__heading h3 a:hover { text-decoration: underline; }
.evidence-part__request { margin: 10px 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.evidence-due--overdue { color: var(--bad); font-weight: 600; }
.evidence-request { margin-top: 4px; }
.evidence-request > summary { width: fit-content; cursor: pointer; color: var(--accent-strong); }
.evidence-request p { margin: 4px 0 0; overflow-wrap: anywhere; }
.evidence-part__needs, .evidence-part__reviewed { font-size: 12px; line-height: 1.5; }
.evidence-part__needs { margin: 10px 0; }
.evidence-part__facts { display: grid; gap: 5px; margin: 12px 0; font-size: 12px; }
.evidence-part__facts > div { display: flex; justify-content: space-between; gap: 12px; }
.evidence-part__facts dt { color: var(--muted); }
.evidence-part__facts dd { margin: 0; text-align: right; }
.evidence-part__files { list-style: none; padding: 0; font-size: 12px; }
.evidence-part__files > li { padding: 8px 0; overflow-wrap: anywhere; }
.evidence-part__files > li > span { display: block; color: var(--muted); margin-top: 3px; }
.evidence-reading { margin-top: 10px; }
.evidence-reading summary { cursor: pointer; color: var(--accent-strong); }
.evidence-reading__fact { display: flex; align-items: flex-start; gap: 9px; margin: 12px 0; }
.evidence-reading__fact q { display: block; margin-top: 5px; color: var(--muted); line-height: 1.55; }
.evidence-supplier__actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; padding: 14px 20px; }
.evidence-upload { flex: 1; min-width: 240px; }
.evidence-upload > summary { cursor: pointer; width: fit-content; }
.evidence-upload__form { display: grid; gap: 14px; margin-top: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.evidence-upload__form label { display: grid; gap: 6px; font-size: 12px; }
.evidence-upload__inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.evidence-upload__form fieldset { border: 0; padding: 0; margin: 0; }
.evidence-upload__form legend { font-size: 12px; margin-bottom: 8px; }
.evidence-upload__form .evidence-upload__part { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.evidence-worklist__empty { padding: 18px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 13px; }
@media (max-width: 850px) { .evidence-supplier__parts { grid-template-columns: 1fr; } .evidence-part:nth-child(odd) { border-right: 0; } }
@media (max-width: 600px) { .evidence-worklist__heading, .evidence-supplier__heading { flex-direction: column; } .evidence-upload__inputs { grid-template-columns: 1fr; } }

.evidence-supplier > summary { cursor: pointer; list-style: none; }
.evidence-supplier > summary::-webkit-details-marker { display: none; }
.evidence-supplier:not([open]) > summary { border-bottom: 0; }
.evidence-supplier > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.evidence-supplier__counts { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; color: var(--muted); font-size: 12px; }

/* zzzzzzzzzzzzzzz_sourcing_offers.css */
.so-page { max-width: 1040px; }
.so-card { padding: 24px; margin: 20px 0; border: 1px solid var(--line, #dce3ee); border-radius: 18px; background: rgba(255,255,255,.82); box-shadow: 0 4px 20px rgba(30,52,84,.035); }
.so-card .fx-h2 { margin: 0 0 10px; font-size: 18px; }
.so-card .fx-field { margin: 12px 0; }
.so-card .fx-input { width: 100%; }
.so-row { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; }
.so-row .fx-field { min-width: 240px; }
.so-row .fx-btn { margin-bottom: 12px; }
.so-product-checks { border: 0; padding: 12px 0; margin: 8px 0 12px; }
.so-product-checks legend { font-size: 14px; font-weight: 600; }
.so-product-checks legend small { font-weight: 400; }
.so-product-checks label { display: flex; align-items: start; gap: 12px; padding: 10px 0; border-bottom: 1px solid #e8edf4; }
.so-product-checks input { margin-top: 5px; }
.so-product-checks small, .so-offer small { display: block; color: #59697d; font-size: 12px; margin-top: 3px; }
.so-offer { display: flex; justify-content: space-between; gap: 18px; align-items: center; text-decoration: none; color: inherit; padding: 16px 0; border-top: 1px solid #e8edf4; }
.so-offer:hover strong { color: #245bcb; }
.so-offer > span:last-child { font-size: 12px; color: #526278; }
.so-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 20px; }
.so-facts { display: grid; grid-template-columns: minmax(150px, 1fr) 2fr; gap: 9px 20px; font-size: 14px; }
.so-facts dt { color: #59697d; }
.so-facts dd { margin: 0; overflow-wrap: anywhere; }
.so-subtitle { font-size: 15px; margin: 22px 0 8px; }
.so-subtitle small, .so-card .fx-label small { font-size: 12px; font-weight: 400; color: #67768a; }
.so-documents { padding-left: 20px; font-size: 13px; line-height: 1.8; }
.so-import, .so-document-upload { border-top: 1px solid #e5eaf2; margin-top: 20px; padding-top: 16px; }
.so-import > label:first-child { display: flex; align-items: center; gap: 9px; font-size: 14px; }
.so-import .fx-field { max-width: 390px; }
.so-action { padding: 4px 0 18px; }
.so-action .fx-hint { max-width: 700px; }
.so-summary { font-size: 13px; color: #526278; }
.so-link { border-color: #bdd0f1; background: #f5f9ff; }
.so-card :focus-visible, .so-offer:focus-visible { outline: 2px solid #3269dc; outline-offset: 3px; }
@media (max-width: 620px) { .so-card { padding: 18px; } .so-fields { grid-template-columns: 1fr; } .so-facts { grid-template-columns: 1fr; gap: 4px; } .so-facts dd { margin-bottom: 10px; } .so-offer { align-items: start; flex-direction: column; gap: 8px; } }

/* zzzzzzzzzzzzzzzz_country_picker.css */
/* The country picker (shared/_country_picker): grouped country buttons and "+ Add a country". Reusable on any page that
   compares countries; colours from the app's tokens, so it follows the light and dark themes. */
.cp { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.cp-legend { font-size: 14px; font-weight: 600; padding: 0; margin-bottom: 2px; color: var(--ink); }
.cp-group { display: flex; flex-direction: column; gap: 6px; }
.cp-label { font-size: 12px; color: var(--muted); }
.cp-items { display: flex; flex-wrap: wrap; gap: 6px; }
.cp-item { display: inline-flex; align-items: stretch; }
.cp-pick { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--surface); font: 500 13px var(--font-sans, Geist, system-ui, sans-serif); color: var(--ink);
  text-align: left; transition: background-color .2s ease, border-color .2s ease; }
.cp-pick:hover { border-color: var(--accent); }
.cp-pick[aria-pressed="true"] { border: 2px solid var(--accent); background: var(--accent-soft); }
.cp-note { font-size: 11px; color: var(--muted); font-weight: 400; white-space: nowrap; }
.cp-remove { cursor: pointer; min-width: 32px; min-height: 44px; margin-left: -4px; border: 1px solid var(--line-strong); border-left: 0;
  border-radius: 0 10px 10px 0; background: var(--surface); color: var(--muted); font-size: 16px; }
.cp-item:has(.cp-remove) .cp-pick { border-radius: 10px 0 0 10px; }
.cp-remove:hover { color: var(--bad); }
.cp-empty { font-size: 12px; color: var(--muted); padding: 6px 0; }
.cp-add { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); }
.cp-add input { flex: 1 1 160px; min-height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--ink); font: 500 13px var(--font-sans, Geist, system-ui, sans-serif); }
.cp-error { margin: 0; font-size: 12px; color: var(--bad); }
.cp-small { margin: 0; font-size: 12px; color: var(--muted); }
.cp-pick:focus-visible, .cp-remove:focus-visible, .cp-add input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* zzzzzzzzzzzzzzzz_decision_comparison.css */
/* Shared sourcing decision view: stable table geometry, direct evidence links. */
.dc-panel{margin:24px 0;padding:22px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(145deg,color-mix(in srgb,var(--accent-soft) 30%,var(--surface)),var(--glass-raised,var(--surface)));box-shadow:0 6px 26px color-mix(in srgb,var(--accent) 4%,transparent)}
.dc-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.dc-heading h3{font-size:18px;font-weight:650;letter-spacing:-.035em;margin:5px 0}.dc-heading p{font-size:12px;color:var(--muted);margin:0}.dc-count{font-size:11px;white-space:nowrap;color:var(--ink-soft);background:var(--surface-muted);border-radius:20px;padding:6px 10px}
.dc-notice{font-size:12px;line-height:1.55;color:var(--ink-soft);background:color-mix(in srgb,var(--warn) 8%,var(--surface));border:1px solid color-mix(in srgb,var(--warn) 25%,var(--line));border-radius:9px;padding:9px 12px;margin:8px 0}.dc-scroll{overflow-x:auto;overscroll-behavior-x:contain;margin:0 -5px;padding:0 5px}.dc-scroll:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.dc-table{width:100%;min-width:640px;border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:12px;color:var(--ink)}.dc-table th,.dc-table td{padding:14px 12px;vertical-align:top;text-align:left;border-bottom:1px solid var(--line)}.dc-table thead th{font-size:14px;font-weight:650;padding-top:13px;padding-bottom:17px;vertical-align:bottom}.dc-table th:first-child{width:21%;font-weight:550;color:var(--ink-soft)}.dc-table small{display:block;margin-top:5px;font-size:10px;line-height:1.5;font-weight:400;color:var(--muted)}.dc-table td>strong{display:block;font-size:17px;line-height:1.25;letter-spacing:-.025em;font-weight:650;font-variant-numeric:tabular-nums}.dc-table td>strong.dc-payback{font-size:13px;letter-spacing:-.01em}.dc-table .dc-selected{background:color-mix(in srgb,var(--accent-soft) 65%,transparent)}.dc-table thead .dc-selected{border-radius:10px 10px 0 0}.dc-table tbody tr:last-child .dc-selected{border-radius:0 0 10px 10px}.dc-table tbody tr:last-child>*{border-bottom:0}.dc-country{color:var(--accent-strong);text-decoration:none}.dc-country:hover{text-decoration:underline}.dc-country:after{content:' ↗';font-size:11px;opacity:.6}.dc-baseline{background:color-mix(in srgb,var(--surface-muted) 40%,transparent)}.dc-muted{color:var(--muted)}.dc-table .is-lower{color:var(--good)}.dc-table .is-higher{color:var(--warn)}
.dc-cost-track,.dc-evidence-track{display:block;margin-top:10px;height:5px;border-radius:10px;background:var(--line);overflow:hidden;max-width:170px}.dc-cost-track>span,.dc-evidence-track>span{display:block;height:100%;max-width:100%;border-radius:inherit;background:color-mix(in srgb,var(--muted) 70%,var(--surface));transform-origin:left;animation:dc-reveal .55s ease-out both}.dc-cost-track>span.dc-cost-track--alternative{background:linear-gradient(90deg,var(--accent),color-mix(in srgb,var(--good) 65%,var(--accent)))}.dc-evidence-track>span{background:linear-gradient(90deg,var(--good),color-mix(in srgb,var(--good) 65%,var(--surface)))}.dc-table .dc-evidence-row strong{font-size:13px}.dc-evidence-unit{font-size:10px;font-weight:400;color:var(--muted)}.dc-plan-row td{font-size:11px;line-height:1.6}.dc-action{display:inline-block;font-size:10px;color:var(--accent);margin-top:8px;text-underline-offset:3px}.dc-footnote{font-size:10px;line-height:1.6;color:var(--muted);margin:14px 0 0}
@keyframes dc-reveal{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@media(prefers-reduced-motion:reduce){.dc-cost-track>span,.dc-evidence-track>span{animation:none}}
@media(max-width:700px){.dc-panel{padding:15px 12px;border-radius:13px}.dc-heading h3{font-size:16px}.dc-table{min-width:620px}.dc-table th,.dc-table td{padding:12px 10px}.dc-table td>strong{font-size:16px}.dc-count{display:none}}

/* Let the table scroll inside its card instead of sizing the page's grid track. */
.ca-page { grid-template-columns: minmax(0, 1fr); }
.dc-panel { min-width: 0; max-width: 100%; box-sizing: border-box; }
.dc-scroll { min-width: 0; }
.ca-page > .dc-panel { margin: 0; }

/* zzzzzzzzzzzzzzzz_interaction_motion.css */
/* A small lift belongs to controls, never table rows, evidence, conversation
   text or dialog surfaces. Keep existing colours, selected rings and shadows. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  :where(
    button, input[type="button"], input[type="submit"], input[type="reset"],
    a.fx-btn, a.ws-nav-link, a.fx-nav__link, a.fx-subtabs__link,
    .product-views > a,
    .evidence-worklist__filters > a,
    a.readiness-filter, a.cp-schedule__choice,
    a.planning-option, a.tools-item,
    .rs__option:has(input), .sw-check:has(input)
  ):not(:disabled, [aria-disabled="true"], :has(:disabled), .confidence-band) {
    transition: transform 140ms ease, filter 140ms ease, background-color 140ms ease,
      border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
  }

  :where(
    button, input[type="button"], input[type="submit"], input[type="reset"],
    a.fx-btn, a.ws-nav-link, a.fx-nav__link, a.fx-subtabs__link,
    .product-views > a,
    .evidence-worklist__filters > a,
    a.readiness-filter, a.cp-schedule__choice,
    a.planning-option, a.tools-item,
    .rs__option:has(input), .sw-check:has(input)
  ):not(:disabled, [aria-disabled="true"], :has(:disabled), .confidence-band):hover:not(:active) {
    transform: translateY(-1px);
    /* An extra shadow layer preserves inset selected-state and focus shadows. */
    filter: drop-shadow(0 2px 3px color-mix(in srgb, var(--ink) 12%, transparent));
  }
}

/* Older chooser cards already lifted by two pixels. Match the same one-pixel
   interaction above, with no sticky hover movement on touch or reduced motion. */
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .planning-simple .planning-option:hover { transform: none; }
}

/* zzzzzzzzzzzzzzzz_interface_selection.css */
/* UI controls should not select their captions during repeated clicks. Keep this
   scoped to controls: never apply it to the page, tables, cards or conversation. */
:where(
  button, input[type="button"], input[type="submit"], input[type="reset"],
  [role="button"], [role="tab"], .fx-btn,
  .fx-brand, .fx-skip, .ws-nav-link,
  .ws-sidebar__mobile-head > strong, .fx-nav__link, .fx-subtabs__link,
  .product-views > a,
  .evidence-worklist__filters > a, .readiness-filter, .change-pagination > a,
  .at-pages > a, .sv-pages > a, .op-pages > a,
  .ws-workspace__options > a, .ws-sidebar__workspace > a, .fx-account__list a, .fx-account__switch,
  .assistant-launcher,
  .catalog-status, .catalog-review-link, .product-view-menu__saved li > a, .im-filter > a,
  label[for], .fx-label, .rs__option, .sw-check, .product-view-menu__columns label, .catalog-select,
  .ob-badge, .confidence-band, .op-certainty, .sp-pill[data-request-state]
),
/* These summaries are disclosure captions. Rich answer cards and finding rows
   contain copyable business information, so they are deliberately excluded. */
:where(summary:not(.ob-face, .op-row, .lp__detail-summary)) {
  -webkit-user-select: none;
  user-select: none;
}

/* Some controls also display real product data. Restore selection on those
   values, including HTS/duty links and the legal-path codes inside buttons. */
:where(
  .catalog-product, .product-identifiers, .catalog-review-link__value,
  .ob-code, .ob-code-desc, .ob-total, .ob-total-sub, .ob-legend,
  .rs__code, .rs__amount, .lp__short,
  button .mono, [role="button"] .mono,
  summary.ob-face, summary.op-row, summary.lp__detail-summary
) {
  -webkit-user-select: text;
  user-select: text;
}

/* Labels may wrap fields. Their chrome is nonselectable, but typing, selecting,
   copying and pasting in the native editor must retain normal browser behavior. */
:where(
  input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
  textarea, [contenteditable=""], [contenteditable="true"]
) {
  -webkit-user-select: text;
  user-select: text;
}

/* zzzzzzzzzzzzzzzz_origin_visual.css */
.origin-visual { min-width: 0; }
.ov-heading, .ov-product__head, .ov-proposed__head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.ov-heading { margin-bottom: 14px; }
.ov-heading h4 { font-size: 17px; }
.ov-heading p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.ov-picker { display: grid; gap: 5px; min-width: 220px; width: min(43%, 390px); }
.ov-picker label, .ov-picker small { font-size: 11px; color: var(--muted); }
.ov-picker label { font-weight: 600; color: var(--ink-soft); }
.ov-picker select { width: 100%; min-height: 38px; padding: 7px 30px 7px 10px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); font-size: 13px; }
.ov-product { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 18px; background: color-mix(in srgb, var(--surface) 90%, transparent); margin-top: 14px; }
.ov-product__head { padding: 19px 22px; background: linear-gradient(112deg, color-mix(in srgb, var(--accent-soft) 72%, transparent), transparent 80%); border-bottom: 1px solid var(--line); }
.ov-product__head > div { min-width: 0; }
.ov-product__head h4 { font-size: 16px; line-height: 1.35; margin: 5px 0; overflow-wrap: anywhere; }
.ov-product__head small { font-size: 11px; color: var(--muted); }
.ov-product__head > a, .ov-proposed__head > a { flex-shrink: 0; font-size: 12px; }
.ov-eyebrow { font-size: 11px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-strong); }
.ov-facts { display: grid; grid-template-columns: 1fr 1fr; }
.ov-content, .ov-locations { padding: 20px 22px; min-width: 0; }
.ov-content { border-right: 1px solid var(--line); }
.ov-content h5, .ov-locations h5, .ov-proposed h5 { font-size: 13px; line-height: 1.3; margin: 0 0 17px; color: var(--ink); font-weight: 650; }
.ov-content h5 small { font-size: 11px; font-weight: 400; margin-left: 6px; color: var(--muted); }
.ov-metal + .ov-metal { margin-top: 17px; }
.ov-metal__label { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 7px; font-size: 13px; }
.ov-metal__label strong { font-weight: 550; }
.ov-metal__label > span { font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.ov-track { height: 9px; overflow: hidden; border-radius: 4px; background: var(--surface-muted); }
.ov-track > span { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, #655ce4, #8e87ed); transform-origin: left; }
.ov-metal--steel .ov-track > span { background: linear-gradient(90deg, #477a97, #6ca2bf); }
.ov-metal--copper .ov-track > span { background: linear-gradient(90deg, #b46e42, #d59d6d); }
.ov-track.is-unknown { background: repeating-linear-gradient(120deg, var(--surface-muted), var(--surface-muted) 6px, var(--line) 6px, var(--line) 8px); }
.ov-fact-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 7px; margin-top: 7px; font-size: 11px; line-height: 1.4; }
.ov-source { padding: 2px 6px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-muted); color: var(--ink-soft); }
.ov-status { font-size: 11px; color: var(--muted); }
.ov-status--missing, .ov-status--requested, .ov-status--received { color: var(--warn); }
.ov-status--verified { color: var(--good); }
.ov-source-detail { display: block; color: var(--muted); font-size: 11px; line-height: 1.5; margin-top: 4px; overflow-wrap: anywhere; }
.ov-location + .ov-location { margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--line); }
.ov-location__label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.ov-location > strong, .ov-certificates strong { display: block; font-size: 14px; font-weight: 550; }
.ov-caption { margin: 13px 0 0; font-size: 11px; line-height: 1.6; color: var(--muted); }
.ov-empty { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.ov-warning { color: var(--warn); font-size: 11px; margin: 13px 0 0; }
.ov-certificates { display: flex; flex-wrap: wrap; gap: 16px 35px; padding: 16px 22px; border-top: 1px solid var(--line); }
.ov-certificates > div { flex: 1 1 220px; }
.ov-supporting-documents { padding: 14px 22px; border-top: 1px solid var(--line); }
.ov-supporting-documents .ov-caption, .ov-supporting-documents .ov-document { margin-top: 5px; }
.ov-proposed { padding: 17px 22px; border-top: 1px dashed var(--line-strong); background: color-mix(in srgb, var(--accent-soft) 34%, var(--surface)); }
.ov-proposed__head h5 { margin: 5px 0 0; }
.ov-proposed__identity { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; margin: 13px 0 0; }
.ov-proposed__identity > span { padding: 3px 7px; border-radius: 5px; background: var(--surface); margin-left: auto; }
.ov-proposed__facts { display: flex; gap: 12px 25px; flex-wrap: wrap; margin: 14px 0 0; }
.ov-proposed__facts dt { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.ov-proposed__facts dd { font-size: 12px; font-weight: 550; margin: 0; }
.ov-document { margin: 10px 0 0; font-size: 11px; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .ov-product:not([hidden]) .ov-track > span { animation: ov-fill 380ms ease-out both; }
  @keyframes ov-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
@media (max-width: 760px) {
  .ov-heading { flex-direction: column; align-items: stretch; gap: 12px; }
  .ov-picker { width: 100%; min-width: 0; }
  .ov-facts { grid-template-columns: 1fr; }
  .ov-content { border-right: 0; border-bottom: 1px solid var(--line); }
  .ov-product__head, .ov-proposed__head { align-items: flex-start; flex-wrap: wrap; gap: 10px; }
  .ov-content, .ov-locations, .ov-product__head, .ov-proposed { padding: 17px; }
}
@media print {
  .ov-picker { display: none !important; }
  .ov-product[hidden] { display: block !important; }
  .ov-product { break-inside: avoid; }
}

/* zzzzzzzzzzzzzzzz_readiness.css */
/* Data readiness: compact facts, immediate native filters, and a readable worklist.
   All surfaces use the app's existing light/dark glass palette. */
.readiness-page > .fx-wrap { gap: 24px; }
.readiness-updated { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.readiness-overview { border: 1px solid var(--glass-border); border-radius: 16px; background: var(--glass-sheen), var(--glass-surface); box-shadow: var(--glass-highlight); }
.readiness-metrics { display: grid; grid-template-columns: 1fr 1fr 1.7fr; margin: 0; padding: 20px 0; }
.readiness-metrics > div { min-width: 0; padding: 0 22px; }
.readiness-metrics > div + div { border-left: 1px solid var(--line); }
.readiness-metrics dt { margin-bottom: 7px; color: var(--muted); font-size: 14px; }
.readiness-metrics dd { margin: 0; color: var(--ink); font-size: 28px; line-height: 1.3; font-weight: 600; font-variant-numeric: tabular-nums; }
.readiness-sample { margin-left: 6px; vertical-align: 1px; font-size: 12px; }
.readiness-metrics .readiness-method { margin-top: 6px; font-size: 13px; font-weight: 400; }
.readiness-method > details > summary { width: fit-content; color: var(--ink-soft); font-weight: 500; cursor: pointer; }
.readiness-method p { max-width: 75ch; margin: 8px 0 0; color: var(--ink-soft); line-height: 1.6; }
.readiness-metrics .readiness-metric-note { margin-top: 7px; color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.5; }
.readiness-issues { min-width: 0; }
.readiness-issues, .readiness-tabs, .readiness-page #evidence-worklist { scroll-margin-top: calc(var(--topbar-height) + 20px); }
.readiness-issues:focus { outline: none; }
.readiness-list-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.readiness-list-heading > div:first-child { flex: 1; }
.readiness-list-heading .fx-h2 { font-size: 20px; }
.readiness-list-heading p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.readiness-filterbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.readiness-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; max-width: 100%; padding: 4px; border: 1px solid var(--glass-border); border-radius: 14px; background: var(--glass-surface); box-shadow: inset 0 1px 0 var(--glass-border); }
.readiness-export { flex: none; margin: 0 0 0 auto; }
.readiness-export .fx-btn { min-height: 40px; }
.readiness-why, .readiness-checked, .readiness-fixers { max-width: 90ch; margin: 0 0 12px; font-size: 13px; line-height: 1.55; }
.readiness-why { color: var(--ink-soft); }
.readiness-checked { color: var(--muted); }
.readiness-filter { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 7px 11px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--ink-soft); font-size: 13px; font-weight: 500; line-height: 1.4; text-decoration: none; white-space: nowrap; cursor: pointer; }
.readiness-filter > span { display: inline-grid; place-items: center; min-width: 24px; min-height: 21px; padding: 1px 6px; border-radius: 6px; background: var(--glass-inset); color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.3; font-variant-numeric: tabular-nums; }
.readiness-filter:hover { background: var(--glass-raised); color: var(--ink); transform: none; box-shadow: none; }
.readiness-filter[aria-current="page"] { background: var(--accent); color: var(--accent-ink); font-weight: 600; box-shadow: 0 1px 3px rgb(23 47 61 / 10%); }
.readiness-filter[aria-current="page"] > span { background: color-mix(in srgb, var(--accent-ink) 16%, transparent); color: inherit; }
.readiness-page :is(a, button, summary, input, select, textarea):focus-visible { outline: 2px solid var(--focus-ring, var(--accent)); outline-offset: 3px; box-shadow: none; }
.readiness-page .sp-table-wrap { overflow: visible; border: 1px solid var(--glass-border); border-radius: 14px; background: var(--glass-sheen), var(--glass-surface); box-shadow: var(--glass-highlight); }
.readiness-page .sp-table { table-layout: fixed; }
.readiness-page .sp-table th { padding: 13px 16px; font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.readiness-page .sp-table th:nth-child(1) { width: 26%; }
.readiness-page .sp-table th:nth-child(2) { width: auto; }
.readiness-page .sp-table th:nth-child(3) { width: 20%; }
.readiness-page .sp-table th:nth-child(4) { width: 18%; }
.readiness-page .sp-table td { padding: 18px 16px; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.readiness-page .sp-table td > strong { font-size: 14px; font-weight: 550; }
.readiness-page .sp-table tbody tr:last-child td { border-bottom: 0; }
.readiness-cell-note { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.readiness-product a { color: inherit; text-decoration: none; }
.readiness-product a:hover { text-decoration: underline; }
.readiness-issue-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.readiness-issue-list strong { font-size: 14px; font-weight: 550; }
.readiness-basis { color: var(--muted); font-size: 13px; font-weight: 400; }
.readiness-page .sp-table .readiness-risk { text-align: right; font-variant-numeric: tabular-nums; }
.readiness-page .sp-table td[data-risk] { font-size: 14px; font-weight: 500; }
.readiness-page .sp-table .sp-actions { min-width: 0; white-space: normal; }
.readiness-page .sp-actions > .fx-btn { display: inline-flex; width: auto; min-height: 40px; max-width: 100%; padding: 9px 12px; text-align: left; white-space: normal; font-size: 13px; line-height: 1.4; }
.readiness-page .sp-actions .row-more { margin-top: 6px; }
.readiness-page .sp-actions .row-more > summary { min-width: 40px; min-height: 40px; }
.readiness-empty { padding: 26px; border: 1px solid var(--glass-border); border-radius: 14px; background: var(--glass-inset); }
.readiness-empty h3 { font-size: 17px; }
.readiness-empty p { max-width: 70ch; margin: 9px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.readiness-empty .fx-btn { margin-top: 16px; }
.readiness-page .change-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 18px; font-size: 14px; }
.readiness-page .change-pagination > a { display: inline-flex; align-items: center; min-height: 40px; }
.readiness-page .evidence-worklist { margin: 0; }
.readiness-page .evidence-worklist__heading { align-items: center; }
.readiness-page .evidence-worklist__heading .fx-hint { margin: 0; }
.readiness-page .evidence-worklist__heading > .fx-btn { flex: none; }
.readiness-page .evidence-filter { min-height: 40px; font-size: 14px; }
.readiness-page .evidence-worklist .fx-hint { font-size: 13px; line-height: 1.6; }
.readiness-page .evidence-worklist__footer { margin: 16px 0 0; }
.readiness-page :is(.evidence-part__heading p, .evidence-supplier__heading p, .evidence-part__needs, .evidence-part__request, .evidence-part__facts, .evidence-part__files, .evidence-part__reviewed, .evidence-upload__form label, .evidence-upload__form legend) { font-size: 13px; }
.readiness-page .readiness-tabs { margin-bottom: -8px; }
.readiness-evidence-setup { margin: 0; font-size: 13px; line-height: 1.6; }
@media (max-width: 900px) {
  .readiness-metrics { grid-template-columns: 1fr 1fr; gap: 18px 0; }
  .readiness-metrics .readiness-metrics__exposure { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--line); border-left: 0; }
  .readiness-page .sp-table th:nth-child(1) { width: 24%; }
  .readiness-page .sp-table th:nth-child(3), .readiness-page .sp-table th:nth-child(4) { width: 20%; }
  .readiness-page .sp-table :is(th, td) { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 720px) {
  .readiness-page > .fx-wrap { gap: 20px; }
  .readiness-list-heading { align-items: start; flex-direction: column; gap: 4px; }
  .readiness-metrics > div { padding-inline: 16px; }
  .readiness-metrics dd { font-size: 25px; }
  .readiness-metrics dt, .readiness-metrics .readiness-metric-note { font-size: 13px; }
  .readiness-page .sp-table[data-quality] { table-layout: auto; }
  .readiness-page .sp-table[data-quality] tr { padding: 18px 16px; }
  .readiness-page .sp-table[data-quality] td { padding: 7px 0; border: 0; text-align: left; }
  .readiness-page .sp-table[data-quality] td::before { margin-bottom: 4px; font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; }
  .readiness-page .sp-table[data-quality] td.sp-actions { display: block; }
  .readiness-page .sp-table[data-quality] .row-more { margin: 0 0 0 6px; }
  .readiness-page .sp-table[data-quality] tr:last-child { border-bottom: 0; }
}
/* On a phone a product is four lines: its name, its issues, the figure with its basis, the fix. The issues' details,
   the part number and the field labels stay on wider screens (the name opens the product, which has them all). */
@media (max-width: 600px) {
  .readiness-filters { width: 100%; }
  .readiness-filter { min-height: 40px; flex: 1 0 auto; }
  .readiness-page .evidence-worklist__heading { align-items: flex-start; }
  .readiness-page .sp-table[data-quality] tr { padding: 14px 16px; }
  .readiness-page .sp-table[data-quality] td { padding: 2px 0; }
  .readiness-page .sp-table[data-quality] td[data-label]::before { content: none; }
  .readiness-page .readiness-product > strong { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .readiness-page .readiness-product > .readiness-cell-note { display: none; }
  .readiness-page .readiness-issue-list { display: block; color: var(--ink-soft); }
  .readiness-page .readiness-issue-list > li { display: inline; }
  .readiness-page .readiness-issue-list > li + li::before { content: " · "; }
  .readiness-page .readiness-issue-list strong { font-size: 13px; font-weight: 400; }
  .readiness-page .readiness-issue-list .readiness-cell-note:not([data-suggestion]) { display: none; }
  .readiness-page .sp-table[data-quality] td.sp-actions { display: flex; align-items: center; padding-top: 8px; }
}

/* zzzzzzzzzzzzzzzz_what_if_picture.css */
/* Money › What-if as a picture (WhatIfPicture; mockup docs/design/whatif-visual.mockup.html). Bars take their length
   from the engine's figures through calc(): --wv-v (a bar's figure) over --wv-max (the largest on the same scale); the
   layers inside a bar share it by flex-grow. */
:root {
  --wv-general: #1f4fa3; --wv-section_301: #7aa2e3; --wv-section_232: #b7791f; --wv-section_122: #6b4fa0; --wv-other: #8a96a8;
  --wv-save: #2f7d4f; --wv-save-ink: #1f5b3a; --wv-save-bg: #e3f2e8;
  --wv-cost: #b13e39; --wv-cost-ink: #8f2f2b; --wv-cost-bg: #fbe4e2;
  --wv-badge-bg: #efeaf7; --wv-badge-ink: #5a4680;
  --wv-card: rgba(255, 255, 255, .72); --wv-card-line: rgba(255, 255, 255, .9); --wv-panel: #ffffff; --wv-box: #fbfcfe;
  --wv-line: #e3e9f3; --wv-control: #d5deec; --wv-pressed: #eef3fc; --wv-total: #f3f6fb; --wv-axis: #9aa6b8;
}
:root[data-theme="dark"] {
  --wv-general: #8fb2f0; --wv-section_301: #5c7fc0; --wv-section_232: #e2b261; --wv-section_122: #b9a2e6; --wv-other: #8d99ad;
  --wv-save: #6fcf97; --wv-save-ink: #a6e8c2; --wv-save-bg: #234536;
  --wv-cost: #f08a84; --wv-cost-ink: #ffc2bd; --wv-cost-bg: #4a2f33;
  --wv-badge-bg: #3a3452; --wv-badge-ink: #d8cdf3;
  --wv-card: rgba(43, 56, 77, .62); --wv-card-line: rgba(181, 200, 230, .15); --wv-panel: #263142; --wv-box: #2b374a;
  --wv-line: rgba(181, 200, 230, .18); --wv-control: rgba(181, 200, 230, .3); --wv-pressed: #304767; --wv-total: #2e3a4e; --wv-axis: #7d8ba1;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --wv-general: #8fb2f0; --wv-section_301: #5c7fc0; --wv-section_232: #e2b261; --wv-section_122: #b9a2e6; --wv-other: #8d99ad;
    --wv-save: #6fcf97; --wv-save-ink: #a6e8c2; --wv-save-bg: #234536;
    --wv-cost: #f08a84; --wv-cost-ink: #ffc2bd; --wv-cost-bg: #4a2f33;
    --wv-badge-bg: #3a3452; --wv-badge-ink: #d8cdf3;
    --wv-card: rgba(43, 56, 77, .62); --wv-card-line: rgba(181, 200, 230, .15); --wv-panel: #263142; --wv-box: #2b374a;
    --wv-line: rgba(181, 200, 230, .18); --wv-control: rgba(181, 200, 230, .3); --wv-pressed: #304767; --wv-total: #2e3a4e; --wv-axis: #7d8ba1;
  }
}

.wv { display: flex; flex-direction: column; gap: 20px; margin: 8px 0 32px; color: var(--ink); scroll-margin-top: calc(var(--topbar-height, 76px) + 12px); }
.wv h2, .wv h3, .wv h4 { margin: 0; }
.wv-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.wv-head { flex-wrap: nowrap; }
.wv-head__words { flex: 1 1 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wv-head .wv-badge { flex: none; margin-top: 22px; }
.wv-crumb { margin: 0; font-size: 13px; color: var(--muted); }
.wv-head h2 { font-size: 28px; font-weight: 600; letter-spacing: -.01em; }
.wv-parts { margin: 0; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.wv-moves { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.wv-move { display: inline-flex; gap: 6px; align-items: baseline; min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--wv-control);
  background: var(--wv-panel); color: var(--ink); text-decoration: none; font-weight: 500; }
.wv-move { flex-wrap: wrap; }
.wv-move small { color: var(--muted); font-weight: 400; white-space: nowrap; }
.wv-move:hover, .wv-move--on { border-color: var(--accent); }
.wv-badge { font-size: 12px; font-weight: 600; letter-spacing: .03em; padding: 4px 10px; border-radius: 999px; background: var(--wv-badge-bg); color: var(--wv-badge-ink); white-space: nowrap; }
.wv-badge--saved { background: var(--wv-save-bg); color: var(--wv-save-ink); }

.wv-grid { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.wv-main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 20px; transition: opacity .2s ease; }
.wv-main--busy .wv-result { opacity: .62; }
.wv-result { display: flex; flex-direction: column; gap: 20px; transition: opacity .2s ease; }
.wv-changes { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 14px; background: var(--wv-panel); border: 1px solid var(--wv-line);
  border-radius: 18px; padding: 20px 22px; position: sticky; top: calc(var(--topbar-height, 76px) + 12px); }
.wv-changes__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.wv-changes h3, .wv-card h3 { font-size: 16px; font-weight: 600; }

.wv-card { display: flex; flex-direction: column; gap: 16px; background: var(--wv-card); border: 1px solid var(--wv-card-line); border-radius: 18px;
  padding: 20px 22px; box-shadow: 0 12px 40px rgba(31, 52, 94, .08); }
.wv-card__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.wv-muted { color: var(--muted); }
.wv-small { font-size: 12px; margin: 0; }
.wv-mono { font-family: "Geist Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.wv-empty { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--wv-total); font-size: 13px; color: var(--muted); }
.wv-alert { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--wv-cost-bg); color: var(--wv-cost-ink); font-size: 13px; }

.wv-totals { container-type: inline-size; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; align-items: center; }
.wv-total { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 14px; background: var(--wv-total); border: 1px solid var(--wv-line); min-width: 0; }
.wv-total--new { background: var(--wv-panel); border: 2px solid var(--accent); }
.wv-total__label { font-size: 13px; color: var(--muted); }
.wv-total__amount { font-size: clamp(20px, 4.4cqi, 30px); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wv-total__note { font-size: 12px; color: var(--muted); }
.wv-pill { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 999px; text-align: center; min-width: 150px;
  background: var(--surface-muted); color: var(--ink-soft); }
.wv-pill strong { font-size: 15px; }
.wv-pill span { font-size: 12px; }
.wv-pill--saves { background: var(--wv-save-bg); color: var(--wv-save-ink); }
.wv-pill--costs { background: var(--wv-cost-bg); color: var(--wv-cost-ink); }

.wv-compare { display: flex; flex-direction: column; gap: 10px; }
.wv-compare__row { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; align-items: center; font-size: 13px; }
.wv-bar { display: flex; height: 22px; border-radius: 6px; overflow: hidden; background: transparent;
  width: max(4px, calc(100% * var(--wv-v, 0) / var(--wv-max, 1))); transition: width .35s ease; }
.wv-bar--thin { height: 14px; border-radius: 4px; }
.wv-bar--mini { height: 10px; border-radius: 3px; }
.wv-seg { display: block; flex-basis: 0; min-width: 0; transition: flex-grow .35s ease; }
.wv-seg--general { background: var(--wv-general); }
.wv-seg--section_301 { background: var(--wv-section_301); }
.wv-seg--section_232 { background: var(--wv-section_232); }
.wv-seg--section_122 { background: var(--wv-section_122); }
.wv-seg--other { background: var(--wv-other); }
.wv-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.wv-compare .wv-legend { padding-left: 152px; }
.wv-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.wv-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }

.wv-effects { display: flex; flex-direction: column; gap: 8px; }
.wv-effects h4 { font-size: 14px; font-weight: 600; }
.wv-effect { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 120px; gap: 14px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--wv-line); font-size: 14px; }
.wv-diverge { display: grid; grid-template-columns: 1fr 1fr; height: 12px; align-items: center; }
.wv-diverge__save { display: flex; justify-content: flex-end; height: 12px; border-right: 2px solid var(--wv-axis); }
.wv-diverge__cost { display: flex; height: 12px; }
.wv-diverge__save > span, .wv-diverge__cost > span { display: block; height: 12px; width: max(3px, calc(100% * var(--wv-v, 0) / var(--wv-max, 1))); transition: width .35s ease; }
.wv-diverge__save > span { background: var(--wv-save); border-radius: 6px 0 0 6px; }
.wv-diverge__cost > span { background: var(--wv-cost); border-radius: 0 6px 6px 0; }
.wv-effect__amount { font-weight: 600; text-align: right; }
.wv-effect__amount--saves { color: var(--wv-save-ink); }
.wv-effect__amount--costs { color: var(--wv-cost-ink); }
.wv-effect__amount--same { color: var(--muted); }
/* What-if → Business case: one clear next step under the figures (duty_exposures/_picture_business_case). */
.wv-next { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.wv-next__form { display: contents; }
.wv-next .wv-small { flex: 1 1 220px; margin: 0; }
.wv-notes { font-size: 13px; color: var(--ink-soft); padding: 10px 14px; border-radius: 10px; background: var(--wv-total); }
.wv-notes p, .wv-notes ul { margin: 0 0 4px; }
.wv-notes ul { padding-left: 18px; }
.wv-basis { margin: 0; font-size: 12px; color: var(--muted); }

.wv-pick { cursor: pointer; min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--wv-control); background: var(--wv-panel);
  font: 500 13px var(--font-sans, Geist, system-ui, sans-serif); color: var(--ink); text-align: left; transition: background-color .2s ease, border-color .2s ease; }
.wv-pick:hover { border-color: var(--accent); }
.wv-pick[aria-pressed="true"] { border: 2px solid var(--accent); background: var(--wv-pressed); }
.wv-pick:disabled { cursor: not-allowed; opacity: .55; }
.wv-pick:focus-visible, .wv-move:focus-visible, .wv-changes input:focus-visible, .wv-changes select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wv-reset { min-height: 40px; }
.wv-country { display: grid; grid-template-columns: 140px minmax(0, 1fr) 110px; gap: 12px; align-items: center; min-height: 48px; font-size: 14px; background: var(--wv-panel); }
.wv-country__total { text-align: right; }

.wv-box { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 14px; border-radius: 12px; border: 1px solid var(--wv-line); background: var(--wv-box); min-width: 0; }
.wv-box legend, .wv-box__title { font-size: 14px; font-weight: 600; padding: 0; float: left; width: 100%; margin-bottom: 8px; }
.wv-box > legend + * { clear: both; }
.wv-origins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.wv-other { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.wv-other select { min-height: 40px; border-radius: 10px; border: 1px solid var(--wv-control); background: var(--wv-panel); color: var(--ink); padding: 0 10px; font: inherit; font-size: 13px; }
.wv-toggle { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.wv-toggle[aria-pressed="true"] { border: 1px solid var(--wv-control); background: var(--wv-panel); }
.wv-switch { flex: none; width: 40px; height: 22px; border-radius: 11px; background: #b9c3d3; display: flex; align-items: center; padding: 0 3px; box-sizing: border-box; justify-content: flex-start; transition: background-color .2s ease; }
.wv-switch > span { width: 16px; height: 16px; border-radius: 50%; background: #ffffff; }
.wv-toggle[aria-pressed="true"] .wv-switch { background: var(--accent-strong); justify-content: flex-end; }
.wv-price { margin: 0; font-size: 13px; }
.wv-price__pct { font-size: 18px; font-weight: 600; }
.wv-changes input[type=range] { width: 100%; accent-color: var(--accent-strong); height: 28px; }
.wv-dates { display: flex; flex-direction: column; gap: 6px; }
.wv-date { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.wv-date small { font-size: 12px; color: var(--muted); font-weight: 400; }

.wv-save { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wv-save__name input { min-height: 44px; min-width: 200px; }
.wv-saved { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.wv-saved__card { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 12px; border: 1px solid var(--wv-line); background: var(--wv-panel); min-width: 0; }
.wv-saved__name { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.wv-saved__card strong { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }

@media (max-width: 720px) {
  .wv-totals { grid-template-columns: minmax(0, 1fr); }
  .wv-total__amount { font-size: clamp(22px, 9cqi, 30px); }
  .wv-pill { border-radius: 14px; }
  .wv-compare__row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .wv-compare .wv-legend { padding-left: 0; }
  .wv-effect { grid-template-columns: minmax(0, 1fr) 96px; }
  .wv-effect .wv-diverge { grid-column: 1 / -1; grid-row: 2; }
  .wv-country { grid-template-columns: minmax(0, 1fr) auto; }
  .wv-country .wv-bar { grid-column: 1 / -1; grid-row: 2; }
  .wv-changes { position: static; }
  .wv-head h2 { font-size: 24px; }
  .wv-head { flex-wrap: wrap; }
  .wv-head .wv-badge { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .wv-bar, .wv-seg, .wv-diverge span, .wv-main, .wv-result { transition: none; }
}

/* zzzzzzzzzzzzzzzz_workspace_polish.css */
/* A shared readability pass for the main workspaces. Preserve their existing
   glass materials and layouts; hierarchy comes from spacing, not tiny text. */
.workspace-shell :focus-visible { outline-width: 2px; }
.workspace-shell :is(.fx-input, .ob-input):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: none;
}
.workspace-shell :is(.fx-input, .ob-input):not([aria-invalid="true"]):focus-visible { border-color: var(--control-border); }

/* Navigation and action labels remain comfortable at desktop density. */
.workspace-shell .ws-nav-link { min-height: 40px; font-size: 14px; }
.workspace-shell .ws-sidebar__organisation { font-size: 12px; }
.workspace-shell .ws-workspace { font-size: 14px; }
.workspace-shell .ws-workspace > summary { min-height: 40px; }

/* The expanded desktop sidebar keeps its daily destinations in view on laptop screens. */
@media (min-width: 901px) and (pointer: fine) {
  .workspace-shell .ws-nav-link { min-height: 36px; margin-top: 1px; margin-bottom: 1px; padding-top: 7px; padding-bottom: 7px; font-size: 13px; }
  .workspace-shell .ws-nav-group + .ws-nav-group { margin-top: 8px; }
  .workspace-shell .ws-nav-group__label { margin-top: 4px; margin-bottom: 4px; }
  .workspace-shell .ws-sidebar__footer { margin-top: 8px; padding-top: 6px; }
  .workspace-shell .ws-sidebar__organisation { margin-top: 4px; font-size: 11px; }
}

/* The product table stays a table. Only its own cells receive these sizes;
   embedded review tables keep their independent evidence/calculation layout. */
.product-workspace .product-views__item { min-height: 44px; font-size: 14px; }
.product-workspace .product-views__count { font-size: 13px; }
.product-workspace .product-view-note { font-size: 14px; }
.product-workspace .product-work-table { min-width: 960px; }
.product-workspace .product-work-table > thead > tr > th { font-size: 13px; line-height: 1.45; }
.product-workspace .product-work-table > tbody > tr[data-product-id] > td { font-size: 14px; }
.product-workspace[data-catalog-selection-active="false"] .product-work-table > thead > tr > th.product-identity { width: 27%; }
.product-workspace .product-work-table > thead > tr > th.product-identity { width: 23%; }
.product-workspace .product-work-table > thead > tr > th[data-col="code"] { width: 17%; }
.product-workspace .product-work-table .catalog-product { font-size: 14px; line-height: 1.5; }
.product-workspace .product-work-table .catalog-id { font-size: 12px; line-height: 1.5; }
.product-workspace .product-work-status .catalog-status { font-size: 14px; }
.product-workspace .product-work-table .confidence-band { font-size: 13px; }
.product-workspace .catalog-review-link { font-size: 14px; }
.product-workspace .catalog-duty-link { font-size: 14px; }
.product-workspace .catalog-table td[data-col="duty"] .catalog-unit { font-size: 12px; }
.product-workspace .catalog-duty-link .catalog-muted { font-size: 14px; }

/* Focus: make the assumptions behind the headline as readable as the action. */
.focus-card-heading h2 { font-size: 16px; }
.focus-page :is(.focus-chart-link, .focus-origin-chart__label, .focus-clear p, .focus-clear > .fx-link) { font-size: 14px; line-height: 1.55; }
.focus-page :is(.focus-kicker, .focus-origin-chart__label small, .focus-opportunity small, .focus-section-heading > span) { font-size: 13px; }
.focus-page .focus-opportunity strong { font-size: 16px; }
.focus-page .focus-origin-chart__row { min-height: 44px; align-content: center; }
.focus-page .focus-origin-chart__label { flex-wrap: wrap; gap: 5px 12px; }
.focus-page .focus-chart-empty p { font-size: 14px; }
.focus-page .today-briefing > summary { font-size: 14px; }
.focus-page .today-briefing :is(p, li) { font-size: 14px; line-height: 1.6; }

/* What-if: readable starting points and calculation context without more UI. */
#what-if :is(.fx-lede, .planning-recommendations__head p:not(.planning-eyebrow),
  .money-section-heading p, .what-if-example p) { font-size: 14px; line-height: 1.6; }
#what-if :is(.what-if-shortcuts a, .planning-option__action, .planning-option__scope,
  .planning-option__percent, .planning-recommendations__basis, .what-if-examples__note,
  .what-if-examples__heading p, .what-if-example > a, .what-if-example__access,
  .money-create .planning-field-label, .money-create .xp-plan__head p,
  .money-options > summary, .money-supporting > summary) { font-size: 14px; line-height: 1.55; }
#what-if .what-if-example h3 { font-size: 16px; }
#what-if .what-if-example > a { display: inline-flex; align-items: center; min-height: 40px; }
#what-if .money-contextline, #what-if .planning-recommendations__head .planning-recommendations__label { font-size: 13px; }
#what-if .money-section-heading { flex-wrap: wrap; }
#what-if :is(.money-section-heading > .fx-link, .what-if-shortcuts a) { display: inline-flex; align-items: center; min-height: 40px; }

/* Documents and the tool directory are short reading surfaces, not dense data. */
.rd-documents .im-lede { font-size: 14px; line-height: 1.6; }
.rd-documents :is(.prep-document > p, .prep-files .ob-recent__desc),
.tools-item__hint { font-size: 14px; line-height: 1.55; }
.tools-item__title { font-size: 16px; font-weight: 600; line-height: 1.4; }
.rd-documents :is(.prep-document > .fx-btn, .prep-document-form > summary,
  .doc-choices, .prep-document-form .fx-hint, .doc-form .fx-label,
  .prep-files .ob-recent__meta, .rd-footnote) { font-size: 14px; line-height: 1.6; }
.rd-documents .prep-eyebrow, .tools-item__notice { font-size: 13px; }
.rd-documents .prep-document-form .doc-choices label { min-height: 40px; }
.rd-documents .doc-scope-choice { min-width: 0; }
.rd-documents .doc-scope-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 12px; margin-top: 10px; }
.rd-documents .doc-scope-fields[hidden] { display: none; }
.rd-documents .doc-scope-fields label { display: grid; gap: 6px; align-content: start; min-width: 0; }
.rd-documents .doc-scope-fields .fx-input { width: 100%; min-width: 0; min-height: 44px; }
.rd-documents .prep-document-form input[type="file"] { width: 100%; min-width: 0; font-size: 14px; }
.rd-documents .doc-row > div { flex: 1 1 300px; min-width: 0; }
.rd-documents .doc-row .ob-recent__desc { white-space: normal; overflow-wrap: anywhere; }
.rd-documents .doc-row > form { flex: none; }
.rd-documents :is(#audit-packs, #section-232, #prepared-files) { scroll-margin-top: calc(var(--topbar-height) + 20px); }
.rd-documents .doc-files-empty { margin: 0; max-width: 68ch; color: var(--muted); font-size: 14px; line-height: 1.6; }

@media (pointer: coarse), (max-width: 760px) {
  .workspace-shell .ws-nav-link { min-height: 44px; }
  .workspace-shell :is(.ws-nav-toggle, .ws-topbar .fx-search-trigger, .ws-topbar .fx-account__button) { min-width: 44px; min-height: 44px; }
  .workspace-shell .ws-workspace > summary { min-height: 44px; }
  .product-workspace .catalog-review-link,
  .rd-documents .prep-document-form .doc-choices label,
  #what-if :is(.what-if-example > a, .what-if-shortcuts a) { min-height: 44px; }
  .rd-documents :is(input, select, textarea), .product-workspace .pl__input,
  #what-if :is(.ob-input, .fx-input) { font-size: 16px; }
}

@media (max-width: 600px) {
  .rd-documents .prep-document > :is(.prep-document-form, .fx-btn) { max-width: 100%; }
  .rd-documents .prep-document-form > summary { max-width: 100%; }
}

/* One scale for working pages. Chat keeps its reading scale, while print
   layouts retain their own document typography. Large figures are reserved
   for headline metrics; descriptions and empty states use the same hierarchy. */
@media screen {
  .workspace-shell:not(.ask-page) {
    --workspace-title: 28px;
    --workspace-section: 20px;
    --workspace-card: 16px;
    --workspace-body: 14px;
    --workspace-helper: 13px;
    --workspace-headline: clamp(32px, 3.1vw, 40px);
    --workspace-value: 28px;
    --workspace-heading-weight: 600;
    font-size: var(--workspace-body);
  }

  .workspace-shell:not(.ask-page) .change-heading :is(.fx-title, .ob-title),
  .workspace-shell:not(.ask-page) .pl__identity .pl__title {
    font-size: var(--workspace-title); font-weight: 600;
    line-height: 1.2; letter-spacing: -.035em;
  }
  .workspace-shell:not(.ask-page) :is(.fx-h2, .xp-h2, .focus-section-heading h2,
    .tools-group > h2, .money-section-heading h2, .im-page .im-recent h2,
    .op-section > h2, .rd-settings .set-ai > h2, .im-completion__heading h2,
    .rd-documents .prep-files > h2, .focus-page .today-first-steps > h2) {
    font-size: var(--workspace-section); font-weight: 600;
    line-height: 1.3; letter-spacing: -.025em;
  }
  .workspace-shell:not(.ask-page) .im-home .im-recent h2 {
    font-size: 15px; line-height: 1.2; letter-spacing: -.02em;
  }
  .workspace-shell:not(.ask-page) #what-if :is(.planning-recommendations__head h2,
    .what-if-examples__heading h2, .money-section-heading h2, .money-create .xp-plan__head h2) {
    font-size: var(--workspace-section); font-weight: 600; line-height: 1.3;
  }
  .workspace-shell:not(.ask-page) :is(.focus-card-heading h2, .focus-chart-empty h3,
    .focus-page .today-item h3, .rd-documents .prep-document > h2,
    .rd-entries .rd-step-head h2, .rd-settings .rd-ai-status h2,
    .changes-page .change-card h3, .changes-page .change-empty h3) {
    font-size: var(--workspace-card); font-weight: 600; line-height: 1.4;
  }
  .workspace-shell:not(.ask-page) #what-if :is(.planning-option h3, .what-if-example h3,
    .scenario-editor__empty p) {
    font-size: var(--workspace-card); font-weight: 600; line-height: 1.4;
  }

  .workspace-shell:not(.ask-page) :is(.fx-lede, .im-lede, .xp-lede,
    .focus-chart-empty p, .focus-clear p, .duty-empty__intro .xp-muted) {
    font-size: var(--workspace-body); line-height: 1.6;
  }
  .workspace-shell:not(.ask-page) :is(.fx-btn, .pl__new) {
    font-size: var(--workspace-body); font-weight: 600;
  }
  .workspace-shell:not(.ask-page) :is(.focus-card-heading p, .focus-exposure__basis,
    .rd-documents .prep-files .ob-recent__meta, .rd-documents .rd-footnote,
    .rd-documents .prep-document-form .fx-hint, .duty-empty__path p) {
    font-size: var(--workspace-helper); line-height: 1.55;
  }
  .workspace-shell:not(.ask-page) #what-if :is(.planning-recommendations__basis,
    .what-if-examples__note, .what-if-examples__heading p) {
    font-size: var(--workspace-helper); line-height: 1.55;
  }

  .workspace-shell:not(.ask-page) .focus-exposure__unavailable {
    font-size: var(--workspace-section); font-weight: 600; line-height: 1.3;
  }
  .workspace-shell:not(.ask-page) .focus-money strong,
  .workspace-shell:not(.ask-page) #exposure .xp-key__amount {
    font-size: var(--workspace-headline); font-weight: 600;
    line-height: 1.15; letter-spacing: -.045em;
  }
  .workspace-shell:not(.ask-page) #exposure .planning-hero .planning-coverage-value,
  .workspace-shell:not(.ask-page) #what-if .planning-option__saving strong {
    font-size: var(--workspace-value); font-weight: 600;
    line-height: 1.2; letter-spacing: -.035em;
  }
  .workspace-shell:not(.ask-page) #what-if .scenario-editor .planning-scenario-totals strong {
    font-weight: 600;
  }
  .workspace-shell:not(.ask-page) #what-if .scenario-editor .planning-scenario-totals__delta strong {
    font-size: var(--workspace-headline);
  }
}

@media screen and (max-width: 760px) {
  .workspace-shell:not(.ask-page) { --workspace-title: 24px; --workspace-headline: 34px; }
}

/* Settings' demo check (settings/_demo_check): the run form, then one row per check with its result. */
.set-demo-check__form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 12px 0; }
.set-demo-check__classify { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); }
.set-demo-check__summary { margin: 8px 0 12px; }
.set-demo-check__area { display: block; font-size: 12px; color: var(--muted); }
.set-demo-check__time { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.set-demo-check__mark { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap;
  background: var(--glass-surface, transparent); color: var(--muted); }
.set-demo-check__mark[data-status="pass"] { background: var(--good-bg); color: var(--good); }
.set-demo-check__mark[data-status="warn"] { background: var(--warn-bg); color: var(--warn); }
.set-demo-check__mark[data-status="fail"] { background: var(--bad-bg, #fdecea); color: var(--bad); }

/* zzzzzzzzzzzzzzzzz_cost_dashboard.css */
/* The landing page shows one real sourcing decision, without adding overlapping savings. */
.ca-dashboard { gap: 20px; }
.cad-context { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.cad-context > div { min-width: 0; }
.cad-context h2 { font-size: 20px; font-weight: 600; letter-spacing: -.035em; margin: 7px 0; overflow-wrap: anywhere; }
.cad-context p { color: var(--muted); font-size: 12px; margin: 0; line-height: 1.5; }
.cad-context > .fx-link { font-size: 12px; flex-shrink: 0; }
.cad-switch { flex: 0 1 330px; min-width: 220px; }
.cad-switch > label { font-size: 11px; color: var(--muted); display: block; margin-bottom: 6px; }
.cad-switch > div { display: flex; gap: 7px; }
.cad-switch .ob-input { width: 100%; min-width: 0; font-size: 12px; min-height: 37px; padding: 8px 28px 8px 10px; }
.cad-switch .fx-btn { padding: 8px 12px; }
.cad-hero { border-radius: 17px; padding: 23px 27px; gap: 22px; background: linear-gradient(110deg,color-mix(in srgb,var(--accent) 11%,var(--surface)),color-mix(in srgb,var(--good) 5%,var(--surface)) 100%); }
.cad-hero .ca-hero__amount { font-size: clamp(29px,3.2vw,40px); }
.cad-hero .ca-hero__main p { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.cad-chart-grid { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.2fr); gap: 20px; align-items: stretch; }
.cad-chart-grid > * { min-width: 0; }
.cad-costs { padding: 23px 24px 17px; border-radius: 16px; }
.cad-cost-row { margin-top: 19px; }
.cad-cost-row + .cad-cost-row { padding-top: 16px; border-top: 1px solid var(--line); }
.cad-cost-row__label { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 12px; }
.cad-cost-row__label > a { color: var(--ink); text-decoration: none; text-underline-offset: 4px; }
.cad-cost-row__label > a:hover { color: var(--accent); text-decoration: underline; }
.cad-cost-row.is-selected .cad-cost-row__label > a { color: var(--accent); font-weight: 600; }
.cad-cost-row__label > strong { font-size: 19px; font-weight: 550; font-variant-numeric: tabular-nums; letter-spacing: -.035em; }
.cad-cost-row--current .cad-cost-row__label { color: var(--muted); }
.cad-cost-row--current .cad-cost-row__label > strong { color: var(--ink); }
.cad-cost-track { height: 9px; background: var(--surface-muted); border-radius: 9px; margin: 10px 0 8px; overflow: hidden; }
.cad-cost-track > span { height: 100%; display: block; border-radius: inherit; background: color-mix(in srgb,var(--muted) 50%,var(--surface)); transform-origin: left; max-width: 100%; }
.cad-cost-track > .cad-cost-track--alternative { background: linear-gradient(90deg,var(--accent),color-mix(in srgb,var(--good) 65%,var(--accent))); }
.cad-cost-row small { font-size: 10px; color: var(--muted); line-height: 1.65; }
.cad-cost-row__note { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 5px; }
.cad-cost-row__note .fx-link { font-size: 10px; white-space: nowrap; }
.cad-chart-hint { color: var(--muted); font-size: 10px; line-height: 1.5; margin: 20px 0 0; }
.cad-notice { font-size: 11px; line-height: 1.6; color: var(--ink-soft); background: color-mix(in srgb,var(--warn) 7%,var(--surface)); border-left: 2px solid var(--warn); padding: 8px 10px; margin: 13px 0 0; border-radius: 3px; }
.cad-chart-grid .ca-chart-card { display: flex; flex-direction: column; border-radius: 16px; }
.cad-chart-grid .ca-chart { margin: auto 0 0; padding-top: 18px; }
.cad-chart-grid .ca-chart-legend { display: none; }
.cad-chart-grid .ca-chart-milestones { margin-top: 14px; }
.cad-plan-caption { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: -7px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.cad-plan-caption .fx-link { font-size: 11px; text-align: right; }
.cad-next { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.cad-next__item { display: flex; align-items: center; gap: 13px; padding: 17px 20px; border: 1px solid var(--line); border-radius: 13px; background: var(--glass-raised,var(--surface)); color: var(--ink); text-decoration: none; transition: border-color .15s,background .15s; }
.cad-next__item:hover { border-color: color-mix(in srgb,var(--accent) 35%,var(--line)); background: var(--accent-soft); }
.cad-next__item > span:nth-child(2) { display: grid; gap: 5px; flex: 1; min-width: 0; }
.cad-next__item strong { font-size: 12px; font-weight: 600; }
.cad-next__item small { color: var(--muted); font-size: 10px; line-height: 1.6; }
.cad-next__item > span:last-child { color: var(--accent); }
.cad-next__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 21px; flex-shrink: 0; }
.cad-next__icon--evidence { background: color-mix(in srgb,var(--good) 9%,var(--surface)); color: var(--good); font-size: 16px; }
.cad-sample-note { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 17px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-muted); }
.cad-sample-label { color: var(--accent); font-size: 10px; font-weight: 600; white-space: nowrap; }
.cad-sample-note p { font-size: 11px; color: var(--muted); margin: 0; flex: 1; line-height: 1.6; }
.cad-sample-note .fx-link { font-size: 11px; }
.cad-demo-preparation form { margin: 0; }
.cad-demo-preparation .fx-btn { white-space: normal; }
.cad-demo-preparation [role="status"] { display: flex; align-items: center; gap: 9px; }
.cad-demo-preparation .xp-spinner { flex-shrink: 0; }
.cad-recent { display: grid; gap: 13px; margin-top: 5px; }
.cad-recent .ca-section-heading > .fx-link { font-size: 11px; }
.cad-scenario-list { border: 1px solid var(--line); border-radius: 13px; background: var(--glass-raised,var(--surface)); overflow: hidden; }
.cad-scenario-row { display: flex; align-items: center; gap: 20px; padding: 15px 19px; text-decoration: none; color: var(--ink); }
.cad-scenario-row + .cad-scenario-row { border-top: 1px solid var(--line); }
.cad-scenario-row:hover { background: var(--accent-soft); }
.cad-scenario-row > span:first-child { display: grid; gap: 5px; min-width: 0; flex: 1; }
.cad-scenario-row strong { font-size: 12px; font-weight: 550; overflow-wrap: anywhere; }
.cad-scenario-row small { color: var(--muted); font-size: 10px; }
.cad-scenario-origins { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; max-width: 40%; font-size: 10px; color: var(--muted); }
.cad-scenario-row > span:last-child { color: var(--accent); }
.cad-footnote { color: var(--muted); font-size: 10px; line-height: 1.7; margin: -3px 0 0; }
.cad-pending { display: flex; align-items: flex-start; gap: 23px; padding: 28px; border: 1px solid color-mix(in srgb,var(--accent) 20%,var(--line)); border-radius: 17px; background: linear-gradient(120deg,var(--accent-soft),var(--surface)); }
.cad-pending__mark { width: 55px; height: 55px; display: grid; place-items: center; color: var(--accent); background: var(--glass-raised,var(--surface)); border-radius: 17px; flex-shrink: 0; }
.cad-pending__mark svg { width: 35px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.cad-pending h2 { font-size: 22px; font-weight: 550; letter-spacing: -.03em; margin: 10px 0; }
.cad-pending p { color: var(--muted); font-size: 13px; line-height: 1.7; max-width: 80ch; margin: 0 0 19px; }
.cad-start { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 40px; padding: 38px; border: 1px solid color-mix(in srgb,var(--accent) 20%,var(--line)); border-radius: 21px; background: radial-gradient(ellipse at 0 0,color-mix(in srgb,var(--accent) 12%,transparent),transparent 80%),var(--glass-raised,var(--surface)); }
.cad-start h2 { font-size: clamp(25px,3vw,35px); line-height: 1.15; letter-spacing: -.045em; font-weight: 550; margin: 14px 0; max-width: 16ch; }
.cad-start p { color: var(--muted); font-size: 13px; line-height: 1.75; margin: 0; }
.cad-start__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin: 23px 0; }
.cad-start__actions .fx-link { font-size: 12px; }
.cad-start p.cad-start__status { font-size: 11px; }
.cad-start__status > strong { color: var(--ink); font-weight: 600; }
.cad-start__flow { display: grid; gap: 28px; padding-left: 28px; border-left: 1px solid var(--line); }
.cad-start__flow > div { display: flex; align-items: flex-start; gap: 13px; }
.cad-start__flow > div > span { display: grid; place-items: center; width: 32px; height: 32px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 600; border-radius: 11px; flex-shrink: 0; }
.cad-start__flow h3 { font-size: 13px; margin: 1px 0 7px; font-weight: 600; }
.cad-start__flow p { font-size: 11px; }
@media(prefers-reduced-motion:no-preference) { .cad-cost-track > span { animation: cad-grow .55s ease-out both; } @keyframes cad-grow { from { transform: scaleX(0); } to { transform: none; } } }
@media(prefers-reduced-motion:reduce) { .cad-next__item { transition: none; } }
@media(max-width:1000px) { .cad-chart-grid { gap: 15px; }.cad-costs { padding: 20px 17px; }.cad-cost-row__label > strong { font-size: 17px; }.cad-context h2 { font-size: 18px; }.cad-start { gap: 27px; padding: 28px; } }
@media(max-width:800px) { .cad-chart-grid { grid-template-columns: 1fr; }.cad-context { align-items: flex-start; }.cad-switch { flex-basis: 240px; min-width: 170px; }.cad-chart-grid .ca-chart { padding-top: 0; margin-top: 20px; }.cad-start { grid-template-columns: 1fr; gap: 30px; }.cad-start h2 { max-width: none; }.cad-start__flow { border-left: 0; border-top: 1px solid var(--line); padding: 25px 0 0; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 19px; }.cad-start__flow > div { flex-direction: column; }.cad-next__item { padding: 15px; gap: 10px; } }
@media(max-width:550px) { .cad-context { flex-direction: column; gap: 18px; }.cad-switch { flex-basis: auto; width: 100%; }.cad-hero { padding: 20px; gap: 20px; }.cad-next { grid-template-columns: 1fr; gap: 10px; }.cad-plan-caption { align-items: flex-start; flex-direction: column; gap: 7px; }.cad-plan-caption .fx-link { text-align: left; }.cad-sample-note { align-items: flex-start; flex-direction: column; gap: 6px; }.cad-scenario-row { gap: 12px; padding: 15px; }.cad-scenario-origins { display: none; }.cad-start { padding: 24px; }.cad-start__flow { grid-template-columns: 1fr; }.cad-start__flow > div { flex-direction: row; }.cad-pending { padding: 23px; gap: 15px; }.cad-pending__mark { display: none; }.cad-pending h2 { font-size: 20px; } }

/* zzzzzzzzzzzzzzzzz_duty_ranked_bars.css */
.xp-bars__heading h2 { margin: 0; }
.xp-bars__heading p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }

/* zzzzzzzzzzzzzzzzz_glass_polish.css */
/* The same palette, with clearer depth between the canvas, working surfaces and
   raised controls. Keep opaque fallbacks and accessibility preferences intact. */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  @media screen and (prefers-reduced-transparency: no-preference) {
    :root {
      --glass-surface: rgba(255, 255, 255, .34);
      --glass-raised: rgba(255, 255, 255, .72);
      --glass-inset: rgba(220, 233, 253, .30);
      --glass-nav: rgba(243, 248, 255, .44);
      --glass-border: rgba(255, 255, 255, .88);
      --glass-sheen: linear-gradient(135deg, rgba(255, 255, 255, .48), rgba(255, 255, 255, .14) 34%, rgba(255, 255, 255, .025) 64%, rgba(194, 212, 250, .12));
      --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, .96), inset 1px 0 0 rgba(255, 255, 255, .48), inset 0 -1px 0 rgba(255, 255, 255, .18);
      --glass-shadow: 0 18px 38px -26px rgba(38, 63, 103, .36), 0 4px 12px -8px rgba(36, 57, 90, .22);
      --glass-blur: 28px;
    }

    :root[data-theme="dark"] {
      --glass-surface: rgba(43, 56, 77, .38);
      --glass-raised: rgba(45, 59, 80, .82);
      --glass-inset: rgba(22, 34, 53, .30);
      --glass-nav: rgba(27, 39, 58, .62);
      --glass-border: rgba(208, 224, 252, .22);
      --glass-sheen: linear-gradient(135deg, rgba(190, 221, 255, .13), rgba(190, 221, 255, .02) 44%, rgba(151, 181, 247, .055));
      --glass-highlight: inset 0 1px 0 rgba(218, 232, 255, .26), inset 1px 0 0 rgba(218, 232, 255, .09), inset 0 -1px 0 rgba(218, 232, 255, .05);
      --glass-shadow: 0 18px 38px -24px rgba(0, 0, 0, .46), 0 4px 12px -8px rgba(0, 0, 0, .26);
    }
  }
}

@media screen {
  /* Broad reading surfaces stay quiet. Smaller cards share their edge treatment
     without adding new wrappers, padding or another layer around the contents. */
  .workspace-shell :where(.focus-glass, .prep-document, .readiness-overview,
    .evidence-supplier, .tools-item, .what-if-example) {
    border-color: var(--glass-border);
    box-shadow: var(--glass-highlight), var(--glass-shadow);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  }

  .workspace-shell .ws-sidebar {
    box-shadow: inset -1px 0 0 var(--glass-outline), 6px 0 24px -20px var(--glass-outline);
  }
  .workspace-shell .ws-nav-link.is-current {
    box-shadow: var(--glass-highlight), 0 2px 8px -5px var(--glass-outline);
  }
  .workspace-shell .product-review-dialog {
    border-color: var(--glass-border);
  }

  /* Comfortable labels and predictable targets. Icon controls, answer choices
     and catalogue toolbar geometry retain their specialised rules. */
  .workspace-shell .fx-btn {
    min-height: 44px;
    padding: 10px 16px;
    gap: 8px;
    font-size: 14px;
    line-height: 1.35;
    border-radius: 12px;
  }
  .workspace-shell .fx-btn--small {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 14px;
  }
  .workspace-shell :is(.fx-dialog__actions, .money-related-actions,
    .evidence-supplier__actions) {
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
  }
  .workspace-shell :is(.fx-dialog__actions, .money-related-actions,
    .evidence-supplier__actions) > form {
    max-width: 100%;
  }
}

@media screen and (pointer: coarse), screen and (max-width: 760px) {
  .workspace-shell .fx-btn--small { min-height: 44px; }
}

/* zzzzzzzzzzzzzzzzz_scenario_editor.css */
/* What-if: one visible form, one result, one optional explanation. */
#what-if #scenario { scroll-margin-top: calc(var(--topbar-height) + 20px); }
#what-if .scenario-editor { gap: 22px; padding: 24px; }
.scenario-editor__workspace { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .85fr); gap: 28px; align-items: start; min-width: 0; }
#what-if .scenario-editor__form { display: grid; min-width: 0; gap: 22px; padding: 0; border: 0; background: none; }
.scenario-editor__step { margin: 0; padding: 0; border: 0; min-width: 0; }
.scenario-editor__step > legend { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 18px; color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.45; }
.scenario-editor__number { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border: 1px solid var(--glass-border); border-radius: 9px; background: var(--glass-inset); color: var(--accent-strong); font-size: 14px; font-weight: 600; }
.scenario-editor__optional { color: var(--muted); font-size: 14px; font-weight: 400; }
.scenario-editor__countries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
#what-if .scenario-editor .planning-scenario-field { gap: 0; }
#what-if .scenario-editor .planning-field-label { margin: 0 0 7px; color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.45; }
#what-if .scenario-editor :is(.ob-input, .fx-input) { min-height: 46px; width: 100%; border-color: var(--control-border); background: var(--glass-sheen), var(--glass-raised); font-size: 16px; line-height: 1.4; padding: 10px 12px; }
#what-if .scenario-editor :is(.ob-input, .fx-input):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; box-shadow: none; }
#what-if .scenario-editor__hint { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.scenario-editor__share { margin-top: 18px; }
.scenario-editor__share-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
#what-if .scenario-editor .xp-plan__pct { width: 112px; flex: none; }
#what-if .scenario-editor .xp-plan__pct > .ob-input { padding-right: 36px; }
#what-if .scenario-editor .xp-plan__pct > span { right: 14px; font-size: 14px; }
#what-if .scenario-editor .planning-share-presets { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
#what-if .scenario-editor .planning-share-preset { min-width: 52px; min-height: 42px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 10px; font-size: 14px; background: var(--glass-surface); color: var(--ink-soft); }
#what-if .scenario-editor .planning-share-preset[aria-pressed="true"] { border-color: var(--accent); background: var(--glass-selected); color: var(--accent-strong); }
.scenario-editor__step--optional { padding-top: 22px; border-top: 1px solid var(--line); }
.scenario-editor__step--optional > legend { float: left; width: 100%; }
.scenario-editor__step--optional > legend + * { clear: both; }
.scenario-editor__volume { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 14px; }
#what-if .scenario-editor__volume .planning-field-label { margin: 0; }
.scenario-editor__volume-input { display: flex; align-items: center; gap: 10px; }
.scenario-editor__suffix { color: var(--muted); font-size: 13px; white-space: nowrap; }
#what-if .scenario-editor .planning-eligibility { margin: 18px 0 0; padding: 0; }
#what-if .scenario-editor .planning-control-label { margin: 0 0 10px; padding: 0; font-size: 14px; font-weight: 500; line-height: 1.5; }
#what-if .scenario-editor .xp-plan__toggle { align-items: start; min-height: 44px; margin: 0; padding: 8px 0; border: 0; border-radius: 0; background: none; font-size: 14px; }
#what-if .scenario-editor .xp-plan__toggle input { width: 20px; height: 20px; margin-top: 1px; }
.scenario-editor .xp-plan__toggle small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.5; }
#what-if .scenario-editor .xp-plan__actions { gap: 12px 16px; padding: 0; }
.scenario-editor .xp-plan__actions [data-scenario-target="status"] { flex-basis: 100%; font-size: 14px; line-height: 1.5; }
.scenario-editor .xp-plan__actions [data-scenario-target="status"]:empty { display: none; }

.scenario-editor__result { min-width: 0; padding: 22px; border: 1px solid var(--glass-border); border-radius: 16px; background: var(--glass-sheen), var(--glass-inset); box-shadow: var(--glass-highlight); }
.scenario-editor__result-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 20px; }
.scenario-editor__result-heading h3 { margin: 0; color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.45; }
.scenario-editor__result-heading .xp-summary__sample { margin: 0; font-size: 13px; }
#what-if .scenario-editor .planning-scenario-totals { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 0; overflow: visible; border: 0; border-radius: 0; background: none; }
#what-if .scenario-editor .planning-scenario-totals > div { display: flex; flex-direction: row; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
#what-if .scenario-editor .planning-scenario-totals span { font-size: 14px; line-height: 1.5; }
#what-if .scenario-editor .planning-scenario-totals strong { font-size: 22px; font-weight: 550; line-height: 1.3; text-align: right; }
#what-if .scenario-editor .planning-scenario-totals .planning-scenario-totals__delta { flex-direction: column; align-items: start; gap: 5px; margin-top: 4px; padding-top: 18px; border-top: 1px solid var(--line-strong); }
#what-if .scenario-editor .planning-scenario-totals__delta strong { font-size: clamp(30px, 3vw, 40px); line-height: 1.2; text-align: left; }
#what-if .scenario-editor .planning-scenario-scope { display: block; padding: 0; margin: 14px 0 0; font-size: 13px; line-height: 1.55; }
/* the change in three parts that add up to it: the move, eligibility (a condition), the volume */
.scenario-editor__effects { display: grid; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; color: var(--ink-soft); font-size: 13px; line-height: 1.55; }
.scenario-editor__effects strong { color: var(--ink); font-weight: 600; }
.scenario-editor__claim { color: var(--muted); }
#what-if .scenario-editor .scenario-editor__result .planning-caution { margin: 12px 0 0; }
#what-if .scenario-editor .money-basis { margin: 18px 0 0; padding: 0; border: 0; font-size: 14px; line-height: 1.6; }
.scenario-editor__empty { padding: 8px 0 14px; }
.scenario-editor__empty p { margin: 0 0 8px; color: var(--ink); font-size: 22px; font-weight: 500; line-height: 1.35; letter-spacing: -.025em; }
.scenario-editor__empty > span { display: block; color: var(--muted); font-size: 14px; line-height: 1.6; }
#what-if .scenario-editor .planning-save-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 22px; padding: 20px 0 0; border: 0; border-top: 1px solid var(--line-strong); border-radius: 0; background: none; }
#what-if .scenario-editor .planning-save-form > div { min-width: 0; }
#what-if .scenario-editor .planning-save-form label { display: block; margin-bottom: 7px; color: var(--ink); font-size: 14px; font-weight: 500; }
#what-if .scenario-editor .planning-save-form > input[type="submit"] { width: fit-content; max-width: 100%; }
#what-if .scenario-editor .planning-save-form > p { margin: 0; font-size: 13px; line-height: 1.55; }

#what-if .scenario-editor__details { margin: 0; padding: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
#what-if .scenario-editor__details > summary { min-height: 44px; padding: 18px 0 0; color: var(--ink-soft); font-size: 14px; font-weight: 500; line-height: 1.6; }
.scenario-editor__details > summary > span { margin-left: 8px; color: var(--muted); font-size: 13px; font-weight: 400; }
.scenario-editor__details-body { display: grid; gap: 22px; padding-top: 20px; }
.scenario-editor__details-body > section { min-width: 0; }
.scenario-editor__details-body h3 { margin: 0 0 12px; font-size: 16px; font-weight: 600; }
#what-if .scenario-editor .planning-scenario-assumptions { margin: 0; padding: 0; border: 0; background: none; font-size: 14px; line-height: 1.65; }
.scenario-editor__all-products { margin-top: 12px; }
.scenario-editor__all-products > summary { min-height: 40px; display: flex; align-items: center; color: var(--accent); font-size: 14px; cursor: pointer; }
#what-if .scenario-editor .xp-plan__results { margin: 0; gap: 0; }
#what-if .scenario-editor .xp-plan__result { padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 14px; line-height: 1.6; }
#what-if .scenario-editor .xp-plan__result:first-child { padding-top: 0; }
#what-if .scenario-editor .xp-plan__result:last-child { padding-bottom: 0; border-bottom: 0; }

@media (max-width: 1150px) {
  .scenario-editor__workspace { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  #what-if .scenario-editor .planning-scenario-totals { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  #what-if .scenario-editor .planning-scenario-totals > div { flex-direction: column; align-items: start; gap: 6px; }
  #what-if .scenario-editor .planning-scenario-totals .planning-scenario-totals__delta { margin: 0; padding: 0 0 0 18px; border-top: 0; border-left: 1px solid var(--line-strong); }
}
@media (max-width: 600px) {
  #what-if .scenario-editor { padding: 18px; }
  .scenario-editor__countries { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .scenario-editor__volume { grid-template-columns: minmax(0, 1fr); }
  .scenario-editor__result { padding: 18px; }
  #what-if .scenario-editor .planning-scenario-totals { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  #what-if .scenario-editor .planning-scenario-totals > div { flex-direction: row; align-items: baseline; }
  #what-if .scenario-editor .planning-scenario-totals .planning-scenario-totals__delta { flex-direction: column; margin-top: 4px; padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--line-strong); }
  .scenario-editor__details > summary > span { display: block; margin-left: 0; }
}
@media (pointer: coarse), (max-width: 760px) {
  #what-if .scenario-editor .planning-share-preset { min-height: 44px; }
}

/* zzzzzzzzzzzzzzzzzz_duty_empty_flow.css */
/* Honest empty state: a visual route from a product to an annual duty picture. */
.money-workspace .duty-empty {
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center; gap: clamp(24px, 4vw, 56px); min-height: 326px;
  padding: clamp(26px, 4vw, 46px) !important; overflow: hidden;
  background: radial-gradient(circle at 86% 14%, color-mix(in srgb, var(--good) 17%, transparent), transparent 34%),
              radial-gradient(circle at 56% 90%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 42%),
              var(--glass-sheen), var(--glass-surface);
}
.duty-empty__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; position: relative; z-index: 1; text-align: left; }
.duty-empty__intro > * { margin: 0; }
.duty-empty__eyebrow { color: var(--accent-strong); font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.duty-empty__intro .xp-h2 { max-width: 16ch; font-size: clamp(25px, 3vw, 37px); line-height: 1.13; letter-spacing: -.045em; }
.duty-empty__intro .xp-muted { max-width: 43ch; color: var(--ink-soft); font-size: 13px; line-height: 1.6; }
.duty-empty__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 7px; }
.duty-empty__sample { font-size: 12px; }
.duty-empty__path { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; align-items: center; min-width: 0; margin: 0; padding: 0; list-style: none; position: relative; }
.duty-empty__path::before { content: ""; position: absolute; top: 28%; left: 12%; right: 12%; height: 2px; background: linear-gradient(90deg, var(--accent), var(--good)); opacity: .5; }
.duty-empty__path li { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; min-height: 176px; padding: 16px 13px; position: relative; border: 1px solid var(--glass-outline); border-radius: 18px; background: var(--glass-sheen), var(--glass-raised); box-shadow: var(--shadow-card); }
.duty-empty__path li:nth-child(2) { transform: translateY(16px); }
.duty-empty__path li:nth-child(3) { transform: translateY(32px); }
.duty-empty__path li:last-child { border-color: color-mix(in srgb, var(--good) 40%, var(--glass-outline)); }
.duty-empty__icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 5px; border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--glass-outline)); border-radius: 15px; background: color-mix(in srgb, var(--accent) 12%, var(--glass-inset)); color: var(--accent-strong); }
.duty-empty__path li:nth-child(2) .duty-empty__icon { color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--glass-inset)); }
.duty-empty__path li:nth-child(3) .duty-empty__icon { color: var(--good); border-color: color-mix(in srgb, var(--good) 33%, var(--glass-outline)); background: color-mix(in srgb, var(--good) 11%, var(--glass-inset)); }
.duty-empty__icon svg { width: 29px; height: 29px; }
.duty-empty__step { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.duty-empty__path strong { color: var(--ink); font-size: 14px; font-weight: 650; }
.duty-empty__path p { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.4; }
@media (max-width: 1000px) {
  .money-workspace .duty-empty { grid-template-columns: 1fr; gap: 24px; }
  .duty-empty__intro .xp-h2 { max-width: 24ch; }
  .duty-empty__path { width: min(100%, 680px); }
}
@media (max-width: 620px) {
  .money-workspace .duty-empty { padding: 24px !important; }
  .duty-empty__path { grid-template-columns: 1fr; gap: 8px; }
  .duty-empty__path::before { top: 12%; bottom: 12%; left: 31px; right: auto; width: 2px; height: auto; background: linear-gradient(var(--accent), var(--good)); }
  .duty-empty__path li { display: grid; grid-template-columns: 46px 1fr; grid-template-rows: auto auto auto; column-gap: 12px; min-height: 0; padding: 11px 13px; }
  .duty-empty__path li:nth-child(2), .duty-empty__path li:nth-child(3) { transform: none; }
  .duty-empty__icon { grid-row: 1 / 4; margin: 0; }
  .duty-empty__path li > :not(.duty-empty__icon) { grid-column: 2; }
  .duty-empty__intro .xp-h2 { font-size: 28px; }
}
@media print { .money-workspace .duty-empty { background: var(--surface); } .duty-empty__path li { box-shadow: none; } }

/* zzzzzzzzzzzzzzzzzz_duty_hero_visual.css */
/* The main branch's compact coverage card, with the precise value split kept visible. */
#exposure .planning-hero .xp-key__side { justify-content: center; gap: 7px; background: radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 72%), var(--glass-inset); }
#exposure .planning-hero .planning-coverage-value { font-size: clamp(32px, 3.7vw, 44px); font-weight: 700; }
#exposure .planning-hero .planning-coverage { margin: 5px 0 7px; height: 8px; }
#exposure .planning-hero .planning-coverage::-webkit-progress-value { background: linear-gradient(90deg, var(--accent), var(--good)); }
#exposure .planning-hero .planning-coverage::-moz-progress-bar { background: linear-gradient(90deg, var(--accent), var(--good)); }
.duty-hero-value-split { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-variant-numeric: tabular-nums; }
.duty-hero-value-split span:first-child { color: var(--ink); font-weight: 600; }
.duty-hero-value-empty { color: var(--ink); font-size: 18px; font-weight: 650; }

/* zzzzzzzzzzzzzzzzzz_products_toolbar.css */
/* Products exposes the everyday choices directly; each disclosure contains only
   links for that choice. Surface colors follow the shared glass palette. */
.product-workspace__purpose { max-width: 70ch; margin: 6px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.5; }
.product-workspace .product-filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 5px; }
.product-workspace .product-filterbar__search { display: block; flex: 1 1 290px; min-width: 220px; max-width: none; margin: 0; }
.product-workspace .product-filterbar__search .pl__searchfield { position: relative; width: 100%; }
.product-workspace .product-filterbar__search .pl__search-icon { position: absolute; top: 50%; left: 12px; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.product-workspace .product-filterbar__search .pl__input { display: block; width: 100%; height: 42px; min-height: 42px; margin: 0; padding-left: 38px; font-size: 14px; }
.product-filterbar__menus { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.product-workspace .product-filter { position: relative; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.product-workspace .product-filter > summary { display: flex; align-items: center; gap: 8px; min-height: 42px; max-width: 250px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--glass-surface); color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.4; list-style: none; cursor: pointer; user-select: none; }
.product-workspace .product-filter > summary::-webkit-details-marker { display: none; }
.product-filter__label { color: var(--muted); font-weight: 400; white-space: nowrap; }
.product-filter__selection { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.product-filter > summary svg { flex: none; color: var(--muted); }
.product-workspace .product-filter[open] > summary { border-color: var(--accent); background: var(--glass-selected); }
.product-workspace .product-filter__options { position: absolute; top: calc(100% + 6px); right: 0; z-index: 80; min-width: 220px; max-width: min(330px, calc(100vw - 32px)); max-height: 300px; overflow-y: auto; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: var(--glass-raised); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: 0 12px 32px rgb(23 47 61 / 14%); }
.product-workspace .product-filter__option { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 40px; padding: 8px 10px; border-radius: 7px; color: var(--ink); font-size: 14px; line-height: 1.45; text-decoration: none; }
.product-workspace button.product-filter__option { width: 100%; border: 0; background: transparent; font-family: inherit; text-align: left; cursor: pointer; }
.product-workspace .product-filter__option[aria-current="true"] { color: var(--accent-strong); background: var(--glass-selected); font-weight: 600; }
.product-filter__check { width: 14px; flex: none; }
.product-workspace .product-filter-reset { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 5px; color: var(--muted); font-size: 14px; text-decoration: none; }
.product-workspace .product-filter-reset[hidden] { display: none; }
.product-active-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.product-workspace .product-filter-chip { display: inline-flex; align-items: center; gap: 9px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--glass-selected); color: var(--accent-strong); font-size: 13px; line-height: 1.5; text-decoration: none; }
.product-filter-chip > span { font-size: 17px; line-height: 1; }
.product-workspace :is(.product-filter > summary, .product-filter__option, .product-filter-chip, .product-filter-reset):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.product-filter__rule { display: block; margin-top: 1px; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.35; }
/* The table tools sit with the table, as on the main branch screen. */
.product-workspace .product-table-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 12px; padding: 9px 12px; border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius-card) var(--radius-card) 0 0; background: var(--glass-sheen), var(--glass-surface); }
.product-workspace .product-table-toolbar + .product-catalog { border-radius: 0 0 var(--radius-card) var(--radius-card); }
.product-workspace .product-filterbar__view { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.product-workspace .product-filterbar__view > .fx-btn { min-height: 42px; font-size: 14px; }
.product-workspace .product-view-menu__panel { width: 290px; max-height: min(70vh, 520px); padding: 14px; }
.product-view-menu__heading { margin: 0 0 8px; color: var(--muted); font-size: 12px; font-weight: 600; }
.product-view-menu__heading:not(:first-child) { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.product-view-menu__saved { margin: 0 0 12px; padding: 0; list-style: none; }
.product-view-menu__saved li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.product-view-menu__saved li a { color: var(--ink); }
.product-view-menu__columns { display: grid; gap: 4px; }
.product-view-menu__columns label { display: flex; align-items: center; gap: 8px; min-height: 32px; font-size: 14px; }
/* "6 of 106 products match": only while a search or filter narrows the list (always for read-only roles). */
.product-workspace .product-count-line { margin: 0; color: var(--muted); font-size: 13px; }
.product-empty__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 12px; }
.product-workspace .product-selection-edit .product-selection-edit__blocked { color: var(--warn); font-weight: 600; }
.product-selection-edit button:disabled { opacity: .55; cursor: not-allowed; }
/* Rows: the row opens its product; each cell has one main line and at most one muted line that never wraps, so a row
   stays within 64 px at 1440. */
.product-workspace .product-work-table > tbody > tr[data-product-id] { cursor: pointer; }
.product-workspace .product-work-table > tbody > tr[data-product-id] > td { padding-top: 9px; padding-bottom: 9px; }
.product-workspace .product-work-table .catalog-product { line-height: 1.4; }
.product-workspace .product-work-table > tbody > tr[data-product-id] .catalog-id { display: block; margin-top: 2px; overflow: hidden; line-height: 1.35; white-space: nowrap; text-overflow: ellipsis; }
.product-workspace .catalog-low-flag { margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: color-mix(in srgb, var(--warn) 10%, transparent); color: var(--warn); font-family: var(--font-sans, inherit); font-size: 11px; font-weight: 600; white-space: nowrap; }
.product-workspace :is(.catalog-add-origin, .catalog-origin-missing) { color: var(--warn); font-weight: 600; }
/* An invitation, not a problem: the assumed colour (products/_needs_details) */
.product-workspace .catalog-needs-details { color: var(--assumed); font-family: var(--font-sans, inherit); font-weight: 500; }
/* HTS and duty are direct actions, with a visible boundary and arrow even before hover. */
.product-workspace .catalog-review-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 38px; max-width: 100%; margin: 0; padding: 7px 10px; border: 1px solid color-mix(in srgb, var(--accent) 48%, var(--line)); border-radius: 9px; background: color-mix(in srgb, var(--accent) 11%, var(--glass-surface)); color: var(--accent-strong); font-weight: 600; line-height: 1.3; text-decoration: none; box-shadow: 0 1px 2px rgb(23 47 61 / 5%); }
.product-workspace .catalog-review-link:hover, .product-workspace .catalog-review-link[aria-expanded="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 19%, var(--glass-surface)); color: var(--accent-strong); }
.product-workspace .catalog-review-link__value { text-decoration: none; }
.product-workspace .catalog-review-link__chevron { width: 14px; height: 14px; color: currentColor; opacity: 1; }
.product-workspace td[data-col="code"] .catalog-review-link--action { font-family: var(--font-sans, inherit); font-size: 13px; white-space: nowrap; }
.product-workspace .catalog-duty-link { --accent: var(--good); --accent-strong: var(--good); }
.product-workspace .catalog-duty-link .catalog-review-link__value { flex-wrap: wrap; justify-content: flex-end; gap: 0 4px; white-space: normal; }
.product-workspace .catalog-duty-link .catalog-unit { white-space: nowrap; }
.product-workspace .catalog-duty-link.catalog-review-link--action { display: inline-grid; grid-template-columns: 1fr auto; gap: 2px 8px; text-align: left; font-family: var(--font-sans, inherit); }
.product-workspace .catalog-review-link__action-label { font-size: 13px; font-weight: 600; white-space: nowrap; }
.product-workspace .catalog-duty-link.catalog-review-link--action .catalog-review-link__value { grid-row: 2; color: var(--ink-soft); font-size: 12px; font-weight: 400; line-height: 1.25; }
.product-workspace .catalog-duty-link.catalog-review-link--action .catalog-review-link__chevron { grid-column: 2; grid-row: 1 / 3; }
.product-workspace .catalog-table .catalog-duty-note--confirmed { justify-content: flex-end; }
/* One short form, only visible after Add product is chosen. */
/* A form above the table needs an opaque base; --surface follows the light/dark palette. */
.product-quick-add[popover] { width: min(620px, calc(100vw - 24px)); max-height: 90dvh; overflow-y: auto; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 64px rgb(23 47 61 / 22%); }
.product-quick-add::backdrop { background: rgb(14 29 43 / 32%); }
.product-quick-add__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.product-quick-add__head h2 { margin: 0 0 5px; font-size: 20px; line-height: 1.25; }
.product-quick-add__head p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.product-quick-add__close { flex: none; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; }
.product-quick-add__close:hover { background: var(--glass-selected); color: var(--ink); }
.product-quick-add__field { display: grid; gap: 7px; margin-top: 14px; }
.product-quick-add__field label { font-size: 13px; font-weight: 600; }
.product-quick-add__field label span { color: var(--muted); font-weight: 400; }
.product-quick-add__field .fx-input { width: 100%; min-height: 42px; margin: 0; font-size: 14px; }
.product-quick-add__field textarea.fx-input { min-height: 96px; resize: vertical; }
.product-quick-add__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.product-quick-add__field { min-width: 0; align-content: start; }
.product-quick-add__field .fx-combo__list { max-height: 180px; }
.product-quick-add__hint { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.product-quick-add__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.product-quick-add__error { margin: 0 0 12px; color: var(--bad); font-size: 13px; line-height: 1.5; }
.product-quick-add :is(button, textarea, input, select):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 480px) {
  .product-quick-add[popover] { padding: 18px; }
  .product-quick-add__grid { grid-template-columns: minmax(0, 1fr); }
}
/* The Confidence header's help: a button opening the bands' meanings (tap or keyboard, not hover only). */
.catalog-th-help { display: inline-flex; align-items: center; gap: 3px; }
.catalog-info { display: inline-grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; anchor-name: --confidence-help; }
.catalog-info svg { width: 15px; height: 15px; }
.catalog-info:hover, .catalog-info:focus-visible { color: var(--accent-strong); }
.catalog-info:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 1px; }
.catalog-popover { width: min(340px, calc(100vw - 32px)); padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--glass-raised); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: 0 12px 32px rgb(23 47 61 / 14%); color: var(--ink); font-size: 13px; font-weight: 400; line-height: 1.5; text-align: left; white-space: normal; }
@supports (anchor-name: --a) {
  .catalog-popover { position-anchor: --confidence-help; inset: auto; top: anchor(bottom); left: anchor(left); margin: 6px 0 0; position-try-fallbacks: flip-inline; }
}
.catalog-popover__title { margin: 0 0 8px; font-weight: 600; }
.catalog-popover dl { display: grid; gap: 6px; margin: 0; }
.catalog-popover dl > div { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 8px; }
.catalog-popover dt { font-weight: 600; }
.catalog-popover dd { margin: 0; color: var(--ink-soft); }
.product-workspace .pl__more { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
@media (hover: hover) and (pointer: fine) {
  .product-workspace .product-filter__option:hover { background: var(--glass-selected); color: var(--accent-strong); }
  .product-workspace :is(.product-filter > summary, .product-filter-chip):hover { border-color: var(--accent); }
  .product-workspace .product-filter-reset:hover { color: var(--accent-strong); }
}
/* The Next step cell: one line, the step or the status with its icon; at most one muted line under it. */
.product-workspace .product-work-status .catalog-status { display: flex; min-width: 0; }
.product-workspace .product-work-status .catalog-status > span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.product-work-table tr[data-work-tone="ready"] { --work-color: var(--accent); }
.product-workspace .product-work-status .product-status-reason { margin-top: 2px; color: var(--muted); }
.product-workspace .catalog-confirmed-by { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; }
/* Needs review's quick filters and the AI notice, above the table. */
.product-steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.product-workspace .product-steps__item { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass-surface); color: var(--ink); font-size: 13px; text-decoration: none; }
.product-workspace .product-steps__item[aria-current="true"] { border-color: var(--accent); background: var(--glass-selected); color: var(--accent-strong); font-weight: 600; }
.product-steps__count { color: var(--muted); font-variant-numeric: tabular-nums; }
.product-workspace .product-steps__item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.product-ai-notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin: 0 0 10px; padding: 10px 14px; border: 1px solid color-mix(in srgb, var(--warn) 35%, var(--line)); border-radius: 10px; background: color-mix(in srgb, var(--warn) 7%, var(--glass-surface)); font-size: 13px; }
.product-ai-notice p { margin: 0; flex: 1 1 360px; }
.product-ai-notice__actions { display: flex; gap: 8px; }
.product-ai-notice__actions form { margin: 0; }
@media (hover: hover) and (pointer: fine) {
  .product-workspace .product-steps__item:hover { border-color: var(--accent); }
}
/* Phones (below 600 px). Above that the "+ Add" menu, the Filters button, the sheet's heading and the card
   words are not shown; the filter menus sit in the bar (the sheet is a popover only on phones). */
.pl__add-menu { display: none; position: relative; }
.pl__add-menu > summary { list-style: none; cursor: pointer; }
.pl__add-menu > summary::-webkit-details-marker { display: none; }
.product-workspace .product-filterbar__sheet-button, .product-filter-sheet__head, .catalog-card-word, .confidence-band__word { display: none; }
.product-workspace .product-filterbar__menus[popover] { position: static; inset: auto; width: auto; height: auto; margin: 0; padding: 0; border: 0; overflow: visible; color: inherit; background: none; }
.product-workspace .product-work-table > tbody > tr[data-product-id] .product-reading--phone { display: none; }
@media (max-width: 600px) {
  .product-workspace .pl__header-actions > .fx-btn { display: none; }
  .product-workspace .pl__add-menu { display: block; }
  .product-workspace .pl__add-menu .product-filter__options { min-width: 210px; }
  /* Search beside one "Filters (n)" button; Select and the View menu are desktop tools. */
  .product-workspace .product-filterbar { flex-wrap: nowrap; }
  .product-workspace .product-filterbar__search { flex: 1 1 auto; min-width: 0; }
  .product-workspace .product-filterbar__sheet-button { display: inline-flex; flex: none; min-height: 42px; font-size: 14px; }
  .product-workspace .product-filterbar__view { display: none; }
  .product-workspace .product-filterbar__menus:not(:popover-open) { display: none; }
  .product-workspace .product-filterbar__menus:popover-open { position: fixed; inset: auto 0 0; display: grid; gap: 10px; width: auto; max-height: 85dvh; overflow-y: auto; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); border: 1px solid var(--line); border-radius: 16px 16px 0 0; background: var(--glass-raised); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: 0 -12px 32px rgb(23 47 61 / 18%); }
  .product-filterbar__menus::backdrop { background: rgb(23 47 61 / 28%); }
  .product-workspace .product-filter-sheet__head { display: flex; align-items: center; justify-content: space-between; }
  .product-filter-sheet__head h2 { margin: 0; font-size: 16px; }
  .product-workspace .product-filterbar__menus .product-filter > summary { max-width: none; }
  .product-workspace .product-filterbar__menus .product-filter__options { position: static; max-width: none; max-height: none; margin-top: 6px; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  /* The quick filters scroll in one row. */
  .product-steps { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .product-workspace .product-steps__item { flex: none; white-space: nowrap; }
  /* Each row is a card from the same cells: name (+ identifier, reading); next step or who confirmed, with the code's
     source tag; the code and its confidence; the duty and the origin. The View menu's column choices are the desktop
     table's: a card always shows its code, origin and duty (hence !important over [hidden]). */
  .product-workspace .product-work-table { display: block; min-width: 0; }
  .product-workspace .product-work-table > thead { display: none; }
  .product-workspace .product-work-table > tbody { display: block; }
  .product-workspace .product-work-table > tbody > tr[data-product-id] { display: grid; grid-template-columns: fit-content(60%) minmax(0, 1fr) auto; grid-template-areas: "name name name" "step tag tag" "code conf conf" "duty duty origin"; align-items: center; gap: 6px 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .product-workspace .product-work-table > tbody > tr[data-product-id]:not(:has(.catalog-code-source, [data-rs="from-library"])) { grid-template-areas: "name name name" "step step step" "code conf conf" "duty duty origin"; }
  .product-workspace .product-work-table > tbody > tr[data-product-id] > td { padding: 0; border: 0; }
  .product-workspace .product-work-table > tbody > tr > td.catalog-select { display: none !important; }
  .product-workspace .product-work-table > tbody > tr > td[data-col] { display: block !important; }
  .product-workspace .product-work-table > tbody > tr > td[data-col="code"] { display: contents !important; }
  .product-workspace .product-work-table td.product-identity { grid-area: name; }
  .product-workspace .product-work-table td.product-work-status { grid-area: step; }
  .product-workspace .product-work-table td[data-col="code"] > .catalog-review-link { grid-area: code; justify-self: start; }
  .product-workspace .product-work-table td[data-col="code"] > :is(.catalog-code-source, [data-rs="from-library"]) { grid-area: tag; margin: 0; }
  .product-workspace .product-work-table :is(td[data-col="confidence"], .catalog-low-flag) { grid-area: conf; justify-self: start; margin: 0; }
  .product-workspace .product-work-table td[data-col="origin"] { grid-area: origin; justify-self: end; text-align: right; }
  .product-workspace .product-work-table > tbody > tr > td[data-col="duty"] { grid-area: duty; display: flex !important; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; text-align: left; white-space: normal; }
  .product-workspace .catalog-card-word { display: inline; }
  .product-workspace .product-work-table td[data-col="duty"] > .catalog-card-word { color: var(--muted); font-size: 12px; }
  .product-workspace .product-work-table .confidence-band__word { display: inline; }
  /* the band and its word as one line of text: the word's own space, not the badge's flex gap as well */
  .product-workspace .product-work-table .confidence-band:has(.confidence-band__word) { display: inline-block; }
  .product-workspace .product-work-table .catalog-duty-link { flex-direction: row; align-items: center; }
  .product-workspace .product-work-table .catalog-duty-link.catalog-review-link--action { flex-direction: column; align-items: flex-start; }
  .product-workspace .product-work-table .catalog-review-link { min-height: 44px; }
  .product-workspace .product-work-table td[data-col="duty"] > .catalog-duty-note { margin: 0; }
  .product-workspace .product-work-table > tbody > tr[data-product-id] :is(.catalog-product, .catalog-status > span, .catalog-confirmed-by, .product-status-reason, .product-reading, .catalog-code-source) { white-space: normal; }
  .product-workspace .product-identity__meta { display: block; }
  .product-workspace .product-work-table > tbody > tr[data-product-id] .product-reading--phone { display: block; }
}

/* zzzzzzzzzzzzzzzzzz_what_if_comparison.css */
/* Two duty totals use one scale so the result is legible before opening calculation details. */
#what-if .scenario-editor .scenario-comparison > .scenario-comparison__entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: space-between; align-items: baseline; gap: 10px 12px; }
.scenario-comparison__entry > strong { text-align: right; }
.scenario-comparison__track { grid-column: 1 / -1; width: 100%; height: 12px; overflow: hidden; border-radius: 999px; background: var(--glass-inset); }
.scenario-comparison__bar { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.scenario-comparison__bar--after { background: var(--good); }
.scenario-comparison__bar--after.is-higher { background: var(--warn); }
@media print {
  .scenario-comparison__bar { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* zzzzzzzzzzzzzzzzzzz_ask_cards.css */
/* Ask Tarivo's cards and attached files, the admins' audit of conversations and Ask Tarivo's budgets in Settings (SPEC v2
   §8, §9.2, §9.10, §9.11, §9.13).
   Cards are the only boxed things in a conversation, each a quiet glass panel with its kind's mark, its title, its ref
   and its status in words, then its body (words, figures, tables). Materials come only from the glass tokens
   (zz_glass.css) through the --ask-card-* aliases below, so dark mode, reduced transparency and print follow them. A card
   fits the drawer's narrowest column (360 px): its header folds under a long title and its tables scroll sideways inside
   it, never the page. This file sorts before the chat's own stylesheet, so nothing here relies on overriding it (the
   audit's answers outweigh .ask-answer by specificity). */

.ask-card, .ask-file, .ask-card-reveal, .ask-card-batch, .ask-auditlog {
  --ask-card-panel: var(--glass-sheen), var(--glass-raised);
  --ask-card-edge: var(--glass-border);
  --ask-card-inset: var(--surface);
  --ask-card-head: var(--surface-muted);
  --ask-card-mark: var(--accent-soft);
  --ask-card-mark-ink: var(--accent-strong);
  --ask-card-pad: 16px;
  --ask-card-target: 32px;
  --ask-card-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ------------------------------------------------------------------ the frame */

.ask-card {
  min-width: 0; padding: 14px var(--ask-card-pad) var(--ask-card-pad); border: 1px solid var(--ask-card-edge);
  border-radius: var(--radius-row); background: var(--ask-card-panel); box-shadow: var(--glass-highlight), var(--glass-shadow);
  color: var(--ink); font-size: 14px; line-height: 1.55;
}
.ask-card p { margin: 0; }

/* The mark, then the title with its ref and status at the end of its line; when a long title leaves no room (the
   drawer, a phone) these go under it. */
.ask-card__head { display: flex; align-items: center; gap: 10px; }
.ask-card__mark {
  display: grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--ask-card-mark);
  color: var(--ask-card-mark-ink);
}
.ask-card__heading { flex: 1 1 auto; min-width: 0; }
.ask-card__kind { color: var(--muted); font-size: 12px; font-weight: 550; line-height: 1.4; }
.ask-card__name { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; }
.ask-card__title {
  flex: 1 1 auto; min-width: 0; margin: 0; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.4;
  letter-spacing: -.01em; overflow-wrap: anywhere;
}
.ask-card__about { display: flex; flex: none; align-items: center; gap: 8px; }
.ask-card__state { display: contents; }

/* A status in words, its tone from the glass status pairs (each pair is contrast-checked in both themes). */
.ask-card__status {
  display: inline-block; padding: 1px 8px; border-radius: var(--radius-pill, 999px); background: var(--ask-card-head);
  color: var(--muted); font-size: 11.5px; font-weight: 600; line-height: 1.6; white-space: nowrap;
}
.ask-card__status[data-tone="attention"] { background: var(--warn-bg); color: var(--warn); }
.ask-card__status[data-tone="progress"] { background: var(--accent-soft); color: var(--accent-strong); }
.ask-card__status[data-tone="good"] { background: var(--good-bg); color: var(--good); }
.ask-card__status[data-tone="bad"] { background: var(--bad-bg); color: var(--bad); }

.ask-card__body { display: grid; gap: 8px; margin-top: 12px; min-width: 0; }

/* A card this viewer may not see now: one quiet sentence where it was. */
.ask-card--hidden { padding: 10px 14px; border-style: dashed; border-color: var(--line-strong); background: none; box-shadow: none; }
.ask-card--hidden .ask-card__line { font-style: italic; }

/* ------------------------------------------------------------------ the bodies */

.ask-card__words { color: var(--ink); overflow-wrap: anywhere; }
.ask-card__words[data-tone="bad"] { color: var(--bad); }
.ask-card__words[data-tone="attention"] { color: var(--warn); }
.ask-card__words[data-tone="good"] { color: var(--good); font-weight: 550; }
.ask-card__words[data-tone="quiet"] { color: var(--muted); }
.ask-card__line, .ask-card__summary, .ask-card__note, .ask-card__count { color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.ask-card__count { font-variant-numeric: tabular-nums; }
.ask-card__subject { color: var(--ink); font-weight: 550; }
.ask-card__figure { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.ask-card__file { min-width: 0; }
.ask-card__filename { display: block; overflow: hidden; color: var(--ink); font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }

.ask-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ask-card__link {
  display: inline-flex; align-items: center; min-height: var(--ask-card-target); padding: 0 14px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill, 999px); background: var(--ask-card-inset); color: var(--accent-strong); font-size: 13.5px;
  font-weight: 600; line-height: 1.2; text-decoration: none; transition: background-color var(--motion) var(--ease), border-color var(--motion) var(--ease);
}
.ask-card__link:hover { border-color: var(--accent); background: var(--accent-soft); }
.ask-card__link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Tables: figures in tabular numbers, wide ones scrolling inside the card. */
.ask-card__table {
  max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--ask-card-inset);
  overscroll-behavior-x: contain;
}
.ask-card__table:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ask-card__table table { width: 100%; border-collapse: collapse; font-size: 13.5px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.ask-card__table :is(th, td) { padding: 7px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.ask-card__table thead th { background: var(--ask-card-head); color: var(--ink-soft); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.ask-card__table tbody th { color: var(--ink); font-weight: 550; }
.ask-card__table tbody td { color: var(--ink-soft); }
.ask-card__table tbody tr:last-child > * { border-bottom: 0; }
/* Codes, part numbers and figures stay on one line (the table scrolls instead); the first column, a description or an
   origin, wraps within a readable width. */
.ask-card__table tbody :is(th, td) { white-space: nowrap; }
.ask-card__table tbody :is(th, td):first-child { min-width: 14ch; max-width: 34ch; white-space: normal; overflow-wrap: anywhere; }
.ask-card__table .ask-card__num { text-align: right; white-space: nowrap; }
.ask-card__reason { display: block; max-width: 28ch; color: var(--muted); font-size: 12px; white-space: normal; text-align: right; }
.ask-card__delta { font-weight: 600; }
.ask-card__delta[data-tone="good"] { color: var(--good); }
.ask-card__delta[data-tone="bad"] { color: var(--bad); }

/* Background work: a thin bar of the items done, the counts in words under it. */
.ask-card__bar {
  display: block; width: 100%; height: 6px; margin: 2px 0; border: 0; border-radius: var(--radius-pill, 999px);
  background: var(--ask-card-head); overflow: hidden; -webkit-appearance: none; appearance: none;
}
.ask-card__bar::-webkit-progress-bar { border-radius: inherit; background: var(--ask-card-head); }
.ask-card__bar::-webkit-progress-value { border-radius: inherit; background: var(--accent); transition: width var(--motion) var(--ease); }
.ask-card__bar::-moz-progress-bar { border-radius: inherit; background: var(--accent); }

/* The guide: each screen a row, its name a link where it has one, what it is for beneath. */
.ask-card__guide { display: grid; gap: 2px; margin: 0 -10px; padding: 0; list-style: none; }
.ask-card__entry { display: grid; gap: 1px; padding: 8px 10px; border-radius: 10px; }
.ask-card__entry:has(> a:hover) { background: var(--accent-soft); }
.ask-card__entry-title { color: var(--ink); font-weight: 600; text-decoration: none; }
a.ask-card__entry-title { color: var(--accent-strong); }
a.ask-card__entry-title:hover { text-decoration: underline; text-underline-offset: 2px; }
.ask-card__entry-purpose { color: var(--muted); font-size: 13px; line-height: 1.5; }

/* ------------------------------------------------------------------ proposals */

/* A change Tarivo suggested unasked: one amber line before everything else. */
.ask-card .ask-card__banner {
  padding: 8px 12px; border-radius: var(--radius-control); background: var(--warn-bg); box-shadow: inset 3px 0 0 var(--warn);
  color: var(--warn); font-size: 13.5px; font-weight: 550;
}

/* How weighty the change is and what it is for, with where those products came from. */
.ask-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--muted); font-size: 13.5px; }
.ask-card__tier {
  display: inline-block; padding: 1px 8px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill, 999px);
  color: var(--ink-soft); font-size: 11.5px; font-weight: 600; line-height: 1.6; white-space: nowrap;
}
.ask-card__tier[data-tier="t3"] { border-color: var(--warn); color: var(--warn); }
.ask-card__targets { color: var(--ink); font-weight: 550; }

/* Each value: its name, then the value with where it came from, said in words (the tone only repeats it). */
.ask-card__fields { display: grid; gap: 8px; margin: 0; }
.ask-card__field { display: grid; gap: 2px; min-width: 0; }
.ask-card__field dt { color: var(--muted); font-size: 12.5px; font-weight: 550; }
.ask-card__field dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-width: 0; margin: 0; }
.ask-card__value { color: var(--ink); font-weight: 600; white-space: pre-line; overflow-wrap: anywhere; }
.ask-card__source {
  display: inline-block; padding: 0 7px; border-radius: 6px; background: var(--supplied-bg); color: var(--supplied);
  font-size: 11.5px; font-weight: 600; line-height: 1.7; white-space: nowrap;
}
.ask-card__source[data-tone="records"] { background: var(--inferred-bg); color: var(--inferred); }
.ask-card__source[data-tone="check"] { background: var(--warn-bg); color: var(--warn); }
.ask-card__detail { color: var(--muted); font-size: 12.5px; }
.ask-card__quote { flex-basis: 100%; color: var(--muted); font-size: 13px; font-style: italic; overflow-wrap: anywhere; }

/* What else happens and what the preview says about it. */
.ask-card__notes { display: grid; gap: 3px; margin: 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; }
.ask-card__notes li::marker { color: var(--faint); }

/* The before → after table: the before and after of free text wrap, so a description is read in full. */
.ask-card__table tbody td.ask-card__text { min-width: 12ch; max-width: 40ch; white-space: normal; overflow-wrap: anywhere; }
.ask-card__table tbody td.ask-card__after { color: var(--ink); font-weight: 600; }
.ask-card__more > summary {
  width: fit-content; padding: 4px 0; color: var(--accent-strong); font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.ask-card__more[open] > summary { margin-bottom: 6px; }

/* The ticks a value to check needs before Confirm: amber, each a whole row to press. */
.ask-card__acks {
  display: grid; gap: 4px; min-width: 0; margin: 4px 0 0; padding: 8px 10px 10px; border: 0; border-radius: var(--radius-control);
  background: var(--warn-bg); box-shadow: inset 3px 0 0 var(--warn);
}
.ask-card__acks legend { float: left; width: 100%; margin-bottom: 2px; padding: 0 2px; color: var(--warn); font-size: 12.5px; font-weight: 600; }
.ask-card__ack {
  display: flex; align-items: flex-start; gap: 10px; min-height: var(--ask-card-target); padding: 6px 2px; border-radius: 8px;
  color: var(--ink); font-size: 13.5px; cursor: pointer;
}
.ask-card__ack input { flex: none; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--warn); cursor: pointer; }
.ask-card__ack-text { display: grid; gap: 1px; min-width: 0; overflow-wrap: anywhere; }
.ask-card__ack-text span { color: var(--muted); font-size: 12.5px; }
.ask-card__ack + .ask-card__ack--review { border-top: 1px solid var(--line-strong); border-radius: 0; padding-top: 8px; }

/* The buttons, the expiry at the end of their row. */
.ask-card__buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.ask-card__form { display: contents; }
.ask-card__form[hidden] { display: none; }
.ask-card__button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--ask-card-target); padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill, 999px); background: var(--ask-card-inset);
  color: var(--accent-strong); font: inherit; font-size: 13.5px; font-weight: 600; line-height: 1.2; cursor: pointer;
  transition: background-color var(--motion) var(--ease), border-color var(--motion) var(--ease);
}
.ask-card__button:hover { border-color: var(--accent); background: var(--accent-soft); }
a.ask-card__button { text-decoration: none; }
.ask-card__button:focus-visible, .ask-card__revise-toggle:focus-visible, .ask-card__more > summary:focus-visible,
.ask-card__outcome:focus-visible, .ask-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ask-card__button--primary {
  border-color: transparent; background: linear-gradient(155deg, var(--accent), var(--accent-strong)); color: var(--accent-ink);
}
.ask-card__button--primary:hover { border-color: transparent; background: var(--accent-strong); }
.ask-card__button--quiet { border-color: transparent; background: none; color: var(--muted); }
.ask-card__button--quiet:hover { border-color: var(--line-strong); background: var(--ask-card-inset); color: var(--ink); }
.ask-card__button:is(:disabled, [aria-disabled="true"]) {
  border-color: var(--line); background: var(--ask-card-head); color: var(--faint); cursor: not-allowed;
}
.ask-card[aria-busy="true"] .ask-card__body { cursor: progress; }
.ask-card__expiry { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Edit: the values in plain fields under a quiet toggle; the preview is made again from them. */
.ask-card__revise > summary.ask-card__revise-toggle {
  width: fit-content; color: var(--accent-strong); font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.ask-card__revise-form { display: grid; gap: 10px; margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--ask-card-inset); }
.ask-card__input { display: grid; gap: 4px; min-width: 0; }
.ask-card__input label { color: var(--ink-soft); font-size: 12.5px; font-weight: 600; }
.ask-card__input :is(input, textarea), .ask-card__question :is(input:not([type="radio"], [type="checkbox"]), textarea, select) {
  width: 100%; min-height: var(--ask-card-target); padding: 6px 10px; border: 1px solid var(--control-border); border-radius: 10px;
  background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; box-shadow: var(--shadow-input);
}
.ask-card__input textarea, .ask-card__question textarea { min-height: 5em; resize: vertical; field-sizing: content; max-height: 40vh; }
.ask-card__input :is(input, textarea):focus-visible, .ask-card__question :is(input, textarea, select):focus-visible {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.ask-card__hint { color: var(--muted); font-size: 12px; }
.ask-card__hint[data-tone="bad"] { color: var(--bad); }
.ask-card__revise-form .ask-card__button { justify-self: start; }

/* A question card's form: each question in words, then its answers as choices to pick (I don't know quieter, with a
   dashed edge) or a field with its unit; the questions apart by a hairline. A floated legend takes part in its
   fieldset's grid like any other line. */
.ask-card__questions { display: grid; gap: 12px; min-width: 0; }
.ask-card__question { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.ask-card__questions > .ask-card__question + .ask-card__question { padding-top: 12px; border-top: 1px solid var(--line); }
.ask-card__question-text { float: left; width: 100%; padding: 0; color: var(--ink); font-size: 13.5px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.ask-card__options { display: flex; flex-wrap: wrap; gap: 6px; }
.ask-card__option {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%; min-height: var(--ask-card-target);
  padding: 4px 12px 4px 10px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--ask-card-inset);
  color: var(--ink); font-size: 13.5px; line-height: 1.35; overflow-wrap: anywhere; cursor: pointer;
  transition: background-color var(--motion) var(--ease), border-color var(--motion) var(--ease);
}
.ask-card__option input { flex: none; width: 16px; height: 16px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.ask-card__option:hover { border-color: var(--accent); }
.ask-card__option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); font-weight: 550; }
.ask-card__option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.ask-card__option--unknown { border-style: dashed; color: var(--muted); }
.ask-card__unit, .ask-card__date { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.ask-card .ask-card__unit input { flex: 0 1 18ch; min-width: 8ch; }
.ask-card .ask-card__date input { flex: 0 1 20ch; min-width: 0; }
.ask-card__unit-name { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.ask-card__asked { display: grid; gap: 3px; margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 13.5px; overflow-wrap: anywhere; }
.ask-card__asked li::marker { color: var(--faint); }
.ask-card__questions .ask-card__buttons { margin-top: 0; }

/* A new product's card: all optional inputs visible in one compact form, then file facts to tick. */
.ask-card .ask-card__meta .ask-card__tier { color: var(--ink); }
.ask-card__duplicates { display: grid; gap: 4px; min-width: 0; }
.ask-card__ask { display: grid; gap: 8px; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--ask-card-inset); }
.ask-card__draft-form { display: grid; gap: 9px; min-width: 0; }
.ask-card__draft-form > .ask-card__button { justify-self: start; }
.ask-card__draft-form > .ask-card__input { width: 100%; }
.ask-card__draft-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; min-width: 0; }
.ask-card__draft-input { align-content: start; gap: 5px; }
.ask-card__draft-input--description { grid-column: 1 / -1; }
.ask-card__draft-input > label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 6px; }
.ask-card__draft-input .ask-card__optional { font-size: 11px; }
.ask-card__draft-input select {
  width: 100%; min-height: var(--ask-card-target); padding: 6px 10px; border: 1px solid var(--control-border); border-radius: 10px;
  background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; box-shadow: var(--shadow-input);
}
.ask-card__draft-input select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.ask-card .ask-card__draft-input .ask-card__unit input { flex: 1 1 10ch; }

.ask-card__fields.ask-card__draft-summary { grid-template-columns: minmax(105px, 34%) minmax(0, 1fr); gap: 5px 10px; }
.ask-card__draft-summary .ask-card__field { display: contents; }
.ask-card__draft-summary .ask-card__field dt { align-self: center; }
.ask-card__draft-summary .ask-card__field dd { align-items: center; gap: 3px 7px; }
.ask-card__draft-summary .ask-card__change { flex-basis: auto; }
.ask-card__draft-summary .ask-card__change[open] { flex-basis: 100%; }
.ask-card__optional-detail > summary.ask-card__revise-toggle { color: var(--muted); font-size: 12px; font-weight: 500; }
.ask-card__optional-detail .ask-card__revise-form { margin-top: 6px; }
.ask-card__detail { display: grid; gap: 6px; min-width: 0; }
.ask-card__detail-form { display: grid; justify-items: start; gap: 8px; min-width: 0; }
.ask-card__detail-form .ask-card__input { justify-self: stretch; }
.ask-card__shortcuts { display: flex; flex-wrap: wrap; gap: 6px; }
.ask-card__optional { color: var(--faint); font-weight: 400; }
.ask-card__missing { color: var(--warn); font-weight: 600; }
.ask-card__change { flex-basis: 100%; min-width: 0; }
.ask-card__change > summary.ask-card__revise-toggle { font-size: 12.5px; }
.ask-card__change .ask-card__revise-form { margin-top: 6px; }
.ask-card__facts { display: grid; gap: 8px; min-width: 0; padding-top: 10px; border-top: 1px solid var(--line); }
.ask-card__facts-form { display: grid; gap: 8px; min-width: 0; }
.ask-card__facts-form .ask-card__button { justify-self: start; }
.ask-card__facts-title { margin: 0; color: var(--ink); font-size: 13.5px; font-weight: 600; }
.ask-card__facts-file { display: grid; gap: 4px; min-width: 0; }
.ask-card__fact-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ask-card__fact {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; padding: 6px 10px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--ask-card-inset);
}
.ask-card__pick { display: flex; flex: 1 1 100%; align-items: flex-start; gap: 10px; min-width: 0; color: var(--ink); font-size: 13.5px; overflow-wrap: anywhere; }
label.ask-card__pick { min-height: var(--ask-card-target); padding-top: 4px; cursor: pointer; }
.ask-card__pick input { flex: none; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }
.ask-card__fact:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.ask-card__fact:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.ask-card__fact-about { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; color: var(--muted); font-size: 12.5px; }
.ask-card__conflict { color: var(--warn); font-weight: 600; }

/* What became of it: the place focus lands after Confirm. */
.ask-card__outcome { display: grid; gap: 6px; min-width: 0; padding-top: 10px; border-top: 1px solid var(--line); border-radius: 2px; }
.ask-card__results { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; }
.ask-card__result { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; }
.ask-card__result-mark {
  flex: none; padding: 0 7px; border-radius: 6px; background: var(--good-bg); color: var(--good); font-size: 11.5px; font-weight: 600;
  line-height: 1.7;
}
.ask-card__result[data-done="false"] .ask-card__result-mark { background: var(--bad-bg); color: var(--bad); }
.ask-card__result-name { color: var(--ink); overflow-wrap: anywhere; }
.ask-card__result-why { flex-basis: 100%; color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.ask-card__history { display: grid; gap: 2px; margin: 0; padding-left: 18px; font-size: 13.5px; }
.ask-card__history-link { color: var(--accent-strong); text-underline-offset: 2px; }

/* Why the action just taken did not go through (a refusal, a card changed in another window): first in the card. */
.ask-card .ask-card__alert {
  padding: 8px 12px; border-radius: var(--radius-control); background: var(--bad-bg); box-shadow: inset 3px 0 0 var(--bad);
  color: var(--bad); font-size: 13.5px; font-weight: 550; overflow-wrap: anywhere;
}
.ask-card__alert:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* What a confirmation hands back once (a link to send, a file to download), right under its card. */
.ask-card-reveal {
  display: grid; gap: 8px; min-width: 0; margin-top: 8px; padding: 12px var(--ask-card-pad); border: 1px solid var(--accent);
  border-radius: var(--radius-row); background: var(--ask-card-panel); box-shadow: var(--glass-highlight), var(--glass-shadow);
  color: var(--ink); font-size: 14px; line-height: 1.55;
}
.ask-card-reveal p { margin: 0; }
.ask-card-reveal__title { font-weight: 600; overflow-wrap: anywhere; }
.ask-card-reveal__box { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.ask-card-reveal__link {
  flex: 1 1 16ch; min-width: 0; min-height: var(--ask-card-target); padding: 6px 10px; border: 1px solid var(--control-border);
  border-radius: 10px; background: var(--surface); color: var(--ink); font-family: var(--ask-card-mono); font-size: 13px;
}
.ask-card-reveal__link:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.ask-card-reveal__words { color: var(--muted); font-size: 13px; }
.ask-card-reveal a.ask-card__button { overflow-wrap: anywhere; }

/* Confirm all: the cards of one answer that need nothing more from the person, named, under the last of them. */
.ask-card-batch {
  display: grid; gap: 6px; min-width: 0; margin-top: 8px; padding: 10px var(--ask-card-pad) 12px; border: 1px dashed var(--line-strong);
  border-radius: var(--radius-row); color: var(--ink); font-size: 13.5px; line-height: 1.5;
}
.ask-card-batch p { margin: 0; color: var(--muted); }
.ask-card-batch__titles { display: grid; gap: 2px; margin: 0; padding-left: 18px; overflow-wrap: anywhere; }
.ask-card-batch .ask-card__button { justify-self: start; }

/* A product's result: its classification, then its duty estimate, each under a small head with its review status in
   words. The product page's own result pieces inside (the code block, "See how this was calculated") keep their look;
   their tables scroll sideways inside the card. The review dialog's host takes no room of its own. */
.ask-card__part { display: grid; gap: 6px; min-width: 0; padding-top: 10px; border-top: 1px solid var(--line); }
.ask-card__part-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; color: var(--muted);
  font-size: 12.5px; font-weight: 600;
}
.ask-card .ask-card__headline { margin: 0; color: var(--ink); font-size: 14.5px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.ask-card__amount { color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.ask-card__amount .ask-card__figure { margin-right: 4px; font-size: 20px; letter-spacing: -.01em; }
.ask-card__notes[data-tone="attention"] { color: var(--warn); }
.ask-card__notes .ask-card__hint { display: block; }
.ask-card__support { display: grid; gap: 6px; min-width: 0; }
.ask-card__code { display: inline-block; max-width: 100%; color: var(--ink); font-family: var(--ask-card-mono); font-size: 12.5px; }
.ask-card__part :is(.rs__code-block, .rs__how, .rs__table-wrap) { min-width: 0; max-width: 100%; }
.ask-card__part .rs__code { overflow-wrap: anywhere; }
.ask-card__review { display: contents; }

/* ------------------------------------------------------------------ attached files */

/* A file as a chip: its mark, its name (cut short, in full on hover), what it is and its status in words. */
.ask-file {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; max-width: 100%; min-height: 30px; padding: 3px 6px 3px 8px;
  border: 1px solid var(--ask-card-edge); border-radius: 10px; background: var(--ask-card-panel); box-shadow: var(--glass-highlight);
  color: var(--ink); font-size: 12.5px; line-height: 1.4;
}
.ask-file__mark { display: inline-grid; color: var(--accent-strong); }
.ask-file__mark .ask-icon { width: 14px; height: 14px; }
.ask-file__name { min-width: 0; max-width: 26ch; overflow: hidden; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.ask-file__about { color: var(--muted); white-space: nowrap; }
.ask-file .ask-card__status { padding: 0 7px; font-size: 11px; }
.ask-file__error { flex-basis: 100%; color: var(--bad); font-size: 12px; overflow-wrap: anywhere; }
.ask-file__error[hidden] { display: none; }
a.ask-file__name { color: inherit; text-decoration: none; }
a.ask-file__name:hover { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; }
.ask-file__remove {
  display: grid; flex: none; place-items: center; width: 22px; height: 22px; padding: 0; border: 0;
  border-radius: 50%; background: none; color: var(--muted); cursor: pointer;
  transition: background-color 120ms var(--ease), color 120ms var(--ease);
}
.ask-file__remove:hover { background: var(--surface-muted); color: var(--ink); }
.ask-file__remove:focus-visible, a.ask-file__name:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
/* An upload under way: a hairline of progress along the chip's foot (outside its flow, so the chip keeps its width). */
.ask-file__progress {
  position: absolute; right: 10px; bottom: 2px; left: 10px; width: auto; height: 2px; margin: 0; border: 0; border-radius: 2px;
  background: var(--ask-card-head); color: var(--accent); -webkit-appearance: none; appearance: none;
}
.ask-file__progress::-webkit-progress-bar { border-radius: 2px; background: var(--ask-card-head); }
.ask-file__progress::-webkit-progress-value { border-radius: 2px; background: var(--accent); transition: width 160ms var(--ease); }
.ask-file__progress::-moz-progress-bar { border-radius: 2px; background: var(--accent); }

/* ------------------------------------------------------------------ the composer's files */

/* With the files' slot in it, the composer's box is a grid: the files waiting to go with the next message across its top
   (only while there are some), then the paperclip, the text and Send. The slot itself draws no box. The box is the chat
   stylesheet's, which loads after this one: this rule outweighs its own by specificity. */
.ask-composer > .ask-composer__box:has(> .ask-files) {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; row-gap: 6px; padding-left: 8px;
}
.ask-files { display: contents; }
.ask-files__attach {
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: none;
  color: var(--muted); cursor: pointer; transition: background-color 120ms var(--ease), color 120ms var(--ease);
}
.ask-files__attach:hover { background: var(--surface-muted); color: var(--ink); }
.ask-files__attach:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.ask-files__attach .ask-icon { width: 20px; height: 20px; }
.ask-files__tray { display: grid; grid-column: 1 / -1; grid-row: 1; gap: 6px; min-width: 0; padding: 2px 6px 0; }
.ask-files__tray[hidden] { display: none; }
.ask-files__list { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.ask-files__item { display: flex; min-width: 0; max-width: 100%; }
/* A chip waiting to be sent keeps its remove button in its top corner, however its words wrap. */
.ask-files .ask-file { position: relative; padding-right: 30px; }
.ask-files .ask-file__remove { position: absolute; top: 4px; right: 4px; margin: 0; }
.ask-files__note { margin: 0; color: var(--bad); font-size: 12.5px; line-height: 1.45; }
.ask-files__note[hidden] { display: none; }

/* Files dragged over the chat: one dashed panel over the whole conversation (placed there by the controller, in the top
   layer, so the composer's glass does not clip it) says they can be dropped. */
.ask-files__drop {
  position: fixed; inset: auto; box-sizing: border-box; margin: 0; padding: 24px; overflow: hidden;
  border: 2px dashed var(--accent); border-radius: var(--radius-card); color: var(--ink); text-align: center;
  background: var(--glass-sheen), var(--glass-raised); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
}
.ask-files__drop:popover-open { display: grid; place-content: center; justify-items: center; gap: 8px; }
.ask-files__drop * { pointer-events: none; }
.ask-files__drop-mark {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--accent-soft);
  color: var(--accent-strong);
}
.ask-files__drop-mark .ask-icon { width: 26px; height: 26px; }
.ask-files__drop-title { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.ask-files__drop-note { color: var(--muted); font-size: 13px; }

/* ------------------------------------------------------------------ the admins' audit (/ask/audit) */

/* The list: filters (folded behind "Filter" on a phone, as the Audit trail's), a count, then a table that scrolls
   sideways inside its own region, never the page. */
.ask-auditlog__filters { min-width: 0; }
.ask-auditlog__filters > .ask-auditlog__toggle { display: none; }
.ask-auditlog__count { font-variant-numeric: tabular-nums; }
.ask-auditlog__form { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; align-items: end; }
.ask-auditlog__form .fx-input { width: 100%; min-width: 0; }
.ask-auditlog__flags { display: flex; flex-wrap: wrap; gap: 8px 20px; grid-column: 1 / -1; min-width: 0; margin: 0; padding: 0; border: 0; }
.ask-auditlog__flags legend { float: left; width: 100%; margin-bottom: 6px; padding: 0; }
.ask-auditlog__flag { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; color: var(--ink-soft); font-size: 14px; }
.ask-auditlog__flag input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent-strong); }
.ask-auditlog__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; grid-column: 1 / -1; }
.ask-auditlog__total { margin: 0; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }

.ask-auditlog__scroll {
  max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-row); background: var(--surface);
}
.ask-auditlog__scroll:focus-visible { outline-offset: 2px; }
.ask-auditlog__table { min-width: 100%; }
.ask-auditlog__table :is(thead, tbody) > tr > :is(th, td) { padding: 10px 14px; }
.ask-auditlog__table :is(th, td):first-child { padding-left: 14px; }
.ask-auditlog__table :is(th, td):last-child { padding-right: 14px; }
.ask-auditlog__table thead th { background: var(--surface-muted); }
.ask-auditlog__table tbody tr:last-child > * { border-bottom: 0; }
.ask-auditlog__table :is(td, tbody th) { white-space: nowrap; }
.ask-auditlog__table tbody th { font-weight: 550; }
.ask-auditlog__table .ask-auditlog__name { min-width: 15rem; white-space: normal; overflow-wrap: anywhere; }
.ask-auditlog__name .fx-link { display: block; }
/* A proposal's values and quotes are words: they wrap. */
.ask-auditlog__table.ask-auditlog__fields td { min-width: 14ch; white-space: normal; overflow-wrap: anywhere; }
.ask-auditlog__tags { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 6px; }
.ask-auditlog__tag {
  display: inline-block; padding: 1px 8px; border-radius: var(--radius-pill, 999px); background: var(--surface-muted); color: var(--muted);
  font-size: 12px; font-weight: 550; line-height: 1.6; white-space: nowrap;
}
.ask-auditlog__pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.ask-auditlog__where { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }

/* The earlier assistant's questions: one quiet row each. */
.ask-auditlog__questions { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.ask-auditlog__question { display: grid; gap: 6px; padding: 16px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.ask-auditlog__asked { margin: 0; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.ask-auditlog__question .ask-auditlog__said { display: grid; gap: 6px; font-size: 15px; }

/* One conversation: what it was, then every message as a panel (another version dashed), each answer's flow inside. */
.ask-auditlog__gone {
  margin: 0; padding: 12px 16px; border-radius: var(--radius-control); background: var(--warn-bg); color: var(--warn); font-size: 14px;
  line-height: 1.55;
}
.ask-auditlog__facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 0; font-size: 14px; }
.ask-auditlog__facts > div { display: contents; }
.ask-auditlog__facts dt { color: var(--muted); font-weight: 550; }
.ask-auditlog__facts dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.ask-auditlog__facts--small { gap: 4px 14px; font-size: 13px; }
.ask-auditlog__section { display: grid; gap: 12px; min-width: 0; }
.ask-auditlog__messages { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.ask-auditlog__msg { min-width: 0; }
.ask-auditlog__msg > article {
  display: grid; gap: 12px; min-width: 0; padding: 14px 18px 16px; border: 1px solid var(--ask-card-edge); border-left-width: 3px;
  border-radius: var(--radius-row); background: var(--ask-card-panel); box-shadow: var(--glass-highlight), var(--glass-shadow);
}
.ask-auditlog__msg[data-role="user"] > article { border-left-color: var(--accent-strong); }
.ask-auditlog__msg[data-role="app_event"] > article { background: var(--surface-muted); box-shadow: none; }
.ask-auditlog__msg[data-branch="other"] > article { border-style: dashed; box-shadow: none; }
.ask-auditlog__msghead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.ask-auditlog__who { margin: 0; color: var(--ink); font-size: 15px; font-weight: 650; }
.ask-auditlog__branch { font-weight: 600; }
.ask-auditlog__msg[data-branch="other"] .ask-auditlog__branch { color: var(--warn); }
.ask-auditlog p { margin: 0; }
.ask-auditlog__meta, .ask-auditlog__note, .ask-auditlog__iolabel { color: var(--muted); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.ask-auditlog__iolabel { font-weight: 600; }
.ask-auditlog__words { color: var(--muted); font-size: 14px; font-style: italic; }
.ask-auditlog__said { color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.ask-auditlog__sent { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.ask-auditlog__failure { color: var(--bad); }
.ask-auditlog__feedback, .ask-auditlog__event { color: var(--ink); overflow-wrap: anywhere; }
.ask-auditlog__code { font-family: var(--font-mono); font-size: 12px; overflow-wrap: anywhere; }
.ask-auditlog__flow { display: grid; gap: 10px; min-width: 0; }
.ask-auditlog__narration { color: var(--ink-soft); font-size: 14px; overflow-wrap: anywhere; }
.ask-auditlog .ask-answer { font-size: 15px; line-height: 1.65; }
.ask-auditlog__answer > :first-child { margin-top: 0; }
.ask-auditlog :is(.ask-copy-code, .ask-copy-table) { display: none; }
.ask-auditlog__notice { color: var(--muted); font-size: 14px; }

.ask-auditlog__steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ask-auditlog__step { display: grid; gap: 4px; min-width: 0; padding-left: 12px; border-left: 2px solid var(--line-strong); }
.ask-auditlog__step[data-status="error"], .ask-auditlog__step[data-status="not_allowed"] { border-left-color: var(--bad); }
.ask-auditlog__step[data-status="discarded"] { opacity: .75; border-left-style: dashed; }
.ask-auditlog__steplabel { color: var(--ink); font-size: 14px; font-weight: 550; overflow-wrap: anywhere; }
.ask-auditlog__json {
  max-height: 26rem; margin: 0; padding: 10px 12px; overflow: auto; border-radius: var(--radius-control); background: var(--surface-muted);
  color: var(--ink-soft); font-family: var(--font-mono); font-size: 12px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere;
}
.ask-auditlog__more > summary { width: fit-content; color: var(--accent-strong); font-size: 13px; font-weight: 550; cursor: pointer; }
.ask-auditlog__more[open] > summary { margin-bottom: 6px; }

.ask-auditlog__card {
  display: grid; gap: 10px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-control);
  background: var(--surface); scroll-margin-top: 80px;
}
.ask-auditlog__card:target { border-color: var(--accent-strong); box-shadow: 0 0 0 2px var(--accent-soft); }
.ask-auditlog__cardtitle { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; color: var(--ink); font-size: 14px; font-weight: 650; }
.ask-auditlog__ref { color: var(--faint); font-family: var(--font-mono); font-size: 12px; font-weight: 400; }
.ask-auditlog__proposal { display: grid; gap: 8px; min-width: 0; padding-top: 10px; border-top: 1px solid var(--line); }
.ask-auditlog__proposaltitle { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.ask-auditlog__quote { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; font-style: italic; overflow-wrap: anywhere; }
.ask-auditlog__notes { display: grid; gap: 2px; margin: 0; padding-left: 1.2em; color: var(--ink-soft); font-size: 13.5px; }
.ask-auditlog__receipt {
  display: grid; gap: 4px; min-width: 0; padding: 10px 12px; border-left: 3px solid var(--good); border-radius: 0 var(--radius-control) var(--radius-control) 0;
  background: var(--surface-muted);
}
.ask-auditlog__receipt:is([data-status="refused"], [data-status="failed"]) { border-left-color: var(--bad); }
.ask-auditlog__receipt:is([data-status="running"], [data-status="unknown"], [data-status="partly_done"]) { border-left-color: var(--warn); }
.ask-auditlog__receipthead { color: var(--ink); font-size: 14px; }

.ask-auditlog__files { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ask-auditlog__file { display: grid; gap: 4px; min-width: 0; scroll-margin-top: 80px; }
.ask-auditlog__file .ask-auditlog__said { color: var(--ink-soft); font-size: 14px; }
.ask-auditlog__filename { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }

@media (max-width: 720px) {
  .ask-auditlog__filters > .ask-auditlog__toggle { display: inline-flex; }
  .ask-auditlog__filters[open] > .ask-auditlog__toggle { margin-bottom: 16px; }
  .ask-auditlog__msg > article { padding: 12px 14px 14px; }
  .ask-auditlog__facts { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ask-auditlog__facts > div + div > dt { margin-top: 6px; }
  .ask-auditlog__form .fx-input { font-size: 16px; }
  .ask-auditlog__table .ask-auditlog__name { min-width: 11rem; }
}

/* ------------------------------------------------------------------ Settings → AI */

/* When Anthropic rejected the key, under the status's words; the daily budgets as two short amounts side by side (one
   above the other on a phone), each with its hint, then their one Save. */
.rd-ai-status .set-ai-health__when { margin-top: 4px; color: var(--ink); font-weight: 600; }
.rd-settings .set-ask-budgets { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.rd-settings .set-ask-budgets__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 15rem)); gap: 14px 28px; }
.rd-settings .set-ask-budget { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rd-settings .set-ask-budget__amount { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); }
.rd-settings .set-ask-budget__amount .fx-input { flex: 1; min-width: 0; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) {
  .rd-settings .set-ask-budgets__fields { grid-template-columns: minmax(0, 1fr); width: 100%; }
  .rd-settings .set-ask-budget__amount .fx-input { font-size: 16px; }
}

/* ------------------------------------------------------------------ surfaces and preferences */

.ask-drawer :is(.ask-card, .ask-card-reveal, .ask-card-batch) { --ask-card-pad: 14px; }
.ask-drawer .ask-card { padding-top: 12px; }

@media (max-width: 600px) {
  :is(.ask-card, .ask-card-reveal, .ask-card-batch) { --ask-card-pad: 14px; }
  .ask-card { padding-top: 12px; }
  .ask-card__input :is(input, textarea, select), .ask-card__question :is(input, textarea, select), .ask-card-reveal__link { font-size: 16px; }
}
/* A card wide enough sets each value beside its name. */
.ask-card { container: ask-card / inline-size; }
@container ask-card (min-width: 520px) {
  .ask-card__fields { grid-template-columns: minmax(10ch, max-content) minmax(0, 1fr); gap: 8px 20px; }
  .ask-card__field { display: contents; }
  .ask-card__field dt { padding-top: 1px; }
}
@media (pointer: coarse) {
  :is(.ask-card, .ask-card-reveal, .ask-card-batch) { --ask-card-target: 44px; }
  .ask-card__entry { padding-block: 11px; }
  .ask-files__attach { width: 44px; height: 44px; }
  .ask-files .ask-file__remove { top: -7px; right: -7px; width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .ask-card__link, .ask-card__button, .ask-card__option, .ask-files__attach, .ask-file__remove { transition: none; }
  .ask-card__bar::-webkit-progress-value, .ask-file__progress::-webkit-progress-value { transition: none; }
}
@media (forced-colors: active) {
  .ask-card, .ask-file, .ask-card__table, .ask-card__link, .ask-card__status, .ask-card__button, .ask-card__tier, .ask-card__source,
  .ask-card__banner, .ask-card__acks, .ask-card__result-mark, .ask-card__alert, .ask-card-reveal, .ask-card-reveal__link,
  .ask-card-batch, .ask-card__option, .ask-card__ask, .ask-card__fact { border: 1px solid CanvasText; }
  .ask-card__option:has(input:checked), .ask-card__fact:has(input:checked) { border: 2px solid Highlight; }
  .ask-card__button:is(:disabled, [aria-disabled="true"]) { border-color: GrayText; color: GrayText; }
  .ask-card--hidden { border-style: dashed; }
  .ask-card__bar { border: 1px solid CanvasText; }
  .ask-card__bar::-webkit-progress-value { background: Highlight; }
  .ask-card__bar::-moz-progress-bar { background: Highlight; }
  .ask-files__attach, .ask-file__remove { border: 1px solid ButtonText; }
  .ask-files__drop { border: 2px dashed Highlight; }
  .ask-file__progress { border: 1px solid CanvasText; }
  .ask-file__progress::-webkit-progress-value { background: Highlight; }
  .ask-file__progress::-moz-progress-bar { background: Highlight; }
  .ask-auditlog__msg > article, .ask-auditlog__card, .ask-auditlog__receipt, .ask-auditlog__gone, .ask-auditlog__tag,
  .ask-auditlog__json { border: 1px solid CanvasText; }
  .ask-auditlog__msg[data-branch="other"] > article { border-style: dashed; }
}
@media print {
  .ask-card, .ask-file { background: none; box-shadow: none; }
  .ask-card__buttons, .ask-card__revise, .ask-card__acks, .ask-card-reveal, .ask-card-batch, .ask-card__actions button,
  .ask-card__ask, .ask-card__facts-form > .ask-card__button, .ask-card__pick input, .ask-card__review .ask-card__actions,
  .ask-file__remove, .ask-auditlog__filters, .ask-auditlog__pages { display: none; }
  .ask-card__table, .ask-auditlog__scroll, .ask-auditlog__json { overflow: visible; max-height: none; }
  .ask-auditlog__msg > article { background: none; box-shadow: none; }
}

/* zzzzzzzzzzzzzzzzzzz_ask_chat.css */
/* Ask Tarivo as a chat (SPEC v2 §9.1, §9.8, §9.10, §9.11): the page shell, the conversation and its messages, and the
   answers' Markdown. Materials come only from the glass tokens (zz_glass.css) through the --ask-* aliases below, so dark
   mode, reduced transparency and print follow them. Answers are typographic prose on the canvas; glass is kept for what
   the person touches (bubbles, the composer, menus). Motion is spent on the answer arriving: the caret, the status
   shimmer and the running step; nothing animates on load, and reduced motion stills all of it. */

.ask-shell, .ask-drawer, .ask-toasts {
  --ask-column: 768px;
  --ask-sidebar: 272px;
  --ask-gutter: 24px;
  --ask-indent: 36px;
  --ask-gap: 32px;
  --ask-bubble: var(--glass-selected);
  --ask-panel: var(--glass-sheen), var(--glass-raised);
  --ask-cite-bg: var(--accent-soft);
  --ask-cite-ink: var(--accent-strong);
  --ask-caret: var(--accent);
  --ask-radius-bubble: 20px 20px 6px 20px;
  --ask-radius-composer: 26px;
  --ask-radius-row: 10px;
  --ask-target: 32px;
}

/* ------------------------------------------------------------------ the page */

/* The chat fills the window below the top bar (and any banner above the page); only the conversation scrolls. */
/* --ask-keyboard: the room an on-screen keyboard covers where the browser does not resize the page for it (the composer
   sets it from visualViewport). */
body.ask-page { height: calc(100dvh - var(--ask-keyboard, 0px)); display: flex; flex-direction: column; overflow: hidden; }
body.ask-page > * { flex: none; }
.ask-page > .fx-main { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
/* On a short window (a phone on its side, a page zoomed to 400%) the bars that never scroll away would leave the
   conversation a slit: the page scrolls instead, the conversation keeps nearly a window's height of its own, and the
   box grows less. */
@media (max-height: 500px) {
  body.ask-page { height: auto; min-height: calc(100dvh - var(--ask-keyboard, 0px)); overflow: visible; }
  .ask-page > .fx-main { flex: 1 0 auto; }
  body.ask-page .ask-thread { flex: none; height: calc(100dvh - var(--ask-keyboard, 0px) - 24px); min-height: 160px; }
  body.ask-page .ask-composer__input { max-height: 25vh; }
}

/* Ask respects the same expanded/compact navigation preference as every other page.
   A slimmer chat list leaves room for the conversation on smaller desktop windows. */
@media (min-width: 901px) and (max-width: 1200px) {
  .ask-shell { --ask-sidebar: 220px; --ask-gutter: 18px; --ask-indent: 0px; }
}
/* The rail's Ask Tarivo link stands out from the other destinations. */
.ws-nav-link[data-workspace-destination="assistant"] { color: var(--accent-strong); font-weight: 650; margin-bottom: 8px; }

.ask-shell { flex: 1 1 auto; display: flex; min-height: 0; color: var(--ink); }
.ask-shell__column { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.ask-main { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }

.ask-header {
  flex: none; display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 10px var(--ask-gutter) 10px 12px;
  border-bottom: 1px solid var(--line);
}
.ask-header__title {
  min-width: 0; margin: 0; overflow: hidden; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.4;
  letter-spacing: -.01em; text-overflow: ellipsis; white-space: nowrap;
}
.ask-badge {
  flex: none; padding: 1px 8px; border: 1px solid currentColor; border-radius: var(--radius-pill, 999px);
  color: var(--glass-mint); font-size: 11px; font-weight: 600; line-height: 1.5; white-space: nowrap;
}

/* ------------------------------------------------------------------ the conversation */

/* Positioned, so it clips everything inside it (the screen-reader headings included) and the page itself never scrolls. */
/* ask-scroll keeps the position itself (following the bottom, "Show earlier" above), so the browser's own scroll
   anchoring would move it twice. */
.ask-thread {
  position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-gutter: stable both-edges; overflow-anchor: none;
}
.ask-thread:focus-visible { outline-offset: -2px; }
.ask-thread__column {
  display: flow-root; max-width: calc(var(--ask-column) + 2 * var(--ask-gutter)); margin: 0 auto;
  padding: 28px var(--ask-gutter) 24px;
}
turbo-frame.ask-older { display: block; }
/* "Show earlier" loads when it comes into view: not before ask-scroll has opened the conversation at its newest message. */
.ask-thread:not([data-ask-scroll-placed]) turbo-frame.ask-older { display: none; }
.ask-older__loading { margin: 0 0 var(--ask-gap); color: var(--muted); font-size: 13px; text-align: center; }

.ask-msg { margin: 0 0 var(--ask-gap); }
/* A question's own action row already separates it from its answer. */
.ask-msg--user { margin-bottom: 12px; }
.ask-msg[hidden] { display: none; }

/* What the person sent: their words in a glass bubble on the right. */
.ask-msg--user { display: flex; flex-direction: column; align-items: flex-end; }
.ask-bubble {
  max-width: min(80%, 560px); padding: 10px 16px; border: 1px solid var(--glass-border);
  border-radius: var(--ask-radius-bubble); background: var(--ask-bubble); box-shadow: var(--glass-highlight);
  color: var(--ink); font-size: 16px; line-height: 1.6; overflow-wrap: anywhere;
}
.ask-bubble p { margin: 0; }
.ask-bubble p + p { margin-top: .6em; }
.ask-msg__attachments { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: min(80%, 560px); margin-top: 6px; }

/* Editing a sent message: the bubble gives way to a box as wide as the column, its focus shown on the whole box. */
.ask-edit {
  align-self: stretch; display: grid; gap: 6px; padding: 10px 10px 8px 16px; border: 1px solid var(--glass-border);
  border-radius: 18px; background: var(--ask-panel); box-shadow: var(--glass-highlight), var(--glass-shadow);
  -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
}
.ask-edit:has(.ask-edit__field:focus-visible) { border-color: var(--accent); box-shadow: var(--glass-highlight), 0 0 0 1px var(--accent), var(--glass-shadow); }
.ask-edit[aria-busy="true"] { opacity: .75; }
.ask-edit__field {
  display: block; width: 100%; min-height: 4.8em; max-height: 40vh; margin: 0; padding: 4px 0; border: 0; background: none;
  color: var(--ink); font: 16px/1.6 var(--font-sans); resize: none; overflow-y: auto; field-sizing: content;
}
.ask-edit__field:is(:focus, :focus-visible) { outline: none; }
.ask-edit__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin: 0; }
.ask-edit__hint { flex: 1 1 auto; color: var(--muted); font-size: 12px; line-height: 18px; }
.ask-edit__buttons { display: flex; gap: 8px; margin-left: auto; }
.ask-edit__hint[data-tone="error"] { color: var(--bad); }
.ask-edit__send {
  display: inline-flex; align-items: center; min-height: var(--ask-target); padding: 0 16px; border: 0; border-radius: var(--radius-pill, 999px);
  background: linear-gradient(155deg, var(--accent), var(--accent-strong)); color: var(--accent-ink); font-size: 13.5px; font-weight: 600;
  cursor: pointer;
}
.ask-edit__send:hover { background: var(--accent-strong); }
.ask-edit__send:disabled { background: var(--surface-muted); color: var(--faint); cursor: default; }

/* Tarivo's answer: no bubble, prose on the canvas beside Tarivo's mark. */
.ask-msg--assistant { position: relative; padding-left: var(--ask-indent); }
.ask-msg--assistant > .assistant-avatar { position: absolute; top: 1px; left: 0; width: 24px; height: 24px; border-radius: 6px; }

/* The one status line of an answer at work. */
.ask-status { display: flex; align-items: center; gap: 8px; min-height: 26px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.ask-status > .ask-icon { flex: none; color: var(--accent); }
/* Beside the avatar the status line needs no mark of its own (it shows below 600 px, where the avatar does not). */
.ask-msg--assistant > .assistant-avatar ~ .ask-status > .ask-icon { display: none; }
.ask-status__label {
  background: linear-gradient(90deg, var(--muted) 0%, var(--muted) 35%, var(--ink) 50%, var(--muted) 65%, var(--muted) 100%);
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: ask-shimmer 2.6s linear infinite;
}
/* A queued answer no runner takes (the poll's X-Ask-Worker): waiting still shimmers; a service that isn't running is a
   problem to fix, not work going on. */
.ask-status__label[data-ask-worker="down"] { animation: none; background: none; color: var(--warn); }
.ask-status__time { font-variant-numeric: tabular-nums; }
@keyframes ask-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* The flow: parts in the order they happened. A part with nothing to show takes no room. */
.ask-flow { display: flex; flex-direction: column; gap: 12px; }
.ask-status + .ask-flow { margin-top: 8px; }
.ask-flow:not(:has(*)) { display: none; }
.ask-part:not(:has(*)) { display: none; }

.ask-narration { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.ask-narration > .ask-icon { margin-right: 6px; color: var(--accent); vertical-align: -1px; }

.ask-steps { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ask-step { position: relative; padding-left: 26px; color: var(--ink-soft); font-size: 13.5px; line-height: 1.5; }
.ask-step__icon { position: absolute; top: 2px; left: 0; display: grid; place-items: center; width: 16px; height: 16px; color: var(--faint); }
.ask-step--running .ask-step__icon { color: var(--accent); }
.ask-step--running .ask-icon { animation: ask-spin .9s linear infinite; }
.ask-step--ok .ask-step__icon { color: var(--good); }
.ask-step--error .ask-step__icon { color: var(--bad); }
.ask-step--not_allowed .ask-step__icon { color: var(--muted); }
.ask-step__summary, .ask-step__time { color: var(--muted); font-variant-numeric: tabular-nums; }
@keyframes ask-spin { to { transform: rotate(360deg); } }

/* After it ends: "Worked for 9 s · 4 steps", folded. */
.ask-worked > summary {
  display: inline-flex; align-items: center; gap: 6px; min-height: 26px; color: var(--muted); font-size: 13.5px;
  list-style: none; cursor: pointer; border-radius: 6px;
}
.ask-worked > summary::-webkit-details-marker { display: none; }
.ask-worked > summary:hover { color: var(--ink-soft); }
.ask-worked > summary .ask-icon { transition: transform var(--motion) var(--ease); }
.ask-worked[open] > summary .ask-icon { transform: rotate(180deg); }
.ask-worked__body { display: grid; gap: 10px; margin: 8px 0 4px 6px; padding-left: 14px; border-left: 1px solid var(--line-strong); }

.ask-notice { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.ask-notice__offer { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }

/* A failure: what happened in words, what an admin can do, and what to do next. Not boxed: a rule in --bad. */
.ask-failure { display: grid; gap: 6px; padding: 2px 0 2px 14px; border-left: 3px solid var(--bad); font-size: 15px; line-height: 1.55; }
.ask-failure p { margin: 0; }
.ask-failure__admin { color: var(--muted); font-size: 14px; }
.ask-failure__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.ask-failure__guide { margin-top: 6px; color: var(--ink-soft); font-size: 14px; }
.ask-failure__guide p { margin: 0 0 6px; }
.ask-failure__guide-text ul, .ask-failure__guide-text ol { margin: 0 0 6px; padding-left: 20px; }
.ask-failure__guide-text li { margin: 2px 0; }
.ask-failure__guide-link { color: var(--accent-strong); font-weight: 550; }

.ask-memory { margin: 12px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }

/* Sources, numbered as the chips in the answer. */
.ask-sources { margin-top: 16px; }
.ask-sources__title { margin: 0 0 6px; color: var(--muted); font-size: 12.5px; font-weight: 600; letter-spacing: 0; }
.ask-sources__list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; line-height: 1.5; }
.ask-source { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; column-gap: 8px; }
.ask-source__n {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 6px;
  background: var(--ask-cite-bg); color: var(--ask-cite-ink); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.ask-source__link { color: var(--ink-soft); text-decoration-color: var(--line-strong); overflow-wrap: anywhere; }
.ask-source__link:hover { color: var(--accent-strong); }
.ask-source__label { color: var(--ink-soft); overflow-wrap: anywhere; }
.ask-source__earlier { grid-column: 2; color: var(--muted); font-size: 12.5px; }

/* The action bar: quiet icon buttons, shown with the message they act on; always under the last answer and on touch. */
.ask-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin-top: 8px; transition: opacity 120ms var(--ease); }
.ask-msg--user > .ask-actions { justify-content: flex-end; margin-top: 4px; }
.ask-msg:is(.ask-msg--user, .ask-msg--assistant) > .ask-actions { opacity: 0; }
.ask-msg:is(:hover, :focus-within) > .ask-actions,
#ask-transcript-list > .ask-msg--assistant:not(:has(~ .ask-msg--assistant)) > .ask-actions,
#ask-transcript-list > .ask-msg--user:not(:has(~ .ask-msg--user)) > .ask-actions { opacity: 1; }
.ask-action {
  display: inline-grid; place-items: center; width: var(--ask-target); height: var(--ask-target); padding: 0; border: 0;
  border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer;
}
.ask-action:hover { background: var(--glass-surface); color: var(--ink); }
.ask-action[aria-pressed="true"] { color: var(--accent-strong); }
.ask-action:disabled { opacity: .4; cursor: default; background: transparent; }
.ask-actions__text {
  display: inline-flex; align-items: center; min-height: var(--ask-target); padding: 0 14px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill, 999px); background: var(--glass-surface); color: var(--ink); font-size: 13.5px;
  font-weight: 550; text-decoration: none; cursor: pointer;
}
.ask-actions__text:hover { background: var(--glass-selected); color: var(--ink); }
.ask-actions__text:disabled { opacity: .45; background: var(--glass-surface); cursor: default; }
.ask-actions > .ask-actions__text { margin-right: 6px; }
.ask-action[aria-busy="true"], .ask-actions__text[aria-busy="true"] { opacity: .6; cursor: progress; }
/* "Copied": for a moment the button that copied turns green. */
.ask-action.is-copied, .ask-copy-code.is-copied, .ask-copy-table.is-copied { color: var(--good); }
.ask-actions__link { color: var(--accent-strong); font-size: 14px; font-weight: 550; }

/* Thumbs and the note sit in the bar; an open note takes its own row. */
.ask-feedback { display: contents; }
.ask-feedback__note > summary {
  display: inline-flex; align-items: center; min-height: var(--ask-target); padding: 0 8px; border-radius: 8px;
  color: var(--muted); font-size: 13px; list-style: none; cursor: pointer;
}
.ask-feedback__note > summary::-webkit-details-marker { display: none; }
.ask-feedback__note > summary:hover { color: var(--ink); background: var(--glass-surface); }
.ask-feedback__note[open] { order: 10; flex-basis: 100%; padding-top: 4px; }
.ask-feedback__note label { display: block; margin: 6px 0 4px; color: var(--muted); font-size: 13px; }
.ask-feedback__field {
  display: block; width: 100%; max-width: 480px; min-height: 64px; padding: 8px 12px; border: 1px solid var(--control-border); border-radius: var(--ask-radius-row);
  background: var(--glass-raised); color: var(--ink); font-size: 14px; line-height: 1.5; resize: vertical;
}
.ask-feedback__save { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }

.ask-branch { display: inline-flex; align-items: center; }
.ask-branch__position { min-width: 34px; color: var(--muted); font-size: 13px; text-align: center; font-variant-numeric: tabular-nums; }

/* For admins: what the answer cost, in a popover under "Details". */
.ask-details { position: relative; }
.ask-details > summary {
  display: inline-flex; align-items: center; min-height: var(--ask-target); padding: 0 8px; border-radius: 8px;
  color: var(--muted); font-size: 13px; list-style: none; cursor: pointer;
}
.ask-details > summary::-webkit-details-marker { display: none; }
.ask-details > summary:hover { color: var(--ink); background: var(--glass-surface); }
.ask-details__list {
  position: absolute; z-index: 5; top: calc(100% + 6px); left: 0; display: grid; gap: 6px; width: max-content;
  max-width: min(420px, 80vw); margin: 0; padding: 12px 14px; border: 1px solid var(--glass-border); border-radius: 14px;
  background: var(--ask-panel); box-shadow: var(--shadow-menu); font-size: 13px; line-height: 1.45;
  -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
}
.ask-details__list > div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; }
.ask-details__list dt { color: var(--muted); }
.ask-details__list dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* Something that happened outside a turn: a small centred row, with the card it carries below. */
.ask-msg--event { display: grid; justify-items: center; gap: 12px; }
.ask-event {
  max-width: 100%; margin: 0; padding: 4px 12px; border: 1px solid var(--line); border-radius: var(--radius-pill, 999px);
  background: var(--glass-surface); color: var(--muted); font-size: 13px; line-height: 1.5; text-align: center;
}
.ask-msg--event > :not(.ask-event) { justify-self: stretch; margin-left: var(--ask-indent); }
/* A product's code is ready: news the person waited for, so it reads as the answer it is. */
.ask-event[data-kind="code_ready"][data-outcome="done"] { border-color: color-mix(in srgb, var(--good) 45%, var(--line)); color: var(--ink); }

.ask-hidden { margin: 0; color: var(--muted); font-size: 13.5px; font-style: italic; text-align: center; }

/* The window floor: the exchanges above it are no longer sent to Tarivo. */
.ask-divider { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 12px; margin: 0 0 var(--ask-gap); color: var(--muted); font-size: 12.5px; }
.ask-divider::before, .ask-divider::after { content: ""; flex: 1 1 40px; height: 1px; background: var(--line-strong); }
.ask-divider__words { margin: 0; }
.ask-divider__action { padding: 4px 6px; border: 0; border-radius: 6px; background: none; color: var(--accent-strong); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.ask-divider__action:hover { text-decoration: underline; }

.ask-jump {
  position: sticky; bottom: 16px; z-index: 2; display: flex; align-items: center; gap: 6px; height: 34px; margin: 0 auto;
  padding: 0 14px; border: 1px solid var(--glass-border); border-radius: var(--radius-pill, 999px); background: var(--ask-panel);
  box-shadow: var(--glass-shadow); color: var(--ink-soft); font-size: 13px; cursor: pointer;
  -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
}
.ask-jump__unread { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ------------------------------------------------------------------ answers (AskTravio::Markdown) */

.ask-answer { color: var(--ink); font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
/* The settled blocks and the streaming tail are one run of prose. */
.ask-answer__blocks, .ask-answer__tail { display: contents; }
.ask-answer :is(p, ul, ol, blockquote, pre, hr), .ask-answer .ask-md-table { margin: .85em 0 0; }
.ask-answer :is(h3, h4, h5) { margin: 1.4em 0 0; }
.ask-answer :is(h3, h4, h5) + :is(p, ul, ol, .ask-md-table) { margin-top: .4em; }
.ask-answer__blocks > :first-child, .ask-answer__blocks:empty + .ask-answer__tail > :first-child { margin-top: 0; }
.ask-answer h3 { color: var(--ink); font-size: 18px; font-weight: 650; line-height: 1.4; letter-spacing: -.01em; }
.ask-answer h4 { color: var(--ink); font-size: 16px; font-weight: 650; line-height: 1.45; letter-spacing: 0; }
.ask-answer h5 { color: var(--ink-soft); font-size: 14px; font-weight: 600; line-height: 1.45; letter-spacing: 0; }
.ask-answer strong { font-weight: 650; }
.ask-answer :is(ul, ol) { padding-left: 1.5em; }
.ask-answer li { padding-left: .15em; }
.ask-answer li + li { margin-top: .3em; }
.ask-answer li::marker { color: var(--muted); }
.ask-answer li > :is(p, ul, ol) { margin-top: .3em; }
.ask-answer li > p:first-child { margin-top: 0; }
.ask-answer blockquote { padding-left: 1em; border-left: 3px solid var(--line-strong); color: var(--ink-soft); }
.ask-answer blockquote > :first-child { margin-top: 0; }
.ask-answer hr { height: 0; margin-top: 1.4em; margin-bottom: 1.4em; border: 0; border-top: 1px solid var(--line-strong); }
/* A code in the text (an HTS heading, a part number) reads as one word and never breaks inside: a table's column grows
   to hold it (the table scrolls sideways). */
.ask-answer code { padding: .1em .35em; border-radius: 6px; background: var(--surface-muted); font-family: var(--font-mono); font-size: .88em; white-space: nowrap; }
.ask-answer pre {
  position: relative; padding: 14px 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface-muted); font-size: 13px; line-height: 1.6;
}
.ask-answer pre code { padding: 0; border-radius: 0; background: none; font-size: inherit; white-space: pre; overflow-wrap: normal; }

/* Copy code shows with its block (always on touch); Copy table is the table's quiet footer. */
.ask-copy-code {
  position: absolute; top: 8px; right: 8px; padding: 3px 9px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--glass-raised); color: var(--ink-soft); font-family: var(--font-sans); font-size: 12px; font-weight: 550;
  line-height: 1.5; cursor: pointer; opacity: 0; transition: opacity 120ms var(--ease);
}
.ask-copy-code:hover { color: var(--ink); background: var(--surface); }
pre:is(:hover, :focus-within) > .ask-copy-code { opacity: 1; }

.ask-md-table { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.ask-md-table:focus-visible { outline-offset: 2px; }
.ask-md-table table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.ask-md-table :is(th, td) { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: normal; }
.ask-md-table th { background: var(--surface-muted); color: var(--ink-soft); font-size: 13px; font-weight: 600; white-space: nowrap; }
.ask-md-table tbody tr:last-child > td { border-bottom: 0; }
.ask-md-table .ask-align-center { text-align: center; }
.ask-md-table .ask-align-right { text-align: right; }
.ask-copy-table {
  position: sticky; left: 0; display: block; width: 100%; padding: 6px 12px; border: 0; border-top: 1px solid var(--line); border-radius: 0;
  background: none; color: var(--muted); font-family: var(--font-sans); font-size: 12px; font-weight: 550; line-height: 1.5;
  text-align: left; cursor: pointer;
}
.ask-copy-table:hover { color: var(--accent-strong); }

/* Citation chips: numbered pills on the claim; a chip without a link is the same pill without hover. */
.ask-answer sup { line-height: 0; vertical-align: .3em; font-size: 1em; }
.ask-cite {
  display: inline-block; min-width: 18px; height: 18px; margin-left: 3px; padding: 0 5px; border-radius: 6px;
  background: var(--ask-cite-bg); color: var(--ask-cite-ink); font-size: 11px; font-weight: 600; line-height: 18px;
  text-align: center; font-variant-numeric: tabular-nums; letter-spacing: 0; text-decoration: none;
}
a.ask-cite:is(:hover, :focus-visible) { background: var(--accent); color: var(--accent-ink); }

.ask-unverified { text-decoration: underline dotted var(--warn); text-decoration-thickness: 1.5px; text-underline-offset: 3px; cursor: help; }
.ask-unverified-row > :first-child { box-shadow: inset 3px 0 0 var(--warn); }

.ask-caret {
  display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; border-radius: 1px; background: var(--ask-caret);
  vertical-align: -.15em; animation: ask-blink 1s step-end infinite;
}
@keyframes ask-blink { 50% { opacity: 0; } }

/* ------------------------------------------------------------------ the conversation list */

/* Beside the conversation on wide screens (folded away with ⌘B); a sheet below 900 px (see the end of the file). */
.ask-sidebar {
  flex: none; display: flex; flex-direction: column; width: var(--ask-sidebar); min-height: 0;
  border-right: 1px solid var(--line); color: var(--ink);
}
@media (min-width: 901px) {
  :root[data-ask-sidebar="collapsed"] .ask-sidebar { display: none; }
}
.ask-sidebar__top { flex: none; display: grid; gap: 8px; padding: 14px 12px 10px; }
.ask-sidebar__new {
  display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 10px; border-radius: var(--ask-radius-row);
  color: var(--ink); font-size: 14px; font-weight: 550; text-decoration: none;
}
.ask-sidebar__new:hover { background: var(--glass-surface); }
.ask-sidebar__new > .ask-icon { flex: none; color: var(--accent-strong); }
.ask-sidebar__kbd { margin-left: auto; color: var(--faint); font: 500 11px/1 var(--font-sans); letter-spacing: .06em; }
.ask-sidebar__search { position: relative; display: flex; align-items: center; }
.ask-sidebar__search > .ask-icon { position: absolute; left: 11px; color: var(--muted); pointer-events: none; }
.ask-sidebar__search-input {
  width: 100%; height: 36px; padding: 0 10px 0 33px; border: 1px solid var(--line-strong); border-radius: var(--ask-radius-row);
  background: var(--glass-surface); box-shadow: var(--shadow-input); color: var(--ink); font: 14px/1.4 var(--font-sans);
}
.ask-sidebar__search-input::placeholder { color: var(--muted); }
.ask-sidebar__search-input::-webkit-search-cancel-button { cursor: pointer; }

turbo-frame.ask-sidebar__frame {
  display: block; flex: 1 1 auto; min-height: 0; padding: 2px 8px 12px; overflow-x: hidden; overflow-y: auto;
  overscroll-behavior: contain; scrollbar-width: thin;
}
.ask-sidebar__frame turbo-frame { display: block; }
.ask-sidebar__note { margin: 10px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.ask-sidebar__note:has(~ .ask-sidebar__group .ask-conv) { display: none; }

/* Date groups, in sentence case; a group with nothing in it is kept for rows put into it, out of sight. */
.ask-sidebar__group { margin-top: 14px; }
.ask-sidebar__group:first-of-type, .ask-sidebar__group--continued { margin-top: 0; }
.ask-sidebar__group:not(:has(.ask-conv)) { display: none; }
.ask-sidebar__heading { margin: 0 10px 4px; padding-top: 4px; color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.5; letter-spacing: 0; }
.ask-sidebar__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; margin: 0; padding: 0; list-style: none; }

/* One conversation: its title on one line and, at the end, what stands out about it and its ⋯. */
.ask-conv { position: relative; display: flex; align-items: center; border: 1px solid transparent; border-radius: var(--ask-radius-row); }
.ask-conv:hover { background: var(--glass-surface); }
.ask-conv:has(> .ask-conv__link[aria-current="page"]) {
  border-color: var(--glass-border); background: var(--glass-sheen), var(--glass-selected); box-shadow: var(--glass-highlight);
}
.ask-conv__link {
  flex: 1 1 auto; display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 36px; padding: 0 4px 0 10px;
  border-radius: inherit; color: var(--ink-soft); font-size: 14px; line-height: 1.4; text-decoration: none;
}
.ask-conv__link[aria-current="page"] { color: var(--ink); font-weight: 550; }
.ask-conv__link:focus-visible { outline-offset: -2px; }
.ask-conv__title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ask-conv__sample {
  flex: none; padding: 0 6px; border: 1px solid currentColor; border-radius: var(--radius-pill, 999px); color: var(--glass-mint);
  font-size: 10.5px; font-weight: 600; line-height: 16px;
}
/* The Sample pill tells Sample chats from the others; while every chat listed is about the Sample data it says nothing. */
.ask-sidebar:not(:has(.ask-conv--actual)) .ask-conv__sample { display: none; }
.ask-conv__state { flex: none; }
.ask-conv__state:empty { display: none; }
/* Answering: a small dot with a slow ring (its words are for screen readers). */
.ask-conv__state--running {
  position: relative; width: 7px; height: 7px; margin: 0 4px; border-radius: 50%; background: var(--accent);
  color: transparent; font-size: 0; line-height: 0;
}
.ask-conv__state--running::after {
  content: ""; position: absolute; inset: -4px; border: 1px solid var(--accent); border-radius: 50%;
  animation: ask-pulse 1.8s var(--ease) infinite;
}
@keyframes ask-pulse { from { transform: scale(.5); opacity: .9; } to { transform: scale(1.3); opacity: 0; } }
.ask-conv__state--needs_you {
  padding: 0 7px; border-radius: var(--radius-pill, 999px); background: var(--warn-bg); color: var(--warn); font-size: 11px;
  font-weight: 600; line-height: 18px; white-space: nowrap;
}
.ask-conv__state--failed { display: grid; place-items: center; width: 16px; height: 16px; color: var(--bad); font-size: 0; line-height: 0; }
.ask-conv__state--failed::before {
  content: "!" / ""; display: grid; place-items: center; width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 50%;
  font-size: 10px; font-weight: 750; line-height: 1;
}
.ask-conv__more {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; margin-right: 4px; padding: 0; border: 0; border-radius: 8px;
  background: none; color: var(--muted); cursor: pointer; opacity: 0;
}
.ask-conv:is(:hover, :focus-within) > .ask-conv__more, .ask-conv:has(> .ask-conv__link[aria-current="page"]) > .ask-conv__more,
.ask-conv__more[aria-expanded="true"] { opacity: 1; }
.ask-conv__more:is(:hover, [aria-expanded="true"]) { background: var(--glass-raised); color: var(--ink); }

/* Rename in place (a row's title or the header's). */
.ask-rename {
  flex: 1 1 auto; min-width: 0; height: 32px; margin: 2px 4px 2px 6px; padding: 0 8px; border: 1px solid var(--accent);
  border-radius: 8px; background: var(--surface); color: var(--ink); font: 14px/1.4 var(--font-sans);
}
.ask-header > .ask-rename { flex: 0 1 440px; margin: 0; font-size: 15px; font-weight: 600; }

.ask-sidebar__foot { flex: none; padding: 8px 12px 12px; border-top: 1px solid var(--line); }
.ask-sidebar__archived {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 34px; padding: 0 10px; border: 0;
  border-radius: var(--ask-radius-row); background: none; color: var(--muted); font: 13.5px/1.4 var(--font-sans); cursor: pointer;
}
.ask-sidebar__archived:hover { background: var(--glass-surface); color: var(--ink); }
.ask-sidebar__archived[aria-pressed="true"] { background: var(--glass-selected); color: var(--ink); font-weight: 550; }

.ask-shell__backdrop { display: none; }

/* The header's own controls: the list's toggle, ⋯ and New chat (shown when the list is out of view). */
.ask-header__button {
  flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 9px;
  background: none; color: var(--muted); cursor: pointer;
}
.ask-header__button:is(:hover, [aria-haspopup][aria-expanded="true"]) { background: var(--glass-surface); color: var(--ink); }
.ask-header__end { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.ask-header__new { display: none; }
:root[data-ask-sidebar="collapsed"] .ask-header__new { display: inline-grid; }

/* One menu for every conversation's ⋯, beside the button that opened it. */
.ask-menu {
  position: fixed; inset: auto; min-width: 184px; margin: 0; padding: 6px; border: 1px solid var(--glass-border); border-radius: 14px;
  background: var(--ask-panel); box-shadow: var(--shadow-menu); color: var(--ink);
  -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
}
.ask-menu:popover-open { display: grid; gap: 2px; opacity: 1; transition: opacity 120ms var(--ease); }
@starting-style { .ask-menu:popover-open { opacity: 0; } }
.ask-menu__item {
  display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 0 10px; border: 0; border-radius: 9px; background: none;
  color: var(--ink-soft); font: 14px/1.4 var(--font-sans); text-align: left; cursor: pointer;
}
.ask-menu__item[hidden] { display: none; }
.ask-menu__item:is(:hover, :focus-visible) { background: var(--glass-selected); color: var(--ink); }
.ask-menu__item:focus-visible { outline-offset: -2px; }
.ask-menu__item--danger, .ask-menu__item--danger:is(:hover, :focus-visible) { color: var(--bad); }

/* ------------------------------------------------------------------ the start page */

.ask-empty {
  flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; gap: 30px; width: 100%;
  max-width: calc(var(--ask-column) + 2 * var(--ask-gutter)); margin: 0 auto; padding: 32px var(--ask-gutter); overflow-y: auto;
}
.ask-empty__intro { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.ask-empty__intro > .assistant-avatar { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 10px 28px rgba(116, 81, 223, .30); }
.ask-empty__greeting { margin: 0; color: var(--ink); font-size: 34px; font-weight: 500; line-height: 1.15; letter-spacing: -.035em; }
turbo-frame.ask-empty__suggestions { display: block; min-height: 1px; }
.ask-suggestions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.ask-suggestion { display: flex; }
.ask-suggestion__button {
  display: grid; align-content: start; gap: 3px; width: 100%; padding: 14px 16px; border: 1px solid var(--glass-border);
  border-radius: 16px; background: var(--glass-surface); box-shadow: var(--glass-highlight); color: var(--ink); font: inherit;
  text-align: left; cursor: pointer; transition: background-color 120ms var(--ease);
}
.ask-suggestion__button:hover { background: var(--glass-raised); }
.ask-suggestion__text { font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.ask-suggestion__detail { color: var(--muted); font-size: 13px; line-height: 1.45; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ the composer */

/* At the foot of the chat on the conversation's measure: what the next message is about, then the glass pill with the
   box and Send (Stop while Tarivo writes), then the hint. */
/* One column that never grows past the composer (a long "About: …" is cut with an ellipsis instead). */
.ask-composer {
  flex: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; width: 100%;
  max-width: calc(var(--ask-column) + 2 * var(--ask-gutter)); margin: 0 auto;
  padding: 4px var(--ask-gutter) max(10px, env(safe-area-inset-bottom));
}
.ask-composer__context:empty { display: none; }
.ask-composer__box {
  display: flex; align-items: flex-end; gap: 8px; padding: 8px 8px 8px 20px; border: 1px solid var(--glass-border);
  border-radius: var(--ask-radius-composer); background: var(--ask-panel); box-shadow: var(--glass-highlight), var(--glass-shadow);
  -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
  transition: border-color 120ms var(--ease), box-shadow 120ms var(--ease);
}
/* The box's focus is shown on the whole pill: its border and a ring in the accent. */
.ask-composer__box:has(.ask-composer__input:focus-visible) {
  border-color: var(--accent); box-shadow: var(--glass-highlight), 0 0 0 1px var(--accent), var(--glass-shadow);
}
.ask-composer__input {
  flex: 1 1 auto; min-width: 0; min-height: 36px; max-height: 40vh; margin: 0; padding: 6px 0; border: 0; background: none;
  color: var(--ink); font: 16px/1.5 var(--font-sans); resize: none; overflow-y: auto; field-sizing: content;
}
.ask-composer__input::placeholder { color: var(--muted); opacity: 1; }
.ask-composer__input:is(:focus, :focus-visible) { outline: none; }
.ask-composer__state { flex: none; display: flex; }
.ask-composer__send, .ask-composer__stop {
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  transition: background-color 120ms var(--ease), color 120ms var(--ease);
}
.ask-composer__send[hidden], .ask-composer__stop[hidden] { display: none; }
.ask-composer__send { background: linear-gradient(155deg, var(--accent), var(--accent-strong)); color: var(--accent-ink); }
.ask-composer__send:hover { background: var(--accent-strong); }
.ask-composer__send:disabled { background: var(--surface-muted); color: var(--faint); cursor: default; }
.ask-composer__send .ask-icon { stroke-width: 2; }
.ask-composer__stop { border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); }
.ask-composer__stop:hover { background: var(--surface-muted); }
.ask-composer__square { width: 12px; height: 12px; border-radius: 3px; background: currentColor; }
.ask-composer__foot {
  display: flex; justify-content: center; gap: 12px; margin: 0; color: var(--muted); font-size: 12px; line-height: 18px; text-align: center;
}
.ask-composer__hint[data-tone="busy"] { color: var(--ink-soft); }
.ask-composer__hint[data-tone="health"] { color: var(--warn); }
.ask-composer__health-action { font: inherit; font-weight: 600; color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.ask-composer__hint[data-tone="error"] { color: var(--bad); }
.ask-composer__count { flex: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ask-composer__count.is-over { color: var(--bad); font-weight: 600; }
/* What an answer is and is not: always shown, quieter than the hint. */
.ask-limitation { margin: 0; color: var(--muted); font-size: 11.5px; line-height: 16px; text-align: center; text-wrap: balance; }

/* "About: …": the page the next message is asked from, until the person drops it. */
.ask-context {
  justify-self: start; display: inline-flex; align-items: center; gap: 4px; max-width: 100%; margin-left: 12px; padding: 2px 3px 2px 12px;
  border: 1px solid var(--glass-border); border-radius: var(--radius-pill, 999px); background: var(--glass-surface);
  color: var(--ink-soft); font-size: 13px; line-height: 1.5;
}
.ask-context__words { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ask-context__drop {
  flex: none; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%;
  background: none; color: var(--muted); cursor: pointer;
}
.ask-context__drop:hover { background: var(--glass-selected); color: var(--ink); }

/* Which data a new chat is about (the start page of an organisation with Sample data). */
.ask-scope {
  display: inline-flex; gap: 2px; margin: 0; padding: 3px; border: 1px solid var(--glass-border); border-radius: var(--radius-pill, 999px);
  background: var(--glass-surface);
}
.ask-scope__option { position: relative; display: flex; }
.ask-scope__input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ask-scope__label {
  padding: 4px 14px; border-radius: var(--radius-pill, 999px); color: var(--muted); font-size: 13px; font-weight: 500; line-height: 1.5;
  transition: background-color 120ms var(--ease), color 120ms var(--ease);
}
.ask-scope__input:checked + .ask-scope__label { background: var(--glass-selected); box-shadow: var(--glass-highlight); color: var(--ink); }
.ask-scope__input:focus-visible + .ask-scope__label { outline: 2px solid var(--accent); outline-offset: 1px; }

/* A message the chat did not take, where it was shown: why, in the words of the refusal. */
.ask-refusal { display: grid; justify-items: end; gap: 2px; margin: 0 0 var(--ask-gap); }
.ask-refusal p { max-width: min(80%, 560px); margin: 0; color: var(--bad); font-size: 14px; line-height: 1.5; }
.ask-refusal .ask-refusal__admin { color: var(--muted); font-size: 13px; }

/* On a wide start page the greeting, the suggestions and the composer sit together in the middle; with the first
   message the conversation takes the room and the composer goes to the foot. */
@media (min-width: 601px) {
  .ask-shell__column:has(> .ask-main > .ask-empty:not([hidden])) > .ask-main { display: contents; }
  .ask-shell__column:has(> .ask-main > .ask-empty:not([hidden])) .ask-empty { flex: 0 1 auto; min-height: 0; margin-top: auto; padding-bottom: 20px; }
  .ask-shell__column:has(> .ask-main > .ask-empty:not([hidden])) > .ask-composer { margin-bottom: auto; }
}

/* ------------------------------------------------------------------ toasts */

/* #ask-toast: bottom centre (above the composer on the chat page), each toast a small glass panel. */
.ask-toasts {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 140; display: grid; justify-items: center;
  gap: 8px; width: max-content; max-width: calc(100vw - 32px); transform: translateX(-50%); pointer-events: none;
}
.ask-page .ask-toasts { bottom: calc(108px + env(safe-area-inset-bottom) + var(--ask-keyboard, 0px)); }
.ask-toasts:empty { display: none; }
.ask-toast {
  display: flex; align-items: center; gap: 4px; min-height: 44px; padding: 6px 6px 6px 16px; border: 1px solid var(--glass-border);
  border-radius: 14px; background: var(--ask-panel); box-shadow: var(--shadow-menu); color: var(--ink); font-size: 14px;
  line-height: 1.45; pointer-events: auto; -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
}
.ask-toast__text { margin-right: 8px; overflow-wrap: anywhere; }
.ask-toast__form { display: contents; }
.ask-toast__action {
  flex: none; padding: 6px 10px; border: 0; border-radius: 8px; background: none; color: var(--accent-strong);
  font: 600 14px/1.4 var(--font-sans); text-decoration: none; cursor: pointer;
}
.ask-toast__action:hover { background: var(--glass-selected); }
.ask-toast__close {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px;
  background: none; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer;
}
.ask-toast__close:hover { background: var(--glass-surface); color: var(--ink); }

/* ------------------------------------------------------------------ the drawer */

/* A compact window floats in the corner without changing the page's layout. */
.ask-drawer { --ask-gutter: 16px; --ask-indent: 0px; --ask-gap: 26px; }
.ask-drawer[hidden] { display: none; }
.ask-drawer:focus { outline: none; }
.ask-drawer__sheet {
  position: fixed; top: auto; right: 12px; bottom: 12px; z-index: 80; display: flex; flex-direction: column;
  width: min(384px, calc(100vw - 24px));
  height: min(560px, calc(100dvh - var(--topbar-height, 66px) - 32px));
  overflow: hidden; border: 1px solid var(--glass-border); border-radius: 20px; color: var(--ink);
  background: var(--glass-sheen), var(--glass-raised);
  box-shadow: var(--glass-highlight), var(--shadow-menu);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
}
@media (min-width: 601px) { .ask-drawer__sheet { right: 16px; bottom: 16px; } }
/* A small entrance cue when the person opens the window. */
.ask-drawer[data-opening] .ask-drawer__sheet { animation: ask-drawer-in 180ms var(--ease); }
@keyframes ask-drawer-in { from { transform: translateX(24px); opacity: 0; } }

turbo-frame.ask-drawer__frame { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; transition: opacity 120ms var(--ease); }
turbo-frame.ask-drawer__frame[aria-busy="true"] { opacity: .55; }
.ask-drawer__status { flex: none; margin: 0; padding: 20px 16px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.ask-drawer__status[hidden] { display: none; }
.ask-drawer__status > p { margin: 0; }
.ask-drawer__status[role="alert"] { display: grid; gap: 10px; color: var(--ink-soft); }
.ask-drawer__status-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.ask-drawer__panel { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.ask-drawer__bar {
  flex: none; display: flex; align-items: center; gap: 2px; min-height: 54px; padding: 8px 8px 8px 14px;
  border-bottom: 1px solid var(--line);
}
.ask-drawer__bar > .assistant-avatar {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; margin-right: 4px; border: 1px solid var(--glass-border);
  border-radius: 50%; background: var(--glass-sheen), var(--glass-inset); box-shadow: var(--glass-highlight); color: var(--accent-strong);
}
.ask-drawer__bar > .assistant-avatar svg { width: 26px; height: 26px; }
.ask-drawer__context-notice {
  flex: none; display: flex; align-items: center; gap: 6px; min-width: 0; margin: 9px 12px 0; padding: 7px 10px;
  border: 1px solid var(--glass-border); border-radius: 9px; background: var(--glass-sheen), var(--glass-inset);
  color: var(--ink-soft); font-size: 12px; line-height: 1.35;
}
.ask-drawer__context-notice[hidden] { display: none; }
.ask-drawer__context-notice-label { flex: none; font-weight: 650; }
.ask-drawer__context-notice-about { min-width: 0; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.ask-drawer__context-title {
  flex: 1 1 auto; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--ink); font-size: 14px; font-weight: 650; line-height: 1.3;
}
.ask-drawer__heading { flex: none; display: flex; align-items: center; gap: 2px; }
.ask-drawer__full {
  flex: none; display: inline-flex; align-items: center; min-height: 32px; padding: 0 8px; border-radius: 8px;
  color: var(--accent-strong); font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.ask-drawer__full:hover { background: var(--glass-selected); }

/* The context's one or two suggested questions sit beside the composer. */
.ask-drawer__starters { flex: none; margin-top: auto; padding: 0 16px 8px; }
.ask-drawer__starters:not([data-mode]) { display: none; }
.ask-drawer__panel:has(> #ask-transcript:not([hidden])) > .ask-drawer__starters[data-mode="new"] { display: none; }
turbo-frame.ask-drawer__suggestions { display: block; }
.ask-drawer .ask-suggestions { grid-template-columns: 1fr; gap: 6px; }
.ask-drawer .ask-suggestion__button { padding: 8px 11px; border-radius: 10px; }
.ask-drawer .ask-suggestion__text { font-size: 13px; }
.ask-drawer .ask-suggestion__detail { display: none; }

/* The conversation, a step smaller for the narrower column. */
.ask-drawer .ask-thread__column { padding-top: 18px; }
.ask-drawer .ask-answer { font-size: 15px; line-height: 1.65; }
.ask-drawer .ask-bubble { max-width: 88%; font-size: 15px; }
.ask-drawer .ask-msg--assistant > .assistant-avatar { display: none; }
.ask-drawer .ask-msg--assistant > .assistant-avatar ~ .ask-status > .ask-icon { display: block; }
.ask-drawer .ask-md-table :is(th, td):first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); }
.ask-drawer .ask-md-table th:first-child { background: var(--surface-muted); }
.ask-drawer .ask-composer { max-width: none; padding: 4px 12px max(10px, env(safe-area-inset-bottom)); }
.ask-drawer .ask-composer__box { padding-left: 16px; }
.ask-drawer .ask-context { margin-left: 8px; }

/* Tarivo's mark (ask/_avatar), wherever it shows: each place may size it. */
/* Tarivo's AI mark (AiMarkHelper#ai_mark): one image, sized where it is used, never stretched or recoloured. */
.ai-mark { display: block; flex: none; border-radius: 25%; object-fit: contain; user-select: none; -webkit-user-drag: none; }

/* The compact assistant carries a vivid mark and color edge without changing its footprint. */
.assistant-launcher {
  position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, calc(env(safe-area-inset-bottom) + 12px));
  z-index: 76; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
  padding: 5px 13px 5px 5px; border: 1px solid transparent; border-radius: 999px;
  background: linear-gradient(105deg, rgba(48, 128, 248, .15), rgba(161, 92, 222, .13) 54%, rgba(255, 164, 103, .14)) padding-box,
              linear-gradient(var(--glass-raised), var(--glass-raised)) padding-box,
              linear-gradient(115deg, #4EA8F8, #8B6EEA 45%, #EC72AC 75%, #F6A756) border-box;
  color: var(--ink);
  box-shadow: var(--glass-highlight), 0 10px 26px -12px rgba(85, 92, 218, .4), var(--shadow-menu); text-decoration: none;
  font-size: 13px; font-weight: 650; white-space: nowrap;
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
}
.assistant-launcher:hover {
  background: linear-gradient(105deg, rgba(48, 128, 248, .23), rgba(161, 92, 222, .2) 54%, rgba(255, 164, 103, .2)) padding-box,
              linear-gradient(var(--glass-raised), var(--glass-raised)) padding-box,
              linear-gradient(115deg, #4EA8F8, #8B6EEA 45%, #EC72AC 75%, #F6A756) border-box;
  color: var(--ink);
}
.assistant-launcher[aria-expanded="true"] { display: none; }
.ask-launcher__logo { display: block; flex: none; width: 32px; height: 32px; border-radius: 8px; }

/* ------------------------------------------------------------------ entry points on other pages */

/* The keys help with the chat's shortcuts: on a phone each key sits above what it does. */
@media (max-width: 600px) {
  .ask-keys { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
  .ask-keys dd { margin-bottom: 10px; }
}

/* ------------------------------------------------------------------ smaller screens and touch */

/* Below 900 px the list is a sheet over the page, opened from the header's toggle. */
@media (max-width: 900px) {
  .ask-sidebar {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 130; width: min(320px, calc(100vw - 48px));
    border-right: 1px solid var(--glass-border); border-radius: 0 20px 20px 0; background: var(--glass-sheen), var(--glass-raised);
    box-shadow: var(--shadow-menu); transform: translateX(-100%); visibility: hidden;
    transition: transform 180ms var(--ease), visibility 0s linear 180ms;
    -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
  }
  .ask-sidebar.is-open { transform: none; visibility: visible; transition: transform 180ms var(--ease); }
  .ask-shell__backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 120; background: var(--scrim); }
  .ask-header__new { display: inline-grid; }
}
@media (max-width: 600px) {
  /* One bar above the chat's header (§9.1): the top bar keeps its menu, the brand and the account; its workspace switch
     (a chat keeps the workspace it began in, and the start page asks for it) and search give way, in the drawer too. */
  body.ask-page .ws-topbar :is(.ws-workspace, .fx-search-trigger), body.ask-page .ws-sidebar__workspace { display: none; }
  .ask-shell, .ask-drawer { --ask-gutter: 16px; --ask-indent: 0px; --ask-gap: 28px; }
  .ask-header { min-height: 48px; padding-top: 4px; padding-bottom: 4px; }
  .ask-thread__column { padding-top: 20px; }
  .ask-msg--assistant > .assistant-avatar { display: none; }
  .ask-msg--assistant > .assistant-avatar ~ .ask-status > .ask-icon { display: block; }
  .ask-bubble { max-width: 88%; }
  .ask-empty { justify-content: flex-end; gap: 24px; padding-bottom: 20px; }
  .ask-empty__greeting { font-size: 28px; }
  .ask-suggestions { grid-template-columns: 1fr; }
  .ask-suggestion__button { padding: 12px 14px; }
  .ask-md-table :is(th, td):first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); }
  .ask-md-table th:first-child { background: var(--surface-muted); }
}
@media (pointer: coarse) {
  .ask-shell, .ask-drawer { --ask-target: 44px; }
  .ask-msg.ask-msg--assistant > .ask-actions, .ask-copy-code { opacity: 1; }
  /* Only the last user message's actions show on touch; an earlier one's stay transparent, as on a desktop before
     hover, but in the accessibility tree and the focus order (a screen reader, a keyboard on a tablet), and show once
     focus is in them or a long press reveals them. */
  .ask-msg.ask-msg--revealed > .ask-actions { opacity: 1; }
  .ask-bubble { -webkit-touch-callout: none; }
  .ask-edit__hint:not([data-tone]) { display: none; }
  .ask-feedback__field { font-size: 16px; }
  .ask-conv__link { min-height: 42px; }
  .ask-conv > .ask-conv__more { width: 40px; height: 40px; opacity: 1; }
  .ask-sidebar__kbd { display: none; }
  .ask-sidebar__search-input, .ask-rename { height: 44px; font-size: 16px; }
  /* The header's rename field too (its own 15px rule is more specific): under 16px, iOS zooms the page. */
  .ask-header > .ask-rename { font-size: 16px; }
  .ask-header__button { width: 44px; height: 44px; }
  .ask-menu__item, .ask-sidebar__archived { min-height: 44px; }
  .ask-composer__send, .ask-composer__stop { width: 44px; height: 44px; }
  .ask-composer__hint:not([data-tone]) { display: none; }
  .ask-context__drop { width: 44px; height: 44px; margin: -10px -3px -10px -8px; }
  .ask-scope__label { padding: 10px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .ask-status__label { animation: none; background: none; color: var(--muted); }
  .ask-step--running .ask-icon { animation: none; }
  .ask-caret { display: none; }
  .ask-conv__state--running::after { animation: none; opacity: 0; }
  .ask-sidebar, .ask-sidebar.is-open, .ask-menu:popover-open, .ask-suggestion__button { transition: none; }
  .ask-composer__box, .ask-composer__send, .ask-composer__stop, .ask-scope__label { transition: none; }
  .ask-drawer[data-opening] .ask-drawer__sheet { animation: none; }
  turbo-frame.ask-drawer__frame { transition: none; }
}
@media (forced-colors: active) {
  .ask-status__label { background: none; color: CanvasText; }
  .ask-bubble, .ask-cite, .ask-source__n, .ask-md-table, .ask-answer pre, .ask-event { border: 1px solid CanvasText; }
  .ask-menu, .ask-toast, .ask-suggestion__button { border: 1px solid CanvasText; }
  .ask-composer__box, .ask-context, .ask-scope, .ask-edit { border: 1px solid CanvasText; }
  .ask-edit:has(.ask-edit__field:focus-visible) { outline: 2px solid Highlight; }
  .ask-edit__send { border: 1px solid ButtonText; }
  .ask-composer__box:has(.ask-composer__input:focus-visible), .ask-scope__input:checked + .ask-scope__label { outline: 2px solid Highlight; }
  .ask-composer__send, .ask-composer__stop { border: 1px solid ButtonText; }
  .assistant-launcher, .assistant-launcher:hover { border-color: ButtonText; background: Canvas; color: ButtonText; }
  .ask-drawer__sheet { border: 1px solid CanvasText; }
  /* A transparent border would show here: only the conversation shown keeps its outline. */
  .ask-conv { border-color: Canvas; }
  .ask-conv:has(> .ask-conv__link[aria-current="page"]) { border-color: CanvasText; }
  .ask-conv__state--running { background: CanvasText; }
  .ask-caret { background: CanvasText; }
  .ask-unverified-row > :first-child { border-left: 3px solid CanvasText; }
}
@media print {
  body.ask-page { height: auto; display: block; overflow: visible; }
  .ask-thread { overflow: visible; }
  .ask-actions, .ask-jump, .ask-older__loading, .ask-copy-code, .ask-copy-table, .ask-caret { display: none !important; }
  .ask-sidebar, .ask-header__button, .ask-header__end, .ask-toasts, .ask-menu, .ask-composer { display: none !important; }
  .ask-drawer, .assistant-launcher { display: none !important; }
}

/* /ask while the organisation's Ask Tarivo is switched off (ask/conversations/off): the app guide's box and its answer. */
.ask-off__guide { margin-top: var(--space-8); }
.ask-off__guide .fx-field { margin-top: var(--space-3); }
.ask-off__result { margin-top: var(--space-5); max-width: 72ch; }
.ask-off__result .ask-answer + p { margin-top: var(--space-3); }
.ask-off__result .ob-recent__list { margin-top: var(--space-5); }

/* zzzzzzzzzzzzzzzzzzzz_ask_answers.css */
/* Ask Tarivo's answers in pictures (owner-approved mockup "An answer"; AskTravio::Pictures, WorthKnowing, NextSteps):
   one plain headline first, then the pictures the pages draw (What-if's bars and layer colours, the --wv-* tokens and
   .wv-* pieces of the What-if picture), the Worth knowing box, the next-step buttons and, under the latest answer, the
   chips of what to ask next. Shared by the full chat and the side chat: everything fits the narrowest column (360 px),
   bars shrink and names cut with an ellipsis, never the page. Dark mode follows the --wv-* and glass tokens. */

/* ------------------------------------------------------------------ the headline: the answer's first line
   Pictures drawn as their tool's figures arrive sit above the words (the flow's order), so nothing jumps when the
   answer ends. */

.ask-msg--assistant .ask-answer__blocks > p:first-child { font-size: 17px; line-height: 1.45; font-weight: 500; }

/* ------------------------------------------------------------------ pictures and the box: lean cards */

.ask-card--lean { padding: 14px 16px 16px; }
.ask-pic { display: flex; flex-direction: column; gap: 10px; min-width: 0; container-type: inline-size; }
.ask-pic__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ask-pic__title { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.35; }
.ask-pic__hint { font-size: 12px; color: var(--muted); }
.ask-pic__headline { margin: 0; font-size: 14px; color: var(--ink); }
.ask-pic__headline strong { font-size: 17px; font-variant-numeric: tabular-nums; }
.ask-pic__aside { color: var(--muted); }
.ask-pic__note { margin: 0; font-size: 12px; color: var(--muted); }
.ask-pic__legend { margin: 0; padding-top: 2px; }
.ask-pic__money { text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ask-pic__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ask-pic__rate { color: var(--muted); font-size: 12px; }

/* While its figures arrive: a quiet skeleton the size of the picture to come. */
.ask-pic--loading { min-height: 132px; }
.ask-pic__ghost { display: block; height: 14px; border-radius: 4px; background: linear-gradient(90deg, var(--wv-total), var(--wv-line), var(--wv-total));
  background-size: 200% 100%; animation: ask-pic-ghost 1.4s ease-in-out infinite; }
@keyframes ask-pic-ghost { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .ask-pic__ghost { animation: none; } }

/* Countries: each a row to pick (today's is not), its bar of layers against the largest, its total and its difference. */
.ask-pic__rows { display: flex; flex-direction: column; gap: 6px; }
.ask-pic__row {
  display: grid; grid-template-columns: minmax(84px, 120px) minmax(0, 1fr) auto minmax(0, 104px); gap: 10px; align-items: center;
  min-height: 40px; padding: 4px 10px; border: 1px solid var(--wv-line); border-radius: 10px; background: var(--wv-panel);
  color: var(--ink); font-family: inherit; font-size: 13px; font-weight: 500; line-height: 1.3; text-align: left;
}
button.ask-pic__row { cursor: pointer; transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease; }
button.ask-pic__row:hover { border-color: var(--accent); box-shadow: 0 6px 18px rgba(31, 52, 94, .10); }
button.ask-pic__row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ask-pic__row[aria-pressed="true"] { border: 2px solid var(--accent); padding: 3px 9px; background: var(--wv-pressed); }
.ask-pic__row--today { background: var(--wv-total); }
.ask-pic__bar { max-width: 100%; }
.ask-pic__vs { font-size: 12px; font-weight: 600; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ask-pic__vs--save { color: var(--wv-save-ink); }
.ask-pic__vs--cost { color: var(--wv-cost-ink); }
.ask-pic__vs--today, .ask-pic__vs--same { color: var(--muted); font-weight: 500; }

/* Layers of one figure: a wide bar, then each layer with its rate and amount. */
.ask-pic__stack { width: 100%; height: 18px; }
.ask-pic__layers { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.ask-pic__layers li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 8px; align-items: center; }

/* Drivers and savings: a name, a bar against the largest, the figure. */
.ask-pic__bars { display: flex; flex-direction: column; gap: 7px; margin: 0; padding: 0; list-style: none; font-size: 12.5px; }
.ask-pic__bars li { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.ask-pic__track { height: 10px; border-radius: 5px; background: var(--wv-total); overflow: hidden; }
.ask-pic__fill { display: block; height: 10px; border-radius: 5px; background: var(--wv-general);
  width: max(4px, calc(100% * var(--wv-v, 0) / var(--wv-max, 1))); transition: width .35s ease; }
.ask-pic__fill--certain { background: var(--wv-save); }
.ask-pic__fill--likely { background: var(--wv-general); }
.ask-pic__fill--possible { background: var(--wv-section_301); }
.ask-pic__fill--review { background: var(--wv-section_232); }

/* The Business case: the answer in a word, three figures, and the months to payback. */
.ask-pic__verdict { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 14px; }
.ask-pic__verdict strong { padding: 3px 10px; border-radius: 999px; font-size: 13px; letter-spacing: .03em; background: var(--surface-muted); }
.ask-pic__verdict--yes strong { background: var(--wv-save-bg); color: var(--wv-save-ink); }
.ask-pic__verdict--slowly strong { background: var(--wv-badge-bg); color: var(--wv-badge-ink); }
.ask-pic__verdict--no strong { background: var(--wv-cost-bg); color: var(--wv-cost-ink); }
.ask-pic__figures { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; }
.ask-pic__figures dt { font-size: 12px; color: var(--muted); }
.ask-pic__figures dd { margin: 0; font-size: 16px; font-weight: 600; }
.ask-pic__months { display: grid; grid-template-columns: repeat(auto-fill, minmax(10px, 1fr)); gap: 3px; margin: 0; padding: 0; list-style: none; }
.ask-pic__months li { height: 12px; border-radius: 2px; background: var(--wv-save-bg); }
.ask-pic__months li.is-before { background: var(--wv-total); border: 1px solid var(--wv-line); }
.ask-pic__months li.is-payback { background: var(--wv-save); }

/* ------------------------------------------------------------------ Worth knowing */

.ask-card--worth-knowing { border-color: var(--wv-badge-bg); background: color-mix(in srgb, var(--wv-badge-bg) 55%, var(--surface)); }
.ask-worth { display: flex; flex-direction: column; gap: 10px; }
.ask-worth__title { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 15px; font-weight: 600; color: var(--wv-badge-ink); }
.ask-worth__item { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 13px; line-height: 1.5; }
.ask-worth__names { color: var(--muted); }
.ask-worth__link {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 1px solid var(--wv-control); border-radius: 10px;
  background: var(--wv-panel); color: var(--wv-badge-ink); font-weight: 550; text-decoration: none;
}
.ask-worth__link:hover { border-color: var(--accent); }

/* ------------------------------------------------------------------ next steps and what to ask next */

.ask-next { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-next__btn {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--wv-control); border-radius: 12px;
  background: var(--wv-panel); color: var(--ink); font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1.2; text-decoration: none; cursor: pointer;
}
.ask-next__btn:hover { border-color: var(--accent); box-shadow: 0 6px 18px rgba(31, 52, 94, .10); }
.ask-next__btn:focus-visible, .ask-followups__chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ask-next__btn--main { border-color: transparent; background: var(--accent-strong); color: var(--accent-ink, #fff); font-weight: 600; }
:root:not([data-theme="dark"]) .ask-next__btn--main { background: #2454ad; color: #fff; }
.ask-next__btn--main:hover { filter: brightness(1.06); }
.ask-next__btn:disabled { opacity: .55; cursor: default; }

.ask-followups { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ask-followups__chip {
  min-height: 34px; padding: 0 12px; border: 1px solid var(--wv-control); border-radius: 999px; background: var(--wv-panel);
  color: var(--ink); font-family: inherit; font-size: 13px; font-weight: 500; line-height: 1.2; cursor: pointer;
}
.ask-followups__chip:hover { border-color: var(--accent); }
.ask-followups__chip:disabled { opacity: .55; cursor: default; }
/* Only the latest answer offers what to ask next; an answer the conversation moved past keeps its buttons only. */
.ask-msg--assistant:not(:last-of-type) .ask-followups { display: none; }

/* "More": what an answer holds beyond its words, its one picture and its first caveat (owner: no clutter): a second
   picture and the other caveats, one quiet line until opened. The answer's own words never fold. */
.ask-more { margin: 0; }
.ask-more__summary { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--muted); font-size: 13px;
  font-weight: 550; cursor: pointer; list-style: none; }
.ask-more__summary::-webkit-details-marker { display: none; }
.ask-more__summary::before { content: "›"; display: inline-block; transition: transform .2s ease; }
.ask-more[open] > .ask-more__summary::before { transform: rotate(90deg); }
.ask-more__summary:hover { color: var(--ink); }
.ask-more__summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.ask-more[open] > :not(summary) { margin-top: 8px; }
.ask-card--more { padding: 6px 16px; background: none; box-shadow: none; }
.ask-card--more:has(.ask-more[open]) { padding: 14px 16px 16px; }

/* The figure check's note: plain and quiet, under the answer it qualifies. */
.ask-notice[data-code="figure_check"] { color: var(--wv-cost-ink); font-size: 12.5px; }

/* A narrow column (the side chat, a phone): the difference goes under the bar, names get less room. */
@container (max-width: 480px) {
  .ask-pic__row { grid-template-columns: minmax(64px, 90px) minmax(0, 1fr) auto; row-gap: 2px; }
  .ask-pic__vs { grid-column: 2 / -1; text-align: left; }
  .ask-pic__bars li { grid-template-columns: minmax(0, 104px) minmax(0, 1fr) auto; }
}
@media (prefers-reduced-motion: reduce) {
  .ask-pic__fill, button.ask-pic__row { transition: none; }
}

/* zzzzzzzzzzzzzzzzzzzz_page_header.css */
/* One page header (shared/_page_header): the H1 and its sample marker on the left, the page's actions on the right;
   on a narrow screen the actions wrap under the name. */
.page-header { display: grid; gap: 6px; margin: 0; }
.page-header__back { margin: 0; font-size: 13px; }
.page-header__row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; }
.page-header__name { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; min-width: 0; }
.page-header__title { margin: 0; font-size: var(--workspace-title, clamp(23px, 2.2vw, 30px)); font-weight: var(--workspace-heading-weight, 700); line-height: 1.2; letter-spacing: -.035em; overflow-wrap: anywhere; text-wrap: balance; }
.page-header__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }

/* The sample marker: the top bar's amber (both themes' --warn tokens), kept on paper in print's light amber. */
.sample-marker { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); border-radius: var(--radius-pill); background: var(--warn-bg); color: var(--warn); font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap; }
.page-header__marker { color: var(--muted); font-size: 12px; font-weight: 600; }
@media print {
  .sample-marker { border-color: #a35a00; background: #fff4e2; color: #a35a00; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* zzzzzzzzzzzzzzzzzzzzz_ask_play.css */
/* Ask Tarivo, a joy to use (owner-approved mockup AskPlay): the question it asks as buttons, the pictures you play with,
   doing things from the chat with Undo, its live steps, the / and @ menus, "Since yesterday", the ⋯ menu, where a figure
   came from, two cards side by side and tables you sort. Shared by the full chat and the side chat (384 px): nothing
   here widens a column, and every new control lives in a menu, on hover or behind More. Dark mode and Glass follow the
   --wv-* and glass tokens. */

/* ------------------------------------------------------------------ it asks, you tap */

.ask-card--tap { padding: 12px 14px; border-color: color-mix(in srgb, var(--accent) 35%, var(--wv-line, #d9dfeb)); }
.ask-tap { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.ask-tap__q { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.ask-tap__options { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-tap__form { display: contents; }
.ask-tap__btn {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--wv-control, #c9d2e3); border-radius: 12px;
  background: var(--wv-panel, #fff); color: var(--ink); font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.ask-tap--live .ask-tap__btn:first-of-type, .ask-tap--live .ask-tap__form:first-child .ask-tap__btn { border-color: var(--accent); }
.ask-tap__btn:hover { border-color: var(--accent); box-shadow: 0 6px 18px rgba(31, 52, 94, .10); }
.ask-tap__btn:active { transform: scale(.98); }
.ask-tap__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ask-tap__btn--quiet { font-weight: 500; color: var(--muted); }
.ask-tap__btn[aria-disabled="true"], .ask-tap__btn:disabled { opacity: .55; cursor: default; box-shadow: none; }
.ask-tap__note { margin: 0; font-size: 12px; color: var(--muted); }
.ask-tap--done { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 13px; }
.ask-tap--done .ask-tap__q { font-size: 13px; font-weight: 500; color: var(--muted); }
.ask-tap__answer { color: var(--ink); }
.ask-card--tap:has(.ask-tap--done) { padding: 8px 14px; background: transparent; }
.ask-tap--live { animation: ask-tap-in .25s ease-out; }
@keyframes ask-tap-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ask-tap--live { animation: none; } .ask-tap__btn { transition: none; } }

/* ------------------------------------------------------------------ play with the answer */

.ask-play { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px solid var(--wv-line, #e3e8f0); }
.ask-play__line { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; }
.ask-play__label { color: var(--ink); font-weight: 500; }
.ask-play__value { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); min-width: 3.5em; text-align: right; }
.ask-play__range { width: 100%; margin: 2px 0; accent-color: var(--wv-section_122, #6b4fa8); cursor: pointer; }
.ask-play__range:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ask-play--price { flex-direction: row; align-items: center; gap: 8px; font-size: 13px; }
.ask-play--price .ask-play__label { margin-right: auto; }
.ask-play__step {
  width: 32px; height: 32px; border: 1px solid var(--wv-control, #c9d2e3); border-radius: 10px; background: var(--wv-panel, #fff);
  color: var(--ink); font: inherit; font-size: 16px; font-weight: 600; line-height: 1; cursor: pointer;
}
.ask-play__step:hover { border-color: var(--accent); }
.ask-play__step:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* While the figures come: a quiet shimmer on them, never a spinner over the answer. */
.ask-pic.is-playing [data-ask-play-swap] { animation: ask-play-shimmer 1s ease-in-out infinite; }
@keyframes ask-play-shimmer { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .ask-pic.is-playing [data-ask-play-swap] { animation: none; opacity: .7; } }

/* ------------------------------------------------------------------ / commands and @ mentions */

.ask-composer__box { position: relative; padding-left: 8px; }
.ask-drawer .ask-composer__box { padding-left: 6px; }
/* The box's grid (the files' slot's, ask cards) with / and @ before the paperclip: / @ · 📎 · the text · 🎙 · Send. */
.ask-composer > .ask-composer__box:has(> .ask-composer__tools) { grid-template-columns: auto auto minmax(0, 1fr) auto auto; column-gap: 4px; }
.ask-composer__tools { display: inline-flex; gap: 0; align-self: end; flex: none; }
.ask-composer__tool {
  width: 34px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--wv-section_122, #6b4fa8);
  font: 600 16px/1 var(--font-sans, system-ui); cursor: pointer;
}
.ask-composer__tool:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.ask-composer__tool:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.ask-cmd {
  position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 30; width: min(380px, 100%); max-height: 320px; overflow-y: auto;
  padding: 6px; border: 1px solid var(--glass-border, #dfe5ef); border-radius: 16px; background: var(--surface, #fff);
  box-shadow: 0 18px 40px rgba(31, 52, 94, .18);
}
.ask-cmd__list { margin: 0; padding: 0; list-style: none; }
.ask-cmd__item { display: grid; grid-template-columns: minmax(84px, auto) minmax(0, 1fr); gap: 12px; align-items: center; padding: 9px 12px; border-radius: 10px; cursor: pointer; font-size: 13px; }
.ask-cmd__item[aria-selected="true"], .ask-cmd__item:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.ask-cmd__key { font: 500 13px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--wv-section_122, #6b4fa8); }
.ask-cmd__name { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ask-cmd__words { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ask-cmd__empty { margin: 0; padding: 10px 12px; font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------------ since yesterday */

.ask-since-frame { display: block; }
.ask-since {
  display: flex; gap: 12px; align-items: flex-start; margin: 0 0 18px; padding: 14px 16px; border: 1px solid var(--glass-border, #dfe5ef);
  border-radius: 18px; background: var(--ask-panel, var(--surface, #fff)); box-shadow: var(--glass-highlight, none), 0 10px 30px rgba(31, 52, 94, .08);
  text-align: left;
}
.ask-since[hidden] { display: none; }
.ask-since__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ask-since__eyebrow { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wv-section_122, #6b4fa8); }
.ask-since__title { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.ask-since__amount { font-variant-numeric: tabular-nums; }
.ask-since__reason { margin: 0; font-size: 13px; color: var(--muted); }
.ask-since__actions { display: flex; gap: 8px; margin: 6px 0 0; flex-wrap: wrap; }
.ask-since__go {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 10px; background: #2454ad; color: #fff;
  font-size: 13px; font-weight: 600; text-decoration: none;
}
:root[data-theme="dark"] .ask-since__go { background: var(--accent-strong, #4f7fe0); }
.ask-since__later {
  min-height: 34px; padding: 0 12px; border: 1px solid var(--wv-control, #c9d2e3); border-radius: 10px; background: var(--wv-panel, #fff);
  color: var(--ink); font: inherit; font-size: 13px; cursor: pointer;
}
.ask-since__go:focus-visible, .ask-since__later:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* the side chat: one compact card above the page's greeting */
.ask-since--drawer { margin: 8px 12px 0; padding: 10px 12px; gap: 8px; border-radius: 14px; }
.ask-since--drawer .ask-since__title { font-size: 13px; }
.ask-since--drawer .ask-since__go, .ask-since--drawer .ask-since__later { min-height: 30px; font-size: 12px; }

/* ------------------------------------------------------------------ the answer's ⋯ menu, Today's "From Ask Tarivo" */

.ask-more-menu { display: inline-flex; position: relative; }
.ask-menu {
  min-width: 240px; margin: 0; padding: 6px; border: 1px solid var(--glass-border, #dfe5ef); border-radius: 14px;
  background: var(--surface, #fff); box-shadow: 0 18px 40px rgba(31, 52, 94, .18); color: var(--ink);
  position-area: top span-left; position-try-fallbacks: flip-block, flip-inline;
}
.ask-menu__form { display: block; margin: 0; }
.ask-menu__item {
  display: block; width: 100%; padding: 8px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); text-align: left;
  font: inherit; font-size: 13px; text-decoration: none; cursor: pointer;
}
.ask-menu__item:hover, .ask-menu__item:focus-visible { background: color-mix(in srgb, var(--accent) 12%, transparent); outline: none; }
.ask-menu__heading { margin: 6px 12px 2px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.ask-menu__item--person { padding-left: 20px; }
.ask-today { margin-bottom: 16px; }
.ask-today__list { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ask-today__item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: baseline; font-size: 13px; }
.ask-today__tag { padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, transparent); font-size: 11px; font-weight: 600; }
.ask-today__what { display: flex; flex-direction: column; min-width: 0; }
.ask-today__what small { color: var(--muted); }
.ask-mark-page { max-width: 760px; margin: 32px auto; padding: 0 16px; display: flex; flex-direction: column; gap: 10px; }
.ask-mark-page__title { margin: 0; font-size: 22px; }
.ask-mark-page__who { margin: 0; color: var(--muted); font-size: 13px; }
.ask-mark-page__alert { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--wv-badge-bg, #fff4d6); }
.ask-mark-page__text p { margin: 0 0 10px; line-height: 1.55; }
.ask-mark-page__h { margin: 8px 0 0; font-size: 15px; }
.ask-mark-page__actions { display: flex; gap: 8px; }
.ask-inline-form { display: inline; }

/* ------------------------------------------------------------------ hover a number */

.ask-fig { position: relative; border-bottom: 1px dotted color-mix(in srgb, var(--accent) 60%, transparent); cursor: help; }
.ask-fig:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.ask-fig:hover::after, .ask-fig:focus-visible::after {
  content: attr(data-ask-fig); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); z-index: 40;
  width: max-content; max-width: min(300px, 80vw); padding: 8px 10px; border-radius: 10px; background: #1d2433; color: #fff;
  font-size: 12px; font-weight: 400; line-height: 1.45; white-space: normal; text-align: left; box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
  pointer-events: none;
}

/* ------------------------------------------------------------------ compare side by side */

.ask-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ask-compare__card { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 12px; border: 1px solid var(--wv-line, #e3e8f0); border-radius: 12px; background: var(--wv-panel, #fff); }
.ask-compare__name { margin: 0; font-size: 14px; font-weight: 700; }
.ask-compare__money { margin: 0; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ask-compare__money small { font-size: 12px; font-weight: 400; color: var(--muted); }
.ask-compare__card .ask-pic__vs { text-align: left; white-space: normal; }
.ask-compare__layers { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
.ask-compare__layers li { display: flex; align-items: center; gap: 6px; }
.ask-compare__layers .wv-mono { margin-left: auto; color: var(--ink); }

/* ------------------------------------------------------------------ tables you sort and filter */

.ask-sort { all: unset; cursor: pointer; font-weight: inherit; }
.ask-sort::after { content: ""; display: inline-block; width: 0.8em; margin-left: 4px; color: var(--muted); }
th[aria-sort="ascending"] .ask-sort::after { content: "↑"; }
th[aria-sort="descending"] .ask-sort::after { content: "↓"; }
.ask-sort:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.ask-table-filter {
  display: block; width: min(220px, 100%); margin: 6px 0 4px; padding: 5px 10px; border: 1px solid var(--wv-line, #e3e8f0); border-radius: 8px;
  background: transparent; color: var(--ink); font: inherit; font-size: 12px; opacity: .55; transition: opacity .15s ease;
}
.ask-answer:hover .ask-table-filter, .ask-table-filter:focus, .ask-table-filter:not(:placeholder-shown) { opacity: 1; }
.ask-composer__mic { display: grid; place-items: center; align-self: end; color: var(--muted); }
.ask-composer__mic[hidden] { display: none; }
.ask-composer__mic.is-listening { color: #c0392b; background: color-mix(in srgb, #c0392b 12%, transparent); animation: ask-mic 1.2s ease-in-out infinite; }
@keyframes ask-mic { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, #c0392b 15%, transparent); } }
@media (prefers-reduced-motion: reduce) { .ask-composer__mic.is-listening { animation: none; } }
.ask-mention { padding: 1px 6px; border-radius: 7px; background: color-mix(in srgb, var(--wv-section_122, #6b4fa8) 14%, transparent); color: var(--wv-section_122, #5a3f99); font-weight: 600; }
/* once the side chat holds a conversation, its greeting's card steps aside */
.ask-drawer__panel:has(article.ask-msg) .ask-since-frame { display: none; }

/* zzzzzzzzzzzzzzzzzzzzz_product_stages.css */
/* The three Products pages (ProductStages): a row is grey until the product reaches the page's step, then in colour.
   HTS confirmation: ready to confirm (accent), confirmed (good). Duty calculation: HTS confirmed (accent), duty
   confirmed (good). Send to SAP: HTS confirmed (accent), HTS and duty confirmed (good). */
.product-stage [data-stage-tone] { --stage-color: var(--muted); }
.product-stage [data-stage-tone="ready"],
.product-stage [data-stage-tone="hts"] { --stage-color: var(--accent); }
.product-stage [data-stage-tone="confirmed"],
.product-stage [data-stage-tone="complete"] { --stage-color: var(--good); }

.product-stage .product-work-table tr[data-stage-tone]:not([data-stage-tone="waiting"]) > td { background: color-mix(in srgb, var(--stage-color) 6%, transparent); }
.product-stage .product-work-table tr[data-stage-tone]:not([data-stage-tone="waiting"]) > td:first-child { box-shadow: inset 3px 0 0 var(--stage-color); }
.product-stage .product-work-table tr[data-stage-tone="waiting"] > td { color: var(--muted); }
.product-stage .product-work-table tr[data-stage-tone="waiting"] > td > * { opacity: .55; filter: grayscale(1); }
.product-stage .product-work-table tr[data-stage-tone="waiting"]:hover > td > *,
.product-stage .product-work-table tr[data-stage-tone="waiting"]:focus-within > td > * { opacity: .85; }

.product-stage-status { display: inline-flex; align-items: center; gap: 7px; color: var(--stage-color); font-size: 12px; font-weight: 650; }
.product-stage-dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--stage-color); }
.product-stage-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 10px; padding: 0; list-style: none; color: var(--ink-soft); font-size: 13px; }
.product-stage-legend li { display: inline-flex; align-items: center; gap: 7px; }
.product-stage-legend li[data-stage-tone="waiting"] .product-stage-dot { opacity: .55; }

.product-sap-send { flex-direction: column; align-items: flex-end; gap: 4px; }
.product-sap-send form { margin: 0; }
.product-sap-send__last { color: var(--muted); font-size: 12px; }
@media (max-width: 600px) { .product-sap-send { align-items: stretch; } }

/* The SAP Material Master status: a badge in the review window opened from Products (products/_review_summary). */
.product-tile__sap { position: relative; z-index: 1; padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; font-weight: 650; white-space: nowrap; }
.product-tile__sap--in_sap { border-color: color-mix(in srgb, var(--good) 45%, var(--line)); background: color-mix(in srgb, var(--good) 12%, transparent); color: var(--good); }
.product-tile__sap--unconfirmed { color: var(--ink-soft); }
.product-tile__sap--not_in_sap { border-style: dashed; color: var(--muted); }

/* HTS confirmation grouped by code: a header row per HTS code, with its count and "Show only these". */
.product-work-table tr.catalog-group-row > td { padding: 10px 14px; border-top: 1px solid var(--line); background: var(--glass-surface); font-size: 13px; }
.catalog-group-row td[colspan] { display: table-cell; }
.catalog-group-row__code { margin-right: 12px; color: var(--accent-strong); font-weight: 650; }
.catalog-group-row__count { color: var(--muted); }
.catalog-group-row__only { margin-left: 12px; font-size: 12.5px; }
.catalog-bulk__note { color: var(--muted); font-size: 12px; }

/* The review window: rarely needed actions under "⋯"; folds for what supports a decision but isn't needed to make it. */
.product-review-more { position: relative; display: inline-block; margin: 0 0 10px; }
.product-review-more > summary { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 28px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); cursor: pointer; list-style: none; font-weight: 700; }
.product-review-more > summary::-webkit-details-marker { display: none; }
.product-review-more > div { position: absolute; z-index: 5; top: calc(100% + 6px); left: 0; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--glass-raised); box-shadow: var(--shadow-card); white-space: nowrap; }
.hts-review__legal-fold, .hts-review__facts-more, .duty-review__more { margin-top: 10px; }
.hts-review__legal-fold > summary, .hts-review__facts-more > summary, .duty-review__more > summary { cursor: pointer; color: var(--accent-strong); font-size: 13px; font-weight: 600; }
.product-summary__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 0; }
.product-summary__facts > div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--glass-raised); }
.product-summary__facts dt { margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.product-summary__facts dd { display: grid; gap: 3px; margin: 0; }
.product-summary__facts small { color: var(--muted); font-size: 12px; }
.product-summary__links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0 0; }
.product-summary__facts .product-tile__sap { justify-self: start; }

/* The way to the step before or after this page: a header line, and a link on a row that waits on another page. */
.product-stage-progress { margin: 0 0 10px; color: var(--ink-soft); font-size: 13px; }
.product-stage-progress a { color: var(--accent-strong); font-weight: 600; }
.product-workspace .product-stage-next { display: inline-block; margin-top: 3px; color: var(--accent-strong); font-weight: 600; text-decoration: none; }
.product-stage .product-work-table tr[data-stage-tone="waiting"] > td > .product-stage-next { opacity: 1; filter: none; }
.product-stage .product-work-table tr[data-stage-tone="waiting"] .product-stage-next { opacity: 1; filter: none; }

/* Duty calculation's greyed rows: nothing happens on a click but on the row's own "Confirm HTS" button, which stays in
   full colour while the rest of the row is dimmed. */
.product-stage .product-work-table tr[data-stage-tone="waiting"] { cursor: default; }
.product-stage .product-work-table tr[data-stage-tone="waiting"] > td > .product-stage-button { opacity: 1; filter: none; }
.product-workspace .product-stage-button { display: inline-flex; align-items: center; min-height: 0; height: 26px; margin-top: 5px; padding: 0 10px; border-radius: 8px; font-size: 12px; }
.catalog-product--waiting { color: var(--ink); font-weight: 600; }
/* what holds a greyed row's HTS code up, readable on the dimmed row */
.product-stage .product-work-table tr[data-stage-tone="waiting"] > td > .product-stage-hts-step { display: block; margin-top: 2px; overflow: visible; white-space: normal; text-overflow: clip; opacity: .9; filter: none; color: var(--ink-soft); }

/* A row's action: one button (Confirm, Confirm duty, Review …) and "⋯" for the rarely needed ones. */
.product-work-table td.row-actions { white-space: nowrap; text-align: right; }
.row-actions__inner { display: inline-flex; align-items: flex-start; gap: 6px; }
.row-actions form { margin: 0; }
.product-workspace .row-action { display: inline-flex; align-items: center; min-height: 0; height: 28px; padding: 0 12px; border-radius: 8px; font-size: 12.5px; white-space: nowrap; }
.row-more { position: relative; }
.row-more > summary { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; color: var(--muted); cursor: pointer; list-style: none; font-weight: 700; }
.row-more > summary::-webkit-details-marker { display: none; }
.row-more > summary:hover, .row-more[open] > summary { background: var(--glass-selected); color: var(--ink); }
.row-more__menu { position: static; margin-top: 4px; display: grid; min-width: 180px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--glass-raised); box-shadow: var(--shadow-card); }
.row-more__menu form { display: block; }
.row-more__item { display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 6px; background: none; color: var(--ink); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.row-more__item:hover, .row-more__item:focus-visible { background: var(--glass-selected); }
.row-more__item--danger { color: var(--bad); }
.product-stage .product-work-table tr[data-stage-tone="waiting"] > td > .row-actions__inner { opacity: 1; filter: none; }
.product-workspace .product-code-words { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; max-width: 36ch; margin-top: 3px; overflow: hidden; color: var(--muted); font-family: var(--font-sans); font-size: 12px; line-height: 1.35; letter-spacing: 0; white-space: normal; }
/* Duty calculation: the figure, what it rests on under it, and the row's button, all inside the table's width */
.product-stage--duty .catalog-table :is(th, td)[data-col="duty"] { white-space: normal; text-align: right; }
.product-workspace .product-duty-basis { display: block; max-width: 26ch; margin: 3px 0 0 auto; color: var(--muted); font-size: 12px; line-height: 1.35; white-space: normal; }
.product-stage--duty .product-work-table td.row-actions { padding-left: 4px; }
.product-workspace.product-stage--duty .product-work-table th.product-identity { width: 25%; }
.product-stage--duty .product-work-table th[data-col="code"] { width: 1%; white-space: nowrap; }
.product-workspace .product-work-table > thead > tr > th.row-actions { width: 210px; }
.product-workspace.product-stage--duty .product-work-table th.product-status-heading { width: 16%; }
.product-workspace.product-stage--duty .product-work-table > thead > tr > th.product-identity { width: 22%; }
.product-workspace.product-stage--duty .product-work-table > thead > tr > th[data-col="code"] { width: 11%; }
.product-workspace.product-stage--duty .product-work-table > thead > tr > th.product-status-heading { width: 15%; }
.product-workspace.product-stage--duty .product-work-table > thead > tr > th[data-col="origin"] { width: 12%; }
.product-workspace.product-stage--duty .product-work-table > thead > tr > th[data-col="duty"] { width: 20%; }
.product-workspace.product-stage--duty .product-work-table > thead > tr > th.product-status-heading { width: 19%; }
.product-stage .product-work-table tr[data-stage-tone="waiting"] .row-actions__inner { opacity: 1; filter: none; }
.product-workspace .row-action.product-stage-button { margin-top: 0; }
/* the in-row AD/CVD answer: the question, two answers and "the same code and origin too" */
.row-adcvd { display: inline-grid; grid-template-columns: auto auto; gap: 4px 6px; align-items: center; justify-items: end; }
.row-adcvd__q { grid-column: 1 / -1; color: var(--ink-soft); font-size: 12px; font-weight: 600; }
.row-adcvd__group { grid-column: 1 / -1; display: inline-flex; gap: 5px; align-items: center; color: var(--muted); font-size: 11.5px; }
.row-question { display: inline-grid; gap: 4px; justify-items: end; max-width: 240px; white-space: normal; }
.row-question__q { color: var(--ink-soft); font-size: 12px; font-weight: 600; text-align: right; }
.row-question__answers { display: inline-flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.row-question__group { display: inline-flex; gap: 5px; align-items: center; color: var(--muted); font-size: 11.5px; }
.product-workspace.product-stage--duty .product-work-table > thead > tr > th.product-identity { width: 20%; }
.product-workspace.product-stage--duty .product-work-table > thead > tr > th.product-status-heading { width: 13%; }

/* zzzzzzzzzzzzzzzzzzzzzz_audit_trail.css */
/* The Audit trail (atl-), rebuilt from docs/design/audit-trail.mockup.html: one quiet integrity line, the filters on a
   glass card (search, When, the kind chips), then the timeline by day on white cards, one plain sentence per entry that
   opens to three boxes. Tarivo is a teal rounded square with a sparkle; people are round with their initials. Tokens
   from application.css / zz_glass.css; dark mode under :root[data-theme="dark"]. On a phone the row stacks and the
   three boxes become one column: no horizontal scroll. */

.atl {
  --atl-card: #ffffff; --atl-card-line: #dfe6f2; --atl-row-line: #eef2f8; --atl-open: #f8faff; --atl-box: #f6f8fc;
  --atl-chip: #ffffff; --atl-chip-line: #d5deec; --atl-chip-on: #eef3fc; --atl-on-line: #3268c7; --atl-seg: #e9eef7; --atl-seg-on: #ffffff;
  --atl-link: #2454ad; --atl-travio: #1f7a70; --atl-tag-ink: #14544d; --atl-tag-bg: #dff3ef; --atl-before: #7a8496;
  display: flex; flex-direction: column; gap: 18px; max-width: 1100px; min-width: 0;
}
:root[data-theme="dark"] .atl {
  --atl-card: rgba(30, 41, 59, .78); --atl-card-line: rgba(148, 163, 184, .22); --atl-row-line: rgba(148, 163, 184, .14); --atl-open: rgba(50, 104, 199, .12);
  --atl-box: rgba(15, 23, 42, .45); --atl-chip: rgba(30, 41, 59, .7); --atl-chip-line: rgba(148, 163, 184, .3); --atl-chip-on: rgba(50, 104, 199, .22);
  --atl-on-line: #8fb0ff; --atl-seg: rgba(15, 23, 42, .5); --atl-seg-on: rgba(51, 65, 85, .95); --atl-link: #9dbbff;
  --atl-tag-ink: #a7ecdf; --atl-tag-bg: rgba(31, 122, 112, .38); --atl-before: #95a0b2;
}

.atl .page-header { margin-bottom: -10px; }
.atl-lede { margin: 0; color: var(--ink-soft); font-size: 14px; }

/* Export */
.atl-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--atl-chip-line);
  border-radius: 12px; background: var(--atl-chip); color: var(--ink); font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1; text-decoration: none; cursor: pointer; list-style: none;
  transition: border-color .2s ease, background-color .2s ease; }
.atl-btn::-webkit-details-marker { display: none; }
.atl-btn:hover { border-color: var(--atl-on-line); color: var(--ink); }
.atl-btn--small { min-height: 32px; padding: 0 10px; border-radius: 8px; color: var(--atl-link); font-size: 12px; font-weight: 500; }
.atl-export { position: relative; }
.atl-export__menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; display: flex; flex-direction: column; min-width: 140px; padding: 6px;
  border: 1px solid var(--atl-card-line); border-radius: 12px; background: var(--atl-card); box-shadow: var(--shadow-card); }
:root[data-theme="dark"] .atl-export__menu { background: #1e293b; }
.atl-export__form { margin: 0; }
.atl-export__choice { width: 100%; min-height: 40px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--ink);
  font-family: inherit; font-size: 14px; font-weight: 500; text-align: left; cursor: pointer; }
.atl-export__choice:hover { background: var(--atl-chip-on); }

/* Integrity */
.atl-integrity { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: -8px 0 0; color: var(--muted); font-size: 12.5px; }
.atl-integrity__mark { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none; border-radius: 50%;
  background: var(--good-bg); color: var(--good); font-size: 11px; font-weight: 700; }
.atl-integrity__meta { color: var(--muted); font-variant-numeric: tabular-nums; }
.atl-broken { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border: 1px solid var(--bad); border-radius: 14px; background: var(--bad-bg); }
.atl-broken p { margin: 0; }
.atl-broken__title { display: flex; align-items: center; gap: 8px; color: var(--bad); font-size: 15px; font-weight: 600; }
.atl-broken .atl-integrity__mark { background: var(--bad); color: #ffffff; }
.atl-broken__text { color: var(--ink); font-size: 13px; max-width: 76ch; }
.atl-broken__tech { color: var(--ink-soft); font-size: 12px; }
.atl-broken__tech summary { cursor: pointer; }

/* Filters */
.atl-filters { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--glass-raised, rgba(255, 255, 255, .72)); }
.atl-filters__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.atl-search { flex: 1 1 280px; display: flex; margin: 0; min-width: 0; }
.atl-search__input { flex: 1; min-width: 0; min-height: 40px; padding: 0 12px; border: 1px solid var(--atl-chip-line); border-radius: 10px;
  background: var(--atl-chip); color: var(--ink); font-family: inherit; font-size: 14px; }
.atl-search__input::placeholder { color: var(--muted); }
.atl-when { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: var(--atl-seg); }
.atl-when__item { display: inline-flex; align-items: center; min-height: 34px; padding: 0 10px; border: 1px solid transparent; border-radius: 8px;
  color: var(--ink); font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background-color .2s ease; }
.atl-when__item:hover { color: var(--ink); border-color: var(--atl-on-line); }
.atl-when__item.is-on { background: var(--atl-seg-on); font-weight: 600; box-shadow: 0 1px 3px rgba(23, 32, 51, .12); }
.atl-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.atl-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 1px solid var(--atl-chip-line); border-radius: 999px;
  background: var(--atl-chip); color: var(--ink); font-size: 13px; font-weight: 500; text-decoration: none; transition: border-color .2s ease, background-color .2s ease; }
.atl-chip:hover { border-color: var(--atl-on-line); color: var(--ink); }
.atl-chip.is-on { padding: 0 11px; border: 2px solid var(--atl-on-line); background: var(--atl-chip-on); }
.atl-chip__count { color: var(--muted); font-variant-numeric: tabular-nums; }
.atl-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--dot, var(--muted)); }
.atl-focus { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; font-size: 13px; }

/* Timeline */
.atl-events { display: flex; flex-direction: column; gap: 16px; }
.atl-day { display: flex; flex-direction: column; gap: 6px; }
.atl-day__label { margin: 0; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.atl-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; overflow: hidden;
  border: 1px solid var(--atl-card-line); border-radius: 14px; background: var(--atl-card); }
.atl-ev { display: grid; grid-template-columns: 56px 34px minmax(0, 1fr); column-gap: 12px; align-items: start; padding: 12px 16px;
  border-bottom: 1px solid var(--atl-row-line); }
.atl-ev:last-child { border-bottom: 0; }
.atl-ev:has(.atl-ev__fold[open]) { background: var(--atl-open); }
.atl-ev__time { padding-top: 8px; color: var(--muted); font: 400 12px "Geist Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.atl-who { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--who, #5a6478);
  color: #ffffff; font-size: 12px; font-weight: 700; letter-spacing: .02em; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.atl-who:hover { color: #ffffff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--who, #5a6478) 25%, transparent); }
.atl-who--travio { --who: var(--atl-travio); border-radius: 9px; background: var(--atl-travio); }
.atl-ev__fold { min-width: 0; }
.atl-ev__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 4px 12px; padding: 6px 0; cursor: pointer;
  list-style: none; }
.atl-ev__head::-webkit-details-marker { display: none; }
.atl-ev__text { display: flex; flex: 1 1 320px; flex-direction: column; gap: 3px; min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
.atl-ev__head:hover .atl-ev__line { color: var(--ink); text-decoration: underline; text-decoration-color: var(--atl-chip-line); text-underline-offset: 3px; }
.atl-ev__who { font-weight: 600; }
.atl-tag { padding: 2px 7px; border-radius: 6px; background: var(--atl-tag-bg); color: var(--atl-tag-ink); font-size: 11px; font-weight: 700;
  letter-spacing: .04em; vertical-align: 1px; }
.atl-ev__change { color: var(--muted); font-size: 13px; }
.atl-ev__label { margin-right: 4px; }
.atl-ev__code { font-family: "Geist Mono", ui-monospace, monospace; }
.atl-ev__before { color: var(--atl-before); }
.atl-ev__before--none { text-decoration: none; }
.atl-ev__after { color: var(--ink); font-weight: 600; }
.atl-ev__more { color: var(--muted); font-size: 12px; }
.atl-kind { display: inline-flex; align-items: center; gap: 6px; padding-top: 2px; color: var(--muted); font-size: 12px; white-space: nowrap; }

.atl-ev__body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 8px 0 4px; }
.atl-box { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; padding: 10px 12px; border-radius: 10px;
  background: var(--atl-box); overflow-wrap: anywhere; }
.atl-box__label { margin: 0; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.atl-box__text { margin: 0; font-size: 13px; }
.atl-box__mono { font: 400 12px "Geist Mono", ui-monospace, monospace; }
.atl-box__link { color: var(--atl-link); font-size: 12px; font-weight: 600; text-decoration: none; }
.atl-box__link:hover { text-decoration: underline; }
.atl-box__list { display: flex; flex-direction: column; gap: 3px; max-height: 220px; margin: 0; padding: 0 0 0 16px; overflow-y: auto; font-size: 13px; }
.atl-box__note { color: var(--muted); list-style: none; margin-left: -16px; }

.atl-empty { padding: 24px; border: 1px solid var(--atl-card-line); border-radius: 14px; background: var(--atl-card); color: var(--muted); font-size: 14px; }
.atl-empty p { margin: 0; }
.atl-count { margin: 0; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.atl-pages { display: flex; gap: 8px; }

.atl a:focus-visible, .atl summary:focus-visible, .atl button:focus-visible, .atl input:focus-visible { outline: 2px solid var(--atl-on-line); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .atl-btn, .atl-chip, .atl-when__item, .atl-who { transition: none; }
}

/* Phone: the time goes above the sentence, the avatar beside both; the boxes stack. */
@media (max-width: 640px) {
  .atl-filters { padding: 12px; }
  .atl-when { width: 100%; }
  .atl-when__item { flex: 1; justify-content: center; }
  .atl-ev { grid-template-columns: 32px minmax(0, 1fr); grid-template-areas: "who time" "who fold"; padding: 10px 12px; }
  .atl-ev__time { grid-area: time; padding-top: 0; }
  .atl-who { grid-area: who; }
  .atl-ev__fold { grid-area: fold; }
  .atl-ev__head { padding-top: 2px; }
  .atl-ev__body { grid-template-columns: minmax(0, 1fr); }
}

/* zzzzzzzzzzzzzzzzzzzzzz_confirmed_by.css */
/* "Confirmed by <name> · <date>" (ConfirmedByHelper): one quiet line under a confirmed row's status on Confirm duties
   and All products, and a short block in an opened review (who, the change to Tarivo's answer, the full history). */
.pov-row__by { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.product-confirmed-by-line { display: block; margin-top: 2px; }
.confirmed-by-block { display: flex; flex-direction: column; gap: 2px; }
.confirmed-by-block__change { color: var(--ink-soft); font-size: 13px; }
.confirmed-by-block__history { align-self: flex-start; font-size: 13px; }

/* zzzzzzzzzzzzzzzzzzzzzz_cost_analysis_move.css */
/* Business case, "Is moving to … worth it?" (sourcing_what_ifs/analysis, _analysis_verdict, _analysis_results,
   _analysis_also; cost_analysis_controller.js): the answer first (a round Yes / Slowly / No), the two years month by
   month, where one part's saving comes from and how much worse it can get on the left; "Your assumptions" on the
   right. One column on a phone. Colour is never the only cue: every bar has its words and the answer its word. */
:root {
  --ca-supplier: #5a6478; --ca-supplier-ink: #ffffff;
  --ca-freight: #9aa4b4; --ca-freight-ink: #172033;
  --ca-duty: #3268c7; --ca-duty-ink: #ffffff;
  --ca-paying: #f2b8b3; --ca-saved: #a8d8b9;
  --ca-good-ink: #1f5b3a; --ca-good-bg: #e3f2e8; --ca-good-soft: #f1faf4;
  --ca-bad-ink: #8f2f2b; --ca-bad-bg: #fbe4e2;
  --ca-warn-ink: #7a4a00; --ca-warn-bg: #fbefd9;
  --ca-plan-ink: #5a4680; --ca-plan-bg: #efeaf7;
  --ca-grid: #e3e9f3; --ca-axis: #4a5568; --ca-line: #172033;
  /* the month bars and gauges: red is the switch cost and losing money, green the money you keep */
  --bc-cost: #c9302c; --bc-paying: #eca29c; --bc-kept: #3f9a63; --bc-before: #d5dbe5; --bc-loss: #e07a72;
  --bc-ok-zone: #d5eedd; --bc-bad-zone: #f8d9d5; --bc-yes: #2f7d4f; --bc-slowly: #b7791f; --bc-no: #b4352d;
}
:root[data-theme="dark"] {
  --ca-supplier: #8792a8; --ca-supplier-ink: #0f1522;
  --ca-freight: #5d6779; --ca-freight-ink: #f2f5fb;
  --ca-duty: #6f9be6; --ca-duty-ink: #0f1522;
  --ca-paying: rgba(220, 110, 100, .45); --ca-saved: rgba(90, 190, 130, .42);
  --ca-good-ink: #9fe0b6; --ca-good-bg: rgba(46, 140, 90, .28); --ca-good-soft: rgba(46, 140, 90, .16);
  --ca-bad-ink: #f3aaa4; --ca-bad-bg: rgba(190, 70, 60, .28);
  --ca-warn-ink: #f0c987; --ca-warn-bg: rgba(200, 140, 40, .26);
  --ca-plan-ink: #d8cdf6; --ca-plan-bg: rgba(128, 99, 197, .30);
  --ca-grid: rgba(208, 224, 252, .14); --ca-axis: #b7c2d6; --ca-line: #eef2fa;
  --bc-cost: #e5534b; --bc-paying: rgba(236, 140, 130, .55); --bc-kept: #4fb57a; --bc-before: rgba(208, 224, 252, .22); --bc-loss: rgba(229, 83, 75, .6);
  --bc-ok-zone: rgba(79, 181, 122, .30); --bc-bad-zone: rgba(229, 83, 75, .28); --bc-yes: #3d9a64; --bc-slowly: #c68a2a; --bc-no: #c9463d;
}

.ca-move-page { display: flex; flex-direction: column; gap: 16px; }
.ca-move-page .page-header { margin-bottom: 0; }
.ca-scenario-switch { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.ca-scenario-switch .ob-input { min-height: 36px; }

/* the quiet line under the title */
.bc-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; margin-top: -10px; }
.bc-meta p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.bc-meta [data-ca="tariff-date"] { flex-basis: 100%; color: var(--muted); font-size: 12px; }

.bc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.bc-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.bc-main [data-ca-part="results"] { display: flex; flex-direction: column; gap: 16px; transition: opacity .15s; }
.bc-main[aria-busy="true"] [data-ca-part="results"], .bc-main[aria-busy="true"] [data-ca-part="verdict"] { opacity: .72; }
.bc-main.is-stale [data-ca-part="results"], .bc-main.is-stale [data-ca-part="verdict"] { opacity: .45; }
.ca-problem { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--ca-bad-bg); color: var(--ca-bad-ink); font-size: 13px; font-weight: 500; }
[data-ca-part="problem"]:empty, [data-ca-part="verdict"]:empty, [data-ca-part="also"]:empty { display: none; }

.ca-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 18px 20px; border: 1px solid var(--glass-border, var(--line));
  border-radius: 18px; background: var(--glass-raised, var(--surface)); box-shadow: var(--shadow-card); }
.ca-card h2 { margin: 0; font-size: 16px; font-weight: 600; }
.ca-card p { margin: 0; }
.ca-card__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 12px; }
.ca-small { color: var(--ink-soft); font-size: 12px; }
.ca-waiting p, .ca-problem-card p { color: var(--ink-soft); font-size: 14px; }
.ca-problem-card .fx-btn { align-self: flex-start; }
.ca-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink-soft); font-size: 12px; }
.ca-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.ca-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.ca-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.ca-key--supplier { background: var(--ca-supplier); color: var(--ca-supplier-ink); }
.ca-key--freight { background: var(--ca-freight); color: var(--ca-freight-ink); }
.ca-key--duty { background: var(--ca-duty); color: var(--ca-duty-ink); }
.bc-page .is-good { color: var(--ca-good-ink); }
.bc-page .is-bad { color: var(--ca-bad-ink); }
.bc-page .is-warn { color: var(--ca-warn-ink); }

/* the answer first */
.bc-answer { display: flex; align-items: center; gap: 20px; padding: 20px 22px; border-radius: 20px; border: 1px solid var(--glass-border, var(--line)); box-shadow: var(--shadow-card); }
.bc-answer--good { background: var(--ca-good-bg); }
.bc-answer--warn { background: var(--ca-warn-bg); }
.bc-answer--bad { background: var(--ca-bad-bg); }
.bc-answer__badge { flex: none; display: grid; place-items: center; min-width: 92px; height: 92px; padding: 0 10px; box-sizing: border-box; border-radius: 46px;
  color: #ffffff; font-size: 30px; font-weight: 700; letter-spacing: -.01em; }
.bc-answer__badge--long { font-size: 20px; }
.bc-answer--good .bc-answer__badge { background: var(--bc-yes); }
.bc-answer--warn .bc-answer__badge { background: var(--bc-slowly); }
.bc-answer--bad .bc-answer__badge { background: var(--bc-no); }
.bc-answer__words { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bc-answer__headline { margin: 0; font-size: 24px; line-height: 1.3; font-weight: 600; }
.bc-answer--good .bc-answer__headline { color: var(--ca-good-ink); }
.bc-answer--warn .bc-answer__headline { color: var(--ca-warn-ink); }
.bc-answer--bad .bc-answer__headline { color: var(--ca-bad-ink); }
.bc-answer__story { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.5; }

/* your two years, month by month: one bar a month, up for the month's saving, down for the switch cost */
.bc-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.bc-key--cost { background: var(--bc-cost); } .bc-key--paying { background: var(--bc-paying); } .bc-key--kept { background: var(--bc-kept); }
.bc-key--before { background: var(--bc-before); } .bc-key--loss { background: var(--bc-loss); }
.bc-bars { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 5px; padding-top: 4px; }
.bc-bar { position: relative; display: flex; flex-direction: column; align-items: stretch; min-width: 0; }
.bc-bar__flag { position: relative; height: 22px; }
.bc-bar__flag > span { position: absolute; left: 0; bottom: 6px; color: var(--ca-good-ink); font-size: 11px; font-weight: 600; white-space: nowrap; }
.bc-bar.is-late .bc-bar__flag > span { left: auto; right: 0; }
.bc-bar__up { display: flex; align-items: flex-end; height: 130px; }
.bc-bar.is-paid .bc-bar__up { border-left: 2px dashed var(--bc-kept); }
.bc-bar__up i, .bc-bar__down i { display: block; width: 100%; transition: height .35s ease; }
.bc-bar__up i { border-radius: 3px 3px 0 0; }
.bc-bar--before .bc-bar__up i { background: var(--bc-before); }
.bc-bar--paying .bc-bar__up i { background: var(--bc-paying); }
.bc-bar--kept .bc-bar__up i { background: var(--bc-kept); }
.bc-bar--loss .bc-bar__up i { background: transparent; }
.bc-bar__down { display: flex; flex-direction: column; height: 64px; border-top: 2px solid var(--ca-axis); }
.bc-bar__down i:last-child { border-radius: 0 0 3px 3px; }
.bc-bar__cost { background: var(--bc-cost); }
.bc-bar__loss { background: var(--bc-loss); }
.bc-bar__label { height: 16px; color: var(--ca-axis); font-size: 11px; text-align: center; white-space: nowrap; overflow: visible; display: flex; justify-content: center; }
.bc-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--glass-inset, var(--surface-muted)); font-size: 14px; }
.bc-sum b { font-variant-numeric: tabular-nums; }
.bc-sum__net { font-size: 16px; }

.bc-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

/* one part: where the saving comes from */
.bc-part__row { display: flex; flex-direction: column; gap: 4px; }
.bc-part__line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; font-size: 13px; }
.bc-part__key { margin-right: 6px; vertical-align: -1px; }
.bc-dim { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.bc-part__words { font-weight: 600; font-variant-numeric: tabular-nums; }
.bc-part__words.is-same { color: var(--ink-soft); }
.bc-part__track { display: block; height: 12px; overflow: hidden; border-radius: 6px; background: var(--glass-inset, var(--surface-muted)); }
.bc-part__track i { display: block; height: 12px; border-radius: 6px; transition: width .35s ease; }
.bc-part__track i.is-good { background: var(--bc-kept); }
.bc-part__track i.is-bad { background: var(--bc-loss); }
.bc-part__total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; }

/* how much worse it can get and still save: two gauges split at break-even */
.bc-gauge { display: flex; flex-direction: column; gap: 4px; }
.bc-gauge__name { font-size: 13px; font-weight: 600; }
.bc-gauge__scale { position: relative; height: 56px; margin: 0 2px; }
.bc-gauge__track { position: absolute; left: 0; right: 0; top: 18px; display: flex; height: 16px; overflow: hidden; border-radius: 8px; }
.bc-gauge__track i { display: block; box-sizing: border-box; padding-left: 6px; overflow: hidden; font-size: 10px; font-style: normal; line-height: 16px; white-space: nowrap; }
.bc-gauge__ok { flex: none; background: var(--bc-ok-zone); color: var(--ca-good-ink); transition: width .35s ease; }
.bc-gauge__bad { flex: 1; background: var(--bc-bad-zone); color: var(--ca-bad-ink); }
.bc-gauge__limit { position: absolute; top: 14px; width: 2px; height: 24px; margin-left: -1px; background: var(--bc-cost); }
.bc-gauge__at { position: absolute; top: 14px; width: 4px; height: 24px; margin-left: -2px; border-radius: 2px; background: var(--ink); }
.bc-gauge__words { position: absolute; font-size: 11px; white-space: nowrap; }
.bc-gauge__words--limit { top: 0; color: var(--ca-bad-ink); font-weight: 600; }
.bc-gauge__words--at { top: 40px; color: var(--ink); }
.bc-anchor--middle { transform: translateX(-50%); }
.bc-anchor--end { transform: translateX(-100%); }
.bc-anchor--start { transform: translateX(-4px); }

/* your assumptions */
.bc-assume { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 18px; border: 1px solid var(--glass-border, var(--line)); border-radius: 18px;
  background: var(--glass-raised, var(--surface)); box-shadow: var(--shadow-card); }
.bc-assume h2 { margin: 0; font-size: 16px; font-weight: 600; }
.bc-assume__lead { margin-top: -10px; }
.bc-hint { margin: 0; color: var(--ink-soft); font-size: 12px; }
.bc-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.bc-field__name { padding: 0; font-size: 13px; font-weight: 600; }
.bc-form { display: flex; flex-direction: column; gap: 14px; }
.bc-form > .bc-field { padding-top: 10px; border-top: 1px solid var(--line); }
.bc-countries { display: flex; flex-wrap: wrap; gap: 6px; }
.bc-country { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 500; text-decoration: none; }
.bc-country:hover { border-color: var(--accent); }
.bc-country.is-on { border: 2px solid var(--accent); background: var(--accent-soft); }
.bc-country small { font-size: 11px; }
.bc-country:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bc-slider { gap: 2px; }
.bc-slider__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.bc-slider__value { font-size: 15px; font-weight: 600; }
.bc-slider input[type="range"] { width: 100%; height: 28px; margin: 0; accent-color: var(--accent); }
.bc-slider input[type="range"]:focus-visible, .bc-start__choice:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.bc-start__choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; }
.bc-start__choice { position: relative; display: flex; border-radius: 10px; }
.bc-start__choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.bc-start__choice span { display: flex; flex: 1; align-items: center; justify-content: center; min-height: 40px; padding: 0 6px; border: 1px solid var(--line-strong);
  border-radius: 10px; background: var(--surface); font-size: 13px; font-weight: 500; text-align: center; cursor: pointer; }
.bc-start__choice input:checked + span { border: 2px solid var(--accent); background: var(--accent-soft); }
.bc-ramp { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.bc-ramp .ob-input { width: auto; min-height: 32px; padding: 0 8px; font-size: 12px; }
.bc-foot { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; color: var(--ink-soft); font-size: 12px; }
.bc-foot__note { flex-basis: 100%; }
.ca-noquote { margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--ca-warn-bg); color: var(--ca-warn-ink); font-size: 12px; font-weight: 500; }
.ca-noquote .fx-link { color: inherit; text-decoration: underline; }
.bc-also { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 12px; background: var(--glass-inset, var(--surface-muted)); font-size: 13px; }
.bc-also + .bc-also { margin-top: 8px; }
.bc-also__title { font-weight: 600; }
.bc-also__words { color: var(--ink-soft); }
.bc-also .fx-link { align-self: flex-start; }

@media (max-width: 1080px) {
  .bc-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .bc-pair { grid-template-columns: minmax(0, 1fr); }
  .bc-answer { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; }
  .bc-answer__badge { min-width: 72px; height: 72px; border-radius: 36px; font-size: 24px; }
  .bc-answer__badge--long { font-size: 17px; }
  .bc-answer__headline { font-size: 20px; }
  .bc-bars { gap: 2px; }
  .bc-bar__up { height: 110px; }
  .bc-bar__down { height: 48px; }
  .bc-bar__label { font-size: 10px; }
  .ca-card { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .bc-bar__up i, .bc-bar__down i, .bc-part__track i, .bc-gauge__ok, .bc-main [data-ca-part="results"] { transition: none; }
}
@media print {
  .bc-layout { grid-template-columns: minmax(0, 1fr); }
  .bc-assume { display: none; }
}

/* zzzzzzzzzzzzzzzzzzzzzz_exec_overview.css */
/* The executive Overview (today/_executive, owner decision 2026-10-15): three figures as money-page cards (.mp-card, so
   Glass, Glass dark and Classic dress them like Savings' and Past entries'), one quiet line for a figure whose page has
   nothing yet, one sentence about the week, and the two reports. Nothing else. */
.ex-page .ex-cards { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 14px 0 0; }
.ex-card { gap: 6px; }
.ex-card .mp-card__figure small { margin-right: 2px; }
.ex-card__go { margin-top: auto; padding-top: 6px; }
.ex-under { font-weight: 500; }
.ex-empties { display: grid; gap: 4px; margin: 14px 0 0; }
.ex-empty { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.ex-empty__who { color: var(--muted); }
.ex-week { margin: 22px 0 0; font-size: 18px; font-weight: 600; line-height: 1.4; letter-spacing: -.01em; color: var(--ink); text-wrap: pretty; }
.ex-week__link { color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.ex-week__link:hover { color: var(--accent-strong); }
.ex-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 18px 0 0; font-size: 14px; }

@media (max-width: 600px) {
  .ex-page .ex-cards { grid-template-columns: 1fr; gap: 12px; }
  .ex-week { font-size: 16px; }
}

/* zzzzzzzzzzzzzzzzzzzzzz_fast_pages.css */
/* Fast pages (ProductFacts): the line a Products page shows while some products' facts are being worked out again. */
.product-facts-updating { margin: 0 0 10px; padding: 8px 12px; border-radius: 8px; background: var(--warn-bg); color: var(--warn); font-size: 13px; line-height: 1.45; }
.product-facts-updating a { font-weight: 600; }

/* zzzzzzzzzzzzzzzzzzzzzz_import_visual.css */
/* Import, step by step (docs/design/import-visual.mockup.html): the column check, Importing and Results screens.
   Glass panels on the canvas; green for ready and sure, amber for what needs the person, red for what cannot be read.
   Every bar is a count from the import; colour is never the only signal (each bar has its words and number). */
.im-page .iv-page {
  max-width: 1360px;
  --iv-ready: var(--good); --iv-need: #b7791f; --iv-need-soft: var(--warn-bg); --iv-bad: var(--bad);
  --iv-track: color-mix(in srgb, var(--line-strong) 55%, transparent); --iv-empty: #8794a8; --iv-read-bar: var(--muted);
}
:root[data-theme="dark"] .im-page .iv-page { --iv-need: #e2b45f; --iv-empty: #94a3b8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .im-page .iv-page { --iv-need: #e2b45f; --iv-empty: #94a3b8; } }

.iv-page .mono { font-family: "Geist Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.iv-muted { color: var(--muted); font-weight: 400; }
.iv-panel { min-width: 0; padding: 20px; border: 1px solid var(--glass-border, var(--line)); border-radius: 18px;
  background: var(--glass-sheen), var(--glass-raised, var(--surface)); box-shadow: var(--shadow-card); }
.iv-h2 { margin: 0; font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.iv-h3 { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); }

/* The intro line and the three steps */
.iv-intro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
.iv-intro .im-lede { margin: 0; flex: 1 1 320px; }
.iv-steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.iv-step { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 8px; border: 1px solid var(--line-strong);
  border-radius: 999px; background: var(--surface); color: var(--ink-soft); font-size: 13px; font-weight: 500; }
.iv-step__n { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface-muted); color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.iv-step--here { border: 2px solid var(--accent); background: var(--accent-soft); color: var(--ink); }
.iv-step--here .iv-step__n { background: var(--accent-strong); color: var(--accent-ink); }
.iv-step--done .iv-step__n { background: var(--good-bg); color: var(--good); }

/* Shared tiles and horizontal bars */
.iv-tile { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.iv-tile[hidden] { display: none; }
.iv-tile__value { font-size: 24px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.15; overflow-wrap: anywhere; }
.iv-tile__label { font-size: 13px; color: var(--ink-soft); }
.iv-tile__note { font-size: 12px; color: var(--muted); line-height: 1.45; }

/* Column check: what Tarivo found */
.iv-found { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.iv-found__tiles { flex: 999 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.iv-origins { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.iv-origins__title { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.iv-hbars { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.iv-hbar { display: grid; grid-template-columns: minmax(84px, 128px) minmax(0, 1fr) 56px; gap: 10px; align-items: center; font-size: 13px; color: var(--ink-soft); }
.iv-hbar__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iv-hbar__track { display: block; height: 10px; border-radius: 5px; background: var(--iv-track); overflow: hidden; }
.iv-hbar__fill { display: block; height: 100%; border-radius: 5px; background: var(--accent); }
.iv-hbar--bad .iv-hbar__fill { background: var(--iv-bad); }
.iv-hbar--empty .iv-hbar__fill { background: var(--iv-empty); }
.iv-hbar__count { text-align: right; color: var(--ink); }

/* Column check: columns and the first products */
.im-page .iv-check { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(300px, 1fr); gap: 20px; align-items: start;
  margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.iv-columns { display: grid; gap: 14px; }
.iv-columns__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 12px; }
.iv-needs-count { font-size: 13px; font-weight: 600; color: var(--warn); }
.iv-needs-count--done { color: var(--good); }
.iv-col-heads { display: grid; grid-template-columns: minmax(0, 1.3fr) 52px minmax(0, 1.2fr); gap: 12px; padding: 0 4px; font-size: 12px; color: var(--muted); }
.iv-columns .im-plan__group { gap: 10px; }
.iv-columns .im-plan__group > .ob-hint { margin: 0; }
.im-page .iv-col, .im-page .iv-col.im-col--needs, .im-page .iv-col:last-child { grid-template-columns: minmax(0, 1.3fr) 52px minmax(0, 1.2fr); gap: 8px 12px;
  padding: 4px 0; border: 0; border-radius: 0; background: none; }
.iv-col__card { display: flex; flex-direction: column; gap: 5px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.iv-col--check:not(.iv-col--chosen) .iv-col__card { border-color: color-mix(in srgb, var(--iv-need) 45%, var(--line)); }
.iv-col__head { font-size: 14px; }
.iv-col__card .im-product-meta { margin-top: 0; }
.iv-col__samples { font-family: "Geist Mono", ui-monospace, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iv-col__health { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.iv-col__bar { display: flex; flex: 0 0 88px; height: 5px; border-radius: 3px; overflow: hidden; background: var(--iv-track); }
.iv-col__filled { display: block; height: 100%; background: var(--iv-ready); }
.iv-col__unread { display: block; height: 100%; background: var(--iv-bad); }
.iv-col__arrow { display: flex; align-items: center; gap: 2px; height: 44px; color: var(--iv-ready); }
.iv-col__line { flex: 1 1 auto; height: 0; border-top: 2px solid currentColor; }
.iv-col__arrow svg { flex: none; fill: currentColor; }
.iv-col--check:not(.iv-col--chosen) .iv-col__arrow { color: var(--iv-need); }
.iv-col--check:not(.iv-col--chosen) .iv-col__line { border-top-style: dashed; }
.iv-col .im-col__choice { gap: 8px; }
.iv-col .im-col__choice > select.fx-input { min-height: 44px; }
.iv-col--check:not(.iv-col--chosen) .im-col__choice > select.fx-input { border: 2px solid var(--iv-need); }
.iv-col__note { font-size: 12px; line-height: 1.45; }
.iv-col--chosen .iv-col__note[data-rs="import-check-reason"] { color: var(--muted); }

.iv-preview { display: grid; gap: 12px; position: sticky; top: calc(var(--topbar-height, 64px) + 16px); }
.iv-preview__list { display: grid; gap: 10px; }
.iv-preview__list[data-stale] { opacity: .7; }
.iv-product { display: grid; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.iv-product__name { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.iv-product__problem { margin: 0; font-size: 12px; color: var(--bad); }
.iv-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.iv-chip { padding: 3px 8px; border-radius: 999px; font-size: 12px; line-height: 1.4; background: var(--accent-soft); color: var(--accent-strong); overflow-wrap: anywhere; }
.iv-chip--missing, .iv-chip--unread { background: var(--iv-need-soft); color: var(--warn); }
.iv-start { display: grid; gap: 8px; justify-items: start; }
.iv-start .iv-start__button { width: 100%; min-height: 48px; justify-content: center; font-size: 15px; }
.iv-start__rows { margin: 0; font-size: 12px; color: var(--muted); }

/* Importing */
.iv-summary.im-summary { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; display: grid; gap: 16px; }
.iv-run { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
.iv-run__main { display: grid; gap: 16px; padding: 24px; }
.iv-run__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 12px; }
.iv-run__title { font-size: 18px; }
.iv-run__eta { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.iv-bars { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.iv-bar { display: grid; grid-template-columns: minmax(110px, 170px) minmax(0, 1fr) 76px; gap: 14px; align-items: center; }
.iv-bar__name { font-size: 14px; font-weight: 500; color: var(--ink); }
.iv-bar__track { display: block; height: 16px; border-radius: 8px; background: var(--iv-track); overflow: hidden; }
.iv-bar__fill { display: block; height: 100%; border-radius: 8px; background: var(--iv-read-bar); transition: width .4s ease; }
.iv-bar--coded .iv-bar__fill { background: var(--accent); }
.iv-bar--duty .iv-bar__fill { background: var(--iv-ready); }
.iv-bar--need .iv-bar__fill { background: var(--iv-need); }
.iv-bar__count { font-size: 14px; text-align: right; color: var(--ink); }
.iv-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.iv-tiles .iv-tile__value { font-size: 22px; }
.iv-run__headline.im-headline { font-size: 18px; letter-spacing: -.01em; }
.iv-run__feed { display: grid; gap: 10px; }
.iv-feed { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.iv-feed__row { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.iv-feed__top, .iv-feed__bottom { display: flex; justify-content: space-between; gap: 10px; min-width: 0; }
.iv-feed__name { font-size: 14px; font-weight: 500; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.iv-feed__code { flex: none; font-size: 13px; color: var(--ink); }
.iv-feed__bottom { font-size: 12px; color: var(--muted); }
.iv-feed__state { font-weight: 600; text-align: right; }
.iv-feed__state--good { color: var(--good); }
.iv-feed__state--warn { color: var(--warn); }
.iv-feed__empty { margin: 0; padding: 12px 0; font-size: 13px; }

/* Results */
.iv-results { display: grid; grid-template-columns: minmax(250px, .75fr) minmax(0, 1.8fr); gap: 20px; align-items: start; }
.iv-ring { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px; }
.iv-ring__chart circle { fill: none; stroke-width: 16; }
.iv-ring__track { stroke: var(--iv-track); }
.iv-ring__need { stroke: var(--iv-need); }
.iv-ring__ready { stroke: var(--iv-ready); }
.iv-ring__value { font: 700 22px var(--font-sans); fill: var(--ink); }
.iv-ring__of { font: 500 10px var(--font-sans); fill: var(--muted); }
.iv-ring__headline.im-headline { font-size: 20px; text-align: center; letter-spacing: -.01em; }
.iv-reasons { display: grid; gap: 12px; padding: 24px; }
.iv-reason-list { display: grid; margin: 0; padding: 0; list-style: none; }
.iv-reason { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.8fr) 56px auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.iv-reason:last-child { border-bottom: 0; }
.iv-reason__words { display: grid; gap: 2px; font-size: 14px; color: var(--ink); }
.iv-reason__words strong { font-weight: 500; }
.iv-reason__words .iv-muted { font-size: 12px; }
.iv-reason__track { display: block; height: 12px; border-radius: 6px; background: var(--iv-need-soft); overflow: hidden; }
.iv-reason__fill { display: block; height: 100%; border-radius: 6px; background: var(--iv-need); }
.iv-reason__count { font-size: 14px; font-weight: 600; text-align: right; color: var(--ink); }
.iv-reason .iv-reason__go { min-height: 40px; justify-content: center; }
.iv-reasons .im-detail { margin: 0; }
.iv-next { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.iv-next__card { display: flex; flex-direction: column; gap: 8px; padding: 18px; }
.iv-next__kicker { font-size: 13px; color: var(--muted); }
.iv-next__value { font-size: 26px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.15; }
.iv-next__words { font-size: 13px; color: var(--ink-soft); line-height: 1.45; }
.iv-next__bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--iv-track); }
.iv-next__part { display: block; height: 100%; }
.iv-next__part--ready { background: var(--iv-ready); }
.iv-next__part--need { background: var(--iv-need); }
.iv-next__part--general { background: var(--layer-general); }
.iv-next__part--301 { background: var(--layer-301); }
.iv-next__part--other { background: var(--layer-other); }
.iv-next__legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.iv-next__key::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 5px; border-radius: 2px; background: var(--layer-other); }
.iv-next__key--general::before { background: var(--layer-general); }
.iv-next__key--301::before { background: var(--layer-301); }
.iv-next__go { display: flex; align-items: center; min-height: 40px; margin-top: auto; font-size: 14px; font-weight: 600; text-decoration: none; }
.iv-next__go:hover { text-decoration: underline; text-underline-offset: 3px; }
.iv-actions { margin-top: 2px; }

@media (prefers-reduced-motion: reduce) { .iv-bar__fill { transition: none; } }
@media (max-width: 1080px) {
  .im-page .iv-check, .iv-run, .iv-results { grid-template-columns: minmax(0, 1fr); }
  .iv-preview { position: static; }
}
@media (max-width: 720px) {
  .iv-panel { padding: 16px; border-radius: 16px; }
  .iv-col-heads { display: none; }
  .im-page .iv-col, .im-page .iv-col.im-col--needs, .im-page .iv-col:last-child { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 6px 0 10px; }
  .iv-col__arrow { height: 14px; width: 14px; transform: rotate(90deg); margin-left: 12px; }
  .iv-col__line { display: none; }
  .iv-bar { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; }
  .iv-bar__track { grid-column: 1 / -1; grid-row: 2; }
  .iv-reason { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .iv-reason__track { grid-column: 1 / -1; grid-row: 2; }
  .iv-reason__go { grid-column: 1 / -1; }
  .iv-hbar { grid-template-columns: minmax(70px, 96px) minmax(0, 1fr) 48px; }
}

/* Columns that need the person come first, each on light amber until the person chooses (it then keeps its place). */
.im-page .iv-columns [data-rs="import-needs"] .iv-col.iv-col--check:not(.iv-col--chosen) { padding: 8px; border-radius: 14px; background: var(--iv-need-soft); }

/* zzzzzzzzzzzzzzzzzzzzzz_live_duty.css */
/* Live duty review (products/_live_duty, live_duty_controller.js): inside a row's duty review on Duty calculation, the
   duty per entry on the left (total, one stacked bar of the duty layers, a legend row per layer, the checks, the same entry
   from other countries) and what it rests on on the right (a card per input with where it came from). One column on a
   phone. A layer's colour is never the only cue: every legend row names the layer and its amount. */
:root {
  --ld-general: #1f4fa3; --ld-s301: #5b86d6; --ld-s232: #a86b12; --ld-ieepa: #6b4fa0; --ld-other: #1f8f8f;
  --ld-track: rgba(91, 112, 148, .16);
  --ld-tag-file-ink: #1f3d75; --ld-tag-file-bg: #e6eefb;
  --ld-tag-assumed-ink: #54447e; --ld-tag-assumed-bg: #efeaf7;
  --ld-tag-yours-ink: #1f5b3a; --ld-tag-yours-bg: #e3f2e8;
}
:root[data-theme="dark"] {
  --ld-general: #8fb0ea; --ld-s301: #4f73c0; --ld-s232: #e2b25e; --ld-ieepa: #c2acec; --ld-other: #79d0c8;
  --ld-track: rgba(208, 224, 252, .14);
  --ld-tag-file-ink: #cfe0ff; --ld-tag-file-bg: rgba(91, 134, 214, .28);
  --ld-tag-assumed-ink: #e3d8fb; --ld-tag-assumed-bg: rgba(128, 99, 197, .30);
  --ld-tag-yours-ink: #c8f0d6; --ld-tag-yours-bg: rgba(46, 140, 90, .30);
}

.ld-chip--general { background: var(--ld-general); }
.ld-chip--s301 { background: var(--ld-s301); }
.ld-chip--s232 { background: var(--ld-s232); }
.ld-chip--ieepa { background: var(--ld-ieepa); }
.ld-chip--other { background: var(--ld-other); }

.live-duty { display: grid; gap: 12px; margin: 0 0 16px; font-family: var(--font-sans); color: var(--ink); }
.live-duty[aria-busy="true"] .live-duty__amount { opacity: .72; }
.live-duty--stale .live-duty__pay .live-duty__figure, .live-duty--stale .live-duty__bar, .live-duty--stale .live-duty__legend { opacity: .5; }
.live-duty__cols { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.ld-panel { min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: 20px 22px; border: 1px solid var(--glass-border, var(--line));
  border-radius: var(--radius-card); background: var(--glass-raised, var(--surface)); box-shadow: var(--shadow-card); }
.live-duty__pay { flex: 999 1 520px; }
.live-duty__rests { flex: 1 1 340px; gap: 12px; }
.live-duty h3 { margin: 0; font-size: 16px; font-weight: 600; }
.live-duty h4 { margin: 0; font-size: 14px; font-weight: 600; }

.live-duty__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 16px; }
.live-duty__heading { display: grid; gap: 4px; }
.live-duty__sub { margin: 0; color: var(--ink-soft); font-size: 13px; }
.live-duty__figure { display: grid; justify-items: end; gap: 2px; text-align: right; }
.live-duty__amount { font-size: 40px; line-height: 1.05; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; transition: opacity .15s; }
.live-duty__year { color: var(--ink-soft); font-size: 13px; }
.live-duty__badge { display: inline-block; padding: 3px 9px; border-radius: var(--radius-pill); background: var(--warn-bg); color: var(--warn);
  font-size: 11px; font-weight: 650; letter-spacing: .03em; text-transform: uppercase; }
.live-duty__label { margin: 0; padding: 8px 12px; border-radius: 10px; background: var(--warn-bg); color: var(--ink); font-size: 13px; }
.live-duty__status { margin: 0; min-height: 0; color: var(--accent-strong); font-size: 13px; }
.live-duty__status:not(:empty) { padding: 10px 12px; border-radius: 10px; background: var(--glass-inset, var(--accent-soft)); }

.live-duty__bar { display: flex; height: 28px; overflow: hidden; border-radius: 8px; background: var(--ld-track); }
.live-duty__seg { flex: 0 1 0px; min-width: 0; height: 100%; transition: flex-grow .35s ease; }
.live-duty__seg + .live-duty__seg { box-shadow: inset 2px 0 0 var(--glass-raised, #fff); }

.live-duty__legend { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.ld-row { display: grid; grid-template-columns: 14px minmax(0, 1fr) 76px 104px; gap: 12px; align-items: center; padding: 10px 4px;
  border-bottom: 1px solid var(--line); transition: opacity .2s; }
.ld-row--zero { opacity: .55; }
.ld-row__chip { width: 12px; height: 12px; border-radius: 3px; }
.ld-row__name { display: grid; gap: 2px; min-width: 0; }
.ld-row__title { font-size: 14px; font-weight: 500; }
.ld-row__official { color: var(--muted); font-size: 12px; font-weight: 500; }
.ld-row__why { color: var(--ink-soft); font-size: 12px; }
.ld-row__rate, .ld-row__amount { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.ld-row__rate { color: var(--ink-soft); font-size: 13px; }
.ld-row__amount { font-size: 14px; font-weight: 600; }
.live-duty__fees, .live-duty__scope { margin: 0; color: var(--ink-soft); font-size: 12.5px; }

.live-duty__checks { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; background: var(--glass-inset, var(--surface-muted)); font-size: 13px; }
.live-duty__checks ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ld-check__kind { display: inline-block; min-width: 46px; padding: 1px 6px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 650; text-align: center; }
.ld-check--block .ld-check__kind { background: var(--warn-bg); color: var(--warn); }
.ld-check--note .ld-check__kind { background: var(--ld-tag-file-bg); color: var(--ld-tag-file-ink); }

.live-duty__compare { display: grid; gap: 8px; }
.live-duty__compare .fx-hint { margin: 0; }
.ld-compare { display: grid; gap: 6px; }
.ld-compare__row { display: grid; grid-template-columns: 120px minmax(0, 1fr) 96px; gap: 12px; align-items: center; min-height: 44px; padding: 6px 10px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--glass-raised, var(--surface)); color: var(--ink); font: 500 13px var(--font-sans);
  text-align: left; cursor: pointer; transition: border-color .2s, background-color .2s; }
.ld-compare__row:hover { border-color: var(--accent); }
.ld-compare__row[aria-pressed="true"] { border: 2px solid var(--accent); background: var(--glass-selected, var(--accent-soft)); }
.ld-compare__track { display: block; height: 10px; overflow: hidden; border-radius: 5px; background: var(--ld-track); }
.ld-compare__fill { display: block; height: 100%; border-radius: 5px; background: var(--ld-s301); transition: width .35s ease; }
.ld-compare__row[aria-pressed="true"] .ld-compare__fill { background: var(--ld-general); }
.ld-compare__amount { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.live-duty__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.live-duty__actions .ld-save { margin: 0; }
.ld-btn { min-height: 44px; padding: 0 18px; }
.live-duty__action-note { flex: 1 1 100%; margin: 0; color: var(--ink-soft); font-size: 12.5px; }
.live-duty__action-note:empty { display: none; }
.live-duty__more { justify-self: start; min-height: 44px; }

.live-duty__rests-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.live-duty__rests-head .fx-hint { margin: 0; font-size: 12px; }
.ld-card { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--glass-inset, var(--surface-muted)); }
.ld-card__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 10px; width: 100%; padding: 0; float: left; }
.ld-card__head + * { clear: both; }
.ld-card__title { font-size: 14px; font-weight: 600; }
.ld-card__text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ld-card__text, .ld-card__note, .ld-card__sub { margin: 0; color: var(--ink-soft); font-size: 12.5px; }
.ld-card__effect { color: var(--ink); }
.ld-tag { display: inline-block; padding: 3px 8px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 650; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.ld-tag--file { color: var(--ld-tag-file-ink); background: var(--ld-tag-file-bg); }
.ld-tag--assumed { color: var(--ld-tag-assumed-ink); background: var(--ld-tag-assumed-bg); }
.ld-tag--yours { color: var(--ld-tag-yours-ink); background: var(--ld-tag-yours-bg); }

.ld-chips { display: grid; gap: 6px; }
.ld-chips--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ld-chips--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ld-option { position: relative; display: block; min-width: 0; cursor: pointer; }
.ld-option--wide { grid-column: 1 / -1; }
.ld-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ld-option span { display: flex; align-items: center; min-height: 44px; box-sizing: border-box; padding: 8px 12px; border: 1px solid var(--control-border, var(--line-strong));
  border-radius: 10px; background: var(--glass-raised, var(--surface)); font-size: 13px; font-weight: 500; transition: border-color .2s, background-color .2s; }
.ld-option:hover span { border-color: var(--accent); }
.ld-option input:checked + span { border: 2px solid var(--accent); background: var(--glass-selected, var(--accent-soft)); padding: 7px 11px; }
.ld-option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.ld-question { display: grid; gap: 6px; }
.ld-question__text { margin: 0; font-size: 13px; font-weight: 500; }
.ld-select, .ld-date { min-height: 44px; width: 100%; box-sizing: border-box; }
.ld-value, .ld-share { display: flex; align-items: center; gap: 6px; }
.ld-value > span { font-size: 18px; font-weight: 600; }
.ld-value__input { min-height: 44px; max-width: 220px; font-family: var(--font-mono); font-size: 18px; font-weight: 600; }
.ld-share__input { min-height: 44px; font-family: var(--font-mono); }
.ld-range { width: 100%; height: 28px; margin: 0; accent-color: var(--accent); }
.live-duty input:focus-visible, .live-duty select:focus-visible, .live-duty button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* the figure stays in view while the inputs beside it scroll: only while the two sit side by side (the figure's 520px,
   the inputs' 340px and the gap). Measured on the review itself, not the screen: a narrower column (the product's own
   page) stacks them, and a figure stuck there slid under the inputs, drawing one over the other. */
.live-duty:not(.live-duty--row) { container: live-duty / inline-size; }
@media (min-width: 960px) {
  @container live-duty (min-width: 880px) {
    .live-duty__pay { position: sticky; top: 12px; align-self: flex-start; }
  }
}
/* a phone: the inputs sit under the figure, so a strip with the figure follows them */
.live-duty__peek { display: none; }
@media (max-width: 959px) {
  .live-duty__peek { position: sticky; bottom: 0; z-index: 2; display: flex; align-items: baseline; gap: 8px; margin: 0; padding: 10px 16px;
    border: 1px solid var(--glass-border, var(--line)); border-radius: 12px; background: var(--glass-raised, var(--surface)); box-shadow: var(--shadow-card); font-size: 13px; }
  .live-duty__peek strong { font-size: 18px; font-variant-numeric: tabular-nums; }
  .live-duty__peek-badge { padding: 2px 8px; border-radius: var(--radius-pill); background: var(--warn-bg); color: var(--warn); font-size: 11px; font-weight: 650; text-transform: uppercase; }
}

/* the row's small bar in the Duty estimate cell (Duty calculation) */
.ld-mini { display: flex; width: 100%; max-width: 160px; height: 6px; margin-top: 4px; overflow: hidden; border-radius: 3px; background: var(--ld-track); }
.ld-mini__seg { flex: 0 1 0px; min-width: 0; height: 100%; }

@media (max-width: 640px) {
  .ld-panel { padding: 16px; }
  .live-duty__figure { justify-items: start; text-align: left; }
  .live-duty__amount { font-size: 32px; }
  .ld-row { grid-template-columns: 12px minmax(0, 1fr) auto auto; gap: 8px; }
  .ld-compare__row { grid-template-columns: 90px minmax(0, 1fr) 80px; }
  .ld-chips--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .live-duty__seg, .ld-compare__fill, .ld-row, .ld-option span { transition: none; }
}

/* The classic duty basis: a customs value from SAP says so under the figure (SapPrices). */
.approval-review-basis__note { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.45; }

/* A confirmed duty (products/_live_duty, confirmed): who confirmed it in one quiet line above the review, and the tried
   inputs' Save and confirm with its why. */
.live-duty__confirmed { display: flex; gap: 8px; align-items: baseline; margin: 0 0 10px; font-size: 13px; color: var(--ink-soft); }
.live-duty__confirmed .confirmed-by-block { flex-direction: row; flex-wrap: wrap; gap: 4px 12px; }
.live-duty__confirmed-mark { color: var(--good); font-weight: 700; }
.live-duty__actions .ld-save--confirm { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; flex-basis: 100%; }
.live-duty__actions .ld-save--confirm[hidden] { display: none; }
.ld-why { display: flex; flex-direction: column; gap: 4px; flex: 1 1 220px; font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.ld-why .fx-input { min-height: 44px; font-weight: 400; }

/* Under a row (owner, 2026-10-15): a multiple-choice question as a dropdown, the checks in ONE line (amber only when
   something blocks confirming), and "Answer N questions" in Confirm's place while Tarivo still assumes an answer. */
.ld-select--answer { box-sizing: border-box; width: 100%; min-height: 44px; padding: 8px 36px 8px 12px; border-radius: 10px;
  border: 1px solid var(--control-border); background: var(--surface); box-shadow: none; font-size: 13px; cursor: pointer; }
.ld-select--answer:hover { border-color: var(--accent); }
.ld-short__counts { margin: 0; font-size: 13px; }
.ld-short__line { color: var(--ink-soft); text-decoration: none; }
.ld-short__line:hover { color: var(--accent-strong); text-decoration: underline; }
.ld-short__block { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: baseline; margin: 0; padding: 8px 12px; border-radius: 10px;
  background: var(--warn-soft, #fff4dc); color: var(--warn); font-size: 13px; }
.ld-short__go { margin-left: auto; font-weight: 600; }
.live-duty__actions .ld-btn[hidden] { display: none; }

/* zzzzzzzzzzzzzzzzzzzzzz_live_hts_review.css */
/* The live HTS review (products/_live_hts_review, live_hts_controller.js; docs/design/live-hts-review.mockup.html): the
   codes that could fit as bars by fit, beside the assumptions the code rests on. Two columns; one on a phone. Text
   always says what the colour says (the label beside each bar, the tag on each assumption). */
:root {
  --lhr-best: #2f7d4f; --lhr-possible: #b7791f; --lhr-unlikely: #7a8496; --lhr-track: #e3e9f3;
  --lhr-best-ink: var(--good); --lhr-possible-ink: var(--warn); --lhr-unlikely-ink: var(--muted);
  --lhr-card: rgba(255, 255, 255, .86); --lhr-card-line: #dfe6f2; --lhr-soft: #f6f8fc; --lhr-top-bg: #f5f8fe;
  --lhr-status-bg: #eef3fc; --lhr-status-ink: #1f3d75;
  --lhr-tag-assumed: #5a4680; --lhr-tag-assumed-bg: #efeaf7;
  --lhr-tag-description: #1f3d75; --lhr-tag-description-bg: #e6eefb;
  --lhr-tag-yours: #1f5b3a; --lhr-tag-yours-bg: #e3f2e8;
  --lhr-tag-sap: #0d5c63; --lhr-tag-sap-bg: #dff2f3;
  --lhr-tag-file: #5c4a1f; --lhr-tag-file-bg: #f4eddc;
  --lhr-tag-gs1: #7a3d12; --lhr-tag-gs1-bg: #fbe9dc;
}
:root[data-theme="dark"] {
  --lhr-best: #6fc497; --lhr-possible: #e3b260; --lhr-unlikely: #9aa7bb; --lhr-track: #3a4a60;
  --lhr-card: rgba(38, 49, 66, .9); --lhr-card-line: rgba(181, 200, 230, .18); --lhr-soft: #2b3a4f; --lhr-top-bg: #2c3d58;
  --lhr-status-bg: #2c3d58; --lhr-status-ink: #c4d9ff;
  --lhr-tag-assumed: #d9cdf3; --lhr-tag-assumed-bg: #3d3858;
  --lhr-tag-description: #c4d9ff; --lhr-tag-description-bg: #2f4566;
  --lhr-tag-yours: #b3e6c9; --lhr-tag-yours-bg: #2a4a3a;
  --lhr-tag-sap: #a8e3e7; --lhr-tag-sap-bg: #1f4448;
  --lhr-tag-file: #eadbb2; --lhr-tag-file-bg: #4a4129;
  --lhr-tag-gs1: #f6c9a6; --lhr-tag-gs1-bg: #4f3424;
}

.lhr { margin: 4px 0 16px; font-family: var(--font-sans); color: var(--ink); }
.lhr__grid { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.lhr__panel { box-sizing: border-box; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 20px 22px;
  border: 1px solid var(--lhr-card-line); border-radius: 16px; background: var(--lhr-card); }
.lhr__panel--codes { flex: 999 1 520px; }
.lhr__panel--assumptions { flex: 1 1 380px; }
.lhr__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.lhr__head h3 { margin: 0; font-size: 16px; font-weight: 600; }
.lhr__head p { margin: 0; font-size: 12px; color: var(--muted); }

.lhr__status { display: flex; gap: 10px; align-items: center; margin: 0; padding: 10px 12px; border-radius: 10px;
  background: var(--lhr-status-bg); color: var(--lhr-status-ink); font-size: 13px; }
.lhr__status[hidden] { display: none; }
.lhr__status svg { flex: none; }

.lhr__codes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lhr__code { display: grid; grid-template-columns: 150px minmax(0, 1fr) 96px; gap: 14px; align-items: center;
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--lhr-track); background: var(--lhr-card);
  transition: background-color var(--motion, 180ms) ease, border-color var(--motion, 180ms) ease; }
.lhr__code--top { border: 2px solid var(--accent); background: var(--lhr-top-bg); padding: 11px 13px; }
.lhr__code-id { display: flex; flex-direction: column; gap: 4px; }
.lhr__code-number { font-size: 14px; font-weight: 500; }
.lhr__code--top .lhr__code-number { font-weight: 700; }
.lhr__answer-tag { font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--accent-strong); }
.lhr__code-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lhr__code-name { font-size: 13px; color: var(--ink-soft); overflow-wrap: anywhere; }
.lhr__bar { display: block; height: 10px; border-radius: 5px; background: var(--lhr-track); overflow: hidden; }
.lhr__bar-fill { display: block; height: 10px; border-radius: 5px; background: var(--lhr-unlikely);
  transition: width .35s ease, background-color .35s ease; }
.lhr__code--best .lhr__bar-fill { background: var(--lhr-best); }
.lhr__code--possible .lhr__bar-fill { background: var(--lhr-possible); }
.lhr__why { font-size: 12px; color: var(--muted); }
.lhr__label { text-align: right; font-size: 13px; font-weight: 600; color: var(--lhr-unlikely-ink); }
.lhr__code--best .lhr__label { color: var(--lhr-best-ink); }
.lhr__code--possible .lhr__label { color: var(--lhr-possible-ink); }

.lhr__wording > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-size: 13px; color: var(--accent-strong); }
.lhr__wording > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.lhr__wording dl { display: grid; gap: 8px; margin: 4px 0 0; font-size: 12px; color: var(--ink-soft); }
.lhr__wording dl > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; }
.lhr__wording dd { margin: 0; overflow-wrap: anywhere; }
.lhr__confidence { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: 12px;
  background: var(--lhr-soft); font-size: 13px; color: var(--ink-soft); line-height: 1.45; }
.lhr__confidence svg { flex: none; margin-top: 1px; color: var(--muted); }
.lhr__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.lhr__actions .fx-btn { min-height: 44px; padding: 0 18px; }
.lhr__deep-form { margin: 0; display: inline-flex; }

.lhr__form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.lhr__card { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 12px;
  border: 1px solid var(--lhr-track); background: var(--lhr-soft); }
.lhr__card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.lhr__question { font-size: 14px; font-weight: 600; }
.lhr__tag { font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; padding: 3px 8px;
  border-radius: 999px; color: var(--lhr-tag-assumed); background: var(--lhr-tag-assumed-bg); }
.lhr__tag--description { color: var(--lhr-tag-description); background: var(--lhr-tag-description-bg); }
.lhr__tag--yours { color: var(--lhr-tag-yours); background: var(--lhr-tag-yours-bg); }
/* where a fact came from: the client's SAP, its file, GS1 (LiveHtsReview::TAGS) */
.lhr__tag--sap { color: var(--lhr-tag-sap); background: var(--lhr-tag-sap-bg); }
.lhr__tag--file { color: var(--lhr-tag-file); background: var(--lhr-tag-file-bg); }
.lhr__tag--gs1 { color: var(--lhr-tag-gs1); background: var(--lhr-tag-gs1-bg); }
/* the company's own answers the rules reused (an answer on a sibling product, a group default): coloured as "Your answer" */
.lhr__tag--memory, .lhr__tag--default { color: var(--lhr-tag-yours); background: var(--lhr-tag-yours-bg); }
/* what the person's latest answer did to the code about to be confirmed (products/_code_change) */
.code-change { flex-basis: 100%; margin: 0; padding: 8px 12px; border-radius: 10px; font-size: 13px; color: var(--lhr-status-ink); background: var(--lhr-status-bg); }
.lhr__source { margin: 2px 0 0; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.lhr__options { display: flex; flex-direction: column; gap: 6px; }
.lhr__option { box-sizing: border-box; min-height: 44px; width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--lhr-card);
  font: 500 13px var(--font-sans); color: var(--ink); text-align: left;
  transition: background-color .2s ease, border-color .2s ease; }
button.lhr__option { cursor: pointer; }
button.lhr__option:hover { border-color: var(--accent); }
button.lhr__option:disabled { cursor: progress; opacity: .7; }
.lhr__option:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lhr__option--on { border: 2px solid var(--accent); background: var(--lhr-status-bg); padding: 7px 11px; }
.lhr__option--fixed { color: var(--ink-soft); }
.lhr__option-label { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lhr__dot { flex: none; width: 14px; height: 14px; border-radius: 50%; box-sizing: border-box; border: 2px solid var(--control-border); }
.lhr__option--on .lhr__dot { border: 5px solid var(--accent); }
.lhr__leads { flex: none; font-size: 12px; color: var(--muted); }
.lhr__statement { margin: 0; font-size: 13px; color: var(--ink-soft); }
.lhr__change { align-self: flex-start; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.lhr__change[hidden] { display: none; }
.lhr__note { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.5; }

.lhr-more { margin-top: 4px; }
.lhr-more > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--accent-strong); }
.lhr-more > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }

@media (max-width: 720px) {
  .lhr__panel { padding: 16px; }
  .lhr__code { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "id label" "body body"; gap: 8px 12px; }
  .lhr__code-id { grid-area: id; }
  .lhr__code-body { grid-area: body; }
  .lhr__label { grid-area: label; }
}
@media (prefers-reduced-motion: reduce) {
  .lhr__bar-fill, .lhr__code, .lhr__option { transition: none; }
}

/* On a phone the product rows are cards (display: grid); the opened review's own row stays a table row there and its
   one cell shrinks to nothing. Make it a block the width of the list, so the review (this panel included) is readable. */
@media (max-width: 760px) {
  .product-workspace tr.catalog-review-row { display: block; }
  .product-workspace tr.catalog-review-row > td { display: block; width: auto; min-width: 0; }
}

/* "Other lines you can choose": a person's name for each line, the schedule's own wording under it (workspace/_line_choices). */
.ob-line__wording { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }

/* A confirmed product (live mode "confirmed", LiveHtsReview.for_confirmed): who confirmed it in one quiet line, the
   confirmed code marked where it ranks, the code picked carrying the emphasis (not the top one), and the change's Save
   and confirm with its why only once something differs. */
.lhr__confirmed { display: flex; gap: 8px; align-items: baseline; margin: 0 0 10px; font-size: 13px; color: var(--ink-soft); }
.lhr__confirmed .confirmed-by-block { flex-direction: row; flex-wrap: wrap; gap: 4px 12px; }
.lhr__confirmed-mark { color: var(--lhr-best-ink); font-weight: 700; }
.lhr__code { position: relative; }
/* each code is a button that chooses it (live_hts_controller.js#choose): the whole card is its target */
.lhr__code-choose { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: inherit;
  background: transparent; cursor: pointer; }
.lhr__code-choose:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lhr__codes--choosable .lhr__code:hover { border-color: var(--accent); background: var(--lhr-top-bg); }
/* the ring is on the code chosen: Tarivo's answer until another is chosen; a confirmed product's confirmed code */
.lhr--confirmed .lhr__code--top, .lhr__codes--own .lhr__code--top { border: 1px solid var(--lhr-track); background: var(--lhr-card); padding: 12px 14px; }
.lhr--confirmed .lhr__code--top .lhr__code-number, .lhr__codes--own .lhr__code--top .lhr__code-number { font-weight: 500; }
.lhr--confirmed .lhr__code--chosen, .lhr__codes--own .lhr__code--chosen { border: 2px solid var(--accent); background: var(--lhr-top-bg); padding: 11px 13px; }
.lhr--confirmed .lhr__code--chosen .lhr__code-number, .lhr__codes--own .lhr__code--chosen .lhr__code-number { font-weight: 700; }
.lhr__answer-tag--confirmed { color: var(--lhr-best-ink); }
.lhr__answer-tag--choice { color: var(--accent-strong); }
.lhr__choice { display: flex; flex-direction: column; gap: 6px; flex-basis: 100%; }
.lhr__choice[hidden] { display: none; }
.lhr__save-change { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 14px; border-radius: 12px; background: var(--lhr-soft); }
.lhr__save-change[hidden] { display: none; }
.lhr__change-words { margin: 0; font-size: 13px; color: var(--ink); line-height: 1.45; }
.lhr__why { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.lhr__why .fx-input { min-height: 44px; font-weight: 400; }
.lhr__change-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lhr__change-actions .fx-btn { min-height: 44px; padding: 0 18px; }

/* Each question's answers as a dropdown naming the code each leads to (owner, 2026-10-15); Tarivo's assumption is its
   placeholder until the person answers. */
.lhr__select { box-sizing: border-box; width: 100%; min-height: 44px; padding: 8px 36px 8px 12px; border-radius: 10px; border: 1px solid var(--control-border);
  background: var(--lhr-card); box-shadow: none; font: 500 13px var(--font-sans); color: var(--ink); cursor: pointer; text-overflow: ellipsis; }
.lhr__select:hover { border-color: var(--accent); }
.lhr__select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lhr__answer-fixed { display: flex; justify-content: space-between; gap: 10px; margin: 0; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--lhr-track); background: var(--lhr-card); font-size: 13px; }
/* under a row: one grey sureness line, the open checks counted beside the Confirm */
.lhr__confidence--row { align-items: center; }
.lhr__confidence--row .sure-mark { letter-spacing: 1px; }
.lhr__open-checks { font-size: 12px; color: var(--warn); cursor: help; }
.lhr__actions .lhr__confirm[hidden] { display: none; }

/* zzzzzzzzzzzzzzzzzzzzzz_money_pages.css */
/* The two money pages (MoneyPages): Already paid (the overpayment finder's results) and From now on (Savings), joined by
   one header. Blue is the past ("already paid", get it back); green is what is ahead ("a year", don't pay it again).
   Clickable cards and rows look clickable (a border that answers the pointer, a hint); plain figures have neither. */
.mp-page {
  --mp-paid: #2454ad; --mp-paid-fill: #3268c7; --mp-paid-light: #9db8e6; --mp-paid-soft: #e7eefb;
  --mp-future: #1f5b3a; --mp-future-fill: #2f7d4f; --mp-future-light: #a9d4b8; --mp-future-soft: #e4f3ea;
  --mp-under: #7a4a00; --mp-under-fill: #c98a2b; --mp-soon: #8f2f2b; --mp-soon-fill: #b13e39;
  --mp-review: #5a4680; --mp-track: rgba(88, 109, 140, .13); --mp-card: var(--glass-raised, var(--surface));
}
:root[data-theme="dark"] .mp-page {
  --mp-paid: #9bb9f2; --mp-paid-fill: #5b8be0; --mp-paid-light: #3a5687; --mp-paid-soft: #182847;
  --mp-future: #8fd8aa; --mp-future-fill: #3f9a64; --mp-future-light: #2c5a3e; --mp-future-soft: #132a1d;
  --mp-under: #f2b35a; --mp-under-fill: #d99a3c; --mp-soon: #ff8a80; --mp-soon-fill: #e0605a;
  --mp-review: #c3b3e6; --mp-track: rgba(181, 200, 230, .14); --mp-card: var(--surface);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mp-page {
    --mp-paid: #9bb9f2; --mp-paid-fill: #5b8be0; --mp-paid-light: #3a5687; --mp-paid-soft: #182847;
    --mp-future: #8fd8aa; --mp-future-fill: #3f9a64; --mp-future-light: #2c5a3e; --mp-future-soft: #132a1d;
    --mp-under: #f2b35a; --mp-under-fill: #d99a3c; --mp-soon: #ff8a80; --mp-soon-fill: #e0605a;
    --mp-review: #c3b3e6; --mp-track: rgba(181, 200, 230, .14); --mp-card: var(--surface);
  }
}

.mp-lede { margin: -4px 0 8px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.mp-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.mp-actions form { margin: 0; }
.mp-mono, .mp-page .op-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.mp-h2 { margin: 0; font-size: 16px; font-weight: 600; }
.mp-hint { color: var(--muted); font-size: 12px; line-height: 1.45; }
.mp-ink-paid { color: var(--mp-paid); }
.mp-ink-future { color: var(--mp-future); }
.mp-ink-under { color: var(--mp-under); }
.mp-ink-soon { color: var(--mp-soon); }
.mp-ink-link { color: var(--accent-strong); }

/* The header: two halves, the current page's filled */
.mp-switch { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin: 12px 0 18px; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-card); }
.mp-switch__half { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; text-decoration: none; transition: filter .2s ease; }
.mp-switch__half:hover { filter: brightness(.97); }
.mp-switch__half--paid { background: var(--mp-paid-soft); color: var(--mp-paid); }
.mp-switch__half--paid.is-current { background: var(--mp-paid-fill); color: #ffffff; }
.mp-switch__half--future { background: var(--mp-future-soft); color: var(--mp-future); }
.mp-switch__half--future.is-current { background: var(--mp-future-fill); color: #ffffff; }
.mp-switch__half--quiet:hover { filter: none; }
.mp-switch__half:hover, .mp-switch__half.is-current:hover { color: inherit; }
.mp-switch__half--paid:hover { color: var(--mp-paid); }
.mp-switch__half--future:hover { color: var(--mp-future); }
.mp-switch__half.is-current:hover { color: #ffffff; }
.mp-switch__half:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.mp-switch__lead { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mp-switch__icon { flex: none; }
.mp-switch__words { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mp-switch__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.mp-switch__sub { font-size: 14px; opacity: .9; }
.mp-switch__figure { display: flex; flex-direction: column; align-items: flex-end; font-size: 22px; font-weight: 700; white-space: nowrap; }
.mp-switch__figure small { font-size: 12px; font-weight: 500; opacity: .85; }
.mp-switch__note { font-size: 13px; font-weight: 600; text-align: right; }

/* The cards */
.mp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 0 0 18px; }
.mp-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--mp-card); box-shadow: var(--shadow-card); color: var(--ink); }
.mp-page .op-tile.mp-card { gap: 8px; padding: 20px; }
.mp-card__label { font-size: 14px; font-weight: 600; color: var(--ink-soft, var(--ink)); }
.mp-page .op-tile span.mp-card__label { font-size: 14px; }
.mp-card__figure, .mp-page .op-tile strong.mp-card__figure { font-variant-numeric: tabular-nums; font-size: 40px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; color: var(--ink); overflow-wrap: anywhere; }
.mp-card__figure small { font-size: 14px; font-weight: 500; color: var(--muted); }
.mp-card__sub { color: var(--muted); font-size: 13px; }
.mp-card__words, .mp-page .op-tile span.mp-card__words { font-size: 13px; color: var(--ink-soft, var(--ink)); line-height: 1.45; }
.mp-card__hint, .mp-page .op-tile span.mp-card__hint { font-size: 12px; font-weight: 600; }
.mp-card__link { font-size: 13px; font-weight: 600; text-decoration: none; color: var(--accent-strong); }
.mp-card--pick { cursor: pointer; text-decoration: none; border-width: 2px; transition: border-color .2s ease, background-color .2s ease; }
.mp-card--pick:hover { border-color: var(--accent); color: var(--ink); }
.mp-card--pick.mp-card--under { border-color: var(--mp-under-fill); }
.mp-card--pick.mp-card--soon { border-color: var(--mp-soon-fill); }
.mp-card--pick.is-on { border: 3px solid var(--ink); padding: 19px; }
.mp-card--pick:focus-visible, .mp-reason__pick:focus-visible, .mp-chip:focus-visible, .mp-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* A card's certainty split, and the reason and window bars: one bar per certainty, never stacked */
.mp-split { list-style: none; display: flex; flex-direction: column; gap: 6px; margin: 4px 0 0; padding: 0; }
.mp-split__row { display: grid; grid-template-columns: minmax(60px, 1fr) auto; gap: 10px; align-items: center; font-size: 13px; }
.mp-page .op-tile .mp-split__words { font-size: 13px; color: var(--ink); }
.mp-split__track, .mp-bars__track { display: block; height: 10px; border-radius: 5px; background: var(--mp-track); overflow: hidden; }
.mp-split__fill, .mp-bars__fill { display: block; height: 100%; border-radius: inherit; transition: width .35s ease; }
.mp-split__fill--certain, .mp-bars__fill--certain { background: var(--mp-paid-fill); }
.mp-split__fill--possible, .mp-bars__fill--possible { background: var(--mp-paid-light); }
.mp-split__fill--expert-review, .mp-bars__fill--expert-review { background: color-mix(in srgb, var(--mp-review) 40%, transparent); }
.mp-bars__fill--future { background: var(--mp-future-fill); }
.mp-bars { display: flex; flex-direction: column; gap: 3px; width: 100%; }
.mp-bars .mp-bars__track + .mp-bars__track { height: 6px; }

.mp-two { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; margin: 0 0 18px; }
.mp-two > * { flex: 1 1 420px; min-width: 0; }
.mp-two--future > .mp-moves { flex: 999 1 560px; }
.mp-side { display: flex; flex-direction: column; gap: 20px; flex: 1 1 360px; min-width: 0; }
.mp-panel { gap: 10px; }
.mp-panel__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }

.mp-reason { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; background: var(--mp-card); overflow: hidden; transition: opacity .2s ease, border-color .2s ease; }
.mp-reason.is-on { border: 2px solid var(--mp-paid-fill); background: color-mix(in srgb, var(--mp-paid-soft) 50%, var(--mp-card)); }
.mp-reason.is-dim { opacity: .6; }
.mp-reason__pick { display: flex; flex-direction: column; gap: 8px; min-height: 56px; padding: 10px 12px 8px; color: var(--ink); text-decoration: none; }
a.mp-reason__pick:hover { background: color-mix(in srgb, var(--mp-paid-soft) 40%, transparent); color: var(--ink); }
.mp-reason:has(.mp-reason__pick:hover) { border-color: var(--mp-paid-fill); }
.mp-reason__top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.mp-reason__name { font-size: 14px; font-weight: 600; min-width: 0; }
.mp-reason__amount { font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 600; color: var(--mp-paid); text-align: right; }
.mp-reason__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 10px; padding: 0 12px 8px; }
.mp-ahead { min-height: 32px; display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; color: var(--mp-future); text-decoration: none; }
.mp-ahead:hover { color: var(--mp-future); text-decoration: underline; }
.mp-ahead--none { color: var(--muted); font-weight: 400; }
.mp-window:hover { border-color: var(--mp-paid-fill); }
.mp-window--w30 .mp-reason__name { color: var(--mp-soon); }
.mp-legal { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-soft, var(--ink)); }
.mp-legal p { margin: 0; }

/* The lines */
.mp-lines { gap: 0; padding: 0; overflow: hidden; margin: 0 0 18px; }
.mp-lines__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.mp-lines__tools { display: flex; flex-wrap: wrap; gap: 8px; }
.mp-lines .op-section { margin: 0; padding: 12px 8px 0; }
.mp-lines .op-section__head, .mp-lines .op-section > h2 { padding: 0 12px; }
.mp-lines__foot { margin: 0; padding: 12px 20px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }
.mp-toggle { min-height: 40px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-strong, var(--line)); background: var(--mp-card); color: var(--ink); font-size: 13px; font-weight: 500; text-decoration: none; }
.mp-toggle:hover { border-color: var(--accent); color: var(--ink); }
.mp-toggle.is-on { border: 2px solid var(--mp-paid-fill); background: var(--mp-paid-soft); }
.mp-toggle--clear { color: var(--accent-strong); }
.op-row--filed { grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr) minmax(0, 1.6fr) minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1.1fr); }
.op-cell--rule { font-size: 12px; color: var(--ink-soft, var(--ink)); }
.op-cell--under { color: var(--mp-under); }
.op-chevron::after { content: "▾"; margin-left: 8px; color: var(--muted); font-family: var(--font-sans, inherit); }
.op-finding[open] .op-chevron::after { content: "▴"; }
.mp-evidence { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 4px 0 8px; }
.mp-evidence__box { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--mp-card); min-width: 0; overflow-wrap: anywhere; }
.mp-evidence__label { font-size: 11px; font-weight: 700; letter-spacing: .05em; color: var(--muted); }
.mp-evidence__box p { margin: 0; }

/* Savings: the period switch, the layer bar and chips, the ring, the moves, before and after, the schedule */
.mp-layerbar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--mp-track); }
.mp-layerbar__seg { display: block; height: 100%; transition: opacity .2s ease; }
.mp-layerbar__seg.is-dim { opacity: .3; }
.mp-layer--column1_general, .mp-layer--column2 { background: var(--layer-general, #6b7380); }
.mp-layer--s301_china_lists { background: var(--layer-301, #b86e00); }
.mp-layer--s232_metals { background: #2f5fb3; }
.mp-layer--s232_autos_parts { background: #6b4fa0; }
.mp-layer--s301_country_surcharge { background: #c27c2c; }
.mp-layer--ieepa, .mp-layer--s122 { background: #8a5a8f; }
.mp-layer--unmodelled { background: #9aa4b2; }
.mp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mp-chip { min-height: 36px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-strong, var(--line)); background: var(--mp-card); color: var(--ink-soft, var(--ink)); font-size: 12px; font-weight: 500; text-decoration: none; }
.mp-chip:hover { border-color: var(--accent); color: var(--ink); }
.mp-chip.is-on { border: 2px solid var(--ink); background: var(--accent-soft); }
.mp-chip__swatch { width: 10px; height: 10px; border-radius: 2px; }
.mp-sure { flex-direction: row; align-items: center; gap: 18px; text-decoration: none; }
.mp-sure__words { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mp-ring { flex: none; }
.mp-ring__rest { stroke: color-mix(in srgb, var(--warn) 30%, transparent); }
.mp-ring__done { stroke: var(--mp-future-fill); transition: stroke-dasharray .4s ease; }
.mp-ring__text { font: 700 26px var(--font-sans, sans-serif); fill: var(--ink); }

.mp-moves__form { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.mp-move { display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(90px, auto); gap: 12px; align-items: center; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--mp-card); scroll-margin-top: 80px; }
.mp-move.is-on { border-color: color-mix(in srgb, var(--mp-future-fill) 45%, var(--line)); background: color-mix(in srgb, var(--mp-future-soft) 55%, var(--mp-card)); }
.mp-move__tick { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; cursor: pointer; }
.mp-move__tick input { width: 18px; height: 18px; accent-color: var(--mp-future-fill); }
.mp-move__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mp-move__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.mp-move__name { font-size: 14px; font-weight: 600; }
.mp-move__detail { font-size: 12px; color: var(--muted); }
.mp-move__amount { font-size: 15px; font-weight: 700; text-align: right; color: var(--mp-future); }
.mp-move__amount.is-off { color: var(--muted); }
.mp-pill { font-size: 11px; font-weight: 600; letter-spacing: .03em; padding: 2px 7px; border-radius: 999px; text-transform: uppercase; color: var(--ink-soft, var(--ink)); background: var(--mp-track); }
.mp-pill--certain { color: var(--mp-future); background: var(--mp-future-soft); }
.mp-pill--possible { color: var(--mp-under); background: var(--warn-bg); }
.mp-pill--review { color: var(--mp-review); background: color-mix(in srgb, var(--mp-review) 14%, transparent); }
.mp-pill--soon { color: var(--mp-soon); background: var(--bad-bg, var(--warn-bg)); }
.mp-past { align-self: flex-start; min-height: 32px; display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; color: var(--mp-paid); text-decoration: none; }
.mp-past:hover { color: var(--mp-paid); text-decoration: underline; }
.mp-past--none { color: var(--muted); font-weight: 400; }

.mp-compare { display: flex; flex-direction: column; gap: 6px; }
.mp-compare__top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.mp-compare__top .op-mono { font-weight: 600; }
.mp-compare__track { position: relative; display: block; height: 18px; border-radius: 6px; background: var(--mp-track); overflow: hidden; }
.mp-compare__fill { display: block; height: 100%; border-radius: 6px; }
.mp-compare__fill--today { background: var(--mp-paid-fill); }
.mp-compare__fill--after { background: var(--mp-future-fill); }
.mp-compare__off { position: absolute; top: 0; right: 0; height: 100%; background: repeating-linear-gradient(135deg, var(--mp-track) 0 6px, transparent 6px 12px), var(--mp-card); border-left: 2px solid var(--mp-future-fill); transition: width .35s ease; }
.mp-coming { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.mp-coming__amount { font-weight: 600; text-align: right; white-space: nowrap; }
/* a deadline's saving (MoneyPages::Scheduled#deadline): its own line under the words, never in the narrow amount column */
.mp-coming__saving { display: block; margin-top: 2px; }
.sv-products-title { margin: 8px 0 10px; }

@media (max-width: 760px) {
  .mp-switch { grid-template-columns: 1fr; }
  .mp-switch__half { padding: 12px 16px; }
  .mp-card__figure, .mp-page .op-tile strong.mp-card__figure { font-size: 32px; }
  .mp-evidence { grid-template-columns: 1fr; }
  .op-row--filed { grid-template-columns: 1fr 1fr; }
  .op-row--filed .op-cell--what, .op-row--filed .op-cell--rule { grid-column: 1 / -1; }
  .mp-move { grid-template-columns: 44px minmax(0, 1fr); }
  .mp-move__amount { grid-column: 2; text-align: left; }
  .mp-coming { grid-template-columns: 1fr auto; }
  .mp-coming > :first-child { grid-column: 1 / -1; }
  .mp-sure { flex-direction: column; align-items: flex-start; }
}

/* zzzzzzzzzzzzzzzzzzzzzz_products_overview.css */
/* Products, the overview (ProductsOverview): stage cards, where the duty is, the filters and the list, on the glass
   surfaces. Green is a confirmed code, amber what still needs review; the stage colours follow the stages' order. */
.pov {
  --pov-open: #c4862b; --pov-done: var(--good); --pov-track: rgba(88, 109, 140, .13);
  --pov-stage-review: #c4862b; --pov-stage-hts: var(--accent); --pov-stage-duty: var(--good); --pov-stage-sent: #5a6478;
  display: flex; flex-direction: column; gap: 18px; max-width: 1360px; margin: 0 auto; padding: 24px clamp(16px, 3vw, 40px) 96px; color: var(--ink);
}
:root[data-theme="dark"] .pov { --pov-open: #e3b46b; --pov-track: rgba(181, 200, 230, .14); --pov-stage-review: #e3b46b; --pov-stage-sent: #aab6c8; }

.pov__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.pov__eyebrow { margin: 0 0 4px; color: var(--muted); font-size: 13px; }
.pov__title { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -.01em; }
.pov__frame { display: flex; flex-direction: column; gap: 18px; }
.pov__status { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: -6px; }
.pov__count { margin: 0; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.pov__note { margin: 0; color: var(--warn); font-size: 13px; }

.pov-h2 { margin: 0; font-size: 16px; font-weight: 600; }
.pov-hint { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.pov-card { min-width: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--glass-sheen, none), var(--glass-surface); box-shadow: var(--shadow-card); }

/* The four stage cards */
.pov-stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pov-stage { display: flex; flex-direction: column; gap: 10px; min-height: 92px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--glass-surface); color: var(--ink); text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease; }
.pov-stage:hover { border-color: var(--accent); color: var(--ink); }
.pov-stage.is-on { border: 2px solid var(--accent); padding: 13px 15px; box-shadow: var(--shadow-card); }
.pov-stage__top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.pov-stage__name { color: var(--muted); font-size: 13px; }
.pov-stage__count { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pov-stage__note { color: var(--muted); font-size: 12px; }
.pov-track { display: block; height: 8px; border-radius: 4px; background: var(--pov-track); overflow: hidden; }
.pov-track__fill { display: block; height: 100%; border-radius: inherit; background: var(--stage-fill, var(--accent)); transition: width .35s ease; }
.pov-stage--needs_review { --stage-fill: var(--pov-stage-review); }
.pov-stage--hts_confirmed { --stage-fill: var(--pov-stage-hts); }
.pov-stage--duty_confirmed { --stage-fill: var(--pov-stage-duty); }
.pov-stage--sent { --stage-fill: var(--pov-stage-sent); }

.pov__main { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px; }

/* Where the duty is */
.pov-duty { flex: 1 1 380px; display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.pov-duty__head { display: flex; flex-direction: column; gap: 4px; }
.pov-seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 12px; background: var(--glass-inset, var(--surface-muted)); }
.pov-seg__item { display: grid; place-items: center; min-height: 40px; padding: 0 6px; border-radius: 9px; color: var(--ink); font-size: 13px; font-weight: 500; text-align: center; text-decoration: none; }
.pov-seg__item:hover { color: var(--accent-strong); }
.pov-seg__item.is-on { background: var(--glass-raised, var(--surface)); box-shadow: 0 1px 3px rgba(23, 32, 51, .12); font-weight: 600; }
.pov-gbars { display: flex; flex-direction: column; gap: 6px; }
.pov-gbar { display: flex; flex-direction: column; gap: 8px; min-height: 64px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--glass-raised, var(--surface)); color: var(--ink); text-decoration: none; transition: border-color .2s ease; }
.pov-gbar:hover { border-color: var(--accent); color: var(--ink); }
.pov-gbar.is-on { border: 2px solid var(--accent); padding: 9px 11px; background: color-mix(in srgb, var(--accent) 6%, var(--glass-raised, var(--surface))); }
.pov-gbar__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 14px; }
.pov-gbar__name { min-width: 0; overflow-wrap: anywhere; }
.pov-gbar__sub { color: var(--muted); }
.pov-gbar__duty { flex: none; font-weight: 600; white-space: nowrap; }
.pov-gbar__words { color: var(--muted); font-size: 12px; }
.pov-gtrack { display: flex; height: 12px; border-radius: 6px; background: var(--pov-track); overflow: hidden; }
.pov-gtrack__fill { display: flex; height: 100%; transition: width .35s ease; }
.pov-gtrack__done { display: block; height: 100%; background: var(--pov-done); }
.pov-gtrack__open { display: block; flex: 1 1 auto; height: 100%; background: var(--pov-open); }
.pov-more-groups > summary { padding: 8px 4px; color: var(--accent-strong); font-size: 13px; cursor: pointer; }
.pov-more-groups[open] > summary { margin-bottom: 6px; }
.pov-empty-line { margin: 0; padding: 16px 4px; color: var(--muted); font-size: 13px; }
.pov-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 12px; }
.pov-legend li { display: inline-flex; align-items: center; gap: 6px; }
.pov-swatch { width: 12px; height: 12px; border-radius: 3px; }
.pov-swatch--done { background: var(--pov-done); }
.pov-swatch--open { background: var(--pov-open); }

/* The list */
.pov-list { flex: 999 1 620px; display: flex; flex-direction: column; overflow: hidden; }
.pov-list__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.pov-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--glass-raised, var(--surface)); color: var(--ink); font: 500 13px var(--font-sans); text-decoration: none; cursor: pointer; }
.pov-btn:hover { border-color: var(--accent); color: var(--ink); }
.pov-btn--link { color: var(--accent-strong); }
.pov-btn[disabled] { opacity: .55; cursor: default; }
.pov-toggle.is-on { border: 2px solid var(--accent); padding: 0 13px; background: var(--accent-soft); }

.pov-filters { display: flex; flex-direction: column; gap: 10px; padding: 12px 20px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--accent) 3%, transparent); }
.pov-filters__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pov-filters__form { display: contents; }
.pov-field { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.pov-control { min-height: 40px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--glass-raised, var(--surface)); color: var(--ink); font: 500 13px var(--font-sans); }
.pov-control--code { width: 120px; box-sizing: border-box; font-family: var(--font-mono); }
.pov-save { margin: 0 0 0 auto; }
.pov-chips, .pov-views { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pov-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 10px; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-strong); font-size: 13px; font-weight: 500; text-decoration: none; }
.pov-chip span { font-size: 15px; line-height: 1; }
.pov-chip:hover { border-color: var(--accent); color: var(--accent-strong); }
.pov-chip--clear { border-color: transparent; background: transparent; }
.pov-views { color: var(--muted); font-size: 12px; }
.pov-view { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--glass-raised, var(--surface)); }
.pov-view__open { display: inline-flex; align-items: center; min-height: 32px; padding: 0 10px; color: var(--ink); font-size: 12px; font-weight: 500; text-decoration: none; }
.pov-view form { margin: 0; display: flex; }
.pov-view__remove { min-width: 32px; min-height: 32px; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.pov-view__remove:hover { color: var(--bad); }

.pov-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pov-table th { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 500; text-align: left; }
.pov-table th:first-child, .pov-table td:first-child { width: 44px; padding-left: 20px; }
.pov-row > td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pov-row { cursor: pointer; transition: background-color .15s ease; }
.pov-row:hover > td { background: color-mix(in srgb, var(--accent) 4%, transparent); }
.pov-row:has(input:checked) > td { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.pov-row__pick input { width: 18px; height: 18px; margin: 13px; accent-color: var(--accent-strong); cursor: pointer; }
.pov-row__pick input:disabled { cursor: default; opacity: .4; }
.pov-row__product { min-width: 0; }
.pov-row__name { display: block; color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.pov-row__name:hover { color: var(--accent-strong); }
.pov-row__meta { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 2px; color: var(--muted); font-size: 12px; }
.pov-row__meta .flag { width: 16px; height: 12px; }
.pov-sap { padding: 0 6px; border: 1px solid color-mix(in srgb, var(--good) 45%, var(--line)); border-radius: 999px; color: var(--good); font-size: 11px; font-weight: 600; }
.pov-row__code, .pov-row__duty { min-width: 120px; }
.pov-row__code > span, .pov-row__duty > span { display: block; }
.pov-row__small { color: var(--muted); font-size: 12px; }
.pov-row__amount { font-weight: 600; font-variant-numeric: tabular-nums; }
.pov-row__code > .pov-fit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; max-width: 120px; height: 6px; margin: 5px 0 3px; }
.pov-fit__step { border-radius: 3px; background: var(--pov-track); }
.pov-fit--confirmed .is-on, .pov-fit--good .is-on { background: var(--pov-done); }
.pov-fit--assumed .is-on { background: var(--pov-open); }
.pov-fit--weak .is-on { background: var(--muted); }
.pov-row__duty > .pov-layers { display: flex; height: 6px; margin-top: 5px; border-radius: 3px; background: var(--pov-track); overflow: hidden; }
.pov-layers__part { height: 100%; }
.pov-layers__part--general { background: var(--layer-general); }
.pov-layers__part--301 { background: var(--layer-301); }
.pov-layers__part--232 { background: var(--layer-232); }
.pov-layers__part--other { background: var(--layer-other); }
.pov-pill { display: inline-block; padding: 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pov-pill--needs_review { background: var(--warn-bg); color: var(--warn); }
.pov-pill--hts_confirmed { background: var(--accent-soft); color: var(--accent-strong); }
.pov-pill--duty_confirmed { background: var(--good-bg); color: var(--good); }
.pov-pill--sent { background: var(--surface-muted); color: var(--ink-soft); }
.pov-more { margin: 0; padding: 14px 20px; }
.pov-empty { padding: 28px 20px; color: var(--muted); font-size: 14px; }
.pov-empty p { margin: 0 0 6px; }

/* The selection bar: the effect before acting */
.pov-selection-frame { position: sticky; bottom: 16px; z-index: 5; display: block; }
.pov-bulk { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 14px 20px; border-radius: 16px;
  background: #172033; color: #ffffff; box-shadow: 0 16px 40px rgba(23, 32, 51, .25); }
:root[data-theme="dark"] .pov-bulk { background: #e9eef7; color: #172033; }
.pov-bulk__words { margin: 0; font-size: 15px; line-height: 1.45; }
.pov-bulk__note { opacity: .85; }
.pov-bulk__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pov-bulk__actions form { margin: 0; }
.pov-bulk__clear, .pov-bulk__go { min-height: 44px; padding: 0 16px; border-radius: 12px; font: 500 14px var(--font-sans); cursor: pointer; }
.pov-bulk__clear { border: 1px solid currentColor; background: transparent; color: inherit; opacity: .9; }
.pov-bulk__go { border: 0; background: #ffffff; color: #172033; font-weight: 600; }
:root[data-theme="dark"] .pov-bulk__go { background: #172033; color: #ffffff; }

.pov :is(a, button, select, input):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 900px) {
  .pov-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .pov { padding: 16px 16px 96px; }
  .pov-seg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pov-save { margin-left: 0; }
  .pov-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .pov-table, .pov-table tbody { display: block; }
  .pov-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 8px; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--line); }
  .pov-row > td { display: block; padding: 0; border: 0; }
  .pov-row > td:first-child { grid-row: span 4; width: auto; padding-left: 4px; }
  .pov-row__code, .pov-row__duty { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pov-track__fill, .pov-gtrack__fill, .pov-stage, .pov-gbar, .pov-row { transition: none; }
}

/* zzzzzzzzzzzzzzzzzzzzzz_sure_mark.css */
/* How sure Tarivo is (Sureness, on by default): the three dots beside a row's step, and what would fill them.
   The dots are a glyph, not a badge: neutral until all three are filled, then green. Their popover (one per list,
   sure_needs_controller.js) and the opened review's list (_sure_needs.html.erb) say what would fill them. The tokens
   (--muted, --good, --line, --ink, --glass-raised) follow Glass, Glass dark and Classic. */
.sure-step { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.sure-step > .catalog-status { flex: 0 1 auto; min-width: 0; }
.sure-mark { flex: none; display: inline-flex; align-items: center; padding: 2px 4px; margin: -2px 0; border: 0; border-radius: 6px; background: none; color: var(--muted); font: inherit; font-size: 10px; line-height: 1; letter-spacing: 1px; white-space: nowrap; cursor: help; }
.sure-mark:hover, .sure-mark[aria-expanded="true"] { background: color-mix(in srgb, var(--muted) 12%, transparent); }
.sure-mark:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.sure-mark--green { color: var(--good); }
.sure-mark--static { cursor: default; padding: 0; margin: 0 4px 0 0; background: none !important; font-size: 11px; }

.sure-pop { position: fixed; inset: auto; margin: 0; padding: 12px 14px; max-width: calc(100vw - 32px); border: 1px solid var(--line); border-radius: 12px;
  background: var(--glass-raised, var(--surface, #fff)); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 12px 32px rgb(23 47 61 / 14%); color: var(--ink); font-size: 13px; font-weight: 400; line-height: 1.45; text-align: left; white-space: normal; }
.sure-pop p { margin: 0; }
.sure-pop__head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.sure-pop__dots { color: var(--muted); font-size: 11px; letter-spacing: 1px; }
.sure-pop__dots--green { color: var(--good); }
.sure-pop__because, .sure-pop__lead { margin-top: 6px !important; color: var(--ink); }
.sure-pop__needs { display: grid; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.sure-pop__need { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; }
.sure-pop__words { grid-column: 1; }
.sure-pop__adds { grid-column: 1; color: var(--good); font-size: 12px; font-weight: 600; }
.sure-pop__go { grid-column: 2; grid-row: 1 / span 2; white-space: nowrap; }
.sure-pop__measured { margin-top: 8px !important; color: var(--muted); font-size: 12px; }

.sure-needs { margin: 8px 0 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; line-height: 1.45; }
.sure-needs p { margin: 0; }
.sure-needs--green { border-color: color-mix(in srgb, var(--good) 35%, var(--line)); }
.sure-needs__list { display: grid; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.sure-needs__need { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 2px 4px; margin: 0 -4px; border-radius: 8px; transition: background-color .3s; }
.sure-needs__words { flex: 1 1 220px; min-width: 0; }
.sure-needs__adds { color: var(--good); font-size: 12px; font-weight: 600; white-space: nowrap; }
.sure-needs__actions { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.sure-needs__form { display: inline; margin: 0; }
.sure-needs__measured { margin-top: 8px !important; color: var(--muted); font-size: 12px; }
.sure-target { background: color-mix(in srgb, var(--accent) 12%, transparent); border-radius: 8px; transition: background-color .3s; }
@media (prefers-reduced-motion: reduce) { .sure-needs__need, .sure-target { transition: none; } }

/* The code digit by digit (owner, 2026-10-15): the digits Tarivo is sure of in ink, the open ones lighter; their hover
   says what decides them. No element of its own beside the code. */
.sure-code { white-space: nowrap; }
.sure-code__open { opacity: .55; cursor: help; text-decoration: underline dotted color-mix(in srgb, currentColor 50%, transparent); text-underline-offset: 3px; }
@media (forced-colors: active) { .sure-code__open { opacity: 1; text-decoration: underline dotted; } }

/* zzzzzzzzzzzzzzzzzzzzzzz_compact_header.css */
/* Compact page header (owner, 2026-10-15: "the title need not be that big … the title is already in the side bar").
   Every page's header (shared/_page_header) is one row: on a nested page the way back, then the page's name as a small,
   quiet H1, its status pills, and the page's actions on the right. The content's own headline (What-if's parts, the
   Business case question, the Audit trail's verified line) is the big heading below it. Loaded after every page's
   stylesheet (only the glass, which re-points tokens, comes later), so it holds in Glass, Glass dark and Classic. */
.page-header { display: block; gap: 0; margin: 0; }
.page-header__row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; min-height: 36px; }
.page-header__name { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; min-width: 0; }
.page-header .page-header__title,
.workspace-shell .page-header .page-header__title {
  margin: 0; color: var(--accent, #2454ad); font-size: 19px; font-weight: 650; line-height: 1.3; letter-spacing: -.01em;
  overflow-wrap: anywhere; text-wrap: pretty;
}
/* A nested page's name is the record or the step (not in the sidebar), so it is in ink, a touch larger, after the way back. */
.page-header--nested .page-header__title,
.workspace-shell .page-header--nested .page-header__title { color: var(--ink); font-size: 19px; }
.page-header__back { flex: none; font-size: 13px; font-weight: 500; white-space: nowrap; }
.page-header__back + .page-header__title { padding-left: 10px; border-left: 1px solid var(--line, rgba(0, 0, 0, .12)); }
.page-header__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.page-header .sample-marker { min-height: 22px; padding: 0 8px; font-size: 11.5px; }

/* The page wrappers had room for a 30 px title and a lede: the content now starts right under the row. */
.ca-page > [data-page-header], .atl .page-header, .ca-move-page .page-header { margin-bottom: 0; }

/* A content headline under the compact header: the main visual heading of the page. */
.page-headline { margin: 0; font-size: clamp(22px, 2vw, 26px); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; color: var(--ink); overflow-wrap: anywhere; text-wrap: balance; }

/* One quiet status line under the header, only while it changes what the person does now. */
.page-status { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

/* Small controls next to a headline (Change parts, Suggested moves): links, not sentences. */
.headline-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0; font-size: 13px; color: var(--muted); }

@media (max-width: 600px) {
  .page-header__row { gap: 6px 12px; }
  .page-header__actions:empty { display: none; }
  .page-headline { font-size: 21px; }
}
@media print {
  .page-header .page-header__title { color: #000; font-size: 18px; }
}

/* What-if: the parts are the headline; Change parts and the suggested moves (a small menu) beside it. */
.wv-head__words { gap: 4px; }
.wv-head__line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.wv-head .wv-head__line h2.page-headline { font-size: clamp(22px, 2vw, 26px); }
.wv-head .wv-badge { margin-top: 4px; }
.wv-moves-menu { position: relative; }
.wv-moves-menu > summary { cursor: pointer; list-style: none; }
.wv-moves-menu > summary::-webkit-details-marker { display: none; }
.wv-moves-menu > summary::after { content: " ▾"; font-size: 11px; }
.wv-moves-menu[open] > .wv-moves { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; display: grid; gap: 6px; width: max-content; max-width: min(360px, 80vw); padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface, var(--bg)); box-shadow: 0 12px 32px rgba(15, 23, 42, .14); }
@media (max-width: 600px) { .wv-head .wv-head__line h2.page-headline { font-size: 21px; } }

/* Business case: the question is the headline, with its one context line (and the tariff note behind an i) under it. */
.bc-meta { margin-top: 0; }
.bc-meta > .page-headline { flex-basis: 100%; }
.bc-meta .bc-context { display: flex; align-items: center; gap: 2px; }
.ca-context-bar h2.page-headline, .cad-context h2.page-headline { margin: 0 0 4px; font-size: clamp(22px, 2vw, 26px); }
.ca-context-line { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; }
.ca-planning { font-weight: 600; color: var(--ink-soft); }

/* Audit trail: the verified line is the headline. */
.atl .atl-integrity { margin: 0; gap: 4px 8px; }
.atl .atl-integrity__count.page-headline { font-size: clamp(20px, 1.8vw, 24px); }
.atl .atl-integrity__mark { width: 24px; height: 24px; font-size: 13px; }

/* A quiet note beside the header's actions (Savings' figure dates). */
.page-header__note { color: var(--muted); font-size: 12.5px; }

/* Products' status cell: a one-line pill and a one-line next step (the full words are in their titles). */
.product-stage .product-work-table .product-stage-status { white-space: nowrap; }
.product-stage .product-work-table tr[data-stage-tone="waiting"] > td > .product-stage-hts-step { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.product-stage-progress { font-size: 12.5px; color: var(--muted); }
.pov__head { display: block; }
@media (max-width: 600px) { .tools-search-hint { display: none; } }

/* A product's own page: its description is the record's name, in the nested header's scale rather than a 34 px title. */
.workspace-shell .ob-wrap .ob-product .ob-title.fx-product__title,
.ob-wrap .ob-product .ob-title.fx-product__title { font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.ob-wrap .ob-product .pl-back { font-size: 13px; }

/* What-if's More changes: volume, USMCA, price and entry date, folded under the country picker. */
.wv-more { display: grid; gap: 12px; }
.wv-more__summary { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; padding: 10px 2px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink); list-style: none; }
.wv-more__summary::-webkit-details-marker { display: none; }
.wv-more__summary::before { content: "▸"; font-size: 11px; color: var(--muted); transition: transform .15s ease; }
.wv-more[open] > .wv-more__summary::before { transform: rotate(90deg); }
.wv-more__summary small { color: var(--muted); font-size: 12px; font-weight: 400; }

/* All products: the filters and saved views behind one Filters button. */
.pov-filters__menu > summary { list-style: none; cursor: pointer; width: max-content; }
.pov-filters__menu > summary::-webkit-details-marker { display: none; }
.pov-filters__menu > summary::after { content: " ▾"; font-size: 11px; }
.pov-filters__count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 4px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; }
.pov-filters__panel { display: grid; gap: 10px; margin-top: 10px; }

/* zzzzzzzzzzzzzzzzzzzzzzz_sap_send.css */
/* Send to SAP (SapSend): the SAP page's section (sap/_sends) and its settings (sap/_send_settings), a send's page (sap_sends/show) and the product rows' SAP
   status. The app's own tokens; one column at phone width. */

/* the SAP page's section */
.sap-sends { scroll-margin-top: 80px; }
.sap-send__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.sap-send__head h2 { margin: 0; }
.sap-sends .button_to, .sap-sends form { margin: 0; }
.sap-send-dry { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 10px; border: 1px solid var(--glass-border, var(--line)); border-radius: 12px; background: var(--surface-muted); color: var(--ink); font: 500 12px/1 inherit; font-family: inherit; cursor: pointer; }
.sap-send-dry--static { cursor: default; }
.sap-send-dry__track { display: flex; justify-content: flex-start; width: 30px; height: 16px; padding: 2px; box-sizing: border-box; border-radius: 8px; background: var(--good); }
.sap-send-dry__track span { width: 12px; height: 12px; border-radius: 6px; background: #fff; }
.sap-send-dry[data-on=true] .sap-send-dry__track { justify-content: flex-end; background: var(--warn); }
.sap-send-dry:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sap-send-small { color: var(--muted); font-size: 12px; line-height: 1.5; }
.sap-send-label { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.sap-send-start { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px; border-radius: 14px; background: var(--accent-soft); color: var(--ink); font-size: 14px; }
.sap-send-preview { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--glass-border, var(--line)); border-radius: 14px; background: var(--surface-muted); color: var(--ink); }
.sap-send-preview > b { font-size: 14px; font-weight: 600; }
.sap-send-preview__row { display: grid; grid-template-columns: minmax(0, 1fr) 110px 18px 110px; gap: 8px; align-items: center; font-size: 12px; }
.sap-send-preview__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sap-send-preview__from { color: var(--muted); }
.sap-send-preview__to { font-weight: 600; }
.sap-send-preview__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sap-send-history { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.sap-send-batch { display: grid; grid-template-columns: 56px minmax(0, 1fr) 120px minmax(110px, auto); gap: 10px; align-items: center; min-height: 46px; padding: 4px 12px; border: 1px solid var(--glass-border, var(--line)); border-radius: 14px; background: var(--surface-muted); font-size: 13px; }
.sap-send-batch__what { display: flex; flex-direction: column; min-width: 0; }
.sap-send-batch__link { color: var(--ink); font-weight: 600; text-decoration: none; }
.sap-send-batch__link:hover { color: var(--accent-strong); text-decoration: underline; }
.sap-send-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--line); }
.sap-send-bar__ok { display: block; background: var(--good); }
.sap-send-bar--none { visibility: hidden; }
.sap-send-bar__bad { display: block; background: var(--bad); }
.sap-send-batch__result { display: flex; align-items: center; justify-content: flex-end; gap: 4px; font-size: 12px; font-weight: 600; text-align: right; white-space: nowrap; }
.sap-send-batch__result[data-tone=ok] { color: var(--good); }
.sap-send-batch__result[data-tone=bad] { color: var(--bad); }
.sap-send-batch__result[data-tone=wait] { color: var(--muted); }
.sap-send-retry { padding: 0; border: 0; background: none; color: var(--accent-strong); font: inherit; text-decoration: underline; cursor: pointer; }
.sap-send-form { display: grid; gap: 14px; }
.sap-send-form__group { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.sap-send-form__group legend { margin-bottom: 6px; color: var(--ink); font-size: 12px; font-weight: 600; }
.sap-send-choice { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: start; font-size: 13px; color: var(--ink); }
.sap-send-choice small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.sap-send-check { display: flex; gap: 8px; align-items: center; color: var(--ink); font-size: 13px; }
.sap-send-form__row { display: grid; grid-template-columns: minmax(0, 1fr) 100px; gap: 14px; }
.sap-send-form__fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sap-send-api > summary { color: var(--ink-soft); font-size: 12px; font-weight: 600; cursor: pointer; }
.sap-send-api[open] { display: grid; gap: 12px; }
.sap-send-form > .fx-btn { justify-self: start; }

/* a send's page */
.sap-send-wrap { max-width: 1040px; gap: 16px; }
.sap-send-card { padding: 20px 22px; border: 1px solid var(--glass-border, var(--line)); border-radius: 20px; background: var(--glass-surface, var(--surface)); box-shadow: var(--glass-shadow, var(--shadow-card)); }
.sap-send-summary__top { display: flex; justify-content: space-between; align-items: start; gap: 14px; }
.sap-send-summary__lede { margin: 0; color: var(--ink); font-size: 21px; font-weight: 580; letter-spacing: -.03em; line-height: 1.3; }
.sap-send-badge { display: inline-flex; padding: 5px 9px; border-radius: 8px; font-size: 11px; font-weight: 600; white-space: nowrap; background: var(--good-bg); color: var(--good); }
.sap-send-badge[data-tone=wait] { background: var(--warn-bg); color: var(--warn); }
.sap-send-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 18px; margin: 16px 0 0; }
.sap-send-facts div { min-width: 0; }
.sap-send-facts dt { color: var(--muted); font-size: 11px; }
.sap-send-facts dd { margin: 2px 0 0; color: var(--ink); font-size: 13px; overflow-wrap: anywhere; }
.sap-send-note { margin: 12px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
.sap-send-note--warn { padding: 9px 12px; border-radius: 10px; background: var(--warn-bg); }
.sap-send-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.sap-send-actions form { margin: 0; }
.sap-send-rows__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.sap-send-rows__head h2 { margin: 0; color: var(--ink); font-size: 14px; font-weight: 600; }
.sap-send-rows__counts { color: var(--muted); font-size: 12px; }
.sap-send-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sap-send-table th { padding: 8px 10px; color: var(--muted); font-size: 11px; font-weight: 600; text-align: left; border-bottom: 1px solid var(--line); }
.sap-send-table td { padding: 10px; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--ink); }
.sap-send-table td small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.sap-send-table tr[data-row-status=excluded] td { color: var(--muted); }
.sap-send-product { font-weight: 600; }
.sap-send-code { white-space: nowrap; }
.sap-send-code__from { color: var(--muted); }
.sap-send-code__to { font-weight: 600; }
.sap-send-status { display: inline-block; padding: 3px 8px; border-radius: 8px; font-size: 12px; line-height: 1.4; background: var(--surface-muted); color: var(--ink-soft); }
.sap-send-status[data-tone=ok] { background: var(--good-bg); color: var(--good); }
.sap-send-status[data-tone=ready] { background: var(--accent-soft); color: var(--accent-strong); }
.sap-send-status[data-tone=bad] { background: var(--bad-bg); color: var(--bad); }
.sap-send-status[data-tone=wait] { background: var(--warn-bg); color: var(--warn); }
.sap-send-request { margin-top: 6px; font-size: 11px; }
.sap-send-request summary { color: var(--accent-strong); cursor: pointer; }
.sap-send-request code { display: block; margin-top: 4px; padding: 6px 8px; border-radius: 8px; background: var(--surface-muted); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }

/* a product row's SAP status: one small quiet mark in the existing status cell */
.sap-state { display: block; width: fit-content; margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.sap-state--in_sap { color: var(--good); }
.sap-state--refused, .sap-state--not_sent { color: var(--bad); }
.sap-state:hover { text-decoration: underline; }
.pov-row__meta .sap-state { display: inline; margin-top: 0; }

@media (max-width: 640px) {
  .sap-send-preview__row { grid-template-columns: minmax(0, 1fr) auto 14px auto; }
  .sap-send-batch { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 8px 12px; }
  .sap-send-batch > .sap-send-small { grid-column: 1 / -1; }
  .sap-send-bar { grid-column: 1 / -1; grid-row: 3; }
  .sap-send-form__row, .sap-send-form__fields { grid-template-columns: minmax(0, 1fr); }
  .sap-send-card { padding: 16px; }
  .sap-send-summary__lede { font-size: 18px; }
  .sap-send-table thead { display: none; }
  .sap-send-table, .sap-send-table tbody, .sap-send-table tr, .sap-send-table td { display: block; width: 100%; box-sizing: border-box; }
  .sap-send-table tr { padding: 8px 0; border-bottom: 1px solid var(--line); }
  .sap-send-table td { padding: 4px 0; border: 0; }
  .sap-send-table td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 10px; font-weight: 600; }
  .sap-send-code { white-space: normal; }
}

/* zzzzzzzzzzzzzzzzzzzzzzzz_ask_side_chat.css */
/* The small chat on every page (AskPages / AskFloat boards, 2026-10-15): the pill, the floating card, its greeting and
   starter chips, the page bar, the rows it highlights on the page, and the full Ask Tarivo home's starter cards. Uses
   the glass tokens (zz_glass.css); nothing here restyles the rest of the app. */

:root {
  --ask-lit: rgba(90, 63, 168, .10); --ask-lit-ring: rgba(90, 63, 168, .45); --ask-sees: #5a3fa8;
  --ask-tone-blue: #2454ad; --ask-tone-sky: #7aa2e3; --ask-tone-amber: #b7791f; --ask-tone-red: #e07a72;
  --ask-tone-green: #3f9a63; --ask-tone-violet: #6b4fa0; --ask-tone-grey: #c3cbd8; --ask-track: rgba(23, 32, 51, .08);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --ask-lit: rgba(198, 180, 241, .14); --ask-lit-ring: rgba(198, 180, 241, .55); --ask-sees: #c6b4f1;
    --ask-tone-blue: #6f9ff0; --ask-tone-grey: #5d6a80; --ask-track: rgba(218, 232, 255, .12); }
}
:root[data-theme="dark"] { --ask-lit: rgba(198, 180, 241, .14); --ask-lit-ring: rgba(198, 180, 241, .55); --ask-sees: #c6b4f1;
  --ask-tone-blue: #6f9ff0; --ask-tone-grey: #5d6a80; --ask-track: rgba(218, 232, 255, .12); }

.ask-tone--blue { background: var(--ask-tone-blue); } .ask-tone--sky { background: var(--ask-tone-sky); }
.ask-tone--amber { background: var(--ask-tone-amber); } .ask-tone--red { background: var(--ask-tone-red); }
.ask-tone--green { background: var(--ask-tone-green); } .ask-tone--violet { background: var(--ask-tone-violet); }
.ask-tone--grey { background: var(--ask-tone-grey); }

/* ------------------------------------------------------------------ the pill (minimised) */

.assistant-launcher {
  right: max(24px, env(safe-area-inset-right)); bottom: max(24px, calc(env(safe-area-inset-bottom) + 16px));
  gap: 10px; min-height: 48px; padding: 7px 18px 7px 7px; font-size: 14px; font-weight: 600;
}
.ask-launcher__logo { width: 34px; height: 34px; border-radius: 9px; }

/* ------------------------------------------------------------------ the card (open) */

.ask-drawer__sheet {
  right: 24px; bottom: 24px; width: min(384px, calc(100vw - 32px)); height: min(560px, calc(100dvh - var(--topbar-height, 66px) - 32px));
  border-radius: 24px;
}
@media (min-width: 601px) { .ask-drawer__sheet { right: 24px; bottom: 24px; } }
.ask-drawer[data-opening] .ask-drawer__sheet { animation: ask-card-in 180ms var(--ease); }
@keyframes ask-card-in { from { transform: translateY(16px) scale(.98); opacity: 0; } }

.ask-drawer__bar { gap: 10px; min-height: 60px; padding: 14px 12px 10px 14px; border-bottom: 1px solid var(--glass-border); }
.ask-drawer__mark { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 4px 12px rgba(116, 81, 223, .30); }
.ask-drawer__who { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.ask-drawer__name { margin: 0; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.3; }
.ask-drawer__sees { margin: 0; color: var(--ask-sees); font-size: 12px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.ask-drawer__heading { gap: 6px; }
.ask-drawer__icon {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--glass-border);
  border-radius: 10px; background: var(--glass-surface); box-shadow: var(--glass-highlight); color: var(--ink-soft, var(--ink));
  cursor: pointer; text-decoration: none;
}
.ask-drawer__icon:hover { background: var(--glass-selected); color: var(--ink); }
.ask-drawer__icon:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ask-drawer__full { min-height: 0; padding: 0; }

/* A new chat: the greeting and the page's starter chips fill the card above the box. */
.ask-drawer__brief { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 14px; }
.ask-drawer__brief[hidden], .ask-drawer__panel:has(> #ask-transcript:not([hidden])) > .ask-drawer__brief { display: none; }
.ask-drawer__panel[data-brief="chips"] > .ask-drawer__starters { display: none; }
.ask-drawer__panel:has(> .ask-drawer__brief:not([hidden])) > .ask-drawer__starters { margin-top: 0; }
.ask-brief__hello { margin: 0 0 12px; color: var(--ink); font-size: 14px; line-height: 1.5; }
.ask-brief__chips { display: flex; flex-direction: column; gap: 6px; }
.ask-brief__chip {
  display: grid; grid-template-columns: minmax(0, 1fr) 80px; gap: 10px; align-items: center; width: 100%; min-height: 42px;
  padding: 4px 12px; border: 1px solid var(--glass-border); border-radius: 14px; background: var(--glass-surface);
  box-shadow: var(--glass-highlight); color: var(--ink); font: 500 13px/1.35 var(--font-sans); text-align: left; cursor: pointer;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}
.ask-brief__chip:hover { border-color: var(--ask-lit-ring); }
.ask-brief__chip[aria-pressed="true"] { border-color: var(--ask-lit-ring); background: var(--ask-lit); }
.ask-brief__chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ask-brief__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; min-width: 0; }
.ask-brief__bar { display: flex; width: 100%; height: 6px; overflow: hidden; border-radius: 3px; background: var(--ask-track); }
.ask-brief__seg { display: block; height: 100%; }
.ask-brief__note { color: var(--muted); font-size: 11px; font-weight: 600; line-height: 1.3; text-align: right; white-space: nowrap; }

/* What the chat just did on the page, with what to do next. */
.ask-drawer__pagebar {
  flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 12px 6px; padding: 7px 10px;
  border: 1px solid var(--ask-lit-ring); border-radius: 12px; background: var(--ask-lit); color: var(--ink); font-size: 12.5px; line-height: 1.35;
}
.ask-drawer__pagebar[hidden] { display: none; }
.ask-drawer__pagebar-words { flex: 1 1 100%; min-width: 0; }
.ask-drawer__pagebar-action {
  flex: none; min-height: 30px; padding: 0 10px; border: 0; border-radius: 9px; background: var(--ask-tone-blue); color: #ffffff;
  font: 500 12px var(--font-sans); cursor: pointer;
}
.ask-drawer__pagebar-action[hidden] { display: none; }
.ask-drawer__pagebar-action--quiet { border: 1px solid var(--glass-border); background: var(--glass-surface); color: var(--ink); }
.ask-drawer__pagebar-action:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.ask-drawer .ask-composer { padding: 8px 12px max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--glass-border); }
.ask-drawer .ask-composer__foot:has(> .ask-composer__hint:not([data-tone])) { display: none; }
.ask-drawer .ask-limitation { font-size: 11px; line-height: 15px; }
.ask-drawer .ask-composer__input { font-size: 14px; }
@media (max-width: 600px), (pointer: coarse) { .ask-drawer .ask-composer__input { font-size: 16px; } }

/* On a phone the card is a bottom sheet across the screen. */
@media (max-width: 600px) {
  .ask-drawer__sheet { left: 0; right: 0; bottom: 0; width: 100%; height: min(86dvh, 640px); border-radius: 22px 22px 0 0; border-bottom: 0; }
  .ask-drawer[data-opening] .ask-drawer__sheet { animation: ask-sheet-in 200ms var(--ease); }
  .assistant-launcher { right: 16px; bottom: max(16px, calc(env(safe-area-inset-bottom) + 12px)); }
}
@keyframes ask-sheet-in { from { transform: translateY(40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ask-drawer[data-opening] .ask-drawer__sheet { animation: none; } .ask-brief__chip { transition: none; } }

/* ------------------------------------------------------------------ rows the chat points at */

.is-ask-lit { background-color: var(--ask-lit) !important; box-shadow: inset 0 0 0 2px var(--ask-lit-ring); border-radius: 12px; transition: background-color .35s ease, box-shadow .35s ease; }
tr.is-ask-lit { box-shadow: none; outline: 2px solid var(--ask-lit-ring); outline-offset: -2px; }
tr.is-ask-lit > :is(td, th) { background-color: var(--ask-lit) !important; }
@media (forced-colors: active) { .is-ask-lit, tr.is-ask-lit { outline: 2px solid Highlight; } }

/* ------------------------------------------------------------------ the AI mark elsewhere */

.ws-nav-link > .ws-nav-link__ai { width: 18px; height: 18px; border-radius: 5px; }
.atl-who--travio { background: none; overflow: hidden; }
.atl-who--travio > .ai-mark { width: 32px; height: 32px; border-radius: 9px; }

/* ------------------------------------------------------------------ the full Ask Tarivo home */

/* The box stays at the foot of the window (like ChatGPT); the greeting and the starter cards sit above it. */
@media (min-width: 601px) {
  .ask-shell__column:has(> .ask-main > .ask-empty:not([hidden])) > .ask-main { display: flex; }
  .ask-shell__column:has(> .ask-main > .ask-empty:not([hidden])) .ask-empty { flex: 1 1 auto; min-height: 0; margin-top: 0; justify-content: flex-start; padding-top: 48px; }
  .ask-shell__column:has(> .ask-main > .ask-empty:not([hidden])) > .ask-composer { margin-bottom: 0; }
}
.ask-empty__intro { gap: 8px; }
.ask-empty__lede { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.ask-suggestion__button { gap: 10px; }
.ask-suggestion__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ask-suggestion__tag { flex: none; color: var(--ask-tone-blue); font-size: 12px; font-weight: 600; }
.ask-suggestion__bar { display: flex; height: 12px; overflow: hidden; border-radius: 6px; background: var(--ask-track); }
.ask-suggestion__legend { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.ask-suggestion__legend-item { display: flex; align-items: center; gap: 5px; }
.ask-suggestion__key { flex: none; width: 9px; height: 9px; border-radius: 2px; }
.ask-drawer .ask-suggestion__bar, .ask-drawer .ask-suggestion__legend { display: none; }

/* zzzzzzzzzzzzzzzzzzzzzzzzz_demo_polish.css */
/* Demo polish. Presenter mode (layouts/_demo_presenter): a small pill at the foot of the sidebar; the guide opens in
   place above it, in the sidebar's own column, so it never covers the page. Only demo admins in demo mode get it. */
.dp { flex: none; margin: 10px 0 0; display: flex; flex-direction: column-reverse; gap: 8px; }
.dp__pill { align-self: flex-start; display: inline-flex; align-items: center; min-height: 26px; padding: 3px 10px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: transparent; color: var(--muted); font: 600 11px/1.2 inherit; letter-spacing: .01em; cursor: pointer; }
.dp__pill:hover, .dp__pill[aria-expanded="true"] { color: var(--ink); border-color: var(--control-border); }
.dp__pill:focus-visible, .dp__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dp__pill-short { display: none; }
.dp__panel { display: none; padding: 10px 10px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface, rgba(255, 255, 255, .55)); font-size: 12px; line-height: 1.4; color: var(--ink-soft); }
:root[data-demo-presenter="open"] .dp__panel { display: block; }
.dp__moment { margin: 0 0 6px; font-weight: 650; color: var(--ink); }
.dp__points { margin: 0 0 6px; padding-left: 15px; }
.dp__points li + li { margin-top: 3px; }
.dp__next { margin: 0 0 6px; color: var(--muted); font-size: 11px; }
.dp__as { white-space: nowrap; }
.dp__nav { display: flex; align-items: center; gap: 6px; }
.dp__form { display: contents; }
.dp__count { margin-right: auto; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.dp__form:first-child + .dp__count { margin-left: 2px; }
.dp__btn { min-height: 26px; padding: 2px 9px; border: 1px solid var(--line-strong); border-radius: 8px; background: transparent; color: var(--ink); font: 600 12px/1.2 inherit; cursor: pointer; }
.dp__btn--next { border-color: var(--accent); color: var(--accent-strong); }
/* The sidebar as a rail: the pill keeps the step count; the guide waits until the sidebar is wide again (keys still work). */
.ws-nav-collapsed .dp__pill { align-self: center; padding: 3px 6px; }
.ws-nav-collapsed .dp__pill-words { display: none; }
.ws-nav-collapsed .dp__pill-short { display: inline; }
:root[data-demo-presenter="open"] .ws-nav-collapsed .dp__panel { display: none; }
@media print { .dp { display: none !important; } }

/* Motion with restraint (count_up_controller.js): a redrawn bar eases from its previous width; Savings' layer bar,
   updated in place by Turbo's morph, eases too. Nothing moves with prefers-reduced-motion. */
@media (prefers-reduced-motion: no-preference) {
  .count-up-bar { transition: width .35s ease; }
  .mp-layerbar__seg { transition: width .35s ease; }
}
[data-controller~="count-up"] { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) { .mp-compare__off { transition: width .35s ease; } }

/* What-if asks for its figures as it opens (what_if_picture_controller.js); they are usually back in a fraction of a
   second. The "Working out…" placeholders only show if the answer takes longer than 0.6 s, so a quick answer never
   flashes a spinner. */
@keyframes dp-shown-late { from { opacity: 0; } to { opacity: 1; } }
.wv-card--waiting, .wv-changes .cp-empty { animation: dp-shown-late 0s linear .6s both; }

/* zzzzzzzzzzzzzzzzzzzzzzzzzz_alerts.css */
/* Alerts (owner-approved mockup travio-review/Alerts.dc.html): the bell in the top bar, its frosted popover (a sheet
   below 600 px) and the Alerts page. The only new thing in the top bar is the bell. Glass tokens throughout, so Glass,
   Glass dark and Classic each read right; the frosted glass file stays last. */

/* ------------------------------------------------------------ the bell */
.alerts-bell { position: relative; flex: none; }
.alerts-bell__button {
  position: relative; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; cursor: pointer;
  color: var(--ink); border: 1px solid var(--glass-border, var(--line-strong)); border-radius: 13px;
  background: var(--glass-sheen), var(--glass-surface, var(--surface)); box-shadow: var(--glass-highlight, none);
}
.alerts-bell__button:hover, .alerts-bell.is-open .alerts-bell__button { background: var(--surface); border-color: var(--control-border); }
.alerts-bell__button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.alerts-bell__count {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box;
  display: grid; place-items: center; border-radius: 9px; background: #c9302c; color: #fff; font-size: 11px; font-weight: 700;
  line-height: 1; box-shadow: 0 0 0 2px var(--surface);
}
.alerts-bell__count[hidden] { display: none; }

/* ------------------------------------------------------------ the popover */
.alerts-pop {
  position: absolute; top: calc(100% + 14px); right: -52px; z-index: 70; width: 440px; max-width: calc(100vw - 24px);
  max-height: min(78vh, 820px); display: flex; flex-direction: column; overflow: hidden; color: var(--ink);
  border: 1px solid var(--glass-border, var(--line)); border-radius: 22px;
  background: var(--glass-sheen), var(--glass-raised, var(--surface)); box-shadow: var(--shadow-menu);
  -webkit-backdrop-filter: blur(var(--glass-blur, 28px)) saturate(var(--glass-saturation, 170%));
  backdrop-filter: blur(var(--glass-blur, 28px)) saturate(var(--glass-saturation, 170%));
}
.alerts-pop[hidden] { display: none; }
.alerts-pop > turbo-frame, .alerts-pop__body { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
.alerts-pop__grip { display: none; }
.alerts-pop__loading, .alerts-pop__empty { margin: 0; padding: 18px; color: var(--muted); font-size: 13px; }
.alerts-pop__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 8px; }
.alerts-pop__title { margin: 0; font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
.alerts-pop__head form { margin: 0; }
.alerts-pop__read-all { border: 0; padding: 4px 2px; background: none; color: var(--accent); font: 500 13px var(--font-sans); cursor: pointer; }
.alerts-pop__read-all:hover { text-decoration: underline; }
.alerts-pop .alerts-list { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 0 10px 12px; }
.alerts-pop__foot { padding: 10px 16px 14px; border-top: 1px solid var(--glass-border, var(--line)); font-size: 13px; }
.alerts-pop__all { color: var(--accent); font-weight: 500; text-decoration: none; }
.alerts-pop__all:hover { text-decoration: underline; }

/* ------------------------------------------------------------ the filters (popover buttons, page links) */
.alerts-filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.alerts-filter {
  display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 11px; cursor: pointer;
  border: 1px solid var(--glass-border, var(--line)); border-radius: 14px; color: var(--ink); text-decoration: none;
  background: var(--glass-well, var(--surface-muted)); box-shadow: var(--glass-highlight, none); font: 500 12px var(--font-sans);
}
.alerts-filter span { color: var(--muted); }
.alerts-filter:hover { border-color: var(--control-border); }
.alerts-filter[aria-pressed="true"], .alerts-filter[aria-current="page"] { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--glass-selected, var(--accent-soft)); }
.alerts-filter:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.alerts-filters--page { padding: 0; margin: 0; }

/* ------------------------------------------------------------ one alert */
.alerts-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.alert-item {
  display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 10px 12px;
  border: 1px solid var(--glass-border, var(--line)); border-radius: 14px;
  background: var(--glass-well, var(--surface)); box-shadow: var(--glass-highlight, none);
}
.alert-item[hidden] { display: none; }
.alert-item__icon {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; font-size: 14px;
  background: rgba(36, 84, 173, .12); color: var(--accent);
}
.alert-item--needs .alert-item__icon { background: color-mix(in srgb, var(--bad) 13%, transparent); color: var(--bad); }
.alert-item--deadline .alert-item__icon { background: var(--warn-bg); color: var(--warn); }
.alert-item--change .alert-item__icon { background: color-mix(in srgb, var(--accent) 13%, transparent); color: var(--accent); }
.alert-item--done .alert-item__icon { background: var(--good-bg); color: var(--good); }
.alert-item__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.alert-item__head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.alert-item__title { margin: 0; font-size: 13px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.alert-item.is-unread .alert-item__title { font-weight: 650; }
.alert-item__time { flex: none; font-size: 12px; color: var(--muted); white-space: nowrap; }
.alert-item__detail { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; }
.alert-item__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 2px; }
.alert-item__action {
  display: inline-flex; align-items: center; min-height: 30px; padding: 0 11px; border-radius: 9px; text-decoration: none;
  background: var(--accent); color: var(--accent-ink, #fff); font: 600 12px var(--font-sans);
}
.alert-item__action:hover { background: var(--accent-strong); color: var(--accent-ink, #fff); }
.alert-item__action:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.alert-item__money { font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.alert-item__money--costs { color: var(--bad); }
.alert-item__money--saves { color: var(--good); }
.alert-item__more { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-left: auto; font-size: 12px; }
.alert-item__form { display: inline; margin: 0; }
.alert-item__link { border: 0; padding: 0; background: none; font: 500 12px var(--font-sans); color: var(--accent); cursor: pointer; }
.alert-item__note { color: var(--muted); }
.alert-item__snooze { position: relative; }
.alert-item__snooze > summary { list-style: none; }
.alert-item__snooze > summary::-webkit-details-marker { display: none; }
.alert-item__snooze-form {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; display: flex; align-items: center; gap: 8px; padding: 10px;
  border: 1px solid var(--glass-border, var(--line)); border-radius: 14px; white-space: nowrap;
  background: var(--glass-sheen), var(--glass-raised, var(--surface)); box-shadow: var(--shadow-menu);
}
.alert-item__snooze-form input { min-height: 32px; border: 1px solid var(--control-border); border-radius: 8px; padding: 0 8px; font: inherit; background: var(--surface); color: var(--ink); }

/* ------------------------------------------------------------ the page */
.alerts-page > .fx-wrap { gap: 14px; }
.alerts-page .alerts-tabs { margin-top: 2px; }
.alerts-list--page { gap: 8px; }
.alerts-list--page .alert-item { padding: 12px 14px; border-radius: 16px; background: var(--glass-surface, var(--surface)); }
.alerts-state { margin: 0; }
.alerts-empty { padding: 22px; border: 1px dashed var(--glass-border, var(--line-strong)); border-radius: 18px; background: var(--glass-well, var(--surface-muted)); }
.alerts-empty h2 { margin: 0 0 4px; font-size: 15px; }
.alerts-empty p { margin: 0; color: var(--muted); font-size: 13px; }
.alerts-snoozed, .alerts-prefs { margin-top: 4px; }
.alerts-snoozed > summary, .alerts-prefs > summary { cursor: pointer; color: var(--accent); font-size: 13px; font-weight: 500; }
.alerts-snoozed > .alerts-list { margin-top: 10px; }
.alerts-prefs__form { margin-top: 10px; padding: 14px; border: 1px solid var(--glass-border, var(--line)); border-radius: 16px; background: var(--glass-surface, var(--surface)); }
.alerts-prefs__form fieldset { border: 0; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 16px; }
.alerts-prefs__kind { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.alerts-changes { margin-top: 14px; display: flex; flex-direction: column; gap: 20px; }

/* History */
.alerts-history { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.alerts-history__row {
  display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 12px 14px; border-radius: 16px;
  border: 1px solid var(--glass-border, var(--line)); background: var(--glass-surface, var(--surface));
}
.alerts-history__row .alert-item__icon { opacity: .75; }
.alerts-history__title { margin: 0 0 2px; font-size: 13px; font-weight: 500; }
.alerts-history__who { margin: 4px 0 0; font-size: 12px; color: var(--ink-soft); }

/* Tariff sources */
.alerts-sources__lead { margin: 0; max-width: 72ch; }
.alerts-sources__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.alerts-source {
  display: grid; grid-template-columns: minmax(220px, 1.1fr) minmax(0, 2fr); gap: 6px 20px; padding: 14px 16px; border-radius: 16px;
  border: 1px solid var(--glass-border, var(--line)); background: var(--glass-surface, var(--surface));
}
.alerts-source__name { display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.alerts-source__name .fx-hint { font-size: 12px; }
.alerts-source__facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px 16px; font-size: 13px; }
.alerts-source__facts dt { color: var(--muted); font-size: 11.5px; }
.alerts-source__facts dd { margin: 1px 0 0; }
.alerts-source__held dd { color: var(--warn); font-weight: 500; }
.alerts-source__parts { grid-column: 2; list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: var(--ink-soft); }
.alerts-source__parts span:first-child { color: var(--muted); }
.alerts-source__untracked { color: var(--muted); font-style: italic; }

/* ------------------------------------------------------------ phones: the popover becomes a sheet */
@media (max-width: 600px) {
  .alerts-bell__button { width: 40px; height: 40px; }
  .alerts-pop {
    position: fixed; top: auto; right: 0; bottom: 0; left: 0; width: auto; max-width: none; max-height: 82dvh;
    border-radius: 22px 22px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom);
  }
  .alerts-pop__grip { display: block; width: 38px; height: 4px; margin: 8px auto 0; border-radius: 2px; background: var(--line-strong); }
  .alerts-source { grid-template-columns: minmax(0, 1fr); }
  .alerts-source__parts { grid-column: 1; }
  .alert-item__more { margin-left: 0; }
  .alert-item__snooze-form { right: auto; left: 0; }
}
@media print { .alerts-bell { display: none; } }
.alerts-changes > .changes-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.alerts-changes > .changes-head .changes-head__data { margin: 0; }

/* zzzzzzzzzzzzzzzzzzzzzzzzzzz_frosted_glass.css */
/* Frosted glass (owner choice 2026-10-15; mockup travio-review/Glass.dc.html). The account menu's Appearance offers
   Glass, Glass dark and Classic. Glass and Glass dark are this one material, light and dark: translucent panels (backdrop
   blur and saturate, a light 1px edge, a bright top highlight, a soft layered shadow) on a soft colour-blob canvas with
   faint grain; the top bar and the sidebar float as glass panels. Dark is smoky navy glass. Classic is the look before
   this file, unchanged: every rule here is scoped to <html data-look="glass"> (theme_controller.js and the layouts' <head>
   script set it), and to the screen, so printing and exports never see it.

   Last in the cascade, so it re-points tokens and adds the material to the shared surfaces. Fixed and sticky boxes keep
   their size and place; only what is painted inside them changes, so nothing moves or overlaps. Four glass weights:
     --glass-surface  a panel or card (the mockup's g1)
     --glass-well     a box inside a panel (g2): no blur of its own, it already sits on frosted glass
     --glass-table    tables and timelines: a little more solid so rows are easy to read
     --glass-raised   menus, popovers, the chosen tile (g4)
   Without backdrop-filter, or when the viewer asks for less transparency, every weight falls back to a solid surface and
   the canvas to its plain colour (end of this file). */

@media screen {
  :root[data-look="glass"] {
    --bg: #e7eef9;
    --glass-blob-1: #78a6f5; --glass-blob-2: #5ccfbf; --glass-blob-3: #b7a1f0; --glass-blob-4: #ffc4a3; --glass-blob-5: #9cc3ff;
    --glass-grain: .07;
    /* one step deeper than Classic so links and the accent keep 4.5:1 where a blob tints the glass */
    --accent: #2a5cb5; --accent-strong: #1f4a96;
    --glass-well: var(--surface-muted);
    --glass-table: var(--surface);
    --glass-radius: 20px;
  }
  :root[data-look="glass"][data-theme="dark"] {
    /* smoky navy: solid fallbacks one step apart, the same hue as the glass */
    --bg: #0a1322; --surface: #18233a; --surface-muted: #1f2c45;
    --accent: #a5c5ff; --accent-strong: #c4d9ff;
    --hero: #1b2740; --hero-raised: #24334f;
    --focus-backdrop-solid: #111b2e;
    --glass-blob-1: #1f4fd1; --glass-blob-2: #0e7a70; --glass-blob-3: #5b2fb8; --glass-blob-4: #a8461b; --glass-blob-5: #123c8c;
    --glass-grain: .10;
  }
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  @media screen and (prefers-reduced-transparency: no-preference) {
    :root[data-look="glass"] {
      --glass-surface: rgba(255, 255, 255, .46);
      --glass-raised: rgba(255, 255, 255, .80);
      --glass-well: rgba(255, 255, 255, .50);
      --glass-table: rgba(255, 255, 255, .72);
      --glass-inset: rgba(255, 255, 255, .38);
      --glass-nav: rgba(255, 255, 255, .46);
      --glass-selected: rgba(36, 84, 173, .13);
      --glass-border: rgba(255, 255, 255, .62);
      --glass-outline: rgba(31, 52, 94, .10);
      --glass-sheen: linear-gradient(140deg, rgba(255, 255, 255, .45) 0%, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0) 72%, rgba(255, 255, 255, .45) 120%);
      --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, .90), inset 0 0 0 1px rgba(255, 255, 255, .04);
      --glass-shadow: 0 1px 2px rgba(23, 32, 51, .05), 0 10px 30px rgba(31, 52, 94, .10), 0 30px 70px rgba(31, 52, 94, .10);
      --shadow-menu: inset 0 1px 0 rgba(255, 255, 255, .90), 0 2px 4px rgba(23, 32, 51, .06), 0 18px 44px rgba(31, 52, 94, .16), 0 46px 100px rgba(31, 52, 94, .16);
      --glass-blur: 28px; --glass-saturation: 170%;
    }
    :root[data-look="glass"][data-theme="dark"] {
      --glass-surface: rgba(18, 26, 44, .50);
      --glass-raised: rgba(30, 42, 66, .90);
      --glass-well: rgba(40, 52, 78, .42);
      --glass-table: rgba(14, 21, 37, .70);
      --glass-inset: rgba(40, 52, 78, .36);
      --glass-nav: rgba(18, 26, 44, .52);
      --glass-selected: rgba(127, 168, 255, .18);
      --glass-border: rgba(255, 255, 255, .13);
      --glass-outline: rgba(0, 0, 0, .18);
      --glass-sheen: linear-gradient(140deg, rgba(255, 255, 255, .08) 0%, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0) 72%, rgba(255, 255, 255, .08) 120%);
      --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 1px rgba(255, 255, 255, .04);
      --glass-shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 12px 34px rgba(0, 0, 0, .30), 0 34px 80px rgba(0, 0, 0, .30);
      --shadow-menu: inset 0 1px 0 rgba(255, 255, 255, .16), 0 2px 4px rgba(0, 0, 0, .30), 0 20px 50px rgba(0, 0, 0, .42), 0 50px 110px rgba(0, 0, 0, .42);
    }
  }
}

@media screen {
  /* ------------------------------------------------------------ the canvas: colour blobs and grain behind everything */
  :where(:root[data-look="glass"]) body { background-color: var(--bg); background-image: none; }
  :where(:root[data-look="glass"]) body::before, :where(:root[data-look="glass"]) body::after {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  }
  :where(:root[data-look="glass"]) body::before {
    background:
      radial-gradient(38vmax 32vmax at 4% 0%, color-mix(in srgb, var(--glass-blob-1) 85%, transparent), transparent 72%),
      radial-gradient(32vmax 30vmax at 100% 30%, color-mix(in srgb, var(--glass-blob-2) 80%, transparent), transparent 72%),
      radial-gradient(34vmax 28vmax at 38% 104%, color-mix(in srgb, var(--glass-blob-3) 80%, transparent), transparent 72%),
      radial-gradient(26vmax 22vmax at 80% 102%, color-mix(in srgb, var(--glass-blob-4) 55%, transparent), transparent 72%),
      radial-gradient(24vmax 22vmax at 58% 42%, color-mix(in srgb, var(--glass-blob-5) 40%, transparent), transparent 72%),
      var(--bg);
  }
  :where(:root[data-look="glass"]) body::after {
    opacity: var(--glass-grain); mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  }

  /* ------------------------------------------------------------ page tokens re-pointed at the glass weights */
  :root[data-look="glass"] {
    --wv-card: var(--glass-surface); --wv-panel: var(--glass-surface); --wv-card-line: var(--glass-border);
    --wv-box: var(--glass-well); --wv-total: var(--glass-well);
    --lhr-card: var(--glass-raised); --lhr-soft: var(--glass-well);
  }
  :root[data-look="glass"] .mp-page { --mp-card: var(--glass-surface); }
  :root[data-look="glass"] .atl {
    --atl-card: var(--glass-table); --atl-card-line: var(--glass-border); --atl-box: var(--glass-well);
    --atl-chip: var(--glass-raised); --atl-seg-on: var(--glass-raised);
  }
  :root[data-look="glass"][data-theme="dark"] .atl-export__menu { background: var(--glass-raised); }

  /* ------------------------------------------------------------ the frame: the top bar and the sidebar */
  /* The top bar paints its glass on a layer behind its contents, not on itself: a menu opened from the bar (the account,
     the workspace switch) then frosts the page under it, which a blur on the bar itself would cut off. */
  :where(:root[data-look="glass"]) .fx-topbar {
    background: none; border-bottom-color: transparent; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  :where(:root[data-look="glass"]) .fx-topbar::before {
    content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
    border-bottom: 1px solid var(--glass-border); background: var(--glass-sheen), var(--glass-nav);
    box-shadow: inset 0 -1px 0 var(--glass-outline), 0 10px 30px -22px rgba(31, 52, 94, .35);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  }
  :where(:root[data-look="glass"]) .workspace-shell .ws-sidebar {
    background: var(--glass-sheen), var(--glass-nav); border-right-color: var(--glass-border);
    box-shadow: var(--glass-highlight), inset -1px 0 0 var(--glass-outline);
  }
  :where(:root[data-look="glass"]) .workspace-shell .ws-nav-link.is-current {
    background: var(--glass-selected); border-color: rgba(36, 84, 173, .30); color: var(--accent-strong); box-shadow: none;
  }
  :root[data-look="glass"][data-theme="dark"] .workspace-shell .ws-nav-link.is-current { border-color: rgba(127, 168, 255, .40); }

  /* On a desktop both float as glass panels, as in the mockup. Their boxes keep today's size and place (the sticky top
     bar's height, the fixed sidebar's rail), so the page under them does not move: the top bar's panel is its glass layer
     inset within its own box, and the sidebar is inset within a rail 12px wider. */
  @media (min-width: 901px) {
    :root[data-look="glass"] .workspace-shell { --workspace-rail: 222px; }
    :root[data-look="glass"] .workspace-shell.ws-nav-collapsed { --workspace-rail: 80px; }
    :where(:root[data-look="glass"]) .workspace-shell .ws-topbar { padding-top: 8px; padding-left: 26px; padding-right: 26px; }
    :where(:root[data-look="glass"]) .workspace-shell .ws-topbar::before {
      inset: 8px 12px 0; border: 1px solid var(--glass-border); border-radius: var(--glass-radius);
      box-shadow: var(--glass-highlight), var(--glass-shadow);
    }
    :where(:root[data-look="glass"]) .workspace-shell .ws-sidebar {
      top: calc(var(--topbar-height) + 12px); bottom: 12px; left: 12px; width: calc(var(--workspace-rail) - 14px);
      border: 1px solid var(--glass-border); border-radius: var(--glass-radius); box-shadow: var(--glass-highlight), var(--glass-shadow);
    }
  }

  /* ------------------------------------------------------------ panels: one material for every main card */
  :where(:root[data-look="glass"] .workspace-shell) :is(.fx-panel, .card, .fx-empty, .wv-card, .wv-changes, .mp-card,
    .mp-panel, .ca-card, .ca-shape, .ca-room, .ca-evidence-entry, .ca-more, .pov-card, .rd-ai-status, .atl-filters,
    .ld-panel, .product-table-toolbar, .im-entry-card, .xp-card, .ob-recent__list, .tools-item, .prep-document,
    .planning-saved, .readiness-overview, .evidence-supplier, .what-if-example, .focus-glass, .change-card, .dc-panel,
    .sp-card, .sv-card) {
    border-color: var(--glass-border);
    box-shadow: var(--glass-highlight), var(--glass-shadow);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  }
  /* the cards that were painted solid white take the panel glass; tinted ones keep their tint */
  :where(:root[data-look="glass"] .workspace-shell) :is(.wv-changes, .ca-shape, .ca-room, .ca-card, .ca-evidence-entry,
    .ca-more, .rd-ai-status, .atl-filters, .mp-card, .mp-panel) {
    background: var(--glass-sheen), var(--glass-surface);
  }
  :where(:root[data-look="glass"] .workspace-shell) .ca-room--good { background: var(--glass-sheen), color-mix(in srgb, var(--ca-good-soft) 70%, transparent); }

  /* boxes inside a panel: a lighter pane, no blur of their own */
  :where(:root[data-look="glass"] .workspace-shell) :is(.ca-control, .ca-cost-basis, .ca-number, .cad-sample-note,
    .mp-move, .wv-empty, .im-sample-choice--planning, .pov-stage, .pov-gbar) {
    background: var(--glass-well); border-color: var(--glass-border); box-shadow: var(--glass-highlight);
  }
  :where(:root[data-look="glass"] .workspace-shell) .mp-move.is-on { background: color-mix(in srgb, var(--mp-future-soft) 80%, transparent); }
  :where(:root[data-look="glass"] .workspace-shell) :is(.wv-pick, .wv-pill--same) { background: var(--glass-well); box-shadow: var(--glass-highlight); }
  :where(:root[data-look="glass"] .workspace-shell) .wv-total--new { background: var(--glass-raised); }

  /* tables stay a little more solid so rows are easy to read */
  :where(:root[data-look="glass"] .workspace-shell) :is(.catalog-scroll, .pov-list, .im-table-wrap, .sp-table-wrap,
    .dc-scroll, .duty-table-wrap, .acc-scroll) {
    background: var(--glass-table); border-color: var(--glass-border);
  }
  :where(:root[data-look="glass"] .workspace-shell) :is(.catalog-scroll, .pov-list) { box-shadow: var(--glass-highlight), var(--glass-shadow); }
  :where(:root[data-look="glass"] .workspace-shell) :is(.catalog-table th, .ask-md-table th) { background: color-mix(in srgb, var(--surface-muted) 60%, transparent); }
  :where(:root[data-look="glass"] .workspace-shell) .ask-md-table { background: var(--glass-table); }

  /* fields: frosted, with the same edge as the panels */
  :where(:root[data-look="glass"] .workspace-shell) :is(.fx-input, .ob-input, .atl-search__input) { background: var(--glass-raised); border-color: var(--glass-border); }
  :where(:root[data-look="glass"] .workspace-shell) :is(.fx-input, .ob-input, .atl-search__input):hover { border-color: var(--control-border); }

  /* menus, popovers and dialogs: the densest glass, readable over anything */
  :where(:root[data-look="glass"]) :is(.fx-account .fx-account__menu, .fx-navmore__list, .product-filter__options,
    .row-more__menu, .ask-menu, .fx-dialog, .command-bar__panel, .fx-combo__list, .atl-export__menu, .ws-workspace__options) {
    background: var(--glass-sheen), var(--glass-raised); border-color: var(--glass-border); box-shadow: var(--shadow-menu);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  }
}

/* ------------------------------------------------------------ less transparency and no blur support: solid and calm */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :where(:root[data-look="glass"]) body::before, :where(:root[data-look="glass"]) body::after { display: none; }
}
@media screen and (prefers-reduced-transparency: reduce) {
  :root[data-look="glass"], :root[data-look="glass"][data-theme="dark"] { --glass-well: var(--surface-muted); --glass-table: var(--surface); }
  :where(:root[data-look="glass"]) body::before, :where(:root[data-look="glass"]) body::after { display: none; }
  :where(:root[data-look="glass"] .workspace-shell) :is(.wv-changes, .ca-shape, .ca-room, .ca-card, .mp-card, .mp-panel,
    .rd-ai-status, .atl-filters) { background: var(--surface); }
  :where(:root[data-look="glass"]) .fx-topbar::before { background: var(--surface); }
  :where(:root[data-look="glass"]) * { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}

/* zzzzzzzzzzzzzzzzzzzzzzzzzzzz_category_icons.css */
/* The product category icon (ProductCategory, ProductCategoryHelper): a quiet line icon beside a product's title on its
   own page and in a list's group header when the list is grouped by category. Muted, no tile; the same in Glass, Glass
   dark and Classic (it takes the page's muted ink). */
.product-category {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 16px; height: 16px; color: var(--muted); opacity: .78; vertical-align: -2px; margin-right: 6px;
}
.product-category svg { display: block; width: 100%; height: 100%; }

/* The product page's title: a little larger, on the title's first line. */
.fx-product__title > .product-category { width: 18px; height: 18px; margin-right: 8px; vertical-align: -1px; }

@media print { .product-category { display: none; } }

/* zzzzzzzzzzzzzzzzzzzzzzzzzzzzz_product_groups.css */
/* Group by on HTS classification and Duty estimates (ProductGroups; mockup travio-review/Groups.dc.html, v2 "calmer").
   A group's header is one thin line on the list's own surface: no band, no icon tile, no bar. Its toggle folds the rows
   (product_groups_controller.js); a quiet "Confirm K →" sits at its end. Rows drop the grouped column. Then the group
   questions' button by the title and the panel that asks them one at a time. Glass, Glass dark and Classic share these
   rules through the tokens; below 600 px the line wraps. */

.product-work-table tr.pl-group > td { padding: 14px 14px 6px; border-top: 1px solid var(--line); background: transparent; font-size: 13px; }
.product-work-table tr.pl-group:first-child > td { border-top: 0; }
.pl-group__line { display: flex; align-items: center; gap: 4px 8px; flex-wrap: wrap; min-height: 28px; }
.pl-group__toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; margin-left: -6px; padding: 2px 6px; border: 0; border-radius: 8px;
  background: transparent; color: var(--ink); font: inherit; font-size: 14px; font-weight: 650; text-align: left; cursor: pointer; }
.pl-group__toggle:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.pl-group__toggle:focus-visible, .pl-group__confirm:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pl-group__chevron { display: inline-block; width: 10px; color: var(--muted); font-size: 11px; line-height: 1; transition: transform .15s ease; }
.pl-group__chevron::before { content: "▾"; }
.pl-group[data-folded="true"] .pl-group__chevron { transform: rotate(-90deg); }
.pl-group__name { display: inline-flex; align-items: center; gap: 6px; }
.pl-group__name.catalog-group-row__code { margin: 0; color: var(--ink); font-size: 14px; font-weight: 650; }
.pl-group__name .flagged { display: inline-flex; align-items: center; gap: 6px; }
.pl-group__name .product-category { display: inline-flex; color: var(--muted); }
.pl-group__meta { color: var(--muted); font-size: 12.5px; }
.pl-group__money { color: var(--muted); font-size: 12.5px; }
.pl-group__money .mono { color: var(--ink); font-weight: 600; }
.pl-group__act { margin: 0 0 0 auto; }
.pl-group__confirm { min-height: 28px; padding: 2px 6px; border: 0; border-radius: 8px; background: transparent; color: var(--accent-strong);
  font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.pl-group__confirm:hover { text-decoration: underline; text-underline-offset: 3px; }
.product-work-table tr.pl-group-folded { display: none !important; }
.product-work-table[data-group-hide="code"] [data-col="code"],
.product-work-table[data-group-hide="origin"] [data-col="origin"],
.product-workspace .product-work-table[data-group-hide="code"] > tbody > tr > td[data-col="code"],
.product-workspace .product-work-table[data-group-hide="origin"] > tbody > tr > td[data-col="origin"] { display: none !important; }
/* the product's name takes the hidden column's room, so the rows still fill the table */
.product-workspace .product-work-table[data-group-hide] > thead > tr > th.product-identity { width: auto; }

/* Group questions: the button by the title, and the panel under the header. */
.pl-gq-frame { display: inline-flex; min-width: 1px; min-height: 1px; }
.pl-gq__open { border-color: color-mix(in srgb, var(--accent) 38%, var(--line)); background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--accent-strong); font-weight: 600; white-space: nowrap; }
.pl-gq-panel-frame { display: block; }
.pl-gq { display: grid; gap: 10px; margin: 2px 0 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--surface); box-shadow: 0 1px 2px rgba(23, 32, 51, .05), 0 10px 30px rgba(31, 52, 94, .08); }
:root[data-look="glass"] .pl-gq { border-color: var(--glass-border, var(--line)); background: var(--glass-raised, var(--surface));
  -webkit-backdrop-filter: blur(var(--glass-blur, 0px)) saturate(var(--glass-saturation, 100%)); backdrop-filter: blur(var(--glass-blur, 0px)) saturate(var(--glass-saturation, 100%));
  box-shadow: var(--glass-highlight, none), var(--glass-shadow, none); }
.pl-gq__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pl-gq__count { margin: 0; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.pl-gq__close, .pl-gq__next { color: var(--accent-strong); font-size: 13px; font-weight: 600; }
.pl-gq__close { color: var(--muted); font-weight: 500; }
.pl-gq__q { margin: 0; color: var(--ink); font-size: 17px; font-weight: 650; line-height: 1.35; text-wrap: pretty; }
.pl-gq__why, .pl-gq__hint { margin: 0; color: var(--muted); font-size: 12.5px; }
.pl-gq__scope > summary { width: fit-content; color: var(--muted); font-size: 13px; cursor: pointer; list-style: none; }
.pl-gq__scope > summary::-webkit-details-marker { display: none; }
.pl-gq__show { color: var(--accent-strong); font-weight: 600; }
.pl-gq__scope[open] .pl-gq__show { text-decoration: underline; text-underline-offset: 3px; }
.pl-gq__names { margin: 6px 0 0; padding-left: 18px; columns: 2 240px; column-gap: 28px; color: var(--ink-soft, var(--ink)); font-size: 13px; }
.pl-gq__names li { break-inside: avoid; margin: 0 0 2px; }
.pl-gq__change { margin: 0; color: var(--ink); font-size: 14px; line-height: 1.45; }
.pl-gq__answers, .pl-gq__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pl-gq__answer { min-height: 38px; padding: 0 14px; font-weight: 600; }
.pl-gq__answer--varies { color: var(--muted); font-weight: 500; }
.pl-gq__done { margin: 0; color: var(--good); font-size: 14px; font-weight: 600; }
.pl-gq__notice { margin: 0; color: var(--ink); font-size: 13px; }
.pl-gq__actions form { display: inline; }

@media (max-width: 600px) {
  .product-work-table tr.pl-group { display: block; }
  .product-work-table tr.pl-group > td { display: block; padding: 14px 4px 6px; }
  .pl-group__act { margin-left: 0; }
  .pl-gq { padding: 14px; border-radius: 16px; }
  .pl-gq__q { font-size: 16px; }
  .pl-gq__open { white-space: normal; text-align: left; }
}

/* zzzzzzzzzzzzzzzzzzzzzzzzzzzzzz_duty_proof.css */
/* Duty you can trust (products/_duty_proof_*, live_duty_controller.js): in the live duty review, What Tarivo checked
   under the duty layers (one compact row per factor; the ones that do not apply folded into one line) and, in Your
   assumptions, the line naming what Tarivo assumed and the inputs without a card of their own. Quiet on purpose: the
   layers stay the picture; these are lines of text with a small mark. Every mark has its verdict in words too. */
.ld-proof { display: grid; gap: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.ld-proof__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; margin-bottom: 2px; }
.ld-proof__counts { margin: 0; color: var(--ink-soft); font-size: 12.5px; }
.ld-proof__count--applies { color: var(--good); font-weight: 600; }
.ld-proof__count--needs_you { color: var(--warn); font-weight: 600; }

.ld-proof__list { display: grid; margin: 0; padding: 0; list-style: none; }
.ld-proof__row { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 4px 10px; align-items: start; padding: 7px 0;
  border-top: 1px solid var(--line); font-size: 13px; }
.ld-proof__list > .ld-proof__row:first-child { border-top: 0; }
.ld-proof__mark { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; font-size: 12px; font-weight: 700; line-height: 1;
  background: var(--ld-track); color: var(--ink-soft); }
.ld-proof__row--applies .ld-proof__mark { background: var(--good-bg); color: var(--good); }
.ld-proof__row--needs_you .ld-proof__mark { background: var(--warn-bg); color: var(--warn); }
.ld-proof__detail { min-width: 0; }
.ld-proof__detail summary { display: block; cursor: pointer; list-style: none; line-height: 1.45; }
.ld-proof__detail summary::-webkit-details-marker { display: none; }
.ld-proof__detail summary:hover .ld-proof__name { color: var(--accent-strong, var(--accent)); }
.ld-proof__detail summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.ld-proof__name { font-weight: 600; }
.ld-proof__why { color: var(--ink-soft); }
.ld-proof__source { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.ld-proof__source a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.ld-proof__go { align-self: start; padding: 1px 0; color: var(--accent-strong, var(--accent)); font-size: 12.5px; font-weight: 600; white-space: nowrap;
  text-decoration: none; }
.ld-proof__go:hover { text-decoration: underline; }
.ld-proof__go:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.ld-proof__more > summary { display: flex; align-items: center; gap: 6px; min-height: 36px; padding: 2px 0; border-top: 1px solid var(--line);
  color: var(--ink-soft); font-size: 13px; cursor: pointer; list-style: none; }
.ld-proof__more > summary::-webkit-details-marker { display: none; }
.ld-proof__more > summary::after { content: "›"; display: inline-block; font-size: 15px; transition: transform .2s; }
.ld-proof__more[open] > summary::after { transform: rotate(90deg); }
.ld-proof__more > summary:hover { color: var(--ink); }
.ld-proof__more > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.ld-proof__list--quiet .ld-proof__row:first-child { border-top: 1px solid var(--line); }
.ld-proof__list--quiet .ld-proof__name { font-weight: 500; }

/* the what-if's change against the saved estimate, under the yearly line */
.live-duty__delta { font-size: 12.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.live-duty__delta--down { color: var(--good); }
.live-duty__delta--up { color: var(--warn); }
.live-duty__delta--same { color: var(--ink-soft); }

/* Your assumptions */
.ld-assumed { margin: -4px 0 0; color: var(--ink-soft); font-size: 12.5px; line-height: 1.5; }
.ld-assumed a { color: var(--accent-strong, var(--accent)); font-weight: 600; text-decoration: none; }
.ld-assumed a:hover { text-decoration: underline; }
.ld-also { display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.ld-also__title { font-size: 13px; }
.ld-also__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ld-also__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 13px; scroll-margin: 80px; }
.ld-also__name { font-weight: 600; }
.ld-also__words { flex: 1 1 100%; color: var(--ink-soft); font-size: 12.5px; }
.ld-also__quiet { margin: 0; color: var(--muted); font-size: 12px; }

/* a card reached from a link: a short ring so the eye finds it */
.ld-card { scroll-margin: 80px; }
.ld-card--found { animation: ld-found 1.4s ease-out; }
@keyframes ld-found { 0%, 40% { box-shadow: 0 0 0 2px var(--accent); } 100% { box-shadow: 0 0 0 2px transparent; } }

@media (max-width: 640px) {
  .ld-proof__row { grid-template-columns: 20px minmax(0, 1fr); }
  .ld-proof__go { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .ld-card--found { animation: none; outline: 2px solid var(--accent); }
  .ld-proof__more > summary::after { transition: none; }
}

/* zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz_import_results.css */
/* An import's results page (/import/:id; spreadsheet_imports/show, _results, _results_table, _completion_summary),
   built as HTS classification and Duty estimates are (the approved mockups Main.dc.html and Duty.dc.html; the Import
   board's results for the summary). One compact title line; the ready / need-you ring beside "Why rows need you"
   (both filter the rows); one line of next steps; one thin toolbar line; the rows in the Duty table's card with the HTS
   table's fit bar and status colours (mockup_duty.css, mockup_hts.css); an opened row's file facts above its review.
   Theme tokens only, so frosted glass, its dark mode and Classic follow. Below 640 px the rows are two-line cards. */

.im-page.ir-page .im-wrap { gap: 16px; }
.ir-page .ir-results { display: grid; gap: 14px; min-width: 0; }

/* the title line: the rows and date in plain grey, then Import another list as a quiet word */
.ir-page .page-header__actions { gap: 4px 14px; }
.ir-page .ir-uploaded { white-space: nowrap; }

/* ---------------------------------------------------------------- the summary: ring + why rows need you */
.ir-summary { display: grid; grid-template-columns: minmax(300px, .62fr) minmax(0, 1.7fr); gap: 16px; align-items: stretch; }
.ir-ring { display: flex; align-items: center; gap: 18px; padding: 16px 20px; }
.ir-ring__chart { flex: none; width: 132px; height: 132px; }
.ir-ring__part { cursor: pointer; transition: opacity .15s ease; }
.ir-ring__part:hover { opacity: .78; }
.ir-ring__words { display: grid; gap: 6px; min-width: 0; }
.ir-page .ir-ring__headline.im-headline { display: grid; gap: 4px; margin: 0; font-size: 17px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
.ir-ring__key { display: inline-flex; align-items: center; gap: 8px; width: fit-content; white-space: nowrap; padding: 2px 6px; margin-left: -6px; border-radius: 7px; color: var(--ink); text-decoration: none; }
.ir-ring__key:hover, .ir-ring__key[aria-current="true"] { background: var(--glass-selected, var(--accent-soft)); }
.ir-ring__key:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ir-page .ir-ring__key--need.im-headline__need { color: var(--iv-need); text-decoration: none; }
.ir-ring__swatch { flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--iv-ready); }
.ir-ring__key--need .ir-ring__swatch { background: var(--iv-need); }
.ir-ring__busy { margin: 0; color: var(--muted); font-size: 12px; }

.ir-why { display: grid; align-content: start; gap: 8px; padding: 16px 20px; }
.ir-h2 { margin: 0; color: var(--ink); font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.ir-muted { margin: 0; color: var(--muted); font-size: 13px; }
.ir-reasons { display: grid; margin: 0; padding: 0; list-style: none; }
.ir-reason { border-bottom: 1px solid var(--line); }
.ir-reason:last-child { border-bottom: 0; }
.ir-reason__link { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(80px, 1.3fr) 40px 64px; gap: 12px; align-items: center; min-height: 40px; padding: 6px 8px; margin: 0 -8px;
  border-radius: 9px; color: var(--ink); text-decoration: none; }
.ir-reason__link:hover, .ir-reason__link[aria-current="true"] { background: var(--glass-selected, var(--accent-soft)); }
.ir-reason__link:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.ir-reason__words { display: grid; min-width: 0; font-size: 13.5px; line-height: 1.35; }
.ir-reason__words strong { overflow: hidden; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.ir-reason__words span { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.ir-reason__track { display: block; height: 8px; overflow: hidden; border-radius: 4px; background: var(--iv-need-soft); }
.ir-reason__fill { display: block; height: 100%; border-radius: 4px; background: var(--iv-need); }
.ir-reason__count { color: var(--ink); font-size: 13.5px; font-weight: 600; text-align: right; }
.ir-reason__go { color: var(--accent-strong); font-size: 12.5px; font-weight: 550; text-align: right; white-space: nowrap; }
.ir-reason__link[aria-current="true"] .ir-reason__go { color: var(--muted); font-weight: 400; }
.ir-page .ir-why__detail { margin: 2px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.ir-why__stopped { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; color: var(--ink-soft); font-size: 13px; }
.ir-inline-form { display: inline; margin: 0; }

/* ---------------------------------------------------------------- the one line of next steps */
.ir-next { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 0; margin: 0 2px; font-size: 13.5px; line-height: 1.5; }
.ir-next__label { margin-right: 10px; color: var(--muted); font-size: 12px; font-weight: 500; }
.ir-next__go { color: var(--accent-strong); font-weight: 550; text-decoration: none; }
.ir-next__go strong { font-weight: 650; font-variant-numeric: tabular-nums; }
.ir-next__go:hover { text-decoration: underline; text-underline-offset: 3px; }
.ir-next__go:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.ir-next__go + .ir-next__go::before { content: "·"; display: inline-block; margin: 0 10px; color: var(--muted); font-weight: 400; text-decoration: none; }

/* ---------------------------------------------------------------- the toolbar line (the Products pages' pc-seg) */
.ir-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 2px 0 0; font-size: 12.5px; scroll-margin-top: 80px; }
.ir-page .pc-seg { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 2px; padding: 2px; border-radius: 9px; background: color-mix(in srgb, var(--ink) 5%, transparent); }
.ir-page .pc-seg .pc-seg__item { display: inline-flex; align-items: center; gap: 4px; min-height: 26px; padding: 2px 8px; border: 0; border-radius: 7px; background: none;
  color: var(--ink-soft, var(--ink)); font-size: 12.5px; font-weight: 500; line-height: 1.3; white-space: nowrap; text-decoration: none; }
.ir-page .pc-seg .pc-seg__item:hover { color: var(--accent-strong); }
.ir-page .pc-seg .pc-seg__item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ir-page .pc-seg .pc-seg__item[aria-current="page"] { background: var(--glass-raised, var(--surface)); color: var(--accent-strong); font-weight: 600; box-shadow: 0 1px 2px rgb(23 47 61 / 10%); }
.ir-page .pc-seg .pc-seg__count { margin: 0; color: var(--muted); font-size: 11.5px; font-weight: 400; font-variant-numeric: tabular-nums; }
.ir-page .ir-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 2px 9px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--glass-raised, var(--surface)); color: var(--ink); font-size: 12px; text-decoration: none; }
.ir-page .ir-chip > span { color: var(--muted); font-size: 14px; }
.ir-toolbar__end { display: flex; align-items: center; gap: 2px 6px; margin-left: auto; }
.ir-page .ir-more > summary.pc-quiet { min-height: 28px; font-size: 12.5px; }
.ir-page .ir-note { margin: 0 2px; color: var(--muted); font-size: 12px; line-height: 1.55; }

/* ---------------------------------------------------------------- the rows: the Duty table's card and columns */
.ir-page .ir-table-wrap { min-width: 0; }
.ir-page .product-workspace .catalog-table.ir-table { table-layout: fixed; }
.ir-page .product-workspace .ir-table > thead > tr > th.product-identity { width: 36%; padding-left: 24px; }
.ir-page .product-workspace .ir-table > thead > tr > th[data-col="code"] { width: 17%; }
.ir-page .product-workspace .ir-table > thead > tr > th[data-col="duty"] { width: 20%; }
.ir-page .product-workspace .ir-table > thead > tr > th.duty-table__status-head { width: 17%; }
.ir-page .product-workspace .ir-table > thead > tr > th.duty-table__act { width: 10%; padding-right: 24px; }
.ir-page .product-workspace .ir-table > thead > tr > th { padding: 12px 8px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.ir-page .product-workspace .ir-table .ir-row__name { font-weight: 500; }
.ir-page .product-workspace .ir-table .catalog-row--expanded .ir-row__name { font-weight: 600; }
.ir-page .product-workspace .ir-table .ir-row__part { font-family: var(--font-mono, "Geist Mono", ui-monospace, monospace); font-size: 11.5px; }
.ir-page .product-workspace .ir-table td.ir-row__code { overflow: hidden; }
.ir-page .product-workspace .ir-table .hts-fit { max-width: 150px; height: 5px; margin-top: 6px; }
.ir-page .product-workspace .ir-table .hts-fit__fill { height: 5px; }
.ir-page .product-workspace .ir-table td.duty-table__duty .ld-mini { max-width: 180px; height: 6px; }
.ir-page .product-workspace .ir-table td.duty-table__status { overflow: hidden; }
.ir-page .product-workspace .ir-table .hts-status { font-size: 13px; }
.ir-page .product-workspace .ir-table .ir-row__review { border-color: var(--line-strong); background: transparent; color: var(--ink-soft); box-shadow: none; }
.ir-page .product-workspace .ir-table .ir-row__review:hover { border-color: var(--accent); color: var(--accent-strong); }
.ir-page .product-workspace .ir-table .catalog-row--expanded .ir-row__review { visibility: hidden; }
.ir-page .product-workspace .ir-table > tbody > tr:not([data-product-id]).ir-row { cursor: default; }
.ir-page .product-workspace .ir-table > tbody > tr:not([data-product-id]).ir-row:has(a.ir-row__name) { cursor: pointer; }
.ir-page .ir-table .ir-empty { padding: 28px 24px; color: var(--muted); font-size: 13px; text-align: center; }
.ir-page .ir-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 4px; color: var(--muted); font-size: 12.5px; }

/* ---------------------------------------------------------------- a row opened: what the file said, above the review */
.ir-page .ir-facts { display: grid; gap: 8px; margin: 0 0 16px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--glass-raised, var(--surface)); font-size: 13px; line-height: 1.5; }
.ir-facts__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin: 0; color: var(--muted); font-size: 12px; font-weight: 500; }
.ir-facts__head .fx-link { font-size: 12px; }
.ir-facts__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 6px 24px; margin: 0; }
.ir-facts__item { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; min-width: 0; }
.ir-facts__item dt { color: var(--muted); font-size: 12px; }
.ir-facts__item dd { margin: 0; overflow-wrap: anywhere; color: var(--ink); }
.ir-facts__item--warn dd { color: var(--warn); }
.ir-facts__item--bad dd { color: var(--bad); font-weight: 500; }

/* ---------------------------------------------------------------- narrower screens */
@media (max-width: 980px) {
  .ir-summary { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .ir-page .page-header__actions { width: 100%; justify-content: space-between; }
  .ir-ring { gap: 14px; padding: 14px 16px; }
  .ir-ring__chart { width: 104px; height: 104px; }
  .ir-why { padding: 14px 16px; }
  .ir-reason__link { grid-template-columns: minmax(0, 1fr) 32px 44px; gap: 4px 10px; min-height: 44px; }
  .ir-reason__track { grid-column: 1 / -1; grid-row: 2; height: 6px; }
  .ir-reason__words span { white-space: normal; }
  .ir-next { display: grid; gap: 6px; }
  .ir-next__go { display: block; padding: 8px 0; }
  .ir-next__go + .ir-next__go::before { content: none; }
  .ir-toolbar { gap: 8px; }
  .ir-page .pc-seg { order: 2; flex: 1 0 100%; flex-wrap: wrap; }
  .ir-page .pc-seg .pc-seg__item { flex: 1 0 auto; justify-content: center; min-height: 36px; font-size: 13px; }
  .ir-toolbar__end { order: 1; margin-left: auto; }
  .ir-page .ir-chip { order: 3; }
  /* the rows: the Duty table's two-line cards (mockup_duty.css), the part number kept small under the name */
  .ir-page .product-workspace .ir-table td.product-identity .duty-table__part { display: block; }
  .ir-page .product-workspace .ir-table > tbody > tr.duty-table__row { grid-template-areas: "name name status" "code duty act"; }
  .ir-page .product-workspace .ir-table td.ir-row__code .hts-fit { max-width: 96px; height: 4px; margin-top: 4px; }
  .ir-page .product-workspace .ir-table td.ir-row__code .hts-fit__fill { height: 4px; }
  .ir-page .product-workspace .ir-table td.duty-table__status { max-width: 46vw; text-align: right; }
  .ir-page .product-workspace .ir-table .hts-status { white-space: normal; }
  .ir-page .product-workspace .ir-table td.duty-table__act:has(> .ir-row__review[data-product-review-open]) { display: none !important; }
  .ir-page .ir-facts { padding: 12px 14px; }
  .ir-facts__list { grid-template-columns: minmax(0, 1fr); }
  .ir-facts__item { grid-template-columns: minmax(0, 1fr); gap: 0; }
  /* an opened card is tinted as a whole (the row is the grid), not cell by cell */
  .ir-page .product-workspace .ir-table > tbody > tr.duty-table__row.catalog-row--expanded > td { background: transparent; }
}
@media (prefers-reduced-motion: reduce) { .ir-ring__part { transition: none; } }
@media print { .ir-toolbar, .ir-next, .ir-refresh { display: none !important; } }
/* while the import runs and nothing needs you yet: the ring alone, at its own width */
.ir-summary:not(:has(> .ir-why)) { grid-template-columns: minmax(300px, max-content); }
/* a row with no review (a reader's unconfirmed product, a row still being read): its name opens what the file said */
.ir-page .product-workspace .ir-table .ir-row__toggle { display: block; width: 100%; padding: 0; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.ir-page .product-workspace .ir-table .ir-row__toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.ir-page .product-workspace .ir-table > tbody > tr:not([data-product-id]).ir-row:has(.ir-row__toggle) { cursor: pointer; }
.ir-page .product-workspace .ir-table > tbody > tr.ir-facts-row > td { padding: 4px 24px 18px; border-bottom: 1px solid var(--line); background: var(--dt-tint); }
.ir-page .product-workspace .ir-table > tbody > tr.ir-facts-row .ir-facts { margin: 0; }
@media (max-width: 640px) {
  .ir-page .product-workspace .ir-table > tbody > tr.ir-facts-row { display: block; }
  .ir-page .product-workspace .ir-table > tbody > tr.ir-facts-row > td { display: block; padding: 4px 10px 14px; }
}
.ir-ring__sep { display: none; }

/* zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz_import_start.css */
/* Import's start (spreadsheet_imports/new) in the calm chrome of HTS classification and Duty estimates (owner, 2026-10-15:
   "just build it the way hts and duty is built"): the compact title with Add one product as a quiet word, the SAP line,
   ONE input card (Upload a file / Paste a list as small segments with SAP as a way in on the right; the drop box or the
   pasted list; the rules as two grey lines beside the one button), one line of samples under it, and the recent imports
   as one quiet table (File · Date · Products · Status). Theme tokens only, so Glass, Glass dark and Classic follow.
   Below 600 px the card stacks and each import is a two-line card. */

.ims-page {
  --ims-done: #2f7d4f;
  --ims-need: #8a5a00;
  --ims-track: color-mix(in srgb, var(--ink) 9%, transparent);
  --ims-drag: rgba(50, 104, 199, .07);
}
:root[data-theme="dark"] .ims-page { --ims-done: #8fdcae; --ims-need: #f0c27a; --ims-drag: rgba(140, 180, 255, .10); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ims-page { --ims-done: #8fdcae; --ims-need: #f0c27a; --ims-drag: rgba(140, 180, 255, .10); }
}

.im-page .im-wrap.ims-wrap { gap: 14px; }
.ims-wrap .page-header__actions { gap: 4px 16px; }
.ims-wrap > .im-sap-line { margin: -6px 0 2px; color: var(--muted); font-size: 12.5px; }
.ims-wrap > .im-sap-line .fx-link { font-size: 12.5px; }

/* ---------------------------------------------------------------- the one input card */
.ims-card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "bar bar" "box box" "rules go";
  align-items: end; gap: 16px 24px; margin: 0; padding: 18px 22px 20px; min-width: 0;
  border: 1px solid var(--glass-border, var(--line)); border-radius: 18px; background: var(--glass-surface, var(--surface));
  box-shadow: var(--glass-shadow, var(--shadow-card)); backdrop-filter: blur(var(--glass-blur, 16px)); -webkit-backdrop-filter: blur(var(--glass-blur, 16px));
  transition: background-color .2s ease, box-shadow .2s ease;
}
.ims-card--drag { background: color-mix(in srgb, var(--accent) 5%, var(--glass-surface, var(--surface))); }
.ims-card > form:not([hidden]) { display: contents; }
.ims-card--note { display: block; color: var(--ink-soft); font-size: 14px; }

.ims-card__bar { grid-area: bar; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; min-width: 0; }

/* Upload a file / Paste a list: the toolbar's small text segments */
.ims-modes { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border-radius: 9px; background: color-mix(in srgb, var(--ink) 5%, transparent); }
.ims-modes__item { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 11px; border-radius: 7px; color: var(--ink-soft, var(--ink));
  font-size: 13px; font-weight: 500; line-height: 1.3; white-space: nowrap; text-decoration: none; }
.ims-modes__item:hover { color: var(--accent-strong); text-decoration: none; }
.ims-modes__item[aria-current] { background: var(--glass-raised, var(--surface)); color: var(--accent-strong); font-weight: 600; box-shadow: 0 1px 2px rgb(23 47 61 / 10%); }
.ims-modes__item:focus-visible, .ims-sap__link:focus-visible, .ims-rules__link:focus-visible, .ims-sample__button:focus-visible, .ims-row__link:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* SAP as a way in, on the right of the bar, with its state as a small grey note */
.ims-sap { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 0; font-size: 13px; }
.ims-sap__link { color: var(--accent-strong); font-weight: 550; text-decoration: none; white-space: nowrap; }
.ims-sap__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.ims-sap__note { color: var(--muted); font-size: 12px; }

/* the drop box: the whole box chooses a file; a file dragged over the card lights it */
.ims-drop {
  grid-area: box; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 150px; padding: 22px 18px; border: 1.5px dashed var(--control-border, var(--line-strong)); border-radius: 14px;
  background: color-mix(in srgb, var(--glass-raised, var(--surface)) 55%, transparent); color: var(--ink); text-align: center; cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.ims-drop:hover { border-color: var(--accent); }
.ims-drop:focus-within { border-color: var(--accent); outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 2px; }
.ims-drop--over { border-style: solid; border-color: var(--accent); background: var(--ims-drag); transform: scale(1.005); }
.ims-drop--chosen { border-style: solid; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.ims-drop--too-big { border-color: var(--ims-need); }
.ims-drop--too-big .ims-drop__hint { color: var(--ims-need); }
.ims-drop__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--glass-icon-tint, var(--accent-soft)); color: var(--accent-strong); }
.ims-drop__icon svg { width: 18px; height: 18px; }
.ims-drop--over .ims-drop__icon { transform: translateY(-2px); transition: transform .15s ease; }
.ims-drop__text { font-size: 14px; font-weight: 400; line-height: 1.45; overflow-wrap: anywhere; }
.ims-drop__text strong { font-weight: 600; }
.ims-drop__choose { color: var(--accent-strong); font-weight: 550; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.ims-drop__hint { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.ims-drop--chosen .ims-drop__hint { color: var(--accent-strong); font-weight: 500; }
/* the file field itself: out of sight, still focusable and still checked by the browser */
.ims-drop__input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; opacity: 0; }

/* the pasted list, in the same place */
.ims-paste { grid-area: box; display: grid; gap: 6px; min-width: 0; }
.ims-page .ims-paste__area { width: 100%; min-height: 150px; margin: 0; padding: 14px 16px; border-radius: 14px; font-family: var(--font-mono); font-size: 13px; line-height: 1.7;
  background: color-mix(in srgb, var(--glass-raised, var(--surface)) 80%, transparent); resize: vertical; box-sizing: border-box; }
.ims-paste__count { margin: 0 2px; color: var(--muted); font-size: 12.5px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.ims-paste__count--set { color: var(--accent-strong); font-weight: 550; }
.ims-paste__count--over { color: var(--ims-need); font-weight: 550; }

/* the one button, at the right of the rules */
.ims-page .ims-card .ims-go { grid-area: go; justify-self: end; min-height: 40px; padding: 0 18px; gap: 12px; white-space: nowrap; }
.ims-page .ims-card .ims-go:disabled { opacity: .5; cursor: not-allowed; }
.ims-page .ims-card .ims-go[aria-busy="true"] { opacity: .8; cursor: progress; }

/* the rules: two grey lines */
.ims-rules { grid-area: rules; min-width: 0; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.ims-rules p { margin: 0; }
.ims-rules strong { color: var(--ink-soft, var(--ink)); font-weight: 550; }
.ims-rules__link { color: var(--accent-strong); font-weight: 500; text-decoration: none; }
.ims-rules__link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- one line of samples */
.ims-samples { display: grid; gap: 2px; margin: 0 4px; }
.ims-samples__line { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; font-size: 13px; }
.ims-samples__lead { margin-right: 4px; color: var(--ink-soft, var(--ink)); }
.ims-samples .sample-choices.ims-samples__choices { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 0; width: auto; }
.ims-samples__choices .ims-sample { display: inline-flex; align-items: center; margin: 0; }
.ims-samples__choices .ims-sample + .ims-sample::before { content: "·"; margin: 0 4px; color: var(--muted); }
.ims-page .ims-sample__button { min-height: 28px; margin: 0; padding: 3px 6px; border: 0; border-radius: 7px; background: none; box-shadow: none;
  color: var(--accent-strong); font: inherit; font-size: 13px; font-weight: 550; line-height: 1.3; white-space: nowrap; cursor: pointer; }
.ims-page .ims-sample__button:hover { background: var(--glass-selected); }
.ims-page .ims-sample__button:disabled { opacity: .45; cursor: default; background: none; }
.ims-page .ims-sample__button--starting { background: var(--glass-selected); cursor: progress; }
.ims-samples__note { margin: 0 0 0 1px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.ims-samples__note .ims-rules__link { margin-left: 6px; }

/* ---------------------------------------------------------------- recent imports: one quiet table */
.ims-recent { display: grid; gap: 8px; margin-top: 14px; }
.ims-page .ims-recent__title { margin: 0 4px; color: var(--ink); font-size: 14px; font-weight: 600; letter-spacing: 0; }
.ims-table-card { overflow: hidden; border: 1px solid var(--glass-border, var(--line)); border-radius: 18px; background: var(--glass-surface, var(--surface));
  box-shadow: var(--glass-shadow, var(--shadow-card)); backdrop-filter: blur(var(--glass-blur, 16px)); -webkit-backdrop-filter: blur(var(--glass-blur, 16px)); }
.ims-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 14px; }
.ims-table > thead > tr > th { padding: 12px 10px; border-bottom: 1px solid var(--line-strong); color: var(--muted); font-size: 12px; font-weight: 400;
  letter-spacing: 0; text-align: left; text-transform: none; white-space: nowrap; }
.ims-table > thead > tr > th:nth-child(1) { width: 46%; }
.ims-table > thead > tr > th:nth-child(2) { width: 15%; }
.ims-table > thead > tr > th:nth-child(3) { width: 11%; }
.ims-table > :is(thead, tbody) > tr > :is(th, td):first-child { padding-left: 22px; }
.ims-table > :is(thead, tbody) > tr > :is(th, td):last-child { padding-right: 22px; }
.ims-table .ims-table__num { text-align: right; font-variant-numeric: tabular-nums; }
.ims-table > thead > tr > th.ims-table__num { text-align: right; }
.ims-row { position: relative; cursor: pointer; }
.ims-row > td { padding: 13px 10px; border-bottom: 1px solid var(--line); color: var(--ink); line-height: 1.4; vertical-align: middle; white-space: nowrap; }
.ims-row:last-child > td { border-bottom: 0; }
.ims-row:hover > td { background: color-mix(in srgb, var(--accent) 4%, transparent); }
.ims-row__file { overflow: hidden; text-overflow: ellipsis; }
/* the file name is the row's link, and its box covers the whole row */
.ims-row__link { color: var(--ink); text-decoration: none; }
.ims-row__link::after { content: ""; position: absolute; inset: 0; }
.ims-row:hover .ims-row__link { color: var(--accent-strong); }
.ims-row__name { font-weight: 400; }
.ims-tag { margin-left: 6px; padding: 1px 6px; border-radius: 5px; font-size: 10.5px; line-height: 1.5; vertical-align: 1px; }
.ims-page .ims-tag:not(.ims-tag--sample) { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--muted); }
.ims-row__date { color: var(--muted); font-size: 13px; }
.ims-row__count { color: var(--ink-soft, var(--ink)); font-size: 13px; }
.ims-row__unit { display: none; }
.ims-row__status { overflow: hidden; }
.ims-status { display: block; overflow: hidden; color: var(--ink-soft, var(--ink)); font-size: 13px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.ims-status--done { color: var(--ims-done); }
.ims-status--need { color: var(--ims-need); }
.ims-status--running { color: var(--accent-strong); }
.ims-status--quiet { color: var(--muted); }
.ims-progress { display: block; max-width: 160px; height: 4px; margin-top: 5px; overflow: hidden; border-radius: 2px; background: var(--ims-track); }
.ims-progress__fill { display: block; height: 4px; border-radius: 2px; background: var(--accent); transition: width .4s ease; }

@media (max-width: 600px) {
  .im-page .im-wrap.ims-wrap { gap: 12px; }
  .ims-card { grid-template-columns: minmax(0, 1fr); grid-template-areas: "bar" "box" "go" "rules"; gap: 12px; padding: 14px 14px 16px; border-radius: 16px; }
  .ims-card__bar { align-items: flex-start; }
  .ims-modes { flex: 1 0 100%; }
  .ims-modes__item { flex: 1 0 auto; justify-content: center; min-height: 34px; }
  .ims-drop { min-height: 128px; }
  .ims-page .ims-paste__area { min-height: 128px; font-size: 16px; }
  .ims-page .ims-card .ims-go { justify-self: stretch; justify-content: center; min-height: 44px; }
  .ims-page .ims-sample__button { min-height: 36px; }
  .ims-samples__line { display: grid; gap: 0; }
  .ims-samples__choices .ims-sample + .ims-sample::before { content: none; }
  .ims-samples .sample-choices.ims-samples__choices { gap: 0 6px; margin-left: -6px; }
  .ims-table, .ims-table > tbody { display: block; width: 100%; }
  .ims-table > thead { display: none; }
  .ims-row { display: grid; grid-template-columns: auto auto minmax(0, 1fr); grid-template-areas: "file file file" "date count status"; align-items: baseline; gap: 4px 0; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .ims-row:last-child { border-bottom: 0; }
  .ims-row > td { display: block; padding: 0 !important; border: 0; white-space: normal; }
  .ims-row > td.ims-row__file { grid-area: file; white-space: nowrap; }
  .ims-row > td.ims-row__date { grid-area: date; font-size: 12px; }
  .ims-row > td.ims-row__count { grid-area: count; font-size: 12px; color: var(--muted); }
  .ims-row > td.ims-row__count:not(:empty)::before { content: "·"; margin: 0 6px; }
  .ims-row > td.ims-row__status { grid-area: status; padding-left: 12px !important; text-align: right; }
  .ims-progress { margin-left: auto; }
  .ims-row__unit { display: inline; }
  .ims-status { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .ims-card, .ims-drop, .ims-drop__icon, .ims-progress__fill { transition: none; }
  .ims-drop--over { transform: none; }
}
@media print {
  .ims-card, .ims-samples { display: none !important; }
  .ims-table-card { backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
}

/* zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz_mockup_chrome.css */
/* The calm page chrome of HTS classification and Duty estimates (the approved mockups, owner 2026-10-15: "just implement
   the mockups you created first"; products/_collection, _workspace_filters, _list). A title line with one plain count on
   the right and Import / Add product as quiet words; one thin line of small text controls (search, the page's views,
   Country / Duty / Group by / Sort, the group questions, Select and View); the table card; one grey footnote under it.
   Every filter stays (owner: "don't remove the filters"); only quieter. Tokens only, so Glass, Glass dark and Classic
   follow. Below 600 px the toolbar wraps and the menus fold into one "Filters" sheet. */

.product-workspace:is(.product-stage--hts, .product-stage--duty) .pl__head { gap: 12px; padding-bottom: 12px; }

/* Title line: the count in plain grey, then the quiet words. */
.product-workspace:is(.product-stage--hts, .product-stage--duty) .page-header__actions { gap: 4px 16px; }
.pc-count { margin: 0; color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.4; font-variant-numeric: tabular-nums; }
.product-workspace:is(.product-stage--hts, .product-stage--duty) .pl__header-actions { gap: 2px 10px; margin: 0; }
.pc-quiet { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; margin: 0; padding: 3px 6px; border: 0; border-radius: 7px; background: none;
  color: var(--accent-strong); font: inherit; font-size: 13px; font-weight: 550; line-height: 1.3; white-space: nowrap; text-decoration: none; cursor: pointer; list-style: none; }
.pc-quiet::-webkit-details-marker { display: none; }
.pc-quiet:hover { background: var(--glass-selected); color: var(--accent-strong); }
.pc-quiet:focus-visible, .pc-link:focus-visible, .pc-seg__item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The one toolbar line. */
.product-workspace:is(.product-stage--hts, .product-stage--duty) .product-filterbar.pc-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; font-size: 12.5px; }
.product-workspace:is(.product-stage--hts, .product-stage--duty) .pc-toolbar .product-filterbar__search { flex: 0 1 230px; min-width: 150px; }
.product-workspace.product-stage--duty .pc-toolbar .product-filterbar__search { flex-basis: 190px; }
.product-workspace:is(.product-stage--hts, .product-stage--duty) .pc-toolbar .product-filterbar__search .pl__input { height: 32px; min-height: 32px; padding: 0 10px 0 30px; border-radius: 8px; font-size: 13px; box-shadow: none; }
.product-workspace:is(.product-stage--hts, .product-stage--duty) .pc-toolbar .product-filterbar__search .pl__search-icon { left: 10px; width: 15px; height: 15px; }

/* The page's views (All · Needs review · Confirmed; All · To confirm · Confirmed · Waiting for code): small text segments. */
.product-workspace:is(.product-stage--hts, .product-stage--duty) .pc-seg { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 2px; padding: 2px; border-radius: 9px;
  background: color-mix(in srgb, var(--ink) 5%, transparent); }
.product-workspace:is(.product-stage--hts, .product-stage--duty) .pc-seg .pc-seg__item { display: inline-flex; align-items: center; gap: 4px; min-height: 26px; padding: 2px 8px; border: 0; border-radius: 7px;
  background: none; box-shadow: none; color: var(--ink-soft, var(--ink)); font-size: 12.5px; font-weight: 500; line-height: 1.3; white-space: nowrap; text-decoration: none; }
.product-workspace:is(.product-stage--hts, .product-stage--duty) .pc-seg .pc-seg__item:hover { color: var(--accent-strong); }
.product-workspace:is(.product-stage--hts, .product-stage--duty) .pc-seg .pc-seg__item[aria-current="page"] { background: var(--glass-raised, var(--surface)); color: var(--accent-strong); font-weight: 600;
  box-shadow: 0 1px 2px rgb(23 47 61 / 10%); }
.product-workspace:is(.product-stage--hts, .product-stage--duty) .pc-seg .pc-seg__count { padding: 0; border-radius: 0; background: none; color: var(--muted); font-size: 11.5px; font-weight: 400; font-variant-numeric: tabular-nums; }
.product-workspace:is(.product-stage--hts, .product-stage--duty) .pc-seg .product-status-icon { display: none; }

/* Country, Duty, Group by, Sort, View, Select…: small text menus, no boxes. */
.product-workspace:is(.product-stage--hts, .product-stage--duty) .pc-toolbar .product-filterbar__menus { gap: 2px 4px; }
.product-workspace:is(.product-stage--hts, .product-stage--duty) .pc-toolbar .product-filter > summary { gap: 4px; min-height: 28px; max-width: 230px; padding: 3px 6px; border: 0; border-radius: 7px;
  background: none; box-shadow: none; font-size: 12.5px; font-weight: 500; }
.product-workspace:is(.product-stage--hts, .product-stage--duty) .pc-toolbar .product-filter > summary:hover,
.product-workspace:is(.product-stage--hts, .product-stage--duty) .pc-toolbar .product-filter[open] > summary { background: var(--glass-selected); }
/* A menu at its default says only its name ("Country", "Sort"); once set, its choice too ("Country China"). */
.product-workspace:is(.product-stage--hts, .product-stage--duty) .pc-toolbar .product-filter__selection--default { display: none; }
.product-workspace:is(.product-stage--hts, .product-stage--duty) .pc-toolbar .product-filter__label { color: var(--ink-soft, var(--ink)); }
.product-workspace:is(.product-stage--hts, .product-stage--duty) .pc-toolbar .product-filter__options { font-size: 13px; }
.product-workspace:is(.product-stage--hts, .product-stage--duty) .pc-toolbar .product-filter__option { min-height: 34px; padding: 6px 9px; font-size: 13px; }
.product-workspace:is(.product-stage--hts, .product-stage--duty) .pc-toolbar .product-filter-reset { min-height: 28px; padding: 3px 5px; font-size: 13px; }

/* The group questions: a quiet link, not a big button. */
.product-workspace:is(.product-stage--hts, .product-stage--duty) .pc-toolbar .pl-gq-frame { display: inline-flex; margin-left: auto; }
.product-workspace:is(.product-stage--hts, .product-stage--duty) .pl-gq__open.pc-link { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 4px; border: 0; background: none; box-shadow: none;
  color: var(--accent-strong); font-size: 12.5px; font-weight: 550; white-space: nowrap; text-decoration: none; }
.product-workspace:is(.product-stage--hts, .product-stage--duty) .pl-gq__open.pc-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Select and View (and Duty estimates' Select…) on the right of the line. */
.product-workspace:is(.product-stage--hts, .product-stage--duty) .pc-toolbar .product-filterbar__view { display: flex; align-items: center; gap: 2px 6px; }
.product-workspace:is(.product-stage--hts, .product-stage--duty) .pc-toolbar .product-filterbar__view > .pc-quiet { min-height: 28px; font-size: 12.5px; }
.product-workspace:is(.product-stage--hts, .product-stage--duty) .pc-toolbar .product-filterbar__view [hidden] { display: none; }
.product-workspace:is(.product-stage--hts, .product-stage--duty) .pc-menu__panel { width: 300px; padding: 6px; }
.pc-bulk { display: grid; gap: 2px; margin: 0; }
.product-workspace .pc-bulk .pc-bulk__button { width: 100%; color: var(--accent-strong); font-weight: 600; }
.pc-bulk__note { display: block; padding: 0 9px 6px; color: var(--muted); font-size: 12px; line-height: 1.45; }
/* Drawn with the rows, shown in the Select… menu (page_chrome_controller.js). */
.pc-bulk-source { display: none; }

/* The chips of filters no menu shows, small under the line. */
.product-workspace:is(.product-stage--hts, .product-stage--duty) .product-active-filters { gap: 6px; margin: 0; }
.product-workspace:is(.product-stage--hts, .product-stage--duty) .product-filter-chip { gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12px; }
.product-workspace:is(.product-stage--hts, .product-stage--duty) .product-filter-chip > span { font-size: 14px; }

/* Needs review's quick filters (in the list), smaller. */
.product-workspace:is(.product-stage--hts, .product-stage--duty) .product-steps { gap: 4px; margin: 0 0 10px; }
.product-workspace:is(.product-stage--hts, .product-stage--duty) .product-steps__item { min-height: 26px; padding: 2px 10px; font-size: 12.5px; }

/* One grey line above the card only for what just happened; the rest is the footnote under it. */
.product-workspace:is(.product-stage--hts, .product-stage--duty) .product-stage-progress--top { margin: 0 0 8px; color: var(--muted); font-size: 12.5px; }
.pc-footnote { display: flex; flex-wrap: wrap; align-items: baseline; margin: 10px 2px 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.product-workspace .pc-footnote > p { margin: 0; color: var(--muted); font-size: 12px; font-weight: 400; }
.pc-footnote > p + p::before { content: "·"; margin: 0 8px; color: var(--muted); }
.product-workspace .pc-footnote a { color: var(--accent-strong); font-weight: 500; }

@media (max-width: 600px) {
  .product-workspace:is(.product-stage--hts, .product-stage--duty) .pl__header-actions > .pc-quiet { display: none; }
  .product-workspace:is(.product-stage--hts, .product-stage--duty) .product-filterbar.pc-toolbar { flex-wrap: wrap; gap: 8px; }
  .product-workspace:is(.product-stage--hts, .product-stage--duty) .pc-toolbar .product-filterbar__search { flex: 1 1 0; min-width: 0; }
  .product-workspace:is(.product-stage--hts, .product-stage--duty) .pc-toolbar .product-filterbar__search .pl__input { height: 38px; min-height: 38px; font-size: 16px; }
  .product-workspace:is(.product-stage--hts, .product-stage--duty) .pc-toolbar .product-filterbar__sheet-button { order: 1; min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
  .product-workspace:is(.product-stage--hts, .product-stage--duty) .pc-seg { order: 2; flex: 1 0 100%; flex-wrap: wrap; }
  .product-workspace:is(.product-stage--hts, .product-stage--duty) .pc-seg .pc-seg__item { flex: 1 0 auto; justify-content: center; min-height: 34px; font-size: 13px; }
  /* Select and View stay desktop tools, as before (the rows' own buttons are there on a phone). */
  .product-workspace:is(.product-stage--hts, .product-stage--duty) .pc-toolbar .product-filterbar__view { display: none; }
  .product-workspace:is(.product-stage--hts, .product-stage--duty) .pc-toolbar .pl-gq-frame { order: 3; }
  /* the folded menus, in their sheet, are full-size controls again */
  .product-workspace:is(.product-stage--hts, .product-stage--duty) .pc-toolbar .product-filterbar__menus:popover-open { gap: 8px; }
  .product-workspace:is(.product-stage--hts, .product-stage--duty) .pc-toolbar .product-filterbar__menus .product-filter > summary { min-height: 44px; max-width: none; padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
  .product-workspace:is(.product-stage--hts, .product-stage--duty) .pc-toolbar .product-filterbar__menus .product-filter__option { min-height: 40px; font-size: 14px; }
  .product-workspace:is(.product-stage--hts, .product-stage--duty) .pc-toolbar .product-filterbar__menus .product-filter__selection--default { display: inline; }
  .product-workspace:is(.product-stage--hts, .product-stage--duty) .pc-toolbar .pl-gq-frame { margin-left: 0; }
  .pc-footnote { margin: 10px 4px 0; }
}
@media print {
  .pc-toolbar, .pc-count + .pl__header-actions { display: none !important; }
}
/* The group questions' panel frame takes no room (no extra gap under the line) until a panel loads into it. */
.product-workspace:is(.product-stage--hts, .product-stage--duty) .pl__head > .pl-gq-panel-frame:empty { display: none; }

/* zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz_mockup_duty.css */
/* Duty estimates' table (products/_duty_table; mockup travio-review/Duty.dc.html "Duty calculation: a row opened").
   One rounded card; a 12px grey header "Product | HTS code | Duty per entry | Status"; 14px rows: the name (and its
   part number, small), the code in mono, the duty per entry (600) over a thin bar of its layers in the duty layer
   colours, one coloured status phrase, and at most one small button at the end. A row opened is tinted and its review
   sits under it as the mockup draws it: two white cards on the tint, no frame of its own. At phone width each row is a
   two-line card. Glass and Classic, light and dark: colours are the theme's tokens. */

.duty-table-card {
  --dt-tint: rgba(50, 104, 199, .06);
  --dt-hover: rgba(50, 104, 199, .035);
  --dt-track: #e3e9f3;
  --dt-head: var(--muted);
}
:root[data-theme="dark"] .duty-table-card { --dt-tint: rgba(127, 168, 255, .10); --dt-hover: rgba(127, 168, 255, .05); --dt-track: rgba(255, 255, 255, .10); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .duty-table-card { --dt-tint: rgba(127, 168, 255, .10); --dt-hover: rgba(127, 168, 255, .05); --dt-track: rgba(255, 255, 255, .10); }
}

/* the card */
.product-workspace .duty-table-card { border-radius: 18px; overflow: hidden; }
.product-workspace .duty-table-card > .catalog-scroll { border-radius: 18px; }
.product-workspace .catalog-table.duty-table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 14px; }

/* columns: 3 · 1.3 · 2.6 · 1.3 (and the button) */
.product-workspace .duty-table > thead > tr > th { padding: 12px 8px; background: transparent; border-bottom: 1px solid var(--line); color: var(--dt-head);
  font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; text-align: left; white-space: nowrap; }
.product-workspace .duty-table > thead > tr > th.product-identity { width: 34%; padding-left: 24px; }
.product-workspace .duty-table > thead > tr > th[data-col="code"] { width: 15%; }
.product-workspace .duty-table > thead > tr > th[data-col="duty"] { width: 26%; text-align: left; }
.product-workspace .duty-table > thead > tr > th.duty-table__status-head { width: 15%; }
.product-workspace .duty-table > thead > tr > th.duty-table__act { width: 10%; padding-right: 24px; }
.product-workspace .duty-table > thead > tr > th:last-child { padding-right: 24px; }

/* the rows */
.product-workspace .duty-table > tbody > tr.duty-table__row { cursor: pointer; }
.product-workspace .duty-table > tbody > tr.duty-table__row > td { padding: 14px 8px; border-bottom: 1px solid var(--line); background: transparent; box-shadow: none;
  color: var(--ink); font-size: 14px; vertical-align: middle; white-space: nowrap; text-align: left; }
.product-workspace .duty-table > tbody > tr.duty-table__row > td:first-child { padding-left: 24px; }
.product-workspace .duty-table > tbody > tr.duty-table__row > td:last-child { padding-right: 24px; }
.product-workspace .duty-table > tbody > tr.duty-table__row:hover > td { background: var(--dt-hover); }
.product-workspace .duty-table > tbody > tr.duty-table__row:has(.duty-table__name:focus-visible) > td { background: var(--dt-hover); }
.product-workspace .duty-table > tbody > tr.duty-table__row.catalog-row--expanded > td { background: var(--dt-tint); border-bottom-color: transparent; }

.product-workspace .duty-table td.product-identity { overflow: hidden; }
.product-workspace .duty-table .duty-table__name { display: block; overflow: hidden; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.4;
  text-decoration: none; white-space: nowrap; text-overflow: ellipsis; }
.product-workspace .duty-table .duty-table__name:hover { color: var(--accent-strong, var(--accent)); }
.product-workspace .duty-table .duty-table__name:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.product-workspace .duty-table .duty-table__part { display: block; margin-top: 1px; overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.4;
  white-space: nowrap; text-overflow: ellipsis; }
.product-workspace .duty-table td.duty-table__code { overflow: hidden; color: var(--ink-soft); font-size: 13px; text-overflow: ellipsis; }

/* Duty per entry: the figure over its thin layer bar (the duty layer colours, ld-chip--*) */
.product-workspace .duty-table td.duty-table__duty { text-align: left; }
.product-workspace .duty-table .duty-table__amount { display: block; color: var(--ink); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.4; }
.product-workspace .duty-table .duty-table__amount--muted { color: var(--muted); font-size: 13px; font-weight: 400; }
.product-workspace .duty-table .duty-table__partial { color: var(--muted); font-size: 12px; font-weight: 400; }
.product-workspace .duty-table td.duty-table__duty .ld-mini { display: flex; width: 100%; max-width: 320px; height: 8px; margin: 6px 0 0; overflow: hidden;
  border-radius: 4px; background: var(--dt-track); gap: 0; }
.product-workspace .duty-table td.duty-table__duty .ld-mini__seg { height: 100%; min-width: 2px; border-radius: 0; }

/* Status: one coloured phrase */
.product-workspace .duty-table td.duty-table__status { overflow: hidden; text-overflow: ellipsis; }
.product-workspace .duty-table .duty-table__phrase { font-size: 13px; font-weight: 500; }
.product-workspace .duty-table .duty-table__phrase--good { color: var(--good); }
.product-workspace .duty-table .duty-table__phrase--warn { color: var(--warn); }
.product-workspace .duty-table .duty-table__phrase--muted { color: var(--muted); font-weight: 400; }

/* the one button */
.product-workspace .duty-table td.duty-table__act { text-align: right; }
.product-workspace .duty-table td.duty-table__act form { display: inline; margin: 0; }
.product-workspace .duty-table .duty-table__btn { min-height: 30px; padding: 0 12px; border-radius: 9px; box-shadow: none; font-size: 13px; font-weight: 500; white-space: nowrap; }

/* a row waiting for its HTS code: quiet grey, as the mockup's last row */
.product-workspace .duty-table > tbody > tr[data-stage-tone="waiting"] { cursor: default; }
.product-workspace .duty-table > tbody > tr[data-stage-tone="waiting"] > td,
.product-workspace .duty-table > tbody > tr[data-stage-tone="waiting"] :is(.duty-table__name, td.duty-table__code) { color: var(--muted); font-weight: 400; }
.product-workspace .duty-table > tbody > tr[data-stage-tone="waiting"]:hover > td { background: transparent; }

/* the opened review: on the row's tint, the two cards straight on it (no frame, no title bar of its own; the row is its
   title, and clicking the row again or Esc closes it) */
.product-workspace .duty-table > tbody > tr.catalog-review-row > td { padding: 4px 24px 24px; background: var(--dt-tint); border-bottom: 1px solid var(--line); }
.product-workspace .duty-table .product-inline-review { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none; }
.product-workspace .duty-table .product-inline-review > .product-review-dialog__header { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.product-workspace .duty-table .product-inline-review > .product-review-dialog__header:has(button:focus-visible) { position: static; width: auto; height: auto; margin: 0 0 8px; overflow: visible; clip: auto; }
.product-workspace .duty-table .product-inline-review .product-review-dialog__body { padding: 0; overflow: visible; max-height: none; background: transparent; }
.product-workspace .duty-table .product-inline-review .ob-wrap { padding: 0; }
.product-workspace .duty-table .live-duty--row .live-duty__cols { gap: 20px; }
.product-workspace .duty-table .live-duty--row .ld-panel { padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: none; }
.product-workspace .duty-table .live-duty--row .live-duty__pay { gap: 14px; }
.product-workspace .duty-table .live-duty--row .live-duty__amount { font-size: 40px; font-weight: 700; letter-spacing: -.02em; }
.product-workspace .duty-table .live-duty--row .live-duty__bar { height: 28px; border-radius: 8px; }
.product-workspace .duty-table .live-duty--row h3 { font-size: 16px; font-weight: 600; }

/* phone: each row a two-line card (the name and its status; the code, the duty and its bar, the button) */
@media (max-width: 640px) {
  .product-workspace .catalog-table.duty-table { display: block; width: 100%; min-width: 0; table-layout: auto; }
  .product-workspace .duty-table > thead { display: none; }
  .product-workspace .duty-table > tbody { display: block; }
  .product-workspace .duty-table > tbody > tr.duty-table__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "name name status" "code duty act";
    align-items: center; gap: 6px 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .product-workspace .duty-table > tbody > tr.duty-table__row > td { display: block; padding: 0 !important; border: 0; background: transparent; }
  .product-workspace .duty-table > tbody > tr.duty-table__row.catalog-row--expanded { background: var(--dt-tint); border-bottom-color: transparent; }
  .product-workspace .duty-table > tbody > tr.duty-table__row:hover { background: var(--dt-hover); }
  .product-workspace .duty-table td.product-identity { grid-area: name; }
  .product-workspace .duty-table td.product-identity .duty-table__part { display: none; }
  .product-workspace .duty-table td.duty-table__status { grid-area: status; justify-self: end; }
  .product-workspace .duty-table td.duty-table__code { grid-area: code; display: block !important; font-size: 12.5px; }
  .product-workspace .duty-table td.duty-table__duty { grid-area: duty; display: block !important; min-width: 0; }
  .product-workspace .duty-table td.duty-table__duty .ld-mini { width: 96px; height: 4px; margin-top: 4px; }
  .product-workspace .duty-table td.duty-table__act { grid-area: act; justify-self: end; }
  .product-workspace .duty-table td.duty-table__act:empty { display: none; }
  .product-workspace .duty-table .duty-table__btn { min-height: 36px; }
  .product-workspace .duty-table > tbody > tr.catalog-review-row { display: block; }
  .product-workspace .duty-table > tbody > tr.catalog-review-row > td { display: block; padding: 4px 10px 16px; }
  .product-workspace .duty-table > tbody > tr.catalog-group-row { display: block; }
  .product-workspace .duty-table > tbody > tr.catalog-group-row > td { display: block; }
}

/* the review's one amber line reads in dark too (its --warn-soft is not a theme token) */
.product-workspace .duty-table .ld-short__block { background: var(--warn-bg); }

/* zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz_mockup_hts.css */
/* HTS classification's table as the approved mockup draws it (Main.dc.html; products/_hts_table): Product | Part |
   HTS code and fit | Status, one quiet 14px row per product, a thin fit bar under the code (the three dots: a third, two
   thirds or full; green when full), one coloured status phrase and one small button at the right end. A row opened
   is tinted and its review sits under it as two white cards, "Codes that could fit" and "What the code rests on".
   Below 600 px each row is a two-line card. Theme tokens throughout, so the glass looks and dark mode follow. */

.hts-table {
  --hts-fit-track: color-mix(in srgb, var(--ink) 9%, transparent);
  --hts-fit-full: #2f7d4f;
  --hts-fit-part: #b7791f;
  --hts-ready: #2f7d4f;
  --hts-check: #8a5a00;
  --hts-open-tint: rgba(50, 104, 199, .06);
}
:root[data-theme="dark"] .hts-table {
  --hts-fit-full: #6fcf97;
  --hts-fit-part: #e0a84c;
  --hts-ready: #8fdcae;
  --hts-check: #f0c27a;
  --hts-open-tint: rgba(140, 180, 255, .08);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hts-table {
    --hts-fit-full: #6fcf97; --hts-fit-part: #e0a84c; --hts-ready: #8fdcae; --hts-check: #f0c27a; --hts-open-tint: rgba(140, 180, 255, .08);
  }
}

/* ---------------------------------------------------------------- the table */
.product-workspace .catalog-table.hts-table { width: 100%; min-width: 0; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-family: var(--font-sans); }
.product-workspace .hts-table-scroll { overflow-x: clip; }
.product-workspace .catalog-table.hts-table > thead > tr > th {
  padding: 12px 8px; border-bottom: 1px solid var(--line-strong); background: transparent; color: var(--muted);
  font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; text-align: left; white-space: nowrap; vertical-align: middle;
}
.product-workspace .catalog-table.hts-table > thead > tr > th.product-identity { width: 37%; }
.product-workspace .catalog-table.hts-table > thead > tr > th.hts-table__part { width: 15%; }
.product-workspace .catalog-table.hts-table > thead > tr > th[data-col="code"] { width: 23%; }
.product-workspace .catalog-table.hts-table > thead > tr > th.hts-table__status { width: 16%; }
.product-workspace .catalog-table.hts-table > thead > tr > th.hts-table__action { width: 9%; }
.product-workspace .catalog-table.hts-table > thead > tr > th.catalog-select { width: 44px; }

.product-workspace .catalog-table.hts-table > tbody > tr.hts-row { cursor: pointer; }
.product-workspace .catalog-table.hts-table > tbody > tr.hts-row > td {
  height: auto; padding: 14px 8px; border-bottom: 1px solid var(--line); background: transparent; box-shadow: none;
  color: var(--ink); font-size: 14px; line-height: 1.4; vertical-align: middle; white-space: nowrap; text-align: left;
}
/* 24px at the card's edges (the selection's box column, when Select shows it, takes the left edge) */
.product-workspace .catalog-table.hts-table > :is(thead, tbody) > tr > :is(th, td).product-identity,
.product-workspace .catalog-table.hts-table > :is(thead, tbody) > tr > :is(th, td).catalog-select:not([hidden]) { padding-left: 24px; }
.product-workspace .catalog-table.hts-table > :is(thead, tbody) > tr > :is(th, td).catalog-select:not([hidden]) + .product-identity { padding-left: 8px; }
.product-workspace .catalog-table.hts-table > :is(thead, tbody) > tr > :is(th, td):last-child { padding-right: 24px; }
/* no stage colour at the row's edge (products_stages.css): the status phrase carries it */
.product-stage .product-work-table.hts-table > tbody > tr.hts-row[data-stage-tone] > td:first-child { box-shadow: none; }
.product-workspace .catalog-table.hts-table > tbody > tr.hts-row:hover > td { background: color-mix(in srgb, var(--accent) 4%, transparent); }
.product-workspace .catalog-table.hts-table > tbody > tr.hts-row.catalog-row--expanded > td { background: var(--hts-open-tint); border-bottom-color: transparent; box-shadow: none; }

/* the product's name is the row's link; one line, the whole name on hover */
.product-workspace .hts-table .hts-row__name {
  display: block; max-width: 100%; overflow: hidden; color: var(--ink); font-size: 14px; font-weight: 400; line-height: 1.4;
  text-decoration: none; text-overflow: ellipsis; white-space: nowrap;
}
.product-workspace .hts-table .hts-row__name:hover { color: var(--accent-strong); text-decoration: none; }
.product-workspace .hts-table .hts-row__name:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.product-workspace .hts-table .catalog-row--expanded .hts-row__name { font-weight: 600; }

.product-workspace .hts-table .hts-row__part { overflow: hidden; color: var(--muted); font-family: var(--font-mono); font-size: 13px; text-overflow: ellipsis; }

/* the code, and the fit bar under it */
.product-workspace .hts-table .hts-row__code-value { display: block; overflow: hidden; color: var(--ink); font-family: var(--font-mono); font-size: 13px; text-overflow: ellipsis; }
.product-workspace .hts-table .catalog-row--expanded .hts-row__code-value { font-weight: 600; }
.product-workspace .hts-table .hts-row__code-value--none { color: var(--muted); }
.hts-fit { display: block; height: 6px; margin-top: 6px; overflow: hidden; border-radius: 3px; background: var(--hts-fit-track); }
.hts-fit__fill { display: block; height: 6px; background: var(--hts-fit-part); transition: width .35s ease, background-color .35s ease; }
.hts-fit--full .hts-fit__fill { background: var(--hts-fit-full); }
.hts-fit--none .hts-fit__fill { width: 0 !important; }

/* the status: one coloured phrase */
.hts-status { display: block; overflow: hidden; font-size: 13px; font-weight: 500; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.hts-status--ready { color: var(--hts-ready); }
.hts-status--check { color: var(--hts-check); }
.hts-status--done { color: var(--muted); font-weight: 400; }
.hts-status--busy { color: var(--muted); }
.hts-status--failed { color: var(--bad); }
.hts-status--find { color: var(--accent-strong); }

/* the one button at the right end: small and quiet */
.product-workspace .hts-table > tbody > tr > td.hts-row__action { text-align: right; }
.product-workspace .hts-table .hts-row__action form { display: inline; margin: 0; }
.product-workspace .hts-table .hts-row__button { min-height: 30px; padding: 4px 12px; border-radius: 9px; font-size: 13px; font-weight: 500; line-height: 1.2; white-space: nowrap; }
.product-workspace .hts-table .hts-row__button--review { border-color: var(--line-strong); background: transparent; color: var(--ink-soft); box-shadow: none; }
.product-workspace .hts-table .hts-row__button--review:hover { border-color: var(--accent); color: var(--accent-strong); }
.product-workspace .hts-table .catalog-row--expanded .hts-row__button--review { visibility: hidden; }

/* group lines keep their look, at the mockup's padding */
.product-workspace .catalog-table.hts-table > tbody > tr.catalog-group-row > td[colspan] { padding-left: 24px; }

/* ---------------------------------------------------------------- a row opened: its review under it, as drawn */
.product-workspace .catalog-table.hts-table > tbody > tr.catalog-review-row > td { padding: 4px 24px 24px; border-bottom: 1px solid var(--line); background: var(--hts-open-tint); }
.product-workspace .hts-table .product-inline-review { border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; overflow: visible; }
/* the review's own header (its name and Close) is for keyboards and screen readers here: the row above names it, Escape
   or the row closes it; Close shows when it has focus, and a message (saving, an error) still shows */
.product-workspace .hts-table .product-inline-review .product-review-dialog__header { position: relative; min-height: 0; padding: 0; border: 0; background: transparent; }
.product-workspace .hts-table .product-inline-review .product-review-dialog__header > div:first-child > :not(.product-review-dialog__status),
.product-workspace .hts-table .product-inline-review .product-review-dialog__links > :not(:focus) {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.product-workspace .hts-table .product-inline-review .product-review-dialog__links { display: block; position: static; }
.product-workspace .hts-table .product-inline-review .product-review-dialog__links > :focus { position: absolute; top: 0; right: 0; z-index: 2; }
.product-workspace .hts-table .product-inline-review .product-review-dialog__status:not(:empty) { margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; background: var(--glass-raised); color: var(--ink-soft); font-size: 13px; }
.product-workspace .hts-table .product-inline-review .ob-wrap { padding: 0; }
.product-workspace .hts-table .product-inline-review .product-review-dialog__body { padding: 0; }

/* the two cards: white, rounded 16px, 20px apart, the codes wider */
.product-workspace .hts-table .lhr--row { margin: 0; }
.product-workspace .hts-table .lhr--row .lhr__grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px; }
.product-workspace .hts-table .lhr--row .lhr__panel {
  min-width: 0; box-sizing: border-box; gap: 14px; padding: 20px 22px; border: 1px solid var(--line-strong); border-radius: 16px;
  background: var(--glass-raised); box-shadow: none;
}
.product-workspace .hts-table .lhr--row .lhr__panel--codes { flex: 999 1 520px; }
.product-workspace .hts-table .lhr--row .lhr__panel:not(.lhr__panel--codes) { flex: 1 1 380px; }
.product-workspace .hts-table .lhr--row .lhr__head h3 { font-size: 16px; font-weight: 600; }
.product-workspace .hts-table .lhr--row .lhr__head p { font-size: 12px; color: var(--muted); }

/* ---------------------------------------------------------------- phones: each row a two-line card */
/* (over the older card rules of products_toolbar.css, which lay a row out in four lines) */
@media (max-width: 600px) {
  .product-workspace .catalog-table.hts-table, .product-workspace .catalog-table.hts-table > tbody { display: block; width: 100%; }
  .product-workspace .catalog-table.hts-table > thead { display: none; }
  .product-workspace .catalog-table.hts-table > tbody > tr.hts-row[data-product-id] {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "name name part" "code status status";
    align-items: center; gap: 8px 12px; padding: 12px 16px; border-bottom: 1px solid var(--line);
  }
  .product-workspace .catalog-table.hts-table > tbody > tr.hts-row[data-product-id] > td,
  .product-workspace .catalog-table.hts-table > tbody > tr.hts-row[data-product-id] > td[data-col] { display: block !important; width: auto; min-width: 0; padding: 0; border: 0; background: transparent; }
  .product-workspace .catalog-table.hts-table > tbody > tr.hts-row[data-product-id] > td.catalog-select { display: none !important; }
  .product-workspace .catalog-table.hts-table > tbody > tr.hts-row.catalog-row--expanded { background: var(--hts-open-tint); border-bottom-color: transparent; }
  .product-workspace .catalog-table.hts-table > tbody > tr.hts-row[data-product-id] > td.hts-row__product { grid-area: name; }
  .product-workspace .catalog-table.hts-table > tbody > tr.hts-row[data-product-id] > td.hts-row__product > a.hts-row__name { white-space: nowrap; font-size: 14px; }
  .product-workspace .catalog-table.hts-table > tbody > tr.hts-row[data-product-id] > td.hts-row__part { grid-area: part; max-width: 38vw; font-size: 12px; text-align: right; }
  .product-workspace .catalog-table.hts-table > tbody > tr.hts-row[data-product-id] > td.hts-row__code { grid-area: code; }
  .product-workspace .catalog-table.hts-table > tbody > tr.hts-row[data-product-id] > td.hts-row__status { grid-area: status; text-align: right; }
  .product-workspace .catalog-table.hts-table > tbody > tr.hts-row[data-product-id] > td.hts-row__action { grid-area: action; }
  .product-workspace .catalog-table.hts-table > tbody > tr.hts-row[data-product-id] > td.hts-row__action:empty { display: none !important; }
  .product-workspace .hts-table .hts-row__code .hts-fit { max-width: 120px; margin-top: 5px; }
  .product-workspace .hts-table .hts-row__status .hts-status { white-space: normal; }
  .product-workspace .hts-table .hts-row__button { min-height: 36px; }
  /* a tap on the card is Review already: on a phone only Confirm keeps its button */
  .product-workspace .catalog-table.hts-table > tbody > tr.hts-row[data-product-id]:has(> td.hts-row__action > form) { grid-template-areas: "name name part" "code status action"; }
  .product-workspace .catalog-table.hts-table > tbody > tr.hts-row[data-product-id] > td.hts-row__action:has(> .hts-row__button--review) { display: none !important; }
  .product-workspace .catalog-table.hts-table > tbody > tr.catalog-review-row { display: block; }
  .product-workspace .catalog-table.hts-table > tbody > tr.catalog-review-row > td { display: block; padding: 0 12px 16px; }
  .product-workspace .catalog-table.hts-table > tbody > tr.catalog-group-row { display: block; }
  .product-workspace .catalog-table.hts-table > tbody > tr.catalog-group-row > td[colspan] { display: block; padding: 10px 16px; }
  .product-workspace .hts-table .lhr--row .lhr__panel { flex-basis: 100%; padding: 16px; }
  .product-workspace .hts-table .product-inline-review { position: static; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hts-fit__fill { transition: none; }
}

/* zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz_review_row.css */
/* The short reviews under a list row (ReviewRowHelper; Duty.dc.html and Main.dc.html): about one screen. The duty review
   keeps its colour bar and a row per charged layer, its checks in one line with only what needs the person, a few
   countries; on the right short cards (origin buttons with Other…, value and date side by side, the questions that move
   the duty). The rest is on the product's own page ("Full breakdown ›"). One column on a phone. */

/* ------------------------------------------------------------------ duty */
.live-duty--row { gap: 8px; margin: 0 0 4px; }
.live-duty--row .live-duty__cols { gap: 14px; }
.live-duty--row .ld-panel { gap: 8px; padding: 14px 18px; }
.live-duty--row .live-duty__pay { flex: 999 1 480px; }
.live-duty--row .live-duty__rests { flex: 1 1 400px; gap: 8px; }
.live-duty--row .live-duty__pay { position: static; }
.live-duty--row .live-duty__heading { gap: 3px; }
.live-duty--row .live-duty__amount { font-size: 34px; }
.live-duty__title-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.live-duty--row .live-duty__label { padding: 2px 9px; border-radius: var(--radius-pill); font-size: 11.5px; font-weight: 600; color: var(--warn); }
.live-duty--row .live-duty__label[hidden] { display: none; }
.live-duty--row .live-duty__status:not(:empty) { padding: 6px 10px; }
.live-duty--row .live-duty__bar { height: 22px; border-radius: 7px; }
.live-duty--row .ld-row { grid-template-columns: 12px minmax(0, 1fr) 52px 88px; gap: 10px; padding: 5px 4px; }
.live-duty--row .ld-row__why { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-zero { padding: 6px 4px 0; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* the checks in one line, then only what needs the person */
.ld-short { display: grid; gap: 4px; padding-top: 8px; border-top: 1px solid var(--line); }
.ld-short__counts { margin: 0; color: var(--ink-soft); font-size: 13px; }
.ld-short__done { color: var(--good); font-weight: 600; }
.ld-short__need { color: var(--warn); font-weight: 600; }
.ld-short__notes { color: var(--accent-strong, var(--accent)); font-weight: 600; text-decoration: none; }
.ld-short__notes:hover { text-decoration: underline; }
.ld-short__list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.ld-short__row { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 8px; align-items: center; min-height: 23px; font-size: 13px; }
.ld-short__row .ld-proof__mark { width: 18px; height: 18px; }
.ld-short__row .ld-proof__mark { background: var(--warn-bg); color: var(--warn); }
.ld-short__text { min-width: 0; overflow: hidden; color: var(--ink-soft); white-space: nowrap; text-overflow: ellipsis; }
.ld-short__text strong { color: var(--ink); font-weight: 600; }
.ld-short__row--check .ld-short__text { color: var(--ink); }

.live-duty--row .live-duty__compare { gap: 6px; }
.live-duty--row .ld-compare { gap: 4px; }
.live-duty--row .ld-compare__row { min-height: 31px; padding: 2px 10px; }
.live-duty--row .ld-compare__row[aria-pressed="true"] { padding: 1px 9px; }
.live-duty--row .live-duty__actions { gap: 8px; }
.live-duty--row .ld-btn { min-height: 40px; }
.ld-full { text-decoration: none; }
.live-duty__foot { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 0; color: var(--muted); font-size: 12px; }
.live-duty__foot .live-duty__action-note { flex: 0 1 auto; font-size: 12px; color: var(--ink-soft); }

/* the right column: short cards */
.live-duty--row [data-live-duty-target="cards"] { display: grid; gap: 8px; }
.live-duty--row .live-duty__rests-head { flex-wrap: nowrap; margin-bottom: 2px; }
.live-duty--row .live-duty__rests-head h3 { flex: none; }
.live-duty--row .live-duty__rests-head .fx-hint { min-width: 0; font-size: 11.5px; text-align: right; }
.ld-card--row { gap: 6px; padding: 10px; }
.ld-card--row .ld-card__head { gap: 4px 8px; }
.ld-card--row .ld-tag { padding: 2px 7px; font-size: 10.5px; }
.ld-card--row .ld-card__title { font-size: 13.5px; }
.ld-card--row .ld-question { gap: 4px; }
.ld-card--row .ld-question__text { overflow: hidden; color: var(--ink-soft); font-size: 12.5px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.ld-card--row .ld-option span { min-height: 34px; padding: 5px 10px; font-size: 12.5px; }
.ld-card--row .ld-option input:checked + span { padding: 4px 9px; }
.ld-card--row .ld-select, .ld-card--row .ld-date, .ld-card--row .ld-value__input, .ld-card--row .ld-share__input { min-height: 36px; }
.ld-card--row .ld-value > span { font-size: 15px; }
.ld-card--row .ld-value__input { font-size: 15px; max-width: none; width: 100%; }
.ld-card--row .ld-range { height: 22px; }
.ld-card--row .ld-share { gap: 8px; }
.ld-card--row .ld-share__input { width: 72px; flex: none; }
.ld-card--row .fx-unit__suffix { white-space: nowrap; }
.ld-chips--wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.ld-chips--wrap .ld-option { flex: 0 1 auto; }

.ld-origins { display: flex; flex-wrap: wrap; gap: 6px; }
.ld-origins .ld-pick { flex: 1 1 auto; max-width: 160px; }
.ld-pick { min-height: 34px; padding: 4px 10px; border: 1px solid var(--control-border, var(--line-strong)); border-radius: 10px;
  background: var(--glass-raised, var(--surface)); color: var(--ink); font: 500 12.5px var(--font-sans); text-align: left; cursor: pointer;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis; transition: border-color .2s, background-color .2s; }
.ld-pick:hover { border-color: var(--accent); }
.ld-pick[aria-pressed="true"] { border: 2px solid var(--accent); padding: 3px 9px; background: var(--glass-selected, var(--accent-soft)); }
.ld-pick--other { color: var(--accent-strong, var(--accent)); }
.ld-pick:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ld-other { padding-top: 6px; border-top: 1px solid var(--line); }
.ld-other[hidden] { display: none; }

.ld-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ld-folded { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.ld-folded__by { color: var(--ink-soft); font-weight: 600; }

@media (max-width: 640px) {
  .live-duty--row .ld-panel { padding: 14px; }
  .live-duty--row .live-duty__amount { font-size: 30px; }
  .ld-origins .ld-pick { max-width: none; flex-basis: calc(50% - 3px); }
  .ld-pick, .ld-card--row .ld-option span, .live-duty--row .ld-compare__row { min-height: 44px; }
  .ld-short__row { grid-template-columns: 20px minmax(0, 1fr); }
  .ld-short__row .ld-proof__go { grid-column: 2; }
  .ld-short__text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; }
  .live-duty--row .ld-row { grid-template-columns: 12px minmax(0, 1fr) auto auto; gap: 8px; }
  .live-duty--row .ld-row__why { white-space: normal; }
  .live-duty--row .ld-row__official { white-space: normal; }
  .live-duty--row .live-duty__rests-head { flex-wrap: wrap; }
  .live-duty--row .live-duty__rests-head .fx-hint { text-align: left; }
}
@media (max-width: 420px) {
  .ld-pair { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .ld-pick { transition: none; }
}

/* ------------------------------------------------------------------ HTS */
.lhr__check { display: flex; flex-wrap: wrap; gap: 2px 8px; margin: 0; padding: 8px 12px; border-radius: 10px; background: var(--warn-bg); color: var(--ink); font-size: 13px; line-height: 1.45; }
.lhr__check strong { color: var(--warn); }
.lhr__foot { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 0; color: var(--muted); font-size: 12px; }
.lhr__full { text-decoration: none; }

/* the figure stays beside the heading; its yearly line wraps under it */
@media (min-width: 641px) {
  .live-duty--row .live-duty__head { flex-wrap: nowrap; align-items: flex-start; }
  .live-duty--row .live-duty__heading { min-width: 0; }
  .live-duty--row .live-duty__figure { flex: 0 1 auto; }
}
.live-duty--row .live-duty__year { line-height: 1.35; }
.live-duty--row .ld-row__official { white-space: nowrap; }
/* a code's plain name on one line (the schedule wording on hover); its "would fit if…" keeps two */
.lhr--row .lhr__code-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lhr--row .lhr__why { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
