/* Tischzeit 1.2 – "Glass" design. Royal navy, white, black and gold.
   Tablet first, works on phones. Light + dark (system or manual).
   Glass = translucent layer + blur + bright top edge + soft shadow.
   Motion = spring easing; everything calms down with prefers-reduced-motion. */
@font-face {
  font-family: "Instrument Sans"; src: url("/fonts/InstrumentSans.woff") format("woff");
  font-weight: 400 700; font-stretch: 75% 100%; font-display: swap;
}

:root {
  /* brand */
  --navy-950: #040b20; --navy-900: #071434; --navy-800: #0b1d4a; --navy-700: #10296a; --navy-600: #1b3d91; --navy-500: #2a56b8; --navy-300: #8ea6e0;
  --gold-300: #f7d98f; --gold-400: #f0c35f; --gold-500: #dea53a; --gold-600: #b9821c; --gold-700: #8a5f10;
  --gold-grad: linear-gradient(180deg, #f9dc8e 0%, #ecbb52 48%, #cf9226 100%);
  --navy-grad: linear-gradient(180deg, #2f5cc4 0%, #173a8d 52%, #0e2766 100%);

  /* light theme */
  --bg: #eef1f8; --bg-2: #e3e8f4;
  --ink: #0a0f1c; --ink-2: #3a4459; --ink-3: #6a7389; --ink-inv: #ffffff;
  --line: rgb(16 41 106 / .10); --line-2: rgb(16 41 106 / .18);
  --glass: rgb(255 255 255 / .58); --glass-2: rgb(255 255 255 / .78); --glass-solid: rgb(255 255 255 / .9);
  --glass-edge: rgb(255 255 255 / .85); --glass-rim: rgb(16 41 106 / .10);
  --glass-hi: inset 0 1px 0 rgb(255 255 255 / .95), inset 0 -1px 0 rgb(16 41 106 / .06);
  --shadow-1: 0 1px 2px rgb(6 18 51 / .06), 0 6px 18px -8px rgb(6 18 51 / .22);
  --shadow-2: 0 2px 6px rgb(6 18 51 / .06), 0 24px 60px -18px rgb(6 18 51 / .38);
  --primary: var(--navy-700); --primary-ink: #fff; --accent: var(--gold-600); --accent-soft: rgb(222 165 58 / .16);
  --ok: #1f8a57; --ok-soft: rgb(31 138 87 / .13); --amber: #b26d0b; --amber-soft: rgb(222 150 40 / .17);
  --bad: #c03a33; --bad-soft: rgb(192 58 51 / .12);
  --aura-1: rgb(42 86 184 / .30); --aura-2: rgb(240 195 95 / .30); --aura-3: rgb(16 41 106 / .22);

  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 14px; --r-lg: 22px;
  --blur: blur(22px) saturate(1.8);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --spring-soft: cubic-bezier(.22, 1.2, .36, 1);
  --out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(0, .009, .035 2.1%, .141, .281 6.7%, .723 12.9%, .938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, .991, .977 51%, .974 53.8%, .975 57.1%, .997 69.8%, 1.003 76.9%, 1.004 83.8%, 1);
    --spring-soft: linear(0, .023 2%, .089 4.2%, .337 9.6%, .626 15.6%, .839 21.4%, .97 27.1%, 1.04 33.1%, 1.065 38.9%, 1.06 45%, 1.024 58.2%, 1.004 71.8%, .998 86.6%, 1);
  }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --dark: 1; } }
:root[data-theme="dark"] { --dark: 1; }

/* dark theme (system or manual) */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #050b1e; --bg-2: #081232;
  --ink: #f2f5fb; --ink-2: #b9c2d8; --ink-3: #8390ad; --ink-inv: #050b1e;
  --line: rgb(255 255 255 / .08); --line-2: rgb(255 255 255 / .16);
  --glass: rgb(20 36 82 / .42); --glass-2: rgb(24 42 94 / .62); --glass-solid: rgb(14 28 66 / .92);
  --glass-edge: rgb(255 255 255 / .16); --glass-rim: rgb(255 255 255 / .06);
  --glass-hi: inset 0 1px 0 rgb(255 255 255 / .14), inset 0 -1px 0 rgb(0 0 0 / .25);
  --shadow-1: 0 1px 2px rgb(0 0 0 / .3), 0 8px 22px -10px rgb(0 0 0 / .6);
  --shadow-2: 0 2px 8px rgb(0 0 0 / .3), 0 28px 70px -20px rgb(0 0 0 / .8);
  --primary: var(--navy-500); --accent: var(--gold-400); --accent-soft: rgb(240 195 95 / .14);
  --ok: #5fd39a; --ok-soft: rgb(95 211 154 / .13); --amber: #f2b552; --amber-soft: rgb(242 181 82 / .14);
  --bad: #ff8b80; --bad-soft: rgb(255 139 128 / .12);
  --aura-1: rgb(42 86 184 / .38); --aura-2: rgb(222 165 58 / .16); --aura-3: rgb(27 61 145 / .45);
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --bg: #050b1e; --bg-2: #081232;
  --ink: #f2f5fb; --ink-2: #b9c2d8; --ink-3: #8390ad; --ink-inv: #050b1e;
  --line: rgb(255 255 255 / .08); --line-2: rgb(255 255 255 / .16);
  --glass: rgb(20 36 82 / .42); --glass-2: rgb(24 42 94 / .62); --glass-solid: rgb(14 28 66 / .92);
  --glass-edge: rgb(255 255 255 / .16); --glass-rim: rgb(255 255 255 / .06);
  --glass-hi: inset 0 1px 0 rgb(255 255 255 / .14), inset 0 -1px 0 rgb(0 0 0 / .25);
  --shadow-1: 0 1px 2px rgb(0 0 0 / .3), 0 8px 22px -10px rgb(0 0 0 / .6);
  --shadow-2: 0 2px 8px rgb(0 0 0 / .3), 0 28px 70px -20px rgb(0 0 0 / .8);
  --primary: var(--navy-500); --accent: var(--gold-400); --accent-soft: rgb(240 195 95 / .14);
  --ok: #5fd39a; --ok-soft: rgb(95 211 154 / .13); --amber: #f2b552; --amber-soft: rgb(242 181 82 / .14);
  --bad: #ff8b80; --bad-soft: rgb(255 139 128 / .12);
  --aura-1: rgb(42 86 184 / .38); --aura-2: rgb(222 165 58 / .16); --aura-3: rgb(27 61 145 / .45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { background: var(--bg); }
body {
  min-height: 100vh; min-height: 100dvh; background: transparent; color: var(--ink);
  font: 400 16px/1.45 var(--font); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
/* living background: three soft lights drifting slowly behind the glass */
body::after {
  content: ""; position: fixed; inset: -20vmax; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38vmax 38vmax at 18% 12%, var(--aura-1), transparent 70%),
    radial-gradient(30vmax 30vmax at 86% 22%, var(--aura-2), transparent 70%),
    radial-gradient(44vmax 44vmax at 60% 92%, var(--aura-3), transparent 70%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  animation: drift 38s ease-in-out infinite alternate;
}
@keyframes drift { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-3vmax, 2vmax, 0) scale(1.05); } 100% { transform: translate3d(2vmax, -2vmax, 0) scale(1.02); } }

[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tnum { font-variant-numeric: tabular-nums; }
.gold { color: var(--accent); }
::selection { background: var(--gold-300); color: var(--navy-900); }

/* ---------- glass surfaces ---------- */
.glass {
  background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-edge); box-shadow: var(--glass-hi), var(--shadow-1);
}

/* ---------- buttons: liquid glass ---------- */
.btn, .icon-btn, .dchip, .chips button, .seg, .jump, .toast button {
  -webkit-user-select: none; user-select: none; touch-action: manipulation;
}
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  font-weight: 600; letter-spacing: .005em; color: var(--ink);
  background: linear-gradient(180deg, rgb(255 255 255 / .62), rgb(255 255 255 / .26));
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-hi), var(--shadow-1);
  -webkit-backdrop-filter: blur(14px) saturate(1.8); backdrop-filter: blur(14px) saturate(1.8);
  transition: transform .55s var(--spring), box-shadow .35s var(--out), background .35s var(--out), color .25s, opacity .25s;
}
:where(:root[data-theme="dark"]) .btn { background: linear-gradient(180deg, rgb(255 255 255 / .13), rgb(255 255 255 / .04)); }
@media (prefers-color-scheme: dark) { :where(:root:not([data-theme="light"])) .btn { background: linear-gradient(180deg, rgb(255 255 255 / .13), rgb(255 255 255 / .04)); } }
/* specular light that follows the finger / cursor */
.btn::before, .icon-btn::before, .dchip::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(110px circle at var(--mx, 50%) var(--my, -30%), rgb(255 255 255 / .75), transparent 62%);
  opacity: 0; transition: opacity .4s var(--out);
}
/* glossy top sheen */
.btn::after {
  content: ""; position: absolute; inset: 1px 1px 52% 1px; border-radius: 999px 999px 60% 60% / 999px 999px 30% 30%;
  background: linear-gradient(180deg, rgb(255 255 255 / .55), rgb(255 255 255 / 0)); pointer-events: none; z-index: -1; opacity: .7;
}
@media (hover: hover) {
  .btn:hover, .icon-btn:hover, .dchip:hover { --lift: -1px; }
  .btn:hover::before, .icon-btn:hover::before, .dchip:hover::before { opacity: .55; }
  .btn:hover { box-shadow: var(--glass-hi), var(--shadow-2); transform: translateY(-1px); }
}
.btn.is-pressed, .icon-btn.is-pressed, .dchip.is-pressed, .chips button.is-pressed, .seg button.is-pressed, .toast button.is-pressed {
  transform: scale(.94); transition-duration: .12s; transition-timing-function: var(--out);
}
.btn.is-pressed::before, .icon-btn.is-pressed::before, .dchip.is-pressed::before { opacity: 1; }
.btn.primary { color: #fff; background: var(--navy-grad); border-color: rgb(255 255 255 / .28); text-shadow: 0 1px 0 rgb(0 0 0 / .2); }
.btn.primary::after { opacity: .45; }
.btn.gold { color: #1a1204; background: var(--gold-grad); border-color: rgb(255 248 220 / .8); text-shadow: 0 1px 0 rgb(255 255 255 / .35);
  box-shadow: var(--glass-hi), 0 8px 24px -8px rgb(222 165 58 / .7), 0 1px 2px rgb(0 0 0 / .1); }
.btn.ghost { background: linear-gradient(180deg, rgb(255 255 255 / .34), rgb(255 255 255 / .10)); }
:where(:root[data-theme="dark"]) .btn.ghost { background: linear-gradient(180deg, rgb(255 255 255 / .08), rgb(255 255 255 / .02)); }
@media (prefers-color-scheme: dark) { :where(:root:not([data-theme="light"])) .btn.ghost { background: linear-gradient(180deg, rgb(255 255 255 / .08), rgb(255 255 255 / .02)); } }
.btn.ok { color: #fff; background: linear-gradient(180deg, #3cc283, #1d8a56); border-color: rgb(255 255 255 / .3); text-shadow: 0 1px 0 rgb(0 0 0 / .18); }
.btn.ok::after { opacity: .45; }
.btn.small { min-height: 38px; padding: 0 14px; font-size: .9rem; }
.btn.link { background: none; border: 0; box-shadow: none; padding: 0 6px; min-height: 36px; color: var(--ink-2); text-decoration: underline;
  text-underline-offset: 3px; font-weight: 500; -webkit-backdrop-filter: none; backdrop-filter: none; }
.btn.link::after, .btn.link::before { display: none; }
.btn.wide { width: 100%; min-height: 50px; font-size: 1.02rem; }
.btn[disabled] { opacity: .5; cursor: default; transform: none; }
a.btn { text-decoration: none; }

.icon-btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; background: transparent; color: var(--ink-2); font-size: 1.4rem; line-height: 1;
  transition: transform .55s var(--spring), background .3s var(--out), border-color .3s, color .2s, box-shadow .3s;
}
.topbar .icon-btn, .stepper .icon-btn, .sheet-head .icon-btn {
  background: linear-gradient(180deg, rgb(255 255 255 / .5), rgb(255 255 255 / .18)); border-color: var(--glass-edge); box-shadow: var(--glass-hi), var(--shadow-1); color: var(--ink);
}
:where(:root[data-theme="dark"]) :is(.topbar, .stepper, .sheet-head) .icon-btn { background: linear-gradient(180deg, rgb(255 255 255 / .12), rgb(255 255 255 / .03)); }
@media (prefers-color-scheme: dark) { :where(:root:not([data-theme="light"])) :is(.topbar, .stepper, .sheet-head) .icon-btn { background: linear-gradient(180deg, rgb(255 255 255 / .12), rgb(255 255 255 / .03)); } }
.icon-btn:hover { color: var(--ink); }
.icon-btn.small { width: 38px; height: 44px; }

/* tap ripple */
.rip { position: absolute; border-radius: 50%; pointer-events: none; z-index: -1; width: 12px; height: 12px; margin: -6px 0 0 -6px;
  background: radial-gradient(circle, rgb(255 255 255 / .85), rgb(255 255 255 / 0) 70%); transform: scale(0); opacity: .9;
  animation: rip .7s var(--out) forwards; }
.btn.gold .rip { background: radial-gradient(circle, rgb(255 255 255 / .95), rgb(255 255 255 / 0) 70%); }
@keyframes rip { to { transform: scale(var(--rs, 22)); opacity: 0; } }

/* ---------- login / setup ---------- */
.center-screen { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center;
  padding: max(24px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 24px max(16px, env(safe-area-inset-left)); }
.panel { width: min(420px, 100%); display: grid; gap: 16px; padding: 30px 26px 26px; border-radius: 28px;
  background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-edge); box-shadow: var(--glass-hi), var(--shadow-2); animation: rise .8s var(--spring-soft) both; }
.brand-lg { display: flex; align-items: center; gap: 14px; font-size: 2.1rem; font-weight: 680; letter-spacing: -.03em; }
.brand-lg img { border-radius: 15px; box-shadow: 0 8px 24px -8px rgb(6 18 51 / .5); }
.brand-lg .gold, .brand .gold { color: var(--gold-500); }
.lede { margin: 0; color: var(--ink-2); font-size: 1.05rem; }
.fine { margin: 0; color: var(--ink-3); font-size: .85rem; }
.panel h1 { margin: 0; font-size: 1.5rem; }

/* ---------- form fields ---------- */
.field { display: grid; gap: 7px; min-width: 0; }
.field > span { font-size: .74rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.field input, .field textarea, .field select, .stepper input {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: var(--r); font-size: 1rem;
  border: 1px solid var(--line-2); background: var(--glass-2); box-shadow: inset 0 1px 2px rgb(6 18 51 / .06);
  transition: border-color .25s, box-shadow .35s var(--out), background .25s;
}
.field input:focus, .field textarea:focus, .stepper input:focus { outline: none; border-color: var(--gold-500);
  box-shadow: 0 0 0 4px rgb(222 165 58 / .22), inset 0 1px 2px rgb(6 18 51 / .06); background: var(--glass-solid); }
.field textarea { resize: vertical; min-height: 68px; }
.form-error { margin: 0; min-height: 1.2em; color: var(--bad); font-size: .92rem; }
.form-error.ok { color: var(--ok); font-weight: 600; }
.form-error:not(:empty) { animation: shake .45s var(--out); }
.form-error.ok:not(:empty) { animation: pop .5s var(--spring); }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.warn { margin: 0; padding: 11px 14px; border-radius: var(--r); background: var(--amber-soft); color: var(--amber); font-size: .92rem; animation: rise .5s var(--spring-soft); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- top bar ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--glass-2); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--glass-rim); box-shadow: inset 0 -1px 0 var(--glass-edge);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 1.08rem; }
.brand img { border-radius: 9px; flex: none; box-shadow: 0 4px 12px -4px rgb(6 18 51 / .45); }
.brand b { font-weight: 700; letter-spacing: -.02em; }
.brand .sep { color: var(--line-2); }
.brand #r-name { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.sync { font-size: .8rem; color: var(--ink-3); margin-right: 4px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.sync::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: live 2.4s ease-out infinite; }
.sync.off { color: var(--bad); }
.sync.off::before { background: var(--bad); animation: none; }
@keyframes live { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); } 100% { box-shadow: 0 0 0 8px transparent; } }

/* ---------- day strip ---------- */
.stripbar { display: flex; align-items: center; gap: 4px; padding: 10px max(8px, env(safe-area-inset-right)) 10px max(8px, env(safe-area-inset-left)); }
.strip { flex: 1; min-width: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; padding: 4px 2px 8px; }
.strip::-webkit-scrollbar { display: none; }
.dchip {
  position: relative; isolation: isolate; overflow: hidden;
  flex: none; scroll-snap-align: start; width: 76px; padding: 9px 6px 8px; border-radius: 18px; cursor: pointer; text-align: center;
  display: grid; gap: 1px; color: var(--ink);
  background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(1.7); backdrop-filter: blur(16px) saturate(1.7);
  border: 1px solid var(--glass-edge); box-shadow: var(--glass-hi), var(--shadow-1);
  transition: transform .55s var(--spring), background .35s var(--out), color .25s, box-shadow .35s;
}
.dchip .wd { font-size: .7rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.dchip .dn { font-size: 1.4rem; font-weight: 650; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.dchip .ct { font-size: .72rem; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dchip.today .wd { color: var(--accent); }
.dchip.closed { color: var(--ink-3); background: repeating-linear-gradient(-45deg, var(--glass) 0 6px, transparent 6px 12px); }
.dchip.closed .dn { color: var(--ink-3); }
.dchip[aria-current="date"] { background: var(--navy-grad); border-color: rgb(255 255 255 / .3); color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), 0 10px 24px -10px rgb(16 41 106 / .8); transform: translateY(-2px) scale(1.04); }
.dchip[aria-current="date"] .dn, .dchip[aria-current="date"] .ct { color: #fff; }
.dchip[aria-current="date"] .wd { color: var(--gold-300); }
.jump { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; color: var(--ink); cursor: pointer;
  background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--glass-hi), var(--shadow-1); transition: transform .5s var(--spring); }
.jump:active { transform: scale(.92); }
.jump input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }

/* ---------- layout: day + activity ---------- */
.home { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.home-main { min-width: 0; }
.home .activity { order: -1; }   /* phones/tablets in portrait: activity first */
@media (min-width: 1100px) { .home .activity { order: 0; } }
@media (min-width: 1100px) {
  .home { grid-template-columns: minmax(0, 1fr) 370px; gap: 8px; padding-right: max(16px, env(safe-area-inset-right)); }
  .home .activity { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 76px); align-self: start; margin: 14px 0 24px;
    max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); display: flex; flex-direction: column; }
  .home .activity .act-list { overflow-y: auto; overscroll-behavior: contain; }
  .home .activity .act-more { display: none; }
}

