/* ==========================================================================
   Chalet Burja · design system "Modra ura" (blue hour)
   Reference: docs/DESIGN.md. Page authors: do not edit this file; page CSS goes
   to /assets/burja/css/<page>.css and uses the semantic tokens below.

   Themes (class on <html>, set by templates/burja_base.html):
     .t-night  public site: dark dusk blue, snow text, amber "window light"
     .t-snow   /miza, /racun: light high-contrast snow; dark with prefers-color-scheme
     .t-ops    /ekipa: calm cool neutral; dark with [data-theme="dark"]
   No cream, beige or paper tones anywhere. Light surfaces are cool snow.
   ========================================================================== */

/* ---------- 0. Fonts (SIL OFL 1.1, self-hosted) ---------- */
@font-face { font-family: 'Gloock'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/burja/fonts/gloock-latin-ext-89effc46.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Gloock'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/burja/fonts/gloock-latin-b862aac1.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Schibsted Grotesk is one variable file: registered as a 400..700 range so 650 renders as 650. */
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/burja/fonts/schibsted-grotesk-latin-ext-f5df746d.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Schibsted Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/burja/fonts/schibsted-grotesk-latin-e3b56e90.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(/assets/burja/fonts/jetbrains-mono-latin-ext-7eed183e.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(/assets/burja/fonts/jetbrains-mono-latin-340e696a.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- 1. Raw palette + scales (theme independent) ---------- */
:root {
  /* dusk blue: sky and snow shadow at blue hour */
  --dusk-950: #0a121d;
  --dusk-900: #0f1b2b;
  --dusk-800: #16263a;
  --dusk-700: #1f3550;
  --dusk-600: #2c4868;
  --dusk-500: #426597;
  --dusk-300: #9db8d8;
  --dusk-100: #dfe8f3;
  /* snow: cool whites, never warm */
  --snow-0: #ffffff;
  --snow-50: #f2f6fb;
  --snow-100: #edf2f8;
  --snow-200: #e0e8f1;
  --snow-300: #d0dae6;
  /* ink: near-black blue for text on snow */
  --ink-900: #0c1624;
  --ink-700: #2f3f54;
  --ink-500: #4d5e75;
  /* window light: the one warm accent */
  --amber-300: #ffd596;
  --amber-400: #f4b860;
  --amber-700: #7d4e05;
  --amber-100: #fcefd3;
  /* weathered wood greys */
  --wood-700: #4b5058;
  --wood-500: #6f7c8c;
  --wood-300: #aab0b8;
  /* tiled stove green (sparingly; also "ok") */
  --stove-700: #1f5c44;
  --stove-300: #86c9a8;
  --stove-100: #dcefe5;
  /* logo burgundy: small brand mark only, never text on blue */
  --burgundy: #5b2a26;
  /* status helpers */
  --red-700: #a8281f;
  --red-300: #ff9d93;
  --red-100: #fbe2df;
  --sky-700: #1b5a9e;
  --sky-300: #9cc4f2;
  --sky-100: #dce9f8;

  /* type */
  --font-display: 'Gloock', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-sans: 'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --fs-display: clamp(3rem, 1.6rem + 7vw, 8.5rem);
  --fs-h1: clamp(2.4rem, 1.5rem + 3.8vw, 4.75rem);
  --fs-h2: clamp(1.9rem, 1.35rem + 2.2vw, 3.1rem);
  --fs-h3: clamp(1.35rem, 1.2rem + .6vw, 1.7rem);
  --fs-h4: 1.125rem;
  --fs-lede: clamp(1.125rem, 1.05rem + .35vw, 1.35rem);
  --fs-body: 1.0625rem;
  --fs-sm: .9375rem;
  --fs-xs: .8125rem;
  --fs-micro: .75rem;
  --lh-tight: 1.04;
  --lh-head: 1.12;
  --lh-body: 1.6;
  --tracking-caps: .08em;

  /* space (4 px base) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 144px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(72px, 10vw, 160px);
  --maxw: 1320px;
  --maxw-text: 64ch;

  /* radii: public almost square (timber), ops softer */
  --r-1: 2px; --r-2: 4px; --r-3: 8px; --r-4: 14px; --r-pill: 999px;
  --r-btn: var(--r-1);

  /* motion */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --d-1: 120ms; --d-2: 200ms; --d-3: 320ms; --d-4: 560ms; --d-5: 900ms;

  --z-header: 50; --z-sheet: 80; --z-toast: 90;
}

/* ---------- 2. Themes: semantic tokens ----------
   Every block lists the full set, so a palette change is made here and nowhere else.
   The "@theme" comments are read by burja/tests/test_design_tokens.py (AA contrast check). */

/* @theme night */
:root, .t-night, .section--night {
  color-scheme: dark;
  --bg: var(--dusk-900);
  --surface: var(--dusk-800);
  --surface-2: var(--dusk-700);
  --text: var(--snow-50);
  --text-2: #c4d0df;
  --text-3: #a3b3c7;
  --line: #2a4160;
  --line-strong: #6f8aab;
  --primary: var(--amber-400);
  --primary-hover: var(--amber-300);
  --on-primary: #1c1304;
  --accent: var(--amber-400);
  --on-accent: #1c1304;
  --accent-text: var(--amber-400);
  --focus: var(--sky-300);
  --link: var(--amber-300);
  --field-bg: var(--dusk-950);
  --field-text: var(--snow-50);
  --placeholder: #8fa1b7;
  --selected-bg: #3a3320;
  --ok: var(--stove-300); --ok-bg: #143325;
  --warn: var(--amber-400); --warn-bg: #3b2b0b;
  --danger: var(--red-300); --danger-bg: #45191a;
  --info: var(--sky-300); --info-bg: #15304f;
  --idle: #a3b3c7; --idle-bg: var(--dusk-700);
  --toast-bg: var(--snow-50); --toast-text: var(--ink-900);
  --scrim: rgba(4, 9, 16, .66);
  --sh-1: 0 1px 2px rgba(2, 6, 12, .4);
  --sh-2: 0 8px 24px -10px rgba(2, 6, 12, .7), 0 1px 2px rgba(2, 6, 12, .4);
  --sh-3: 0 28px 64px -20px rgba(2, 6, 12, .85), 0 2px 6px rgba(2, 6, 12, .45);
}

/* @theme snow */
.t-snow, .section--snow {
  color-scheme: light;
  --bg: var(--snow-100);
  --surface: var(--snow-0);
  --surface-2: var(--snow-200);
  --text: var(--ink-900);
  --text-2: var(--ink-700);
  --text-3: var(--ink-500);
  --line: var(--snow-300);
  --line-strong: #6f8098;
  --primary: var(--dusk-700);
  --primary-hover: var(--dusk-900);
  --on-primary: #ffffff;
  --accent: var(--amber-400);
  --on-accent: #1c1304;
  --accent-text: var(--amber-700);
  --focus: var(--sky-700);
  --link: var(--sky-700);
  --field-bg: var(--snow-0);
  --field-text: var(--ink-900);
  --placeholder: #5f7087;
  --selected-bg: var(--dusk-100);
  --ok: var(--stove-700); --ok-bg: var(--stove-100);
  --warn: var(--amber-700); --warn-bg: var(--amber-100);
  --danger: var(--red-700); --danger-bg: var(--red-100);
  --info: var(--sky-700); --info-bg: var(--sky-100);
  --idle: var(--ink-500); --idle-bg: var(--snow-200);
  --toast-bg: var(--dusk-950); --toast-text: var(--snow-50);
  --scrim: rgba(10, 18, 29, .55);
  --sh-1: 0 1px 2px rgba(15, 27, 43, .1);
  --sh-2: 0 8px 22px -10px rgba(15, 27, 43, .28), 0 1px 2px rgba(15, 27, 43, .08);
  --sh-3: 0 26px 60px -22px rgba(15, 27, 43, .45), 0 2px 6px rgba(15, 27, 43, .1);
}

@media (prefers-color-scheme: dark) {
  /* @theme snow-dark */
  .t-snow:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: var(--dusk-950);
    --surface: var(--dusk-800);
    --surface-2: var(--dusk-700);
    --text: var(--snow-50);
    --text-2: #c4d0df;
    --text-3: #a3b3c7;
    --line: #2a4160;
    --line-strong: #6f8aab;
    --primary: var(--sky-300);
    --primary-hover: #bcd8f7;
    --on-primary: var(--dusk-950);
    --accent: var(--amber-400);
    --on-accent: #1c1304;
    --accent-text: var(--amber-400);
    --focus: var(--amber-300);
    --link: var(--sky-300);
    --field-bg: var(--dusk-900);
    --field-text: var(--snow-50);
    --placeholder: #8fa1b7;
    --selected-bg: #1d3b5c;
    --ok: var(--stove-300); --ok-bg: #143325;
    --warn: var(--amber-400); --warn-bg: #3b2b0b;
    --danger: var(--red-300); --danger-bg: #45191a;
    --info: var(--sky-300); --info-bg: #15304f;
    --idle: #a3b3c7; --idle-bg: var(--dusk-700);
    --toast-bg: var(--snow-50); --toast-text: var(--ink-900);
    --scrim: rgba(4, 9, 16, .66);
    --sh-1: 0 1px 2px rgba(2, 6, 12, .4);
    --sh-2: 0 8px 24px -10px rgba(2, 6, 12, .7), 0 1px 2px rgba(2, 6, 12, .4);
    --sh-3: 0 28px 64px -20px rgba(2, 6, 12, .85), 0 2px 6px rgba(2, 6, 12, .45);
  }
}

/* @theme ops */
.t-ops {
  color-scheme: light;
  --bg: #f1f3f6;
  --surface: #ffffff;
  --surface-2: #e6eaef;
  --text: #131a23;
  --text-2: #3a4654;
  --text-3: #556272;
  --line: #dce1e8;
  --line-strong: #768291;
  --primary: var(--dusk-700);
  --primary-hover: var(--dusk-900);
  --on-primary: #ffffff;
  --accent: var(--amber-400);
  --on-accent: #1c1304;
  --accent-text: var(--amber-700);
  --focus: var(--sky-700);
  --link: var(--sky-700);
  --field-bg: #ffffff;
  --field-text: #131a23;
  --placeholder: #647181;
  --selected-bg: var(--dusk-100);
  --ok: var(--stove-700); --ok-bg: var(--stove-100);
  --warn: var(--amber-700); --warn-bg: var(--amber-100);
  --danger: var(--red-700); --danger-bg: var(--red-100);
  --info: var(--sky-700); --info-bg: var(--sky-100);
  --idle: #556272; --idle-bg: #e6eaef;
  --toast-bg: var(--dusk-950); --toast-text: var(--snow-50);
  --scrim: rgba(10, 18, 29, .5);
  --sh-1: 0 1px 2px rgba(19, 26, 35, .08);
  --sh-2: 0 8px 22px -10px rgba(19, 26, 35, .25), 0 1px 2px rgba(19, 26, 35, .06);
  --sh-3: 0 26px 60px -22px rgba(19, 26, 35, .4), 0 2px 6px rgba(19, 26, 35, .08);
  --side-bg: var(--dusk-900); --side-text: #e4ebf3; --side-text-2: #a3b3c7; --side-active: var(--dusk-700); --side-line: rgba(228, 235, 243, .12);
  --fs-body: .9375rem;
  --r-btn: 6px;
}

/* @theme ops-dark */
.t-ops[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e131a;
  --surface: #161d26;
  --surface-2: #202935;
  --text: #e9eef4;
  --text-2: #bcc6d2;
  --text-3: #98a4b3;
  --line: #2a3442;
  --line-strong: #6b7a8c;
  --primary: var(--sky-300);
  --primary-hover: #bcd8f7;
  --on-primary: var(--dusk-950);
  --accent: var(--amber-400);
  --on-accent: #1c1304;
  --accent-text: var(--amber-400);
  --focus: var(--amber-300);
  --link: var(--sky-300);
  --field-bg: #0e131a;
  --field-text: #e9eef4;
  --placeholder: #8894a3;
  --selected-bg: #1d3450;
  --ok: var(--stove-300); --ok-bg: #143325;
  --warn: var(--amber-400); --warn-bg: #3b2b0b;
  --danger: var(--red-300); --danger-bg: #45191a;
  --info: var(--sky-300); --info-bg: #15304f;
  --idle: #98a4b3; --idle-bg: #202935;
  --toast-bg: var(--snow-50); --toast-text: var(--ink-900);
  --scrim: rgba(3, 6, 10, .66);
  --sh-1: 0 1px 2px rgba(0, 0, 0, .4);
  --sh-2: 0 8px 24px -10px rgba(0, 0, 0, .7), 0 1px 2px rgba(0, 0, 0, .4);
  --sh-3: 0 28px 64px -20px rgba(0, 0, 0, .85), 0 2px 6px rgba(0, 0, 0, .45);
  --side-bg: #090d12; --side-active: #202935;
}

/* Deprecated aliases of the demo's raw tokens, so that page CSS ported from the demo keeps working.
   Re-declared on every theme scope so they follow the scope's semantic tokens. Do not use in new code. */
:root, .t-night, .t-snow, .t-ops, .section--night, .section--snow, [data-theme] {
  --cream: var(--bg); --cream-2: var(--surface-2); --paper: var(--surface); --snow: var(--field-bg);
  --ink: var(--text); --ink-2: var(--text-2); --ink-3: var(--text-3);
  --wood-200: var(--line); --wood-100: var(--line);
  --night: var(--dusk-950); --night-2: var(--dusk-800);
  --burgundy-700: var(--primary-hover); --burgundy-400: var(--link); --burgundy-100: var(--selected-bg);
  --ski: var(--info); --ski-700: var(--info); --ski-100: var(--info-bg);
}
/* --burgundy itself stays the real logo colour (#5b2a26). Demo code that used it as "primary ink" must switch to --primary or --accent-text. */

/* ---------- 3. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: var(--bg); color: var(--text);
  font-family: var(--font-sans); font-size: var(--fs-body); line-height: var(--lh-body);
  font-feature-settings: "ss01", "kern"; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
p, h1, h2, h3, h4, h5, h6, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"], .list-reset { list-style: none; margin: 0; padding: 0; }
table { border-collapse: collapse; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-6) 0; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: var(--r-1); }
[hidden] { display: none !important; }

/* ---------- 4. Typography ---------- */
.display, .h1, .h2, .h3, h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: -.01em; text-wrap: balance; }
.display { font-size: var(--fs-display); line-height: .92; letter-spacing: -.025em; }
h1, .h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2, .h2 { font-size: var(--fs-h2); line-height: var(--lh-head); }
h3, .h3 { font-size: var(--fs-h3); line-height: 1.2; }
h4, .h4 { font-family: var(--font-sans); font-size: var(--fs-h4); font-weight: 600; line-height: 1.3; }
.lede { font-size: var(--fs-lede); line-height: 1.5; color: var(--text-2); max-width: 46ch; text-wrap: pretty; }
.prose { max-width: var(--maxw-text); }
.prose p + p { margin-top: 1em; }
.small { font-size: var(--fs-sm); }
.xs { font-size: var(--fs-xs); }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.caps { font-family: var(--font-sans); font-size: var(--fs-micro); font-weight: 600; letter-spacing: var(--tracking-caps); text-transform: uppercase; }
.eyebrow { font-size: var(--fs-micro); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.mono { font-family: var(--font-mono); font-size: .92em; letter-spacing: 0; }
.num { font-variant-numeric: lining-nums proportional-nums; }
/* Schibsted's tabular comma is very wide. Money reads proportional everywhere;
   tabular figures only in right-aligned table columns (.table td.num, .dtable td.num). */
.price { font-variant-numeric: lining-nums proportional-nums; white-space: nowrap; }
.italic-serif { font-family: var(--font-display); font-style: italic; }
.link { color: var(--link); text-decoration: underline; }
.link:hover { color: var(--text); }

/* ---------- 5. Layout, section rhythm, photo frames ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 880px; }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .55); }
.section--sunken { background: var(--surface); }
.section--night, .section--snow { background: var(--bg); color: var(--text); }
.section__head { display: grid; gap: var(--s-3); margin-bottom: var(--s-7); max-width: 60ch; }
.stack > * + * { margin-top: var(--stack, var(--s-4)); }
.stack-sm { --stack: var(--s-2); } .stack-lg { --stack: var(--s-6); } .stack-xl { --stack: var(--s-8); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--gap, var(--s-3)); align-items: center; }
.row { display: flex; gap: var(--gap, var(--s-3)); align-items: center; }
.row--between { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }
.grid { display: grid; gap: var(--gap, var(--s-5)); grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--min, 260px)), 1fr)); }
.split { display: grid; gap: var(--gap, var(--s-7)); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: var(--split, 1fr 1fr); }
  .split--wide-left { --split: 1.35fr 1fr; }
  .split--wide-right { --split: 1fr 1.35fr; }
}
.full-bleed { width: 100vw; margin-inline: calc(50% - 50vw); }
.rule { height: 1px; background: var(--line); border: 0; }
.visually-hidden, .sr-only { position: absolute !important; 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: var(--s-4); top: -100px; z-index: 200; background: var(--primary); color: var(--on-primary); padding: var(--s-2) var(--s-4); border-radius: var(--r-2); text-decoration: none; font-weight: 600; }
.skip-link:focus { top: var(--s-4); }

/* photo frames: real photographs only; the frame colour shows while the image loads */
.media { position: relative; overflow: hidden; background: var(--surface-2); }
.media > img, .media > picture > img, .media > video { width: 100%; height: 100%; object-fit: cover; }
.media--scrim::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(10, 18, 29, 0) 35%, rgba(10, 18, 29, .82)); }
.media--frame { border: 1px solid var(--line); border-radius: var(--r-1); }
.media__cap { position: absolute; left: var(--s-4); right: var(--s-4); bottom: var(--s-3); z-index: 1; color: #f2f6fb; font-size: var(--fs-xs); text-shadow: 0 1px 2px rgba(4, 9, 16, .6); }
.ratio-1 { aspect-ratio: 1 / 1; } .ratio-4-5 { aspect-ratio: 4 / 5; } .ratio-3-4 { aspect-ratio: 3 / 4; }
.ratio-3-2 { aspect-ratio: 3 / 2; } .ratio-16-9 { aspect-ratio: 16 / 9; } .ratio-21-9 { aspect-ratio: 21 / 9; }

/* ---------- 6. Buttons ---------- */
.btn {
  --btn-h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--btn-h); padding: 0 var(--s-5);
  border: 1px solid transparent; border-radius: var(--r-btn);
  font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: 600; letter-spacing: .01em; line-height: 1.15;
  text-decoration: none; text-align: center; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--d-1) var(--ease-out), color var(--d-1) var(--ease-out), border-color var(--d-1) var(--ease-out), transform var(--d-1) var(--ease-out), box-shadow var(--d-2) var(--ease-out);
}
.btn:active:not(:disabled) { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--primary-hover); }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: var(--amber-300); }
.btn--ghost { border-color: currentColor; color: var(--text); background: transparent; }
.btn--ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.btn--quiet { color: var(--text); background: transparent; padding-inline: var(--s-3); }
.btn--quiet:hover { background: color-mix(in srgb, var(--text) 9%, transparent); }
.btn--light { background: var(--snow-50); color: var(--ink-900); }
.btn--light:hover { background: #ffffff; }
.btn--danger { background: var(--red-700); color: #ffffff; }
.btn--danger:hover { background: #8c1f18; }
.btn--sm { --btn-h: 36px; padding-inline: var(--s-4); font-size: var(--fs-xs); }
.btn--lg { --btn-h: 58px; padding-inline: var(--s-6); font-size: var(--fs-body); }
.btn--block { width: 100%; }
.btn--icon { padding: 0; width: var(--btn-h); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn[aria-busy="true"] { pointer-events: none; }
.btn[aria-busy="true"]::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: b-spin .7s linear infinite; }
.arrow-link { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.arrow-link::after { content: "→"; transition: transform var(--d-2) var(--ease-out); }
.arrow-link:hover::after { transform: translateX(4px); }

/* ---------- 7. Forms ---------- */
.field { display: grid; gap: 6px; }
.field__label { font-size: var(--fs-xs); font-weight: 600; color: var(--text-2); }
.field__hint { font-size: var(--fs-xs); color: var(--text-3); }
.field__error { font-size: var(--fs-xs); color: var(--danger); font-weight: 600; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  background: var(--field-bg); color: var(--field-text);
  border: 1px solid var(--line-strong); border-radius: var(--r-2);
  transition: border-color var(--d-1) var(--ease-out), box-shadow var(--d-1) var(--ease-out);
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-size: 6px 6px, 6px 6px; background-position: right 19px center, right 13px center; background-repeat: no-repeat; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--text-2); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 30%, transparent); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.input::placeholder, .textarea::placeholder { color: var(--placeholder); opacity: 1; }
.input:disabled, .select:disabled, .textarea:disabled { opacity: .55; cursor: not-allowed; }
.check { display: inline-flex; gap: var(--s-2); align-items: flex-start; cursor: pointer; font-size: var(--fs-sm); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--primary); flex: none; }
/* segmented control */
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-2); }
.seg > button, .seg > label { min-height: 36px; padding: 0 var(--s-4); border-radius: calc(var(--r-2) - 1px); font-size: var(--fs-xs); font-weight: 600; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; transition: background-color var(--d-1) var(--ease-out), color var(--d-1) var(--ease-out); }
.seg > [aria-pressed="true"], .seg > [aria-selected="true"], .seg > label:has(input:checked) { background: var(--bg); color: var(--text); box-shadow: var(--sh-1); }
.seg > label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
/* quantity stepper */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--field-bg); color: var(--field-text); }
.qty button { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
.qty button:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.qty output, .qty span { min-width: 2ch; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
/* switch: <input type="checkbox" role="switch" class="switch"> */
.switch { position: relative; width: 44px; height: 26px; flex: none; appearance: none; -webkit-appearance: none; margin: 0; border-radius: 13px; background: var(--line-strong); cursor: pointer; transition: background-color var(--d-2) var(--ease-out); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #ffffff; box-shadow: var(--sh-1); transition: transform var(--d-2) var(--ease-out); }
.switch:checked { background: var(--ok); }
.switch:checked::after { transform: translateX(18px); }
.switch:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- 8. Chips, badges, allergens, status dots ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 var(--s-4); border: 1px solid var(--line-strong); border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 600; color: var(--text-2); background: transparent; white-space: nowrap; text-decoration: none; transition: background-color var(--d-1) var(--ease-out), color var(--d-1) var(--ease-out), border-color var(--d-1) var(--ease-out); }
button.chip:hover, a.chip:hover { border-color: var(--text); color: var(--text); }
.chip[aria-pressed="true"], .chip[aria-selected="true"], .chip--selected { background: var(--text); border-color: var(--text); color: var(--bg); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: var(--r-1); font-size: var(--fs-micro); font-weight: 600; line-height: 1.5; white-space: nowrap; background: var(--idle-bg); color: var(--text-2); }
.badge--ok { background: var(--ok-bg); color: var(--ok); }
.badge--warn { background: var(--warn-bg); color: var(--warn); }
.badge--danger { background: var(--danger-bg); color: var(--danger); }
.badge--info { background: var(--info-bg); color: var(--info); }
.badge--brand { background: var(--accent); color: var(--on-accent); }
.badge--solid { background: var(--text); color: var(--bg); }
.allergens { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.allergen { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); font-family: var(--font-mono); font-size: 11px; color: var(--text-2); }
.tag { font-size: var(--fs-micro); font-weight: 600; color: var(--ok); letter-spacing: .02em; }
.tag--house { color: var(--accent-text); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--idle); flex: none; }
.dot--ok { background: var(--ok); } .dot--warn, .dot--slow { background: var(--warn); } .dot--danger, .dot--down { background: var(--danger); } .dot--info { background: var(--info); } .dot--idle { background: var(--idle); }
@media (prefers-reduced-motion: no-preference) { .dot--down, .dot--pulse { animation: b-pulse 1.6s var(--ease-out) infinite; } }

/* ---------- 9. Cards, lists, notices ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); padding: var(--s-5); }
.card--flat { background: transparent; }
.card--raised { border-color: transparent; box-shadow: var(--sh-2); }
.list-rows > * { padding-block: var(--s-4); border-top: 1px solid var(--line); }
.list-rows > *:last-child { border-bottom: 1px solid var(--line); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: var(--s-2) var(--s-5); font-size: var(--fs-sm); }
.kv dt { color: var(--text-3); } .kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.notice { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-3) var(--s-4); border-radius: var(--r-2); background: var(--info-bg); color: var(--info); font-size: var(--fs-sm); }
.notice--warn { background: var(--warn-bg); color: var(--warn); }
.notice--danger { background: var(--danger-bg); color: var(--danger); }
.notice--ok { background: var(--ok-bg); color: var(--ok); }
.empty { display: grid; justify-items: center; gap: var(--s-3); text-align: center; padding: var(--s-8) var(--s-5); color: var(--text-2); }
.empty__title { font-family: var(--font-display); font-size: 1.5rem; color: var(--text); }
/* shown by the base template when JavaScript is off */
.noscript { max-width: 46ch; margin: 18vh auto; padding: var(--s-5) var(--gutter); text-align: center; }
.noscript h1 { font-size: var(--fs-h2); margin-bottom: var(--s-4); }
.noscript a { color: var(--link); }

/* ---------- 10. Tables ---------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; font-size: var(--fs-sm); }
.table th { text-align: left; font-size: var(--fs-micro); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); padding: var(--s-2) var(--s-3); border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
.table td { padding: var(--s-3); border-bottom: 1px solid var(--line); vertical-align: top; }
.table .r, .table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table td.num, .dtable td.num { font-family: var(--font-mono); font-size: .92em; }
.table tbody tr:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }
.dtable-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface); }
.dtable { width: 100%; font-size: var(--fs-sm); }
.dtable th { position: sticky; top: 0; background: var(--surface); text-align: left; font-size: 11px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); padding: 10px 12px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
.dtable td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.dtable tr:last-child td { border-bottom: 0; }
.dtable td.num, .dtable th.num { text-align: right; font-variant-numeric: tabular-nums; }
.dtable td.mono, .dtable td .mono { font-family: var(--font-mono); }
.dtable tbody tr:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }
.dtable tr[data-flash] { animation: b-flash 1.6s var(--ease-out); }
.dtable .muted-row td { color: var(--text-3); }

/* ---------- 11. Sheets, drawers, dialogs (native <dialog>, see Burja.ui.sheet) ---------- */
dialog.sheet {
  --sheet-w: 560px;
  position: fixed; margin: 0; padding: 0; border: 0; max-width: none; max-height: none;
  color: var(--text); background: var(--surface);
  box-shadow: var(--sh-3); overflow: hidden; display: flex; flex-direction: column;
}
dialog.sheet:not([open]) { display: none; }
dialog.sheet::backdrop { background: var(--scrim, rgba(4, 9, 16, .6)); }
dialog.sheet[data-side="bottom"] { inset: auto 0 0 0; width: 100%; max-height: 92dvh; border-radius: var(--r-4) var(--r-4) 0 0; }
dialog.sheet[data-side="right"] { inset: 0 0 0 auto; width: min(100%, var(--sheet-w)); height: 100dvh; border-left: 1px solid var(--line); }
dialog.sheet[data-side="center"] { inset: 0; margin: auto; width: min(calc(100% - 32px), var(--sheet-w)); max-height: min(88dvh, 820px); border-radius: var(--r-3); }
@media (min-width: 760px) { dialog.sheet[data-side="bottom"] { inset: 0; margin: auto; width: min(calc(100% - 48px), var(--sheet-w)); max-height: min(88dvh, 820px); border-radius: var(--r-3); } }
.sheet__head { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); }
.sheet__title { font-family: var(--font-display); font-size: 1.45rem; line-height: 1.2; flex: 1; min-width: 0; }
.sheet__close { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--text-2); }
.sheet__close:hover { background: var(--surface-2); color: var(--text); }
.sheet__body { padding: var(--s-5); overflow-y: auto; overscroll-behavior: contain; flex: 1; }
.sheet__foot { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: flex-end; padding: var(--s-4) var(--s-5); padding-bottom: max(var(--s-4), env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.sheet__grip { width: 40px; height: 4px; border-radius: 2px; background: var(--line-strong); margin: 8px auto 0; flex: none; }
@media (min-width: 760px) { .sheet__grip { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  dialog.sheet[open] { animation: b-sheet-in var(--d-3) var(--ease-drawer); }
  dialog.sheet[data-side="right"][open] { animation-name: b-sheet-right; }
  dialog.sheet[data-side="center"][open] { animation-name: b-pop-in; }
  dialog.sheet[open]::backdrop { animation: b-fade-in var(--d-3) var(--ease-out); }
  @media (min-width: 760px) { dialog.sheet[data-side="bottom"][open] { animation-name: b-pop-in; } }
}

/* ---------- 12. Toasts (inverted against the theme so they always stand out) ---------- */
.toast-region { position: fixed; z-index: var(--z-toast); left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: var(--s-2); width: min(calc(100% - 32px), 420px); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: var(--s-3); align-items: center; padding: 12px 14px 12px 16px; background: var(--toast-bg); color: var(--toast-text); border-radius: var(--r-3); box-shadow: var(--sh-3); font-size: var(--fs-sm); line-height: 1.4; }
.toast__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--wood-500); flex: none; }
.toast--ok .toast__dot { background: #2f9467; } .toast--warn .toast__dot { background: #d9952b; } .toast--danger .toast__dot { background: #e0483c; } .toast--info .toast__dot { background: #3f86d6; }
.toast__msg { flex: 1; min-width: 0; }
.toast__action { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; padding: 6px; }
@media (prefers-reduced-motion: no-preference) { .toast { animation: b-toast-in var(--d-3) var(--ease-out); } .toast[data-leaving] { animation: b-fade-out var(--d-2) var(--ease-out) forwards; } }

/* ---------- 13. Misc ---------- */
.lang-switch { display: inline-flex; gap: 2px; font-family: var(--font-mono); font-size: var(--fs-micro); }
.lang-switch a, .lang-switch button { min-width: 36px; min-height: 36px; display: inline-grid; place-items: center; padding: 0 8px; border-radius: var(--r-1); color: var(--text-2); text-decoration: none; text-transform: uppercase; }
.lang-switch a:hover, .lang-switch button:hover { color: var(--text); }
.lang-switch [aria-current="true"], .lang-switch [aria-pressed="true"] { color: var(--text); background: color-mix(in srgb, var(--text) 12%, transparent); }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--primary); animation: b-spin .8s linear infinite; }
.skeleton { background: linear-gradient(90deg, var(--surface-2) 0%, color-mix(in srgb, var(--surface-2) 60%, var(--text) 8%) 50%, var(--surface-2) 100%); background-size: 200% 100%; border-radius: var(--r-1); min-height: 1em; color: transparent; animation: b-shimmer 1.4s linear infinite; }
.skeleton--text { height: .9em; margin-block: .35em; }
.skeleton--block { min-height: 120px; }
.icon { width: 20px; height: 20px; flex: none; }
.icon-sm { width: 16px; height: 16px; flex: none; }
.fresh { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-micro); color: var(--text-3); }
.fresh--stale { color: var(--warn); font-weight: 600; }
/* ledger / progress steps */
.steps { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: 11px; font-family: var(--font-mono); }
.steps span { padding: 2px 6px; border-radius: 4px; background: var(--surface-2); color: var(--text-3); }
.steps span[data-done="true"] { background: var(--ok-bg); color: var(--ok); }
.steps span[data-current="true"] { background: var(--info-bg); color: var(--info); font-weight: 700; }
.steps span[data-bad="true"] { background: var(--danger-bg); color: var(--danger); font-weight: 700; }

