:root {
    --pink: #e50074;
    --pink-deep: #b9327d;
    --ink: #1a181a;
    --grey: #aaaaaa;
    --grey-2: #eaebee;
    --yellow: #ffda44;
    --blue: #7bdff2;
    --bg: #f4f5f7;
    --surface: #ffffff;
    --line: #e3e4e8;
    --muted: #6b6a6e;
    --display: 'Bebas Neue', 'Arial Narrow', sans-serif;
    --body: 'Lato', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
    font-family: var(--body);
    color: var(--ink);
    background: var(--bg);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }

/* app shell */
.app { min-height: 100vh; display: flex; flex-direction: column;  }

/* the pink bar, the admin bar and the offline bar stay together at the top while the page scrolls */
.app-top { position: sticky; top: 0; z-index: 20; }
.app-bar {
    background: var(--pink);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    box-shadow: 0 2px 8px rgba(26, 24, 26, .12);
}
.app-logo { height: 26px; width: auto; display: block; }
.app-title { font-family: var(--display); font-size: 22px; letter-spacing: .02em; }
.app-icons { margin-left: auto; display: flex; gap: 6px; }
.app-ic { position: relative; color: #fff; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.app-ic.active { background: rgba(255, 255, 255, .18); }
.ic-badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #fff; color: var(--pink); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--pink); }
.notif { display: flex; gap: 12px; padding: 12px 14px; }
.notif.unread { border-left: 4px solid var(--pink); }
.notif .n-title { font-weight: 700; }
.notif .n-when { font-size: 12px; color: var(--muted); }
.chat { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 14px; }
.chat .bubble { max-width: 82%; padding: 10px 12px; border-radius: 14px; white-space: pre-wrap; font-size: 14px; }
.chat .bubble.in { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); }
.chat .bubble.out { align-self: flex-end; background: #fbe3f0; }
.chat .b-meta { font-size: 11px; color: var(--muted); margin-top: 4px; white-space: normal; }
.compose { position: sticky; bottom: 76px; background: var(--bg, #f6f4f7); padding-top: 8px; }

.app-main {
    flex: 1;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 16px 16px 88px;
}

/* bottom nav */
.bottom-nav {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 10;
    background: var(--surface);
    border-top: 1px solid var(--line);
    display: flex;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bnav {
    flex: 1;
    text-align: center;
    padding: 9px 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: pointer;
}
.bnav-ic { font-size: 17px; line-height: 1; }
.bnav.active { color: var(--pink); }

/* headings + text */
h1 {
    font-family: var(--display);
    font-weight: 400;
    font-size: 34px;
    letter-spacing: .01em;
    margin: 6px 0 14px;
    color: var(--ink);
}
.sub { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.muted { color: var(--muted); }
.link {
    background: none;
    border: none;
    color: var(--pink);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    margin-bottom: 12px;
}

/* filters */
.filters { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.pill {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    font-family: var(--body);
    font-weight: 700;
    font-size: 13px;
    padding: 7px 14px;
    border-radius: 999px;
    cursor: pointer;
}
.pill.on { background: var(--pink); color: #fff; border-color: var(--pink); }

/* job list */
.job-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.job {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(26, 24, 26, .04);
}
.job:hover { border-color: var(--pink); }
.job .grow { flex: 1; min-width: 0; }
.job .who { font-weight: 700; font-size: 15px; }
.job .sub { color: var(--muted); font-size: 12.5px; margin: 2px 0 0; }
.tag {
    display: inline-block;
    margin-top: 8px;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 6px;
    background: var(--grey-2);
    color: var(--ink);
}
.tag.md { background: #fbe3f0; color: var(--pink-deep); }

.status { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; background: var(--grey-2); color: var(--ink); }
.st-scheduled { background: var(--grey-2); color: var(--ink); }
.st-inprogress { background: #fff2cf; color: #8a6d1b; }
.st-collected { background: #fbe3f0; color: var(--pink-deep); }
.st-aborted { background: #efeaea; color: var(--muted); }

/* collection detail + wizard */
.donor-picker {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.lbl { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.input, select.input {
    padding: 10px 12px;
    border: 1px solid var(--grey);
    border-radius: 8px;
    font: inherit;
    font-size: 15px;
    background: var(--surface);
    color: var(--ink);
}
.wizard { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.wizard-step { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.wizard-step strong { color: var(--ink); }
.wizard-body { min-height: 120px; padding: 14px 0; }
.wizard-nav { display: flex; justify-content: space-between; gap: 10px; }

/* buttons - white on pink, per the brand accessibility rule */
.btn {
    font-family: var(--body);
    font-weight: 700;
    font-size: 15px;
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid var(--grey);
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
}
.btn:disabled { opacity: .45; cursor: default; }
.btn-primary { background: var(--pink); color: #fff; border-color: var(--pink); }
.btn-primary:hover:not(:disabled) { background: var(--pink-deep); }
.btn-block { display: block; width: 100%; margin-top: 12px; }
.confirm-btn { background: var(--surface); color: var(--pink); border: 1px solid var(--pink); }
.confirm-btn:hover { background: #fdeef6; }

/* loading + error, kept from the template but in brand pink */
.loading-progress { position: relative; display: block; width: 8rem; height: 8rem; margin: 22vh auto 1rem auto; }
.loading-progress circle { fill: none; stroke: var(--grey-2); stroke-width: .5rem; transform-origin: 50% 50%; transform: rotate(-90deg); }
.loading-progress circle:last-child { stroke: var(--pink); stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%; transition: stroke-dasharray .05s ease-in-out; }
.loading-progress-text { position: absolute; text-align: center; font-weight: 700; inset: calc(22vh + 3.25rem) 0 auto 0; color: var(--pink); }
.loading-progress-text:after { content: var(--blazor-load-percentage-text, "Loading"); }

#blazor-error-ui { background: #fff3cd; bottom: 0; box-shadow: 0 -1px 2px rgba(0, 0, 0, .2); display: none; left: 0; padding: .6rem 1.25rem .7rem 1.25rem; position: fixed; width: 100%; z-index: 1000; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }

.field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
}

    .field .input {
        width: 100%;
        box-sizing: border-box;
    }
.choice-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.choice {
    text-align: left;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

    .choice.on {
        border-color: var(--pink);
        background: #fdeef6;
        color: var(--pink-deep);
    }

.check { display: flex; align-items: center; gap: 8px; margin: 10px 0; font-size: 14px; }
.med-row { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.med-row .input { flex: 1; min-width: 90px; }
.two { display: flex; gap: 8px; }
.two .input { flex: 1; }
.consent { background: #faf7f9; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font-size: 13px; line-height: 1.5; margin-bottom: 14px; }
.consent-head { font-weight: 700; color: var(--pink-deep); margin: 0 0 6px; }
.test-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }
.test-head { font-family: var(--display); font-size: 18px; letter-spacing: .02em; margin: 0 0 10px; color: var(--ink); }

/* splash while the app loads/checks sign in */
.splash { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--pink); }
.splash-logo { width: 190px; height: auto; }

/* offline banner */
.offline-bar { background: #8a6d1b; color: #fff; text-align: center; font-size: 13px; font-weight: 700; padding: 6px 12px; }

/* admin "viewing as" banner */
.admin-bar { background: var(--ink); color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12.5px; padding: 7px 14px; }
.admin-bar strong { font-weight: 700; }
.admin-change { background: rgba(255,255,255,.18); color: #fff; border: 0; border-radius: 999px; padding: 3px 12px; font-size: 12px; font-weight: 700; cursor: pointer; }
.admin-actions { display: flex; gap: 6px; }
.collector-line { color: var(--pink-deep); font-weight: 700; }

/* login */
.login-shell { min-height: 100vh; background: var(--pink); display: flex; align-items: center; justify-content: center; padding: 24px 16px; padding-top: calc(24px + env(safe-area-inset-top, 0px)); }
.login-card { background: var(--surface); border-radius: 16px; padding: 26px 20px; width: 100%; max-width: 380px; box-shadow: 0 12px 30px rgba(26, 24, 26, .25); }
.login-logo { display: block; height: 40px; width: auto; margin: 4px auto 2px; }
.login-tag { font-family: var(--display); font-size: 26px; letter-spacing: .03em; text-align: center; color: var(--pink); margin: 0 0 20px; }
.login-error { color: #b00020; font-size: 13px; font-weight: 700; margin: 0 0 10px; }
.login-note { color: var(--muted); font-size: 12px; text-align: center; margin: 12px 0 0; }
.login-sub { text-align: center; color: var(--muted); font-size: 13px; margin: 0 0 20px; }
.ms-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; background: #fff; border: 1px solid #8c8c8c; border-radius: 8px; padding: 12px; font-family: var(--body); font-weight: 700; font-size: 14px; color: #1a181a; cursor: pointer; }
.ms-tiles { display: grid; grid-template-columns: 9px 9px; grid-template-rows: 9px 9px; gap: 2px; }
.ms-tiles i { display: block; }
.ms-tiles i:nth-child(1) { background: #f25022; }
.ms-tiles i:nth-child(2) { background: #7fba00; }
.ms-tiles i:nth-child(3) { background: #00a4ef; }
.ms-tiles i:nth-child(4) { background: #ffb900; }

/* simple cards used on account / about / outcome */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.card-lead { font-weight: 700; font-size: 17px; margin: 2px 0 4px; }
.card-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; }

/* the seal checklist */
.tick-list { list-style: none; margin: 0 0 14px; padding: 0; }
.tick-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.tick-list li span:first-child { color: var(--muted); }
.tick-list li span:last-child { font-weight: 700; text-align: right; }

/* signature box */
.sign-wrap { border: 1px dashed var(--grey); border-radius: 10px; background: #fafafa; }
.sign-pad { display: block; width: 100%; height: 170px; touch-action: none; }
.ok-note { color: var(--pink-deep); font-weight: 700; font-size: 14px; margin: 10px 0 0; }
.ta { min-height: 62px; }

/* per-donor notes button on the wizard card */
.wizard { position: relative; }
.wnote { position: absolute; top: 10px; right: 10px; height: 30px; padding: 0 12px; border-radius: 999px; background: #fbe3f0; color: var(--pink-deep); border: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; cursor: pointer; }
.wnote .nb-badge { position: absolute; top: -4px; right: -5px; background: var(--pink); color: #fff; font-size: 9px; font-weight: 700; border-radius: 999px; min-width: 15px; height: 15px; display: flex; align-items: center; justify-content: center; padding: 0 3px; }
.wizard-step { padding-right: 36px; }
.notes-head { display: flex; justify-content: space-between; align-items: center; margin: 0 0 12px; }
.notes-head .t { font-family: var(--display); font-size: 26px; letter-spacing: .01em; }
.note-tag { display: inline-block; background: var(--grey-2); color: var(--muted); font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.note-card { border: 1px solid var(--line); border-radius: 10px; padding: 11px; margin-bottom: 9px; font-size: 14px; }
.note-card .nt { margin: 0 0 6px; }

/* test chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.chipt { background: #fbe3f0; color: var(--pink-deep); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
button.chipt { border: 0; font-family: inherit; cursor: pointer; }
.test-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; }
.refuse-all { display: block; margin: 18px auto 0; color: var(--muted); }
.need-card { margin-top: 12px; }
.choice .go { color: var(--grey); font-weight: 400; }

/* declarations */
/* the segments are real buttons: iPhone Safari didn't always repaint a tapped span's background,
   leaving white text on white. isolation gives the rounded box its own layer so it repaints */
.seg { display: flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; isolation: isolate; -webkit-transform: translateZ(0); transform: translateZ(0); }
.seg span, .seg button { flex: 1; text-align: center; padding: 9px 5px; font-family: inherit; font-size: 13px; font-weight: 700; line-height: 1.2; white-space: nowrap; color: var(--muted); background: var(--surface); border: 0; border-right: 1px solid var(--line); border-radius: 0; margin: 0; cursor: pointer; -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent; }
.seg span:last-child, .seg button:last-child { border-right: 0; }
.seg span.on, .seg button.on { background: var(--pink); background-color: var(--pink); color: #fff; }
.decl-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 11px; }
.decl-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }
.decl-title { font-weight: 700; font-size: 15px; }
.pstat { font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--grey-2); color: var(--ink); }
.pstat.ok { background: #fbe3f0; color: var(--pink-deep); }
.pstat.no { background: #efeaea; color: var(--muted); }
.subq { display: flex; align-items: center; gap: 8px; margin: 11px 0 6px; font-size: 13px; }
.subq .lb { color: var(--muted); font-weight: 700; }
.pillbtn { border: 1px solid var(--grey); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 700; color: var(--ink); background: var(--surface); cursor: pointer; }
.pillbtn.on { background: var(--pink); color: #fff; border-color: var(--pink); }
.declitem { background: #faf7f9; border: 1px solid var(--line); border-radius: 9px; padding: 9px; margin-top: 8px; }

/* check & sign summary */
.summary { background: #faf7f9; border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 12px; }
.summary h4 { font-family: var(--display); font-size: 16px; letter-spacing: .02em; margin: 0 0 6px; color: var(--ink); }
.summary .srow { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.summary .srow:last-child { border-bottom: 0; }
.summary .srow span:first-child { color: var(--muted); }
.summary .srow span:last-child { font-weight: 700; text-align: right; }
.sign-tap { display: block; width: 100%; border: 1.5px dashed var(--pink); border-radius: 10px; background: #fdeef6; color: var(--pink-deep); font-weight: 700; font-size: 14px; text-align: center; padding: 22px 12px; cursor: pointer; }
.refuse-link { display: block; text-align: center; margin-top: 10px; }
.reason { margin-top: 10px; }
.sig-done { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 11px; background: #faf7f9; }
.sig-done .who { font-weight: 700; color: var(--pink-deep); font-size: 14px; }
.sig-mini { width: 92px; height: 40px; border: 1px solid var(--line); border-radius: 6px; background: #fff; object-fit: contain; }

/* full-screen signing */
.sign-screen { position: fixed; inset: 0; z-index: 50; background: var(--surface); display: flex; flex-direction: column; }
.sign-screen-head { background: var(--pink); color: #fff; display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top, 0px)); font-weight: 700; }
.sign-screen-pad { flex: 1; margin: 14px; border: 1.5px dashed var(--grey); border-radius: 12px; background: #fafafa; min-height: 220px; }
.sign-screen-pad .sign-pad { width: 100%; height: 100%; min-height: 220px; }
.sign-screen-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 0 14px 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
.sign-screen-foot .btn { min-width: 130px; }
.link.light { color: #fff; }

/* barcode + scan */
.bc-row { display: flex; gap: 8px; align-items: center; }
.bc-row .input { flex: 1; }
.scan-btn { white-space: nowrap; }
.scan-screen { position: fixed; inset: 0; z-index: 60; background: #000; display: flex; flex-direction: column; }
.scan-head { background: var(--pink); color: #fff; display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top, 0px)); font-weight: 700; }
.scan-body { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px; }
.scan-video { width: 100%; max-height: 70vh; object-fit: cover; border-radius: 8px; background: #000; }
.scan-frame { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 72%; height: 120px; border: 3px solid rgba(255, 255, 255, .85); border-radius: 10px; pointer-events: none; }
.scan-hint { color: #fff; font-size: 14px; text-align: center; max-width: 320px; }

/* photo capture */
.photo-row { display: flex; align-items: center; gap: 12px; }
.photo-thumb { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); }

/* menu list */
.menu-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.menu-item { display: flex; justify-content: space-between; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; text-align: left; width: 100%; font: inherit; }
.menu-item .mi-t { font-weight: 700; font-size: 15px; }
.menu-item .mi-d { color: var(--muted); font-size: 12px; margin-top: 1px; }
.menu-item .chev { color: var(--grey); }
.badge { background: var(--pink); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 8px; }

/* reading a test from a photo */
.rapid-screen { position: fixed; inset: 0; z-index: 60; background: var(--bg, #fff); display: flex; flex-direction: column; }
.rapid-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.rapid-note { color: var(--muted); font-size: 13px; margin: 0; }
.rapid-status { text-align: center; color: var(--muted); font-size: 14px; margin: 8px 0; }
.rapid-take { align-self: stretch; }
/* live camera + guide box for reading a cube */
.cube-cam { position: relative; width: 100%; border-radius: 10px; overflow: hidden; background: #000; }
.cube-video { width: 100%; height: auto; display: block; background: #000; }
.cube-box { position: absolute; left: 16%; top: 14%; width: 68%; height: 72%; border: 3px solid rgba(255,255,255,.95); border-radius: 8px; pointer-events: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.4); }
/* "scanning" the captured photo while the reader thinks */
.rapid-scanning { position: relative; width: 100%; max-width: 260px; margin: 6px auto 2px; border-radius: 10px; overflow: hidden; background: #000; }
.rapid-scanning::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px rgba(255,255,255,.18); border-radius: 10px; pointer-events: none; }
.rapid-scanimg { width: 100%; display: block; }
.scanline { position: absolute; left: 0; right: 0; top: -48px; height: 48px; pointer-events: none; background: linear-gradient(to bottom, rgba(45,220,150,0), rgba(45,220,150,.30) 42%, rgba(150,255,205,.95) 50%, rgba(45,220,150,.30) 58%, rgba(45,220,150,0)); animation: scansweep 1.7s ease-in-out infinite; }
@keyframes scansweep { 0% { top: -48px; } 100% { top: 100%; } }
@media (prefers-reduced-motion: reduce) { .scanline { animation: none; top: 46%; opacity: .6; } }
.rapid-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.rapid-verdict { text-align: center; font-weight: 800; font-size: 20px; padding: 14px; border-radius: 12px; }
.rapid-verdict.v-neg { background: #e7f5ec; color: #1f7a43; }
.rapid-verdict.v-pos { background: #fdeaea; color: #b12a2a; }
.rapid-verdict.v-invalid { background: #f0f0f2; color: #555; }
.rapid-warn { background: #fff6e5; color: #8a5a00; font-size: 13px; padding: 10px 12px; border-radius: 10px; margin: 0; }
.rapid-rect { display: block; max-width: 180px; margin: 0 auto; border-radius: 8px; border: 1px solid var(--line); }
.rapid-strips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rapid-strip { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.rapid-swatch { width: 16px; height: 16px; border-radius: 4px; flex: none; border: 1px solid rgba(0,0,0,.15); }
.rapid-drug { font-weight: 700; font-size: 15px; }
.rapid-line { margin-left: auto; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.rapid-line.l-neg { background: #e7f5ec; color: #1f7a43; }
.rapid-line.l-pos { background: #fdeaea; color: #b12a2a; }
.rapid-line.l-invalid { background: #f0f0f2; color: #555; }
.rapid-actions { display: flex; gap: 10px; margin-top: 4px; }
.rapid-actions .btn { flex: 1; }
.rapid-report { background: #1a181a; color: #e8e6e3; font-size: 11.5px; line-height: 1.5; padding: 12px; border-radius: 8px; white-space: pre-wrap; overflow-x: auto; }

/* a stored screen result on the test card */
.screen-result { border-radius: 10px; padding: 10px 12px; margin-bottom: 4px; }
.screen-result.sr-neg { background: #e7f5ec; }
.screen-result.sr-pos { background: #fdeaea; }
.screen-result.sr-invalid { background: #f0f0f2; }
.screen-result .sr-head { font-weight: 800; }
.screen-result.sr-neg .sr-head { color: #1f7a43; }
.screen-result.sr-pos .sr-head { color: #b12a2a; }
.screen-result.sr-invalid .sr-head { color: #555; }
.screen-result .sr-detail { font-size: 12px; color: var(--muted); margin: 2px 0 6px; }
/* ---- Guardian: sessions, results, outbox, office pages ---- */
.req { color: var(--pink); }
.err { color: #b3261e; font-size: 13px; margin: 8px 0; }
.ok { color: #1e7b3a; font-size: 13px; margin: 8px 0; }
.warn { background: #fff2cf; color: #6b5412; border-radius: 8px; padding: 10px 12px; font-size: 13px; }
.warn-card { border-color: #f0d68a; background: #fffaf0; }
.miss-list { margin: 0 0 8px; padding-left: 18px; font-size: 13px; }
.session-bar, .outbox-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; }
.session-bar { background: #fbe3f0; color: var(--pink-deep); font-weight: 700; }
.outbox-bar { background: #fff2cf; color: #6b5412; }
.sub.held { color: #b3261e; font-weight: 700; }
.drug-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.drug-name { font-weight: 700; min-width: 56px; }
.drug-row .seg { flex: 0 0 auto; }
.st-held { background: #fde2e0; color: #b3261e; }
.adm-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 10px; }
.adm-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 6px 4px; border-bottom: 1px solid var(--line); }
.adm-table td { padding: 8px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.adm-act { text-align: right; white-space: nowrap; }
.adm-act .btn { padding: 6px 10px; font-size: 13px; margin: 0; }
.issue { font-size: 12px; color: #b3261e; margin-top: 4px; }
@media (max-width: 560px) {
    .adm-table thead { display: none; }
    .adm-table tr { display: block; border-bottom: 1px solid var(--line); padding: 6px 0; }
    .adm-table td { display: block; border: 0; padding: 3px 0; }
    .adm-act { text-align: left; }
}
.set-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.set-row:last-child { border-bottom: 0; }
.set-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.set-label { font-weight: 700; font-size: 14px; }
.set-value { white-space: pre-wrap; font-size: 14px; margin: 2px 0 4px; word-break: break-word; }

/* type-ahead for declaration names */
.suggest { position: relative; }
.suggest-list { list-style: none; margin: 4px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); overflow: hidden; }
.suggest-list li { padding: 9px 12px; font-size: 13px; cursor: pointer; border-top: 1px solid var(--line); }
.suggest-list li:first-child { border-top: none; }
.suggest-list li:active, .suggest-list li:hover { background: var(--grey-2); }
