/* Merlin 26 · Rezervări */
/* Identitate v6: verde de sticlă ca cerneală, alb rece, un singur accent roșu-vin (catifeaua casei, stinsă). Fără auriu. */
:root {
  --bg: #0E1311; --surface: #141A17; --surface-2: #19201C; --sunk: #0B0F0D;
  --ink: #E4E9E5; --ink-2: #A2ADA6; --ink-3: #6B7670;
  --line: rgba(228, 233, 229, .08); --line-2: rgba(228, 233, 229, .15);
  --wine: #C9766C; --wine-ink: #0E1311;
  --brass: #C9766C; --brass-hi: #D98A80; --gold: #C9766C; --gold-hi: #D98A80; --gold-lo: #9E5249;
  --velvet: #E4E9E5; --velvet-hi: #FFFFFF; --velvet-ink: #0E1311;
  --accent: #E4E9E5; --accent-ink: #0E1311; --accent-soft: rgba(228, 233, 229, .05); --accent-hover: #FFFFFF;
  --emerald: #0E1311;
  --pending: #D98A80; --pending-bg: rgba(217, 138, 128, .1);
  --confirmed: #8CC0A3; --confirmed-bg: rgba(140, 192, 163, .1);
  --seated: #93AFC9; --seated-bg: rgba(147, 175, 201, .11);
  --finished: #6B7670; --finished-bg: rgba(107, 118, 112, .1);
  --cancelled: #8A8F8C; --cancelled-bg: rgba(138, 143, 140, .08);
  --noshow: #B9786F; --noshow-bg: rgba(185, 120, 111, .1);
  --floor: #121815; --floor-grid: rgba(228, 233, 229, .03);
  --table: #1C2420; --table-line: rgba(228, 233, 229, .2); --chair: #3D2724; --wall: #7C8781; --decor: #19201C; --plant: #4B6B58;
  --shadow-1: none; --shadow-2: 0 24px 60px rgba(0, 0, 0, .5);
  --glow: 0 0 0 1px rgba(228, 233, 229, .3);
  --scrim: rgba(6, 9, 8, .6);
  --r: 4px; --r-sm: 4px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --serif: "Newsreader", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F2F4F2; --surface: #FFFFFF; --surface-2: #F8F9F8; --sunk: #E9EDEA;
  --ink: #15291F; --ink-2: #4B5B52; --ink-3: #85918A;
  --line: rgba(21, 41, 31, .09); --line-2: rgba(21, 41, 31, .17);
  --wine: #8A2E28; --wine-ink: #FFFFFF;
  --brass: #8A2E28; --brass-hi: #8A2E28; --gold: #8A2E28; --gold-hi: #8A2E28; --gold-lo: #6E241F;
  --velvet: #15291F; --velvet-hi: #0B1A12; --velvet-ink: #FFFFFF;
  --accent: #15291F; --accent-ink: #FFFFFF; --accent-soft: rgba(21, 41, 31, .045); --accent-hover: #0B1A12;
  --pending: #8A2E28; --pending-bg: rgba(138, 46, 40, .07);
  --confirmed: #2E6A4C; --confirmed-bg: rgba(46, 106, 76, .08);
  --seated: #3C5F80; --seated-bg: rgba(60, 95, 128, .08);
  --finished: #85918A; --finished-bg: rgba(133, 145, 138, .08);
  --cancelled: #85918A; --cancelled-bg: rgba(133, 145, 138, .06);
  --noshow: #7A2B25; --noshow-bg: rgba(122, 43, 37, .07);
  --floor: #F8F9F8; --floor-grid: rgba(21, 41, 31, .04);
  --table: #FFFFFF; --table-line: rgba(21, 41, 31, .28); --chair: #DCCBC8; --wall: #4B5B52; --decor: #EEF1EF; --plant: #94AC9D;
  --shadow-2: 0 20px 50px rgba(21, 41, 31, .12);
  --glow: 0 0 0 1px rgba(21, 41, 31, .3);
  --scrim: rgba(21, 41, 31, .25);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15.5px/1.5 var(--sans); letter-spacing: .005em; font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.num, time, .t { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
a { color: var(--accent); }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ——— butoane și câmpuri ——— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  font-weight: 500; white-space: nowrap; text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, transform 140ms var(--ease-out);
}
.btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--surface-2); border-color: var(--ink-3); } }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
@media (hover: hover) and (pointer: fine) { .btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); } }
.btn.ghost { background: transparent; border-color: transparent; }
@media (hover: hover) and (pointer: fine) { .btn.ghost:hover { background: var(--sunk); border-color: transparent; } }
.btn.danger { color: var(--cancelled); }
.btn.sm { min-height: 32px; padding: 0 10px; font-size: 13.5px; gap: 6px; }
.btn.icon { padding: 0; width: 40px; }
.btn.sm.icon { width: 32px; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.field small { color: var(--ink-3); font-size: 12.5px; }
.input, select.input, textarea.input {
  width: 100%; min-height: 42px; padding: 9px 12px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--surface); outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
textarea.input { min-height: 76px; resize: vertical; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input.err { border-color: var(--cancelled); }
.row { display: flex; gap: 10px; align-items: center; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); }
.stepper button { width: 42px; height: 40px; border: 0; background: none; font-size: 18px; color: var(--ink-2); }
.stepper input { width: 44px; text-align: center; border: 0; background: none; font-weight: 600; font-variant-numeric: tabular-nums; outline: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font-size: 13.5px;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.chip[aria-pressed="true"], .chip.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip .n { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] .n { color: inherit; opacity: .7; }

.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 9px; background: var(--sunk); }
.seg button { min-height: 32px; padding: 0 12px; border: 0; border-radius: 7px; background: none; color: var(--ink-2); font-size: 13.5px; font-weight: 500; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }

/* ——— status ——— */
.st { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st.pending { color: var(--pending); background: var(--pending-bg); }
.st.confirmed { color: var(--confirmed); background: var(--confirmed-bg); }
.st.seated { color: var(--seated); background: var(--seated-bg); }
.st.finished { color: var(--finished); background: var(--finished-bg); }
.st.cancelled { color: var(--cancelled); background: var(--cancelled-bg); }
.st.noshow { color: var(--noshow); background: var(--noshow-bg); }
.tag { display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 5px; font-size: 12px; color: var(--ink-2); background: var(--sunk); }
.tag.vip { color: var(--brass); background: color-mix(in srgb, var(--brass) 14%, transparent); }
.tag.alert { color: var(--cancelled); background: var(--cancelled-bg); }

/* ——— login ——— */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: min(380px, 100%); display: grid; gap: 22px; }
.mark { font-family: var(--serif); font-weight: 500; font-size: 40px; letter-spacing: -.01em; line-height: 1; font-variation-settings: "opsz" 96, "SOFT" 50; }
.mark .n26 { color: var(--brass); font-style: italic; }
.login-card p { margin: 6px 0 0; color: var(--ink-2); }
.login-card form { display: grid; gap: 12px; }
.demo-hint { font-size: 13.5px; color: var(--ink-2); padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface); border: 1px dashed var(--line-2); }
.form-err { color: var(--cancelled); font-size: 13.5px; min-height: 1em; }

