/* Hexbook design tokens (v6.5 System) — the ONE file where literal colours, sizes and durations live.
 * Imported first (src/main.tsx). Documentation: docs/design-system.md · live gallery: #design-system.
 *
 *   1. BASE      raw ramps and scales. Never used directly by components (exceptions: fixed swatches such
 *                as the theme preview cards and print, which must not follow the theme).
 *   2. SEMANTIC  what components use: --hb-ink, --hb-surface, --hb-text-md, --hb-radius-md, --hb-z-modal…
 *                Light values here; the dark theme re-points the SAME names (section 3). The names that
 *                existed before v6.5 are unchanged.
 *   3. DARK      one list of overrides, applied by the OS preference or by <html data-theme="dark">.
 *   4. DATA      colours that carry meaning in a figure and are not UI chrome: CPK element colours, tag
 *                colours, gel lanes, the logo. They never go through the UI ramps.
 *
 * JS reads a few tokens as plain hex (--hb-canvas, --hb-primary, --el-*): keep those resolving to a hex
 * colour (a var() of a ramp step is fine, color-mix() is not).
 *
 * Breakpoints cannot be custom properties. The layout has exactly three, owned by src/app/layout.ts and
 * applied as classes on .hb-app (lay-mobile / lay-narrow / lay-medium / lay-wide):
 *     760px   mobile ≤ 760            (the only one also written as @media (max-width: 760px))
 *     1100px  sidebar becomes a rail  (.lay-narrow)
 *     1360px  Analysis panel docks    (.lay-wide)
 * Component-level tweaks use ONE compact threshold, 560px (@media or @container), nothing else. */

/* ───────────────────────────── 1. BASE ───────────────────────────── */
:root {
  /* graphite ramp, biased to cobalt (light surfaces → dark surfaces) */
  --hb-white: #ffffff;
  --hb-black: #000000;
  --hb-gray-25: #fbfcfe;
  --hb-gray-50: #f4f6f9;
  --hb-gray-75: #f2f4f8;
  --hb-gray-100: #e8ecf2;
  --hb-gray-150: #e3e7ee;
  --hb-gray-200: #cbd2de;
  --hb-gray-300: #b9c4d8;
  --hb-gray-400: #8b95a8;
  --hb-gray-500: #5c6677;
  --hb-gray-600: #3a4252;
  --hb-gray-700: #2d3547;
  --hb-gray-750: #1e2432;
  --hb-gray-800: #1a2030;
  --hb-gray-850: #161b27;
  --hb-gray-900: #10141c;
  --hb-gray-925: #0f131b;
  --hb-gray-950: #0d1119;
  --hb-gray-975: #0c1017;
  --hb-gray-1000: #0a0d13;
  /* Cobalto — the single brand hue */
  --hb-blue-300: #8eabff;
  --hb-blue-350: #779bff;
  --hb-blue-400: #5f88ff;
  --hb-blue-500: #4c74ee;
  --hb-blue-600: #2f5bea;
  --hb-blue-700: #244bd0;
  --hb-blue-800: #1c3dad;
  --hb-blue-900: #2c3954;
  --hb-blue-950: #08101f;
  /* Fiamma (Bunsen amber), green, red: signals only */
  --hb-amber-400: #ffb23e;
  --hb-amber-700: #b35f00;
  --hb-amber-950: #1a1205;
  --hb-green-400: #34d399;
  --hb-green-700: #0c7f57;
  --hb-red-400: #ff5d73;
  --hb-red-600: #d12e4a;

  /* type scale — UI: six sizes, nothing below 12px */
  --hb-text-xs: 12px; /* caption: eyebrows, badges, kbd, table heads (era 11: sotto 12 px non si legge) */
  --hb-text-sm: 12px; /* secondary: hints, meta, dense controls */
  --hb-text-md: 13px; /* default control and list text */
  --hb-text-lg: 14px; /* body of the app, menu items, dialog text */
  --hb-text-xl: 16px; /* emphasised values, section titles, inputs on phones */
  --hb-text-2xl: 20px; /* panel and dialog headings */
  /* display: page titles and big numbers */
  --hb-text-3xl: 24px;
  --hb-text-4xl: 30px;
  --hb-text-display: 42px;
  /* the document's own typographic scale (what the user writes; printed and exported as is) */
  --hb-doc-title: var(--hb-text-display);
  --hb-doc-title-compact: 32px;
  --hb-doc-h1: 30px;
  --hb-doc-h2: 22px;
  --hb-doc-h3: 18px;
  --hb-doc-text: 16px;
  --hb-doc-text-lg: 17px; /* quotes, serif body */
  --hb-doc-text-sm: 15px; /* captions, table cells, exercise prompts */
  --hb-present-cover: 44px;
  --hb-present-lead: 40px;
  --hb-present-heading: 34px;
  --hb-weight-regular: 400;
  --hb-weight-medium: 500;
  --hb-weight-semibold: 600;
  --hb-weight-bold: 700;
  --hb-leading-tight: 1.2;
  --hb-leading-normal: 1.45;
  --hb-leading-doc: 1.7;

  /* space scale, 4px based */
  --hb-space-1: 4px;
  --hb-space-2: 8px;
  --hb-space-3: 12px;
  --hb-space-4: 16px;
  --hb-space-5: 20px;
  --hb-space-6: 24px;
  --hb-space-7: 32px;
  --hb-space-8: 40px;

  /* radius scale */
  --hb-radius-sm: 4px; /* marks inside a control: checkboxes, kbd, swatches, badges */
  --hb-radius-md: 8px; /* controls and rows: buttons, inputs, menu items, chips */
  --hb-radius-lg: 12px; /* containers: cards, popovers, menus, dialogs, panels */
  --hb-radius-pill: 999px;

  /* stacking scale — one ladder for the whole page (floating layers included, see ui-overlays.css).
     Inside a component use 1–3 (--hb-z-raised…) in its own stacking context, never a page-level number. */
  --hb-z-below: -1;
  --hb-z-raised: 1;
  --hb-z-raised-2: 2;
  --hb-z-raised-3: 3;
  --hb-z-float: 4; /* on a figure: passive overlays (zoom cluster, hints) */
  --hb-z-float-2: 5; /* on a figure: bubbles and badges anchored to a block */
  --hb-z-float-3: 6; /* on a figure: editors and tools that take input, the block handle */
  --hb-z-sticky: 10; /* sticky bars, the active sheet with its toolbar, the selection bar */
  --hb-z-drawer: 20; /* overlay sidebar and Analysis/Comments drawers, their scrims */
  --hb-z-dropdown: 30; /* in-page dropdowns: slash menu, mention list, selection bar */
  --hb-z-overlay: 40; /* full-window layers: drop zone, history, presentation */
  --hb-z-modal: 50; /* floating layers: dialogs, popovers, menus, tooltips */
  /* document column: side padding, and how wide a figure may get (the 760px text column + 40px a side) */
  --hb-doc-pad: clamp(16px, 6vw, 80px);
  --hb-figure-max: 840px;
  --hb-z-toast: 60; /* notifications: above dialogs, never under a drawer */
  --hb-z-max: 100; /* crash screen */

  /* motion */
  --hb-dur-fast: 120ms; /* hover, press, small state changes */
  --hb-dur-base: 180ms; /* popovers, drawers, toasts */
  --hb-dur-slow: 350ms; /* large surfaces, emphasis */
  --hb-ease: ease;
  --hb-ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);

  --hb-font:
    "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    sans-serif;
  --hb-mono:
    "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

/* ─────────────────────────── 2. SEMANTIC (light) ─────────────────────────── */
:root {
  --hb-bg: var(--hb-gray-50);
  --hb-surface: var(--hb-white);
  --hb-surface-2: var(--hb-gray-75);
  --hb-surface-3: var(--hb-gray-100);
  --hb-elev: var(--hb-white);
  --hb-line: var(--hb-gray-150);
  --hb-line-strong: var(--hb-gray-200);
  /* bordo di campi, select, caselle e interruttori: 3:1 sulla superficie (WCAG 1.4.11) */
  --hb-line-control: var(--hb-gray-400);
  --hb-ink: var(--hb-gray-900);
  --hb-ink-2: var(--hb-gray-600);
  --hb-muted: var(--hb-gray-500);
  --hb-primary: var(--hb-blue-600);
  --hb-primary-hover: var(--hb-blue-700);
  --hb-primary-active: var(--hb-blue-800);
  --hb-on-primary: var(--hb-white);
  --hb-accent-ink: var(--hb-blue-700); /* 5,4:1 anche sulla tinta della riga attiva */
  --hb-flame: var(--hb-amber-700);
  --hb-flame-fill: var(--hb-amber-400);
  --hb-canvas: var(--hb-gray-25);
  --hb-grid: var(--hb-gray-300);

  /* status: colour (text, icons, borders) · on-colour (text on the solid colour) · subtle (tinted background) */
  --hb-success: var(--hb-green-700);
  --hb-warning: var(--hb-amber-700);
  --hb-danger: var(--hb-red-600);
  --hb-info: var(--hb-primary);
  --hb-on-success: var(--hb-white);
  --hb-on-warning: var(
    --hb-amber-950
  ); /* on the amber FILL (--hb-flame-fill), not on --hb-warning */
  --hb-on-danger: var(--hb-white);
  --hb-on-info: var(--hb-on-primary);
  /* inchiostro su tinta: il colore di stato scurito verso l'inchiostro, 4,5:1 sul proprio fondo tinto in entrambi i temi */
  --hb-success-ink: color-mix(in srgb, var(--hb-success) 80%, var(--hb-ink));
  --hb-warning-ink: color-mix(in srgb, var(--hb-flame) 80%, var(--hb-ink));
  --hb-danger-ink: color-mix(in srgb, var(--hb-danger) 80%, var(--hb-ink));
  --hb-success-subtle: color-mix(
    in srgb,
    var(--hb-success) 12%,
    var(--hb-surface)
  );
  --hb-warning-subtle: color-mix(
    in srgb,
    var(--hb-flame-fill) 18%,
    var(--hb-surface)
  );
  --hb-danger-subtle: color-mix(
    in srgb,
    var(--hb-danger) 10%,
    var(--hb-surface)
  );
  --hb-info-subtle: color-mix(
    in srgb,
    var(--hb-primary) 10%,
    var(--hb-surface)
  );
  /* text on a saturated data colour (avatars, tag dots, solid badges): white in both themes */
  --hb-on-color: var(--hb-white);

  --hb-sel: rgba(47, 91, 234, 0.14);
  --hb-hl-amber: rgba(255, 178, 62, 0.42);
  --hb-hl-cobalt: rgba(79, 124, 255, 0.24);
  --hb-hl-mint: rgba(32, 201, 140, 0.28);
  --hb-hl-rose: rgba(255, 93, 115, 0.24);
  --hb-scrim: color-mix(in srgb, var(--hb-bg) 55%, rgba(0, 0, 0, 0.35));

  /* elevation: sm = raised control or selected segment · md = popover, floating card · lg = dialog, drawer */
  --hb-shadow-color: 16, 20, 28;
  --hb-shadow-sm: 0 1px 2px rgba(var(--hb-shadow-color), 0.08);
  --hb-shadow-md:
    0 1px 2px rgba(var(--hb-shadow-color), 0.06),
    0 8px 24px rgba(var(--hb-shadow-color), 0.08);
  --hb-shadow-lg:
    0 2px 6px rgba(var(--hb-shadow-color), 0.08),
    0 20px 48px rgba(var(--hb-shadow-color), 0.16);
  --hb-shadow: var(--hb-shadow-md); /* name kept from before v6.5 */
  /* the hairline + shadow of every floating surface */
  --hb-float: 0 0 0 1px var(--hb-line-strong), var(--hb-shadow-lg);
  --hb-focus-ring: 0 0 0 3px
    color-mix(in srgb, var(--hb-primary) 22%, transparent);
}

/* ───────────────────────────── 3. DARK ─────────────────────────────
   The same list twice because CSS has no way to share a block between a media query and an attribute
   selector (light-dark() would do it, but JS reads --hb-canvas & co. as hex). Keep the two in sync. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --hb-bg: var(--hb-gray-1000);
    --hb-surface: var(--hb-gray-925);
    --hb-surface-2: var(--hb-gray-975);
    --hb-surface-3: var(--hb-gray-800);
    --hb-elev: var(--hb-gray-850);
    --hb-line: var(--hb-gray-750);
    --hb-line-strong: var(--hb-gray-700);
    --hb-line-control: var(--hb-gray-500);
    --hb-ink: var(--hb-gray-100);
    --hb-ink-2: var(--hb-gray-300);
    --hb-muted: var(--hb-gray-400);
    --hb-primary: var(--hb-blue-400);
    --hb-primary-hover: var(--hb-blue-350);
    --hb-primary-active: var(--hb-blue-500);
    --hb-on-primary: var(--hb-blue-950);
    --hb-on-success: var(--hb-blue-950);
    --hb-on-danger: var(--hb-blue-950);
    --hb-accent-ink: var(--hb-blue-300);
    --hb-flame: var(--hb-amber-400);
    --hb-success: var(--hb-green-400);
    --hb-warning: var(--hb-amber-400);
    --hb-danger: var(--hb-red-400);
    --hb-canvas: var(--hb-gray-950);
    --hb-grid: var(--hb-blue-900);
    --hb-sel: rgba(95, 136, 255, 0.2);
    --hb-hl-amber: rgba(255, 178, 62, 0.3);
    --hb-hl-cobalt: rgba(95, 136, 255, 0.3);
    --hb-hl-mint: rgba(52, 211, 153, 0.26);
    --hb-hl-rose: rgba(255, 93, 115, 0.28);
    --hb-shadow-color: 0, 0, 0;
    --hb-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --hb-shadow-md:
      0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
    --hb-shadow-lg:
      0 2px 6px rgba(0, 0, 0, 0.5), 0 24px 56px rgba(0, 0, 0, 0.55);
    --el-c: #e8ecf3;
    --el-n: #86a8ff;
    --el-o: #ff7486;
    --el-s: #f5c84c;
    --el-p: #ffa557;
    --el-x: #4fd6a0;
    --el-br: #e8956a;
    --el-i: #bb98ff;
    --el-b: #ff9ec7;
    --el-si: #b9c3d3;
    --el-se: #f0a060;
    --el-m1: #b79cff;
    --el-m2: #a9b6cc;
    --el-cu: #f2a072;
    --hb-tag-blue: #6c9cff;
    --hb-tag-teal: #35c7c2;
    --hb-tag-green: #52c47a;
    --hb-tag-amber: #e8b53a;
    --hb-tag-orange: #f2914a;
    --hb-tag-red: #f2696c;
    --hb-tag-pink: #ec6fb3;
    --hb-tag-violet: #a985f0;
    --hb-tag-gray: #a0a7b4;
    --hb-logo-ring: var(--hb-blue-400);
    --hb-logo-core: var(--hb-white);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --hb-bg: var(--hb-gray-1000);
  --hb-surface: var(--hb-gray-925);
  --hb-surface-2: var(--hb-gray-975);
  --hb-surface-3: var(--hb-gray-800);
  --hb-elev: var(--hb-gray-850);
  --hb-line: var(--hb-gray-750);
  --hb-line-strong: var(--hb-gray-700);
  --hb-line-control: var(--hb-gray-500);
  --hb-ink: var(--hb-gray-100);
  --hb-ink-2: var(--hb-gray-300);
  --hb-muted: var(--hb-gray-400);
  --hb-primary: var(--hb-blue-400);
  --hb-primary-hover: var(--hb-blue-350);
  --hb-primary-active: var(--hb-blue-500);
  --hb-on-primary: var(--hb-blue-950);
  --hb-on-success: var(--hb-blue-950);
  --hb-on-danger: var(--hb-blue-950);
  --hb-accent-ink: var(--hb-blue-300);
  --hb-flame: var(--hb-amber-400);
  --hb-success: var(--hb-green-400);
  --hb-warning: var(--hb-amber-400);
  --hb-danger: var(--hb-red-400);
  --hb-canvas: var(--hb-gray-950);
  --hb-grid: var(--hb-blue-900);
  --hb-sel: rgba(95, 136, 255, 0.2);
  --hb-hl-amber: rgba(255, 178, 62, 0.3);
  --hb-hl-cobalt: rgba(95, 136, 255, 0.3);
  --hb-hl-mint: rgba(52, 211, 153, 0.26);
  --hb-hl-rose: rgba(255, 93, 115, 0.28);
  --hb-shadow-color: 0, 0, 0;
  --hb-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --hb-shadow-md: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  --hb-shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.5), 0 24px 56px rgba(0, 0, 0, 0.55);
  --el-c: #e8ecf3;
  --el-n: #86a8ff;
  --el-o: #ff7486;
  --el-s: #f5c84c;
  --el-p: #ffa557;
  --el-x: #4fd6a0;
  --el-br: #e8956a;
  --el-i: #bb98ff;
  --el-b: #ff9ec7;
  --el-si: #b9c3d3;
  --el-se: #f0a060;
  --el-m1: #b79cff;
  --el-m2: #a9b6cc;
  --el-cu: #f2a072;
  --hb-tag-blue: #6c9cff;
  --hb-tag-teal: #35c7c2;
  --hb-tag-green: #52c47a;
  --hb-tag-amber: #e8b53a;
  --hb-tag-orange: #f2914a;
  --hb-tag-red: #f2696c;
  --hb-tag-pink: #ec6fb3;
  --hb-tag-violet: #a985f0;
  --hb-tag-gray: #a0a7b4;
  --hb-logo-ring: var(--hb-blue-400);
  --hb-logo-core: var(--hb-white);
  color-scheme: dark;
}

/* ───────────────────────────── 4. DATA ─────────────────────────────
   Colours that encode something. Not part of the UI ramps; change them only for legibility. */
:root {
  /* CPK-like element colours, tuned for contrast on --hb-canvas (dark values in section 3) */
  --el-c: #10141c;
  --el-n: #2346d6;
  --el-o: #d0213b;
  --el-s: #8c6a00;
  --el-p: #c2570c;
  --el-x: #0e8458;
  --el-br: #a4471c;
  --el-i: #7a3fe0;
  --el-b: #c02679;
  --el-si: #4b5563;
  --el-se: #a1561a;
  --el-m1: #6d3fc4;
  --el-m2: #4f5f7a;
  --el-cu: #a4521f;
  /* document tags (the user picks one of nine) */
  --hb-tag-blue: #3b74e8;
  --hb-tag-teal: #10a2a0;
  --hb-tag-green: #2f9e55;
  --hb-tag-amber: #c9930a;
  --hb-tag-orange: #e0701b;
  --hb-tag-red: #dc4549;
  --hb-tag-pink: #d1438f;
  --hb-tag-violet: #8455d6;
  --hb-tag-gray: #7d8492;
  /* agarose gel: a dark photograph in both themes */
  --hb-gel-bg: #1b2130;
  --hb-gel-well: var(--hb-gray-950);
  --hb-gel-band: #ff9fd0;
  --hb-gel-ladder: var(--hb-gray-300);
  --hb-gel-picked: #ffe066;
  /* logo */
  --hb-logo-ring: var(--hb-blue-600);
  --hb-logo-core: var(--hb-gray-900);
}

/* Font dell'app serviti dal nostro dominio (public/fonts, licenza OFL): nessuna richiesta a terzi all'apertura
 * della pagina. File e intervalli unicode vengono dai pacchetti @fontsource-variable; il nome della famiglia è
 * quello che usano i token (tokens.css). */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/geist-latin-ext-wght-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/geist-latin-wght-normal.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;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/geist-mono-latin-ext-wght-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/geist-mono-latin-wght-normal.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;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/fonts/source-serif-4-greek-wght-normal.woff2") format("woff2");
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin-ext-wght-normal.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;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin-wght-normal.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;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("/fonts/source-serif-4-greek-wght-italic.woff2") format("woff2");
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin-ext-wght-italic.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;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("/fonts/source-serif-4-latin-wght-italic.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;
}