/* shell brand bar of the page shells (templates/includes/burja_brandbar.html); public pages replace it with their own header */
.brandbar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-5); flex-wrap: wrap; padding-block: var(--s-4); }
.brandbar__brand { display: inline-flex; align-items: center; gap: var(--s-3); font-family: var(--font-display); font-size: 1.35rem; line-height: 1.1; letter-spacing: .01em; text-decoration: none; color: var(--text); }
.brandbar__nav { display: flex; align-items: center; gap: var(--s-2) var(--s-5); flex-wrap: wrap; font-size: var(--fs-sm); font-weight: 600; }
.brandbar__nav a { text-decoration: none; padding-block: var(--s-2); }
.brandbar__nav a:hover { color: var(--accent-text); }

/* Reveal hook: Burja.ui.reveal() sets .reveal-on on <html> and adds .is-in to each element as it scrolls in.
   Nothing is hidden without that class: no JS, a script that failed to load, reduced motion and print all show the content. */
@media (prefers-reduced-motion: no-preference) {
  .reveal-on .reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--d-4) var(--ease-out), transform var(--d-4) var(--ease-out); }
  .reveal-on .reveal.is-in { opacity: 1; transform: none; }
}
@media print { .reveal-on .reveal { opacity: 1 !important; transform: none !important; } }