/* ——— shell ——— */
.app { display: grid; grid-template-columns: 224px minmax(0, 1fr); grid-template-rows: auto 1fr; min-height: 100dvh; }
.rail {
  grid-row: 1 / span 2; position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column;
  padding: 20px 12px 14px; border-right: 1px solid var(--line); background: var(--surface-2);
}
.rail .mark { font-size: 26px; padding: 2px 10px 0; }
.rail .sub { padding: 4px 10px 22px; font-size: 12.5px; color: var(--ink-3); }
.nav { display: grid; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 11px; min-height: 40px; padding: 0 10px; border-radius: 8px;
  color: var(--ink-2); text-decoration: none; font-weight: 500;
  transition: background-color 150ms ease, color 150ms ease;
}
@media (hover: hover) and (pointer: fine) { .nav a:hover { background: var(--sunk); color: var(--ink); } }
.nav a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); }
.nav a .badge { margin-left: auto; }
.rail-foot { margin-top: auto; display: flex; gap: 4px; padding: 0 2px; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--pending); color: var(--surface); font-size: 12px; font-weight: 600; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }

.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px;
  padding: 12px 24px; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top h1 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.datenav { display: flex; align-items: center; gap: 4px; }
.datebtn { position: relative; min-width: 190px; justify-content: flex-start; font-weight: 600; }
.datebtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.datebtn .rel { color: var(--ink-3); font-weight: 500; }
.top .spacer { flex: 1; }
.search { position: relative; width: min(280px, 30vw); }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search .input { padding-left: 36px; min-height: 40px; }
.search-pop { position: absolute; top: calc(100% + 6px); right: 0; width: min(420px, 92vw); max-height: 60vh; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-2); padding: 6px; z-index: 40; }
.view { padding: 22px 24px 48px; min-width: 0; }
.tabbar { display: none; }

/* ——— panouri ——— */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.panel-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.panel-h h2, .panel-h h3 { margin: 0; font-size: 15px; font-weight: 600; }
.muted { color: var(--ink-3); }
.empty { padding: 44px 20px; text-align: center; color: var(--ink-2); }
.empty strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }

/* ——— ziua: sumar ——— */
.dayhead { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: end; margin-bottom: 18px; }
.stats { display: flex; gap: 28px; flex-wrap: wrap; }
.stat b { display: block; font-size: 28px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--ink-2); }
.stat.warn b { color: var(--pending); }
.load { display: flex; align-items: flex-end; gap: 3px; height: 52px; min-width: 0; }
.load .bar { flex: 1; min-width: 6px; display: grid; align-content: end; gap: 4px; height: 100%; position: relative; }
.load .bar i { display: block; border-radius: 3px 3px 1px 1px; background: var(--accent); opacity: .85; min-height: 2px; }
.load .bar.zero i { background: var(--line-2); opacity: 1; }
.load .bar.now i { background: var(--brass); opacity: 1; }
.load .bar em { font-style: normal; font-size: 10.5px; color: var(--ink-3); text-align: center; font-variant-numeric: tabular-nums; height: 13px; }
.filters { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }

/* ——— lista de rezervări ——— */
.rlist { display: grid; }
.rgroup { display: grid; grid-template-columns: 64px 1fr; border-top: 1px solid var(--line); }
.rgroup:first-child { border-top: 0; }
.rgroup > .h { padding: 16px 0 0 16px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: 13.5px; }
.rrow {
  display: grid; grid-template-columns: 62px 52px minmax(0, 1fr) 200px 124px auto; align-items: center; gap: 12px;
  padding: 11px 16px 11px 0; min-height: 60px; cursor: pointer; border-radius: 8px;
  transition: background-color 120ms ease;
}
.rrow + .rrow { border-top: 1px dashed var(--line); }
@media (hover: hover) and (pointer: fine) { .rrow:hover { background: var(--surface-2); } }
.rrow .time { font-weight: 600; font-variant-numeric: tabular-nums; }
.rrow .party { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rrow .who { min-width: 0; }
.rrow .who b { font-weight: 600; }
.rrow .who .meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 3px; font-size: 13px; color: var(--ink-3); }
.rrow .who .note { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 42ch; }
.rrow .tbl { font-size: 13.5px; color: var(--ink-2); }
.rrow .tbl b { color: var(--ink); font-weight: 600; }
.rrow .tbl.none { color: var(--pending); }
.rrow .acts { display: flex; gap: 6px; justify-content: flex-end; }
.rrow.dim { opacity: .55; }

/* ——— drawer / modal ——— */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 60; opacity: 0; transition: opacity 220ms ease; }
.scrim.in { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(500px, 100vw); z-index: 61;
  background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--shadow-2);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform 300ms var(--ease-drawer);
}
.drawer.in { transform: none; }
.drawer-h { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer-h h2 { margin: 0; font-size: 17px; font-weight: 600; flex: 1; min-width: 0; }
.drawer-b { flex: 1; overflow: auto; padding: 18px; display: grid; gap: 16px; align-content: start; }
.drawer-f { display: flex; gap: 8px; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface-2); flex-wrap: wrap; }
.drawer-f .spacer { flex: 1; }
.section-t { font-size: 12.5px; font-weight: 600; color: var(--ink-3); margin: 6px 0 -6px; }
.warnbox { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-sm); background: var(--pending-bg); color: var(--pending); font-size: 13.5px; }
.okbox { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-sm); background: var(--seated-bg); color: var(--seated); font-size: 13.5px; }
.slots { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.slots .chip { flex: none; font-variant-numeric: tabular-nums; }
.statusbar { display: flex; gap: 6px; flex-wrap: wrap; }
.statusbar button { min-height: 34px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.statusbar button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.statusbar button[aria-pressed="true"] { border-color: var(--c); background: var(--cb); color: var(--c); font-weight: 600; }

.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-radius: 10px;
  background: var(--ink); color: var(--bg); box-shadow: var(--shadow-2); font-size: 14px; max-width: min(520px, 92vw);
  transition: opacity 200ms ease, transform 260ms var(--ease-out);
}
.toast.out { opacity: 0; transform: translateY(8px); }
@starting-style { .toast { opacity: 0; transform: translateY(10px); } }
.toast .btn { min-height: 30px; background: transparent; color: inherit; border-color: color-mix(in srgb, var(--bg) 35%, transparent); }

.pop {
  position: fixed; z-index: 70; width: min(340px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-2); padding: 14px; display: grid; gap: 12px;
  transform-origin: var(--o, top left); transition: opacity 160ms ease, transform 180ms var(--ease-out);
}
@starting-style { .pop { opacity: 0; transform: scale(.97); } }

/* ——— sala ——— */
.floorwrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.floorbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 12px; }
.canvas { position: relative; background: var(--floor); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.canvas svg.plan { display: block; width: 100%; height: auto; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; border: 1.5px solid var(--table-line); background: var(--table); }
.legend i.soon { background: var(--confirmed-bg); border-color: var(--confirmed); }
.legend i.res { background: var(--accent); border-color: var(--accent); }
.legend i.seat { background: var(--seated-bg); border-color: var(--seated); }
.legend i.pend { background: var(--pending-bg); border-color: var(--pending); border-style: dashed; }
.scrub { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--surface); }
.scrub output { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 60px; }
.scrub input[type=range] { width: 100%; accent-color: var(--accent); height: 28px; }
.side-list { display: grid; }
.side-list .it { display: grid; grid-template-columns: 50px 1fr auto; gap: 10px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); cursor: pointer; }
.side-list .it:first-child { border-top: 0; }
@media (hover: hover) and (pointer: fine) { .side-list .it:hover { background: var(--surface-2); } }
.side-list .it .t { font-weight: 600; }
.side-list .it small { display: block; color: var(--ink-3); font-size: 12.5px; }