/* Generato da scripts/capture-site.mjs: le sole regole del foglio di stile dell'app che servono alle catture. */
:root { --hb-white: #ffffff; --hb-black: #000000; --hb-gray-25: #fbfcfe; --hb-gray-50: #f4f6f9; --hb-gray-75: #f2f4f8; --hb-gray-100: #e8ecf2; --hb-gray-150: #e3e7ee; --hb-gray-200: #cbd2de; --hb-gray-300: #b9c4d8; --hb-gray-400: #8b95a8; --hb-gray-500: #5c6677; --hb-gray-600: #3a4252; --hb-gray-700: #2d3547; --hb-gray-750: #1e2432; --hb-gray-800: #1a2030; --hb-gray-850: #161b27; --hb-gray-900: #10141c; --hb-gray-925: #0f131b; --hb-gray-950: #0d1119; --hb-gray-975: #0c1017; --hb-gray-1000: #0a0d13; --hb-blue-300: #8eabff; --hb-blue-350: #779bff; --hb-blue-400: #5f88ff; --hb-blue-500: #4c74ee; --hb-blue-600: #2f5bea; --hb-blue-700: #244bd0; --hb-blue-800: #1c3dad; --hb-blue-900: #2c3954; --hb-blue-950: #08101f; --hb-amber-400: #ffb23e; --hb-amber-700: #b35f00; --hb-amber-950: #1a1205; --hb-green-400: #34d399; --hb-green-700: #0c7f57; --hb-red-400: #ff5d73; --hb-red-600: #d12e4a; --hb-text-xs: 12px; --hb-text-sm: 12px; --hb-text-md: 13px; --hb-text-lg: 14px; --hb-text-xl: 16px; --hb-text-2xl: 20px; --hb-text-3xl: 24px; --hb-text-4xl: 30px; --hb-text-display: 42px; --hb-doc-title: var(--hb-text-display); --hb-doc-title-compact: 32px; --hb-doc-h1: 30px; --hb-doc-h2: 22px; --hb-doc-h3: 18px; --hb-doc-text: 16px; --hb-doc-text-lg: 17px; --hb-doc-text-sm: 15px; --hb-present-cover: 44px; --hb-present-lead: 40px; --hb-present-heading: 34px; --hb-weight-regular: 400; --hb-weight-medium: 500; --hb-weight-semibold: 600; --hb-weight-bold: 700; --hb-leading-tight: 1.2; --hb-leading-normal: 1.45; --hb-leading-doc: 1.7; --hb-space-1: 4px; --hb-space-2: 8px; --hb-space-3: 12px; --hb-space-4: 16px; --hb-space-5: 20px; --hb-space-6: 24px; --hb-space-7: 32px; --hb-space-8: 40px; --hb-radius-sm: 4px; --hb-radius-md: 8px; --hb-radius-lg: 12px; --hb-radius-pill: 999px; --hb-z-below: -1; --hb-z-raised: 1; --hb-z-raised-2: 2; --hb-z-raised-3: 3; --hb-z-float: 4; --hb-z-float-2: 5; --hb-z-float-3: 6; --hb-z-sticky: 10; --hb-z-drawer: 20; --hb-z-dropdown: 30; --hb-z-overlay: 40; --hb-z-modal: 50; --hb-doc-pad: clamp(16px, 6vw, 80px); --hb-figure-max: 840px; --hb-z-toast: 60; --hb-z-max: 100; --hb-dur-fast: .12s; --hb-dur-base: .18s; --hb-dur-slow: .35s; --hb-ease: ease; --hb-ease-out: cubic-bezier(.2, .7, .2, 1); --hb-font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --hb-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
:root { --hb-bg: var(--hb-gray-50); --hb-surface: var(--hb-white); --hb-surface-2: var(--hb-gray-75); --hb-surface-3: var(--hb-gray-100); --hb-elev: var(--hb-white); --hb-line: var(--hb-gray-150); --hb-line-strong: var(--hb-gray-200); --hb-line-control: var(--hb-gray-400); --hb-ink: var(--hb-gray-900); --hb-ink-2: var(--hb-gray-600); --hb-muted: var(--hb-gray-500); --hb-primary: var(--hb-blue-600); --hb-primary-hover: var(--hb-blue-700); --hb-primary-active: var(--hb-blue-800); --hb-on-primary: var(--hb-white); --hb-accent-ink: var(--hb-blue-700); --hb-flame: var(--hb-amber-700); --hb-flame-fill: var(--hb-amber-400); --hb-canvas: var(--hb-gray-25); --hb-grid: var(--hb-gray-300); --hb-success: var(--hb-green-700); --hb-warning: var(--hb-amber-700); --hb-danger: var(--hb-red-600); --hb-info: var(--hb-primary); --hb-on-success: var(--hb-white); --hb-on-warning: var( --hb-amber-950 ); --hb-on-danger: var(--hb-white); --hb-on-info: var(--hb-on-primary); --hb-success-ink: color-mix(in srgb, var(--hb-success) 80%, var(--hb-ink)); --hb-warning-ink: color-mix(in srgb, var(--hb-flame) 80%, var(--hb-ink)); --hb-danger-ink: color-mix(in srgb, var(--hb-danger) 80%, var(--hb-ink)); --hb-success-subtle: color-mix( in srgb, var(--hb-success) 12%, var(--hb-surface) ); --hb-warning-subtle: color-mix( in srgb, var(--hb-flame-fill) 18%, var(--hb-surface) ); --hb-danger-subtle: color-mix( in srgb, var(--hb-danger) 10%, var(--hb-surface) ); --hb-info-subtle: color-mix( in srgb, var(--hb-primary) 10%, var(--hb-surface) ); --hb-on-color: var(--hb-white); --hb-sel: rgba(47, 91, 234, .14); --hb-hl-amber: rgba(255, 178, 62, .42); --hb-hl-cobalt: rgba(79, 124, 255, .24); --hb-hl-mint: rgba(32, 201, 140, .28); --hb-hl-rose: rgba(255, 93, 115, .24); --hb-scrim: color-mix(in srgb, var(--hb-bg) 55%, rgba(0, 0, 0, .35)); --hb-shadow-color: 16, 20, 28; --hb-shadow-sm: 0 1px 2px rgba(var(--hb-shadow-color), .08); --hb-shadow-md: 0 1px 2px rgba(var(--hb-shadow-color), .06), 0 8px 24px rgba(var(--hb-shadow-color), .08); --hb-shadow-lg: 0 2px 6px rgba(var(--hb-shadow-color), .08), 0 20px 48px rgba(var(--hb-shadow-color), .16); --hb-shadow: var(--hb-shadow-md); --hb-float: 0 0 0 1px var(--hb-line-strong), var(--hb-shadow-lg); --hb-focus-ring: 0 0 0 3px color-mix(in srgb, var(--hb-primary) 22%, transparent); }
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) { --hb-bg: var(--hb-gray-1000); --hb-surface: var(--hb-gray-925); --hb-surface-2: var(--hb-gray-975); --hb-surface-3: var(--hb-gray-800); --hb-elev: var(--hb-gray-850); --hb-line: var(--hb-gray-750); --hb-line-strong: var(--hb-gray-700); --hb-line-control: var(--hb-gray-500); --hb-ink: var(--hb-gray-100); --hb-ink-2: var(--hb-gray-300); --hb-muted: var(--hb-gray-400); --hb-primary: var(--hb-blue-400); --hb-primary-hover: var(--hb-blue-350); --hb-primary-active: var(--hb-blue-500); --hb-on-primary: var(--hb-blue-950); --hb-on-success: var(--hb-blue-950); --hb-on-danger: var(--hb-blue-950); --hb-accent-ink: var(--hb-blue-300); --hb-flame: var(--hb-amber-400); --hb-success: var(--hb-green-400); --hb-warning: var(--hb-amber-400); --hb-danger: var(--hb-red-400); --hb-canvas: var(--hb-gray-950); --hb-grid: var(--hb-blue-900); --hb-sel: rgba(95, 136, 255, .2); --hb-hl-amber: rgba(255, 178, 62, .3); --hb-hl-cobalt: rgba(95, 136, 255, .3); --hb-hl-mint: rgba(52, 211, 153, .26); --hb-hl-rose: rgba(255, 93, 115, .28); --hb-shadow-color: 0, 0, 0; --hb-shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --hb-shadow-md: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35); --hb-shadow-lg: 0 2px 6px rgba(0, 0, 0, .5), 0 24px 56px rgba(0, 0, 0, .55); --el-c: #e8ecf3; --el-n: #86a8ff; --el-o: #ff7486; --el-s: #f5c84c; --el-p: #ffa557; --el-x: #4fd6a0; --el-br: #e8956a; --el-i: #bb98ff; --el-b: #ff9ec7; --el-si: #b9c3d3; --el-se: #f0a060; --el-m1: #b79cff; --el-m2: #a9b6cc; --el-cu: #f2a072; --hb-tag-blue: #6c9cff; --hb-tag-teal: #35c7c2; --hb-tag-green: #52c47a; --hb-tag-amber: #e8b53a; --hb-tag-orange: #f2914a; --hb-tag-red: #f2696c; --hb-tag-pink: #ec6fb3; --hb-tag-violet: #a985f0; --hb-tag-gray: #a0a7b4; --hb-logo-ring: var(--hb-blue-400); --hb-logo-core: var(--hb-white); color-scheme: dark; }
}
:root[data-theme="dark"] { --hb-bg: var(--hb-gray-1000); --hb-surface: var(--hb-gray-925); --hb-surface-2: var(--hb-gray-975); --hb-surface-3: var(--hb-gray-800); --hb-elev: var(--hb-gray-850); --hb-line: var(--hb-gray-750); --hb-line-strong: var(--hb-gray-700); --hb-line-control: var(--hb-gray-500); --hb-ink: var(--hb-gray-100); --hb-ink-2: var(--hb-gray-300); --hb-muted: var(--hb-gray-400); --hb-primary: var(--hb-blue-400); --hb-primary-hover: var(--hb-blue-350); --hb-primary-active: var(--hb-blue-500); --hb-on-primary: var(--hb-blue-950); --hb-on-success: var(--hb-blue-950); --hb-on-danger: var(--hb-blue-950); --hb-accent-ink: var(--hb-blue-300); --hb-flame: var(--hb-amber-400); --hb-success: var(--hb-green-400); --hb-warning: var(--hb-amber-400); --hb-danger: var(--hb-red-400); --hb-canvas: var(--hb-gray-950); --hb-grid: var(--hb-blue-900); --hb-sel: rgba(95, 136, 255, .2); --hb-hl-amber: rgba(255, 178, 62, .3); --hb-hl-cobalt: rgba(95, 136, 255, .3); --hb-hl-mint: rgba(52, 211, 153, .26); --hb-hl-rose: rgba(255, 93, 115, .28); --hb-shadow-color: 0, 0, 0; --hb-shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --hb-shadow-md: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35); --hb-shadow-lg: 0 2px 6px rgba(0, 0, 0, .5), 0 24px 56px rgba(0, 0, 0, .55); --el-c: #e8ecf3; --el-n: #86a8ff; --el-o: #ff7486; --el-s: #f5c84c; --el-p: #ffa557; --el-x: #4fd6a0; --el-br: #e8956a; --el-i: #bb98ff; --el-b: #ff9ec7; --el-si: #b9c3d3; --el-se: #f0a060; --el-m1: #b79cff; --el-m2: #a9b6cc; --el-cu: #f2a072; --hb-tag-blue: #6c9cff; --hb-tag-teal: #35c7c2; --hb-tag-green: #52c47a; --hb-tag-amber: #e8b53a; --hb-tag-orange: #f2914a; --hb-tag-red: #f2696c; --hb-tag-pink: #ec6fb3; --hb-tag-violet: #a985f0; --hb-tag-gray: #a0a7b4; --hb-logo-ring: var(--hb-blue-400); --hb-logo-core: var(--hb-white); color-scheme: dark; }
:root { --el-c: #10141c; --el-n: #2346d6; --el-o: #d0213b; --el-s: #8c6a00; --el-p: #c2570c; --el-x: #0e8458; --el-br: #a4471c; --el-i: #7a3fe0; --el-b: #c02679; --el-si: #4b5563; --el-se: #a1561a; --el-m1: #6d3fc4; --el-m2: #4f5f7a; --el-cu: #a4521f; --hb-tag-blue: #3b74e8; --hb-tag-teal: #10a2a0; --hb-tag-green: #2f9e55; --hb-tag-amber: #c9930a; --hb-tag-orange: #e0701b; --hb-tag-red: #dc4549; --hb-tag-pink: #d1438f; --hb-tag-violet: #8455d6; --hb-tag-gray: #7d8492; --hb-gel-bg: #1b2130; --hb-gel-well: var(--hb-gray-950); --hb-gel-band: #ff9fd0; --hb-gel-ladder: var(--hb-gray-300); --hb-gel-picked: #ffe066; --hb-logo-ring: var(--hb-blue-600); --hb-logo-core: var(--hb-gray-900); }
html { box-sizing: border-box; }
*, ::before, ::after { box-sizing: inherit; }
p { margin-top: 0px; margin-bottom: 8px; }
small { font-size: var(--hb-text-sm); }
a { color: var(--hb-accent-ink); text-decoration: none; }
a:hover { cursor: pointer; text-decoration: underline; }
form { display: block; }
.hx-pop-target { display: inline-block; }
.hx-dd-wrap.hx-pop-target { display: flex; width: 100%; min-width: 0px; }
.hx-dialog { position: relative; display: flex; flex-direction: column; width: 500px; max-width: calc(-32px + 100vw); margin: 32px 0px; background: var(--hb-surface); color: var(--hb-ink); border-radius: var(--hb-radius-lg); box-shadow: var(--hb-float); outline: 0px; transition: opacity var(--hb-dur-base) var(--hb-ease-out),transform var(--hb-dur-base) var(--hb-ease-out); }
.hx-dialog-header { flex: 0 0 auto; display: flex; align-items: center; min-height: 38px; padding: 4px 4px 4px 16px; background: var(--hb-surface); border-radius: var(--hb-radius-lg) var(--hb-radius-lg) 0 0; box-shadow: 0 1px 0 var(--hb-line); }
.hx-dialog-icon { flex: 0 0 auto; display: flex; margin: 0px 8px 0px -4px; color: var(--hb-accent-ink); }
.hx-dialog-title { flex: 1 1 auto; min-width: 0px; margin: 0px; font-size: var(--hb-text-lg); font-weight: var(--hb-weight-semibold); line-height: inherit; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx-dialog-close { --cut: 5px; flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; padding: 0px; border: 0px; background: none; color: var(--hb-ink-2); cursor: pointer; clip-path: polygon(calc(var(--cut) + 1px) -1px,calc(100% + 1px) -1px,calc(100% + 1px) calc(100% - var(--cut) - 1px),calc(100% - var(--cut) - 1px) calc(100% + 1px),-1px calc(100% + 1px),-1px calc(var(--cut) + 1px)); }
.hx-dialog-close:hover { background: color-mix(in srgb,var(--hb-ink) 7%,transparent); color: var(--hb-ink); }
.hx-dialog-close:focus-visible { outline: 0px; background: color-mix(in srgb,var(--hb-primary) 16%,transparent); color: var(--hb-accent-ink); }
.hx-dialog-body { flex: 1 1 auto; margin: 0px; padding: 16px 20px; }
.hx-dialog-footer { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0px; padding: 12px 16px; background: var(--hb-surface); border-top: 1px solid var(--hb-line); border-radius: 0 0 var(--hb-radius-lg) var(--hb-radius-lg); }
.hx-dialog-footer-actions { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(112px, 1fr); gap: 8px; margin-left: auto; }
.hx-dialog-footer-actions > .hx-btn { width: 100%; }
@media (max-width: 560px) {
.hx-dialog-footer { flex-wrap: wrap; gap: 10px; }
.hx-dialog-footer-actions { width: 100%; margin-left: 0px; grid-auto-columns: minmax(0px, 1fr); }
}
.hb-dialog.hx-dialog { box-sizing: border-box; padding-bottom: 0px; width: min(720px, -32px + 100vw); max-width: none; height: min(560px, 100dvh - 48px); max-height: none; margin: 24px auto; }
.hb-dialog.hx-dialog > .hx-dialog-header, .hb-dialog.hx-dialog > .hx-dialog-footer { flex: 0 0 auto; }
.hb-dialog.hx-dialog > .hx-dialog-body { flex: 1 1 0px; min-height: 0px; overflow: auto; margin: 0px; }
.hb-share .hx-dialog-body { display: flex; flex-direction: column; gap: 18px; }
.hb-share .hx-dialog-body > * { min-width: 0px; }
.hx-editable { position: relative; display: inline-grid; max-width: 100%; min-width: 0px; cursor: text; vertical-align: top; }
.hx-editable::before { content: ""; position: absolute; inset: -2px -4px; border-radius: var(--hb-radius-sm); pointer-events: none; transition: box-shadow var(--hb-dur-fast); }
.hx-editable:hover::before { box-shadow: inset 0 0 0 1px var(--hb-line-strong); }
.hx-editable:focus-within::before { background: var(--hb-surface); box-shadow: inset 0 0 0 1px var(--hb-primary),0 0 0 1px var(--hb-primary); }
.hx-editable::after { content: attr(data-value) " "; grid-area: 1 / 1; visibility: hidden; white-space: pre; overflow: hidden; }
.hx-editable > input { grid-area: 1 / 1; position: relative; width: 100%; min-width: 0px; margin: 0px; padding: 0px; border: 0px; background: none; outline: 0px; color: inherit; font: inherit; letter-spacing: inherit; text-overflow: ellipsis; }
.hx-editable > input::placeholder { color: var(--hb-muted); opacity: 1; }
html, body, #root { height: 100%; }
.hb-app { display: grid; grid-template-columns: auto minmax(0px, 1fr); height: 100%; background: var(--hb-bg); }
.hb-main { display: flex; flex-direction: column; min-width: 0px; min-height: 0px; }
.hb-top { height: 52px; flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 0px 12px 0px 16px; border-bottom: 1px solid var(--hb-line); background: var(--hb-surface); min-width: 0px; }
.hb-crumbs { display: flex; align-items: center; gap: 6px; min-width: 0px; font-size: var(--hb-text-lg); color: var(--hb-muted); }
.hb-crumb-root { white-space: nowrap; }
.hb-crumb-doc { font-weight: 600; color: var(--hb-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px; }
.hb-spacer { flex: 1 1 0%; }
.hb-body { flex: 1 1 0%; display: grid; grid-template-columns: minmax(0,1fr) var(--hb-insp-w, 360px); min-height: 0px; position: relative; }
.insp-closed .hb-body { grid-template-columns: minmax(0px, 1fr) 0px; }
.insp-closed .hb-inspector { display: none; }
.hb-scroll { grid-area: 1 / 1 / 2 / 2; overflow: auto; background: var(--hb-surface); min-width: 0px; }
.hb-inspector { grid-area: 1 / 2 / 2 / 3; border-left: 1px solid var(--hb-line); background: var(--hb-surface); overflow: auto; min-width: 0px; position: relative; }
.hb-doc { padding: 56px var(--hb-doc-pad) 180px; min-height: 100%; box-sizing: border-box; }
.hb-doc-head, .hb-block:not(.is-wide) { max-width: 760px; margin-left: auto; margin-right: auto; }
.hb-block.is-wide { max-width: none; margin: 20px max(calc(20px - var(--hb-doc-pad)),calc((100% - var(--hb-figure-max)) / 2)) 24px; }
.hb-block.is-canvas .hb-figure-head { transition: padding-left var(--hb-dur-fast) var(--hb-ease); }
.hb-title { display: block; width: 100%; box-sizing: border-box; border: 0px; background: transparent; resize: none; outline: none; padding: 0px; overflow: hidden; font: 700 var(--hb-doc-title)/1.12 var(--hb-font); letter-spacing: -0.03em; color: var(--hb-ink); text-wrap: balance; }
.hb-title::placeholder { color: var(--hb-muted); }
.hb-doc-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--hb-muted); font-size: var(--hb-text-md); margin: 12px 0px 30px; }
.hb-meta-link { display: inline-flex; align-items: center; gap: 5px; margin: 0px; padding: 0px; border: 0px; border-radius: var(--hb-radius-sm); background: none; font: inherit; color: inherit; cursor: pointer; text-decoration: underline transparent; text-underline-offset: 3px; transition: color 0.12s, text-decoration-color 0.12s; }
.hb-meta-link .hx-licon { display: none; }
.hb-meta-link:hover, .hb-meta-link:focus-visible { color: var(--hb-ink); text-decoration-color: currentcolor; }
.hb-meta-link:focus-visible { outline: 2px solid var(--hb-primary); outline-offset: 3px; }
@media (hover: none) {
.hb-meta-link .hx-licon { display: inline-block; }
}
.hb-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--hb-line-strong); }
.hb-block { position: relative; }
.hb-block-body { position: relative; }
.hb-text { display: block; width: 100%; box-sizing: border-box; min-height: 1.7em; margin: 0px; padding: 3px 0px; border: 0px; background: transparent; resize: none; outline: none; overflow: hidden; font: 400 var(--hb-doc-text)/1.7 var(--hb-font); color: var(--hb-ink); white-space: pre-wrap; overflow-wrap: anywhere; cursor: text; }
.hb-text::placeholder, .hb-ph { color: color-mix(in srgb,var(--hb-muted) 75%,transparent); }
.hb-text.t-h2 { font-size: var(--hb-doc-h2); font-weight: 650; line-height: 1.32; letter-spacing: -0.016em; margin-top: 24px; }
.hb-chem sub, .hb-formula-tag sub, td sub { font-size: 0.72em; }
.hb-doc-tail { height: 120px; cursor: text; }
.hb-muted { color: var(--hb-muted); }
.hb-small { font-size: var(--hb-text-sm); line-height: 1.5; }
.hb-mono { font-family: var(--hb-mono); }
.hb-figure { margin: 0px; border: 1px solid var(--hb-line); border-radius: var(--hb-radius-lg); overflow: hidden; background: var(--hb-canvas); box-shadow: var(--hb-shadow); transition: border-color var(--hb-dur-fast),box-shadow var(--hb-dur-fast); }
.hb-figure-head { display: flex; align-items: center; gap: 10px; padding: 7px 10px 7px 12px; border-bottom: 1px solid var(--hb-line); background: var(--hb-surface); min-width: 0px; }
.hb-fig-no { font: 600 var(--hb-text-sm) var(--hb-mono); color: var(--hb-accent-ink); background: color-mix(in srgb,var(--hb-primary) 11%,transparent); padding: 3px 8px; border-radius: var(--hb-radius-sm); white-space: nowrap; }
.hb-fig-title { flex: 1 1 0%; min-width: 0px; font-weight: 600; font-size: var(--hb-text-lg); }
.hb-fig-summary { flex: 0 0 auto; display: flex; gap: 6px; flex-wrap: nowrap; justify-content: flex-end; }
.hb-formula-tag { font-family: var(--hb-mono); }
.hb-resize { height: 12px; cursor: ns-resize; display: flex; justify-content: center; align-items: center; background: var(--hb-surface); border-top: 1px solid var(--hb-line); touch-action: none; }
.hb-resize span { width: 44px; height: 3px; border-radius: var(--hb-radius-sm); background: var(--hb-line-strong); }
.hb-resize:hover span { background: var(--hb-primary); }
.hb-props-title { font-weight: 600; font-size: var(--hb-text-md); display: flex; gap: 8px; align-items: center; }
.hb-props-title .hx-licon { color: var(--hb-accent-ink); }
.hb-table-wrap { overflow-x: auto; }
.hb-table th { font-weight: 600; font-size: var(--hb-text-xs); text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.hb-table td.num, .hb-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.hb-table td:first-child, .hb-table th:first-child { padding-left: 14px; }
.hb-canvas { position: relative; width: 100%; background: var(--hb-canvas); overflow: hidden; user-select: none; touch-action: none; }
.hb-svg { display: block; }
.hb-grid-line { fill: none; stroke: var(--hb-grid); }
.hb-bond { stroke: var(--hb-ink); stroke-width: 0.058; stroke-linecap: round; fill: none; }
.hb-label { font-family: var(--hb-font); font-size: 0.44px; font-weight: 600; dominant-baseline: central; paint-order: stroke; stroke: var(--hb-canvas); stroke-width: 0.17px; stroke-linejoin: round; }
.hb-charge { font-family: var(--hb-font); font-size: 0.27px; font-weight: 700; fill: var(--hb-flame); paint-order: stroke; stroke: var(--hb-canvas); stroke-width: 0.1px; }
.hb-stereo { font: 700 .34px var(--hb-mono); fill: var(--hb-flame); }
.hb-hl, .hb-pen { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hb-arrow path { fill: none; stroke-width: 0.055; stroke-linecap: round; }
.hb-arrow path.hb-arrow-head { stroke: none; }
.hb-note { font-family: var(--hb-font); font-weight: 500; }
.hb-zoom { position: absolute; right: 10px; bottom: 10px; background: var(--hb-elev); border-radius: var(--hb-radius-lg); box-shadow: 0 0 0 1px var(--hb-line-strong),var(--hb-shadow); padding: 2px; z-index: var(--hb-z-float); }
.hx-btn.hb-zoom-pct { min-width: 54px; font: 500 var(--hb-text-sm) var(--hb-mono); }
.hb-insp { display: flex; flex-direction: column; }
.hb-insp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px 4px; }
.hb-insp-name { font-weight: 600; font-size: var(--hb-text-lg); display: flex; gap: 8px; align-items: center; min-width: 0px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-insp-name .hb-svg-icon { color: var(--hb-accent-ink); flex: 0 0 auto; }
.hb-insp-stack { display: flex; flex-direction: column; gap: 20px; padding-bottom: 28px; }
.hb-formula { font: 600 var(--hb-text-4xl)/1.1 var(--hb-mono); letter-spacing: -0.03em; margin: 2px 0px 16px; color: var(--hb-ink); overflow-wrap: anywhere; }
.hb-formula sub { font-size: 0.56em; color: var(--hb-accent-ink); letter-spacing: 0px; }
.hb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hb-rules { list-style: none; margin: 0px; padding: 0px; display: flex; flex-direction: column; gap: 12px; }
.hb-rules li { display: grid; grid-template-columns: 18px minmax(0px, 1fr); gap: 10px; }
.hb-rules li .hx-licon { margin-top: 2px; }
.hb-rules b { display: block; font-size: var(--hb-text-md); font-weight: 600; }
.hb-rules span { display: block; font-size: var(--hb-text-md); color: var(--hb-muted); line-height: 1.5; }
@supports not selector(::-webkit-scrollbar) {
* { scrollbar-width: thin; scrollbar-color: color-mix(in srgb,var(--hb-ink) 22%,transparent) transparent; }
}
@media (prefers-reduced-motion: reduce) {
*, ::before, ::after { transition: none !important; animation: auto ease 0s 1 normal none running none !important; }
}
.hb-mobile-menu { display: none; }
.hb-insp-close { margin-left: 2px; }
.hb-insp-head { padding-right: 10px; }
.hb-mini { display: block; width: 100%; }
.hb-mini-bond line { stroke: var(--hb-ink); stroke-width: 0.075; stroke-linecap: round; }
.hb-mini-label { font: 600 .5px var(--hb-font); dominant-baseline: central; paint-order: stroke; stroke: var(--hb-canvas); stroke-width: 0.22px; }
@media (max-width: 760px) {
.hb-app, .hb-app.is-rail { grid-template-columns: minmax(0px, 1fr); }
.hb-mobile-menu { display: inline-flex; }
.hb-title { font-size: var(--hb-doc-title-compact); }
.hb-doc { padding-top: 32px; }
}
:root { --hx-cut: 7px; --hx-radius: 9px; --hx-h-sm: 28px; --hx-h-md: 34px; --hx-h-lg: 42px; --hx-chamfer: polygon( calc(var(--hx-cut) + 1px) -1px, calc(100% + 1px) -1px, calc(100% + 1px) calc(100% - var(--hx-cut) - 1px), calc(100% - var(--hx-cut) - 1px) calc(100% + 1px) , -1px calc(100% + 1px) , -1px calc(var(--hx-cut) + 1px) ); --hx-hex: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); --hx-hex-pt: polygon( 50% 0, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25% ); --hx-ease: cubic-bezier(.2, .7, .2, 1); }
.hx-icon { display: inline-flex; flex: 0 0 auto; line-height: 0; }
.hx-icon svg { display: block; }
.hx-btn { --c: var(--hb-ink); --bg: transparent; --bd: transparent; --bgh: color-mix(in srgb, var(--hb-ink) 7%, transparent); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: var(--hx-h-md); min-width: var(--hx-h-md); padding: 0px 12px; box-sizing: border-box; border: 0px; border-radius: var(--hx-radius); background: var(--bg); color: var(--c); box-shadow: inset 0 0 0 1px var(--bd); font: 500 var(--hb-text-lg)/1 var(--hb-font); letter-spacing: -0.005em; white-space: nowrap; cursor: pointer; user-select: none; transition: background var(--hb-dur-fast) var(--hx-ease),box-shadow var(--hb-dur-fast) var(--hx-ease),color var(--hb-dur-fast),transform var(--hb-dur-fast); }
.hx-btn:hover:not(:disabled) { background: var(--bgh); }
.hx-btn:active:not(:disabled) { transform: translateY(0.5px); }
.hx-btn:disabled { opacity: 0.45; cursor: default; }
.hx-btn.is-icon { padding: 0px; width: var(--hx-h-md); }
.hx-btn.is-fill { display: flex; width: 100%; }
.hx-btn-text { overflow: hidden; text-overflow: ellipsis; }
.hx-btn--small { height: var(--hx-h-sm); min-width: var(--hx-h-sm); padding: 0px 9px; font-size: var(--hb-text-md); gap: 6px; border-radius: var(--hb-radius-md); }
.hx-btn--small.is-icon { width: var(--hx-h-sm); }
.hx-btn--large { height: var(--hx-h-lg); min-width: var(--hx-h-lg); padding: 0px 18px; font-size: var(--hb-text-lg); }
.hx-btn--soft { --bg: var(--hb-surface); --bd: var(--hb-line-strong); --bgh: var(--hb-surface-2); }
.hx-btn--outlined { --bd: var(--hb-line-strong); }
.hx-btn--minimal { --c: var(--hb-ink-2); }
.hx-btn--minimal:hover:not(:disabled) { color: var(--hb-ink); }
.hx-btn--solid { --bg: var(--hb-ink); --c: var(--hb-bg); --bgh: color-mix(in srgb, var(--hb-ink) 86%, var(--hb-bg)); }
.hx-btn--solid.hx-btn--primary { --bg: var(--hb-primary); --c: var(--hb-on-primary); --bgh: var(--hb-primary-hover); }
.hx-btn.is-active { --bg: color-mix(in srgb, var(--hb-primary) 15%, transparent); --c: var(--hb-accent-ink); --bd: color-mix(in srgb, var(--hb-primary) 40%, transparent); }
.hx-btn.is-active::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; margin-left: -2.5px; background: var(--hb-primary); clip-path: var(--hx-hex-pt); }
.hx-group { display: inline-flex; align-items: center; gap: 2px; }
.hx-tag { --c: var(--hb-ink-2); --bg: var(--hb-surface-3); display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0px 11px; box-sizing: border-box; background: var(--bg); color: var(--c); font: 500 var(--hb-text-sm)/1 var(--hb-font); white-space: nowrap; border: 0px; clip-path: polygon(7px 0px, calc(100% - 7px) 0px, 100% 50%, calc(100% - 7px) 100%, 7px 100%, 0px 50%); }
.hx-tag sub { font-size: 0.72em; }
.hx-tag--primary { --c: var(--hb-accent-ink); --bg: color-mix(in srgb, var(--hb-primary) 15%, transparent); }
.hx-tag--success { --c: var(--hb-success-ink); --bg: color-mix(in srgb, var(--hb-success) 15%, transparent); }
.hx-tag.is-solid.hx-tag--primary { --c: var(--hb-on-primary); --bg: var(--hb-primary); }
.hx-tag.is-interactive { cursor: pointer; transition: filter var(--hb-dur-fast); }
.hx-tag.is-interactive:hover { filter: brightness(1.08) saturate(1.1); }
.hx-tag.is-interactive:focus-visible { outline: 2px solid var(--hb-primary); outline-offset: 2px; clip-path: none; border-radius: var(--hb-radius-sm); }
.hx-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--hb-radius-lg); background: var(--hb-surface-3); }
.hx-seg.is-fill { display: flex; width: 100%; box-sizing: border-box; }
.hx-seg.is-fill .hx-seg-opt { flex: 1 1 0%; }
.hx-seg-opt { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 28px; padding: 0px 11px; border: 0px; border-radius: var(--hb-radius-md); background: transparent; color: var(--hb-ink-2); font: 500 var(--hb-text-md) var(--hb-font); cursor: pointer; white-space: nowrap; transition: background var(--hb-dur-fast),color var(--hb-dur-fast),box-shadow var(--hb-dur-fast); }
.hx-seg--small .hx-seg-opt { height: 24px; padding: 0px 9px; font-size: var(--hb-text-sm); }
.hx-seg-opt:hover { color: var(--hb-ink); }
.hx-seg-opt.is-on { background: var(--hb-elev); color: var(--hb-ink); box-shadow: 0 0 0 1px var(--hb-line-strong),var(--hb-shadow-sm); }
.hx-seg-opt:focus-visible { outline: 2px solid var(--hb-primary); outline-offset: 1px; }
@keyframes hx-spin { 
  100% { stroke-dashoffset: -58; }
}
.hx-callout { --c: var(--hb-accent-ink); --bg: color-mix(in srgb, var(--hb-primary) 8%, var(--hb-surface)); --bd: color-mix(in srgb, var(--hb-primary) 28%, transparent); display: flex; gap: 12px; padding: 12px 14px; border-radius: var(--hb-radius-lg); background: var(--bg); box-shadow: inset 0 0 0 1px var(--bd); color: var(--hb-ink); }
.hx-callout--none { --c: var(--hb-ink-2); --bg: var(--hb-surface-2); --bd: var(--hb-line); }
.hx-callout--success { --c: var(--hb-success); --bg: color-mix(in srgb, var(--hb-success) 8%, var(--hb-surface)); --bd: color-mix(in srgb, var(--hb-success) 30%, transparent); }
.hx-callout-badge { flex: 0 0 auto; width: 24px; height: 24px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb,var(--c) 16%,transparent); clip-path: var(--hx-hex-pt); margin-top: -1px; }
.hx-callout-body { min-width: 0px; flex: 1 1 0%; }
.hx-callout-title { font-weight: 600; font-size: var(--hb-text-lg); color: var(--hb-ink); margin-bottom: 2px; }
.hx-callout-text { font-size: var(--hb-text-md); line-height: 1.5; color: var(--hb-ink-2); }
.hx-callout-action { margin-top: 10px; }
.hx-avatar { flex: 0 0 auto; display: inline-grid; place-items: center; overflow: hidden; background: var(--hb-primary); color: var(--hb-on-primary); font-weight: 700; clip-path: var(--hx-hex-pt); }
.hx-avatar, .hx-avatar > .hx-avatar-ch { place-items: center; line-height: 1; display: inline-grid !important; }
.hx-avatar > .hx-avatar-ch { width: 100%; height: 100%; color: inherit; font-size: inherit !important; }
.hx-eyebrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; font: 600 var(--hb-text-xs) var(--hb-font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--hb-muted); }
.hx-eyebrow > span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.hx-eyebrow > span:first-child::before { content: ""; width: 6px; height: 6px; background: var(--hb-primary); clip-path: var(--hx-hex-pt); }
.hx-tabs { display: flex; flex-direction: column; min-width: 0px; }
.hx-tablist { display: flex; gap: 4px; border-bottom: 1px solid var(--hb-line); }
.hx-tab { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0px 10px; border: 0px; background: transparent; color: var(--hb-muted); font: 500 var(--hb-text-lg) var(--hb-font); cursor: pointer; white-space: nowrap; }
.hx-tab:hover, .hx-tab.is-on { color: var(--hb-ink); }
.hx-tab.is-on::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; background: var(--hb-primary); }
.hx-tab.is-on::before { content: ""; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px; margin-left: -4px; background: var(--hb-primary); clip-path: var(--hx-hex-pt); }
.hx-tab:focus-visible { outline: 2px solid var(--hb-primary); outline-offset: -2px; border-radius: var(--hb-radius-sm); }
.hx-tabpanel { padding-top: 16px; min-width: 0px; }
.hx-input, .hx-select { position: relative; display: flex; align-items: center; height: var(--hx-h-md); border-radius: var(--hb-radius-md); background: var(--hb-surface); box-shadow: inset 0 0 0 1px var(--hb-line-control); transition: box-shadow var(--hb-dur-fast); }
.hx-input:focus-within, .hx-select:focus-within { box-shadow: inset 0 0 0 1px var(--hb-primary),0 0 0 3px color-mix(in srgb,var(--hb-primary) 22%,transparent); }
.hx-input.is-disabled, .hx-select.is-disabled, .hx-input:has(input:disabled), .hx-select:has(select:disabled) { background: var(--hb-surface-2); color: var(--hb-muted); opacity: 0.6; cursor: not-allowed; }
.hx-input input:disabled, .hx-select select:disabled { color: var(--hb-muted); cursor: not-allowed; }
.hx-input input, .hx-select select { flex: 1 1 0%; min-width: 0px; height: 100%; border: 0px; background: transparent; color: var(--hb-ink); font: 400 var(--hb-text-lg) var(--hb-font); padding: 0px 11px; outline: none; }
.hx-input input::placeholder { color: var(--hb-muted); }
.hx-input.is-mono input { font-family: var(--hb-mono); font-size: var(--hb-text-md); }
.hx-input.is-dense, .hx-select.is-dense { height: var(--hx-h-sm); }
.hx-input.is-dense input, .hx-select.is-dense select { font-size: var(--hb-text-md); }
@media (hover: none) {
.hx-btn:hover:not(:disabled) { background: var(--bg); }
}
.hx-licon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; line-height: 0; vertical-align: text-bottom; }
.hb-svg-icon { display: inline-block; flex: 0 0 auto; vertical-align: text-bottom; }
.hx-licon svg { display: block; }
.hx-btn, .hx-seg, .hx-seg-opt, .hb-home-scopes, .hb-home-layout, .hb-home-scopes button, .hb-home-layout button, .hb-outline-filter, .hb-outline-filter button, .hb-ds-target button { --cut: 7px; clip-path: polygon(calc(var(--cut) + 1px) -1px,calc(100% + 1px) -1px,calc(100% + 1px) calc(100% - var(--cut) - 1px),calc(100% - var(--cut) - 1px) calc(100% + 1px),-1px calc(100% + 1px),-1px calc(var(--cut) + 1px)); border-radius: 0px !important; }
.hx-btn--small, .hx-seg--small .hx-seg-opt, .hx-seg-opt, .hb-home-scopes button, .hb-home-layout button, .hb-outline-filter button, .hb-ds-target button { --cut: 5px; }
.hx-btn--large { --cut: 9px; }
.hx-btn.is-icon.hx-btn--small { --cut: 4px; }
.hx-btn, .hx-seg-opt, .hb-home-scopes button, .hb-home-layout button, .hb-outline-filter button, .hb-ds-target button { box-shadow: none !important; isolation: isolate; }
.hx-btn::before, .hx-seg-opt::before, .hb-home-scopes button::before, .hb-home-layout button::before, .hb-outline-filter button::before, .hb-ds-target button::before { content: ""; position: absolute; inset: 0px; z-index: var(--hb-z-below); pointer-events: none; transition: border-color var(--hb-dur-fast) var(--hx-ease); box-sizing: border-box; border: var(--bw, 1px) solid var(--bd, transparent); background: linear-gradient(135deg,var(--bd, transparent) calc(var(--cut) * .7071 + var(--bw, 1px) - .35px),transparent calc(var(--cut) * .7071 + var(--bw, 1px) + .35px)) 0 0 / calc(var(--cut) + 4px) calc(var(--cut) + 4px) no-repeat border-box,linear-gradient(315deg,var(--bd, transparent) calc(var(--cut) * .7071 + var(--bw, 1px) - .35px),transparent calc(var(--cut) * .7071 + var(--bw, 1px) + .35px)) 100% 100% / calc(var(--cut) + 4px) calc(var(--cut) + 4px) no-repeat border-box; }
.hx-seg-opt, .hb-home-scopes button, .hb-home-layout button, .hb-outline-filter button { position: relative; --bd: transparent; }
.hx-seg-opt.is-on, .hb-home-scopes button.is-on, .hb-home-layout button[aria-pressed="true"], .hb-outline-filter button.is-on { --bd: var(--hb-line-strong); }
.hx-seg { --cut: 8px; }
.hx-btn:focus-visible, .hx-seg-opt:focus-visible { --bd: var(--hb-primary); --bw: 2px; outline: none !important; }
.hx-btn--solid:focus-visible { --bd: color-mix(in srgb, var(--hb-bg) 70%, transparent); }
.hx-btn--solid.hx-btn--primary:focus-visible { --bd: var(--hb-flame); }
.hx-dd-wrap { display: flex; min-width: 0px; }
.hx-dd { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 120px; height: var(--hx-h-md); padding: 0px 10px 0px 11px; box-sizing: border-box; border: 0px; border-radius: var(--hb-radius-md); background: var(--hb-surface); color: var(--hb-ink); box-shadow: inset 0 0 0 1px var(--hb-line-control); font: 400 var(--hb-text-lg) var(--hb-font); text-align: left; cursor: pointer; transition: box-shadow var(--hb-dur-fast) var(--hx-ease); clip-path: none; }
.hx-dd:hover:not(:disabled) { box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--hb-ink) 35%,var(--hb-line-control)); }
.hx-dd:focus-visible, .hx-dd.is-open { outline: none; box-shadow: inset 0 0 0 1px var(--hb-primary),0 0 0 3px color-mix(in srgb,var(--hb-primary) 22%,transparent); }
.hx-dd:disabled { opacity: 0.5; cursor: not-allowed; }
.hx-dd.is-dense { height: var(--hx-h-sm); font-size: var(--hb-text-md); padding: 0px 8px 0px 9px; gap: 6px; min-width: 96px; }
.hx-dd-value { flex: 1 1 0%; min-width: 0px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-dd-caret { color: var(--hb-muted); transition: transform var(--hb-dur-fast) var(--hx-ease); }
.hx-dd-ic { display: inline-flex; color: var(--hb-muted); }
@media (pointer: coarse) {
:root { --hx-h-sm: 36px; --hx-h-md: 42px; --hx-h-lg: 46px; }
}
@media (pointer: coarse) {
.hb-docmeter, .hb-gs-show, .hb-side-label-link { min-height: 36px; }
}
.hx-table { width: 100%; border-collapse: collapse; font-size: var(--hb-text-md); color: var(--hb-ink); }
.hx-table th { text-align: left; font-weight: 600; font-size: var(--hb-text-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--hb-muted); padding: 8px 10px; border-bottom: 1px solid var(--hb-line-strong); white-space: nowrap; }
.hx-table td { padding: 8px 10px; border-bottom: 1px solid var(--hb-line); vertical-align: top; }
.hx-table tbody tr:hover td { background: color-mix(in srgb,var(--hb-primary) 5%,transparent); }
.hb-zoom-sep { width: 1px; height: 18px; background: var(--hb-line); margin: 0px 2px; }
.hb-zoom .hx-group { gap: 0px; }
.hb-rules li { align-items: start; }
.hb-insp-tabs { padding: 0px 16px; }
.hb-insp-tabs .hx-tablist { gap: 2px; }
.hb-crumb-root { display: inline-flex; align-items: center; gap: 5px; }
.hb-caption { flex: 1 1 0%; min-width: 0px; border: 0px; background: transparent; outline: none; color: var(--hb-ink-2); font: 500 var(--hb-text-md) var(--hb-font); padding: 4px 0px; }
.hb-caption:focus { color: var(--hb-ink); }
.hb-spectrum { border: 1px solid var(--hb-line); border-radius: var(--hb-radius-lg); background: var(--hb-surface); box-shadow: var(--hb-shadow); overflow: hidden; }
.hb-spectrum-head { display: flex; align-items: center; gap: var(--hb-space-2); padding: var(--hb-space-2) var(--hb-space-3); border-bottom: 1px solid var(--hb-line); flex-wrap: wrap; }
.hb-spectrum-svg { display: block; width: 100%; height: auto; background: var(--hb-canvas); }
.hb-sp-grid { stroke: var(--hb-line); stroke-width: 1; }
.hb-sp-axis { stroke: var(--hb-line-strong); stroke-width: 1.2; }
.hb-sp-tick { font: var(--hb-text-xs) var(--hb-mono); fill: var(--hb-muted); }
.hb-sp-label { font: 600 var(--hb-text-md) var(--hb-font); fill: var(--hb-ink-2); }
.hb-sp-line { fill: none; stroke: var(--hb-primary); stroke-width: 1.5; stroke-linejoin: round; }
.hb-sp-peak { cursor: pointer; outline: none; }
.hb-sp-peak circle:not(.hb-sp-hit) { fill: var(--hb-muted); }
.hb-sp-peak text { font: 500 var(--hb-text-xs) var(--hb-mono); fill: var(--hb-ink-2); paint-order: stroke; stroke: var(--hb-canvas); stroke-width: 3px; }
.hb-sp-peak .hb-sp-hit { fill: transparent; stroke: none; }
.hb-sp-peak:hover .hb-sp-hit, .hb-sp-peak:focus-visible .hb-sp-hit, .hb-sp-peak.is-note.is-lit .hb-sp-hit { stroke: var(--hb-primary); stroke-width: 1.5; }
.hb-sp-peak.is-note circle:not(.hb-sp-hit) { fill: var(--hb-primary); }
.hb-sp-peak.is-note text { font: 600 var(--hb-text-xs) var(--hb-font); fill: var(--hb-accent-ink); }
.hb-sp-peak-x { font-family: var(--hb-mono); }
.hb-sp-plot { min-width: 0px; }
.hb-spectrum-svg { user-select: none; }
.hb-sp-frame { fill: none; }
.hb-sp-sup { font-size: 0.8em; }
.hb-sp-lead { stroke: var(--hb-muted); stroke-width: 1; pointer-events: none; }
.hb-sp-probe { pointer-events: none; }
.hb-sp-probe-focus { fill: none; outline: none; }
.hb-sp-probe-focus:focus-visible { stroke: var(--hb-primary); stroke-width: 1.5; stroke-dasharray: 4, 3; }
.hb-sp-hint { margin: 0px; font-size: var(--hb-text-sm); line-height: 1.5; color: var(--hb-muted); }
.hb-spectrum-foot { padding: var(--hb-space-2) var(--hb-space-3); }
.hb-sp-sec { display: grid; gap: var(--hb-space-2); min-width: 0px; padding: var(--hb-space-2) var(--hb-space-3) var(--hb-space-3); border-top: 1px solid var(--hb-line); }
.hb-sp-ref:not(.is-open) { padding-bottom: var(--hb-space-2); }
.hb-sp-sec-head { display: flex; align-items: center; flex-wrap: wrap; gap: var(--hb-space-2); min-height: 28px; }
.hb-sp-sec-title, .hb-sp-sec-head > .hb-sp-sec-toggle { display: inline-flex; align-items: center; gap: var(--hb-space-2); font: 600 var(--hb-text-md) var(--hb-font); color: var(--hb-ink-2); }
.hb-sp-sec-ic { flex: 0 0 auto; display: inline-flex; justify-content: center; width: 16px; color: var(--hb-muted); }
.hb-sp-sec-head > .hb-sp-sec-toggle { height: 28px; margin: 0px; padding: 0 var(--hb-space-1) 0 0; border: 0px; border-radius: var(--hb-radius-md); background: none; cursor: pointer; text-align: left; }
.hb-sp-sec-head > .hb-sp-sec-toggle:hover, .hb-sp-ref.is-open .hb-sp-sec-toggle { color: var(--hb-ink); }
.hb-sp-sec-head > .hb-sp-sec-toggle:focus-visible { outline: 2px solid var(--hb-primary); outline-offset: 2px; }
.hb-sp-sec-chev { transition: transform var(--hb-dur-fast) ease; }
.hb-sp-sec-head > .hb-sp-sec-aside { margin-left: auto; }
.hb-sp-sec-body { min-width: 0px; }
.hb-sp-notelist { list-style: none; margin: 0 calc(-1 * var(--hb-space-1)); padding: 0px; display: grid; gap: 2px; }
.hb-sp-note { position: relative; display: grid; grid-template-columns: 88px auto minmax(0px, 1fr) auto auto; align-items: center; gap: var(--hb-space-1) var(--hb-space-2); padding: var(--hb-space-1); border-radius: var(--hb-radius-md); }
.hb-sp-note-unit { font-size: var(--hb-text-sm); color: var(--hb-muted); white-space: nowrap; }
.hb-sp-note-atoms { grid-column: 4; max-width: 12em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 var(--hb-text-sm) var(--hb-mono); color: var(--hb-accent-ink); }
.hb-sp-note > .hb-sp-note-del { grid-column: 5; }
.hb-sp-mol-body { display: grid; grid-template-columns: minmax(0px, 260px) minmax(0px, 1fr); align-items: start; gap: var(--hb-space-3); }
.hb-sp-mol-body .hb-mini { display: block; width: 100%; box-sizing: border-box; background: var(--hb-canvas); border: 1px solid var(--hb-line); border-radius: var(--hb-radius-lg); }
.hb-sp-mol-side { display: grid; align-content: start; gap: var(--hb-space-2); min-width: 0px; }
.hb-sp-mol .hb-sp-mol-lost, .hb-sp-mol .hb-sp-mol-step { margin: 0px; }
.hb-mini-hl { fill: color-mix(in srgb,var(--hb-primary) 38%,transparent); pointer-events: none; }
.hb-mini-hl.is-soft { fill: color-mix(in srgb,var(--hb-primary) 12%,transparent); }
.hb-mini-hit { fill: transparent; cursor: pointer; outline: none; }
.hb-mini-hit:hover { stroke: var(--hb-primary); stroke-width: 0.06; }
.hb-mini-hit:focus-visible { fill: color-mix(in srgb,var(--hb-primary) 12%,transparent); stroke: var(--hb-primary); stroke-width: 0.1; }
@media (max-width: 560px) {
.hb-sp-note { grid-template-columns: 72px auto minmax(0px, 1fr) auto auto; }
.hb-sp-mol-body { grid-template-columns: minmax(0px, 1fr); }
}
.hb-top { overflow: hidden; }
.hb-block.is-wide { margin-top: 26px; }
@media (max-width: 760px) {
.hb-top { gap: 2px; padding: 0px 6px; }
.hb-top .hb-spacer { flex: 1 1 0%; }
}
.hb-mini-knock { fill: var(--hb-canvas); }
.hb-mini-label { stroke-width: 0.12px; }
:root { --hb-font-doc: var(--hb-font); --hb-font-serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif; }
.hb-title, .hb-text { font-family: var(--hb-font-doc); font-optical-sizing: auto; }
.hb-hl.is-ink, .hb-pen.is-ink { stroke: none; }
.hb-3d, .hb-lab { border: 1px solid var(--hb-line); border-radius: var(--hb-radius-lg); background: var(--hb-surface); overflow: hidden; box-shadow: var(--hb-shadow); }
.hb-3d-head, .hb-lab-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px 8px 14px; border-bottom: 1px solid var(--hb-line); }
.hb-3d-head .hb-spacer, .hb-lab-head .hb-spacer, .hb-3d-bar .hb-spacer { flex: 1 1 0%; }
.hb-3d-stage { position: relative; height: 380px; background: var(--hb-canvas); }
.hb-3d-view { position: absolute; inset: 0px; }
.hb-3d-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border-top: 1px solid var(--hb-line); }
.hb-3d-bar .hx-group { flex-wrap: wrap; }
.hb-3d-note { margin: 0px; padding: 8px 14px 10px; font-size: var(--hb-text-sm); color: var(--hb-muted); line-height: 1.5; border-top: 1px solid var(--hb-line); }
.hb-lab-amount { display: inline-flex; align-items: center; gap: 6px; font-size: var(--hb-text-md); color: var(--hb-muted); }
.hb-lab-amount .hb-lab-in.is-num { width: 72px; }
.hb-lab-table { width: 100%; font-size: var(--hb-text-md); }
.hb-lab-table td { padding: 4px 6px; vertical-align: middle; }
.hb-lab-table th { white-space: nowrap; }
.hb-lab-in { width: 100%; box-sizing: border-box; height: 28px; padding: 0px 8px; border: 1px solid transparent; border-radius: var(--hb-radius-md); background: transparent; color: var(--hb-ink); font: var(--hb-text-md) var(--hb-font); }
.hb-lab-in:hover { border-color: var(--hb-line); }
.hb-lab-in:focus { outline: none; border-color: var(--hb-primary); box-shadow: 0 0 0 3px color-mix(in srgb,var(--hb-primary) 18%,transparent); background: var(--hb-surface); }
.hb-lab-in.is-num { text-align: right; font-family: var(--hb-mono); min-width: 56px; }
.hb-lab-in.is-mono { font-family: var(--hb-mono); font-size: var(--hb-text-sm); min-width: 120px; }
.hb-lab-in:disabled { color: var(--hb-muted); background: transparent; }
.hb-lab-table tr.is-limitante td:first-child { box-shadow: inset 3px 0 0 var(--hb-primary); }
.hb-lab-table tr.is-prodotto td:first-child { box-shadow: inset 3px 0 0 var(--hb-success); }
.hb-lab-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-top: 1px solid var(--hb-line); }
.hb-ocl { display: grid; gap: 10px; }
.hb-lab-table td.num, .hb-lab-table th.num { white-space: nowrap; }
.hb-lab-sub { display: grid; gap: 1px; min-width: 150px; }
.hb-lab-in.is-name { font-weight: 600; }
.hb-lab-in.is-sm { height: 22px; font-size: var(--hb-text-sm); color: var(--hb-muted); min-width: 0px; }
.hb-lab-yield { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; }
.hb-lab-yield .hb-lab-in { width: 72px; }
.hb-lab-table td:has(> .hb-lab-in.is-num) { width: 70px; }
.hb-lab-table.is-stoich, .hb-lab-table.is-formula { table-layout: fixed; min-width: 720px; }
.hb-lab-table input, .hb-lab-table .hx-select { min-width: 0px !important; width: 100%; }
.hb-lab-table th { overflow: hidden; text-overflow: ellipsis; font-size: var(--hb-text-xs); }
.hb-lab-sub { min-width: 0px; }
.hb-lab-yield { display: grid; gap: 2px; justify-items: end; }
.hb-lab-yield .hb-lab-in { width: 100%; }
.hb-lab-table td:has(> .hb-lab-in.is-num) { width: auto; }
.hb-lab-table th, .hb-lab-table th.num { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.25; vertical-align: bottom; }
.hb-lab-table td:last-child { padding: 0px; text-align: center; }
.hb-lab-table td:last-child .hx-btn { --cut: 4px; }
.hb-lab-table.is-stoich { min-width: 0px; overflow-wrap: normal; white-space: normal; }
.hb-table-wrap:has(> .hb-lab-table.is-stoich) { position: relative; background: linear-gradient(to left,var(--hb-surface) 40%,transparent) right / 32px 100% no-repeat local,radial-gradient(farthest-side at 100% 50%,color-mix(in srgb,var(--hb-ink) 16%,transparent),transparent) right / 12px 100% no-repeat scroll; }
.hb-lab-table.is-stoich col.is-sub { width: 134px; }
.hb-lab-table.is-stoich col.is-role { width: 106px; }
.hb-lab-table.is-stoich col.is-eq { width: 56px; }
.hb-lab-table.is-stoich col.is-pur { width: 50px; }
.hb-lab-table.is-stoich col.is-rho { width: 62px; }
.hb-lab-table.is-stoich col.is-mw { width: 58px; }
.hb-lab-table.is-stoich col.is-n { width: 62px; }
.hb-lab-table.is-stoich col.is-mass { width: 72px; }
.hb-lab-table.is-stoich col.is-vol { width: 56px; }
.hb-lab-table.is-stoich col.is-got { width: 66px; }
.hb-lab-table.is-stoich col.is-del { width: 30px; }
.hb-lab-table.is-stoich .hb-lab-yield { display: grid; justify-items: end; gap: 1px; }
.hb-lab-pct { font: 600 var(--hb-text-xs) var(--hb-mono); color: var(--hb-ink-2); padding-right: 6px; }
.hb-lab-table.is-stoich th { padding: 8px 4px 6px; hyphens: manual; }
.hb-lab-table.is-stoich td { padding: 4px; }
.hb-lab-table.is-stoich td:last-child { padding: 0px; }
.hb-lab-table.is-stoich th:first-child, .hb-lab-table.is-stoich td:first-child { padding-left: 14px; }
.hb-lab-table.is-stoich th.is-sym { text-transform: none; letter-spacing: 0px; font-size: var(--hb-text-md); }
.hb-lab-unit { display: block; font-weight: var(--hb-weight-regular); font-size: var(--hb-text-xs); text-transform: none; letter-spacing: 0px; }
.hb-lab-table.is-stoich .hb-lab-in.is-num { padding: 0px 6px; }
.hb-lab-table.is-stoich .hx-dd { min-width: 0px; }
.hb-lab-table.is-stoich td.num small { display: block; }
.hb-lab-table.is-stoich th:first-child, .hb-lab-table.is-stoich td:first-child { position: sticky; left: 0px; z-index: var(--hb-z-raised); background: var(--hb-surface); box-shadow: inset -1px 0 0 var(--hb-line); }
.hb-lab-table.is-stoich tbody tr:hover td:first-child { background: color-mix(in srgb,var(--hb-primary) 5%,var(--hb-surface)); }
.hb-lab-table.is-stoich tr.is-limitante td:first-child { box-shadow: inset 3px 0 0 var(--hb-primary),inset -1px 0 0 var(--hb-line); }
.hb-lab-table.is-stoich tr.is-prodotto td:first-child { box-shadow: inset 3px 0 0 var(--hb-success),inset -1px 0 0 var(--hb-line); }
.hb-lab-metrics { container-type: inline-size; padding: 10px 14px 12px; border-top: 1px solid var(--hb-line); font-size: var(--hb-text-md); overflow-wrap: normal; white-space: normal; }
.hb-lab-metrics dl { display: grid; grid-template-columns: fit-content(40%) minmax(0px, 1fr); align-items: baseline; gap: 8px 16px; margin: 0px; }
.hb-lab-metrics dl > div { display: contents; }
.hb-lab-metrics dt { color: var(--hb-muted); }
.hb-lab-metrics dd { display: grid; grid-template-columns: auto minmax(0px, 1fr); align-items: baseline; justify-content: start; gap: 1px 8px; margin: 0px; }
.hb-lab-metrics dd b { font-family: var(--hb-mono); font-weight: var(--hb-weight-semibold); }
.hb-lab-metrics dd > .hb-muted { grid-column: 1 / -1; font-size: var(--hb-text-sm); line-height: 1.4; }
.hb-lab-metrics p { margin: 10px 0px 0px; padding-top: 8px; border-top: 1px dashed var(--hb-line); }
@container (max-width: 480px) {
.hb-lab-metrics dl { grid-template-columns: minmax(0px, 1fr); gap: 2px; }
.hb-lab-metrics dd { margin-bottom: 8px; }
}
.hb-head-select { width: 260px; max-width: 50%; }
.hx-dd-wrap.hb-head-select { width: 260px; max-width: 50%; flex: 0 0 auto; }
.hb-logo { flex: 0 0 auto; display: block; }
.hb-wordmark-svg { display: block; flex: 0 0 auto; }
.hb-dialog.hb-share { width: min(640px, -32px + 100vw); height: min(680px, 100dvh - 48px); }
.hb-share-title b { font-weight: 600; }
.hb-share-row { display: flex; gap: 8px; align-items: flex-start; }
.hb-chipfield { flex: 1 1 0%; min-width: 0px; min-height: var(--hx-h-md); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 4px 8px 4px 30px; box-sizing: border-box; position: relative; border-radius: var(--hb-radius-md); background: var(--hb-surface); box-shadow: inset 0 0 0 1px var(--hb-line-strong); cursor: text; }
.hb-chipfield:focus-within { box-shadow: inset 0 0 0 1px var(--hb-primary),0 0 0 3px color-mix(in srgb,var(--hb-primary) 22%,transparent); }
.hb-chipfield-ic { position: absolute; left: 10px; top: 10px; color: var(--hb-muted); }
.hb-chipfield input { flex: 1 1 0%; min-width: 160px; height: 24px; border: 0px; outline: none; background: transparent; color: var(--hb-ink); font: 400 var(--hb-text-lg) var(--hb-font); }
.hb-share-role.hx-dd-wrap { flex: 0 0 140px; }
.hb-share-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.hb-share-head b { font-size: var(--hb-text-lg); }
.hb-share-head .hb-muted { font-size: var(--hb-text-sm); }
.hb-share-list { list-style: none; margin: 0px; padding: 0px; display: grid; gap: 2px; }
.hb-share-person { border-radius: var(--hb-radius-md); display: grid; grid-template-columns: 34px minmax(0px, 1fr) auto; gap: 12px; align-items: center; padding: 6px 6px 6px 4px; }
.hb-share-person:hover { background: color-mix(in srgb,var(--hb-ink) 4%,transparent); }
.hb-share-who { display: grid; gap: 1px; min-width: 0px; }
.hb-share-who b { display: flex; align-items: center; gap: 8px; font-size: var(--hb-text-lg); font-weight: 600; min-width: 0px; }
.hb-share-who span { font-size: var(--hb-text-md); color: var(--hb-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-share-owner { font-size: var(--hb-text-md); color: var(--hb-muted); padding-right: 10px; }
.hb-share-people .hb-share-list { min-width: 0px; max-width: none; gap: 2px; }
.hb-share-acts { display: flex; align-items: center; gap: 2px; }
.hb-share-acts .hb-share-prole { margin-right: 4px; }
.hb-share-person.is-pending .hx-avatar { opacity: 0.55; }
.hb-share-who .hb-share-state { display: flex; align-items: center; gap: 4px; }
@media (max-width: 520px) {
.hb-share-person { grid-template-columns: 34px minmax(0px, 1fr); }
.hb-share-acts { grid-column: 2; }
}
.hb-share-prole.hx-dd-wrap { width: 118px; flex: 0 0 auto; }
.hb-share-general { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--hb-line); }
.hb-share-general .hb-share-head { margin: 0px; }
.hb-share-access { display: grid; grid-template-columns: 40px minmax(0px, 1fr) auto; gap: 12px; align-items: start; }
.hb-share-access-ic { width: 40px; height: 40px; display: grid; place-items: center; color: var(--hb-muted); background: var(--hb-surface-3); clip-path: var(--hx-hex-pt); }
.hb-share-access-main { display: grid; gap: 4px; min-width: 0px; }
.hb-share-access-sel.hx-dd-wrap { width: 250px; max-width: 100%; }
@media (max-width: 560px) {
.hb-share-row { flex-direction: column; align-items: stretch; }
.hb-share-role.hx-dd-wrap { flex: 0 0 auto; width: 100%; }
.hb-share-access { grid-template-columns: 40px minmax(0px, 1fr); }
}
.hb-share-btn { margin: 0px 2px 0px 4px; }
.hb-share-list { display: grid; gap: 4px; min-width: 180px; max-width: 280px; text-align: left; }
.hb-share-general > * { min-width: 0px; }
.hb-share-access { grid-template-columns: 40px minmax(0px, 1fr) 118px; }
@media (max-width: 560px) {
.hb-share-access { grid-template-columns: 40px minmax(0px, 1fr); }
}
.hb-top > .hx-btn, .hb-share-stack { flex: 0 0 auto; }
.hb-share-btn .hx-btn-text { overflow: visible; }
.hb-crumbs { min-width: 0px; flex: 1 1 auto; }
.hb-plan { --cut: 10px; --bd: var(--hb-line-strong); position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 4px; padding: 16px 14px 14px; background: var(--hb-surface); clip-path: polygon(calc(var(--cut) + 1px) -1px,calc(100% + 1px) -1px,calc(100% + 1px) calc(100% - var(--cut) - 1px),calc(100% - var(--cut) - 1px) calc(100% + 1px),-1px calc(100% + 1px),-1px calc(var(--cut) + 1px)); }
.hb-plan::before { content: ""; position: absolute; inset: 0px; z-index: var(--hb-z-below); pointer-events: none; box-sizing: border-box; border: var(--bw, 1px) solid var(--bd, transparent); background: linear-gradient(135deg,var(--bd, transparent) calc(var(--cut) * .7071 + var(--bw, 1px) - .35px),transparent calc(var(--cut) * .7071 + var(--bw, 1px) + .35px)) 0 0 / calc(var(--cut) + 4px) calc(var(--cut) + 4px) no-repeat border-box,linear-gradient(315deg,var(--bd, transparent) calc(var(--cut) * .7071 + var(--bw, 1px) - .35px),transparent calc(var(--cut) * .7071 + var(--bw, 1px) + .35px)) 100% 100% / calc(var(--cut) + 4px) calc(var(--cut) + 4px) no-repeat border-box; }
.hb-plan.is-pick { --bd: var(--hb-primary); background: color-mix(in srgb,var(--hb-primary) 4%,var(--hb-surface)); }
.hb-plan-tag { font-size: var(--hb-text-sm); color: var(--hb-muted); min-height: 32px; }
.hb-plan-price { display: flex; align-items: baseline; gap: 4px; margin-top: 6px; }
.hb-plan-price span { font: 700 var(--hb-text-3xl)/1 var(--hb-font); letter-spacing: -0.02em; }
.hb-plan-price small, .hb-plan-bill { font-size: var(--hb-text-sm); color: var(--hb-muted); }
.hb-plan ul { list-style: none; margin: 10px 0px 12px; padding: 0px; display: grid; gap: 6px; font-size: var(--hb-text-md); flex: 1 1 0%; }
.hb-plan li { display: flex; gap: 6px; align-items: flex-start; line-height: 1.35; }
.hb-plan li .hx-licon { color: var(--hb-success); margin-top: 1px; }
@keyframes hb-login-msg-in { 
  0% { opacity: 0; transform: translateY(-2px); }
}
.hb-plan-price span, .hb-plan-price small { white-space: nowrap; }
.hb-plan-tag { min-height: 0px; }
.hb-plan ul { margin: 8px 0px 12px; }
.hb-lab-table.is-fixed .hb-lab-state, .hb-lab-table .hb-lab-sub { min-width: 0px; }
.hb-lab-in.is-sm { height: 24px; font-size: var(--hb-text-sm); color: var(--hb-ink-2); }
.hb-bio-product > button, .hb-lab-actions > button { justify-self: start; width: auto; }
.hb-plan { gap: var(--hb-space-2); padding: var(--hb-space-5) var(--hb-space-5) var(--hb-space-4); }
.hb-plan-top { display: flex; align-items: center; justify-content: space-between; gap: var(--hb-space-2); min-height: 24px; }
.hb-plan-name { font-size: var(--hb-text-xl); }
.hb-plan-price { align-items: baseline; gap: var(--hb-space-2); margin-top: var(--hb-space-3); }
.hb-plan-price s { font-size: var(--hb-text-lg); color: var(--hb-muted); text-decoration-thickness: 1px; }
.hb-plan-bill { margin-bottom: var(--hb-space-3); }
.hb-plan ul { margin-top: var(--hb-space-3); padding-top: var(--hb-space-3); border-top: 1px solid var(--hb-line); }
.hb-sr-only { width: 1px; height: 1px; padding: 0px; margin: -1px; overflow: hidden; clip: rect(0px, 0px, 0px, 0px); white-space: nowrap; border: 0px; position: absolute !important; }
.hb-svg:focus { outline: none; }
.hb-svg:focus-visible { outline: 2px solid var(--hb-primary); outline-offset: -2px; }
.hb-canvas:not(.is-active):not(.is-focus) { touch-action: pan-x pan-y pinch-zoom; }
@keyframes hb-kb-pulse { 
  50% { stroke-width: 0.085; }
}
.hb-fz-hint { position: absolute; right: 10px; top: 10px; z-index: var(--hb-z-float); pointer-events: none; padding: 3px 9px; border-radius: var(--hb-radius-pill); font: 500 var(--hb-text-sm)/1.5 var(--hb-font); background: color-mix(in srgb,var(--hb-elev) 92%,transparent); color: var(--hb-ink-2); box-shadow: 0 0 0 1px var(--hb-line),var(--hb-shadow); opacity: 0; transform: translateY(-2px); transition: opacity var(--hb-dur-base) ease,transform var(--hb-dur-base) ease; }
.hb-fz:hover .hb-fz-hint:not(.is-armed) { opacity: 1; transform: none; transition-delay: 0.35s; }
@keyframes hb-fz-out { 
  0%, 70% { opacity: 1; }
  100% { opacity: 0; }
}
@media (hover: none) {
.hb-fz-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
.hb-fz-hint { transition: none; transform: none; }
}
.hb-3d-stage { height: var(--hb-block-h, 380px); }
.hb-canvas > .hb-fz-hint { inset: auto auto 12px 12px; }
@keyframes hb-mfocus-in { 
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.hb-figure { position: relative; }
@keyframes hb-tools-in { 
  0% { opacity: 0; }
}
.hb-zoom { opacity: 0; pointer-events: none; transition: opacity var(--hb-dur-fast) ease; }
.hb-canvas:hover > .hb-zoom, .hb-canvas:focus-within > .hb-zoom, .hb-canvas.is-active > .hb-zoom, .hb-canvas.is-focus > .hb-zoom { opacity: 1; pointer-events: auto; }
@media (hover: none) {
.hb-canvas:not(.is-active):not(.is-focus) > .hb-zoom { opacity: 0; pointer-events: none; }
}
.hb-arrow.is-note > path:first-child { stroke-width: 0.035; }
@media (max-width: 560px) {
.hb-fig-summary > .hb-formula-tag ~ .hb-formula-tag { display: none; }
}
@keyframes hb-gs-burst { 
  0% { opacity: 0; transform: rotate(var(--a)) translateY(0) scale(.4); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(-30px) scale(1) rotate(90deg); }
}
@media print {
html, body, #root { height: auto; overflow: visible; background: var(--hb-white) !important; }
.hb-side, .hb-top, .hb-inspector, .hb-focus, .hb-dropzone, .hb-mobile-menu, .hb-toaster-host, .hx-layer, .hx-dialog-backdrop, .hx-dialog-viewport, .hb-gutter, .hb-resize-out, .hb-resize, .hb-doc-tail, .hb-selrect, .hb-doclimit-bar, .hb-lockbar, .hb-slash, .hb-toolbar, .hb-zoom, .hb-grid-act, .hb-math-editbtn, .hb-math-edit, .hb-math-bar, .hb-3d-bar, .hb-3d-view, .hb-3d-busy, .hb-fz-hint, .hb-dtable-bar, .hb-spectrum-paste, .hb-sp-notes, .hb-sp-mol, .hb-sp-pick, .hb-sp-cursor, .hb-sp-probe, .hb-sp-tip, .hb-sp-ref:not(.is-open), .hb-sp-ref-bar, .hb-sp-ref-tools, .hb-spectrum-head .hx-seg, .hb-spectrum-head .hx-btn, .hb-sp-band, .hb-canvas-empty, .hb-image .hx-btn, input[type="file"] { display: none !important; }
:root .hb-app, :root .hb-app.is-rail { display: block; height: auto; background: var(--hb-white) !important; }
:root .hb-main, :root .hb-body { display: block; height: auto; min-height: 0px; }
:root .hb-scroll { overflow: visible; height: auto; background: var(--hb-white); }
:root .hb-doc { padding: 0px; min-height: 0px; }
:root .hb-doc-head, :root .hb-block:not(.is-wide), :root .hb-block.is-wide { max-width: none; margin-left: 0px; margin-right: 0px; }
:root .hb-doc-meta .hb-docmeter { display: none; }
:root .hb-block.is-active .hb-figure, :root .hb-figure, :root .hb-props, :root .hb-3d, :root .hb-spectrum, :root .hb-exercise { box-shadow: none; }
.hb-title::placeholder { color: transparent; }
.hb-block.is-h1, .hb-block.is-h2, .hb-block.is-h3 { break-after: avoid; }
.hb-figure, .hb-block.is-canvas, .hb-block.is-table, .hb-block.is-props, .hb-block.is-image, .hb-block.is-mol3d, .hb-block.is-spectrum, .hb-block.is-math, .hb-block.is-stoich, .hb-block.is-exercise, .hb-block.is-callout, .hb-block.is-code, table, tr, img, svg { break-inside: avoid; }
thead { display: table-header-group; }
.hb-canvas { border: 0px; background: var(--hb-white) !important; }
.hb-canvas .hb-grid, .hb-canvas .hb-grid-line, .hb-canvas .hb-ghost, .hb-canvas .hb-ghost-edge, .hb-canvas .hb-ghost-ring, .hb-canvas .hb-ghost-dot, .hb-canvas .hb-marquee, .hb-canvas .hb-draft, .hb-canvas .hb-mfocus, .hb-canvas .hb-free-dot, .hb-canvas .hb-ctx { display: none !important; }
.hb-figure { border-color: var(--hb-gray-200) !important; }
.hb-3d-stage { height: auto !important; }
:root .hb-doc input, :root .hb-doc textarea, :root .hb-doc select { border-color: transparent; background: transparent; box-shadow: none; }
a { color: inherit; }
:root .hb-table-wrap:has(> .hb-lab-table.is-stoich) { overflow: visible; background: none; }
:root .hb-lab-table.is-stoich { zoom: 0.8; }
.hb-skip, .hb-lab-actions button, .hb-lab-table.is-stoich td:last-child button { display: none !important; }
}
.hb-resize { position: relative; outline: none; }
.hb-resize:focus-visible span, .hb-resize.is-dragging span { background: var(--hb-primary); }
.hb-resize:focus-visible { box-shadow: inset 0 0 0 2px color-mix(in srgb,var(--hb-primary) 45%,transparent); }
.hb-resize-out { margin-top: -2px; opacity: 0; transition: opacity var(--hb-dur-fast); }
.hb-block:hover .hb-resize-out, .hb-block.is-active .hb-resize-out, .hb-resize-out:focus-within { opacity: 1; }
.hb-resize-out .hb-resize { background: transparent; border-top: 0px; height: 14px; border-radius: 0 0 var(--hb-radius-lg) var(--hb-radius-lg); }
@media (hover: none) {
.hb-resize-out { opacity: 1; }
}
@keyframes hb-flash { 
  0%, 35% { opacity: 1; }
  100% { opacity: 0; }
}
.hb-pm { outline: none; white-space: pre-wrap; overflow-wrap: anywhere; caret-color: var(--hb-primary); }
.hb-pm:focus, .hb-pm:focus-visible { outline: none; box-shadow: none; }
.hb-pm .hb-text { overflow: visible; }
.hb-pm ::selection { background: color-mix(in srgb,var(--hb-primary) 24%,transparent); }
@keyframes hb-rt-in { 
  0% { opacity: 0; transform: translateY(3px); }
  100% { opacity: 1; transform: none; }
}
@keyframes hb-rt-in-below { 
  0% { opacity: 0; transform: translateY(-3px); }
  100% { opacity: 1; transform: none; }
}
@keyframes hb-cm-flash { 
  0%, 30% { box-shadow: 0 0 0 3px color-mix(in srgb,var(--hb-warning) 55%,transparent); background: color-mix(in srgb,var(--hb-warning) 8%,transparent); }
  100% { box-shadow: transparent 0px 0px 0px 3px; background: transparent; }
}
@keyframes hb-cm-pop { 
  0% { opacity: 0; transform: translateY(3px); }
}
.hb-docmeter { --c: 4px; display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px 2px 6px; border: 0px; border-radius: 0px; background: transparent; color: inherit; font-style: inherit; font-variant-ligatures: inherit; font-variant-caps: inherit; font-variant-east-asian: inherit; font-variant-alternates: inherit; font-variant-position: inherit; font-variant-emoji: inherit; font-weight: inherit; font-stretch: inherit; font-size: inherit; line-height: inherit; font-family: inherit; font-optical-sizing: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; font-language-override: inherit; font-variant-numeric: tabular-nums; cursor: pointer; clip-path: polygon(calc(var(--c) + 1px) -1px,calc(100% + 1px) -1px,calc(100% + 1px) calc(100% - var(--c) - 1px),calc(100% - var(--c) - 1px) calc(100% + 1px),-1px calc(100% + 1px),-1px calc(var(--c) + 1px)); transition: background var(--hb-dur-fast) var(--hb-ease); }
.hb-docmeter:hover { background: color-mix(in srgb,var(--hb-ink) 6%,transparent); }
.hb-docmeter:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--hb-primary); }
.hb-docmeter-bar, .hb-upg-meter { height: 4px; border-radius: var(--hb-radius-sm); background: var(--hb-surface-3); overflow: hidden; }
.hb-docmeter-bar { width: 36px; }
.hb-docmeter-bar i, .hb-upg-meter i { display: block; height: 100%; background: var(--hb-primary); border-radius: var(--hb-radius-sm); }
@keyframes hb-toast-in { 
  0% { opacity: 0; transform: translateY(8px); }
}
.hb-app .hx-btn.hb-mobile-menu { display: none; }
@media (max-width: 760px) {
.hb-app .hx-btn.hb-mobile-menu { display: inline-flex; }
}
@keyframes hb-rail-in { 
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes hb-selbar-in { 
  0% { opacity: 0; transform: translateY(-3px); }
}
.hb-main.has-hist > :not(.hb-hist, .hb-hist-boot) { visibility: hidden; }
@keyframes hb-hist-in { 
  0% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: none; }
}
.hb-top:not(.hb-top-home) .hb-crumbs { flex: 0 1 auto; }
.hb-top .hb-crumb-doc { max-width: min(300px, 32vw); }
.hb-status { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; height: 26px; padding: 0px 7px; border-radius: var(--hb-radius-md); font: 400 var(--hb-text-sm) var(--hb-font); color: var(--hb-muted); white-space: nowrap; cursor: default; }
.hb-status .hx-licon { color: var(--hb-muted); opacity: 0.85; }
.hb-status:hover { background: color-mix(in srgb,var(--hb-ink) 5%,transparent); color: var(--hb-ink-2); }
.hb-status:focus-visible { outline: 2px solid var(--hb-primary); outline-offset: 1px; }
.hb-top-desk { display: contents; }
.hb-top .hb-share-btn { margin: 0px 2px 0px 6px; }
.lay-mobile .hb-top:not(.hb-top-home) .hb-crumbs { flex: 1 1 auto; }
.lay-mobile .hb-top:not(.hb-top-home) .hb-crumb-root, .lay-mobile .hb-top:not(.hb-top-home) .hb-crumbs > .hx-licon, .lay-mobile .hb-top:not(.hb-top-home) .hb-crumb-doc ~ .hb-crumb-doc { display: none; }
.lay-mobile .hb-top:not(.hb-top-home) .hb-crumb-doc { max-width: none; font-size: var(--hb-text-xl); }
.lay-mobile .hb-top:not(.hb-top-home) .hb-spacer, .lay-mobile .hb-top:not(.hb-top-home) .hb-here, .lay-mobile .hb-top:not(.hb-top-home) .hb-trialbadge, .lay-mobile .hb-top:not(.hb-top-home) .hb-top-desk, .lay-mobile .hb-top:not(.hb-top-home) .hb-share-stack, .lay-mobile .hb-side-toggle { display: none; }
.hb-side-toggle, .hb-panel-btn { color: var(--hb-ink-2); }
.lay-mobile .hb-top:not(.hb-top-home) .hb-panel-btn, .lay-mobile .hb-top:not(.hb-top-home) .hb-engine-hint { display: none; }
.lay-mobile .hb-top:not(.hb-top-home) .hb-status:not(.is-error):not(.is-saving) { display: none; }
.lay-mobile .hb-top:not(.hb-top-home) .hb-status-tx { display: none; }
.lay-mobile .hb-top:not(.hb-top-home) .hb-share-btn { flex: 0 0 auto; margin: 0px; padding-inline: 8px; }
.lay-mobile .hb-top:not(.hb-top-home) .hb-share-btn .hx-btn-text { display: none; }
.lay-mobile .hb-top:not(.hb-top-home) .hb-crumb-doc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lay-mobile .hb-top:not(.hb-top-home) { gap: 2px; padding: 0px 6px; }
@media (pointer: coarse) {
.hb-top .hx-btn { min-height: 36px; min-width: 36px; }
}
.hb-app.panel-overlay .hb-body, .hb-app.panel-overlay.insp-closed .hb-body, .hb-app.panel-overlay.has-comments .hb-body { grid-template-columns: minmax(0px, 1fr); }
.hb-app.panel-overlay .hb-inspector, .hb-app.panel-overlay .hb-cm-drawer { position: fixed; right: 0px; top: 52px; bottom: 0px; width: min(var(--hb-insp-w, 360px),92vw); z-index: calc(var(--hb-z-drawer) + 1); grid-area: auto; border-left: 1px solid var(--hb-line-strong); box-shadow: var(--hb-shadow-lg); animation: 0.18s ease-out 0s 1 normal none running hb-drawer-in; }
@keyframes hb-drawer-in { 
  0% { transform: translate(14px); opacity: 0; }
}
@keyframes hb-scrim-in { 
  0% { opacity: 0; }
}
.hb-inspector > .hb-insp { height: 100%; min-height: 0px; }
.hb-insp-tabs { flex: 1 1 auto; min-height: 0px; }
.hb-insp-tabs > .hx-tabpanel { flex: 1 1 auto; min-height: 0px; overflow-y: auto; overscroll-behavior: contain; margin: 0px -16px; padding: 14px 16px 0px; }
.hb-insp-mols { position: sticky; top: -14px; z-index: var(--hb-z-raised-2); margin: -14px -16px 0px; padding: 10px 16px; background: color-mix(in srgb,var(--hb-surface) 92%,transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--hb-line); }
.hb-insp-mols .hx-tag { cursor: pointer; }
.hb-insp-mols { max-height: 66px; overflow-y: auto; overscroll-behavior: contain; }
.hb-insp-mol { max-width: 100%; }
.hb-insp-mol { display: inline-flex; }
.hb-insp-group { font: 500 var(--hb-text-sm)/1 var(--hb-font); padding: 5px 10px; border: 0px; cursor: pointer; color: var(--hb-ink-2); background: var(--hb-surface-2); clip-path: polygon(6px 0px, calc(100% - 6px) 0px, 100% 50%, calc(100% - 6px) 100%, 6px 100%, 0px 50%); }
.hb-insp-group:hover, .hb-insp-group.is-focus { background: color-mix(in srgb,var(--hb-primary) 14%,var(--hb-surface)); color: var(--hb-accent-ink); }
.hb-insp-group:focus-visible { outline: 2px solid var(--hb-primary); outline-offset: 1px; }
.hb-rules li.is-link { cursor: pointer; border-radius: var(--hb-radius-md); position: relative; grid-template-columns: 18px minmax(0px, 1fr) 14px; margin: 0px -6px; padding: 4px 6px; }
.hb-rules li.is-link:hover, .hb-rules li.is-focus { background: color-mix(in srgb,var(--hb-primary) 8%,transparent); }
.hb-rules li.is-link:focus-visible { outline: 2px solid var(--hb-primary); outline-offset: 1px; }
.hb-rule-go { margin-left: auto; align-self: center; color: var(--hb-muted); opacity: 0; transition: opacity var(--hb-dur-fast); flex: 0 0 auto; }
.hb-rules li.is-link:hover .hb-rule-go, .hb-rules li.is-focus .hb-rule-go { opacity: 1; }
.hb-fc-title { font: 600 var(--hb-text-xl)/1.3 var(--hb-font); color: var(--hb-ink); overflow-wrap: anywhere; }
.hb-chk-mark { --c: var(--hb-muted); flex: 0 0 auto; width: 24px; height: 24px; display: grid; place-items: center; clip-path: var(--hx-hex-pt); color: var(--c); background: color-mix(in srgb,var(--c) 16%,transparent); }
.hb-rules.hb-chk .hb-chk-mark, .hb-rules.hb-chk .hb-chk-mark span { display: grid; color: var(--c); margin: 0px; }
.hb-chk li.is-info .hb-chk-mark { --c: var(--hb-accent-ink); }
.hb-chk li.is-ok .hb-chk-mark { --c: var(--hb-success); }
.hb-rules.hb-chk { gap: var(--hb-space-2); }
.hb-rules.hb-chk li, .hb-rules.hb-chk li.is-link { grid-template-columns: 24px minmax(0px, 1fr); gap: var(--hb-space-3); align-items: start; margin: 0px; padding: var(--hb-space-2) var(--hb-space-3); border-radius: var(--hb-radius-lg); }
.hb-rules.hb-chk li.is-link { grid-template-columns: 24px minmax(0px, 1fr) 14px; }
.hb-rules.hb-chk li.is-link:hover, .hb-rules.hb-chk li.is-focus { background: color-mix(in srgb,var(--hb-primary) 6%,var(--hb-surface)); }
.hb-chk-tx { display: grid; gap: 2px; min-width: 0px; }
.hb-chk-head { display: flex; align-items: center; justify-content: space-between; gap: var(--hb-space-2); min-height: 24px; }
.hb-rules.hb-chk .hb-chk-head b { min-width: 0px; color: var(--hb-ink); }
.hb-rules.hb-chk .hb-chk-head .hx-tag { flex: 0 0 auto; }
.hb-rules.hb-chk .hx-tag { display: inline-flex; color: var(--c); font: var(--hb-weight-medium) var(--hb-text-sm) / 1 var(--hb-font); }
.hb-rules.hb-chk .hx-tag span, .hb-rules.hb-chk .hx-btn span { display: inline-flex; color: inherit; font-size: inherit; line-height: inherit; }
.hb-rules.hb-chk .hb-chk-detail { color: var(--hb-ink-2); }
.hb-chk-n { margin-left: var(--hb-space-1); font: var(--hb-weight-medium) var(--hb-text-xs) var(--hb-mono); color: var(--hb-muted); }
.hb-insp-head { gap: 8px; }
.hb-insp-head .hb-insp-name { flex: 0 1 auto; border: 0px; background: none; padding: 3px 6px; margin-left: -6px; border-radius: var(--hb-radius-md); cursor: pointer; color: var(--hb-ink); font: 600 var(--hb-text-lg) var(--hb-font); }
.hb-insp-head .hb-insp-name:hover { background: color-mix(in srgb,var(--hb-ink) 6%,transparent); }
.hb-insp-head .hb-insp-name:focus-visible { outline: 2px solid var(--hb-primary); outline-offset: 1px; }
.hb-insp-fig { flex: 0 0 auto; font: 600 var(--hb-text-sm) var(--hb-mono); color: var(--hb-accent-ink); background: color-mix(in srgb,var(--hb-primary) 11%,transparent); padding: 3px 8px; border-radius: var(--hb-radius-sm); white-space: nowrap; }
.hb-insp-title { min-width: 0px; overflow: hidden; text-overflow: ellipsis; }
.hb-insp-follow { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0px 7px; border-radius: var(--hb-radius-pill); font: 500 var(--hb-text-xs) var(--hb-font); color: var(--hb-accent-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--hb-primary) 40%,transparent); white-space: nowrap; cursor: help; }
.hb-insp-head .hb-insp-close { margin-left: auto; }
.hb-insp-stack { gap: 14px; }
.hb-isecs { display: flex; flex-direction: column; margin-top: 2px; }
.hb-isecs-bar { display: flex; align-items: center; gap: 2px; padding: 0px 0px 6px; }
.hb-isecs-bar > span { flex: 1 1 0%; font: 600 var(--hb-text-xs) var(--hb-font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--hb-muted); }
.hb-isecs-bar > button { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0px 7px; border: 0px; border-radius: var(--hb-radius-md); background: none; cursor: pointer; font: 500 var(--hb-text-sm) var(--hb-font); color: var(--hb-ink-2); }
.hb-isecs-bar > button:hover { background: color-mix(in srgb,var(--hb-ink) 6%,transparent); color: var(--hb-ink); }
.hb-isecs-bar > button:focus-visible { outline: 2px solid var(--hb-primary); outline-offset: 1px; }
.hb-isecs .hb-isec { display: block; border-top: 1px solid var(--hb-line); }
.hb-isecs .hb-isec:last-child { border-bottom: 1px solid var(--hb-line); }
.hb-isec-head { display: flex; align-items: center; gap: 8px; min-height: 38px; }
.hb-isec-head > .hb-isec-toggle { flex: 1 1 auto; min-width: 0px; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0px 4px 0px 0px; margin: 0px; border: 0px; border-radius: var(--hb-radius-md); background: none; cursor: pointer; text-align: left; font: 600 var(--hb-text-md) var(--hb-font); letter-spacing: 0px; text-transform: none; color: var(--hb-ink-2); }
.hb-isec-head > .hb-isec-toggle > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-isec.is-open > .hb-isec-head > .hb-isec-toggle, .hb-isec-head > .hb-isec-toggle:hover { color: var(--hb-ink); }
.hb-isec-head > .hb-isec-toggle:focus-visible { outline: 2px solid var(--hb-primary); outline-offset: -2px; }
.hb-isec-chev { flex: 0 0 auto; color: var(--hb-muted); transition: transform var(--hb-dur-fast) ease; }
.hb-isec.is-open .hb-isec-chev { transform: rotate(90deg); color: var(--hb-primary); }
.hb-isec-aside { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; font-size: var(--hb-text-sm); color: var(--hb-muted); }
.hb-isec-n { font: 500 var(--hb-text-sm) var(--hb-mono); color: var(--hb-muted); }
.hb-isec-note { font-size: var(--hb-text-sm); color: var(--hb-muted); }
.hb-isec-body { display: grid; gap: 8px; padding: 2px 0px 14px; min-width: 0px; }
.hb-spec-head { display: grid; gap: 8px; }
.hb-spec-top { display: flex; align-items: flex-start; gap: 8px; }
.hb-spec-names { flex: 1 1 0px; min-width: 0px; display: grid; gap: 2px; justify-items: start; }
.hb-spec-names .hx-eyebrow { min-height: 0px; margin: 0px; }
.hb-spec-tools { flex: 0 0 auto; display: flex; gap: 4px; }
.hb-spec-3dwrap { position: relative; display: inline-flex; }
.hb-spec-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.hb-spec-tags .hx-tag.is-interactive { cursor: pointer; }
.hb-spec-link { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; padding: 2px 0px; border: 0px; background: none; cursor: pointer; font: var(--hb-weight-medium) var(--hb-text-sm) var(--hb-font); color: var(--hb-accent-ink); }
.hb-spec-link:hover:not(:disabled) { text-decoration: underline; }
.hb-spec-link:disabled { color: var(--hb-muted); cursor: default; }
.hb-spec-link:focus-visible { outline: 2px solid var(--hb-primary); outline-offset: 2px; border-radius: var(--hb-radius-sm); }
.hb-spec { border: 1px solid var(--hb-line); border-radius: var(--hb-radius-lg); overflow: hidden; background: var(--hb-surface-2); }
.hb-spec table { width: 100%; border-collapse: collapse; font-size: var(--hb-text-md); }
.hb-spec th, .hb-spec td { padding: 6px 0px; border-bottom: 1px solid var(--hb-line); text-align: left; font-weight: var(--hb-weight-regular); color: var(--hb-ink-2); }
.hb-spec tr:last-child > * { border-bottom: 0px; }
.hb-spec th { padding-left: 12px; width: 38%; color: var(--hb-muted); white-space: nowrap; }
.hb-spec td.v { font-style: ; font-variant-ligatures: ; font-variant-caps: ; font-variant-east-asian: ; font-variant-alternates: ; font-variant-position: ; font-variant-emoji: ; font-weight: ; font-stretch: ; font-size: ; line-height: ; font-family: ; font-optical-sizing: ; font-size-adjust: ; font-kerning: ; font-feature-settings: ; font-variation-settings: ; font-language-override: ; color: var(--hb-ink); text-align: right; padding-right: 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hb-spec td.m { font-size: var(--hb-text-sm); color: var(--hb-muted); padding-right: 12px; }
.hb-spec tr.is-formula td { padding: 10px 12px 10px 0px; }
.hb-spec tr.is-formula .hb-formula { font-size: var(--hb-text-2xl); margin: 0px; text-align: right; }
.hb-spec tr.is-cut > * { border-bottom-color: var(--hb-line-strong); }
@keyframes hb-skel { 
  100% { background-position: -200% 0px; }
}
.hb-crumb-link { border: 0px; background: none; cursor: pointer; font: inherit; color: inherit; padding: 2px 6px; margin-left: -6px; border-radius: var(--hb-radius-md); display: inline-flex; align-items: center; gap: 4px; }
.hb-crumb-link:hover { background: color-mix(in srgb,var(--hb-ink) 6%,transparent); color: var(--hb-ink); }

/* Il sito pubblico (src/site). Usa solo i token dell'app (tokens.css, che la build mette davanti a questo file):
 * stessi colori, font e tema scuro. Le classi sono `st-*` per non incrociare quelle dell'app. */
*,
*::before,
*::after {
  box-sizing: border-box;
}
/* Tra una pagina e l'altra il browser mostra per un istante la sua "tela": deve essere già del colore del tema,
   non bianca. color-scheme glielo dice prima ancora che arrivi il CSS (c'è anche il meta nell'<head>), e lo sfondo
   sta su html, non solo su body. */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  color-scheme: light dark;
  background: var(--hb-surface);
}
:root[data-theme="dark"] {
  color-scheme: dark;
}
:root[data-theme="light"] {
  color-scheme: light;
}
/* Il passaggio tra le pagine del sito: la pagina vecchia resta finché la nuova è pronta, poi una dissolvenza breve
   (browser che la supportano: Chrome, Edge, Safari recenti; negli altri resta il cambio pagina normale). */
