:root {
  --bg: #f6f1ea; --card: #ffffff; --ink: #1d1a17; --muted: #6b645c; --line: #e3dbd0;
  --accent: #b3261e; --accent-ink: #ffffff; --danger: #b3261e; --navy: #1f2a44; --ok: #1f7a4d; --ok-bg: #e4f3ea; --warn-bg: #fff3d6; --warn: #8a5a00; --bad-bg: #fbe7e5;
  --surface: #ffffff; --grid: #e1e0d9; --axis: #c3c2b7; --vmuted: #898781; --ink2: #52514e;
  --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a; --series-4: #eda100; --series-5: #e87ba4; --series-6: #008300; --series-7: #6250d6; --series-8: #e34948; --series-other: #a8a39a;
  --radius: 14px; --shadow: 0 1px 2px rgba(29, 26, 23, .06), 0 4px 14px rgba(29, 26, 23, .06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --danger: #e0554c;
    --bg: #15120f; --card: #201c18; --ink: #f3ece3; --muted: #a79d91; --line: #382f28;
    --accent: #e0554c; --accent-ink: #1b0705; --navy: #9db4e8; --ok: #5cc490; --ok-bg: #16301f; --warn-bg: #3a2d10; --warn: #f0c26b; --bad-bg: #3b1a17;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    --surface: #201c18; --grid: #2c2c2a; --axis: #383835; --ink2: #c3c2b7;
    --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --series-4: #c98500; --series-5: #d55181; --series-6: #008300; --series-7: #9085e9; --series-8: #e66767; --series-other: #6f695f;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px 80px; }
.top { flex-wrap: wrap; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0 8px; }
.brand { font-weight: 800; font-size: 1.15rem; letter-spacing: .01em; }
.brand::before { content: ""; display: inline-block; width: 10px; height: 22px; margin-right: 10px; vertical-align: -4px; border-radius: 3px;
  background: repeating-linear-gradient(135deg, #e0443b 0 5px, #fff 5px 10px, #3c5fb8 10px 15px); border: 1px solid var(--line); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--card); }
.lang button { border: 0; background: none; padding: 6px 11px; font-size: .8rem; font-weight: 700; color: var(--muted); cursor: pointer; }
.lang button.on { background: var(--ink); color: var(--bg); }
.hero { padding: 8px 0 18px; } .hero h1 { font-size: 1.7rem; } .hero p { color: var(--muted); margin: 6px 0 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; }
.card h2 { font-size: 1rem; margin-bottom: 12px; }
.muted { color: var(--muted); } .small { font-size: .85rem; }
.hidden { display: none !important; }

.svc { display: grid; gap: 8px; }
.svc button { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 13px 14px; min-height: 52px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; }
.svc button .n { font-weight: 700; } .svc button .d { color: var(--muted); font-size: .85rem; }
.svc button .p { font-weight: 800; white-space: nowrap; }
.svc button[aria-pressed="true"], .dates button[aria-pressed="true"], .times button[aria-pressed="true"], .seg button[aria-pressed="true"] {
  border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.svc button[aria-pressed="true"] .d { color: inherit; opacity: .85; }

.dates { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -2px; scroll-snap-type: x proximity; }
.dates button { flex: 0 0 auto; width: 70px; padding: 8px 0; text-align: center; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; scroll-snap-align: start; }
.dates button .w { display: block; font-size: .75rem; opacity: .8; } .dates button .d { display: block; font-size: 1.25rem; font-weight: 800; } .dates button .m { display: block; font-size: .72rem; opacity: .8; }
.dates button:disabled { opacity: .35; cursor: not-allowed; background: transparent; }

.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.times button { padding: 11px 6px; min-height: 44px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); font-weight: 700; cursor: pointer; }

label { display: block; font-weight: 600; font-size: .9rem; margin: 12px 0 5px; }
input[type=text], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=time], select {
  width: 100%; padding: 12px; min-height: 46px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); }
input:focus, select:focus, button:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 1px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 18px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--card); font-weight: 700; cursor: pointer; text-decoration: none; color: var(--ink); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.danger { color: var(--danger); }
.btn.sm { min-height: 38px; padding: 0 12px; font-size: .9rem; }
.btn.block { width: 100%; margin-top: 16px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.msg { padding: 10px 12px; border-radius: 10px; margin-top: 12px; font-size: .92rem; }
.msg.bad { background: var(--bad-bg); color: var(--danger); } .msg.good { background: var(--ok-bg); color: var(--ok); }
.done { text-align: center; } .done .tick { width: 56px; height: 56px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; font-size: 28px; margin: 4px auto 10px; }
.code { font: 800 1.9rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; background: var(--bg); border: 1.5px dashed var(--line); border-radius: 12px; padding: 12px; margin: 12px 0 6px; }
.kv { text-align: left; margin: 14px 0 0; } .kv div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); } .kv span:first-child { color: var(--muted); }
details.card summary { cursor: pointer; font-weight: 700; }

