/* Animesha site app -- design system and layout.
   No web fonts and no framework: an edge PC is often offline, and the system
   UI font (Segoe UI on Windows) is what a professional Windows app uses anyway. */

:root {
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;

  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #eef2f7;
  --line: #e3e8ef;
  --line-strong: #cfd6e1;
  --ink: #0f172a;
  --ink-2: #334155;
  --ink-3: #64748b;
  --ink-4: #94a3b8;

  --brand: #4f46e5;
  --brand-ink: #ffffff;
  --brand-soft: #eef0ff;
  --brand-2: #0ea5e9;

  --ok: #059669;    --ok-soft: #e7f8f0;
  --warn: #d97706;  --warn-soft: #fff5e6;
  --bad: #dc2626;   --bad-soft: #fdecec;
  --info: #2563eb;  --info-soft: #e8f0fe;

  --series-in: #4f46e5;
  --series-out: #0ea5e9;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 3px rgba(15, 23, 42, .06);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, .14), 0 2px 6px rgba(15, 23, 42, .08);
  --sidebar: #0f172a;
  --sidebar-ink: #cbd5e1;
  --sidebar-ink-2: #64748b;
  --sidebar-active: rgba(99, 102, 241, .18);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0b1020;
  --surface: #121a2e;
  --surface-2: #0f1628;
  --surface-3: #18223a;
  --line: #222d46;
  --line-strong: #2e3b5a;
  --ink: #e6ebf5;
  --ink-2: #c3cbdb;
  --ink-3: #8b97ae;
  --ink-4: #5c6880;
  --brand: #818cf8;
  --brand-ink: #0b1020;
  --brand-soft: #1e2347;
  --ok-soft: #0d2a22;  --ok: #34d399;
  --warn-soft: #2d230e; --warn: #fbbf24;
  --bad-soft: #301417;  --bad: #f87171;
  --info-soft: #132545; --info: #60a5fa;
  --series-in: #818cf8;
  --series-out: #38bdf8;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, .5);
  --sidebar: #080c18;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: var(--mono); font-size: 12.5px; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: 22px; font-weight: 650; }
h2 { font-size: 16px; font-weight: 650; }
h3 { font-size: 14px; font-weight: 650; }
p { margin: 0; }
[hidden] { display: none !important; }
svg.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8;
           stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- shell */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--sidebar); color: var(--sidebar-ink); display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; padding: 18px 14px;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 22px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, #6366f1, #0ea5e9); color: #fff; box-shadow: 0 6px 16px rgba(79, 70, 229, .35);
}
.brand-mark svg { width: 20px; height: 20px; stroke-width: 2; }
.brand-name { font-weight: 700; font-size: 16px; color: #fff; letter-spacing: .02em; }
.brand-sub { font-size: 11.5px; color: var(--sidebar-ink-2); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--sidebar-ink-2);
             padding: 16px 10px 6px; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 8px;
  color: var(--sidebar-ink); font-weight: 500; text-decoration: none; transition: background .12s, color .12s;
}
.nav a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.nav a.active { background: var(--sidebar-active); color: #fff; }
.nav a.active svg { color: #a5b4fc; }
.nav .count { margin-left: auto; font-size: 11px; background: rgba(255,255,255,.08); padding: 0 7px; border-radius: 999px; }
.sidebar-foot { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid rgba(255, 255, 255, .06);
                font-size: 12px; color: var(--sidebar-ink-2); display: grid; gap: 8px; }
.sidebar-foot .row { display: flex; align-items: center; gap: 8px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 64px; display: flex; align-items: center; gap: 16px; padding: 0 28px;
  background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line);
}
.topbar .title { display: flex; flex-direction: column; }
.topbar .title small { color: var(--ink-3); font-size: 12px; }
.topbar .spacer { flex: 1; }
.content { padding: 24px 28px 48px; max-width: 1440px; width: 100%; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head .lead { color: var(--ink-3); margin-top: 4px; max-width: 760px; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px;
  border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--ink); font: 550 13.5px var(--font); cursor: pointer; white-space: nowrap;
  transition: background .12s, border-color .12s, box-shadow .12s, transform .05s;
}
.btn:hover { background: var(--surface-2); border-color: var(--ink-4); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); box-shadow: 0 1px 2px rgba(79,70,229,.3); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.danger { color: var(--bad); }
.btn.danger:hover { background: var(--bad-soft); border-color: var(--bad); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-3); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn.icon-only { width: 36px; padding: 0; }
.btn.sm.icon-only { width: 30px; }
.btn svg.icon { width: 16px; height: 16px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field small { color: var(--ink-3); font-size: 12px; }
input[type=text], input[type=password], input[type=number], input[type=time], input[type=date], select, textarea {
  height: 38px; padding: 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font: 14px var(--font); width: 100%;
  transition: border-color .12s, box-shadow .12s;
}
textarea { height: auto; padding: 10px 12px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
input::placeholder { color: var(--ink-4); }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 16px; }
.check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; color: var(--ink-2); }
.check input { width: 16px; height: 16px; accent-color: var(--brand); }

.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { appearance: none; width: 38px; height: 22px; border-radius: 999px; background: var(--line-strong);
                position: relative; cursor: pointer; transition: background .15s; flex: none; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px;
                       border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked { background: var(--brand); }
.switch input:checked::after { transform: translateX(16px); }

.segmented { display: inline-flex; background: var(--surface-3); border-radius: 9px; padding: 3px; gap: 2px; }
.segmented button { border: 0; background: transparent; color: var(--ink-3); height: 30px; padding: 0 12px;
                    border-radius: 7px; font: 550 13px var(--font); cursor: pointer; }
.segmented button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-toggle { border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2);
               height: 32px; min-width: 46px; padding: 0 10px; border-radius: 999px; font: 550 12.5px var(--font); cursor: pointer; }
.chip-toggle.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }

/* ---------------------------------------------------------------- surfaces */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px 0; }
.card-head .sub { color: var(--ink-3); font-size: 12.5px; }
.card-head .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.card-body { padding: 16px 18px 18px; }
.card-foot { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; align-items: center; }
.grid { display: grid; gap: 16px; }
.grid.kpis { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid.two { grid-template-columns: 2fr 1fr; }
.grid.halves { grid-template-columns: 1fr 1fr; }
.grid.cams { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.grid.tiles { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.stack { display: grid; gap: 16px; }
@media (max-width: 1100px) { .grid.two, .grid.halves { grid-template-columns: 1fr; } }

.kpi { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; position: relative; overflow: hidden; }
.kpi .label { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 12.5px; font-weight: 600; }
.kpi .label .dot { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; }
.kpi .label .dot svg { width: 16px; height: 16px; }
.kpi .value { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi .meta { color: var(--ink-3); font-size: 12.5px; }
.tone-brand { background: var(--brand-soft); color: var(--brand); }
.tone-ok { background: var(--ok-soft); color: var(--ok); }
.tone-warn { background: var(--warn-soft); color: var(--warn); }
.tone-bad { background: var(--bad-soft); color: var(--bad); }
.tone-info { background: var(--info-soft); color: var(--info); }

.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px;
         font-size: 11.5px; font-weight: 650; letter-spacing: .02em; white-space: nowrap; background: var(--surface-3); color: var(--ink-2); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.brand { background: var(--brand-soft); color: var(--brand); }
.badge .pulse { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.ok .pulse { animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); }
                   70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.pill { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 999px;
        border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 12.5px; font-weight: 550; }

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3);
            font-weight: 650; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--surface-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table tfoot td { font-weight: 700; background: var(--surface-2); border-top: 1px solid var(--line-strong); }
.cell-main { display: flex; align-items: center; gap: 12px; }
.cell-main .t { font-weight: 600; }
.cell-main .s { color: var(--ink-3); font-size: 12.5px; }

/* ---------------------------------------------------------------- media */
.thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--surface-3); flex: none; }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--surface-3); flex: none;
          display: grid; place-items: center; color: var(--ink-3); font-weight: 700; }