/* ---------- 14. Keyframes ---------- */
@keyframes b-spin { to { transform: rotate(360deg); } }
@keyframes b-shimmer { to { background-position: -200% 0; } }
@keyframes b-fade-in { from { opacity: 0; } }
@keyframes b-fade-out { to { opacity: 0; transform: translateY(6px); } }
@keyframes b-sheet-in { from { transform: translateY(100%); } }
@keyframes b-sheet-right { from { transform: translateX(100%); } }
@keyframes b-pop-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes b-toast-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes b-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--danger) 55%, transparent); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes b-flash { 0% { background-color: var(--warn-bg); } 100% { background-color: transparent; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   SNOW (/miza, /racun): guests outside in glare, gloves, one hand.
   ========================================================================== */
.t-snow .btn { --btn-h: 52px; border-radius: var(--r-3); font-size: var(--fs-body); }
.t-snow .btn--sm { --btn-h: 44px; font-size: var(--fs-sm); }
.t-snow .btn--lg { --btn-h: 60px; }
.t-snow .chip { min-height: 44px; font-size: var(--fs-sm); }
.t-snow .input, .t-snow .select, .t-snow .textarea { min-height: 52px; border-radius: var(--r-3); font-size: 1.0625rem; }
.t-snow .qty button { width: 48px; height: 48px; }
.t-snow .card { border-radius: var(--r-3); }
.t-snow .allergen { min-width: 24px; height: 24px; font-size: 12px; }

/* ==========================================================================
   OPS (/ekipa): calmer, denser, utilitarian. Light by default;
   dark with <html class="t-ops" data-theme="dark"> (Burja.ui.theme).
   Shell class names are the demo's (.adm-*), so the ported admin JS keeps working.
   ========================================================================== */
.t-ops body { font-size: var(--fs-body); }
.t-ops .btn { --btn-h: 40px; padding-inline: var(--s-4); }
.t-ops .btn--sm { --btn-h: 32px; padding-inline: var(--s-3); }
.t-ops .btn--lg { --btn-h: 52px; }
.t-ops .btn--icon { padding: 0; }
.t-ops .input, .t-ops .select, .t-ops .textarea { min-height: 40px; border-radius: var(--r-btn); }
.t-ops .chip { min-height: 32px; }
.t-ops h1, .t-ops h2, .t-ops h3 { font-family: var(--font-sans); font-weight: 650; letter-spacing: -.01em; }
.t-ops h1 { font-size: 1.5rem; line-height: 1.2; } .t-ops h2 { font-size: 1.2rem; line-height: 1.25; } .t-ops h3 { font-size: 1rem; line-height: 1.3; }
.t-ops .sheet__title { font-family: var(--font-sans); font-weight: 650; font-size: 1.15rem; }
@media (pointer: coarse) { .t-ops .btn { --btn-h: 44px; } .t-ops .btn--sm { --btn-h: 40px; } .t-ops .input, .t-ops .select { min-height: 44px; } .t-ops .chip { min-height: 40px; } }

/* login (always the night look: photo left, form right) */
.adm-login { min-height: 100dvh; display: grid; grid-template-columns: 1fr; background: var(--dusk-950); color: var(--snow-50); }
@media (min-width: 960px) { .adm-login { grid-template-columns: 1.1fr 1fr; } }
.adm-login__art { position: relative; min-height: 34vh; overflow: hidden; background: linear-gradient(165deg, var(--dusk-600), var(--dusk-900) 55%, var(--dusk-950)); }
.adm-login__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.adm-login__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 18, 29, 0) 40%, rgba(10, 18, 29, .88)); }
.adm-login__brand { position: absolute; left: var(--s-6); bottom: var(--s-6); z-index: 1; }
.adm-login__brand .display { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.6rem, 6vw, 5rem); color: var(--snow-50); }
.adm-login__panel { display: grid; align-content: center; padding: var(--s-7) var(--gutter); background: var(--bg); color: var(--text); }
.adm-login__form { width: 100%; max-width: 420px; margin-inline: auto; }