/* ---------- activity feed ---------- */
.activity { margin: 10px max(16px, env(safe-area-inset-right)) 4px max(16px, env(safe-area-inset-left)); padding: 14px 8px 8px; border-radius: var(--r-lg);
  background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-edge); box-shadow: var(--glass-hi), var(--shadow-1); animation: rise .7s var(--spring-soft) both; }
@media (min-width: 1100px) { .home .activity { margin-left: 0; margin-right: 0; } }
.act-head { display: flex; align-items: center; gap: 10px; padding: 0 10px 8px; }
.act-head h2 { margin: 0; font-size: .78rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.act-head .live { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-500); animation: live-gold 2.4s ease-out infinite; }
@keyframes live-gold { 0% { box-shadow: 0 0 0 0 rgb(222 165 58 / .6); } 100% { box-shadow: 0 0 0 9px rgb(222 165 58 / 0); } }
.act-head .count { margin-left: auto; color: var(--ink-3); font-size: .82rem; }
.act-list { display: grid; gap: 2px; }
.act {
  position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 2px 12px; align-items: center;
  padding: 9px 10px; border-radius: 14px; border: 0; background: transparent; text-align: left; cursor: pointer; color: inherit; width: 100%;
  transition: background .3s var(--out), transform .5s var(--spring);
}
.act:hover { background: var(--glass-2); }
.act.is-pressed { transform: scale(.98); transition-duration: .1s; }
.act .ic { grid-row: 1 / span 2; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--glass-2); border: 1px solid var(--glass-edge); box-shadow: var(--glass-hi); color: var(--navy-600); }
.act .ic svg { width: 19px; height: 19px; stroke-width: 2; }
.act .ttl { font-weight: 650; font-size: .95rem; min-width: 0; line-height: 1.3; }
.act .sub { grid-column: 2; color: var(--ink-2); font-size: .86rem; min-width: 0; line-height: 1.35; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.act .ago { grid-column: 3; grid-row: 1 / span 2; align-self: start; padding-top: 2px; max-width: 92px; font-size: .8rem; color: var(--ink-3); font-variant-numeric: tabular-nums; text-align: right; }
.act .ago.recent { color: var(--accent); font-weight: 650; }
.act.k-new .ic { background: var(--gold-grad); color: #2b1d04; border-color: rgb(255 248 220 / .8); }
.act.k-ai .ic { background: var(--navy-grad); color: var(--gold-300); border-color: rgb(255 255 255 / .25); }
.act.k-arrived .ic { background: var(--ok-soft); color: var(--ok); }
.act.k-cancelled .ic { background: var(--bad-soft); color: var(--bad); }
.act.k-no_show .ic, .act.k-cb .ic { background: var(--amber-soft); color: var(--amber); }
.act.k-dark .ic { color: var(--ink-2); }
:where(:root[data-theme="dark"]) .act .ic { color: var(--navy-300); }
@media (prefers-color-scheme: dark) { :where(:root:not([data-theme="light"])) .act .ic { color: var(--navy-300); } }
.act.fresh { animation: fresh 1.1s var(--spring-soft) both; }
.act.fresh::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 1.5px rgb(222 165 58 / .7), 0 0 24px rgb(222 165 58 / .35); animation: glow 2.6s ease-out forwards; }
@keyframes fresh { from { opacity: 0; transform: translateY(-14px) scale(.97); } }
@keyframes glow { 0%, 40% { opacity: 1; } 100% { opacity: 0; } }
.act-empty { padding: 14px 12px 16px; color: var(--ink-3); font-size: .92rem; }
.act-more { display: flex; justify-content: center; padding: 6px 0 4px; }
@media (max-width: 1099.98px) { .activity.collapsed .act:nth-child(n+5) { display: none; } }

/* ---------- new bookings bar / callbacks ---------- */
.newbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--ink);
  margin: 10px max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); padding: 12px 14px; border-radius: var(--r-lg);
  background: linear-gradient(120deg, rgb(240 195 95 / .28), rgb(240 195 95 / .10) 60%), var(--glass);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid rgb(240 195 95 / .55); box-shadow: var(--glass-hi), var(--shadow-1);
  animation: rise .6s var(--spring-soft) both; }
.newbar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold-500); flex: none; animation: live-gold 2s ease-out infinite; }
.newbar b { font-weight: 680; }
.newbar .spacer { flex: 1; }
.cbbar { margin: 10px max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); padding: 12px; border-radius: var(--r-lg); display: grid; gap: 8px;
  background: linear-gradient(120deg, rgb(242 160 60 / .22), transparent 70%), var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid rgb(242 160 60 / .45); box-shadow: var(--glass-hi), var(--shadow-1); animation: rise .6s var(--spring-soft) both; }
.cb-head { padding: 0 4px; }
.cb-head b { font-weight: 680; }
.cb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 11px 13px; border-radius: 16px; background: var(--glass-2); border: 1px solid var(--glass-edge); box-shadow: var(--glass-hi); }
.cb-who { flex: 1; min-width: 200px; }
.cb-who .tnum { color: var(--ink-2); margin-left: 6px; }
.cb-why { margin-top: 2px; overflow-wrap: anywhere; }
.cb-when { font-size: .82rem; color: var(--ink-3); margin-top: 2px; }
.cb-acts { display: flex; gap: 6px; }

/* ---------- day header ---------- */
.dayhead { display: flex; flex-wrap: wrap; align-items: end; gap: 14px 28px;
  padding: 22px max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left)); }
