/* css/tokens.css */
/* ==========================================================================
   Weesify "Aurora" design tokens v2 — docs/design/DESIGN_LANGUAGE.md
   Emerald identity, lime energy, violet intelligence (Assist), tangerine heat.
   Single source of truth for colour, type, space, radius, elevation, motion.
   ========================================================================== */
@layer reset, tokens, base, components, utilities;

@font-face { font-family: "Manrope"; font-weight: 200 800; font-style: normal; font-display: swap; src: url("/fonts/Manrope-Variable.woff") format("woff"); }
@font-face { font-family: "Urbanist"; font-weight: 100 900; font-style: normal; font-display: swap; src: url("/fonts/Urbanist-Variable.woff") format("woff"); }
@font-face { font-family: "Instrument Serif"; font-weight: 400; font-style: italic; font-display: swap; src: url("/fonts/InstrumentSerif-Italic.woff") format("woff"); }

@layer tokens {
  :root {
    color-scheme: light;

    /* ---- Brand palette ---- */
    --emerald-50: #E9FDF4;
    --emerald-100: #CFFAE6;
    --emerald-200: #9EF2CD;
    --emerald-300: #5FE6AE;
    --emerald-400: #25D695;
    --emerald-500: #0BC284;
    --emerald-600: #07A06C;
    --emerald-700: #067C55;
    --emerald-800: #065E41;
    --forest-900: #062A1E;
    --forest-950: #03170F;
    --ink-raw: #0B0F0D;

    --lime-300: #D9FB8F;
    --lime-400: #C2F45B;
    --lime-500: #A6E635;

    --violet-300: #C4B5FF;
    --violet-400: #A08BFF;
    --violet-500: #7C5CFF;
    --violet-600: #6441F2;
    --violet-700: #4B2BC9;

    --tangerine-400: #FF9A5C;
    --tangerine-500: #FF7A3D;
    --tangerine-600: #E85D1E;

    --sky-500: #3B8BFF;
    --rose-500: #FF4D8D;

    /* Stone neutrals (warm-green tint) */
    --moss-0: #FFFFFF;
    --moss-25: #FBFBF9;
    --moss-50: #F5F6F3;
    --moss-100: #EEF0EC;
    --moss-200: #E4E7E2;
    --moss-300: #CDD2CB;
    --moss-400: #9BA39B;
    --moss-500: #6B736C;
    --moss-600: #4A524C;
    --moss-700: #333A35;
    --moss-800: #1E2420;
    --moss-900: #111512;

    /* ---- Semantic surfaces ---- */
    --canvas: #F1F2EE;
    --surface: #FFFFFF;
    --surface-2: #FAFAF8;
    --surface-sunken: #F4F5F2;
    --surface-hover: #F4F5F1;
    --surface-active: #ECEEE9;
    --overlay: rgb(8 12 10 / 0.42);
    --glass: rgb(255 255 255 / 0.72);
    --glass-strong: rgb(255 255 255 / 0.86);
    --glass-line: rgb(255 255 255 / 0.7);

    --ink: var(--ink-raw);
    --text: #262C28;
    --text-muted: #6B736C;
    --text-subtle: #9BA39B;
    --text-on-ink: #F6FAF7;
    --line: #E6E9E4;
    --line-strong: #D5DAD3;

    --accent: var(--emerald-500);
    --accent-hover: var(--emerald-600);
    --accent-text: var(--emerald-700);
    --accent-soft: var(--emerald-50);
    --accent-soft-2: var(--emerald-100);
    --assist: var(--violet-500);
    --assist-soft: #F1EDFF;
    --assist-text: var(--violet-600);
    --heat: var(--tangerine-500);
    --heat-soft: #FFF1E9;

    --success: var(--emerald-600);
    --success-soft: var(--emerald-50);
    --warning: #B86F00;
    --warning-soft: #FFF5E0;
    --danger: #D93A3A;
    --danger-soft: #FDECEC;
    --info: #2563EB;
    --info-soft: #EAF1FE;

    /* Data viz: validated categorical order (see dataviz notes in DESIGN_LANGUAGE.md) */
    --chart-1: #0BC284;
    --chart-2: #7C5CFF;
    --chart-3: #FF7A3D;
    --chart-4: #3B8BFF;
    --chart-5: #E4A11B;
    --chart-6: #FF4D8D;

    /* ---- Signature gradients ---- */
    --grad-aurora: linear-gradient(120deg, #0BC284 0%, #25D695 22%, #7C5CFF 62%, #FF7A3D 100%);
    --grad-brand: linear-gradient(135deg, #C2F45B 0%, #25D695 55%, #0BC284 100%);
    --grad-forest: radial-gradient(120% 120% at 100% 0%, rgb(37 214 149 / .55) 0%, transparent 52%), linear-gradient(155deg, #0B3B2A 0%, #062A1E 48%, #03170F 100%);
    --grad-violet: radial-gradient(120% 120% at 100% 0%, rgb(196 181 255 / .5) 0%, transparent 55%), linear-gradient(155deg, #7C5CFF 0%, #5B3BE8 55%, #3A1FB0 100%);
    --grad-sunset: radial-gradient(120% 120% at 0% 0%, rgb(255 214 170 / .6) 0%, transparent 50%), linear-gradient(150deg, #FF9A5C 0%, #FF7A3D 45%, #E8531E 100%);
    --grad-ink: radial-gradient(120% 140% at 100% 0%, rgb(124 92 255 / .35) 0%, transparent 45%), radial-gradient(90% 120% at 0% 100%, rgb(11 194 132 / .28) 0%, transparent 50%), linear-gradient(160deg, #15191A 0%, #0B0D0C 100%);
    --grad-mesh: radial-gradient(60% 60% at 12% 8%, rgb(194 244 91 / .28), transparent 60%), radial-gradient(50% 55% at 88% 12%, rgb(124 92 255 / .20), transparent 60%), radial-gradient(60% 60% at 70% 100%, rgb(11 194 132 / .18), transparent 60%);
    --hatch: repeating-linear-gradient(135deg, rgb(255 255 255 / .38) 0 2px, transparent 2px 7px);

    --focus-ring: 0 0 0 3px rgb(11 194 132 / 0.32);

    /* ---- Typography ---- */
    --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Urbanist", "Manrope", ui-sans-serif, system-ui, sans-serif;
    --font-accent: "Instrument Serif", "Iowan Old Style", Georgia, serif;
    --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
    --fs-micro: 0.75rem;    /* 12 */
    --fs-small: 0.8125rem;  /* 13 */
    --fs-body: 0.875rem;    /* 14 */
    --fs-h3: 1.0625rem;     /* 17 */
    --fs-h2: 1.375rem;      /* 22 */
    --fs-h1: clamp(1.75rem, 1.2rem + 1.6vw, 2.25rem);
    --fs-display: clamp(2.5rem, 1.4rem + 4.6vw, 4.75rem);

    /* ---- Space (4px base) ---- */
    --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px;
    --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-14: 56px;

    /* ---- Radius ---- */
    --r-xs: 7px; --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-2xl: 36px; --r-pill: 999px;

    /* ---- Elevation ---- */
    --e1: 0 1px 2px rgb(20 28 22 / 0.04), 0 0 0 1px rgb(20 28 22 / 0.02);
    --e2: 0 10px 30px -10px rgb(20 28 22 / 0.16), 0 2px 6px rgb(20 28 22 / 0.05);
    --e3: 0 30px 80px -20px rgb(20 28 22 / 0.32), 0 6px 16px rgb(20 28 22 / 0.08);
    --e-glow: 0 18px 50px -12px rgb(11 194 132 / 0.45);
    --e-glow-violet: 0 18px 50px -12px rgb(124 92 255 / 0.5);
    --e-inset: inset 0 1px 0 rgb(255 255 255 / 0.7);

    /* ---- Motion ---- */
    --t-instant: 80ms; --t-fast: 150ms; --t-base: 240ms; --t-slow: 380ms; --t-lazy: 700ms;
    --ease-out: cubic-bezier(.22, 1, .36, 1);
    --ease-in: cubic-bezier(.4, 0, 1, 1);
    --ease-spring: cubic-bezier(.34, 1.45, .64, 1);

    /* ---- Layout ---- */
    --sidebar-w: 260px;
    --sidebar-rail: 72px;
    --shell-gap: 10px;
    --topbar-h: 64px;
  }

  :root[data-theme="dark"] {
    color-scheme: dark;
    --canvas: #08090A;
    --surface: #111315;
    --surface-2: #14171A;
    --surface-sunken: #0C0E10;
    --surface-hover: #1A1D20;
    --surface-active: #202428;
    --overlay: rgb(0 0 0 / 0.62);
    --glass: rgb(22 25 28 / 0.66);
    --glass-strong: rgb(22 25 28 / 0.86);
    --glass-line: rgb(255 255 255 / 0.08);

    --ink: #F4F6F5;
    --text: #D9DEDB;
    --text-muted: #8E9692;
    --text-subtle: #626A66;
    --text-on-ink: #0B0F0D;
    --line: rgb(255 255 255 / 0.07);
    --line-strong: rgb(255 255 255 / 0.12);

    --accent: #2BE3A2;
    --accent-hover: #5CEFBC;
    --accent-text: #6FF2C6;
    --accent-soft: rgb(43 227 162 / 0.10);
    --accent-soft-2: rgb(43 227 162 / 0.18);
    --assist: #9A83FF;
    --assist-soft: rgb(124 92 255 / 0.14);
    --assist-text: #B9A9FF;
    --heat: #FF9A5C;
    --heat-soft: rgb(255 122 61 / 0.14);

    --success: #3DDC9A;
    --success-soft: rgb(61 220 154 / 0.12);
    --warning: #F0B44C;
    --warning-soft: rgb(240 180 76 / 0.12);
    --danger: #F17171;
    --danger-soft: rgb(241 113 113 / 0.12);
    --info: #7BA5FF;
    --info-soft: rgb(123 165 255 / 0.12);

    --chart-1: #0FA873; /* validated: scripts/validate_palette.js --mode dark */
    --chart-2: #8468FF;
    --chart-3: #E0692F;
    --chart-4: #4388F0;
    --chart-5: #BC8C14;
    --chart-6: #EC4C87;

    --grad-mesh: radial-gradient(55% 55% at 10% 0%, rgb(43 227 162 / .16), transparent 60%), radial-gradient(45% 50% at 90% 5%, rgb(124 92 255 / .20), transparent 60%), radial-gradient(60% 60% at 60% 100%, rgb(255 122 61 / .08), transparent 60%);
    --hatch: repeating-linear-gradient(135deg, rgb(0 0 0 / .28) 0 2px, transparent 2px 7px);

    --focus-ring: 0 0 0 3px rgb(43 227 162 / 0.32);
    --e1: 0 1px 2px rgb(0 0 0 / 0.5), 0 0 0 1px rgb(255 255 255 / 0.02);
    --e2: 0 14px 34px -10px rgb(0 0 0 / 0.7), 0 2px 6px rgb(0 0 0 / 0.35);
    --e3: 0 34px 90px -16px rgb(0 0 0 / 0.85);
    --e-inset: inset 0 1px 0 rgb(255 255 255 / 0.05);
  }

  @media (prefers-reduced-motion: reduce) {
    :root { --t-instant: 1ms; --t-fast: 1ms; --t-base: 1ms; --t-slow: 1ms; --t-lazy: 1ms; }
  }
}

/* css/base.css */
/* Reset + base typography ------------------------------------------------- */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body { min-height: 100dvh; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
  img, picture, video, canvas, svg { display: block; max-width: 100%; }
  input, button, textarea, select { font: inherit; color: inherit; }
  button { background: none; border: 0; padding: 0; cursor: pointer; }
  a { color: inherit; text-decoration: none; }
  p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
  ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
  table { border-collapse: collapse; }
  [hidden] { display: none !important; }
  [x-cloak] { display: none !important; }
}

@layer base {
  html { background: var(--canvas); }
  body {
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    line-height: 1.57;
    color: var(--text);
    background: var(--canvas);
    font-feature-settings: "kern", "calt";
    font-weight: 450;
  }
  h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
  h1 { font-size: var(--fs-h1); letter-spacing: -0.035em; }
  h2 { font-size: var(--fs-h2); }
  h3 { font-size: var(--fs-h3); }
  strong, b { font-weight: 650; color: var(--ink); }
  small { font-size: var(--fs-small); }
  code, kbd, samp { font-family: var(--font-mono); font-size: 0.92em; }
  ::selection { background: var(--accent-soft-2); color: var(--ink); }

  :focus { outline: none; }
  :focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--r-sm); }

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

  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 8px 14px; border-radius: var(--r-sm); background: var(--ink); color: var(--text-on-ink); transition: top var(--t-fast) var(--ease-out); }
  .skip-link:focus { top: 12px; }

  .serif-accent, em.accent { font-family: var(--font-accent); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
  .display { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.04em; line-height: 1.02; color: var(--ink); }
  .tabular { font-variant-numeric: tabular-nums; }
}

/* css/components/controls.css */
/* Buttons, inputs, choice controls ---------------------------------------- */
@layer components {
  /* ---- Button ---- */
  .btn {
    --btn-h: 36px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: var(--btn-h); padding: 0 14px;
    border-radius: var(--r-sm); border: 1px solid transparent;
    font-size: var(--fs-body); font-weight: 500; line-height: 1; white-space: nowrap;
    user-select: none; position: relative;
    transition: background var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out),
                color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out),
                transform var(--t-instant) var(--ease-out);
  }
  .btn:active:not(:disabled) { transform: translateY(1px) scale(0.99); }
  .btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
  .btn svg { width: 16px; height: 16px; flex: none; }
  .btn .kbd { margin-left: 2px; }

  .btn-primary { background: var(--ink); color: var(--text-on-ink); box-shadow: var(--e1), inset 0 1px 0 rgb(255 255 255 / .08); }
  .btn-primary:hover:not(:disabled) { background: color-mix(in oklab, var(--ink) 88%, var(--accent)); }
  .btn-primary .kbd { background: rgb(255 255 255 / .12); color: inherit; border-color: rgb(255 255 255 / .16); }
  :root[data-theme="dark"] .btn-primary .kbd { background: rgb(0 0 0 / .08); border-color: rgb(0 0 0 / .12); }

  .btn-brand { background: linear-gradient(180deg, var(--emerald-500), var(--emerald-600)); color: #fff; box-shadow: var(--e1), inset 0 1px 0 rgb(255 255 255 / .2); }
  .btn-brand:hover:not(:disabled) { background: linear-gradient(180deg, var(--emerald-600), var(--emerald-700)); }

  .btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--e1); }
  .btn-secondary:hover:not(:disabled) { background: var(--surface-hover); border-color: var(--moss-400); }

  .btn-ghost { background: transparent; color: var(--text); }
  .btn-ghost:hover:not(:disabled) { background: var(--surface-hover); color: var(--ink); }

  .btn-danger { background: var(--danger); color: #fff; }
  .btn-danger:hover:not(:disabled) { background: color-mix(in oklab, var(--danger) 88%, black); }
  .btn-danger-ghost { color: var(--danger); }
  .btn-danger-ghost:hover:not(:disabled) { background: var(--danger-soft); }

  .btn-sm { --btn-h: 30px; padding: 0 10px; font-size: var(--fs-small); gap: 6px; }
  .btn-lg { --btn-h: 44px; padding: 0 20px; font-size: 0.9375rem; border-radius: 10px; }
  .btn-block { width: 100%; }
  .btn-icon { width: var(--btn-h); padding: 0; }

  .btn .btn-spinner { display: none; }
  .btn[data-loading] .btn-label, .btn.is-loading .btn-label { opacity: 0; }
  .btn[data-loading] .btn-spinner, .btn.is-loading .btn-spinner { display: block; position: absolute; animation: spin .7s linear infinite; }

  /* ---- Keyboard hint ---- */
  .kbd {
    display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px;
    font-family: var(--font-sans); font-size: 11px; font-weight: 500; line-height: 1;
    color: var(--text-muted); background: var(--surface-sunken); border: 1px solid var(--line); border-radius: var(--r-xs);
  }

  /* ---- Field ---- */
  .field { display: grid; gap: 6px; }
  .field-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: var(--fs-small); font-weight: 500; color: var(--ink); }
  .field-label .optional { font-weight: 400; color: var(--text-subtle); }
  .field-hint { font-size: var(--fs-micro); color: var(--text-muted); line-height: 1.45; }
  .field-error { font-size: var(--fs-micro); color: var(--danger); display: flex; gap: 6px; align-items: center; }
  .field-error svg { width: 14px; height: 14px; }

  .input, .select, .textarea {
    width: 100%; min-height: 38px; padding: 8px 12px;
    background: var(--surface); color: var(--ink);
    border: 1px solid var(--line-strong); border-radius: var(--r-sm);
    box-shadow: var(--e1);
    transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out), background var(--t-fast);
  }
  .input::placeholder, .textarea::placeholder { color: var(--text-subtle); }
  .input:hover, .select:hover, .textarea:hover { border-color: var(--moss-400); }
  .input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: var(--focus-ring); outline: none; }
  .input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--danger); }
  .input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px color-mix(in oklab, var(--danger) 25%, transparent); }
  .input:disabled { background: var(--surface-sunken); color: var(--text-muted); }
  .textarea { min-height: 88px; resize: vertical; line-height: 1.5; }
  .select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236A7872' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 15 5 5 5-5'/%3E%3Cpath d='m7 9 5-5 5 5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
  .input-lg { min-height: 46px; font-size: 0.9375rem; padding: 10px 14px; border-radius: 10px; }

  /* Input group: [prefix][input][suffix] */
  .input-group { display: flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); box-shadow: var(--e1); transition: border-color var(--t-fast), box-shadow var(--t-fast); overflow: hidden; }
  .input-group:hover { border-color: var(--moss-400); }
  .input-group:focus-within { border-color: var(--accent); box-shadow: var(--focus-ring); }
  .input-group .input, .input-group .select { border: 0; box-shadow: none; border-radius: 0; min-width: 0; }
  .input-group .input:focus, .input-group .select:focus { box-shadow: none; }
  .input-addon { display: flex; align-items: center; gap: 6px; padding: 0 12px; background: var(--surface-sunken); color: var(--text-muted); font-size: var(--fs-small); white-space: nowrap; border-right: 1px solid var(--line); }
  .input-addon:last-child { border-right: 0; border-left: 1px solid var(--line); }
  .input-addon svg { width: 16px; height: 16px; }
  .input-icon { position: relative; }
  .input-icon > svg { position: absolute; left: 12px; top: 50%; translate: 0 -50%; width: 16px; height: 16px; color: var(--text-subtle); pointer-events: none; }
  .input-icon > .input { padding-left: 36px; }

  /* ---- Toggle (switch) ---- */
  .switch { position: relative; display: inline-flex; width: 36px; height: 20px; flex: none; }
  .switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
  .switch-track { position: absolute; inset: 0; border-radius: var(--r-pill); background: var(--moss-300); transition: background var(--t-fast) var(--ease-out); }
  .switch-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .2); transition: transform var(--t-base) var(--ease-spring); }
  .switch input:checked + .switch-track { background: var(--accent); }
  .switch input:checked + .switch-track::after { transform: translateX(16px); }
  .switch input:focus-visible + .switch-track { box-shadow: var(--focus-ring); }
  :root[data-theme="dark"] .switch-track { background: var(--line-strong); }

  .toggle-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 12px 0; }
  .toggle-row + .toggle-row { border-top: 1px solid var(--line); }
  .toggle-row-title { font-weight: 500; color: var(--ink); }
  .toggle-row-desc { font-size: var(--fs-small); color: var(--text-muted); }

  /* ---- Checkbox / radio ---- */
  .check { appearance: none; width: 16px; height: 16px; flex: none; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface); display: inline-grid; place-content: center; transition: background var(--t-fast), border-color var(--t-fast); cursor: pointer; }
  .check::before { content: ""; width: 10px; height: 10px; transform: scale(0); transition: transform var(--t-fast) var(--ease-spring); clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); background: #fff; }
  .check:checked { background: var(--ink); border-color: var(--ink); }
  .check:checked::before { transform: scale(1); }
  .check[type="radio"] { border-radius: 50%; }
  .check[type="radio"]::before { clip-path: circle(50%); width: 6px; height: 6px; }

  /* ---- Segmented control ---- */
  .segmented { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-sunken); border: 1px solid var(--line); border-radius: 10px; }
  .segmented > * { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 7px; font-size: var(--fs-small); font-weight: 500; color: var(--text-muted); transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast); }
  .segmented > *:hover { color: var(--ink); }
  .segmented > [aria-pressed="true"], .segmented > [aria-selected="true"], .segmented > .is-active { background: var(--surface); color: var(--ink); box-shadow: var(--e1), 0 0 0 1px var(--line); }
  .segmented svg { width: 15px; height: 15px; }

  /* ---- Choice cards (large selectable tiles, onboarding & pickers) ---- */
  .choice-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .choice {
    position: relative; display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 14px;
    border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface);
    transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast) var(--ease-out), background var(--t-fast);
    cursor: pointer;
  }
  .choice:hover { border-color: var(--moss-400); transform: translateY(-1px); box-shadow: var(--e2); }
  .choice:has(input:checked), .choice.is-selected { border-color: var(--accent); background: linear-gradient(180deg, var(--accent-soft), var(--surface)); box-shadow: 0 0 0 1px var(--accent), var(--e1); }
  .choice:has(input:focus-visible) { box-shadow: var(--focus-ring); }
  .choice input { position: absolute; opacity: 0; pointer-events: none; }
  .choice-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-sunken); color: var(--ink); border: 1px solid var(--line); }
  .choice:has(input:checked) .choice-icon, .choice.is-selected .choice-icon { background: var(--ink); color: var(--text-on-ink); border-color: transparent; }
  .choice-icon svg { width: 18px; height: 18px; }
  .choice-title { font-weight: 500; color: var(--ink); }
  .choice-desc { font-size: var(--fs-small); color: var(--text-muted); line-height: 1.4; }
  .choice-check { position: absolute; top: 12px; right: 12px; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: all var(--t-fast); }
  .choice:has(input:checked) .choice-check, .choice.is-selected .choice-check { background: var(--accent); border-color: var(--accent); color: #fff; }
  .choice-check svg { width: 12px; height: 12px; opacity: 0; }
  .choice:has(input:checked) .choice-check svg, .choice.is-selected .choice-check svg { opacity: 1; }

  /* Option tiles (visual pickers in builder) */
  .tile-grid { display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile { display: grid; gap: 6px; text-align: center; font-size: var(--fs-micro); color: var(--text-muted); cursor: pointer; }
  .tile-preview { aspect-ratio: 1 / 0.8; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface-sunken); display: grid; place-items: center; overflow: hidden; transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast); }
  .tile:hover .tile-preview { border-color: var(--moss-400); transform: translateY(-1px); }
  .tile.is-selected .tile-preview, .tile:has(input:checked) .tile-preview { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
  .tile.is-selected, .tile:has(input:checked) { color: var(--ink); font-weight: 500; }
  .tile input { position: absolute; opacity: 0; pointer-events: none; }

  /* Colour swatch input */
  .color-field { display: flex; align-items: center; gap: 8px; }
  .color-field input[type="color"] { appearance: none; width: 38px; height: 38px; padding: 3px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; }
  .color-field input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
  .color-field input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 5px; }
  .color-field input[type="color"]::-moz-color-swatch { border: 0; border-radius: 5px; }

  input[type="range"].range { width: 100%; accent-color: var(--accent); }

  @keyframes spin { to { rotate: 360deg; } }
}

/* css/components/surfaces.css */
/* Cards, badges, menus, dialogs, drawers, toasts, empty states, skeletons */
@layer components {
  /* ---- Card ---- */
  .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--e1); }
  .card-pad { padding: var(--s-5); }
  .card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
  .card-title { font-size: var(--fs-h3); font-weight: 500; color: var(--ink); }
  .card-subtitle { font-size: var(--fs-small); color: var(--text-muted); }
  .card-body { padding: 20px; }
  .card-footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }
  .card-interactive { transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast) var(--ease-out); }
  .card-interactive:hover { border-color: var(--line-strong); box-shadow: var(--e2); transform: translateY(-1px); }

  /* ---- Badge / pill ---- */
  .badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: var(--r-pill); font-size: var(--fs-micro); font-weight: 500; line-height: 1; white-space: nowrap; background: var(--surface-sunken); color: var(--text); border: 1px solid var(--line); }
  .badge svg { width: 12px; height: 12px; }
  .badge-accent { background: var(--accent-soft); color: var(--accent-text); border-color: color-mix(in oklab, var(--accent) 25%, transparent); }
  .badge-warning { background: var(--warning-soft); color: var(--warning); border-color: color-mix(in oklab, var(--warning) 25%, transparent); }
  .badge-danger { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in oklab, var(--danger) 25%, transparent); }
  .badge-info { background: var(--info-soft); color: var(--info); border-color: color-mix(in oklab, var(--info) 25%, transparent); }
  .badge-ink { background: var(--ink); color: var(--text-on-ink); border-color: transparent; }
  .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
  .dot-live { color: var(--accent); box-shadow: 0 0 0 0 currentColor; animation: pulse 2s var(--ease-out) infinite; }

  .delta { display: inline-flex; align-items: center; gap: 2px; padding: 2px 6px; border-radius: var(--r-pill); font-size: var(--fs-micro); font-weight: 500; }
  .delta svg { width: 12px; height: 12px; }
  .delta-up { color: var(--accent-text); background: var(--accent-soft); }
  .delta-down { color: var(--danger); background: var(--danger-soft); }
  .delta-flat { color: var(--text-muted); background: var(--surface-sunken); }

  /* ---- Avatar ---- */
  .avatar { --size: 32px; width: var(--size); height: var(--size); flex: none; border-radius: 50%; display: grid; place-items: center; font-size: calc(var(--size) * .38); font-weight: 500; color: var(--ink); background: linear-gradient(135deg, var(--emerald-100), var(--moss-100)); border: 1px solid var(--line); overflow: hidden; }
  .avatar img { width: 100%; height: 100%; object-fit: cover; }
  .avatar-square { border-radius: 9px; }
  .avatar-ws { background: linear-gradient(135deg, var(--emerald-500), var(--forest-900)); color: #fff; border: 0; }

  /* ---- Menu / popover ---- */
  .menu {
    min-width: 220px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--e2);
    transform-origin: var(--origin, top right);
  }
  .menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border-radius: 7px; font-size: var(--fs-body); color: var(--text); text-align: left; transition: background var(--t-instant), color var(--t-instant); }
  .menu-item:hover, .menu-item:focus-visible { background: var(--surface-hover); color: var(--ink); box-shadow: none; }
  .menu-item svg { width: 16px; height: 16px; color: var(--text-muted); flex: none; }
  .menu-item .kbd { margin-left: auto; }
  .menu-item-danger, .menu-item-danger svg { color: var(--danger); }
  .menu-item-danger:hover { background: var(--danger-soft); color: var(--danger); }
  .menu-sep { height: 1px; margin: 6px -6px; background: var(--line); }
  .menu-label { padding: 6px 10px 4px; font-size: var(--fs-micro); color: var(--text-subtle); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }

  /* Transition classes for Alpine x-transition (entrance/exit) */
  .pop-enter { transition: opacity var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out); }
  .pop-enter-start { opacity: 0; transform: scale(.97) translateY(-4px); }
  .pop-enter-end { opacity: 1; transform: none; }
  .pop-leave { transition: opacity var(--t-instant) var(--ease-in), transform var(--t-instant) var(--ease-in); }
  .pop-leave-start { opacity: 1; }
  .pop-leave-end { opacity: 0; transform: scale(.98); }

  /* ---- Dialog / sheet ---- */
  .overlay { position: fixed; inset: 0; z-index: 60; background: var(--overlay); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
  .dialog-wrap { position: fixed; inset: 0; z-index: 61; display: grid; place-items: start center; padding: 10vh 16px 16px; overflow-y: auto; }
  .dialog { width: 100%; max-width: var(--dialog-w, 520px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--e3); overflow: hidden; }
  .dialog-lg { --dialog-w: 860px; }
  .dialog-md { --dialog-w: 640px; }
  .dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 14px; }
  .dialog-title { font-size: var(--fs-h3); font-weight: 500; color: var(--ink); display: flex; align-items: center; gap: 8px; }
  .dialog-body { padding: 4px 22px 22px; }
  .dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--surface-2); }
  .dialog-enter { transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); }
  .dialog-enter-start { opacity: 0; transform: translateY(10px) scale(.98); }
  .dialog-enter-end { opacity: 1; transform: none; }
  .fade-enter { transition: opacity var(--t-base) var(--ease-out); }
  .fade-leave { transition: opacity var(--t-fast) var(--ease-in); }
  .fade-start { opacity: 0; }
  .fade-end { opacity: 1; }

  .drawer { position: fixed; z-index: 61; top: 8px; right: 8px; bottom: 8px; width: min(520px, calc(100vw - 16px)); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--e3); overflow: hidden; }
  .drawer-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 12px; border-bottom: 1px solid var(--line); }
  .drawer-body { flex: 1; overflow-y: auto; padding: 20px; align-content: start; }
  .drawer-enter { transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out); }
  .drawer-enter-start { opacity: 0; transform: translateX(24px); }
  .drawer-enter-end { opacity: 1; transform: none; }
  .drawer-leave { transition: opacity var(--t-fast) var(--ease-in), transform var(--t-fast) var(--ease-in); }
  .drawer-leave-end { opacity: 0; transform: translateX(16px); }

  @media (max-width: 640px) {
    .dialog-wrap { place-items: end stretch; padding: 0; }
    .dialog { max-width: none; border-radius: var(--r-xl) var(--r-xl) 0 0; max-height: 92dvh; overflow-y: auto; }
    .dialog-enter-start { transform: translateY(32px); }
    .drawer { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 92dvh; border-radius: var(--r-xl) var(--r-xl) 0 0; }
    .drawer-enter-start { transform: translateY(32px); }
  }

  /* ---- Toasts ---- */
  .toasts { position: fixed; z-index: 80; bottom: 16px; right: 16px; display: grid; gap: 8px; width: min(380px, calc(100vw - 32px)); }
  .toast { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; background: var(--ink); color: var(--text-on-ink); border-radius: var(--r-md); box-shadow: var(--e3); font-size: var(--fs-body); }
  .toast svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
  .toast-success svg { color: var(--emerald-400); }
  .toast-error svg { color: #FF9C9C; }
  .toast-enter { transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-spring); }
  .toast-enter-start { opacity: 0; transform: translateY(12px) scale(.96); }
  .toast-enter-end { opacity: 1; transform: none; }

  /* ---- Alert / callout ---- */
  .callout { display: flex; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface-2); font-size: var(--fs-small); color: var(--text); }
  .callout svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
  .callout-accent { background: var(--accent-soft); border-color: color-mix(in oklab, var(--accent) 22%, transparent); }
  .callout-accent svg { color: var(--accent-text); }
  .callout-warning { background: var(--warning-soft); border-color: color-mix(in oklab, var(--warning) 25%, transparent); }
  .callout-warning svg { color: var(--warning); }
  .callout-danger { background: var(--danger-soft); border-color: color-mix(in oklab, var(--danger) 25%, transparent); }
  .callout-danger svg { color: var(--danger); }

  /* ---- Empty state ---- */
  .empty { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 56px 24px; }
  .empty-art { position: relative; width: 240px; height: 120px; margin-bottom: 12px; }
  .empty-art .ghost { position: absolute; left: 50%; width: 220px; height: 44px; translate: -50% 0; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--e1); }
  .empty-art .ghost:nth-child(1) { top: 0; scale: .9; opacity: .55; }
  .empty-art .ghost:nth-child(2) { top: 30px; scale: .95; opacity: .8; }
  .empty-art .ghost:nth-child(3) { top: 62px; box-shadow: var(--e2); }
  .empty-art .ghost svg { width: 16px; height: 16px; color: var(--accent-text); }
  .empty-art .ghost .bar { height: 8px; border-radius: 4px; background: var(--moss-100); flex: 1; }
  .empty-art .ghost .bar.short { flex: .45; background: var(--accent-soft-2); }
  .empty-title { font-size: var(--fs-h3); font-weight: 500; color: var(--ink); }
  .empty-text { max-width: 380px; color: var(--text-muted); }
  .empty-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; justify-content: center; }

  /* ---- Skeleton ---- */
  .skeleton { position: relative; overflow: hidden; background: var(--surface-sunken); border-radius: 6px; }
  .skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgb(255 255 255 / .55), transparent); animation: shimmer 1.4s infinite; }
  :root[data-theme="dark"] .skeleton::after { background: linear-gradient(90deg, transparent, rgb(255 255 255 / .05), transparent); }

  /* ---- Tabs (underline) ---- */
  .tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 10px 0; font-weight: 500; color: var(--text-muted); white-space: nowrap; transition: color var(--t-fast); }
  .tab:hover { color: var(--ink); }
  .tab[aria-selected="true"], .tab.is-active { color: var(--ink); }
  .tab[aria-selected="true"]::after, .tab.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--ink); }
  .tab .count { font-size: var(--fs-micro); color: var(--text-subtle); font-weight: 400; }

  /* ---- Progress ---- */
  .progress { height: 6px; border-radius: var(--r-pill); background: var(--surface-sunken); overflow: hidden; }
  .progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--emerald-500), var(--emerald-400)); transition: width var(--t-slow) var(--ease-out); }
  .progress-ring { --p: 0; --size: 44px; width: var(--size); height: var(--size); border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--surface-active) 0); display: grid; place-items: center; }
  .progress-ring::before { content: ""; grid-area: 1/1; width: calc(var(--size) - 8px); height: calc(var(--size) - 8px); border-radius: 50%; background: var(--surface); }
  .progress-ring > span { grid-area: 1/1; font-size: var(--fs-micro); font-weight: 500; color: var(--ink); z-index: 1; }

  @keyframes shimmer { to { transform: translateX(100%); } }
  @keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, currentColor 55%, transparent); } 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
}

@layer components {
  :root[data-theme="dark"] .avatar:not(.avatar-ws) { background: linear-gradient(135deg, color-mix(in oklab, var(--accent) 28%, var(--surface)), var(--surface-2)); color: var(--ink); }
}

/* css/components/aurora.css */
/* ==========================================================================
   Aurora brand layer: gradients, glass, glow, motion and signature components.
   Used by the app, the marketing site and the auth/onboarding flows.
   ========================================================================== */