/* plan SVG */
.plan .bg { fill: var(--floor); }
.plan .gridline { stroke: var(--floor-grid); stroke-width: 1; }
.plan .tbl-top { fill: var(--table); stroke: var(--table-line); stroke-width: 1.5; }
.plan .chair { fill: var(--chair); }
.plan .bench { fill: var(--chair); }
.plan .lbl { font: 600 15px var(--sans); fill: var(--ink); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.plan .lbl2 { font: 500 11.5px var(--sans); fill: var(--ink-2); text-anchor: middle; dominant-baseline: central; pointer-events: none; font-variant-numeric: tabular-nums; }
.plan .el { cursor: pointer; }
.plan .el.free .tbl-top { fill: var(--table); }
.plan .el.soon .tbl-top { fill: var(--confirmed-bg); stroke: var(--confirmed); }
.plan .el.res .tbl-top { fill: var(--accent); stroke: var(--accent); }
.plan .el.res .lbl, .plan .el.res .lbl2 { fill: var(--accent-ink); }
.plan .el.pend .tbl-top { fill: var(--pending-bg); stroke: var(--pending); stroke-dasharray: 5 4; }
.plan .el.seat .tbl-top { fill: var(--seated-bg); stroke: var(--seated); stroke-width: 2; }
.plan .el.seat .lbl { fill: var(--seated); }
.plan .el.off { opacity: .45; }
.plan .el.hl .tbl-top { stroke: var(--brass); stroke-width: 3; }
.plan .wall { fill: var(--wall); }
.plan .counter { fill: var(--decor); stroke: var(--table-line); stroke-width: 1.5; }
.plan .counter-l { font: 500 13px var(--serif); font-style: italic; fill: var(--ink-2); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.plan .window { stroke: var(--table-line); stroke-width: 2; fill: var(--floor); }
.plan .door { stroke: var(--ink-3); stroke-width: 1.5; fill: none; }
.plan .door-gap { fill: var(--floor); }
.plan .plant { fill: var(--plant); opacity: .85; }
.plan .pillar { fill: var(--wall); opacity: .85; }
.plan .txt { font: 500 14px var(--sans); fill: var(--ink-3); text-anchor: middle; dominant-baseline: central; }
.plan .sel-box { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 4 3; pointer-events: none; }
.plan .handle { fill: var(--surface); stroke: var(--accent); stroke-width: 2; cursor: nwse-resize; }
.plan .handle.rot { cursor: grab; }
.plan .handle-line { stroke: var(--accent); stroke-width: 1.5; }

/* ——— editor ——— */
.editor { display: grid; grid-template-columns: 200px minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
.palette { display: grid; gap: 4px; padding: 10px; }
.palette .section-t { margin: 8px 4px 2px; }
.palette button { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border: 0; border-radius: 8px; background: none; text-align: left; color: var(--ink-2); font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .palette button:hover { background: var(--sunk); color: var(--ink); } }
.palette svg.mini { width: 26px; height: 26px; flex: none; }
.palette svg.mini .tbl-top { fill: var(--table); stroke: var(--table-line); stroke-width: 1.5; }
.palette svg.mini .chair { fill: var(--chair); }
.props { padding: 14px; display: grid; gap: 14px; }
.props h3 { margin: 0; font-size: 15px; }
.zonetabs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.editor .canvas svg.plan { touch-action: none; }
.editor .canvas { background-image: none; }
.dirty-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pending); display: inline-block; }
.kbd { font-size: 12px; color: var(--ink-3); line-height: 1.6; }
.kbd b { font-weight: 600; color: var(--ink-2); }

/* ——— planificare ——— */
.tl { position: relative; overflow: auto; max-height: calc(100dvh - 190px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overscroll-behavior: contain; }
.tl-grid { position: relative; display: grid; grid-template-columns: 132px var(--w); width: max-content; min-width: 100%; }
.tl-corner, .tl-hours { position: sticky; top: 0; z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line); height: 38px; }
.tl-corner { left: 0; z-index: 6; border-right: 1px solid var(--line); display: flex; align-items: center; padding: 0 12px; font-size: 12.5px; color: var(--ink-3); }
.tl-hours { position: sticky; }
.tl-hours span { position: absolute; top: 11px; font-size: 12px; color: var(--ink-3); transform: translateX(6px); font-variant-numeric: tabular-nums; }
.tl-label { position: sticky; left: 0; z-index: 4; background: var(--surface); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); height: 46px; display: flex; align-items: center; gap: 8px; padding: 0 12px; font-size: 13.5px; }
.tl-label b { font-weight: 600; }
.tl-label small { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tl-zone span { position: sticky; left: 12px; }
.tl-zone { grid-column: 1 / -1; height: 30px; display: flex; align-items: center; padding: 0 12px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.tl-lane { position: relative; height: 46px; border-bottom: 1px solid var(--line); background-image: linear-gradient(to right, var(--line) 1px, transparent 1px); background-size: calc(var(--px) * 60) 100%; cursor: copy; }
.tl-lane.half { background-image: linear-gradient(to right, var(--line) 1px, transparent 1px), linear-gradient(to right, color-mix(in srgb, var(--line) 50%, transparent) 1px, transparent 1px); background-size: calc(var(--px) * 60) 100%, calc(var(--px) * 30) 100%; }
.tl-lane.unassigned { background-color: color-mix(in srgb, var(--pending-bg) 40%, transparent); }
.tl-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--brass); z-index: 3; pointer-events: none; }
.tl-now.first::before { content: ""; position: absolute; top: 0; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--brass); }
.blk {
  position: absolute; top: 5px; height: 36px; border-radius: 7px; padding: 3px 9px; overflow: hidden; cursor: grab;
  background: var(--confirmed-bg); color: var(--confirmed); border: 1px solid color-mix(in srgb, var(--confirmed) 35%, transparent);
  display: flex; flex-direction: column; justify-content: center; font-size: 12.5px; line-height: 1.2; touch-action: none;
  transition: box-shadow 150ms ease;
}
.blk b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.blk span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.blk.pending { background: var(--pending-bg); color: var(--pending); border-style: dashed; border-color: var(--pending); }
.blk.seated { background: var(--seated-bg); color: var(--seated); border-color: color-mix(in srgb, var(--seated) 45%, transparent); }
.blk.finished { background: var(--finished-bg); color: var(--finished); border-color: transparent; }
.blk.finished b { color: var(--ink-2); }
.blk.dragging { cursor: grabbing; box-shadow: var(--shadow-2); z-index: 8; opacity: .95; }
.blk.bad { outline: 2px solid var(--cancelled); }
.blk .rs { position: absolute; right: 0; top: 0; bottom: 0; width: 10px; cursor: ew-resize; }
.ghost-new { position: absolute; top: 5px; height: 36px; border-radius: 7px; border: 1.5px dashed var(--accent); pointer-events: none; }

/* ——— clienți ——— */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 500; font-size: 12.5px; color: var(--ink-3); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th button { border: 0; background: none; padding: 0; color: inherit; font: inherit; }
.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 { cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .table tbody tr:hover td { background: var(--surface-2); } }
.table .n { font-variant-numeric: tabular-nums; text-align: right; }
.hist { display: grid; }
.hist .it { display: grid; grid-template-columns: 98px 1fr auto; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; align-items: center; }

