:root {
  --bg: #F1F5F2;
  --card: #FFFFFF;
  --ink: #15201B;
  --ink-2: #5A6760;
  --ink-3: #8A958F;
  --line: #DCE4DF;
  --line-strong: #C3CEC7;
  --green: #0B5D33;
  --green-2: #0E7240;
  --green-deep: #073A23;
  --green-wash: #E8F3EC;
  --green-wash-2: #D5EADC;
  --gold: #C9A227;
  --gold-soft: #F6EBC8;
  --red: #A3262A;
  --red-wash: #FDF0EF;
  --plum: #8A1F52;
  --plum-wash: #FBEFF5;
  --amber: #8A5A00;
  --amber-wash: #FDF5E0;
  --focus: #2563EB;

  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(10, 40, 25, .06), 0 6px 20px rgba(10, 40, 25, .06);
  --shadow-lg: 0 2px 4px rgba(10, 40, 25, .08), 0 20px 48px rgba(10, 40, 25, .16);
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }
p { margin: 0; }
ul, ol { margin: 0; padding-left: 1.25rem; }
h1, h2, h3 { margin: 0; }
code, pre { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .875rem; }
pre.code { margin: 0; padding: 14px 16px; background: #0F2219; color: #DDEDE3; border-radius: var(--radius-sm); overflow-x: auto; white-space: pre; line-height: 1.55; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 10; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html:not(.js) .js-only { display: none !important; }

.title { font-size: clamp(1.5rem, 3vw, 1.875rem); line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
.heading { font-size: 1.125rem; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
.subheading { font-size: 1rem; font-weight: 700; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.break { overflow-wrap: anywhere; }
.name-display {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 6vw, 2.75rem);
  line-height: 1.12;
  color: var(--green-deep);
  overflow-wrap: break-word;
}
.name-display--admin { font-size: clamp(1.5rem, 4vw, 2.125rem); }
.name-inline { font-family: var(--serif); font-weight: 700; }
.text-confirmed { color: var(--green); }
.text-rearranged { color: var(--plum); }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 780px; }
.wrap--form { max-width: 460px; }
.page { flex: 1; padding: 32px 0 56px; }
.is-login .page { padding-top: 0; }
.stack > * + * { margin-top: 16px; }
.stack-sm > * + * { margin-top: 8px; }
.stack-lg > * + * { margin-top: 24px; }
.grid-2, .grid-3 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 40em) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.columns { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 20px; }
@media (min-width: 64em) { .columns { grid-template-columns: 1fr 1fr; align-items: start; } .columns--wide-left { grid-template-columns: 1.6fr 1fr; } }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.inline-form { display: inline; margin: 0; }
.form-narrow { max-width: 500px; }
.form-wide { max-width: 920px; }

.masthead {
  background: linear-gradient(100deg, var(--green-deep) 0%, var(--green) 70%, var(--green-2) 100%);
  color: #fff;
  border-bottom: 3px solid var(--gold);
}
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; min-height: 72px; padding-top: 10px; padding-bottom: 10px; }
.masthead__inner--wide { width: 100%; padding-left: var(--gutter); padding-right: var(--gutter); }
@media (min-width: 60em) { .masthead__inner--wide { padding-left: 24px; padding-right: 24px; } }
.masthead__college { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; min-width: 0; }
.masthead__college:hover { color: #fff; }
.masthead__crest { flex: none; display: block; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .25)); }
.masthead__name { display: block; font-family: var(--serif); font-weight: 700; font-size: 1.125rem; line-height: 1.25; }
.masthead__sub { display: block; font-size: .8125rem; color: rgba(255, 255, 255, .78); }
.masthead__right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.masthead__note { font-size: .875rem; color: rgba(255, 255, 255, .85); }
.masthead__note--closed { color: #FFD6D3; font-weight: 700; }
.masthead__user { display: flex; align-items: center; gap: 10px; font-size: .875rem; line-height: 1.25; }
.masthead__user small { display: block; color: rgba(255, 255, 255, .72); font-size: .75rem; }
.masthead__avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--green-deep); font-weight: 800; font-size: .8125rem; }
@media (max-width: 39.99em) {
  .masthead__inner { flex-wrap: nowrap; }
  .masthead__college > span { min-width: 0; }
  .masthead__name { font-size: .9375rem; }
  .masthead__sub { font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .masthead__right { flex-wrap: nowrap; flex: none; }
  .masthead__note, .masthead__user > span:last-child { display: none; }
  .masthead .btn--small { padding: 6px 10px; }
}

.site-footer { background: var(--card); border-top: 1px solid var(--line); font-size: .875rem; color: var(--ink-2); }
.site-footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px; padding-top: 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
.site-footer__inner span { color: var(--green); font-weight: 700; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
@media (min-width: 40em) { .panel { padding: 26px; } }
.panel--flush { padding: 0; overflow: hidden; }
.panel__title { padding: 18px 22px; border-bottom: 1px solid var(--line); }
.panel__note { padding: 14px 22px 0; color: var(--ink-2); font-size: .9375rem; }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.subpanel { background: #F7FAF8; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; }
.empty { padding: 36px 22px; color: var(--ink-2); text-align: center; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.label { font-weight: 600; font-size: .9375rem; }
.hint { font-size: .8125rem; color: var(--ink-2); margin-top: -2px; }
.error { font-size: .875rem; color: var(--red); font-weight: 600; }
.error:empty { display: none; }
.input {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  font: inherit;
  color: var(--ink);
  background: #FBFCFB;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.input:hover { border-color: #A9B6AE; }
.input:focus { border-color: var(--green); background: #fff; outline: none; box-shadow: 0 0 0 4px rgba(11, 93, 51, .14); }
.input::placeholder { color: var(--ink-3); }
.input--upper { text-transform: uppercase; letter-spacing: .03em; }
.input--upper::placeholder { text-transform: none; letter-spacing: 0; }
.input--file { padding: 9px; background: #fff; }
select.input { appearance: auto; }
.input.input-validation-error { border-color: var(--red); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; cursor: pointer; }
.check input, .option input, .agree input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--green); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 8px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 20px;
  font: 700 .9375rem/1.2 var(--sans);
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 2px 6px rgba(11, 93, 51, .28); }
.btn--primary:hover { background: var(--green-deep); color: #fff; }
.btn--secondary { background: #fff; color: var(--green); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--green); background: var(--green-wash); color: var(--green-deep); }
.btn--ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--ghost:hover { background: rgba(255, 255, 255, .2); border-color: #fff; color: #fff; }
.btn--danger { background: #fff; color: var(--red); border-color: #E5B8B5; }
.btn--danger:hover { background: var(--red-wash); border-color: var(--red); }
.btn--small { min-height: 36px; padding: 6px 14px; font-size: .8125rem; }
.btn--large { min-height: 52px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn:disabled, .btn[disabled] { background: #E6EBE8; color: #8A958F; border-color: #E6EBE8; box-shadow: none; cursor: not-allowed; }
.back { display: inline-flex; align-items: center; gap: 4px; font-size: .9375rem; font-weight: 600; text-decoration: none; }
.back::before { content: "\2190"; }

.alert { padding: 13px 16px; border-radius: var(--radius-sm); border: 1px solid; display: flex; gap: 10px; }
.alert::before { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .75rem; color: #fff; margin-top: 1px; }
.alert ul { margin: 0; }
.alert--error { background: var(--red-wash); border-color: #EFC4C1; color: #6B1517; }
.alert--error::before { content: "!"; background: var(--red); }
.alert--success { background: var(--green-wash); border-color: #B5D8C2; color: var(--green-deep); }
.alert--success::before { content: "\2713"; background: var(--green); }
.alert--info { background: #EEF4FB; border-color: #C5D7EC; color: #1F3A55; }
.alert--info::before { content: "i"; background: #3E6A93; }
.notice { background: var(--amber-wash); border: 1px solid #EBD9A8; border-radius: var(--radius-sm); padding: 14px 18px; color: #4D3600; }
.notice > * + * { margin-top: 6px; }
.notice ul { padding-left: 1.1rem; }
.notice a { color: #6B4700; font-weight: 700; }
.caution { background: linear-gradient(180deg, #FFF6F5 0%, var(--red-wash) 100%); border: 1px solid #F0C6C3; border-radius: var(--radius); padding: 18px 20px; color: #4E1214; }
.caution > * + * { margin-top: 8px; }
.caution__title { display: flex; align-items: center; gap: 10px; font-size: 1.0625rem; color: var(--red); }
.caution__small { font-size: .875rem; }
.caution--compact { padding: 14px 16px; }

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, var(--green-2) 0%, var(--green) 40%, var(--green-deep) 100%);
  color: #fff;
  padding: 40px 0 56px;
}
.hero::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 360px;
  height: 430px;
  background: url("../img/crest-sm.png") no-repeat center / contain;
  opacity: .07;
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 60em) { .hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 440px); gap: 56px; } .hero { padding: 64px 0 80px; } }
.hero__kicker { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(201, 162, 39, .18); border: 1px solid rgba(201, 162, 39, .55); color: #F6E3A6; font-size: .8125rem; font-weight: 600; }
.hero__title { margin-top: 16px; font-family: var(--serif); font-size: clamp(2rem, 5.5vw, 3.25rem); line-height: 1.08; font-weight: 700; }
.hero__closed { margin-top: 24px; display: grid; gap: 6px; padding: 16px 18px; border-radius: var(--radius); background: rgba(0, 0, 0, .18); border: 1px solid rgba(255, 255, 255, .2); }
.countdown { margin-top: 28px; }
.countdown__tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 460px; }
.countdown__tile {
  padding: 14px 6px 10px;
  text-align: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(4px);
}
.countdown__tile span { display: block; font-size: clamp(1.75rem, 6vw, 2.5rem); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.countdown__tile small { display: block; margin-top: 6px; font-size: .75rem; color: rgba(255, 255, 255, .75); }
.countdown__tile:last-child span { color: var(--gold); }
.countdown__date { margin-top: 12px; font-size: .9375rem; color: rgba(255, 255, 255, .85); }
.login-card { background: var(--card); color: var(--ink); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 26px 22px; }
@media (min-width: 40em) { .login-card { padding: 32px; } }
.login-card > * + * { margin-top: 16px; }
.login-card__title { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.login-card__sub { color: var(--ink-2); font-size: .9375rem; margin-top: 4px !important; }
.login-card__help { font-size: .875rem; color: var(--ink-2); padding-top: 14px; border-top: 1px solid var(--line); }
.how { margin-top: 40px; }
.how__title { font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; }
.how__steps { list-style: none; padding: 0; margin-top: 16px; display: grid; gap: 14px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 40em) { .how__steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64em) { .how__steps { grid-template-columns: repeat(4, 1fr); } }
.how__steps li { counter-increment: step; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 18px 18px 64px; }
.how__steps li::before { content: counter(step); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--green-wash); color: var(--green); font-weight: 800; }
.how__steps strong { display: block; }
.how__steps span { display: block; margin-top: 2px; font-size: .9375rem; color: var(--ink-2); }
.how__note { margin-top: 14px; font-size: .9375rem; color: var(--ink-2); }

.graduand {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
  padding: 26px 24px;
  overflow: hidden;
}
.graduand::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(201, 162, 39, .55); border-radius: 9px; pointer-events: none; }
.graduand::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(180deg, var(--green), var(--gold)); }
@media (min-width: 40em) { .graduand { padding: 32px 36px; } }
.graduand__label { color: var(--ink-2); font-size: .875rem; font-weight: 600; margin-bottom: 8px; }
.graduand__label--done { display: flex; align-items: center; gap: 8px; color: var(--green); font-size: .9375rem; }
.graduand__label--done svg { flex: none; width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--green); color: #fff; }
.graduand__meta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; color: var(--ink-2); font-size: .9375rem; }
.chip { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; background: var(--green-wash); color: var(--green-deep); font-size: .8125rem; font-weight: 600; }
.recorded { background: var(--green-wash); border: 1px solid #B5D8C2; border-radius: var(--radius); padding: 16px 20px; display: grid; gap: 8px; justify-items: start; color: var(--green-deep); }

.names-table, .compare-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.names-table th, .compare-table thead th { text-align: left; font-size: .8125rem; font-weight: 600; color: var(--ink-2); padding: 0 10px 8px 2px; }
.names-table td {
  font-weight: 700;
  font-size: 1.0625rem;
  padding: 14px;
  background: #F6F9F7;
  border: 1px solid var(--line);
  overflow-wrap: break-word;
}
.names-table td + td { border-left: 0; }
.names-table td:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.names-table td:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.names-table td:empty::after, .compare-table td:empty::after { content: "None"; font-weight: 400; color: var(--ink-3); font-size: .875rem; }
@media (max-width: 39.99em) {
  .names-table, .names-table tbody, .names-table tr { display: block; }
  .names-table thead { display: none; }
  .names-table td { display: grid; grid-template-columns: 7rem 1fr; gap: 8px; border: 1px solid var(--line); border-top-width: 0; border-radius: 0 !important; }
  .names-table td + td { border-left: 1px solid var(--line); }
  .names-table td:first-child { border-top-width: 1px; border-radius: var(--radius-sm) var(--radius-sm) 0 0 !important; }
  .names-table td:last-child { border-radius: 0 0 var(--radius-sm) var(--radius-sm) !important; }
  .names-table td::before { font-weight: 400; font-size: .875rem; color: var(--ink-2); }
  .names-table td:nth-child(1)::before { content: "First name"; }
  .names-table td:nth-child(2)::before { content: "Middle name"; }
  .names-table td:nth-child(3)::before { content: "Surname"; }
  .names-table td:empty::after { grid-column: 2; }
}
.cert-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 14px 16px; border-radius: var(--radius-sm); background: linear-gradient(90deg, var(--gold-soft), #FFFBEF); border: 1px solid #EAD9A0; color: #4D3A00; font-size: .9375rem; }
.cert-line strong { font-family: var(--serif); font-size: 1.1875rem; color: var(--green-deep); }

.compare-table th[scope="row"] { text-align: left; font-weight: 600; font-size: .9375rem; padding: 12px 10px 12px 14px; vertical-align: top; width: 30%; }
.compare-table th[scope="row"] small { display: block; font-weight: 400; color: var(--ink-2); font-size: .8125rem; }
.compare-table td { padding: 12px 10px; font-weight: 700; overflow-wrap: break-word; }
.compare-table tbody tr > * { border-top: 1px solid var(--line); }
.compare-table tbody tr:first-child > * { border-top: 0; }
.compare-table tbody tr:first-child { background: #F6F9F7; }
.compare-table__new > * { background: var(--plum-wash); color: var(--plum); }
.compare-table tbody tr:first-child > *:first-child { border-radius: var(--radius-sm) 0 0 0; }
.compare-table tbody tr:last-child > *:first-child { border-radius: 0 0 0 var(--radius-sm); }
@media (max-width: 39.99em) {
  .compare-table, .compare-table tbody, .compare-table tr { display: block; }
  .compare-table thead { display: none; }
  .compare-table tr { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; }
  .compare-table tbody tr > * { border-top: 0; border-radius: 0 !important; background: none; }
  .compare-table th[scope="row"] { display: block; width: auto; padding: 0 0 6px; }
  .compare-table td { display: grid; grid-template-columns: 7.5rem 1fr; gap: 8px; padding: 4px 0; }
  .compare-table td::before { content: attr(data-label); font-weight: 400; color: var(--ink-2); font-size: .875rem; }
  .compare-table__new { background: var(--plum-wash) !important; border-color: #EBC9DA !important; }
}

.dl { display: grid; grid-template-columns: 1fr; gap: 14px 24px; margin-bottom: 0; }
@media (min-width: 40em) { .dl { grid-template-columns: 1fr 1fr; } .dl__wide { grid-column: 1 / -1; } }
.dl > div { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.dl dt { font-size: .8125rem; color: var(--ink-2); }
.dl dd { margin: 3px 0 0; font-weight: 700; }

.option {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.option:hover { border-color: var(--green-2); }
.option strong { display: block; font-size: 1rem; }
.option__hint { display: block; margin-top: 4px; font-size: .875rem; color: var(--ink-2); }
.option.is-selected, .option:has(input:checked) { border-color: var(--green); background: var(--green-wash); box-shadow: 0 0 0 4px rgba(11, 93, 51, .1); }
.agree { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); background: #F7FAF8; border: 1px dashed var(--line-strong); font-weight: 600; cursor: pointer; }

.pool { border: 1.5px dashed var(--line-strong); border-radius: var(--radius); padding: 14px; background: #F9FBFA; }
.pool__label { font-size: .8125rem; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }
.pool__tokens { display: flex; flex-wrap: wrap; gap: 8px; min-height: 42px; align-items: center; }
.pool__done { color: var(--green); font-weight: 700; font-size: .9375rem; }
.token, .placed {
  min-height: 42px;
  padding: 6px 16px;
  font: 700 1rem var(--sans);
  letter-spacing: .02em;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .05s, box-shadow .15s, border-color .15s;
}
.token { background: #fff; color: var(--ink); border: 1.5px solid var(--line-strong); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.token:hover { border-color: var(--green); color: var(--green); box-shadow: 0 3px 10px rgba(11, 93, 51, .15); }
.token:active, .placed:active { transform: scale(.97); }
.placed { background: var(--green); color: #fff; border: 1.5px solid var(--green); font-size: .9375rem; }
.slots { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 40em) { .slots { grid-template-columns: repeat(3, 1fr); } .slots--stacked { grid-template-columns: 1fr; } }
.slot { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1.5px solid transparent; border-radius: var(--radius); transition: background .15s, border-color .15s; }
.slot.is-active { border-color: var(--green); background: var(--green-wash); }
.slot__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.slot__chips:empty { display: none; }
html.js .slot__input { cursor: pointer; }
.checks { list-style: none; padding: 0; display: grid; gap: 6px; font-size: .9375rem; color: var(--ink-2); }
@media (min-width: 40em) { .checks { grid-template-columns: 1fr 1fr; } }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); }
.checks li.is-ok { color: var(--green); font-weight: 600; }
.checks li.is-ok::before { content: "\2713"; border-color: var(--green); background: var(--green); color: #fff; font-size: .6875rem; font-weight: 800; display: grid; place-items: center; }

.admin { background: var(--bg); }
.admin-shell { flex: 1; display: grid; grid-template-columns: 1fr; width: 100%; }
@media (min-width: 60em) { .admin-shell { grid-template-columns: 240px minmax(0, 1fr); } }
.sidenav { background: #0C2E1F; color: #fff; }
.sidenav__menu summary { padding: 13px var(--gutter); font-weight: 700; cursor: pointer; }
@media (min-width: 60em) { .sidenav__menu summary { display: none; } .sidenav__menu ul { position: sticky; top: 0; } }
.sidenav ul { list-style: none; padding: 6px 10px 14px; margin: 0; display: grid; gap: 2px; }
@media (min-width: 60em) { .sidenav ul { padding-top: 20px; } }
.sidenav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; color: rgba(255, 255, 255, .78); text-decoration: none; border-radius: var(--radius-sm); font-weight: 600; font-size: .9375rem; }
.sidenav a svg { flex: none; opacity: .85; }
.sidenav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.sidenav a.is-current { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.sidenav a.is-current svg { color: var(--gold); opacity: 1; }
.admin-main { min-width: 0; padding: 24px var(--gutter) 56px; }
@media (min-width: 60em) { .admin-main { padding: 32px 36px 64px; } }
.admin-main > * + * { margin-top: 20px; }
.admin .site-footer__inner { max-width: none; padding-left: 24px; padding-right: 24px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 20px; flex-wrap: wrap; }
.page-head > div > * + * { margin-top: 4px; }

.figures { width: 100%; border: 0; border-collapse: collapse; }
.figures thead { display: none; }
.figures tbody, .figures tr { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.figures tbody { display: block; }
@media (min-width: 64em) { .figures tr { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.figures td {
  display: block;
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px 16px;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
}
.figures td::before { content: attr(data-label); display: block; margin-bottom: 6px; font-size: .8125rem; font-weight: 600; letter-spacing: 0; color: var(--ink-2); }
.figures td::after { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--line-strong); }
.figures td:nth-child(1)::after { background: var(--green-deep); }
.figures td:nth-child(2)::after { background: var(--green-2); }
.figures td:nth-child(3)::after { background: var(--plum); }
.figures td:nth-child(4)::after { background: var(--gold); }
.figures td a { color: inherit; text-decoration: none; }
.figures td a:hover { color: var(--green); }
.figures small { display: block; margin-top: 4px; font-size: .8125rem; font-weight: 500; letter-spacing: 0; color: var(--ink-2); overflow-wrap: anywhere; }

.state { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .8125rem; font-weight: 700; }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.state--open { color: var(--green); background: var(--green-wash); }
.state--closed { color: var(--red); background: var(--red-wash); }
.deadline-line { font-size: 1.375rem; font-weight: 800; letter-spacing: -.01em; }

.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: .8125rem; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--confirmed { color: var(--green); background: var(--green-wash); }
.status--rearranged { color: var(--plum); background: var(--plum-wash); }
.status--none { color: var(--ink-2); background: #EEF2EF; }
.flag { display: inline-block; margin-left: 6px; padding: 2px 8px; font-size: .75rem; font-weight: 700; color: var(--amber); background: var(--amber-wash); border-radius: 999px; }
.flag--red { color: var(--red); background: var(--red-wash); }

.filters { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: flex-end; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.filters__search { flex: 1 1 260px; }
.filters__check { min-height: 48px; align-items: center; }
.filters .field:not(.filters__search) { flex: 0 1 190px; }

.tabs { display: inline-flex; gap: 4px; padding: 4px; max-width: 100%; overflow-x: auto; background: #E3EAE5; border-radius: 12px; }
.tabs a { padding: 8px 16px; color: var(--ink-2); text-decoration: none; border-radius: 9px; white-space: nowrap; font-weight: 700; font-size: .9375rem; }
.tabs a:hover { color: var(--green-deep); }
.tabs a.is-current { background: #fff; color: var(--green-deep); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.tabs__count { display: inline-block; min-width: 22px; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: rgba(0, 0, 0, .06); font-size: .75rem; text-align: center; }
.tabs a.is-current .tabs__count { background: var(--green); color: #fff; }

.table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.table th, .table td { text-align: left; padding: 13px 16px; vertical-align: middle; }
.table thead th { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); background: #F6F9F7; border-bottom: 1px solid var(--line); }
.table tbody td, .table tbody th { border-bottom: 1px solid var(--line); }
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.table tbody tr { transition: background .1s; }
.table tbody tr:hover { background: #F8FBF9; }
.table .num { width: 3.5rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.table a { font-weight: 700; text-decoration: none; }
.table a:hover { text-decoration: underline; }
.table tr.is-inactive td { color: var(--ink-3); }
@media (max-width: 47.99em) {
  .table--stack, .table--stack tbody, .table--stack tr, .table--stack td, .table--stack th[scope="row"] { display: block; }
  .table--stack thead { display: none; }
  .table--stack tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .table--stack tbody td, .table--stack tbody th { border: 0; padding: 3px 0; }
  .table--stack td[data-label] { display: grid; grid-template-columns: 7.5rem 1fr; gap: 8px; }
  .table--stack td[data-label]::before { content: attr(data-label); color: var(--ink-2); font-size: .8125rem; }
  .table--stack td.num { display: none; }
}

.requests__group + .requests__group { border-top: 1px solid var(--line-strong); }
.requests tbody tr:hover { background: transparent; }
.requests .requests__label { font-size: .75rem; font-weight: 700; color: var(--ink-2); width: 4rem; text-transform: uppercase; letter-spacing: .04em; }
.requests__new td:not([rowspan]), .requests__new th { background: var(--plum-wash); color: var(--plum); font-weight: 700; }
.requests__new .requests__label { color: var(--plum); }
.requests__by { display: block; font-size: .8125rem; font-weight: 400; color: var(--ink-2); margin-top: 2px; }
.requests__full { display: none; }
.requests tbody td, .requests tbody th { border-bottom: 0; }
@media (max-width: 47.99em) {
  .requests thead { display: none; }
  .requests, .requests tbody { display: block; }
  .requests tr { display: grid; grid-template-columns: 4rem 1fr; }
  .requests td.num, .requests td[data-label] { display: none; }
  .requests td[rowspan]:not(.num):not(.requests__when) { grid-column: 1 / -1; padding-bottom: 4px; }
  .requests .requests__full { display: block; }
  .requests .requests__when { display: none; }
  .requests th, .requests td { padding: 7px 16px; }
}

.pager { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line); font-size: .9375rem; background: #FBFCFB; }
.pager__info { color: var(--ink-2); }
.pager__nav { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pager__num, .pager__step { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); font-weight: 600; text-decoration: none; background: #fff; }
.pager__num:hover, .pager__step:hover { border-color: var(--green); color: var(--green); }
.pager__num.is-current { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 2px 6px rgba(11, 93, 51, .3); }
.pager__gap { padding: 0 4px; color: var(--ink-2); }

.log { list-style: none; padding: 0; display: grid; font-size: .9375rem; }
.log li { position: relative; display: grid; grid-template-columns: 6.5rem 1fr; gap: 12px; padding: 10px 0 10px 16px; border-top: 1px solid var(--line); }
.log li::before { content: ""; position: absolute; left: 0; top: 18px; width: 7px; height: 7px; border-radius: 50%; background: var(--green-2); }
.log li:first-child { border-top: 0; }
.log__when { color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: .875rem; }
.log__old { color: var(--ink-2); }
.log__old::before { background: var(--line-strong) !important; }

.progress-row + .progress-row { margin-top: 16px; }
.progress-row__head { display: flex; justify-content: space-between; gap: 10px; font-size: .9375rem; font-weight: 600; margin-bottom: 8px; }
.bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: #E3EAE5; }
.bar__confirmed { background: var(--green-2); }
.bar__rearranged { background: var(--plum); }
.key { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8125rem; color: var(--ink-2); }
.key span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; vertical-align: -1px; }
.key__confirmed::before { background: var(--green-2); }
.key__rearranged::before { background: var(--plum); }
.key__none::before { background: #D3DCD6; }

.disclosure > summary, .row-edit > summary { cursor: pointer; color: var(--green); font-weight: 700; }
.disclosure { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; }
.disclosure__body { margin-top: 14px; }
.row-edit__form { margin: 10px 0; min-width: 220px; }

.issue { display: grid; grid-template-columns: 6rem 1fr; gap: 14px; padding: 16px 22px; border-top: 1px solid var(--line); }
.issue:first-of-type { border-top: 0; }
.issue__label { align-self: start; justify-self: start; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.issue--blocker .issue__label { color: var(--red); background: var(--red-wash); }
.issue--check .issue__label { color: var(--amber); background: var(--amber-wash); }
.issue--autofixed .issue__label { color: var(--green); background: var(--green-wash); }
.issue details { margin-top: 6px; font-size: .9375rem; }
.issue summary { color: var(--green); cursor: pointer; font-weight: 600; }
.issue__items { margin-top: 6px; display: grid; gap: 2px; }

.export-list { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 64em) { .export-list { grid-template-columns: 1fr 1fr; } }
.export-list .panel { border-top: 4px solid var(--green); }
.danger-zone { border-color: #EFC4C1; border-top: 4px solid var(--red); }

.roles th[scope="row"] { width: 9rem; font-weight: 700; }

@media print {
  body, .admin { background: #fff; }
  .sidenav, .masthead__right, .filters, .tabs, .pager__nav, .actions, .skip-link, .btn { display: none !important; }
  .masthead { background: #fff; color: var(--green); border-bottom: 2px solid var(--green); }
  .masthead__sub { color: var(--ink-2); }
  .admin-shell { display: block; }
  .admin-main { padding: 0; }
  .panel { border: 0; padding: 0; box-shadow: none; }
  .requests__new td, .requests__new th { background: none !important; }
  .site-footer { border: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
