:root{
  /* The laboratory's own colors, which are the prototype's: cool grays, one blue for links and the main buttons, and
     a navy with a gold line for the pages before sign-in. An institution may put its own header, accent and link
     colors in their place (`BadgeMark`); everything else stays as it is here. */
  --white:#FFFFFF;--ink:#0F172A;--navy:#0F2540;--gold:#B8892B;
  --blue:#1D4ED8;--blue-hover:#1E40AF;--blue-deep:#1E3A8A;--blue-tint:#EFF6FF;--blue-wash:#DBEAFE;--blue-line:#93C5FD;--blue-faint:#F5F8FF;
  /* Cool neutrals. */
  --n50:#F8FAFC;--n75:#F3F5F8;--n100:#F1F5F9;--n200:#E2E8F0;--n250:#D8DEE8;--n300:#C3CCD9;--n400:#94A3B8;--n450:#7A899E;--n600:#475569;--n700:#334155;
  /* Status and mode colors. */
  --green:#14532D;--green-tint:#DCFCE7;--green-line:#86C99B;--red:#991B1B;--red-tint:#FEE2E2;--red-line:#F0A3A3;
  --amber:#78350F;--amber-tint:#FEF3C7;--amber-line:#E5B454;--amber-mid:#B45309;
  --plum:#4B2A85;--plum-tint:#EFE9FA;--plum-line:#6B46B5;
  --shade:rgba(15,37,64,.18);--shade-soft:rgba(15,37,64,.12);
  /* A platform's own face (its front page and its pages before sign-in) is not a college's: neutral grays, light and
     dark, one blue for actions and one green for its mark. The grays and the blue are Flight Data Recorder's. */
  --slate-page:#FBFBFA;--slate-ink:#1B1D1F;--slate-muted:#62676D;--slate-line:#DCDEDF;--slate-sunk:#F1F2F3;
  --night-page:#141416;--night-raised:#1C1D20;--night-ink:#F2F2F4;--night-muted:#98989F;--night-line:#2C2E31;
  --night-card:#1E2023;--night-card-top:#23252A;
  --action-blue:#0B5CD5;--action-blue-night:#6AA3FF;--mark-green:#2EC4A0;--mark-green-deep:#0E8F78;
  --alert:#C2410C;--alert-night:#F08A5D;--fine:#2C8A4B;--fine-night:#4CC17B;
  --lift:rgba(0,0,0,.09);--lift-night:rgba(0,0,0,.45);

  /* Roles. Everything below this line names a job, and pages use only these. */
  --on-dark:var(--white);--on-light:var(--ink);
  --page:var(--n75);--surface:var(--white);--surface-soft:var(--n50);--surface-sunk:var(--n100);
  --border:var(--n250);--border-soft:var(--n100);--border-input:var(--n450);--border-dashed:var(--n400);--border-thumb:var(--n300);
  --text:var(--ink);--text-soft:var(--n700);--text-muted:var(--n600);
  --link:var(--blue);--link-hover:var(--blue-deep);
  --primary:var(--blue);--primary-hover:var(--blue-hover);--primary-text:var(--white);--primary-edge:var(--blue);
  --button:var(--white);--button-text:var(--ink);--button-edge:var(--n400);
  --focus:var(--blue);--selected:var(--blue-tint);--selected-edge:var(--blue);--unread:var(--blue-faint);
  /* The header is the surface with a hairline under it. `--strong` is the dark fill of a chosen tab and a count;
     `--ground` is what the pages before sign-in stand on, and `--ground-accent` the line across their card. */
  --bar:var(--surface);--bar-text:var(--text);--bar-accent:var(--border);--bar-rule:1px;
  --strong:var(--navy);--strong-text:var(--white);--ground:var(--navy);--ground-accent:var(--gold);
  --good:var(--green);--good-bg:var(--green-tint);--good-line:var(--green-line);
  --wait:var(--amber);--wait-bg:var(--amber-tint);--wait-line:var(--amber-line);
  --info:var(--blue-deep);--info-bg:var(--blue-wash);--note-line:var(--blue-line);
  --bad:var(--red);--bad-bg:var(--red-tint);--bad-line:var(--red-line);
  --neutral:var(--n700);--neutral-bg:var(--n200);
  --meter-track:var(--n200);--meter-fill:var(--blue);--meter-low:var(--amber-mid);
  --mode:var(--plum);--mode-text:var(--white);--mode-bg:var(--plum-tint);--mode-line:var(--plum-line);
  --doc:var(--ink);--doc-accent:var(--navy);--doc-rule:var(--n300);--doc-fine:var(--n600);
  --front-page:var(--night-page);--front-ink:var(--night-ink);--front-muted:var(--night-muted);--front-line:var(--night-line);
  --front-card:var(--night-card);--front-card-top:var(--night-card-top);--front-mark:var(--mark-green);
  --front-mark-deep:var(--mark-green-deep);--front-plate-ink:var(--white);--front-shade:var(--lift-night);
  --mark-soft:var(--text-muted);--mark-dot:var(--mark-green-deep);--entry-shadow:var(--lift);--entry-plate:var(--white);--maker-dot:var(--action-blue-night);
}
/* A platform's pages give the roles the platform's own values, so the rules below draw them in its colors: the front
   page always dark, the pages before sign-in light, and dark when the reader's system is. */