/* ——— setări ——— */
.settings { display: grid; gap: 18px; max-width: 860px; }
.settings .panel-b { padding: 16px; display: grid; gap: 14px; }
.hours { display: grid; gap: 8px; }
.hours .d { display: grid; grid-template-columns: 110px 1fr 1fr auto; gap: 10px; align-items: center; }
.linkbox { display: flex; gap: 8px; }
.linkbox .input { font-size: 13.5px; }
.qr { width: 132px; height: 132px; padding: 8px; background: #fff; border-radius: 8px; border: 1px solid var(--line); }
.qr svg { width: 100%; height: 100%; display: block; }
code.embed { display: block; padding: 10px 12px; border-radius: var(--r-sm); background: var(--sunk); font-size: 12.5px; white-space: pre-wrap; word-break: break-all; }

.loading { padding: 60px; text-align: center; color: var(--ink-3); }

/* ——— responsiv ——— */
@media (max-width: 1180px) {
  .floorwrap { grid-template-columns: 1fr; }
  .editor { grid-template-columns: 1fr; }
  .editor .palette { display: flex; flex-wrap: wrap; }
  .editor .palette .section-t { width: 100%; }
  .editor .palette button { flex: none; }
  .rrow { grid-template-columns: 62px 46px minmax(0, 1fr) 170px auto; }
  .rrow .stcol { display: none; }
}
@media (max-width: 860px) {
  body { font-size: 15.5px; }
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; }
  .rail { display: none; }
  .top { padding: 10px 16px; flex-wrap: wrap; gap: 8px; }
  .top h1 { display: none; }
  .datenav { order: 2; width: 100%; }
  .datebtn { flex: 1; min-width: 0; }
  .search { width: auto; flex: 1; }
  .top .add-txt { display: none; }
  .view { padding: 16px 16px calc(92px + env(safe-area-inset-bottom)); }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a { display: grid; justify-items: center; gap: 2px; padding: 8px 0 7px; color: var(--ink-3); text-decoration: none; font-size: 11.5px; font-weight: 500; position: relative; min-height: 54px; }
  .tabbar a[aria-current="page"] { color: var(--ink); }
  .tabbar a .badge { position: absolute; top: 4px; left: calc(50% + 6px); height: 17px; min-width: 17px; font-size: 11px; }
  .dayhead { grid-template-columns: 1fr; gap: 14px; }
  .stats { gap: 20px; }
  .stat b { font-size: 24px; }
  .rgroup { grid-template-columns: 1fr; }
  .rgroup > .h { padding: 14px 0 4px; }
  .rrow { grid-template-columns: 50px minmax(0, 1fr) auto; grid-template-areas: "time who acts" "time tbl acts"; row-gap: 2px; padding: 10px 4px; }
  .rrow .time { grid-area: time; align-self: start; padding-top: 1px; }
  .rrow .party { display: none; }
  .rrow .who { grid-area: who; }
  .rrow .tbl { grid-area: tbl; font-size: 13px; }
  .rrow .acts { grid-area: acts; }
  .rrow .who .note { max-width: 100%; }
  .rrow .acts .btn .lbl { display: none; }
  .rlist.panel { border-radius: var(--r); padding: 0 10px; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .hours .d { grid-template-columns: 1fr 1fr; }
  .hours .d > :first-child { grid-column: 1 / -1; }
  .tl { max-height: calc(100dvh - 230px); }
  .tl-grid { grid-template-columns: 92px var(--w); }
  .tl-label { padding: 0 8px; font-size: 12.5px; }
  .tl-label small { display: none; }
  .drawer { width: 100vw; top: auto; height: min(94dvh, 100%); border-left: 0; border-radius: 0; transform: translateY(100%); }
  .drawer.in { transform: none; }
  .table .hide-m { display: none; }
  .settings .linkbox { flex-wrap: wrap; }
}
@media (max-width: 420px) {
  .grid2 { grid-template-columns: 1fr; }
  .stats .stat:nth-child(n+4) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
  .scrim { transition: opacity 120ms ease !important; }
}

/* ═══════════ v3 · Registrul casei ═══════════
   Drept, compact, fără capsule. Alama doar în linii și cifre; catifeaua pentru acțiuni; rotund e doar sigiliul. */
body { font: 15px/1.5 var(--sans); letter-spacing: 0; font-variant-numeric: lining-nums; background: var(--bg); }
::selection { background: rgba(228, 233, 229, .35); }
:focus-visible { outline: 1px solid var(--brass-hi); outline-offset: 2px; border-radius: 0; }
a { color: var(--brass-hi); }
svg.i { width: 17px; height: 17px; stroke-width: 1.5; }

/* butoane: scurte, drepte, cu fir de alamă */
.btn { min-height: 36px; padding: 0 12px; gap: 7px; border-radius: 2px; font-size: 14px; font-weight: 500; letter-spacing: .01em;
  background: transparent; color: var(--ink); border: 1px solid var(--line-2); box-shadow: none;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 120ms var(--ease-out); }
.btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--accent-soft); border-color: var(--brass); } }
.btn.primary, :root[data-theme="light"] .btn.primary { background: var(--velvet); color: var(--velvet-ink); border-color: var(--velvet);
  box-shadow: none; font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .btn.primary:hover { background: var(--velvet-hi); border-color: var(--velvet-hi); } }
.btn.ghost { border-color: transparent; }
.btn.sm { min-height: 30px; padding: 0 9px; font-size: 13px; }
.btn.icon { width: 36px; padding: 0; border-radius: 2px; }
.btn.sm.icon { width: 30px; border-radius: 2px; }
.btn.danger { color: var(--cancelled); }
.btn.quiet { border-color: transparent; color: var(--ink-2); padding: 0 6px; }
@media (hover: hover) and (pointer: fine) { .btn.quiet:hover { color: var(--ink); background: transparent; border-color: transparent; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--brass); } }

/* câmpuri: rubrici de registru */
.field > span { font-size: 12.5px; color: var(--ink-3); font-weight: 500; letter-spacing: .01em; }
.input, select.input, textarea.input { min-height: 38px; padding: 8px 10px; border-radius: 2px; background: var(--sunk); border: 1px solid var(--line); color: var(--ink); }
.input:focus { border-color: var(--brass); box-shadow: 0 1px 0 0 var(--brass); }
.stepper { border-radius: 2px; background: var(--sunk); border-color: var(--line); }
.stepper button { width: 36px; height: 36px; }
.check input { accent-color: var(--brass); }

