:root {
  color-scheme: light;
  --ink: #163238;
  --muted: #526b70;
  --teal: #105c66;
  --teal-deep: #103f48;
  --blue: #245d86;
  --amber: #f7a72a;
  --red: #9f3528;
  --border: #d8e4e5;
  --canvas: #f2f6f6;
  --surface: #fff;
  --radius: 18px;
  --shadow: 0 8px 28px #103f480b;
  font: 16px/1.55 "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); }
a { color: var(--teal); text-underline-offset: .18em; }
a:hover { color: var(--blue); }
:focus-visible { outline: 3px solid #24648f; outline-offset: 3px; }
.skip-link { position: absolute; top: .5rem; left: .5rem; z-index: 2; padding: .65rem 1rem; background: white; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-nav { width: min(100% - 2rem, 76rem); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand img { width: 150px; height: auto; display: block; }
.nav-actions, .actions, .card-tags { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
.nav-actions a { text-decoration: none; font-weight: 650; }
.site-nav form { padding: 0; margin: 0; border: 0; box-shadow: none; }
.site-nav button, .button-secondary { background: #e7f1f2; color: var(--teal-deep); }
main { width: min(100% - 2rem, 76rem); margin-inline: auto; padding: clamp(1.2rem, 3vw, 2.8rem) 0 4rem; }
h1, h2, h3, p { margin: 0 0 .65rem; }
h1 { font-size: clamp(2rem, 4vw, 3.45rem); line-height: 1.08; letter-spacing: -.045em; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.35rem, 2.5vw, 1.8rem); line-height: 1.24; letter-spacing: -.025em; }
h3 { font-size: 1.1rem; line-height: 1.3; }
section { margin-block: 1.7rem; }
small, .muted { color: var(--muted); }
.eyebrow { display: block; font-size: .77rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .45rem; }
.hero { padding: clamp(1.35rem, 4vw, 3.1rem); margin-bottom: 1.55rem; border-radius: 24px; background: linear-gradient(120deg, var(--teal-deep), var(--teal)); color: white; box-shadow: var(--shadow); }
.hero p { color: #e0f0f0; max-width: 56ch; margin-bottom: 0; }
.hero .eyebrow { color: #ffcb72; }
.hero .actions { margin-top: 1.15rem; }
.hero a { color: white; }
.hero .button-secondary { color: var(--teal-deep); background: #e7f1f2; }
.button, button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: .55rem .9rem; border: 1px solid transparent; border-radius: 10px; font: inherit; font-weight: 650; background: var(--teal); color: white; text-decoration: none; cursor: pointer; }
button:hover, .button:hover { filter: brightness(.93); }
article, form, details, .panel, .empty { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.15rem; }
article, form, details, .panel, .empty { margin-block: .65rem; min-width: 0; }
article > :last-child, form > :last-child, .panel > :last-child { margin-bottom: 0; }
article h3 a, article h2 a, .decision-row a { text-decoration: none; }
article h3 a:hover, article h2 a:hover, .decision-row a:hover { text-decoration: underline; }
.cards, .stats, .test-grid, .action-grid { display: grid; gap: .85rem; }
.cards, .action-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.test-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards > *, .stats > *, .test-grid > *, .action-grid > * { margin: 0; }
.stat { border-top: 3px solid #76aab0; }
.stat strong { display: block; font-size: clamp(1.35rem, 3vw, 2.05rem); line-height: 1.2; letter-spacing: -.04em; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: .65rem; }
.section-title h2 { margin: 0; }
.pill { display: inline-block; padding: .24rem .58rem; border-radius: 999px; font-size: .78rem; font-weight: 700; background: #eaf2f4; color: #285762; white-space: nowrap; }
.pill-commit { background: #fff0d4; color: #704100; }
.pill-learn { background: #e4f3ed; color: #245e4c; }
.pill-overdue { background: #fcebe7; color: #873022; }
.queue-card { border-left: 4px solid #cb6f56; }
.queue-card small { display: block; margin-bottom: .35rem; }
.filter-bar { display: flex; align-items: end; gap: .75rem; }
.filter-bar label { flex: 1; margin: 0; }
label { display: block; margin-bottom: .7rem; font-weight: 600; }
input, select, textarea { display: block; width: 100%; min-height: 42px; border: 1px solid #b9cccf; border-radius: 9px; padding: .55rem .65rem; background: #fcfefe; color: var(--ink); font: inherit; }
input[type=checkbox] { display: inline; min-height: 0; width: auto; margin: 0 .4rem 0 0; accent-color: var(--teal); }
textarea { min-height: 82px; resize: vertical; }
dl { display: grid; grid-template-columns: minmax(8rem, .65fr) minmax(0, 1.35fr); gap: .5rem 1rem; margin: .6rem 0 0; }
dt { font-weight: 700; }
dd { margin: 0; overflow-wrap: anywhere; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; margin: .45rem 0; }
summary { font-weight: 700; cursor: pointer; }
summary + * { margin-top: .7rem; }
.breadcrumb { display: inline-block; margin-bottom: .75rem; }
.stage-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; list-style: none; margin: 1.15rem 0 0; padding: 0; max-width: 35rem; }
.stage-track li { padding: .45rem .55rem; border: 1px solid #95bec3; border-radius: 8px; font-size: .78rem; font-weight: 700; }
.stage-track [aria-current=step] { background: #ffcf7d; color: #3b2b12; border-color: #ffcf7d; }
.decision-row { display: flex; justify-content: space-between; align-items: center; gap: .7rem; }
.auth-shell { min-height: 90vh; display: grid; align-items: center; }
.auth-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.2rem; }
.auth-grid .hero { margin: 0; display: grid; align-content: center; min-height: 25rem; }
.auth-card { padding: clamp(1.2rem, 3vw, 2.25rem); margin: 0; }
.auth-card img { display: block; width: min(190px, 100%); height: auto; margin-bottom: 1.2rem; }
.auth-card form { box-shadow: none; border: 0; padding: 0; margin: 1rem 0; }
.auth-card button { width: 100%; }
@media (max-width: 700px) {
  .auth-grid { grid-template-columns: 1fr; }
  .auth-grid .hero { min-height: auto; }
  .site-nav { padding: .65rem 0; }
  .brand img { width: 117px; }
  .nav-actions { justify-content: end; font-size: .85rem; }
  .nav-actions button { min-height: 36px; padding: .3rem .55rem; }
  .filter-bar { display: grid; }
}
@media (max-width: 390px) {
  .stats { grid-template-columns: 1fr; }
  dl { grid-template-columns: 1fr; gap: .15rem; }
  dd { margin-bottom: .45rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}

.access-shell { max-width: 32rem; min-height: 80vh; display: grid; align-items: center; }
.access-shell h1 { font-size: clamp(1.85rem, 5vw, 2.5rem); }
.card-tags + p { margin-top: .6rem; }