body.front{--mark-soft:var(--front-muted);--mark-dot:var(--front-mark)}
body.entry{--page:var(--slate-page);--surface:var(--white);--surface-soft:var(--slate-sunk);--surface-sunk:var(--slate-sunk);
  --border:var(--slate-line);--border-soft:var(--slate-line);--border-input:var(--slate-muted);
  --text:var(--slate-ink);--text-soft:var(--slate-ink);--text-muted:var(--slate-muted);--link:var(--action-blue);--link-hover:var(--action-blue);
  --primary:var(--action-blue);--primary-hover:var(--action-blue);--primary-text:var(--white);--primary-edge:var(--action-blue);
  --button:var(--white);--button-text:var(--slate-ink);--button-edge:var(--slate-line);--focus:var(--action-blue);
  --bad:var(--alert);--good:var(--fine);--mark-soft:var(--slate-muted)}
@media (prefers-color-scheme:dark){body.entry{--page:var(--night-page);--surface:var(--night-raised);--surface-soft:var(--night-card);--surface-sunk:var(--night-card);
  --border:var(--night-line);--border-soft:var(--night-line);--border-input:var(--night-muted);
  --text:var(--night-ink);--text-soft:var(--night-ink);--text-muted:var(--night-muted);--link:var(--action-blue-night);--link-hover:var(--action-blue-night);
  --primary:var(--action-blue-night);--primary-hover:var(--action-blue-night);--primary-edge:var(--action-blue-night);
  --button:var(--night-raised);--button-text:var(--night-ink);--button-edge:var(--night-line);--focus:var(--action-blue-night);
  --bad:var(--alert-night);--good:var(--fine-night);--mark-soft:var(--night-muted);--mark-dot:var(--mark-green);--entry-shadow:var(--lift-night);
  --mode:var(--night-ink);--mode-bg:var(--night-card);--mode-line:var(--night-muted)}}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;background:var(--page);color:var(--text);font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:14px;line-height:1.45}
a{color:var(--link)}a:hover{color:var(--link-hover)}
:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
header.top :focus-visible{outline-color:var(--bar-text)}
h1{margin:0;font-size:24px}h2{margin:0;font-size:15px}
p{margin:0}
.mono{font-family:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,monospace}
.serif{font-family:"Source Serif 4",Georgia,serif}
.muted{color:var(--text-muted)}.small{font-size:13px}.fine{font-size:12px;color:var(--text-muted)}
.right{text-align:right}

/* Header */
/* The header and the foot follow Flight Data Recorder's console: a slim bar that stays at the top, the name in the
   page's own type, quiet round buttons, a hairline, and one line at the foot of the page. */