/* owner dashboard */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabs button { flex: 1; min-height: 56px; border: 0; background: none; font-weight: 700; font-size: .78rem; color: var(--muted); cursor: pointer; display: grid; place-items: center; gap: 2px; padding: 6px 0; }
.tabs button svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabs button[aria-selected="true"] { color: var(--accent); }
.week { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; }
.week button { flex: 1 0 auto; min-width: 46px; padding: 7px 0; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer; text-align: center; font-size: .75rem; }
.week button b { display: block; font-size: 1.05rem; } .week button i { font-style: normal; display: block; min-height: 1em; font-size: .7rem; opacity: .85; }
.week button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.week button.closed { opacity: .5; }
.daynav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0 12px; } .daynav h2 { font-size: 1.1rem; text-align: center; flex: 1; }
.bk { display: grid; gap: 4px; border-left: 5px solid var(--navy); }
.bk.paid { border-left-color: var(--ok); } .bk.off { opacity: .6; border-left-color: var(--line); } .bk.block { border-left-color: var(--warn); background: var(--warn-bg); }
.bk .t { font-weight: 800; } .bk .who { font-size: 1.05rem; font-weight: 700; } .bk .acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.badge { display: inline-block; font-size: .72rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); }
.badge.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; } .badge.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.alert { background: var(--warn-bg); color: var(--warn); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; }
.alert button { margin-top: 6px; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; } .kpi .v { font-size: 1.5rem; font-weight: 800; } .kpi .l { color: var(--muted); font-size: .8rem; }
.kpi.big { grid-column: 1 / -1; background: #1f2a44; color: #fff; border: 0; } .kpi.big .l { color: #cdd6ee; } .kpi.big .v { font-size: 2.1rem; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; } .seg button { padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); font-weight: 700; cursor: pointer; }
.bars { display: grid; gap: 6px; } .bar { display: grid; grid-template-columns: 74px 1fr auto; gap: 8px; align-items: center; font-size: .85rem; }
.bar .track { background: var(--bg); border-radius: 6px; height: 16px; overflow: hidden; } .bar .fill { background: var(--accent); height: 100%; border-radius: 6px; }
.bar .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hrow { display: grid; grid-template-columns: 1fr 70px 70px; gap: 8px; align-items: center; margin-bottom: 8px; } .hrow .dn { font-weight: 700; }
.svcrow { display: grid; grid-template-columns: 1fr 80px 70px 40px; gap: 6px; margin-bottom: 8px; }
.qrbox { display: grid; place-items: center; background: #fff; border-radius: 12px; padding: 16px; width: fit-content; margin: 12px auto; } .qrbox svg { width: 240px; height: 240px; display: block; }
.linkbox { word-break: break-all; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-family: ui-monospace, Menlo, monospace; font-size: .9rem; }
dialog { border: 0; border-radius: 18px; padding: 18px; width: min(92vw, 420px); background: var(--card); color: var(--ink); box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
dialog::backdrop { background: rgba(0, 0, 0, .5); }
dialog h3 { margin-bottom: 4px; }
#toast { position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; opacity: 0; pointer-events: none; transition: .25s; z-index: 50; max-width: 90vw; font-weight: 600; }
#toast.show { opacity: 1; transform: translate(-50%, 0); } #toast.bad { background: var(--danger); color: #fff; }
.poster { display: none; }
@media print {
  body * { visibility: hidden; }
  .poster, .poster * { visibility: visible; }
  .poster { display: block; position: fixed; inset: 0; background: #fff; color: #000; text-align: center; padding: 60px 30px; }
  .poster h1 { font-size: 44px; margin-bottom: 8px; } .poster .qrbox svg { width: 420px; height: 420px; } .poster p { font-size: 22px; } .poster .u { font: 700 20px ui-monospace, monospace; word-break: break-all; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ================= v2: interactive polish ================= */
html { scroll-behavior: smooth; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
@keyframes pole { to { background-position: 0 56px; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.appear { animation: fadeUp .45s cubic-bezier(.2, .8, .2, 1) both; }
button { -webkit-tap-highlight-color: transparent; transition: transform .12s ease, background-color .2s, border-color .2s, box-shadow .2s; }
button:active:not(:disabled) { transform: scale(.97); }
.skel { border-radius: 12px; background: linear-gradient(90deg, var(--line) 25%, var(--bg) 50%, var(--line) 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; min-height: 52px; }

.hero-card { position: relative; overflow: hidden; border-radius: 22px; padding: 22px 20px 22px 44px; margin: 4px 0 16px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #35456f 0%, #1f2a44 55%, #151d31 100%); box-shadow: var(--shadow); }
.hero-card::before { content: ""; position: absolute; left: 14px; top: 14px; bottom: 14px; width: 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,.35);
  background: repeating-linear-gradient(160deg, #e0443b 0 14px, #fff 14px 28px, #3c5fb8 28px 42px); background-size: 100% 56px; animation: pole 2.4s linear infinite; }
.hero-card h1 { font-size: 1.65rem; margin: 0; } .hero-card p { margin: 6px 0 0; color: #cdd6ee; }
.hero-card .chip { display: inline-flex; gap: 6px; align-items: center; margin-top: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.12); font-size: .82rem; font-weight: 600; }

.stepper { position: sticky; top: 0; z-index: 6; display: flex; gap: 6px; padding: 10px 0; margin: 0 -16px 8px; padding-inline: 16px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); }
.stepper button { flex: 1; border: 0; background: none; padding: 0; cursor: pointer; text-align: left; color: var(--muted); font-size: .72rem; font-weight: 700; }
.stepper button i { display: block; height: 5px; border-radius: 3px; background: var(--line); margin-bottom: 5px; overflow: hidden; position: relative; }
.stepper button i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.stepper button.done { color: var(--ink); } .stepper button.done i::after, .stepper button.now i::after { transform: scaleX(1); }
.stepper button.now { color: var(--accent); } .stepper button:disabled { cursor: default; }

.svc button { position: relative; overflow: hidden; }
.svc button:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow); }
.svc .ic { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--bg); }
.svc .ic svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svc button[aria-pressed="true"] .ic { background: rgba(255,255,255,.2); }
.svc .mid { flex: 1; min-width: 0; }
.svc .tick { position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 50%; background: #fff; color: var(--accent); display: none; place-items: center; font-size: 12px; font-weight: 900; }
.svc button[aria-pressed="true"] .tick { display: grid; animation: pop .3s both; }
.svc button[aria-pressed="true"] .p { margin-right: 18px; }

.datehead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.datehead .mo { font-weight: 800; }
.nav2 { display: flex; gap: 6px; } .nav2 button { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; font-weight: 800; }
.dates button { transition: transform .15s, background-color .2s, border-color .2s; } .dates button:not(:disabled):hover { transform: translateY(-2px); border-color: var(--accent); }
.dates button[aria-pressed="true"] { transform: translateY(-2px); box-shadow: 0 6px 14px color-mix(in srgb, var(--accent) 35%, transparent); }
.dates button .tag { display: block; font-size: .56rem; font-weight: 800; letter-spacing: 0; text-transform: uppercase; opacity: .85; min-height: 1em; }

.period { font-size: .75rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 12px 0 6px; }
.period:first-child { margin-top: 0; }
.times button { opacity: 0; animation: fadeUp .35s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--i, 0) * 28ms); }
.times button:hover { border-color: var(--accent); transform: translateY(-1px); }
.times button[aria-pressed="true"] { box-shadow: 0 6px 14px color-mix(in srgb, var(--accent) 35%, transparent); }

.bar-sum { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(0,0,0,.08); transform: translateY(110%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.bar-sum.on { transform: none; } .bar-sum .in { max-width: 640px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.bar-sum .txt { flex: 1; min-width: 0; font-size: .85rem; line-height: 1.3; } .bar-sum .txt b { display: block; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-sum .btn { margin: 0; flex: 0 0 auto; }
.pad-bar { height: 84px; }

.done { position: relative; overflow: hidden; }
.done .tick svg { width: 30px; height: 30px; stroke: var(--ok); fill: none; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .25s ease forwards; }
.done .tick { animation: pop .45s both; }
.ticket { position: relative; margin: 14px 0 0; padding-top: 6px; border-top: 2px dashed var(--line); }
.ticket::before, .ticket::after { content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); }
.ticket::before { left: -26px; } .ticket::after { right: -26px; }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 30; width: 100%; height: 100%; }

.res { display: grid; gap: 10px; margin-top: 12px; }
.res .item { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; animation: fadeUp .35s both; }
.res .item .row { justify-content: space-between; } .res .when { font-weight: 800; }
.searchrow { display: flex; gap: 8px; margin-top: 6px; } .searchrow input { flex: 1; } .searchrow .btn { margin: 0; }

dialog { animation: fadeUp .25s both; } dialog form[method=dialog] { margin: 0; }
.modal-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

/* owner dashboard v2 */
.tabs button { position: relative; } .tabs button[aria-selected="true"]::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); animation: pop .25s both; }
.next-up { background: linear-gradient(135deg, #1f2a44, #2f4170); color: #fff; border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; box-shadow: var(--shadow); animation: fadeUp .4s both; }
.next-up .l { font-size: .75rem; opacity: .8; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; } .next-up .v { font-size: 1.15rem; font-weight: 800; margin-top: 2px; } .next-up .s { opacity: .85; font-size: .9rem; }
.prog { height: 8px; border-radius: 6px; background: var(--line); overflow: hidden; margin: 6px 0 12px; } .prog i { display: block; height: 100%; background: var(--ok); border-radius: 6px; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.bk { animation: fadeUp .35s both; animation-delay: calc(var(--i, 0) * 40ms); }
.swap { animation: fadeUp .3s both; }
.btn.ok.burst { animation: pop .35s both; }

/* sales: filters, hero figure, delta, charts */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.filters .seg { margin: 0; } .filters .nav2 { margin-left: auto; } .periodlbl { font-weight: 800; font-size: .95rem; min-width: 8.5em; text-align: center; }
.hero-fig { background: #1f2a44; color: #fff; border-radius: var(--radius); padding: 16px; margin-bottom: 10px; box-shadow: var(--shadow); }
.hero-fig .l { color: #cdd6ee; font-size: .8rem; } .hero-fig .v { font-size: clamp(2rem, 11vw, 3rem); font-weight: 800; line-height: 1.05; margin: 2px 0 4px; white-space: nowrap; }
.delta { display: inline-flex; align-items: center; gap: 4px; font-size: .82rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.14); }
.delta.up { color: #7be3a6; } .delta.down { color: #ffb4ae; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; } .tile .v { font-size: 1.25rem; font-weight: 800; } .tile .l { color: var(--muted); font-size: .72rem; }

.chart-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 10px; margin-bottom: 14px; box-shadow: var(--shadow); }
.chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.chart-head h2 { font-size: 1rem; margin: 0; } .chart-head .sub { color: var(--muted); font-size: .8rem; margin-top: 2px; }
.chart-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.chip-btn { border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: 4px 10px; font-size: .75rem; font-weight: 700; cursor: pointer; color: var(--ink2); }
.chip-btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chart-body { position: relative; transition: opacity .2s; } .chart-body.loading { opacity: .45; }
.chart-body svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-body text { fill: var(--vmuted); font-size: 11px; font-family: inherit; } .chart-body text.val { fill: var(--ink); font-weight: 700; }
.chart-body .grid { stroke: var(--grid); stroke-width: 1; } .chart-body .axis { stroke: var(--axis); stroke-width: 1; }
.chart-body .mark { fill: var(--series-1); transition: opacity .15s, fill .15s; } .chart-body .mark:hover, .chart-body .mark.hl { opacity: .82; }
.chart-body .line { fill: none; stroke: var(--series-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-body .area { fill: var(--series-1); opacity: .1; }
.chart-body .dot { fill: var(--series-1); stroke: var(--surface); stroke-width: 2; }
.chart-body .cross { stroke: var(--vmuted); stroke-width: 1; pointer-events: none; }
.chart-body .hit { fill: transparent; cursor: pointer; }
.tt { position: absolute; z-index: 5; pointer-events: none; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; box-shadow: 0 8px 24px rgba(0,0,0,.18); font-size: .8rem; opacity: 0; transition: opacity .12s; max-width: 220px; }
.tt.on { opacity: 1; } .tt b { display: block; font-size: 1rem; } .tt span { color: var(--muted); }
.empty { color: var(--muted); padding: 22px 0; text-align: center; }
.tbl { width: 100%; border-collapse: collapse; font-size: .85rem; } .tbl th, .tbl td { padding: 6px 4px; border-bottom: 1px solid var(--line); text-align: left; } .tbl td.n, .tbl th.n { text-align: right; font-variant-numeric: tabular-nums; }

/* race chart */
.race { position: relative; } .race .rrow { position: absolute; left: 0; right: 0; height: 34px; display: grid; grid-template-columns: minmax(96px, 36%) 1fr; align-items: center; gap: 8px; transition: transform .55s cubic-bezier(.2, .8, .2, 1); will-change: transform; }
.race .nm { display: flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; min-width: 0; } .race .nm i { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; } .race .nm span { line-height: 1.1; font-size: .8rem; overflow-wrap: anywhere; }
.race .track { position: relative; height: 24px; } .race .fill { height: 100%; border-radius: 0 4px 4px 0; min-width: 2px; transition: width .55s cubic-bezier(.2, .8, .2, 1); }
.race .rv { position: absolute; top: 50%; transform: translateY(-50%); margin-left: 6px; font-size: .8rem; font-weight: 800; white-space: nowrap; transition: left .55s cubic-bezier(.2, .8, .2, 1); }
.racebar { display: flex; align-items: center; gap: 10px; margin-top: 10px; } /* quiet, thin timeline so it never reads as one of the bars */
.racebar input[type=range] { flex: 1; -webkit-appearance: none; appearance: none; background: transparent; height: 16px; margin: 0; padding: 0; min-height: 0; opacity: .5; cursor: pointer; }
.racebar input[type=range]::-webkit-slider-runnable-track { height: 2px; background: var(--line); border-radius: 2px; }
.racebar input[type=range]::-moz-range-track { height: 2px; background: var(--line); border-radius: 2px; }
.racebar input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 10px; margin-top: -4px; border-radius: 50%; background: var(--vmuted); border: 0; }
.racebar input[type=range]::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: var(--vmuted); border: 0; }
.racebar input[type=range]:hover, .racebar input[type=range]:focus-visible { opacity: .85; } .racebar .lbl { font-weight: 800; font-size: .85rem; min-width: 7em; text-align: right; }
.racebar .play { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink2); font-size: .8rem; font-weight: 900; cursor: pointer; }
.racebar .play:hover { border-color: var(--vmuted); }

.insight { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; } .insight .pill { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .8rem; } .insight .pill b { font-weight: 800; }

@media (prefers-reduced-motion: reduce) { .times button, .appear, .bk, .swap { opacity: 1 !important; animation: none !important; } .hero-card::before { animation: none; } }

.chart-body .mark.dim { opacity: .35; } .chart-body .mark.dim:hover, .chart-body .mark.dim.hl { opacity: .65; }
.sub-h { font-size: .85rem; font-weight: 800; margin: 14px 0 2px; } .sub-h:first-of-type { margin-top: 4px; } .sub-h span { color: var(--muted); font-weight: 500; }
.count-card { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
@media (min-width: 720px) { .count-card { grid-template-columns: repeat(4, 1fr); } }
.cnt.money .n { font-size: 1.7rem; padding: 6px 0; } .cnt.money:not(.ok) .n { color: var(--ink); }
.cnt { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-align: center; box-shadow: var(--shadow); }
.cnt .n { font-size: 2.4rem; font-weight: 800; line-height: 1; } .cnt .l { color: var(--muted); font-size: .8rem; margin-top: 4px; font-weight: 600; }
.cnt.ok .n { color: var(--ok); } .cnt.open .n { color: var(--accent); }
.list-card { padding: 14px; } .list-card .lc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; } .list-card .lc-head h2 { margin: 0; }
.list-card .bk { box-shadow: none; margin: 0 0 10px; } .list-card .bk:last-child { margin-bottom: 0; }
.list-card summary { cursor: pointer; font-weight: 700; }
@keyframes flash { from { box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 55%, transparent); } to { box-shadow: 0 0 0 0 transparent; } }
.bk.flash { animation: fadeUp .4s both, flash 1.6s ease-out; }

/* v3: wider owner dashboard, side-by-side cards, tidy opening hours */
.wrap.wide { max-width: 1040px; }
.narrow { max-width: 640px; margin-left: auto; margin-right: auto; }
.wide #login { max-width: 420px; margin-left: auto; margin-right: auto; }
.two-col { display: grid; gap: 14px; align-items: start; }
@media (min-width: 720px) { .two-col { grid-template-columns: 1fr 1fr; } }
.two-col .list-card { margin-bottom: 0; }
.hrow { padding: 12px 0; border-bottom: 1px solid var(--line); display: block; margin: 0; }
.hrow:last-of-type { border-bottom: 0; }
.hrow .hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hrow .dn { font-weight: 700; }
.hrow label.cl { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 500; font-size: .9rem; cursor: pointer; }
.hrow label.cl input { width: 18px; height: 18px; accent-color: var(--accent); }
.hrow .ht { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; margin-top: 8px; transition: opacity .2s; }
.hrow .ht.off { opacity: .4; }
.hrow .ht span { color: var(--muted); font-size: .85rem; }
.hrow .ht input { min-width: 0; }

/* customer booking page: friendly green instead of red (destructive actions stay red) */
body.cust { --accent: #1f7a4d; --accent-ink: #ffffff; }
@media (prefers-color-scheme: dark) { body.cust { --accent: #4cc38a; --accent-ink: #052414; } }
body.cust a { color: var(--accent); }
body.cust .btn.danger { color: var(--danger); background: var(--card); }

/* WhatsApp look for phone numbers and chat links */
.wa-ic { width: 1.1em; height: 1.1em; flex: 0 0 auto; }
.wa-num { color: #128c7e; font-weight: 700; text-decoration: none; } .wa-num:hover { text-decoration: underline; }
.wa-pill, .btn.wa { display: inline-flex; align-items: center; gap: 6px; background: #128c7e; color: #fff; border: 1.5px solid #128c7e; text-decoration: none; font-weight: 700; }
.wa-pill { padding: 3px 11px 3px 9px; border-radius: 999px; font-size: .82rem; } .wa-pill:hover, .btn.wa:hover { background: #0e7468; border-color: #0e7468; }
body.cust .btn.wa, body.cust a.wa-pill { color: #fff; }
@media (prefers-color-scheme: dark) { .wa-num { color: #25d366; } }
.contact-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .9rem; margin: 2px 0; }