/* selecții: segmente drepte, nu capsule */
.chip { min-height: 30px; padding: 0 10px; border-radius: 2px; border: 1px solid var(--line); background: transparent; font-size: 13.5px; color: var(--ink-2); }
.chip[aria-pressed="true"], .chip.on, :root[data-theme="light"] .chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.seg { display: inline-flex; gap: 0; padding: 0; border-radius: 2px; background: transparent; border: 1px solid var(--line-2); }
.seg button { min-height: 32px; padding: 0 12px; border-radius: 0; color: var(--ink-2); font-size: 13.5px; display: inline-flex; align-items: center; gap: 7px; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.seg button[aria-pressed="true"] svg.sym { color: var(--bg); }
.seg button svg.sym { width: 15px; height: 15px; color: var(--brass); }

/* status: semn + cuvânt, fără pastile */
.st, .mark { display: inline-flex; align-items: center; gap: 7px; padding: 0; border: 0; background: none; border-radius: 0; font-size: 13px; font-weight: 500; white-space: nowrap; color: var(--ink-2); }
.st::before, .mark::before { content: ""; flex: none; width: 8px; height: 8px; background: currentColor; }
.st.confirmed, .mark.confirmed { color: var(--confirmed); }
.st.confirmed::before, .mark.confirmed::before { border-radius: 50%; }
.st.pending, .mark.pending { color: var(--pending); }
.st.pending::before, .mark.pending::before { background: none; border: 1.5px dashed currentColor; border-radius: 50%; width: 9px; height: 9px; }
.st.seated, .mark.seated { color: var(--seated); }
.st.seated::before, .mark.seated::before { transform: rotate(45deg); width: 7px; height: 7px; }
.st.finished, .mark.finished { color: var(--finished); }
.st.finished::before, .mark.finished::before { height: 1.5px; width: 9px; }
.st.cancelled, .mark.cancelled, .st.noshow, .mark.noshow { color: var(--cancelled); }
.st.noshow, .mark.noshow { color: var(--noshow); }
.st.cancelled::before, .mark.cancelled::before, .st.noshow::before, .mark.noshow::before { background: none; width: 9px; height: 9px;
  background-image: linear-gradient(45deg, transparent 44%, currentColor 44% 56%, transparent 56%), linear-gradient(-45deg, transparent 44%, currentColor 44% 56%, transparent 56%); }
.tag { border-radius: 0; padding: 0; background: none; border: 0; font-size: 12.5px; color: var(--ink-3); font-style: italic; }
.tag.vip { font-style: normal; font-weight: 600; letter-spacing: .04em; color: var(--brass-hi); background: none; border: 0; }
.tag.alert { color: var(--cancelled); font-style: normal; font-weight: 500; }
.badge { border-radius: 2px; min-width: 18px; height: 18px; padding: 0 5px; font-size: 11.5px; font-weight: 600; background: var(--pending); color: var(--bg); }

/* panouri: plăci drepte, fără umbre */
.panel { border-radius: 2px; background: var(--surface); border: 1px solid var(--line); box-shadow: none; }
.panel-h { padding: 12px 14px; border-color: var(--line); }
.panel-h h2, .panel-h h3 { font-family: var(--serif); font-weight: 400; font-size: 19px; letter-spacing: 0; }
.empty strong { font-family: var(--serif); font-weight: 400; font-size: 21px; }
.muted { color: var(--ink-3); }

/* sigiliul (logo) */
.seal { --s: 40px; display: inline-grid; place-items: center; width: var(--s); height: var(--s); flex: none; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #1C170B 0%, #070707 72%); box-shadow: 0 0 0 1px rgba(228, 233, 229, .45); overflow: hidden; }
.seal img { width: 92%; height: 92%; object-fit: contain; mix-blend-mode: lighten; }
.seal .fallback { font-family: var(--serif); color: var(--brass); font-size: calc(var(--s) * .42); }

/* logare */
.login { position: relative; background: #0E1311; color: #E4E9E5; isolation: isolate; }
.login::before { content: none; }
.login-card { justify-items: center; text-align: center; gap: 24px; width: min(360px, 100%); }
.login-card .seal { --s: 120px; }
.login-card h1 { margin: 4px 0 0; font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.05; }
.login-card p { color: #A2ADA6; margin-top: 8px; }
.login-card form { width: 100%; text-align: left; }
.login .field > span { color: #A2ADA6; }
.login .input { background: #141A17; border-color: rgba(228, 233, 229, .35); color: #E4E9E5; }
.login .demo-hint { border-radius: 2px; background: #141A17; border: 1px solid rgba(228, 233, 229, .25); color: #A2ADA6; text-align: left; width: 100%; }
.motto { font-family: var(--serif); font-size: 18px; color: var(--brass-hi); }
.login .motto { color: #A2ADA7; }
.credit { font-size: 12px; color: var(--ink-3); }
.credit a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line-2); }

/* antetul: marcă, navigare în cuvinte, unelte */
.app { display: block; min-height: 100dvh; }
.rail { display: none !important; }
.mast { display: flex; align-items: center; gap: 28px; padding: 14px 28px; border-bottom: 1px solid var(--line); }
.mast .brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.mast .brand b { font-family: var(--serif); font-weight: 400; font-size: 22px; letter-spacing: .01em; }
.mast .nav { display: flex; gap: 2px; }
.mast .nav a { min-height: 34px; padding: 0 10px; display: inline-flex; align-items: center; gap: 7px; color: var(--ink-3); text-decoration: none; font-weight: 500; font-size: 14.5px; border-radius: 0; background: none; box-shadow: none; position: relative; }
.mast .nav a::before { display: none; }
@media (hover: hover) and (pointer: fine) { .mast .nav a:hover { color: var(--ink); background: none; } }
.mast .nav a[aria-current="page"] { color: var(--ink); background: none; box-shadow: none; }
.mast .nav a[aria-current="page"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -15px; height: 1px; background: var(--ink); }
.mast .nav a .badge { margin-left: 2px; }
.mast .tools { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 14px 28px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top h1 { margin: 0 14px 0 0; font-family: var(--serif); font-weight: 400; font-size: 26px; letter-spacing: 0; line-height: 1; }
.top .m-brand { display: none; }
.datenav { gap: 2px; }
.datebtn { min-width: 0; border-radius: 2px; font-weight: 500; border-color: transparent; }
.datebtn svg { display: none; }
.datebtn .rel { color: var(--ink-3); }
.search .input { min-height: 36px; padding-left: 34px; border-radius: 2px; }
.top [data-new] { padding: 0 14px; }
.view { padding: 26px 28px 56px; max-width: 1480px; }
.tabbar { display: none; }

/* drawer și ferestre: plăci drepte */
.drawer { border-radius: 0; background: var(--surface); border-left: 1px solid var(--line-2); }
.drawer-h { padding: 16px 20px; border-color: var(--line); }
.drawer-h h2 { font-family: var(--serif); font-weight: 400; font-size: 25px; }
.drawer-b { padding: 20px; gap: 18px; }
.drawer-f { background: var(--sunk); border-color: var(--line); }
.section-t { display: flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--ink-3); margin: 6px 0 -6px; font-style: normal; }
.section-t::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.statusbar button { border-radius: 2px; min-height: 32px; background: transparent; border-color: var(--line); }
.statusbar button[aria-pressed="true"] { background: var(--cb); border-color: var(--c); }
.okbox, .warnbox { border-radius: 2px; }
.okbox { background: var(--seated-bg); color: var(--seated); border: 0; border-left: 2px solid var(--seated); }
.warnbox { background: var(--pending-bg); border: 0; border-left: 2px solid var(--pending); }
.toast { border-radius: 2px; background: var(--ink); color: var(--bg); padding-left: 16px; }
.toast .btn { border-radius: 2px; }
.pop { border-radius: 2px; border-color: var(--line-2); box-shadow: var(--shadow-2); }
.hist .it { border-color: var(--line); }

/* ——— ziua: cadranul serii + registrul ——— */
.dayview { display: grid; grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); gap: 40px; align-items: start; }
.dial-col { position: sticky; top: 92px; display: grid; gap: 14px; justify-items: center; }
.dial { width: 100%; max-width: 420px; height: auto; display: block; overflow: visible; }
.dial .ring { fill: none; stroke: var(--line-2); stroke-width: 1; }
.dial .ring-2 { fill: none; stroke: var(--line-2); stroke-width: 1; }
.dial .tick { stroke: var(--ink-3); stroke-width: 1; }
.dial .tick.minor { stroke: var(--line-2); }
.dial .hour { font: 500 11px var(--sans); fill: var(--ink-3); text-anchor: middle; dominant-baseline: central; cursor: pointer; }
.dial .hour:hover, .dial .hour.on { fill: var(--ink); }
.dial .ld { stroke: var(--ink-2); stroke-width: 3; stroke-linecap: butt; opacity: .45; }
.dial .ld.past { stroke: var(--ink-3); opacity: .22; }
.dial .dot { cursor: pointer; transition: r 120ms ease; }
.dial .dot.confirmed { fill: var(--confirmed); }
.dial .dot.pending { fill: var(--bg); stroke: var(--pending); stroke-width: 1.5; stroke-dasharray: 2 2; }
.dial .dot.seated { fill: var(--seated); }
.dial .dot.finished { fill: var(--finished); opacity: .55; }
.dial .dot.hl { stroke: var(--ink); stroke-width: 2; stroke-dasharray: none; }
.dial .hand { stroke: var(--brass-hi); stroke-width: 1.5; }
.dial .hand-tip { fill: var(--brass-hi); }
.dial .pin { fill: var(--brass-hi); }
.dial .c-num { font: 400 76px var(--serif); fill: var(--ink); text-anchor: middle; }
.dial .c-lbl { font: 500 13px var(--sans); fill: var(--ink-2); text-anchor: middle; }
.dial .c-sub { font: 500 12.5px var(--sans); fill: var(--ink-3); text-anchor: middle; }
.dial .c-warn { fill: var(--pending); }
.dial-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; }
.dial-legend .mark { font-size: 12.5px; }
.closed-note { font-size: 13.5px; color: var(--ink-3); text-align: center; max-width: 34ch; }

.book-list { display: grid; gap: 30px; }
.grp-h { display: flex; align-items: baseline; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line-2); }
.grp-h h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.1; }
.grp-h .n { color: var(--ink-3); font-size: 13.5px; }
.grp-h .spacer { flex: 1; }
.rrow { display: grid; grid-template-columns: 64px minmax(0, 1fr) 70px 168px 126px 104px; gap: 14px; align-items: center; min-height: 58px; padding: 10px 6px; border-radius: 0; border-bottom: 1px solid var(--line); cursor: pointer; transition: background-color 120ms ease; }
.rrow + .rrow { border-top: 0; }
@media (hover: hover) and (pointer: fine) { .rrow:hover, .rrow.hl { background: var(--accent-soft); } }
.rrow .time { font: 400 22px var(--serif); line-height: 1; }
.rrow .who { min-width: 0; }
.rrow .who b { font-weight: 600; font-size: 15.5px; }
.rrow .who .meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 2px; font-size: 13px; color: var(--ink-3); }
.rrow .who .note { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46ch; }
.rrow .party { color: var(--ink-2); font-size: 14px; display: block; }
.rrow .party b { font: 400 20px var(--serif); color: var(--ink); margin-right: 3px; }
.rrow .tbl { display: grid; line-height: 1.2; font-size: 14px; color: var(--ink); }
.rrow .tbl b { font: 400 18px var(--serif); }
.rrow .tbl small { color: var(--ink-3); font-size: 12.5px; }
.rrow .tbl.none { color: var(--pending); font-size: 13.5px; }
.rrow .acts { display: flex; justify-content: flex-end; }
.rrow.dim { opacity: .5; }
details.closed-grp summary { cursor: pointer; list-style: none; }
details.closed-grp summary::-webkit-details-marker { display: none; }
details.closed-grp summary .chev { transition: transform 160ms ease; }
details.closed-grp[open] summary .chev { transform: rotate(90deg); }

/* sala și planul */
.canvas { border-radius: 2px; border-color: var(--line-2); }
.plan .tbl-top { stroke-width: 1.2; }
.plan .el.free .tbl-top { fill: var(--table); }
.plan .el.soon .tbl-top { fill: rgba(228, 233, 229, .08); stroke: var(--brass); stroke-dasharray: 5 4; }
.plan .el.res .tbl-top { fill: var(--confirmed); stroke: var(--confirmed); }
.plan .el.res .lbl, .plan .el.res .lbl2 { fill: var(--bg); }
.plan .el.seat .tbl-top { fill: var(--seated); stroke: var(--seated); }
.plan .el.seat .lbl, .plan .el.seat .lbl2 { fill: var(--bg); }
.plan .el.pend .tbl-top { fill: var(--pending-bg); stroke: var(--pending); stroke-dasharray: 4 3; }
.plan .el.hl .tbl-top { stroke: var(--ink); stroke-width: 2.5; }
.plan .lbl { font: 400 20px var(--serif); }
.plan .lbl2 { font: 500 11px var(--sans); }
.plan .counter-l, .plan .txt { font: 400 17px var(--serif); font-style: normal; fill: var(--ink-3); }
.plan .seal-lamp { fill: rgba(228, 233, 229, .12); stroke: var(--brass); }
.plan .seal-core { fill: var(--brass-hi); }
.plan .seal-line { stroke: var(--brass); }
.legend i { border-radius: 1px; }
.legend i.soon { background: rgba(228, 233, 229, .08); border-color: var(--brass); border-style: dashed; }
.legend i.res { background: var(--confirmed); border-color: var(--confirmed); }
.legend i.seat { background: var(--seated); border-color: var(--seated); }
.scrub output { font: 400 26px var(--serif); }
.scrub input[type=range] { accent-color: var(--brass); }
.side-list .it .t { font: 400 18px var(--serif); }
.palette button { border-radius: 2px; }
.palette svg.mini .tbl-top { fill: var(--table); stroke: var(--table-line); }
.palette svg.mini .chair, .palette svg.mini .bench { fill: var(--chair); }

/* planificare */
.tl { border-radius: 2px; border-color: var(--line-2); background: var(--surface); }
.tl-grid { width: max-content; min-width: 100%; }
.tl-corner, .tl-hours, .tl-label { background: var(--surface); border-color: var(--line); }
.tl-hours span { font: 400 15px var(--serif); color: var(--ink-2); }
.tl-zone { background: var(--sunk); border-color: var(--line); font: 400 16px var(--serif); color: var(--ink-2); }
.tl-zone svg.sym { width: 15px; height: 15px; vertical-align: -2px; }
.tl-label b { font: 400 16px var(--serif); }
.tl-now, .tl-now.first::before { background: var(--brass-hi); }
.blk { border-radius: 2px; border-left-width: 3px; }
.blk.confirmed { background: var(--confirmed-bg); border-color: var(--line); border-left-color: var(--confirmed); color: var(--ink-2); }
.blk.pending { border-left-style: dashed; }
.blk.seated { background: var(--seated-bg); border-color: var(--line); border-left-color: var(--seated); }

/* clienți și setări */
.table th { font: 600 12.5px var(--sans); color: var(--ink-3); letter-spacing: .02em; }
.table td { border-color: var(--line); }
.hours .d b { font: 400 17px var(--serif); }
code.embed { border-radius: 2px; background: var(--sunk); border: 1px solid var(--line); }
.qr { border-radius: 2px; background: #E4E9E5; }

/* simboluri camere */
svg.sym { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
svg.sym text { stroke: none; fill: currentColor; font-family: var(--serif); }

/* foiță, granulație, astrolab (pagina publică) */
body.pub::after { content: ""; position: fixed; inset: 0; z-index: 200; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
:root[data-theme="light"] body.pub::after { mix-blend-mode: multiply; opacity: .08; }
.foil-text { background: linear-gradient(105deg, #8E6B34 0%, #F0DDB0 16%, #A2ADA7 30%, #FFF1CF 44%, #9E7A3E 58%, #A2ADA7 74%, #8E6B34 100%); background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: foil 11s linear infinite; }
:root[data-theme="light"] .foil-text { background-image: linear-gradient(105deg, #5E4416 0%, #A9823F 20%, #6E521F 40%, #B89048 55%, #5E4416 75%, #8C6A30 100%); }
@keyframes foil { from { background-position: 100% 0; } to { background-position: -160% 0; } }
.astrolabe .ring-out { transform-origin: 50% 50%; animation: spin 240s linear infinite; }
.astrolabe .ring-in { transform-origin: 50% 50%; animation: spin 360s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
svg.emblem { display: block; }
@media (prefers-reduced-motion: reduce) { .foil-text, .astrolabe .ring-out, .astrolabe .ring-in { animation: none; } }

/* ——— ecrane medii ——— */
@media (max-width: 1180px) {
  .dayview { grid-template-columns: 1fr; gap: 24px; }
  .dial-col { position: static; }
  .dial { max-width: 380px; }
  .rrow { grid-template-columns: 58px minmax(0, 1fr) 60px 140px auto; }
  .rrow .stcol { display: none; }
}
/* ——— telefon ——— */
@media (max-width: 860px) {
  .mast { padding: 10px 16px; gap: 12px; }
  .mast .nav { display: none; }
  .mast .brand b { font-size: 21px; }
  .mast .brand .seal { --s: 32px; }
  .top { flex-wrap: wrap; padding: 10px 16px; gap: 8px; }
  .top h1 { display: none; }
  .datenav { order: 3; width: 100%; justify-content: space-between; }
  .datebtn { flex: 1; justify-content: center; }
  .top .spacer { display: block; flex: 1; }
  .search { width: 36px; flex: none; position: relative; }
  .search .input { padding-right: 0; }
  .search:not(:focus-within) .input { color: transparent; cursor: pointer; }
  .search:not(:focus-within) .input::placeholder { color: transparent; }
  .search:focus-within { position: absolute; left: 16px; right: 16px; top: 10px; width: auto; z-index: 31; }
  .search:focus-within .input { background: var(--surface); padding-right: 10px; }
  .top [data-new] .add-txt { display: inline; }
  .view { padding: 16px 16px calc(84px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--sunk); border-top: 1px solid var(--line-2); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 56px; color: var(--ink-3); text-decoration: none; font-size: 11.5px; font-weight: 500; position: relative; }
  .tabbar a svg.i { width: 19px; height: 19px; }
  .tabbar a[aria-current="page"] { color: var(--ink); }
  .tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 1px; background: var(--ink); }
  .tabbar a .badge { position: absolute; top: 6px; left: calc(50% + 6px); }
  .dial { max-width: 330px; }
  .grp-h h2 { font-size: 22px; }
  .rrow { grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-areas: "time who acts" "time tbl acts"; row-gap: 2px; padding: 10px 2px; }
  .rrow .time { grid-area: time; font-size: 20px; align-self: start; padding-top: 2px; }
  .rrow .who { grid-area: who; }
  .rrow .party { display: none; }
  .rrow .tbl { grid-area: tbl; display: block; font-size: 13px; color: var(--ink-3); }
  .rrow .tbl b { font-size: 15px; color: var(--ink); margin-right: 4px; }
  .rrow .acts { grid-area: acts; }
  .rrow .acts .btn .lbl { display: none; }
  .rrow .who .note { max-width: 100%; }
  .drawer { width: 100vw; top: auto; height: min(94dvh, 100%); border-left: 0; border-top: 1px solid var(--line-2); transform: translateY(100%); }
  .drawer.in { transform: none; }
  .input, select.input, textarea.input, .stepper input { font-size: 16px; }
  .floorbar .seg, .zonetabs .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .seg button { flex: none; white-space: nowrap; }
  .tl-hint { display: none; }
  .grid3 { grid-template-columns: 1fr 1fr; }
}
.floorbar > *, .zonetabs { min-width: 0; }
.seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.st.pending, .st.confirmed, .st.seated, .st.finished, .st.cancelled, .st.noshow { background: none; padding: 0; border: 0; border-radius: 0; }
@media (hover: hover) and (pointer: fine) {
  .rrow .acts .btn:not(.primary) { opacity: 0; transition: opacity 120ms ease; }
  .rrow:hover .acts .btn, .rrow:focus-within .acts .btn, .rrow.hl .acts .btn { opacity: 1; }
}

.datebtn .d-full { display: none; }
@media (max-width: 860px) { .datebtn .d-full { display: inline; font-weight: 600; } .datebtn .rel { color: var(--brass-hi); font-weight: 500; } }

/* ═══════════ v5 · precizie ═══════════
   Geist pentru interfață și cifre (egale pe coloane), Newsreader doar pentru titluri.
   Butoane pe trei nivele, colțuri de 4 px; panoul se andochează lângă listă pe ecran lat. */
:root { --r: 4px; --r-sm: 4px; --ctl: 36px; }
body { font: 14.5px/1.5 var(--sans); font-feature-settings: "ss01", "cv11"; -webkit-font-smoothing: antialiased; }
.num, time, .t, .rrow .time, .tl-hours span, .scrub output { font-variant-numeric: tabular-nums; }

/* butoane */
.btn { height: var(--ctl); min-height: var(--ctl); padding: 0 13px; gap: 7px; border-radius: 4px; font: 500 13.5px/1 var(--sans); letter-spacing: -.005em;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: color-mix(in srgb, var(--surface-2) 70%, var(--ink) 8%); border-color: var(--line-2); } }
.btn:active { transform: scale(.98); }
.btn.primary, :root[data-theme="light"] .btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 550;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 2px rgba(0, 0, 0, .2); }
@media (hover: hover) and (pointer: fine) { .btn.primary:hover { background: color-mix(in srgb, var(--ink) 88%, var(--bg)); border-color: transparent; } }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) { .btn.ghost:hover { background: var(--accent-soft); color: var(--ink); border-color: transparent; } }
.btn.sm { height: 30px; min-height: 30px; padding: 0 10px; font-size: 13px; border-radius: 4px; }
.btn.icon { width: var(--ctl); padding: 0; border-radius: 4px; }
.btn.sm.icon { width: 30px; }
.btn.danger { color: var(--cancelled); }
.btn kbd, kbd { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 3px; font: 500 11px/1 var(--sans);
  color: inherit; opacity: .6; border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 35%, transparent); }
.btn.primary kbd { opacity: .55; }

/* câmpuri */
.field > span { font-size: 12px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.input, select.input, textarea.input { height: var(--ctl); min-height: var(--ctl); padding: 0 11px; border-radius: 4px; background: var(--sunk); border: 1px solid var(--line); font-size: 14px; }
textarea.input { height: auto; padding: 9px 11px; }
.input:hover { border-color: var(--line-2); }
.input:focus { border-color: var(--ink-3); box-shadow: 0 0 0 3px var(--accent-soft); }
.stepper { border-radius: 4px; height: var(--ctl); }
.stepper button { height: 34px; width: 34px; }
.chip { height: 30px; min-height: 30px; border-radius: 4px; font-size: 13px; }
.seg { border-radius: 4px; border: 1px solid var(--line); background: var(--sunk); padding: 2px; gap: 2px; }
.seg button { min-height: 28px; border-radius: 3px; border: 0 !important; color: var(--ink-3); }
.seg button[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); box-shadow: 0 0 0 1px var(--line-2); }
.seg button[aria-pressed="true"] svg.sym { color: var(--brass-hi); }
.statusbar button { border-radius: 4px; height: 30px; min-height: 30px; font-size: 12.5px; }

/* antet */
.mast { padding: 0 28px; height: 54px; gap: 26px; }
.mast .brand b { font: 500 19px var(--serif); letter-spacing: -.01em; }
.mast .nav a { font-size: 13.5px; height: 54px; min-height: 54px; padding: 0 11px; }
.mast .nav a[aria-current="page"]::after { bottom: -1px; left: 11px; right: 11px; height: 1.5px; background: var(--ink); }
.top { height: 72px; padding: 0 28px; gap: 10px; }
.top h1 { font: 400 28px/1 var(--serif); letter-spacing: -.015em; margin-right: 18px; }
.datenav { gap: 4px; }
.datebtn { background: transparent; border-color: transparent; color: var(--ink-3); font-weight: 500; }
.search { width: 260px; }
.search .input { padding-left: 34px; padding-right: 40px; }
.top .search::after { content: "⌘K"; position: absolute; right: 9px; top: 50%; transform: translateY(-50%); font: 500 11px var(--sans); color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 3px; padding: 2px 5px; pointer-events: none; }
.top .search:focus-within::after { display: none; }
.badge { border-radius: 3px; }

/* panou andocat */
.scrim.dock { background: transparent; pointer-events: none; }
.drawer { width: 460px; }
.drawer.dock { box-shadow: -1px 0 0 var(--line), 0 0 60px rgba(0, 0, 0, .25); }
.drawer.instant { transition: none; }
body.docked .view, body.docked .top, body.docked .mast { margin-right: 460px; }
body.docked .view { max-width: none; }
.drawer-h { height: 64px; padding: 0 16px 0 22px; }
.drawer-h h2 { font: 400 23px var(--serif); letter-spacing: -.01em; }
.drawer-b { padding: 20px 22px; gap: 16px; }
.drawer-f { padding: 12px 22px calc(12px + env(safe-area-inset-bottom)); gap: 8px; }
.section-t { font: 500 12px var(--sans); color: var(--ink-3); letter-spacing: 0; margin: 4px 0 -4px; }

/* ziua */
.dayview { gap: 48px; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); }
.dial .hour { font: 450 11px var(--sans); }
.dial .c-num { font: 300 72px var(--sans); letter-spacing: -.04em; }
.dial .c-lbl { font: 500 12.5px var(--sans); fill: var(--ink-2); }
.dial .c-sub { font: 450 12px var(--sans); }
.dial-legend .mark { font-size: 12px; color: var(--ink-3); }
.dial-legend .mark::before { opacity: .9; }
.closed-note { font-size: 12.5px; }
.keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 12px; color: var(--ink-3); }
.keys span { display: inline-flex; align-items: center; gap: 5px; }
.keys kbd + kbd { margin-left: -2px; }
.grp-h { padding-bottom: 10px; border-bottom-color: var(--line-2); }
.grp-h h2 { font: 400 22px var(--serif); letter-spacing: -.01em; }
.grp-h .n { font-size: 12.5px; }
.book-list { gap: 34px; }
.rrow { grid-template-columns: 58px minmax(0, 1fr) 64px 170px 118px 112px; min-height: 60px; padding: 10px 8px; }
.rrow:focus-visible { outline: none; background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--brass-hi); }
.rrow .time { font: 500 16px var(--sans); letter-spacing: -.01em; }
.rrow .who b { font-weight: 550; font-size: 14.5px; letter-spacing: -.005em; }
.rrow .who .meta { font-size: 12.5px; }
.rrow .party { font-size: 13px; color: var(--ink-3); }
.rrow .party b { font: 500 15px var(--sans); color: var(--ink); margin-right: 4px; }
.rrow .tbl b { font: 500 14px var(--sans); }
.rrow .tbl small { font-size: 12px; }
.st, .mark { font-size: 12.5px; }

/* sala, planificare, tabele */
.plan .lbl { font: 500 17px var(--sans); letter-spacing: -.01em; }
.plan .counter-l, .plan .txt { font: 400 16px var(--serif); }
.scrub output { font: 400 24px var(--sans); letter-spacing: -.02em; }
.side-list .it .t { font: 500 15px var(--sans); }
.tl-hours span { font: 450 12px var(--sans); color: var(--ink-3); }
.tl-zone { font: 400 15px var(--serif); }
.tl-label b { font: 500 13.5px var(--sans); }
.blk { border-radius: 3px; }
.panel { border-radius: 4px; }
.panel-h h2, .panel-h h3 { font: 400 18px var(--serif); }
.table th { font: 500 12px var(--sans); }
.hours .d b { font: 500 14px var(--sans); }
.empty strong { font: 400 20px var(--serif); }

@media (max-width: 1180px) { .rrow { grid-template-columns: 54px minmax(0, 1fr) 56px 150px auto; } }
@media (max-width: 860px) {
  .mast { height: 52px; padding: 0 16px; }
  .top { height: auto; padding: 10px 16px; }
  .search { width: 36px; }
  .search::after { display: none; }
  .drawer { width: 100vw; }
  body.docked .view, body.docked .top, body.docked .mast { margin-right: 0; }
  .keys { display: none; }
  .rrow { grid-template-columns: 50px minmax(0, 1fr) auto; }
  .rrow .time { font-size: 15.5px; }
  .dial .c-num { font-size: 66px; }
}

@media (max-width: 860px), (hover: none) { .kbd-n { display: none !important; } }
/* lista se adaptează la lățimea ei, nu a ecranului */
.book-list { container-type: inline-size; container-name: book; min-width: 0; }
body.docked .dial-col { display: none; }
body.docked .dayview { grid-template-columns: minmax(0, 1fr); }
.rrow .who b, .rrow .tbl b, .rrow .tbl small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rrow > * { min-width: 0; }
@container book (max-width: 820px) {
  .rrow { grid-template-columns: 54px minmax(0, 1fr) 150px auto; }
  .rrow .party { display: none; }
  .rrow .stcol { display: none; }
}
@container book (max-width: 560px) {
  .rrow { grid-template-columns: 50px minmax(0, 1fr) auto; grid-template-areas: "time who acts" "time tbl acts"; row-gap: 2px; }
  .rrow .time { grid-area: time; align-self: start; padding-top: 1px; }
  .rrow .who { grid-area: who; }
  .rrow .tbl { grid-area: tbl; display: block; font-size: 12.5px; color: var(--ink-3); }
  .rrow .tbl b { display: inline; margin-right: 5px; }
  .rrow .tbl small { display: inline; }
  .rrow .acts { grid-area: acts; }
  .rrow .acts .btn .lbl { display: none; }
}
.rrow.sel { background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--brass-hi); }
.top h1 { white-space: nowrap; }
@media (max-width: 1180px) { .dayview { grid-template-columns: minmax(0, 1fr); gap: 28px; } .dial-col { position: static; } }
span.mark, .st { font-family: var(--sans); font-weight: 500; letter-spacing: 0; }