.feed { position: relative; aspect-ratio: 16 / 9; background: #070b14; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.feed img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feed .overlay { position: absolute; inset: 0; display: grid; place-items: center; color: #94a3b8; font-size: 13px; text-align: center; padding: 20px; }
.feed .corner { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.feed .corner-r { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; }
.feed .live-tag { background: rgba(220, 38, 38, .92); color: #fff; }
.feed .glass { background: rgba(15, 23, 42, .6); color: #e2e8f0; backdrop-filter: blur(6px); }

.tile { overflow: hidden; display: flex; flex-direction: column; }
.tile .pic { aspect-ratio: 1; background: var(--surface-3); position: relative; overflow: hidden; }
/* Absolutely placed so a tall or wide photo is cropped into the square instead
   of stretching its card, and layered above the placeholder icon. */
.tile .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 1; }
.tile .pic .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-4); z-index: 0; }
.tile .pic .tl { z-index: 2; }
.tile .pic .ph svg { width: 36px; height: 36px; stroke-width: 1.4; }
.tile .pic .tl { position: absolute; top: 8px; left: 8px; }
.tile .info { padding: 12px 14px 14px; display: grid; gap: 4px; }
.tile .info .t { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .info .s { color: var(--ink-3); font-size: 12.5px; }
.tile .stats { display: flex; gap: 14px; font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.tile .stats b { color: var(--ink); font-variant-numeric: tabular-nums; }
.tile .acts { display: flex; gap: 6px; padding: 0 14px 14px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- charts */
.chart { width: 100%; height: 220px; display: block; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--ink-3); font-size: 11px; font-family: var(--font); }
.chart .bar-in { fill: var(--series-in); }
.chart .bar-out { fill: var(--series-out); }
.chart .bar-hover:hover { opacity: .8; }
.legend { display: flex; gap: 14px; 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; }

/* ---------------------------------------------------------------- lists */
.list { display: grid; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); }
.list-row:first-child { border-top: 0; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .t { font-weight: 600; }
.list-row .s { color: var(--ink-3); font-size: 12.5px; }
.setup-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.setup-ico svg { width: 17px; height: 17px; }
.list-row > svg.icon:last-child { color: var(--ink-4); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-4); flex: none; }
.status-dot.ok { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.status-dot.bad { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
.status-dot.warn { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }

.empty { padding: 44px 24px; text-align: center; color: var(--ink-3); display: grid; justify-items: center; gap: 10px; }
.empty .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-3); }
.empty .ico svg { width: 26px; height: 26px; }
.empty h3 { color: var(--ink); }
.empty p { max-width: 460px; }

.callout { display: flex; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid; font-size: 13px; align-items: flex-start; }
.callout svg { margin-top: 1px; }
.callout.info { background: var(--info-soft); border-color: color-mix(in srgb, var(--info) 30%, transparent); color: var(--ink-2); }
.callout.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 35%, transparent); color: var(--ink-2); }
.callout.bad { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 35%, transparent); color: var(--ink-2); }
.callout.ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 35%, transparent); color: var(--ink-2); }
.callout b { color: var(--ink); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs button { border: 0; background: none; padding: 10px 14px; font: 600 13.5px var(--font); color: var(--ink-3);
               border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--brand); border-color: var(--brand); }

.log { font-family: var(--mono); font-size: 12px; background: #0b1120; color: #cbd5e1; border-radius: var(--radius-sm);
       padding: 12px 14px; max-height: 320px; overflow: auto; white-space: pre-wrap; margin: 0; }

