/* barber-booking owner app styles. Colours come from /themes.css (the shop's theme). */
* { 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(--chart-1, 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(--chart-1, var(--series-1)); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-body .area { fill: var(--chart-1, var(--series-1)); opacity: .1; }
.chart-body .dot { fill: var(--chart-1, 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 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; }
:is(:root:not([data-theme]), [data-theme="gold"]) .wa-num { color: #25d366; }
.contact-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .9rem; margin: 2px 0; }

/* month planner */
.vseg { margin: 0 0 12px; }
.mhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; } .mhead h2 { font-size: 1.15rem; margin: 0; }
.mgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.mgrid .wd { font-size: .68rem; font-weight: 800; color: var(--muted); text-align: center; text-transform: uppercase; padding: 4px 0; }
.mcell { min-width: 0; min-height: 62px; padding: 6px 3px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; transition: transform .12s, border-color .2s, box-shadow .2s; }
.mcell:hover { border-color: var(--vmuted); transform: translateY(-1px); }
.mcell .mn { font-weight: 800; font-size: .92rem; min-width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; }
.mcell.today .mn { background: var(--accent); color: var(--accent-ink); }
.mcell.out { opacity: .45; }
.mcell.closed { background: repeating-linear-gradient(135deg, var(--bg) 0 6px, var(--card) 6px 12px); }
.mcell[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.mcell .mb { display: flex; gap: 3px; flex-wrap: wrap; justify-content: center; }
.mcell .b { font-style: normal; font-size: .68rem; font-weight: 800; min-width: 20px; height: 20px; border-radius: 10px; display: inline-grid; place-items: center; padding: 0 5px; }
.mcell .b.open { background: var(--warn-bg); color: var(--warn); } .mcell .b.paid { background: var(--ok-bg); color: var(--ok); } .mcell .b.blk { background: var(--line); color: var(--muted); }
.mcell .mc { display: none; }
@media (min-width: 720px) {
  .mcell { min-height: 104px; align-items: stretch; text-align: left; padding: 8px; }
  .mcell .mn { align-self: flex-start; } .mcell .mb { justify-content: flex-start; }
  .mcell .mc { display: flex; flex-direction: column; gap: 2px; font-size: .7rem; min-width: 0; }
  .mcell .mc span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--bg); border-radius: 4px; padding: 1px 5px; }
}
.mlegend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .75rem; color: var(--muted); margin: 8px 0 14px; } .mlegend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }

/* ===== sales dashboard ===== */
.kpirow { margin-bottom: 0; } .kpirow .hero-fig { margin-bottom: 10px; }
.donut-wrap { display: flex; align-items: center; gap: 14px; min-width: 0; flex-wrap: wrap; justify-content: center; }
@media (min-width: 1000px) and (min-height: 700px) { .dash .donut-wrap { flex-wrap: nowrap; height: 100%; } }
.dseg { cursor: pointer; transition: opacity .15s; } .dseg:hover, .dseg:focus-visible { opacity: .8; outline: none; }
.dlegend { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; flex: 1 1 110px; }
.dlegend li { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 8px; align-items: start; font-size: .85rem; }
.dlegend i { width: 10px; height: 10px; border-radius: 50%; margin-top: 4px; }
.dlegend .nm { display: block; font-weight: 700; } .dlegend .vp { display: block; color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.busy-grid { display: grid; gap: 4px 20px; } .busy-col { min-width: 0; display: flex; flex-direction: column; }
.chart-actions .insight { margin: 0; justify-content: flex-end; }
@media (min-width: 720px) { .busy-grid { grid-template-columns: 1fr 1fr; } }

@media (min-width: 1000px) and (min-height: 700px) {
  body[data-tab="sales"] .wrap.wide { max-width: 1560px; padding-bottom: 76px; }
  body[data-tab="sales"] #tab-sales { max-width: none; margin: 0; display: flex; flex-direction: column; height: calc(100vh - 150px); }
  #tab-sales .filters { flex: 0 0 auto; margin-bottom: 10px; }
  #tab-sales .filters .nav2 { margin-left: 0; } #tab-sales .filters .csv { margin-left: auto; }
  #salesBody { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; }
  .kpirow { flex: 0 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 12px; }
  .kpirow .hero-fig { margin: 0; padding: 10px 16px; } .kpirow .hero-fig .v { font-size: 2.2rem; margin: 0; }
  .kpirow .tiles { display: contents; } .kpirow .tile { display: flex; flex-direction: column; justify-content: center; padding: 8px 14px; } .kpirow .tile .v { font-size: 1.4rem; }
  .dash { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .dash .chart-card { margin: 0; padding: 12px 14px 10px; display: flex; flex-direction: column; min-height: 0; min-width: 0; animation: none; opacity: 1; }
  .dash .chart-head { margin-bottom: 4px; } .dash .chart-head h2 { font-size: .95rem; } .dash .chart-head .sub { font-size: .75rem; }
  .dash .chart-body { flex: 1; min-height: 0; }
  .dash .chart-body.fit > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
  .dash .a1 { grid-column: span 5; } .dash .a2 { grid-column: span 4; } .dash .a3 { grid-column: span 3; } .dash .a4 { grid-column: span 6; } .dash .a5 { grid-column: span 6; }
  .dash .a4 .chart-body { display: flex; flex-direction: column; } .dash .busy-grid { flex: 1; min-height: 0; }
  .dash .busy-col .chart-body { flex: 1; min-height: 0; } .dash .sub-h { margin: 0 0 2px; }
  .dash .race { margin-top: 2px; } .dash .racebar { margin-top: 4px; }
  .dash .donut-wrap { gap: 12px; }
  .hint-line { display: none; }
  .tabs { z-index: 20; }
}

/* login */
.pwrow { position: relative; } .pwrow input { padding-right: 70px; }
.pwrow .eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); font-weight: 700; font-size: .8rem; padding: 8px; cursor: pointer; }
.pwrow .eye:hover { color: var(--ink); }
.link-btn { border: 0; background: none; color: var(--accent); font-weight: 700; cursor: pointer; padding: 6px; text-decoration: underline; }
input[type=email] { width: 100%; padding: 12px; min-height: 46px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); }

