/* Hallmark · redesign: full · shape: app screen · theme: custom · idea: "a light table in a dark studio: the sheet is the only light, brass only for what goes to paper" · vibe: "quiet instrument, warm graphite, precise" · paper: dark warm graphite · accent: brass 80° (print action and focus only) · faces: system (SF on iPad) · surface: absolute (the white sheet) · scope: app */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R5 V3 · weakest: V, a dark pro tool is a well-worn posture; the brass-only-for-paper rule, the registration-mark brand and the real sheet as the start picture carry the difference */
/* Hallmark · waive 7b · surface: absolute, --paper is the stencil sheet · the трафарет prints on white thermal paper, a tinted sheet would lie about the печать */
/* Hallmark · dismissed 41 · --ink draws lines on the white sheet (thumbnails, previews), never text on --bg */
/* Generated by landing/build.mjs from app/src/core/theme.css. Do not edit here. */
:root {
  color-scheme: dark;

  /* ---- surfaces: warm graphite, four steps. The white sheet is the only bright thing on screen ---- */
  --stage: oklch(14% 0.003 70);     /* the room around the drawing: the darkest step, so the sheet carries the light */
  --bg: oklch(15.5% 0.003 70);      /* page (start, print and try-on stages) */
  --panel: oklch(19.5% 0.004 70);   /* level 1: bars and panels */
  --panel-2: oklch(23.5% 0.004 70); /* level 2: buttons, fields */
  --panel-3: oklch(28% 0.005 70);   /* level 3: hover, menus */
  --glass: oklch(19.5% 0.004 70 / .94); /* legacy: dense bar colour, kept for modules not yet on --glass-bg */
  --scrim: oklch(8% 0.003 70 / .62);    /* behind sheets and dialogs */
  --veil: oklch(12% 0.003 70 / .78);    /* busy veil, drop target */
  --paper: #fff;                    /* the stencil sheet */
  --ink: oklch(18% 0.003 70);       /* lines on paper (thumbnails, previews) */

  /* ---- lines ---- */
  --line: oklch(28% 0.004 70);          /* separators between areas */
  --line-control: oklch(36% 0.005 70);  /* button outlines */
  --line-strong: oklch(52% 0.006 70);   /* field, switch and slider boundaries: 3:1 on every surface */

  /* ---- text ---- */
  --text: oklch(96% 0.004 80);      /* 15:1 on panel */
  --text-dim: oklch(75% 0.008 80);  /* 7:1 on panel, 5.6:1 on panel-3 */
  --text-faint: oklch(64% 0.008 80);/* disabled labels and quiet captions: 4.6:1 on panel */

  /* ---- selection: shown by light, never by the accent ---- */
  --select: oklch(92% 0.006 80);    /* the chosen tool, tab or option */
  --select-text: oklch(19% 0.004 70);
  --select-soft: oklch(32% 0.006 70);  /* chosen item inside a group on a dark ground */

  /* ---- accent: brass, only for the action that goes to paper (Печать, PDF, the next step) and focus ---- */
  --accent: #e2b24a;                /* 9.8:1 on bg */
  --accent-hover: #ecc066;
  --accent-press: #c99a36;
  --accent-text: oklch(19% 0.03 80);/* 9.3:1 on accent */
  --accent-soft: oklch(78% 0.13 80 / .14);
  --accent-line: oklch(78% 0.13 80 / .5);
  --accent-glow: oklch(78% 0.13 80 / .55); /* the one-time "ready" ring on Печать */

  --danger: #ef6b62;                /* 5.9:1 on panel; buttons use dark text */
  --danger-hover: #f4847c;
  --danger-text: oklch(17% 0.03 30);
  --ok: #5cbf7a;
  --stencil-ink: #3a2a8c;           /* thermal-transfer purple, stencil previews only */
  --stencil-ink-ui: #a594ff;        /* the same hue readable on dark UI (7:1) */

  /* try-on empty state: the stencil shown on skin */
  --skin-1: #f1d5bf; --skin-2: #dcb393; --skin-3: #c99c7c;

  /* ---- type: the system face (SF on Apple devices), one family, two weights ---- */
  --font: system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --fs-2xs: 11px;           /* tool labels on a phone strip */
  --fs-xs: 12px;            /* captions under icons, hints */
  --fs-label: 13px;         /* field labels, notes */
  --fs-sm: 14px;            /* body in panels */
  --fs-md: 16px;            /* buttons that matter, inputs */
  --fs-lg: 20px;            /* sheet titles, numbers */
  --fs-xl: 28px;            /* screen titles */
  --fs-2xl: 40px;           /* start screen */
  --fw: 400; --fw-medium: 500; --fw-strong: 600;
  --lh-tight: 1.15;
  --lh: 1.45;
  --track-tight: -0.015em;  /* titles 20 px and up */

  /* ---- spacing: 4 px steps ---- */
  --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-12: 48px; --s-16: 64px;
  --gap: 12px;

  /* ---- radius: one per nesting level ---- */
  --radius-xs: 4px;         /* marks inside controls */
  --radius-sm: 8px;         /* items inside a group, fields */
  --radius: 10px;           /* buttons, floating bars, menus */
  --radius-lg: 14px;        /* panels and bars that hold controls */
  --radius-xl: 20px;        /* sheets and dialogs */
  --radius-pill: 999px;     /* buttons on their own (direction B capsules), chips and switches */

  /* ---- elevation: docked things get a hairline, floating things a shadow, never both ---- */
  --shadow-1: 0 1px 2px oklch(0% 0 0 / .4);
  --shadow-2: 0 8px 24px oklch(0% 0 0 / .42);
  --shadow-3: 0 18px 50px oklch(0% 0 0 / .55);
  --shadow: var(--shadow-2);
  --shadow-paper: 0 2px 6px oklch(0% 0 0 / .35), 0 18px 50px oklch(0% 0 0 / .45);
  --shadow-thumb: 0 1px 4px oklch(0% 0 0 / .5);
  --inner-light: inset 0 1px 0 oklch(100% 0 0 / .05);
  --scrim-soft: oklch(0% 0 0 / .25);

  /* ---- motion: state changes only, short, never decoration ---- */
  --dur-fast: 100ms;        /* hover, press */
  --dur: 160ms;             /* toggles, chips, toasts */
  --dur-slow: 240ms;        /* sheets, fades */
  --ease: cubic-bezier(.2, .8, .2, 1);

  --tap: 44px;              /* minimal touch target */

  /* ---- glass (direction B, 29.11.2026): only bars and panels that float over the drawing or a photo.
     Content (the canvas, sheets, photos, lists) stays solid. The tint is dense enough for 4.5:1 text over
     white paper: --text 7:1, --glass-text-dim 5.3:1 over the worst case (white under the glass).
     The rim is inset shadows, not mask-composite, so it draws the same on iPadOS 15 and 16.
     Solid under prefers-reduced-transparency and when the app sees slow frames (html.glass-off, core/glass.ts). ---- */
  --glass-blur: blur(22px) saturate(170%);
  --glass-sheen: linear-gradient(180deg, oklch(100% 0 0 / .07), oklch(100% 0 0 / 0) 46%);
  --glass-tint: oklch(18.5% 0.004 70 / .78);
  /* Liquid glass lite (30.11.2026), all in the background layers and the rim, so html.glass-off and
     prefers-reduced-transparency (which swap --glass-bg for a solid panel) drop every bit of it.
     --lx / --ly: where the light comes from, in % of the window; core/glass-light.ts moves them with the pointer
     (no button held) or the tilt, and leaves them alone while the master draws. */
  --lx: 28%;
  --ly: 0%;
  /* a specular line on the top edge, brightest under the light */
  --glass-spec: linear-gradient(90deg, oklch(100% 0 0 / 0) 4%, oklch(100% 0 0 / .5) var(--lx), oklch(100% 0 0 / 0) 96%) top / 100% 1px no-repeat;
  /* a soft inner light that follows the light source across every glass panel at once (fixed: window coordinates).
     Kept at 5 % so quiet text stays at 4.5:1 or more with white paper right under the glass. */
  --glass-light: radial-gradient(460px circle at var(--lx) var(--ly), oklch(100% 0 0 / .05), oklch(100% 0 0 / 0) 70%) fixed;
  /* the thick edge: light gathers toward the border, as in a lens */
  --glass-edge: radial-gradient(135% 160% at 50% 35%, oklch(100% 0 0 / 0) 60%, oklch(100% 0 0 / .045) 100%);
  --glass-bg: var(--glass-spec), var(--glass-light), var(--glass-edge), var(--glass-sheen), var(--glass-tint);
  --glass-bg-hover: var(--glass-spec), var(--glass-light), var(--glass-edge), var(--glass-sheen), oklch(26% 0.005 70 / .82);
  --glass-well: oklch(8% 0.003 70 / .38);     /* fields and segmented wells inside a glass panel */
  --glass-text-dim: oklch(84% 0.006 80);      /* quiet text on glass */
  /* two-layer rim: a light outer line, a dark line inside it, a faint light one inside that; the bottom edge darker */
  --glass-rim: inset 0 1px 0 oklch(100% 0 0 / .2), inset 0 -1px 0 oklch(0% 0 0 / .26), inset 0 0 0 1px oklch(100% 0 0 / .1), inset 0 0 0 2px oklch(0% 0 0 / .18), inset 0 0 0 3px oklch(100% 0 0 / .035);
  --glass-depth: 0 12px 34px oklch(0% 0 0 / .42), 0 1px 3px oklch(0% 0 0 / .3);
  /* light glass: bars over the white sheet (session); dark text */
  --glass-bg-light: linear-gradient(180deg, oklch(100% 0 0 / .55), oklch(100% 0 0 / .2)), oklch(97% 0.003 80 / .74);
  --glass-rim-light: inset 0 1px 0 oklch(100% 0 0 / .95), inset 0 -1px 0 oklch(0% 0 0 / .06), inset 0 0 0 1px oklch(0% 0 0 / .07), inset 0 0 0 2px oklch(100% 0 0 / .5);
  --radius-glass: 22px;     /* floating panels */
  --on-glass-soft: oklch(100% 0 0 / .06);     /* a lighter band or button on glass */
  --on-glass-line: oklch(100% 0 0 / .09);     /* hairlines on glass */
  --on-glass-hover: oklch(100% 0 0 / .1);
  --on-glass-press: oklch(100% 0 0 / .14);
  --light-solid: oklch(96% 0.003 80);         /* light glass without transparency */
  --on-light-text: oklch(19% 0.004 70);       /* text on light glass: 12:1 */
  --on-light-dim: oklch(36% 0.006 70);        /* quiet text on light glass: 7.5:1 */
  --on-light-hover: oklch(0% 0 0 / .06);
  --on-light-press: oklch(0% 0 0 / .08);
  --on-light-chip: oklch(100% 0.002 80);
  --scrim-glass: oklch(8% 0.003 70 / .5);     /* behind glass dialogs: lighter, the blur does the rest */
  --on-mark: oklch(14% 0.004 70);            /* the number on a coloured «Отличия» mark (amber, red, lime, teal...) */
  --scan-line: oklch(100% 0 0 / .55);         /* the AI waiting screen: the scan line over the photo */
  --scan-glow: oklch(100% 0 0 / .14);
  --scan-line-mid: oklch(62% 0.004 70 / .7);   /* the engine's wait: a scan line that reads on the white sheet and on the dark stage */
  --scan-glow-mid: oklch(62% 0.004 70 / .18);
  --hairline-light: oklch(100% 0 0 / .9);
  --accent-lift: 0 6px 20px oklch(78% 0.13 80 / .25), inset 0 1px 0 oklch(100% 0 0 / .35);   /* brass actions */
  --accent-lift-lg: 0 10px 30px oklch(78% 0.13 80 / .28), inset 0 1px 0 oklch(100% 0 0 / .35);
  --shadow-card: 0 18px 44px oklch(0% 0 0 / .45), 0 2px 6px oklch(0% 0 0 / .35);           /* thumbnails */
  --shadow-hero: 0 30px 80px oklch(0% 0 0 / .55), 0 2px 6px oklch(0% 0 0 / .4);            /* the hero sheet */
  --shadow-float-light: 0 14px 40px oklch(0% 0 0 / .18), 0 1px 3px oklch(0% 0 0 / .12);    /* light glass */
  --shadow-chip-light: 0 2px 8px oklch(0% 0 0 / .12);
  --shadow-line: 0 0 0 1px oklch(0% 0 0 / .15);
}
@media (prefers-reduced-motion: reduce) {
  :root { --dur-fast: 0ms; --dur: 0ms; --dur-slow: 0ms; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}