/* 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); }
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-side { width: 272px; box-sizing: border-box; background: var(--hb-surface-2); border-right: 1px solid var(--hb-line); display: flex; flex-direction: column; gap: 10px; padding: 14px 12px; overflow: hidden auto; min-width: 0px; transition: width var(--hb-dur-base) ease,padding var(--hb-dur-base) ease; }
.hb-brand { display: flex; align-items: center; gap: 9px; padding: 2px 2px 4px 4px; }
.hb-wordmark { flex: 1 1 0%; font: 700 var(--hb-text-2xl)/1 var(--hb-font); letter-spacing: -0.045em; color: var(--hb-ink); }
.hb-new { margin-top: 2px; }
.hb-side-section { display: flex; flex-direction: column; gap: 1px; }
.hb-side-label { display: flex; justify-content: space-between; font-weight: 600; font-size: var(--hb-text-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--hb-muted); padding: 8px 8px 4px; }
.hb-doc-item { display: flex; align-items: center; border-radius: var(--hb-radius-md); }
.hb-doc-item:hover { background: color-mix(in srgb,var(--hb-ink) 5%,transparent); }
.hb-doc-item.is-active { background: color-mix(in srgb,var(--hb-primary) 12%,transparent); }
.hb-doc-item.is-active .hb-doc-name { color: var(--hb-ink); font-weight: 600; }
.hb-doc-link { flex: 1 1 0%; min-width: 0px; display: grid; grid-template-columns: 16px minmax(0px, 1fr); gap: 1px 8px; align-items: center; text-align: left; border: 0px; background: transparent; padding: 7px 4px 7px 8px; cursor: pointer; color: var(--hb-ink-2); font: inherit; border-radius: var(--hb-radius-md); }
.hb-doc-name { font-size: var(--hb-text-lg); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-doc-link small { grid-column: 2; color: var(--hb-muted); font-size: var(--hb-text-sm); }
.hb-doc-more { opacity: 0; margin-right: 4px; }
.hb-doc-item:hover .hb-doc-more, .hb-doc-item:focus-within .hb-doc-more { opacity: 1; }
.hb-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; padding-top: 8px; }
.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; }
.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-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-card { border: 1px solid var(--hb-line); border-radius: var(--hb-radius-lg); padding: 12px 14px 14px; background: var(--hb-surface-2); }
.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-stats { display: grid; grid-template-columns: repeat(2, minmax(0px, 1fr)); gap: 12px 14px; margin: 0px; }
.hb-stats dt { font-size: var(--hb-text-sm); color: var(--hb-muted); }
.hb-stats dd { margin: 2px 0px 0px; 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: ; display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.hb-stats dd small { font: 400 var(--hb-text-xs) var(--hb-font); color: var(--hb-muted); }
.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-brand { width: 100%; }
.hb-side-foot { margin-top: auto; width: 100%; padding-top: 8px; border-top: 1px solid var(--hb-line); }
.hb-profile-btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--hb-radius-lg); border: 1px solid transparent; background: transparent; cursor: pointer; color: var(--hb-ink); text-align: left; font: inherit; }
.hb-profile-btn:hover { background: var(--hb-surface); border-color: var(--hb-line); }
.hb-profile-txt { flex: 1 1 0%; min-width: 0px; display: flex; flex-direction: column; gap: 1px; }
.hb-profile-txt b { font-size: var(--hb-text-lg); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-profile-txt small { display: flex; gap: 4px; align-items: center; font-size: var(--hb-text-sm); color: var(--hb-muted); }
.hb-profile-caret { color: var(--hb-muted); }
.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-side, .hb-side.is-rail { position: fixed; inset: 0px auto 0px 0px; width: min(290px, 86vw); z-index: calc(var(--hb-z-drawer) + 4); box-shadow: var(--hb-shadow-lg); transform: translate(-102%); visibility: hidden; transition: transform var(--hb-dur-base) ease,visibility 0s linear var(--hb-dur-base); align-items: stretch; padding: 14px 12px; }
.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.is-start { justify-content: flex-start; }
.hx-btn.is-start .hx-btn-text { flex: 1 1 0%; text-align: left; }
.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--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; }
.hx-spinner { flex: 0 0 auto; }
.hx-spinner path { fill: none; stroke-width: 2.2; stroke-linejoin: round; }
.hx-spinner-track { stroke: color-mix(in srgb, currentcolor 22%, transparent 78%); }
.hx-spinner-head { stroke: var(--hb-primary); stroke-dasharray: 14, 44; animation: 1.1s linear 0s infinite normal none running hx-spin; }
@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-avatar > .hx-licon { color: inherit; }
.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-eyebrow-aside { text-transform: none; letter-spacing: 0px; font-weight: 500; display: inline-flex; gap: 6px; align-items: center; }
.hx-stat dt { font-size: var(--hb-text-sm); color: var(--hb-muted); }
.hx-stat dd { margin: 2px 0px 0px; 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: ; display: flex; align-items: baseline; gap: 5px; font-variant-numeric: tabular-nums; color: var(--hb-ink); }
.hx-stat dd small { font: 400 var(--hb-text-xs) var(--hb-font); color: var(--hb-muted); }
.hx-stat-hint { font-size: var(--hb-text-sm); color: var(--hb-muted); }
.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); }
.hx-kbd { display: inline-flex; gap: 3px; }
.hx-kbd kbd { min-width: 18px; height: 20px; padding: 0px 5px; box-sizing: border-box; display: inline-grid; place-items: center; font: 500 var(--hb-text-xs) var(--hb-mono); color: var(--hb-ink-2); background: var(--hb-surface); border-radius: var(--hb-radius-sm); box-shadow: inset 0 0 0 1px var(--hb-line-strong),0 1px 0 var(--hb-line-strong); }
@media (prefers-reduced-motion: reduce) {
.hx-spinner-head { animation: 3s linear 0s infinite normal none running hx-spin !important; }
}
@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.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); }
.hb-home-scopes button:focus-visible, .hb-home-layout button:focus-visible, .hb-outline-filter button:focus-visible { outline: none; --bd: var(--hb-primary); --bw: 2px; }
.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); }
.hb-doc-item, .hb-nav-item, .hb-oi, .hb-outline-head, .hb-palette-item, .hb-version, .hb-sim-row, .hb-search-hit, .hb-rail-doc, .hb-profile-btn, .hb-lib-card, .hb-dest { border-radius: var(--hb-radius-md) !important; }
.hb-rail-doc, .hb-profile-btn, .hb-lib-card, .hb-toast, .hb-dest { position: relative; isolation: isolate; border: 0px !important; box-shadow: none !important; }
.hb-profile-btn { --bd: transparent; }
.hb-profile-btn:hover { --bd: var(--hb-line); }
.hb-rail-doc::before, .hb-profile-btn::before, .hb-lib-card::before, .hb-toast::before, .hb-dest::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; }
.hb-rail-doc::before, .hb-profile-btn::before, .hb-lib-card::before, .hb-dest::before { border-radius: inherit; background: none; }
.hb-doc-item:focus-within { outline: none; }
.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; }
.hb-nav-item, .hb-doc-item, .hb-oi, .hb-palette-item, .hb-version, .hb-search-hit, .hx-dd-opt, .hx-menu-item, .hx-tabs.is-vertical .hx-tab { min-height: 44px; }
}
@media (pointer: coarse) {
.hb-app .hb-side .hb-oi, .hb-app .hb-side .hb-doc-link, .hb-app .hb-side .hb-outline-head { height: auto; min-height: 40px; }
.hb-app .hb-home-scopes button, .hb-app .hb-home-layout button, .hb-app .hb-outline-filter button { min-height: 38px; }
.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-side-tools { display: flex; flex-direction: column; gap: 2px; width: 100%; }
.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-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-busy { position: absolute; inset: 0px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--hb-muted); font-size: var(--hb-text-md); background: color-mix(in srgb,var(--hb-canvas) 70%,transparent); padding: 24px; }
.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 { display: inline-flex; align-items: center; }
.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; }
@keyframes hb-login-msg-in { 
  0% { opacity: 0; transform: translateY(-2px); }
}
.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-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); }
}
@keyframes hb-slide-r { 
  0% { opacity: 0; transform: translate(24px); }
}
@keyframes hb-slide-l { 
  0% { opacity: 0; transform: translate(-24px); }
}
@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; }
: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; }
}
@media (prefers-reduced-motion: reduce) {
.hb-side, .hb-side.is-rail > * { transition: none; animation: auto ease 0s 1 normal none running none; }
}
.hb-brand-home { display: flex; align-items: center; gap: 9px; border: 0px; padding: 2px; background: none; cursor: pointer; color: inherit; border-radius: var(--hb-radius-sm); }
.hb-brand-home:focus-visible { outline: 2px solid var(--hb-primary); outline-offset: 2px; }
.hb-side:not(.is-rail) { gap: 8px; overflow: hidden; }
.hb-side:not(.is-rail) > * { flex: 0 0 auto; }
.hb-side-nav, .hb-side-tools { display: flex; flex-direction: column; gap: 1px; }
.hb-side-tools, .hb-side:not(.is-rail) > .hb-side-tags, .hb-side:not(.is-rail) > .hb-side-recent { padding-top: 8px; border-top: 1px solid var(--hb-line); }
.hb-side-recent > .hb-side-label:first-child { padding-top: 2px; }
.hb-side-recent > .hb-side-label { align-items: baseline; padding-left: 10px; }
.hb-nav-item { display: flex; align-items: center; gap: 10px; width: 100%; border: 0px; background: transparent; cursor: pointer; padding: 7px 10px; border-radius: var(--hb-radius-md); font: 500 var(--hb-text-lg) var(--hb-font); color: var(--hb-ink-2); text-align: left; }
.hb-nav-label { flex: 1 1 0%; min-width: 0px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-nav-item > .hx-licon, .hb-nav-item > svg { flex: 0 0 auto; width: 16px; display: grid; place-items: center; }
.hb-nav-item > small { flex: 0 0 auto; min-width: 16px; text-align: right; 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-muted); font-variant-numeric: tabular-nums; }
.hb-nav-item .hx-licon, .hb-nav-item svg { color: var(--hb-muted); flex: 0 0 auto; }
.hb-nav-item:hover { background: color-mix(in srgb,var(--hb-ink) 5%,transparent); color: var(--hb-ink); }
.hb-nav-item:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--hb-primary); }
.hb-nav-item .hx-kbd { flex: 0 0 auto; margin-left: auto; }
.hb-nav-item .hx-kbd kbd { height: 18px; font-size: var(--hb-text-xs); }
.hb-side-recent { gap: 0px; }
.hb-side-label-link { border: 0px; background: none; font: 600 var(--hb-text-xs) var(--hb-font); letter-spacing: 0px; text-transform: none; color: var(--hb-accent-ink); cursor: pointer; padding: 0px 2px; }
.hb-side-recent .hb-doc-link { grid-template-columns: 18px minmax(0px, 1fr) auto; padding: 5px 4px 5px 8px; }
.hb-side-recent .hb-doc-link small { grid-column: auto; font-size: var(--hb-text-xs); white-space: nowrap; }
.hb-doc-ic { display: grid; place-items: center; color: var(--hb-muted); }
.hb-doc-item.is-active .hb-doc-ic { color: var(--hb-accent-ink); }
.hb-side-recent .hb-doc-name { font-size: var(--hb-text-md); }
.hb-side:not(.is-rail) > .hb-side-foot { margin-top: auto; flex: 0 0 auto; }
.hb-outline { display: flex; flex-direction: column; min-height: 0px; gap: 6px; padding-top: 8px; border-top: 1px solid var(--hb-line); }
.hb-side:not(.is-rail) > .hb-outline.is-open { flex: 1 1 0px; min-height: 168px; margin-bottom: -2px; }
.hb-outline-head { display: flex; align-items: center; gap: 6px; width: 100%; border: 0px; background: none; cursor: pointer; padding: 4px 8px; border-radius: var(--hb-radius-md); text-align: left; font: 600 var(--hb-text-xs) var(--hb-font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--hb-muted); }
.hb-outline-head:hover { color: var(--hb-ink); background: color-mix(in srgb,var(--hb-ink) 4%,transparent); }
.hb-outline-head:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--hb-primary); }
.hb-outline-title { flex: 1 1 0%; min-width: 0px; }
.hb-outline-head small { font: 600 var(--hb-text-xs) var(--hb-mono); letter-spacing: 0px; }
.hb-outline-chev { flex: 0 0 auto; transition: transform var(--hb-dur-fast); }
.hb-outline.is-open .hb-outline-chev { transform: rotate(90deg); }
.hb-outline-filter { display: flex; gap: 2px; padding: 2px; margin: 0px 4px; border-radius: var(--hb-radius-md); background: color-mix(in srgb,var(--hb-ink) 5%,transparent); }
.hb-outline-filter button { flex: 1 1 0px; min-width: 0px; height: 26px; display: inline-flex; justify-content: center; align-items: center; gap: 4px; border: 0px; cursor: pointer; padding: 0px 6px; border-radius: var(--hb-radius-md); background: transparent; color: var(--hb-ink-2); font: 500 var(--hb-text-sm) var(--hb-font); white-space: nowrap; box-shadow: none; }
.hb-outline-filter button.is-all { flex: 1.2 1 0px; }
.hb-outline-filter button small { font: 600 var(--hb-text-xs) var(--hb-mono); color: var(--hb-muted); }
.hb-outline-filter button svg, .hb-outline-filter button .hx-licon { color: var(--hb-muted); flex: 0 0 auto; }
.hb-outline-filter button:hover { color: var(--hb-ink); }
.hb-outline-filter button.is-on { background: var(--hb-surface); color: var(--hb-ink); }
.hb-outline-scroll { position: relative; flex: 1 1 auto; min-height: 0px; display: flex; }
.hb-outline-list { flex: 1 1 0%; min-height: 0px; overflow-y: auto; overscroll-behavior: contain; scroll-padding: 12px 0px; display: flex; flex-direction: column; gap: 1px; padding: 2px 4px 10px 0px; margin-right: -8px; scrollbar-gutter: stable; }
.hb-outline-scroll::before, .hb-outline-scroll::after { content: ""; position: absolute; left: 0px; right: 4px; height: 18px; pointer-events: none; opacity: 0; transition: opacity var(--hb-dur-fast); z-index: var(--hb-z-raised); }
.hb-outline-scroll::before { top: 0px; background: linear-gradient(var(--hb-surface-2),transparent); }
.hb-outline-scroll::after { bottom: 0px; background: linear-gradient(transparent,var(--hb-surface-2)); }
.hb-outline-scroll.has-above::before, .hb-outline-scroll.has-below::after { opacity: 1; }
.hb-oi { --d: 0; position: relative; flex: 0 0 auto; display: flex; align-items: center; gap: 8px; width: 100%; min-height: 32px; border: 0px; background: transparent; cursor: pointer; text-align: left; border-radius: var(--hb-radius-md); padding: 4px 8px 4px calc(8px + var(--d) * 12px); color: var(--hb-ink-2); font: var(--hb-text-md) var(--hb-font); }
.hb-oi:hover { background: color-mix(in srgb,var(--hb-ink) 5%,transparent); color: var(--hb-ink); }
.hb-oi:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--hb-primary); }
.hb-oi:not(.is-heading)::after { content: ""; position: absolute; left: calc(14px + (var(--d) - 1) * 12px); top: 2px; bottom: 2px; width: 1px; background: var(--hb-line); }
.hb-oi.d1::after { display: none; }
.hb-oi.is-heading { min-height: 28px; margin-top: 6px; }
.hb-oi-h { flex: 1 1 0%; min-width: 0px; font-weight: 600; color: var(--hb-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--hb-text-md); }
.hb-oi-ic { flex: 0 0 auto; width: 24px; height: 24px; display: grid; place-items: center; border-radius: var(--hb-radius-sm); background: var(--hb-surface); box-shadow: inset 0 0 0 1px var(--hb-line); color: var(--hb-muted); }
.hb-oi.is-figure .hb-oi-ic { color: var(--hb-accent-ink); background: color-mix(in srgb,var(--hb-primary) 8%,var(--hb-surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--hb-primary) 22%,transparent); }
.hb-oi-txt { flex: 1 1 0%; min-width: 0px; display: grid; }
.hb-oi-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; color: var(--hb-ink); font-size: var(--hb-text-md); line-height: 1.35; }
.hb-oi-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--hb-text-xs); line-height: 1.3; color: var(--hb-muted); }
.hb-oi.is-current { background: color-mix(in srgb,var(--hb-primary) 10%,transparent); }
.hb-oi.is-current::before { content: ""; position: absolute; left: 0px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 var(--hb-radius-sm) var(--hb-radius-sm) 0; background: var(--hb-primary); }
.hb-oi.is-current .hb-oi-h, .hb-oi.is-current .hb-oi-label { color: var(--hb-accent-ink); }
@media (max-height: 700px) {
.hb-side:not(.is-rail) { overflow-y: auto; }
.hb-side:not(.is-rail) > .hb-outline.is-open { flex: 0 0 auto; height: 300px; }
}
.hb-side .hb-profile-btn { height: 50px; box-sizing: border-box; }
@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; }
@media (pointer: coarse) {
.hb-top .hx-btn { min-height: 36px; min-width: 36px; }
}
@keyframes hb-drawer-in { 
  0% { transform: translate(14px); opacity: 0; }
}
@keyframes hb-scrim-in { 
  0% { opacity: 0; }
}
.hb-block[data-insp]:not(.is-active) .hb-fig-no { box-shadow: 0 0 0 1.5px color-mix(in srgb,var(--hb-primary) 55%,transparent); }
.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-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 { display: grid; gap: 10px; }
.hb-fc .hx-eyebrow { margin: 0px; }
.hb-fc-name { display: grid; gap: 3px; justify-items: start; }
.hb-fc-title { font: 600 var(--hb-text-xl)/1.3 var(--hb-font); color: var(--hb-ink); overflow-wrap: anywhere; }
.hb-fc-src { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 2px; }
.hb-fc .hb-formula { margin: 2px 0px; }
.hb-fc .hb-stats { margin: 0px; }
.hb-ptable { width: 100%; border-collapse: collapse; font-size: var(--hb-text-md); }
.hb-ptable th, .hb-ptable td { padding: var(--hb-space-1) 0; border-bottom: 1px solid var(--hb-line); text-align: left; font-weight: var(--hb-weight-regular); color: var(--hb-ink-2); }
.hb-ptable .num { text-align: right; padding-right: var(--hb-space-3); color: var(--hb-ink); white-space: nowrap; }
.hb-ptable .hb-ptable-m { font-size: var(--hb-text-sm); color: var(--hb-muted); white-space: nowrap; }
.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-fc { container-type: inline-size; }
.hb-fc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 10px; border-top: 1px solid var(--hb-line); }
.hb-fc-actions .hx-btn { justify-content: center; min-width: 0px; }
@container (max-width: 250px) {
.hb-fc-actions { grid-template-columns: 1fr; }
}
.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 7px; border-radius: var(--hb-radius-md); }
.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-head.is-following .hb-insp-fig { box-shadow: 0 0 0 1.5px color-mix(in srgb,var(--hb-primary) 55%,transparent); }
.hb-insp-stack { gap: 14px; }
.hb-fc .hb-formula { font-size: var(--hb-text-4xl); margin: 0px; }
.hb-fc-valid { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; border: 0px; border-radius: var(--hb-radius-md); cursor: pointer; text-align: left; font: 500 var(--hb-text-md) var(--hb-font); color: var(--hb-ink-2); background: var(--hb-surface); box-shadow: inset 0 0 0 1px var(--hb-line); }
.hb-fc-valid > span:nth-child(2) { flex: 1 1 0%; min-width: 0px; }
.hb-fc-valid.is-ok > .hx-licon:first-child { color: var(--hb-success); }
.hb-fc-valid:hover { box-shadow: inset 0 0 0 1px var(--hb-primary); }
.hb-fc-valid:focus-visible { outline: 2px solid var(--hb-primary); outline-offset: 1px; }
.hb-fc-valid-go { color: var(--hb-muted); }
.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; }
@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;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
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 e link: l'angolo tagliato è il segno dell'app ── */
.st-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  background: var(--hb-primary);
  color: var(--hb-on-primary);
  font-size: 15px;
  font-weight: var(--hb-weight-semibold);
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition: background 0.15s var(--hb-ease-out);
}
.st-btn:hover {
  background: var(--hb-primary-hover);
}
.st-btn.is-lg {
  padding: 13px 24px;
  font-size: 16px;
}
.st-btn.is-ghost {
  background: var(--hb-surface-3);
  color: var(--hb-ink);
}
.st-btn.is-ghost:hover {
  background: var(--hb-line-strong);
}
.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,
.st-plan li svg {
  margin-top: 4px;
  color: var(--hb-success);
}