/* shell */
.adm-shell { display: grid; grid-template-columns: 1fr; grid-template-rows: auto 1fr; min-height: 100dvh; }
@media (min-width: 1024px) { .adm-shell { grid-template-columns: 248px 1fr; grid-template-rows: 1fr; } }
.adm-side { background: var(--side-bg); color: var(--side-text); display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-4) var(--s-3); position: fixed; inset: 0 auto 0 0; width: min(86vw, 280px); z-index: var(--z-sheet); transform: translateX(-100%); transition: transform var(--d-3) var(--ease-drawer); overflow-y: auto; }
.adm-side[data-open="true"] { transform: none; box-shadow: var(--sh-3); }
@media (min-width: 1024px) { .adm-side { position: sticky; top: 0; height: 100dvh; width: auto; transform: none; } }
.adm-scrim { position: fixed; inset: 0; background: var(--scrim); z-index: calc(var(--z-sheet) - 1); }
@media (min-width: 1024px) { .adm-scrim { display: none; } }
.adm-brand { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-2) var(--s-3); border-bottom: 1px solid var(--side-line); }
.adm-brand img { width: 36px; height: 36px; border-radius: 50%; }
.adm-brand b { font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; letter-spacing: .01em; display: block; line-height: 1.1; }
.adm-brand small { font-size: var(--fs-micro); color: var(--side-text-2); }
.adm-nav { display: grid; gap: var(--s-4); }
.adm-nav__group { display: grid; gap: 2px; }
.adm-nav__label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--side-text-2); padding: 0 var(--s-3) var(--s-1); }
.adm-nav__item { display: flex; align-items: center; gap: var(--s-3); min-height: 40px; padding: 0 var(--s-3); border-radius: 6px; color: var(--side-text); text-decoration: none; font-size: var(--fs-sm); font-weight: 500; transition: background-color var(--d-1) var(--ease-out); }
.adm-nav__item svg { width: 18px; height: 18px; opacity: .8; }
.adm-nav__item:hover { background: rgba(228, 235, 243, .07); }
.adm-nav__item[aria-current="page"] { background: var(--side-active); color: #ffffff; box-shadow: inset 2px 0 0 var(--amber-400); }
.adm-nav__item[aria-current="page"] svg { opacity: 1; }
.adm-nav__item:focus-visible, .adm-side .btn:focus-visible { outline-color: var(--amber-300); }
.adm-nav__count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red-700); color: #ffffff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.adm-side__foot { margin-top: auto; display: grid; gap: var(--s-2); padding: var(--s-3) var(--s-2) 0; border-top: 1px solid var(--side-line); font-size: var(--fs-xs); color: var(--side-text-2); }
.adm-side__foot .btn { color: var(--side-text); justify-content: flex-start; }
.adm-side__foot .btn:hover { background: rgba(228, 235, 243, .07); }