@view-transition {
  navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.16s;
}
body {
  margin: 0;
  background: var(--hb-surface);
  color: var(--hb-ink);
  font: var(--hb-weight-regular) 16px/1.6 var(--hb-font);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}
:focus-visible {
  outline: 2px solid var(--hb-primary);
  outline-offset: 3px;
  border-radius: var(--hb-radius-sm);
}

.st-wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.st-narrow {
  max-width: 760px;
}
.st-skip {
  position: absolute;
  left: -9999px;
}
.st-skip:focus {
  left: 16px;
  top: 12px;
  z-index: 10;
  padding: 8px 12px;
  background: var(--hb-surface);
}

/* ── intestazione ── */
.st-head {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--hb-surface) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hb-line);
}
/* più larga del testo della pagina e più alta: il marchio a sinistra e le azioni a destra stanno ai bordi dello
   schermo largo, come nelle intestazioni dei siti di prodotto */
.st-head-row {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 72px;
  max-width: 1360px;
  padding-inline: 32px;
  flex-wrap: wrap;
}
.st-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.st-nav {
  display: flex;
  gap: 4px;
  flex: 1;
}
.st-nav a {
  padding: 6px 12px;
  border-radius: var(--hb-radius-md);
  color: var(--hb-ink-2);
  font-size: 15px;
  font-weight: var(--hb-weight-medium);
  text-decoration: none;
}
.st-nav a:hover,
.st-nav a[aria-current="page"] {
  color: var(--hb-ink);
  background: var(--hb-surface-3);
}
.st-head-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ── pulsanti ──
   Sono quelli dell'app (classi hx-btn, regole in captures/app.css): qui solo ciò che serve a un link e la misura
   grande per gli inviti principali della pagina. */
