/* ClockMeIn - design system: tokens, type, controls, admin shell. No build step. */

@font-face { font-family: 'Bricolage'; src: url('fonts/bricolage-grotesque.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'JBMono'; src: url('fonts/jetbrains-mono.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }

:root {
    --bg: #f4f2ea;
    --surface: #ffffff;
    --surface-2: #ece9de;
    --ink: #0c1512;
    --ink-2: #47524d;
    --ink-3: #7b8680;
    --line: #dfdbce;
    --volt: #c6f24e;
    --volt-ink: #18260a;
    --accent: #2c7a1c;          /* volt, darkened to read as text on light surfaces */
    --accent-soft: #e6f6c2;
    --coral: #e8492a;
    --coral-soft: #fde5dd;
    --amber: #b97400;
    --amber-soft: #fbeccb;
    --blue: #3f52e3;
    --blue-soft: #e2e6ff;
    --side: #0c1512;
    --side-2: #17231f;
    --shadow: 0 1px 2px rgba(12, 21, 18, .05), 0 8px 28px rgba(12, 21, 18, .06);
    --shadow-lg: 0 24px 70px rgba(12, 21, 18, .22);
    --r: 18px;
    --font: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
    --display: 'Bricolage', 'Inter', sans-serif;
    --mono: 'JBMono', ui-monospace, 'SF Mono', Menlo, monospace;
    color-scheme: light;
}

:root[data-theme="dark"] {
    --bg: #090f0d;
    --surface: #111a17;
    --surface-2: #19251f;
    --ink: #eef3ea;
    --ink-2: #aab6ae;
    --ink-3: #74817a;
    --line: #23322c;
    --accent: #c6f24e;
    --accent-soft: #24330f;
    --coral: #ff7453;
    --coral-soft: #3a1a12;
    --amber: #f2b441;
    --amber-soft: #33270c;
    --blue: #8f9bff;
    --blue-soft: #1c2147;
    --side: #060b09;
    --side-2: #131d19;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 28px rgba(0, 0, 0, .28);
    --shadow-lg: 0 24px 70px rgba(0, 0, 0, .6);
    color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    font-feature-settings: 'cv11', 'ss01';
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.spacer { flex: 1; }
.nowrap { white-space: nowrap; }
::selection { background: var(--volt); color: var(--volt-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3, .display { font-family: var(--display); letter-spacing: -.03em; line-height: 1.08; font-weight: 700; }

/* ---------- Wordmark ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -.04em; color: inherit; }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand em { font-style: normal; color: var(--accent); }
.on-dark .brand em, .side .brand em { color: var(--volt); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line);
    background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14.5px;
    cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: transform .12s ease, background .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { border-color: var(--ink-3); }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-primary:hover { box-shadow: 0 6px 18px rgba(12, 21, 18, .22); border-color: var(--ink); }
:root[data-theme="dark"] .btn-primary { background: var(--volt); color: var(--volt-ink); border-color: var(--volt); }
.btn-volt { background: var(--volt); color: var(--volt-ink); border-color: var(--volt); }
.btn-volt:hover { box-shadow: 0 8px 26px rgba(198, 242, 78, .4); border-color: var(--volt); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); border-color: transparent; }
.btn-danger { color: var(--coral); }
.btn-danger:hover { background: var(--coral-soft); border-color: var(--coral); }
.btn-sm { height: 32px; padding: 0 13px; font-size: 13px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16.5px; }
.btn-block { width: 100%; }

/* ---------- Forms ---------- */
.field { display: block; margin-bottom: 16px; }
.field > span, .label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field small { display: block; color: var(--ink-3); font-size: 12.5px; margin-top: 5px; }
.field .err { color: var(--coral); font-weight: 500; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time],
input[type=datetime-local], input[type=tel], input[type=search], select, textarea {
    width: 100%; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line);
    background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; padding: 10px 14px; min-height: 80px; }
select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%237b8680' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
input.bad { border-color: var(--coral); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 4px 18px; }
.form-grid .wide { grid-column: 1 / -1; }

/* ---------- Tags ---------- */
.tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 650; letter-spacing: .01em; white-space: nowrap; background: var(--surface-2); color: var(--ink-2); text-decoration: none; }
.tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.plain::before { display: none; }
.tag.in, .tag.ok, .tag.active { background: var(--accent-soft); color: var(--accent); }
.tag.out { background: var(--blue-soft); color: var(--blue); }
.tag.late, .tag.grace, .tag.trial { background: var(--amber-soft); color: var(--amber); }
.tag.issue, .tag.suspended { background: var(--coral-soft); color: var(--coral); }
.tag.closed { background: var(--surface-2); color: var(--ink-3); }
a.tag:hover { filter: brightness(.96); }

/* ---------- Admin shell ---------- */
.shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.side {
    background: var(--side); color: #e7ede4; position: sticky; top: 0; height: 100vh; z-index: 30;
    display: flex; flex-direction: column; padding: 22px 14px 16px; overflow-y: auto;
}
.side .brand { color: #fff; padding: 0 10px 22px; }
.side-org { margin: 0 4px 18px; padding: 12px 14px; background: var(--side-2); border-radius: 14px; }
.side-org b { display: block; font-family: var(--display); font-size: 16px; letter-spacing: -.02em; color: #fff; line-height: 1.2; }
.side-org span { font-size: 12px; color: #8b9990; font-family: var(--mono); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #5f6d65; padding: 16px 12px 6px; }
.nav button {
    all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 12px; width: 100%;
    padding: 10px 12px; border-radius: 12px; color: #a8b4ac; font-weight: 550; font-size: 14.5px; cursor: pointer;
    position: relative; transition: background .15s, color .15s;
}
.nav button svg { width: 19px; height: 19px; flex: none; opacity: .85; }
.nav button:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.nav button.active { color: #fff; background: var(--side-2); }
.nav button.active::before { content: ''; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: var(--volt); }
.nav button.active svg { color: var(--volt); opacity: 1; }
.nav button .count { margin-left: auto; font-family: var(--mono); font-size: 12px; background: var(--volt); color: var(--volt-ink); border-radius: 999px; padding: 1px 8px; font-weight: 700; }
.side-foot { margin-top: auto; padding-top: 16px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; }
.side-user .who { min-width: 0; flex: 1; }
.side-user b { display: block; font-size: 13.5px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user span { font-size: 12px; color: #8b9990; text-transform: capitalize; white-space: nowrap; }
.icon-btn { all: unset; box-sizing: border-box; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; cursor: pointer; color: inherit; flex: none; }
.icon-btn:hover { background: rgba(127, 140, 132, .18); }
.icon-btn svg { width: 18px; height: 18px; }

.main { min-width: 0; padding: 26px clamp(16px, 3.4vw, 44px) 90px; }
.main-inner { max-width: 1240px; margin: 0 auto; }
.topbar { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; flex-wrap: wrap; }
.topbar h1 { font-size: clamp(28px, 3.4vw, 40px); }
.topbar .sub { color: var(--ink-3); font-size: 14px; margin-top: 4px; }
.topbar select { width: auto; min-width: 170px; height: 42px; border-radius: 999px; font-weight: 600; }
.menu-btn { display: none; }

.banner { display: flex; gap: 14px; align-items: center; padding: 13px 18px; border-radius: 16px; margin-bottom: 20px; font-size: 14.5px; flex-wrap: wrap; }
.banner b { font-weight: 700; }
.banner.trial { background: var(--accent-soft); color: var(--accent); }
.banner.grace { background: var(--amber-soft); color: var(--amber); }
.banner.suspended { background: var(--coral-soft); color: var(--coral); }
.imp-bar { position: sticky; top: 0; z-index: 60; background: repeating-linear-gradient(-45deg, #ff7a1a, #ff7a1a 14px, #ff8f3a 14px, #ff8f3a 28px); color: #1d0e00; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 8px 16px; grid-column: 1 / -1; }
.imp-bar form { display: inline; }
.imp-bar button { all: unset; cursor: pointer; background: #1d0e00; color: #fff; border-radius: 999px; padding: 4px 14px; font-size: 13px; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.card + .card { margin-top: 18px; }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h2 { font-size: 20px; }
.card-head .muted { font-size: 13.5px; }
.grid { display: grid; gap: 18px; }
.grid.stats { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-bottom: 18px; }
.grid.two { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
.grid > .card + .card { margin-top: 0; }
.stack { display: grid; gap: 18px; align-content: start; }
.stack > * { min-width: 0; }
.stack > .card + .card { margin-top: 0; }

.stat { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; box-shadow: var(--shadow); }
.stat .k { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.stat .v { font-family: var(--display); font-weight: 750; font-size: 46px; letter-spacing: -.04em; line-height: 1; margin-top: 12px; display: flex; align-items: baseline; gap: 8px; }
.stat .v small { font-family: var(--font); font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--ink-3); }
.stat .d { font-size: 13px; color: var(--ink-3); margin-top: 8px; min-height: 19px; }
.stat.hero { background: var(--ink); color: var(--bg); border-color: var(--ink); }
:root[data-theme="dark"] .stat.hero { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
.stat.hero .k, .stat.hero .d, .stat.hero .v small { color: color-mix(in srgb, currentColor 62%, transparent); }
.stat.hero .v b { color: var(--volt); font-weight: inherit; }
.stat .ring { position: absolute; right: 18px; top: 18px; width: 64px; height: 64px; }
.stat .ring circle { fill: none; stroke-width: 7; }
.stat .ring .t { stroke: color-mix(in srgb, currentColor 14%, transparent); }
.stat .ring .p { stroke: var(--volt); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset .8s cubic-bezier(.2, .8, .2, 1); }
.stat.warn .v { color: var(--amber); }
.stat.bad .v { color: var(--coral); }

/* ---------- People tiles (Who's in) ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.person { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); animation: pop .35s cubic-bezier(.2, .9, .3, 1.2) both; }
.person .who { min-width: 0; }
.person b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person span { font-size: 12.5px; color: var(--ink-3); }
.avatar { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font-family: var(--display); font-weight: 750; font-size: 15px; color: #10160c; flex: none; position: relative; }
.avatar.sm { width: 32px; height: 32px; border-radius: 10px; font-size: 12.5px; }
.avatar.live::after { content: ''; position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; border-radius: 50%; background: #3ecf5e; border: 2.5px solid var(--bg); }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(6px); } }

/* ---------- Chart ---------- */
.bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; align-items: end; height: 150px; }
.bars .bar { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 8px; cursor: default; }
.bars .bar i { display: block; border-radius: 7px; background: var(--ink); min-height: 3px; transition: height .7s cubic-bezier(.2, .8, .2, 1); }
:root[data-theme="dark"] .bars .bar i { background: #dfe7da; }
.bars .bar i.l { background: var(--amber); border-radius: 7px 7px 0 0; min-height: 0; margin-bottom: 2px; }
.bars .bar.today i:not(.l) { background: var(--volt); box-shadow: 0 0 0 1px rgba(0, 0, 0, .08) inset; }
.bars .bar.zero i:not(.l) { background: var(--line); }
.bars .bar:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); font-size: 12px; padding: 5px 9px; border-radius: 8px; white-space: nowrap; z-index: 5; pointer-events: none; }
.bars-x { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; margin-top: 8px; font-size: 11px; color: var(--ink-3); text-align: center; font-family: var(--mono); }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--ink-3); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.feed { list-style: none; }
.feed li { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.feed li:last-child { border-bottom: 0; }
.feed .t { margin-left: auto; color: var(--ink-3); font-family: var(--mono); font-size: 12.5px; white-space: nowrap; }
.feed .n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }

/* ---------- Tables ---------- */
.range { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 18px; }
.range label { font-size: 12px; font-weight: 600; color: var(--ink-3); display: flex; flex-direction: column; gap: 5px; }
.range input, .range select { width: auto; min-width: 150px; height: 42px; }
.table-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th.num { text-align: right; }
td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
tr.voided td { opacity: .5; text-decoration: line-through; }
tr.voided td:last-child, tr.voided td.keep { text-decoration: none; }
tr.total td { font-weight: 700; border-top: 2px solid var(--ink); border-bottom: 0; }
tr.off td { opacity: .55; }
td.actions { text-align: right; white-space: nowrap; }
td.actions .btn { margin-left: 4px; }
.cell-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cell-person b { font-weight: 600; }
.empty { text-align: center; padding: 44px 20px; color: var(--ink-3); }
.empty svg { width: 54px; height: 54px; margin-bottom: 12px; opacity: .5; }
.empty b { display: block; font-family: var(--display); font-size: 19px; color: var(--ink); margin-bottom: 4px; letter-spacing: -.02em; }
.empty .btn { margin-top: 16px; }
.foot-note { margin-top: 14px; font-size: 13px; color: var(--ink-3); }

/* ---------- Sites and kiosks ---------- */
.site-card .site-head { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.site-card h3 { font-size: 21px; }
.site-meta { color: var(--ink-3); font-size: 13.5px; margin-top: 3px; }
.kiosk-list { margin-top: 16px; display: grid; gap: 10px; }
.kiosk-row { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); flex-wrap: wrap; }
.kiosk-row .ic { width: 38px; height: 38px; border-radius: 11px; background: var(--surface-2); display: grid; place-items: center; flex: none; }
.kiosk-row .ic svg { width: 19px; height: 19px; }
.kiosk-row .info { min-width: 140px; flex: 1; }
.kiosk-row .info b { display: block; font-size: 14.5px; }
.kiosk-row .info span { font-size: 12.5px; color: var(--ink-3); }
.pair-code { font-family: var(--mono); font-size: clamp(34px, 8vw, 54px); font-weight: 700; letter-spacing: .14em; text-align: center; padding: 22px 12px; border-radius: 18px; background: var(--ink); color: var(--volt); margin: 18px 0 14px; user-select: all; }
.steps { counter-reset: s; list-style: none; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: flex; gap: 12px; font-size: 14.5px; }
.steps li::before { content: counter(s); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 12.5px; display: grid; place-items: center; }
.steps code, code.url { font-family: var(--mono); font-size: 13px; background: var(--surface-2); padding: 2px 7px; border-radius: 6px; word-break: break-all; }

/* ---------- Billing ---------- */
.bill-total { font-family: var(--display); font-size: clamp(44px, 7vw, 68px); font-weight: 750; letter-spacing: -.045em; line-height: 1; }
.bill-total small { font-family: var(--font); font-size: 15px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; margin-left: 6px; }
.bill-lines { margin-top: 18px; border-top: 1px solid var(--line); }
.bill-lines div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.bill-lines > div > span:last-child { font-family: var(--mono); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 9px 18px; font-size: 14.5px; }
.kv dt { color: var(--ink-3); }
.kv dd { font-weight: 550; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; background: rgba(6, 12, 10, .55); backdrop-filter: blur(6px); animation: fade .18s ease both; overflow-y: auto; }
.modal-box { width: min(100%, 520px); background: var(--surface); border-radius: 24px; padding: 26px; box-shadow: var(--shadow-lg); animation: rise .28s cubic-bezier(.2, .9, .3, 1.1) both; border: 1px solid var(--line); }
.modal-box.wide { width: min(100%, 640px); }
.modal-box h2 { font-size: 24px; margin-bottom: 6px; }
.modal-box > p.muted { margin-bottom: 18px; font-size: 14.5px; }
.modal-actions { display: flex; gap: 10px; align-items: center; margin-top: 22px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.98); } }

.enrol-cam { position: relative; border-radius: 20px; overflow: hidden; background: #000; aspect-ratio: 4 / 3; }
.enrol-cam video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.enrol-cam::after { content: ''; position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 3 / 4; transform: translate(-50%, -52%); border-radius: 50%; border: 3px solid rgba(198, 242, 78, .9); box-shadow: 0 0 0 999px rgba(0, 0, 0, .38), 0 0 30px rgba(198, 242, 78, .5) inset; pointer-events: none; }
.enrol-progress { height: 8px; background: var(--surface-2); border-radius: 99px; margin: 16px 0 10px; overflow: hidden; }
.enrol-progress div { height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .35s cubic-bezier(.2, .8, .2, 1); }
:root:not([data-theme="dark"]) .enrol-progress div { background: linear-gradient(90deg, #2c7a1c, #7fc62a); }
.enrol-status { text-align: center; font-weight: 600; min-height: 24px; }
.snap-box img { width: 100%; border-radius: 16px; display: block; background: #000; min-height: 120px; }
.snap-caption { margin-top: 12px; font-weight: 600; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 200; background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow-lg); max-width: calc(100vw - 32px); animation: rise .25s ease both; display: flex; align-items: center; gap: 10px; }
.toast::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--volt); flex: none; }
.toast.error::before { background: var(--coral); }

/* ---------- Loading ---------- */
.skel { height: 14px; border-radius: 8px; background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; margin: 10px 0; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Mobile ---------- */
@media (max-width: 940px) {
    .shell { grid-template-columns: minmax(0, 1fr); }
    .side { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; transform: translateX(-102%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
    body.nav-open .side { transform: none; box-shadow: var(--shadow-lg); }
    body.nav-open::after { content: ''; position: fixed; inset: 0; background: rgba(6, 12, 10, .5); z-index: 20; }
    .menu-btn { display: grid; background: var(--surface); border: 1px solid var(--line); }
    .grid.two { grid-template-columns: minmax(0, 1fr); }
    .main { padding-top: 16px; }
    .card { padding: 18px; }
    .table-wrap { margin: 0 -18px; padding: 0 18px; }
    .stat .v { font-size: 38px; }
    .range input, .range select { min-width: 0; }
    .range label { flex: 1 1 130px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