.adm-main { min-width: 0; display: flex; flex-direction: column; }
.adm-top { position: sticky; top: 0; z-index: var(--z-header); display: flex; align-items: center; gap: var(--s-3); min-height: 56px; padding: var(--s-2) var(--s-4); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) { .adm-top { padding-inline: var(--s-6); } .adm-top__menu { display: none !important; } }
.adm-top__title { font-weight: 650; font-size: 1rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-top__date { color: var(--text-3); font-size: var(--fs-xs); white-space: nowrap; }
.adm-top__spacer { flex: 1; }
.adm-health { display: inline-flex; align-items: center; gap: var(--s-1); }
.adm-health__item { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 16px; font-size: var(--fs-micro); font-weight: 600; color: var(--text-2); background: var(--surface); border: 1px solid var(--line); white-space: nowrap; }
.adm-health__item .lbl { display: none; }
@media (min-width: 720px) { .adm-health__item .lbl { display: inline; } }
.adm-exc { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 16px; font-size: var(--fs-micro); font-weight: 700; text-decoration: none; background: var(--ok-bg); color: var(--ok); white-space: nowrap; }
.adm-exc[data-count]:not([data-count="0"]) { background: var(--red-700); color: #ffffff; }
.adm-exc .lbl { display: none; }
@media (min-width: 720px) { .adm-exc .lbl { display: inline; } }
@media (max-width: 420px) { .adm-top { gap: var(--s-2); padding-inline: var(--s-3); } .adm-top__date { display: none; } .adm-health { gap: 0; } .adm-health__item { padding: 0 5px; border: 0; background: none; } .adm-top .btn--sm { padding-inline: 8px; } }
.adm-pop { position: absolute; right: var(--s-4); top: calc(100% + 6px); width: min(calc(100vw - 32px), 320px); background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-3); box-shadow: var(--sh-3); padding: var(--s-3); display: grid; gap: var(--s-2); z-index: calc(var(--z-header) + 1); }
@media (prefers-reduced-motion: no-preference) { .adm-pop:not([hidden]) { animation: b-pop-in var(--d-2) var(--ease-out); transform-origin: top right; } }
.adm-pop__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-2); border-radius: 6px; font-size: var(--fs-sm); }
.adm-pop__row:hover { background: var(--surface-2); }
.adm-banner { padding: var(--s-2) var(--s-4); font-size: var(--fs-xs); background: var(--warn-bg); color: var(--warn); border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) { .adm-banner { padding-inline: var(--s-6); } }

