:root {
  color-scheme: light;
  --ink: #18283a;
  --muted: #536476;
  --line: #dce5e7;
  --paper: #fff;
  --wash: #f3f7f7;
  --accent: #09685f;
  --accent-light: #e5f5ef;
  --danger: #9d2d38;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--wash); font: 15px/1.5 system-ui, sans-serif; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid #218eaa; outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 8px; z-index: 10; padding: 10px; background: white; }
.top { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; min-height: 64px; padding: 10px 26px; background: #11283b; color: #effafa; }
.top a, .quiet { color: inherit; }
.brand { display: inline-flex; gap: 10px; align-items: center; font-weight: 750; text-decoration: none; font-size: 19px; }
.brand-mark { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 9px; background: #70d9c0; color: #102d33; }
.project { padding: 2px 0 2px 14px; border-left: 1px solid #547080; }
.account { margin-left: auto; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.quiet { background: none; border: none; padding: 0; cursor: pointer; text-decoration: underline; }
.layout { max-width: 1600px; margin: auto; }
.with-nav { display: grid; grid-template-columns: 235px minmax(0, 1fr); }
.rail { background: #fbfdfd; border-right: 1px solid var(--line); padding: 22px 13px; min-height: calc(100vh - 64px); }
.rail-label, .eyebrow { color: var(--accent); font-size: .76rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.rail-label { margin: 0 10px 12px; }
.rail details { padding: 2px 0; }
.rail summary { padding: 7px 9px; cursor: pointer; font-weight: 650; }
.rail ul, .notices { padding: 0; margin: 3px 0 6px; list-style: none; }
.rail a { display: block; padding: 6px 10px 6px 22px; text-decoration: none; color: var(--muted); border-radius: 6px; font-size: .87rem; }
.rail a[aria-current], .rail a:hover { background: var(--accent-light); color: var(--accent); }
main { min-width: 0; padding: clamp(18px, 3.1vw, 48px); }
.hero { margin-bottom: 20px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(1.75rem, 4vw, 2.7rem); letter-spacing: -.04em; line-height: 1.14; }
h2 { margin-bottom: 12px; font-size: 1.08rem; }
.hero p { max-width: 74ch; color: var(--muted); }
.hero .eyebrow { color: var(--accent); }
.links, .pagination { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 8px 13px; border: 1px solid var(--accent); border-radius: 7px; cursor: pointer; background: var(--accent); color: white; font-weight: 650; text-decoration: none; }
.button.outline { color: var(--accent); background: white; border-color: #aacbc5; }
.button:hover { filter: brightness(.95); }
.cards, .detail-grid, .form-grid { display: grid; gap: 12px; margin: 0 0 18px; grid-template-columns: repeat(auto-fit, minmax(min(195px, 100%), 1fr)); }
.form-grid { grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr)); align-items: start; margin-top: 16px; }
.panel, .card, .detail-grid > div { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 13px; }
.card, .detail-grid > div, .form-grid .panel { margin: 0; }
.card p, dt { margin: 0 0 3px; color: var(--muted); }
.card strong { font-size: 1.35rem; }
dd { margin: 0; overflow-wrap: anywhere; }
.table-panel { padding: 0; overflow: hidden; }
.table-panel h2, .table-panel .empty { padding: 14px 16px; margin: 0; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th, td { padding: 10px 13px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: #344b5d; background: #eff5f5; white-space: nowrap; font-size: .81rem; }
td { overflow-wrap: anywhere; max-width: 65ch; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f6faf9; }
.empty, .helptext { color: var(--muted); }
.evidence { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 42rem; overflow: auto; }
.search { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.search input { width: min(350px, 100%); }
label { font-weight: 600; }
form p > label { display: block; margin-bottom: 4px; }
input:not([type=checkbox]):not([type=hidden]), select, textarea { width: 100%; border: 1px solid #adbfc3; color: var(--ink); background: white; border-radius: 6px; padding: 8px; }
.search input { max-width: 350px; }
textarea { resize: vertical; }
.helptext { display: block; font-size: .82rem; margin-top: 3px; }
.notices li, .errorlist { padding: 9px 13px; border-radius: 6px; background: var(--accent-light); }
.errorlist { color: var(--danger); background: #fff0f1; list-style: none; }
.notices { margin-bottom: 14px; }
.auth { max-width: 460px; margin: 7vh auto 0; padding: 24px; }
.auth form { margin: 16px 0; }
.steps { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; padding: 0; margin: 0 0 24px; }
.steps li { padding: 5px 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: white; }
.steps span { margin-right: 6px; }
.steps li[aria-current] { color: var(--accent); background: var(--accent-light); border-color: #a9cfc3; font-weight: 650; }
@media (max-width: 780px) {
  .with-nav { grid-template-columns: minmax(0, 1fr); }
  .rail { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
  .rail-label { grid-column: 1 / -1; }
  .top { padding: 9px 15px; }
  .account { margin-left: 0; }
}