html{scroll-padding-top:72px}
body.app{min-height:100vh;display:flex;flex-direction:column}
body.app>main{flex:1 0 auto;width:100%}
header.top{position:sticky;top:0;z-index:40;background:var(--bar);color:var(--bar-text);display:flex;align-items:center;justify-content:space-between;gap:16px;padding:.55rem 1.25rem;border-bottom:var(--bar-rule) solid var(--bar-accent)}
header.top a.brand{display:flex;align-items:center;gap:10px;min-width:0;color:var(--bar-text);text-decoration:none;font-weight:600;font-size:1.125rem;letter-spacing:-.02em;line-height:1.15}
header.top a.brand span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
header.top a.brand img.logo{height:30px;width:auto;max-width:160px;object-fit:contain;flex:none}
header.top nav{display:flex;align-items:center;gap:.4rem;flex:none}
details.menu{position:relative}
details.menu>summary{list-style:none;width:2.25rem;height:2.25rem;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;color:color-mix(in srgb,var(--bar-text) 62%,var(--bar))}
details.menu>summary::-webkit-details-marker{display:none}
details.menu[open]>summary,details.menu>summary:hover{color:var(--bar-text)}
details.menu .panel{position:absolute;top:calc(100% + 8px);right:0;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:10px;box-shadow:0 12px 32px var(--shade);z-index:50;width:max-content;min-width:240px;max-width:min(26rem,calc(100vw - 1.5rem));padding:6px 0}
details.menu .panel a,details.menu .panel button.item{display:flex;align-items:center;justify-content:space-between;width:100%;padding:10px 16px;color:var(--text);text-decoration:none;font:inherit;font-size:14px;background:none;border:0;text-align:left;cursor:pointer}
details.menu .panel a:hover,details.menu .panel button.item:hover{background:var(--surface-sunk)}
details.menu .panel .who{padding:12px 16px 10px}
details.menu .panel .who>div{min-width:0}
details.menu .panel .who b{display:block;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
details.menu .panel .who>div span{display:block;font-size:12px;color:var(--text-muted);overflow-wrap:anywhere}
details.menu .panel hr{border:0;border-top:1px solid var(--border);margin:6px 0}
details.menu .panel a.danger,details.menu .panel button.item.danger{color:var(--bad);font-weight:600}
details.menu .panel.grid{width:300px;padding:10px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
details.menu .panel.grid a{flex-direction:column;justify-content:flex-start;gap:8px;padding:14px 6px;border-radius:8px;font-size:12px;font-weight:600;text-align:center}
.count{background:var(--strong);color:var(--strong-text);font-size:11px;font-weight:700;padding:1px 7px;border-radius:999px}

/* Page */
main{max-width:1160px;margin:0 auto;padding:28px 32px 48px;display:flex;flex-direction:column;gap:20px}
main.wide{max-width:1400px}
.crumbs{font-size:13px;color:var(--text-muted);margin-bottom:6px}
.titlebar{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.spread{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:14px}
.row{display:flex;flex-wrap:wrap;gap:20px;align-items:flex-start}
.row>.grow1{flex:1 1 320px;min-width:0}.row>.grow2{flex:2 1 520px;min-width:0}.row>.grow3{flex:3 1 560px;min-width:0}
.stack{display:flex;flex-direction:column;gap:14px}
.card{background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:20px;overflow-x:auto}
.card.flush{padding:0}
ul.confirm-list{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:6px}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px}
a.tile{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:22px;text-decoration:none;color:var(--text);display:flex;flex-direction:column;gap:12px;min-height:150px}
a.tile:hover{border-color:var(--selected-edge)}
a.tile b{font-size:17px}a.tile span.what{font-size:13px;color:var(--text-muted)}
a.tile .top{display:flex;justify-content:space-between;align-items:flex-start}
.banner{background:var(--info-bg);border:1px solid var(--note-line);border-radius:8px;padding:14px 18px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}
.notice{background:var(--good-bg);border:1px solid var(--good-line);border-radius:8px;padding:12px 16px}
.error{background:var(--bad-bg);border:1px solid var(--bad-line);color:var(--bad);border-radius:8px;padding:12px 16px}
.once{background:var(--info-bg);border:1px solid var(--note-line);border-radius:8px;padding:14px 18px}

/* Tables and facts */
table.list{width:100%;border-collapse:collapse;font-size:13px}
table.list th{font-weight:600;text-align:left;color:var(--text-soft);background:var(--surface-soft);padding:10px 12px;border-bottom:1px solid var(--border);white-space:nowrap}
table.list td{padding:10px 12px;border-bottom:1px solid var(--border-soft);vertical-align:top}
table.list tr.selected td{background:var(--selected)}
table.list tr:last-child td{border-bottom:0}
dl.facts{margin:0;display:grid;grid-template-columns:150px 1fr;row-gap:10px;column-gap:12px}
dl.facts dt{color:var(--text-muted)}dl.facts dd{margin:0;overflow-wrap:anywhere}
ul.plain{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
ul.plain li{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid var(--border-soft);padding-bottom:8px}
ul.plain li:last-child{border-bottom:0;padding-bottom:0}

/* Status */
.pill{display:inline-block;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap}
.pill.amber{background:var(--wait-bg);color:var(--wait)}.pill.green{background:var(--good-bg);color:var(--good)}
.pill.blue{background:var(--info-bg);color:var(--info)}.pill.red{background:var(--bad-bg);color:var(--bad)}.pill.gray{background:var(--neutral-bg);color:var(--neutral)}
.meter{height:8px;border-radius:999px;background:var(--meter-track);overflow:hidden;min-width:120px}
.meter>span{display:block;height:100%;background:var(--meter-fill)}
.meter.low>span{background:var(--meter-low)}

/* Forms */
label{font-size:13px;font-weight:600;color:var(--text-soft)}
input[type=text],input[type=email],input[type=password],input[type=number],input[type=file],select,textarea{font:inherit;font-size:14px;padding:9px 10px;border:1px solid var(--border-input);border-radius:6px;background:var(--surface);color:var(--text);width:100%}
textarea{resize:vertical}
input:disabled,select:disabled,textarea:disabled{background:var(--surface-soft);color:var(--text-muted)}
.field{display:flex;flex-direction:column;gap:6px}
.check{display:flex;align-items:center;gap:8px}.check label{font-weight:500}
.sign{border-top:1px solid var(--border);padding-top:16px;display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:14px}
.sign .field{flex:0 1 260px}
.actions{display:flex;flex-wrap:wrap;gap:10px}
.btn{display:inline-block;padding:10px 16px;border-radius:6px;border:1px solid var(--button-edge);background:var(--button);color:var(--button-text);text-decoration:none;font:inherit;font-weight:600;font-size:14px;cursor:pointer}
.btn:hover{color:var(--button-text);background:var(--surface-sunk)}
.btn.primary{background:var(--primary);border-color:var(--primary-edge);color:var(--primary-text)}.btn.primary:hover{background:var(--primary-hover);color:var(--primary-text)}
.btn.small{font-size:13px;padding:8px 12px}
.btn.outline{border-color:var(--link);color:var(--link)}
button.link{font:inherit;background:none;border:0;color:var(--link);cursor:pointer;padding:0;text-decoration:underline}
.tabs{display:flex;gap:6px}
.tabs a{font-size:13px;padding:8px 14px;border-radius:999px;border:1px solid var(--button-edge);background:var(--button);color:var(--button-text);font-weight:600;text-decoration:none}
.tabs a.on{background:var(--strong);border-color:var(--strong);color:var(--strong-text)}

/* Sign in */
body.signin{background:var(--ground);min-height:100vh;display:flex;align-items:center;justify-content:center;padding:48px 20px}
.signin-card{width:100%;max-width:440px;background:var(--surface);border-radius:10px;border-top:6px solid var(--ground-accent);box-shadow:0 2px 14px var(--shade-soft);padding:32px 36px 28px;display:flex;flex-direction:column;gap:20px}
.signin-card .lab{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center}
.signin-card .lab img.logo{height:120px;width:auto;max-width:100%;object-fit:contain}
.signin-card .lab .name{font-family:"Source Serif 4",Georgia,serif;font-size:21px;font-weight:700;color:var(--text);line-height:1.25}
.signin-card .lab .system{font-size:13px;color:var(--text-muted);margin-top:4px;letter-spacing:.04em}
.signin-card h1{font-size:22px;text-align:center}
.signin-card form{display:flex;flex-direction:column;gap:14px}
.signin-card .btn{text-align:center;font-size:15px;padding:12px 16px}
.signin-card .preamble{font-size:12px;line-height:1.55;color:var(--text-muted)}
.signin-card input.code{font-size:24px;letter-spacing:.35em;text-align:center}
.signin-card hr.rule{border:0;border-top:1px solid var(--border);width:100%;margin:0}
.signin-card section.devbox{background:var(--mode-bg);border:2px dashed var(--mode-line);border-radius:8px;padding:14px;display:flex;flex-direction:column;gap:10px}
.signin-card section.devbox h2{color:var(--mode);text-transform:uppercase;letter-spacing:.06em}
.signin-card section.devbox .btn{border-color:var(--mode);text-align:left;font-size:13px;padding:9px 12px}
.qr{display:flex;justify-content:center}.qr svg{width:200px;height:200px}
.setup-key{font-family:"JetBrains Mono",ui-monospace,monospace;font-size:13px;word-spacing:.2em;overflow-wrap:anywhere}

/* Labels for the bags */
.labels{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.label{background:var(--surface);border:1px dashed var(--border-dashed);border-radius:6px;padding:14px;display:flex;flex-direction:column;gap:4px}
.label .code{font-family:"JetBrains Mono",ui-monospace,monospace;font-size:20px;font-weight:700;letter-spacing:.08em}
footer.foot{border-top:1px solid var(--border);padding:20px 32px 24px;color:var(--text-muted);font-size:12.8px}
footer.foot .inner{width:100%;max-width:1096px;margin:0 auto}
footer.foot p{margin:0}
footer.foot a{color:inherit;text-decoration:none}footer.foot a:hover,footer.foot a:focus-visible{color:var(--text);text-decoration:underline}
footer.foot .sep{margin:0 .35rem}
@media print{header.top,footer.foot,.noprint{display:none}body{background:var(--surface)}main{padding:0;max-width:none}.label{break-inside:avoid}}
@media (max-width:640px){header.top{padding:.5rem .75rem}header.top a.brand{font-size:1rem}footer.foot{padding:16px 16px 20px}main{padding:20px 16px 40px}dl.facts{grid-template-columns:1fr}
  table.list{min-width:600px}table.list .row-actions{flex-wrap:nowrap}table.list .btn{white-space:nowrap}}
/* Messages */
a.message{display:grid;grid-template-columns:200px 1fr auto;gap:16px;align-items:start;padding:14px 20px;border-bottom:1px solid var(--border-soft);color:var(--text);text-decoration:none;background:var(--surface)}
a.message:last-child{border-bottom:0}
a.message:hover{background:var(--surface-soft)}
a.message.unread{background:var(--unread);font-weight:700}
a.message .from{font-size:13px;color:var(--text-soft)}
a.message .muted{font-weight:400;font-size:13px}
@media (max-width:640px){a.message{grid-template-columns:1fr}}

/* The first submit button of a form is the one Enter presses; this one is there to be that, and is never seen. */
.offscreen{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
/* The report form */
details.rf-sec{background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:14px 18px}
details.rf-sec>summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none}
details.rf-sec>summary::-webkit-details-marker{display:none}
details.rf-sec>summary::before{content:"▸";display:inline-block;width:12px;transition:transform .15s}
details.rf-sec[open]>summary::before{transform:rotate(90deg)}
.rf-title{font-weight:700;font-size:15px;flex:1;min-width:0}
.rf-badge{padding:3px 9px;border-radius:999px;font-size:11px;font-weight:600;flex:none}
.rf-badge.info{background:var(--info-bg);color:var(--info)}.rf-badge.req{background:var(--wait-bg);color:var(--wait)}
.rf-badge.opt{background:var(--good-bg);color:var(--good)}.rf-badge.gray{background:var(--neutral-bg);color:var(--neutral)}
.rf-body{margin-top:12px}
.rf-label{font-size:12px;font-weight:600;color:var(--text-muted);display:flex;align-items:center;gap:5px}
.rf-fixed{font-size:14px;padding:9px 10px;background:var(--surface-soft);border:1px solid var(--border);border-radius:6px}
.rf-edited{font-weight:500;color:var(--link)}
.rf-check{display:flex;align-items:center;gap:8px;font-weight:400;font-size:14px;color:var(--text)}
.rf-check input{flex:none}
.rf-id{font-size:12px;color:var(--text-muted);width:74px;flex:none}
.rf-table input[type=text],.rf-table select{font-size:13px;padding:6px 8px}
.rf-result{border:1px solid var(--border);border-radius:8px;padding:14px}
.rf-fig{display:flex;gap:12px;align-items:center;border:1px dashed var(--border-dashed);border-radius:6px;padding:8px}
.rf-thumb{flex:none;width:90px;height:60px;border-radius:4px;background:var(--surface-sunk);display:flex;align-items:center;justify-content:center;overflow:hidden;text-align:center}
.rf-thumb img{max-width:100%;max-height:100%}
.rf-embed{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.rf-embed select{flex:1 1 260px;width:auto}
.rf-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.rf-statements{font-size:13px;color:var(--text-soft);line-height:1.6;background:var(--surface-soft);border:1px solid var(--border);border-radius:6px;padding:12px}
textarea.md{font-family:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;line-height:1.55}

/* The report as it reads: the preview and the finished report */
article.report-doc{background:var(--surface);box-shadow:0 2px 10px var(--shade-soft);padding:36px 44px;font-family:"Source Serif 4",Georgia,serif;font-size:14px;line-height:1.5;color:var(--doc);max-width:860px;width:100%;margin:0 auto}
.rd-top{display:flex;align-items:center;gap:12px;border-bottom:2px solid var(--doc);padding-bottom:12px}
.rd-top img.logo{height:44px;width:auto;max-width:160px;object-fit:contain;flex:none}
.rd-lab{font-weight:700;font-size:17px;color:var(--doc)}
.rd-kind{font-family:Inter,system-ui,sans-serif;font-size:11px;color:var(--text-muted);letter-spacing:.06em}
.rd-meta{display:grid;grid-template-columns:1fr 1fr;gap:3px 16px;font-family:Inter,system-ui,sans-serif;font-size:12px;margin:10px 0}
.rd-h{font-family:Inter,system-ui,sans-serif;font-weight:700;font-size:12px;letter-spacing:.06em;color:var(--doc-accent);margin-top:14px}
.rd-line{font-size:13.5px}
.rd-note{font-family:Inter,system-ui,sans-serif;font-size:11px;font-style:italic;color:var(--doc-fine)}
.rd-result{margin-top:6px}
.md-p{margin:3px 0}
.md-h{font-weight:700;font-style:italic;margin-top:6px}
.md-li{display:flex;gap:6px;padding-left:10px}.md-m{flex:none}
.rd-fig{margin:10px 0;text-align:center}
.rd-fig img{max-width:100%;max-height:420px;border:1px solid var(--border-thumb)}
.rd-fig figcaption{font-size:12.5px;margin-top:3px}
.rd-sign{margin-top:22px;border-top:1px solid var(--doc-rule);padding-top:8px;font-family:Inter,system-ui,sans-serif;font-size:12px;line-height:1.6}
.rd-fine{color:var(--doc-fine)}
.rd-end{text-align:center;font-weight:700;margin-top:8px}
@media (max-width:640px){article.report-doc{padding:20px 16px}.rd-meta{grid-template-columns:1fr}}
@media print{
.crumbs{display:none}
article.report-doc{box-shadow:none;padding:0;max-width:none;font-size:12pt}
.rd-result,.rd-fig{break-inside:avoid}.rd-h{break-after:avoid}
}
/* An institution's badge on its page in the Administration: the top of a page as its people see it, and the color fields. */
.badge-preview{border:1px solid var(--border);border-radius:8px;overflow:hidden;margin-bottom:4px}
.badge-preview .strip{display:flex;align-items:center;gap:10px;min-height:54px;padding:.55rem 1.25rem;background:var(--bar);color:var(--bar-text);border-bottom:var(--bar-rule) solid var(--bar-accent);font-weight:600;font-size:1.125rem;letter-spacing:-.02em}
.badge-preview .strip img.logo{height:30px;width:auto;max-width:160px;object-fit:contain;flex:none}
.badge-preview .sample{display:flex;align-items:center;gap:16px;padding:12px 20px;background:var(--surface)}
h3.sub{margin:18px 0 6px;font-size:14px}
.swatches{display:flex;flex-wrap:wrap;gap:10px 24px}
.swatch{display:flex;align-items:center;gap:8px}
.swatch input[type=color]{width:44px;height:32px;padding:2px;border:1px solid var(--border-input);border-radius:6px;background:var(--surface)}
.swatch label{font-weight:500}
/* The grid of what each role allows, and the boxes of the form that changes one role. */
table.roles th.role{min-width:120px;vertical-align:bottom}
table.roles th.role a{font-weight:600}
table.roles tr.kind th{background:var(--surface-soft);color:var(--text-soft);font-size:12px;letter-spacing:.04em;text-transform:uppercase;padding-top:8px;padding-bottom:8px}
table.roles td.may{white-space:nowrap}
table.roles td.may.yes{color:var(--good);font-weight:600}
table.roles td.may.no{color:var(--text-muted)}
.may-box{display:flex;flex-direction:column;gap:2px}
.may-box .fine{margin-left:26px}
.filters{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;margin:0 0 14px}
.filters .field{margin:0}
.group-list li{flex-direction:column}
.late{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;background:var(--wait-bg);border:1px solid var(--wait-line);color:var(--wait);border-radius:8px;padding:10px 14px;margin-top:8px}
.late form{margin:0}
.manager-split{display:flex;flex-wrap:wrap;gap:20px;align-items:flex-start}
.manager-split>.queue-list{flex:3 1 560px;min-width:0}
.manager-split>.brief{flex:2 1 420px;min-width:0}
table.list td a.row-link{color:inherit;text-decoration:none;display:block}
table.list tr.gone td{color:var(--text-muted)}
table.list td a.row-link:hover{color:var(--link)}
.brief{background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:20px;display:flex;flex-direction:column;gap:16px;overflow-x:auto}
.brief h3{margin:0 0 8px;font-size:14px;color:var(--text-soft)}
.brief section+section{border-top:1px solid var(--border);padding-top:14px}
.brief dl.facts{grid-template-columns:130px 1fr;font-size:13px;row-gap:8px}
.brief pre{margin:8px 0 0;background:var(--surface-soft);border:1px solid var(--border);border-radius:6px;padding:10px;font-size:12px;overflow:auto;max-height:340px}
.brief .precedent{border-bottom:1px solid var(--border-soft);padding:8px 0;font-size:13px}
.brief .precedent:last-child{border-bottom:0}
.brief img.thumb{max-width:120px;max-height:90px;border:1px solid var(--border-thumb);border-radius:4px;display:block}
.brief form.inline{display:inline}
.brief form.stack{display:flex;flex-direction:column;gap:12px}
.thumbs{display:flex;flex-wrap:wrap;gap:10px}
.slips{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px}
.slip{background:var(--surface);border:1px dashed var(--border-dashed);border-radius:6px;padding:16px;display:flex;flex-direction:column;gap:6px;break-inside:avoid}
.slip .lab{font-family:"Source Serif 4",Georgia,serif;font-weight:700;color:var(--text)}
.slip .password{font-family:"JetBrains Mono",ui-monospace,monospace;font-size:20px;font-weight:700;letter-spacing:.06em}
.label svg{max-width:100%;height:auto}
.checks{display:flex;flex-direction:column;gap:6px;max-height:260px;overflow:auto}
.nowrap{white-space:nowrap}
table.live-board tr.needs td{background:var(--bad-bg)}
table.live-board .stale,table.live-feed .stale{color:var(--wait);font-weight:600}
table.live-feed td:first-child{color:var(--text-muted)}
table.live-feed tr.refused td{background:var(--wait-bg)}
table.live-feed tr.refused td:first-child{box-shadow:inset 3px 0 0 var(--wait)}
table.live-board td.refused{background:var(--wait-bg)}
@media (max-width:640px){table.live-board{min-width:960px}}
@media print{.slip{border-color:var(--text)}}
.sb-strip{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.sb-strip a{display:flex;flex-direction:column;gap:3px;min-width:132px;padding:9px 12px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text);text-decoration:none;font-size:13px;font-weight:600}
.sb-strip a:hover{border-color:var(--selected-edge)}
.sb-strip a.on{background:var(--selected);border-color:var(--selected-edge)}
.sb-strip .num{color:var(--text-muted);font-weight:500;font-size:12px}
.sb-state{font-size:12px;font-weight:600}
.sb-state.ok{color:var(--good)}.sb-state.fix{color:var(--bad)}.sb-state.note{color:var(--wait)}
.sb-intro{background:var(--info-bg);border:1px solid var(--note-line);border-radius:8px;padding:12px 16px}
.sb-secret{background:var(--bad-bg);border:2px solid var(--bad-line);border-radius:8px;padding:14px 18px;color:var(--text)}
.sb-secret b{color:var(--bad)}
.sb-problems{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:6px}
.sb-problems li{padding:8px 12px;border-radius:6px;border:1px solid var(--border);background:var(--surface)}
.sb-problems li.fix{background:var(--bad-bg);border-color:var(--bad-line)}
.sb-problems li.note{background:var(--wait-bg);border-color:var(--wait-line)}
.sb-problems .tag{font-weight:700;margin-right:6px}
.sb-problems li.fix .tag{color:var(--bad)}.sb-problems li.note .tag{color:var(--wait)}
.sb-group{border:1px solid var(--border);border-radius:8px;padding:14px 16px;background:var(--surface);display:flex;flex-direction:column;gap:12px}
.sb-group.nested{background:var(--surface-soft)}
.sb-group>h3,.sb-group>.head h3{margin:0;font-size:14px}
.sb-group .head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}
.sb-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
.sb-cols.two{grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}
.sb-line{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-start}
.sb-line>.btn{margin-top:26px}
.sb-line .field{flex:1 1 200px;min-width:0}
.sb-line .field.narrow{flex:0 0 110px}
.sb-hint{font-size:12px;color:var(--text-muted);font-weight:400}
.sb-step{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;border-bottom:1px solid var(--border-soft);padding-bottom:12px}
.sb-step .n{flex:0 0 28px;font-weight:700;color:var(--text-muted);padding-bottom:10px}
.sb-total{font-weight:600}.sb-total.over{color:var(--bad)}
.sb-bar{position:sticky;bottom:0;background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:12px 16px;display:flex;flex-wrap:wrap;gap:10px;align-items:center;box-shadow:0 -6px 16px var(--shade-soft)}
.sb-default{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.sb-files td,.sb-files th{vertical-align:middle}
.sb-pre{margin:8px 0 0;background:var(--surface-soft);border:1px solid var(--border);border-radius:6px;padding:10px;font-size:12px;overflow:auto;max-height:420px;white-space:pre-wrap}
.sb-preview{border:2px dashed var(--border-dashed);border-radius:8px;padding:18px;background:var(--surface);display:flex;flex-direction:column;gap:14px}
.sb-preview .label{font-size:12px;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em}
.viewing{background:var(--mode);color:var(--mode-text);border-bottom:4px dashed var(--mode-bg);padding:10px 24px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;font-size:14px}
.viewing form{margin:0}
.viewing .btn{background:var(--mode-bg);color:var(--mode);border-color:var(--mode-bg)}
form.view-as{display:inline;margin-left:8px}
.avatar{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;object-fit:cover;flex:none;background:var(--surface-sunk);color:var(--text-soft);border:1px solid var(--border);font-weight:700;line-height:1}
.avatar.nav{width:32px;height:32px;font-size:12px;border-color:var(--bar-accent)}
.avatar.sm{width:32px;height:32px;font-size:12px}
.avatar.lg{width:44px;height:44px;font-size:15px}
.avatar.xl{width:112px;height:112px;font-size:36px}
details.menu .panel .who{display:flex;align-items:center;gap:12px}
input[readonly]{background:var(--surface-soft);color:var(--text-muted)}
.profile-head{display:flex;flex-wrap:wrap;align-items:center;gap:20px}
.profile-head dl.facts{flex:1 1 320px}
.account-forms{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:20px;align-items:start}
.security-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-top:1px solid var(--border-soft)}
.security-row:first-of-type{border-top:0}
.link-box{display:block;width:100%;font-size:12px;overflow-wrap:anywhere;word-break:break-all;background:var(--surface-soft);border:1px solid var(--border);border-radius:6px;padding:10px}
.invite-result{display:flex;flex-direction:column;gap:8px;border-bottom:1px solid var(--border-soft);padding:12px 0}
.invite-result:last-child{border-bottom:0}
.person-cell{display:flex;align-items:center;gap:10px}
.row-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.row-actions form{margin:0}
table.list td .fine{font-size:12px;color:var(--text-muted)}
ol.codes{columns:2;column-gap:32px;margin:0;padding-left:28px;font-size:18px;line-height:2}
/* The wordmark: two tones, and a point after it. */
.wordmark{font-weight:600;letter-spacing:-.035em;line-height:1;white-space:nowrap}
.wordmark .tail{color:var(--mark-soft)}
.wordmark::after{content:"";display:inline-block;width:.17em;height:.17em;margin-left:.07em;border-radius:50%;background:var(--mark-dot);box-shadow:0 0 .14em var(--mark-dot)}

/* The front pages: dark, one column in the middle, the way in at the top right, and at the foot who makes it on the
   left and where to read more on the right. */
body.front{min-height:100vh;display:flex;flex-direction:column;align-items:center;padding:24px 16px;background:var(--front-page);color:var(--front-ink);font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:15px;text-align:center}
body.front main{flex:1;width:100%;max-width:none;margin:0;padding:16px 0 24px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px}
.front a:focus-visible{outline:2px solid var(--front-mark);outline-offset:3px;border-radius:4px}
.front h1.wordmark{margin:0;font-size:clamp(44px,12vw,96px)}
.front .tagline{font-size:clamp(18px,2.6vw,22px);font-weight:500;margin-top:4px}
.front .detail{max-width:36em;text-wrap:balance;font-size:15px;line-height:1.55;color:var(--front-muted);margin-top:-8px}
.front .way-in{position:fixed;top:12px;right:16px}
.front .way-in a{display:inline-block;font-size:14px;color:var(--front-muted);text-decoration:none;padding:6px 4px}
.front .way-in a:hover,.front .way-in a:focus-visible{color:var(--front-ink)}
/* Two tiles, each led by a glyph on a plate. Side by side they narrow with the window; below 640px they stack and
   turn into rows with the plate on the left. */
.front-cards{width:100%;max-width:720px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:12px 0 0}
.front-card{min-height:262px;display:flex;flex-direction:column;align-items:center;gap:10px;padding:24px 28px 22px;border:1px solid var(--front-line);border-radius:28px;background:linear-gradient(180deg,var(--front-card-top),var(--front-card))}
.front-card .plate{width:88px;height:88px;flex:none;border-radius:24%;margin-bottom:6px;display:flex;align-items:center;justify-content:center;background:linear-gradient(var(--front-mark),var(--front-mark-deep));color:var(--front-plate-ink);box-shadow:0 12px 30px color-mix(in srgb,var(--front-mark-deep) 34%,transparent),0 2px 6px var(--front-shade)}
.front-card .plate svg{width:54px;height:54px}
.front-card .words{display:flex;flex-direction:column;gap:8px}
.front-card .title{font-weight:600;font-size:19px}
.front-card .line{color:var(--front-muted);font-size:14px;line-height:1.5}
@media (max-width:640px){.front-cards{grid-template-columns:1fr;gap:14px}
  .front-card{min-height:0;flex-direction:row;align-items:flex-start;text-align:left;gap:18px;padding:20px;border-radius:22px}
  .front-card .plate{width:72px;height:72px;margin:0}.front-card .plate svg{width:44px;height:44px}.front-card .words{gap:6px}}
/* A short window: everything tightens so the foot stays on screen. */
@media (max-height:760px) and (min-width:641px){body.front{padding-top:16px;padding-bottom:16px}body.front main{gap:12px;padding:8px 0 16px}
  .front h1.wordmark{font-size:clamp(44px,11vh,96px)}.front-cards{margin-top:8px}
  .front-card{min-height:0;padding:18px 24px 16px;gap:8px}.front-card .plate{width:72px;height:72px;margin-bottom:4px}.front-card .plate svg{width:44px;height:44px}}
.front-foot{width:100%;max-width:1080px;display:flex;align-items:center;justify-content:space-between;gap:12px 24px;flex-wrap:wrap;padding-top:16px;border-top:1px solid var(--front-line);font-size:13px;line-height:normal;color:var(--front-muted)}
.front-foot .maker{display:flex;align-items:baseline;gap:12px}
.front-foot nav{display:flex;align-items:baseline;gap:6px 10px;flex-wrap:wrap}
.front-foot nav .sep{opacity:.5}
.front-foot nav a{color:var(--front-muted);text-decoration:none}
.front-foot nav a:hover,.front-foot nav a:focus-visible{color:var(--front-ink)}
@media (max-width:560px){.front-foot{flex-direction:column;align-items:center;text-align:center}.front-foot nav{justify-content:center}}
/* The maker's wordmark. Its two i's are written without dots, and each is given a round one. */
.maker-mark{font-size:18px;font-weight:600;letter-spacing:-.035em;line-height:1;color:var(--front-ink);text-decoration:none}
.maker-mark .dot{position:relative}
.maker-mark .dot::before{content:"";position:absolute;left:50%;top:.09em;width:.17em;height:.17em;border-radius:50%;background:var(--maker-dot);transform:translateX(-50%)}
/* A portal's front page: the laboratory's seal and name in place of the mark. */
.front .seal{line-height:0;margin-bottom:10px}
.front .seal img.logo{height:168px;width:auto;max-width:min(420px,90vw);object-fit:contain}
.front .name{font-family:"Source Serif 4",Georgia,serif;font-size:38px;font-weight:700;line-height:1.15;margin:0}
.front .system{font-size:15px;letter-spacing:.04em;color:var(--front-muted)}
.front .mark{margin:2px 0 0}
@media (max-width:520px){.front .name{font-size:28px}}

/* A platform's pages before sign-in: one raised card near the top of a plain page, and a line at the foot. */
body.entry{min-height:100vh;display:flex;flex-direction:column;background:var(--page);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;font-size:15px;line-height:1.5}
body.entry main{flex:1;width:100%;max-width:none;margin:0;padding:48px 16px 64px;flex-direction:row;justify-content:center;align-items:flex-start;gap:0}
.entry [hidden]{display:none !important}
.entry .signin-card{max-width:496px;border-top:0;border-radius:28px;padding:44px 48px 40px;gap:22px;text-align:center;box-shadow:0 12px 48px var(--entry-shadow),0 0 0 1px var(--border)}
.entry .signin-card a.wordmark{align-self:center;font-size:44px;color:var(--text);text-decoration:none;margin:4px 0 6px}
.entry .signin-card h1{font-size:30px;font-weight:600;letter-spacing:-.02em;margin:0 0 6px}
.entry .signin-card form{text-align:left}
.entry .signin-card>p{text-align:center}
.entry .signin-card a:not(.btn):not(.wordmark),.entry .signin-card button.link{text-decoration:none}
.entry .signin-card a:not(.btn):not(.wordmark):hover,.entry .signin-card button.link:hover{text-decoration:underline}
.entry .signin-card .error,.entry .signin-card .notice{background:none;border:0;padding:0;text-align:center}
.entry .signin-card .notice{color:var(--good)}
/* The fields of a step are one box, each field named inside it until something is typed. */
.entry .fields{display:flex;flex-direction:column;border:1px solid var(--border-input);border-radius:12px;overflow:hidden;background:var(--surface)}
.entry .fields>*+*{border-top:1px solid var(--border-input)}
.entry .fields input{height:56px;padding:0 16px;font-size:17px;border:0;border-radius:0;background:transparent}
.entry .fields input:focus-visible{outline:none}
.entry .fields:focus-within{border-color:var(--focus);box-shadow:0 0 0 3px color-mix(in srgb,var(--focus) 28%,transparent)}
.entry label.float{position:relative;display:block;margin:0;font-weight:400}
.entry label.float span{position:absolute;left:16px;top:50%;transform:translateY(-50%);color:var(--text-muted);font-size:17px;line-height:1;pointer-events:none}
.entry label.float input:not(:placeholder-shown)+span{display:none}
.entry .signin-card .preamble{font-size:12.5px;line-height:1.45;margin:10px 0 14px}
.entry-actions{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:10px}
.entry .signin-card .btn{height:42px;padding:0 12px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;font-size:15px;font-weight:500}
.entry .signin-card .btn.primary:hover{filter:brightness(1.08)}
.entry .signin-card .btn:disabled{opacity:.45;cursor:default}
/* The two steps of signing in, which the sign-in script names on the form. Continue is faint until an email is typed. */
.entry-form.step1 [data-step="2"],.entry-form.step2 [data-step="1"]{display:none}
.entry-form.step1:has(input[name=email]:placeholder-shown) [data-continue]{opacity:.45}
.entry-form.step2 .entry-actions{margin-top:36px}
/* A field that stands alone (the code) is drawn as the group is, and lights the same way. */
.entry .signin-card input.code{width:100%;height:56px;padding:0 16px;border:1px solid var(--border-input);border-radius:12px;background:var(--surface);color:var(--text)}
.entry .signin-card input:not([type=hidden]):focus-visible{outline:none;border-color:var(--focus);box-shadow:0 0 0 3px color-mix(in srgb,var(--focus) 28%,transparent)}
.entry .fields input:focus-visible{box-shadow:none}
.entry .qr svg{background:var(--entry-plate);padding:10px;border-radius:12px;box-sizing:content-box}
.entry-foot{border-top:1px solid var(--border);padding:20px 16px 24px;color:var(--text-muted);font-size:12.8px}
.entry-foot .inner{width:100%;max-width:800px;margin:0 auto}
.entry-foot p{margin:0}
.entry-foot a{color:var(--text-muted);text-decoration:none}
.entry-foot a:hover,.entry-foot a:focus-visible{color:var(--text);text-decoration:underline}
.entry-foot .sep{margin:0 .35rem}
@media (max-width:544px){body.entry main{padding:16px 8px 32px}.entry .signin-card{padding:32px 20px 28px;border-radius:20px}.entry-actions{grid-auto-flow:row}}