.adm-screen { padding: var(--s-5) var(--s-4) var(--s-8); width: 100%; max-width: 1480px; }
@media (min-width: 1024px) { .adm-screen { padding: var(--s-6) var(--s-6) var(--s-9); } }
.adm-screen:focus { outline: none; }
.screen-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s-3) var(--s-5); margin-bottom: var(--s-5); }
/* brand voice in ops: Gloock only for the screen title and room/table numerals */
.screen-head__title, .t-ops .screen-head__title { font-family: var(--font-display); font-weight: 400; font-size: 1.85rem; line-height: 1.15; letter-spacing: -.01em; }
.screen-head__sub { color: var(--text-3); font-size: var(--fs-sm); margin-top: 2px; }
.screen-head__actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin-bottom: var(--s-4); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3); }
.panel__head { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); }
.panel__title, .t-ops .panel__title { font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: 650; }
.panel__body { padding: var(--s-4); }
.panel__body--flush { padding: 0; }

.kpis { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); margin-bottom: var(--s-5); }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3); padding: var(--s-3) var(--s-4); display: grid; gap: 2px; min-width: 0; }
.kpi__label { font-size: var(--fs-micro); font-weight: 600; color: var(--text-3); letter-spacing: .02em; }
.kpi__value { font-size: 1.75rem; font-weight: 650; line-height: 1.15; font-variant-numeric: lining-nums proportional-nums; letter-spacing: -.02em; }
.kpi__meta { font-size: var(--fs-micro); color: var(--text-3); }
.kpi--alert .kpi__value { color: var(--danger); }