.dayhead h1 { margin: 0; font-size: clamp(1.7rem, 3.8vw, 2.5rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
.dayhead .rel { display: block; font-size: .76rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.stats { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.stat { display: grid; align-content: end; padding: 9px 14px; border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--glass-hi), var(--shadow-1);
  -webkit-backdrop-filter: blur(16px) saturate(1.7); backdrop-filter: blur(16px) saturate(1.7); }
.stat small { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.stat b { font-size: 1.4rem; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat b.bump { animation: pop .55s var(--spring); }
@keyframes pop { 0% { transform: scale(.85); } 100% { transform: scale(1); } }
.meter { width: 150px; height: 7px; border-radius: 99px; background: var(--line-2); overflow: hidden; margin-top: 7px; }
.meter i { display: block; height: 100%; background: var(--navy-grad); border-radius: 99px; transition: width .9s var(--spring-soft); }
.meter.over i { background: linear-gradient(90deg, var(--gold-500), var(--bad)); }
.dayhead .day-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.closed-banner { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 14px; border-radius: var(--r);
  background: var(--glass); border: 1px dashed var(--line-2); color: var(--ink-2); animation: rise .5s var(--spring-soft); }

/* ---------- bookings list ---------- */
.list { padding: 0 max(16px, env(safe-area-inset-right)) 120px max(16px, env(safe-area-inset-left)); }
@media (min-width: 1100px) { .home .list { padding-right: 8px; } .home .dayhead { padding-right: 8px; } }
.period { margin-top: 16px; }
.period-head { display: flex; align-items: baseline; gap: 12px; padding: 6px 6px 8px; }
.period-head h2 { margin: 0; font-size: .78rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.period-head h2::before { content: ""; display: inline-block; width: 18px; height: 2px; border-radius: 2px; background: var(--gold-500); vertical-align: middle; margin-right: 8px; }
.period-head span { color: var(--ink-3); font-size: .88rem; font-variant-numeric: tabular-nums; }
.res {
  display: grid; grid-template-columns: 78px 54px minmax(0, 1fr) auto; gap: 4px 16px; align-items: center;
  padding: 13px 14px; margin: 8px 0; border-radius: 20px; scroll-margin-top: 150px;
  background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--glass-hi), var(--shadow-1);
  transition: background .45s var(--out), opacity .45s, transform .55s var(--spring), box-shadow .35s;
}
.res.enter { animation: rise .7s var(--spring-soft) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.985); } }
.res .t { font-size: 1.45rem; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.res .g { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; font-weight: 700; font-size: 1.15rem;
  background: var(--glass-2); border: 1px solid var(--glass-edge); box-shadow: var(--glass-hi); font-variant-numeric: tabular-nums; color: var(--navy-700); }
:where(:root[data-theme="dark"]) .res .g { color: var(--ink); }
@media (prefers-color-scheme: dark) { :where(:root:not([data-theme="light"])) .res .g { color: var(--ink); } }
.res .who { min-width: 0; }
.res .nm { font-size: 1.1rem; font-weight: 650; overflow-wrap: anywhere; letter-spacing: -.01em; }
.res .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 9px; color: var(--ink-2); font-size: .92rem; margin-top: 3px; }
.res .meta a { color: inherit; text-decoration: none; font-variant-numeric: tabular-nums; }
.res .meta a:hover { text-decoration: underline; }
.res .nt { margin-top: 5px; color: var(--ink); font-size: .93rem; font-style: italic; overflow-wrap: anywhere; }
.res .acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.res .acts .btn, .res .more .btn { -webkit-backdrop-filter: none; backdrop-filter: none; }
.res .more { grid-column: 3 / -1; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; animation: rise .45s var(--spring-soft); }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: .74rem; font-weight: 680;
  letter-spacing: .03em; background: var(--glass-2); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.chip.web { color: var(--navy-600); border-color: rgb(42 86 184 / .25); }
.chip.ai { background: var(--navy-grad); color: var(--gold-300); border-color: transparent; }
.chip.new { background: var(--gold-grad); color: #2b1d04; border-color: transparent; animation: pop .6s var(--spring); }
.chip.over { background: var(--amber-soft); color: var(--amber); border-color: transparent; }
.chip.arrived { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.chip.no_show { background: var(--amber-soft); color: var(--amber); border-color: transparent; }
.chip.cancelled { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
:where(:root[data-theme="dark"]) .chip.web { color: var(--navy-300); }
@media (prefers-color-scheme: dark) { :where(:root:not([data-theme="light"])) .chip.web { color: var(--navy-300); } }
.res.st-arrived { background: linear-gradient(90deg, var(--ok-soft), transparent 70%), var(--glass); }
.res.st-arrived .g { background: var(--ok); color: #fff; border-color: transparent; }
.res.st-cancelled, .res.st-no_show { opacity: .6; }
.res.st-cancelled .nm { text-decoration: line-through; text-decoration-color: var(--bad); }
.res.is-new { border-color: rgb(240 195 95 / .7); box-shadow: var(--glass-hi), 0 0 0 1px rgb(240 195 95 / .35), 0 10px 30px -12px rgb(222 165 58 / .55); }
.res.is-new .g { background: var(--gold-grad); color: #2b1d04; border-color: transparent; }
.res.flash { animation: flash 2.4s var(--out) 1; }
@keyframes flash { 0%, 30% { box-shadow: 0 0 0 3px rgb(240 195 95 / .9), 0 0 40px rgb(240 195 95 / .5); transform: scale(1.01); } 100% { } }
.empty { padding: 48px 16px; margin-top: 10px; color: var(--ink-2); text-align: center; display: grid; gap: 14px; justify-items: center; border-radius: var(--r-lg);
  background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--glass-hi), var(--shadow-1); animation: rise .7s var(--spring-soft) both; }
.empty b { color: var(--ink); font-size: 1.2rem; }

@media (max-width: 720px) {
  .res { grid-template-columns: 62px 44px minmax(0, 1fr); padding: 12px; }
  .res .t { font-size: 1.2rem; }
  .res .g { width: 40px; height: 40px; font-size: 1rem; border-radius: 13px; }
  .res .acts, .res .more { grid-column: 1 / -1; justify-content: flex-start; }
  .top-actions .btn.gold span[data-i18n] { display: none; }
  .top-actions .btn.gold { width: 44px; padding: 0; font-size: 1.5rem; }
  .sync { display: none; }
  .dayhead .day-actions { margin-left: 0; }
  .stat { padding: 8px 12px; }
}
@media (max-width: 480px) {
  .stripbar [data-action="strip-prev"], .stripbar [data-action="strip-next"] { display: none; }
  .stripbar { padding-left: max(12px, env(safe-area-inset-left)); gap: 8px; }
  .dchip { width: 64px; border-radius: 16px; }
  .dchip .dn { font-size: 1.25rem; }
  .brand .sep, .brand #r-name { display: none; }
  .topbar { flex-wrap: nowrap; }
  .meter { width: 110px; }
}

/* ---------- sheets ---------- */
dialog.sheet {
  width: min(580px, 100%); max-height: min(92vh, 900px); margin: auto; padding: 0; border-radius: 28px; color: var(--ink);
  background: var(--glass-solid); -webkit-backdrop-filter: blur(30px) saturate(1.8); backdrop-filter: blur(30px) saturate(1.8);
  border: 1px solid var(--glass-edge); box-shadow: var(--glass-hi), var(--shadow-2);
}
dialog.sheet[open] { animation: sheet-in .6s var(--spring-soft); }
dialog.sheet.closing { animation: sheet-out .26s var(--out) forwards; }
dialog.sheet::backdrop { background: rgb(4 11 32 / .38); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade .35s var(--out); }
dialog.sheet.closing::backdrop { animation: fade .26s var(--out) reverse forwards; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(30px) scale(.96); } }
@keyframes sheet-out { to { opacity: 0; transform: translateY(24px) scale(.97); } }
@keyframes fade { from { opacity: 0; } }
dialog.sheet form { display: flex; flex-direction: column; max-height: inherit; margin: 0; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 14px 6px 24px; }
.sheet-head h2 { margin: 0; font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; }
.sheet-body { padding: 8px 24px 16px; overflow-y: auto; display: grid; gap: 15px; }
.sheet-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 24px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
@media (max-width: 640px) {
  dialog.sheet { margin: auto 0 0; width: 100%; max-width: 100%; max-height: 94vh; border-radius: 28px 28px 0 0; border-bottom: 0; }
  dialog.sheet[open] { animation: sheet-up .55s var(--spring-soft); }
  dialog.sheet.closing { animation: sheet-down .26s var(--out) forwards; }
  .row2 { grid-template-columns: 1fr; }
  .sheet-head::before { content: ""; position: absolute; left: 50%; top: 7px; width: 38px; height: 5px; margin-left: -19px; border-radius: 99px; background: var(--line-2); }
}
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes sheet-down { to { transform: translateY(100%); } }

/* segmented control with a sliding glass thumb */
.seg { position: relative; isolation: isolate; display: inline-flex; padding: 4px; border-radius: 999px; justify-self: start;
  background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: inset 0 1px 3px rgb(6 18 51 / .1); }
.seg .thumb { position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: var(--navy-grad);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), 0 6px 16px -6px rgb(16 41 106 / .7);
  transform: translateX(var(--tx, 4px)); width: var(--tw, 0); transition: transform .6s var(--spring), width .6s var(--spring); }
.seg button { position: relative; border: 0; background: transparent; min-height: 40px; padding: 0 18px; border-radius: 999px; font-weight: 650; color: var(--ink-2); cursor: pointer;
  transition: color .3s, transform .5s var(--spring); }
.seg button[aria-checked="true"] { color: #fff; }
.seg:not(.has-thumb) button[aria-checked="true"] { background: var(--navy-grad); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chips.inline { display: contents; }
.chips button { min-width: 46px; min-height: 40px; padding: 0 12px; border-radius: 999px; cursor: pointer; font-variant-numeric: tabular-nums; font-weight: 600;
  background: var(--glass-2); border: 1px solid var(--glass-edge); box-shadow: var(--glass-hi), 0 1px 2px rgb(6 18 51 / .06);
  transition: transform .5s var(--spring), background .3s var(--out), color .2s, box-shadow .3s; }
.chips button[aria-pressed="true"] { background: var(--navy-grad); color: #fff; border-color: rgb(255 255 255 / .3);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), 0 8px 18px -8px rgb(16 41 106 / .8); transform: scale(1.06); }
.chips .grp { width: 100%; font-size: .7rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
.stepper { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.stepper input { width: 84px; text-align: center; font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; }

.results { display: grid; gap: 4px; }
.result { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 14px; padding: 12px; border-radius: 14px; text-align: left; cursor: pointer;
  background: transparent; border: 1px solid transparent; transition: background .25s, transform .45s var(--spring); animation: rise .45s var(--spring-soft) both; }
.result:hover { background: var(--glass-2); border-color: var(--glass-edge); }
.result:active { transform: scale(.98); }
.result .d { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.result .n { font-weight: 650; overflow-wrap: anywhere; }
.result .s { color: var(--ink-2); font-size: .9rem; grid-column: 2 / -1; }

.settings section { display: grid; gap: 10px; padding: 14px 16px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--glass-hi); }
.settings h3 { margin: 0; font-size: .74rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.settings p { margin: 0; color: var(--ink-2); }
.settings .status { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.settings .status i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); }
.settings .status.on i { background: var(--ok); }
.settings .status.off i { background: var(--amber); }
.settings .btns { display: flex; flex-wrap: wrap; gap: 8px; }
.settings ol { margin: 0; padding-left: 1.2em; color: var(--ink-2); display: grid; gap: 4px; }

/* iOS-style switch (a real checkbox underneath) */
.switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-weight: 600; cursor: pointer; }
.switch input { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 52px; height: 32px; margin: 0; border-radius: 99px; cursor: pointer;
  background: var(--line-2); box-shadow: inset 0 1px 3px rgb(0 0 0 / .18); transition: background .35s var(--out); }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(180deg, #fff, #eef1f8); box-shadow: 0 3px 8px rgb(6 18 51 / .3), inset 0 1px 0 #fff; transition: transform .55s var(--spring); }
.switch input:checked { background: var(--navy-grad); }
.switch input:checked::after { transform: translateX(20px); }
.switch input:active::after { width: 30px; }
.switch input:checked:active::after { transform: translateX(16px); }

/* ---------- toasts ---------- */
.toasts { position: fixed; z-index: 50; left: 50%; transform: translateX(-50%); bottom: max(16px, env(safe-area-inset-bottom)); width: min(560px, calc(100% - 32px)); display: grid; gap: 8px; }
.toast { display: flex; align-items: center; gap: 12px; padding: 13px 13px 13px 18px; border-radius: 20px; color: #fff;
  background: rgb(7 20 52 / .82); -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8);
  border: 1px solid rgb(255 255 255 / .16); box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), var(--shadow-2); animation: toast-in .6s var(--spring); }
.toast.new { border-color: rgb(240 195 95 / .7); box-shadow: inset 0 1px 0 rgb(255 255 255 / .2), 0 0 0 1px rgb(240 195 95 / .25), 0 18px 50px -14px rgb(222 165 58 / .55); }
.toast.new .msg b { color: var(--gold-300); }
.toast.out { animation: toast-out .3s var(--out) forwards; }
.toast .msg { flex: 1; min-width: 0; }
.toast .msg b { display: block; }
.toast button { flex: none; min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .35); color: inherit; font-weight: 650; cursor: pointer;
  background: linear-gradient(180deg, rgb(255 255 255 / .2), rgb(255 255 255 / .05)); transition: transform .5s var(--spring); }
.toast.new button { background: var(--gold-grad); color: #1a1204; border-color: transparent; }
@keyframes toast-in { from { transform: translateY(24px) scale(.92); opacity: 0; } }
@keyframes toast-out { to { transform: translateY(12px) scale(.96); opacity: 0; } }

/* ---------- calm motion for people who prefer it ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  body::after { animation: none; }
}

/* =====================================================================
   1.3.1 – The clock: classic watchmaking. Sunburst navy dial, applied gold batons,
   faceted dauphine hands, smooth sweeping seconds. No glow, no gloss, no numerals.
   ===================================================================== */
.cintro { display: none; }
html.clock-intro .cintro { display: grid; place-items: center; position: fixed; inset: 0; z-index: 100; cursor: pointer; color: #f4ead2;
  background: radial-gradient(120% 90% at 50% 40%, #0a1430 0%, #050a1b 55%, #020510 100%); }
html.clock-intro body { overflow: hidden; }
.cstage { position: relative; display: grid; justify-items: center; gap: 30px; text-align: center; }
.clock-host { width: min(66vmin, 400px); aspect-ratio: 1; position: relative; }
.clock { position: relative; width: 100%; height: 100%; border-radius: 50%;
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / .9), 0 0 0 1px rgb(0 0 0 / .6); opacity: 0; animation: clockIn 1.4s var(--out) .1s forwards; }
@keyframes clockIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.c-dial { position: absolute; inset: 1.4%; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgb(255 255 255 / .05), transparent 58%),
    repeating-conic-gradient(from 0deg, rgb(255 255 255 / .045) 0deg .6deg, rgb(0 0 0 / .05) .6deg 1.2deg),
    conic-gradient(from 220deg, #12265e, #0b1a45 25%, #15306f 45%, #0a1840 70%, #11255a 85%, #12265e);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .5), inset 0 10px 30px rgb(0 0 0 / .45); }
.c-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.c-case { fill: none; stroke: url(#cgCase); stroke-width: 2.6; stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: cDraw 1.8s var(--out) .2s forwards; }
.c-chapter { fill: none; stroke: rgb(232 205 150 / .35); stroke-width: .35; stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: cDraw 1.8s var(--out) .5s forwards; }
@keyframes cDraw { to { stroke-dashoffset: 0; } }
@keyframes cFade { to { opacity: 1; } }
.c-ticks line { stroke: rgb(232 205 150 / .7); stroke-width: .45; opacity: 0; animation: cFade .6s var(--out) forwards; animation-delay: calc(.7s + var(--i) * 10ms); }
.c-idx rect { fill: url(#cgLight); stroke: #6b4a14; stroke-width: .25; opacity: 0; animation: idxIn .9s var(--out) forwards; animation-delay: calc(.9s + var(--i) * 55ms); transform-box: fill-box; transform-origin: center; }
@keyframes idxIn { from { opacity: 0; transform: scaleY(.3); } to { opacity: 1; transform: none; } }
.clock { container-type: inline-size; }
.c-brand, .c-zone { position: absolute; left: 0; right: 0; text-align: center; text-transform: uppercase; color: #e9d6a6; pointer-events: none;
  font-family: "Instrument Sans", system-ui, sans-serif; opacity: 0; -webkit-font-smoothing: antialiased; }
.c-brand { top: 30.5%; font-size: 2.55cqw; font-weight: 600; letter-spacing: .42em; padding-left: .42em; animation: cFade 1.2s var(--out) 1.6s forwards; }
.c-zone { bottom: 28.5%; font-size: 1.95cqw; font-weight: 500; letter-spacing: .36em; padding-left: .36em; color: rgb(233 214 166 / .65); animation: cFade 1.2s var(--out) 1.8s forwards; }
.c-hand { transform-origin: 100px 100px; opacity: 0; }
.clock.live .c-hand { opacity: 1; transition: opacity .8s var(--out); }
.c-hand .lt { fill: url(#cgLight); }
.c-hand .dk { fill: url(#cgDark); }
.c-hand .tail { fill: #8f6522; }
.c-hand { filter: drop-shadow(0 1.2px 1px rgb(0 0 0 / .55)); }
.c-sec line { stroke: #e9cf90; stroke-width: .7; stroke-linecap: round; }
.c-sec circle { fill: #e9cf90; }
.c-cap { fill: url(#cgCase); }
.c-cap2 { fill: #5a3d10; }
.cdate { font-size: .74rem; font-weight: 500; letter-spacing: .34em; text-transform: uppercase; color: rgb(244 234 210 / .72); font-variant-numeric: tabular-nums;
  opacity: 0; animation: wordIn 1.4s var(--out) 2s forwards; }
@keyframes wordIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.chint { position: absolute; bottom: max(30px, env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; font-size: .68rem; letter-spacing: .36em;
  text-transform: uppercase; color: rgb(244 234 210 / .5); opacity: 0; animation: hintIn 1.2s ease 3s forwards, breathe 3.6s ease-in-out 4.2s infinite; }
@keyframes hintIn { to { opacity: .55; } }
@keyframes breathe { 0%, 100% { opacity: .55; } 50% { opacity: .2; } }
html.clock-leaving .cintro { pointer-events: none; animation: cOut 1s var(--out) .3s forwards; }
html.clock-leaving .cdate, html.clock-leaving .chint { animation: wordOut .45s var(--out) forwards; }
@keyframes cOut { to { opacity: 0; visibility: hidden; } }
@keyframes wordOut { to { opacity: 0; transform: translateY(-8px); } }

/* login: the clock lives on, a greeting by time of day */
.login-clock { width: 92px; height: 92px; justify-self: center; margin-top: -6px; position: relative; }
.login-clock .clock { opacity: 1; animation: none; box-shadow: 0 14px 30px -12px rgb(6 18 51 / .7), 0 0 0 1px rgb(0 0 0 / .4); }
.login-clock .clock .c-ticks line, .login-clock .clock .c-idx rect, .login-clock .c-brand, .login-clock .c-zone { opacity: 1; animation: none; }
.login-clock .c-case, .login-clock .c-chapter { stroke-dashoffset: 0; animation: none; }
.login-clock .c-ticks, .login-clock .c-brand, .login-clock .c-zone { display: none; }
.greet { margin: 0; text-align: center; font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.panel .welcome { margin: -6px 0 0; text-align: center; font-size: clamp(1.7rem, 5vw, 2.1rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
.panel .welcome .gold { color: var(--gold-500); }
.panel .lede { text-align: center; }
#v-login .panel > * { animation: rise .9s var(--spring-soft) both; }
#v-login .panel > :nth-child(1) { animation-delay: .05s; } #v-login .panel > :nth-child(2) { animation-delay: .15s; }
#v-login .panel > :nth-child(3) { animation-delay: .22s; } #v-login .panel > :nth-child(4) { animation-delay: .3s; }
#v-login .panel > :nth-child(5) { animation-delay: .38s; } #v-login .panel > :nth-child(6) { animation-delay: .46s; }
#v-login .panel > :nth-child(n+7) { animation-delay: .54s; }
.welcome .gold { background: linear-gradient(100deg, var(--gold-600), var(--gold-300) 45%, #fff 52%, var(--gold-400) 60%, var(--gold-600)); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: goldSheen 5s ease-in-out 1s infinite; }
@keyframes goldSheen { 0% { background-position: 100% 0; } 40%, 100% { background-position: 0% 0; } }

/* entering the reservation book after login / welcome back */
html.entering .topbar { animation: rise .8s var(--spring-soft) both; }
html.entering .stripbar { animation: rise .8s var(--spring-soft) .1s both; }
html.entering .dchip { animation: rise .7s var(--spring-soft) both; animation-delay: calc(.15s + var(--i, 0) * 35ms); }
html.entering .activity, html.entering .cbbar, html.entering .newbar { animation: rise .9s var(--spring-soft) .25s both; }
html.entering .dayhead > * { animation: rise .9s var(--spring-soft) .3s both; }
.welcome-banner { position: fixed; z-index: 60; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 84px); transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; padding: 12px 20px 12px 14px; border-radius: 26px; color: #fff; width: max-content; max-width: calc(100vw - 32px); line-height: 1.35;
  background: rgb(7 20 52 / .82); -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8);
  border: 1px solid rgb(240 195 95 / .6); box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 20px 50px -14px rgb(222 165 58 / .55);
  animation: banner 3.6s var(--spring-soft) forwards; pointer-events: none; }
.welcome-banner .mini { width: 34px; height: 34px; }
.welcome-banner b { color: var(--gold-300); font-weight: 650; }
@keyframes banner { 0% { opacity: 0; transform: translate(-50%, -16px) scale(.9); } 12%, 82% { opacity: 1; transform: translate(-50%, 0) scale(1); } 100% { opacity: 0; transform: translate(-50%, -10px) scale(.96); } }

/* day change: the list slides in from the direction of the new day */
.list.from-right .res.enter { animation-name: fromRight; }
.list.from-left .res.enter { animation-name: fromLeft; }
@keyframes fromRight { from { opacity: 0; transform: translateX(36px); } }
@keyframes fromLeft { from { opacity: 0; transform: translateX(-36px); } }
.dayhead.swap h1 { animation: rise .7s var(--spring-soft) both; }

/* gold glint sweeping across gold and primary buttons */
.btn .glint { position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit; overflow: hidden; }
.btn .glint::after { content: ""; position: absolute; top: 0; bottom: 0; width: 60%; left: -70%;
  background: linear-gradient(105deg, transparent, rgb(255 255 255 / .65) 50%, transparent); transform: skewX(-12deg); }
.btn.glinting .glint::after { animation: glint 1s var(--out) forwards; }
@keyframes glint { to { left: 120%; } }
.btn.gold.idle-glint .glint::after { animation: glint 1.2s var(--out) 1; }

/* sparkle burst on press */
.burst { position: fixed; z-index: 1000; pointer-events: none; width: 0; height: 0; }
.burst i { position: absolute; left: -4px; top: -4px; width: 7px; height: 7px; transform: rotate(45deg) scale(0);
  background: linear-gradient(135deg, #fff, #f7d98f 50%, #dea53a); box-shadow: 0 0 6px rgb(247 217 143 / .8); animation: shard .75s var(--out) forwards; }
@keyframes shard { 0% { transform: translate(0, 0) rotate(45deg) scale(.3); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) rotate(225deg) scale(0); opacity: 0; } }

/* stats count with a soft pop when the day changes */
.dayhead.swap .stat { animation: rise .7s var(--spring-soft) both; }
.dayhead.swap .stat:nth-child(2) { animation-delay: .06s; } .dayhead.swap .stat:nth-child(3) { animation-delay: .12s; }

@media (prefers-reduced-motion: reduce) { .welcome-banner { display: none; } .cwaves { animation: none; } }

html.clock-intro #v-login .panel > :not(.login-clock) { animation: none; opacity: 0; }
#v-login .panel > .login-clock { animation: none; }
html.clock-leaving.to-login .cintro { animation: none; }

/* =====================================================================
   1.4 – Clock screen on white: fine pattern, a barely-moving wave, digital time.
   Works on iPhone and iPad in portrait and landscape.
   ===================================================================== */
html.clock-intro .cintro {
  color: #0b1d4a;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cpath d='M22 2 L42 22 L22 42 L2 22Z' fill='none' stroke='%230b1d4a' stroke-opacity='.045' stroke-width='.8'/%3E%3Ccircle cx='22' cy='22' r='1.1' fill='%23b9821c' fill-opacity='.12'/%3E%3C/svg%3E") center/44px 44px,
    radial-gradient(120% 90% at 50% 38%, #ffffff 0%, #f7f8fc 55%, #eef1f8 100%);
}
.cwaves { position: absolute; left: 0; bottom: 0; width: 200%; height: 34vh; min-height: 160px; pointer-events: none;
  animation: waveDrift 70s linear infinite; }
.cwaves path { fill: #0b1d4a; stroke: none; }
.cwaves path:nth-child(1) { fill-opacity: .028; }
.cwaves path:nth-child(2) { fill-opacity: .022; animation: waveBob 14s ease-in-out infinite; transform-origin: 50% 100%; }
.cwaves path:nth-child(3) { fill: #b9821c; fill-opacity: .035; animation: waveBob 18s ease-in-out -6s infinite; transform-origin: 50% 100%; }
@keyframes waveDrift { to { transform: translateX(-50%); } }
@keyframes waveBob { 50% { transform: scaleY(1.08); } }
.clock { box-shadow: 0 46px 80px -46px rgb(11 29 74 / .55), 0 0 0 1px rgb(11 29 74 / .25), 0 2px 6px rgb(11 29 74 / .12); }
.cstage { gap: 26px; }
.cside { display: grid; justify-items: center; gap: 10px; }
.cdigital { display: flex; align-items: baseline; gap: .18em; font-variant-numeric: tabular-nums; color: #0b1d4a; line-height: 1;
 }
.cdigital .hm { font-size: clamp(2.6rem, 8vmin, 4.4rem); font-weight: 400; letter-spacing: -.02em; }
.cdigital .ss { font-size: clamp(1rem, 2.6vmin, 1.4rem); font-weight: 500; color: #b9821c; width: 1.4em; text-align: left; }
.cdate { color: rgb(11 29 74 / .62); }
.chint { color: rgb(11 29 74 / .55); }
/* landscape (iPad landscape, phones on their side): watch left, time right */
@media (orientation: landscape) and (max-height: 1100px) {
  .cstage { grid-auto-flow: column; align-items: center; gap: clamp(28px, 7vw, 110px); text-align: left; }
  .cside { justify-items: start; }
  .clock-host { width: min(72vh, 66vmin, 520px); }
  .cdigital .hm { font-size: clamp(2.6rem, 9vh, 5.6rem); }
}
@media (orientation: portrait) {
  .clock-host { width: min(72vw, 52vh, 520px); }
}
@media (max-height: 460px) { .chint { bottom: 10px; } .cstage { gap: 22px; } }

/* cancelled bookings: out of the way, in their own closed section */
.trash { margin-top: 26px; border-radius: 18px; background: var(--glass); border: 1px dashed var(--line-2); overflow: hidden; }
.trash > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 12px 14px; color: var(--ink-2); font-weight: 600; font-size: .92rem; }
.trash > summary::-webkit-details-marker { display: none; }
.trash > summary svg { width: 18px; height: 18px; }
.trash > summary .chev { margin-left: auto; transition: transform .5s var(--spring); }
.trash[open] > summary .chev { transform: rotate(180deg); }
.trash .res { margin: 6px 10px; }
.trash[open] .res { animation: rise .5s var(--spring-soft) both; }

/* =====================================================================
   Tischzeit 1.5 – "Clean" design layer.
   Same colours (royal navy, white, black, gold) used calmly: solid white
   surfaces, flat navy buttons, gold only as a small accent. No gloss,
   no blur, no drifting lights. Motion stays.
   ===================================================================== */
:root {
  --bg: #f4f5f8; --bg-2: #f4f5f8;
  --surface: #ffffff; --surface-2: #f7f8fb; --sunken: #eef0f5;
  --ink: #0b1220; --ink-2: #48526a; --ink-3: #7c859b;
  --line: #e5e8ef; --line-2: #d7dce6;
  --primary: #0b1d4a; --primary-hover: #13286a; --primary-soft: #e9edf7;
  --accent: #b9821c; --accent-soft: #fbf3e2; --gold-dot: #d9a23a;
  --shadow-1: 0 1px 2px rgb(11 18 32 / .05), 0 1px 1px rgb(11 18 32 / .03);
  --shadow-2: 0 12px 32px -12px rgb(11 18 32 / .22), 0 2px 6px rgb(11 18 32 / .05);
  --ring: 0 0 0 3px rgb(217 162 58 / .35);
  --r: 12px; --r-lg: 16px;
}
:root[data-theme="dark"] {
  --bg: #0a0f1c; --bg-2: #0a0f1c;
  --surface: #111a2e; --surface-2: #142038; --sunken: #0d1527;
  --ink: #eef1f7; --ink-2: #aab3c7; --ink-3: #7b86a0;
  --line: #1f2a42; --line-2: #2b3755;
  --primary: #e9b752; --primary-hover: #f2c66c; --primary-soft: #1a2746;
  --accent: #e9b752; --accent-soft: rgb(233 183 82 / .12); --gold-dot: #e9b752;
  --shadow-1: 0 1px 2px rgb(0 0 0 / .3); --shadow-2: 0 18px 40px -16px rgb(0 0 0 / .7);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0a0f1c; --bg-2: #0a0f1c;
  --surface: #111a2e; --surface-2: #142038; --sunken: #0d1527;
  --ink: #eef1f7; --ink-2: #aab3c7; --ink-3: #7b86a0;
  --line: #1f2a42; --line-2: #2b3755;
  --primary: #e9b752; --primary-hover: #f2c66c; --primary-soft: #1a2746;
  --accent: #e9b752; --accent-soft: rgb(233 183 82 / .12); --gold-dot: #e9b752;
  --shadow-1: 0 1px 2px rgb(0 0 0 / .3); --shadow-2: 0 18px 40px -16px rgb(0 0 0 / .7);
} }

html, body { background: var(--bg); }
body::after { display: none; }                         /* no drifting lights */
body::before { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }

/* surfaces: solid, hairline border, tiny shadow */
.glass, .activity, .cbbar, .newbar, .stat, .res, .empty, .settings section, .panel, .closed-banner {
  background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none;
  border: 1px solid var(--line); box-shadow: var(--shadow-1);
}
.topbar { background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line); box-shadow: none; }
.brand img { box-shadow: none; border-radius: 10px; }
.brand-lg img { box-shadow: none; }

/* ---------- buttons: flat, rounded, clear ---------- */
.btn {
  border-radius: 12px; min-height: 42px; padding: 0 16px; font-weight: 600; letter-spacing: 0;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-1);
  -webkit-backdrop-filter: none; backdrop-filter: none; text-shadow: none;
  transition: transform .45s var(--spring), background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn::after, .btn::before, .icon-btn::before, .dchip::before { display: none; }
:where(:root[data-theme="dark"]) .btn, :where(:root[data-theme="dark"]) .btn.ghost { background: var(--surface); }
@media (prefers-color-scheme: dark) { :where(:root:not([data-theme="light"])) .btn, :where(:root:not([data-theme="light"])) .btn.ghost { background: var(--surface); } }
@media (hover: hover) { .btn:hover { transform: none; background: var(--surface-2); box-shadow: var(--shadow-1); border-color: var(--line-2); } }
.btn.is-pressed, .icon-btn.is-pressed, .dchip.is-pressed, .chips button.is-pressed, .seg button.is-pressed, .toast button.is-pressed { transform: scale(.96); }
.btn.primary, .btn.gold {
  color: #fff; background: var(--primary); border-color: var(--primary); text-shadow: none;
  box-shadow: 0 1px 2px rgb(11 29 74 / .25), 0 6px 16px -8px rgb(11 29 74 / .45);
}
.btn.gold svg, .btn.gold .plus { color: var(--gold-dot); }
@media (hover: hover) { .btn.primary:hover, .btn.gold:hover { background: var(--primary-hover); border-color: var(--primary-hover); } }
:where(:root[data-theme="dark"]) :is(.btn.primary, .btn.gold) { color: #0b1220; }
@media (prefers-color-scheme: dark) { :where(:root:not([data-theme="light"])) :is(.btn.primary, .btn.gold) { color: #0b1220; } }
.btn.ghost { background: transparent; border-color: var(--line-2); box-shadow: none; }
.btn.ok { color: #fff; background: #1f8a57; border-color: #1f8a57; text-shadow: none; box-shadow: var(--shadow-1); }
.btn.link { color: var(--ink-2); }
.glint, .rip, .burst { display: none !important; }      /* no sparkle effects */

.icon-btn { border-radius: 12px; }
.topbar .icon-btn, .stepper .icon-btn, .sheet-head .icon-btn {
  background: transparent; border: 1px solid transparent; box-shadow: none; color: var(--ink-2);
}
@media (hover: hover) { .topbar .icon-btn:hover, .sheet-head .icon-btn:hover, .stepper .icon-btn:hover { background: var(--sunken); color: var(--ink); } }
:where(:root[data-theme="dark"]) :is(.topbar, .stepper, .sheet-head) .icon-btn { background: transparent; }
@media (prefers-color-scheme: dark) { :where(:root:not([data-theme="light"])) :is(.topbar, .stepper, .sheet-head) .icon-btn { background: transparent; } }
.stepper .icon-btn { border-color: var(--line-2); background: var(--surface); }

/* ---------- fields ---------- */
.field input, .field textarea, .field select, .stepper input {
  border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: none;
}
.field input:focus, .field textarea:focus, .stepper input:focus { border-color: var(--gold-dot); box-shadow: var(--ring); background: var(--surface); }
.field > span { letter-spacing: .04em; text-transform: none; font-size: .86rem; font-weight: 600; color: var(--ink-2); }

/* ---------- day strip ---------- */
.dchip { background: var(--surface); border: 1px solid var(--line); box-shadow: none; border-radius: 14px;
  -webkit-backdrop-filter: none; backdrop-filter: none; transition: transform .45s var(--spring), background .2s, color .2s, border-color .2s; }
@media (hover: hover) { .dchip:hover { border-color: var(--line-2); background: var(--surface-2); } }
.dchip .wd { letter-spacing: .06em; }
.dchip.today { border-color: color-mix(in srgb, var(--gold-dot) 55%, var(--line)); }
.dchip.today .wd { color: var(--accent); }
.dchip.closed { background: var(--sunken); color: var(--ink-3); }
.dchip[aria-current="date"] { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 6px 16px -8px rgb(11 29 74 / .55); transform: none; }
.dchip[aria-current="date"] .wd { color: var(--gold-dot); }
:where(:root[data-theme="dark"]) .dchip[aria-current="date"], :where(:root[data-theme="dark"]) .dchip[aria-current="date"] .dn, :where(:root[data-theme="dark"]) .dchip[aria-current="date"] .ct { color: #0b1220; }
:where(:root[data-theme="dark"]) .dchip[aria-current="date"] .wd { color: #0b1220; opacity: .7; }
@media (prefers-color-scheme: dark) { :where(:root:not([data-theme="light"])) .dchip[aria-current="date"], :where(:root:not([data-theme="light"])) .dchip[aria-current="date"] :is(.dn, .ct) { color: #0b1220; }
  :where(:root:not([data-theme="light"])) .dchip[aria-current="date"] .wd { color: #0b1220; opacity: .7; } }
.jump { background: var(--surface); border: 1px solid var(--line); box-shadow: none; border-radius: 12px; }

/* ---------- activity ---------- */
.activity { padding: 14px 6px 6px; }
.act-head h2 { letter-spacing: .08em; font-size: .76rem; color: var(--ink-2); }
.act-head .live { background: var(--gold-dot); }
.act { border-radius: 12px; }
.act:hover { background: var(--surface-2); }
.act .ic { border-radius: 10px; border: 0; box-shadow: none; background: var(--sunken); color: var(--primary); }
:where(:root[data-theme="dark"]) .act .ic { color: var(--ink-2); }
@media (prefers-color-scheme: dark) { :where(:root:not([data-theme="light"])) .act .ic { color: var(--ink-2); } }
.act.k-new .ic { background: var(--accent-soft); color: var(--accent); border: 0; }
.act.k-ai .ic { background: var(--primary-soft); color: var(--primary); border: 0; }
:where(:root[data-theme="dark"]) .act.k-ai .ic { color: var(--accent); }
@media (prefers-color-scheme: dark) { :where(:root:not([data-theme="light"])) .act.k-ai .ic { color: var(--accent); } }
.act.fresh::after { box-shadow: inset 3px 0 0 var(--gold-dot); }

/* ---------- callbacks / new bookings bar ---------- */
.cbbar, .newbar { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); position: relative; overflow: hidden; }
.cbbar::before, .newbar::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gold-dot); }
.cb { background: var(--surface-2); border: 1px solid var(--line); box-shadow: none; border-radius: 12px; }

/* ---------- day header / stats ---------- */
.stat { border-radius: 12px; box-shadow: none; }
.meter { background: var(--sunken); }
.meter i { background: var(--primary); }

/* ---------- bookings ---------- */
.res { border-radius: 14px; }
.res .g { border-radius: 12px; border: 0; box-shadow: none; background: var(--primary-soft); color: var(--primary); }
:where(:root[data-theme="dark"]) .res .g { color: var(--ink); }
@media (prefers-color-scheme: dark) { :where(:root:not([data-theme="light"])) .res .g { color: var(--ink); } }
.res.is-new { border-color: var(--line); box-shadow: inset 3px 0 0 var(--gold-dot), var(--shadow-1); }
.res.is-new .g { background: var(--accent-soft); color: var(--accent); }
.res.st-arrived { background: var(--surface); box-shadow: inset 3px 0 0 #1f8a57, var(--shadow-1); }
.res.st-arrived .g { background: #e3f3ea; color: #1f8a57; }
.period-head h2::before { background: var(--gold-dot); width: 14px; }
.chip { background: var(--sunken); border: 0; color: var(--ink-2); }
.chip.web { background: var(--primary-soft); color: var(--primary); }
.chip.ai { background: var(--primary); color: #fff; }
.chip.new { background: var(--accent-soft); color: var(--accent); }
:where(:root[data-theme="dark"]) :is(.chip.web) { color: var(--ink); }
:where(:root[data-theme="dark"]) .chip.ai { color: #0b1220; }

/* ---------- sheets ---------- */
dialog.sheet { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-2); }
dialog.sheet::backdrop { background: rgb(11 18 32 / .35); -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (max-width: 640px) { dialog.sheet { border-radius: 20px 20px 0 0; } }

/* segmented control: grey track, white thumb (iOS style) */
.seg { background: var(--sunken); border: 0; box-shadow: none; border-radius: 12px; padding: 3px; }
.seg .thumb { top: 3px; bottom: 3px; background: var(--surface); border-radius: 10px; box-shadow: 0 1px 3px rgb(11 18 32 / .14), 0 1px 1px rgb(11 18 32 / .06); }
.seg button { border-radius: 10px; min-height: 38px; }
.seg button[aria-checked="true"] { color: var(--ink); }
.seg:not(.has-thumb) button[aria-checked="true"] { background: var(--surface); }
.chips button { background: var(--surface); border: 1px solid var(--line-2); box-shadow: none; border-radius: 12px; }
.chips button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: none; transform: none; }
:where(:root[data-theme="dark"]) .chips button[aria-pressed="true"] { color: #0b1220; }
.switch input { background: var(--line-2); box-shadow: none; }
.switch input::after { background: #fff; box-shadow: 0 2px 4px rgb(11 18 32 / .25); }
.switch input:checked { background: var(--primary); }

/* toasts: solid dark pill */
.toast { background: #0b1220; border: 0; box-shadow: var(--shadow-2); -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 14px; }
.toast button { border-radius: 10px; background: rgb(255 255 255 / .1); border: 0; }
.toast.new button { background: var(--gold-dot); color: #0b1220; }

/* welcome banner: white card */
.welcome-banner { background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-2); -webkit-backdrop-filter: none; backdrop-filter: none; }
.welcome-banner b { color: var(--accent); }

/* login panel */
.panel { border-radius: 20px; box-shadow: var(--shadow-2); }
.welcome .gold { animation: none; background: none; -webkit-text-fill-color: currentColor; color: var(--accent); }

/* ---------- activity: "seen" tick ---------- */
.act-head .count { margin-left: auto; }
.act-all { display: inline-grid; place-items: center; width: 34px; height: 34px; margin: -6px -2px -6px 2px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s, transform .4s var(--spring); }
.act-all svg { width: 18px; height: 18px; stroke-width: 2; }
@media (hover: hover) { .act-all:hover { background: var(--primary); color: #fff; border-color: var(--primary); } }
.act-all:active { transform: scale(.92); }
.act-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px; border-radius: 12px;
  transition: opacity .3s var(--out), transform .38s var(--out), max-height .38s var(--out); max-height: 160px; }
.act-row .act { padding-right: 6px; }
.act-tick { flex: none; display: grid; place-items: center; width: 34px; height: 34px; margin-right: 6px; border-radius: 50%;
  border: 1.5px solid var(--line-2); background: var(--surface); color: var(--line-2); cursor: pointer;
  transition: border-color .2s, background .2s, color .2s, transform .4s var(--spring); }
.act-tick svg { width: 17px; height: 17px; stroke-width: 2.4; }
@media (hover: hover) { .act-tick:hover { border-color: #1f8a57; color: #1f8a57; } }
.act-tick:active { transform: scale(.88); }
.act-row.leaving .act-tick { background: #1f8a57; border-color: #1f8a57; color: #fff; }
.act-row.leaving { opacity: 0; transform: translateX(28px); max-height: 0; overflow: hidden; transition-delay: calc(var(--i, 0) * 40ms + 120ms); }
@media (max-width: 1099.98px) { .activity.collapsed .act-row:nth-child(n+5) { display: none; } .activity.collapsed .act:nth-child(n+5) { display: grid; } }
.act-empty { display: flex; align-items: center; gap: 10px; }
.act-empty svg { width: 20px; height: 20px; color: #1f8a57; stroke-width: 2.2; flex: none; }

/* ---------- digital clock: split-flap cards ---------- */
.cdigital { align-items: flex-end; gap: .12em; }
.cdigital .hm, .cdigital .ss { display: inline-flex; align-items: center; width: auto; letter-spacing: 0; }
.cdigital .ss { font-size: clamp(1.6rem, 4.4vmin, 2.5rem); margin-bottom: 0; margin-left: .15em; }
.ss .fd { margin: 0 .05em; }
.fd { position: relative; display: inline-block; width: .7em; height: 1.16em; margin: 0 .035em; perspective: 4em; line-height: 1; }
.fd i { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-weight: 500; border-radius: .11em;
  color: #f6ead0; background: linear-gradient(180deg, #13296a 0%, #0b1d4a 49.6%, #091840 50.4%, #0b1d4a 100%);
  -webkit-backface-visibility: hidden; backface-visibility: hidden; font-variant-numeric: tabular-nums; }
.ss .fd i { color: #e9b752; }
.fd .u, .fd .fu { clip-path: inset(0 0 50% 0); }
.fd .l, .fd .fl { clip-path: inset(50% 0 0 0); }
.fd .fu, .fd .fl { opacity: 0; transform-origin: 50% 50%; }
.fd::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; margin-top: -.5px; background: rgb(0 0 0 / .45); z-index: 3; pointer-events: none; }
.fd { box-shadow: 0 .06em .12em rgb(11 18 32 / .25); border-radius: .11em; }
.fd.flip .fu { opacity: 1; animation: fdTop .27s cubic-bezier(.55, 0, .9, .45) var(--delay, 0ms) both; }
.fd.flip .fl { opacity: 1; animation: fdBot .3s cubic-bezier(.2, .7, .3, 1.15) calc(var(--delay, 0ms) + .25s) both; }
.fd.flip .u { animation: fdShow 0s var(--delay, 0ms) both; }
@keyframes fdTop { from { transform: rotateX(0); filter: brightness(1); } to { transform: rotateX(-90deg); filter: brightness(.6); } }
@keyframes fdBot { from { transform: rotateX(90deg); filter: brightness(1.4); } to { transform: rotateX(0); filter: brightness(1); } }
@keyframes fdShow { from { visibility: hidden; } to { visibility: visible; } }
.fsep { display: inline-block; padding: 0 .04em; color: #0b1d4a; transform: translateY(-.04em); animation: sepBlink 2s steps(1) infinite; }
@keyframes sepBlink { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .fsep { animation: none; } }

/* =====================================================================
   1.6 – today's bookings first, compact booking cards, ⋯ menu
   ===================================================================== */
/* order on phones / iPad portrait: the day first, then callbacks, then recent activity */
.home .activity { order: 1; }
.home { padding-bottom: 110px; }
.list { padding-bottom: 8px; }
.home-main .cbbar { margin-top: 14px; }
@media (min-width: 1100px) { .home-main .cbbar { margin-left: max(16px, env(safe-area-inset-left)); margin-right: 8px; } }

/* compact booking card */
.res { grid-template-columns: 58px 38px minmax(0, 1fr) auto; gap: 2px 12px; padding: 9px 10px 9px 12px; margin: 6px 0; border-radius: 12px; }
.res .t { font-size: 1.15rem; }
.res .g { width: 36px; height: 36px; border-radius: 10px; font-size: .98rem; }
.res .nm { font-size: 1rem; line-height: 1.25; }
.res .meta { font-size: .86rem; margin-top: 1px; gap: 4px 8px; }
.res .meta:empty { display: none; }
.res .chip { height: 20px; padding: 0 8px; font-size: .68rem; }
.res .nt { margin-top: 2px; font-size: .86rem; }
.res .bk { margin-top: 2px; font-size: .74rem; color: var(--ink-3); letter-spacing: .01em; }
.res .acts { flex-wrap: nowrap; align-items: center; gap: 4px; }
.res .acts .btn.small { min-height: 34px; padding: 0 12px; font-size: .86rem; border-radius: 10px; }
.kebab { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid transparent; background: transparent;
  color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s, transform .4s var(--spring); }
.kebab svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
@media (hover: hover) { .kebab:hover { background: var(--sunken); color: var(--ink); } }
.kebab:active, .kebab[aria-expanded="true"] { background: var(--sunken); color: var(--ink); }
.kebab:active { transform: scale(.92); }
@media (max-width: 720px) {
  .res { grid-template-columns: 50px 34px minmax(0, 1fr) auto; gap: 2px 10px; padding: 8px 8px 8px 10px; }
  .res .t { font-size: 1.05rem; }
  .res .g { width: 32px; height: 32px; font-size: .92rem; }
  .res .acts { grid-column: auto; justify-content: flex-end; }
  .res .acts .btn.small { padding: 0 10px; }
}
@media (max-width: 420px) { .res .acts .btn.ok .lbl { display: none; } .res .acts .btn.ok { width: 38px; padding: 0; } }

/* the ⋯ menu */
.rowmenu { position: fixed; z-index: 70; min-width: 190px; padding: 5px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-2); display: grid; animation: menuIn .18s var(--out); }
.rowmenu button { all: unset; box-sizing: border-box; padding: 10px 12px; border-radius: 8px; font-weight: 550; cursor: pointer; color: var(--ink); }
.rowmenu button:hover, .rowmenu button:focus-visible { background: var(--sunken); }
.rowmenu button.danger { color: var(--bad); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-4px) scale(.97); } }

/* =====================================================================
   1.7 – "Today" button, guest profiles, value levels
   ===================================================================== */
.today-btn { gap: 6px; }
.today-btn svg { width: 18px; height: 18px; }
.today-btn.on { color: var(--accent); border-color: color-mix(in srgb, var(--gold-dot) 60%, var(--line-2)); }
@media (max-width: 480px) { .today-btn { padding: 0 10px; } .top-actions { gap: 4px; } #guestsBtn { width: 38px; } }

/* value levels */
.tier { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; height: 20px; padding: 0 8px; border-radius: 99px; font-size: .66rem; font-weight: 700;
  letter-spacing: .04em; vertical-align: 2px; white-space: nowrap; }
.tier i { font-style: normal; font-size: .55rem; letter-spacing: 1px; }
.tier.t-high { background: linear-gradient(135deg, #f6dfa8, #d9a23a); color: #3a2604; }
.tier.t-mid { background: var(--primary-soft); color: var(--primary); }
.tier.t-value { background: var(--sunken); color: var(--ink-2); }
:where(:root[data-theme="dark"]) .tier.t-mid { color: var(--ink); }
.res:has(.tier.t-high) { box-shadow: inset 3px 0 0 #d9a23a, var(--shadow-1); }

/* guest line on booking cards */
.nm-btn { all: unset; cursor: pointer; font: inherit; border-bottom: 1px dashed color-mix(in srgb, var(--ink-3) 60%, transparent); }
.nm-btn:hover, .nm-btn:focus-visible { border-bottom-color: var(--accent); color: var(--accent); }
.res .gx { display: flex; flex-wrap: wrap; gap: 2px 6px; margin-top: 2px; font-size: .76rem; color: var(--ink-2); }
.res .gx .vno { font-weight: 650; color: var(--primary); }
.res .gx .vno.first { color: #1f8a57; }
:where(:root[data-theme="dark"]) .res .gx .vno { color: var(--ink); }
.res .gx .dotsep { color: var(--ink-3); }
.res .gnote { display: flex; gap: 6px; align-items: flex-start; margin-top: 4px; padding: 5px 8px; border-radius: 8px; background: var(--accent-soft); color: var(--ink);
  font-size: .8rem; line-height: 1.35; overflow-wrap: anywhere; }
.res .gnote svg { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--accent); }

/* guest profile sheet */
.g-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: -6px; }
.g-phone { font-weight: 600; color: var(--primary); text-decoration: none; }
.g-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.g-stats > div { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: 2px; }
.g-stats b { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; overflow-wrap: anywhere; }
.g-stats small { font-size: .7rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.g-stats .warnstat b { color: var(--amber); }
.seg.tiers { flex-wrap: wrap; justify-self: stretch; }
.seg.tiers button { flex: 1; padding: 0 10px; white-space: nowrap; }
.seg.tiers i, .seg i { font-style: normal; font-size: .6rem; letter-spacing: 1px; color: var(--accent); }
.g-hist { display: grid; gap: 4px; max-height: 260px; overflow-y: auto; }
.g-h { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center;
  padding: 8px 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: .88rem; }
.g-h:hover { border-color: var(--line-2); }
.g-h .chip { height: 20px; font-size: .66rem; }
.g-h.st-confirmed .chip { display: none; }
.gl-search { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); }
.gl-search:focus { outline: none; border-color: var(--gold-dot); box-shadow: var(--ring); }
#gl-tier { justify-self: start; flex-wrap: wrap; }
.gl-row .d.tnum { font-weight: 700; color: var(--primary); min-width: 2.4em; }
/* level picker: 4 clear buttons (2×2 on phones) */
.tiergrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.tiergrid button { min-height: 42px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2);
  font-weight: 650; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, border-color .2s, transform .35s var(--spring); }
.tiergrid button i { font-style: normal; font-size: .6rem; letter-spacing: 1px; color: var(--accent); margin-right: 2px; }
.tiergrid button[aria-checked="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.tiergrid button[aria-checked="true"] i { color: var(--gold-dot); }
.tiergrid button[data-tier="high"][aria-checked="true"], .tiergrid button[data-gltier="high"][aria-checked="true"] { background: linear-gradient(135deg, #f6dfa8, #d9a23a); border-color: #d9a23a; color: #3a2604; }
.tiergrid button[data-tier="high"][aria-checked="true"] i, .tiergrid button[data-gltier="high"][aria-checked="true"] i { color: #3a2604; }
.tiergrid button:active { transform: scale(.96); }
:where(:root[data-theme="dark"]) .tiergrid button[aria-checked="true"] { color: #0b1220; }
@media (max-width: 480px) { .tiergrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.res .gx .pref { color: #b0445a; font-weight: 600; }
/* phones: keep the logo, drop the word "Tischzeit" so the Today button fits */
@media (max-width: 480px) { .topbar .brand b { display: none; } }

/* =====================================================================
   1.8 – Platin / Gold / Silber, visit count, prominent table
   ===================================================================== */
.tier.t-high { background: linear-gradient(135deg, #2b3445, #0f1623); color: #e7ebf2; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .18); }
.tier.t-high i { color: #c9d1de; }
.tier.t-mid { background: linear-gradient(135deg, #f6dfa8, #d9a23a); color: #3a2604; }
.tier.t-value { background: linear-gradient(135deg, #f3f4f7, #c9ced8); color: #2d3443; }
:where(:root[data-theme="dark"]) .tier.t-mid { color: #3a2604; }
.res:has(.tier.t-high) { box-shadow: inset 3px 0 0 #2b3445, var(--shadow-1); }
:where(:root[data-theme="dark"]) .res:has(.tier.t-high) { box-shadow: inset 3px 0 0 #c9d1de, var(--shadow-1); }
.res:has(.tier.t-mid) { box-shadow: inset 3px 0 0 #d9a23a, var(--shadow-1); }
.tiergrid button[data-tier="high"][aria-checked="true"], .tiergrid button[data-gltier="high"][aria-checked="true"] { background: linear-gradient(135deg, #2b3445, #0f1623); border-color: #0f1623; color: #e7ebf2; }
.tiergrid button[data-tier="high"][aria-checked="true"] i, .tiergrid button[data-gltier="high"][aria-checked="true"] i { color: #c9d1de; }
.tiergrid button[data-tier="mid"][aria-checked="true"], .tiergrid button[data-gltier="mid"][aria-checked="true"] { background: linear-gradient(135deg, #f6dfa8, #d9a23a); border-color: #d9a23a; color: #3a2604; }
.tiergrid button[data-tier="mid"][aria-checked="true"] i, .tiergrid button[data-gltier="mid"][aria-checked="true"] i { color: #3a2604; }
.tiergrid button[data-tier="value"][aria-checked="true"], .tiergrid button[data-gltier="value"][aria-checked="true"] { background: linear-gradient(135deg, #f3f4f7, #c9ced8); border-color: #aeb5c2; color: #2d3443; }
.tiergrid button[data-tier="value"][aria-checked="true"] i, .tiergrid button[data-gltier="value"][aria-checked="true"] i { color: #2d3443; }

.res .gx .vno { color: var(--ink-2); font-weight: 650; }

/* table: a clear badge under the time */
.res .t { display: grid; justify-items: start; gap: 5px; align-self: center; }
.res .tbl { display: inline-grid; justify-items: center; min-width: 44px; max-width: 100%; padding: 3px 7px 4px; border-radius: 8px;
  background: var(--primary); color: #fff; font-size: .95rem; font-weight: 750; line-height: 1.05; letter-spacing: -.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-shadow: 0 2px 6px -2px rgb(11 29 74 / .45); }
.res .tbl small { font-size: .52rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dot); }
:where(:root[data-theme="dark"]) .res .tbl { color: #0b1220; }
:where(:root[data-theme="dark"]) .res .tbl small { color: #0b1220; opacity: .7; }
@media (max-width: 720px) { .res .tbl { min-width: 40px; font-size: .88rem; padding: 3px 5px 4px; } }

/* =====================================================================
   1.9 – quiet busy-time hints
   ===================================================================== */
.busyhint { display: flex; align-items: center; gap: 8px; margin: 10px 0 2px; padding: 4px 4px 4px 10px; border-radius: 10px;
  font-size: .8rem; color: var(--amber); background: color-mix(in srgb, var(--amber-soft) 55%, transparent);
  transition: opacity .3s var(--out), transform .3s var(--out); }
.busyhint b { font-weight: 700; }
.busyhint > span:nth-child(2) { flex: 1; min-width: 0; }
.busyhint .bdot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); flex: none; }
.busy-ok { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--amber) 35%, transparent);
  background: transparent; color: var(--amber); cursor: pointer; flex: none; transition: background .2s, color .2s, transform .3s var(--spring); }
.busy-ok svg { width: 15px; height: 15px; stroke-width: 2.4; }
@media (hover: hover) { .busy-ok:hover { background: var(--amber); color: #fff; } }
.busy-ok:active { transform: scale(.9); }
.busyhint.leaving { opacity: 0; transform: translateX(16px); }
/* a small amber dot on days that have a busy time */
.dchip.busy::after { content: ""; position: absolute; top: 7px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.dchip[aria-current="date"].busy::after { background: var(--gold-dot); }

/* 1.9.1 – refresh button */
#refreshBtn svg { transition: transform .4s var(--out); }
#refreshBtn.spinning svg { animation: spin .8s linear infinite; }
#refreshBtn[disabled] { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 420px) { #refreshBtn, #guestsBtn { width: 36px; } .top-actions .icon-btn { width: 36px; } }
@media (prefers-reduced-motion: reduce) { #refreshBtn.spinning svg { animation-duration: 2s; } }

/* =====================================================================
   1.10 – booking form in working order: date → time → guests → name
   ===================================================================== */
/* date cards: today + 10 days */
.dayrow { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; padding: 2px 1px 4px; margin: 0 -2px; }
.dayrow::-webkit-scrollbar { display: none; }
.dcard { flex: none; scroll-snap-align: start; display: grid; justify-items: center; gap: 0; width: 70px; padding: 7px 4px 6px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; line-height: 1.15;
  transition: background .2s, border-color .2s, color .2s, transform .35s var(--spring); }
.dcard .wd { font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.dcard .dn { font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.dcard .mo { font-size: .66rem; color: var(--ink-3); }
.dcard .ct { margin-top: 3px; font-size: .68rem; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dcard.closed { background: var(--sunken); color: var(--ink-3); }
.dcard.busy .ct { color: var(--amber); font-weight: 650; }
.dcard:active { transform: scale(.95); }
.dcard[aria-checked="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.dcard[aria-checked="true"] :is(.wd, .mo, .ct) { color: rgb(255 255 255 / .8); }
.dcard[aria-checked="true"] .wd { color: var(--gold-dot); }
:where(:root[data-theme="dark"]) .dcard[aria-checked="true"], :where(:root[data-theme="dark"]) .dcard[aria-checked="true"] :is(.wd, .mo, .ct) { color: #0b1220; }
.dayrow-foot { display: flex; align-items: center; gap: 10px; }
.dayrow-foot .btn.link { min-height: 30px; padding: 0 2px; font-size: .86rem; }
.dayrow-foot input[type="date"] { flex: 1; }
/* bookings already on that day */
.dayres { border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); padding: 8px 10px; font-size: .84rem; }
.dayres:empty { display: none; }
.dayres p { margin: 0; color: var(--ink-2); }
.dayres .sum { font-weight: 650; color: var(--ink); margin-bottom: 4px; }
.dayres ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 132px; overflow-y: auto; }
.dayres li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: 8px; align-items: baseline; }
.dayres li span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dayres li .tb { font-size: .72rem; font-weight: 700; padding: 0 6px; border-radius: 6px; background: var(--primary); color: #fff; }
:where(:root[data-theme="dark"]) .dayres li .tb { color: #0b1220; }
/* drop-downs */
.selwrap { position: relative; display: block; }
.selwrap::after { content: ""; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--ink-2);
  border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); pointer-events: none; }
.field select { -webkit-appearance: none; appearance: none; width: 100%; min-height: 48px; padding: 11px 40px 11px 14px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem; cursor: pointer; }
.field select:focus { outline: none; border-color: var(--gold-dot); box-shadow: var(--ring); }
.field input[hidden] { display: none; }
/* name suggestions from saved guests */
.namefield { position: relative; }
.namefield > label { font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; margin-top: 4px; padding: 4px; border-radius: 12px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-2); display: grid; max-height: 260px; overflow-y: auto; animation: menuIn .16s var(--out); }
.sug { all: unset; box-sizing: border-box; display: grid; gap: 1px; padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.sug:hover, .sug:focus-visible { background: var(--sunken); }
.sug .n { font-weight: 650; }
.sug .n .tier { margin-left: 6px; }
.sug .m { font-size: .8rem; color: var(--ink-3); }

/* =====================================================================
   1.12 – staff plan: who works lunch / evening, month calendar, workers
   ===================================================================== */
.teamday { flex-basis: 100%; display: grid; gap: 6px; padding: 10px 12px 12px; border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--glass-hi), var(--shadow-1); }
.tm-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tm-head small { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.tm-head .btn svg, .st-tabs svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-right: 6px; flex: none; }
.tm-row { display: grid; grid-template-columns: 5.6em 1fr; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 4px 8px; border: 0; border-radius: 10px;
  background: transparent; color: var(--ink); text-align: left; font: inherit; cursor: pointer; transition: background .2s; }
.tm-row:hover { background: var(--accent-soft); }
.tm-row + .tm-row { border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; }
.tm-p { font-size: .8rem; font-weight: 750; color: var(--accent); letter-spacing: .02em; }
.tm-names { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.tm-names em { font-style: normal; color: var(--ink-3); font-size: .9rem; }
.who { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 10px 3px 3px; border-radius: 99px; font-size: .9rem; font-weight: 600;
  background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who i, .pick i, .tw .dot, .cl i { font-style: normal; display: inline-grid; place-items: center; flex: none; border-radius: 50%; background: var(--c); color: #fff; font-weight: 750; letter-spacing: -.02em; }
.who i { width: 24px; height: 24px; font-size: .66rem; }

.staff-sheet { width: min(760px, 100%); }
.st-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-edge); }
.st-tabs button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); font: inherit; font-weight: 650; cursor: pointer; transition: background .2s, color .2s; }
.st-tabs button[aria-selected="true"] { background: var(--navy-grad); color: #fff; }
.st-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.st-nav h3 { margin: 0; font-size: 1.1rem; font-weight: 700; text-align: center; text-transform: capitalize; display: grid; }
.st-nav h3 small { font-size: .7rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.st-nav .icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.st-cal .cw, .st-cal .cg { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.st-cal .cw span { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); text-align: center; padding-bottom: 4px; }
.cc { display: flex; flex-direction: column; align-items: stretch; gap: 3px; min-height: 76px; min-width: 0; padding: 5px 4px 6px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface, rgb(255 255 255 / .5)); color: var(--ink); font: inherit; text-align: left; cursor: pointer; overflow: hidden; transition: border-color .2s, transform .3s var(--spring); }
.cc:hover { border-color: var(--gold-500); }
.cc:active { transform: scale(.96); }
.cc .cn { font-size: .82rem; font-weight: 700; font-variant-numeric: tabular-nums; padding-left: 2px; }
.cc.out { opacity: .45; }
.cc.shut { background: repeating-linear-gradient(135deg, transparent 0 6px, var(--line) 6px 7px); }
.cc.today .cn { color: var(--accent); }
.cc.today { border-color: var(--gold-500); box-shadow: inset 0 0 0 1px var(--gold-500); }
.cc.sel:not(.today) { border-color: var(--line-2); }
.cl { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; min-width: 0; }
.cl b { font-size: .58rem; font-weight: 800; color: var(--ink-3); width: 10px; flex: none; }
.cl.off b { opacity: .5; }
.cl i { width: 18px; height: 18px; font-size: .52rem; }
.st-legend b { color: var(--ink-2); }
.sp { display: grid; gap: 8px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); }
.sp.off { opacity: .7; }
.sp h4 { margin: 0; display: flex; align-items: baseline; gap: 8px; font-size: 1rem; }
.sp h4 small { font-size: .82rem; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.sp-n { margin-left: auto; min-width: 22px; text-align: center; font-size: .78rem; font-weight: 750; color: var(--accent); }
.sp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 4px 14px 4px 5px; border-radius: 99px; border: 1.5px solid var(--line-2);
  background: transparent; color: var(--ink-2); font: inherit; font-weight: 650; cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .35s var(--spring); }
.pick i { width: 30px; height: 30px; font-size: .72rem; filter: grayscale(.9) opacity(.55); transition: filter .2s; }
.pick[aria-pressed="true"] { background: color-mix(in srgb, var(--c) 16%, transparent); border-color: var(--c); color: var(--ink); }
.pick[aria-pressed="true"] i { filter: none; }
.pick[aria-pressed="true"]::after { content: "✓"; font-weight: 800; color: var(--c); margin-left: 2px; }
.pick:active { transform: scale(.95); }
.sp-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.tw-add { display: flex; gap: 8px; }
.tw-add input, .tw-name { flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface, transparent); color: var(--ink); font: inherit; }
.tw-add input:focus, .tw-name:focus { outline: none; border-color: var(--gold-500); }
.tw-list, .tw-old { display: grid; gap: 8px; }
.tw { display: flex; align-items: center; gap: 10px; }
.tw .dot { width: 36px; height: 36px; font-size: .78rem; }
.tw-name { min-height: 40px; border-color: transparent; background: transparent; }
.tw-name:hover { border-color: var(--line-2); }
.tw.old { opacity: .6; }
.tw-old summary { cursor: pointer; color: var(--ink-3); font-weight: 650; padding: 6px 0; }
.btn.danger { color: #b0304a; }
@media (max-width: 520px) {
  .cc { min-height: 64px; padding: 4px 2px 5px; border-radius: 8px; }
  .st-cal .cw, .st-cal .cg { gap: 3px; }
  .cl i { width: 15px; height: 15px; font-size: .46rem; }
  .cl b { width: 8px; font-size: .5rem; }
  .tm-row { grid-template-columns: 4.8em 1fr; padding: 4px 2px; }
}

/* 1.13 – forgot password + set password */
.forgot-row { text-align: center; }
.forgot-row .btn.link { font-size: .9rem; }
#v-password h1 { margin: 0; font-size: 1.5rem; letter-spacing: -.02em; }


/* =====================================================================
   1.15 – day page layout, team box, view-only logins, keyboard-safe
   sheets, a clock you can read across the room, background choice.
   ===================================================================== */
/* day header: the date and the day's numbers together, close to the day strip */
.dayhead { padding-top: 8px; align-items: center; gap: 8px 20px; }
.dayhead .dh-title { min-width: 0; }
.dayhead .rel { margin-bottom: 2px; }
.dayhead .stats { align-self: center; }
.dayhead .stat { padding: 7px 14px; }
.dayhead .day-actions { align-self: center; }

/* staff plan: its own box – below the bookings on phones, beside the activity on wide screens */
.side { display: contents; }
.teambox { margin: 14px max(16px, env(safe-area-inset-right)) 4px max(16px, env(safe-area-inset-left)); min-width: 0; }
.teambox .teamday { margin: 0; }
@media (min-width: 1100px) {
  .side { display: flex; flex-direction: column; gap: 10px; min-width: 0; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 76px);
    align-self: start; max-height: calc(100vh - 96px); max-height: calc(100dvh - 96px); margin: 14px 0 24px; }
  .side .teambox { margin: 0; flex: none; }
  .home .side .activity { position: static; margin: 0; max-height: none; flex: 1 1 auto; min-height: 0; }
  .side .teambox .tm-row { grid-template-columns: 4.6em 1fr; }
}

/* view-only logins: nothing to change, so no buttons that change things */
html.role-viewer :is([data-action="new"], .res .acts [data-action="status"], [data-action="cb-done"], [data-action="busy-ack"], .act-tick, .act-all, [data-action="close-day"]) {
  display: none !important;
}
html.role-viewer .act-row { grid-template-columns: minmax(0, 1fr); }

/* sheets fit the part of the screen the keyboard leaves free */
dialog.sheet { max-height: min(92vh, 900px, calc(var(--vvh, 100vh) - 24px)); }
@media (max-width: 640px) { dialog.sheet { max-height: min(94vh, calc(var(--vvh, 100vh) - 8px)); } }
html.kb-open dialog.sheet[open] { inset: auto 0; top: calc(var(--vvtop, 0px) + 8px); margin: 0 auto; max-height: calc(var(--vvh, 100vh) - 16px); animation: none; }
@media (max-width: 640px) {
  html.kb-open dialog.sheet[open] { top: var(--vvtop, 0px); height: var(--vvh, 100vh); max-height: var(--vvh, 100vh); border-radius: 0; }
  html.kb-open .sheet-head::before { display: none; }
}
.sheet-body { scroll-padding-top: 10px; }

/* team access (settings) */
.access-list { display: grid; gap: 6px; }
.acc { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2, transparent); border: 1px solid var(--line); }
.acc-who { flex: 1; min-width: 180px; display: grid; gap: 1px; overflow-wrap: anywhere; }
.acc-who small { color: var(--ink-3); font-size: .78rem; }
.acc-pending { color: var(--amber) !important; }
.acc .selwrap select, .access-add select { min-height: 38px; padding: 6px 34px 6px 12px; font-size: .92rem; border-radius: 10px; }
.acc .selwrap select { -webkit-appearance: none; appearance: none; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-size: .92rem; }
.acc-rm.confirm { color: #fff; background: var(--bad); border-color: var(--bad); }
.access-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.access-add input { flex: 1 1 200px; min-width: 0; min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; }
.access-add .selwrap { flex: none; }
.access-add select { -webkit-appearance: none; appearance: none; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; }

/* the clock: bolder hands, and on laptops / landscape tablets a digital time readable across the room */
.c-hand { filter: drop-shadow(0 1.4px 1.2px rgb(0 0 0 / .6)); }
.c-hand .lt, .c-hand .dk { stroke: rgb(255 244 214 / .55); stroke-width: .35; stroke-linejoin: round; }
.c-sec line { stroke: #f2d48c; stroke-width: 1.2; }
.c-sec circle { fill: #f2d48c; }
@media (orientation: landscape) {
  .clock-host { width: min(66vh, 40vw, 560px); }
  .cstage { gap: clamp(28px, 4.5vw, 90px); }
  .cdigital .hm { font-size: clamp(3.4rem, min(21vh, 11.5vw), 13rem); }
  .cdigital .ss { font-size: clamp(1.4rem, min(7.5vh, 4vw), 4.4rem); }
  .cdate { font-size: clamp(.8rem, 2.1vh, 1.2rem); }
}

/* backgrounds (Settings → Background); "Plain" keeps the calm grey */
html[data-bg] body { background: transparent; }
html[data-bg] body::after { display: block; content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; animation: none; background: var(--bgimg); }
.bgpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.bgsw { display: grid; gap: 6px; padding: 6px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-2); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; text-align: center; transition: border-color .2s, transform .35s var(--spring); }
.bgsw[aria-checked="true"] { border-color: var(--gold-dot, #d9a23a); color: var(--ink); box-shadow: 0 0 0 3px rgb(217 162 58 / .25); }
.bgsw:active { transform: scale(.96); }
.bgsw-img { display: block; height: 58px; border-radius: 9px; border: 1px solid var(--line); background: var(--bgimg, var(--bg)); background-color: var(--bg); }
.bgsw-img[data-bg-preview="plain"] { background: var(--bg); }
html[data-bg="glow"], .bgsw-img[data-bg-preview="glow"] { --bgimg: radial-gradient(70vmax 55vmax at 0% 100%, rgb(236 182 80 / .42), transparent 72%), radial-gradient(75vmax 65vmax at 100% 0%, rgb(42 86 184 / .30), transparent 72%), linear-gradient(170deg, #f5f6fa, #e6eaf3); }
:root[data-theme="dark"][data-bg="glow"], :root[data-theme="dark"] .bgsw-img[data-bg-preview="glow"] { --bgimg: radial-gradient(70vmax 55vmax at 0% 100%, rgb(222 165 58 / .22), transparent 72%), radial-gradient(75vmax 65vmax at 100% 0%, rgb(42 86 184 / .55), transparent 72%), linear-gradient(170deg, #0a0f1c, #101b3d); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"])[data-bg="glow"], :root:not([data-theme="light"]) .bgsw-img[data-bg-preview="glow"] { --bgimg: radial-gradient(70vmax 55vmax at 0% 100%, rgb(222 165 58 / .22), transparent 72%), radial-gradient(75vmax 65vmax at 100% 0%, rgb(42 86 184 / .55), transparent 72%), linear-gradient(170deg, #0a0f1c, #101b3d); } }
html[data-bg="linen"], .bgsw-img[data-bg-preview="linen"] { --bgimg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Cpath d='M0 .5H6M.5 0V6' stroke='%230b1d4a' stroke-opacity='0.11' stroke-width='.6'/%3E%3Cpath d='M0 3.5H6M3.5 0V6' stroke='%230b1d4a' stroke-opacity='0.055' stroke-width='.5'/%3E%3C/svg%3E"), linear-gradient(180deg, #f4f2ec, #ebe7de); }
:root[data-theme="dark"][data-bg="linen"], :root[data-theme="dark"] .bgsw-img[data-bg-preview="linen"] { --bgimg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Cpath d='M0 .5H6M.5 0V6' stroke='%23ffffff' stroke-opacity='0.07' stroke-width='.6'/%3E%3Cpath d='M0 3.5H6M3.5 0V6' stroke='%23ffffff' stroke-opacity='0.035' stroke-width='.5'/%3E%3C/svg%3E"), linear-gradient(180deg, #0e1528, #0a0f1c); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"])[data-bg="linen"], :root:not([data-theme="light"]) .bgsw-img[data-bg-preview="linen"] { --bgimg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Cpath d='M0 .5H6M.5 0V6' stroke='%23ffffff' stroke-opacity='0.07' stroke-width='.6'/%3E%3Cpath d='M0 3.5H6M3.5 0V6' stroke='%23ffffff' stroke-opacity='0.035' stroke-width='.5'/%3E%3C/svg%3E"), linear-gradient(180deg, #0e1528, #0a0f1c); } }
html[data-bg="tiles"], .bgsw-img[data-bg-preview="tiles"] { --bgimg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cpath d='M22 2 L42 22 L22 42 L2 22Z' fill='none' stroke='%230b1d4a' stroke-opacity='0.11' stroke-width='.8'/%3E%3Ccircle cx='22' cy='22' r='1.2' fill='%23b9821c' fill-opacity='0.242'/%3E%3C/svg%3E"), linear-gradient(180deg, #f3f5fa, #e8ecf4); }
:root[data-theme="dark"][data-bg="tiles"], :root[data-theme="dark"] .bgsw-img[data-bg-preview="tiles"] { --bgimg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cpath d='M22 2 L42 22 L22 42 L2 22Z' fill='none' stroke='%23ffffff' stroke-opacity='0.08' stroke-width='.8'/%3E%3Ccircle cx='22' cy='22' r='1.2' fill='%23b9821c' fill-opacity='0.176'/%3E%3C/svg%3E"), linear-gradient(180deg, #0c1326, #0a0f1c); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"])[data-bg="tiles"], :root:not([data-theme="light"]) .bgsw-img[data-bg-preview="tiles"] { --bgimg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cpath d='M22 2 L42 22 L22 42 L2 22Z' fill='none' stroke='%23ffffff' stroke-opacity='0.08' stroke-width='.8'/%3E%3Ccircle cx='22' cy='22' r='1.2' fill='%23b9821c' fill-opacity='0.176'/%3E%3C/svg%3E"), linear-gradient(180deg, #0c1326, #0a0f1c); } }
html[data-bg="waves"], .bgsw-img[data-bg-preview="waves"] { --bgimg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 400' preserveAspectRatio='none'%3E%3Cpath d='M0 220 C 240 170 480 170 720 220 S 1200 270 1440 220 V400 H0Z' fill='%230b1d4a' fill-opacity='0.1'/%3E%3Cpath d='M0 280 C 300 250 540 250 760 280 S 1200 310 1440 280 V400 H0Z' fill='%230b1d4a' fill-opacity='0.080'/%3E%3Cpath d='M0 330 C 260 310 520 310 720 330 S 1180 350 1440 330 V400 H0Z' fill='%23b9821c' fill-opacity='0.16'/%3E%3C/svg%3E") bottom / 100% 55% no-repeat, linear-gradient(180deg, #f7f8fc 0%, #e9edf5 100%); }
:root[data-theme="dark"][data-bg="waves"], :root[data-theme="dark"] .bgsw-img[data-bg-preview="waves"] { --bgimg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 400' preserveAspectRatio='none'%3E%3Cpath d='M0 220 C 240 170 480 170 720 220 S 1200 270 1440 220 V400 H0Z' fill='%238ea6e0' fill-opacity='0.12'/%3E%3Cpath d='M0 280 C 300 250 540 250 760 280 S 1200 310 1440 280 V400 H0Z' fill='%238ea6e0' fill-opacity='0.096'/%3E%3Cpath d='M0 330 C 260 310 520 310 720 330 S 1180 350 1440 330 V400 H0Z' fill='%23b9821c' fill-opacity='0.16'/%3E%3C/svg%3E") bottom / 100% 55% no-repeat, linear-gradient(180deg, #0a0f1c 0%, #0f1938 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"])[data-bg="waves"], :root:not([data-theme="light"]) .bgsw-img[data-bg-preview="waves"] { --bgimg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 400' preserveAspectRatio='none'%3E%3Cpath d='M0 220 C 240 170 480 170 720 220 S 1200 270 1440 220 V400 H0Z' fill='%238ea6e0' fill-opacity='0.12'/%3E%3Cpath d='M0 280 C 300 250 540 250 760 280 S 1200 310 1440 280 V400 H0Z' fill='%238ea6e0' fill-opacity='0.096'/%3E%3Cpath d='M0 330 C 260 310 520 310 720 330 S 1180 350 1440 330 V400 H0Z' fill='%23b9821c' fill-opacity='0.16'/%3E%3C/svg%3E") bottom / 100% 55% no-repeat, linear-gradient(180deg, #0a0f1c 0%, #0f1938 100%); } }
html[data-bg="dust"], .bgsw-img[data-bg-preview="dust"] { --bgimg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Ccircle cx='14' cy='22' r='1.4' fill='%23b9821c' fill-opacity='0.62'/%3E%3Ccircle cx='61' cy='9' r='1.0' fill='%23b9821c' fill-opacity='0.62'/%3E%3Ccircle cx='97' cy='41' r='1.8' fill='%23b9821c' fill-opacity='0.62'/%3E%3Ccircle cx='33' cy='73' r='1.1' fill='%23b9821c' fill-opacity='0.62'/%3E%3Ccircle cx='78' cy='88' r='1.5' fill='%23b9821c' fill-opacity='0.62'/%3E%3Ccircle cx='112' cy='104' r='1.0' fill='%23b9821c' fill-opacity='0.62'/%3E%3Ccircle cx='8' cy='112' r='1.3' fill='%23b9821c' fill-opacity='0.62'/%3E%3Ccircle cx='52' cy='118' r='0.9' fill='%23b9821c' fill-opacity='0.62'/%3E%3Ccircle cx='88' cy='62' r='0.8' fill='%23b9821c' fill-opacity='0.62'/%3E%3Ccircle cx='26' cy='47' r='0.8' fill='%23b9821c' fill-opacity='0.62'/%3E%3Ccircle cx='118' cy='18' r='1.3' fill='%23b9821c' fill-opacity='0.62'/%3E%3Ccircle cx='70' cy='34' r='0.7' fill='%23b9821c' fill-opacity='0.37'/%3E%3Ccircle cx='44' cy='96' r='1.2' fill='%23b9821c' fill-opacity='0.62'/%3E%3Ccircle cx='104' cy='70' r='0.9' fill='%23b9821c' fill-opacity='0.62'/%3E%3C/svg%3E"), radial-gradient(80vmax 60vmax at 50% 0%, #ffffff, transparent 70%), linear-gradient(180deg, #f5f5f8, #ece9e2); }
:root[data-theme="dark"][data-bg="dust"], :root[data-theme="dark"] .bgsw-img[data-bg-preview="dust"] { --bgimg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Ccircle cx='14' cy='22' r='1.4' fill='%23b9821c' fill-opacity='0.75'/%3E%3Ccircle cx='61' cy='9' r='1.0' fill='%23b9821c' fill-opacity='0.75'/%3E%3Ccircle cx='97' cy='41' r='1.8' fill='%23b9821c' fill-opacity='0.75'/%3E%3Ccircle cx='33' cy='73' r='1.1' fill='%23b9821c' fill-opacity='0.75'/%3E%3Ccircle cx='78' cy='88' r='1.5' fill='%23b9821c' fill-opacity='0.75'/%3E%3Ccircle cx='112' cy='104' r='1.0' fill='%23b9821c' fill-opacity='0.75'/%3E%3Ccircle cx='8' cy='112' r='1.3' fill='%23b9821c' fill-opacity='0.75'/%3E%3Ccircle cx='52' cy='118' r='0.9' fill='%23b9821c' fill-opacity='0.75'/%3E%3Ccircle cx='88' cy='62' r='0.8' fill='%23b9821c' fill-opacity='0.75'/%3E%3Ccircle cx='26' cy='47' r='0.8' fill='%23b9821c' fill-opacity='0.75'/%3E%3Ccircle cx='118' cy='18' r='1.3' fill='%23b9821c' fill-opacity='0.75'/%3E%3Ccircle cx='70' cy='34' r='0.7' fill='%23b9821c' fill-opacity='0.45'/%3E%3Ccircle cx='44' cy='96' r='1.2' fill='%23b9821c' fill-opacity='0.75'/%3E%3Ccircle cx='104' cy='70' r='0.9' fill='%23b9821c' fill-opacity='0.75'/%3E%3C/svg%3E"), radial-gradient(80vmax 60vmax at 50% 0%, #15214a, transparent 70%), linear-gradient(180deg, #0a0f1c, #0c1226); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"])[data-bg="dust"], :root:not([data-theme="light"]) .bgsw-img[data-bg-preview="dust"] { --bgimg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Ccircle cx='14' cy='22' r='1.4' fill='%23b9821c' fill-opacity='0.75'/%3E%3Ccircle cx='61' cy='9' r='1.0' fill='%23b9821c' fill-opacity='0.75'/%3E%3Ccircle cx='97' cy='41' r='1.8' fill='%23b9821c' fill-opacity='0.75'/%3E%3Ccircle cx='33' cy='73' r='1.1' fill='%23b9821c' fill-opacity='0.75'/%3E%3Ccircle cx='78' cy='88' r='1.5' fill='%23b9821c' fill-opacity='0.75'/%3E%3Ccircle cx='112' cy='104' r='1.0' fill='%23b9821c' fill-opacity='0.75'/%3E%3Ccircle cx='8' cy='112' r='1.3' fill='%23b9821c' fill-opacity='0.75'/%3E%3Ccircle cx='52' cy='118' r='0.9' fill='%23b9821c' fill-opacity='0.75'/%3E%3Ccircle cx='88' cy='62' r='0.8' fill='%23b9821c' fill-opacity='0.75'/%3E%3Ccircle cx='26' cy='47' r='0.8' fill='%23b9821c' fill-opacity='0.75'/%3E%3Ccircle cx='118' cy='18' r='1.3' fill='%23b9821c' fill-opacity='0.75'/%3E%3Ccircle cx='70' cy='34' r='0.7' fill='%23b9821c' fill-opacity='0.45'/%3E%3Ccircle cx='44' cy='96' r='1.2' fill='%23b9821c' fill-opacity='0.75'/%3E%3Ccircle cx='104' cy='70' r='0.9' fill='%23b9821c' fill-opacity='0.75'/%3E%3C/svg%3E"), radial-gradient(80vmax 60vmax at 50% 0%, #15214a, transparent 70%), linear-gradient(180deg, #0a0f1c, #0c1226); } }

/* mouse and trackpad: no snapping, so two-finger scrolling through the days is smooth */
@media (pointer: fine) { .strip { scroll-snap-type: none; } }
/* the "Evening light" swatch: the same two lights, scaled to the little preview */
.bgsw-img[data-bg-preview="glow"] { background: radial-gradient(95% 110% at 0% 100%, rgb(236 182 80 / .42), transparent 72%), radial-gradient(95% 110% at 100% 0%, rgb(42 86 184 / .30), transparent 72%), linear-gradient(170deg, #f5f6fa, #e6eaf3); }
:root[data-theme="dark"] .bgsw-img[data-bg-preview="glow"] { background: radial-gradient(95% 110% at 0% 100%, rgb(222 165 58 / .22), transparent 72%), radial-gradient(95% 110% at 100% 0%, rgb(42 86 184 / .55), transparent 72%), linear-gradient(170deg, #0a0f1c, #101b3d); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bgsw-img[data-bg-preview="glow"] { background: radial-gradient(95% 110% at 0% 100%, rgb(222 165 58 / .22), transparent 72%), radial-gradient(95% 110% at 100% 0%, rgb(42 86 184 / .55), transparent 72%), linear-gradient(170deg, #0a0f1c, #101b3d); } }

/* clock screen: a badge when something is waiting (new bookings, callback requests, cancellations) */
.cnews { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .75em; row-gap: .15em; align-items: baseline;
  margin-top: clamp(6px, 2.2vh, 26px); padding: .75em 1.25em .8em 1em; max-width: min(92vw, 30em);
  border: 0; border-radius: 18px; background: #0b1d4a; color: #fff; font: inherit; text-align: left; cursor: pointer;
  font-size: clamp(.98rem, 2.5vmin, 1.3rem); line-height: 1.3;
  box-shadow: 0 22px 44px -20px rgb(11 29 74 / .7), 0 0 0 1px rgb(240 195 95 / .45);
  animation: cnIn .7s var(--spring) both; }
.cnews[hidden] { display: none; }
.cnews > :not(.cn-dot) { grid-column: 2; }
.cnews b { font-weight: 650; font-size: 1.12em; }
.cnews .cn-dot { grid-row: 1; align-self: center; width: .78em; height: .78em; border-radius: 50%; background: var(--gold-400);
  animation: cnPulse 1.8s ease-out infinite; }
.cnews .cn-sub { color: rgb(255 255 255 / .82); font-size: .86em; font-variant-numeric: tabular-nums; }
.cnews .cn-more { color: var(--gold-300); font-size: .82em; }
.cnews.pop { animation: cnPop .7s var(--spring); }
@keyframes cnPulse { 0% { box-shadow: 0 0 0 0 rgb(240 195 95 / .75); } 75%, 100% { box-shadow: 0 0 0 .85em rgb(240 195 95 / 0); } }
@keyframes cnIn { from { opacity: 0; transform: translateY(10px) scale(.96); } }
@keyframes cnPop { 0% { transform: scale(1); } 35% { transform: scale(1.06); } 100% { transform: scale(1); } }
html.clock-leaving .cnews { animation: wordOut .45s var(--out) forwards; }
@media (orientation: landscape) { .cnews { font-size: clamp(1rem, 3.1vh, 1.85rem); } }
@media (prefers-reduced-motion: reduce) { .cnews, .cnews.pop, .cnews .cn-dot { animation: none; } }

/* staff plan 1.16: four tabs, away days, look-ahead */
.st-tabs.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.st-tabs.four button { font-size: .86rem; padding: 0 4px; }
@media (max-width: 520px) {
  .st-tabs.four button { flex-direction: column; gap: 2px; min-height: 50px; font-size: .72rem; }
  .st-tabs.four svg { margin-right: 0; }
}
.cl.aw b { color: var(--ink-3); }
.cl.aw i { background: transparent; color: var(--ink-3); box-shadow: inset 0 0 0 1.4px color-mix(in srgb, var(--c) 70%, transparent); text-decoration: line-through; }
.who.away { opacity: .8; }
.who.away i { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1.6px var(--c); }
.who.away small { font-size: .74rem; font-weight: 650; color: var(--ink-3); }
.tm-away .tm-p { color: var(--ink-3); }
.pick.away { border-style: dashed; color: var(--ink-3); cursor: not-allowed; background: transparent; }
.pick.away i { filter: grayscale(1) opacity(.45); }
.pick.away span { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink-3) 60%, transparent); }
.pick.away small { font-size: .72rem; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: var(--line); color: var(--ink-2); }
.sp-info { margin: -2px 0 0; font-size: .84rem; color: var(--ink-3); }
.sp-info.short { color: var(--amber); }
.sp-info b { font-weight: 750; }
.aw-form { display: grid; gap: 12px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--glass); }
.aw-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.aw-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.awk { min-height: 38px; padding: 0 14px; border-radius: 99px; border: 1.5px solid var(--line-2); background: transparent; color: var(--ink-2); font: inherit; font-weight: 650; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.awk[aria-checked="true"] { background: var(--navy-grad); border-color: transparent; color: #fff; }
#aw-note { min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface, transparent); color: var(--ink); font: inherit; }
.aw-h { margin: 8px 0 0; font-size: .95rem; }
.aw-list { display: grid; gap: 8px; }
.aw-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; border: 1px solid var(--line); }
.aw-row .dot { width: 34px; height: 34px; font-size: .74rem; font-style: normal; display: inline-grid; place-items: center; border-radius: 50%; background: var(--c); color: #fff; font-weight: 750; }
.aw-txt { display: grid; min-width: 0; }
.aw-txt small { color: var(--ink-3); font-size: .82rem; font-variant-numeric: tabular-nums; }
.aw-k { font-size: .76rem; font-weight: 700; color: var(--accent); }
.aw-row.k-sick .aw-k { color: #c2410c; }
.ah-ratio { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-weight: 600; color: var(--ink-2); }
.ah-ratio input { width: 4.2em; min-height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface, transparent); color: var(--ink); font: inherit; font-weight: 700; text-align: center; }
.ah-only { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink-2); cursor: pointer; }
.ah-only input { width: 18px; height: 18px; accent-color: var(--gold-600); }
.ah-list { display: grid; gap: 6px; }
.ah-day { display: grid; grid-template-columns: 4.2em minmax(0, 1fr); gap: 10px; align-items: start; width: 100%; padding: 9px 10px; border-radius: 14px; border: 1px solid var(--line);
  background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, background .2s; }
.ah-day:hover { border-color: var(--gold-500); }
.ah-day.short { border-color: color-mix(in srgb, #d97706 55%, transparent); background: color-mix(in srgb, #f59e0b 8%, transparent); }
.ah-date { display: grid; line-height: 1.2; }
.ah-date b { font-size: .95rem; text-transform: capitalize; }
.ah-date span { font-size: .8rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ah-ps { display: grid; gap: 4px; min-width: 0; }
.ah-p { display: grid; grid-template-columns: 4.6em minmax(4.5em, 7em) minmax(0, 1fr); align-items: center; gap: 8px; font-size: .86rem; }
.ah-p b { font-size: .78rem; font-weight: 750; color: var(--accent); }
.ah-g { position: relative; font-variant-numeric: tabular-nums; font-weight: 650; padding-bottom: 4px; }
.ah-g i { position: absolute; left: 0; bottom: 0; height: 3px; width: var(--w); border-radius: 2px; background: var(--gold-500); }
.ah-s { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ah-p em { grid-column: 2 / -1; font-style: normal; font-weight: 750; color: var(--amber); font-size: .82rem; }
.ah-away { font-size: .8rem; color: var(--ink-3); }
@media (min-width: 560px) { .ah-p em { grid-column: auto; } .ah-p { grid-template-columns: 4.6em 7em 9em minmax(0, 1fr); } }
.ah-sum { margin: 0; padding: 9px 12px; border-radius: 12px; background: var(--amber-soft); color: var(--amber); font-weight: 700; }
@media (max-width: 559px) { .ah-p { grid-template-columns: 4.4em 4.4em minmax(0, 1fr); gap: 6px; font-size: .82rem; } .ah-s { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ah-day { grid-template-columns: 3.4em minmax(0, 1fr); } }

/* login: "Set up account" and "Forgot password?" side by side under Sign in */
.login-more { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.login-more .btn { min-height: 44px; font-size: .92rem; padding: 0 10px; white-space: normal; line-height: 1.2; }
#signup-msg.ok { color: var(--ok); }
#v-signup .btn.link { justify-self: center; }

/* 1.18: booking extras (high chair, dog, quiet / normal table, walker, wheelchair) */
.extras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 420px) { .extras { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.xt { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 6px 10px; border-radius: 12px; border: 1.5px solid var(--line-2);
  background: transparent; color: var(--ink-2); font: inherit; font-size: .9rem; font-weight: 650; text-align: left; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .3s var(--spring); }
.xt svg, .xchip svg, .xi svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.xt svg { width: 20px; height: 20px; }
.xt span { min-width: 0; line-height: 1.2; }
.xt[aria-pressed="true"] { background: var(--navy-grad); border-color: transparent; color: #fff; }
.xt[aria-pressed="true"]::after { content: "✓"; margin-left: auto; font-weight: 800; color: var(--gold-300); }
.xt:active { transform: scale(.96); }
.res .xs { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 4px; }
.xchip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px 0 7px; border-radius: 99px; font-size: .76rem; font-weight: 700;
  background: var(--accent-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); white-space: nowrap; }
.xchip svg { width: 17px; height: 17px; color: var(--accent); }
.xchip.x-wheelchair, .xchip.x-walker { background: color-mix(in srgb, #2f7de1 14%, transparent); border-color: color-mix(in srgb, #2f7de1 40%, transparent); }
.xchip.x-wheelchair svg, .xchip.x-walker svg { color: #2f7de1; }
.dayres .xi { display: inline-grid; vertical-align: -3px; margin-left: 4px; color: var(--accent); }
.dayres .xi svg { width: 14px; height: 14px; }

/* long notes: two lines in the list, the whole note on hover (mouse) or tap (touch) */
.res .who { position: relative; }
.res .nt { position: relative; }
.res .nt-txt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.res .nt.more { cursor: help; }
.res .nt.more .nt-txt { text-decoration: underline dotted color-mix(in srgb, var(--accent) 60%, transparent); text-underline-offset: 3px; }
/* hover (mouse) or tap (touch): the note box grows to show the whole note, right where it is */
@media (hover: hover) { .res .nt.more:hover .nt-txt { -webkit-line-clamp: unset; line-clamp: none; display: block; } }
.res .nt.more.open .nt-txt, .res .nt.more:focus-visible .nt-txt { -webkit-line-clamp: unset; line-clamp: none; display: block; }
.res .nt.more:hover, .res .nt.more.open { background: var(--accent-soft); border-radius: 8px; margin-left: -6px; margin-right: -6px; padding: 2px 6px; }
/* the staff-chip style (.who, 1.12) must not reach the booking rows' name/phone/note block */
.res > .who { display: block; align-items: normal; gap: normal; max-width: none; padding: 0; border-radius: 0; font-size: inherit; font-weight: inherit;
  background: none; border: 0; white-space: normal; overflow: visible; text-overflow: clip; }
.res .nt.measure .nt-txt { display: block; -webkit-line-clamp: unset; line-clamp: none; overflow: visible; }

/* 1.19: team board – notes for the team, at the top of the day and on the clock screen */
.board { margin: 0 0 10px; padding: 10px 12px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--glass-hi), var(--shadow-1); }
.board.empty { padding: 4px 10px; background: transparent; border-style: dashed; box-shadow: none; }
.bd-head { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.bd-head svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bd-head .btn { margin-left: auto; text-transform: none; letter-spacing: 0; min-height: 32px; }
.bd-list { display: grid; gap: 8px; margin-top: 8px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.bn { position: relative; padding: 9px 12px 10px; border-radius: 14px; background: var(--glass-solid); border: 1px solid var(--line); border-left: 4px solid var(--gold-500); cursor: pointer; }
.bn.p-lunch { border-left-color: #2f7de1; } .bn.p-dinner { border-left-color: var(--navy-500, #2a56b8); }
.bn-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding-right: 34px; }
.bn-head b { font-size: .98rem; }
.bn-tag { font-size: .72rem; font-weight: 750; padding: 1px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--ink-2); }
.bn-when { font-size: .78rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.bn-edit { position: absolute; top: 4px; right: 4px; }
.bn-edit svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bn-body { margin: 4px 0 0; font-size: .92rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.bn.open .bn-body { -webkit-line-clamp: unset; display: block; }
@media (hover: hover) { .bn:hover .bn-body { -webkit-line-clamp: unset; display: block; } }
.bn-by { display: block; margin-top: 4px; font-size: .74rem; color: var(--ink-3); }
.cnotes { display: grid; gap: 10px; margin-top: clamp(6px, 2vh, 22px); max-width: min(92vw, 30em); text-align: left; }
.cn-note { padding: .7em 1em .8em; border-radius: 16px; background: rgb(255 255 255 / .82); border: 1px solid rgb(11 29 74 / .12); border-left: 5px solid #d9a23a;
  box-shadow: 0 16px 36px -20px rgb(11 29 74 / .5); color: #0b1d4a; font-size: clamp(.95rem, 2.3vmin, 1.25rem); }
.cn-note.p-lunch { border-left-color: #2f7de1; } .cn-note.p-dinner { border-left-color: #2a56b8; }
.cn-note .bn-head { padding-right: 0; } .cn-note .bn-head b { font-size: 1.05em; }
.cn-note .bn-tag { background: rgb(217 162 58 / .18); color: #0b1d4a; font-size: .72em; }
.cn-note .bn-when { color: rgb(11 29 74 / .6); font-size: .78em; }
.cn-note .bn-body { font-size: .95em; -webkit-line-clamp: 4; }
.cn-more-notes { margin: 0; font-size: .85rem; color: rgb(11 29 74 / .6); font-weight: 650; }
html.clock-leaving .cnotes { animation: wordOut .45s var(--out) forwards; }
@media (orientation: landscape) { .cn-note { font-size: clamp(1rem, 2.6vh, 1.5rem); } }
.nt-presets, .nt-quick, .nt-period { display: flex; flex-wrap: wrap; gap: 6px; }
.nt-presets { margin-bottom: 2px; }
.nt-presets .awk { min-height: 34px; padding: 0 12px; font-size: .86rem; }
#n-title { min-height: 44px; }
.nt-push { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.nt-push input { width: 20px; height: 20px; accent-color: var(--gold-600); }
#note-delete { margin-right: auto; }

/* away days: pick many single days at once */
.aw-mode { display: flex; gap: 6px; }
.aw-nav h3 { font-size: 1rem; }
.aw-cal .cw, .awg { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.aw-cal .cw span { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); text-align: center; padding-bottom: 4px; }
.awc { position: relative; aspect-ratio: 1 / 1; min-height: 40px; max-height: 54px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass-solid);
  color: var(--ink); font: inherit; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .25s var(--spring); }
.awc:hover:not(:disabled) { border-color: var(--gold-500); }
.awc:active:not(:disabled) { transform: scale(.92); }
.awc:disabled { opacity: .35; cursor: default; }
.awc.shut { background: repeating-linear-gradient(135deg, transparent 0 6px, var(--line) 6px 7px); }
.awc.today { border-color: var(--gold-500); color: var(--accent); }
.awc.sel { background: var(--navy-grad); border-color: transparent; color: #fff; }
.awc.sel::after { content: "✓"; position: absolute; top: 2px; right: 5px; font-size: .62rem; color: var(--gold-300); }
.awc.gone:not(.sel) { color: var(--ink-3); text-decoration: line-through; border-style: dashed; }
.awc-pad { min-height: 40px; }
.aw-sel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; font-size: .9rem; }
.aw-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.aw-chip { min-height: 30px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--accent-soft); color: var(--ink); font: inherit; font-size: .8rem; font-weight: 650; cursor: pointer; }

/* 1.19.1: our own month calendar (strip calendar button, booking "other date") */
.stripbar .jump input { display: none; }
.cal-sheet .sheet-body { display: grid; gap: 10px; }
.cal-grid .cw, .calg { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.cal-grid .cw span { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); text-align: center; padding-bottom: 2px; }
.calc { display: grid; place-items: center; align-content: center; gap: 1px; min-height: 52px; padding: 4px 2px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--glass-solid); color: var(--ink); font: inherit; cursor: pointer; transition: border-color .15s, background .15s, transform .25s var(--spring); }
.calc b { font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.calc small { min-height: 1em; font-size: .64rem; font-weight: 650; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.calc.has small { color: var(--accent); }
.calc:hover:not(:disabled) { border-color: var(--gold-500); }
.calc:active:not(:disabled) { transform: scale(.93); }
.calc:disabled { opacity: .32; cursor: default; }
.calc.shut { background: repeating-linear-gradient(135deg, transparent 0 6px, var(--line) 6px 7px); }
.calc.today { border-color: var(--gold-500); box-shadow: inset 0 0 0 1px var(--gold-500); }
.calc.today b { color: var(--accent); }
.calc.sel { background: var(--navy-grad); border-color: transparent; color: #fff; box-shadow: none; }
.calc.sel b, .calc.sel small { color: #fff; }
.calc-pad { min-height: 52px; }
.cal-foot { display: flex; justify-content: center; }
#b-otherday { display: inline-flex; align-items: center; gap: 6px; }
#b-otherday svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
#b-otherday.picked { min-height: 44px; padding: 6px 12px; border-radius: 12px; border: 1.5px solid var(--gold-500); background: var(--accent-soft); color: var(--ink); text-decoration: none; flex-wrap: wrap; }
#b-otherday.picked span { font-size: .8rem; color: var(--accent); text-decoration: underline; }

/* ---------- table plan days ---------- */
.plan-banner { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 14px; border-radius: var(--r);
  border: 1px solid color-mix(in srgb, var(--gold-500) 55%, transparent); background: var(--accent-soft); }
.plan-banner .pb-txt { display: grid; gap: 2px; flex: 1; min-width: 160px; }
.plan-banner .pb-left { color: var(--amber); font-weight: 600; }
.plan-banner .pb-ok { color: var(--ok); }
.chip.notable { background: var(--amber-soft); color: var(--amber); }
dialog.sheet.plan-sheet { width: min(1180px, 100%); }
@media (max-width: 640px) { dialog.sheet.plan-sheet { width: 100%; } }
.plan-sheet .sheet-body { display: flex; flex-direction: column; gap: 12px; }
.plan-sheet .sheet-body > * { flex-shrink: 0; min-width: 0; }
.pl-time { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pl-time .field { margin: 0; }
.pl-time select { min-width: 96px; font-variant-numeric: tabular-nums; }
.pl-legend { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--ink-3); }
.pl-legend .lg { flex: none; width: 12px; height: 12px; border-radius: 3px; display: inline-block; margin-left: 6px; }
.lg.tall { border: 2px dashed var(--gold-600); }
.lg.free, .floor .tb.free { background: var(--ok-soft); }
.lg.busy, .floor .tb.busy { background: color-mix(in srgb, var(--primary) 82%, transparent); }
.floor-wrap { min-width: 0; max-width: 100%; overflow-x: auto; margin: 0 -4px; padding: 0 4px; -webkit-overflow-scrolling: touch; }
.floor { container-type: inline-size; min-width: 640px; position: relative; width: 100%; flex: none; border-radius: var(--r); border: 1px solid var(--line-2);
  background: repeating-linear-gradient(45deg, transparent 0 10px, color-mix(in srgb, var(--line) 60%, transparent) 10px 11px); overflow: hidden; }
.floor .tb { position: absolute; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .25cqw; padding: 0; text-align: center;
  border-radius: .8cqw; border: 1.5px solid var(--line-2); color: var(--ink); font: inherit; line-height: 1.05; cursor: pointer; overflow: hidden; }
.floor .tb.busy { color: #fff; border-color: transparent; }
.floor .tb.tall { border-style: dashed; border-color: var(--gold-600); border-width: 2px; }
.floor .tb.busy.tall { border-color: var(--gold-400); }
.floor .tb.joined { border-radius: 1cqw; box-shadow: 0 .3cqw 1cqw rgb(0 0 0 / .18); }
.floor .tb.sec-2.free { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--gold-500) 35%, transparent); }
.floor .tb.sec-3.free { background: color-mix(in srgb, var(--ok-soft) 70%, var(--line)); }
.floor .tb .tb-no { font-weight: 750; font-size: 2.1cqw; letter-spacing: -.01em; }
.floor .tb .tb-sub { display: inline-flex; align-items: center; gap: .3cqw; font-size: 1.45cqw; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.floor .tb .tb-p svg { width: 1.3cqw; height: 1.3cqw; display: block; fill: none; stroke: currentColor; stroke-width: 2.4; }
.floor .tb .tb-dot { opacity: .6; }
.clk sup { font-size: .62em; vertical-align: .55em; margin-left: .05em; line-height: 0; }
.floor .tb.mine { outline: 3px solid var(--gold-400); outline-offset: 1px; }
.floor .tb.picked { outline: 3px solid var(--gold-500); outline-offset: 1px; background: var(--gold-grad); color: #1a1204; }
.floor.choosing .tb:not(.picked):hover { outline: 2px dashed var(--gold-500); }
.pm { position: absolute; pointer-events: none; font-size: 1.2cqw; color: var(--ink-3); letter-spacing: .06em; }
.pm em { font-style: normal; white-space: nowrap; }
.pm-bar, .pm-till, .pm-kitchen { display: flex; align-items: center; justify-content: center; border-radius: 6px;
  background: color-mix(in srgb, var(--gold-500) 22%, transparent); border: 1px solid color-mix(in srgb, var(--gold-500) 45%, transparent); text-transform: uppercase; letter-spacing: .16em; }
.pm-kitchen, .pm-till { background: color-mix(in srgb, var(--line-2) 70%, transparent); border-color: var(--line-2); letter-spacing: .08em; }
.pm-window { background: repeating-linear-gradient(90deg, #8fc3e6 0 6px, transparent 6px 9px); opacity: .9; }
.pm-window.vert { background: repeating-linear-gradient(0deg, #8fc3e6 0 6px, transparent 6px 9px); }
.pm-window em, .pm-door em { position: absolute; top: -1.3em; left: 0; }
.pm-window.vert em, .pm-door.vert em { top: auto; left: auto; right: 130%; bottom: 0; }
.pm.vert.lft em { right: auto; left: 130%; }
.pm-door { background: var(--gold-500); border-radius: 2px; }
.pm-door em { color: var(--gold-600); font-weight: 700; }
.pm-wall { background: var(--ink-2); border-radius: 2px; opacity: .7; }
.pm-step { background: repeating-linear-gradient(45deg, var(--gold-500) 0 4px, transparent 4px 7px); border-radius: 2px; }
.pm-step em { display: none; }
.pm-outdoor { background: #1f1f22; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #e9e6df; text-transform: uppercase; letter-spacing: .16em; }
.pm-room { background: color-mix(in srgb, var(--line-2) 80%, transparent); border: 1px solid var(--line-2); border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.pm-outdoor em, .pm-room em { position: static; }
.pm-outdoor.upright em, .pm-room.upright em { writing-mode: vertical-rl; }
.pm-door.below em { top: 140%; }
.pm-area { text-transform: uppercase; letter-spacing: .04em; font-size: 1.3cqw; font-weight: 700; color: var(--accent); }
.pm-label { font-style: italic; }
.pl-h { margin: 6px 0 0; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.pl-h.warn { color: var(--amber); }
.pl-list { display: flex; flex-wrap: wrap; gap: 6px; }
.pl-res { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--card, transparent); color: var(--ink); font: inherit; font-size: .9rem; cursor: pointer; }
.pl-res.on { border-color: var(--gold-500); box-shadow: 0 0 0 2px var(--accent-soft); }
.pl-res.notable { border-color: color-mix(in srgb, var(--amber) 60%, transparent); }
.pl-res .pl-tb { color: var(--ink-3); font-size: .82rem; }
.pl-res .xi svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; vertical-align: -3px; }
.pl-bar { display: grid; gap: 8px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--gold-500); background: var(--accent-soft); }
.pl-bar-t { display: grid; gap: 2px; } .pl-bar-t small { color: var(--ink-3); }
.pl-bar-b { display: flex; gap: 8px; justify-content: flex-end; }
.pl-warn { margin: 0; padding-left: 18px; color: var(--amber); font-weight: 600; }
.pl-foot { display: flex; justify-content: flex-end; }
@media (max-width: 560px) { .pl-legend { margin-left: 0; } }

/* table plan: bookings-per-table badge and the list that opens on a table */
.floor .tb .tb-more { position: absolute; top: .35cqw; right: .35cqw; min-width: 1.9cqw; height: 1.9cqw; padding: 0 .45cqw; border-radius: 99px;
  display: grid; place-items: center; font-size: 1.15cqw; font-weight: 800; line-height: 1; background: var(--gold-grad); color: #1a1204;
  box-shadow: 0 0 0 .2cqw var(--surface, #fff); cursor: pointer; }
.pl-legend .lg-more { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 99px; margin-left: 6px; font-style: normal;
  font-size: .68rem; font-weight: 800; background: var(--gold-grad); color: #1a1204; }
.pl-pop { position: absolute; z-index: 5; width: max(240px, 30cqw); max-width: 96%; margin: .6cqw 0; padding: 10px; border-radius: 14px;
  background: var(--surface, #fff); color: var(--ink); border: 1px solid var(--line-2); box-shadow: 0 12px 32px rgb(0 0 0 / .22); display: grid; gap: 6px; }
.pl-pop-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 1rem; }
.pl-pop-h .icon-btn { width: 32px; height: 32px; }
.pl-pop-r { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; text-align: left; padding: 8px 10px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface-2, transparent); color: var(--ink); font: inherit; cursor: pointer; }
.pl-pop-r:disabled { cursor: default; opacity: 1; }
.pl-pop-r:not(:disabled):hover { border-color: var(--gold-500); }
.pl-pop-t { display: grid; font-size: 1.15rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.pl-pop-t small { font-size: .7rem; font-weight: 500; color: var(--ink-3); }
.pl-pop-n { display: grid; min-width: 0; }
.pl-pop-n b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-pop-n small { display: flex; align-items: center; gap: 4px; color: var(--ink-2); }
.pl-pop-n .tb-p svg { width: 13px; height: 13px; display: block; fill: none; stroke: currentColor; stroke-width: 2.2; }
.pl-pop-n .xi svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pl-pop-go { font-size: .78rem; font-weight: 650; color: var(--accent); white-space: nowrap; }

/* table plan: one plan per service */
.pl-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.pl-tab { display: grid; gap: 2px; text-align: left; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2, transparent);
  color: var(--ink); font: inherit; cursor: pointer; }
.pl-tab b { font-size: 1.05rem; }
.pl-tab small { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pl-tab.on { border-color: var(--gold-500); background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent-soft); }
.pl-tab:disabled:not(.on) { opacity: .45; cursor: default; }

/* ---------- table plan: calmer floor-plan look (v1.23) ---------- */
:root {
  --fp-floor: #fbf8f2; --fp-grid: rgb(120 100 60 / .06); --fp-edge: #d9d1c1; --fp-wall: #4a4f5c;
  --fp-glass: #cfe7f6; --fp-glass-edge: #7fb6da; --fp-door: #d49a3d;
  --fp-out: #e7ece3; --fp-out-line: rgb(90 110 80 / .14); --fp-out-ink: #6c7a66;
  --fp-room: #eeebe5; --fp-bar: #f1dfbd; --fp-bar-edge: #d3ac66;
  --fp-free: #ffffff; --fp-free-edge: #d6dbe5; --fp-busy: #1f3b7d; --fp-busy-2: #2b4f9e;
  --fp-s1: #8aa0c8; --fp-s2: #d4a24a; --fp-s3: #6b7a90;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --fp-floor: #0f1729; --fp-grid: rgb(255 255 255 / .035); --fp-edge: #263354; --fp-wall: #9aa6c2;
  --fp-glass: #1d3a55; --fp-glass-edge: #4f86b3; --fp-out: #132219; --fp-out-line: rgb(150 190 150 / .08); --fp-out-ink: #7f9a83;
  --fp-room: #18223a; --fp-bar: #3a2e18; --fp-bar-edge: #8a6a2e; --fp-free: #16213a; --fp-free-edge: #2c3a5e; --fp-busy: #3a5fb8; --fp-busy-2: #4d73cc;
} }
:root[data-theme="dark"] {
  --fp-floor: #0f1729; --fp-grid: rgb(255 255 255 / .035); --fp-edge: #263354; --fp-wall: #9aa6c2;
  --fp-glass: #1d3a55; --fp-glass-edge: #4f86b3; --fp-out: #132219; --fp-out-line: rgb(150 190 150 / .08); --fp-out-ink: #7f9a83;
  --fp-room: #18223a; --fp-bar: #3a2e18; --fp-bar-edge: #8a6a2e; --fp-free: #16213a; --fp-free-edge: #2c3a5e; --fp-busy: #3a5fb8; --fp-busy-2: #4d73cc;
}
.floor { background-color: var(--fp-floor); border: 1.5px solid var(--fp-edge); border-radius: 16px;
  background-image: linear-gradient(var(--fp-grid) 1px, transparent 1px), linear-gradient(90deg, var(--fp-grid) 1px, transparent 1px);
  background-size: 2.5cqw 2.5cqw; box-shadow: inset 0 0 0 4px color-mix(in srgb, var(--fp-floor) 70%, transparent); }
/* tables */
.floor .tb { border-radius: .9cqw; border: 1px solid var(--fp-free-edge); background: var(--fp-free); color: var(--ink);
  box-shadow: 0 .15cqw .5cqw rgb(20 30 60 / .08); transition: transform .15s var(--out, ease), box-shadow .15s; }
.floor .tb::before { content: ""; position: absolute; left: 18%; right: 18%; top: 0; height: .35cqw; border-radius: 0 0 .4cqw .4cqw; background: var(--fp-s1); opacity: .9; }
.floor .tb.sec-2::before { background: var(--fp-s2); }
.floor .tb.sec-3::before { background: var(--fp-s3); }
.floor .tb.free, .floor .tb.sec-2.free, .floor .tb.sec-3.free { background: var(--fp-free); box-shadow: 0 .15cqw .5cqw rgb(20 30 60 / .08); }
.floor .tb.busy { background: linear-gradient(160deg, var(--fp-busy-2), var(--fp-busy)); color: #fff; border-color: transparent;
  box-shadow: 0 .3cqw .9cqw rgb(16 41 106 / .28); }
.floor .tb.busy::before { background: rgb(255 255 255 / .55); }
.floor .tb.tall { border: 1.5px dashed var(--fp-door); }
.floor .tb.busy.tall { border: 1.5px dashed rgb(255 220 150 / .85); }
.floor .tb:hover { transform: translateY(-1px); }
.floor .tb.joined { border-radius: 1.1cqw; }
.floor .tb .tb-no { font-size: 2.2cqw; font-weight: 760; }
.floor .tb.free .tb-no { color: var(--ink-2); }
.floor .tb .tb-sub { opacity: .92; }
.floor .tb.picked { background: var(--gold-grad); color: #1a1204; outline: 2px solid var(--gold-600); outline-offset: 2px; }
.floor .tb.mine { outline: 2px solid var(--gold-500); outline-offset: 2px; }
.floor .tb .tb-more { box-shadow: 0 0 0 .22cqw var(--fp-floor); }
/* room: walls, windows, doors, bar, outside */
.pm-wall { background: var(--fp-wall); opacity: 1; border-radius: 99px; }
.pm-window, .pm-window.vert { opacity: 1; border-radius: 2px; border: 1px solid var(--fp-glass-edge);
  background: linear-gradient(to bottom, var(--fp-glass) 0 38%, var(--fp-glass-edge) 38% 62%, var(--fp-glass) 62%); background-size: 100% 100%; }
.pm-window.vert, .pm-window.upright { background: linear-gradient(to right, var(--fp-glass) 0 38%, var(--fp-glass-edge) 38% 62%, var(--fp-glass) 62%); }
.pm-door { background: var(--fp-door); border-radius: 99px; box-shadow: 0 0 0 .2cqw var(--fp-floor); }
.pm-door em { color: var(--fp-door); font-weight: 750; letter-spacing: .08em; text-transform: uppercase; font-size: 1.05cqw; }
.pm-step { background: repeating-linear-gradient(90deg, var(--fp-door) 0 .5cqw, transparent .5cqw .9cqw); border-radius: 99px; opacity: .85; }
.pm-step.upright, .pm-step.vert { background: repeating-linear-gradient(0deg, var(--fp-door) 0 .5cqw, transparent .5cqw .9cqw); }
.pm-bar { background: linear-gradient(180deg, var(--fp-bar), color-mix(in srgb, var(--fp-bar) 70%, var(--fp-bar-edge))); border: 1px solid var(--fp-bar-edge);
  border-radius: 0 0 1cqw 1cqw; color: color-mix(in srgb, var(--fp-bar-edge) 60%, var(--ink)); font-weight: 700; letter-spacing: .3em; font-size: 1.15cqw; }
.pm-kitchen, .pm-till { background: var(--fp-room); border: 1px solid var(--fp-edge); border-radius: .7cqw; color: var(--ink-3); font-size: 1.05cqw; letter-spacing: .12em; text-transform: uppercase; }
.pm-room { background: repeating-linear-gradient(135deg, var(--fp-room) 0 .8cqw, color-mix(in srgb, var(--fp-room) 85%, var(--fp-edge)) .8cqw 1.6cqw);
  border: 1px solid var(--fp-edge); border-radius: .9cqw; color: var(--ink-3); font-size: 1.1cqw; letter-spacing: .14em; text-transform: uppercase; }
.pm-outdoor { background: repeating-linear-gradient(45deg, var(--fp-out) 0 1cqw, color-mix(in srgb, var(--fp-out) 70%, var(--fp-out-line)) 1cqw 1.15cqw);
  border: 1px solid var(--fp-out-line); color: var(--fp-out-ink); border-radius: 1cqw; font-size: 1.1cqw; letter-spacing: .22em; font-weight: 650; }
.pm-area { font-size: 1.2cqw; letter-spacing: .16em; font-weight: 750; color: color-mix(in srgb, var(--fp-door) 85%, var(--ink)); opacity: .9; }
/* legend matches the plan */
.lg.free { background: var(--fp-free); border: 1px solid var(--fp-free-edge); }
.lg.busy { background: linear-gradient(160deg, var(--fp-busy-2), var(--fp-busy)); }
.lg.tall { border: 1.5px dashed var(--fp-door); background: transparent; }
/* windows: a slim frame with glass panes and glazing bars (v1.24) */
.pm-window, .pm-window.vert, .pm-window.upright { border: 0; border-radius: 1px; opacity: 1;
  background:
    linear-gradient(var(--fp-glass-edge), var(--fp-glass-edge)) top / 100% 18% no-repeat,
    linear-gradient(var(--fp-glass-edge), var(--fp-glass-edge)) bottom / 100% 18% no-repeat,
    repeating-linear-gradient(90deg, var(--fp-glass) 0 2.2cqw, var(--fp-glass-edge) 2.2cqw 2.4cqw),
    var(--fp-glass);
  box-shadow: 0 0 0 .18cqw var(--fp-floor), 0 0 0 .3cqw color-mix(in srgb, var(--fp-glass-edge) 55%, transparent); }
.pm-window.upright, .pm-window.vert {
  background:
    linear-gradient(var(--fp-glass-edge), var(--fp-glass-edge)) left / 18% 100% no-repeat,
    linear-gradient(var(--fp-glass-edge), var(--fp-glass-edge)) right / 18% 100% no-repeat,
    repeating-linear-gradient(0deg, var(--fp-glass) 0 2.2cqw, var(--fp-glass-edge) 2.2cqw 2.4cqw),
    var(--fp-glass); }
:root { --fp-glass: #dceffa; --fp-glass-edge: #6aa8d2; }
/* doors: all the same gold bar, label inside the room */
.pm-door { background: var(--fp-door); border-radius: 99px; }
.pm-door.below em { top: 160%; left: 50%; transform: translateX(-50%); }
.pm-door:not(.below) em { top: auto; bottom: 160%; left: 50%; transform: translateX(-50%); }

/* 1.24.1: smoother way from the clock screen into the app.
   The clock-screen background sits on its own layer so it can fade (a gradient cannot);
   the digital time, date, notes and hint drift out first; the big clock glides into the
   logo spot of the login card while the card fades in and its contents rise in turn. */
.cintro { isolation: isolate; }
html.clock-intro .cintro { background: transparent; }
html.clock-intro .cintro::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cpath d='M22 2 L42 22 L22 42 L2 22Z' fill='none' stroke='%230b1d4a' stroke-opacity='.045' stroke-width='.8'/%3E%3Ccircle cx='22' cy='22' r='1.1' fill='%23b9821c' fill-opacity='.12'/%3E%3C/svg%3E") center/44px 44px,
    radial-gradient(120% 90% at 50% 38%, #ffffff 0%, #f7f8fc 55%, #eef1f8 100%); }
@keyframes tzFade { to { opacity: 0; } }
@keyframes tzSideOut { to { opacity: 0; transform: translateY(10px) scale(.96); filter: blur(3px); } }
@keyframes tzPanelIn { from { opacity: 0; } }
html.clock-leaving .cdigital { animation: tzSideOut .5s var(--out) both; }
html.clock-leaving .cdate { animation: tzSideOut .5s var(--out) .05s both; }
html.clock-leaving .cnews, html.clock-leaving .cnotes { animation: tzSideOut .5s var(--out) .1s both; }
html.clock-leaving .chint { animation: tzFade .35s ease-out both; }
html.clock-leaving.to-login .cintro::before, html.clock-leaving.to-login .cwaves { animation: tzFade .8s cubic-bezier(.4, 0, .2, 1) .15s both; }
/* the login card: fades in under the gliding clock (no movement, so the logo spot stays put) */
html.clock-intro:not(.clock-leaving) #v-login .panel { opacity: 0; }
html.clock-leaving.to-login #v-login .panel { animation: tzPanelIn .7s ease-out .2s both; }
html.clock-intro.clock-leaving.to-login #v-login .panel > :not(.login-clock) { opacity: 1; animation: rise .85s var(--spring-soft) both; }
html.clock-intro.clock-leaving.to-login #v-login .panel > :nth-child(2) { animation-delay: .62s; }
html.clock-intro.clock-leaving.to-login #v-login .panel > :nth-child(3) { animation-delay: .68s; }
html.clock-intro.clock-leaving.to-login #v-login .panel > :nth-child(4) { animation-delay: .74s; }
html.clock-intro.clock-leaving.to-login #v-login .panel > :nth-child(5) { animation-delay: .8s; }
html.clock-intro.clock-leaving.to-login #v-login .panel > :nth-child(6) { animation-delay: .86s; }
html.clock-intro.clock-leaving.to-login #v-login .panel > :nth-child(n+7) { animation-delay: .92s; }
@media (prefers-reduced-motion: reduce) {
  html.clock-leaving .cdigital, html.clock-leaving .cdate, html.clock-leaving .cnews, html.clock-leaving .cnotes, html.clock-leaving .chint,
  html.clock-leaving.to-login .cintro::before, html.clock-leaving.to-login .cwaves, html.clock-leaving.to-login #v-login .panel { animation-duration: .2s; animation-delay: 0s; }
}

/* ---------- 1.25.0: day strip as week pages (Monday … Sunday) ---------- */
.strip { display: block; overflow: visible; scroll-snap-type: none; padding: 0 2px; }
.wk-label { font-size: .78rem; font-weight: 600; color: var(--ink-3); padding: 0 4px 2px; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.wk-vp { overflow: hidden; overflow: clip; touch-action: pan-y; padding: 6px 0 14px; margin: -2px -10px -8px; }
.wk-track { display: flex; width: 300%; transform: translateX(-33.3333%); will-change: transform; }
.wk-track.anim { transition: transform .45s cubic-bezier(.3, .7, .2, 1); }
.wk-page { flex: 0 0 33.3333%; min-width: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; padding: 0 12px; }
.wk-page .dchip { width: auto; min-width: 0; }
.strip, .wk-vp { -webkit-user-select: none; user-select: none; }
@media (max-width: 480px) {
  .wk-page { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; padding: 0 11px; }
  .wk-page .dchip { width: auto; padding: 8px 2px 7px; border-radius: 13px; }
  .wk-page .dchip .wd { font-size: .6rem; letter-spacing: .03em; }
  .wk-page .dchip .dn { font-size: 1.12rem; }
  .wk-page .dchip .ct { font-size: .6rem; }
}
@media (prefers-reduced-motion: reduce) { .wk-track.anim { transition: none; } }