@layer components {
  /* ---- Titles use the display face everywhere ---- */
  .card-title, .page-title, .dialog-title, .section-title, .kpi-value, .drawer-title { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; }

  /* ---- Ambient aurora backdrop (fixed, behind content) ---- */
  .aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
  .aurora::before, .aurora::after, .aurora > i {
    content: ""; position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; will-change: transform;
    animation: aurora-drift 26s var(--ease-out) infinite alternate;
  }
  .aurora::before { width: 46vmax; height: 46vmax; left: -12vmax; top: -18vmax; background: radial-gradient(circle, rgb(194 244 91 / .55), transparent 65%); }
  .aurora::after { width: 42vmax; height: 42vmax; right: -14vmax; top: -10vmax; background: radial-gradient(circle, rgb(124 92 255 / .38), transparent 65%); animation-duration: 32s; animation-direction: alternate-reverse; }
  .aurora > i { width: 38vmax; height: 38vmax; left: 30%; bottom: -26vmax; background: radial-gradient(circle, rgb(11 194 132 / .35), transparent 65%); animation-duration: 38s; }
  :root[data-theme="dark"] .aurora::before { background: radial-gradient(circle, rgb(43 227 162 / .30), transparent 65%); opacity: .7; }
  :root[data-theme="dark"] .aurora::after { background: radial-gradient(circle, rgb(124 92 255 / .38), transparent 65%); opacity: .8; }
  :root[data-theme="dark"] .aurora > i { background: radial-gradient(circle, rgb(255 122 61 / .16), transparent 65%); }
  @keyframes aurora-drift { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(4vmax, 3vmax, 0) scale(1.08); } 100% { transform: translate3d(-3vmax, 5vmax, 0) scale(.96); } }

  /* Film grain (subtle, premium) */
  .grain { position: relative; isolation: isolate; }
  .grain::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit; opacity: .18; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  }

  /* ---- Glass ---- */
  .glass { background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); box-shadow: var(--e2); }

  /* ---- Gradient cards ---- */
  .g-card { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-lg); color: #fff; border: 0; }
  .g-card > * { position: relative; z-index: 1; }
  .g-forest { background: var(--grad-forest); box-shadow: 0 24px 50px -24px rgb(6 42 30 / .8); }
  .g-violet { background: var(--grad-violet); box-shadow: var(--e-glow-violet); }
  .g-sunset { background: var(--grad-sunset); box-shadow: 0 24px 50px -22px rgb(232 83 30 / .6); }
  .g-ink { background: var(--grad-ink); box-shadow: var(--e3); }
  .g-brand { background: var(--grad-brand); color: var(--forest-950); box-shadow: var(--e-glow); }
  .g-card::before {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
    background: radial-gradient(80% 60% at 110% -10%, rgb(255 255 255 / .35), transparent 60%);
  }
  .g-card .muted, .g-card .subtle { color: rgb(255 255 255 / .72); }
  .g-brand .muted { color: rgb(3 23 15 / .66); }

  .text-gradient { background: var(--grad-aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .text-brand { background: linear-gradient(90deg, var(--emerald-500), var(--violet-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }

  /* Gradient border (1px) */
  .g-border { position: relative; border: 0 !important; }
  .g-border::before {
    content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit; pointer-events: none;
    background: linear-gradient(135deg, rgb(11 194 132 / .7), rgb(124 92 255 / .55), rgb(255 122 61 / .45));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  }

  /* Hover sheen */
  .sheen { position: relative; overflow: hidden; }
  .sheen::after { content: ""; position: absolute; inset: -50% auto -50% -60%; width: 40%; transform: rotate(18deg) translateX(-120%); background: linear-gradient(90deg, transparent, rgb(255 255 255 / .35), transparent); transition: transform 900ms var(--ease-out); pointer-events: none; }
  .sheen:hover::after { transform: rotate(18deg) translateX(520%); }

  /* ---- Buttons v2 ---- */
  .btn { --btn-h: 40px; border-radius: 12px; padding: 0 16px; font-weight: 600; letter-spacing: -0.005em; }
  .btn-sm { --btn-h: 32px; border-radius: 10px; padding: 0 12px; }
  .btn-icon { padding: 0; width: var(--btn-h); }
  .btn-lg { --btn-h: 50px; border-radius: 14px; padding: 0 22px; font-size: 0.9375rem; }
  .btn-xl { --btn-h: 58px; border-radius: 16px; padding: 0 28px; font-size: 1rem; }
  .btn-pill { border-radius: var(--r-pill); }
  .btn-primary { background: var(--ink); color: var(--text-on-ink); box-shadow: 0 8px 20px -10px rgb(11 15 13 / .6), inset 0 1px 0 rgb(255 255 255 / .12); }
  .btn-primary:hover:not(:disabled) { background: color-mix(in oklab, var(--ink) 86%, var(--accent)); box-shadow: 0 14px 26px -12px rgb(11 15 13 / .6), inset 0 1px 0 rgb(255 255 255 / .14); }
  .btn-brand { background: var(--grad-brand); color: var(--forest-950); box-shadow: 0 12px 28px -12px rgb(11 194 132 / .7), inset 0 1px 0 rgb(255 255 255 / .45); }
  .btn-brand:hover:not(:disabled) { filter: saturate(1.1) brightness(1.03); background: var(--grad-brand); box-shadow: 0 18px 34px -12px rgb(11 194 132 / .8), inset 0 1px 0 rgb(255 255 255 / .5); }
  .btn-assist { background: linear-gradient(135deg, #9A83FF, #7C5CFF 50%, #5B3BE8); color: #fff; box-shadow: 0 12px 28px -12px rgb(124 92 255 / .8), inset 0 1px 0 rgb(255 255 255 / .3); }
  .btn-assist:hover:not(:disabled) { filter: brightness(1.06); }
  .btn-glass { background: rgb(255 255 255 / .1); color: #fff; border: 1px solid rgb(255 255 255 / .16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .btn-glass:hover:not(:disabled) { background: rgb(255 255 255 / .18); }
  .btn-secondary { border-color: var(--line-strong); box-shadow: var(--e1); }

  .input, .select, .textarea { min-height: 42px; border-radius: 12px; padding: 9px 14px; box-shadow: none; background: var(--surface); }
  .input-lg { min-height: 52px; border-radius: 14px; padding: 12px 16px; font-size: 0.9375rem; }
  .input-group { border-radius: 12px; box-shadow: none; }
  .input:focus, .select:focus, .textarea:focus { box-shadow: 0 0 0 4px var(--accent-soft-2); }
  .input-group:focus-within { box-shadow: 0 0 0 4px var(--accent-soft-2); }

  .card { border-radius: var(--r-lg); box-shadow: var(--e1); }
  .dialog { border-radius: var(--r-xl); }

  /* ---- Chips ---- */
  .chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); font-size: var(--fs-small); font-weight: 600; color: var(--text); white-space: nowrap; transition: all var(--t-fast) var(--ease-out); }
  .chip svg { width: 14px; height: 14px; }
  .chip:hover { border-color: var(--line-strong); color: var(--ink); }
  .chip[aria-pressed="true"], .chip.is-active { background: var(--ink); color: var(--text-on-ink); border-color: transparent; }
  .chip-glass { background: rgb(255 255 255 / .12); border-color: rgb(255 255 255 / .18); color: #fff; backdrop-filter: blur(8px); }
  .eyebrow { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 6px; border-radius: var(--r-pill); font-size: var(--fs-small); font-weight: 600; color: var(--ink); background: var(--glass-strong); border: 1px solid var(--line); box-shadow: var(--e1); }
  .eyebrow .eyebrow-tag { height: 20px; padding: 0 8px; border-radius: var(--r-pill); display: inline-flex; align-items: center; font-size: 11px; color: #fff; background: var(--grad-aurora); }

  /* ---- Stepper (segmented progress) ---- */
  .stepper { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
  .stepper > span { height: 4px; border-radius: var(--r-pill); background: var(--line-strong); overflow: hidden; position: relative; }
  .stepper > span::after { content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: var(--grad-brand); transition: transform var(--t-lazy) var(--ease-out); }
  .stepper > span.is-done::after, .stepper > span.is-current::after { transform: scaleX(1); }
  .stepper > span.is-current::after { background: linear-gradient(90deg, var(--emerald-500), var(--violet-500)); }

  /* ---- Select cards (onboarding pickers) ---- */
  .pick-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
  .pick {
    position: relative; display: grid; align-content: space-between; gap: 18px; min-height: 124px; padding: 16px; text-align: left; cursor: pointer;
    border-radius: 18px; border: 1px solid var(--line); background: var(--surface);
    transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out), border-color var(--t-fast), background var(--t-base);
  }
  .pick:hover { transform: translateY(-3px); box-shadow: var(--e2); border-color: var(--line-strong); }
  .pick input { position: absolute; opacity: 0; pointer-events: none; }
  .pick-icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--surface-sunken); color: var(--ink); border: 1px solid var(--line); transition: all var(--t-base) var(--ease-out); }
  .pick-icon svg { width: 20px; height: 20px; }
  .pick-title { font-family: var(--font-display); font-weight: 650; font-size: 1rem; color: var(--ink); letter-spacing: -0.01em; }
  .pick-desc { font-size: var(--fs-small); color: var(--text-muted); line-height: 1.4; margin-top: 2px; }
  .pick-radio { position: absolute; top: 14px; right: 14px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; transition: all var(--t-fast); }
  .pick-radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform var(--t-base) var(--ease-spring); }
  .pick:has(input:checked), .pick.is-selected { border-color: transparent; color: #fff; background: var(--grad-violet); box-shadow: var(--e-glow-violet); transform: translateY(-3px); }
  .pick.pick-green:has(input:checked), .pick.pick-green.is-selected { background: var(--grad-forest); box-shadow: 0 20px 44px -20px rgb(6 42 30 / .9); }
  .pick:has(input:checked) .pick-title, .pick.is-selected .pick-title { color: #fff; }
  .pick:has(input:checked) .pick-desc, .pick.is-selected .pick-desc { color: rgb(255 255 255 / .75); }
  .pick:has(input:checked) .pick-icon, .pick.is-selected .pick-icon { background: rgb(255 255 255 / .16); border-color: rgb(255 255 255 / .22); color: #fff; }
  .pick:has(input:checked) .pick-radio, .pick.is-selected .pick-radio { border-color: #fff; background: rgb(255 255 255 / .2); }
  .pick:has(input:checked) .pick-radio::after, .pick.is-selected .pick-radio::after { transform: scale(1); }
  .pick:has(input:focus-visible) { box-shadow: var(--focus-ring); }
  .pick-wide { grid-template-columns: 1fr auto; align-items: center; min-height: 96px; }

  /* ---- Floating / motion helpers ---- */
  .float { animation: float 7s ease-in-out infinite; }
  .float-slow { animation: float 10s ease-in-out infinite; }
  .float-delay { animation-delay: -3s; }
  @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
  .reveal { animation: reveal var(--t-lazy) var(--ease-out) both; }
  .reveal-2 { animation-delay: 80ms; } .reveal-3 { animation-delay: 160ms; } .reveal-4 { animation-delay: 240ms; } .reveal-5 { animation-delay: 320ms; }
  @keyframes reveal { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
  .glow-dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 18px 4px currentColor; background: currentColor; animation: twinkle 4s ease-in-out infinite; }
  @keyframes twinkle { 0%, 100% { opacity: .9; } 50% { opacity: .35; } }

  /* ---- Charts: hatched stacked bars ---- */
  .vbars { --h: 200px; display: grid; grid-template-columns: 32px 1fr; gap: 10px; }
  .vbars-axis { display: flex; flex-direction: column-reverse; justify-content: space-between; height: var(--h); font-size: 11px; color: var(--text-subtle); text-align: right; font-variant-numeric: tabular-nums; }
  .vbars-plot { position: relative; height: var(--h); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: end; gap: clamp(4px, 1.4vw, 14px);
    background: repeating-linear-gradient(to top, var(--line) 0 1px, transparent 1px calc(var(--h) / 4)); }
  .vbar { position: relative; display: flex; flex-direction: column-reverse; gap: 3px; height: 100%; justify-content: flex-start; cursor: default; }
  .vbar > span { display: block; border-radius: 8px; min-height: 2px; transition: height var(--t-lazy) var(--ease-out), filter var(--t-fast); }
  .vbar .seg-a { background: var(--ink); }
  .vbar .seg-b { background: var(--lime-400); background-image: var(--hatch); }
  :root[data-theme="dark"] .vbar .seg-a { background: #EDEFEE; }
  .vbar:hover > span { filter: brightness(1.08); }
  .vbar .bar-tip { position: absolute; bottom: calc(100% + 6px); left: 50%; translate: -50% 0; padding: 4px 8px; border-radius: 8px; background: var(--ink); color: var(--text-on-ink); font-size: 11px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity var(--t-fast); }
  .vbar:hover .bar-tip { opacity: 1; }
  .vbars-labels { grid-column: 2; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: clamp(4px, 1.4vw, 14px); font-size: 11px; color: var(--text-subtle); text-align: center; }
  .legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: var(--fs-micro); color: var(--text-muted); }
  .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

  /* ---- Donut ---- */
  .donut { --size: 168px; --thick: 22px; position: relative; width: var(--size); height: var(--size); border-radius: 50%; flex: none;
    background: conic-gradient(var(--donut)); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--thick)), #000 calc(100% - var(--thick) + 1px)); mask: radial-gradient(farthest-side, transparent calc(100% - var(--thick)), #000 calc(100% - var(--thick) + 1px)); }
  .donut-wrap { position: relative; width: var(--size, 168px); height: var(--size, 168px); flex: none; }
  .donut-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
  .donut-center b { display: block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 650; letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
  .donut-center span { font-size: var(--fs-micro); color: var(--text-muted); }

  /* ---- Progress ring (setup) ---- */
  .ring { --p: 50; --size: 56px; width: var(--size); height: var(--size); border-radius: 50%; display: grid; place-items: center; flex: none;
    background: radial-gradient(closest-side, var(--surface) 76%, transparent 78% 100%), conic-gradient(var(--accent) calc(var(--p) * 1%), var(--line) 0); }
  .ring b { font-family: var(--font-display); font-size: .95rem; font-weight: 700; color: var(--ink); }

  /* ---- Phone mockup (showcase) ---- */
  .phone { position: relative; width: 280px; aspect-ratio: 9 / 19; border-radius: 44px; padding: 10px; background: linear-gradient(160deg, #2A2F2C, #0B0D0C); box-shadow: 0 0 0 1px rgb(255 255 255 / .08) inset, 0 50px 100px -30px rgb(0 0 0 / .6), 0 30px 60px -30px rgb(11 194 132 / .35); }
  .phone-screen { position: relative; width: 100%; height: 100%; border-radius: 35px; overflow: hidden; background: var(--surface); }
  .phone-screen::before { content: ""; position: absolute; top: 9px; left: 50%; translate: -50% 0; width: 86px; height: 24px; border-radius: 20px; background: #000; z-index: 5; }

  /* ---- Section heading pattern ---- */
  .kicker { font-size: var(--fs-micro); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
}

@layer components {
  .donut-block { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
  .donut-legend { flex: 1; min-width: 150px; display: grid; gap: 10px; margin: 0; padding: 0; }
  .donut-legend li { display: flex; align-items: center; gap: 10px; font-size: var(--fs-small); color: var(--text); }
  .donut-legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
  .donut-legend b { font-variant-numeric: tabular-nums; color: var(--ink); }
  .vbar > span { border-radius: 6px; }
}

@layer components {
  .vbar .bar-tip { display: none; z-index: 5; }
  .vbar:hover .bar-tip { display: block; }
  .vbar:nth-last-child(-n+3) .bar-tip { left: auto; right: 0; translate: none; }
  .vbar:nth-child(-n+3) .bar-tip { left: 0; translate: none; }
  .vbars-plot { overflow: visible; }
}
@layer components {
  .vbars-plot, .vbars-labels { grid-auto-columns: minmax(0, 1fr); }
  .vbars-labels span { white-space: nowrap; overflow: visible; font-size: 10.5px; }
  @media (max-width: 640px) { .vbars-plot, .vbars-labels { gap: 3px; } .vbars { grid-template-columns: 26px 1fr; gap: 6px; } }
}

/* css/components/data.css */
/* Data display: resource rows, tables, KPI tiles, charts, toolbars -------- */
@layer components {
  .toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
  .toolbar .grow { flex: 1; }
  .toolbar .input-icon { width: min(320px, 100%); }

  /* ---- Resource list (row cards) ---- */
  .rows { display: grid; gap: 8px; }
  .row {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
    padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
    transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  }
  .row:hover { border-color: var(--line-strong); box-shadow: var(--e1); }
  .row.is-archived { background: var(--surface-2); }
  .row-lead { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface-2); overflow: hidden; }
  .row-lead img { width: 20px; height: 20px; }
  .row-lead svg { width: 18px; height: 18px; color: var(--text-muted); }
  .row-lead.square { border-radius: 10px; }
  .row-main { min-width: 0; display: grid; gap: 2px; }
  .row-title { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 500; color: var(--ink); }
  .row-title a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
  .row-title .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .row-sub { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: var(--fs-small); color: var(--text-muted); }
  .row-sub svg { width: 13px; height: 13px; flex: none; color: var(--text-subtle); }
  .row-sub .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .row-meta { display: flex; align-items: center; gap: 8px; }
  .icon-btn { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; color: var(--text-muted); transition: background var(--t-instant), color var(--t-instant); }
  .icon-btn:hover { background: var(--surface-hover); color: var(--ink); }
  .icon-btn svg { width: 15px; height: 15px; }
  .icon-btn.is-done { color: var(--accent-text); }
  .stat-pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface-2); font-size: var(--fs-small); color: var(--text); font-variant-numeric: tabular-nums; transition: border-color var(--t-fast), background var(--t-fast); }
  .stat-pill:hover { border-color: var(--line-strong); background: var(--surface); }
  .stat-pill svg { width: 14px; height: 14px; color: var(--text-muted); }

  .pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); font-size: var(--fs-small); color: var(--text-muted); }

  /* ---- Table ---- */
  .table-wrap { border: 1px solid var(--line); border-radius: var(--r-md); overflow: auto; background: var(--surface); }
  .table { width: 100%; font-size: var(--fs-body); }
  .table th { text-align: left; font-weight: 500; font-size: var(--fs-micro); color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
  .table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
  .table tr:last-child td { border-bottom: 0; }
  .table tbody tr { transition: background var(--t-instant); }
  .table tbody tr:hover { background: var(--surface-2); }
  .table .num { text-align: right; font-variant-numeric: tabular-nums; }

  /* ---- KPI tiles ---- */
  .kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .kpi { position: relative; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--e1); overflow: hidden; }
  .kpi-label { display: flex; align-items: center; gap: 8px; font-size: var(--fs-small); color: var(--text-muted); }
  .kpi-label svg { width: 15px; height: 15px; }
  .kpi-value { margin-top: 8px; font-size: 1.75rem; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
  .kpi-foot { margin-top: 8px; display: flex; align-items: center; gap: 8px; font-size: var(--fs-micro); color: var(--text-muted); }
  .kpi-spark { position: absolute; right: 14px; top: 18px; width: 88px; height: 30px; color: var(--accent); }
  .kpi.is-feature { background: radial-gradient(120% 140% at 100% 0%, color-mix(in oklab, var(--accent) 26%, transparent), transparent 55%), linear-gradient(160deg, var(--forest-900), #0B241B); color: #E9FFF5; border-color: transparent; }
  .kpi.is-feature .kpi-label, .kpi.is-feature .kpi-foot { color: rgb(233 255 245 / .7); }
  .kpi.is-feature .kpi-value { color: #fff; }
  .kpi.is-feature .kpi-spark { color: var(--emerald-400); }
  @media (max-width: 1023px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

  /* ---- Charts (server-rendered SVG) ---- */
  .chart { width: 100%; height: 220px; color: var(--accent); }
  .chart .grid-line { stroke: var(--line); stroke-dasharray: 3 4; }
  .chart .axis { fill: var(--text-subtle); font-size: 11px; font-family: var(--font-sans); }
  .chart .area { fill: url(#chartFill); }
  .chart .line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
  .chart .bar { fill: currentColor; opacity: .85; }
  .chart-empty { display: grid; place-items: center; height: 220px; color: var(--text-muted); font-size: var(--fs-small); border: 1px dashed var(--line-strong); border-radius: var(--r-md); background: repeating-linear-gradient(135deg, transparent 0 10px, var(--surface-2) 10px 20px); }

  .bars { display: grid; gap: 6px; align-content: start; }
  .bar-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 8px; font-size: var(--fs-small); color: var(--text); overflow: hidden; }
  .bar-row::before { content: ""; position: absolute; inset: 0; width: var(--w, 0%); background: var(--accent-soft); border-radius: inherit; transition: width var(--t-slow) var(--ease-out); }
  .bar-row > * { position: relative; }
  .bar-row .label { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bar-row .value { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 500; }

  /* ---- Description list ---- */
  .dl { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px 16px; font-size: var(--fs-body); }
  .dl dt { color: var(--text-muted); }
  .dl dd { margin: 0; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }

  /* ---- Grid layout helpers ---- */
  .grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .grid-main-side { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
  @media (max-width: 1023px) { .grid-3, .grid-main-side { grid-template-columns: minmax(0, 1fr); } }
  @media (max-width: 640px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } .row { grid-template-columns: auto minmax(0, 1fr); } .row-meta { grid-column: 1 / -1; justify-content: flex-end; } .dl { grid-template-columns: minmax(0, 1fr); gap: 2px 0; } .dl dd { margin-bottom: 8px; } }
}

@layer components {
  .btn-secondary[aria-pressed="true"] { background: var(--ink); color: var(--text-on-ink); border-color: var(--ink); }
  @media (max-width: 767px) { .link-editor-grid { grid-template-columns: minmax(0, 1fr) !important; } .link-editor-side { border-left: 0 !important; border-top: 1px solid var(--line); } }
}

@layer components {
  @media (max-width: 767px) {
    .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .kpi { padding: 14px; }
    .kpi-value { font-size: 1.5rem; }
    .kpi-foot { white-space: nowrap; }
  }
  @media (max-width: 520px) { .kpi-spark { display: none; } }
}

/* css/components/auth.css */
/* Auth + onboarding: split stage. Left = calm form on an aurora canvas, right = dark living showcase. */
@layer components {
  .auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); min-height: 100dvh; gap: 0; background: var(--canvas); }
  .auth-main { position: relative; display: flex; flex-direction: column; min-height: 100dvh; overflow: hidden; isolation: isolate; }
  .auth-aurora { position: absolute; z-index: -1; opacity: .75; }
  :root[data-theme="dark"] .auth-aurora { opacity: .55; }
  .auth-top { display: flex; align-items: center; justify-content: space-between; padding: 24px clamp(20px, 5vw, 56px); }
  .auth-content { flex: 1; display: grid; align-items: center; padding: 12px clamp(20px, 5vw, 56px) 32px; }
  .auth-panel { width: 100%; max-width: 440px; margin: 0 auto; }
  .auth-title { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.1rem); line-height: 1.02; letter-spacing: -0.045em; margin: 18px 0 10px; }
  .auth-title em.accent, .onb-title em.accent { font-size: 1.08em; letter-spacing: -0.02em; background: linear-gradient(95deg, var(--emerald-600), var(--violet-500)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
  :root[data-theme="dark"] .auth-title em.accent, :root[data-theme="dark"] .onb-title em.accent { background: linear-gradient(95deg, #5FE6AE, #B9A9FF); -webkit-background-clip: text; background-clip: text; }
  .auth-sub { color: var(--text-muted); font-size: 0.975rem; max-width: 380px; }
  .auth-form { margin-top: 28px; display: grid; gap: 16px; }
  .auth-alt { margin-top: 26px; font-size: var(--fs-body); color: var(--text-muted); }
  .auth-alt a { color: var(--ink); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
  .auth-alt a:hover { text-decoration: underline; text-underline-offset: 3px; }
  .auth-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px clamp(20px, 5vw, 56px) 22px; font-size: var(--fs-small); color: var(--text-subtle); }
  .auth-foot a:hover { color: var(--ink); }
  .auth-fineprint { font-size: var(--fs-micro); color: var(--text-subtle); text-align: center; }
  .auth-fineprint a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }

  .field-icon { position: relative; }
  .field-icon > svg { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--text-subtle); pointer-events: none; z-index: 1; transition: color var(--t-fast); }
  .field-icon > .input { padding-left: 46px; }
  .field-icon:focus-within > svg { color: var(--accent-text); }
  .field-icon > .field-action { position: absolute; right: 8px; top: 50%; translate: 0 -50%; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: var(--text-subtle); }
  .field-icon > .field-action:hover { color: var(--ink); background: var(--surface-hover); }
  .field-icon > .field-action svg { width: 18px; height: 18px; }
  .field-icon > .input:has(+ .field-action), .field-icon > .input.has-action { padding-right: 52px; }
  .auth .input-lg { background: var(--glass-strong); border-color: var(--line-strong); }
  :root[data-theme="dark"] .auth .input-lg { background: rgb(255 255 255 / .03); }

  .strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 8px; }
  .strength > i { height: 4px; border-radius: 4px; background: var(--line-strong); transition: background var(--t-base); }
  .strength[data-score="1"] > i:nth-child(-n+1) { background: var(--danger); }
  .strength[data-score="2"] > i:nth-child(-n+2) { background: var(--tangerine-500); }
  .strength[data-score="3"] > i:nth-child(-n+3) { background: var(--lime-500); }
  .strength[data-score="4"] > i { background: var(--emerald-500); }

  .theme-icon-light { display: none; }
  :root[data-theme="dark"] .theme-icon-light { display: block; }
  :root[data-theme="dark"] .theme-icon-dark { display: none; }

  .brand-mark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--ink); letter-spacing: -0.03em; }
  .brand-mark svg { width: 34px; height: 34px; }

  /* ---- Stage ---- */
  .auth-stage { position: sticky; top: 0; height: 100dvh; margin: 12px 12px 12px 0; height: calc(100dvh - 24px); border-radius: var(--r-2xl); overflow: hidden; color: #fff; background: var(--grad-ink); box-shadow: var(--e3); }
  .stage-glow { position: absolute; inset: -20%; background: radial-gradient(40% 35% at 30% 30%, rgb(43 227 162 / .28), transparent 70%), radial-gradient(35% 35% at 75% 25%, rgb(124 92 255 / .38), transparent 70%), radial-gradient(40% 40% at 60% 90%, rgb(255 122 61 / .18), transparent 70%); animation: aurora-drift 24s ease-in-out infinite alternate; pointer-events: none; }
  .stage-inner { position: relative; z-index: 1; height: 100%; display: grid; grid-template-rows: auto 1fr auto; padding: clamp(24px, 3vw, 40px); }
  .stage-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .stage-kicker { font-size: var(--fs-micro); letter-spacing: .12em; text-transform: uppercase; color: rgb(255 255 255 / .5); font-weight: 600; }
  .stage-visual { position: relative; display: grid; place-items: center; min-height: 0; }
  .scene { position: absolute; inset: 0; display: grid; place-items: center; }
  .scene-enter { transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out), filter 600ms var(--ease-out); }
  .scene-leave { transition: opacity 300ms var(--ease-in); position: absolute; }
  .scene-start { opacity: 0; transform: translateY(16px) scale(.98); filter: blur(8px); }
  .stage-copy { text-align: center; max-width: 460px; margin: 0 auto; min-height: 132px; }
  .stage-copy h2 { color: #fff; font-size: clamp(1.6rem, 1.1rem + 1.3vw, 2.2rem); line-height: 1.08; letter-spacing: -0.035em; }
  .stage-copy h2 em.accent { color: #C2F45B; font-size: 1.1em; }
  .stage-copy p { margin-top: 10px; color: rgb(255 255 255 / .62); font-size: .95rem; }
  .stage-dots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
  .stage-dots button { width: 8px; height: 8px; border-radius: 8px; background: rgb(255 255 255 / .25); transition: width var(--t-base) var(--ease-out), background var(--t-base); }
  .stage-dots button.is-on { width: 28px; background: #fff; }

  .auth-stage .phone { width: min(250px, 58%); }
  .auth-stage .glass, .onb-stage .glass { background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .12); box-shadow: 0 20px 50px -20px rgb(0 0 0 / .6); color: #fff; }
  .float-card { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; min-width: 180px; }
  .float-card small { display: block; font-size: 11px; color: rgb(255 255 255 / .62); font-weight: 600; }
  .float-card b { display: block; font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; color: #fff; line-height: 1.2; }
  .float-card.g-brand small { color: rgb(3 23 15 / .6); } .float-card.g-brand b { color: var(--forest-950); }
  .float-card > svg { width: 20px; height: 20px; }
  .fc-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; }
  .fc-icon svg { width: 18px; height: 18px; }
  .fc-qr { width: 64px; height: 64px; padding: 6px; background: #fff; border-radius: 12px; }
  .fc-qr svg { width: 100%; height: 100%; }
  .float-card .delta-up { background: rgb(194 244 91 / .18); color: #C2F45B; }

  /* Mini page inside phones */
  .mini-page { height: 100%; overflow: hidden; background: linear-gradient(180deg, #FFF6EE, #FFFFFF 55%); color: #111; text-align: center; font-family: var(--font-sans); }
  .mini-cover { height: 30%; background: var(--grad-sunset); border-radius: 0 0 28px 28px; }
  .mini-avatar { width: 64px; height: 64px; margin: -34px auto 0; border-radius: 50%; border: 3px solid #fff; background: linear-gradient(135deg, #0B3B2A, #0BC284); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; box-shadow: 0 10px 20px -8px rgb(0 0 0 / .35); }
  .mini-name { margin-top: 8px; font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 4px; }
  .mini-name svg { width: 14px; height: 14px; color: #0BC284; }
  .mini-bio { font-size: 11px; color: #6B736C; margin-top: 2px; }
  .mini-socials { display: flex; justify-content: center; gap: 8px; margin: 10px 0 12px; }
  .mini-socials i { width: 22px; height: 22px; border-radius: 50%; background: #111; opacity: .85; }
  .mini-link { margin: 0 14px 8px; height: 36px; border-radius: 14px; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; background: #fff; box-shadow: 0 4px 14px -6px rgb(0 0 0 / .18), 0 0 0 1px rgb(0 0 0 / .05); }
  .mini-link.is-hero { background: #111; color: #fff; }
  .mini-card { margin: 12px 14px 0; padding: 12px; border-radius: 16px; background: #111; color: #fff; text-align: left; display: grid; grid-template-columns: 1fr auto; align-items: center; row-gap: 2px; }
  .mini-card b { font-size: 12px; color: #fff; } .mini-card span { font-size: 10px; opacity: .6; grid-row: 2; }
  .mini-card i { grid-row: span 2; font-style: normal; font-size: 10.5px; font-weight: 700; padding: 6px 10px; border-radius: 10px; background: #FF7A3D; }

  .stage-panel { width: min(430px, 86%); padding: 22px; border-radius: 24px; }
  .sp-label { color: rgb(255 255 255 / .6); font-weight: 600; font-size: 12px; }
  .sp-value { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; letter-spacing: -0.04em; color: #fff; line-height: 1.1; }
  .sp-bars { height: 150px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; align-items: end; margin: 18px 0 12px; }
  .sp-bar { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; }
  .sp-bar span { display: block; border-radius: 7px; }
  .sp-bar .seg-a { background: #EDEFEE; }
  .sp-bar .seg-b { background: #C2F45B; background-image: repeating-linear-gradient(135deg, rgb(0 0 0 / .18) 0 2px, transparent 2px 6px); }

  .assist-demo { display: grid; gap: 14px; }
  .ad-prompt { display: flex; gap: 10px; align-items: flex-start; }
  .ad-avatar { width: 32px; height: 32px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--grad-violet); }
  .ad-avatar svg { width: 16px; height: 16px; }
  .ad-prompt p { font-size: 13.5px; line-height: 1.5; color: rgb(255 255 255 / .9); padding: 10px 12px; border-radius: 4px 14px 14px 14px; background: rgb(124 92 255 / .28); border: 1px solid rgb(154 131 255 / .35); }
  .ad-build { display: grid; gap: 8px; padding: 12px; border-radius: 18px; background: rgb(255 255 255 / .96); }
  .ad-block { height: 12px; border-radius: 8px; background: linear-gradient(90deg, #EEF0EC 25%, #F8F9F6 50%, #EEF0EC 75%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; margin: 0 auto; width: 80%; }
  .ad-cover { height: 58px; width: 100%; background: var(--grad-sunset); animation: none; border-radius: 12px; }
  .ad-btn { height: 30px; width: 100%; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; color: #fff; background: #1D1410; animation: none; }
  .ad-btn.is-soft { background: #FFE6D6; color: #9A3A0C; }
  .ad-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; height: auto; background: none; animation: none; width: 100%; }
  .ad-row i { height: 44px; border-radius: 10px; background: #FFF1E7; }
  .ad-status { font-size: 12px; color: rgb(255 255 255 / .7); display: flex; align-items: center; gap: 8px; }
  .ad-status b { color: #fff; }
  @keyframes shimmer { to { background-position: -200% 0; } }

  /* ---- Onboarding ---- */
  .onb-top { padding-bottom: 8px; }
  .onb-progress { display: flex; align-items: center; gap: 14px; padding: 0 clamp(20px, 5vw, 56px); }
  .onb-progress .stepper { flex: 1; max-width: 520px; }
  .onb-content { align-items: start; padding-top: clamp(20px, 5vh, 56px); overflow-y: auto; }
  .onb-panel { width: 100%; max-width: 620px; margin: 0 auto; }
  .onb-title { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.2rem); line-height: 1.02; letter-spacing: -0.045em; margin-bottom: 10px; }
  .onb-kinds { display: grid; gap: 12px; margin-top: 28px; }
  .onb-kinds .pick-wide { padding: 18px 58px 18px 20px; }
  .onb-kind-art { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; color: #fff; transform: rotate(-6deg); transition: transform var(--t-slow) var(--ease-spring); box-shadow: 0 14px 28px -14px rgb(0 0 0 / .5); }
  .onb-kind-art svg { width: 28px; height: 28px; }
  .onb-kind-personal { background: var(--grad-sunset); }
  .onb-kind-business { background: var(--grad-brand); color: var(--forest-950); }
  .onb-kind-agency { background: var(--grad-violet); }
  .onb-kind-organization { background: var(--grad-ink); }
  .pick:hover .onb-kind-art, .pick:has(input:checked) .onb-kind-art { transform: rotate(0) scale(1.05); }
  .onb-industries { margin-top: 28px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .onb-industries .pick { min-height: 118px; }
  .onb-nav { position: sticky; bottom: 0; display: flex; justify-content: space-between; gap: 12px; padding: 18px clamp(20px, 5vw, 56px) 24px; background: linear-gradient(transparent, var(--canvas) 40%); z-index: 2; }
  .onb-nav > * { min-width: 120px; }
  .onb-advanced { margin-top: 4px; border-radius: 14px; border: 1px solid var(--line); padding: 12px 14px; background: var(--glass-strong); }
  .onb-advanced summary { cursor: pointer; font-size: var(--fs-small); color: var(--text-muted); display: flex; align-items: center; gap: 8px; list-style: none; }
  .onb-advanced summary::-webkit-details-marker { display: none; }
  .onb-advanced[open] summary { margin-bottom: 12px; }
  .my-5 { margin-top: 20px; margin-bottom: 20px; }
  .assist-box.is-active { box-shadow: var(--e-glow-violet); }

  .handle-field { display: flex; align-items: center; min-height: 60px; border-radius: 16px; border: 1.5px solid var(--line-strong); background: var(--glass-strong); padding: 0 8px 0 18px; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
  .handle-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft-2); }
  .handle-field.is-ok { border-color: var(--accent); }
  .handle-field.is-bad { border-color: var(--danger); }
  .handle-host { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--text-subtle); letter-spacing: -0.02em; }
  .handle-field input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; height: 56px; }
  .handle-state { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-small); font-weight: 700; padding: 0 10px; height: 32px; border-radius: 10px; white-space: nowrap; }
  .handle-state svg { width: 15px; height: 15px; }
  .is-ok .handle-state { color: var(--accent-text); background: var(--accent-soft); }
  .is-bad .handle-state { color: var(--danger); background: var(--danger-soft); }
  :root[data-theme="dark"] .handle-field { background: rgb(255 255 255 / .03); }

  .onb-done { padding-top: 4vh; }
  .avatar-stack { display: flex; margin-bottom: 22px; }
  .avatar-stack .avatar { border: 3px solid var(--canvas); margin-left: -10px; font-family: var(--font-display); font-weight: 700; }
  .avatar-stack .avatar:first-child { margin-left: 0; }
  .onb-next { display: grid; gap: 10px; margin-top: 30px; }
  .onb-next-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 20px; transition: transform var(--t-base) var(--ease-out); }
  .onb-next-card:hover { transform: translateX(4px); }
  .onb-next-card > span:nth-child(2) { flex: 1; display: grid; }
  .onb-next-card b { font-family: var(--font-display); color: var(--ink); font-size: 1rem; }
  .onb-next-card small { color: var(--text-muted); font-size: var(--fs-small); }
  .onb-next-card .fc-icon { color: #fff; }

  .onb-os { width: min(460px, 100%); display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 10px; }
  .onb-os-node { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 12px; border-radius: var(--r-pill); color: rgb(255 255 255 / .55); font-size: var(--fs-small); font-weight: 600; background: rgb(255 255 255 / .05); border: 1px dashed rgb(255 255 255 / .2); transition: all var(--t-base) var(--ease-spring); }
  .onb-os-node svg { width: 16px; height: 16px; }
  .onb-os-node.is-on { color: #fff; border: 1px solid rgb(194 244 91 / .5); background: rgb(194 244 91 / .12); transform: translateY(-2px); box-shadow: 0 10px 30px -12px rgb(194 244 91 / .5); }
  .onb-os-node.is-on svg { color: var(--lime-400); }
  .onb-mod { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 11px; font-weight: 700; color: var(--text-subtle); }
  .onb-mod .os-dot { width: 6px; height: 6px; }
  .onb-mod.is-live { color: var(--accent-text); }
  .onb-mod.is-building { color: var(--assist-text); }
  .onb-fan { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
  .onb-fan .phone { position: absolute; width: 210px; transition: transform var(--t-lazy) var(--ease-out); }
  .onb-fan-0 { transform: translateX(-62%) rotate(-9deg) scale(.9); z-index: 1; opacity: .9; }
  .onb-fan-1 { transform: translateY(-2%) scale(1.06); z-index: 3; }
  .onb-fan-2 { transform: translateX(62%) rotate(9deg) scale(.9); z-index: 2; opacity: .9; }
  .onb-fan .page-preview { --scale: .5 !important; }
  .onb-phone-wrap { display: grid; justify-items: center; gap: 14px; }
  .onb-phone-wrap .phone { width: 270px; max-width: 62vw; }
  .onb-phone-wrap .phone-screen { transition: opacity var(--t-base), filter var(--t-base); }
  .onb-phone-wrap .phone-screen.is-loading { opacity: .5; filter: blur(3px); }
  .onb-urlbar { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; font-weight: 700; font-size: 13px; color: #fff; }
  .onb-urlbar svg { width: 14px; height: 14px; color: #C2F45B; }
  .onb-celebrate { animation: celebrate 1.2s var(--ease-spring) both; }
  @keyframes celebrate { 0% { transform: translateY(30px) scale(.9); opacity: 0; } 100% { transform: none; opacity: 1; } }

  .auth-teaser { display: none; }
  /* ---- Responsive ---- */
  @media (max-width: 1023px) {
    .auth { grid-template-columns: minmax(0, 1fr); }
    .auth-stage { display: none; }
    .auth-content { align-items: start; padding-top: 3vh; }
    .onb-industries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .onb-content { padding-bottom: 12px; }
    .auth-teaser { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 34px -20px 0; padding: 4px 20px 24px; scroll-padding-inline: 20px; scroll-snap-type: x mandatory; }
    .auth-teaser::-webkit-scrollbar { display: none; }
    .auth-teaser > div { flex: 0 0 78%; max-width: 300px; scroll-snap-align: start; padding: 16px; border-radius: 20px; display: grid; gap: 10px; }
    .auth-teaser b { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: -0.02em; color: inherit; }
    .auth-teaser p { font-size: 12.5px; opacity: .75; }
    .auth-teaser .fc-icon { background: rgb(255 255 255 / .16); }
  }
  @media (max-width: 640px) {
    .auth-top { padding: 16px 20px; }
    .auth-foot { justify-content: center; }
  }

  /* Legacy helpers still used by a few screens */
  .success-mark { width: 68px; height: 68px; margin: 0 auto 16px; border-radius: 22px; display: grid; place-items: center; background: var(--grad-forest); color: #fff; box-shadow: var(--e-glow); animation: pop var(--t-slow) var(--ease-spring) both; }
  .success-mark svg { width: 30px; height: 30px; }
  .divider-text { display: flex; align-items: center; gap: 12px; color: var(--text-subtle); font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: .08em; }
  .divider-text::before, .divider-text::after { content: ""; flex: 1; height: 1px; background: var(--line); }
  @keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* Passkey sign-in (ADR-0030) */
@layer components {
  .auth-passkey { display: grid; gap: 12px; margin-top: 14px; }
  .auth-or { display: flex; align-items: center; gap: 12px; color: var(--text-subtle); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
  .auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
}

/* Onboarding: your brand (ADR-0030) */
@layer components {
  .onb-brand-group { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
  .onb-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
  .onb-swatch { width: 44px; height: 44px; border-radius: 14px; background: var(--sw, var(--surface)); border: 1px solid rgb(0 0 0 / .08); display: grid; place-items: center; color: var(--text-muted); cursor: pointer; transition: transform var(--t-fast), box-shadow var(--t-fast); }
  .onb-swatch:hover { transform: translateY(-1px); }
  .onb-swatch.is-on { box-shadow: 0 0 0 2px var(--canvas), 0 0 0 4px var(--ink); }
  .onb-swatch.is-template, .onb-swatch.is-custom { background: var(--surface); border-color: var(--line-strong); }
  .onb-swatch.is-custom { background: conic-gradient(from 90deg, #F06A2A, #D4A017, #0A8A5F, #2F6BFF, #7C5CFF, #E0457B, #F06A2A); color: #fff; }
  .onb-swatch.is-custom svg { filter: drop-shadow(0 1px 2px rgb(0 0 0 / .4)); }
  .onb-swatch:focus-visible, .onb-swatch:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
  .onb-swatch svg { width: 18px; height: 18px; }
  .onb-fonts { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
  .onb-font { display: grid; gap: 2px; justify-items: center; padding: 12px 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color var(--t-fast); }
  .onb-font b { font-size: 26px; line-height: 1.1; color: var(--ink); font-weight: 600; }
  .onb-font small { font-size: 12px; color: var(--text-muted); font-weight: 600; }
  .onb-font.is-on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }
  .onb-logo { display: flex; align-items: center; gap: 14px; }
  .onb-logo-box { width: 72px; height: 72px; border-radius: 18px; border: 1px dashed var(--line-strong); background: var(--surface); display: grid; place-items: center; overflow: hidden; flex: none; color: var(--text-subtle); }
  .onb-logo-box img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
  .onb-logo-box > svg { width: 26px; height: 26px; }
}

/* css/components/builder.css */
/* Pages list + three-pane builder ---------------------------------------- */
@layer components {
  /* ---- Page hero (shared by list screens) ---- */
  .page-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
  .page-hero .page-title { font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.6rem); letter-spacing: -0.045em; margin-top: 4px; }

  /* ---- Pages grid ---- */
  .site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 18px; }
  .site-card { position: relative; display: flex; flex-direction: column; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--e1); overflow: hidden; transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out); text-align: left; }
  .site-card:hover { transform: translateY(-4px); box-shadow: var(--e3); }
  .stretched-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
  .site-card .badge { position: relative; z-index: 2; }
  .site-thumb { position: relative; height: 250px; overflow: hidden; margin: 8px 8px 0; border-radius: 18px; pointer-events: none; }
  .site-thumb .page-preview { position: absolute; left: 50%; top: 0; translate: -50% 0; }
  .site-thumb::after { content: ""; position: absolute; inset: auto 0 0; height: 70px; background: linear-gradient(transparent, rgb(0 0 0 / .08)); }
  .site-thumb-actions { position: absolute; right: 10px; bottom: 10px; z-index: 3; pointer-events: auto; opacity: 0; transform: translateY(6px); transition: all var(--t-base) var(--ease-out); }
  .site-card:hover .site-thumb-actions { opacity: 1; transform: none; }
  .site-card-body { padding: 14px 18px 16px; }
  .site-card-title { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; letter-spacing: -0.02em; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .site-card-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: var(--fs-micro); color: var(--text-muted); }
  .site-card-stats span { display: inline-flex; align-items: center; gap: 5px; }
  .site-card-stats b { color: var(--ink); font-weight: 700; }
  .site-card-new { align-items: center; justify-content: center; gap: 8px; min-height: 340px; border: 1.5px dashed var(--line-strong); background: transparent; box-shadow: none; }
  .site-card-new b { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); }
  .site-card-new-icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--grad-brand); color: var(--forest-950); box-shadow: var(--e-glow); margin-bottom: 6px; }
  .site-card-new-icon svg { width: 24px; height: 24px; }
  .site-card-new:hover { border-color: var(--accent); background: var(--accent-soft); }

  /* Scaled, non-interactive render of a page document */
  .page-preview { width: 390px; transform: scale(var(--scale, .6)); transform-origin: top center; margin-bottom: calc(-100% * (1 - var(--scale, .6))); pointer-events: none; }
  .page-preview-inner .ws-block { animation: none; cursor: default; }
  .page-preview-inner .ws-site { min-height: 820px; }
  .page-preview.is-phone { position: absolute; left: 50%; top: 0; translate: -50% 0; }

  /* Empty hero */
  .empty-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 24px; padding: clamp(28px, 5vw, 56px); border-radius: 32px; min-height: 420px; }
  .empty-hero-copy h2 { color: #fff; font-size: clamp(2rem, 1.3rem + 2.4vw, 3.2rem); letter-spacing: -0.045em; line-height: 1.02; margin-top: 16px; }
  .empty-hero-copy h2 em.accent { color: #C2F45B; }
  .empty-hero-copy p { color: rgb(255 255 255 / .7); margin-top: 12px; max-width: 460px; font-size: 1rem; }
  .empty-hero-art { display: grid; place-items: center; }
  .empty-hero-art .phone { width: 230px; }
  @media (max-width: 800px) { .empty-hero { grid-template-columns: 1fr; } .empty-hero-art { display: none; } }

  /* ---- Create studio ---- */
  .studio-wrap { position: fixed; inset: 0; z-index: 61; display: grid; place-items: center; padding: 16px; overflow-y: auto; }
  .studio { width: min(1180px, 100%); height: min(820px, calc(100dvh - 32px)); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); background: var(--surface); border-radius: 32px; overflow: hidden; box-shadow: var(--e3); border: 1px solid var(--line); }
  .studio-main { display: flex; flex-direction: column; min-height: 0; }
  .studio-head { display: flex; justify-content: space-between; gap: 16px; padding: 26px 28px 8px; }
  .studio-title { font-size: 2rem; letter-spacing: -0.045em; }
  .studio-title em.accent { background: linear-gradient(95deg, var(--emerald-600), var(--violet-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .studio-tabs { display: flex; gap: 6px; padding: 10px 28px 0; }
  .studio-tab { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 12px; font-weight: 700; color: var(--text-muted); border: 1px solid transparent; transition: all var(--t-fast); }
  .studio-tab svg { width: 16px; height: 16px; }
  .studio-tab:hover { color: var(--ink); background: var(--surface-hover); }
  .studio-tab[aria-selected="true"] { background: var(--ink); color: var(--text-on-ink); }
  .studio-tab.is-assist[aria-selected="true"] { background: linear-gradient(135deg, #9A83FF, #7C5CFF 50%, #5B3BE8); color: #fff; box-shadow: var(--e-glow-violet); }
  .studio-body { flex: 1; overflow-y: auto; padding: 20px 28px; }
  .studio-fields { display: grid; grid-template-columns: 1fr 1.3fr; gap: 14px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
  .studio-foot { display: flex; align-items: center; gap: 8px; padding: 16px 28px; border-top: 1px solid var(--line); background: var(--surface-2); }
  .studio-preview-toggle { display: none; }
  .studio-stage { position: relative; overflow: hidden; background: var(--grad-ink); isolation: isolate; }
  .studio-stage-inner { position: relative; z-index: 1; height: 100%; display: grid; place-items: center; align-content: center; gap: 18px; padding: 28px; }
  .studio-stage .phone { width: 290px; }
  .studio-stage .phone-screen { transition: opacity var(--t-base), filter var(--t-base); }
  .studio-stage .phone-screen.is-loading { opacity: .5; filter: blur(3px); }
  .studio-empty { height: 100%; display: grid; place-items: center; align-content: center; gap: 14px; padding: 30px; text-align: center; color: var(--text-muted); background: linear-gradient(180deg, #F4F1FF, #fff); }
  .studio-empty p { color: #6B6488; font-size: 13px; }

  .assist-box { position: relative; border-radius: 22px; padding: 18px; background: linear-gradient(180deg, var(--assist-soft), var(--surface) 70%); }
  .assist-label { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
  .assist-orb { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-violet); color: #fff; box-shadow: var(--e-glow-violet); flex: none; }
  .assist-orb svg { width: 17px; height: 17px; }
  .assist-orb.is-lg { width: 56px; height: 56px; border-radius: 18px; }
  .assist-orb.is-lg svg { width: 26px; height: 26px; }
  .assist-input { width: 100%; margin-top: 12px; border: 0; background: transparent; resize: none; font-size: 1.05rem; line-height: 1.55; color: var(--ink); outline: none; font-weight: 500; }
  .assist-input::placeholder { color: var(--text-subtle); }
  .assist-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
  .assist-notes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
  .assist-notes .chip svg { color: var(--accent-text); }

  .template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 12px; }
  .template-card { position: relative; display: grid; gap: 10px; padding: 8px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); text-align: left; transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base), border-color var(--t-fast); }
  .template-card:hover { transform: translateY(-3px); box-shadow: var(--e2); }
  .template-card.is-selected { border-color: transparent; box-shadow: 0 0 0 2px var(--ink), var(--e2); }
  .template-swatch { position: relative; display: grid; align-content: start; justify-items: center; gap: 5px; height: 132px; padding-bottom: 10px; border-radius: 14px; overflow: hidden; }
  .template-swatch-cover { width: 100%; height: 42px; margin-bottom: -8px; }
  .template-swatch-dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgb(255 255 255 / .9); box-shadow: 0 4px 10px -4px rgb(0 0 0 / .4); }
  .template-swatch-line { width: 48%; height: 5px; border-radius: 4px; opacity: .8; }
  .template-swatch-line.is-short { width: 30%; opacity: .35; }
  .template-swatch-btn { width: 76%; height: 13px; border-radius: 6px; margin-top: 2px; }
  .template-meta { display: grid; padding: 0 4px 4px; }
  .template-meta b { font-family: var(--font-display); font-size: .98rem; font-weight: 700; color: var(--ink); letter-spacing: -0.015em; }
  .template-meta small { font-size: 11.5px; color: var(--text-muted); }
  .template-check { position: absolute; top: 14px; right: 14px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--text-on-ink); box-shadow: var(--e2); }
  .template-check svg { width: 14px; height: 14px; }

  @media (max-width: 900px) {
    .studio { grid-template-columns: 1fr; height: calc(100dvh - 24px); border-radius: 26px; }
    .studio-stage { position: absolute; inset: auto 0 72px 0; height: 0; transition: height var(--t-slow) var(--ease-out); z-index: 5; border-radius: 26px 26px 0 0; }
    .studio-stage.is-open { height: calc(100% - 120px); }
    .studio-preview-toggle { display: inline-flex; }
    .studio-fields { grid-template-columns: 1fr; }
    .studio-head, .studio-tabs, .studio-body, .studio-foot { padding-left: 18px; padding-right: 18px; }
    .studio .studio-fields { margin-left: 18px !important; margin-right: 18px !important; }
    .studio-foot .btn-ghost { display: none; }
  }

  /* ---- Builder frame ---- */
  body.is-builder { overflow: hidden; }
  .builder { height: 100dvh; display: grid; grid-template-rows: 56px minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); background: var(--canvas); }
  .builder-bar > * { min-width: 0; }
  .builder-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 0 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
  .builder-bar > :last-child { justify-self: end; }
  .builder-center { justify-self: center; }
  .save-state { display: inline-flex; align-items: center; min-width: 110px; justify-content: flex-end; }
  .save-state svg { display: inline; vertical-align: -2px; }
  .spin { animation: spin .8s linear infinite; }

  .builder-body { display: grid; grid-template-columns: 300px minmax(0, 1fr) 340px; min-height: 0; }
  .builder-left, .builder-right { display: flex; flex-direction: column; min-height: 0; background: var(--surface); }
  .builder-left { border-right: 1px solid var(--line); }
  .builder-right { border-left: 1px solid var(--line); }
  .builder-tabs { display: flex; gap: 18px; padding: 0 16px; border-bottom: 1px solid var(--line); flex: none; }
  .builder-tabs .tab { padding: 13px 0 11px; }
  .builder-tabs .tab:disabled { opacity: .4; cursor: not-allowed; }
  .builder-scroll { flex: 1; overflow-y: auto; padding: 14px 14px 32px; }

  /* ---- Outline ---- */
  .outline { grid-template-columns: minmax(0, 1fr); display: grid; gap: 4px; list-style: none; margin: 0; padding: 0; }
  .outline-item { position: relative; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 11px; border: 1px solid transparent; background: var(--surface); transition: background var(--t-instant), border-color var(--t-fast), box-shadow var(--t-fast); }
  .outline-item:hover { background: var(--surface-hover); }
  .outline-item.is-selected { border-color: color-mix(in oklab, var(--accent) 55%, var(--line)); background: var(--accent-soft); box-shadow: 0 0 0 1px color-mix(in oklab, var(--accent) 35%, transparent); }
  .outline-item.is-hidden .outline-main { opacity: .45; }
  .outline-item.sortable-ghost { opacity: .35; }
  .outline-item.sortable-chosen { box-shadow: var(--e2); background: var(--surface); }
  .outline-handle { display: grid; place-items: center; width: 20px; height: 34px; color: var(--text-subtle); cursor: grab; flex: none; }
  .outline-handle:active { cursor: grabbing; }
  .outline-handle svg { width: 14px; height: 14px; }
  .outline-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 4px 4px; text-align: left; border-radius: 8px; }
  .outline-icon { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--surface-sunken); border: 1px solid var(--line); color: var(--ink); }
  .outline-icon svg { width: 15px; height: 15px; }
  .outline-item.is-selected .outline-icon { background: var(--ink); color: var(--text-on-ink); border-color: transparent; }
  .outline-title { display: block; font-size: var(--fs-small); font-weight: 500; color: var(--ink); line-height: 1.25; }
  .outline-sub { display: block; font-size: var(--fs-micro); color: var(--text-muted); line-height: 1.3; }
  .outline-actions { display: flex; opacity: 0; transition: opacity var(--t-fast); }
  .outline-item:hover .outline-actions, .outline-item.is-selected .outline-actions, .outline-item:focus-within .outline-actions { opacity: 1; }
  .outline-add { margin-top: 10px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border: 1.5px dashed var(--line-strong); border-radius: 11px; color: var(--text-muted); font-weight: 500; transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast); }
  .outline-add:hover { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }
  .outline-add svg { width: 16px; height: 16px; }

  /* ---- Palette ---- */
  .block-palette { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
  .block-tile { display: grid; justify-items: center; gap: 6px; padding: 12px 6px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); transition: transform var(--t-fast) var(--ease-out), border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast); }
  .block-tile:hover { transform: translateY(-2px); border-color: color-mix(in oklab, var(--accent) 50%, var(--line)); box-shadow: var(--e2); background: linear-gradient(180deg, var(--accent-soft), var(--surface)); }
  .block-tile:active { transform: translateY(0) scale(.97); }
  .block-tile-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-sunken); color: var(--ink); border: 1px solid var(--line); }
  .block-tile:hover .block-tile-icon { background: var(--ink); color: var(--text-on-ink); border-color: transparent; }
  .block-tile-icon svg { width: 17px; height: 17px; }
  .block-tile-label { font-size: 11.5px; font-weight: 500; color: var(--ink); text-align: center; line-height: 1.2; }

  /* ---- Canvas + device ---- */
  .builder-canvas { position: relative; overflow-y: auto; padding: 28px 24px 60px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
  .device { width: 390px; max-width: 100%; transition: width var(--t-slow) var(--ease-out); flex: none; }
  .device.is-desktop { width: min(980px, 100%); }
  .device-screen { border-radius: 36px; overflow: hidden; min-height: 720px; box-shadow: 0 0 0 10px #0E1A15, 0 0 0 11px #2A3631, 0 40px 80px -30px rgb(8 50 36 / .55); position: relative; }
  .device.is-desktop .device-screen { border-radius: 14px; box-shadow: 0 0 0 1px var(--line-strong), 0 30px 60px -30px rgb(8 50 36 / .45); min-height: 640px; }
  .device-screen .ws-site { min-height: 720px; }
  .device.is-desktop .device-screen .ws-site { min-height: 640px; }
  .device-screen .ws-block { cursor: pointer; outline: 2px solid transparent; outline-offset: 5px; border-radius: calc(var(--site-radius) + 4px); transition: outline-color var(--t-fast); }
  .device-screen .ws-block:hover { outline-color: color-mix(in oklab, #0BC284 45%, transparent); }
  .device-screen .ws-block.is-selected { outline-color: #0BC284; }
  .device-screen .ws-block.is-hidden { opacity: .35; }
  .device-screen a, .device-screen button, .device-screen input, .device-screen summary { pointer-events: none; }
  .canvas-warn { max-width: 390px; }

  /* ---- Inspector ---- */
  .inspector-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
  .inspector-section { border-top: 1px solid var(--line); padding-top: 12px; }
  .inspector-section summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-size: var(--fs-small); font-weight: 500; color: var(--ink); }
  .inspector-section summary::-webkit-details-marker { display: none; }
  .image-field { display: flex; gap: 12px; align-items: flex-start; }
  .image-field-preview { width: 64px; height: 64px; flex: none; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: var(--surface-sunken); border: 1px solid var(--line); color: var(--text-subtle); }
  .image-field-preview img { width: 100%; height: 100%; object-fit: cover; }
  .theme-swatch { display: grid; grid-template-columns: 18px 1fr; grid-template-rows: 10px 10px; gap: 4px; width: 62%; align-items: center; }
  .theme-swatch > span:first-child { grid-row: span 2; }
  .theme-swatch > span:not(:first-child) { height: 10px; }
  .btn-sample { display: block; width: 60%; height: 16px; border-radius: 6px; }
  .btn-sample-solid { background: var(--ink); }
  .btn-sample-soft { background: color-mix(in oklab, var(--accent) 22%, transparent); border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent); }
  .btn-sample-outline { border: 1.5px solid var(--ink); }
  .btn-sample-shadow { background: var(--surface); box-shadow: 0 4px 10px -3px rgb(0 0 0 / .3); }

  .builder-mobile-tabs { display: none; }

  @media (max-width: 1180px) { .builder-body { grid-template-columns: 260px minmax(0, 1fr) 300px; } }
  @media (max-width: 1023px) {
    .builder { grid-template-rows: 56px minmax(0, 1fr) 60px; }
    .builder-bar { grid-template-columns: minmax(0, 1fr) auto; }
    .builder-center { display: none; }
    .builder-body { grid-template-columns: minmax(0, 1fr); }
    .builder-left, .builder-right, .builder-canvas { display: none; }
    .builder-body[data-pane="blocks"] .builder-left, .builder-body[data-pane="inspector"] .builder-right { display: flex; border: 0; }
    .builder-body[data-pane="canvas"] .builder-canvas { display: flex; padding: 18px 12px 40px; }
    .builder-mobile-tabs { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); border-top: 1px solid var(--line); }
    .builder-mobile-tabs button { display: grid; justify-items: center; align-content: center; gap: 2px; font-size: 11px; font-weight: 500; color: var(--text-muted); }
    .builder-mobile-tabs button svg { width: 20px; height: 20px; }
    .builder-mobile-tabs button[aria-pressed="true"] { color: var(--ink); }
    .builder-mobile-tabs button[aria-pressed="true"] svg { color: var(--accent-text); }
    .device-screen { box-shadow: 0 0 0 1px var(--line-strong), 0 20px 40px -24px rgb(8 50 36 / .45); border-radius: 22px; min-height: 600px; }
  }
}

/* ---- Builder v2: premium chrome ---- */
@layer components {
  .builder { grid-template-rows: 64px minmax(0, 1fr); background: var(--canvas); background-image: var(--grad-mesh); }
  .builder-bar { background: color-mix(in oklab, var(--surface) 86%, transparent); backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5); padding: 0 16px; }
  .builder-site-dot { width: 34px; height: 34px; border-radius: 11px; flex: none; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .3), var(--e1); }
  .builder-assist-btn { height: 34px; padding: 0 12px; border-radius: 10px; }
  .builder-body { grid-template-columns: 300px minmax(0, 1fr) 360px; gap: 10px; padding: 10px; }
  .builder-left, .builder-right { border: 1px solid var(--line) !important; border-radius: 22px; overflow: hidden; box-shadow: var(--e1); }
  .builder-tabs { gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); }
  .builder-tabs .tab { padding: 0 12px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--text-muted); border: 0; }
  .builder-tabs .tab:hover { background: var(--surface-hover); color: var(--ink); }
  .builder-tabs .tab.is-active { background: var(--ink); color: var(--text-on-ink); }
  .builder-tabs .tab::after { display: none; }
  .builder-canvas { border-radius: 22px; background: radial-gradient(circle at 1px 1px, color-mix(in oklab, var(--text-subtle) 40%, transparent) 1px, transparent 0) 0 0 / 20px 20px; padding-top: 18px; }
  .canvas-url { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--line); box-shadow: var(--e1); font-size: 12.5px; font-weight: 700; color: var(--ink); backdrop-filter: blur(10px); }
  .device-screen { box-shadow: 0 0 0 10px #111413, 0 0 0 11px #2B302D, 0 50px 90px -40px rgb(0 0 0 / .55), 0 30px 60px -30px rgb(11 194 132 / .25); border-radius: 40px; }
  :root[data-theme="dark"] .device-screen { box-shadow: 0 0 0 10px #1C201F, 0 0 0 11px #353B38, 0 50px 90px -40px rgb(0 0 0 / .9), 0 30px 60px -30px rgb(124 92 255 / .3); }
  .device-screen .ws-block.is-selected { outline-color: var(--violet-500); }
  .device-screen .ws-block:hover { outline-color: color-mix(in oklab, var(--violet-500) 45%, transparent); }

  .builder-quick { display: grid; gap: 8px; margin-bottom: 14px; }
  .builder-quick-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; text-align: left; transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base); }
  .builder-quick-card:hover { transform: translateY(-2px); }
  .builder-quick-card > svg { width: 20px; height: 20px; flex: none; }
  .builder-quick-card b { display: block; font-family: var(--font-display); font-size: .98rem; letter-spacing: -0.01em; color: inherit; }
  .builder-quick-card small { display: block; font-size: 11.5px; opacity: .75; }
  .builder-quick-card.is-plain { background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); }
  .builder-quick-card.is-plain:hover { box-shadow: var(--e2); }

  .outline-item { border-radius: 14px; padding: 5px; }
  .outline-item.is-selected { border-color: color-mix(in oklab, var(--violet-500) 45%, var(--line)); background: var(--assist-soft); box-shadow: 0 0 0 1px color-mix(in oklab, var(--violet-500) 25%, transparent); }
  .outline-item.is-selected .outline-icon { background: var(--grad-violet); color: #fff; }
  .outline-icon { border-radius: 11px; width: 34px; height: 34px; }
  .outline-title { font-weight: 700; }
  .block-tile { border-radius: 16px; padding: 14px 6px 12px; }
  .block-tile-icon { border-radius: 12px; width: 38px; height: 38px; }
  .block-tile:hover .block-tile-icon { background: var(--grad-violet); color: #fff; }

  .builder-dialog { overflow: hidden; }
  .image-field-preview svg { width: 22px; height: 22px; }
  .builder-dialog-hero { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 0; }

  .theme-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .theme-card { display: grid; gap: 6px; text-align: center; font-size: var(--fs-micro); font-weight: 700; color: var(--text-muted); }
  .theme-card-preview { position: relative; display: grid; justify-items: center; align-content: start; gap: 5px; height: 96px; padding-bottom: 8px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base); }
  .theme-card:hover .theme-card-preview { transform: translateY(-2px); box-shadow: var(--e2); }
  .theme-card.is-selected .theme-card-preview { box-shadow: 0 0 0 2px var(--ink), var(--e2); }
  .theme-card.is-selected { color: var(--ink); }
  .theme-card-cover { width: 100%; height: 28px; margin-bottom: -8px; }
  .theme-card-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgb(255 255 255 / .9); }
  .theme-card-btn { width: 72%; height: 11px; }
  .theme-card-btn.is-2 { opacity: .14; }
  .btn-sample-glass { background: color-mix(in oklab, var(--ink) 10%, transparent); border: 1px solid var(--line-strong); backdrop-filter: blur(4px); }

  @media (max-width: 1180px) { .builder-body { grid-template-columns: 270px minmax(0, 1fr) 320px; } }
  @media (max-width: 1023px) {
    .builder { grid-template-rows: 60px minmax(0, 1fr) 64px; }
    .builder-body { padding: 0; gap: 0; grid-template-columns: minmax(0, 1fr); }
    .builder-left, .builder-right { border-radius: 0; border: 0 !important; box-shadow: none; }
    .builder-canvas { border-radius: 0; }
    .canvas-url { display: none; }
  }
}

/* Version history (ADR-0031) */
@layer components {
  .hist-save { display: flex; gap: 6px; }
  .hist-save .input { flex: 1; min-width: 0; }
  .hist-empty { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 28px 12px; border: 1px dashed var(--line-strong); border-radius: var(--r-md); color: var(--text-muted); }
  .hist-empty > svg { width: 22px; height: 22px; }
  .hist-list { display: grid; gap: 0; position: relative; }
  .hist-item { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; }
  .hist-item + .hist-item::before { content: ""; position: absolute; left: 15px; top: -10px; height: 20px; width: 2px; background: var(--line); }
  .hist-dot { width: 32px; height: 32px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--surface-sunken); color: var(--text-muted); border: 1px solid var(--line); }
  .hist-dot svg { width: 15px; height: 15px; }
  .hist-dot.is-published { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
  .hist-dot.is-live { box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 30%, transparent); }
  .hist-body { flex: 1; min-width: 0; }
  .hist-body > div { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
  .hist-name { font-size: 13.5px; color: var(--ink); overflow-wrap: anywhere; }
  .hist-body small { display: block; font-size: 12px; margin-top: 2px; }
}

/* Share preview (ADR-0032) */
@layer components {
  .share-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: var(--e1); }
  .share-card-img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; background: var(--surface-sunken); }
  .share-card-body { display: grid; gap: 2px; padding: 10px 12px; background: var(--surface-2); border-top: 1px solid var(--line); }
  .share-card-body small { font-size: 11px; color: var(--text-subtle); text-transform: lowercase; }
  .share-card-body b { font-size: 13.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .share-card-body span { font-size: 12px; color: var(--text-muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}

/* css/components/os.css */
/* Weesify OS: pillar navigation, the OS map and module pages ------------------------------ */
@layer components {
  /* Sidebar: pillar sections, compact items, roadmap badges */
  .nav-item.is-planned { color: var(--text-subtle); }
  .nav-item.is-planned svg { opacity: .8; }
  .nav-badge { margin-left: auto; min-width: 26px; height: 18px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: var(--r-pill); font-size: 10px; font-weight: 700; letter-spacing: .02em; color: var(--text-subtle); border: 1px dashed var(--line-strong); }
  .nav-badge.is-now { border: 0; color: #fff; background: var(--grad-violet); }
  .nav-item[aria-current="page"] .nav-badge { color: var(--text-on-ink); border-color: rgb(255 255 255 / .3); }

  /* Status language, shared everywhere */
  .os-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
  .os-dot.is-live { background: var(--emerald-500); box-shadow: 0 0 0 3px color-mix(in oklab, var(--emerald-500) 22%, transparent); }
  .os-dot.is-building { background: var(--violet-500); box-shadow: 0 0 0 3px color-mix(in oklab, var(--violet-500) 22%, transparent); animation: os-pulse 2.2s var(--ease-out) infinite; }
  .os-dot.is-planned { background: transparent; border: 2px solid var(--text-subtle); }
  .g-card .os-dot.is-planned { border-color: rgb(255 255 255 / .7); }
  @keyframes os-pulse { 50% { box-shadow: 0 0 0 6px color-mix(in oklab, var(--violet-500) 6%, transparent); } }
  @media (prefers-reduced-motion: reduce) { .os-dot.is-building { animation: none; } }

  .os-counts { display: flex; flex-wrap: wrap; gap: 8px; }
  .os-count { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--r-pill); background: var(--glass-strong); border: 1px solid var(--line); font-size: var(--fs-small); color: var(--text-muted); box-shadow: var(--e1); }
  .os-count b { color: var(--ink); font-size: 15px; }

  /* Roadmap strip */
  .os-road { padding: 20px 22px; }
  .os-stages { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; }
  .os-stage { display: grid; gap: 6px; min-width: 0; }
  .os-stage-bar { height: 6px; border-radius: var(--r-pill); background: var(--line-strong); }
  .os-stage.is-done .os-stage-bar { background: var(--grad-forest); }
  .os-stage.is-now .os-stage-bar { background: repeating-linear-gradient(-45deg, var(--violet-500) 0 6px, var(--violet-400) 6px 12px); }
  .os-stage-n { font-size: 11px; font-weight: 700; color: var(--text-subtle); font-variant-numeric: tabular-nums; }
  .os-stage-label { font-size: 12.5px; font-weight: 600; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .os-stage.is-done .os-stage-label { color: var(--ink); }
  .os-stage.is-now .os-stage-label { color: var(--assist-text); }
  @media (max-width: 720px) {
    .os-stages { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
  }

  /* Pillars and module cards */
  .os-pillar { margin-top: 34px; }
  .os-pillar-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
  .os-pillar-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; }
  .os-pillar-icon svg { width: 20px; height: 20px; }
  .os-pillar-title { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -0.03em; }
  .os-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; }
  .os-card { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 196px; padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--e1); color: var(--text); transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast), border-color var(--t-fast); }
  .os-card:hover { transform: translateY(-2px); box-shadow: var(--e2); border-color: var(--line-strong); }
  .os-card.is-planned { background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--hatch); border-style: dashed; box-shadow: none; }
  .os-card.is-building { border-color: color-mix(in oklab, var(--violet-500) 40%, var(--line)); background: linear-gradient(160deg, var(--assist-soft), var(--surface) 55%); }
  .os-card-icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: var(--ink); border: 1px solid var(--line); }
  .os-card-icon:not(.g-card) { background: var(--surface-sunken); }
  .os-card-icon.g-card { border: 0; color: #fff; }
  .os-card-icon svg { width: 20px; height: 20px; }
  .os-card.is-building .os-card-icon { background: var(--grad-violet); color: #fff; border: 0; }
  .os-card-title { margin-top: 10px; font-family: var(--font-display); font-size: 1.12rem; letter-spacing: -0.02em; color: var(--ink); }
  .os-card-tag { font-size: var(--fs-small); color: var(--text-muted); }
  .os-card-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; gap: 8px; }
  .os-card-cta { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-small); font-weight: 600; color: var(--ink); }
  .os-card-cta svg { width: 14px; height: 14px; transition: transform var(--t-fast) var(--ease-out); }
  .os-card:hover .os-card-cta svg { transform: translateX(3px); }
  .os-status { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: var(--r-pill); font-size: 11px; font-weight: 700; white-space: nowrap; }
  .os-status.is-live { background: var(--accent-soft); color: var(--accent-text); }
  .os-status.is-building { background: var(--assist-soft); color: var(--assist-text); }
  .os-status.is-planned { color: var(--text-muted); border: 1px dashed var(--line-strong); }
  .os-goal { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--heat); }
  .os-goal svg { width: 13px; height: 13px; }

  /* The connected-graph band */
  .os-flow { margin-top: 38px; padding: clamp(22px, 3vw, 36px); display: grid; gap: 26px; grid-template-columns: minmax(0, 1fr); }
  @media (min-width: 1000px) { .os-flow { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; } }
  .os-flow-title { color: #fff; font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); letter-spacing: -0.04em; margin: 14px 0 8px; }
  .os-flow-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; counter-reset: flow; }
  @media (min-width: 560px) { .os-flow-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  .os-flow-steps li { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .1); color: rgb(255 255 255 / .9); font-size: var(--fs-small); font-weight: 600; }
  .os-flow-icon { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: rgb(194 244 91 / .14); color: var(--lime-400); }
  .os-flow-icon svg { width: 17px; height: 17px; }

  /* Module page */
  .os-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; font-size: var(--fs-small); font-weight: 600; color: var(--text-muted); }
  .os-back:hover { color: var(--ink); }
  .os-back svg { width: 15px; height: 15px; }
  .os-hero { padding: clamp(22px, 4vw, 44px); display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
  @media (min-width: 900px) { .os-hero { grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); align-items: center; } }
  .os-hero-title { color: #fff; font-family: var(--font-display); font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.4rem); letter-spacing: -0.05em; line-height: 1; margin-top: 16px; }
  .os-hero-tag { font-family: var(--font-accent); font-style: italic; font-size: 1.35rem; color: rgb(255 255 255 / .86); margin-top: 6px; }
  .os-hero-pitch { max-width: 58ch; margin-top: 12px; color: rgb(255 255 255 / .78); }
  .os-hero-art { display: grid; justify-items: center; gap: 16px; }
  .os-hero-glyph { width: 116px; height: 116px; border-radius: 34px; display: grid; place-items: center; background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .22); backdrop-filter: blur(10px); box-shadow: 0 24px 60px -24px rgb(0 0 0 / .5); }
  .os-hero-glyph svg { width: 52px; height: 52px; color: #fff; stroke-width: 1.5; }
  .os-hero-stage { width: min(240px, 100%); padding: 12px 14px; border-radius: 16px; background: rgb(0 0 0 / .18); display: grid; gap: 6px; color: #fff; }
  .os-hero-stage small { color: rgb(255 255 255 / .7); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
  .os-hero-stage b { font-family: var(--font-display); font-size: 1.3rem; }
  .os-hero-stage .stepper > span { background: rgb(255 255 255 / .2); }
  @media (max-width: 899px) { .os-hero-art { justify-items: start; grid-auto-flow: column; justify-content: start; align-items: center; } .os-hero-glyph { width: 72px; height: 72px; border-radius: 22px; } .os-hero-glyph svg { width: 32px; height: 32px; } }
  .os-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
  .os-features li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--text); }
  .os-feature-tick { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent-text); }
  .os-feature-tick svg { width: 14px; height: 14px; }

  /* Create launcher: modules that are coming */
  .launcher-soon-head { display: flex; align-items: center; justify-content: space-between; margin: 20px 2px 10px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-subtle); }
  .launcher-soon-head a { display: inline-flex; align-items: center; gap: 4px; letter-spacing: 0; text-transform: none; font-size: var(--fs-small); color: var(--assist-text); }
  .launcher-soon-head svg { width: 13px; height: 13px; }
  .launcher-soon { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 8px; }
  .launcher-soon-tile { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; border-radius: var(--r-md); border: 1px dashed var(--line-strong); color: var(--text-muted); font-size: var(--fs-small); font-weight: 600; transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast); }
  .launcher-soon-tile svg { width: 17px; height: 17px; flex: none; }
  .launcher-soon-tile small { font-size: 10.5px; font-weight: 700; color: var(--text-subtle); }
  .launcher-soon-tile:hover { border-style: solid; border-color: color-mix(in oklab, var(--violet-500) 45%, var(--line)); color: var(--ink); background: var(--assist-soft); }

  /* Home: compact OS overview */
  .os-home-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 6px 18px; padding: 4px 20px 20px; }
  .os-home-col { display: grid; align-content: start; gap: 2px; min-width: 0; }
  .os-home-head { display: flex; align-items: center; gap: 10px; padding: 6px 0 8px; font-size: var(--fs-small); color: var(--ink); }
  .os-home-icon.g-card { border-radius: 9px; }
  .os-home-icon { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; }
  .os-home-icon svg { width: 14px; height: 14px; }
  .os-home-row { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; margin: 0 -10px; border-radius: 10px; font-size: var(--fs-small); font-weight: 600; color: var(--text); min-width: 0; }
  .os-home-row:hover { background: var(--surface-hover); }
  .os-home-row.is-planned { color: var(--text-muted); font-weight: 500; }
  .os-home-row small { font-size: 10.5px; font-weight: 700; color: var(--text-subtle); }
  .os-home-goal { width: 14px; height: 14px; color: var(--heat); flex: none; }

  /* Tall navigation: keep the pillars visible on shorter screens */
  @media (min-width: 1024px) and (max-height: 1040px) { .sidebar-foot .usage-card { display: none; } }
}

/* css/marketing.css */
/* ==========================================================================
   weesify.com marketing site. Built on the Aurora tokens; no framework.
   ========================================================================== */
@layer components {
  .mk { background: var(--canvas); color: var(--text); font-size: 15px; overflow-x: hidden; }
  .mk-container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }
  .mk .kicker { display: inline-block; margin-bottom: 12px; }
  .mk em.accent { font-family: var(--font-accent); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

  /* ---- Nav with mega menus (ADR-0026) ---- */
  .mk-nav { position: fixed; inset: 14px 0 auto; z-index: 50; padding: 0 clamp(12px, 3vw, 28px); pointer-events: none; }
  .mk-nav-inner { pointer-events: auto; position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 18px; height: 64px; padding: 0 10px 0 18px; border-radius: 22px; background: rgb(255 255 255 / .74); border: 1px solid rgb(255 255 255 / .85); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6); box-shadow: 0 12px 40px -18px rgb(0 0 0 / .35); transition: background var(--t-base), border-color var(--t-base); }
  .mk-nav.is-dark:not(.mega-open) .mk-nav-inner { background: rgb(14 17 16 / .55); border-color: rgb(255 255 255 / .1); }
  .mk-nav.is-dark:not(.mega-open) :is(.mk-brand span, .mk-link, .mk-signin) { color: #fff; }
  .mk-nav.is-dark:not(.mega-open) .mk-burger span { background: #fff; }
  .mk-brand { font-size: 1.25rem; }
  .mk-links { display: flex; gap: 2px; margin: 0 auto; }
  .mk-link { display: inline-flex; align-items: center; gap: 4px; padding: 8px 13px; border-radius: 12px; font: inherit; font-weight: 650; font-size: 14.5px; color: var(--text); background: none; border: 0; cursor: pointer; transition: background var(--t-fast), color var(--t-fast); }
  .mk-link:hover, .mk-link.is-open { background: rgb(0 0 0 / .05); color: var(--ink); }
  .mk-nav.is-dark:not(.mega-open) .mk-link:hover { background: rgb(255 255 255 / .1); }
  .mk-caret svg { width: 14px; height: 14px; transition: transform var(--t-base) var(--ease-out); }
  .mk-link.is-open .mk-caret svg { transform: rotate(180deg); }
  .mk-nav-cta { display: flex; align-items: center; gap: 8px; margin-left: auto; }
  .mk-signin { padding: 8px 12px; font-weight: 700; color: var(--ink); border-radius: 12px; }
  .mk-signin:hover { background: rgb(0 0 0 / .05); }
  .mk-burger { display: none; width: 44px; height: 44px; border-radius: 12px; place-content: center; gap: 5px; background: none; border: 0; cursor: pointer; }
  .mk-burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform var(--t-base) var(--ease-out), opacity var(--t-fast); }
  .mk-nav.menu-open .mk-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mk-nav.menu-open .mk-burger span:nth-child(2) { opacity: 0; }
  .mk-nav.menu-open .mk-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  html.mk-lock { overflow: hidden; }

  .mk-mega-wrap { pointer-events: none; position: relative; z-index: 1; max-width: 1180px; margin: 10px auto 0; }
  .mk-mega-wrap.is-open { pointer-events: auto; }
  .mk-mega { padding: 14px; border-radius: 26px; background: rgb(255 255 255 / .92); border: 1px solid rgb(255 255 255 / .9); backdrop-filter: blur(22px) saturate(1.7); -webkit-backdrop-filter: blur(22px) saturate(1.7);
    box-shadow: 0 40px 90px -40px rgb(10 20 15 / .45), 0 0 0 1px rgb(10 20 15 / .04); animation: mk-mega-in .26s var(--ease-out) both; }
  .mk-mega.is-swap { animation: mk-mega-swap .2s var(--ease-out) both; }
  @keyframes mk-mega-in { from { opacity: 0; transform: translateY(-8px) scale(.985); } to { opacity: 1; transform: none; } }
  @keyframes mk-mega-swap { from { opacity: .4; } to { opacity: 1; } }
  .mk-mega[hidden] { display: none; }

  /* Product cards */
  .mk-mega-cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
  .mk-mcard { --t1: #F1ECFF; --t2: #FAF8FF; --tc: #7C5CFF; grid-column: span 2; position: relative; display: grid; grid-template-rows: auto 1fr; min-height: 232px; border-radius: 20px; overflow: hidden; color: var(--ink);
    background: linear-gradient(160deg, var(--t1), var(--t2) 70%); border: 1px solid rgb(10 20 15 / .06); transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base); isolation: isolate; }
  .mk-mcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgb(10 20 15 / .035) 1px, transparent 1px), linear-gradient(90deg, rgb(10 20 15 / .035) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, transparent, #000 60%); }
  .mk-mcard:hover { transform: translateY(-2px); box-shadow: 0 24px 40px -28px rgb(10 20 15 / .5); }
  .mk-mcard.is-wide { grid-column: span 3; min-height: 138px; grid-template-rows: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .mk-mcard-head { display: grid; gap: 4px; padding: 18px 18px 10px; align-content: start; }
  .mk-mcard-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: var(--tc); box-shadow: 0 6px 14px -6px var(--tc); margin-bottom: 8px; }
  .mk-mcard-icon svg { width: 16px; height: 16px; }
  .mk-mcard-head b { font-size: 15.5px; letter-spacing: -0.01em; }
  .mk-mcard-head small { color: var(--text-muted); font-size: 13.5px; line-height: 1.45; }
  .tone-green { --t1: #E3F8EE; --t2: #F6FDF9; --tc: #0BA870; }
  .tone-orange { --t1: #FFEDE3; --t2: #FFF9F5; --tc: #F26A2E; }
  .tone-amber { --t1: #FFF3D6; --t2: #FFFCF4; --tc: #D99A06; }
  .tone-blue { --t1: #E4EDFF; --t2: #F7FAFF; --tc: #3B6FE0; }
  .tone-pink { --t1: #FFE6F0; --t2: #FFF8FB; --tc: #E5487F; }
  .tone-ink { --t1: #1F2925; --t2: #0E1512; --tc: #C2F45B; color: #fff; }
  .tone-ink .mk-mcard-head b { color: #fff; }
  .tone-ink .mk-mcard-head small { color: rgb(255 255 255 / .66); }
  .tone-ink .mk-mcard-icon { color: #0E1512; }
  .tone-ink.mk-mcard::after { background-image: linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px); }

  /* Columns */
  .mk-mega-cols { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
  .mk-mega-col { padding: 8px 10px 10px; }
  .mk-mega-col + .mk-mega-col { border-left: 1px solid var(--line); }
  .mk-mega-title { margin: 6px 10px 8px; font-size: 11.5px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--text-subtle); }
  .mk-mitem { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 14px; color: var(--ink); transition: background var(--t-fast); }
  a.mk-mitem:hover, a.mk-mitem:focus-visible { background: rgb(10 20 15 / .045); }
  .mk-mitem-icon { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 6px -3px rgb(0 0 0 / .18); color: var(--ink); transition: transform var(--t-fast) var(--ease-out), background var(--t-fast), color var(--t-fast); }
  a.mk-mitem:hover .mk-mitem-icon { transform: scale(1.06); background: var(--ink); color: #C2F45B; border-color: transparent; }
  .mk-mitem-icon svg { width: 17px; height: 17px; }
  .mk-mitem-icon.is-tone { background: var(--tc); color: #fff; border: 0; }
  .mk-mitem b { display: block; font-size: 14.5px; font-weight: 650; }
  .mk-mitem b em { font-style: normal; font-size: 10.5px; font-weight: 800; padding: 1px 7px; margin-left: 4px; border-radius: 99px; background: var(--surface-hover); color: var(--text-muted); vertical-align: 1px; }
  .mk-mitem small { display: block; font-size: 13px; color: var(--text-muted); margin-top: 1px; }
  .mk-mitem.is-soon { opacity: .6; }
  .mk-mega-foot { display: flex; align-items: center; gap: 18px; margin: 8px -14px -14px; padding: 16px 24px; border-top: 1px solid var(--line); border-radius: 0 0 26px 26px; background: linear-gradient(90deg, rgb(10 20 15 / .025), rgb(124 92 255 / .05)); color: var(--ink); overflow: hidden; min-height: 76px; }
  .mk-mega-foot > span:first-child { flex: none; display: grid; gap: 2px; }
  .mk-mega-foot b { font-size: 14.5px; }
  .mk-mega-foot b em { font-style: normal; font-size: 10.5px; font-weight: 800; padding: 2px 8px; margin-left: 6px; border-radius: 99px; background: #E4EDFF; color: #3B6FE0; }
  .mk-mega-foot small { color: var(--text-muted); font-size: 13px; }
  .mk-mega-foot:hover small span { display: inline-block; transform: translateX(3px); }

  /* Mobile menu */
  .mk-menu { pointer-events: auto; max-width: 1180px; margin: 8px auto 0; padding: 8px; border-radius: 22px; background: rgb(255 255 255 / .97); backdrop-filter: blur(18px); display: grid; gap: 2px; box-shadow: var(--e3); max-height: calc(100dvh - 110px); overflow-y: auto; overscroll-behavior: contain; animation: mk-mega-in .24s var(--ease-out) both; }
  .mk-menu[hidden] { display: none; }
  .mk-menu-link, .mk-acc summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px; border-radius: 14px; font-weight: 700; font-size: 1.05rem; color: var(--ink); cursor: pointer; list-style: none; }
  .mk-acc summary::-webkit-details-marker { display: none; }
  .mk-acc summary svg { width: 18px; height: 18px; transition: transform var(--t-base); }
  .mk-acc[open] summary { background: rgb(10 20 15 / .04); }
  .mk-acc[open] summary svg { transform: rotate(180deg); }
  .mk-acc-body { display: grid; gap: 2px; padding: 4px 0 8px; }
  .mk-menu-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 6px 6px; position: sticky; bottom: -8px; margin: 0 -8px -8px; padding: 12px 14px 14px; background: linear-gradient(to bottom, rgb(255 255 255 / 0), rgb(255 255 255 / .97) 30%); }
  @media (max-width: 1040px) { .mk-links, .mk-signin, .mk-cta, .mk-mega-wrap { display: none; } .mk-burger { display: grid; } }

  /* Menu art: tiny live illustrations */
  .ma { position: relative; display: block; min-height: 110px; overflow: hidden; }
  .mk-mcard.is-wide .ma { min-height: 0; }
  .ma svg { display: block; }
  .ma-pages { display: flex; justify-content: center; align-items: flex-end; gap: 0; padding-top: 6px; }
  .ma-phone { width: 92px; height: 130px; border-radius: 16px 16px 0 0; background: #fff; border: 1px solid rgb(10 20 15 / .08); border-bottom: 0; box-shadow: 0 -10px 30px -18px rgb(60 30 160 / .5); padding: 7px; display: grid; gap: 5px; align-content: start; justify-items: center; transform: translateY(14px); transition: transform var(--t-base) var(--ease-out); }
  .ma-phone.is-back { transform: translate(-18px, 30px) rotate(-7deg); order: -1; margin-right: -46px; opacity: .8; }
  .mk-mcard:hover .ma-phone:not(.is-back) { transform: translateY(6px); }
  .ma-cover { width: 100%; height: 30px; border-radius: 9px; background: linear-gradient(120deg, #8468FF, #FF9A5C); }
  .ma-cover.g2 { background: linear-gradient(120deg, #0BC284, #3B6FE0); }
  .ma-av { width: 22px; height: 22px; border-radius: 99px; margin-top: -16px; background: #1F2925; border: 2px solid #fff; }
  .ma-line { height: 5px; border-radius: 9px; background: #E6E9E4; }
  .w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; }
  .ma-btn { width: 100%; height: 12px; border-radius: 6px; background: #F1F3EF; }
  .ma-btn.is-accent { background: #1F2925; }
  .ma-analytics { color: var(--tc); padding: 0 0 0 0; }
  .ma-analytics > svg { position: absolute; inset: auto 0 0 0; width: 100%; height: 92px; }
  .ma-chip, .ma-row { display: flex; align-items: center; gap: 7px; font-size: 12px; background: #fff; border: 1px solid rgb(10 20 15 / .07); border-radius: 10px; padding: 6px 9px; box-shadow: 0 6px 16px -12px rgb(0 0 0 / .4); color: var(--ink); }
  .ma-chip { position: absolute; left: 16px; top: 6px; }
  .ma-chip svg, .ma-row svg { width: 13px; height: 13px; color: var(--text-muted); }
  .ma-chip b { margin-left: 6px; font-size: 11px; color: var(--tc); }
  .ma-links, .ma-audience { display: grid; gap: 6px; padding: 4px 16px 16px; align-content: end; }
  .ma-row b { font-weight: 650; flex: 1; } .ma-row em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--tc); background: color-mix(in oklab, var(--tc) 12%, #fff); padding: 1px 7px; border-radius: 99px; }
  .ma-row.is-faded { opacity: .45; }
  .ma-dot { width: 20px; height: 20px; border-radius: 99px; display: grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 800; color: #fff; background: linear-gradient(145deg, var(--tc), #8468FF); }
  .ma-commerce { display: flex; gap: 8px; align-items: center; padding: 14px 16px; }
  .ma-tile { flex: 1; display: grid; gap: 2px; justify-items: start; padding: 10px; border-radius: 12px; background: #fff; border: 1px solid rgb(10 20 15 / .07); font-size: 12px; box-shadow: 0 8px 18px -14px rgb(0 0 0 / .4); }
  .ma-tile svg { width: 15px; height: 15px; color: var(--tc); }
  .ma-tile em { font-style: normal; font-size: 11px; color: var(--text-muted); }
  .ma-ai { display: grid; gap: 8px; padding: 14px 16px; align-content: center; }
  .ma-prompt { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 12px; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .14); font-size: 12px; color: rgb(255 255 255 / .85); }
  .ma-prompt svg { width: 14px; height: 14px; color: #C2F45B; }
  .ma-prompt i { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ma-code { display: grid; gap: 6px; padding: 0 4px; }
  .ma-code i { height: 6px; border-radius: 9px; background: linear-gradient(90deg, rgb(194 244 91 / .7), rgb(132 104 255 / .5)); animation: ma-shine 2.4s ease-in-out infinite alternate; }
  .ma-code i:nth-child(2) { animation-delay: .3s; } .ma-code i:nth-child(3) { animation-delay: .6s; }
  @keyframes ma-shine { from { opacity: .45; } to { opacity: 1; } }
  .ma-templates { flex: 1; min-height: 56px; }
  .ma-templates.is-strip { align-self: stretch; margin: -16px -24px -16px 0; }
  .ma-bubble { position: absolute; width: 38px; height: 38px; border-radius: 99px; display: grid; place-items: center; color: #fff; box-shadow: 0 10px 20px -12px rgb(0 0 0 / .6); animation: ma-float 6s ease-in-out infinite alternate; }
  .ma-bubble svg { width: 17px; height: 17px; }
  .ma-bubble.g1 { left: 6%; top: 12%; background: #1F2925; } .ma-bubble.g2 { left: 16%; top: 52%; background: #8468FF; animation-delay: -1s; }
  .ma-bubble.g3 { left: 27%; top: 8%; background: #FF9A5C; animation-delay: -2s; } .ma-bubble.g4 { left: 37%; top: 50%; background: #0BC284; animation-delay: -3s; }
  .ma-bubble.g5 { left: 48%; top: 14%; background: #3B6FE0; animation-delay: -1.5s; } .ma-bubble.g6 { left: 58%; top: 56%; background: #E5487F; animation-delay: -2.5s; }
  .ma-bubble.g7 { left: 68%; top: 10%; background: #D99A06; animation-delay: -.5s; } .ma-bubble.g8 { left: 77%; top: 50%; background: #1F2925; animation-delay: -3.5s; }
  .ma-bubble.g9 { left: 87%; top: 12%; background: #7C5CFF; animation-delay: -4s; } .ma-bubble.g10 { left: 94%; top: 55%; background: #0BA870; animation-delay: -1.2s; }
  @keyframes ma-float { from { transform: translateY(-3px); } to { transform: translateY(4px); } }
  @media (prefers-reduced-motion: reduce) { .ma-bubble, .ma-code i, .mk-mega, .mk-menu { animation: none; } }

  /* ---- Hero ---- */
  .mk-hero { position: relative; overflow: hidden; background: var(--grad-ink); color: #fff; padding: 150px 0 90px; margin: 10px; border-radius: 40px; min-height: min(920px, 100svh); display: grid; align-items: center; }
  .mk-hero-glow { position: absolute; inset: -20%; background: radial-gradient(35% 30% at 20% 25%, rgb(43 227 162 / .30), transparent 70%), radial-gradient(35% 35% at 80% 20%, rgb(124 92 255 / .42), transparent 70%), radial-gradient(40% 40% at 65% 95%, rgb(255 122 61 / .20), transparent 70%); animation: aurora-drift 26s ease-in-out infinite alternate; pointer-events: none; }
  .mk-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; }
  .mk-eyebrow { display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px 0 6px; border-radius: 999px; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .14); color: rgb(255 255 255 / .9); font-weight: 650; font-size: 13.5px; backdrop-filter: blur(8px); transition: background var(--t-fast); }
  .mk-eyebrow:hover { background: rgb(255 255 255 / .14); }
  .mk-eyebrow svg { width: 14px; height: 14px; }
  .mk-display { overflow-wrap: anywhere; margin-top: 22px; color: #fff; font-size: clamp(2.8rem, 1.4rem + 5.2vw, 5.6rem); line-height: .98; letter-spacing: -0.055em; font-weight: 650; }
  .mk-display em.accent { display: inline-block; font-size: 1.04em; background: linear-gradient(95deg, #C2F45B 0%, #5FE6AE 40%, #B9A9FF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
  .mk-lead { margin-top: 22px; max-width: 540px; font-size: clamp(1.02rem, .95rem + .3vw, 1.2rem); line-height: 1.6; color: rgb(255 255 255 / .72); }
  .mk-claim { margin-top: 30px; display: flex; align-items: center; max-width: 560px; height: 66px; padding: 0 7px 0 22px; border-radius: 999px; background: #fff; box-shadow: 0 24px 60px -24px rgb(0 0 0 / .8), 0 0 0 6px rgb(255 255 255 / .06); }
  .mk-claim-host { font-family: var(--font-display); font-weight: 650; font-size: 1.15rem; color: #7A817C; letter-spacing: -0.02em; white-space: nowrap; }
  .mk-claim input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: #0B0F0D; letter-spacing: -0.02em; }
  .mk-claim .btn { flex: none; }
  .mk-hero-ticks { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: rgb(255 255 255 / .7); font-size: 14px; font-weight: 600; }
  .mk-hero-ticks li { display: inline-flex; align-items: center; gap: 7px; }
  .mk-hero-ticks svg { width: 16px; height: 16px; color: #C2F45B; }

  .mk-hero-visual { position: relative; height: 620px; }
  .mk-hero-phone { position: absolute; width: 250px; }
  .mk-hero-phone .phone-screen { background: #fff; }
  .mk-hero-phone-0 { left: 4%; top: 70px; transform: rotate(-8deg); z-index: 1; animation: float 9s ease-in-out infinite; }
  .mk-hero-phone-1 { left: 50%; translate: -50% 0; top: 0; z-index: 3; width: 280px; animation: float 8s ease-in-out infinite; animation-delay: -2s; }
  .mk-hero-phone-2 { right: 2%; top: 90px; transform: rotate(8deg); z-index: 2; animation: float 10s ease-in-out infinite; animation-delay: -4s; }
  .mk-hero-visual .glass { background: rgb(255 255 255 / .09); border: 1px solid rgb(255 255 255 / .14); backdrop-filter: blur(16px); color: #fff; box-shadow: 0 20px 50px -20px rgb(0 0 0 / .7); }
  .mk-fc-1 { left: -4%; top: 34%; z-index: 4; }
  .mk-fc-2 { right: -2%; top: 58%; z-index: 4; padding: 10px; }
  .mk-fc-3 { left: 8%; bottom: 20px; z-index: 4; }
  .mk-hero-visual .float-card .delta-up { background: rgb(194 244 91 / .18); color: #C2F45B; }
  .mk-hero .float-card small { color: rgb(255 255 255 / .62); }
  .mk-hero .float-card b { color: #fff; }

  /* ---- Marquee ---- */
  .mk-marquee { overflow: hidden; padding: 30px 0 10px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
  .mk-marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 42s linear infinite; }
  .mk-marquee-item { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); white-space: nowrap; box-shadow: var(--e1); }
  .mk-marquee-item svg { width: 20px; height: 20px; color: var(--accent-text); }
  @keyframes marquee { to { transform: translateX(-50%); } }

  /* ---- Sections ---- */
  .mk-section { padding: clamp(70px, 9vw, 130px) 0; }
  .mk-section-tight { padding-top: clamp(40px, 6vw, 70px); }
  .mk-head { max-width: 760px; margin-bottom: clamp(34px, 5vw, 60px); }
  .mk-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; max-width: none; }
  .mk-h2 { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.9rem); line-height: 1.02; letter-spacing: -0.05em; font-weight: 650; }
  .mk-h2 em.accent { font-size: 1.06em; background: linear-gradient(95deg, var(--emerald-600), var(--violet-500)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
  .g-card .mk-h2 em.accent, .mk-assist .mk-h2 em.accent { background: linear-gradient(95deg, #C2F45B, #B9A9FF); -webkit-background-clip: text; background-clip: text; }
  .mk-sub { margin-top: 18px; font-size: 1.1rem; line-height: 1.6; color: var(--text-muted); max-width: 620px; }

  /* ---- Bento ---- */
  /* Platform: the OS pillars */
  .mk-os-status { display: flex; flex-wrap: wrap; gap: 10px; margin: -18px 0 26px; }
  .mk-os-status span { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--e1); font-size: var(--fs-small); font-weight: 600; color: var(--text-muted); }
  .mk-os-status b { color: var(--ink); }
  .mk-os { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
  .mk-os-pillar { display: flex; flex-direction: column; gap: 8px; padding: 22px 20px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--e1); min-width: 0; }
  .mk-os-pillar h3 { margin-top: 10px; font-size: 1.3rem; letter-spacing: -0.03em; }
  .mk-os-pillar > p { font-size: var(--fs-small); color: var(--text-muted); min-height: 2.6em; }
  .mk-os-pillar ul { list-style: none; margin: 10px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 9px; }
  .mk-os-pillar li { display: flex; align-items: center; gap: 9px; font-size: var(--fs-small); font-weight: 600; color: var(--ink); min-width: 0; }
  .mk-os-pillar li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mk-os-pillar li.is-planned { color: var(--text-muted); font-weight: 500; }
  .mk-os-pillar li small { font-size: 10.5px; font-weight: 700; color: var(--text-subtle); }
  .mk-os-pillar li.is-live small { color: var(--accent-text); }
  .mk-os-pillar li.is-building small { color: var(--assist-text); }
  .mk-flow { margin-top: 16px; border-radius: 30px; padding: clamp(24px, 4vw, 44px); display: grid; gap: 28px; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; }
  .mk-flow h3 { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); letter-spacing: -0.04em; margin: 14px 0 8px; }
  .mk-flow p { color: rgb(255 255 255 / .7); max-width: 52ch; }
  .mk-flow ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; position: relative; }
  .mk-flow ol::before { content: ""; position: absolute; left: 8%; right: 8%; top: 27px; height: 2px; background: linear-gradient(90deg, #2BE3A2, #9A83FF, #FF9A5C); opacity: .6; }
  .mk-flow li { position: relative; display: grid; justify-items: center; gap: 10px; text-align: center; }
  .mk-flow li span { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: #151A18; border: 1px solid rgb(255 255 255 / .14); color: var(--lime-400); box-shadow: 0 12px 30px -14px rgb(0 0 0 / .8); }
  .mk-flow li svg { width: 22px; height: 22px; }
  .mk-flow li b { color: #fff; font-size: var(--fs-small); }

  /* Roadmap */
  .mk-road { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .mk-road-step { position: relative; display: grid; gap: 6px; align-content: start; padding: 20px; border-radius: 24px; border: 1px dashed var(--line-strong); background: transparent; min-width: 0; }
  .mk-road-step b { font-family: var(--font-display); font-size: 1.12rem; letter-spacing: -0.02em; color: var(--ink); }
  .mk-road-step > span:not(.mk-road-n) { font-size: var(--fs-small); color: var(--text-muted); }
  .mk-road-step small { margin-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-subtle); }
  .mk-road-n { font-family: var(--font-display); font-size: 12px; font-weight: 800; color: var(--text-subtle); }
  .mk-road-step.is-done { border-style: solid; border-color: var(--line); background: var(--surface); box-shadow: var(--e1); }
  .mk-road-step.is-done small { color: var(--accent-text); }
  .mk-road-step.is-now { border: 0; background: var(--grad-violet); color: #fff; box-shadow: var(--e-glow-violet); }
  .mk-road-step.is-now b, .mk-road-step.is-now small, .mk-road-step.is-now .mk-road-n { color: #fff; }
  .mk-road-step.is-now > span:not(.mk-road-n) { color: rgb(255 255 255 / .8); }
  @media (max-width: 1100px) { .mk-os { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mk-road { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mk-flow { grid-template-columns: minmax(0, 1fr); } }
  @media (max-width: 640px) {
    .mk-os { grid-template-columns: minmax(0, 1fr); }
    .mk-os-pillar > p { min-height: 0; }
    .mk-road { grid-template-columns: minmax(0, 1fr); }
    .mk-flow ol { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 18px; }
    .mk-flow ol::before { display: none; }
    .mk-os-status { margin-top: -10px; }
  }

  .mk-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
  .mk-card { position: relative; overflow: hidden; border-radius: 30px; padding: 28px; border: 1px solid var(--line); box-shadow: var(--e1); transition: transform var(--t-slow) var(--ease-out), box-shadow var(--t-slow); }
  .mk-card:not(.g-card), .mk-plan:not(.g-card) { background: var(--surface); }
  .mk-card.g-card, .mk-plan.g-card { border: 0; }
  .mk-card:hover { transform: translateY(-4px); box-shadow: var(--e3); }
  .mk-card h3 { font-size: 1.5rem; letter-spacing: -0.035em; margin-top: 18px; }
  .mk-card p { margin-top: 8px; color: var(--text-muted); line-height: 1.55; }
  .mk-card-icon { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; color: #fff; }
  .mk-card-icon svg { width: 22px; height: 22px; }
  .mk-card-pages { grid-column: span 3; grid-row: span 2; display: grid; grid-template-rows: auto 1fr; background: linear-gradient(180deg, #FFF6EF, var(--surface) 55%); }
  .mk-card-art { position: relative; min-height: 380px; margin: 20px -28px -28px; }
  .mk-card-art .phone { position: absolute; left: 50%; top: 20px; translate: -50% 0; width: 250px; }
  .mk-card-links { grid-column: span 3; }
  .mk-card-qr { grid-column: span 3; display: grid; grid-template-columns: 1fr auto; column-gap: 20px; }
  .mk-card-qr > :not(.mk-qr) { grid-column: 1; }
  .mk-qr { grid-column: 2; grid-row: 1 / span 3; width: 150px; height: 150px; padding: 12px; border-radius: 22px; background: #fff; box-shadow: var(--e2); align-self: center; }
  .mk-qr svg { width: 100%; height: 100%; }
  .mk-card-analytics { grid-column: span 4; display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: end; }
  .mk-bars { height: 190px; margin: 0; }
  .mk-card-audience { grid-column: span 2; }
  .mk-card-domain { grid-column: span 6; display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 420px); gap: 20px; align-items: center; }
  .mk-card-domain h3 { margin-top: 0; }
  .mk-card-domain p { margin-top: 4px; }
  .mk-link-demo { margin-top: 20px; display: grid; gap: 10px; }
  .mk-link-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); }
  .mk-link-row.is-dim { opacity: .7; }
  .mk-link-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--emerald-500); box-shadow: 0 0 0 4px var(--accent-soft); }
  .mk-pill { margin-left: auto; font-family: var(--font-sans); font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--ink); color: var(--text-on-ink); }
  .mk-people { display: grid; gap: 8px; margin-top: 18px; }
  .mk-person { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
  .mk-person b { flex: 1; color: var(--ink); font-size: 14px; }
  .mk-domain { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); font-family: var(--font-display); font-size: 1.15rem; color: var(--text-muted); }
  .mk-domain b { color: var(--ink); }
  .mk-domain svg { width: 16px; height: 16px; color: var(--accent-text); }

  /* ---- Assist ---- */
  .mk-assist { position: relative; overflow: hidden; margin: 0 10px; border-radius: 40px; padding: clamp(70px, 9vw, 120px) 0; color: #fff; background: radial-gradient(60% 60% at 90% 10%, rgb(196 181 255 / .35), transparent 60%), radial-gradient(50% 60% at 0% 100%, rgb(43 227 162 / .22), transparent 60%), linear-gradient(155deg, #2A1A7A 0%, #16104A 45%, #0B0A1F 100%); }
  .mk-assist-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 50px; align-items: center; }
  .mk-assist-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
  .mk-assist-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: rgb(255 255 255 / .9); }
  .mk-assist-list svg { width: 18px; height: 18px; color: #C2F45B; }
  .mk-assist .glass { background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .14); backdrop-filter: blur(16px); }
  .mk-assist-result { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
  .mk-assist-result .phone { width: 240px; }
  .mk-assist-notes { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
  .mk-assist-notes .chip svg { color: #C2F45B; }
  .mk-assist .ad-prompt p { min-height: 3.2em; }

  /* ---- Templates gallery ---- */
  .mk-gallery { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px max(clamp(18px, 4vw, 40px), calc((100vw - 1240px) / 2 + 40px)) 30px; scrollbar-width: none; }
  .mk-gallery::-webkit-scrollbar { display: none; }
  .mk-tpl { flex: 0 0 auto; margin: 0; scroll-snap-align: center; display: grid; justify-items: center; gap: 16px; }
  .mk-tpl .phone { width: 260px; transition: transform var(--t-slow) var(--ease-out); }
  .mk-tpl:hover .phone { transform: translateY(-8px) rotate(-1.5deg); }
  .mk-tpl figcaption { text-align: center; display: grid; }
  .mk-tpl figcaption b { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }
  .mk-tpl figcaption span { font-size: 13px; color: var(--text-muted); }
  .mk-arrow { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--ink); box-shadow: var(--e1); transition: all var(--t-fast); }
  .mk-arrow:hover { background: var(--ink); color: var(--text-on-ink); }
  .mk-arrow svg { width: 20px; height: 20px; }

  /* ---- Steps ---- */
  .mk-steps { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 16px; }
  .mk-step { position: relative; padding: 28px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
  .mk-step h3 { font-size: 1.4rem; letter-spacing: -0.03em; margin-top: 18px; }
  .mk-step p { color: var(--text-muted); margin-top: 8px; }
  .mk-step-n { position: absolute; right: 20px; top: 8px; font-family: var(--font-display); font-weight: 800; font-size: 5rem; letter-spacing: -0.06em; color: var(--surface-sunken); line-height: 1; }

  /* ---- Pricing ---- */
  .mk-pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 980px; }
  .mk-plan { padding: 32px; border-radius: 32px; border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
  .mk-plan h3 { font-size: 1.3rem; }
  .mk-plan-price { font-family: var(--font-display); font-size: 3rem; font-weight: 700; letter-spacing: -0.05em; color: var(--ink); line-height: 1; }
  .mk-plan ul { list-style: none; padding: 0; margin: 10px 0 16px; display: grid; gap: 10px; }
  .mk-plan li { display: flex; gap: 10px; align-items: flex-start; font-weight: 550; }
  .mk-plan li svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 2px; }
  .mk-plan.is-pro li { color: rgb(255 255 255 / .85); }
  .mk-plan.is-pro li svg { color: #C2F45B; }

  /* ---- FAQ ---- */
  .mk-faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; }
  .mk-faq { display: grid; gap: 10px; }
  .mk-faq-item { border-radius: 22px; background: var(--surface); border: 1px solid var(--line); transition: box-shadow var(--t-base); }
  .mk-faq-item[open] { box-shadow: var(--e2); }
  .mk-faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--ink); letter-spacing: -0.015em; }
  .mk-faq-item summary::-webkit-details-marker { display: none; }
  .mk-faq-item summary svg { width: 20px; height: 20px; flex: none; transition: transform var(--t-base) var(--ease-out); }
  .mk-faq-item[open] summary svg { transform: rotate(45deg); }
  .mk-faq-item p { padding: 0 22px 20px; color: var(--text-muted); line-height: 1.6; }

  /* ---- Final CTA + footer ---- */
  .mk-final { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 20px; align-items: center; padding: clamp(32px, 5vw, 64px); border-radius: 40px; margin: 40px 0 70px; overflow: hidden; min-height: 420px; }
  .mk-final .mk-claim { margin-top: 26px; }
  .mk-final-art { position: relative; height: 100%; min-height: 340px; }
  .mk-final-art .phone { position: absolute; left: 50%; top: 10px; translate: -50% 0; width: 240px; }
  .mk-footer { padding: 60px 0 30px; border-top: 1px solid var(--line); background: var(--surface); }
  .mk-footer-grid { display: grid; grid-template-columns: 1.5fr repeat(var(--fcols, 3), minmax(0, 1fr)); gap: 30px; }
  .mk-footer-grid > div { display: grid; gap: 10px; align-content: start; }
  .mk-footer-grid b { color: var(--ink); font-family: var(--font-display); margin-bottom: 4px; }
  .mk-footer-grid a:not(.brand-mark) { color: var(--text-muted); font-weight: 550; }
  .mk-footer-grid a:hover { color: var(--ink); }
  .mk-footer-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 50px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-subtle); }

  /* ---- Scroll reveal ---- */
  [data-reveal] { opacity: 0; transform: translateY(24px); filter: blur(6px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out), filter 900ms var(--ease-out); }
  [data-reveal].is-in, .no-js [data-reveal] { opacity: 1; transform: none; filter: none; }
  @media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; filter: none; } .mk-marquee-track { animation: none; } }

  /* ---- Responsive ---- */
  @media (max-width: 1100px) {
    .mk-hero-grid { grid-template-columns: minmax(0, 1fr); }
    .mk-hero-visual { height: 560px; max-width: 640px; width: 100%; margin: 0 auto; }
    .mk-hero { min-height: 0; }
    .mk-assist-grid, .mk-faq-grid { grid-template-columns: minmax(0, 1fr); }
  }
  @media (max-width: 860px) {
    .mk-bento { grid-template-columns: 1fr; }
    .mk-bento > * { grid-column: auto !important; grid-row: auto !important; }
    .mk-card-analytics, .mk-card-domain { grid-template-columns: 1fr; }
    .mk-steps, .mk-pricing { grid-template-columns: 1fr; }
    .mk-final { grid-template-columns: minmax(0, 1fr); }
    .mk-final-art { display: none; }
    .mk-footer-grid { grid-template-columns: 1fr 1fr; }
    .mk-footer-grid > div:first-child { grid-column: 1 / -1; }
  }
  @media (max-width: 640px) {
    .mk-nav { inset: 10px 0 auto; }
    .mk-nav-inner { height: 58px; padding: 0 6px 0 14px; }
    .mk-hero { margin: 6px; border-radius: 30px; padding: 110px 0 50px; }
    .mk-claim { height: 58px; padding-left: 16px; }
    .mk-claim-host, .mk-claim input { font-size: 1rem; }
    .mk-claim .btn { --btn-h: 46px; padding: 0 16px; }
    .mk-hero-visual { height: 470px; }
    .mk-hero-phone { width: 190px; }
    .mk-hero-phone-1 { width: 220px; }
    .mk-hero-phone-0 { left: -6%; }
    .mk-hero-phone-2 { right: -6%; }
    .mk-fc-1 { left: 0; top: 60%; }
    .mk-fc-2 { display: none; }
    .mk-fc-3 { left: auto; right: 2%; bottom: 0; }
    .mk-assist { margin: 0 6px; border-radius: 30px; }
    .mk-assist-result { grid-template-columns: 1fr; justify-items: center; }
    .mk-assist-notes { flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .mk-card { padding: 22px; border-radius: 26px; }
    .mk-card-qr { grid-template-columns: 1fr; }
    .mk-qr { grid-column: 1; grid-row: auto; margin-top: 16px; }
    .mk-arrow { display: none; }
    .mk-tpl .phone { width: 230px; }
  }
}

/* Pricing driven by console plans */
.mk-plans { display: grid; gap: 22px; }
.mk-plans-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.mk-toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.mk-toggle button { border: 0; background: none; padding: 9px 18px; border-radius: 999px; font: inherit; font-weight: 650; color: var(--text-muted); cursor: pointer; }
.mk-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--text-on-ink); }
.mk-toggle small { margin-left: 4px; color: var(--accent-text); font-weight: 750; }
.mk-toggle button[aria-pressed="true"] small { color: var(--lime-400); }
.mk-currency { display: inline-flex; gap: 4px; }
.mk-currency a { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 650; color: var(--text-muted); border: 1px solid var(--line); }
.mk-currency a[aria-current] { background: var(--ink); color: var(--text-on-ink); border-color: var(--ink); }
.mk-plans[data-interval="monthly"] .is-yearly, .mk-plans[data-interval="yearly"] .is-monthly { display: none; }
.mk-pricing.mk-pricing-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
.mk-pricing.mk-pricing-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: none; }
.mk-pricing.mk-pricing-1 { grid-template-columns: minmax(0, 480px); }
@media (max-width: 960px) { .mk-pricing.mk-pricing-3, .mk-pricing.mk-pricing-4, .mk-pricing.mk-pricing-2 { grid-template-columns: minmax(0, 1fr); } }
.mk-plan-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mk-plan-per { margin: -6px 0 0; color: var(--text-muted); font-size: 14px; }
.mk-plan.is-pro .mk-plan-per, .mk-plan.is-pro .mk-plan-tag { color: rgb(255 255 255 / .72); }
.mk-plan.is-pro h3, .mk-plan.is-pro .mk-plan-price { color: #fff; }
.mk-plan-tag { margin: 0; color: var(--text-muted); }
.mk-pricing-more { margin-top: 18px; }
.mk-compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.mk-compare th, .mk-compare td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.mk-compare thead th { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); background: var(--surface-2); }
.mk-compare td { color: var(--text); }
.mk-compare tbody th { font-weight: 600; color: var(--text-muted); }
.mk-compare .mk-group th { padding-top: 26px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); border-bottom: 0; }
.mk-compare-wrap { overflow-x: auto; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); }

/* ---- Builder sections (ADR-0016) ---- */
@layer components {
  .mk-first { padding-top: clamp(130px, 15vw, 180px); }
  .mk-anchor { display: block; height: 0; scroll-margin-top: 110px; }
  .mk-announce { pointer-events: auto; max-width: max-content; margin: 0 auto 8px; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 650; box-shadow: 0 10px 30px -16px rgb(0 0 0 / .5); }
  .mk-announce a { display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; border-radius: 999px; font-weight: 750; white-space: nowrap; }
  .mk-announce svg { width: 14px; height: 14px; }
  .mk-announce.is-ink { background: rgb(12 14 13 / .86); color: #fff; backdrop-filter: blur(14px); }
  .mk-announce.is-ink a { background: var(--lime-400); color: var(--forest-950); }
  .mk-announce.is-brand { background: var(--grad-brand); color: var(--forest-950); }
  .mk-announce.is-brand a { background: rgb(3 23 15 / .9); color: #fff; }
  .mk-announce.is-violet { background: var(--grad-violet); color: #fff; }
  .mk-announce.is-violet a { background: #fff; color: var(--violet-700); }
  .mk-preview-flag { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 90; padding: 8px 16px; border-radius: 999px; background: var(--tangerine-500); color: #fff; font-weight: 750; font-size: 13px; box-shadow: var(--e3); }
  .brand-logo { height: 30px; width: auto; max-width: 180px; object-fit: contain; }
  .mk-socials { display: flex; gap: 8px; margin-top: 16px; }
  .mk-socials a { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
  .mk-socials svg { width: 17px; height: 17px; }

  .mk-pagehero-grid { display: grid; gap: clamp(28px, 5vw, 60px); align-items: center; }
  .mk-pagehero.has-image .mk-pagehero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
  .mk-pagehero.is-center:not(.has-image) .mk-pagehero-copy { text-align: center; margin: 0 auto; max-width: 860px; }
  .mk-pagehero.is-center:not(.has-image) .mk-lead { margin-left: auto; margin-right: auto; }
  .mk-pagehero-title { color: var(--ink); }
  .mk-pagehero-title em.accent { background: linear-gradient(95deg, var(--emerald-600), var(--violet-500)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
  .mk-pagehero .mk-lead { color: var(--text-muted); }
  .mk-pagehero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
  .mk-pagehero.is-center:not(.has-image) .mk-pagehero-actions { justify-content: center; }
  .mk-pagehero-media img, .mk-split-media img { width: 100%; height: auto; border-radius: 32px; box-shadow: var(--e3); display: block; }

  .mk-features { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 16px; }
  .mk-feature { padding: 28px; border-radius: 28px; }
  .mk-features.is-cards .mk-feature, .mk-features.is-gradient .mk-feature { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--e1); }
  .mk-features.is-plain .mk-feature { padding: 8px 0; }
  .mk-feature h3 { font-size: 1.25rem; letter-spacing: -0.03em; margin-top: 18px; color: var(--ink); }
  .mk-feature p { margin-top: 8px; color: var(--text-muted); line-height: 1.6; }
  .mk-feature-icon { background: var(--accent-soft); color: var(--accent-text); }

  .mk-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
  .mk-split.no-image { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
  .mk-split.is-left .mk-split-media { order: -1; }
  .mk-split.is-dark { padding: clamp(28px, 5vw, 56px); border-radius: 40px; color: #fff; }
  .mk-split.is-dark .mk-h2, .mk-split.is-dark .mk-prose, .mk-split.is-dark .mk-split-list { color: #fff; }
  .mk-split.is-dark .mk-prose p { color: rgb(255 255 255 / .74); }
  .mk-split-list { display: grid; gap: 10px; margin-top: 22px; font-weight: 650; }
  .mk-split-list li { display: flex; gap: 10px; align-items: flex-start; }
  .mk-split-list svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 2px; }

  .mk-stats { border-radius: 40px; padding: clamp(28px, 5vw, 56px); display: grid; gap: 28px; }
  .mk-stats.is-light { background: var(--surface); border: 1px solid var(--line); }
  .mk-stats.is-dark { color: #fff; }
  .mk-stats.is-dark .mk-h2 { color: #fff; }
  .mk-stats-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 20px; }
  .mk-stats-grid > div { display: flex; flex-direction: column-reverse; gap: 6px; }
  .mk-stats-grid dd { font-family: var(--font-display); font-weight: 750; font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4.4rem); letter-spacing: -0.06em; line-height: 1; }
  .mk-stats.is-dark dd { background: linear-gradient(95deg, var(--lime-400), #B9A9FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .mk-stats-grid dt { color: var(--text-muted); font-weight: 600; }
  .mk-stats.is-dark dt { color: rgb(255 255 255 / .66); }

  .mk-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
  .mk-quote { position: relative; padding: 30px; border-radius: 30px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--e1); display: flex; flex-direction: column; gap: 22px; }
  .mk-quote-mark { width: 30px; height: 30px; color: var(--accent); }
  .mk-quote blockquote { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.45; letter-spacing: -0.02em; color: var(--ink); flex: 1; }
  .mk-quote figcaption { display: flex; align-items: center; gap: 12px; }
  .mk-quote figcaption span { display: grid; }
  .mk-quote figcaption small { color: var(--text-muted); }
  .mk-quote-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }

  .mk-logos { text-align: center; }
  .mk-logos-label { color: var(--text-muted); font-weight: 650; margin-bottom: 22px; }
  .mk-logos ul { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(22px, 5vw, 56px); }
  .mk-logos img { height: 34px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .72; transition: filter var(--t-base), opacity var(--t-base); }
  .mk-logos img:hover { filter: none; opacity: 1; }

  .mk-richtext.is-narrow { max-width: 780px; }
  .mk-richtext-meta { margin-top: 12px; color: var(--text-muted); font-weight: 600; }
  .mk-prose { margin-top: 26px; color: var(--text); font-size: 1.05rem; line-height: 1.75; }
  .mk-prose > * + * { margin-top: 1em; }
  .mk-prose h2 { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: -0.03em; color: var(--ink); margin-top: 1.8em; }
  .mk-prose h3 { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); margin-top: 1.5em; }
  .mk-prose ul, .mk-prose ol { padding-left: 1.3em; }
  .mk-prose ul { list-style: disc; } .mk-prose ol { list-style: decimal; }
  .mk-prose li + li { margin-top: .35em; }
  .mk-prose a { color: var(--accent-text); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
  .mk-prose blockquote { padding: 16px 20px; border-radius: 18px; background: var(--heat-soft); color: var(--ink); }
  .mk-prose table { width: 100%; border-collapse: collapse; } .mk-prose th, .mk-prose td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; }
  .mk-prose code { font-family: var(--font-mono); font-size: .9em; background: var(--surface-sunken); padding: 2px 6px; border-radius: 6px; }
  .mk-split .mk-prose { margin-top: 18px; }

  @media (max-width: 960px) {
    .mk-features { grid-template-columns: repeat(min(var(--cols, 3), 2), minmax(0, 1fr)); }
    .mk-pagehero.has-image .mk-pagehero-grid, .mk-split { grid-template-columns: minmax(0, 1fr); }
    .mk-split.is-left .mk-split-media { order: 0; }
    .mk-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 640px) {
    .mk-features, .mk-steps { grid-template-columns: minmax(0, 1fr); }
    .mk-announce { max-width: 100%; font-size: 12.5px; }
    .mk-announce span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  }
}

/* ==========================================================================
   Homepage sections, reference structure (ADR-0026)
   ========================================================================== */
@layer components {
  .mk-head-center { margin-left: auto; margin-right: auto; text-align: center; }
  .mk-head-center .mk-sub { margin-left: auto; margin-right: auto; }
  .mk-head-chip .kicker, .mk-chip-soft { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 99px; background: #D9F99D; color: #1A3B12; font-size: 12.5px; font-weight: 700; letter-spacing: 0; text-transform: none; margin-bottom: 18px; }
  .mk h2 em.accent, .mk h1 em.accent { font-family: var(--font-accent); font-style: italic; font-weight: 400; }

  /* ---- App hero ---- */
  .mk-apphero { position: relative; margin: 10px; border-radius: 36px; overflow: hidden; color: #fff; padding: 150px 0 0;
    background: radial-gradient(60% 60% at 50% 110%, rgb(155 225 93 / .35), transparent 70%), radial-gradient(40% 50% at 12% 70%, rgb(11 194 132 / .25), transparent 70%), linear-gradient(180deg, #0A1F16 0%, #07130E 55%, #0C1411 100%); }
  .mk-ah-bg { position: absolute; inset: 0; pointer-events: none; }
  .mk-ah-grid { position: absolute; inset: 0; background-image: linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 80%); }
  .mk-ah-glow { position: absolute; border-radius: 50%; filter: blur(70px); }
  .mk-ah-glow.a { width: 520px; height: 380px; left: -120px; bottom: 80px; background: rgb(155 225 93 / .28); animation: aurora-drift 18s ease-in-out infinite alternate; }
  .mk-ah-glow.b { width: 460px; height: 320px; right: -80px; top: 60px; background: rgb(124 92 255 / .22); animation: aurora-drift 22s ease-in-out infinite alternate-reverse; }
  .mk-ah-sq { position: absolute; width: 64px; height: 64px; background: rgb(255 255 255 / .045); border: 1px solid rgb(255 255 255 / .06); animation: mk-sq 7s ease-in-out infinite; }
  @keyframes mk-sq { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
  .mk-ah-inner { position: relative; z-index: 1; text-align: center; display: grid; justify-items: center; }
  .mk-ah-chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px 0 10px; border-radius: 99px; background: rgb(255 255 255 / .06); border: 1px solid rgb(194 244 91 / .35); color: #DDF7A8; font-size: 13px; font-weight: 600; }
  .mk-ah-chip i { width: 8px; height: 8px; border-radius: 99px; background: #C2F45B; box-shadow: 0 0 0 4px rgb(194 244 91 / .18); }
  .mk-ah-title { margin: 22px auto 0; max-width: 900px; font-size: clamp(2.7rem, 1.3rem + 5vw, 5.4rem); line-height: 1.02; letter-spacing: -0.05em; font-weight: 600; color: #fff; }
  .mk-ah-title em.accent { display: inline-block; font-family: var(--font-accent); font-style: italic; font-weight: 400; letter-spacing: -0.02em; color: #C2F45B; padding-right: .04em; }
  .mk-ah-lead { margin: 20px auto 0; max-width: 560px; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); line-height: 1.6; color: rgb(255 255 255 / .72); }
  .mk-ah-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 30px; }
  .mk-ah-btn { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 22px; border-radius: 14px; font-weight: 700; font-size: 15px; background: #fff; color: #0C1411; transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast); }
  .mk-ah-btn svg { width: 17px; height: 17px; transition: transform var(--t-fast) var(--ease-out); }
  .mk-ah-btn:hover { transform: translateY(-1px); } .mk-ah-btn:hover svg { transform: translate(2px, -2px); }
  .mk-ah-btn.is-main { background: #C2F45B; color: #0C1411; box-shadow: 0 12px 30px -12px rgb(194 244 91 / .8); }
  .mk-ah-btn.is-ink { background: #0E2A1E; color: #fff; margin-top: 26px; }
  .mk-ah-note { margin-top: 14px; font-size: 13px; color: rgb(255 255 255 / .5); }

  /* The dashboard mock-up */
  .mk-dash { margin: 56px auto 0; width: min(1080px, 100%); border-radius: 26px 26px 0 0; padding: 10px 10px 0; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .16); border-bottom: 0; box-shadow: 0 -30px 80px -30px rgb(155 225 93 / .5); backdrop-filter: blur(6px); text-align: left; color: #0E1512;
    mask-image: linear-gradient(180deg, #000 70%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); }
  .mk-dash > * { background: #FBFCFA; }
  .mk-dash-top { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 18px 18px 0 0; border-bottom: 1px solid #ECEFEA; }
  .mk-dash-logo { font-size: 15px; } .mk-dash-logo .brand-mark, .mk-dash-logo { color: #0E1512; }
  .mk-dash-tabs { display: flex; gap: 2px; margin: 0 auto; padding: 4px; border-radius: 99px; background: #F0F2EE; font-size: 12.5px; }
  .mk-dash-tabs b, .mk-dash-tabs i { font-style: normal; padding: 6px 14px; border-radius: 99px; font-weight: 600; color: #58625D; }
  .mk-dash-tabs b { background: #0E1512; color: #fff; }
  .mk-dash-tools { display: flex; align-items: center; gap: 12px; color: #58625D; }
  .mk-dash-tools > svg { width: 16px; height: 16px; }
  .mk-dash-me { display: flex; align-items: center; gap: 8px; padding: 3px 10px 3px 3px; border: 1px solid #E6E9E4; border-radius: 99px; background: #fff; }
  .mk-dash-me > i { width: 26px; height: 26px; border-radius: 99px; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; color: #fff; background: linear-gradient(145deg, #0BA870, #8468FF); }
  .mk-dash-me b { display: block; font-size: 12px; } .mk-dash-me small { display: block; font-size: 10.5px; color: #8A948F; }
  .mk-dash-body { display: flex; }
  .mk-dash-rail { display: grid; gap: 8px; align-content: start; padding: 16px 10px; border-right: 1px solid #ECEFEA; }
  .mk-dash-rail i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #8A948F; }
  .mk-dash-rail i.is-on { background: #0E1512; color: #C2F45B; }
  .mk-dash-rail svg { width: 16px; height: 16px; }
  .mk-dash-main { flex: 1; padding: 18px 20px 26px; min-width: 0; }
  .mk-dash-hello b { display: block; font-family: var(--font-display); font-size: 1.45rem; letter-spacing: -0.03em; }
  .mk-dash-hello small { color: #6B756F; font-size: 12.5px; }
  .mk-dash-grid { display: grid; grid-template-columns: 1.1fr 1fr 1.25fr; gap: 12px; margin-top: 16px; }
  .mk-dash-card { padding: 14px; border-radius: 16px; background: #fff; border: 1px solid #ECEFEA; box-shadow: 0 10px 24px -20px rgb(0 0 0 / .4); }
  .mk-dash-card > small { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: #6B756F; font-weight: 600; }
  .mk-dash-card > small em { font-style: normal; display: inline-flex; align-items: center; gap: 4px; }
  .mk-dash-card > small svg { width: 12px; height: 12px; }
  .mk-dash-balance > b { display: block; margin-top: 6px; font-family: var(--font-display); font-size: 1.55rem; letter-spacing: -0.03em; }
  .mk-dash-up { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 11px; font-weight: 700; color: #1E8A3D; }
  .mk-dash-up svg { width: 12px; height: 12px; } .mk-dash-up i { font-style: normal; color: #8A948F; font-weight: 500; }
  .mk-dash-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; }
  .mk-dash-btns i { display: flex; align-items: center; justify-content: center; gap: 5px; height: 32px; border-radius: 10px; font-style: normal; font-size: 11.5px; font-weight: 700; background: #F0F2EE; }
  .mk-dash-btns i.is-main { background: #C2F45B; color: #0E1512; }
  .mk-dash-btns svg { width: 13px; height: 13px; }
  .mk-dash-wallets { display: block; margin-top: 12px; padding-top: 10px; border-top: 1px dashed #E6E9E4; }
  .mk-dash-wallets > small { font-size: 11px; color: #8A948F; font-weight: 600; }
  .mk-dash-wallets > span { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; }
  .mk-dash-wallets i { font-style: normal; display: grid; padding: 7px; border-radius: 9px; background: #F7F8F6; font-size: 10.5px; }
  .mk-dash-wallets i b { font-weight: 600; color: #6B756F; } .mk-dash-wallets i em { font-style: normal; font-weight: 800; font-size: 12px; }
  .mk-dash-wallets s { text-decoration: none; color: #C2410C; font-weight: 700; } .mk-dash-wallets s.up { color: #1E8A3D; }
  .mk-dash-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .mk-dash-kpi { display: grid; gap: 2px; align-content: start; padding: 12px; border-radius: 16px; background: #fff; border: 1px solid #ECEFEA; }
  .mk-dash-kpi small { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #6B756F; font-weight: 600; }
  .mk-dash-kpi small svg { width: 13px; height: 13px; }
  .mk-dash-kpi b { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -0.03em; margin-top: 8px; }
  .mk-dash-kpi em { font-style: normal; font-size: 10.5px; font-weight: 700; color: #8A948F; } .mk-dash-kpi em.up { color: #1E8A3D; }
  .mk-dash-kpi.is-feature { background: linear-gradient(160deg, #1E7A45, #0E3B24); border: 0; color: #fff; }
  .mk-dash-kpi.is-feature small, .mk-dash-kpi.is-feature em { color: rgb(255 255 255 / .75); }
  .mk-dash-bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; margin-top: 12px; padding: 0 4px; background: repeating-linear-gradient(180deg, transparent 0 36px, #F0F2EE 36px 37px); }
  .mk-dash-bars i { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; }
  .mk-dash-bars s, .mk-dash-bars u { display: block; border-radius: 6px; transform-origin: bottom; animation: mk-grow .9s var(--ease-out) both; animation-delay: var(--d); }
  .mk-dash-bars s { height: var(--a); background: #C2F45B; } .mk-dash-bars u { height: var(--b); background: #16261E; }
  .mk-dash-months { display: flex; gap: 10px; padding: 6px 4px 0; } .mk-dash-months i { flex: 1; font-style: normal; font-size: 10px; color: #8A948F; text-align: center; }
  .mk-dash-chart > small em { gap: 8px; } .mk-dash-chart > small svg { color: #9BE15D; } .mk-dash-chart > small .b { width: 9px; height: 9px; border-radius: 99px; background: #16261E; display: inline-block; }
  @keyframes mk-grow { from { transform: scaleY(.05); } to { transform: none; } }
  @media (max-width: 900px) { .mk-dash-grid { grid-template-columns: 1fr 1fr; } .mk-dash-chart { grid-column: 1 / -1; } .mk-dash-tabs { display: none; } }
  @media (max-width: 640px) { .mk-apphero { padding-top: 120px; border-radius: 28px; margin: 6px; } .mk-dash-grid { grid-template-columns: 1fr; } .mk-dash-kpis { grid-template-columns: 1fr 1fr; } .mk-dash-rail, .mk-dash-me span { display: none; } .mk-dash-main { padding: 14px; } }

  /* ---- Proof strip ---- */
  .mk-proof-wrap { padding-top: 56px; padding-bottom: 40px; }
  .mk-proof { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; align-items: center; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
  .mk-proof-text { display: flex; align-items: center; gap: 18px; margin: 0; font-size: 1.12rem; font-weight: 600; color: var(--ink); line-height: 1.4; max-width: 360px; }
  .mk-proof-icon { flex: none; width: 56px; height: 56px; border-radius: 99px; display: grid; place-items: center; background: #ECFCCB; color: #3F6212; }
  .mk-proof-icon svg { width: 22px; height: 22px; }
  .mk-proof-stats { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 16px; }
  .mk-proof-stat b { display: block; font-family: var(--font-display); font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem); letter-spacing: -0.04em; font-weight: 600; color: var(--ink); }
  .mk-proof-stat small { color: var(--text-muted); font-size: 14px; }
  @media (max-width: 860px) { .mk-proof { grid-template-columns: minmax(0, 1fr); } .mk-proof-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

  /* ---- Soft tinted feature cards ("how it works") ---- */
  .mk-features.is-soft { gap: 14px; }
  .mk-features.is-soft .mk-feature { position: relative; overflow: hidden; padding: 26px; border-radius: 22px; background: linear-gradient(160deg, #F1F6FF, #F8FBFF); border: 1px solid #E4ECF8; transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base); }
  .mk-features.is-soft .mk-feature:hover { transform: translateY(-3px); box-shadow: 0 30px 50px -40px rgb(20 40 80 / .5); }
  .mk-features.is-soft .mk-feature:nth-child(4n+2) { background: linear-gradient(160deg, #F3FBEA, #FAFEF6); border-color: #E3F2D3; }
  .mk-features.is-soft .mk-feature:nth-child(4n+3) { background: linear-gradient(160deg, #F6F2FF, #FBF9FF); border-color: #ECE5FF; }
  .mk-features.is-soft .mk-feature:nth-child(4n+4) { background: linear-gradient(160deg, #FFF6EE, #FFFBF7); border-color: #FBE9DA; }
  .mk-features.is-soft .mk-feature-icon { background: #fff; box-shadow: 0 6px 14px -8px rgb(0 0 0 / .3); }
  .mk-features.is-soft h3 { margin-top: 18px; font-size: 1.12rem; }
  .mk-features.is-soft p { color: var(--text-muted); max-width: 44ch; }
  .mk-soft-deco { position: absolute; right: -18px; top: -18px; width: 140px; height: 140px; color: rgb(10 20 40 / .045); transform: rotate(-12deg); }
  .mk-soft-deco svg { width: 100%; height: 100%; stroke-width: 1.2; }

  /* ---- Showcase ---- */
  .mk-show { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 16px; }
  .mk-show-card { display: block; color: inherit; }
  .mk-show-art { height: 250px; border-radius: 22px; background: linear-gradient(160deg, #F3F8FF, #FAFCFF); border: 1px solid #E6EEF8; overflow: hidden; display: grid; place-items: center; padding: 18px; transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base); }
  .mk-show-card:nth-child(3n+2) .mk-show-art { background: linear-gradient(160deg, #F2FBE9, #FBFEF7); border-color: #E3F2D3; }
  .mk-show-card:nth-child(3n+3) .mk-show-art { background: linear-gradient(160deg, #F7F3FF, #FCFAFF); border-color: #ECE5FF; }
  a.mk-show-card:hover .mk-show-art { transform: translateY(-3px); box-shadow: 0 30px 50px -40px rgb(20 40 80 / .5); }
  .mk-show-card h3 { margin-top: 18px; font-size: 1.1rem; }
  .mk-show-card p { margin-top: 6px; color: var(--text-muted); font-size: 14.5px; max-width: 42ch; }
  @media (max-width: 900px) { .mk-show { grid-template-columns: minmax(0, 1fr); } }

  /* ---- Works-with marquee ---- */
  .mk-works { padding-top: 40px; padding-bottom: 40px; overflow: hidden; }
  .mk-works-cap { text-align: center; font-weight: 600; color: var(--ink); margin: 0 0 22px; }
  .mk-works-rows { display: grid; gap: 12px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
  .mk-works-row { overflow: hidden; }
  .mk-works-track { display: flex; gap: 12px; width: max-content; animation: mk-marquee 40s linear infinite; }
  .mk-works-row.is-rev .mk-works-track { animation-direction: reverse; animation-duration: 46s; }
  .mk-works-row:hover .mk-works-track { animation-play-state: paused; }
  .mk-works-item { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 22px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; color: var(--ink); white-space: nowrap; }
  .mk-works-item svg { width: 20px; height: 20px; }
  @keyframes mk-marquee { to { transform: translateX(-50%); } }

  /* ---- Spotlight ---- */
  .mk-spot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
  .mk-spot.is-left .mk-spot-art { order: -1; }
  .mk-spot-list { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
  .mk-spot-list li { display: flex; gap: 10px; align-items: center; font-weight: 600; color: var(--ink); }
  .mk-spot-list li span { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: #ECFCCB; color: #3F6212; }
  .mk-spot-list svg { width: 15px; height: 15px; }
  .mk-spot-art { border-radius: 28px; padding: clamp(18px, 4vw, 44px); background: radial-gradient(70% 70% at 80% 10%, rgb(124 92 255 / .12), transparent 70%), linear-gradient(160deg, #EFF6FF, #F8FBFF); border: 1px solid #E4ECF8; }
  @media (max-width: 900px) { .mk-spot { grid-template-columns: minmax(0, 1fr); } .mk-spot.is-left .mk-spot-art { order: 0; } }

  /* ---- Live visuals ---- */
  .mv { position: relative; width: 100%; font-size: 12.5px; color: #0E1512; }
  .mv-panel { display: grid; gap: 8px; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid #E8ECE8; box-shadow: 0 24px 40px -30px rgb(20 40 60 / .45); }
  .mv-head { display: flex; justify-content: space-between; align-items: center; } .mv-head b { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
  .mv-head em { font-style: normal; color: #6B756F; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; } .mv-head svg { width: 14px; height: 14px; }
  .mv-big { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; letter-spacing: -0.03em; }
  .mv-big i { font-family: var(--font-sans, inherit); font-style: normal; font-size: 11px; font-weight: 800; color: #1E8A3D; background: #E3F8EE; padding: 2px 7px; border-radius: 99px; vertical-align: 5px; }
  .mv-big i.down { color: #C2410C; background: #FFEDE3; }
  .mv-line { width: 100%; height: 110px; overflow: visible; }
  .mv-draw { stroke-dasharray: 600; stroke-dashoffset: 600; animation: mv-draw 1.8s var(--ease-out) forwards .2s; }
  @keyframes mv-draw { to { stroke-dashoffset: 0; } }
  .mv-tip { position: absolute; right: 22%; top: 88px; padding: 4px 8px; border-radius: 8px; background: #0E1512; color: #fff; font-weight: 700; font-size: 11px; }
  .mv-bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; }
  .mv-bars.is-tall { height: 150px; }
  .mv-bars i { flex: 1; position: relative; height: var(--h); border-radius: 8px; background: #E9EEE7; transform-origin: bottom; animation: mk-grow .9s var(--ease-out) both; animation-delay: var(--d); display: flex; justify-content: center; }
  .mv-bars i.is-hot { background: linear-gradient(180deg, #9BE15D, #6CC04A); }
  .mv-bars i b { position: absolute; top: -22px; font-size: 10.5px; padding: 2px 6px; border-radius: 6px; background: #0E1512; color: #fff; white-space: nowrap; }
  .mv-bars i u { position: absolute; bottom: -18px; text-decoration: none; font-size: 10px; color: #8A948F; }
  .mv-bars.is-tall { margin-bottom: 18px; }
  .mv-float { position: absolute; left: -8px; bottom: -10px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; background: #0E1512; color: #fff; font-weight: 700; font-size: 12px; box-shadow: 0 18px 30px -18px rgb(0 0 0 / .6); animation: ma-float 5s ease-in-out infinite alternate; }
  .mv-float.is-right { left: auto; right: -8px; bottom: auto; top: -12px; }
  .mv-float svg { width: 14px; height: 14px; color: #C2F45B; }
  .mv-links { display: grid; gap: 8px; }
  .mv-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid #E8ECE8; box-shadow: 0 14px 24px -22px rgb(0 0 0 / .5); }
  .mv-link > i { width: 30px; height: 30px; border-radius: 99px; display: grid; place-items: center; background: #0E1512; color: #fff; } .mv-link > i svg { width: 14px; height: 14px; }
  .mv-link span { flex: 1; min-width: 0; display: grid; } .mv-link small { color: #8A948F; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mv-link em { font-style: normal; display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 11.5px; padding: 4px 8px; border-radius: 8px; border: 1px solid #E8ECE8; } .mv-link em svg { width: 12px; height: 12px; }
  .mv-link.is-faded { opacity: .45; }
  .mv-person { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #F0F2EE; }
  .mv-person > i { width: 30px; height: 30px; border-radius: 99px; display: grid; place-items: center; font-style: normal; font-weight: 800; color: #fff; background: #0BA870; } .mv-person > i.p1 { background: #8468FF; } .mv-person > i.p2 { background: #FF9A5C; }
  .mv-person span { flex: 1; display: grid; } .mv-person small { color: #8A948F; }
  .mv-person em { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #F0F2EE; }
  .mv-qr { display: flex; align-items: center; gap: 18px; justify-content: center; }
  .mv-qr-code { display: grid; grid-template-columns: repeat(7, 14px); gap: 3px; padding: 12px; border-radius: 16px; background: #fff; border: 1px solid #E8ECE8; box-shadow: 0 24px 40px -30px rgb(20 40 60 / .45); }
  .mv-qr-code i { width: 14px; height: 14px; border-radius: 3px; background: #F0F2EE; } .mv-qr-code i.on { background: #0E1512; }
  .mv-qr-stat { display: grid; gap: 2px; } .mv-qr-stat b { font-family: var(--font-display); font-size: 1.4rem; } .mv-qr-stat small { color: #8A948F; }
  .mv-qr-stat em { font-style: normal; display: inline-flex; gap: 4px; align-items: center; color: #1E8A3D; font-weight: 700; } .mv-qr-stat svg { width: 13px; height: 13px; }
  .mv-lesson { display: grid; grid-template-columns: 1fr 90px 36px; gap: 10px; align-items: center; }
  .mv-lesson small { color: #3A4540; } .mv-lesson i { height: 7px; border-radius: 99px; background: #F0F2EE; overflow: hidden; } .mv-lesson s { display: block; height: 100%; background: linear-gradient(90deg, #8468FF, #0BA870); border-radius: inherit; }
  .mv-lesson em { font-style: normal; font-weight: 700; text-align: right; }
  .mv-flow { display: grid; gap: 14px; justify-items: center; }
  .mv-node { position: relative; display: flex; align-items: center; gap: 10px; width: min(280px, 100%); padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid #E8ECE8; box-shadow: 0 14px 24px -22px rgb(0 0 0 / .5); }
  .mv-node + .mv-node::before { content: ""; position: absolute; left: 50%; top: -15px; width: 2px; height: 14px; background: repeating-linear-gradient(180deg, #B8C0BB 0 3px, transparent 3px 6px); }
  .mv-node > i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: #0BA870; } .mv-node > i svg { width: 15px; height: 15px; }
  .mv-node.n1 > i { background: #D99A06; } .mv-node.n2 > i { background: #8468FF; } .mv-node.n3 > i { background: #0E1512; }
  .mv-node small { display: block; font-size: 10.5px; color: #8A948F; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
  .mv-page { display: grid; place-items: center; }
  .mv-phone { width: 190px; display: grid; justify-items: center; gap: 6px; padding: 10px 10px 16px; border-radius: 24px; background: #fff; border: 1px solid #E8ECE8; box-shadow: 0 30px 50px -30px rgb(20 40 60 / .5); }
  .mv-cover { width: 100%; height: 60px; border-radius: 16px; background: linear-gradient(120deg, #0BA870, #8468FF); }
  .mv-av { width: 46px; height: 46px; border-radius: 99px; margin-top: -30px; border: 3px solid #fff; display: grid; place-items: center; font-style: normal; font-weight: 800; color: #fff; background: #0E1512; }
  .mv-phone small { color: #8A948F; font-size: 11px; margin-bottom: 4px; }
  .mv-btn { width: 100%; padding: 9px; border-radius: 12px; background: #F0F2EE; font-style: normal; font-weight: 700; font-size: 11.5px; text-align: center; } .mv-btn.is-accent { background: #0E1512; color: #fff; }
  .mv-range { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 10px; background: #F7F8F6; } .mv-range small { color: #8A948F; }
  .mv-stack { display: flex; height: 14px; border-radius: 99px; overflow: hidden; gap: 3px; margin-top: 4px; } .mv-stack i { display: block; height: 100%; border-radius: 4px; }
  .mv-legend { display: flex; flex-wrap: wrap; gap: 10px; } .mv-legend small { display: inline-flex; align-items: center; gap: 5px; color: #6B756F; } .mv-legend i { width: 8px; height: 8px; border-radius: 99px; }
  .mk-spot-art .mv-panel { padding: 20px; }
  @media (prefers-reduced-motion: reduce) { .mv-draw { animation: none; stroke-dashoffset: 0; } .mv-bars i, .mk-dash-bars s, .mk-dash-bars u, .mv-float, .mk-works-track, .mk-ah-sq, .mk-ah-glow { animation: none; } }
}
@layer components {
  /* Clickable feature cards */
  a.mk-feature.is-link { display: block; color: inherit; transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base); }
  a.mk-feature.is-link:hover { transform: translateY(-3px); box-shadow: 0 30px 50px -40px rgb(20 40 80 / .55); }
  .mk-feature-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; font-size: 14px; color: var(--ink); }
  .mk-feature-more svg { width: 15px; height: 15px; transition: transform var(--t-fast); }
  a.mk-feature.is-link:hover .mk-feature-more svg { transform: translateX(3px); }

  /* Template gallery grid */
  .mk-tfilter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -20px 0 32px; }
  .mk-tfilter .chip { cursor: pointer; } .mk-tfilter .chip small { opacity: .6; margin-left: 2px; }
  .mk-tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px 18px; }
  .mk-tcard[hidden] { display: none; }
  .mk-tcard-stage { position: relative; display: grid; place-items: center; padding: 26px 0 0; height: 420px; overflow: hidden; border-radius: 24px; background: linear-gradient(160deg, #F3F6F2, #FAFBF9); border: 1px solid var(--line); }
  .mk-tcard-stage .phone { transform: translateY(20px); transition: transform var(--t-slow, .4s) var(--ease-out); }
  .mk-tcard:hover .mk-tcard-stage .phone { transform: translateY(6px); }
  .mk-tcard-use { position: absolute; left: 50%; bottom: 18px; translate: -50% 12px; opacity: 0; display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 18px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap; box-shadow: 0 18px 30px -16px rgb(0 0 0 / .6); transition: opacity var(--t-base), translate var(--t-base) var(--ease-out); }
  .mk-tcard-use svg { width: 15px; height: 15px; }
  .mk-tcard:hover .mk-tcard-use, .mk-tcard-use:focus-visible { opacity: 1; translate: -50% 0; }
  @media (hover: none) { .mk-tcard-use { opacity: 1; translate: -50% 0; } }
  .mk-tcard figcaption { display: grid; gap: 2px; padding: 12px 4px 0; } .mk-tcard figcaption span { color: var(--text-muted); font-size: 13.5px; }

  /* Timeline (changelog) */
  .mk-timeline { position: relative; max-width: 860px; margin: 0 auto; padding: 0; list-style: none; display: grid; gap: 18px; }
  .mk-timeline::before { content: ""; position: absolute; left: 150px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--line), transparent); }
  .mk-timeline li { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 40px; align-items: start; }
  .mk-tl-date { position: relative; text-align: right; font-weight: 700; color: var(--text-muted); font-size: 14px; padding-top: 22px; }
  .mk-tl-date::after { content: ""; position: absolute; right: -27px; top: 26px; width: 12px; height: 12px; border-radius: 99px; background: #C2F45B; box-shadow: 0 0 0 4px var(--canvas), 0 0 0 5px var(--line); }
  .mk-tl-card { padding: 20px 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--e1); }
  .mk-tl-tag { display: inline-block; margin-bottom: 8px; padding: 2px 10px; border-radius: 99px; background: #ECFCCB; color: #3F6212; font-size: 12px; font-weight: 700; }
  .mk-tl-card h3 { font-size: 1.15rem; } .mk-tl-card p { margin-top: 6px; color: var(--text-muted); }
  @media (max-width: 700px) { .mk-timeline::before { left: 6px; } .mk-timeline li { grid-template-columns: minmax(0, 1fr); gap: 6px; padding-left: 26px; } .mk-tl-date { text-align: left; padding-top: 0; } .mk-tl-date::after { right: auto; left: -26px; top: 4px; } }
}
@layer components {
  .mk-dash-logo .brand-mark, .mk-dash-logo { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
  .mk-dash-logo svg { width: 22px; height: 22px; }
  .mk-dash-kpi.is-feature b { color: #fff; }
}
@layer components {
  .mv-sales .mv-bars { margin-top: 22px; }
  .mv-sources { display: grid; gap: 8px; margin-top: 6px; padding-top: 12px; border-top: 1px dashed #E6E9E4; }
  .mv-sources > small { color: #8A948F; font-weight: 600; }
  .mv-source { display: grid; grid-template-columns: 24px 1fr 90px 36px; gap: 10px; align-items: center; }
  .mv-source i { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: #F0F2EE; } .mv-source i svg { width: 13px; height: 13px; }
  .mv-source b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mv-source s { height: 6px; border-radius: 99px; background: #F0F2EE; overflow: hidden; } .mv-source u { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #9BE15D, #0BA870); }
  .mv-source em { font-style: normal; font-weight: 700; text-align: right; }
}
@layer components {
  .tone-violet { --tc: #7C5CFF; }
  .mk-tcard-stage .phone { transform: translateY(24px) scale(.82); transform-origin: top center; }
  .mk-tcard:hover .mk-tcard-stage .phone { transform: translateY(12px) scale(.82); }
  .mk-tcard-stage { height: 400px; }
}

/* F1 polish: tighten the seam under compact page heroes */
.mk-pagehero:not(.has-image) { padding-bottom: clamp(24px, 4vw, 48px); }
.mk-pagehero + .mk-section { padding-top: clamp(28px, 4vw, 56px); }

/* css/help.css */
/* Public help centre, contact, request pages and roadmap (ADR-0034). Lives in the marketing bundle. */
@layer components {
  .hp svg { width: 18px; height: 18px; flex: none; }
  .hp-hero { position: relative; padding: clamp(130px, 15vw, 176px) 0 clamp(40px, 6vw, 72px); overflow: hidden; isolation: isolate;
    background: radial-gradient(60% 70% at 15% 0%, color-mix(in oklab, var(--emerald-300) 35%, transparent), transparent 70%),
                radial-gradient(50% 60% at 90% 10%, color-mix(in oklab, var(--violet-300) 30%, transparent), transparent 70%); }
  .hp-hero.is-compact { padding-bottom: clamp(24px, 4vw, 40px); }
  .hp-hero-inner { display: grid; justify-items: center; text-align: center; gap: 14px; }
  .hp-hero.is-compact .hp-hero-inner { justify-items: start; text-align: left; }
  .hp-hero.is-compact .hp-hero-inner > * { max-width: 860px; }
  .hp-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--ink); box-shadow: var(--e1); }
  .hp-kicker svg { width: 15px; height: 15px; color: var(--accent-text); }
  .hp-title { margin: 0; font-family: var(--font-display); font-size: clamp(2.4rem, 1.4rem + 4vw, 4.4rem); line-height: 1; letter-spacing: -0.05em; font-weight: 650; color: var(--ink); overflow-wrap: anywhere; }
  .hp-title.is-sm { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); letter-spacing: -0.04em; }
  .hp-sub { margin: 0; max-width: 620px; font-size: clamp(1.02rem, .95rem + .3vw, 1.18rem); line-height: 1.6; color: var(--text-muted); }
  .hp-meta { margin: 0; font-size: 14px; color: var(--text-muted); }
  .hp-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
  .hp-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--text-muted); }
  .hp-crumbs svg { width: 14px; height: 14px; }
  .hp-crumbs a:hover { color: var(--ink); }
  .hp-crumbs span { color: var(--ink); }
  .hp-search { position: relative; display: flex; align-items: center; gap: 8px; width: min(640px, 100%); padding: 6px 6px 6px 48px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 60px -30px rgb(11 15 13 / .45); }
  .hp-search > svg { position: absolute; left: 18px; color: var(--text-muted); }
  .hp-search input { flex: 1; min-width: 0; height: 44px; border: 0; background: none; font: inherit; font-size: 16px; color: var(--text); }
  .hp-search input:focus { outline: none; }
  .hp-search:focus-within { box-shadow: var(--focus-ring), 0 24px 60px -30px rgb(11 15 13 / .45); }
  .hp-search.is-lg { margin-top: 10px; }
  .hp-search .btn { height: 44px; }
  .hp-popular { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 4px 0 0; font-size: 13.5px; color: var(--text-muted); }
  .hp-popular a { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
  .hp-popular a:hover { text-decoration-color: var(--accent); }

  .hp-section { padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(24px, 4vw, 48px); }
  .hp-narrow > * { max-width: 860px; } /* aligned with the page's left edge, like the title above */
  .hp-muted { color: var(--text-muted); margin: 0 0 12px; }
  .hp-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; }
  .hp-cat { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--r-2xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--e1); color: var(--text); transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base); }
  .hp-cat:hover { transform: translateY(-3px); box-shadow: var(--e3); }
  .hp-cat h2 { margin: 6px 0 0; font-family: var(--font-display); font-size: 1.25rem; letter-spacing: -0.02em; color: var(--ink); }
  .hp-cat p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-muted); }
  .hp-cat-foot { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--accent-text); }
  .hp-cat-foot svg { width: 15px; height: 15px; transition: transform var(--t-fast); }
  .hp-cat:hover .hp-cat-foot svg { transform: translateX(3px); }
  .hp-cat-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-forest, var(--ink)); color: #C2F45B; box-shadow: 0 12px 24px -14px rgb(11 15 13 / .6); }
  .hp-cat-icon svg { width: 20px; height: 20px; }
  .hp-cat-icon.is-lg { width: 60px; height: 60px; border-radius: 18px; }
  .hp-cat-icon.is-lg svg { width: 26px; height: 26px; }
  .hp-cat-head { display: flex; align-items: center; gap: 16px; }
  .hp-cat-head .hp-sub { margin-top: 6px; }

  .hp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
  .hp-row { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); color: var(--text); transition: border-color var(--t-fast), transform var(--t-fast); }
  .hp-row:hover { border-color: var(--accent); transform: translateX(2px); }
  .hp-row > svg:last-child { color: var(--text-subtle); width: 16px; height: 16px; }
  .hp-row-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent-text); }
  .hp-row-main { display: grid; gap: 3px; min-width: 0; flex: 1; }
  .hp-row-main b { color: var(--ink); font-size: 15.5px; }
  .hp-row-main small { color: var(--text-muted); font-size: 14px; }
  .hp-row-main em { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--text-subtle); }

  .hp-article-grid { display: grid; gap: clamp(24px, 4vw, 56px); align-items: start; }
  @media (min-width: 1000px) { .hp-article-grid { grid-template-columns: minmax(0, 1fr) 280px; } .hp-aside { position: sticky; top: 110px; } }
  .hp-prose { max-width: 740px; font-size: 16.5px; line-height: 1.75; color: var(--text); overflow-wrap: anywhere; }
  .hp-prose > :first-child { margin-top: 0; }
  .hp-prose h2 { font-family: var(--font-display); font-size: 1.55rem; letter-spacing: -0.025em; margin: 2em 0 .5em; color: var(--ink); scroll-margin-top: 110px; }
  .hp-prose h3 { font-size: 1.15rem; margin: 1.6em 0 .4em; color: var(--ink); scroll-margin-top: 110px; }
  .hp-prose p, .hp-prose ul, .hp-prose ol { margin: 0 0 1em; }
  .hp-prose li { margin: .3em 0; }
  .hp-prose li::marker { color: var(--accent-text); font-weight: 700; }
  .hp-prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
  .hp-prose code { font-family: var(--font-mono); font-size: .88em; padding: 2px 6px; border-radius: 6px; background: var(--surface-sunken); }
  .hp-prose pre { padding: 16px 18px; border-radius: 14px; background: var(--ink); color: #E9F2EC; overflow-x: auto; font-size: 14px; }
  .hp-prose pre code { padding: 0; background: none; color: inherit; }
  .hp-prose blockquote { margin: 1.2em 0; padding: 14px 18px; border-left: 3px solid var(--accent); border-radius: 0 14px 14px 0; background: var(--accent-soft); color: var(--ink); }
  .hp-prose blockquote p:last-child { margin: 0; }
  .hp-prose img { max-width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--e2); }
  .hp-prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 15px; display: block; overflow-x: auto; }
  .hp-prose th, .hp-prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
  .hp-prose th { color: var(--ink); }
  .hp-prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
  .hp-aside { display: grid; gap: 20px; }
  .hp-toc, .hp-related { display: grid; gap: 2px; padding: 16px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
  .hp-toc p, .hp-related p { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
  .hp-toc a, .hp-related a { padding: 6px 10px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--text); }
  .hp-toc a:hover, .hp-related a:hover { background: var(--surface-hover); color: var(--ink); }

  .hp-feedback-wrap { padding-bottom: 24px; }
  .hp-feedback { max-width: 740px; position: relative; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 18px 22px; border-radius: var(--r-2xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--e1); }
  .hp-feedback-q { margin: 0; font-weight: 700; color: var(--ink); font-size: 16px; }
  .hp-feedback-a { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
  .hp-feedback .btn svg { width: 16px; height: 16px; }
  .hp-no summary { list-style: none; cursor: pointer; }
  .hp-no summary::-webkit-details-marker { display: none; }
  .hp-no[open] summary { background: var(--surface-active, var(--surface-2)); }
  .hp-no[open] { flex-basis: 100%; }
  .hp-no-panel { display: grid; gap: 8px; margin-top: 10px; width: 100%; max-width: 480px; }
  .hp-no-panel label { font-size: 14px; font-weight: 600; color: var(--ink); }
  .hp-no-panel label span { color: var(--text-subtle); font-weight: 500; }
  .hp-no-panel textarea, .hp-field input, .hp-field textarea { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface); font: inherit; font-size: 15px; color: var(--text); }
  .hp-no-panel textarea:focus, .hp-field input:focus, .hp-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus-ring); }
  .hp-no-panel .btn { justify-self: start; }

  .hp-cta { display: grid; gap: 16px; }
  @media (min-width: 900px) { .hp-cta { grid-template-columns: 1.3fr 1fr; } }
  .hp-cta-item { display: grid; gap: 14px; align-content: start; padding: clamp(22px, 3vw, 32px); border-radius: var(--r-2xl); background: var(--grad-forest, var(--ink)); color: #fff; box-shadow: var(--e3); }
  .hp-cta-item.is-alt { background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: var(--e1); }
  .hp-cta-item h2 { margin: 0 0 4px; font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -0.02em; color: inherit; }
  .hp-cta-item.is-alt h2 { color: var(--ink); }
  .hp-cta-item p { margin: 0; line-height: 1.55; opacity: .85; }
  .hp-cta-icon { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: rgb(255 255 255 / .12); color: #C2F45B; }
  .hp-cta-item.is-alt .hp-cta-icon, .hp-side-card .hp-cta-icon { background: var(--accent-soft); color: var(--accent-text); }
  .hp-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
  .hp-link { font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; opacity: .85; }
  .hp-empty, .hp-done { display: grid; justify-items: center; gap: 10px; text-align: center; padding: clamp(28px, 5vw, 56px) 20px; border-radius: var(--r-2xl); border: 1.5px dashed var(--line-strong); }
  .hp-empty h2 { margin: 0; font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); }
  .hp-empty p { margin: 0 0 6px; color: var(--text-muted); }
  .hp-done { border: 0; padding-top: clamp(120px, 14vw, 170px); margin: 0 auto; }
  .hp-done-icon { width: 72px; height: 72px; border-radius: 24px; display: grid; place-items: center; background: var(--accent); color: #fff; box-shadow: 0 20px 40px -20px var(--accent); }
  .hp-done-icon svg { width: 32px; height: 32px; }
  .hp-done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }

  /* Contact form and web requests */
  .hp-contact-grid { display: grid; gap: clamp(24px, 4vw, 48px); align-items: start; }
  @media (min-width: 1000px) { .hp-contact-grid { grid-template-columns: minmax(0, 1fr) 340px; } }
  .hp-form { position: relative; display: grid; gap: 16px; padding: clamp(20px, 3vw, 30px); border-radius: var(--r-2xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--e2); }
  .hp-form .btn { justify-self: start; }
  .hp-topics { border: 0; margin: 0; padding: 0; min-width: 0; }
  .hp-topics legend { font-weight: 700; color: var(--ink); margin-bottom: 8px; }
  .hp-topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 8px; }
  .hp-topic { position: relative; cursor: pointer; }
  .hp-topic input { position: absolute; opacity: 0; inset: 0; }
  .hp-topic span { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border-radius: 14px; border: 1.5px solid var(--line); font-size: 14px; font-weight: 600; color: var(--text); transition: all var(--t-fast); }
  .hp-topic span svg { width: 16px; height: 16px; color: var(--text-muted); }
  .hp-topic:hover span { background: var(--surface-hover); }
  .hp-topic input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
  .hp-topic input:checked + span svg { color: var(--accent-text); }
  .hp-topic input:focus-visible + span { box-shadow: var(--focus-ring); }
  .hp-row2 { display: grid; gap: 16px; }
  @media (min-width: 640px) { .hp-row2 { grid-template-columns: 1fr 1fr; } }
  .hp-field { display: grid; gap: 6px; }
  .hp-field label { font-size: 14px; font-weight: 700; color: var(--ink); }
  .hp-field.has-error input, .hp-field.has-error textarea { border-color: var(--danger); }
  .hp-error { margin: 0; font-size: 13px; font-weight: 600; color: var(--danger); }
  .hp-hint { margin: 0; font-size: 13px; color: var(--text-muted); }
  .hp-alert { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--danger-soft); color: var(--danger); font-weight: 600; font-size: 14px; }
  .hp-note { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--ink); font-weight: 600; font-size: 14px; }
  .hp-note a { text-decoration: underline; }
  .hp-contact-aside { display: grid; gap: 16px; }
  .hp-side-card { display: grid; gap: 10px; justify-items: start; padding: 22px; border-radius: var(--r-2xl); background: var(--surface); border: 1px solid var(--line); }
  .hp-side-card h2 { margin: 4px 0 0; font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); }
  .hp-side-card p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-muted); }
  .hp-status { display: inline-flex; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--surface-sunken); color: var(--text-muted); }
  .hp-status.is-open { background: var(--accent-soft); color: var(--accent-text); }
  .hp-status.is-pending { background: var(--warning-soft); color: var(--warning); }
  .hp-thread { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
  .hp-msg { padding: 14px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
  .hp-msg.is-staff { background: var(--accent-soft); border-color: transparent; }
  .hp-msg-by { display: flex; gap: 8px; align-items: center; margin: 0 0 6px; font-size: 13px; }
  .hp-msg-by b { color: var(--ink); }
  .hp-msg-by time { color: var(--text-subtle); }
  .hp-msg-body { white-space: pre-line; overflow-wrap: anywhere; line-height: 1.6; }
  .hp-sys { text-align: center; font-size: 12.5px; color: var(--text-muted); }
  .hp-reply { margin-bottom: 14px; }

  /* Roadmap */
  .hp-board { display: grid; gap: 16px; align-items: start; }
  @media (min-width: 900px) { .hp-board { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  .hp-col { display: grid; gap: 10px; padding: 14px; border-radius: var(--r-2xl); background: var(--surface-2); border: 1px solid var(--line); }
  .hp-col-head { display: flex; align-items: center; gap: 8px; margin: 2px 4px 4px; font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); }
  .hp-col-head svg { width: 18px; height: 18px; }
  .hp-col-head span { margin-left: auto; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center; font-family: var(--font-sans); font-size: 12.5px; background: var(--surface); color: var(--text-muted); }
  .hp-col.is-planned .hp-col-head svg { color: var(--violet-500); }
  .hp-col.is-progress .hp-col-head svg { color: var(--tangerine-500); }
  .hp-col.is-shipped .hp-col-head svg { color: var(--emerald-600); }
  .hp-card { padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--e1); }
  .hp-card h3 { margin: 0; font-size: 15.5px; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
  .hp-card p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--text-muted); }
  .hp-card-foot { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12.5px !important; font-weight: 600; }
  .hp-card-foot span { display: inline-flex; align-items: center; gap: 4px; }
  .hp-card-foot svg { width: 13px; height: 13px; }
  .hp-col-empty { margin: 4px; font-size: 13.5px; color: var(--text-subtle); }
  .hp-ghost { color: var(--ink); }

  /* Status page (ADR-0035) */
  .st-hero .hp-hero-inner > * { max-width: none; }
  .st-banner { display: flex; align-items: center; gap: 18px; width: 100%; padding: clamp(18px, 3vw, 28px); border-radius: var(--r-2xl); color: #fff; box-shadow: var(--e3); }
  .st-banner.is-ok { background: linear-gradient(135deg, var(--emerald-500), var(--emerald-700)); }
  .st-banner.is-warn { background: linear-gradient(135deg, #F5B53D, #D98A0B); }
  .st-banner.is-bad { background: linear-gradient(135deg, #F0645B, #C4333A); }
  .st-banner.is-maint { background: linear-gradient(135deg, #6AA6FF, #2563EB); }
  .st-banner h1 { margin: 0; font-family: var(--font-display); font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.3rem); letter-spacing: -0.03em; line-height: 1.1; color: #fff; }
  .st-banner p { margin: 6px 0 0; font-size: 14.5px; opacity: .9; }
  .st-banner-icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; flex: none; background: rgb(255 255 255 / .18); }
  .st-banner-icon svg { width: 28px; height: 28px; }
  .st-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; font-size: 14px; font-weight: 600; }
  .st-links a { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); }
  .st-links a:hover { color: var(--ink); }
  .st-links svg { width: 15px; height: 15px; }
  .st-body { display: grid; gap: 28px; }
  .st-block { display: grid; gap: 12px; }
  .st-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
  .st-h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -0.02em; color: var(--ink); }
  .st-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 12.5px; color: var(--text-muted); }
  .st-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: -6px; }
  .st-comps { display: grid; border-radius: var(--r-2xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--e1); overflow: hidden; }
  .st-comp { display: grid; gap: 10px; padding: 18px 20px; }
  .st-comp + .st-comp { border-top: 1px solid var(--line); }
  .st-comp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
  .st-comp-head h3 { margin: 0; font-size: 15.5px; color: var(--ink); }
  .st-comp-head p { margin: 2px 0 0; font-size: 13px; color: var(--text-muted); }
  .st-comp-head .st-note { color: var(--ink); font-weight: 600; }
  .st-state { display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: 13px; font-weight: 700; white-space: nowrap; }
  .st-state i { width: 9px; height: 9px; border-radius: 50%; }
  .st-state.is-ok { color: var(--emerald-700); } .st-state.is-ok i { background: var(--emerald-500); box-shadow: 0 0 0 4px color-mix(in oklab, var(--emerald-500) 20%, transparent); }
  .st-state.is-warn { color: #B46A00; } .st-state.is-warn i { background: #F5B53D; }
  .st-state.is-bad { color: #C4333A; } .st-state.is-bad i { background: #E5484D; }
  .st-state.is-maint { color: #2563EB; } .st-state.is-maint i { background: #6AA6FF; }
  .st-bars { display: grid; grid-template-columns: repeat(90, minmax(0, 1fr)); gap: 2px; height: 34px; }
  .st-bars span, .st-legend i { border-radius: 3px; background: var(--line); }
  .st-bars span { transition: transform var(--t-fast); }
  .st-bars span:hover { transform: scaleY(1.12); }
  .st-bars .is-ok, .st-legend .is-ok { background: var(--emerald-500); }
  .st-bars .is-warn, .st-legend .is-warn { background: #F5B53D; }
  .st-bars .is-bad, .st-legend .is-bad { background: #E5484D; }
  .st-bars .is-maint, .st-legend .is-maint { background: #6AA6FF; }
  .st-bars .is-none, .st-legend .is-none { background: color-mix(in oklab, var(--text) 10%, transparent); }
  .st-comp-foot { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--text-subtle); }
  .st-comp-foot b { color: var(--text-muted); font-weight: 700; }
  .st-d45 { display: none; }
  @media (max-width: 640px) { .st-d90 { display: none; } .st-d45 { display: inline; } }
  @media (max-width: 640px) { .st-bars { grid-template-columns: repeat(45, minmax(0, 1fr)); } .st-bars span:nth-child(-n+45) { display: none; } .st-comp-head { flex-direction: column; gap: 6px; } }
  .st-inc { display: grid; gap: 12px; padding: 18px 20px; border-radius: var(--r-2xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--e1); border-left: 5px solid var(--line-strong); }
  .st-inc.is-bad { border-left-color: #E5484D; } .st-inc.is-warn { border-left-color: #F5B53D; } .st-inc.is-maint { border-left-color: #6AA6FF; } .st-inc.is-done { border-left-color: var(--emerald-500); box-shadow: none; }
  .st-inc-head { display: flex; align-items: flex-start; gap: 12px; }
  .st-inc-dot { display: none; }
  .st-inc-title { flex: 1; min-width: 0; }
  .st-inc-title h3 { margin: 0; font-size: 16.5px; color: var(--ink); overflow-wrap: anywhere; }
  .st-inc-title p { margin: 3px 0 0; font-size: 13px; color: var(--text-muted); }
  .st-inc-affects { font-weight: 600; }
  .st-pill { flex: none; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--surface-sunken); color: var(--text-muted); }
  .st-pill.is-bad { background: rgb(229 72 77 / .12); color: #C4333A; } .st-pill.is-warn { background: rgb(245 181 61 / .18); color: #B46A00; } .st-pill.is-maint { background: rgb(106 166 255 / .16); color: #2563EB; } .st-pill.is-done { background: color-mix(in oklab, var(--emerald-500) 14%, transparent); color: var(--emerald-700); }
  .st-updates { list-style: none; margin: 0; padding: 0 0 0 14px; display: grid; gap: 12px; border-left: 2px solid var(--line); }
  .st-updates li { position: relative; font-size: 14.5px; line-height: 1.55; }
  .st-updates li::before { content: ""; position: absolute; left: -20px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong); }
  .st-updates li:first-child::before { border-color: var(--ink); }
  .st-updates b { color: var(--ink); }
  .st-updates p { margin: 2px 0; white-space: pre-line; overflow-wrap: anywhere; }
  .st-updates time { font-size: 12.5px; color: var(--text-subtle); }
  .st-quiet { display: flex; align-items: center; gap: 8px; margin: 0; padding: 16px 18px; border-radius: var(--r-xl); background: var(--surface); border: 1px dashed var(--line-strong); color: var(--text-muted); font-weight: 600; }
  .st-quiet svg { color: var(--emerald-600); }
  .st-pager { display: flex; gap: 10px; }
}

/* css/components/developers.css */
/* Developers: API tokens in settings and the public API reference (ADR-0046) -------- */
@layer components {
  .dv-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 16px; align-items: start; }
  .dv-row.is-off { opacity: .62; }
  .dv-hint { font-family: var(--font-mono, ui-monospace, monospace); font-size: .75rem; font-weight: 500; color: var(--text-muted); margin-left: 6px; }
  .dv-scopes { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
  .dv-scopes .badge { font-family: var(--font-mono, ui-monospace, monospace); font-size: .6875rem; }
  .dv-reveal { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: 22px; border: 1.5px solid var(--accent); background: var(--accent-soft); margin-bottom: 16px; }
  .dv-reveal-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; flex: none; }
  .dv-reveal-icon svg { width: 20px; height: 20px; }
  .dv-token { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding: 8px 8px 8px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); max-width: 100%; }
  .dv-token code { font-family: var(--font-mono, ui-monospace, monospace); font-size: .875rem; overflow-wrap: anywhere; flex: 1; min-width: 0; user-select: all; }
  .dv-code { margin: 0; padding: 14px 16px; border-radius: 16px; background: #14161a; color: #e8e6e1; font-family: var(--font-mono, ui-monospace, monospace); font-size: .8125rem; line-height: 1.6; overflow-x: auto; white-space: pre; }
  .dv-code code { font: inherit; color: inherit; background: none; }
  .dv-notes { list-style: none; display: grid; gap: 12px; margin: 0; }
  .dv-notes li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; font-size: .875rem; color: var(--text-muted); line-height: 1.5; }
  .dv-notes svg { width: 18px; height: 18px; color: var(--ink); margin-top: 1px; }
  .dv-pick { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
  .dv-scope { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); cursor: pointer; }
  .dv-scope:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
  .dv-scope input { margin-top: 3px; }
  .dv-scope code { font-family: var(--font-mono, ui-monospace, monospace); font-size: .6875rem; color: var(--text-muted); }
  .dv-scope small { display: block; color: var(--text-muted); font-size: .8125rem; }
  .dv-scope.is-off { opacity: .55; cursor: not-allowed; }

  /* Public reference */
  .dv-doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; }
  .dv-toc { position: sticky; top: 90px; display: grid; gap: 2px; font-size: .875rem; }
  .dv-toc a { padding: 6px 10px; border-radius: 10px; color: var(--text-muted); text-decoration: none; }
  .dv-toc a:hover { background: var(--surface-sunken); color: var(--ink); }
  .dv-toc b { padding: 14px 10px 4px; font-size: .6875rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
  .dv-sec { display: grid; gap: 14px; padding-bottom: 36px; scroll-margin-top: 90px; }
  .dv-sec h2 { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: -0.03em; }
  .dv-sec p, .dv-sec li { color: var(--text-muted); line-height: 1.65; }
  .dv-sec ul { padding-left: 1.2em; display: grid; gap: 4px; }
  .dv-sec code:not(.dv-code code) { font-family: var(--font-mono, ui-monospace, monospace); font-size: .85em; background: var(--surface-sunken); padding: 1px 6px; border-radius: 6px; }
  .dv-ep { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; scroll-margin-top: 90px; }
  .dv-ep > summary { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; list-style: none; }
  .dv-ep > summary::-webkit-details-marker { display: none; }
  .dv-ep[open] > summary { border-bottom: 1px solid var(--line); }
  .dv-verb { font-family: var(--font-mono, ui-monospace, monospace); font-size: .6875rem; font-weight: 700; padding: 3px 8px; border-radius: 8px; min-width: 56px; text-align: center; background: var(--surface-sunken); }
  .dv-verb.is-get { background: #e3f1e8; color: #1f6b3d; }
  .dv-verb.is-post { background: #e6ecfb; color: #2d4fb3; }
  .dv-verb.is-patch { background: #fbf0dd; color: #8a5a10; }
  .dv-verb.is-delete { background: #fbe4e2; color: #a2322a; }
  .dv-path { font-family: var(--font-mono, ui-monospace, monospace); font-size: .875rem; font-weight: 600; }
  .dv-ep-body { padding: 14px 16px; display: grid; gap: 10px; }
  .dv-params { width: 100%; border-collapse: collapse; font-size: .8125rem; }
  .dv-params th, .dv-params td { text-align: left; padding: 6px 8px; border-top: 1px solid var(--line); vertical-align: top; }
  .dv-params th { color: var(--text-muted); font-weight: 600; font-size: .6875rem; text-transform: uppercase; letter-spacing: .06em; border-top: 0; }
  .dv-params td:first-child { font-family: var(--font-mono, ui-monospace, monospace); white-space: nowrap; }
  @media (max-width: 960px) { .dv-grid, .dv-doc { grid-template-columns: minmax(0, 1fr); } .dv-toc { position: static; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } }
  @media (max-width: 640px) { .dv-reveal { flex-wrap: wrap; } }
}
@layer components {
  .dv-subtabs { margin-bottom: 16px; }
  .wh-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px; align-items: start; }
  .wh-list { display: grid; gap: 6px; padding: 10px; }
  .wh-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; border: 1px solid transparent; text-align: left; width: 100%; background: none; cursor: pointer; }
  .wh-item:hover { background: var(--surface-2); }
  .wh-item.is-active { border-color: var(--accent); background: var(--accent-soft); }
  .wh-kind { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-sunken); color: var(--ink); font-weight: 700; font-size: .8125rem; }
  .wh-kind svg { width: 18px; height: 18px; }
  .wh-kind.is-slack { background: #f4ede4; color: #611f69; }
  .wh-kind.is-discord { background: #e8eafd; color: #4752c4; }
  .wh-head { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
  .wh-head h2 { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -0.02em; overflow-wrap: anywhere; }
  .wh-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .wh-stat { padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
  .wh-stat small { display: block; color: var(--text-muted); font-size: .75rem; }
  .wh-stat b { font-size: .9375rem; }
  .wh-events { display: flex; flex-wrap: wrap; gap: 4px; }
  .wh-log { display: grid; }
  .wh-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line); font-size: .875rem; }
  .wh-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); }
  .wh-dot.is-delivered { background: var(--success, #1f8a4c); }
  .wh-dot.is-failed { background: var(--warning); }
  .wh-dot.is-dead { background: var(--danger); }
  .wh-row code { font-family: var(--font-mono, ui-monospace, monospace); font-size: .8125rem; }
  .wh-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; }
  .wh-pick legend { grid-column: 1 / -1; }
  .wh-pick h4 { grid-column: 1 / -1; font-size: .6875rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-top: 8px; }
  .wh-check { display: flex; gap: 8px; align-items: center; font-size: .875rem; }
  .wh-kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .wh-kinds label { display: grid; justify-items: center; gap: 6px; padding: 14px 8px; border-radius: 16px; border: 1.5px solid var(--line); cursor: pointer; font-weight: 600; font-size: .875rem; }
  .wh-kinds label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
  .wh-json { max-height: 420px; overflow: auto; }
  .ig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
  .ig-card { display: grid; gap: 10px; align-content: start; padding: 18px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); }
  .ig-card header { display: flex; gap: 12px; align-items: center; }
  .ig-logo { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 1rem; color: #fff; flex: none; }
  .ig-logo svg { width: 20px; height: 20px; }
  .ig-card p { color: var(--text-muted); font-size: .875rem; line-height: 1.5; }
  .ig-card details summary { cursor: pointer; font-size: .875rem; font-weight: 600; }
  .ig-card ol { padding-left: 1.2em; display: grid; gap: 6px; margin-top: 8px; font-size: .8125rem; color: var(--text-muted); line-height: 1.5; }
  .ig-card footer { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
  .ig-h { font-family: var(--font-display); font-size: 1.1rem; margin: 20px 0 10px; }
  @media (max-width: 960px) { .wh-grid { grid-template-columns: minmax(0, 1fr); } }
  @media (max-width: 640px) { .wh-stats { grid-template-columns: minmax(0, 1fr); } .wh-pick { grid-template-columns: minmax(0, 1fr); } .wh-row { grid-template-columns: auto minmax(0, 1fr) auto; } .wh-row .wh-when { display: none; } }
}
/* Templates marketplace (ADR-0048) */
@layer components {
  .mp-search { display: flex; align-items: center; gap: 10px; max-width: 520px; margin-top: 18px; padding: 0 16px; height: 50px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--e1); }
  .mp-search svg { width: 18px; height: 18px; color: var(--text-muted); }
  .mp-search input { flex: 1; border: 0; background: none; outline: none; font: inherit; min-width: 0; }
  .mp-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; align-items: center; }
  .mp-cats a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-muted); text-decoration: none; font-size: .875rem; background: var(--surface); }
  .mp-cats a.is-active { background: var(--ink); color: var(--surface); border-color: var(--ink); }
  .mp-cats .grow { flex: 1; }
  .mp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
  .mp-card { display: grid; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow var(--t-fast), transform var(--t-fast); }
  .mp-card:hover { box-shadow: var(--e2, 0 8px 30px rgb(0 0 0 / .08)); transform: translateY(-2px); }
  .mp-thumb { height: 300px; overflow: hidden; position: relative; background: var(--surface-sunken); display: flex; justify-content: center; }
  .mp-thumb .page-preview { flex: none; }
  .mp-meta { display: grid; gap: 2px; padding: 12px 14px; border-top: 1px solid var(--line); }
  .mp-meta small { color: var(--text-muted); font-size: .8125rem; }
  .mp-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  .mp-stage { display: flex; justify-content: center; padding: 28px; border-radius: 32px; background: var(--surface-sunken); }
  .mp-info { display: grid; gap: 16px; align-content: start; position: sticky; top: 100px; }
  .mp-info .btn { justify-self: start; }
  .mp-by { color: var(--text-muted); }
  .mp-notes { list-style: none; display: grid; gap: 8px; padding: 0; margin: 0; color: var(--text-muted); font-size: .9375rem; }
  .mp-notes li { display: flex; gap: 8px; align-items: center; }
  .mp-notes svg { width: 16px; height: 16px; color: var(--accent); }
  .mp-h { font-family: var(--font-display); font-size: 1.4rem; margin: 48px 0 16px; }
  .mk-row .mk-note { display: flex; gap: 6px; align-items: center; margin-top: 4px; color: var(--danger); font-size: .8125rem; }
  .mk-row .mk-note svg { width: 14px; height: 14px; }
  .mk-share { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 20px; }
  .mk-share-preview { display: flex; justify-content: center; }
  .mk-share-preview .phone { transform: scale(.8); transform-origin: top center; }
  .mk-use { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: start; }
  .mk-review { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; }
  .mk-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .875rem; }
  .mk-facts dt { color: var(--text-muted); }
  @media (max-width: 960px) { .mp-detail, .mk-use, .mk-review { grid-template-columns: minmax(0, 1fr); } .mp-info { position: static; } .mk-share { grid-template-columns: minmax(0, 1fr); } .mk-share-preview { display: none; } }
}
@layer components {
  /* Reviewers see every block: the console preview scrolls instead of cropping. */
  .mk-review .phone { aspect-ratio: auto; height: 640px; }
  .mk-review .phone-screen { overflow-y: auto; }
}
@layer components {
  .mp-card { position: relative; }
  .mp-card-link { font-weight: 700; color: inherit; text-decoration: none; }
  .mp-card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* the whole card is the link */
  .mp-card-link:focus-visible { outline: none; }
  .mp-card:has(.mp-card-link:focus-visible) { box-shadow: var(--focus-ring); }
}
/* Partner programme (ADR-0049) */
@layer components {
  .pt-join { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 16px; align-items: start; }
  .pt-pitch { padding: 28px; color: #fff; border-radius: 26px; display: grid; gap: 14px; }
  .pt-pitch h2 { font-family: var(--font-display); font-size: 1.8rem; letter-spacing: -0.03em; color: #fff; }
  .pt-pitch ol { display: grid; gap: 10px; padding-left: 1.2em; color: rgb(255 255 255 / .85); line-height: 1.5; }
  .pt-pitch b { color: #fff; }
  .pt-link { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
  .pt-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 16px; align-items: start; }
  .pt-details { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font-mono, ui-monospace, monospace); font-size: .875rem; padding: 12px; border-radius: 12px; background: var(--surface-sunken); margin-top: 4px; }
  @media (max-width: 960px) { .pt-join, .pt-grid { grid-template-columns: minmax(0, 1fr); } }
}
@layer components {
  .pt-saved { display: inline-flex; align-items: center; gap: 6px; }
  .pt-saved svg { width: 16px; height: 16px; color: var(--accent); }
}

/* css/site.css */
/* ==========================================================================
   Weesify public pages. Standalone (no app CSS). Themed entirely by --site-* tokens
   set inline from the document theme. Scoped under .ws-site so the builder canvas
   can include the same rules inside the app.
   ========================================================================== */
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("/fonts/Poppins-Regular.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("/fonts/Poppins-Medium.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 600 700; font-display: swap; src: url("/fonts/Poppins-Bold.woff") format("woff"); }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 400 700; font-display: swap; src: url("/fonts/Lora-Italic-Variable.woff") format("woff"); }
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap; src: url("/fonts/Manrope-Variable.woff") format("woff"); }
@font-face { font-family: "Urbanist"; font-weight: 100 900; font-display: swap; src: url("/fonts/Urbanist-Variable.woff") format("woff"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/InstrumentSerif-Italic.woff") format("woff"); }

.ws-site :is(h1, h2, h3, h4, p, summary, b, strong, blockquote, figcaption) { color: inherit; }
.ws-site :is(b, strong) { font-weight: 700; } /* never inherit the app theme inside the builder canvas / thumbnails */
.ws-page { margin: 0; min-height: 100dvh; -webkit-font-smoothing: antialiased; }
.ws-page *, .ws-page *::before, .ws-page *::after { box-sizing: border-box; }
.ws-page main { min-height: 100dvh; }

.ws-site { --gap: 12px; position: relative; min-height: 100%; background: var(--site-bg); color: var(--site-text); font-family: var(--site-font); font-size: 15px; line-height: 1.55; font-weight: 500; -webkit-font-smoothing: antialiased; overflow: hidden; }
.ws-page .ws-site { min-height: 100dvh; }
.ws-site-inner { width: 100%; max-width: 560px; margin: 0 auto; padding: 44px 18px 40px; display: flex; flex-direction: column; gap: var(--gap); position: relative; }
.ws-site a { color: inherit; text-decoration: none; }
.ws-site svg { width: 18px; height: 18px; flex: none; }
.ws-block { position: relative; animation: ws-rise .5s cubic-bezier(.2,.8,.2,1) both; }
.ws-block:nth-child(2) { animation-delay: .04s } .ws-block:nth-child(3) { animation-delay: .08s } .ws-block:nth-child(4) { animation-delay: .12s } .ws-block:nth-child(5) { animation-delay: .16s } .ws-block:nth-child(n+6) { animation-delay: .2s }
@keyframes ws-rise { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .ws-block { animation: none; } }

/* Profile */
.ws-profile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; margin-bottom: 6px; }
.ws-profile-left { flex-direction: row; text-align: left; }
.ws-profile-hero .ws-avatar { width: 120px; height: 120px; }
.ws-profile-hero .ws-name { font-size: 1.7rem; }
.ws-avatar { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: color-mix(in oklab, var(--site-accent) 22%, var(--site-surface)); color: var(--site-text); font-size: 2rem; font-weight: 600; box-shadow: 0 0 0 4px color-mix(in oklab, var(--site-surface) 70%, transparent), 0 10px 30px -10px rgb(0 0 0 / .25); }
.ws-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ws-name { margin: 0; font-family: var(--site-heading); font-size: 1.6rem; font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; display: inline-flex; align-items: center; gap: 6px; }
.ws-font-lora .ws-name, .ws-font-lora .ws-heading { font-family: "Lora", Georgia, serif; font-style: italic; }
.ws-heading-serif .ws-name, .ws-heading-serif .ws-heading, .ws-heading-serif .ws-card-title, .ws-heading-serif .ws-stats strong { font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
.ws-heading-serif .ws-name { font-size: 2.1rem; }
.ws-heading-serif .ws-heading-sm { font-style: normal; font-family: var(--site-font); font-weight: 700; }
.ws-verified { color: var(--site-accent); width: 20px !important; height: 20px !important; }
.ws-bio { margin: 4px 0 0; color: var(--site-muted); max-width: 420px; }

/* Buttons (themed by .ws-btn-*) */
.ws-button { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 12px 18px; border-radius: var(--site-radius); font-weight: 700; letter-spacing: -0.01em; transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s, background .18s, border-color .18s; }
.ws-button:hover { transform: translateY(-2px); }
.ws-button:active { transform: translateY(0) scale(.99); }
.ws-button:focus-visible { outline: 3px solid color-mix(in oklab, var(--site-accent) 60%, transparent); outline-offset: 2px; }
.ws-button-label { flex: 1; text-align: center; }
.ws-button-icon, .ws-button-arrow { width: 22px; display: grid; place-items: center; opacity: .85; }
.ws-button-arrow { opacity: 0; transform: translate(-4px, 4px); transition: opacity .18s, transform .18s; }
.ws-button:hover .ws-button-arrow { opacity: .7; transform: none; }
.ws-btn-solid .ws-button { background: var(--site-btn-bg); color: var(--site-btn-text); box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
.ws-btn-solid .ws-button:hover { box-shadow: 0 10px 24px -12px rgb(0 0 0 / .45); }
.ws-btn-soft .ws-button { background: color-mix(in oklab, var(--site-btn-bg) 16%, transparent); color: var(--site-text); border: 1px solid color-mix(in oklab, var(--site-btn-bg) 30%, transparent); backdrop-filter: blur(8px); }
.ws-btn-soft .ws-button:hover { background: color-mix(in oklab, var(--site-btn-bg) 24%, transparent); }
.ws-btn-outline .ws-button { background: transparent; color: var(--site-text); border: 1.5px solid var(--site-text); }
.ws-btn-outline .ws-button:hover { background: var(--site-text); color: var(--site-bg-base); }
.ws-btn-shadow .ws-button { background: var(--site-surface); color: var(--site-text); box-shadow: 0 1px 0 rgb(255 255 255 / .6) inset, 0 8px 22px -10px rgb(0 0 0 / .25); }
.ws-btn-shadow .ws-button:hover { box-shadow: 0 16px 32px -12px rgb(0 0 0 / .32); }
.ws-site .ws-button-featured { background: var(--site-accent) !important; color: var(--site-accent-text) !important; border-color: transparent !important; box-shadow: 0 12px 28px -14px var(--site-accent) !important; }
.ws-site .ws-button-outline { background: transparent !important; color: var(--site-text) !important; border: 1.5px solid currentColor !important; box-shadow: none !important; }

/* Text */
.ws-heading { margin: 16px 0 0; font-family: var(--site-heading); font-weight: 700; letter-spacing: -0.025em; }
.ws-heading-sm { font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; color: var(--site-muted); }
.ws-heading-md { font-size: 1.15rem; }
.ws-heading-lg { font-size: 1.5rem; }
.ws-text { color: var(--site-text); }
.ws-text p { margin: 0 0 .7em; } .ws-text p:last-child { margin-bottom: 0; }
.ws-text a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in oklab, var(--site-accent) 70%, transparent); }
.ws-text ul, .ws-text ol { text-align: left; margin: 0 0 .7em; padding-left: 1.3em; }
.ws-divider { display: flex; justify-content: center; padding: 6px 0; }
.ws-divider-line span { display: block; width: 100%; height: 1px; background: color-mix(in oklab, var(--site-text) 14%, transparent); }
.ws-divider-dots span { display: block; width: 40px; height: 6px; background: radial-gradient(circle, color-mix(in oklab, var(--site-text) 35%, transparent) 2px, transparent 2.5px) 0 0 / 13px 6px repeat-x; }
.ws-divider-space span { height: 12px; }

/* Socials */
.ws-socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ws-social { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--site-text); transition: background .18s, transform .18s; }
.ws-social:hover { background: color-mix(in oklab, var(--site-text) 8%, transparent); transform: translateY(-2px); }
.ws-socials-sm .ws-social { width: 36px; height: 36px; } .ws-socials-sm svg { width: 16px; height: 16px; }
.ws-socials-lg .ws-social { width: 50px; height: 50px; } .ws-socials-lg svg { width: 24px; height: 24px; }

/* Media */
.ws-image { display: block; margin: 0; overflow: hidden; border-radius: var(--site-radius); box-shadow: 0 10px 30px -18px rgb(0 0 0 / .4); }
.ws-image img { display: block; width: 100%; height: auto; }
.ws-image-square { border-radius: 0; }
.ws-image-wide img { aspect-ratio: 16 / 7; object-fit: cover; }
.ws-embed { width: 100%; overflow: hidden; border-radius: var(--site-radius); background: color-mix(in oklab, var(--site-text) 6%, transparent); }
.ws-embed iframe { display: block; width: 100%; height: 100%; min-height: 152px; border: 0; }
.ws-embed-spotify iframe, .ws-embed-soundcloud iframe { min-height: 152px; }
.ws-placeholder { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 96px; padding: 16px; border-radius: var(--site-radius); border: 1.5px dashed color-mix(in oklab, var(--site-text) 22%, transparent); color: var(--site-muted); font-size: 14px; }
.ws-embed-preview { height: 100%; border-style: solid; }

/* Cards (capture, countdown) */
.ws-card { padding: 20px; border-radius: calc(var(--site-radius) + 4px); background: var(--site-surface); border: 1px solid color-mix(in oklab, var(--site-text) 9%, transparent); box-shadow: 0 12px 32px -22px rgb(0 0 0 / .35); text-align: center; }
.ws-card-title { margin: 0; font-size: 1.05rem; font-weight: 600; }
.ws-card-text { margin: 6px 0 0; color: var(--site-muted); font-size: 14px; }
.ws-capture-form { margin-top: 14px; display: grid; gap: 8px; }
.ws-capture-row { display: flex; gap: 8px; }
.ws-input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border-radius: calc(var(--site-radius) - 2px); border: 1px solid color-mix(in oklab, var(--site-text) 18%, transparent); background: color-mix(in oklab, var(--site-surface) 80%, white); color: #0E1A15; font: inherit; }
.ws-input:focus { outline: 3px solid color-mix(in oklab, var(--site-accent) 45%, transparent); border-color: var(--site-accent); }
.ws-submit { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 18px; border: 0; border-radius: calc(var(--site-radius) - 2px); background: var(--site-accent); color: var(--site-accent-text); font: inherit; font-weight: 600; cursor: pointer; transition: filter .15s, transform .15s; }
.ws-submit:hover { filter: brightness(1.05); transform: translateY(-1px); }
.ws-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--site-muted); text-align: left; }
.ws-consent input { margin-top: 3px; accent-color: var(--site-accent); }
.ws-success { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 14px 0 0; color: var(--site-text); font-weight: 500; }
.ws-success svg { color: var(--site-accent); }
.ws-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ws-countdown-grid { margin-top: 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ws-countdown-grid div { display: grid; padding: 10px 4px; border-radius: calc(var(--site-radius) - 4px); background: color-mix(in oklab, var(--site-accent) 12%, transparent); }
.ws-countdown-grid strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.ws-countdown-grid span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--site-muted); }
.ws-countdown-ended { margin: 10px 0 0; font-weight: 600; }

/* FAQ */
.ws-faq { display: grid; gap: 8px; }
.ws-faq-item { border-radius: var(--site-radius); background: var(--site-surface); border: 1px solid color-mix(in oklab, var(--site-text) 9%, transparent); }
.ws-faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; font-weight: 500; list-style: none; }
.ws-faq-item summary::-webkit-details-marker { display: none; }
.ws-faq-item summary span { transition: transform .2s; display: grid; }
.ws-faq-item[open] summary span { transform: rotate(45deg); }
.ws-faq-item p { margin: 0; padding: 0 16px 14px; color: var(--site-muted); font-size: 14px; }

/* Branding + empty */
.ws-branding { margin: 22px auto 0; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--site-text, #0E1A15); background: color-mix(in oklab, var(--site-surface, #fff) 70%, transparent); border: 1px solid color-mix(in oklab, var(--site-text, #0E1A15) 10%, transparent); backdrop-filter: blur(6px); opacity: .85; }
.ws-branding:hover { opacity: 1; }
.ws-branding svg { width: 16px !important; height: 14px !important; color: #0BC284; }
.ws-empty { padding: 40px 16px; text-align: center; color: var(--site-muted); border: 1.5px dashed color-mix(in oklab, var(--site-text) 18%, transparent); border-radius: var(--site-radius); }

/* System pages (gate / 404 / sensitive) */
.ws-system { --site-text: #0E1A15; --site-muted: #56655E; --site-accent: #0BC284; --site-accent-text: #fff; --site-surface: #fff; --site-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; font-family: "Poppins", system-ui, sans-serif; color: #0E1A15; background: radial-gradient(90% 60% at 50% 0%, #D6FAEA 0%, #F6FAF8 55%, #FFFFFF 100%); }
.ws-system main { min-height: 0; }
.ws-system-card { width: 100%; max-width: 400px; padding: 32px 28px; text-align: center; background: #fff; border: 1px solid #E3E9E6; border-radius: 22px; box-shadow: 0 30px 60px -30px rgb(8 50 36 / .35); }
.ws-system-card h1 { margin: 0; font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; }
.ws-system-card p { margin: 8px 0 0; color: #56655E; font-size: 14px; }
.ws-system-icon { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 16px; display: grid; place-items: center; background: #EAFDF5; color: #067A53; }
.ws-system-icon svg { width: 24px; height: 24px; }
.ws-system-links { margin-top: 18px; font-size: 14px; color: #6B7280; }
.ws-system-links a { color: #067A53; font-weight: 600; text-decoration: none; }
.ws-system-links a:hover { text-decoration: underline; }
.ws-brand-icon svg { width: 32px; height: 26px; }
.ws-gate-form { margin-top: 18px; display: grid; gap: 10px; }
.ws-gate-form .ws-submit { width: 100%; }
.ws-error { margin: 0 !important; color: #C93434 !important; font-size: 13px !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 420px) { .ws-capture-row { flex-direction: column; } .ws-capture-row .ws-input { flex: none; width: 100%; } .ws-submit { width: 100%; } }
.ws-system a.ws-submit, .ws-branding { text-decoration: none; }


/* ==========================================================================
   v2 premium layer: cover profiles, glass cards, tiles, highlights, quotes
   ========================================================================== */
.ws-dark { color-scheme: dark; }
.ws-profile-cover { margin: -44px -18px 6px; gap: 10px; }
.ws-cover { width: 100%; height: 190px; background: var(--site-cover, none); background-size: cover; background-position: center; border-radius: 0 0 34px 34px; position: relative; overflow: hidden; }
.ws-cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 80% 0%, rgb(255 255 255 / .28), transparent 60%); pointer-events: none; }
.ws-light .ws-cover:not([style]) { background: var(--site-cover); }
.ws-profile-cover .ws-avatar { position: relative; z-index: 1; width: 112px; height: 112px; margin-top: -64px; font-size: 2.3rem; font-family: var(--site-heading); font-weight: 700; box-shadow: 0 0 0 5px var(--site-bg-base), 0 18px 40px -16px rgb(0 0 0 / .45); background: linear-gradient(145deg, color-mix(in oklab, var(--site-accent) 70%, #000), var(--site-accent)); color: var(--site-accent-text); }
.ws-profile-cover .ws-profile-text { padding: 0 18px; }
.ws-profile-cover .ws-bio { margin: 6px auto 0; }
.ws-profile-hero .ws-avatar { width: 128px; height: 128px; }
.ws-profile-hero .ws-name { font-size: 2rem; }

.ws-btn-glass .ws-button { background: color-mix(in oklab, var(--site-surface) 100%, transparent); color: var(--site-text); border: 1px solid color-mix(in oklab, var(--site-text) 12%, transparent); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: inset 0 1px 0 rgb(255 255 255 / .08), 0 10px 30px -18px rgb(0 0 0 / .5); }
.ws-btn-glass .ws-button:hover { background: color-mix(in oklab, var(--site-text) 10%, transparent); border-color: color-mix(in oklab, var(--site-accent) 45%, transparent); }
.ws-button-icon { width: 34px; height: 34px; margin: -4px 0 -4px -6px; border-radius: calc(var(--site-radius) - 6px); background: color-mix(in oklab, currentColor 10%, transparent); opacity: 1; }
.ws-button-icon svg { width: 17px; height: 17px; }
.ws-button-featured { position: relative; overflow: hidden; }
.ws-button-featured::after { content: ""; position: absolute; top: -50%; bottom: -50%; left: -30%; width: 30%; transform: rotate(18deg); background: linear-gradient(90deg, transparent, rgb(255 255 255 / .35), transparent); animation: ws-sheen 4.5s ease-in-out infinite; }
@keyframes ws-sheen { 0%, 60% { left: -40%; } 100% { left: 130%; } }

.ws-card-glass .ws-card, .ws-card-glass .ws-faq-item, .ws-card-glass .ws-quote, .ws-card-glass .ws-stats { background: var(--site-surface); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-color: color-mix(in oklab, var(--site-text) 11%, transparent); }
.ws-card { border-radius: calc(var(--site-radius) + 6px); padding: 22px; }
.ws-card-title { font-family: var(--site-heading); font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; }
.ws-dark .ws-input { background: rgb(255 255 255 / .08); color: var(--site-text); border-color: rgb(255 255 255 / .14); }
.ws-dark .ws-input::placeholder { color: color-mix(in oklab, var(--site-text) 50%, transparent); }
.ws-dark .ws-social:hover { background: rgb(255 255 255 / .08); }
.ws-social { background: color-mix(in oklab, var(--site-text) 6%, transparent); }

/* Tiles */
.ws-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ws-tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 124px; padding: 14px; border-radius: calc(var(--site-radius) + 2px); overflow: hidden; transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s; isolation: isolate; }
a.ws-tile:hover { transform: translateY(-3px); }
.ws-tile-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; }
.ws-tile-text { display: grid; gap: 2px; }
.ws-tile-text b { font-family: var(--site-heading); font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.ws-tile-text small { font-size: 12.5px; opacity: .72; font-weight: 600; }
.ws-tile-arrow { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .18); }
.ws-tile-arrow svg { width: 14px; height: 14px; }
.ws-tiles-gradient .ws-tile { color: #fff; box-shadow: 0 14px 30px -18px rgb(0 0 0 / .5); }
.ws-tiles-gradient .ws-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(90% 90% at 100% 0%, rgb(255 255 255 / .35), transparent 55%), linear-gradient(150deg, color-mix(in oklab, var(--site-accent) 88%, #fff), color-mix(in oklab, var(--site-accent) 70%, #000)); }
.ws-tiles-gradient .ws-tile:nth-child(4n+2)::before { background: radial-gradient(90% 90% at 100% 0%, rgb(255 255 255 / .3), transparent 55%), linear-gradient(150deg, color-mix(in oklab, var(--site-text) 80%, var(--site-accent)), var(--site-text)); }
.ws-tiles-gradient .ws-tile:nth-child(4n+3)::before { background: radial-gradient(90% 90% at 100% 0%, rgb(255 255 255 / .3), transparent 55%), linear-gradient(150deg, color-mix(in oklab, var(--site-accent) 55%, #7C5CFF), color-mix(in oklab, var(--site-accent) 35%, #3A1FB0)); }
.ws-tiles-gradient .ws-tile-icon { background: rgb(255 255 255 / .18); }
.ws-tiles-gradient .ws-tile:nth-child(4n+2) { color: var(--site-bg-base); }
.ws-dark .ws-tiles-gradient .ws-tile:nth-child(4n+2) { color: #0A0B0B; }
.ws-tiles-surface .ws-tile { background: var(--site-surface); border: 1px solid color-mix(in oklab, var(--site-text) 9%, transparent); box-shadow: 0 12px 30px -22px rgb(0 0 0 / .4); }
.ws-tiles-surface .ws-tile-icon { background: color-mix(in oklab, var(--site-accent) 16%, transparent); color: var(--site-accent); }
.ws-tiles-surface .ws-tile-arrow { background: color-mix(in oklab, var(--site-text) 7%, transparent); }
.ws-tiles-outline .ws-tile { border: 1.5px solid color-mix(in oklab, var(--site-text) 22%, transparent); }
.ws-tiles-outline .ws-tile-icon { border: 1.5px solid currentColor; }
.ws-card-glass .ws-tiles-surface .ws-tile { backdrop-filter: blur(16px); }

/* Highlights */
.ws-stats { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 4px; padding: 16px 8px; border-radius: calc(var(--site-radius) + 6px); background: var(--site-surface); border: 1px solid color-mix(in oklab, var(--site-text) 9%, transparent); text-align: center; }
.ws-stats > div { display: grid; gap: 2px; position: relative; }
.ws-stats > div + div::before { content: ""; position: absolute; left: -2px; top: 12%; bottom: 12%; width: 1px; background: color-mix(in oklab, var(--site-text) 12%, transparent); }
.ws-stats strong { font-family: var(--site-heading); font-size: 1.65rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; }
.ws-stats span { font-size: 12px; font-weight: 600; color: var(--site-muted); text-transform: uppercase; letter-spacing: .06em; }

/* Quote */
.ws-quote { margin: 0; padding: 22px 22px 20px; border-radius: calc(var(--site-radius) + 6px); background: var(--site-surface); border: 1px solid color-mix(in oklab, var(--site-text) 9%, transparent); position: relative; }
.ws-quote-mark { width: 30px !important; height: 30px !important; color: var(--site-accent); margin-bottom: 6px; }
.ws-quote blockquote { margin: 0; font-family: var(--site-heading); font-size: 1.15rem; font-weight: 600; line-height: 1.4; letter-spacing: -0.015em; }
.ws-heading-serif .ws-quote blockquote { font-style: italic; font-weight: 400; font-size: 1.35rem; }
.ws-quote figcaption { margin-top: 12px; font-size: 13px; color: var(--site-muted); }
.ws-quote figcaption b { color: var(--site-text); }

.ws-dark .ws-branding { background: rgb(255 255 255 / .08); color: var(--site-text); border-color: rgb(255 255 255 / .12); }
@media (min-width: 720px) { .ws-cover { height: 220px; border-radius: 0 0 40px 40px; } .ws-page .ws-profile-cover { margin-top: -44px; } }

/* ---- Weesify Forms (hosted, embedded, builder canvas) ---- */
.wf { display: grid; gap: 18px; text-align: left; }
.wf-head { display: grid; gap: 8px; }
.wf-title { font-family: var(--site-heading); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); line-height: 1.08; letter-spacing: -0.03em; color: var(--site-text); margin: 0; }
.wf-intro { color: var(--site-muted); font-size: 15px; line-height: 1.55; margin: 0; white-space: pre-line; }
.wf-progress { height: 6px; border-radius: 999px; background: color-mix(in oklab, var(--site-text) 10%, transparent); overflow: hidden; }
.wf-progress span { display: block; height: 100%; border-radius: inherit; background: var(--site-accent); transition: width .35s cubic-bezier(.2,.8,.2,1); }
.wf-stepcount { margin: -8px 0 0; font-size: 12px; font-weight: 600; color: var(--site-muted); letter-spacing: .02em; }
.wf:not(.wf-js) .wf-stepcount, .wf:not(.wf-js) .wf-progress { display: none; }
.wf-step { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 14px; }
.wf-step[hidden] { display: none; }
.wf-step-title { font-family: var(--site-heading); font-size: 1.2rem; font-weight: 700; color: var(--site-text); padding: 0; margin-bottom: 4px; }
.wf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.wf-field { grid-column: 1 / -1; display: grid; gap: 6px; min-width: 0; position: relative; }
.wf-field.wf-w-half { grid-column: span 1; }
@media (max-width: 520px) { .wf-field.wf-w-half { grid-column: 1 / -1; } }
.wf-field[hidden] { display: none; }
.wf-label { font-weight: 600; font-size: 14px; color: var(--site-text); }
.wf-req { font-style: normal; color: var(--site-accent); margin-left: 3px; }
.wf-help { font-size: 12.5px; color: var(--site-muted); margin: -2px 0 2px; line-height: 1.45; }
.wf-input { box-sizing: border-box; width: 100%; height: 48px; padding: 0 14px; border-radius: calc(var(--site-radius) - 4px); border: 1px solid color-mix(in oklab, var(--site-text) 16%, transparent); background: color-mix(in oklab, var(--site-surface) 85%, white); color: #0E1A15; font: inherit; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.ws-dark .wf-input { background: rgb(255 255 255 / .06); color: var(--site-text); border-color: rgb(255 255 255 / .16); }
.wf-input::placeholder { color: color-mix(in oklab, var(--site-muted) 80%, transparent); }
.wf-input:focus { outline: none; border-color: var(--site-accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--site-accent) 22%, transparent); }
.wf-textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.wf-select-wrap { position: relative; }
.wf-select-wrap::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--site-muted); border-bottom: 2px solid var(--site-muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.wf-select { appearance: none; padding-right: 40px; }
.wf-choices { display: grid; gap: 8px; }
.wf-choice { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px; border-radius: calc(var(--site-radius) - 4px); border: 1px solid color-mix(in oklab, var(--site-text) 14%, transparent); background: color-mix(in oklab, var(--site-surface) 90%, transparent); cursor: pointer; font-size: 15px; color: var(--site-text); transition: border-color .15s, background .15s; }
.wf-choice input { position: absolute; opacity: 0; pointer-events: none; }
.wf-choice-mark { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid color-mix(in oklab, var(--site-text) 30%, transparent); display: grid; place-items: center; transition: all .15s; }
.wf-t-checkboxes .wf-choice-mark { border-radius: 6px; }
.wf-choice:has(input:checked) { border-color: var(--site-accent); background: color-mix(in oklab, var(--site-accent) 10%, var(--site-surface)); }
.wf-choice input:checked + .wf-choice-mark { border-color: var(--site-accent); background: var(--site-accent); box-shadow: inset 0 0 0 3px var(--site-surface); }
.wf-t-checkboxes .wf-choice input:checked + .wf-choice-mark { box-shadow: none; background: var(--site-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.wf-choice:has(input:focus-visible) { box-shadow: 0 0 0 4px color-mix(in oklab, var(--site-accent) 22%, transparent); }
.wf-rating { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.wf-rating input { position: absolute; opacity: 0; pointer-events: none; }
.wf-rating label { cursor: pointer; color: color-mix(in oklab, var(--site-text) 22%, transparent); transition: color .12s, transform .12s; }
.wf-rating label svg { width: 34px; height: 34px; fill: currentColor; }
.wf-rating label:hover, .wf-rating label:hover ~ label, .wf-rating input:checked ~ label { color: #F5B82E; }
.wf-rating label:hover { transform: scale(1.08); }
.wf-rating input:focus-visible + label { outline: 3px solid color-mix(in oklab, var(--site-accent) 45%, transparent); border-radius: 8px; }
.wf-consent { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: calc(var(--site-radius) - 4px); background: color-mix(in oklab, var(--site-accent) 7%, transparent); font-size: 13.5px; line-height: 1.45; color: var(--site-text); cursor: pointer; }
.wf-consent input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--site-accent); flex: none; }
.wf-heading { font-family: var(--site-heading); font-size: 1.25rem; margin: 8px 0 0; color: var(--site-text); letter-spacing: -0.02em; }
.wf-paragraph { margin: 0; color: var(--site-muted); line-height: 1.55; white-space: pre-line; }
.wf-break { display: flex; align-items: center; gap: 10px; color: var(--site-muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.wf-break::before, .wf-break::after { content: ""; flex: 1; height: 1px; background: color-mix(in oklab, var(--site-text) 14%, transparent); }
.wf-break span { display: inline-flex; align-items: center; gap: 6px; }
.wf-break svg { width: 14px; height: 14px; }
.wf-field.has-error .wf-input, .wf-field.has-error .wf-choice { border-color: #E5484D; }
.wf-error { margin: 0; font-size: 12.5px; color: #E5484D; font-weight: 600; }
.wf-alert { display: flex; gap: 8px; align-items: center; padding: 12px 14px; border-radius: 12px; background: rgb(229 72 77 / .1); color: #C4333A; font-size: 14px; font-weight: 600; }
.wf-alert svg { width: 18px; height: 18px; flex: none; }
.wf-nav { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin-top: 4px; }
.wf-nav .ws-submit { min-width: 140px; height: 50px; gap: 8px; }
.wf-nav .ws-submit svg { width: 16px; height: 16px; }
.wf-submit.is-sending { opacity: .7; }
.wf-back { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; background: none; border: 0; font: inherit; font-weight: 600; color: var(--site-muted); cursor: pointer; padding: 10px 4px; }
.wf-back svg { width: 16px; height: 16px; }
.wf-back[hidden], .wf-next[hidden], .wf-submit[hidden] { display: none; }
@media (max-width: 420px) { .wf-nav .ws-submit { flex: 1; } }
.wf-logic-badge { position: absolute; top: -9px; right: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; color: #fff; background: #7C5CFF; z-index: 2; }
.wf-logic-badge svg { width: 11px; height: 11px; }

/* Hosted form page */
.wf-page { min-height: 100dvh; background: var(--site-bg); color: var(--site-text); font-family: var(--site-font); }
.wf-page-cover { height: clamp(120px, 22vw, 200px); background: var(--site-cover); }
.wf-page-inner { width: min(640px, 100% - 28px); margin: calc(-1 * clamp(60px, 10vw, 100px)) auto 40px; }
.wf-page-card { padding: clamp(22px, 5vw, 40px); border-radius: calc(var(--site-radius) + 10px); background: var(--site-surface); border: 1px solid color-mix(in oklab, var(--site-text) 8%, transparent); box-shadow: 0 30px 80px -40px rgb(0 0 0 / .45); backdrop-filter: blur(12px); }
.wf-page-by { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 13px; font-weight: 600; color: var(--site-muted); }
.wf-page-by i { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-style: normal; color: var(--site-accent-text); background: var(--site-accent); font-weight: 800; }
.wf-done { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 20px 0; }
.wf-done-icon { width: 72px; height: 72px; border-radius: 24px; display: grid; place-items: center; background: var(--site-accent); color: var(--site-accent-text); box-shadow: 0 20px 40px -20px var(--site-accent); animation: wf-pop .5s cubic-bezier(.2,1.4,.4,1); }
.wf-done-icon svg { width: 34px; height: 34px; }
.wf-done h1 { font-family: var(--site-heading); font-size: 1.8rem; margin: 6px 0 0; letter-spacing: -0.03em; }
.wf-done p { color: var(--site-muted); margin: 0; max-width: 44ch; line-height: 1.55; white-space: pre-line; }
.wf-done .wf-note { margin-top: 8px; padding: 10px 14px; border-radius: 12px; background: color-mix(in oklab, var(--site-accent) 10%, transparent); color: var(--site-text); font-size: 14px; font-weight: 600; }
@keyframes wf-pop { from { transform: scale(.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wf-done-icon { animation: none; } .wf-progress span { transition: none; } }
.ws-block-form .ws-card { text-align: left; }

/* ---- Module actions: premium trigger card + sheet (forms today; store, bookings, courses next) ---- */
.ws-action-card { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: calc(var(--site-radius) + 4px); background: var(--site-surface); color: var(--site-text); border: 1px solid color-mix(in oklab, var(--site-text) 10%, transparent); box-shadow: 0 14px 34px -22px rgb(0 0 0 / .45); overflow: hidden; isolation: isolate; transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s; text-decoration: none; }
.ws-action-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 140% at 0% 0%, color-mix(in oklab, var(--site-accent) 22%, transparent), transparent 55%); }
.ws-action-card:hover { transform: translateY(-2px); box-shadow: 0 22px 44px -24px rgb(0 0 0 / .5); }
.ws-action-card:focus-visible { outline: 3px solid color-mix(in oklab, var(--site-accent) 60%, transparent); outline-offset: 2px; }
.ws-action-icon { width: 48px; height: 48px; flex: none; border-radius: 15px; display: grid; place-items: center; background: var(--site-accent); color: var(--site-accent-text); box-shadow: 0 10px 22px -12px var(--site-accent); }
.ws-action-icon svg { width: 22px; height: 22px; }
.ws-action-text { flex: 1; min-width: 0; display: grid; gap: 2px; text-align: left; }
.ws-action-text b { font-family: var(--site-heading); font-size: 16px; letter-spacing: -0.01em; }
.ws-action-text small { color: var(--site-muted); font-size: 12.5px; font-weight: 500; }
.ws-action-go { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in oklab, var(--site-text) 7%, transparent); transition: transform .2s; }
.ws-action-go svg { width: 16px; height: 16px; }
.ws-action-card:hover .ws-action-go { transform: translateX(3px); background: var(--site-accent); color: var(--site-accent-text); }

.ws-sheet { position: fixed; inset: 0; z-index: 100; display: grid; align-items: end; justify-items: center; }
.ws-sheet[hidden] { display: none; }
.ws-sheet-backdrop { position: absolute; inset: 0; background: rgb(8 10 9 / .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .28s ease; }
.ws-sheet-panel { position: relative; width: min(560px, 100%); max-height: min(92dvh, 900px); overflow-y: auto; overscroll-behavior: contain; background: var(--site-bg-base); background-image: var(--site-bg); color: var(--site-text); font-family: var(--site-font); border-radius: 28px 28px 0 0; box-shadow: 0 -30px 80px -30px rgb(0 0 0 / .6); transform: translateY(40px); opacity: 0; transition: transform .38s cubic-bezier(.2,.9,.25,1), opacity .25s ease; padding-bottom: env(safe-area-inset-bottom); }
.ws-sheet.is-open .ws-sheet-backdrop { opacity: 1; }
.ws-sheet.is-open .ws-sheet-panel { transform: none; opacity: 1; }
@media (min-width: 640px) { .ws-sheet { align-items: center; padding: 24px; } .ws-sheet-panel { border-radius: 28px; transform: translateY(16px) scale(.98); } }
.ws-sheet-grab { display: block; width: 44px; height: 5px; border-radius: 999px; margin: 10px auto 0; background: color-mix(in oklab, var(--site-text) 22%, transparent); }
@media (min-width: 640px) { .ws-sheet-grab { display: none; } }
.ws-sheet-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px 16px; background: linear-gradient(var(--site-bg-base) 70%, color-mix(in oklab, var(--site-bg-base) 0%, transparent)); }
.ws-sheet-head::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--site-cover); opacity: .9; }
.ws-sheet-icon { width: 46px; height: 46px; flex: none; border-radius: 15px; display: grid; place-items: center; background: var(--site-accent); color: var(--site-accent-text); box-shadow: 0 12px 24px -14px var(--site-accent); }
.ws-sheet-icon svg { width: 22px; height: 22px; }
.ws-sheet-titles { flex: 1; min-width: 0; }
.ws-sheet-titles h2 { margin: 2px 0 4px; font-family: var(--site-heading); font-size: 1.35rem; line-height: 1.15; letter-spacing: -0.025em; }
.ws-sheet-titles p { margin: 0; color: var(--site-muted); font-size: 14px; line-height: 1.5; white-space: pre-line; }
.ws-sheet-close { width: 38px; height: 38px; flex: none; border-radius: 50%; border: 0; display: grid; place-items: center; background: color-mix(in oklab, var(--site-text) 8%, transparent); color: var(--site-text); cursor: pointer; }
.ws-sheet-close:hover { background: color-mix(in oklab, var(--site-text) 14%, transparent); }
.ws-sheet-close svg { width: 18px; height: 18px; }
.ws-sheet-body { padding: 4px 20px 24px; }
.ws-sheet-body .wf { background: var(--site-surface); padding: 18px; border-radius: calc(var(--site-radius) + 4px); border: 1px solid color-mix(in oklab, var(--site-text) 8%, transparent); }
html.ws-sheet-lock, html.ws-sheet-lock body { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .ws-sheet-panel, .ws-sheet-backdrop { transition: none; } }
.ws-action-thumb { width: 56px; height: 56px; flex: none; border-radius: 14px; object-fit: cover; box-shadow: 0 10px 22px -14px rgb(0 0 0 / .5); }
.ws-action-meta { flex: none; padding: 8px 12px; border-radius: 999px; background: var(--site-accent); color: var(--site-accent-text); font-weight: 800; font-size: 13.5px; box-shadow: 0 10px 20px -12px var(--site-accent); }

/* ---- Shop: product details + checkout ---- */
.shop { display: grid; gap: 14px; text-align: left; }
.shop-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: calc(var(--site-radius) + 2px); box-shadow: 0 20px 44px -28px rgb(0 0 0 / .55); }
.shop-name { margin: 4px 0 0; font-family: var(--site-heading); font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); line-height: 1.08; letter-spacing: -0.03em; color: var(--site-text); }
.shop-tagline { margin: -6px 0 0; color: var(--site-muted); font-size: 15px; }
.shop-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0; }
.shop-price b { font-family: var(--site-heading); font-size: 1.7rem; letter-spacing: -0.03em; color: var(--site-text); }
.shop-price s { color: var(--site-muted); font-size: 15px; }
.shop-save { padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; background: color-mix(in oklab, var(--site-accent) 16%, transparent); color: var(--site-text); }
.shop-desc { color: var(--site-text); opacity: .86; line-height: 1.6; white-space: pre-line; font-size: 15px; }
.shop-includes { list-style: none; margin: 0; padding: 14px; display: grid; gap: 9px; border-radius: calc(var(--site-radius) - 2px); background: color-mix(in oklab, var(--site-accent) 7%, transparent); }
.shop-includes li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; font-weight: 600; color: var(--site-text); }
.shop-includes svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--site-accent); stroke-width: 3; }
.shop-form { display: grid; gap: 14px; padding-top: 6px; border-top: 1px solid color-mix(in oklab, var(--site-text) 10%, transparent); }
.shop-buy { width: 100%; height: 54px; gap: 10px; font-size: 16px; }
.shop-buy svg { width: 18px; height: 18px; }
.shop-trust { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; font-size: 12.5px; color: var(--site-muted); text-align: center; }
.shop-trust svg { width: 14px; height: 14px; }
.shop-delivery-msg { margin: 6px 0 0; padding: 14px; border-radius: 14px; background: color-mix(in oklab, var(--site-accent) 8%, transparent); white-space: pre-line; line-height: 1.55; }
.shop-dl-title { margin: 18px 0 8px; font-family: var(--site-heading); font-size: 1.1rem; }
.shop-dl { display: grid; gap: 10px; }

/* Checkout in the sheet (ADR-0014): the details form gives way to Weesify's own pay page in a frame. */
.shop-payframe { display: block; width: 100%; min-height: 420px; border: 0; border-radius: calc(var(--site-radius) + 2px); background: transparent; }
.shop.is-paying > :not(.shop-payframe) { display: none; }
body.is-framed { background: transparent; }
body.is-framed .wf-page { min-height: 0; padding: 0; background: transparent; }
body.is-framed .wf-page-inner { padding: 0; }
body.is-framed .wf-page-card { box-shadow: none; padding: 4px 2px 12px; background: transparent; border: 0; }

/* Weesify pay page */
.pay { display: grid; gap: 16px; }
.pay-summary { display: grid; gap: 4px; padding: 16px 18px; border-radius: calc(var(--site-radius) + 2px); background: color-mix(in oklab, var(--site-accent) 7%, var(--site-card)); border: 1px solid color-mix(in oklab, var(--site-accent) 18%, transparent); }
.pay-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--site-text); }
.pay-line b { font-family: var(--site-heading); font-size: 1.6rem; letter-spacing: -0.03em; white-space: nowrap; }
.pay-line.is-muted { color: var(--site-muted); font-size: 13px; }
.pay-test { display: flex; gap: 8px; align-items: center; margin: 0; padding: 9px 12px; border-radius: 12px; background: #FFF6DB; color: #7A5A00; font-size: 13px; font-weight: 600; }
.pay-test svg, .pay-alert svg { width: 16px; height: 16px; flex: none; }
.pay-alert { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #FDECEC; color: #9B1C1C; font-size: 14px; }
.pay-alert[hidden] { display: none; }
.pay-form { display: grid; gap: 14px; }
.pay-element { min-height: 140px; }
.pay-card { font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.pay-hint { margin: -4px 0 0; text-align: center; color: var(--site-muted); font-size: 12.5px; }
.shop-buy.is-busy { opacity: .7; pointer-events: none; }

/* Reporting (ADR-0017) */
.ws-report-link { display: block; width: max-content; margin: 10px auto 0; font-size: 12px; opacity: .55; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.ws-report-link:hover { opacity: .9; }
.ws-report { display: grid; gap: 14px; margin-top: 22px; text-align: left; }
.ws-field { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.ws-field small { font-weight: 500; opacity: .7; }
.ws-field textarea.ws-input { height: auto; padding: 12px 14px; resize: vertical; }
.ws-field select.ws-input { appearance: auto; }
.ws-error { color: #D93A3A; font-weight: 600; opacity: 1 !important; }
.ws-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Bookings (ADR-0022): day chips, time grid, booking card ------------------------------------------------------- */
.bk { display: grid; gap: 12px; margin: 4px 0 18px; }
.bk-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--site-muted); }
.bk-meta svg { width: 15px; height: 15px; }
.bk-meta span { opacity: .5; }
.bk-days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.bk-day { flex: none; scroll-snap-align: start; cursor: pointer; }
.bk-day input { position: absolute; opacity: 0; pointer-events: none; }
.bk-day span { display: grid; justify-items: center; gap: 0; width: 60px; padding: 9px 0; border-radius: calc(var(--site-radius) + 2px); border: 1.5px solid color-mix(in oklab, var(--site-text) 14%, transparent); background: var(--site-surface); color: var(--site-text); transition: border-color .15s, background .15s, transform .15s; }
.bk-day span b { font-size: 20px; line-height: 1.15; font-weight: 800; }
.bk-day span small { font-size: 11px; color: var(--site-muted); font-weight: 600; }
.bk-day:hover span { transform: translateY(-1px); }
.bk-day input:checked + span { background: var(--site-accent); border-color: var(--site-accent); color: var(--site-accent-text); }
.bk-day input:checked + span small { color: inherit; opacity: .85; }
.bk-day input:focus-visible + span { outline: 3px solid color-mix(in oklab, var(--site-accent) 45%, transparent); outline-offset: 2px; }
.bk-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.bk-times-head { grid-column: 1 / -1; margin: 4px 0 0; font-size: 13px; font-weight: 700; color: var(--site-heading); }
@supports selector(:has(a)) { .bk-times-head { display: none; } }
.bk-time { cursor: pointer; }
.bk-time input { position: absolute; opacity: 0; pointer-events: none; }
.bk-time span { display: grid; justify-items: center; padding: 11px 6px; border-radius: calc(var(--site-radius) - 2px); border: 1.5px solid color-mix(in oklab, var(--site-text) 14%, transparent); background: var(--site-surface); font-weight: 700; font-size: 15px; color: var(--site-text); transition: border-color .15s, background .15s; }
.bk-time span small { font-size: 11px; font-weight: 600; color: var(--site-muted); }
.bk-time:hover span { border-color: var(--site-accent); }
.bk-time input:checked + span { background: var(--site-accent); border-color: var(--site-accent); color: var(--site-accent-text); }
.bk-time input:checked + span small { color: inherit; }
.bk-time input:focus-visible + span { outline: 3px solid color-mix(in oklab, var(--site-accent) 45%, transparent); outline-offset: 2px; }
.bk.has-error .bk-times { outline: 2px solid #D93A3A; outline-offset: 6px; border-radius: 8px; }
.bk-card { display: grid; gap: 8px; margin: 16px 0; padding: 16px 18px; border-radius: calc(var(--site-radius) + 4px); border: 1px solid color-mix(in oklab, var(--site-text) 12%, transparent); background: var(--site-surface); color: var(--site-text); font-size: 15px; }
.bk-card b { font-size: 18px; color: var(--site-heading); }
.bk-card span { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bk-card svg { width: 16px; height: 16px; color: var(--site-muted); flex: none; }
.bk-card small { color: var(--site-muted); }
.bk-card a { color: var(--site-accent); font-weight: 700; }
.bk-cancel { margin-top: 14px; }
.bk-cancel summary { cursor: pointer; font-size: 14px; color: var(--site-muted); font-weight: 600; }
.bk-cancel details[open] summary { margin-bottom: 10px; }

/* Courses (ADR-0023): curriculum on the sales page, the student area, certificates ------------------------------- */
.cs-curr { margin: 6px 0 20px; padding: 16px; border-radius: calc(var(--site-radius) + 4px); border: 1px solid color-mix(in oklab, var(--site-text) 10%, transparent); background: color-mix(in oklab, var(--site-surface) 80%, transparent); }
.cs-curr-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 0 8px; }
.cs-curr-head b { color: var(--site-heading); font-size: 16px; } .cs-curr-head span { font-size: 13px; color: var(--site-muted); }
.cs-curr-section { margin: 12px 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--site-muted); }
.cs-curr-list { list-style: none; margin: 0; padding: 0; display: grid; }
.cs-curr-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid color-mix(in oklab, var(--site-text) 8%, transparent); font-size: 14.5px; color: var(--site-text); }
.cs-curr-list li:first-child { border-top: 0; }
.cs-curr-icon svg { width: 16px; height: 16px; color: var(--site-muted); display: block; }
.cs-curr-title { flex: 1; min-width: 0; }
.cs-curr-list small { color: var(--site-muted); font-size: 12px; }
.cs-curr-preview { font-size: 12.5px; font-weight: 700; color: var(--site-accent); text-decoration: none; padding: 3px 9px; border-radius: 99px; background: color-mix(in oklab, var(--site-accent) 12%, transparent); }
.cs-curr-by { margin: 10px 0 0; font-size: 13px; color: var(--site-muted); }
.cs-access { margin-top: 12px; font-size: 13.5px; }
.cs-access summary { cursor: pointer; color: var(--site-muted); font-weight: 600; }
.cs-access-form { display: grid; gap: 8px; margin-top: 10px; }

.lr { min-height: 100dvh; background: var(--site-bg-base); color: var(--site-text); font-family: var(--site-font); }
.lr-bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 14px; padding: 12px clamp(14px, 3vw, 28px); background: color-mix(in oklab, var(--site-surface) 92%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid color-mix(in oklab, var(--site-text) 10%, transparent); }
.lr-bar-title { display: grid; flex: 1; min-width: 0; }
.lr-bar-title small { font-size: 11.5px; color: var(--site-muted); font-weight: 600; }
.lr-bar-title b { color: var(--site-heading); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr-progress { width: min(200px, 30vw); height: 8px; border-radius: 99px; background: color-mix(in oklab, var(--site-text) 10%, transparent); overflow: hidden; }
.lr-progress span { display: block; height: 100%; border-radius: inherit; background: var(--site-accent); transition: width .5s; }
.lr-pct { font-weight: 800; font-size: 13px; color: var(--site-heading); min-width: 38px; text-align: right; }
.lr-cta { font-weight: 800; font-size: 14px; padding: 9px 16px; border-radius: 99px; background: var(--site-accent); color: var(--site-accent-text); text-decoration: none; }
.lr-body { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 1180px; margin: 0 auto; gap: 24px; padding: 20px clamp(14px, 3vw, 28px) 60px; }
@media (min-width: 960px) { .lr-body { grid-template-columns: 300px minmax(0, 1fr); } .lr-nav { position: sticky; top: 76px; align-self: start; max-height: calc(100dvh - 96px); overflow: auto; } }
.lr-nav-toggle { border-radius: calc(var(--site-radius) + 4px); background: var(--site-surface); border: 1px solid color-mix(in oklab, var(--site-text) 10%, transparent); padding: 6px; }
.lr-nav-toggle summary { display: flex; justify-content: space-between; padding: 10px 12px; font-weight: 800; cursor: pointer; color: var(--site-heading); list-style: none; }
.lr-nav-toggle summary span { color: var(--site-muted); font-weight: 600; font-size: 13px; }
.lr-nav-section { margin: 10px 12px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--site-muted); }
.lr-nav ol { list-style: none; margin: 0; padding: 0; }
.lr-nav li a, .lr-nav-item { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border-radius: 12px; color: var(--site-text); text-decoration: none; font-size: 14px; }
.lr-nav li a:hover { background: color-mix(in oklab, var(--site-text) 6%, transparent); }
.lr-nav li.is-current a { background: color-mix(in oklab, var(--site-accent) 14%, transparent); font-weight: 700; }
.lr-nav li i { flex: none; width: 22px; height: 22px; border-radius: 99px; display: grid; place-items: center; border: 1.5px solid color-mix(in oklab, var(--site-text) 20%, transparent); }
.lr-nav li i svg { width: 12px; height: 12px; }
.lr-nav li.is-done i { background: var(--site-accent); border-color: var(--site-accent); color: var(--site-accent-text); }
.lr-nav li.is-locked { opacity: .55; }
.lr-nav li small { display: block; font-size: 11.5px; color: var(--site-muted); }
.lr-main { min-width: 0; }
.lr-kicker { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--site-accent); }
.lr-title { margin: 0 0 16px; color: var(--site-heading); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem); letter-spacing: -0.03em; line-height: 1.12; }
.lr-video { position: relative; aspect-ratio: 16 / 9; border-radius: calc(var(--site-radius) + 6px); overflow: hidden; background: #000; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .5); margin-bottom: 22px; }
.lr-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lr-text { font-size: 16.5px; line-height: 1.7; max-width: 70ch; }
.lr-text h2 { font-size: 1.3rem; color: var(--site-heading); margin: 24px 0 8px; }
.lr-text a { color: var(--site-accent); font-weight: 600; }
.lr-text ul { padding-left: 20px; }
.lr-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 32px; padding-top: 20px; border-top: 1px solid color-mix(in oklab, var(--site-text) 10%, transparent); flex-wrap: wrap; }
.lr-btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--site-text); text-decoration: none; padding: 12px 14px; border-radius: 12px; }
.lr-btn svg, .lr-done svg { width: 16px; height: 16px; }
.lr-done { display: inline-flex; align-items: center; gap: 8px; width: auto; padding: 0 22px; }
.lr-empty, .lr-finished { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 40px 20px; border-radius: calc(var(--site-radius) + 6px); background: var(--site-surface); border: 1px solid color-mix(in oklab, var(--site-text) 10%, transparent); margin-bottom: 20px; }
.lr-empty svg { width: 28px; height: 28px; color: var(--site-muted); }
.lr-empty h1, .lr-finished h1 { margin: 6px 0 0; color: var(--site-heading); font-size: 1.5rem; }
.lr-finished span svg { width: 44px; height: 44px; color: var(--site-accent); }
.lr-finished .ws-submit { width: auto; padding: 0 24px; margin-top: 10px; display: inline-flex; align-items: center; text-decoration: none; }
.lr-preview-note { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--site-muted); margin: 0 0 12px; }
.lr-preview-note svg { width: 15px; height: 15px; }
.lr-preview-note a { color: var(--site-accent); font-weight: 700; }

.cert-page { margin: 0; min-height: 100dvh; display: grid; place-items: center; background: radial-gradient(circle at 20% 10%, #EDE7FF, transparent 50%), radial-gradient(circle at 90% 90%, #D8F7EA, transparent 50%), #F7F8F5; font-family: Georgia, 'Times New Roman', serif; color: #14201A; padding: 20px; }
.cert { width: min(900px, 100%); aspect-ratio: 1.414; max-height: 90dvh; background: #fff; border-radius: 14px; box-shadow: 0 50px 100px -40px rgb(20 32 26 / .35); padding: clamp(14px, 2.5vw, 26px); }
.cert-inner { height: 100%; border: 2px solid #D9CFB0; outline: 1px solid #D9CFB0; outline-offset: -8px; border-radius: 8px; display: grid; align-content: center; justify-items: center; text-align: center; padding: 4%; gap: 4px; }
.cert-org { margin: 0; font-family: -apple-system, 'Segoe UI', sans-serif; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: clamp(10px, 1.3vw, 13px); color: #7C5CFF; }
.cert-kicker { margin: 6px 0 14px; font-size: clamp(18px, 3vw, 30px); letter-spacing: .02em; }
.cert-small { margin: 0; font-style: italic; color: #56655E; font-size: clamp(11px, 1.4vw, 15px); }
.cert-name { margin: 6px 0; font-size: clamp(24px, 5vw, 52px); font-weight: 400; border-bottom: 1px solid #D9CFB0; padding: 0 5% 6px; }
.cert-course { margin: 6px 0 16px; font-size: clamp(16px, 2.6vw, 26px); font-weight: 700; }
.cert-meta { display: flex; gap: clamp(14px, 4vw, 48px); flex-wrap: wrap; justify-content: center; font-family: -apple-system, 'Segoe UI', sans-serif; }
.cert-meta span { display: grid; } .cert-meta small { font-size: 11px; color: #8A9690; text-transform: uppercase; letter-spacing: .08em; } .cert-meta b { font-size: clamp(12px, 1.5vw, 15px); }
.cert-void { color: #C0392B; font-weight: 700; font-family: sans-serif; }
.cert-foot { margin: 18px 0 0; font-family: sans-serif; font-size: 11px; color: #8A9690; }
.cert { --cert-accent: #7C5CFF; }
.cert-page { align-content: center; gap: 14px; }
.cert-logo { max-height: clamp(26px, 5vw, 48px); max-width: 40%; object-fit: contain; margin-bottom: 6px; }
.cert-org { color: var(--cert-accent); }
.cert-classic .cert-inner { border-color: color-mix(in oklab, var(--cert-accent) 45%, #D9CFB0); outline-color: color-mix(in oklab, var(--cert-accent) 45%, #D9CFB0); }
.cert-modern { position: relative; overflow: hidden; font-family: -apple-system, 'Segoe UI', sans-serif; }
.cert-modern::before { content: ''; position: absolute; inset: 0 auto 0 0; width: clamp(10px, 2.2vw, 22px); background: var(--cert-accent); }
.cert-modern .cert-inner { border: 0; outline: 0; justify-items: start; text-align: left; padding-left: 9%; }
.cert-modern .cert-kicker { font-weight: 800; letter-spacing: -0.02em; }
.cert-modern .cert-name { font-weight: 800; letter-spacing: -0.03em; padding-left: 0; border-bottom-color: var(--cert-accent); border-bottom-width: 3px; }
.cert-modern .cert-meta { justify-content: flex-start; }
.cert-minimal .cert-inner { border: 0; outline: 0; }
.cert-minimal .cert-kicker::before { content: ''; display: block; width: 56px; height: 3px; margin: 0 auto 14px; background: var(--cert-accent); border-radius: 3px; }
.cert-minimal .cert-name { border-bottom: 0; }
.cert-sign { display: grid; justify-items: center; }
.cert-sign i { font-family: 'Brush Script MT', 'Segoe Script', cursive; font-size: clamp(18px, 2.6vw, 28px); line-height: 1; border-bottom: 1px solid #C9CFCB; padding: 0 12px 2px; color: #14201A; }
.cert-modern .cert-sign { justify-items: start; }
.cert-actions { margin: 0; text-align: center; font-family: -apple-system, 'Segoe UI', sans-serif; }
.cert-actions a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 99px; background: #14201A; color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; }
.cert-actions svg { width: 16px; height: 16px; }
@media print { .cert-page { background: #fff; } .cert { box-shadow: none; } .cert-actions { display: none; } }

/* Course depth (ADR-0041): quizzes, assignments and lesson discussions in the student area ------------------------ */
.lr-note { margin: 0 0 12px; font-size: 14px; color: var(--site-muted); font-weight: 600; }
.lr-quiz, .lr-work { margin-top: 26px; display: grid; gap: 16px; }
.lr-questions { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: q; }
.lr-q { counter-increment: q; padding: 18px; border-radius: calc(var(--site-radius) + 4px); background: var(--site-surface); border: 1px solid color-mix(in oklab, var(--site-text) 10%, transparent); }
.lr-q fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; min-width: 0; }
.lr-q-prompt { margin: 0; padding: 0; display: flex; gap: 10px; align-items: flex-start; font-weight: 700; color: var(--site-heading); font-size: 16px; line-height: 1.4; }
.lr-q-prompt::before { content: counter(q); flex: none; width: 26px; height: 26px; border-radius: 99px; display: grid; place-items: center; font-size: 12.5px; background: color-mix(in oklab, var(--site-accent) 14%, transparent); color: var(--site-accent); }
.lr-q legend.lr-q-prompt { margin-bottom: 12px; }
.lr-q-prompt small { font-weight: 500; color: var(--site-muted); }
.lr-q-mark { margin-left: auto; flex: none; width: 24px; height: 24px; border-radius: 99px; display: grid; place-items: center; }
.lr-q-mark svg { width: 14px; height: 14px; }
.lr-q.is-right { border-color: color-mix(in oklab, #10B981 45%, transparent); }
.lr-q.is-right .lr-q-mark { background: #10B981; color: #fff; }
.lr-q.is-wrong { border-color: color-mix(in oklab, #EF4444 40%, transparent); }
.lr-q.is-wrong .lr-q-mark { background: #EF4444; color: #fff; }
.lr-q-answer { margin: 10px 0 0 36px; font-size: 14px; font-weight: 700; color: var(--site-text); }
.lr-q-why { margin: 6px 0 0 36px; font-size: 14px; color: var(--site-muted); line-height: 1.55; }
.lr-score { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 28px 20px; border-radius: calc(var(--site-radius) + 6px); color: #fff; background: linear-gradient(135deg, #0F766E, #10B981); box-shadow: 0 30px 60px -34px rgb(16 185 129 / .7); }
.lr-score.is-fail { background: linear-gradient(135deg, #7C2D12, #F97316); box-shadow: 0 30px 60px -34px rgb(249 115 22 / .7); }
.lr-score b { font-size: clamp(2.6rem, 2rem + 3vw, 4rem); line-height: 1; letter-spacing: -0.04em; }
.lr-score span { font-weight: 700; opacity: .92; }
.lr-score small { opacity: .85; }
.lr-score .ws-submit { width: auto; padding: 0 22px; margin-top: 8px; display: inline-flex; align-items: center; text-decoration: none; background: #fff; color: #14201A; }
.lr-status { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: calc(var(--site-radius) + 4px); background: var(--site-surface); border: 1px solid color-mix(in oklab, var(--site-text) 10%, transparent); }
.lr-status > svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--site-muted); }
.lr-status b { display: block; color: var(--site-heading); }
.lr-status small { color: var(--site-muted); font-size: 12.5px; }
.lr-status.is-approved { border-color: color-mix(in oklab, #10B981 45%, transparent); background: color-mix(in oklab, #10B981 8%, var(--site-surface)); }
.lr-status.is-approved > svg { color: #10B981; }
.lr-status.is-changes_requested { border-color: color-mix(in oklab, #F59E0B 50%, transparent); background: color-mix(in oklab, #F59E0B 8%, var(--site-surface)); }
.lr-status.is-changes_requested > svg { color: #D97706; }
.lr-feedback { margin: 10px 0 0; padding: 10px 12px; border-left: 3px solid var(--site-accent); border-radius: 6px; background: color-mix(in oklab, var(--site-text) 4%, transparent); white-space: pre-line; font-size: 14.5px; }
.lr-mywork { padding: 14px 16px; border-radius: 12px; background: color-mix(in oklab, var(--site-text) 4%, transparent); }
.lr-mywork small { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--site-muted); }
.lr-mywork p { margin: 4px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.lr-work .lr-btn { justify-self: start; padding-left: 0; }
.lr-work-form { display: grid; gap: 14px; padding: 20px; border-radius: calc(var(--site-radius) + 4px); background: var(--site-surface); border: 1px solid color-mix(in oklab, var(--site-text) 10%, transparent); }
.lr-work-form h2 { margin: 0; font-size: 1.15rem; color: var(--site-heading); }
.lr-work-form .ws-submit, .lr-quiz-form .ws-submit { justify-self: start; }
.lr-quiz-form { display: grid; gap: 16px; }
.lr-disc { margin-top: 40px; padding-top: 24px; border-top: 1px solid color-mix(in oklab, var(--site-text) 10%, transparent); display: grid; gap: 14px; }
.lr-disc h2 { margin: 0; font-size: 1.2rem; color: var(--site-heading); display: flex; align-items: center; gap: 8px; }
.lr-disc h2 span { font-size: 12px; font-weight: 800; padding: 2px 9px; border-radius: 99px; background: color-mix(in oklab, var(--site-text) 8%, transparent); color: var(--site-muted); }
.lr-c { padding: 14px 16px; border-radius: calc(var(--site-radius) + 2px); background: var(--site-surface); border: 1px solid color-mix(in oklab, var(--site-text) 9%, transparent); }
.lr-c header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.lr-c header b { color: var(--site-heading); }
.lr-c header small { color: var(--site-muted); font-size: 12px; margin-left: auto; }
.lr-c p { margin: 6px 0 0; white-space: pre-line; overflow-wrap: anywhere; font-size: 15px; line-height: 1.55; }
.lr-c.is-reply { margin: 10px 0 0 clamp(8px, 3vw, 24px); background: color-mix(in oklab, var(--site-text) 3%, transparent); }
.lr-c.is-team { border-color: color-mix(in oklab, var(--site-accent) 35%, transparent); }
.lr-c-badge { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: var(--site-accent); color: var(--site-accent-text); }
.lr-c-reply { margin-top: 8px; }
.lr-c-reply summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--site-accent); list-style: none; }
.lr-c-reply form { display: grid; gap: 8px; margin-top: 8px; }
.lr-c-reply .lr-btn { justify-self: start; padding: 8px 0; }
.lr-c-new { display: grid; gap: 10px; }
.lr-c-new .ws-submit { justify-self: start; width: auto; padding: 0 22px; }
.lr-nav li .lr-kind { display: inline-block; margin-left: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--site-accent); }

/* Instructors on the course sales page (ADR-0041) */
.crs-team { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.crs-person { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: calc(var(--site-radius) + 4px); background: var(--site-surface); border: 1px solid color-mix(in oklab, var(--site-text) 10%, transparent); }
.crs-person-photo { flex: none; width: 56px; height: 56px; border-radius: 99px; background: color-mix(in oklab, var(--site-accent) 18%, transparent) center / cover no-repeat; display: grid; place-items: center; font-weight: 800; color: var(--site-accent); font-size: 20px; }
.crs-person b { display: block; color: var(--site-heading); }
.crs-person small { display: block; color: var(--site-muted); font-size: 13px; font-weight: 600; }
.crs-person p { margin: 6px 0 0; font-size: 14px; line-height: 1.55; }

/* ---------------------------------------------------------------- community (ADR-0024) */
.cm, .cm-gate, .cm-inside { --cm-line: color-mix(in oklab, var(--site-text) 10%, transparent); --cm-soft: color-mix(in oklab, var(--site-text) 5%, transparent); }
.cm { min-height: 100dvh; background: var(--site-bg-base); color: var(--site-text); font-family: var(--site-font); }
.cm-bar { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 12px; padding: 10px clamp(14px, 3vw, 28px); background: color-mix(in oklab, var(--site-surface) 90%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--cm-line); }
.cm-brand { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; text-decoration: none; color: inherit; }
.cm-logo { width: 36px; height: 36px; border-radius: 11px; flex: none; display: grid; place-items: center; object-fit: cover; font-weight: 800; color: var(--site-accent-text); background: linear-gradient(145deg, var(--site-accent), color-mix(in oklab, var(--site-accent) 55%, #7C5CFF)); }
.cm-brand-text { display: grid; min-width: 0; }
.cm-brand-text small { font-size: 11.5px; color: var(--site-muted); font-weight: 600; }
.cm-brand-text b { color: var(--site-heading); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-me { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--site-heading); font-weight: 700; font-size: 14px; padding: 4px 12px 4px 4px; border-radius: 99px; border: 1px solid var(--cm-line); background: var(--site-surface); }
.cm-me.is-active { border-color: var(--site-accent); }
.cm-me-name { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 520px) { .cm-me-name { display: none; } .cm-me { padding: 3px; } }
.cm-av { width: 36px; height: 36px; border-radius: 99px; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: var(--site-heading); background: color-mix(in oklab, var(--site-accent) 18%, var(--site-surface)); }
.cm-av.is-team { color: #fff; background: linear-gradient(145deg, #1F2925, #5B3BE8); }
.cm-av-sm { width: 30px; height: 30px; font-size: 12.5px; }
.cm-av-lg { width: 48px; height: 48px; font-size: 18px; }

.cm-body { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 1180px; margin: 0 auto; gap: 18px; padding: 14px clamp(14px, 3vw, 28px) 64px; }
.cm-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * clamp(14px, 3vw, 28px)); padding: 2px clamp(14px, 3vw, 28px); }
.cm-nav::-webkit-scrollbar { display: none; }
.cm-nav-item { display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 8px 13px; border-radius: 99px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--site-text); background: var(--site-surface); border: 1px solid var(--cm-line); }
.cm-nav-item svg { width: 15px; height: 15px; color: var(--site-muted); }
.cm-nav-item small { color: var(--site-muted); font-weight: 600; font-size: 12px; }
.cm-nav-item.is-active { background: var(--site-accent); color: var(--site-accent-text); border-color: transparent; }
.cm-nav-item.is-active svg, .cm-nav-item.is-active small { color: inherit; opacity: .8; }
.cm-side { display: none; }
@media (min-width: 900px) {
  .cm-body { grid-template-columns: 230px minmax(0, 1fr); gap: 28px; padding-top: 24px; }
  .cm-nav { flex-direction: column; margin: 0; padding: 0; overflow: visible; position: sticky; top: 80px; align-self: start; }
  .cm-nav-item { border: 0; background: transparent; border-radius: 12px; padding: 10px 12px; }
  .cm-nav-item span { flex: 1; }
  .cm-nav-item:hover { background: var(--cm-soft); }
  .cm-nav-item.is-active { background: var(--site-surface); color: var(--site-heading); box-shadow: 0 1px 0 var(--cm-line), 0 10px 24px -18px rgb(0 0 0 / .35); }
  .cm-nav-item.is-active svg { color: var(--site-accent); opacity: 1; }
}
@media (min-width: 1180px) { .cm-body { grid-template-columns: 230px minmax(0, 1fr) 280px; } .cm-side { display: grid; gap: 14px; align-content: start; position: sticky; top: 80px; align-self: start; } }
.cm-main { min-width: 0; display: grid; gap: 14px; align-content: start; }
.cm-head h1 { margin: 0; color: var(--site-heading); font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.1rem); letter-spacing: -0.03em; line-height: 1.1; }
.cm-head p { margin: 6px 0 0; color: var(--site-muted); font-size: 15px; max-width: 60ch; }
.cm-card { background: var(--site-surface); border: 1px solid var(--cm-line); border-radius: calc(var(--site-radius) + 6px); padding: 16px; display: grid; gap: 8px; }
.cm-card b { color: var(--site-heading); }
.cm-card p { margin: 0; }
.cm-muted { color: var(--site-muted); font-size: 14px; }
.cm-pre { white-space: pre-line; }
.cm-stat { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; }
.cm-stat svg { width: 15px; height: 15px; color: var(--site-accent); }
.cm-powered { font-size: 12px; color: var(--site-muted); margin: 4px 4px 0; }
.cm-powered a { color: inherit; }
.cm-alert, .cm-ok, .cm-note { display: flex; align-items: center; gap: 8px; margin: 0; padding: 11px 14px; border-radius: 14px; font-size: 14px; }
.cm-alert { background: color-mix(in oklab, #E5484D 12%, var(--site-surface)); color: color-mix(in oklab, #E5484D 70%, var(--site-heading)); }
.cm-ok { background: color-mix(in oklab, var(--site-accent) 14%, var(--site-surface)); color: var(--site-heading); }
.cm-note { background: var(--cm-soft); color: var(--site-muted); }
.cm-note a { color: var(--site-accent); font-weight: 700; }
.cm-alert svg, .cm-ok svg, .cm-note svg { width: 16px; height: 16px; flex: none; }

.cm-input { width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; color: var(--site-text); background: var(--site-surface); border: 1px solid var(--cm-line); border-radius: 12px; padding: 10px 12px; resize: vertical; }
.cm-input:focus { outline: 2px solid color-mix(in oklab, var(--site-accent) 45%, transparent); outline-offset: 1px; }
.cm-compose { display: flex; gap: 12px; align-items: flex-start; background: var(--site-surface); border: 1px solid var(--cm-line); border-radius: calc(var(--site-radius) + 6px); padding: 14px; box-shadow: 0 18px 40px -32px rgb(0 0 0 / .45); }
.cm-compose-fields { flex: 1; min-width: 0; display: grid; gap: 8px; }
.cm-compose .cm-input { border-color: transparent; background: var(--cm-soft); }
.cm-input-title { font-weight: 700; }
.cm-compose-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cm-select { font: inherit; font-size: 13.5px; font-weight: 600; color: var(--site-text); background: var(--cm-soft); border: 0; border-radius: 99px; padding: 8px 12px; max-width: 60vw; }
.cm-btn { width: auto; min-height: 40px; padding: 0 18px; display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; }
.cm-btn svg { width: 15px; height: 15px; }
.cm-btn-ghost { display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 14px; font-weight: 700; color: var(--site-heading); background: transparent; border: 1px solid var(--cm-line); border-radius: 12px; padding: 9px 14px; cursor: pointer; }
.cm-btn-ghost svg { width: 15px; height: 15px; }
.cm-btn-ghost.is-danger { color: #D93036; border-color: color-mix(in oklab, #D93036 35%, transparent); }
.cm-rules summary { cursor: pointer; font-size: 13px; color: var(--site-muted); font-weight: 600; }
.cm-rules p { white-space: pre-line; font-size: 13.5px; color: var(--site-muted); margin: 6px 0 0; }

.cm-feed { display: grid; gap: 12px; }
.cm-post { position: relative; background: var(--site-surface); border: 1px solid var(--cm-line); border-radius: calc(var(--site-radius) + 6px); padding: 16px 16px 10px; }
.cm-post.is-pinned { border-color: color-mix(in oklab, var(--site-accent) 45%, transparent); }
.cm-post.is-hidden, .cm-comment.is-hidden { opacity: .6; border-style: dashed; }
.cm-post-head { display: flex; align-items: center; gap: 10px; }
.cm-meta { margin: 0; flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; column-gap: 7px; row-gap: 0; font-size: 14px; }
.cm-meta b { color: var(--site-heading); }
.cm-meta-sub, .cm-meta time { color: var(--site-muted); font-size: 12.5px; }
.cm-post-head .cm-meta-sub { flex-basis: 100%; }
.cm-meta-sub a { color: inherit; font-weight: 600; text-decoration: none; }
.cm-badge { font-size: 11px; font-weight: 800; letter-spacing: .02em; padding: 2px 8px; border-radius: 99px; color: var(--site-accent); background: color-mix(in oklab, var(--site-accent) 13%, transparent); }
.cm-badge.is-team { color: #fff; background: linear-gradient(90deg, #1F2925, #5B3BE8); }
.cm-badge.is-hidden { color: #B25E00; background: color-mix(in oklab, #F5A524 18%, transparent); }
.cm-badge.is-you { color: var(--site-muted); background: var(--cm-soft); }
.cm-pin svg { width: 16px; height: 16px; color: var(--site-accent); }
.cm-post-title { margin: 12px 0 0; font-size: 1.12rem; line-height: 1.3; letter-spacing: -0.01em; color: var(--site-heading); }
h1.cm-post-title { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); letter-spacing: -0.02em; }
.cm-post-title a { color: inherit; text-decoration: none; }
.cm-text { font-size: 15.5px; line-height: 1.6; margin-top: 8px; overflow-wrap: anywhere; }
.cm-text p { margin: 0 0 8px; } .cm-text h2 { font-size: 1.05rem; color: var(--site-heading); margin: 12px 0 6px; } .cm-text ul { margin: 0 0 8px; padding-left: 20px; }
.cm-text a { color: var(--site-accent); font-weight: 600; }
.cm-more { display: inline-block; font-size: 14px; font-weight: 700; color: var(--site-accent); text-decoration: none; margin-top: -2px; }
.cm-post-foot { display: flex; gap: 4px; margin-top: 8px; border-top: 1px solid var(--cm-line); padding-top: 6px; }
.cm-act { display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--site-muted); background: transparent; border: 0; border-radius: 10px; padding: 8px 10px; cursor: pointer; text-decoration: none; }
.cm-act:hover { background: var(--cm-soft); color: var(--site-heading); }
.cm-act svg { width: 17px; height: 17px; }
.cm-act.is-liked { color: #E5486F; } .cm-act.is-liked svg { fill: currentColor; }
.cm-act.is-static { cursor: default; } .cm-act.is-static:hover { background: none; color: var(--site-muted); }
.cm-menu { position: relative; }
.cm-menu summary { list-style: none; cursor: pointer; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: var(--site-muted); }
.cm-menu summary::-webkit-details-marker { display: none; }
.cm-menu summary svg { width: 18px; height: 18px; }
.cm-menu[open] summary { background: var(--cm-soft); }
.cm-menu-pop { position: absolute; right: 0; top: 36px; z-index: 4; width: 250px; display: grid; gap: 2px; padding: 6px; background: var(--site-surface); border: 1px solid var(--cm-line); border-radius: 14px; box-shadow: 0 24px 50px -20px rgb(0 0 0 / .35); }
.cm-menu-pop button { display: flex; align-items: center; gap: 9px; width: 100%; font: inherit; font-size: 14px; font-weight: 600; text-align: left; color: var(--site-text); background: transparent; border: 0; border-radius: 10px; padding: 9px 10px; cursor: pointer; }
.cm-menu-pop button:hover { background: var(--cm-soft); }
.cm-menu-pop button svg { width: 15px; height: 15px; color: var(--site-muted); }
.cm-menu-pop .is-danger { color: #D93036; }
.cm-report-form { display: grid; gap: 6px; }
.cm-report-form .cm-input { font-size: 13.5px; padding: 8px 10px; }
.cm-empty { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 44px 20px; border-radius: calc(var(--site-radius) + 6px); border: 1px dashed var(--cm-line); color: var(--site-muted); }
.cm-empty svg { width: 28px; height: 28px; }
.cm-empty h2 { margin: 6px 0 0; font-size: 1.1rem; color: var(--site-heading); }
.cm-empty p { margin: 0; }
.cm-pager { display: flex; justify-content: space-between; }
.cm-back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--site-muted); text-decoration: none; }
.cm-back svg { width: 15px; height: 15px; }

.cm-comments { display: grid; gap: 10px; }
.cm-comments h2 { margin: 6px 0 0; font-size: 1rem; color: var(--site-heading); }
.cm-comment { display: flex; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--site-surface); border: 1px solid var(--cm-line); }
.cm-comment-main { flex: 1; min-width: 0; }
.cm-comment .cm-text { margin-top: 4px; font-size: 15px; }
.cm-comment-tools { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.cm-link { font: inherit; font-size: 12.5px; font-weight: 700; color: var(--site-muted); background: none; border: 0; padding: 0; cursor: pointer; list-style: none; }
.cm-report summary::-webkit-details-marker { display: none; }
.cm-report[open] { flex-basis: 100%; }
.cm-report .cm-report-form { margin-top: 6px; grid-template-columns: 1fr auto; }
.cm-compose-comment { box-shadow: none; }

.cm-search { position: relative; }
.cm-search svg { position: absolute; left: 12px; top: 50%; translate: 0 -50%; width: 16px; height: 16px; color: var(--site-muted); }
.cm-search .cm-input { padding-left: 36px; }
.cm-head .cm-search { margin-top: 14px; max-width: 460px; }
.cm-head .cm-search .cm-input { padding-right: 38px; border-radius: 99px; }
.cm-search-clear { position: absolute; right: 8px; top: 50%; translate: 0 -50%; width: 26px; height: 26px; border-radius: 99px; display: grid; place-items: center; color: var(--site-muted); }
.cm-search .cm-search-clear svg { position: static; translate: none; width: 14px; height: 14px; }
.cm-search-clear:hover { background: var(--cm-soft); color: var(--site-heading); }
.cm-search input[type=search]::-webkit-search-cancel-button { display: none; }
.cm-results { margin: 0; font-size: 14px; color: var(--site-muted); font-weight: 600; }
.cm-people { display: grid; gap: 10px; }
@media (min-width: 640px) { .cm-people { grid-template-columns: 1fr 1fr; } }
.cm-person { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; background: var(--site-surface); border: 1px solid var(--cm-line); }
.cm-person-name { margin: 0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; } .cm-person-name b { color: var(--site-heading); }
.cm-person-bio { margin: 3px 0; font-size: 14px; }
.cm-person small { color: var(--site-muted); font-size: 12.5px; }
.cm-form { gap: 12px; }
.cm-field { display: grid; gap: 6px; font-size: 14px; font-weight: 700; color: var(--site-heading); }
.cm-field small { color: var(--site-muted); font-weight: 500; }
.cm-check { display: flex; align-items: center; gap: 9px; font-size: 14px; }
.cm-check input { width: 18px; height: 18px; accent-color: var(--site-accent); }
.cm-danger summary { cursor: pointer; font-weight: 700; color: #D93036; }

.cm-inside-desc { display: block; font-size: 12.5px; color: var(--site-muted); }
.cm-gate { display: grid; justify-items: center; text-align: center; gap: 8px; }
.cm-gate-mark { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; overflow: hidden; color: var(--site-accent-text); background: linear-gradient(145deg, var(--site-accent), color-mix(in oklab, var(--site-accent) 55%, #7C5CFF)); box-shadow: 0 20px 40px -20px color-mix(in oklab, var(--site-accent) 80%, transparent); }
.cm-gate-mark svg { width: 30px; height: 30px; } .cm-gate-mark img { width: 100%; height: 100%; object-fit: cover; }
.cm-gate-by { margin: 6px 0 0; font-size: 13px; font-weight: 700; color: var(--site-muted); text-transform: uppercase; letter-spacing: .05em; }
.cm-gate h1 { margin: 0; color: var(--site-heading); font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem); letter-spacing: -0.03em; line-height: 1.1; }
.cm-gate-tag { margin: 0; color: var(--site-muted); font-size: 16px; }
.cm-gate-count { display: inline-flex; align-items: center; gap: 7px; margin: 6px 0; font-size: 14px; font-weight: 700; }
.cm-gate-count svg { width: 16px; height: 16px; color: var(--site-accent); }
.cm-gate-spaces { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.cm-gate-spaces a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; font-size: 13.5px; font-weight: 600; text-decoration: none; color: var(--site-text); border: 1px solid var(--cm-line); }
.cm-gate-spaces svg { width: 14px; height: 14px; color: var(--site-muted); } .cm-gate-spaces small { color: var(--site-accent); font-weight: 700; }
.cm-gate-join { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; margin-top: 8px; }
.cm-gate-join svg { width: 18px; height: 18px; }
.cm-gate .cs-access { width: 100%; }
.cm-row { display: flex; flex-wrap: wrap; gap: 8px; }
.cm-gate-av { font-size: 26px; font-weight: 800; color: var(--site-accent-text); background: var(--site-accent); }

/* In-community notifications (ADR-0031) */
.cm-bell { position: relative; margin-left: auto; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 99px; border: 1px solid var(--cm-line); background: var(--site-surface); color: var(--site-heading); flex: none; }
.cm-bell svg { width: 18px; height: 18px; }
.cm-bell.is-active { border-color: var(--site-accent); }
.cm-bell-count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--site-accent); color: var(--site-on-accent, #fff); font-size: 11px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--site-bg, #fff); }
.cm-inbox { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cm-note-item a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 14px; border-radius: calc(var(--site-radius) + 4px); border: 1px solid var(--cm-line); background: var(--site-surface); text-decoration: none; color: var(--site-text); }
.cm-note-item a:hover { border-color: color-mix(in oklab, var(--site-accent) 45%, var(--cm-line)); }
.cm-note-item a { position: relative; }
.cm-note-item.is-new a { border-color: color-mix(in oklab, var(--site-accent) 45%, var(--cm-line)); box-shadow: inset 3px 0 0 var(--site-accent); }
.cm-note-item.is-new time::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 99px; background: var(--site-accent); margin-right: 6px; vertical-align: 1px; }
.cm-note-icon { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--cm-soft); color: var(--site-heading); }
.cm-note-icon svg { width: 16px; height: 16px; }
.cm-note-icon.is-announcement { background: color-mix(in oklab, var(--site-accent) 16%, transparent); color: var(--site-accent); }
.cm-note-text { font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.cm-note-text b { color: var(--site-heading); }
.cm-note-text small { display: block; margin-top: 3px; color: var(--site-muted); font-size: 13px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cm-note-item time { font-size: 12px; color: var(--site-muted); white-space: nowrap; }

/* Product options (ADR-0037) */
.shop-variants { border: 0; margin: 0; padding: 0; min-width: 0; }
.shop-variants legend { padding: 0; margin-bottom: 8px; }
.shop-variant { justify-content: flex-start; }
.shop-variant-name { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.shop-variant-name small { display: block; font-weight: 500; font-size: 12.5px; color: var(--site-muted); }
.shop-variant-price { flex: none; display: inline-flex; align-items: baseline; gap: 6px; font-weight: 700; font-variant-numeric: tabular-nums; }
.shop-variant-price s { font-weight: 500; font-size: 13px; color: var(--site-muted); }
.shop-variant.is-out { opacity: .55; cursor: not-allowed; }
.shop-variant.is-out .shop-variant-title { text-decoration: line-through; text-decoration-thickness: 1px; }
.shop-add { margin-top: 10px; }

/* Discounts (ADR-0038) */
.shop-sale { display: inline-flex; align-items: center; gap: 6px; width: fit-content; margin: 0; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: color-mix(in oklab, var(--site-accent) 14%, transparent); color: var(--site-text); }
.shop-sale svg { width: 15px; height: 15px; color: var(--site-accent); }
.shop-price s { color: var(--site-muted); font-size: 15px; }
.shop-code { border-radius: calc(var(--site-radius) - 4px); border: 1px dashed color-mix(in oklab, var(--site-text) 22%, transparent); padding: 10px 14px; font-size: 14px; }
.shop-code summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; color: var(--site-text); list-style: none; }
.shop-code summary::-webkit-details-marker { display: none; }
.shop-code summary svg { width: 16px; height: 16px; }
.shop-code .wf-input { margin-top: 10px; text-transform: uppercase; letter-spacing: .04em; }
.shop-code[open] { border-style: solid; }

/* Licence keys on the order page (ADR-0039) */
.lic-list { display: grid; gap: 10px; }
.lic { display: grid; gap: 6px; padding: 12px 14px; border-radius: calc(var(--site-radius) - 4px); border: 1px solid color-mix(in oklab, var(--site-text) 12%, transparent); background: color-mix(in oklab, var(--site-surface) 92%, transparent); min-width: 0; }
.lic small { color: var(--site-muted); font-size: 13px; }
.lic-key { display: block; padding: 10px 12px; border-radius: 10px; background: color-mix(in oklab, var(--site-text) 6%, transparent); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 15px; letter-spacing: .04em; color: var(--site-text); overflow-wrap: anywhere; user-select: all; cursor: copy; }
.lic-key.is-copied { outline: 2px solid var(--site-accent); }
.lic-devices { margin: 2px 0 0; font-size: 13px; color: var(--site-muted); }
.lic-device { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.lic-device span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.lic-device svg { width: 15px; height: 15px; flex: none; }
.lic-device button { flex: none; border: 0; background: none; font: inherit; font-weight: 600; color: var(--site-accent); cursor: pointer; }

.shop-tax { margin: -4px 0 0; font-size: 13px; color: var(--site-muted); }

/* css/utilities.css */
/* Small, deliberate utility layer (ADR-0005). Prefer components. ---------- */
@layer utilities {
  .stack { display: grid; gap: var(--gap, 16px); }
  .stack-sm { display: grid; gap: 8px; }
  .stack-lg { display: grid; gap: 24px; }
  .cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, 8px); }
  .between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .center { display: grid; place-items: center; }
  .grow { flex: 1; min-width: 0; }
  .nowrap { white-space: nowrap; }
  .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .muted { color: var(--text-muted); }
  .subtle { color: var(--text-subtle); }
  .ink { color: var(--ink); }
  .accent-text { color: var(--accent-text); }
  .danger-text { color: var(--danger); }
  .text-sm { font-size: var(--fs-small); }
  .text-xs { font-size: var(--fs-micro); }
  .text-lg { font-size: var(--fs-h3); }
  .fw-500 { font-weight: 500; }
  .mono { font-family: var(--font-mono); }
  .mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
  .mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }
  .w-full { width: 100%; }
  .icon-14 { width: 14px; height: 14px; } .icon-16 { width: 16px; height: 16px; } .icon-18 { width: 18px; height: 18px; } .icon-20 { width: 20px; height: 20px; }
  .hide-mobile { } @media (max-width: 640px) { .hide-mobile { display: none !important; } }
  .show-mobile { display: none !important; } @media (max-width: 640px) { .show-mobile { display: revert !important; } }
  .fade-in { animation: fade-in var(--t-slow) var(--ease-out) both; }
  .rise-in { animation: rise-in var(--t-slow) var(--ease-out) both; }
  @keyframes fade-in { from { opacity: 0; } }
  @keyframes rise-in { from { opacity: 0; transform: translateY(6px); } }
}