/* room tiles (Danes board): state = 3 px top band + label; tinted background only when action is needed */
.tiles { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.tile { position: relative; display: grid; gap: var(--s-2); align-content: start; text-align: left; min-height: 150px; padding: var(--s-3) var(--s-4) var(--s-4); background: var(--surface); border: 1px solid var(--line); box-shadow: inset 0 3px 0 var(--tile-c, var(--line-strong)); border-radius: var(--r-3); color: var(--text); transition: box-shadow var(--d-2) var(--ease-out), transform var(--d-1) var(--ease-out); }
button.tile:hover, a.tile:hover { box-shadow: inset 0 3px 0 var(--tile-c, var(--line-strong)), var(--sh-2); }
button.tile:active { transform: scale(.99); }
.tile__num { font-family: var(--font-display); font-size: 2rem; line-height: 1; }
.tile__state { font-size: var(--fs-micro); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--tile-c, var(--text-3)); }
.tile__who { font-weight: 600; }
.tile__meta { font-size: var(--fs-xs); color: var(--text-3); }
.tile__badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; }
.tile[data-state="prosta"] { --tile-c: var(--idle); }
.tile[data-state="prihod"] { --tile-c: var(--info); }
.tile[data-state="v-hisi"] { --tile-c: var(--text); }
.tile[data-state="odhod"] { --tile-c: var(--text-2); }
.tile[data-state="za-ciscenje"] { --tile-c: var(--warn); }
.tile[data-state="ociscena"] { --tile-c: var(--ok); }
.tile[data-state="odpovedano"] { --tile-c: var(--idle); opacity: .8; }
.tile[data-urgent="true"], .tile[data-state="ciscenje-nujno"] { background: color-mix(in srgb, var(--warn-bg) 35%, var(--surface)); border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
.state-legend { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); font-size: var(--fs-micro); color: var(--text-3); }
.state-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; background: var(--tile-c); }