/* ── piani ── */
/* Le schede stanno al centro, una accanto all'altra: con due piani restano raccolte, e un terzo o un quarto si
   affiancano da soli fino a riempire la riga. */
.st-plans {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}
.st-plan {
  flex: 0 1 380px;
}
.st-plan {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--hb-surface);
  border: 1px solid var(--hb-line);
  border-radius: var(--hb-radius-lg);
}
.st-plan.is-paid {
  border-color: var(--hb-primary);
  box-shadow: 0 0 0 1px var(--hb-primary);
}
.st-plan-tag {
  color: var(--hb-ink-2);
  font-size: 15px;
  margin-top: 4px;
}
.st-plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 20px;
}
.st-plan-price b {
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.st-plan-price span,
.st-plan-note {
  color: var(--hb-ink-2);
  font-size: 14px;
}
.st-plan-note {
  margin-top: 6px;
  min-height: 1.6em;
}
.st-plan .st-btn {
  margin-top: 20px;
}
.st-plan ul {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--hb-line);
  font-size: 15px;
}
.st-plan li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  align-items: start;
}

/* ── 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,
.st-plan {
  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,
.st-plan:hover {
  transform: translateY(-3px);
  box-shadow: var(--hb-shadow-md);
  border-color: var(--hb-line-strong);
}
.st-plan.is-paid:hover {
  border-color: var(--hb-primary);
}
.st-btn svg,
.st-link svg {
  transition: transform 0.2s var(--hb-ease-out);
}
.st-btn:hover svg,
.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;
  }
  /* 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-plans,
    .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;
  }
  .st-btn {
    transition: none;
  }
}
