:root {
  --bg: #f4f6fa; --card: #ffffff; --text: #172b45; --muted: #52657d; --line: #dfe6ee; --field: #f9fbfd;
  --brand: #245dcc; --brand-2: #194aa9; --brand-soft: #edf3ff; --on-brand: #ffffff;
  --ok: #15803d; --ok-soft: #dcfce7; --warn: #b45309; --warn-soft: #fef3c7; --bad: #b91c1c; --bad-soft: #fee2e2;
  --hot: #c2410c; --hot-soft: #ffedd5; --warm: #a16207; --warm-soft: #fef9c3; --cold: #0369a1; --cold-soft: #e0f2fe;
  --violet: #6d28d9; --violet-soft: #ede9fe;
  --shadow: 0 2px 5px rgba(23, 43, 69, .025), 0 8px 28px rgba(23, 43, 69, .035);
  --r: 16px; --tab: 0px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120; --card: #151c2c; --text: #e7ecf5; --muted: #94a3b8; --line: #263147; --field: #0f1626;
    --brand: #5b8def; --brand-2: #7aa2f7; --brand-soft: #1b2a4a; --on-brand: #06122b;
    --ok: #6ee7a0; --ok-soft: #12351f; --warn: #fcd34d; --warn-soft: #3d2f0a; --bad: #fca5a5; --bad-soft: #451a1a;
    --hot: #fdba74; --hot-soft: #44200c; --warm: #fde68a; --warm-soft: #3a300a; --cold: #7dd3fc; --cold-soft: #0c2e44;
    --violet: #c4b5fd; --violet-soft: #2a2050;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; background: var(--bg); color: var(--text); -webkit-tap-highlight-color: transparent; }
a { color: var(--brand); }
h1 { font-size: clamp(1.65rem, 4vw, 2.15rem); line-height: 1.18; margin: .2rem 0 .4rem; letter-spacing: -.035em; }
h2 { font-size: 1.05rem; margin: 0; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
main > h2 { margin: 1.4rem 0 .2rem; }
p { margin: .4rem 0; }
.ico { flex: none; vertical-align: -.2em; }
.muted { color: var(--muted); font-size: .92rem; } .small { font-size: .82rem; }
.center { text-align: center; } .nowrap { white-space: nowrap; } .pad { padding: 1rem 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; }

/* ---------- chrome ---------- */
.appbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1rem; padding: .7rem max(1rem, calc((100vw - 1260px) / 2)); padding-top: calc(.55rem + env(safe-area-inset-top)); background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.logo, .backlink { display: flex; align-items: center; gap: .45rem; font-weight: 700; font-size: 1.05rem; text-decoration: none; color: var(--text); margin-right: auto; min-height: 40px; }
.logo .ico { color: var(--brand); }
.backlink { color: var(--brand); font-weight: 600; }
.topnav { display: none; gap: .25rem; }
.topnav a, .subnav a { text-decoration: none; color: var(--muted); font-weight: 600; padding: .45rem .8rem; border-radius: 999px; white-space: nowrap; display: inline-flex; align-items: center; gap: .4rem; }
.topnav a.on, .subnav a.on { color: var(--brand); background: var(--brand-soft); }
.subnav { display: flex; gap: .25rem; overflow-x: auto; padding: .5rem 1rem; background: var(--card); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.avatar { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: .9rem; text-decoration: none; letter-spacing: .02em; }
.avatar.on { outline: 2px solid var(--brand); }
.avatar.sm { width: 32px; height: 32px; font-size: .75rem; }
.avatar.xl { width: 64px; height: 64px; font-size: 1.4rem; }
.avatar.ghost { background: var(--line); color: var(--muted); }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .5rem 0 .45rem; text-decoration: none; color: var(--muted); font-size: .72rem; font-weight: 600; }
.tabbar a.on { color: var(--brand); }
body.has-user:not(.focus) { --tab: 64px; }
main { padding: 1.25rem; padding-bottom: calc(1.5rem + var(--tab) + env(safe-area-inset-bottom)); max-width: 1320px; margin: 0 auto; }
main.narrow { max-width: 640px; }
main.workspace { max-width: 940px; }
@media (min-width: 760px) {
  .topnav { display: flex; } .tabbar { display: none; }
  body.has-user:not(.focus) { --tab: 0px; }
  main { padding: 1.5rem; } .subnav { padding: .5rem 1.5rem; }
}

/* ---------- building blocks ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem; margin: 1rem 0; box-shadow: var(--shadow); }
.stack > * { display: block; width: 100%; margin: .7rem 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .8rem 1rem; align-items: start; }
.grid > h2, .grid > .row { grid-column: 1 / -1; }
.row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.nowrapflex { flex-wrap: nowrap; }
label { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); }
label small { display: block; font-weight: 400; margin-top: .2rem; }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; font-weight: 400; color: var(--text); background: var(--field); border: 1px solid var(--line); border-radius: 10px; padding: .7rem .8rem; margin-top: .25rem; min-height: 48px; }
textarea { min-height: 0; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); background: var(--card); box-shadow: 0 0 0 3px var(--brand-soft); }
input.empty { border-style: dashed; }
input[type=radio], input[type=checkbox] { width: auto; min-height: 0; margin: 0; accent-color: var(--brand); }
fieldset { border: 0; padding: 0; margin: .9rem 0; min-width: 0; }
legend { font-size: .85rem; font-weight: 600; color: var(--muted); padding: 0; margin-bottom: .2rem; }
.btn { font: inherit; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; text-decoration: none; color: var(--text); background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; padding: .7rem 1.1rem; min-height: 48px; transition: transform .05s, background .15s; }
.btn:active { transform: scale(.98); }
.btn:hover { border-color: var(--brand); }
.btn.primary { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.btn.primary:hover { background: var(--brand-2); }
.btn.big { min-height: 54px; font-size: 1.05rem; width: 100%; }
.btn.warnbtn { background: var(--warn-soft); color: var(--warn); border-color: transparent; width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
button.link { font: inherit; border: 0; background: none; color: var(--brand); padding: .4rem 0; text-decoration: underline; cursor: pointer; }
button.danger { color: var(--bad); }
form.inline { display: inline; }
details > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .6rem; }
details > summary::-webkit-details-marker { display: none; }
details > summary > .ico:last-child { margin-left: auto; color: var(--muted); transition: transform .15s; }
details[open] > summary > .ico:last-child { transform: rotate(90deg); }
details[open] > summary { margin-bottom: .8rem; }

.chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .76rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; background: var(--line); color: var(--muted); white-space: nowrap; }
.chip.submitted { background: var(--ok-soft); color: var(--ok); }
.chip.ready, .chip.processing { background: var(--warn-soft); color: var(--warn); }
.chip.failed { background: var(--bad-soft); color: var(--bad); }
.pri-hot { background: var(--hot-soft); color: var(--hot); } .pri-warm { background: var(--warm-soft); color: var(--warm); } .pri-cold { background: var(--cold-soft); color: var(--cold); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.pulse { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.count { font-size: .78rem; font-weight: 700; background: var(--line); color: var(--muted); border-radius: 999px; padding: .05rem .5rem; }

#toasts { display: grid; gap: .5rem; margin-bottom: .6rem; }
#toasts:empty, #toasts:not(:has(> :not([hidden]))) { display: none; }
.auth #toasts { width: 100%; }
.toast, .callout { display: flex; gap: .6rem; align-items: flex-start; padding: .75rem .9rem; border-radius: 12px; background: var(--ok-soft); color: var(--ok); font-weight: 500; margin: 0; }
.toast.warn, .callout.warn { background: var(--warn-soft); color: var(--warn); }
.callout { margin: .8rem 0; } .callout.ok { background: var(--ok-soft); color: var(--ok); }
.toast .ico, .callout .ico { margin-top: .15rem; }
.toast.out { opacity: 0; transition: opacity .4s; }

.empty { text-align: center; padding: 1.6rem 1.2rem; display: grid; gap: .5rem; justify-items: center; }
.empty.slim { padding: 1rem; box-shadow: none; }
.emptyicon { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.emptyicon.warn { background: var(--warn-soft); color: var(--warn); } .emptyicon.good { background: var(--ok-soft); color: var(--ok); }

/* ---------- sign in ---------- */
main.auth { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; gap: 1rem; max-width: 440px; }
.authcard { position: relative; overflow: hidden; width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 2.5rem 1.75rem; box-shadow: var(--shadow); text-align: center; }
.authcard::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--brand), #239a90); }
.authcard form { text-align: left; margin-top: 1rem; }
.mark { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto .8rem; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); }