a.hx-btn {
  text-decoration: none;
}
.hx-btn.st-big {
  --hx-cut: 9px;
  height: 50px;
  padding: 0 24px;
  font-size: 16px;
  gap: 9px;
}
.hx-btn svg {
  transition: transform 0.2s var(--hb-ease-out);
}
.hx-btn:hover svg {
  transform: translateX(3px);
}
.st-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--hb-accent-ink);
  font-weight: var(--hb-weight-semibold);
  font-size: 15px;
  text-decoration: none;
}
.st-link:hover {
  text-decoration: underline;
}
.st-head-cta .st-link {
  color: var(--hb-ink-2);
}
/* il pulsante del tema: mostra il sole quando la pagina è scura (premendo si torna al chiaro), la luna quando è chiara */
.st-theme {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: var(--hb-radius-md);
  background: none;
  color: var(--hb-ink-2);
  cursor: pointer;
}
.st-theme[hidden] {
  display: none;
}
.st-theme:hover {
  background: var(--hb-surface-3);
  color: var(--hb-ink);
}
.st-theme span {
  display: grid;
}
.st-theme-sun {
  display: none !important;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .st-theme-sun {
    display: grid !important;
  }
  :root:not([data-theme="light"]) .st-theme-moon {
    display: none;
  }
}
:root[data-theme="dark"] .st-theme-sun {
  display: grid !important;
}
:root[data-theme="dark"] .st-theme-moon {
  display: none;
}

