:root {
    color-scheme: light;
    --ink: #19252a;
    --muted: #53656b;
    --paper: #fff;
    --surface: #f3f6f5;
    --line: #dce4e1;
    --pine: #102b2a;
    --teal: #0b6154;
    --teal-hover: #06483f;
    --mint: #c9f2d7;
    --focus: #206abd;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--surface);
    line-height: 1.5;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--teal); text-underline-offset: .18em; }
a:hover { color: var(--teal-hover); }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
:focus-visible, .picker:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3, p, dl { margin: 0; }
h1 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); line-height: 1.13; letter-spacing: -.045em; }
h2 { font-size: 1.12rem; letter-spacing: -.015em; }
h3 { font-size: 1rem; }
p, dd { overflow-wrap: anywhere; }
.signed-in { display: grid; grid-template-columns: 235px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 30px 18px 24px; display: flex; flex-direction: column; gap: 38px; background: var(--pine); color: var(--paper); }
.brand { display: flex; align-items: center; gap: 11px; color: inherit; font-size: .96rem; font-weight: 700; text-decoration: none; line-height: 1.2; }
.brand:hover { color: inherit; }
.brand small { display: block; margin-top: 5px; color: #a9c4be; font-size: .78rem; font-weight: 500; }
.mark { display: grid; flex: 0 0 36px; height: 36px; place-items: center; border-radius: 10px; background: var(--mint); color: var(--pine); font-weight: 800; font-size: 1.25rem; }
.sidebar nav { display: grid; gap: 5px; }
.sidebar nav a { min-height: 44px; display: flex; align-items: center; border-radius: 7px; padding: 8px 10px; color: #d4e4e1; font-size: .9rem; text-decoration: none; }
.sidebar nav a:hover, .sidebar nav a[aria-current] { background: #21413e; color: #fff; }
.sidebar nav a[aria-current] { box-shadow: inset 3px 0 var(--mint); font-weight: 700; }
.session { display: grid; gap: 4px; margin-top: auto; padding: 15px 6px 0; border-top: 1px solid #36524f; }
.session .email { font-size: .82rem; color: #d4e4e1; overflow-wrap: anywhere; }
.session button { min-height: 44px; border: 0; padding: 0; color: var(--mint); background: transparent; text-decoration: underline; text-underline-offset: .2em; }
.skip { position: fixed; z-index: 3; top: 8px; left: 8px; padding: 10px; background: #fff; transform: translateY(-200%); }
.skip:focus { transform: none; }
.workspace { padding: clamp(22px, 4vw, 56px); max-width: 1720px; width: 100%; margin-inline: auto; }
.screen-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.screen-heading p { color: var(--muted); margin-top: 8px; max-width: 52ch; }
.actions, .form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.form-actions { margin-top: 20px; }
.panel { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); margin-bottom: 18px; }
.panel-head, .section { padding: clamp(16px, 2.5vw, 26px); }
.section > h2 + *, .section > p + h2 { margin-top: 14px; }
.section-head { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.search { display: flex; flex-wrap: wrap; gap: 9px; align-items: end; }
.search label { flex: 0 1 375px; }
.search a { align-self: center; }
label { display: grid; gap: 5px; min-width: 0; font-size: .88rem; font-weight: 650; }
input:not([type="checkbox"]):not([type="file"]), select { min-height: 44px; min-width: 0; width: 100%; border: 1px solid #a9bab5; border-radius: 7px; padding: 8px 11px; color: var(--ink); background: #fff; font-size: 1rem; font-weight: 400; }
.button, .picker { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 1px solid #a9bab5; border-radius: 7px; padding: 7px 14px; background: #fff; color: var(--ink); font-size: .9rem; font-weight: 650; text-decoration: none; text-align: center; }
.button:hover, .picker:hover { background: #f1f6f4; color: var(--ink); }
.button.primary { background: var(--teal); color: white; border-color: transparent; }
.button.primary:hover { background: var(--teal-hover); color: white; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
dt { color: var(--muted); font-size: .88rem; font-weight: 650; }
dd { margin: 4px 0 0; }
.check { display: flex; align-items: center; min-height: 44px; gap: 8px; align-self: end; }
.check input { width: 19px; height: 19px; accent-color: var(--teal); }
.empty { display: grid; justify-items: center; gap: 10px; padding: 48px 20px 54px; border-top: 1px solid var(--line); text-align: center; }
.empty p, .subtle { color: var(--muted); font-size: .91rem; }
.table-scroll { max-width: 100%; overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .9rem; }
th, td { padding: 13px 14px; vertical-align: top; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
thead th { white-space: nowrap; color: #3c514f; background: #f2f6f5; font-size: .8rem; font-weight: 700; }
tbody tr:nth-child(even) { background: #f9fbfa; }
.register-table { min-width: 1150px; }
.register-table :is(th, td):first-child { position: sticky; left: 0; min-width: 105px; background: #f2f6f5; box-shadow: inset -1px 0 var(--line); }
.register-table td:nth-child(4) { min-width: 158px; }
.part, .mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.missing { color: #667774; }
.links, .record-links, .upload-queue { list-style: none; padding: 0; margin: 0; }
.links li + li { margin-top: 4px; }
.paging { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 11px; padding: 14px; border-top: 1px solid var(--line); }
.drop-zone { display: grid; justify-items: center; gap: 8px; padding: 30px 14px; background: #f3faf7; border: 2px dashed #89aaa0; border-radius: 8px; text-align: center; }
.drop-zone.dragging { background: #ddf4e8; border-color: var(--teal); }
.picker { position: relative; overflow: hidden; cursor: pointer; }
.picker input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
#upload-status:not(:empty) { margin-top: 10px; }
.upload-queue li, .record-links li, .account { padding: 10px 0; border-top: 1px solid var(--line); }
.upload-queue li, .record-links li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; overflow-wrap: anywhere; }
.account h3 { margin-bottom: 9px; overflow-wrap: anywhere; }
.notice, .field-error { padding: 11px 14px; border-radius: 7px; margin-bottom: 16px; background: #e1f5e9; color: #124735; }
.field-error, .failed { color: #87261f; }
.field-error { background: #fff0ef; }
.message h1 { font-size: 1.25rem; }
.message { padding: 24px; }
.signed-out { min-height: 100vh; display: grid; place-items: center; background: var(--pine); }
.auth-shell { width: min(100%, 490px); padding: 20px; }
.auth-card { display: grid; gap: 21px; padding: clamp(22px, 6vw, 38px); border-radius: 14px; background: var(--paper); }
.auth-card .brand small { color: var(--muted); }
.auth-card h1 { font-size: 2rem; }
.auth-card .field-error { margin-bottom: 0; }
.stack { display: grid; gap: 14px; }
.auth-link { font-size: .9rem; }
@media (max-width: 760px) {
    .signed-in { grid-template-columns: minmax(0, 1fr); }
    .sidebar { position: static; height: auto; gap: 9px; padding: 14px 16px 10px; }
    .sidebar nav { display: flex; flex-wrap: wrap; }
    .session { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
    .screen-heading { margin-bottom: 19px; }
}