/* exceptions list */
.exc-list { display: grid; gap: var(--s-2); }
.exc { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-3); align-items: start; padding: var(--s-3) var(--s-4); background: var(--surface); border: 1px solid var(--line); box-shadow: inset 0 3px 0 var(--exc-c, var(--danger)); border-radius: var(--r-3); }
.exc[data-severity="warn"] { --exc-c: var(--warn); }
.exc[data-severity="info"] { --exc-c: var(--info); }
.exc[data-status="resolved"] { --exc-c: var(--ok); opacity: .75; }
.exc__title { font-weight: 650; }
.exc__meta { font-size: var(--fs-xs); color: var(--text-3); }
@media (max-width: 640px) { .exc { grid-template-columns: 1fr; } }

/* ---------- print (HACCP sheet for inspection, receipts, QR sheet) ---------- */
@media print {
  :root, .t-night, .t-snow, .t-ops, .t-ops[data-theme="dark"], .t-snow:not([data-theme="light"]) {
    color-scheme: light;
    --bg: #ffffff; --surface: #ffffff; --surface-2: #f0f0f0; --text: #000000; --text-2: #222222; --text-3: #444444;
    --line: #bbbbbb; --line-strong: #666666; --field-bg: #ffffff; --field-text: #000000;
    --ok: #1f5c44; --warn: #7d4e05; --danger: #a8281f; --info: #1b5a9e; --ok-bg: #ffffff; --warn-bg: #ffffff; --danger-bg: #ffffff; --info-bg: #ffffff; --idle-bg: #ffffff;
  }
  .adm-side, .adm-top, .adm-banner, .adm-scrim, .no-print, .toast-region, .skip-link { display: none !important; }
  .adm-shell { display: block; }
  html, body { background: #ffffff; }
}