/* ── testo ── */
.st-eyebrow {
  font: var(--hb-weight-semibold) 13px var(--hb-mono);
  color: var(--hb-accent-ink);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: var(--hb-weight-bold);
  text-wrap: balance;
}
h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: var(--hb-weight-bold);
  text-wrap: balance;
}
h3 {
  font-size: 18px;
  line-height: 1.3;
  font-weight: var(--hb-weight-semibold);
}
.st-lead {
  margin-top: 20px;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--hb-ink-2);
  max-width: 34em;
}
.st-sub {
  margin-top: 14px;
  font-size: 18px;
  color: var(--hb-ink-2);
  max-width: 36em;
}
.st-fine {
  margin-top: 14px;
  font-size: 14px;
  color: var(--hb-ink-2);
}
.st-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.st-more {
  margin-top: 28px;
}
.st-center {
  text-align: center;
  margin-inline: auto;
}

/* ── sezioni ── */
.st-hero {
  position: relative;
  overflow: hidden;
  background: var(--hb-canvas);
  border-bottom: 1px solid var(--hb-line);
  padding: 72px 0 0;
}
.st-hero > .st-wrap {
  position: relative;
}
.st-hero-copy {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.st-hero-copy .st-lead {
  margin-inline: auto;
}
.st-hero-copy .st-actions {
  justify-content: center;
}
/* il reticolo esagonale dell'app, sfumato verso i bordi */
.st-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='55.4' height='96'%3E%3Cpath d='M27.7 0L55.4 16L55.4 48L27.7 64L0 48L0 16Z M27.7 64L27.7 96' fill='none' stroke='%237f8fb0' stroke-opacity='.28' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 55.4px 96px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
}
.st-pagehead {
  background: var(--hb-canvas);
  border-bottom: 1px solid var(--hb-line);
  padding: 64px 0 56px;
}
.st-notfound {
  min-height: 60vh;
  border-bottom: 0;
}
.st-sec {
  padding: 80px 0;
}
.st-sec.is-tint {
  background: var(--hb-canvas);
  border-block: 1px solid var(--hb-line);
}
.st-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.st-figs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.st-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.st-card {
  padding: 24px;
  background: var(--hb-surface);
  border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius-lg);
}
.st-card p {
  margin-top: 8px;
  color: var(--hb-ink-2);
  font-size: 15px;
}
.st-card-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  color: var(--hb-accent-ink);
  background: color-mix(in srgb, var(--hb-primary) 11%, transparent);
  /* esagono a punta in su, come i segni dell'app */
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.st-checks {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}
.st-split > .st-checks {
  margin-top: 0;
}
.st-checks li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 16px;
}
.st-checks svg {
  margin-top: 4px;
  color: var(--hb-success);
}

