/* GENERATED by scripts/sync-design.mjs from design/. Do not edit — edit design/. */
/* Stratum design system — Component primitives
   ------------------------------------------------------------------
   Tokenised building blocks: dropdowns, accordions, modals, drawers,
   toasts, sliders, and the icon set. Everything here is built ONLY from
   the semantic tokens in tokens/colors.css, so both themes hold, and
   everything degrades to working HTML without JavaScript:

     .select    — a styled native <select>. No listbox re-implementation.
     .acc       — <details>/<summary>. Open/close is the browser's.
     .modal     — <dialog>. Needs one line of JS to open; fine unopened.
     .drawer    — <dialog> variant sliding from the right.
     .toast     — a status strip; JS adds .is-live to show it.
     .slider    — input[type=range], restyled.
     --ico-*    — the icon set, as mask-image custom properties in
                  currentColor. Usage:
                    .my-el::before { content:""; width:14px; height:14px;
                      background: currentColor;
                      mask: var(--ico-doc) center/contain no-repeat; }

   The public site is static HTML: native elements are the point, not a
   limitation. A <select> is a dropdown, <details> is an accordion and
   <dialog> is a modal — all keyboard-correct for free.
   ------------------------------------------------------------------ */

/* ── Icons ─────────────────────────────────────────────────────────── */
:root {
  --ico-search:   url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.4" stroke-linecap="round"><circle cx="11" cy="11" r="7"/><path d="m21 21-4.3-4.3"/></svg>');
  --ico-doc:      url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><path d="M14 2v6h6"/></svg>');
  --ico-shield:   url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/></svg>');
  --ico-rung:     url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.4" stroke-linecap="round"><path d="M8 3v18M16 3v18M8 7h8M8 12h8M8 17h8"/></svg>');
  --ico-flask:    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><path d="M9 3h6M10 3v5.2L5.6 17a3 3 0 0 0 2.7 4.3h7.4a3 3 0 0 0 2.7-4.3L14 8.2V3"/><path d="M7.3 14h9.4"/></svg>');
  --ico-chevron:  url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>');
  --ico-x:        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.6" stroke-linecap="round"><path d="M18 6 6 18M6 6l12 12"/></svg>');
  --ico-info:     url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.4" stroke-linecap="round"><circle cx="12" cy="12" r="9"/><path d="M12 11v5M12 8h.01"/></svg>');
  --ico-book:     url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><path d="M4 19.5A2.5 2.5 0 0 1 6.5 17H20V2H6.5A2.5 2.5 0 0 0 4 4.5z"/></svg>');
  --ico-clock:    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 3"/></svg>');
  --ico-syringe:  url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><path d="M2 12h4"/><rect x="6" y="8" width="11" height="8" rx="1.5"/><path d="M9 8v8M17 12h3"/><path d="M20 9v6"/></svg>');
  --ico-vials:    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><rect x="4" y="7" width="6" height="14" rx="2"/><rect x="14" y="7" width="6" height="14" rx="2"/><path d="M4 13h6M14 13h6M5 3h4M15 3h4M7 3v4M17 3v4"/></svg>');
  --ico-scale:    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><path d="M4 19v-6M9 19V9"/><path d="M13 14h8m-3.5-3.5L21 14l-3.5 3.5"/></svg>');
}
.ico { display: inline-block; width: 14px; height: 14px; flex: none; vertical-align: -2px;
  background: currentColor; mask: var(--ico) center / contain no-repeat;
  -webkit-mask: var(--ico) center / contain no-repeat; }

/* ── Dropdown (native select) ──────────────────────────────────────── */
.select { position: relative; display: inline-flex; align-items: center; }
.select select { appearance: none; -webkit-appearance: none; padding: 8px 30px 8px 12px;
  font: inherit; font-size: 13.5px; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-pill, 999px); cursor: pointer;
  max-width: 100%; }