/* ---------- employee home ---------- */
.hero { margin: .2rem 0 1.5rem; }
.hero .muted { margin-top: .65rem; max-width: 48ch; }
.eyebrow { font-size: .8rem; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .05em; margin: 0; }
.capture { display: grid; gap: .8rem; }
.actions2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.action, .side { display: grid; justify-items: center; gap: .15rem; text-align: center; padding: 1.4rem .6rem; border-radius: 20px; cursor: pointer; background: var(--card); border: 1.5px solid var(--line); color: var(--text); box-shadow: var(--shadow); transition: transform .06s; }
.action:active, .side:active { transform: scale(.97); }
.action .ico, .side .ico { color: var(--brand); margin-bottom: .3rem; }
.action b, .side b { font-size: 1.05rem; color: var(--text); }
.action small, .side small { color: var(--muted); font-weight: 400; font-size: .82rem; }
.action.primary { background: var(--brand); border-color: var(--brand); }
.action.primary .ico, .action.primary b { color: var(--on-brand); } .action.primary small { color: var(--on-brand); opacity: .85; }
.twobox { display: grid; gap: .8rem; }
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.side { border-style: dashed; box-shadow: none; padding: 1.1rem .6rem; }
.side.set { border-style: solid; border-color: var(--ok); background: var(--ok-soft); } .side.set .ico { color: var(--ok); }
.side small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.switch { display: flex; align-items: center; gap: .6rem; cursor: pointer; color: var(--text); font-weight: 500; font-size: .95rem; }
.switch.small { display: inline-flex; font-size: .85rem; color: var(--muted); margin-left: .8rem; }
.switch input { position: absolute; opacity: 0; }
.track { flex: none; width: 42px; height: 24px; border-radius: 999px; background: var(--line); position: relative; transition: background .15s; }
.track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: transform .15s; }
.switch input:checked + .track { background: var(--brand); } .switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--brand); outline-offset: 2px; }
.progress { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: .8rem; }
.bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; width: 8%; background: var(--brand); border-radius: 999px; transition: width .3s; }
.progress p { overflow-wrap: anywhere; margin: .5rem 0 0; font-size: .9rem; text-align: center; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin: 1rem 0 .4rem; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: .7rem .5rem; text-align: center; text-decoration: none; color: var(--text); }
.stat b { display: block; font-size: 1.5rem; line-height: 1.1; } .stat span { color: var(--muted); font-size: .8rem; }
.stat.attn b { color: var(--warn); } .stat.good b { color: var(--ok); }
.rows { list-style: none; padding: 0; margin: .5rem 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.rows li + li { border-top: 1px solid var(--line); }
.rows .row { transition: background .15s; flex-wrap: nowrap; gap: .7rem; padding: .7rem .8rem; text-decoration: none; color: var(--text); min-height: 78px; }
.rows .row:hover, .rows .row:active { background: var(--field); }
.rows .row > .ico { color: var(--muted); }
.rowmain { flex: 1; min-width: 0; display: grid; }
.rowmain strong, .rowmain small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rowmain small { color: var(--muted); font-size: .82rem; }
.searchbox { display: flex; align-items: center; gap: .5rem; background: var(--field); border: 1.5px solid var(--line); border-radius: 12px; padding: 0 .8rem; color: var(--muted); }
.searchbox:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.searchbox input { min-width: 0; border: 0; background: none; margin: 0; padding-left: 0; box-shadow: none !important; }
.tabs { display: flex; gap: .4rem; margin: .8rem 0 .2rem; overflow-x: auto; }
.tabs button { font: inherit; font-weight: 600; cursor: pointer; border: 0; background: none; color: var(--muted); padding: .45rem .8rem; border-radius: 999px; white-space: nowrap; display: inline-flex; gap: .4rem; align-items: center; }
.tabs button.on { background: var(--brand-soft); color: var(--brand); }
.profile { display: flex; align-items: center; gap: 1rem; margin: .4rem 0 1rem; } .profile h1 { margin: 0; }

/* ---------- card check ---------- */
.steps { list-style: none; display: flex; gap: .3rem; padding: 0; margin: 0 0 .8rem; }
.steps li { flex: 1; display: flex; align-items: center; justify-content: center; gap: .35rem; font-size: .78rem; font-weight: 700; color: var(--muted); padding: .4rem .3rem; border-radius: 999px; background: var(--line); white-space: nowrap; }
.steps li i { font-style: normal; }
.steps li.done { background: var(--ok-soft); color: var(--ok); } .steps li.now { background: var(--brand); color: var(--on-brand); }
.photos { display: flex; gap: .6rem; overflow-x: auto; scroll-snap-type: x mandatory; }
.photo { flex: 1 0 auto; max-width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #000; cursor: zoom-in; scroll-snap-align: center; position: relative; }
.photo img { display: block; max-height: 240px; max-width: 100%; margin: 0 auto; }
.photos.scanning .photo::after { content: ""; position: absolute; left: 0; right: 0; height: 3px; background: var(--brand-2); box-shadow: 0 0 14px 4px var(--brand); animation: scan 1.8s ease-in-out infinite; }
@keyframes scan { 0% { top: 4%; } 50% { top: 94%; } 100% { top: 4%; } }
.meta { font-size: .78rem; color: var(--muted); text-align: center; margin: .4rem 0 0; }
.group { scroll-margin-top: 90px; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.group h2 { padding-bottom: .85rem; border-bottom: 1px solid var(--line); }
.group > * { grid-column: 1 / -1; } .group > label.half { grid-column: auto; }
.group > summary { margin-bottom: 0; } details.group[open] > summary { margin-bottom: 0; }
.seg, .chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.seg label { flex: 1 1 0; } .chips label { flex: 0 1 auto; }
.seg input, .chips input { position: absolute; opacity: 0; }
.seg span { display: grid; text-align: center; padding: .65rem .3rem; border-radius: 12px; border: 2px solid transparent; filter: saturate(.5); opacity: .7; }
.seg span b { font-size: 1rem; } .seg span small { font-weight: 500; font-size: .72rem; opacity: .9; }
.chips span { display: block; padding: .5rem .95rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--field); color: var(--text); font-weight: 600; font-size: .92rem; }
.seg input:checked + span { opacity: 1; filter: none; border-color: currentColor; }
.chips input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.seg input:focus-visible + span, .chips input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.actionbar { position: sticky; bottom: 0; z-index: 10; display: flex; gap: .6rem; padding: .7rem 0; padding-bottom: calc(.7rem + env(safe-area-inset-bottom)); margin-top: .6rem; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding-left: .7rem; padding-right: .7rem; box-shadow: 0 -4px 24px rgba(15, 23, 42, .06); }
.actionbar .btn { min-height: 54px; } .actionbar .btn.primary { flex: 1; width: auto; }
.spinner { width: 46px; height: 46px; border: 4px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .92); display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 1rem; gap: 1rem; }
#lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; min-height: 0; }

/* ---------- admin ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7rem; margin-bottom: .8rem; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: .9rem; text-decoration: none; color: var(--text); box-shadow: var(--shadow); display: grid; gap: .1rem; }
.tile b { font-size: 1.7rem; line-height: 1.15; } .tile > span:last-child { color: var(--muted); font-size: .85rem; }
.tile.alert { border-color: var(--warn); }
a.tile:hover { border-color: var(--brand); }
.ti { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; margin-bottom: .3rem; }
.ti.blue { background: var(--brand-soft); color: var(--brand); } .ti.green { background: var(--ok-soft); color: var(--ok); }
.ti.amber { background: var(--warn-soft); color: var(--warn); } .ti.red { background: var(--bad-soft); color: var(--bad); }
.ti.violet { background: var(--violet-soft); color: var(--violet); }
.people { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .2rem; }
.person { display: inline-flex; align-items: center; gap: .45rem; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: .25rem .8rem .25rem .25rem; text-decoration: none; color: var(--text); white-space: nowrap; font-size: .9rem; }
.person b { color: var(--brand); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.filters select { width: auto; flex: 1 1 140px; margin: 0; } .filters .grow { flex: 1 1 100%; }
.tablehead { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; margin: 1rem 0 .5rem; }
.tablehead p { margin: 0; }
.tablewrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.tablewrap.flat { box-shadow: none; margin-bottom: .8rem; }
table.data { border-collapse: collapse; width: 100%; font-size: .9rem; }
.data th, .data td { text-align: left; padding: .85rem .9rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data tr:last-child td { border-bottom: 0; }
.data th { white-space: nowrap; color: var(--muted); font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; background: var(--field); }
.data tbody tr:hover { background: var(--field); }
.who a, .wholine { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); min-width: 190px; }
.who small { display: block; color: var(--muted); font-size: .8rem; }
.data td input:not([type=radio]):not([type=checkbox]) { min-width: 150px; margin: 0; }
.setup { border-color: var(--brand); }
.checklist { list-style: none; counter-reset: s; padding: 0; margin: .8rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .6rem; }
.checklist li { counter-increment: s; }
.checklist a { display: grid; grid-template-columns: auto 1fr; column-gap: .7rem; align-items: center; padding: .8rem; border-radius: 12px; background: var(--field); border: 1px solid var(--line); text-decoration: none; color: var(--text); height: 100%; }
.checklist a::before { content: counter(s); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); font-weight: 700; }
.checklist li.done a::before { content: "✓"; background: var(--ok); color: #fff; }
.checklist small { color: var(--muted); grid-column: 2; }
.connect { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 1rem; align-items: start; }
.qrcard { text-align: center; display: grid; gap: .7rem; justify-items: center; }
.qr { background: #fff; padding: .6rem; border-radius: 14px; border: 1px solid var(--line); line-height: 0; }
.qr svg { width: min(250px, 62vw); height: auto; }
.addr { font: 700 1.15rem ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; margin: 0; }
.howto { padding-left: 1.2rem; display: grid; gap: .6rem; } .howto ul { padding-left: 1.1rem; margin: .3rem 0 0; color: var(--muted); }
.data td.two small { display: block; color: var(--muted); font-size: .8rem; }
.data td.attn { min-width: 170px; font-size: .82rem; }

/* Clear entry points and comfortable targets on small phones. */
.menu { display: grid; gap: .75rem; }
.menu > h2 { margin-top: .75rem; }
.menuitem { display: flex; gap: .9rem; align-items: center; padding: 1rem; min-height: 84px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); color: var(--text); text-decoration: none; box-shadow: var(--shadow); }
.menuitem > span { flex: 1; min-width: 0; }
.menuitem b { display: block; font-size: 1.05rem; }
.menuitem small { display: block; color: var(--muted); margin-top: .2rem; }
.menuitem > .ico { color: var(--brand); }
.menuitem.featured { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.menuitem.featured small, .menuitem.featured > .ico { color: inherit; }
a:focus-visible, button:focus-visible, .action:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.skip-card { margin-left: auto; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Event workspace */
.welcome { background: linear-gradient(125deg, var(--card), var(--brand-soft)); border: 1px solid var(--line); border-radius: 24px; padding: clamp(1.3rem, 4vw, 2rem); margin-bottom: 1.5rem; }
.welcome .eyebrow { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; font-size: .73rem; }
.welcome h1 { max-width: 22ch; }
.collection-label { margin: 1.5rem 0 .5rem; font-size: .72rem; font-weight: 600; color: var(--muted); }
.workspace-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 0; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.workspace-stats > div { display: grid; gap: .15rem; padding: 0 1rem; border-right: 1px solid var(--line); }
.workspace-stats > div:first-child { padding-left: 0; }.workspace-stats > div:last-child { border: 0; }
.workspace-stats b { font-size: 1.6rem; font-variant-numeric: tabular-nums; letter-spacing: -.04em; line-height: 1.2; }
.workspace-stats span { font-size: .78rem; color: var(--muted); }
.sectionhead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.sectionhead > span { color: var(--muted); font-size: .8rem; }
.menu { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.menuitem { align-items: flex-start; padding: 1.25rem; min-height: 116px; transition: border-color .15s, box-shadow .15s; }
.menuitem > .ico:first-child { background: var(--brand-soft); padding: 10px; border-radius: 12px; width: 46px; height: 46px; }
.menuitem > .ico:last-child { width: 16px; margin-top: .9rem; color: var(--muted); }
.menuitem:hover { border-color: var(--brand); box-shadow: 0 6px 20px rgba(36, 93, 204, .08); }
.menuitem.featured > .ico:first-child { background: rgba(255, 255, 255, .16); }
.menuitem.featured > .ico:last-child { color: inherit; }
.menu > h2 { grid-column: 1 / -1; }
.menuitem small { line-height: 1.5; font-size: .83rem; }
.menuitem b { font-size: 1rem; letter-spacing: -.015em; }
.workspace-note { display: flex; align-items: center; justify-content: center; gap: .4rem; color: var(--muted); font-size: .76rem; margin: 1.5rem 0 0; }
.pagehead { margin: .25rem 0 1.5rem; }.pagehead .eyebrow { margin-bottom: .45rem; }.pagehead > p:last-child { max-width: 74ch; margin-top: .6rem; }
.capture-tip { display: flex; align-items: flex-start; gap: .6rem; font-size: .85rem; color: var(--muted); padding: .5rem .1rem; }
.capture-tip .ico { color: var(--brand); flex-shrink: 0; }
.review-heading { margin: .9rem 0; }.review-heading h1 { font-size: 1.55rem; }.review-heading p { font-size: .85rem; color: var(--muted); }
.review-round { display: flex; align-items: center; gap: .8rem; justify-content: space-between; background: var(--brand-soft); padding: .8rem 1rem; border-radius: 12px; margin-bottom: 1rem; font-size: .85rem; }
.review-round a { font-weight: 600; padding: .3rem 0; }
.form-status { color: var(--muted); font-size: .78rem; margin: .6rem .2rem; min-height: 1.3em; }
.tabs { background: var(--line); border-radius: 12px; padding: .3rem; gap: .25rem; margin: 1rem 0; }
.tabs button { flex: 1; justify-content: center; padding: .65rem .5rem; border-radius: 9px; font-size: .85rem; }
.tabs button.on { background: var(--card); box-shadow: var(--shadow); color: var(--text); }
.tablewrap { scrollbar-width: thin; }.data th { padding-top: 1rem; padding-bottom: 1rem; }.data th:first-child { border-top-left-radius: var(--r); }.data th:last-child { border-top-right-radius: var(--r); }
.tablehint { color: var(--muted); font-size: .78rem; margin: .5rem 0; display: none; }
#neterr { scroll-margin-top: 100px; }
.skiplink { position: fixed; top: -100px; left: 1rem; z-index: 100; padding: .75rem 1rem; background: var(--card); color: var(--brand); border: 2px solid var(--brand); border-radius: 10px; }.skiplink:focus { top: 1rem; }
@media (max-width: 600px) {
  .menu { grid-template-columns: 1fr; gap: .75rem; }.menuitem { min-height: 94px; padding: 1rem; align-items: center; }.menuitem > .ico:last-child { margin-top: 0; }
  .welcome { border-radius: 20px; }.workspace-stats > div { padding: 0 .65rem; }
  .sectionhead > span { display: none; }.review-round { align-items: flex-start; }.review-round a { flex: 0 0 42%; text-align: right; }
  .card.group { padding: 1rem; }.tablehint { display: block; }.tabbar a { min-height: 62px; font-size: .68rem; }
  .actionbar .btn { padding-left: .75rem; padding-right: .75rem; font-size: .95rem; }
}

.eyebrow, .meta, .profile h1 { overflow-wrap: anywhere; }
.card, .profile > div { min-width: 0; }