/* ── piani ──
   Le schede sono quelle dell'app (hb-plan), al centro e affiancate: con due restano raccolte, altre si aggiungono
   di fianco. Lo scambio mensile/annuale è fatto di due radio: il CSS mostra i prezzi del periodo scelto. */
.st-pricing {
  margin-top: 36px;
}
.st-period {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  margin-bottom: 24px;
}
.st-period-note {
  font-size: 14px;
  color: var(--hb-ink-2);
}
.st-period input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.st-period .hx-seg-opt {
  cursor: pointer;
}
/* l'opzione scelta: lo stesso aspetto di .hx-seg-opt.is-on nell'app */
.st-period .hx-seg-opt:has(input:checked) {
  background: var(--hb-elev);
  color: var(--hb-ink);
  box-shadow:
    0 0 0 1px var(--hb-line-strong),
    var(--hb-shadow-sm);
}
.st-period .hx-seg-opt:has(input:focus-visible) {
  outline: 2px solid var(--hb-primary);
  outline-offset: 2px;
}
.st-pricing .is-yearly {
  display: none;
}
.st-pricing:has(input[value="yearly"]:checked) .is-yearly {
  display: revert;
}
.st-pricing:has(input[value="yearly"]:checked) .hb-plan-price.is-yearly {
  display: flex;
}
.st-pricing:has(input[value="yearly"]:checked) .is-monthly {
  display: none;
}
.st-plans {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 16px;
  text-align: left;
}
.st-plans .hb-plan {
  flex: 0 1 340px;
  padding: 24px 22px 22px;
  gap: 6px;
  font-size: 15px;
  transition: transform 0.2s var(--hb-ease-out);
}
.st-plans .hb-plan:hover {
  transform: translateY(-3px);
}
.st-plans .hb-plan-name {
  font-size: 18px;
}
.st-plans .hb-plan-price span {
  font-size: 40px;
  line-height: 1.1;
}
.st-plans .hx-btn {
  margin-top: 14px;
}
.st-plans .hb-plan ul {
  margin-top: 18px;
  font-size: 14.5px;
}