/* ---------------------------------------------------------------- overlays */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 50; animation: fade .15s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(760px, 100vw); background: var(--surface); z-index: 51;
          display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: slide .2s ease-out; }
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-head .sub { color: var(--ink-3); font-size: 12.5px; }
.drawer-body { flex: 1; overflow: auto; padding: 22px; display: grid; gap: 18px; align-content: start; }
.drawer-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; gap: 8px; align-items: center; background: var(--surface-2); }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(24px); opacity: .6; } }

.steps { display: flex; gap: 6px; }
.steps .s { flex: 1; display: grid; gap: 6px; }
.steps .s i { height: 4px; border-radius: 4px; background: var(--line); }
.steps .s.done i, .steps .s.on i { background: var(--brand); }
.steps .s span { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.steps .s.on span { color: var(--brand); }

.toasts { position: fixed; bottom: 22px; right: 22px; display: grid; gap: 8px; z-index: 80; }
.toast { display: flex; align-items: center; gap: 10px; min-width: 260px; max-width: 420px; padding: 12px 14px; border-radius: 10px;
         background: #0f172a; color: #e2e8f0; box-shadow: var(--shadow-lg); font-size: 13px; animation: slide .2s; }
.toast.bad { background: #7f1d1d; }
.toast.ok svg { color: #34d399; }

.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
           animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--surface-3), var(--surface-2), var(--surface-3)); background-size: 200% 100%;
            animation: shimmer 1.2s infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------------------------------------------------------------- line editor */
.line-editor { position: relative; border-radius: var(--radius); overflow: hidden; background: #070b14; cursor: crosshair; user-select: none; }
.line-editor img { display: block; width: 100%; }
.line-editor svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.line-editor .hint { position: absolute; left: 12px; bottom: 12px; }

/* ---------------------------------------------------------------- login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px;
         background: radial-gradient(1200px 600px at 10% -10%, rgba(99,102,241,.25), transparent),
                     radial-gradient(900px 500px at 110% 110%, rgba(14,165,233,.2), transparent), var(--bg); }
.login .card { width: min(400px, 100%); padding: 32px; display: grid; gap: 18px; }

/* ---------------------------------------------------------------- narrow screens
   A tablet at the counter or a phone on the shop floor: the sidebar becomes a
   scrolling strip of icons across the top, and grids fall to one column. */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .sidebar { position: sticky; top: 0; height: auto; z-index: 30; padding: 8px 10px; flex-direction: row; align-items: center; gap: 8px; }
  .brand { padding: 0 8px 0 2px; }
  .brand > div:last-child, .nav-label, .sidebar-foot, .nav .count { display: none; }
  .nav { flex-direction: row; overflow-x: auto; gap: 2px; }
  .nav a { padding: 8px 10px; }
  .nav a span { display: none; }
  .topbar { position: static; padding: 0 16px; }
  .topbar .pill { display: none; }
  .content { padding: 16px; }
  .grid.two, .grid.halves { grid-template-columns: 1fr; }
  .drawer { width: 100vw; }
}

.muted { color: var(--ink-3); }
.small { font-size: 12.5px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.right { margin-left: auto; }
.sep { height: 1px; background: var(--line); margin: 4px 0; }
.nowrap { white-space: nowrap; }
.clickable { cursor: pointer; }

/* Enrol staff: the photos waiting to be sent, and the capture preview. */
.enrol-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.enrol-thumbs:empty { display: none; }
.enrol-thumb { position: relative; aspect-ratio: 1; max-width: 100%; }
.enrol-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; }
.enrol-thumb button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; padding: 0; }
.thumb.ph { display: grid; place-items: center; color: var(--ink-4); }
#enCamera .feed { border-radius: 12px; }
#enCamera .feed .ph { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #94a3b8; font-size: 13px; }
#enSource button { display: inline-flex; align-items: center; gap: 6px; }
#enSource button svg { width: 16px; height: 16px; }
