:root {
  color-scheme: light;
  --ink: #1b3027;
  --muted: #56675c;
  --green: #234b37;
  --paper: #f3f5ef;
  --white: #fffefa;
  --line: #d7dfd4;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); }
a { color: var(--green); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #a36639; outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { line-height: 1.1; letter-spacing: -.035em; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); overflow-wrap: anywhere; margin-bottom: 12px; }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin-bottom: 13px; }
h3 { font-size: 1rem; margin: 21px 0 8px; }
small, .muted { color: var(--muted); }
.shell { width: min(1152px, calc(100% - 40px)); margin-inline: auto; }
.masthead { border-bottom: 1px solid var(--line); background: var(--white); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 14px; }
.brand { display: flex; gap: 10px; align-items: center; color: var(--ink); text-decoration: none; line-height: 1.2; }
.brand img { object-fit: contain; }
.brand span { display: grid; gap: 4px; }
.brand small { font-size: .8rem; }
.pilot { color: #775335; font-size: .8rem; font-weight: 650; margin: 19px 0 14px; }
.intro {
  background: var(--green); color: var(--white);
  padding: clamp(22px, 5vw, 48px); border-radius: 10px;
  background-image: radial-gradient(ellipse at top right, #446a4b 0, transparent 63%);
}
.intro p:last-child { margin-bottom: 0; }
.eyebrow { font-size: .75rem; letter-spacing: .14em; font-weight: 750; color: #dbe6cf; margin-bottom: 10px; }
.entry, .split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; gap: 16px; }
.entry { align-items: stretch; max-width: 900px; margin: 32px auto; }
.entry .intro { display: flex; flex-direction: column; justify-content: center; }
.entry .intro p:last-child { max-width: 34ch; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 9px; padding: clamp(17px, 3vw, 27px); min-width: 0; }
.queues { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-block: 16px; }
.queue { display: flex; flex-direction: column; justify-content: space-between; gap: 5px; min-width: 0; padding: 12px 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); text-decoration: none; font-size: .88rem; }
.queue strong { font-size: 1.7rem; line-height: 1; }
.queue[aria-current], .sections [aria-current] { background: #e1eada; color: #193925; border-color: #7a987c; font-weight: 750; }
.inbox { padding: 0; overflow: hidden; }
.inbox-heading { padding: 18px 22px; }
.inbox-heading h2, .facts, .records { margin: 0; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: .93rem; }
th, td { padding: 12px 18px; vertical-align: top; border-top: 1px solid var(--line); }
thead { background: #edf1e8; font-size: .82rem; }
tbody tr:hover { background: #f7f8f3; }
td small, .records small { display: block; margin-top: 3px; }
.case-link, .records a { font-weight: 700; overflow-wrap: anywhere; }
.badge { display: inline-block; max-width: 100%; border-radius: 6px; padding: 4px 8px; font-size: .83rem; font-weight: 700; background: #e2ecdf; color: #234931; }
.badge-team { background: #f4e8d2; color: #664824; }
.badge-candidate { background: #e5ecee; color: #24474e; }
.badge-done { background: #dcead8; color: #204833; }
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 15px; border-top: 1px solid var(--line); padding: 13px; }
.empty { padding: 0 22px; }
.return-link { display: inline-block; margin-bottom: 12px; }
.case-header { padding-block: 25px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(146px, 1fr)); gap: 14px 22px; margin-top: 15px; }
.facts dt { color: var(--muted); font-size: .83rem; }
.facts dd { margin: 3px 0 0; font-weight: 650; overflow-wrap: anywhere; }
.sections { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 16px; }
.sections a { min-height: 43px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); text-decoration: none; }
.records { padding: 0; list-style: none; }
.records li { padding: 11px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.record-note { margin: 4px 0 0; white-space: pre-wrap; }
.card form label { display: block; font-weight: 650; margin-top: 11px; }
.card form input:not([type=hidden], [type=checkbox]), .card form select, .card form textarea {
  width: 100%; min-height: 43px; padding: 9px 10px; margin: 4px 0 6px; font: inherit;
  color: var(--ink); background: #fff; border: 1px solid #a6b4a8; border-radius: 5px;
}
textarea { resize: vertical; }
.button {
  display: inline-flex; justify-content: center; align-items: center; padding: 7px 12px; min-height: 42px;
  border: 1px solid #aab9a8; border-radius: 6px; background: var(--white); color: var(--green);
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; text-align: center;
}
.button-primary { background: var(--green); color: #fff; border-color: var(--green); }
.button:hover { filter: brightness(.95); }
.card form > .button { margin-top: 10px; margin-right: 5px; }
.card details { padding: 9px 0; }
.card details > summary { cursor: pointer; }
.card details[open] > summary { margin-bottom: 10px; }
.notice { padding: 11px 15px; border-left: 4px solid #6f8e68; border-radius: 4px; background: #e6eddf; }
.notice p:last-child { margin: 0; }
.notice-warning, .notice-error { background: #f5ebd9; border-color: #aa763f; }
footer { font-size: .82rem; color: var(--muted); padding-block: 24px; }
@media (max-width: 680px) {
  .shell { width: calc(100% - 24px); }
  .entry, .split { grid-template-columns: 1fr; }
  .entry { margin-top: 14px; }
  .queues { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .queue { padding: 10px; }
  .brand strong { font-size: .88rem; }
  .masthead .button { font-size: .82rem; }
  table { min-width: 530px; }
  th, td { padding: 9px 12px; }
}
