@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ---------- tokens ---------- */
:root {
  --navy-900: #0f1f4b;
  --navy-800: #172a63;
  --navy: #1e3a8a;
  --navy-600: #2f4ea3;
  --navy-100: #e6ebf7;
  --navy-50: #f2f5fc;
  --green: #46710d;
  --green-500: #65a30d;
  --lime: #84cc16;
  --green-100: #ecf5dc;
  --ink: #0b1220;
  --ink-2: #334155;
  --muted: #5b6676;
  --faint: #94a3b8;
  --line: #e5e7eb;
  --line-2: #eef0f3;
  --bg: #f6f7f9;
  --card: #ffffff;
  --amber: #b45309;
  --amber-100: #fef3c7;
  --amber-50: #fffbeb;
  --red: #b91c1c;
  --red-100: #fee2e2;
  --blue: #1d4ed8;
  --blue-100: #dbeafe;
  --r: 12px;
  --r-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .12);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); font-size: 14px; line-height: 1.5; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.015em; color: var(--ink); }
h1 { font-size: 24px; font-weight: 700; }
h2 { font-size: 18px; font-weight: 600; }
h3 { font-size: 15px; font-weight: 600; }
p { margin: 0; }
a { color: var(--navy); text-decoration: none; font-weight: 500; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); } .faint { color: var(--faint); }
.small { font-size: 13px; } .xs { font-size: 12px; }
.num, .tnum { font-variant-numeric: tabular-nums; }
.num { text-align: right; }
.neg { color: var(--red); }
.pos { color: var(--green); }
.hidden { display: none !important; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.nowrap { white-space: nowrap; }
.stack > * + * { margin-top: 12px; }
.stack-lg > * + * { margin-top: 20px; }
.grid { display: grid; gap: 16px; }
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cols-4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.ic { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.ic.sm { width: 16px; height: 16px; } .ic.lg { width: 22px; height: 22px; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }

/* ---------- surfaces ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.card-b { padding: 20px; }
.card-h { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-h .sub { font-size: 13px; color: var(--muted); margin-top: 2px; font-weight: 400; }
.section-title { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 10px; }
.label { font-size: 12px; color: var(--muted); font-weight: 500; }
.metric .label { display: flex; align-items: center; gap: 8px; }
.metric { position: relative; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.metric::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--navy), var(--lime)); opacity: .9; }
@media (hover: hover) { .metric:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -12px rgba(15, 31, 75, .18); } }
.metric .value { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.metric .foot { font-size: 12px; color: var(--muted); margin-top: 4px; }
.chip-ic { width: 28px; height: 28px; border-radius: 8px; display: inline-grid; place-items: center; background: var(--navy-50); color: var(--navy); }
.chip-ic.green { background: var(--green-100); color: var(--green); }
.chip-ic.amber { background: var(--amber-100); color: var(--amber); }
.chip-ic.red { background: var(--red-100); color: var(--red); }

/* ---------- controls ---------- */
button, .btn { font: inherit; font-size: 14px; font-weight: 600; border: 1px solid transparent; border-radius: var(--r-sm); height: 40px; padding: 0 16px; cursor: pointer; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; text-decoration: none; transition: background .15s, border-color .15s, box-shadow .15s; }
button:hover, .btn:hover { background: var(--navy-800); text-decoration: none; }
button:focus-visible, .btn:focus-visible, a:focus-visible, [role="button"]:focus-visible, summary:focus-visible, .tblwrap:focus-visible { outline: 2px solid var(--navy-600); outline-offset: 2px; }
.plan-hero :focus-visible, .auth-side :focus-visible { outline-color: var(--lime); }
.dialog:focus, .sheet:focus { outline: none; }
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible { outline: 2px solid var(--navy-600); outline-offset: 2px; }
button:disabled { opacity: .45; cursor: not-allowed; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { background: var(--bg); }
.btn-green { background: var(--green-500); }
.btn-green:hover { background: var(--green); }
.btn-amber { background: var(--amber); } .btn-amber:hover { background: #92400e; }
.btn-danger { background: var(--red); } .btn-danger:hover { background: #991b1b; }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--line-2); }
.btn-link { background: none; color: var(--navy); padding: 0; height: auto; }
.btn-link:hover { background: none; text-decoration: underline; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 48px; padding: 0 20px; font-size: 15px; }
.btn-block { width: 100%; }
.icon-btn { width: 36px; height: 36px; padding: 0; background: transparent; color: var(--ink-2); border-radius: 8px; position: relative; }
.icon-btn:hover { background: var(--line-2); }
input, select, textarea { font: inherit; font-size: 14px; width: 100%; height: 40px; padding: 0 12px; border: 1px solid #d0d5dd; border-radius: var(--r-sm); background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
textarea { height: auto; padding: 10px 12px; resize: vertical; }
input[type=checkbox], input[type=radio] { width: 16px; height: 16px; box-shadow: none; accent-color: var(--navy); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px var(--navy-100); }
label.f { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); margin: 14px 0 6px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.error { color: var(--red); font-size: 13px; margin-top: 10px; min-height: 18px; }
.seg { display: inline-flex; background: var(--line-2); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { background: transparent; color: var(--muted); height: 32px; font-weight: 500; border-radius: 8px; }
.seg button:hover { background: rgba(255, 255, 255, .6); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); font-weight: 600; }
.filter-chip { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 500; font-size: 13px; }
.filter-chip:hover { background: var(--bg); }
.filter-chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.filter-chip .n { font-variant-numeric: tabular-nums; opacity: .7; margin-left: 2px; }

/* ---------- schedule & driver (admin): one card per school ---------- */
.ops-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r); background: var(--green-100); border: 1px solid #d6e9b8; color: var(--green); margin-bottom: 16px; }
.ops-bar b { color: var(--ink); font-weight: 600; }
.ops-bar .xs { color: var(--ink-2); }
.ops-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 4px rgba(101, 163, 13, .18); flex: none; }
.ops-bar.is-paused { background: var(--amber-50); border-color: #fde68a; }
.ops-bar.is-paused .dot { background: var(--amber); box-shadow: 0 0 0 4px rgba(180, 83, 9, .15); }
#pauseBox { margin-bottom: 16px; }
.ops-layout { display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 16px; }
.ops-layout .drv { position: sticky; top: 16px; }
.drv-opts { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 10px; }
.drv-opts .row { font-weight: 500; flex-wrap: nowrap; }
.sch-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.sch { display: flex; flex-direction: column; }
.sch.editing { border-color: var(--navy); box-shadow: 0 0 0 3px var(--navy-100); }
.sch-top { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px 12px; }
.sch-top h3 { font-size: 16px; }
.sch-body { padding: 0 18px 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.sch-zone { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--navy-50); }
.sch-zone-b { border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.sch-zone-b .sch-zone { border-radius: 0; }
.loc { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-top: 1px solid var(--line-2); }
.loc-name { font-size: 13px; font-weight: 500; }
.loc-meta { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.loc-meta .ic { width: 12px; height: 12px; }
.loc-tag { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 999px; background: var(--amber-50); color: var(--amber); font-size: 11px; font-weight: 600; }
.loc-tag .ic { width: 11px; height: 11px; }
.add-loc { align-self: flex-start; margin-top: -4px; }
.sch-zone .clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sch-zone.sub { background: transparent; padding: 0 12px; margin-top: -6px; }
.wk { display: inline-flex; gap: 3px; flex: none; }
.wk span { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--faint); background: #fff; border: 1px solid var(--line-2); }
.wk span.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.sch-zone.sub .wk span { width: 18px; height: 18px; font-size: 10px; }
.wk-pick { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin: 6px 0 4px; }
.wk-pick button { height: 34px; min-width: 0; padding: 0; border-radius: 8px; background: #fff; color: var(--ink-2); border: 1px solid var(--line); font-weight: 500; font-size: 13px; }
.wk-pick button:hover { background: var(--bg); }
.wk-pick button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.sch-field .lbl { font-size: 13px; font-weight: 600; }
.sch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0 12px; }
.sch-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 2px 0 0; }
.sch-facts div { min-width: 0; }
.sch-facts dt { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.sch-facts dt .ic { width: 13px; height: 13px; }
.sch-facts dd { margin: 2px 0 0; font-size: 13px; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.sch-driver { margin-top: auto; display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--ink-2); }
.sch-driver .ic { color: var(--green-500); flex: none; }
@media (max-width: 960px) { .ops-layout { grid-template-columns: 1fr; } .ops-layout .drv { position: static; } }
@media (max-width: 480px) { .sch-list { grid-template-columns: 1fr; } .ops-bar { flex-wrap: wrap; } }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: #fff; margin: 0 0 8px; font-size: 14px; }
.choice:hover { border-color: #cbd5e1; }
.choice.on { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); background: var(--navy-50); }
.choice input { margin-top: 2px; }
.choice .t { font-weight: 600; } .choice .d { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---------- status ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--line-2); color: var(--ink-2); }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.pill.plain::before { display: none; }
.p-gray { background: #f1f5f9; color: #475569; }
.p-amber { background: var(--amber-100); color: var(--amber); }
.p-red { background: var(--red-100); color: var(--red); }
.p-blue { background: var(--blue-100); color: var(--blue); }
.p-green { background: var(--green-100); color: var(--green); }
.p-navy { background: var(--navy-100); color: var(--navy); }
.notice { display: flex; gap: 12px; align-items: flex-start; border-radius: 10px; padding: 12px 14px; font-size: 13px; border: 1px solid; }
.notice .ic { margin-top: 1px; }
.notice b { font-weight: 600; }
.n-amber { background: var(--amber-50); border-color: #fde68a; color: #78350f; }
.n-blue { background: var(--navy-50); border-color: var(--navy-100); color: var(--navy-800); }
.n-red { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }
.n-green { background: #f5faeb; border-color: #d9ecb8; color: #365314; }
.bar { height: 8px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--navy); border-radius: 99px; }
.bar.green > i { background: var(--green-500); }
.bar.sm { height: 6px; }
.live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }
.live.off { background: var(--faint); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--navy-100); color: var(--navy); display: inline-grid; place-items: center; font-weight: 600; font-size: 12px; flex: none; }
.avatar.lg { width: 44px; height: 44px; font-size: 15px; }

/* steps (order progress) */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: 14px; }
.steps .s { font-size: 11px; color: var(--muted); }
.steps .s i { display: block; height: 4px; border-radius: 4px; background: var(--line); margin-bottom: 6px; }
.steps .s.done { color: var(--ink-2); } .steps .s.done i { background: var(--navy); }
.steps .s.now { color: var(--ink); font-weight: 600; } .steps .s.now i { background: var(--lime); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 14px 20px; font-size: 13px; }
.timeline li::before { content: ''; position: absolute; left: 4px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--navy); }
.timeline li::after { content: ''; position: absolute; left: 7px; top: 15px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline .t { font-weight: 500; }
.timeline .m { color: var(--muted); font-size: 12px; }

/* ---------- tables ---------- */
.tbl { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 10px 16px; background: #fafbfc; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; z-index: 1; }
td { padding: 12px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr.click { cursor: pointer; } tr.click:hover td { background: #fafbfc; }
td .sub { font-size: 12px; color: var(--muted); }
.tbl.scroll { max-height: 68vh; }
.nowrap-cells td, .nowrap-cells th { white-space: nowrap; }
.who { display: flex; align-items: center; gap: 10px; }
.who b { font-weight: 500; display: block; }

/* ---------- overlays ---------- */
.overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 50; display: grid; place-items: center; padding: 16px; animation: fade .12s; }
@keyframes fade { from { opacity: 0; } }
.dialog { background: #fff; border-radius: 14px; width: 100%; max-width: 480px; max-height: 90vh; overflow: auto; box-shadow: var(--shadow-lg); }
.dialog.wide { max-width: 820px; }
.dialog .dh { padding: 20px 24px 0; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.dialog .db { padding: 16px 24px 24px; }
.sheet { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: #fff; z-index: 51; overflow: auto; box-shadow: var(--shadow-lg); animation: slide .18s ease-out; }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }
.sheet .sh { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; position: sticky; top: 0; background: #fff; z-index: 2; }
.sheet .sb { padding: 20px 24px 32px; }
#toast { position: fixed; top: calc(12px + env(safe-area-inset-top)); bottom: auto; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 70; font-size: 13px; font-weight: 500; max-width: calc(100vw - 32px); box-shadow: var(--shadow-lg); display: flex; gap: 8px; align-items: center; }
input[type="file"] { height: auto; padding: 6px; }
input[type="file"]::file-selector-button { font: inherit; font-size: 13px; font-weight: 600; height: 32px; padding: 0 12px; margin-right: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); cursor: pointer; }
/* Partner hub on phones: the four counters sit two by two so the bag list starts near the top. */
@media (max-width: 640px) {
  .hub-top ~ .content .cols-4, .hub-top ~ .content .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hub-top ~ .content .metric { padding: 14px; }
  .hub-top ~ .content .metric .value { font-size: 22px; overflow-wrap: anywhere; }
}
/* Fingers need about 44px to hit a control reliably: grow the small ones on touch screens. */
@media (pointer: coarse) {
  .icon-btn { width: 44px; height: 44px; }
  .seg button { height: 40px; }
  .btn-sm, a.avatar, .row.between > a.small { position: relative; }
  .btn-sm::after, a.avatar::after, .row.between > a.small::after { content: ''; position: absolute; inset: -8px -4px; }
}

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { height: 30px; width: auto; }
.brand span { font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.brand small { font-weight: 500; font-size: 12px; color: var(--muted); border-left: 1px solid var(--line); padding-left: 10px; margin-left: 2px; }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--navy); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side::after { content: ''; position: absolute; right: -120px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%; border: 60px solid rgba(132, 204, 22, .14); }
.auth-side h2 { color: #fff; font-size: 30px; font-weight: 700; max-width: 420px; line-height: 1.2; }
.auth-side p { color: #c7d2fe; max-width: 420px; margin-top: 12px; font-size: 15px; }
.auth-side .pts { margin-top: 28px; display: grid; gap: 12px; color: #e0e7ff; font-size: 14px; }
.auth-side .pts div { display: flex; gap: 10px; align-items: center; }
.auth-side .pts .ic { color: var(--lime); }
.auth-main { display: grid; place-items: center; padding: 32px 20px; background: var(--card); }
.auth-form { width: 100%; max-width: 380px; }
.auth-form h1 { font-size: 24px; margin-top: 28px; }
.demo { margin-top: 20px; padding: 12px 14px; border-radius: 10px; background: var(--bg); font-size: 12px; color: var(--muted); }
.demo code { font-family: inherit; font-weight: 600; color: var(--ink-2); }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* ---------- student app ---------- */
.app-shell { max-width: 560px; margin: 0 auto; min-height: 100vh; background: var(--bg); padding-bottom: 84px; }
@media (min-width: 640px) { body.app-body { background: #eceff3; } .app-shell { border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }
.app-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.app-header .top { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; }
.loc-bar { display: flex; align-items: center; gap: 6px; padding: 0 16px 10px; font-size: 13px; color: var(--ink-2); }
.loc-bar .ic { color: var(--muted); }
.loc-bar button { margin-left: auto; }
.app-main { padding: 16px; }
.app-main > * + * { margin-top: 16px; }
.hello h1 { font-size: 22px; }
.hello p { color: var(--muted); font-size: 13px; margin-top: 2px; }
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 560px; background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); z-index: 30; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
.tabbar button { background: none; color: var(--muted); height: 52px; flex-direction: column; gap: 3px; font-size: 11px; font-weight: 500; position: relative; }
.tabbar button:hover { background: none; color: var(--ink-2); }
.tabbar button.on { color: var(--navy); }
.tabbar .dotn { position: absolute; top: 6px; left: calc(50% + 6px); background: var(--red); color: #fff; border-radius: 99px; font-size: 10px; min-width: 16px; height: 16px; display: grid; place-items: center; padding: 0 4px; }
.plan-hero { background: var(--navy); color: #fff; border-radius: 14px; padding: 20px; position: relative; overflow: hidden; }
.plan-hero::after { content: ''; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; border: 28px solid rgba(255, 255, 255, .05); }
.plan-hero .k { font-size: 12px; color: #c7d2fe; }
.plan-hero .big { font-size: 34px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.plan-hero .bar { background: rgba(255, 255, 255, .15); }
.plan-hero .bar > i { background: var(--lime); }
.plan-hero .tag { background: rgba(255, 255, 255, .12); color: #fff; }
.plan-hero .tag.ok { background: rgba(132, 204, 22, .2); color: #d9f99d; }
.plan-hero .tag.bad { background: rgba(248, 113, 113, .2); color: #fecaca; }
.plan-hero .meta { display: flex; justify-content: space-between; gap: 8px; color: #c7d2fe; font-size: 12px; margin-top: 10px; }
.list-item { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.list-item:last-child { border-bottom: none; }
.list-item:hover { background: #fafbfc; }
.list-item .ico { width: 36px; height: 36px; border-radius: 10px; background: var(--navy-50); color: var(--navy); display: grid; place-items: center; flex: none; }
.list-item .t { font-weight: 500; }
.list-item .d { font-size: 12px; color: var(--muted); margin-top: 1px; }
.list-item .chev { color: var(--faint); }
.item-row { padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.item-row:last-child { border-bottom: none; }
.stepper { display: inline-flex; align-items: center; border: 1px solid #d0d5dd; border-radius: 8px; overflow: hidden; height: 40px; background: #fff; flex: none; }
.stepper button { background: #fff; color: var(--ink-2); height: 38px; width: 36px; padding: 0; border-radius: 0; }
.stepper button:hover { background: var(--bg); }
.stepper span { min-width: 34px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; }
.kv .k { color: var(--muted); }
.kv.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-weight: 600; font-size: 15px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal .h { font-size: 11px; color: var(--faint); text-align: center; padding-bottom: 4px; font-weight: 500; }
.cal button { height: 44px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; font-weight: 500; flex-direction: column; gap: 0; font-size: 14px; padding: 0; }
.cal button:hover { background: var(--navy-50); }
.cal button:disabled { background: transparent; border-color: transparent; color: #cbd5e1; opacity: 1; }
.cal button.avail { border-color: #cbd5e1; }
.cal button.avail::after { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--green-500); margin-top: 2px; }
.cal button.special { border-style: dashed; color: var(--muted); }
.cal button.special::after { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--amber); margin-top: 2px; }
.cal button.sel { background: var(--navy); color: #fff; border-color: var(--navy); }
.cal button.sel::after { background: var(--lime); }
.cal button small { font-size: 9px; color: var(--muted); line-height: 1; }
.compare th, .compare td { padding: 10px 12px; }
.diff { color: var(--red); font-weight: 600; }
.chat { display: flex; flex-direction: column; height: calc(100vh - 210px); min-height: 380px; }
.chat .msgs { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.msg { max-width: 82%; padding: 9px 13px; border-radius: 14px; font-size: 14px; white-space: pre-wrap; line-height: 1.45; }
.msg.me { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.admin { align-self: flex-start; background: var(--green-100); border-bottom-left-radius: 4px; }
.msg .w { font-size: 11px; font-weight: 600; color: var(--green); margin-bottom: 2px; }
.chat .suggest { display: flex; gap: 6px; overflow-x: auto; padding: 0 16px 10px; }
.chat .suggest button { flex: none; }
.chat form { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); background: #fff; border-radius: 0 0 var(--r) var(--r); }
.notif { padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.notif:last-child { border-bottom: none; }
.notif.unread { font-weight: 500; }
.notif .when { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---------- portals ---------- */
.portal { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow: auto; }
.sidebar .head { padding: 18px 18px 10px; }
.sidebar .grp { font-size: 11px; font-weight: 600; color: var(--faint); margin: 18px 18px 6px; letter-spacing: .02em; }
.sidebar nav { padding: 0 10px; }
.sidebar nav button { width: 100%; justify-content: flex-start; background: transparent; color: var(--ink-2); font-weight: 500; height: 36px; padding: 0 10px; margin-bottom: 1px; gap: 10px; }
.sidebar nav button .ic { color: var(--faint); }
.sidebar nav button:hover { background: var(--bg); }
.sidebar nav button.on { background: var(--navy-50); color: var(--navy); }
.sidebar nav button.on .ic { color: var(--navy); }
.sidebar nav button .cnt { margin-left: auto; font-size: 11px; font-weight: 600; background: var(--red-100); color: var(--red); border-radius: 99px; padding: 1px 7px; }
.sidebar nav button .cnt.amber { background: var(--amber-100); color: var(--amber); }
.sidebar .foot { margin-top: auto; padding: 14px 18px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.topbar { height: 60px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 0 28px; position: sticky; top: 0; z-index: 15; }
.topbar .crumb { font-size: 13px; color: var(--muted); }
.topbar .crumb b { color: var(--ink); font-weight: 600; }
.scan-top { height: 36px; padding: 0 14px; border-radius: 99px; background: var(--green-500); }
.scan-top:hover { background: var(--green); }
@media (max-width: 520px) { .scan-top { padding: 0 12px; } .scan-top + .status-chip #liveText { display: none; } }
.pin-in { font-size: 20px; letter-spacing: .3em; font-variant-numeric: tabular-nums; text-align: center; }
.pin-in::placeholder { letter-spacing: normal; font-size: 15px; }
.pin-big { font-size: clamp(30px, 11vw, 44px); font-weight: 800; letter-spacing: .12em; font-variant-numeric: tabular-nums; color: var(--navy-900); line-height: 1.1; }
.status-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; height: 30px; padding: 0 12px; background: var(--card); }
.content { padding: 24px 28px 48px; min-width: 0; }
.content > * + * { margin-top: 20px; }
.page-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.page-head p { color: var(--muted); margin-top: 4px; font-size: 13px; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.toolbar select, .toolbar input { width: auto; min-width: 180px; height: 36px; }
.hbar { display: grid; grid-template-columns: 140px 1fr 64px; gap: 12px; align-items: center; font-size: 13px; padding: 6px 0; }
.hbar .track { height: 10px; background: var(--line-2); border-radius: 99px; overflow: hidden; display: flex; }
.hbar .track i { display: block; height: 100%; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.legend span::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; background: var(--c); }
.chart-box { position: relative; height: 260px; padding: 16px 20px 20px; }
.feed-item { display: flex; gap: 10px; padding: 12px 20px; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.feed-item:last-child { border-bottom: none; }
.feed-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--navy-100); border: 2px solid var(--navy); margin-top: 5px; flex: none; }
.bag { padding: 16px 20px; border-bottom: 1px solid var(--line-2); display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.bag:last-child { border-bottom: none; }
.bag .code { font-weight: 600; font-variant-numeric: tabular-nums; }
.date-group { padding: 10px 20px; background: #fafbfc; border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.statement { font-variant-numeric: tabular-nums; font-size: 14px; }
.statement .r { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; }
.statement .r .l { color: var(--ink-2); }
.statement .ind { padding-left: 16px; }
.statement .ind .l { color: var(--muted); }
.statement .h { font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 18px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.statement .sub { border-top: 1px solid var(--line); font-weight: 600; }
.statement .grand { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); margin-top: 18px; padding: 12px 0; font-weight: 700; font-size: 16px; }
.counter-row td { padding: 10px 16px; }
/* Admin support inbox: list beside the open chat; on phones one at a time. */
.inbox { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: 16px; align-items: start; }
.inbox-list { max-height: calc(100vh - 210px); }
.inbox .list-item { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.inbox .list-item.on { background: var(--navy-50); }
.chat-h { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.chat-h .grow > * { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-back { display: none; margin-left: -8px; flex: none; }
.msg.sending { opacity: .6; }
.msg.sk { display: block; padding: 0; border: 0; }
.inbox-chat .msgs > .muted { align-self: center; }
@media (max-width: 760px) {
  .inbox { grid-template-columns: minmax(0, 1fr); }
  .inbox-list { max-height: none; }
  .inbox.reading .inbox-list, .inbox:not(.reading) .inbox-chat { display: none; }
  .chat-back { display: inline-grid; place-items: center; }
  .content:has(.inbox.reading) { padding-top: 8px; padding-bottom: 8px; }
  .content:has(.inbox.reading) .page-head { display: none; }
  .content:has(.inbox.reading) > * + * { margin-top: 0; }
  .inbox-chat { height: calc(100vh - 72px); height: calc(100dvh - 72px); min-height: 320px; }
  .inbox-chat .msg { max-width: 88%; }
  .inbox-chat form { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
}
/* Admin on phones and small tablets: the sidebar slides in from the menu button. */
.menu-btn, .scrim { display: none; }
@media (max-width: 960px) {
  .portal { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; z-index: 40; left: 0; top: 0; bottom: 0; width: min(290px, 84vw); height: 100%; transform: translateX(-100%); visibility: hidden; transition: transform .25s var(--out, ease), visibility .25s; padding-bottom: env(safe-area-inset-bottom); }
  .sidebar nav button { height: 42px; }
  .nav-open .sidebar { transform: none; visibility: visible; box-shadow: 0 20px 50px rgba(15, 31, 75, .25); }
  .scrim { display: block; position: fixed; inset: 0; z-index: 39; background: rgba(15, 23, 42, .4); opacity: 0; pointer-events: none; transition: opacity .25s; }
  .nav-open .scrim { opacity: 1; pointer-events: auto; }
  .menu-btn { display: inline-grid; place-items: center; margin-left: -8px; flex: none; }
  .topbar { padding: 0 16px; height: 56px; gap: 8px; }
  .topbar .crumb { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar .crumb > :not(b) { display: none; }
  .topbar .crumb b { font-size: 15px; }
  .content { padding: 16px 16px 40px; }
  .content > * + * { margin-top: 16px; }
  .hbar { grid-template-columns: 100px 1fr 56px; }
}
@media (max-width: 640px) {
  .portal h1 { font-size: 21px; }
  .portal .page-head { gap: 12px; }
  .portal .toolbar { width: 100%; }
  .portal .toolbar select, .portal .toolbar input { flex: 1 1 100%; min-width: 0; }
  .portal .card-b { padding: 16px; }
  .portal .card-h { padding: 14px 16px; }
  /* Two stat cards per row instead of one tall column. */
  .portal .cols-4, .portal .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .portal .cols-4 > :not(.metric), .portal .cols-3 > :not(.metric) { grid-column: 1 / -1; }
  .portal .metric { padding: 14px; }
  .portal .metric .label { font-size: 12px; gap: 6px; }
  .portal .metric .chip-ic { display: none; }
  .portal .metric .value { font-size: 20px; overflow-wrap: anywhere; }
  .portal .metric .foot { font-size: 11px; }
  /* 16px stops iPhones zooming into a field when it is tapped. */
  .portal input:not([type=checkbox]):not([type=radio]), .portal select, .portal textarea { font-size: 16px; }
}

/* ---------- clothes tiles (booking) ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 14px; }
.tile { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, background .15s; }
.tile .nm { font-weight: 500; font-size: 14px; line-height: 1.25; min-height: 2.5em; }
.tile.on { border-color: var(--navy); background: var(--navy-50); box-shadow: 0 0 0 1px var(--navy); }
.stepper.sm { height: 36px; align-self: flex-start; }
.stepper.sm button { height: 34px; width: 34px; }
.stepper.sm span { min-width: 28px; }
.tile.on .stepper span { color: var(--navy); }

/* ---------- website ---------- */
.site { background: #fff; overflow-x: hidden; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.lp-nav { position: absolute; top: 0; left: 0; right: 0; z-index: 30; }
.lp-nav .wrap { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lp-nav .logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 19px; letter-spacing: -.02em; text-decoration: none; }
.lp-nav .logo span.mk { width: 38px; height: 38px; border-radius: 10px; background: #fff; display: grid; place-items: center; }
.lp-nav .logo img { height: 28px; }
.lp-nav .links { display: flex; gap: 28px; }
.lp-nav .links a { color: rgba(255, 255, 255, .85); font-weight: 500; font-size: 14px; }
.lp-nav .links a:hover { color: #fff; text-decoration: none; }
.btn-lime { background: var(--lime); color: var(--navy-900); }
.btn-lime:hover { background: #a3e635; }
.btn-glass { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255, 255, 255, .22); }

.lp-hero { position: relative; min-height: 680px; color: #fff; display: flex; align-items: center; padding: 120px 0 72px; background: var(--navy-900) center/cover no-repeat; isolation: isolate; }
.lp-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(10, 22, 58, .96) 0%, rgba(15, 31, 75, .88) 42%, rgba(30, 58, 138, .35) 100%); }
.lp-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; width: 100%; }
.lp-hero .tag { display: inline-flex; align-items: center; gap: 8px; background: rgba(132, 204, 22, .16); color: #d9f99d; border: 1px solid rgba(132, 204, 22, .35); border-radius: 99px; padding: 6px 14px; font-size: 13px; font-weight: 600; }
.lp-hero h1 { color: #fff; font-size: clamp(38px, 6vw, 64px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; margin-top: 22px; }
.lp-hero h1 em { font-style: normal; color: var(--lime); }
.lp-hero .lead { font-size: 18px; color: #dbe4ff; max-width: 540px; margin-top: 20px; line-height: 1.6; }
.lp-hero .cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.lp-hero .cta .btn { height: 52px; padding: 0 24px; font-size: 16px; border-radius: 12px; }
.lp-hero .facts { margin-top: 36px; display: flex; gap: 28px; flex-wrap: wrap; }
.lp-hero .facts div { font-size: 13px; color: #c7d2fe; }
.lp-hero .facts b { display: block; font-size: 22px; color: #fff; font-weight: 700; letter-spacing: -.02em; }
.app-card { background: #fff; color: var(--ink); border-radius: 22px; padding: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); max-width: 360px; margin-left: auto; }
.app-card + .app-card { margin-top: 14px; }
.app-card .slots { background: var(--navy); color: #fff; border-radius: 16px; padding: 18px; }
.app-card .slots .k { font-size: 12px; color: #c7d2fe; }
.app-card .slots .big { font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.app-card .dots { display: flex; gap: 6px; margin-top: 12px; }
.app-card .dots i { flex: 1; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .18); }
.app-card .dots i.on { background: var(--lime); }
.app-card .line { display: flex; justify-content: space-between; padding: 9px 2px; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.app-card .line:last-child { border-bottom: none; }

.lp-strip { background: var(--lime); color: var(--navy-900); }
.lp-strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.lp-strip div { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 14px; }
.lp-strip .ic { width: 22px; height: 22px; }

.lp-sec { padding: 96px 0; }
.lp-sec.tint { background: #f3f6fd; }
.lp-head { max-width: 640px; }
.lp-head.center { margin: 0 auto; text-align: center; }
.lp-head .k { display: inline-block; font-size: 13px; font-weight: 700; color: var(--navy); background: var(--navy-100); border-radius: 99px; padding: 4px 12px; letter-spacing: .02em; }
.lp-head h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -.03em; margin-top: 14px; line-height: 1.1; }
.lp-head p { color: var(--muted); font-size: 17px; margin-top: 14px; line-height: 1.6; }
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 52px; }
.step3 { border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.step3 .ph { height: 220px; background: #dbe4f5 center/cover no-repeat; position: relative; }
.step3 .ph b { position: absolute; left: 16px; top: 16px; width: 40px; height: 40px; border-radius: 12px; background: var(--lime); color: var(--navy-900); display: grid; place-items: center; font-size: 17px; font-weight: 800; }
.step3 .tx { padding: 22px; }
.step3 h3 { font-size: 19px; font-weight: 700; }
.step3 p { color: var(--muted); margin-top: 8px; line-height: 1.6; font-size: 15px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.photo { border-radius: 24px; min-height: 520px; background: #dbe4f5 center/cover no-repeat; position: relative; overflow: hidden; }
.photo .float { position: absolute; left: 20px; right: 20px; bottom: 20px; }
.count-card { background: #fff; border-radius: 18px; padding: 18px; box-shadow: 0 20px 50px rgba(15, 23, 42, .25); max-width: 340px; }
.count-card .row1 { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; }
.count-card .tot { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; display: flex; justify-content: space-between; font-weight: 700; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; color: var(--ink-2); line-height: 1.5; }
.ticks li .ic { flex: none; width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--green-100); color: var(--green); margin-top: 1px; }
.ticks li b { color: var(--ink); }

.plans3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 44px; align-items: stretch; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px; display: flex; flex-direction: column; position: relative; }
.pcard.hot { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: 0 30px 60px rgba(30, 58, 138, .3); }
.pcard .flag { position: absolute; top: 20px; right: 20px; background: var(--lime); color: var(--navy-900); font-size: 12px; font-weight: 700; border-radius: 99px; padding: 4px 10px; }
.pcard h3 { font-size: 20px; font-weight: 700; }
.pcard.hot h3 { color: #fff; }
.pcard .sub { font-size: 14px; color: var(--muted); margin-top: 4px; }
.pcard.hot .sub { color: #c7d2fe; }
.pcard .price { font-size: 44px; font-weight: 800; letter-spacing: -.035em; margin-top: 18px; font-variant-numeric: tabular-nums; }
.pcard .price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.pcard.hot .price small { color: #c7d2fe; }
.pcard ul { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; font-size: 15px; }
.pcard li { display: flex; gap: 10px; align-items: flex-start; }
.pcard li .ic { color: var(--green-500); margin-top: 2px; }
.pcard.hot li .ic { color: var(--lime); }
.pcard .btn { margin-top: auto; height: 50px; border-radius: 12px; }
.plan-note { margin-top: 26px; text-align: center; color: var(--muted); font-size: 15px; }
.plan-note b { color: var(--ink); }

.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.why > div { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.why .chip-ic { width: 44px; height: 44px; border-radius: 12px; }
.why h3 { margin-top: 16px; font-size: 17px; }
.why p { color: var(--muted); margin-top: 6px; line-height: 1.6; font-size: 15px; }

.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--navy); font-weight: 500; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq p { color: var(--muted); margin-top: 10px; line-height: 1.65; }

.lp-cta { position: relative; border-radius: 28px; overflow: hidden; color: #fff; padding: 64px; background: var(--navy) center/cover no-repeat; isolation: isolate; }
.lp-cta::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15, 31, 75, .96), rgba(30, 58, 138, .75)); }
.lp-cta h2 { color: #fff; font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.03em; max-width: 560px; }
.lp-cta p { color: #dbe4ff; margin-top: 12px; font-size: 17px; max-width: 520px; }
.lp-cta .row { margin-top: 28px; }
.contacts { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.contacts a { display: inline-flex; gap: 10px; align-items: center; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px; padding: 12px 16px; font-weight: 500; }
.contacts a:hover { background: rgba(255, 255, 255, .18); text-decoration: none; }
.lp-foot { padding: 40px 0 48px; color: var(--muted); font-size: 14px; }
.lp-foot .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.lp-foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.lp-foot nav a { color: var(--muted); font-weight: 500; }

@media (max-width: 960px) {
  .lp-nav .links { display: none; }
  .lp-hero { min-height: 0; padding: 110px 0 56px; }
  .lp-hero::before { background: linear-gradient(180deg, rgba(10, 22, 58, .93), rgba(15, 31, 75, .86)); }
  .lp-hero .wrap, .split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .app-card { margin: 0 auto; }
  .lp-strip .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps3, .plans3, .why { grid-template-columns: minmax(0, 1fr); }
  .lp-sec { padding: 64px 0; }
  .photo { min-height: 420px; }
  .lp-cta { padding: 36px 24px; border-radius: 20px; }
}
@media (max-width: 480px) {
  .lp-hero .cta .btn { width: 100%; }
  .lp-hero .facts { gap: 18px; }
  .lp-strip div { font-size: 13px; }
  .lp-nav .btn { padding: 0 12px; height: 36px; font-size: 13px; }
}

.auth-side.with-photo { background: var(--navy-900) center/cover no-repeat; isolation: isolate; }
.auth-side.with-photo::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 31, 75, .55) 0%, rgba(15, 31, 75, .92) 70%); }
.auth-side.with-photo::after { display: none; }

/* ---------- motion, skeletons, 3D art ---------- */
.art { display: inline-block; object-fit: contain; flex: none; user-select: none; -webkit-user-drag: none; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .45s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
.pop { animation: pop .28s ease-out; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-12px) rotate(var(--r, 0deg)); } }
.floaty { animation: floaty 5s ease-in-out infinite; }
@keyframes shimmer { 0% { background-position: -320px 0; } 100% { background-position: 320px 0; } }
.sk { display: block; height: 12px; border-radius: 8px; background: linear-gradient(90deg, #e2e7ef 0, #f1f4f9 40%, #e2e7ef 80%) #e2e7ef; background-size: 640px 100%; animation: shimmer 1.3s linear infinite; }
.sk-circle { width: 32px; height: 32px; border-radius: 50%; flex: none; }
.sk-row { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.sk-row .sk { height: 12px; }
.sk-card + .sk-card { margin-top: 12px; }
button, .btn, .tile, .list-item, .choice, .card[data-go] { transition: transform .12s ease, background .15s, border-color .15s, box-shadow .15s; }
button:active:not(:disabled), .btn:active, .list-item:active, .choice:active { transform: scale(.97); }
.tile:active { transform: scale(.98); }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; }
@keyframes drive { to { transform: translateX(100%); } }
.road { position: relative; height: 44px; margin-top: 14px; border-radius: 12px; background: repeating-linear-gradient(90deg, #dbe4f5 0 14px, transparent 14px 26px) center/100% 2px no-repeat, var(--navy-50); }
.road .lane { position: absolute; top: 4px; left: 0; right: 44px; height: 36px; animation: drive 6s ease-in-out infinite alternate; will-change: transform; }
.road .truck { position: absolute; top: 0; left: 0; }
.road .flag { position: absolute; right: 8px; top: 6px; }
@keyframes ping { 75%, 100% { transform: scale(2.2); opacity: 0; } }
.pulse-dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); display: inline-block; }
.pulse-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--lime); animation: ping 1.6s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.check-draw path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .15s ease-out forwards; }
.view-in { animation: rise .32s ease-out both; }
.tile .art { width: 40px; height: 40px; }
.tile.on .art { animation: pop .3s ease-out; }
.svc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.svc label { border: 1px solid var(--line); border-radius: 12px; padding: 12px 10px; text-align: center; cursor: pointer; background: #fff; font-size: 13px; font-weight: 600; }
.svc label.on { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); background: var(--navy-50); }
.svc label input { display: none; }
.svc .p { display: block; font-size: 16px; font-weight: 700; margin-top: 4px; color: var(--navy); }
.notif-cta { display: flex; gap: 12px; align-items: center; background: linear-gradient(135deg, #f5faeb, #eef3ff); border: 1px solid #dbe7c4; border-radius: 14px; padding: 14px; }
/* Page-shaped skeletons */
.pg-sk { animation: skin .2s ease-out both; }
@keyframes skin { from { opacity: 0; } }
.pg-sk > * + * { margin-top: 14px; }
.sk-head { padding: 4px 0 2px; }
.sk-hero { background: linear-gradient(135deg, #1e3a8a, #2a4aa5); border: 0; padding: 22px; }
.sk.sk-on-dark { background: linear-gradient(90deg, rgba(255,255,255,.14) 0, rgba(255,255,255,.28) 40%, rgba(255,255,255,.14) 80%) rgba(255,255,255,.14); background-size: 640px 100%; }
.sk-list .sk-row:last-child { border-bottom: 0; }
.sk-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) { .sk-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sk-tile { display: flex; flex-direction: column; align-items: center; }
.sk-tile .sk:not(.sk-circle) { margin-left: auto; margin-right: auto; }
.sk-seg { display: flex; gap: 8px; }
.sk-chat { min-height: 260px; }
.sk { position: relative; overflow: hidden; }
/* Progress bar across the top during page changes */
#navbar-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 100; background: linear-gradient(90deg, var(--lime), #3b82f6); border-radius: 0 3px 3px 0; box-shadow: 0 0 10px rgba(132, 204, 22, .6); pointer-events: none; opacity: 0; }
#navbar-progress.go { opacity: 1; animation: navgo .9s cubic-bezier(.1, .7, .3, 1) forwards; }
#navbar-progress.done { opacity: 0; width: 100%; transition: width .2s ease-out, opacity .35s .15s; }
@keyframes navgo { from { width: 0; } to { width: 78%; } }
/* Smoother feel: lift on hover (desktop), springy taps, sliding tab indicator */
@media (hover: hover) { .card[data-go]:hover, .list-item:hover, .tile:hover, .plan:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15, 31, 75, .08); } }
.tabbar button { position: relative; transition: color .2s; }
.tabbar button.on::before { content: ''; position: absolute; top: 0; left: 50%; width: 28px; height: 3px; margin-left: -14px; border-radius: 0 0 3px 3px; background: var(--navy); animation: tabin .35s cubic-bezier(.16, 1, .3, 1); }
@keyframes tabin { from { transform: scaleX(0); } }
#toast { animation: toastin .4s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes toastin { from { opacity: 0; transform: translate(-50%, -16px) scale(.96); } }
/* ---------- motion round 3 ---------- */
:root { --spring: cubic-bezier(.34, 1.56, .64, 1); --out: cubic-bezier(.16, 1, .3, 1); }
/* Dialogs and sheets: spring in, ease out */
.overlay { animation: fade .22s ease-out; }
@media (hover: hover) and (pointer: fine) { .overlay { backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); } }
.dialog { animation: dlg .32s var(--out) both; }
@keyframes dlg { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.sheet { animation: sheetin .45s var(--out) both; }
@keyframes sheetin { from { transform: translateX(100%); } }
@media (max-width: 640px) { .overlay { place-items: end center; padding: 0; } .dialog { border-radius: 22px 22px 0 0; max-height: 88vh; animation-name: dlgup; animation-timing-function: var(--out); animation-duration: .45s; } .dialog::before { content: ''; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 10px auto 0; } }
@keyframes dlgup { from { transform: translateY(100%); } }
.closing { pointer-events: none; }
.closing.overlay, .closing .overlay { animation: fadeout .22s ease-in forwards; }
.closing .dialog { animation: dlgout .2s ease-in forwards; }
.closing .sheet { animation: sheetout .24s ease-in forwards; }
@keyframes fadeout { to { opacity: 0; } }
@keyframes dlgout { to { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes sheetout { to { transform: translateX(100%); } }
@media (max-width: 640px) { .closing .dialog { animation-name: dlgdown; } @keyframes dlgdown { to { transform: translateY(100%); } } }
/* Tap ripple */
.rp-host { overflow: hidden; isolation: isolate; }
.ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .08; transform: scale(0); pointer-events: none; animation: ripple .6s var(--out) forwards; z-index: -1; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
button:active:not(:disabled), .btn:active { transform: scale(.98); transition-duration: .08s; }
/* Lists cascade */
.rise-sm { animation: risesm .45s var(--out) both; }
@keyframes risesm { from { opacity: 0; transform: translateY(8px); } }
/* Progress ring and bars draw in */
.ring { flex: none; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; }
.ring .bg { stroke: rgba(255, 255, 255, .14); }
.ring .fg { stroke: var(--lime); stroke-linecap: round; stroke-dasharray: var(--c); stroke-dashoffset: var(--o); animation: ringdraw .9s .12s var(--out) both; }
.ring circle { stroke-width: 6; }
.ring text { transform: rotate(90deg); transform-origin: 38px 38px; fill: #fff; font-weight: 700; font-size: 16px; }
@keyframes ringdraw { from { stroke-dashoffset: var(--c); } }
.bar > i { transform-origin: left; animation: bargrow 1s .1s var(--out) both; }
@keyframes bargrow { from { transform: scaleX(0); } }
.steps .s i { transform-origin: left; }
.steps .s.done i, .steps .s.now i { animation: bargrow .5s var(--out) both; }
.steps .s:nth-child(2) i { animation-delay: .08s; } .steps .s:nth-child(3) i { animation-delay: .16s; } .steps .s:nth-child(4) i { animation-delay: .24s; } .steps .s:nth-child(5) i { animation-delay: .32s; } .steps .s:nth-child(6) i { animation-delay: .4s; }
.steps .s.now i { background: linear-gradient(90deg, var(--lime), #d9f99d, var(--lime)); background-size: 200% 100%; animation: bargrow .5s .3s var(--out) both, flow 1.6s linear infinite; }
@keyframes flow { to { background-position: -200% 0; } }
/* Hero cards */
.plan-hero { background: radial-gradient(420px 220px at 100% 0%, rgba(132, 204, 22, .16), transparent 60%), linear-gradient(145deg, #213f93 0%, #1e3a8a 55%, #172f73 100%); box-shadow: 0 14px 34px -14px rgba(30, 58, 138, .55); }
.plan-hero .hero-stat { font-size: 13px; color: #c7d2fe; }
.plan-hero .hero-stat b { color: #fff; font-weight: 600; }
.plan-hero .hero-stat span { opacity: .5; margin: 0 4px; }
.ring-wrap { position: relative; flex: none; }
.ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1; }
.ring-label b { font-size: 26px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ring-label span { font-size: 11px; color: #c7d2fe; margin-top: 3px; }
.slots { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.slots i { width: 18px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .16); animation: slotin .4s var(--out) both; }
.slots i.on { background: var(--lime); box-shadow: 0 0 0 1px rgba(163, 230, 53, .25); }
@keyframes slotin { from { opacity: 0; transform: scaleX(.3); } }
.bag-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.bag-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 5px; border-radius: 99px; background: var(--navy-50); border: 1px solid #e3e9f7; font-size: 12px; color: var(--ink-2); }
.bag-chip b { color: var(--navy); font-weight: 700; }
.bag-chip .art { width: 22px; height: 22px; }
.bag-chip.more { padding-left: 10px; color: var(--muted); }
.grow-in i { transform-origin: left; animation: bargrow .9s .15s var(--out) both; }
.plan-hero .hero-art { position: absolute; right: 10px; bottom: -14px; opacity: .22; pointer-events: none; filter: saturate(.6); }
.plan-hero > *:not(.hero-art) { position: relative; z-index: 1; }
.plan-hero .ring + .hero-art, .plan-hero .hero-art { z-index: 0; }
/* Springy entrances */
.spring-in { animation: springin .7s var(--spring) both; animation-delay: var(--d, 0s); }
@keyframes springin { from { opacity: 0; scale: .85; } to { opacity: 1; scale: 1; } }
.stage > .spring-in.floaty { animation: springin .9s var(--out) var(--d, 0s) both, floaty 5s ease-in-out calc(var(--d, 0s) + .8s) infinite; }
.stage.px-on > * { will-change: translate; }
.word { display: inline-block; animation: wordin .8s var(--out) both; }
@keyframes wordin { from { opacity: 0; transform: translateY(.35em); } }
.success-card .burst { position: relative; display: inline-block; }

@keyframes glow { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
/* Page transitions (View Transitions API) */
#view { view-transition-name: page; }
.tabbar { view-transition-name: tabbar; }
::view-transition-group(page) { animation: none; }
::view-transition-old(page) { animation: vt-out-l .14s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(page) { animation: vt-in-r .34s var(--out) .07s both; }
html[data-dir="back"]::view-transition-old(page) { animation-name: vt-out-r; }
html[data-dir="back"]::view-transition-new(page) { animation-name: vt-in-l; }
html[data-dir="fade"]::view-transition-old(page) { animation: vt-fadeout .12s ease-in both; }
html[data-dir="fade"]::view-transition-new(page) { animation: vt-fadein .26s ease-out .05s both; }
@keyframes vt-out-l { to { opacity: 0; transform: translateX(-10px); } }
@keyframes vt-in-r { from { opacity: 0; transform: translateX(18px); } }
@keyframes vt-out-r { to { opacity: 0; transform: translateX(10px); } }
@keyframes vt-in-l { from { opacity: 0; transform: translateX(-18px); } }
@keyframes vt-fadeout { to { opacity: 0; } }
@keyframes vt-fadein { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }
/* Never let anything push the page sideways on phones */
html, body { max-width: 100%; overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
.art-cloud { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .95; }
.art-cloud img { position: absolute; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .35)); }
.auth-side > * { position: relative; z-index: 1; }
.auth-side .art-cloud { position: absolute; }
/* plan cards inside the app */
.plan { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; position: relative; }
.plan.feat { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy), var(--shadow); }
.plan .flag { position: absolute; top: -11px; left: 20px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 600; border-radius: 99px; padding: 2px 10px; }
.plan ul { list-style: none; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.plan li { display: flex; gap: 8px; align-items: flex-start; }
.plan li .ic { color: var(--green-500); margin-top: 1px; }

/* ---------- mature visual pass ---------- */
.glyph { display: inline-grid; place-items: center; flex: none; background: var(--navy-50); color: var(--navy); border: 1px solid #e3e9f7; }
.glyph .ic { width: 46%; height: 46%; }
.glyph.g { background: var(--green-100); color: var(--green); border-color: #dcebc4; }
.glyph.a { background: var(--amber-50); color: var(--amber); border-color: #fde68a; }
.bag-chip .glyph { width: 20px !important; height: 20px !important; border-radius: 6px !important; border: 0; background: var(--card); }
.tile .glyph { width: 40px; height: 40px; }
.road .glyph { background: var(--card); }
h1, h2, h3 { letter-spacing: -.02em; }
.hello h1 { font-weight: 700; letter-spacing: -.03em; }
.card { box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.notif-cta { background: #fff; border: 1px solid var(--line); }
.auth-side { background: var(--navy-900); }
.auth-side::after { border: 0; width: 520px; height: 520px; right: -200px; bottom: -220px; background: radial-gradient(circle, rgba(132, 204, 22, .16), transparent 65%); }
.auth-side::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%); mask-image: linear-gradient(180deg, #000, transparent 80%); pointer-events: none; }
.auth-side h2 { font-size: 34px; letter-spacing: -.03em; line-height: 1.12; }
.plan-hero::after { display: none; }

/* ---------- order builder ---------- */
.allow { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; overflow: hidden; }
.allow > div { padding: 16px 18px; }
.allow > div + div { border-left: 1px solid var(--line); }
.allow .k, .oneoff-card .k { font-size: 12px; color: var(--muted); font-weight: 500; }
.allow b { display: block; font-size: 17px; letter-spacing: -.01em; margin-top: 2px; }
.mini-pills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.mini-pills i { width: 16px; height: 6px; border-radius: 99px; background: var(--line); }
.mini-pills i.on { background: var(--lime); }
.brow { padding: 14px 18px; border-bottom: 1px solid var(--line-2); display: grid; gap: 10px; }
.brow:last-child { border-bottom: 0; }
.brow-main { display: flex; gap: 10px; align-items: center; }
.brow-main select { flex: 1; min-width: 0; height: 40px; font-weight: 500; }
.brow-ctl { display: flex; gap: 10px; align-items: center; }
.brow-ctl select { flex: 1; min-width: 0; height: 40px; }
.brow-hint { display: flex; justify-content: space-between; gap: 10px; }
.empty-rows { display: flex; gap: 12px; align-items: center; padding: 18px; }
.proceed { letter-spacing: .04em; font-weight: 700; }
.seg button:disabled { opacity: .45; cursor: not-allowed; }
.pl { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 14px; max-height: 52vh; overflow-y: auto; }
.pl table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pl th { position: sticky; top: 0; background: #fafbfd; font-size: 12px; color: var(--muted); font-weight: 600; text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.pl td { padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
.pl .num { text-align: right; }
.pl .pl-grp td { background: #fafbfd; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 420px) { .allow { grid-template-columns: 1fr; } .allow > div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- admin order tools ---------- */
.actbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.actbar button { justify-content: center; height: 40px; font-size: 13px; }
.flds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 10px; }
.fld { padding: 10px 14px; border-bottom: 1px solid var(--line-2); min-width: 0; }
.fld:nth-child(odd) { border-right: 1px solid var(--line-2); }
.fld:nth-last-child(-n+2) { border-bottom: 0; }
.fld .k { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.fld .v { font-size: 14px; margin-top: 2px; overflow-wrap: anywhere; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; user-select: none; }
.switch input { display: none; }
.switch > span { width: 34px; height: 20px; border-radius: 99px; background: var(--line); position: relative; transition: background .2s; }
.switch > span::after { content: ''; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .2s; }
.switch input:checked + span { background: var(--navy); }
.switch input:checked + span::after { transform: translateX(14px); }
.seg-n:not(:empty) { margin-left: 6px; font-size: 11px; background: var(--amber-100); color: var(--amber); border-radius: 99px; padding: 0 6px; font-weight: 700; }
@media (max-width: 400px) { .brow-ctl select { font-size: 13px; padding-left: 8px; } }

/* ---------- team permissions ---------- */
.perm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.perm { display: flex; gap: 8px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; font-size: 13px; cursor: pointer; }
.perm input { width: 16px; height: 16px; margin-top: 1px; flex: none; accent-color: var(--navy); }
.perm:has(input:checked) { border-color: var(--navy); background: var(--navy-50); }
@media (max-width: 560px) { .perm-grid { grid-template-columns: 1fr; } }

/* ---------- item picker ---------- */
.pick { flex: 1; min-width: 0; height: 40px; display: flex; align-items: center; gap: 8px; background: #fff; color: var(--ink); border: 1px solid #d0d5dd; border-radius: 10px; padding: 0 12px; font-weight: 500; text-align: left; justify-content: flex-start; }
.pick .grow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick:hover { background: #fff; border-color: #b6bfcd; }
.pick-search { display: flex; align-items: center; gap: 8px; border: 1px solid #d0d5dd; border-radius: 10px; padding: 0 12px; height: 44px; margin-top: 4px; }
.pick-search input { border: 0; box-shadow: none; padding: 0; height: 40px; flex: 1; min-width: 0; outline: none; }
.pick-list { margin-top: 10px; max-height: min(52vh, 460px); overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 12px; }
.pick-grp { position: sticky; top: 0; z-index: 1; background: #fafbfd; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 8px 12px; border-bottom: 1px solid var(--line-2); }
.pick-row { width: 100%; display: flex; align-items: center; gap: 10px; background: #fff; color: var(--ink); border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; padding: 8px 12px; height: auto; text-align: left; justify-content: flex-start; font-weight: 400; }
.pick-row:hover { background: var(--navy-50); }
.pick-row b { display: block; font-weight: 500; font-size: 14px; }
.pick-row.on { background: var(--navy-50); color: var(--navy); }
.pick-row.hidden { display: none; }
.pick-add { border: 1px dashed var(--navy); border-radius: 12px; margin-top: 10px; }

/* ---------- checklist cards ---------- */
.ck-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 14px; padding: 16px; }
.ck { --c: var(--navy); --c-bg: var(--navy-50); background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); transition: transform .15s, box-shadow .15s; position: relative; }
.ck::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--c); }
@media (hover: hover) { .ck:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -18px rgba(15, 31, 75, .3); } }
.ck.c-wash { --c: #2563eb; --c-bg: #eff6ff; }
.ck.c-iron { --c: #65a30d; --c-bg: #f2f9e3; }
.ck.c-press { --c: #d97706; --c-bg: #fff7e6; }
.ck.c-mixed { --c: #7c3aed; --c-bg: #f5f0ff; }
.ck header { display: flex; gap: 10px; align-items: center; padding: 18px 16px 12px; }
.ck header .avatar { background: var(--c-bg); color: var(--c); }
.ck-k { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ck-name { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Flex so a narrow card moves Order to the next line instead of squeezing the category pill onto two lines. */
.ck-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 14px; padding: 10px 16px; margin: 0 12px; border-radius: 12px; background: var(--c-bg); }
.ck-meta b { font-size: 13px; }
.ck-cat { display: inline-block; white-space: nowrap; font-size: 12px; font-weight: 700; color: #fff; background: var(--c); border-radius: 99px; padding: 2px 10px; margin-top: 2px; }
.ck > .ck-k { padding: 0 16px; }
.ck-list { list-style: none; margin: 6px 0 0; padding: 0 16px; flex: 1; }
.ck-list li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.ck-list li:last-child { border-bottom: 0; }
.ck-bar { width: 64px; height: 6px; border-radius: 99px; background: var(--line-2); overflow: hidden; flex: none; }
.ck-bar i { display: block; height: 100%; background: var(--c); border-radius: 99px; transform-origin: left; animation: bargrow .8s var(--out) both; }
.ck-list b { min-width: 24px; text-align: right; }
.ck footer { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; padding: 12px 16px 16px; margin-top: 8px; border-top: 1px solid var(--line-2); }
.ck-total { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--c); line-height: 1.1; }
[data-copy].done { background: var(--green-100); color: var(--green); border-color: #cfe5a8; }

/* Phones: tab rows scroll sideways instead of running off the screen; the hub top bar fits. */
@media (max-width: 640px) {
  .card-h, .toolbar { flex-wrap: wrap; gap: 8px; }
  .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .seg::-webkit-scrollbar { display: none; }
  .seg button { flex: 0 0 auto; white-space: nowrap; }
  .hub-top { padding: 0 12px !important; gap: 8px; }
  .hub-top .brand small { display: none; }
  .hub-top .status-chip { min-width: 0; max-width: 46vw; overflow: hidden; }
  .hub-top #hubName { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hub-top #logout { padding: 0 8px; }
  .two-pane { grid-template-columns: minmax(0, 1fr) !important; }
  .card-h > * { min-width: 0; }
}

/* ---------- QR handover (rider page and student app) ---------- */
.qr-full { position: fixed; inset: 0; z-index: 60; background: #fff; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; align-items: center; padding: calc(16px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom)); animation: fade .15s; }
.qr-full.closing { animation: fadeout .2s forwards; }
.qr-full .qr-x { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 10px; }
.qr-body { width: 100%; max-width: 420px; margin: auto 0; padding-top: 36px; text-align: center; display: grid; gap: 12px; min-width: 0; }
.qr-body h2 { font-size: 20px; }
.qr-box { width: min(100%, 340px); aspect-ratio: 1; margin: 6px auto 0; border: 1px solid var(--line); border-radius: 16px; padding: 10px; background: #fff; display: grid; place-items: center; }
.qr-svg { width: 100%; height: 100%; display: block; }
.qr-code { font-size: clamp(30px, 11vw, 46px); font-weight: 800; letter-spacing: .04em; font-variant-numeric: tabular-nums; color: var(--navy-900); line-height: 1.1; overflow-wrap: anywhere; }
.qr-timer { font-variant-numeric: tabular-nums; }
.scan-box { position: relative; width: min(100%, 380px); aspect-ratio: 1; margin: 4px auto 0; border-radius: 18px; overflow: hidden; background: #0b1220; }
.scan-box video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-box video.mirror { transform: scaleX(-1); }
/* Aim frame: four corner brackets, a sweeping laser, and a green (read) or red (rejected) flash. */
.scan-frame { --c: rgba(255, 255, 255, .95); position: absolute; inset: 16%; border-radius: 18px; box-shadow: 0 0 0 999px rgba(11, 18, 32, .42); transition: box-shadow .2s; }
.scan-frame > i { position: absolute; width: 22%; height: 22%; border: 4px solid var(--c); filter: drop-shadow(0 0 2px rgba(11, 18, 32, .5)); transition: border-color .15s; }
.scan-frame > i:nth-child(1) { top: -2px; left: -2px; border-right: 0; border-bottom: 0; border-top-left-radius: 18px; }
.scan-frame > i:nth-child(2) { top: -2px; right: -2px; border-left: 0; border-bottom: 0; border-top-right-radius: 18px; }
.scan-frame > i:nth-child(3) { bottom: -2px; left: -2px; border-right: 0; border-top: 0; border-bottom-left-radius: 18px; }
.scan-frame > i:nth-child(4) { bottom: -2px; right: -2px; border-left: 0; border-top: 0; border-bottom-right-radius: 18px; }
.scan-laser { position: absolute; left: 6%; right: 6%; top: 8%; height: 2px; border-radius: 2px; background: #a3e635; box-shadow: 0 0 10px 2px rgba(163, 230, 53, .7); animation: laser 2.2s ease-in-out infinite alternate; }
@keyframes laser { to { top: 92%; } }
.scan-tick { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .2s; }
.scan-tick .ic { width: 64px; height: 64px; padding: 14px; border-radius: 50%; background: var(--green-500); color: #fff; stroke-width: 3; }
.scan-box.is-ok .scan-frame { --c: #a3e635; box-shadow: 0 0 0 999px rgba(77, 124, 15, .45); }
.scan-box.is-ok .scan-tick { opacity: 1; transform: none; }
.scan-box.is-ok .scan-laser, .scan-box.is-bad .scan-laser { animation-play-state: paused; opacity: 0; }
.scan-box.is-bad .scan-frame { --c: #f87171; box-shadow: 0 0 0 999px rgba(185, 28, 28, .38); animation: shake .35s; }
.scan-box.is-bad .scan-msg { background: rgba(185, 28, 28, .85); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.scan-tools { position: absolute; top: 10px; right: 10px; display: flex; gap: 8px; }
.scan-tool { width: 40px; height: 40px; min-height: 0; padding: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(11, 18, 32, .55); color: #fff; border: 1px solid rgba(255, 255, 255, .25); box-shadow: none; }
.scan-tool .ic { width: 20px; height: 20px; }
.scan-tool:hover { background: rgba(11, 18, 32, .75); }
.scan-tool.on, .scan-tool.on:hover { background: #fde047; color: #0b1220; }
.scan-tool.off { opacity: .7; }
.scan-tool:disabled { opacity: .5; }
.scan-msg { position: absolute; left: 12px; right: 12px; bottom: 12px; color: #fff; background: rgba(11, 18, 32, .65); border-radius: 10px; padding: 8px 10px; transition: background .15s; }
@media (prefers-reduced-motion: reduce) { .scan-laser { animation: none; top: 50%; } .scan-box.is-bad .scan-frame { animation: none; } }
.qr-full.no-cam .scan-box { aspect-ratio: auto; background: var(--amber-100, #fef3c7); }
.qr-full.no-cam .scan-box video, .qr-full.no-cam .scan-frame, .qr-full.no-cam .scan-tools { display: none; }
.qr-full.no-cam .scan-msg { position: static; background: none; color: var(--ink-2); padding: 14px; }
.scan-manual { text-align: left; }
.scan-manual input { text-transform: uppercase; }
.done-mark { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; background: var(--green-100); color: var(--green); }
.done-mark .ic { width: 36px; height: 36px; }
.pk-list { overflow: hidden; }
.pk-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.pk-row:last-child { border-bottom: 0; }
.pk-row b { font-weight: 600; overflow-wrap: anywhere; }
.stepper input { width: 52px; height: 38px; padding: 0; border: 0; border-left: 1px solid var(--line-2); border-right: 1px solid var(--line-2); border-radius: 0; box-shadow: none; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { box-shadow: inset 0 0 0 2px var(--navy-100); }

/* ---------- rider page ---------- */
.rider-main { max-width: 760px; margin: 0 auto; }
.rider-scan { height: 64px; font-size: 17px; border-radius: 14px; }
.rider-scan .ic { width: 22px; height: 22px; }
.rider-bag { align-items: flex-start; }
.rider-bag > .grow { min-width: 0; flex: 1 1 260px; }
.rider-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.rider-acts > * { flex: 1 1 auto; }
.rider-acts .btn-ghost { flex: 0 1 auto; }
.rider-who { display: flex; gap: 6px; flex-wrap: wrap; align-items: baseline; margin-top: 6px; }
@media (max-width: 640px) { .rider-acts > button:not(.btn-ghost) { flex-basis: 100%; } }

/* ---------- policy checkboxes, claims, plan refund ---------- */
.terms-ck { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 13px; color: var(--ink-2); line-height: 1.5; cursor: pointer; }
.terms-ck input { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.terms-ck a { font-weight: 600; }
.rules-ck { background: var(--amber-100); border: 1px solid #fde68a; border-radius: 10px; padding: 12px 14px; margin-top: 0; }
.terms-ck.shake { animation: nudge .35s; border-color: #d97706; }
@keyframes nudge { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.terms-sum { padding-left: 18px; margin: 8px 0 12px; display: grid; gap: 6px; color: var(--ink-2); }
.refund-card .ic { color: var(--navy); margin-top: 2px; }

/* Pop-ups scroll on their own without dragging the page behind them */
html.scroll-locked, html.scroll-locked body { overflow: hidden; overscroll-behavior: none; }
.overlay, .dialog, .sheet, .qr-full, .pick-list { overscroll-behavior: contain; }

/* Calm status dot (no pulsing glow) */
.dot-ok { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
/* Chat: quick questions scroll sideways without a stray scrollbar, and fade at the edge */
.chat .suggest { scrollbar-width: none; padding-top: 4px; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.chat .suggest::-webkit-scrollbar { display: none; }
.chat .msgs { overscroll-behavior: contain; }

/* Password eye, live password checklist and field hints */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px; width: 100%; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; padding: 0; background: none; color: var(--muted); border: 0; box-shadow: none; }
.pw-eye:hover { background: none; color: var(--ink); }
.pw-rules { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 12px; }
.pw-rules span { display: inline-flex; align-items: center; gap: 4px; }
.pw-rules .ok { color: var(--green, #15803d); }
.pw-rules .no { color: var(--muted); }
.pw-rules svg { width: 13px; height: 13px; }
.field-msg { font-size: 12.5px; color: var(--red); margin-top: 6px; min-height: 0; }
.field-msg b { color: var(--ink); }
.field-msg:empty { display: none; }

/* Light option list for dropdowns on phones */
.pick-back { position: fixed; inset: 0; z-index: 2000; background: rgba(11,18,32,0); display: flex; align-items: flex-end; justify-content: center; transition: background .18s; }
.pick-back.in { background: rgba(11,18,32,.35); }
.pick-sheet { width: 100%; max-width: 520px; max-height: 70vh; display: flex; flex-direction: column; background: var(--card); border-radius: 18px 18px 0 0; box-shadow: 0 -8px 30px rgba(11,18,32,.15); padding: 8px 0 calc(12px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .18s ease-out; }
.pick-back.in .pick-sheet { transform: none; }
.pick-grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 2px auto 8px; }
.pick-title { font-size: 13px; font-weight: 600; color: var(--muted); padding: 0 20px 8px; }
.pick-list { overflow-y: auto; overscroll-behavior: contain; }
.pick-opt { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 20px; font-size: 15px; color: var(--ink); border-top: 1px solid var(--line-2); cursor: pointer; }
.pick-opt:active { background: var(--bg); }
.pick-opt:disabled { color: var(--faint, #94a3b8); }
.pick-opt i { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #cbd5e1; }
.pick-opt.on { font-weight: 600; }
.pick-opt.on i { border-color: var(--green-500); box-shadow: inset 0 0 0 4px #fff; background: var(--green-500); }

/* Shared handover link page */
.share-page { min-height: 100vh; }
.share-top { height: 60px; display: flex; align-items: center; padding: 0 20px; background: #fff; border-bottom: 1px solid var(--line); }
.share-main { max-width: 480px; margin: 0 auto; padding: 20px 16px 40px; display: flex; flex-direction: column; gap: 14px; }
.share-head h1 { font-size: 22px; margin-top: 4px; }
.share-meta { margin-top: 4px; }
.share-exp { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 5px 10px; border-radius: 999px; background: var(--green-100); color: var(--green); font-weight: 500; }
.share-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.share-msg { text-align: center; padding: 32px 22px; }
.share-msg h1 { font-size: 20px; margin: 12px 0 6px; }
.share-ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto; background: var(--line-2); color: var(--muted); }
.share-foot { text-align: center; padding: 0 8px; }
.share-link { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border: 1px dashed #d0d5dd; border-radius: var(--r-sm); background: var(--bg); font-size: 13px; word-break: break-all; }

/* Install steps (iPhone / iPad: Share > Add to Home Screen) */
.install-steps { margin: 16px 0 0; padding-left: 22px; display: grid; gap: 10px; line-height: 1.5; }
.install-steps .ic { width: 16px; height: 16px; vertical-align: -3px; color: var(--navy); }

/* ---------- workflow map (admin) ---------- */
.wf-canvas { position: relative; height: calc(100vh - 210px); min-height: 460px; overflow: hidden; touch-action: none; cursor: grab; user-select: none; outline: none;
  border: 1px solid var(--line); border-radius: 14px; background-color: #f4f5f8; background-image: radial-gradient(circle, #c9ced8 1px, transparent 1.2px); background-size: 20px 20px; }
.wf-canvas.panning { cursor: grabbing; }
.wf-canvas:focus-visible { box-shadow: 0 0 0 2px var(--navy-600); }
.wf-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.wf-world.anim { transition: transform .5s var(--out, ease); }
.wf-edges { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: visible; }
.wf-edge { color: #9aa3b2; --c: #9aa3b2; transition: opacity .2s; }
.wf-line { fill: none; stroke: currentColor; stroke-width: 2; }
.wf-head { fill: currentColor; }
.wf-flow { fill: none; stroke: var(--c); stroke-width: 2.5; stroke-dasharray: 2 12; stroke-linecap: round; animation: wfflow 1s linear infinite; }
@keyframes wfflow { to { stroke-dashoffset: -14; } }
.wf-edge.flow .wf-line { stroke: color-mix(in srgb, var(--c) 35%, #9aa3b2); }
.wf-hit { fill: none; stroke: transparent; stroke-width: 16; cursor: pointer; pointer-events: stroke; }
.wf-edge.sel, .wf-edge.on { color: var(--c); } .wf-edge.sel .wf-line, .wf-edge.on .wf-line { stroke-width: 3; }
.wf-temp { fill: none; stroke: var(--navy-600); stroke-width: 2; stroke-dasharray: 6 4; }
.wf-elabel { width: fit-content; max-width: 120px; margin: 0 auto; padding: 0 9px; background: #fff; border: 1px solid var(--line); border-radius: 99px; line-height: 22px; font-size: 11px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: var(--shadow-sm); }

.wf-node { position: absolute; display: flex; flex-direction: column; align-items: center; text-align: center; cursor: pointer; --c: var(--navy); transition: opacity .2s, filter .2s; }
.wf-box { position: relative; width: 84px; height: 84px; border-radius: 18px; background: #fff; border: 2px solid #d5dae3; display: grid; place-items: center; color: var(--c);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 12px rgba(16, 24, 40, .06); transition: border-color .15s, box-shadow .15s, transform .15s; }
.wf-box > .ic { width: 36px; height: 36px; stroke-width: 1.8; }
.wf-box::before { content: ''; position: absolute; inset: 6px; border-radius: 12px; background: color-mix(in srgb, var(--c) 9%, transparent); }
.wf-node:hover .wf-box, .wf-node:focus-visible .wf-box { border-color: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 15%, transparent), 0 6px 16px rgba(16, 24, 40, .1); }
.wf-node:focus-visible { outline: none; }
.wf-node.sel .wf-box, .wf-node.cur .wf-box { border-color: var(--c); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 22%, transparent), 0 8px 20px rgba(16, 24, 40, .14); }
.wf-node.drop .wf-box { border-color: var(--c); transform: scale(1.06); }
.wf-node.dragging { z-index: 2; } .wf-node.dragging .wf-box { box-shadow: 0 14px 30px rgba(16, 24, 40, .2); transform: scale(1.03); }
.wf-node.busy .wf-box { border-color: color-mix(in srgb, var(--c) 55%, #d5dae3); }
.wf-count { position: absolute; top: -10px; right: -12px; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 99px; background: #fff; color: var(--muted); border: 2px solid #d5dae3; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.wf-node.busy .wf-count { background: var(--c); border-color: #fff; color: #fff; box-shadow: 0 2px 6px color-mix(in srgb, var(--c) 45%, transparent); }
.wf-l { font-weight: 600; font-size: 13px; margin-top: 8px; color: var(--ink); line-height: 1.3; max-width: 100%; overflow-wrap: anywhere; }
.wf-b { font-size: 11px; color: var(--muted); margin-top: 2px; line-height: 1.3; max-width: 100%; }
.wf-sticky { align-items: stretch; text-align: left; background: #fef9c3; border: 1px solid #fde047; border-radius: 10px; padding: 12px 14px; box-shadow: 0 2px 8px rgba(161, 98, 7, .12); cursor: default; }
.editing .wf-sticky { cursor: pointer; }
.wf-sticky.sel { outline: 2px solid #ca8a04; outline-offset: 2px; }
.wf-st-t { font-weight: 700; font-size: 13px; color: #713f12; }
.wf-st-b { font-size: 12px; color: #854d0e; margin-top: 4px; white-space: pre-wrap; line-height: 1.45; }
.wf-port { position: absolute; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: #fff; border: 2px solid #9aa3b2; z-index: 1; }
.wf-in { left: -8px; pointer-events: none; } .wf-out { right: -8px; cursor: crosshair; }
.wf-out:hover { background: var(--c); border-color: var(--c); transform: scale(1.3); }
.wf-sticky .wf-port { --c: #ca8a04; }
.wf-plus { position: absolute; top: 50%; right: -46px; margin-top: -12px; width: 24px; height: 24px; min-height: 0; padding: 0; border-radius: 6px; background: #fff; color: var(--muted); border: 1px solid #c5ccd6; display: none; place-items: center; z-index: 1; }
.wf-plus::before { content: ''; position: absolute; right: 100%; top: 50%; width: 16px; border-top: 2px solid #c5ccd6; }
.wf-plus:hover { color: #fff; background: var(--c, var(--navy)); border-color: var(--c, var(--navy)); }
.editing .wf-node:not(.has-out) .wf-plus, .editing .wf-node:hover .wf-plus, .editing .wf-node.sel .wf-plus { display: grid; }
.wf-canvas.hl .wf-node:not(.on), .wf-canvas.hl .wf-edge:not(.on) { opacity: .35; }
.wf-canvas.touring .wf-node:not(.cur) { opacity: .3; filter: grayscale(.6); } .wf-canvas.touring .wf-node.seen:not(.cur) { opacity: .7; filter: none; }
.wf-canvas.touring .wf-edge { opacity: .25; } .wf-canvas.touring .wf-edge.seen { opacity: 1; color: var(--c); }

.wf-ui { position: absolute; z-index: 5; }
.wf-top { left: 12px; right: 12px; top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; pointer-events: none; }
.wf-top > div { display: flex; align-items: center; gap: 6px; pointer-events: auto; background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: 12px; padding: 5px; box-shadow: var(--shadow); min-width: 0; }
.wf-top select { height: 34px; width: auto; max-width: 260px; border: 0; background-color: transparent; font-weight: 600; }
.wf-unsaved, .wf-saved { font-size: 12px; font-weight: 600; padding: 0 6px; white-space: nowrap; } .wf-unsaved { color: var(--amber); } .wf-saved { color: var(--muted); font-weight: 500; }
.wf-ctrl { left: 12px; bottom: 12px; display: flex; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 4px; box-shadow: var(--shadow); }
.wf-hint { left: 50%; bottom: 16px; transform: translateX(-50%); font-size: 12px; color: var(--muted); background: rgba(255, 255, 255, .85); border-radius: 99px; padding: 4px 12px; pointer-events: none; white-space: nowrap; }
.touring .wf-hint, .panel-open .wf-hint { display: none; }
.wf-mini { right: 12px; bottom: 12px; width: 190px; height: 120px; background: rgba(255, 255, 255, .95); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; cursor: pointer; }
.wf-mini svg { width: 100%; height: 100%; display: block; }
.wf-mini-e { fill: none; stroke: #c5ccd6; stroke-width: 6; }
.wf-mini-v { fill: rgba(30, 58, 138, .07); stroke: var(--navy-600); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.panel-open .wf-mini, .touring .wf-mini { display: none; }
.wf-fab { right: 12px; top: 68px; width: 44px; height: 44px; padding: 0; border-radius: 12px; display: grid; place-items: center; box-shadow: var(--shadow-lg); }
.panel-open .wf-fab { display: none; }
.wf-eacts { position: absolute; transform: translate(-50%, -150%); display: flex; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 3px; box-shadow: var(--shadow); }
.wf-eacts .icon-btn { width: 30px; height: 30px; }
.wf-empty { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }

.wf-panel { top: 66px; right: 12px; bottom: 12px; width: 340px; max-width: calc(100% - 24px); overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 16px; cursor: default; user-select: text;
  transform: translateX(calc(100% + 24px)); visibility: hidden; transition: transform .3s var(--out, ease), visibility .3s; }
.wf-panel.open { transform: none; visibility: visible; }
.wf-p-h { display: flex; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.wf-p-h h3 { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
.wf-p-ic { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; color: var(--c, var(--navy)); background: color-mix(in srgb, var(--c, var(--navy)) 12%, #fff); }
.wf-p-ic .ic { width: 22px; height: 22px; }
.wf-p-type { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.wf-p-live { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--c) 8%, #fff); border: 1px solid color-mix(in srgb, var(--c) 22%, #fff); }
.wf-p-live > b { font-size: 28px; line-height: 1; color: var(--c); }
.wf-bags { margin-top: 10px; display: grid; gap: 6px; }
.wf-bag { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.wf-bag:hover { background: var(--bg); }
.wf-bag .t { font-size: 13px; font-weight: 600; } .wf-bag .d { font-size: 12px; color: var(--muted); }
.wf-p-sec { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--faint); margin: 16px 0 6px; }
.wf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wf-chip { height: auto; min-height: 30px; padding: 4px 10px; font-size: 12px; font-weight: 500; background: #fff; color: var(--ink-2); border: 1px solid var(--line); border-radius: 99px; gap: 6px; text-align: left; }
.wf-chip:hover { border-color: var(--c); background: color-mix(in srgb, var(--c) 6%, #fff); }
.wf-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.wf-p-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.wf-danger { color: var(--red); }

.wf-picker { width: 320px; max-height: 380px; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 48px rgba(16, 24, 40, .2); overflow: hidden; z-index: 8; cursor: default; }
.wf-pk-h { padding: 10px; border-bottom: 1px solid var(--line-2); } .wf-pk-h input { height: 38px; }
.wf-pl { overflow: auto; padding: 6px; }
.wf-pi { width: 100%; height: auto; white-space: normal; display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 8px; background: transparent; color: var(--ink); border-radius: 10px; font-weight: 400; }
.wf-pi:hover, .wf-pi:focus-visible { background: var(--bg); }
.wf-pi .grow { min-width: 0; } .wf-pi b { display: block; font-size: 13px; } .wf-pi span span { display: block; font-size: 12px; color: var(--muted); line-height: 1.35; margin-top: 1px; }
.wf-pi-ic { width: 32px; height: 32px; flex: none; border-radius: 9px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); }

.wf-tour { left: 0; right: 0; margin: 0 auto; bottom: 16px; width: min(520px, calc(100% - 24px)); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 48px rgba(16, 24, 40, .2); overflow: hidden; cursor: default; user-select: text; animation: dlg .35s var(--out) both; }
.wf-tour-bar { height: 4px; background: var(--line-2); } .wf-tour-bar span { display: block; height: 100%; background: var(--c); transition: width .4s var(--out); }
.wf-tour-b { display: flex; gap: 12px; padding: 14px 14px 0 16px; } .wf-tour-b h3 { margin: 2px 0 0; font-size: 17px; }
.wf-tour-f { display: flex; align-items: center; gap: 8px; padding: 12px 14px 14px 16px; }

body.wf-full .wf-canvas { position: fixed; inset: 0; height: auto; margin: 0; z-index: 30; border-radius: 0; border: 0; animation: none; }
body.wf-full .sidebar, body.wf-full .topbar { display: none; }
body.wf-full #view { transform: none !important; animation: none !important; }
@media (max-width: 760px) {
  .wf-canvas { height: calc(100vh - 220px); min-height: 380px; }
  .wf-top { flex-wrap: wrap; } .wf-top select { max-width: 150px; }
  .wf-hint { display: none; }
  .wf-tour-f .xs { display: none; }
}
@media (prefers-reduced-motion: reduce) { .wf-flow { animation: none; stroke-dasharray: none; } .wf-world.anim { transition: none; } }

/* Admin sidebar folded to icons (desktop). */
.side-btn { display: inline-grid; place-items: center; margin-left: -10px; flex: none; }
@media (min-width: 961px) {
  .portal { transition: grid-template-columns .25s var(--out, ease); }
  .portal.side-min { grid-template-columns: 68px 1fr; }
  .side-min .sidebar { overflow-x: hidden; }
  .side-min .sidebar .head { padding: 18px 0 10px; display: flex; justify-content: center; }
  .side-min .sidebar .head .brand > span, .side-min .sidebar .head .brand > small { display: none; }
  .side-min .sidebar .grp { font-size: 0; height: 1px; background: var(--line); margin: 12px 14px 8px; }
  .side-min .sidebar nav button { justify-content: center; padding: 0; position: relative; }
  .side-min .sidebar nav button > span:not(.cnt) { display: none; }
  .side-min .sidebar nav button .cnt { position: absolute; top: 2px; right: 4px; margin: 0; padding: 0 4px; min-width: 16px; font-size: 9px; line-height: 14px; text-align: center; }
  .side-min .sidebar .foot { flex-direction: column; padding: 12px 6px; gap: 8px; }
  .side-min .sidebar .foot .grow { display: none; }
}
@media (max-width: 960px) { .side-btn { display: none; } }

/* ---------- bag checks (verified pickup / count / wash / delivered) ---------- */
.checks-strip { display: flex; flex-wrap: wrap; gap: 6px; }
.checks-strip span { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; padding: 3px 9px 3px 7px; border-radius: 99px; background: var(--line-2); color: var(--muted); }
.checks-strip span.ok { background: var(--green-100); color: var(--green); }
.checks-strip .ic { width: 14px; height: 14px; }
.link-btn { all: unset; cursor: pointer; font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.link-btn:hover { color: var(--navy); text-decoration-color: currentColor; }
.link-btn:focus-visible { outline: 2px solid var(--navy-600); outline-offset: 2px; border-radius: 4px; }
.plan-tl li.future::before { background: #fff; border: 2px solid var(--navy); width: 5px; height: 5px; }
.plan-tl li.k-slot::before { background: var(--green-500); }
.plan-tl li.k-refunded::before, .plan-tl li.k-replaced::before, .plan-tl li.k-expired::before { background: var(--faint); }

/* ---------- student journey map (where my clothes are) ---------- */
.jm { margin-top: 14px; }
.jm-row { display: flex; align-items: flex-start; }
.jm-n { all: unset; box-sizing: border-box; position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; text-align: center; -webkit-tap-highlight-color: transparent; }
/* The line from the previous step runs behind each step's icon. */
.jm-n + .jm-n::before { content: ''; position: absolute; top: 16px; right: 50%; width: 100%; height: 2px; background: var(--line); border-radius: 2px; }
.jm-n.l-done::before { background: var(--navy); }
.jm-n.l-flow::before { background: repeating-linear-gradient(90deg, var(--lime) 0 5px, transparent 5px 9px); background-size: 18px 2px; animation: jmflow .8s linear infinite; }
.jm-b { position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); color: var(--faint); transition: transform .15s, box-shadow .15s; }
.jm-l { font-size: 10px; line-height: 1.2; color: var(--faint); font-weight: 500; }
.jm-n.done .jm-b { background: var(--navy); border-color: var(--navy); color: #fff; }
.jm-n.done .jm-l { color: var(--ink-2); }
.jm-n.now .jm-b { border-color: var(--lime); background: var(--green-100); color: var(--green); animation: jmpulse 1.8s ease-out infinite; }
.jm-n.now .jm-l { color: var(--ink); font-weight: 700; }
.jm-n.warn .jm-b { border-color: var(--amber); background: var(--amber-100); color: var(--amber); animation-name: jmpulsew; }
.jm-n.pick .jm-b { transform: scale(1.12); box-shadow: 0 0 0 3px var(--navy-100); }
.jm-n:focus-visible .jm-b { outline: 2px solid var(--navy-600); outline-offset: 2px; }
.jm-where { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--bg); font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.jm-where .ic { color: var(--green); margin-top: 1px; }
.jm-where.info { background: var(--navy-50); } .jm-where.info .ic { color: var(--navy); }
.jm.sm .jm-b { width: 28px; height: 28px; border-radius: 9px; } .jm.sm .jm-b .ic { width: 14px; height: 14px; } .jm.sm .jm-n + .jm-n::before { top: 13px; }
.jm.sm .jm-l { font-size: 9px; }
@media (max-width: 400px) { .jm-l { font-size: 9px; letter-spacing: -.01em; } .jm-b { width: 30px; height: 30px; border-radius: 10px; } .jm-n + .jm-n::before { top: 14px; } }
@keyframes jmpulse { 0% { box-shadow: 0 0 0 0 rgba(132, 204, 22, .5); } 70%, 100% { box-shadow: 0 0 0 9px rgba(132, 204, 22, 0); } }
@keyframes jmpulsew { 0% { box-shadow: 0 0 0 0 rgba(180, 83, 9, .4); } 70%, 100% { box-shadow: 0 0 0 9px rgba(180, 83, 9, 0); } }
@keyframes jmflow { to { background-position: 18px 0; } }
@media (prefers-reduced-motion: reduce) { .jm-n.now .jm-b, .jm-n.l-flow::before { animation: none; } }
.wf-node.dim .wf-box { border-style: dashed; } .wf-node.dim .wf-l { color: var(--muted); }
.wf-hubinfo { margin-top: 12px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 12px; }
.wf-hubinfo .kv { font-size: 13px; }
.wf-hubform { margin-top: 4px; padding: 2px 12px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fafbfc; }
.hub-card.click { cursor: pointer; transition: border-color .15s, box-shadow .15s; } .hub-card.click:hover { border-color: var(--navy-100); box-shadow: var(--shadow-lg); }
.hub-edit { color: var(--faint); display: inline-grid; } .hub-card:hover .hub-edit { color: var(--navy); }
.hub-add { height: auto; min-height: 112px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: transparent; border: 2px dashed var(--line); color: var(--muted); font-weight: 600; box-shadow: none; }
.hub-add:hover { border-color: var(--navy-600); color: var(--navy); background: var(--navy-50); }

/* ---------- loading screen ---------- */
#splash { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(120% 80% at 50% 38%, #ffffff 0%, #ffffff 45%, var(--navy-50) 100%); transition: opacity .35s ease, visibility .35s; }
#splash.out { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-in { display: flex; flex-direction: column; align-items: center; text-align: center; animation: splash-rise .5s cubic-bezier(.2,.7,.2,1) both; }
.splash-in img { width: 96px; height: 96px; filter: drop-shadow(0 6px 18px rgba(30, 58, 138, .12)); }
.splash-word { margin-top: 18px; font-size: 30px; font-weight: 700; letter-spacing: .04em; color: var(--navy); line-height: 1; }
.splash-tag { margin-top: 8px; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--green); }
.splash-bar { position: relative; overflow: hidden; width: 132px; height: 3px; margin-top: 28px; border-radius: 3px; background: var(--line); }
.splash-bar i { position: absolute; top: 0; bottom: 0; left: 0; width: 40%; border-radius: 3px; background: linear-gradient(90deg, var(--lime), #34c4e7); animation: splash-slide 1.1s ease-in-out infinite; }
.splash-slow { margin-top: 14px; font-size: 12px; color: var(--muted); opacity: 0; animation: splash-show .4s ease 6s forwards; }
.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; }
@keyframes splash-rise { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes splash-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
@keyframes splash-show { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .splash-in, .splash-bar i { animation: none; } .splash-slow { animation-duration: .01s; } }

/* ---------- count check (hub portal and admin): the student's list with − and + ---------- */
.cnt-sum { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 14px; border-radius: var(--r); background: var(--navy-50); }
.cnt-sum b { font-size: 26px; font-weight: 700; color: var(--navy); line-height: 1.1; }
.cnt-list { overflow: hidden; }
.cnt-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); transition: background .15s; }
.cnt-row:last-child { border-bottom: 0; }
.cnt-row b { font-weight: 600; overflow-wrap: anywhere; }
.cnt-row.off { background: var(--amber-50); }
.cnt-row.off input { color: var(--amber); }
/* Admin > Bag locations: each hub's spots side by side, bags as tappable chips. */
.bl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.bl-spot { border: 1px solid var(--line); border-radius: var(--r); padding: 10px; background: var(--bg); min-width: 0; }
.bl-spot.none { border-style: dashed; background: var(--amber-50); border-color: var(--amber-100); }
.bl-spot.moving { background: var(--navy-50); border-color: var(--navy-100); }
.bl-h { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; margin-bottom: 8px; }
.bl-h .n { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bl-bag { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; width: 100%; min-height: 44px; height: auto; padding: 6px 10px; margin-bottom: 6px; text-align: left; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; font-weight: 400; }
.bl-bag:hover { border-color: var(--navy); background: #fff; }
.bl-bag b { font-weight: 600; font-size: 13px; }
.bl-bag span { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bl-bag .bl-st { grid-row: 1 / 3; grid-column: 2; align-self: center; color: var(--ink-2); }
@media (max-width: 640px) { .bl-grid { grid-template-columns: minmax(0, 1fr); } }
/* Student app: wash care, and what to write on the bag. */
.page-title { margin: 10px 0 14px; }
.page-title p { margin-top: 4px; }
.care-q { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.care-q legend { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 8px; padding: 0; }
.care-chip { height: 44px; padding: 0 16px; font-size: 14px; }
.care-q[disabled] .care-chip { opacity: .55; }
.bag-label { text-align: center; border: 2px dashed var(--navy-100); background: var(--navy-50); }
.bag-label-tag { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 10px 0 8px; }
.bag-label-tag span { font-size: 18px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.bag-label-tag b { font: 800 30px/1.1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; color: var(--navy); }
/* Blind count: Item | Client | Hub. The student's number sits in its own column so the hub compares at a glance. */
.cnt-head { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-bottom: 1px solid var(--line-2); background: var(--bg); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.cnt-client { width: 40px; flex: none; text-align: center; }
b.cnt-client { font-size: 20px; font-weight: 700; color: var(--ink-2); }
.cnt-hubcol { width: 136px; flex: none; text-align: center; }
.cnt-row.ok { background: var(--green-100); }
.cnt-row.ok input { color: var(--green); font-weight: 700; }
@media (max-width: 420px) { .cnt-head { padding: 8px 10px; gap: 10px; } .cnt-client { width: 28px; } b.cnt-client { font-size: 17px; } }
.cnt-step { height: 44px; }
.cnt-step button { height: 42px; width: 42px; touch-action: manipulation; }
.cnt-step input { width: 48px; height: 42px; font-size: 16px; }
.cnt-foot { position: sticky; bottom: 0; margin: 14px -2px 0; padding: 12px 2px 4px; background: linear-gradient(rgba(255, 255, 255, 0), #fff 18px); }
@media (max-width: 420px) { .cnt-row { padding: 10px 10px; gap: 10px; } .cnt-row .glyph { display: none; } }

/* Bag label: print only the QR panel */
@media print {
  body:has(.qr-full) > :not(.qr-full) { display: none !important; }
  .qr-full { position: static; background: var(--card); }
  .qr-full .qr-x, .qr-full [data-print], .qr-full .no-print { display: none !important; }
}
.ck-count { padding: 12px 16px 0; }
/* Demo mode strip (common.js modeBanner) */
.demo-banner { position: sticky; top: 0; z-index: 9999; background: var(--red); color: #fff; font-weight: 600; font-size: 13px; text-align: center; padding: 6px 16px; line-height: 1.35; }
/* Ratings (student order page) and the invite card (account) */
.rate .stars { display: flex; gap: 6px; margin: 10px 0; }
.rate .star { background: none; border: 0; padding: 4px; min-width: 44px; min-height: 44px; color: var(--line, #cbd5e1); box-shadow: none; }
.rate .star .ic, .rate .star svg { width: 30px; height: 30px; }
.rate .star.on { color: #f59e0b; }
.rate .star.on svg { fill: currentColor; }
.rate .star:disabled { opacity: 1; cursor: default; }
.invite-code { margin: 14px 0 12px; padding: 12px; border: 2px dashed var(--lime, #a3e635); border-radius: 12px; text-align: center; font-size: 22px; font-weight: 700; letter-spacing: 3px; font-variant-numeric: tabular-nums; }
/* Rider run sheet (rider.js) */
.run-bar { height: 6px; background: var(--line, #e5e7eb); margin: 0 16px 6px; border-radius: 6px; overflow: hidden; }
.run-bar i { display: block; height: 100%; background: var(--green, #16a34a); border-radius: 6px; transition: width .3s; }
.run-stop { border-top: 1px solid var(--line, #e5e7eb); }
.run-h { display: flex; align-items: center; gap: 10px; padding: 12px 16px 6px; }
.run-h [data-d] svg { transform: rotate(90deg); }
.run-n { width: 26px; height: 26px; border-radius: 50%; background: var(--navy, #1e3a8a); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.run-row { display: flex; align-items: center; gap: 12px; padding: 8px 16px; min-height: 52px; cursor: pointer; }
.run-row input { width: 22px; height: 22px; flex: none; accent-color: var(--green, #16a34a); }
.run-row.done .grow b { text-decoration: line-through; color: var(--muted); }
@media print {
  .no-print, header, nav, #tabs, .rider-scan, .demo-banner, .notice { display: none !important; }
  .run-sheet { box-shadow: none; border: 0; }
  .run-row { min-height: 0; padding: 4px 0; }
}

/* ---------- live rider map ---------- */
.rider-pin { width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font: 700 12px/1 Inter, system-ui, sans-serif; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(15, 23, 42, .35); position: relative; }
.rider-pin::after { content: ''; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid var(--lime); animation: pinpulse 1.8s ease-out infinite; }
.rider-pin.stale { background: var(--faint); }
.rider-pin.stale::after { display: none; }
@keyframes pinpulse { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.place-pin { width: 30px; height: 30px; border-radius: 9px; background: #fff; color: var(--navy); border: 2px solid var(--navy-100); display: grid; place-items: center; box-shadow: var(--shadow); position: relative; }
.place-pin.busy { border-color: var(--amber); color: var(--amber); }
.place-pin b { position: absolute; top: -8px; right: -8px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--amber); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.place-name { position: absolute; top: 32px; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 600 11px/1.2 Inter, system-ui, sans-serif; color: var(--ink); background: rgba(255, 255, 255, .9); padding: 1px 5px; border-radius: 4px; }
.live-map { height: 520px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--line-2); z-index: 0; }
.live-map.pinning { cursor: crosshair; }
.map-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.map-list .rider-row { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line-2); cursor: pointer; }
.map-list .rider-row:first-child { border-top: 0; }
.map-list .rider-row:hover { background: var(--navy-50); }
@media (max-width: 900px) { .map-wrap { grid-template-columns: 1fr; } .live-map { height: 62vh; } }
.track-map { height: 200px; border-radius: 10px; overflow: hidden; margin-top: 10px; z-index: 0; }
/* the rider's location sharing bar */
.gps { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; margin-bottom: 14px; border: 1px solid var(--line); background: var(--card); }
.gps.on { border-color: #bbf7d0; background: #f0fdf4; }
.gps.err { border-color: #fde68a; background: var(--amber-50); }
.gps .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--faint); flex: none; }
.gps.on .dot { background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: gpsPulse 2s infinite; }
@keyframes gpsPulse { 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
@media (prefers-reduced-motion: reduce) { .rider-pin::after, .gps.on .dot { animation: none; } }

/* "Ask Agnizo" website chat (assistant.js) */
.ask-fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 45; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px; border: 0; border-radius: 99px; background: var(--navy); color: #fff; font-weight: 600; font-size: 14px; box-shadow: 0 10px 28px rgba(15, 23, 42, .25); cursor: pointer; }
.ask-fab:hover { filter: brightness(1.08); }
body:has(.getapp.on) .ask-fab { bottom: calc(88px + env(safe-area-inset-bottom)); }
.ask-box { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 46; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 32px)); min-height: 0; box-shadow: 0 18px 48px rgba(15, 23, 42, .25); overflow: hidden; }
.ask-box[hidden] { display: none; }
.ask-h { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--line); }
.ask-h img { width: 32px; height: 32px; border-radius: 8px; }
.ask-h .xs { color: var(--muted); }
.ask-h .x { width: 32px; height: 32px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; border-radius: 8px; }
.ask-box .msgs { background: var(--bg); }
.ask-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; white-space: normal; }
.ask-links .btn { height: 32px; font-size: 12px; }
@media (max-width: 480px) { .ask-box { right: 8px; left: 8px; width: auto; bottom: calc(8px + env(safe-area-inset-bottom)); height: calc(100dvh - 16px); } }

/* A student's lifetime tag (AGZ-122N) next to their name */
.agz-tag { display: inline-block; vertical-align: 1px; margin-left: 4px; padding: 0 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--ink-2); font: 600 11px/18px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; white-space: nowrap; }
.agz-tag.lg { font-size: 13px; line-height: 22px; padding: 0 8px; }
/* Live map: every rider in their own colour with their name, hubs, and where each rider is heading */
.rider-name { position: absolute; top: 38px; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 700 11px/1.2 Inter, system-ui, sans-serif; color: var(--ink); background: #fff; padding: 1px 6px; border-radius: 99px; border: 2px solid var(--faint); box-shadow: 0 1px 4px rgba(15, 23, 42, .2); }
.place-pin.hub { border-color: var(--navy); color: var(--navy); border-radius: 50%; }
.place-pin.hub b { background: var(--navy); }
.place-pin.hub.full { border-color: var(--red); color: var(--red); }
.place-pin.hub.full b { background: var(--red); }
.rider-dest { color: var(--ink); margin-top: 2px; display: flex; gap: 2px; align-items: flex-start; font-weight: 500; }
.rider-dest svg { flex: none; margin-top: 1px; }

/* Hub workload */
.wl-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.wl-legend span { display: inline-flex; align-items: center; gap: 6px; }
.wl-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.wl-legend .wl-cap-key { width: 2px; height: 14px; border-radius: 0; background: var(--ink); }
.wl-rows { display: grid; gap: 12px; }
.wl-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; align-items: center; }
.wl-name { display: flex; flex-direction: column; min-width: 0; } .wl-name b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-bar { position: relative; height: 22px; background: var(--line-2); border-radius: 4px; display: flex; gap: 2px; }
.wl-bar > i { display: block; height: 100%; min-width: 4px; }
.wl-bar > i:first-of-type { border-radius: 4px 0 0 4px; } .wl-bar > i:last-of-type { border-radius: 0 4px 4px 0; } .wl-bar > i:only-of-type { border-radius: 4px; }
.wl-cap { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); transform: translateX(-1px); }
.wl-steps { width: 100%; margin-top: 12px; font-size: 13px; border-collapse: collapse; }
.wl-steps th { font-size: 11px; font-weight: 500; color: var(--muted); text-align: left; padding: 0 0 4px; }
.wl-steps td { padding: 4px 0; border-top: 1px solid var(--line-2); }
.wl-steps .num { text-align: right; width: 64px; }
.wl-steps td i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.wl-sub { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 14px 0 6px; }
.wl-garments { display: grid; gap: 5px; font-size: 13px; }
.wl-garments > div { display: grid; grid-template-columns: minmax(0, 1fr) 70px 32px; gap: 8px; align-items: center; }
.wl-garments > div > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-g { height: 6px; background: var(--line-2); border-radius: 99px; overflow: hidden; } .wl-g i { display: block; height: 100%; background: var(--navy); border-radius: 99px; }
.wl-garments b { text-align: right; font-weight: 600; }
.wl-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-2); }
@media (max-width: 640px) { .wl-row { grid-template-columns: 1fr; gap: 4px; } .wl-name { flex-direction: row; justify-content: space-between; } }
.rider-pin span { text-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
.dest-bar { display: flex; align-items: center; gap: 10px; margin: -4px 0 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.dest-bar label { font-size: 13px; font-weight: 600; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.dest-bar select { flex: 1; min-width: 0; height: 38px; }

/* ---------- fleet: company cars and Bolt trips (admin > Fleet, Live map, the student's bag card) ---------- */
.car-pin { width: 34px; height: 34px; border-radius: 10px; background: var(--navy-900); color: #fff; display: grid; place-items: center; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(15, 23, 42, .35); position: relative; }
.car-pin .ic { width: 18px; height: 18px; }
.car-pin.stale { background: var(--faint); }
.car-pin.sm { width: 32px; height: 32px; border-width: 0; box-shadow: none; flex: none; }
.car-dir { position: absolute; inset: -9px; pointer-events: none; }
.car-dir::before { content: ''; position: absolute; top: 0; left: 50%; margin-left: -5px; border: 5px solid transparent; border-top: 0; border-bottom: 7px solid var(--navy-900); }
.car-plate { position: absolute; top: 36px; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 700 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; color: var(--ink); background: #fff; padding: 1px 5px; border-radius: 4px; border: 1.5px solid var(--navy-900); box-shadow: 0 1px 4px rgba(15, 23, 42, .2); }
.plate-tag { display: inline-block; font: 700 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; padding: 0 5px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--ink-2); vertical-align: 1px; white-space: nowrap; }
.fleet-car.off { opacity: .7; }
.trip-row { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-top: 1px solid var(--line-2); }
.trip-acts { gap: 6px; flex-wrap: nowrap; }
@media (max-width: 640px) { .trip-row { flex-wrap: wrap; } .trip-acts { flex-basis: 100%; padding-left: 38px; } }
.trip-bags { display: grid; gap: 6px; max-height: 40vh; overflow: auto; }
.trip-bags .perm { min-height: 44px; align-items: center; }
.trip-bags .date-group { padding: 6px 2px; background: none; border: 0; }
.copy-line { display: block; margin-top: 4px; padding: 8px 10px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); font: 600 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; user-select: all; }
.trip-link { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.trip-link .btn { min-height: 44px; }
@media (max-width: 400px) { .trip-link { flex-wrap: wrap; } .trip-link .btn { flex-basis: 100%; } }
/* ---------- motion polish ---------- */
/* Admin: the old page dims while the next one loads (a skeleton only appears if that takes a while) */
#view.loading { opacity: .55; pointer-events: none; transition: opacity .15s .06s; }
/* "Ask Agnizo": arrives a moment after the page, and on phones it's a round button so it doesn't sit over headings */
.ask-fab { animation: fabin .5s var(--out) .8s both; transition: transform .2s var(--out), box-shadow .2s, bottom .3s var(--out); }
.ask-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(15, 23, 42, .3); }
@keyframes fabin { from { opacity: 0; transform: translateY(16px) scale(.9); } }
.ask-box:not([hidden]) { animation: askin .3s var(--out) both; transform-origin: bottom right; }
@keyframes askin { from { opacity: 0; transform: translateY(12px) scale(.96); } }
@media (max-width: 640px) {
  .ask-fab { width: 52px; height: 52px; padding: 0; justify-content: center; }
  .ask-fab span { display: none; }
  .ask-fab .ic { width: 22px; height: 22px; }
}
/* Count check: adding clothes the student didn't list. */
.cnt-add { margin-top: 12px; }
.cnt-add .btn-block { min-height: 44px; }
.cnt-row.extra { border-top: 1px dashed var(--amber-100); }
/* Admin > Agnizo QR: the one fixed handover code, big enough to scan from a step away. */
.station-qr { width: min(320px, 100%); aspect-ratio: 1; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--r); padding: 8px; background: #fff; }
.station-qr.off { opacity: .35; }
.station-qr.big { width: min(78vh, 92vw); max-width: 640px; border: 0; padding: 0; margin-top: 12px; }
/* Admin > Bolt runs: stops to tick, and the runs under way. */
.run-stop { display: flex; align-items: center; gap: 12px; padding: 12px 20px; min-height: 56px; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.run-stop input { width: 20px; height: 20px; flex: none; }
.run-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--line-2); }
.run-stops { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px; margin: 10px 0 0; max-height: 30vh; overflow: auto; }
@media (max-width: 640px) { .run-stop, .run-row { padding: 12px 14px; } }
.run-row > .grow { flex: 1 1 240px; }
.wh-collect { border: 1px solid var(--amber-100); background: var(--amber-50); }
.verify-btn { margin-top: 12px; }
