@font-face {
  font-family: KronosInter;
  src: url("/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --action: #156441;
  --focus-color: var(--action);
  --text: #18212f;
  --text-muted: #526075;
  --panel-line: #d9e0ea;
  --error-line: #a12b22;
  --error-text: #84231c;
  --warning-bg: #fff5da;
  --control-radius: 6px;
  --touch-min: 44px;
  --control-height: 48px;
  --section-gap: 16px;
  --action-gap: 10px;
  --control-line: #c8d4e1;
  --panel-shadow: 0 10px 28px rgba(24,33,47,.045);
}

* { box-sizing: border-box; }
body { margin: 0; background: #f6f8fb; color: var(--text); font: 16px/1.5 KronosInter,Inter,system-ui,sans-serif; }
header,nav { background: #fff; border-bottom: 1px solid var(--panel-line); }
header>div,nav>div,main,footer { max-width: 980px; margin: auto; padding: 16px 24px; }
header>div,.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { font-size: 23px; font-weight: 750; letter-spacing: -.04em; }
.brand small { font-weight: 450; font-size: 15px; letter-spacing: 0; border-left: 1px solid var(--panel-line); margin-left: 12px; padding-left: 12px; }
nav>div { display: flex; gap: 4px; padding-block: 0; flex-wrap: nowrap; overflow-x: auto; }
a { color: #145c44; }
nav a,.btn { display: inline-flex; align-items: center; min-height: var(--touch-min); padding: 8px 14px; text-decoration: none; font-weight: 600; }
nav a[aria-current] { box-shadow: inset 0 -3px #18784e; }
main { padding-top: 32px; }
h1, .page-heading { margin: 4px 0 20px; }
h1 { font-size: clamp(28px,4vw,38px); letter-spacing: -.045em; }
.page-heading {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px var(--section-gap);
}
.page-heading h1 { margin: 0; }
.page-heading time {
  border-inline-start: 1px solid var(--panel-line);
  padding-inline-start: var(--section-gap);
  font-size: .94rem;
}
.page-heading time span:last-child { display: none; }
@media (max-width: 600px) {
  .page-heading time span:first-child { display: none; }
  .page-heading time span:last-child { display: inline; }
}
h2 { font-size: 20px; margin: 0 0 12px; }
.card { background: white; border: 1px solid var(--panel-line); border-radius: 12px; padding: 24px; margin-bottom: var(--section-gap); }
.grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; }
.time { font-size: clamp(42px,8vw,64px); font-weight: 650; letter-spacing: -.06em; line-height: 1.2; font-variant-numeric: tabular-nums; margin: 6px 0; }
.muted,footer { color: var(--text-muted); }
.pill { display: inline-block; background: #e6f4ec; color: #155a39; border-radius: 20px; padding: 3px 10px; font-weight: 600; font-size: 14px; }
.warn,.ok { border-left: 4px solid #976720; background: var(--warning-bg); padding: 12px; margin: 12px 0; }
.ok { background: #edf7ef; border-color: #18784e; }
.line { padding: 10px 0; border-bottom: 1px solid #e3e8ec; }
.line:last-child { border: 0; }
.big { font-size: 25px; font-weight: 700; }
label { display: grid; gap: 6px; margin: 14px 0; font-weight: 600; }
:focus-visible { outline: 2px solid var(--focus-color); outline-offset: 2px; }
nav a:focus-visible { outline-offset: -2px; }
#notice { --focus-color: white; }
:is(input, select, textarea):focus {
  border-color: var(--field-focus, var(--focus-color));
  outline: 2px solid transparent;
  outline-offset: 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--field-focus, var(--focus-color)) 18%, transparent);
}
[aria-invalid="true"] { --field-focus: var(--error-line); }
footer { font-size: 13px; }
details summary { cursor: pointer; min-height: var(--touch-min); }
details a { display: inline-block; padding: 8px; }
.calendar { display: grid; grid-template-columns: repeat(7,1fr); text-align: center; gap: 1px; }
.calendar b,.calendar span { padding: 6px 0; }
.selected { background: var(--action); color: white; border-radius: 6px; }
@media (max-width: 680px) {
  .grid { grid-template-columns: 1fr; gap: 0; }
  header > div, main, footer { padding-inline: 16px; }
  nav > div { padding-inline: 8px; gap: 0; }
  nav a { font-size: 14px; padding-inline: 7px; }
  .card { padding: 18px; }
  main { padding-top: 20px; }
  .actions--mobile-stack > .btn { width: 100%; }
  .brand small { font-size: 13px; }
  .row { gap: 6px; }
}
.pill.paused { background: #e7f1fb; color: #214f78; }
.pill.pending { background: #fff1ca; color: #694900; }
nav a { flex-shrink: 0; white-space: nowrap; }
[hidden] { display: none!important; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
.card,.grid>* { min-width: 0; overflow-wrap: anywhere; }
.compact { max-width: 520px; }
.calendar a { min-height: var(--touch-min); display: grid; place-items: center; }
.filters { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.filters label { flex: 1 1 145px; }
.filters--compact label { flex: 0 1 15rem; min-width: 0; max-width: 100%; }
#notice { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); width: max-content; max-width: 92vw; background: #155a39; color: white; padding: 6px 8px 6px 16px; border-radius: 8px; display: flex; align-items: center; gap: 14px; }
#notice button { background: transparent; color: white; border: 0; min-width: var(--touch-min); min-height: var(--touch-min); }
.line a { display: inline-flex; align-items: center; min-height: var(--touch-min); }
h1:focus:not(:focus-visible) { outline: 0; }


.card, .access-layout .page-panel { box-shadow: var(--panel-shadow); }
input, select, textarea {
  width: 100%; font: inherit; min-height: var(--control-height); padding: 10px 12px; border: 1px solid var(--control-line);
  border-radius: var(--control-radius); color: #263548; background-color: white; font-weight: 400;
}
textarea { min-height: 78px; }
.btn { justify-content: center; margin: 0; padding-inline: 16px; background: white; color: var(--text); border: 1px solid var(--control-line); border-radius: var(--control-radius); font-weight: 400; }
.btn:not(:disabled):hover { background: #f5f7fa; }
.pri { color: white; background: var(--action); border-color: var(--action); }
.pri:not(:disabled):hover { background: #104f33; }
#message:not(:empty) { background: #fff1ef; border-color: var(--error-line); color: var(--error-text); }
.access-mark, .access-brand { display: none; }
.access-layout > header { display: none; }
.access-layout main { width: 100%; max-width: 552px; padding: 60px 16px 48px; }
.access-layout .access-mark {
  display: grid; place-items: center; margin: 0 auto 34px; width: 76px; height: 76px;
  border-radius: 50%; background: var(--action); color: white; font-size: 44px;
  font-weight: 750; line-height: 1; box-shadow: 0 14px 22px #15644130;
}
.access-layout .page-panel {
  background: white; border: 1px solid var(--panel-line); border-radius: 12px;
  text-align: center; padding: 36px 34px 28px;
}
.access-layout .page-heading { display: block; margin: 0; }
.access-layout h1 { margin: 0; font-size: 1.8rem; line-height: 1.1; letter-spacing: 0; }
.access-copy, .access-help { color: #58667a; font-size: 1rem; line-height: 1.45; }
.access-copy { max-width: 390px; margin: 8px auto 0; }
.access-help { margin: 14px auto 0; }
.access-form { display: grid; gap: 20px; margin-top: 20px; }
.access-form label { display: block; margin: 0; }
.access-form label + label { margin-top: -4px; }
.access-form .btn { min-height: var(--control-height); width: 100%; margin: 0; }
.actions--links { --action-column-gap: var(--section-gap); }
.access-layout .actions--links { justify-content: center; margin-top: 12px; }
.actions--links .btn {
  border: 0; background: transparent; color: var(--action); padding: 0; margin: 0;
  text-decoration: underline; font-size: .94rem;
}
.access-layout .access-brand {
  display: block; margin: 14px 0 0; font-size: .82rem; font-weight: 850;
  color: #657085; line-height: 1.45; letter-spacing: .08em; text-transform: uppercase;
}
.access-layout #message:not(:empty) { margin-top: 20px; text-align: left; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.dialog {
  width: min(640px, calc(100% - 36px)); max-height: min(760px, calc(100dvh - 48px));
  padding: 24px; color: inherit; border: 1px solid var(--panel-line); border-radius: 14px;
  box-shadow: 0 28px 80px rgba(24,33,47,.24);
}
.dialog::backdrop { background: #18212f66; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog-heading h2 { margin: 0; font-size: 1.35rem; }
.dialog-heading .btn { min-width: var(--touch-min); border-radius: 50%; }
.dialog label { font-size: .875rem; color: var(--text-muted); }
.dialog input { font-size: 1rem; }

@media (forced-colors: active) {
  nav a[aria-current] { text-decoration: underline; }
  :focus-visible, :is(input, select, textarea):focus { outline-color: Highlight; }
}

#loading {
  position: fixed; top: 8px; right: 12px; pointer-events: none;
  padding: 4px 10px; border: 1px solid var(--panel-line); border-radius: 6px;
  background: white; color: var(--text-muted); font-size: .875rem;
}

.select-control { position: relative; display: grid; min-width: 0; }
.select-control select { appearance: none; min-width: 0; padding-right: 36px; }
.select-control svg {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: #657085; pointer-events: none;
}
@media (forced-colors: active) {
  .select-control select { appearance: auto; }
  .select-control svg { display: none; }
}
.filters { margin-bottom: var(--section-gap); }
.filters label, .filters .btn { margin: 0; }
.filters input, .filters select, .filters .btn { height: var(--control-height); min-width: 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; row-gap: var(--action-gap); column-gap: var(--action-column-gap, var(--action-gap)); }
.actions + .actions { margin-top: var(--action-gap); }
.row + .actions, .actions--footer { margin-top: var(--section-gap); }
.action-stack { display: grid; gap: var(--action-gap); }

.pill.neutral { background: #eef1f5; color: #445366; }
.field-group + .field-group { padding-top: var(--action-gap); border-top: 1px solid var(--control-line); }
[data-field-error] { display: block; color: var(--error-text); }
[aria-invalid="true"] { border-color: var(--error-line); }
#update { padding: 8px 16px; background: var(--warning-bg); text-align: center; }

.table-scroll { overflow-x: auto; }
.table-scroll table { width: 100%; border-collapse: collapse; text-align: left; }
.table-scroll td, .table-scroll th { padding: 8px; border-bottom: 1px solid var(--panel-line); }
fieldset { min-width: 0; }

.table-scroll td, .table-scroll th { white-space: nowrap; overflow-wrap: normal; }
@media (max-width: 680px) {
  .module-nav > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .module-nav a { justify-content: center; }
}

.object-ref { display: block; max-width: 23ch; white-space: normal; overflow-wrap: anywhere; color: var(--text-muted); }
.dialog { overflow-wrap: anywhere; }

.data-table { font-size: .9rem; }
.data-table thead th { background: #f6f8fb; color: var(--text-muted); font-weight: 600; }
.data-table .numeric { text-align: right; font-variant-numeric: tabular-nums; }
.data-table tbody tr:is(:hover, :focus-within) { background: #f6f8fb; }
.data-table td:has(.table-link) { padding-block: 0; }
.table-link { display: inline-flex; align-items: center; min-height: var(--touch-min); text-underline-offset: .15em; }
@media (max-width: 600px) {
  .data-table :is(th, td) { padding-inline: 4px; }
  .data-table .numeric { white-space: normal; overflow-wrap: normal; }
}