/* ── tabella di confronto ── */
.st-table-wrap {
  margin-top: 32px;
  overflow-x: auto;
  background: var(--hb-surface);
  border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius-lg);
}
.st-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
}
.st-table th,
.st-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--hb-line);
  vertical-align: top;
}
.st-table tbody tr:last-child > * {
  border-bottom: 0;
}
.st-table thead th {
  font: var(--hb-weight-semibold) 12px var(--hb-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--hb-ink-2);
}
.st-table tbody th {
  font-weight: var(--hb-weight-medium);
}
.st-table small {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: var(--hb-weight-regular);
  color: var(--hb-ink-2);
}
.st-table td {
  width: 22%;
  color: var(--hb-ink-2);
}
.st-table td svg {
  color: var(--hb-success);
}

/* ── domande ── */
.st-faq {
  margin-top: 28px;
  border-top: 1px solid var(--hb-line);
}
.st-faq details {
  border-bottom: 1px solid var(--hb-line);
}
.st-faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  font-size: 17px;
  font-weight: var(--hb-weight-semibold);
  list-style: none;
}
.st-faq summary::-webkit-details-marker {
  display: none;
}
.st-faq summary::after {
  content: "+";
  font: var(--hb-weight-regular) 22px/1 var(--hb-mono);
  color: var(--hb-ink-2);
}
.st-faq details[open] summary::after {
  content: "−";
}
.st-faq p {
  padding: 0 0 20px;
  color: var(--hb-ink-2);
  max-width: 40em;
}

/* ── invito finale e piè di pagina ── */
.st-cta {
  padding: 80px 0;
  text-align: center;
}
.st-cta p {
  margin: 12px 0 28px;
  color: var(--hb-ink-2);
  font-size: 18px;
}
.st-foot {
  background: var(--hb-canvas);
  border-top: 1px solid var(--hb-line);
  padding: 48px 0 28px;
  font-size: 15px;
}
.st-foot-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
}
.st-foot-brand p {
  margin-top: 12px;
  color: var(--hb-ink-2);
  max-width: 22em;
}
.st-foot nav {
  display: grid;
  gap: 8px;
  align-content: start;
}
.st-foot nav b {
  font: var(--hb-weight-semibold) 12px var(--hb-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--hb-ink-2);
  margin-bottom: 4px;
}
.st-foot nav a {
  color: var(--hb-ink);
  text-decoration: none;
}
.st-foot nav a:hover {
  text-decoration: underline;
}
.st-foot-end {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--hb-line);
  color: var(--hb-ink-2);
  font-size: 14px;
}

/* ── catture dell'app vera (Shot.tsx) ──
   Il pezzo è catturato a --w × --h pixel e qui viene scalato di --k per stare nella pagina. Dentro valgono gli
   stili dell'app (il suo foglio di stile è caricato prima di questo); intorno, una cornice del sito. */
.st-shot {
  --k: 1;
  position: relative;
  width: calc(var(--w) * var(--k) * 1px);
  height: calc(var(--h) * var(--k) * 1px);
  max-width: 100%;
  margin-inline: auto;
  overflow: hidden;
  background: var(--hb-surface);
  border: 1px solid var(--hb-line-strong);
  border-radius: var(--hb-radius-lg);
  box-shadow: var(--hb-shadow-lg);
}
.st-shot-in {
  width: calc(var(--w) * 1px);
  height: calc(var(--h) * 1px);
  transform: scale(var(--k));
  transform-origin: 0 0;
  pointer-events: none;
  user-select: none;
  /* le regole di testo del sito non entrano nella cattura: dentro si riparte dai valori dell'app */
  font-size: var(--hb-text-lg);
  line-height: 1.28581;
  text-align: left;
}
.st-shot-in > * {
  height: 100%;
}
.st-shot .hb-insp-resize {
  display: none;
}
/* la finestra in prima pagina: l'app intera, appoggiata al bordo inferiore della sezione */
.st-win {
  /* a grandezza vera sugli schermi larghi: il testo dell'app si legge come nell'app */
  --k: 1;
  margin-top: 56px;
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  box-shadow:
    0 30px 60px -20px rgba(var(--hb-shadow-color), 0.25),
    0 0 0 6px color-mix(in srgb, var(--hb-primary) 6%, transparent);
}
.st-hero > .st-wrap {
  max-width: none;
}
/* sotto i 760 px l'app cambia impaginazione (le sue regole guardano la larghezza dello schermo): lì si mostra
   solo il foglio molecolare */
.st-win-small {
  display: none;
  --k: 0.46;
  margin-top: 40px;
}
/* nelle pagine: i blocchi del documento (688 px) stanno in mezza colonna, i pannelli (359 px) a grandezza vera */
.st-figstack > .st-shot {
  --k: 0.76;
}
.st-figstack > .st-shot.is-analysis,
.st-figstack > .st-shot.is-check {
  --k: 1;
}
/* Il foglio del meccanismo: le specie sono piccole rispetto al foglio, e qui contano le frecce. Il disegno si
   ingrandisce intorno a loro (reticolo compreso), dentro la cornice del foglio che resta com'è. */
.st-shot.is-mechanism .hb-canvas {
  overflow: hidden;
}
.st-shot.is-mechanism .hb-svg {
  transform: scale(1.7);
  transform-origin: 47% 48%;
}
/* Il dialog di condivisione: nell'app sta al centro dello schermo sopra un velo; qui è una figura nella pagina */
.st-shot-in > .hx-dialog {
  position: static !important;
  transform: none !important;
  opacity: 1 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: none !important;
  max-height: none !important;
  box-shadow: none !important;
}
@media (min-width: 761px) {
  .st-figstack > .st-shot.is-share {
    --k: 0.8;
  }
}
/* le catture con un'immagine dentro esistono nei due temi: si mostra quella del tema della pagina */
.st-on-dark {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .st-on-light {
    display: none;
  }
  :root:not([data-theme="light"]) .st-on-dark {
    display: block;
  }
}
:root[data-theme="dark"] .st-on-light {
  display: none;
}
:root[data-theme="dark"] .st-on-dark {
  display: block;
}
/* dentro una cattura il blocco occupa tutto lo spazio: i margini che ha nel documento qui non servono */
.st-shot-in > .hb-block {
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}
/* la finestra è larga 1360 px: sotto, si riduce a passi per stare sempre nello schermo con un po' di margine */
@media (max-width: 1420px) {
  .st-win {
    --k: 0.9;
  }
}
@media (max-width: 1290px) {
  .st-win {
    --k: 0.8;
  }
}
@media (max-width: 1150px) {
  .st-win {
    --k: 0.7;
  }
}
@media (max-width: 1040px) {
  .st-win {
    --k: 0.62;
  }
  .st-figstack > .st-shot {
    --k: 1;
  }
}
@media (max-width: 900px) {
  .st-win {
    --k: 0.52;
  }
}
/* Fluida: la finestra è sempre larga quanto lo schermo meno un piccolo margine ai lati, a qualunque larghezza.
   Il rapporto tra due lunghezze si ottiene con tan(atan2()), che i browser di oggi calcolano; dove manca
   valgono i passi qui sopra. Oltre i 1900 px si ferma: più grande dell'app vera sembrerebbe ingrandita. */
@supports (width: calc(1px * tan(atan2(1px, 1px)))) {
  @media (min-width: 761px) {
    .st-win {
      --k: min(1.36, tan(atan2(100vw - 64px, 1360px)));
    }
  }
}
@media (max-width: 760px) {
  .st-win {
    display: none;
  }
  .st-win-small {
    display: block;
  }
  .st-figstack > .st-shot {
    --k: 0.5;
  }
  .st-figstack > .st-shot.is-analysis,
  .st-figstack > .st-shot.is-check {
    --k: 0.9;
  }
}

