:root {
  color-scheme: light;
  --night: #07182e;
  --blue: #003ca6;
  --blue-hover: #002f83;
  --green: #7dbd1d;
  --ink: #122541;
  --muted: #52617a;
  --line: #dce3ee;
  --paper: #fff;
  --canvas: #f4f6fa;
  --mint: #eff8e5;
  --danger: #a02434;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
body { margin: 0; min-inline-size: 300px; }
h1,h2,h3,p { margin: 0; }
h1 { font-size: clamp(2.2rem,4vw,3.8rem); line-height: 1.01; letter-spacing: -.048em; font-weight: 720; }
h2 { font-size: 1.32rem; line-height: 1.2; letter-spacing: -.035em; }
h3 { font-size: 1.05rem; line-height: 1.25; }
p { line-height: 1.53; }
button,input,select,textarea { font: inherit; }
a { color: var(--blue); }
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible {
  outline: 3px solid #155ddd; outline-offset: 3px;
}
img { max-inline-size: 100%; object-fit: contain; }
button, .button {
  display: inline-flex; gap: .55rem; align-items: center; justify-content: center;
  min-height: 44px; padding: .7rem .95rem; border: 1px solid transparent; border-radius: 9px;
  background: var(--blue); color: white; font-weight: 650; text-decoration: none; line-height: 1.15;
  cursor: pointer; white-space: normal;
}
button:hover,.button:hover { background: var(--blue-hover); }
button:disabled, .button[aria-disabled=true] { opacity: .53; cursor: default; }
.quiet { color: var(--blue); background: white; border-color: #b7c8e3; }
.quiet:hover { background: #eaf1ff; }
.secondary { background: #eaf1ff; color: #00358f; }
.secondary:hover { background: #dce9ff; }
.danger { background: #fff1f2; color: var(--danger); border-color: #ffd1d5; }
.danger:hover { background: #ffe4e7; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.bold { font-weight: 700; }
.sr,.skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip:focus { position: fixed; top: .5rem; left: .5rem; z-index: 20; padding: 1rem; background: white; }
.opening { display: grid; place-content: center; justify-items: center; gap: 1rem; min-height: 80vh; color: var(--muted); }
.brand { display: flex; gap: .9rem; align-items: center; }
.brand img { width: 42px; height: 54px; flex: none; }
.brand-title { font-weight: 750; font-size: 1.1rem; letter-spacing: -.02em; }
.brand-club { font-size: .79rem; color: #52617a; }
.shell { min-height: 100dvh; display: grid; grid-template-columns: 248px minmax(0,1fr); }
.rail { background: var(--night); color: white; padding: 1.6rem 1.15rem; display: flex; flex-direction: column; gap: 1.7rem; }
.rail .brand { padding-inline: .35rem; }
.rail .brand-club { color: #c1ccdc; }
.rail-toggle { display: none; }
.rail nav { display: grid; gap: .25rem; }
.rail a { padding: .73rem .85rem; border-radius: 7px; color: #e2ebf6; text-decoration: none; line-height: 1.22; border-left: 3px solid transparent; }
.rail a:hover { background: #142b48; }
.rail a[aria-current=page] { background: #183453; border-left-color: var(--green); color: white; font-weight: 670; }
.rail-bottom { margin-top: auto; display: grid; gap: .65rem; }
.rail-bottom label { color: #e2ebf6; }
.rail-bottom select { color: var(--ink); }
.top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 2.4rem; border-bottom: 1px solid var(--line); background: white; }
.top strong { font-size: .95rem; }
.top .identity { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.initial { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 50%; background: #eaf1ff; color: var(--blue); font-weight: 710; flex: none; }
main.workspace { max-width: 1320px; margin: auto; padding: 2rem 2.4rem 3.2rem; }
.heading { display: flex; gap: 1rem; justify-content: space-between; align-items: end; margin-bottom: 1.6rem; }
.heading p { margin-top: .55rem; }
.grid { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 1rem; align-items: start; }
.stack { display: grid; gap: 1rem; }
.panel { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 1.35rem; min-width: 0; }
.panel h2,.panel h3 { margin-bottom: .65rem; }
.panel p + p { margin-top: .45rem; }
.focus-panel { background: var(--night); border-color: var(--night); color: white; padding: clamp(1.3rem,3vw,2.1rem); position: relative; overflow: hidden; }
.focus-panel::after { content: ''; position: absolute; right: 0; top: 0; width: 5px; height: 100%; background: var(--green); }
.focus-panel .muted { color: #bac9dc; }
.focus-panel .large { font-size: clamp(2.4rem,4.2vw,4.3rem); font-weight: 740; line-height: 1.04; letter-spacing: -.045em; margin: .55rem 0; }
.focus-panel .actions { margin-top: 1.4rem; }
.punch-location { margin-top: 1rem; }
.punch-location p { margin-bottom: .45rem; }
.focus-panel button { background: #a9d854; color: #142508; border: 1px solid #a9d854; min-height: 52px; }
.focus-panel button:hover { background: #c2ea77; }
.focus-panel .quiet { color: #fff; background: #203957; border-color: #5b7493; }
.focus-panel .quiet:hover { background: #334d6d; }
.status { display: inline-flex; align-items: center; gap: .45rem; font-size: .86rem; font-weight: 650; padding: .36rem .58rem; border-radius: 6px; background: #eaf1ff; color: #153d80; max-width: 100%; }
.status.good { background: var(--mint); color: #345b10; }
.status.warn { background: #fef3da; color: #804600; }
.focus-panel .status { background: #263d5a; color: #e2ebf6; }
.focus-panel .status.good { color: #d4f7a4; background: #2a4730; }
.tag { display: inline-block; color: #23420f; background: #eaf6db; border: 1px solid #d5eab9; border-radius: 7px; padding: .34rem .55rem; font-size: .8rem; font-weight: 660; }
.summary { display: grid; grid-template-columns: repeat(auto-fit,minmax(125px,1fr)); gap: .75rem; margin-bottom: 1rem; }
.metric { border-left: 2px solid #8abe38; padding: .4rem .8rem; }
.metric b { display: block; font-size: 1.65rem; letter-spacing: -.045em; }
.metric-review { border-left-color: #b86b16; background: #fef3da; color: #804600; text-decoration: none; }
.metric-review:hover { background: #fae7bc; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: .7rem; align-items: center; justify-content: space-between; padding: .76rem 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: none; }
.document-list li { align-items: flex-start; flex-direction: column; }
.document-list strong { overflow-wrap: anywhere; }
.document-list .actions { justify-content: flex-start; }
.actions { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }
.inline-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.label { font-size: .86rem; color: var(--muted); }
form { display: grid; gap: .88rem; }
.person-picker { min-width: 0; margin: 0; padding: .7rem; border: 1px solid #d5deeb; border-radius: 8px; }
.person-picker legend { padding-inline: .3rem; font-weight: 700; }
.person-search { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .55rem; align-items: end; margin-bottom: .65rem; }
.person-picker > label { overflow: hidden; overflow: clip; overflow-clip-margin: 6px; }
.person-lookup-message { margin: .55rem 0 0; }
.person-lookup-message:empty { display: none; }
.person-picker [data-person-next] { margin-top: .55rem; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .85rem; align-items: end; }
label { display: grid; gap: .37rem; font-size: .9rem; font-weight: 625; }
label.check { display: flex; align-items: center; gap: .45rem; font-weight: 530; }
input,select,textarea { width: 100%; min-height: 44px; padding: .62rem .69rem; border: 1px solid #b8c5d8; border-radius: 7px; color: var(--ink); background: white; min-width: 0; }
input[type=checkbox] { width: 1.14rem; min-height: auto; height: 1.14rem; accent-color: var(--blue); }
textarea { min-height: 5.2rem; resize: vertical; }
.message { padding: .8rem .9rem; border-radius: 8px; background: #eaf1ff; color: #153d80; font-size: .94rem; overflow-wrap: anywhere; }
.message.error { background: #fff0f2; color: var(--danger); }
.message:empty { display: none; }
.terminal-hide[hidden] { display: none; }
.punch-pending { background: #fff4dc; color: #623903; margin-top: 1.05rem; }
.punch-pending p { margin-top: .35rem; }
.punch-pending .actions { margin-top: .75rem; }
.message:focus { outline: none; }
.closing-person-link { display: inline-flex; align-items: center; min-height: 2rem; }
.schedule-head { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: .45rem .85rem; }
.schedule-head h2 { overflow-wrap: anywhere; }
.schedule-times { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,13rem),1fr)); gap: .55rem 1rem; margin: .85rem 0 0; }
.schedule-times div { border-left: 2px solid #d5e0ef; padding-left: .72rem; }
.schedule-times dt { font-weight: 650; color: var(--muted); }
.schedule-times dd { margin: .15rem 0 0; font-variant-numeric: tabular-nums; }
.schedule-findings { margin: .7rem 0 0; padding-left: 1.2rem; }
.schedule-turn > a { display: inline-block; margin-top: .65rem; }
.table-wrap { overflow-x: auto; margin: .25rem -.1rem; }
[data-form="choose-docs"] { margin-bottom: .85rem; }
[data-form="import-roster"] textarea { font-family: ui-monospace, monospace; font-size: .88rem; tab-size: 4; }
.roster-review:empty { display: none; }
.roster-review td:nth-child(2) { overflow-wrap: anywhere; }
table { width: 100%; border-collapse: collapse; font-size: .91rem; text-align: left; }
th,td { padding: .72rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: #51627a; font-size: .8rem; font-weight: 680; background: #f5f7fb; }
td .quiet,td .danger { padding: .45rem .57rem; }
details { border-top: 1px solid var(--line); padding-block: .8rem; }
details:first-of-type { margin-top: .48rem; }
details summary { cursor: pointer; min-height: 32px; font-weight: 650; color: var(--blue); }
details[open] summary { margin-bottom: .65rem; }
.code { overflow-wrap: anywhere; font-family: ui-monospace, monospace; }
.access-code { margin-top: .9rem; padding: .8rem; border: 1px solid var(--line); border-radius: 8px; overflow-wrap: anywhere; }
.access-code .actions { margin-block: .6rem; }
.auth-page { min-height: 100dvh; display: grid; grid-template-columns: minmax(300px,.85fr) minmax(360px,1.15fr); }
.auth-brand { background: var(--night); color: white; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(2rem,6vw,5.6rem); min-height: 100%; position: relative; overflow: hidden; }
.auth-brand::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 6px; background: var(--green); }
.auth-brand .brand-club { color: #c0cde0; }
.auth-brand .auth-plate { margin: 3rem 0 2rem; }
.auth-plate h1 { font-size: clamp(3.55rem,7.2vw,7.5rem); max-width: 7em; }
.auth-plate p { font-size: 1.05rem; color: #c8d6e8; margin-top: 1rem; }
.auth-content { display: grid; align-content: center; padding: 2rem clamp(1.2rem,6vw,6rem); }
.auth-card { max-width: 480px; width: 100%; margin-inline: auto; }
.auth-card h2 { font-size: 2rem; margin-bottom: .45rem; }
.auth-card form { margin-top: 1.35rem; }
.auth-card .button,.auth-card button { min-height: 48px; }
.auth-card .message { margin-top: .8rem; }
.auth-card .actions { margin-top: .9rem; }
.offline-screen { min-height: 100dvh; }
.offline-screen h1 { font-size: clamp(2rem,5vw,3rem); margin-bottom: .85rem; }
.offline-screen .button { margin-top: 1.1rem; }
.auth-foot { margin-top: 1.35rem; display: flex; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.work-actions { margin-top: .8rem; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 198px minmax(0,1fr); }
  .rail { padding-inline: .85rem; }
  .top,main.workspace { padding-inline: 1.2rem; }
  .grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .shell { display: block; }
  .rail { display: grid; grid-template-columns: minmax(0,1fr) max-content; align-items: center; gap: .7rem .75rem; padding: .65rem .85rem; }
  .rail .brand { gap: .55rem; min-width: 0; padding-inline: 0; }
  .rail .brand img { width: 34px; height: 41px; }
  .rail-toggle { display: inline-flex; flex: none; padding: .55rem .68rem; background: #142b48; border-color: #506784; font-size: .88rem; }
  .rail-toggle:hover,.rail-toggle[aria-expanded=true] { background: #183453; }
  .rail-toggle::after { content: ''; width: .43rem; height: .43rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
  .rail-toggle[aria-expanded=true]::after { transform: translateY(2px) rotate(225deg); }
  .rail-toggle[aria-expanded=false] + nav { display: none; }
  .rail nav { grid-column: 1 / -1; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .25rem; }
  .rail a { display: flex; align-items: center; min-height: 44px; padding: .6rem .5rem; font-size: .88rem; overflow-wrap: anywhere; }
  .rail a:focus-visible,.rail-toggle:focus-visible { outline-color: #b7ee65; }
  .rail-bottom { grid-column: 1 / -1; margin-top: 0; }
  .rail-bottom:empty { display: none; }
  .top { min-height: 56px; padding: .65rem .95rem; }
  main.workspace { padding: 1.2rem .95rem 2rem; }
  .heading { margin-bottom: .9rem; }
  .heading h1 { font-size: 2.45rem; }
  .panel { padding: 1rem; }
  .monthly-list th,.monthly-list td { padding-inline: .35rem; }
  .monthly-list td { overflow-wrap: anywhere; }
  .monthly-list th:nth-child(2),.monthly-list td:nth-child(2) { white-space: nowrap; }
  .monthly-list .status { padding-inline: .35rem; overflow-wrap: normal; }
  .monthly-list .closing-person-link { overflow-wrap: normal; }
  .people-list th,.people-list td { padding-inline: .35rem; }
  .people-list td:first-child,.people-list .person-team { overflow-wrap: anywhere; }
  .people-list .status { padding-inline: .35rem; overflow-wrap: normal; }
  .people-list td:first-child a { display:inline-block; padding-block:.4rem; overflow-wrap:normal; }
  .focus-panel { padding: 1.18rem; }
  .auth-page { display: block; }
  .auth-brand { padding: 1rem 1.2rem 1.4rem; }
  .auth-brand .brand { padding-bottom: .35rem; }
  .auth-brand .auth-plate { display: none; }
  .auth-content { padding: 1.35rem 1.08rem 2rem; }
  .auth-card h2 { font-size: 1.75rem; }
}
@media (max-width: 365px) { .fields { grid-template-columns: 1fr; } }

.checksum { display: block; overflow-wrap: anywhere; max-width: 32ch; }
