/* Car Wash and Cafe App styles. Colours: ocean blue for the wash,
   coral for the cafe, teal for staff, violet for the owner. */
:root {
  --blue-50:#E6F1FB; --blue-200:#85B7EB; --blue-400:#378ADD; --blue-600:#185FA5; --blue-800:#0C447C; --blue-900:#042C53;
  --teal-50:#E1F5EE; --teal-200:#5DCAA5; --teal-400:#1D9E75; --teal-600:#0F6E56; --teal-800:#085041; --teal-900:#04342C;
  --coral-50:#FAECE7; --coral-200:#F0997B; --coral-400:#D85A30; --coral-600:#993C1D; --coral-800:#712B13;
  --amber-50:#FAEEDA; --amber-200:#EF9F27; --amber-400:#BA7517; --amber-600:#854F0B; --amber-800:#633806;
  --violet-50:#EEEDFE; --violet-200:#AFA9EC; --violet-400:#7F77DD; --violet-600:#534AB7; --violet-800:#3C3489; --violet-900:#26215C;
  --red-50:#FCEBEB; --red-400:#E24B4A; --red-600:#A32D2D; --red-800:#791F1F;
  --bg:#F4F6F9; --surface:#FFFFFF; --surface-2:#F1F3F6; --text:#1B1F24; --muted:#5C6570; --line:rgba(16,24,40,.10); --line-strong:rgba(16,24,40,.22);
  --accent:var(--blue-600); --accent-dark:var(--blue-800); --topbar:var(--blue-800); --topbar-text:#B5D4F4; --pill:var(--amber-200);
  --radius:10px; --radius-lg:16px; --shadow:0 1px 2px rgba(16,24,40,.06), 0 4px 14px rgba(16,24,40,.06);
  font-size:15px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg:#0E1116; --surface:#171B21; --surface-2:#1F242B; --text:#ECEFF3; --muted:#9AA4AF; --line:rgba(255,255,255,.09); --line-strong:rgba(255,255,255,.2); --shadow:none; }
}
body.area-staff { --accent:var(--teal-600); --accent-dark:var(--teal-800); --topbar:var(--teal-900); --topbar-text:#9FE1CB; }
body.area-cafe { --accent:var(--coral-400); --accent-dark:var(--coral-600); --topbar:var(--coral-800); --topbar-text:#F5C4B3; }
body.area-owner { --accent:var(--violet-600); --accent-dark:var(--violet-800); --topbar:var(--violet-900); --topbar-text:#CECBF6; }

* { box-sizing:border-box; }
html, body { margin:0; }
body { font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background:var(--bg); color:var(--text); line-height:1.5; -webkit-font-smoothing:antialiased; }
a { color:var(--accent); }
h1 { font-size:1.6rem; font-weight:650; margin:0 0 .25rem; letter-spacing:-.01em; }
h2 { font-size:1.15rem; font-weight:600; margin:0 0 .75rem; }
h3 { font-size:1rem; font-weight:600; margin:0 0 .5rem; }
p { margin:.25rem 0 .75rem; }
.muted, .k { color:var(--muted); }
.k { font-size:.82rem; }
.small { font-size:.85rem; }
.b { font-weight:600; }
.good { color:var(--teal-600); font-weight:600; }
@media (prefers-color-scheme: dark) { .good { color:var(--teal-200); } }
.r { text-align:right; }
.hidden { display:none !important; }

/* Top bar */
.topbar { background:var(--topbar); color:#fff; position:sticky; top:0; z-index:20; }
.topbar-in { max-width:1280px; margin:0 auto; display:flex; align-items:center; gap:18px; padding:10px 18px; }
.brand { display:flex; align-items:center; gap:10px; color:#fff; text-decoration:none; font-weight:650; font-size:1.05rem; white-space:nowrap; }
.logo { width:34px; height:34px; border-radius:10px; background:var(--coral-400); color:#fff; display:inline-flex; align-items:center; justify-content:center; font-size:20px; }
body.area-staff .logo { background:var(--teal-400); } body.area-cafe .logo { background:var(--amber-200); } body.area-owner .logo { background:var(--violet-400); }
.area-pill { font-size:.72rem; font-weight:600; padding:2px 9px; border-radius:20px; background:rgba(255,255,255,.16); color:#fff; }
.mainnav { display:flex; gap:4px; overflow-x:auto; flex:1; scrollbar-width:none; }
.mainnav::-webkit-scrollbar { display:none; }
.mainnav a { display:flex; align-items:center; gap:6px; color:var(--topbar-text); text-decoration:none; padding:8px 9px; border-radius:9px; font-size:.9rem; white-space:nowrap; transition:background .2s; }
.mainnav a:hover { background:rgba(255,255,255,.08); color:#fff; }
.mainnav a.on { color:#fff; background:rgba(255,255,255,.12); box-shadow:inset 0 -2px 0 var(--pill); }
.mainnav .ti { font-size:18px; }
.usermenu { display:flex; align-items:center; gap:8px; margin-left:auto; }
.usermenu form { margin:0; }
.who { color:var(--topbar-text); font-size:.9rem; }
.iconbtn { background:transparent; border:0; color:inherit; cursor:pointer; padding:6px; border-radius:8px; font-size:20px; line-height:1; display:inline-flex; }
.topbar .iconbtn { color:#fff; }
.iconbtn:hover { background:rgba(127,127,127,.15); }
@media (max-width: 900px) {
  .topbar-in { flex-wrap:wrap; gap:8px; padding:8px 12px; }
  .mainnav { order:3; flex-basis:100%; }
  .mainnav a span { font-size:.85rem; }
  .who { display:none; }
}

/* Page */
.page { padding:22px 18px 60px; }
.page-in { max-width:1280px; margin:0 auto; }
.page-head { display:flex; justify-content:space-between; align-items:flex-end; gap:12px; flex-wrap:wrap; margin-bottom:16px; }
.page-head p { margin:0; color:var(--muted); }
.grid { display:grid; gap:16px; }
.grid2 { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:12px; }
.grid3 { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:12px; }
.grid4 { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:12px; }
.split { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(0,1fr); gap:18px; align-items:start; }
.split.even { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
.split.narrow-left { grid-template-columns:minmax(0,1fr) minmax(0,1.45fr); }
@media (max-width: 960px) { .split, .split.even, .split.narrow-left { grid-template-columns:minmax(0,1fr); } .grid4 { grid-template-columns:repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .grid3, .grid2 { grid-template-columns:minmax(0,1fr); } .grid4 { grid-template-columns:repeat(2, minmax(0,1fr)); } h1 { font-size:1.35rem; } }

.card { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-lg); padding:16px; box-shadow:var(--shadow); }
.card + .card { margin-top:16px; }
.card.accent { border-color:var(--blue-200); }
.card.coral { border-color:var(--coral-200); }
.card h2 { display:flex; align-items:center; gap:8px; }
.tile { border-radius:12px; padding:12px; }
.tile .v { font-size:1.45rem; font-weight:650; line-height:1.2; }
.tile .k, .tile .b { color:inherit; }
.t-blue { background:var(--blue-50); color:var(--blue-800); }
.t-green { background:var(--teal-50); color:var(--teal-800); }
.t-amber { background:var(--amber-50); color:var(--amber-800); }
.t-coral { background:var(--coral-50); color:var(--coral-800); }
.t-violet { background:var(--violet-50); color:var(--violet-800); }
.t-red { background:var(--red-50); color:var(--red-800); }
.rowx { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:9px 0; border-bottom:1px solid var(--line); }
.rowx:last-child { border-bottom:0; }
.list { margin:0; padding:0; list-style:none; }
.stack > * + * { margin-top:12px; }

/* Pills */
.pill { display:inline-flex; align-items:center; gap:4px; font-size:.75rem; font-weight:600; padding:2px 10px; border-radius:20px; white-space:nowrap; background:var(--blue-50); color:var(--blue-800); }
.pill.green { background:var(--teal-50); color:var(--teal-800); } .pill.amber { background:var(--amber-50); color:var(--amber-800); }
.pill.coral { background:var(--coral-50); color:var(--coral-800); } .pill.red { background:var(--red-50); color:var(--red-800); }
.pill.purple { background:var(--violet-50); color:var(--violet-800); } .pill.gray { background:var(--surface-2); color:var(--muted); }

/* Buttons and forms */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:40px; padding:8px 16px; border-radius:var(--radius); border:1px solid var(--line-strong); background:var(--surface); color:var(--text); font:inherit; font-weight:550; cursor:pointer; text-decoration:none; transition:transform .1s, background .2s; }
.btn:hover { background:var(--surface-2); }
.btn:active { transform:scale(.98); }
.btn.primary { background:var(--accent); border-color:var(--accent); color:#fff; }
.btn.primary:hover { background:var(--accent-dark); }
.btn.coral { background:var(--coral-400); border-color:var(--coral-400); color:#fff; }
.btn.coral:hover { background:var(--coral-600); }
.btn.danger { background:var(--red-600); border-color:var(--red-600); color:#fff; }
.btn.small { min-height:32px; padding:4px 11px; font-size:.85rem; }
.btn.block { width:100%; }
.btn .ti { font-size:18px; }
.btns { display:flex; gap:8px; flex-wrap:wrap; }
label.field { display:block; margin-bottom:12px; }
label.field > span { display:block; font-size:.85rem; font-weight:600; margin-bottom:5px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=time], input[type=search], select, textarea {
  width:100%; min-height:42px; padding:9px 12px; border-radius:var(--radius); border:1px solid var(--line-strong); background:var(--surface); color:var(--text); font:inherit;
}
textarea { min-height:90px; resize:vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible, button:focus-visible { outline:3px solid color-mix(in srgb, var(--accent) 40%, transparent); outline-offset:1px; }
.check { display:flex; align-items:center; gap:10px; padding:9px 0; border-bottom:1px solid var(--line); cursor:pointer; }
.check:last-child { border-bottom:0; }
.check input { width:20px; height:20px; accent-color:var(--accent); flex:none; }
.check .price { margin-left:auto; }
.hint { font-size:.8rem; color:var(--muted); margin-top:4px; }
.field-error { color:var(--red-600); font-size:.82rem; margin-top:4px; }
.chips { display:flex; flex-wrap:wrap; gap:6px; }
.chip { position:relative; }
.chip input { position:absolute; opacity:0; inset:0; cursor:pointer; }
.chip span { display:inline-flex; align-items:center; gap:6px; padding:8px 13px; border-radius:22px; border:1px solid var(--line-strong); background:var(--surface); font-size:.9rem; transition:all .15s; }
.chip input:checked + span { background:var(--accent); border-color:var(--accent); color:#fff; }
.chip input:disabled + span { opacity:.45; text-decoration:line-through; }
.chip input:focus-visible + span { outline:3px solid color-mix(in srgb, var(--accent) 40%, transparent); }

/* Option cards (packages, plans) */
.opt { position:relative; display:block; border:1px solid var(--line); border-radius:14px; padding:14px; background:var(--surface); cursor:pointer; transition:border-color .15s, transform .15s; }
.opt:hover { transform:translateY(-2px); }
.opt input { position:absolute; opacity:0; }
.opt:has(input:checked) { border:2px solid var(--accent); padding:13px; }
.opt .ico { font-size:26px; color:var(--blue-400); }
.opt .price { font-size:1.4rem; font-weight:650; }

/* Alerts and toasts */
.alert-card { display:flex; gap:12px; align-items:flex-start; margin-bottom:16px; }
.alert-card > .ti { font-size:24px; flex:none; }
.alert-card.err { border-color:#F7C1C1; background:var(--red-50); color:var(--red-800); }
.alert-card.ok { border-color:var(--teal-200); background:var(--teal-50); color:var(--teal-800); }
.alert-card.warn { border-color:var(--amber-200); background:var(--amber-50); color:var(--amber-800); }
.toast { display:flex; align-items:center; gap:10px; padding:12px 14px; border-radius:12px; margin-bottom:14px; animation:pop .35s ease-out both; }
.toast.ok { background:var(--teal-50); color:var(--teal-800); border:1px solid var(--teal-200); }
.toast.err { background:var(--red-50); color:var(--red-800); border:1px solid #F7C1C1; }
.toast > .ti { font-size:22px; }
.toast .iconbtn { margin-left:auto; color:inherit; }

/* Modal */
.modal { position:fixed; inset:0; background:rgba(4,12,24,.55); display:flex; align-items:center; justify-content:center; z-index:100; padding:20px; }
.modal[hidden] { display:none; }
.modal-box { background:var(--surface); color:var(--text); border-radius:18px; padding:22px; max-width:420px; width:100%; text-align:center; animation:pop .25s ease-out both; }
.modal-icon { width:52px; height:52px; border-radius:50%; background:var(--red-50); color:var(--red-600); display:inline-flex; align-items:center; justify-content:center; font-size:28px; margin-bottom:8px; }
.modal-actions { display:flex; gap:10px; justify-content:center; margin-top:14px; }

/* Tables */
.table-wrap { overflow-x:auto; }
.tbl { width:100%; border-collapse:collapse; font-size:.9rem; }
.tbl th { text-align:left; font-weight:600; font-size:.82rem; color:#fff; background:var(--accent); padding:9px 10px; }
.tbl th:first-child { border-top-left-radius:10px; } .tbl th:last-child { border-top-right-radius:10px; }
.tbl td { padding:10px; border-bottom:1px solid var(--line); vertical-align:top; }
.tbl tr:hover td { background:color-mix(in srgb, var(--surface-2) 60%, transparent); }
.tbl .r { text-align:right; }

/* Auth pages */
body.plain, body.auth { background:var(--blue-800); }
.auth-wrap { min-height:100vh; display:flex; align-items:center; justify-content:center; padding:24px 16px; }
.auth-card { width:100%; max-width:440px; background:var(--surface); border-radius:20px; padding:26px; box-shadow:0 20px 50px rgba(0,0,0,.25); animation:pop .5s ease-out both; }
.auth-brand { display:flex; align-items:center; gap:10px; font-weight:700; font-size:1.25rem; margin-bottom:6px; }
.auth-sub { color:var(--muted); margin-bottom:18px; }
.auth-bubbles { position:fixed; inset:0; overflow:hidden; pointer-events:none; z-index:0; }
.auth-bubbles span { position:absolute; bottom:-40px; border-radius:50%; border:2px solid rgba(181,212,244,.35); animation:rise-far 12s linear infinite; }
.auth-wrap > * { position:relative; z-index:1; }

/* Wash tracker */
.tracker { border:1px solid var(--blue-200); }
.track { position:relative; height:84px; border-radius:14px; background:var(--blue-50); overflow:hidden; margin:10px 0; }
.track .car { position:absolute; bottom:12px; font-size:40px; color:var(--blue-800); animation:drive 7s linear infinite; }
.track .bub { position:absolute; bottom:8px; width:11px; height:11px; border-radius:50%; border:2px solid var(--blue-400); animation:rise 2.2s ease-in infinite; }
.track .spray { position:absolute; top:0; width:3px; height:30px; background:var(--blue-200); border-radius:3px; animation:spray .9s ease-in-out infinite alternate; }
.track.waiting .car { animation:none; left:4%; }
.track.ready .car { animation:none; left:auto; right:6%; color:var(--teal-600); }
.track.waiting .bub, .track.ready .bub, .track.waiting .spray, .track.ready .spray { display:none; }
.stages { display:grid; grid-template-columns:repeat(5,1fr); gap:6px; }
.stages span { text-align:center; border-radius:20px; padding:5px 0; font-size:.8rem; background:var(--surface-2); color:var(--muted); }
.stages.live span { animation:stage 7s infinite; }
.stages.done span { background:var(--teal-50); color:var(--teal-800); }

/* QR and membership card */
.qr { background:#fff; border-radius:12px; padding:8px; display:inline-block; }
.qr svg { display:block; width:100%; height:100%; }
.member-card { display:flex; gap:16px; align-items:center; }
.member-card .qr-wrap { border-radius:16px; animation:ring 2.4s infinite; }
@media (max-width: 520px) { .member-card { flex-direction:column; align-items:stretch; text-align:center; } .member-card .qr-wrap { align-self:center; } }

/* Coffee steam */
.cup { position:relative; display:inline-block; font-size:34px; color:var(--coral-400); }
.cup .sm { position:absolute; top:-6px; width:3px; height:12px; border-radius:3px; background:var(--coral-200); animation:steam 1.8s ease-out infinite; }

/* Plans */
.plan { border-top:5px solid var(--blue-400); }
.plan.coral { border-top-color:var(--coral-400); } .plan.amber { border-top-color:var(--amber-400); } .plan.violet { border-top-color:var(--violet-400); }
.plan.popular { outline:2px solid var(--coral-400); }
.plan .price { font-size:1.8rem; font-weight:700; }
.plan ul { list-style:none; padding:0; margin:10px 0; }
.plan li { display:flex; gap:8px; padding:6px 0; border-bottom:1px solid var(--line); }
.plan li .ti { color:var(--teal-600); }

/* Products */
.prod-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(190px,1fr)); gap:12px; }
.prod { border:1px solid var(--line); border-radius:14px; padding:12px; background:var(--surface); display:flex; flex-direction:column; gap:6px; }
.prod .ico { font-size:30px; color:var(--coral-400); }
.prod .opts { display:flex; flex-direction:column; gap:6px; }
.prod select { min-height:36px; padding:5px 8px; }
.prod .foot { display:flex; justify-content:space-between; align-items:center; margin-top:auto; gap:8px; }
.till-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(130px,1fr)); gap:10px; }
.till-btn { border:0; border-radius:14px; padding:12px 8px; text-align:center; cursor:pointer; font:inherit; transition:transform .1s; }
.till-btn:active { transform:scale(.96); }
.till-btn .ti { font-size:24px; display:block; margin:0 auto 4px; }
.till-btn .b { display:block; }

/* Scanner */
.scanner { position:relative; min-height:240px; border-radius:16px; background:var(--teal-900); overflow:hidden; display:flex; align-items:center; justify-content:center; color:#9FE1CB; }
.scanner .frame { width:150px; height:150px; border:3px solid var(--teal-200); border-radius:16px; position:relative; display:flex; align-items:center; justify-content:center; font-size:64px; }
.scanner .line { position:absolute; left:8px; right:8px; height:3px; border-radius:2px; background:var(--teal-200); animation:sweep 2s ease-in-out infinite; }
.scanner #reader { position:absolute; inset:0; }
.scanner #reader video { width:100% !important; height:100% !important; object-fit:cover; }
.scanner .scan-label { position:absolute; bottom:10px; left:0; right:0; text-align:center; font-size:.85rem; }

/* Board */
.board { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:12px; }
@media (max-width: 960px) { .board { grid-template-columns:repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .board { grid-template-columns:1fr; } }
.lane { border-radius:14px; padding:10px; min-height:140px; }
.lane-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; font-weight:650; }
.job { background:var(--surface); color:var(--text); border:1px solid var(--line); border-radius:12px; padding:10px; margin-bottom:8px; animation:pop .35s ease-out both; }
.job .plate { font-weight:700; letter-spacing:.03em; }
.job form { display:inline; }
.job .acts { display:flex; gap:6px; flex-wrap:wrap; margin-top:8px; }
.job.alert { animation:pulse 1.6s infinite; }
.prog { height:6px; border-radius:3px; background:var(--surface-2); overflow:hidden; margin-top:6px; }
.prog i { display:block; height:100%; background:var(--blue-400); transition:width 1s; }

/* Dashboard */
.bars { display:flex; align-items:flex-end; gap:6px; height:150px; }
.bars .col { flex:1; display:flex; flex-direction:column; justify-content:flex-end; height:100%; transform-origin:bottom; animation:grow 1.1s ease-out both; }
.bars .w { background:var(--blue-400); border-radius:4px 4px 0 0; }
.bars .c { background:var(--coral-400); }
.bars .lbl { font-size:.7rem; color:var(--muted); text-align:center; margin-top:4px; }
.meter { height:10px; border-radius:5px; background:var(--surface-2); overflow:hidden; }
.meter i { display:block; height:100%; animation:fillx 1.3s ease-out both; }
.legend { display:inline-block; width:10px; height:10px; border-radius:2px; margin-right:4px; vertical-align:middle; }

/* Invoice */
.invoice { background:var(--surface); border:1px solid var(--line); border-radius:18px; overflow:hidden; box-shadow:var(--shadow); max-width:820px; margin:0 auto; }
.inv-head { background:var(--blue-800); color:#fff; padding:18px 20px; display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.inv-brand { display:flex; align-items:center; gap:10px; font-weight:700; font-size:1.15rem; }
.inv-biz { font-size:.82rem; color:#B5D4F4; margin-top:6px; }
.inv-title { text-align:right; font-size:.82rem; color:#B5D4F4; }
.inv-title .big { font-size:1.35rem; font-weight:700; color:#fff; }
.inv-body { padding:18px 20px; }
.inv-body > * + * { margin-top:14px; }
.inv-lines th { background:var(--blue-600); }
.inv-totals { margin-left:auto; max-width:340px; }
.inv-totals .grand { font-size:1.15rem; font-weight:700; color:var(--blue-600); }
@media (prefers-color-scheme: dark) { .inv-totals .grand { color:var(--blue-200); } }
.inv-rewash { display:flex; gap:14px; align-items:center; border:1px dashed var(--line-strong); border-radius:14px; padding:12px; }
.inv-foot { border-top:1px solid var(--line); padding-top:12px; }
.barcode { display:flex; height:36px; gap:1px; margin-bottom:6px; }
.barcode i { display:block; background:var(--text); }
.rating { display:flex; align-items:center; gap:4px; flex-wrap:wrap; }
.star { background:none; border:0; font-size:26px; color:var(--line-strong); cursor:pointer; padding:2px; transition:transform .15s; }
.star:hover { transform:scale(1.15); }
.star.on { color:var(--amber-200); }
.inv-actions { display:flex; gap:8px; justify-content:flex-end; }
.sms-bubble { background:var(--blue-600); color:#fff; border-radius:18px 18px 18px 4px; padding:12px 14px; max-width:420px; animation:pop .5s ease-out both; }

.empty { text-align:center; padding:26px 12px; color:var(--muted); }
.empty .ti { font-size:40px; color:var(--blue-200); display:block; margin:0 auto 8px; }
.photo-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.photo-slot { position:relative; border-radius:12px; background:var(--blue-50); color:var(--blue-800); aspect-ratio:4/3; display:flex; flex-direction:column; align-items:center; justify-content:center; overflow:hidden; cursor:pointer; font-size:.8rem; }
.photo-slot img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.photo-slot input { position:absolute; inset:0; opacity:0; cursor:pointer; }
.photo-slot .ti { font-size:22px; }
.appear { animation:pop .5s ease-out both; }
.appear-2 { animation:pop .5s .1s ease-out both; } .appear-3 { animation:pop .5s .2s ease-out both; } .appear-4 { animation:pop .5s .3s ease-out both; }
.footer-note { text-align:center; color:var(--muted); font-size:.8rem; margin-top:30px; }

@keyframes drive { 0% { left:-12%; } 100% { left:104%; } }
@keyframes rise { 0% { transform:translateY(0); opacity:.9; } 100% { transform:translateY(-64px); opacity:0; } }
@keyframes rise-far { 0% { transform:translateY(0); opacity:.8; } 100% { transform:translateY(-110vh); opacity:0; } }
@keyframes spray { from { opacity:.3; height:18px; } to { opacity:1; height:36px; } }
@keyframes stage { 0%, 100% { background:var(--surface-2); color:var(--muted); } 8%, 24% { background:var(--blue-600); color:#fff; } }
@keyframes steam { 0% { transform:translateY(0); opacity:.8; } 100% { transform:translateY(-16px); opacity:0; } }
@keyframes ring { 0% { box-shadow:0 0 0 0 rgba(216,90,48,.45); } 70% { box-shadow:0 0 0 14px rgba(216,90,48,0); } 100% { box-shadow:0 0 0 0 rgba(216,90,48,0); } }
@keyframes pulse { 0% { box-shadow:0 0 0 0 rgba(226,75,74,.5); } 70% { box-shadow:0 0 0 10px rgba(226,75,74,0); } 100% { box-shadow:0 0 0 0 rgba(226,75,74,0); } }
@keyframes pop { from { transform:translateY(8px); opacity:0; } to { transform:none; opacity:1; } }
@keyframes sweep { 0%, 100% { top:8%; } 50% { top:88%; } }
@keyframes grow { from { transform:scaleY(0); } to { transform:scaleY(1); } }
@keyframes fillx { from { width:0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation:none !important; transition:none !important; } }

@media print {
  @page { size:A4; margin:12mm; }
  body { background:#fff !important; color:#000; }
  .topbar, .no-print, .toast, .page-head .btns, .inv-actions, .rating, nav, .modal { display:none !important; }
  .page { padding:0; }
  .invoice { box-shadow:none; border:1px solid #ccc; max-width:none; }
  .inv-head, .tbl th, .tile { -webkit-print-color-adjust:exact; print-color-adjust:exact; }
  .card { box-shadow:none; }
  .print-only { display:block !important; }
}
.print-only { display:none; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.barcode span { display:block; }
.btn.added { animation:pop .4s ease-out; }
.member-panel { border:2px solid var(--teal-200); }
.lane.t-amber .lane-head, .lane.t-blue .lane-head, .lane.t-violet .lane-head, .lane.t-green .lane-head { color:inherit; }
.kv { display:grid; grid-template-columns:auto 1fr; gap:4px 14px; font-size:.9rem; }
.kv dt { color:var(--muted); } .kv dd { margin:0; }
.photo-thumbs { display:flex; gap:6px; flex-wrap:wrap; }
.photo-thumbs img { width:72px; height:54px; object-fit:cover; border-radius:8px; border:1px solid var(--line); }
.opt-panel { position:fixed; inset:0; background:rgba(4,12,24,.55); display:flex; align-items:center; justify-content:center; z-index:90; padding:20px; }
.opt-panel[hidden] { display:none; }
.opt-panel .modal-box { text-align:left; }

@media (max-width: 1480px) { .who { display:none; } .mainnav a { font-size:.86rem; padding:8px 8px; } }
@media (max-width: 900px) { .mainnav.wrap { flex-wrap:wrap; overflow:visible; } }
.tracker-title { color:var(--blue-600); }
@media (prefers-color-scheme: dark) { .tracker-title { color:var(--blue-200); } }
.grid2 > .card, .grid3 > .card, .grid4 > .card, .split > .card, .split > form.card, .split > .stack > .card:first-child { margin-top:0; }
a.chip { color:var(--text); text-decoration:none; }