/* v6: fără foiță aurie, fără strălucire */
.foil-text { background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important; color: inherit !important; animation: none !important; }
.seal { box-shadow: 0 0 0 1px var(--line-2); background: #0A0A0A; }
.login .motto, .motto { color: #A2ADA6; font-style: italic; }
.tag.vip { color: var(--wine); }
.badge { background: var(--wine); color: var(--wine-ink); }
.dial .hand, .dial .hand-tip { stroke: var(--wine); fill: var(--wine); }
.dial .hand { fill: none; }
.dial .pin { fill: var(--ink-2); }
.dial .c-warn { fill: var(--wine); }
.tl-now, .tl-now.first::before { background: var(--wine); }
.rrow.sel, .rrow:focus-visible { box-shadow: inset 2px 0 0 var(--ink); }
.seg button[aria-pressed="true"] svg.sym, .seg button svg.sym { color: var(--ink-2); }
.datebtn .rel { color: var(--ink-3); }
.plan .el.res .tbl-top { fill: var(--confirmed); stroke: var(--confirmed); }
.plan .el.soon .tbl-top { fill: var(--confirmed-bg); stroke: var(--confirmed); stroke-dasharray: 5 4; }
.legend i.soon { background: var(--confirmed-bg); border-color: var(--confirmed); }
.plan .seal-lamp { fill: var(--accent-soft); stroke: var(--table-line); }
.plan .seal-core { fill: var(--ink-3); }
.plan .seal-line { stroke: var(--table-line); }
.blk.pending { color: var(--pending); }
.scrub input[type=range], .check input { accent-color: var(--ink); }
.dial-legend .mark.confirmed::before { background: var(--confirmed); }
.dial-legend .mark.pending::before { border-color: var(--pending); background: none; }
.dial-legend .mark.seated::before { background: var(--seated); }
.dial-legend .mark.finished::before { background: var(--finished); }
.login .btn.primary, :root[data-theme="light"] .login .btn.primary { background: #E4E9E5; color: #0E1311; border-color: #E4E9E5; }
.login .credit a { border-bottom-color: rgba(228, 233, 229, .25); }
