/* Product theme, design «Segnale» (October 2026, chosen over design D «Sportello»): white work surfaces, one teal (ottanio)
   for the main action and the current place, a full height sidebar in a dark contrast colour of its own. Loaded right
   after tokens.css, which stays the immutable July source of the grammar (spacing, type ratio, border width). This
   file is the only product stylesheet allowed to hold colour literals. Every colour role is 6 digit hex, because the
   contrast tests read hex. It also overrides the shape, shadow and motion values of tokens.css: the three radii, the
   three shadows and the one 120ms fade. The typefaces are declared in fonts.css, never here.
   The sidebar is graphite (#1b2027); the petrol alternative still under review is #143047 with the same fg roles. */
:root {
  --bg: #f7f7f9;
  --surface-1: #ffffff;
  --surface-2: #f1f1f3;
  --surface: var(--surface-1);
  --ink: #17191c;
  --ink-2: #45484e;
  --ink-3: #60646c;
  --line: #e2e3e7;
  --line-strong: #c9cbd1;
  --accent: #0b6e73;
  --accent-hover: #08575b;
  --on-accent: #ffffff;
  --accent-subtle-bg: #e3f2f2;
  --accent-border: #9ccfd0;
  --accent-text: #0a6266;
  --ok: #2f6b48;
  --warn: #8a4b12;
  --err: #a1262b;
  --radius-s: 4px;
  --radius: 8px;
  --radius-l: 12px;
  --shadow-1: 0 1px 2px rgb(23 25 28 / .05), 0 2px 8px rgb(23 25 28 / .04);
  --shadow-2: 0 2px 4px rgb(23 25 28 / .05), 0 10px 24px rgb(23 25 28 / .08);
  --shadow-3: 0 4px 8px rgb(23 25 28 / .06), 0 20px 48px rgb(23 25 28 / .1);
  --dur-micro: 120ms;
  --ease-enter: cubic-bezier(0, 0, 0, 1);
  --ph-sidebar: #1b2027;
  --ph-sidebar-fg: #e9eaee;
  --ph-sidebar-muted: #a3a8b3;
  --ph-sidebar-hover: #262c35;
  --ph-sidebar-active: #0b6e73;
  --ph-sidebar-border: #343a44;
  --ph-sidebar-rail: #7fd3d6;
  --ph-sidebar-current: #ffffff;
  --ph-info: #4e5560;
  --ph-ok-bg: #eaf2ec;
  --ph-ok-line: #bfd6c6;
  --ph-info-bg: #f1f1f3;
  --ph-info-line: #d5d7dc;
  --ph-warn-bg: #fbf0e4;
  --ph-warn-line: #ebcdb0;
  --ph-err-bg: #fbeaea;
  --ph-err-line: #eac1c3;
  --ph-tonal: #e3f2f2;
  --ph-tonal-hover: #cfe8e8;
  --ph-tonal-ink: #064346;
  /* The ochre is a mark and a ground only, never text: it measures 4.3:1 on its own ground. */
  --ph-attention: #946732;
  --ph-attention-bg: #f8eee5;
  --ph-brand: #0b6e73;
  /* The assistant's colour (task 128, study-round2.md): a violet for the conversational way in, as strong as the teal of
     the page's work action and never mistaken for it. White on it is 7.49:1, 9.84:1 hovered and 11.71:1 pressed; the
     violet against the page tone is 7.00:1, and the focus ring is the ink, 16.46:1 on the page tone. */
  --ph-ai: #5b3db8;
  --ph-ai-hover: #493094;
  --ph-ai-active: #3d287c;
  --ph-on-ai: #ffffff;
  --ph-ai-focus: #17191c;
  --ph-sidebar-w: 16rem;
  --ph-topbar-h: 3.375rem;
  --color-border: var(--line);
  --color-error: var(--err);
  --color-surface-alt: var(--surface-2);
  --color-warning-soft: var(--ph-warn-bg);
}

/* Named product variables, spec 4.9. A task that needs another value adds it here by name. */
:root {
  --ph-space-05: 4px;
  --ph-space-15: 12px;
  --ph-text-sm: 0.8125rem;
  --ph-text-md: 0.875rem;
  --ph-text-lg: 1.125rem;
  --ph-control-h: 2.5rem;
  --ph-control-h-touch: 2.75rem;
  --ph-control-h-kiosk: 3.5rem;
  --ph-control-h-compact: 2rem;
  --ph-measure: 72ch;
  --ph-page-read: 64rem;
  --ph-page-form: 48rem;
  --ph-disc: 2rem;
  /* Added by task 043 (spec 3.5, 3.7, 5.4, 5.6): the no shell columns, the split aside, the section index of long
     forms and the content widths of inputs. */
  --ph-column-public: 28rem;
  --ph-column-public-wide: 40rem;
  --ph-aside: 20rem;
  --ph-section-index: 12rem;
  --ph-input-short: 12rem;
  --ph-input-medium: 24rem;
  --ph-input-date: 11rem;
}