/* ── come funziona ── */
.st-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.st-steps li {
  text-align: center;
}
.st-steps p {
  margin-top: 8px;
  color: var(--hb-ink-2);
  font-size: 15px;
  max-width: 26em;
  margin-inline: auto;
}
.st-step-no {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 48px;
  margin-bottom: 16px;
  background: var(--hb-primary);
  color: var(--hb-on-primary);
  font: var(--hb-weight-bold) 17px var(--hb-mono);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

/* ── figure delle funzioni ── */
.st-split.is-flip > :first-child {
  order: 2;
}
.st-figstack {
  display: grid;
  gap: 20px;
}
.st-split .st-checks {
  margin-top: 24px;
}
.st-fig-note {
  padding: 10px 14px;
  border-top: 1px solid var(--hb-line);
  font-size: 13px;
  color: var(--hb-ink-2);
}
.st-fig-note b {
  color: var(--hb-ink);
  font-weight: var(--hb-weight-semibold);
}
/* ── movimento ──
   Tutto qui dentro vale solo per chi non ha chiesto al sistema di ridurre le animazioni: senza, ogni cosa è già
   al suo posto. Nessuno script: la sequenza della finestra parte al caricamento, il resto segue lo scorrimento. */
.st-card {
  transition:
    transform 0.2s var(--hb-ease-out),
    box-shadow 0.2s var(--hb-ease-out),
    border-color 0.2s var(--hb-ease-out);
}
.st-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--hb-shadow-md);
  border-color: var(--hb-line-strong);
}
.st-link svg {
  transition: transform 0.2s var(--hb-ease-out);
}
.st-link:hover svg {
  transform: translateX(3px);
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes st-rise {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
  }
  @keyframes st-fade {
    from {
      opacity: 0;
    }
  }
  @keyframes st-type {
    from {
      max-width: 0;
    }
  }
  @keyframes st-caret-blink {
    50% {
      border-color: transparent;
    }
  }
  @keyframes st-draw {
    from {
      stroke-dashoffset: 1;
    }
  }
  @keyframes st-pop {
    from {
      opacity: 0;
      transform: scale(0.94);
    }
  }
  /* l'ingresso della pagina */
  .st-hero-copy > * {
    animation: st-rise 0.6s var(--hb-ease-out) both;
  }
  .st-hero-copy > :nth-child(2) {
    animation-delay: 0.06s;
  }
  .st-hero-copy > :nth-child(3) {
    animation-delay: 0.12s;
  }
  .st-hero-copy > :nth-child(4) {
    animation-delay: 0.18s;
  }
  .st-hero-copy > :nth-child(5) {
    animation-delay: 0.24s;
  }
  .st-win {
    animation: st-rise 0.8s 0.3s var(--hb-ease-out) both;
  }
  /* la sequenza nella finestra: l'app arriva, la molecola si disegna legame per legame sul reticolo, poi compaiono
     le annotazioni e, uno dopo l'altro, i riquadri del pannello di analisi */
  .st-win .hb-bond line,
  .st-win .hb-bond path {
    stroke-dasharray: 1;
    animation: st-draw 0.3s calc(1.3s + var(--i, 0) * 0.1s) ease-out both;
  }
  .st-win .hb-label,
  .st-win .hb-lp,
  .st-win .hb-stereo,
  .st-win .hb-hl {
    animation: st-fade 0.4s 3.5s both;
  }
  .st-win .hb-arrow,
  .st-win .hb-note {
    animation: st-fade 0.5s 4s both;
  }
  .st-win .hb-insp > * {
    animation: st-rise 0.45s calc(4.3s + var(--i, 0) * 0.25s) var(--hb-ease-out) both;
  }
  .st-win .hb-bond:nth-of-type(1) {
    --i: 0;
  }
  .st-win .hb-bond:nth-of-type(2) {
    --i: 1;
  }
  .st-win .hb-bond:nth-of-type(3) {
    --i: 2;
  }
  .st-win .hb-bond:nth-of-type(4) {
    --i: 3;
  }
  .st-win .hb-bond:nth-of-type(5) {
    --i: 4;
  }
  .st-win .hb-bond:nth-of-type(6) {
    --i: 5;
  }
  .st-win .hb-bond:nth-of-type(7) {
    --i: 6;
  }
  .st-win .hb-bond:nth-of-type(8) {
    --i: 7;
  }
  .st-win .hb-bond:nth-of-type(9) {
    --i: 8;
  }
  .st-win .hb-bond:nth-of-type(10) {
    --i: 9;
  }
  .st-win .hb-bond:nth-of-type(11) {
    --i: 10;
  }
  .st-win .hb-bond:nth-of-type(12) {
    --i: 11;
  }
  .st-win .hb-bond:nth-of-type(13) {
    --i: 12;
  }
  .st-win .hb-bond:nth-of-type(14) {
    --i: 13;
  }
  .st-win .hb-bond:nth-of-type(15) {
    --i: 14;
  }
  .st-win .hb-bond:nth-of-type(16) {
    --i: 15;
  }
  .st-win .hb-bond:nth-of-type(17) {
    --i: 16;
  }
  .st-win .hb-bond:nth-of-type(18) {
    --i: 17;
  }
  .st-win .hb-bond:nth-of-type(19) {
    --i: 18;
  }
  .st-win .hb-bond:nth-of-type(20) {
    --i: 19;
  }
  .st-win .hb-bond:nth-of-type(21) {
    --i: 20;
  }
  .st-win .hb-bond:nth-of-type(22) {
    --i: 21;
  }
  .st-win .hb-insp > :nth-child(1) {
    --i: 0;
  }
  .st-win .hb-insp > :nth-child(2) {
    --i: 1;
  }
  .st-win .hb-insp > :nth-child(3) {
    --i: 2;
  }
  .st-win .hb-insp > :nth-child(4) {
    --i: 3;
  }
  .st-win .hb-insp > :nth-child(5) {
    --i: 4;
  }
  .st-win .hb-insp > :nth-child(6) {
    --i: 5;
  }
  /* L'ingresso e la sequenza della finestra si vedono una volta per visita (public/theme.js segna la prima
     pagina): tornando alla pagina iniziale da un'altra, il contenuto è subito al suo posto. */
  :root[data-seen] .st-hero-copy > *,
  :root[data-seen] .st-win,
  :root[data-seen] .st-win * {
    animation: none !important;
  }
  /* le sezioni entrano mentre si scorre (Chrome, Edge, Safari recenti; altrove sono già al loro posto) */
  @supports (animation-timeline: view()) {
    .st-reveal,
    .st-sec h2,
    .st-sec .st-sub,
    .st-pricing,
    .st-faq {
      animation: st-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}

/* ── schermi stretti ── */
@media (max-width: 900px) {
  .st-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .st-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .st-hero {
    padding: 48px 0 0;
  }
  .st-split.is-flip > :first-child {
    order: 0;
  }
  .st-steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .st-sec,
  .st-cta {
    padding: 56px 0;
  }
}
@media (max-width: 640px) {
  .st-wrap {
    padding: 0 16px;
  }
  .st-head-row {
    gap: 8px 16px;
    padding-block: 10px;
  }
  .st-nav {
    order: 3;
    flex-basis: 100%;
    margin-inline: -8px;
  }
  .st-head-cta {
    margin-left: auto;
  }
  .st-grid,
  .st-figs,
  .st-foot-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
  .hx-btn svg,
  .st-plans .hb-plan {
    transition: none;
  }
}

/* ══════════════════════════════════════════════════════════════════════════════════════════════════════════
   La pagina "da quaderno tecnico" (novembre 2026). Sta in fondo e ha l'ultima parola sulle regole sopra.
   Cornice larga con un esagono a ogni incrocio, il reticolo a 120° come trama, angoli tagliati, Cobalto e ambra.
   Regole di lettura: niente testo sotto i 14 px, niente blu su testo piccolo, una sola voce per i titoli.
   Le figure in cui si può scorrere (la finestra dell'app, il pannello di analisi) le muove src/site/scroll.js.
   ══════════════════════════════════════════════════════════════════════════════════════════════════════════ */
:root {
  --st-rail: min(1680px, calc(100vw - 48px));
  --st-pad: clamp(24px, 4.2vw, 76px);
  --st-edge: calc(50% - var(--st-rail) / 2);
}
body { position: relative; font-size: 17px; }

/* ── la cornice: due binari e un esagono a ogni incrocio ── */
body::before, body::after { content: ""; position: fixed; top: 0; bottom: 0; width: 1px; z-index: 4; pointer-events: none; background: var(--hb-line-strong); opacity: 0.7; }
body::before { left: var(--st-edge); } body::after { right: var(--st-edge); }
.st-wrap { max-width: var(--st-rail); padding-inline: var(--st-pad); }
.st-head { background: color-mix(in srgb, var(--hb-surface) 94%, transparent); border-bottom-color: var(--hb-line-strong); }
.st-head-row { max-width: var(--st-rail); padding-inline: var(--st-pad); min-height: 76px; position: relative; }
.st-head-row::before, .st-head-row::after, .st-sec::before, .st-sec::after, .st-facts::before, .st-facts::after {
  content: ""; position: absolute; width: 13px; height: 14px; z-index: 6;
  background: var(--hb-surface); clip-path: var(--hx-hex-pt); box-shadow: inset 0 0 0 20px var(--hb-ink-2);
}
.st-head-row::before, .st-head-row::after { bottom: -8px; }
.st-head-row::before { left: -6px; } .st-head-row::after { right: -6px; }
.st-sec, .st-facts { position: relative; }
.st-sec { border-top: 1px solid var(--hb-line-strong); padding: clamp(72px, 9vw, 128px) 0; }
.st-sec.is-tint { border-bottom: 0; }
.st-sec::before, .st-sec::after, .st-facts::before, .st-facts::after { top: -7px; }
.st-sec::before, .st-facts::before { left: calc(var(--st-edge) - 6px); }
.st-sec::after, .st-facts::after { right: calc(var(--st-edge) - 6px); }
@media (max-width: 720px) { body::before, body::after, .st-sec::before, .st-sec::after, .st-head-row::before, .st-head-row::after, .st-facts::before, .st-facts::after { display: none; } }

/* ── menu "Product" ── */
.st-nav a, .st-dd > button { font-size: 16px; color: var(--hb-ink); }
.st-dd { position: relative; }
.st-dd > button { all: unset; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; padding: 6px 12px; border-radius: var(--hb-radius-md); color: var(--hb-ink); font: var(--hb-weight-medium) 16px var(--hb-font); }
.st-dd > button svg { transition: transform 0.16s ease; }
.st-dd:hover > button, .st-dd:focus-within > button { background: var(--hb-surface-3); }
.st-dd:hover > button svg, .st-dd:focus-within > button svg { transform: rotate(180deg); }
.st-dd > button:focus-visible { outline: 2px solid var(--hb-primary); outline-offset: 2px; }
.st-dd-panel { position: absolute; top: calc(100% + 14px); left: -16px; z-index: 20; width: 880px;
  filter: drop-shadow(0 0 0.7px var(--hb-line-strong)) drop-shadow(0 0 0.7px var(--hb-line-strong)) drop-shadow(0 22px 34px color-mix(in srgb, var(--hb-ink) 22%, transparent));
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s 0.16s; }
.st-dd-in { display: grid; grid-template-columns: 1fr 1fr 264px; gap: 6px 10px; padding: 16px; background: var(--hb-surface);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px); }
.st-dd::after { content: ""; position: absolute; top: 100%; left: -16px; width: 880px; height: 16px; }
.st-dd:hover .st-dd-panel, .st-dd:focus-within .st-dd-panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.st-dd-col { display: grid; align-content: start; gap: 2px; }
.st-dd-head { margin: 2px 0 8px; padding: 0 12px 10px; border-bottom: 1px solid var(--hb-line); font: var(--hb-weight-semibold) 14px/1.3 var(--hb-font); color: var(--hb-ink-2); }
.st-dd-item { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: center; padding: 9px 12px; text-decoration: none; color: var(--hb-ink); border-radius: var(--hb-radius-md); }
.st-dd-item:hover, .st-dd-item:focus-visible { background: var(--hb-surface-3); outline: none; }
.st-dd-item i { display: grid; place-items: center; width: 36px; height: 40px; color: var(--hb-accent-ink); background: color-mix(in srgb, var(--hb-primary) 10%, transparent); clip-path: var(--hx-hex-pt); transition: background 0.16s ease, color 0.16s ease; }
.st-dd-item:hover i, .st-dd-item:focus-visible i { background: var(--hb-primary); color: #fff; }
.st-dd-item b { display: block; font: var(--hb-weight-semibold) 16px/1.3 var(--hb-font); }
.st-dd-item small { display: block; margin-top: 2px; font-size: 14px; color: var(--hb-ink-2); line-height: 1.35; }
/* a destra: la via più corta per provare, sul reticolo */
.st-dd-aside { grid-row: 1; grid-column: 3; display: grid; align-content: end; gap: 8px; padding: 20px; text-decoration: none; color: #fff;
  background: var(--hb-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='55.4' height='96'%3E%3Cpath d='M27.7 0 55.4 16v32L27.7 64 0 48V16zM27.7 64v32' fill='none' stroke='%23fff' stroke-opacity='.16'/%3E%3C/svg%3E") 0 0 / 55.4px 96px;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }
.st-dd-tag { width: fit-content; padding: 3px 9px; font: var(--hb-weight-medium) 13px/1.3 var(--hb-font); color: #10141c; background: #ffb23e; }
.st-dd-aside b { font: var(--hb-weight-bold) 20px/1.2 var(--hb-font); letter-spacing: -0.02em; }
.st-dd-aside small { font-size: 14px; line-height: 1.4; opacity: 0.85; }
.st-dd-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font: var(--hb-weight-semibold) 15px var(--hb-font); }
.st-dd-aside:hover .st-dd-go svg, .st-dd-aside:focus-visible .st-dd-go svg { transform: translateX(4px); }
.st-dd-go svg { transition: transform 0.16s ease; }
.st-dd-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; padding: 14px 12px 2px; border-top: 1px solid var(--hb-line); font-size: 14px; color: var(--hb-ink-2); }
.st-dd-foot a { color: var(--hb-accent-ink); font-weight: var(--hb-weight-semibold); text-decoration: none; }
@media (max-width: 1040px) { .st-dd-panel, .st-dd::after { width: min(92vw, 440px); } .st-dd-in { grid-template-columns: 1fr; } .st-dd-aside { grid-row: auto; grid-column: auto; } }

/* ── testi ── */
/* l'etichetta sopra un titolo: una targhetta leggibile (inchiostro pieno su fondo chiaro), non una scritta blu piccola */
.st-eyebrow {
  display: inline-flex; align-items: center; gap: 9px; width: fit-content;
  margin-bottom: 22px; padding: 6px 14px 6px 10px;
  font: var(--hb-weight-medium) 15px/1.3 var(--hb-font); letter-spacing: 0; text-transform: none; color: var(--hb-ink);
  background: var(--hb-surface-3);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}
.st-eyebrow::before { content: ""; width: 10px; height: 11px; flex: none; background: #ffb23e; clip-path: var(--hx-hex-pt); }
.st-eyebrow.st-center { display: flex; margin-inline: auto; }
h1 { font-size: clamp(44px, 6.6vw, 96px); line-height: 0.99; letter-spacing: -0.045em; text-wrap: balance; }
h1 .st-hi { color: var(--hb-primary); }
h2 { font-size: clamp(32px, 3.9vw, 56px); line-height: 1.04; letter-spacing: -0.035em; }
h3 { font-size: 21px; letter-spacing: -0.01em; }
.st-lead { margin-top: 28px; font-size: clamp(19px, 1.5vw, 23px); line-height: 1.5; color: var(--hb-ink-2); max-width: 30em; }
.st-sub { margin-top: 18px; font-size: clamp(18px, 1.35vw, 21px); line-height: 1.5; max-width: 34em; }
.st-fine { margin-top: 18px; font-size: 15px; }
/* scheda ad angoli tagliati con il bordo anche sui tagli: il bordo è il fondo, la superficie sta un pixel dentro */
.st-card { position: relative; padding: 30px; border: 0; border-radius: 0; background: var(--hb-line-strong);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
.st-card::before { content: ""; position: absolute; inset: 1px; z-index: 0; background: var(--hb-surface);
  clip-path: polygon(13.6px 0, 100% 0, 100% calc(100% - 13.6px), calc(100% - 13.6px) 100%, 0 100%, 0 13.6px); }
.st-card > * { position: relative; z-index: 1; }
.st-card p { margin-top: 10px; font-size: 16.5px; line-height: 1.55; }
.st-card-icon { width: 46px; height: 50px; margin-bottom: 22px; }
.st-checks li { font-size: 17.5px; }
.st-split { gap: clamp(40px, 6vw, 110px); }
.st-step p, .st-steps p { font-size: 17px; }

/* ── hero ── */
.st-hero { padding-top: clamp(64px, 8vw, 120px); border-bottom: 0; overflow: visible; }
/* il reticolo dell'app (quello di site.css) resta: qui solo più ampio, e pieno fino ai binari */
.st-hero::before { left: var(--st-edge); right: var(--st-edge); background-size: 69.3px 120px;
  mask-image: linear-gradient(180deg, #000 0%, #000 34%, transparent 62%); -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 34%, transparent 62%); opacity: 0.75; }
.st-hero-copy { max-width: 1180px; }
/* dietro il testo il reticolo si spegne: le righe non passano attraverso le lettere */
.st-hero-copy::before { content: ""; position: absolute; z-index: -1; inset: -40px -8%; background: radial-gradient(ellipse 58% 62% at 50% 46%, var(--hb-canvas) 55%, transparent 100%); }
.st-hero-copy { position: relative; z-index: 1; }
.st-actions { margin-top: 38px; }

/* ── la finestra: l'app da binario a binario, e ci si può scorrere dentro ── */
.st-hero > .st-wrap { padding-inline: 0; max-width: var(--st-rail); }
.st-hero-copy { padding-inline: var(--st-pad); }
@media (min-width: 761px) {
  .st-win {
    /* da binario a binario: la cattura (larga --w) si scala quanto serve */
    --k: tan(atan2(var(--st-rail), var(--w) * 1px));
    width: var(--st-rail); max-width: none; height: calc(var(--h) * var(--k) * 1px);
    margin-top: clamp(56px, 6vw, 96px); border-radius: 0; border: 0;
    border-top: 1px solid var(--hb-line-strong);
    box-shadow: 0 -30px 80px -40px color-mix(in srgb, var(--hb-primary) 26%, transparent);
    transition: box-shadow 0.25s ease;
  }

}
/* il timer accanto al puntatore: un anello che si riempie mentre si resta fermi sulla figura */
.st-cur { position: fixed; z-index: 60; left: 0; top: 0; display: inline-flex; align-items: center; gap: 8px; pointer-events: none;
  padding: 4px 12px 4px 4px; color: #fff; background: #10141c; border-radius: 999px;
  font: var(--hb-weight-medium) 13.5px/1 var(--hb-font); white-space: nowrap;
  opacity: 0; transition: opacity 0.15s ease; will-change: transform; }
.st-cur.is-on { opacity: 1; }
.st-cur b { font-weight: inherit; }
.st-cur svg { display: block; overflow: visible; }
.st-cur path, .st-cur circle { fill: none; }
.st-cur-track { stroke: rgba(255, 255, 255, 0.2); stroke-width: 2; stroke-linejoin: round; }
/* il lato che si sta disegnando: parte dal vertice in alto e gira, come una catena tracciata sul reticolo */
.st-cur-fill { stroke: #ffb23e; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.st-cur.is-on:not(.is-armed) .st-cur-fill { animation: st-ring var(--st-dwell, 700ms) linear forwards; }
.st-cur.is-armed .st-cur-fill { stroke-dashoffset: 0; stroke: #fff; }
/* gli atomi ai vertici compaiono uno alla volta mentre il tratto li raggiunge */
.st-cur-atoms circle { fill: #ffb23e; opacity: 0; }
.st-cur.is-on:not(.is-armed) .st-cur-atoms circle { animation: st-atom 0.01s linear forwards; animation-delay: calc(var(--st-dwell, 700ms) * var(--i) / 6); }
.st-cur-atoms circle:nth-child(1) { --i: 0; } .st-cur-atoms circle:nth-child(2) { --i: 1; } .st-cur-atoms circle:nth-child(3) { --i: 2; }
.st-cur-atoms circle:nth-child(4) { --i: 3; } .st-cur-atoms circle:nth-child(5) { --i: 4; } .st-cur-atoms circle:nth-child(6) { --i: 5; }
.st-cur.is-armed .st-cur-atoms circle { opacity: 0; }
/* completo: i tre doppi legami, ed è un benzene */
.st-cur-ring { stroke: #fff; stroke-width: 1.8; stroke-linecap: round; opacity: 0; transition: opacity 0.18s ease; }
.st-cur.is-armed .st-cur-ring { opacity: 1; }
.st-cur.is-armed { background: var(--hb-primary); }
@keyframes st-atom { to { opacity: 1; } }
@keyframes st-ring { to { stroke-dashoffset: 0; } }
.st-scrollable { transition: box-shadow 0.25s ease; }
.st-shot.st-scrollable.is-armed { box-shadow: 0 0 0 2px var(--hb-primary), 0 24px 60px -30px color-mix(in srgb, var(--hb-primary) 50%, transparent); }
.st-bar { position: absolute; z-index: 7; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; }
.st-bar i { display: block; height: 100%; width: 0; background: var(--hb-primary); }

/* ── i fatti, al posto dei loghi dei clienti (non ne inventiamo) ── */
.st-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 0 auto; padding: 0; list-style: none; max-width: var(--st-rail);
  border-top: 1px solid var(--hb-line-strong); background: var(--hb-surface); }
.st-facts li { display: flex; align-items: center; gap: 12px; padding: 22px var(--st-pad) 22px 28px; font: var(--hb-weight-medium) 16px/1.3 var(--hb-font); color: var(--hb-ink); border-left: 1px solid var(--hb-line); }
.st-facts li:first-child { border-left: 0; }
.st-facts li::before { content: ""; flex: none; width: 10px; height: 11px; background: var(--hb-primary); clip-path: var(--hx-hex-pt); }
.st-facts li:nth-child(even)::before { background: #ffb23e; }

/* il numero d'ordine della sezione, dentro la sua targhetta: orienta come l'indice di un quaderno */
.st-eyebrow .st-no { font: var(--hb-weight-semibold) 14px var(--hb-mono); color: var(--hb-accent-ink); }
.st-eyebrow .st-no + * , .st-eyebrow .st-no { margin-right: 2px; }
/* i piani: alla scala del resto della pagina */
.st-pricing .st-plans, .st-pricing .st-period { zoom: 1.22; }

/* ── le barre di scorrimento dentro le figure: quelle dell'app (theme.css), sottili e color inchiostro ── */
.st-shot ::-webkit-scrollbar { width: 10px; height: 10px; }
.st-shot ::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--hb-ink) 16%, transparent); border-radius: var(--hb-radius-lg); border: 3px solid transparent; background-clip: padding-box; }
.st-shot ::-webkit-scrollbar-track, .st-shot ::-webkit-scrollbar-corner { background: transparent; }
.st-shot.is-armed ::-webkit-scrollbar-thumb { background-color: color-mix(in srgb, var(--hb-primary) 70%, transparent); }
@supports not selector(::-webkit-scrollbar) { .st-shot * { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--hb-ink) 22%, transparent) transparent; } }
/* nella finestra scorre solo il documento: pannello di analisi e indice restano fermi, senza barra */
.st-win .hb-inspector, .st-win .hx-tabpanel, .st-win .hb-outline-list, .st-win .hb-side { overflow: hidden !important; scrollbar-gutter: auto !important; }
.st-win .hb-inspector ::-webkit-scrollbar, .st-win .hb-side ::-webkit-scrollbar, .st-win .hb-inspector::-webkit-scrollbar { display: none; }

/* le figure nelle sezioni: alla scala del resto della pagina */
@media (min-width: 1041px) {
  .st-figstack > .st-shot.is-analysis, .st-figstack > .st-shot.is-check { --k: 1.28; }
  .st-figstack > .st-shot { --k: 0.95; }
}
/* l'immagine della vista 3D dentro la finestra esiste nei due temi (capture-site.mjs): qui niente display in linea */
.st-shot img.st-on-light, .st-shot img.st-on-dark { vertical-align: top; }
.st-dd-aside, .st-dd-aside b, .st-dd-aside small, .st-dd-go { color: #fff; }

/* la trama dietro il testo dell'hero usciva dai lati sugli schermi stretti: niente scorrimento orizzontale */
.st-hero { overflow-x: clip; }
.st-touch-hint { display: none; }
.st-nav-signin { display: none; }

/* ── telefono ──
   Niente finestra del computer rimpicciolita: l'app com'è su un telefono (cattura "phone"), in una cornice in cui
   si scorre con il dito. Lì dentro il documento è tutto steso (lo scorrimento è della cornice, che non è inerte),
   e `zoom` al posto di `transform` fa sì che l'altezza della cornice segua la scala. */
@media (max-width: 760px) {
  :root { --st-rail: calc(100vw - 24px); --st-pad: 20px; }
  body { font-size: 16px; }
  .st-head-row { min-height: 0; padding-block: 10px; gap: 6px 10px; }
  .st-brand { margin-right: auto; }
  .st-head-cta .st-link { display: none; }
  .st-nav a.st-nav-signin { display: block; margin-left: auto; }
  .st-head-cta { gap: 10px; order: 2; }
  .st-nav { order: 3; flex: 1 0 100%; gap: 2px; margin-inline: -8px; }
  .st-nav a, .st-dd > button { font-size: 15px; padding: 6px 8px; }
  h1 { font-size: clamp(34px, 10.4vw, 44px); line-height: 1.03; }
  h2 { font-size: clamp(27px, 7.6vw, 34px); }
  .st-lead { font-size: 18px; margin-top: 20px; }
  .st-hero { padding-top: 44px; }
  .st-eyebrow { font-size: 14px; margin-bottom: 16px; }
  .st-sec { padding: 64px 0; }
  .st-card { padding: 22px; }
  .st-facts { grid-template-columns: 1fr 1fr; }
  .st-facts li { padding: 14px 16px; font-size: 15px; border-left: 0; border-top: 1px solid var(--hb-line); }
  .st-facts li:nth-child(odd) { border-right: 1px solid var(--hb-line); }
  .st-facts li:nth-child(-n + 2) { border-top: 0; }
  .st-pricing .st-plans, .st-pricing .st-period { zoom: 1; }

  .st-win-small {
    display: block;
    --k: tan(atan2(100vw - 32px, 390px));
    width: calc(100vw - 32px);
    max-width: none;
    height: min(68svh, 560px);
    margin: 36px auto 0;
    overflow: hidden auto;
    overscroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 18px;
    box-shadow: 0 24px 60px -30px color-mix(in srgb, var(--hb-primary) 45%, transparent), 0 0 0 1px var(--hb-line-strong);
  }
  .st-win-small .st-shot-in { width: 390px; height: auto; transform: none; zoom: var(--k); }
  .st-win-small .st-shot-in > * { height: auto; }
  .st-win-small .hb-app, .st-win-small .hb-main, .st-win-small .hb-scroll, .st-win-small .hb-doc {
    display: block !important; height: auto !important; min-height: 0 !important; max-height: none !important; overflow: visible !important;
  }
  .st-win-small .hb-top { position: sticky; top: 0; z-index: 3; }
  .st-touch-hint { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 0 28px; font-size: 14px; color: var(--hb-ink-2); }
  .st-touch-hint::before { content: ""; width: 9px; height: 10px; background: #ffb23e; clip-path: var(--hx-hex-pt); }
}

/* Firefox: tolta la barra laterale, la griglia dell'app lasciava il documento nella colonna stretta della barra
   (e si vedeva solo il pannello di analisi, a sinistra). Nella finestra l'app è un blocco solo, largo tutto. */
.st-win .hb-app { display: block !important; }
.st-win .hb-main { width: 100%; height: 100%; }

/* Niente più ingressi animati: il contenuto è al suo posto appena la pagina si apre (anche i legami dei fogli,
   che prima si "disegnavano"). Resta la dissolvenza tra una pagina e l'altra. */
.st-reveal, .st-hero-copy > *, .st-win, .st-win *, .st-win-small, .st-win-small *, .st-shot, .st-shot * {
  animation: none !important;
}
.st-reveal { opacity: 1 !important; transform: none !important; }
/* il segno accanto al puntatore compare e sparisce di colpo: uscendo dalla figura non deve restare */
.st-cur { transition: none; }