.select select:hover { border-color: var(--border-strong); }
.select select:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; border-color: var(--accent); }
.select::after { content: ""; position: absolute; right: 11px; width: 13px; height: 13px;
  pointer-events: none; background: var(--text-muted);
  mask: var(--ico-chevron) center / contain no-repeat;
  -webkit-mask: var(--ico-chevron) center / contain no-repeat; }
/* A select that is narrowing something carries its subject as a leading label. */
.select .select-label { position: absolute; left: 12px; font-size: 10px; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase; color: var(--text-subtle); top: -7px;
  background: var(--bg); padding: 0 5px; border-radius: 4px; }

/* ── Accordion (native details) ────────────────────────────────────── */
.acc { border: 1px solid var(--border); border-radius: var(--radius-md, 12px);
  background: var(--surface); margin: 10px 0; }
.acc > summary { display: flex; align-items: center; gap: 10px; padding: 13px 16px;
  cursor: pointer; list-style: none; font-weight: 650; font-size: 14.5px;
  border-radius: var(--radius-md, 12px); }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary::after { content: ""; margin-left: auto; width: 14px; height: 14px; flex: none;
  background: var(--text-muted); transition: transform .15s;
  mask: var(--ico-chevron) center / contain no-repeat;
  -webkit-mask: var(--ico-chevron) center / contain no-repeat; }
.acc[open] > summary::after { transform: rotate(180deg); }
.acc[open] > summary { border-bottom: 1px solid var(--border-subtle); border-radius: var(--radius-md, 12px) var(--radius-md, 12px) 0 0; }
.acc > summary:hover { background: var(--surface-hover); }
.acc > summary:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.acc-body { padding: 14px 16px; }
.acc .acc-hint { margin-left: 6px; font-size: 12.5px; font-weight: 400; color: var(--text-muted); }

/* ── Modal and drawer (native dialog) ──────────────────────────────── */
.modal, .drawer { border: 1px solid var(--border); background: var(--surface); color: var(--text);
  padding: 0; box-shadow: var(--shadow-xl); }
.modal { border-radius: var(--radius-lg, 16px); max-width: min(560px, calc(100vw - 32px)); }
.modal::backdrop, .drawer::backdrop { background: var(--scrim); }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 15px 18px;
  border-bottom: 1px solid var(--border-subtle); }
.modal-head h2 { margin: 0; font-size: 16px; }
.modal-body { padding: 16px 18px; }
.modal-close { margin-left: auto; width: 30px; height: 30px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 50%; background: var(--surface);
  color: var(--text-muted); cursor: pointer; }
.modal-close::before { content: ""; width: 13px; height: 13px; background: currentColor;
  mask: var(--ico-x) center / contain no-repeat; -webkit-mask: var(--ico-x) center / contain no-repeat; }
.modal-close:hover { color: var(--text); border-color: var(--border-strong); }
.drawer { border-radius: var(--radius-lg, 16px) 0 0 var(--radius-lg, 16px);
  margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(420px, 92vw); }

/* ── Toast ─────────────────────────────────────────────────────────── */
.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 12px);
  display: flex; align-items: center; gap: 9px; padding: 11px 16px;
  background: var(--text); color: var(--bg); border-radius: var(--radius-pill, 999px);
  font-size: 13.5px; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none;
  transition: opacity .18s, transform .18s; z-index: 60; }
.toast.is-live { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }

/* ── Slider (native range) ─────────────────────────────────────────── */
.slider { appearance: none; -webkit-appearance: none; width: 100%; height: 22px; background: none; }
.slider::-webkit-slider-runnable-track { height: 6px; border-radius: var(--radius-pill, 999px);
  background: var(--surface-sunken); border: 1px solid var(--border-subtle); }
.slider::-moz-range-track { height: 6px; border-radius: 999px; background: var(--surface-sunken);
  border: 1px solid var(--border-subtle); }
.slider::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 18px; height: 18px;
  margin-top: -7px; border-radius: 50%; background: var(--accent); border: 2px solid var(--on-accent);
  box-shadow: var(--shadow-sm); cursor: pointer; }
.slider::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--accent);
  border: 2px solid var(--on-accent); cursor: pointer; }
.slider:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 4px; }