textarea { width: 100%; padding: 12px; min-height: 96px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); font: inherit; resize: vertical; line-height: 1.4; }
.chart-actions .pill { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .8rem; align-self: center; }
.btn.wa.sm { padding: 0 12px; }

/* reminder pill: its own colour, so it never reads as the WhatsApp chat link */
.rem-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px 3px 9px; border-radius: 999px; border: 1.5px solid #2f5fd0; background: #2f5fd0; color: #fff; font-weight: 700; font-size: .82rem; cursor: pointer; }
.rem-pill:hover { background: #254cb0; border-color: #254cb0; }
.rem-pill.done { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.rem-pill.done:hover { background: var(--ok-bg); filter: brightness(.97); }
:is(:root:not([data-theme]), [data-theme="gold"]) .rem-pill:not(.done) { background: #4a78e6; border-color: #4a78e6; }
.whoami { display: none; } @media (min-width: 720px) { .whoami { display: inline; align-self: center; } }
.urow { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--line); }
.urow:last-child { border-bottom: 0; } .urow .uinfo { min-width: 0; } .urow .acts { margin: 0; }

/* reminder text editor: wording is editable, the placeholders are locked chips */
.msg-edit { min-height: 96px; padding: 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); line-height: 1.9; outline: none; white-space: pre-wrap; word-break: break-word; }
.msg-edit:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.ph { display: inline-block; background: #e6eefc; color: #2f5fd0; border-radius: 6px; padding: 0 8px; margin: 0 2px; font-weight: 700; font-size: .88em; line-height: 1.5; user-select: all; cursor: default; white-space: nowrap; }
:is(:root:not([data-theme]), [data-theme="gold"]) .ph { background: #1d2a4d; color: #9db8ff; }
.ph-bar { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 8px; font-size: .8rem; color: var(--muted); }
.ph-bar .chip-btn { color: #2f5fd0; border-color: #c9d8f7; } :is(:root:not([data-theme]), [data-theme="gold"]) .ph-bar .chip-btn { color: #9db8ff; border-color: #2b3a66; }

/* new-booking alert */
#alerts { position: fixed; top: 76px; right: 12px; z-index: 60; display: grid; gap: 10px; width: min(380px, calc(100vw - 24px)); pointer-events: none; }
.alert-pop { pointer-events: auto; display: flex; gap: 12px; align-items: center; background: var(--card); border: 1.5px solid var(--ok); border-left-width: 6px; border-radius: 14px; padding: 12px 12px 12px 14px; box-shadow: 0 12px 34px rgba(0,0,0,.28); animation: popIn .4s cubic-bezier(.2,1.2,.3,1) both; }
@keyframes popIn { from { opacity: 0; transform: translateX(40px) scale(.96); } to { opacity: 1; transform: none; } }
.alert-pop .ap-ic { width: 38px; height: 38px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; flex: 0 0 auto; animation: ring 1.2s .2s ease 2; transform-origin: 50% 10%; }
@keyframes ring { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(16deg); } 30% { transform: rotate(-14deg); } 45% { transform: rotate(10deg); } 60% { transform: rotate(-8deg); } }
.alert-pop .ap-body { flex: 1; min-width: 0; } .alert-pop .ap-body b { display: block; } .alert-pop .ap-t { font-size: .88rem; color: var(--ink2); overflow-wrap: anywhere; } .alert-pop .ap-n { font-size: .78rem; color: var(--warn); margin-top: 4px; }
.alert-pop .ap-acts { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; } .alert-pop .ap-x { border: 0; background: none; font-size: 1.4rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 8px; }
.alert-btn { padding: 0 10px; } .alert-btn[aria-pressed="false"] { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .alert-pop, .alert-pop .ap-ic { animation: none; } }

/* ---- modern sales dashboard look ---- */
.hero-fig { position: relative; overflow: hidden; background: linear-gradient(135deg, #1f2a44 0%, #3a3f8f 60%, #5b4bc4 100%); border: 0; box-shadow: 0 10px 28px rgba(58, 63, 143, .28); }
.hero-fig::after { content: ""; position: absolute; right: -40px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.18), transparent); pointer-events: none; }
.hero-fig > * { position: relative; z-index: 1; }
.hero-fig .l { letter-spacing: .02em; text-transform: uppercase; font-size: .7rem; font-weight: 700; opacity: .85; }
.hero-fig .sparkhost { position: absolute; right: 12px; bottom: 8px; width: 38%; max-width: 190px; opacity: .9; z-index: 0; }
.spark { display: block; width: 100%; height: 44px; overflow: visible; } .spark .sline { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; } .spark .sdot { fill: #fff; }
.tile { position: relative; border: 0; border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; padding-left: 14px; transition: transform .15s, box-shadow .15s; }
.tile::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--series-1); }
.tiles .tile:nth-child(2)::before { background: var(--series-3); } .tiles .tile:nth-child(3)::before { background: var(--series-7); }
.tile:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(29, 26, 23, .12); }
.tile .l { text-transform: uppercase; letter-spacing: .03em; font-weight: 600; }

.chart-card { border: 0; border-radius: 20px; box-shadow: 0 1px 2px rgba(29, 26, 23, .04), 0 10px 30px rgba(29, 26, 23, .07); transition: box-shadow .2s, transform .2s; }
.chart-card:hover { box-shadow: 0 1px 2px rgba(29, 26, 23, .05), 0 14px 36px rgba(29, 26, 23, .11); }
.chart-head h2 { font-size: 1rem; font-weight: 800; letter-spacing: -.01em; }
.chart-head h2::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--chart-1, var(--series-1)), #8f6a14); vertical-align: 1px; }
.chart-body .grid { stroke-dasharray: 3 5; stroke: var(--grid); } .chart-body .axis { stroke: var(--grid); }
.chart-body text { font-weight: 500; }
.chart-body .mark { transition: opacity .18s, filter .18s; } .chart-body .mark:hover, .chart-body .mark.hl { opacity: 1; filter: drop-shadow(0 4px 8px color-mix(in srgb, var(--chart-1, var(--series-1)) 45%, transparent)); }
.chart-body svg.spot .mark:not(.hl) { opacity: .4; }
.chart-body .band { fill: var(--chart-1, var(--series-1)); transition: opacity .15s; } .chart-body .band { fill-opacity: .07; }
.chart-body .line { stroke-width: 3; filter: drop-shadow(0 3px 5px color-mix(in srgb, var(--chart-1, var(--series-1)) 40%, transparent)); }
.chart-body .area { opacity: 1; }
.chart-body .dot { stroke-width: 2.5; } .chart-body .halo { fill: var(--chart-1, var(--series-1)); fill-opacity: .18; pointer-events: none; }
.chart-body .cross { stroke-dasharray: 3 4; }
.tt { border: 0; border-radius: 12px; padding: 9px 12px; backdrop-filter: blur(8px); box-shadow: 0 12px 32px rgba(15, 23, 42, .22); }

.race .track { background: color-mix(in srgb, var(--line) 45%, transparent); border-radius: 999px; }
.race .fill { border-radius: 999px; box-shadow: 0 3px 8px rgba(29, 26, 23, .12); }
.race .rrow { border-radius: 12px; transition: transform .55s cubic-bezier(.2, .8, .2, 1), background .15s; } .race .rrow:hover { background: color-mix(in srgb, var(--line) 35%, transparent); }
.race .nm .rk { flex: 0 0 auto; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 7px; font-size: .68rem; color: #fff; background: var(--c); }
.race .rrow.lead .rv { font-size: .88rem; } .race .rrow.lead .nm span { font-weight: 800; }
.racebar .play { background: var(--card); border: 0; box-shadow: 0 2px 6px rgba(29, 26, 23, .14); } .racebar .play:hover { box-shadow: 0 3px 10px rgba(29, 26, 23, .22); }

.dseg { transition: opacity .2s, stroke-width .2s; } .dseg.on { filter: drop-shadow(0 3px 6px rgba(29, 26, 23, .25)); } .dseg.dim { opacity: .3; } .dseg:hover { opacity: 1; }
.dlegend li { padding: 6px 8px; margin: -6px -8px; border-radius: 10px; transition: background .15s, opacity .15s; cursor: default; } .dlegend li.on { background: color-mix(in srgb, var(--line) 50%, transparent); } .dlegend li.dim { opacity: .45; }
.dlegend i { border-radius: 4px; }
.chart-body .donut-wrap svg text { transition: opacity .15s; }
@media (max-width: 520px) { .tile .v { font-size: 1.05rem; white-space: nowrap; } .tile .l { font-size: .64rem; } }

/* ---- shop theme (was Dayang Nana's black & gold): gradients and fills come from the theme ---- */
body { background: var(--bg-glow) fixed, var(--bg); background-color: var(--bg); color-scheme: inherit; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); letter-spacing: .04em; min-width: 0; }
.brand::before { display: none; }
.brand .bt { background: var(--brand-fill); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand img { height: 26px; max-width: 56px; object-fit: contain; display: block; }
.hero-fig { background: var(--hero-bg); color: var(--hero-ink); border: 1px solid var(--hero-border); box-shadow: var(--shadow); }
.hero-fig .l { color: var(--hero-sub); }
.delta { background: var(--hero-chip-bg); }
.delta.up { color: var(--up); } .delta.down { color: var(--down); }
.btn.primary, .seg button[aria-pressed="true"] { background: var(--accent-grad); border-color: var(--accent); color: var(--accent-ink); }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.tile::before, .tiles .tile:nth-child(2)::before, .tiles .tile:nth-child(3)::before { background: var(--accent-grad); }
.chart-card, .tile, .card, .cnt, .tt { border: 1px solid var(--card-border); }
.tabs { background: var(--card); border-top: 1px solid var(--card-border); }
.tabs button[aria-selected="true"]::before { background: var(--accent-grad); }
.stepper { background: color-mix(in srgb, var(--bg) 88%, transparent); }
.mcell.today .mn { background: var(--accent); color: var(--accent-ink); }
.race .rrow:hover, .dlegend li.on { background: var(--accent-soft); }
.chart-body .band { fill: var(--chart-1); } .chart-body .halo { fill: var(--chart-1); }
.next-up { background: var(--hero-bg); color: var(--hero-ink); border: 1px solid var(--hero-border); }
.next-up .l, .next-up .s { color: var(--hero-sub); opacity: 1; }
.kpi.big { background: var(--hero-bg); color: var(--hero-ink); }
.alert-pop.cancel { border-color: var(--danger); }
.alert-pop.cancel .ap-ic { background: var(--bad-bg); color: var(--danger); }
/* schedule panels: even gaps and equal-height cards */
.two-col { display: grid; gap: 14px; align-items: stretch; margin: 0 0 14px; }
@media (min-width: 720px) { .two-col { grid-template-columns: 1fr 1fr; } }
.two-col .list-card, .list-card { margin-bottom: 0; border-radius: 18px; padding: 16px; }
.list-card .lc-head { padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.list-card .lc-head h2 { font-size: 1.05rem; }
.list-card .muted { padding: 18px 8px; text-align: center; border: 1.5px dashed var(--line); border-radius: 14px; font-size: .92rem; }
details.list-card { margin-top: 0; padding: 0; overflow: hidden; }
details.list-card summary { display: flex; align-items: center; gap: 8px; padding: 14px 16px; list-style: none; color: var(--ink2); }
details.list-card summary::-webkit-details-marker { display: none; }
details.list-card summary::before { content: "›"; display: inline-block; font-size: 1.3rem; line-height: 1; transition: transform .2s; color: var(--accent); }
details.list-card[open] summary::before { transform: rotate(90deg); }
details.list-card[open] summary { border-bottom: 1px solid var(--line); }
details.list-card > div { padding: 14px 16px 16px; margin-top: 0 !important; }
.prog { margin: 8px 0 14px; }
.count-card { margin-bottom: 6px; }

.alert-pop.resched { border-color: var(--accent); } .alert-pop.resched .ap-ic { background: var(--accent-soft); color: var(--accent); }
#dResched { max-width: min(92vw, 460px); } #dResched .dates { margin-top: 4px; } #dResched .period { margin-top: 8px; }
.item .btn + .btn { margin-left: 0; }
