:root {
  color-scheme: light;
  --navy: #102a43;
  --text: #152b3a;
  --muted: #4a6374;
  --border: #d7e2ea;
  --paper: #f3f6f9;
  --accent: #a52f2a;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--text); font: 1rem/1.5 system-ui, sans-serif; }
header { background: var(--navy); color: white; padding: 14px max(16px, calc((100% - 1120px)/2)); }
header, .brand, header nav, .split, .actions, .tabs { display: flex; align-items: center; gap: 12px; }
header, .split { justify-content: space-between; }
header nav, .actions, .tabs { flex-wrap: wrap; }
.brand { min-width: 13rem; }
.mark { display: grid; place-items: center; height: 38px; width: 38px; border-radius: 9px; background: #254964; font-weight: 750; }
.brand small { display: block; font-size: .82rem; color: #d0e0ec; }
header a { color: white; }
main { width: min(1120px, 100%); margin: auto; padding: 29px 16px 52px; }
h1, h2, h3 { margin: 0 0 6px; color: var(--navy); line-height: 1.24; }
h1 { font-size: clamp(1.7rem, 3.8vw, 2.45rem); letter-spacing: -.025em; }
h2 { font-size: 1.22rem; }
h3 { font-size: 1rem; }
p { margin: 6px 0 12px; }
.eyebrow { color: var(--accent); margin: 0 0 5px; font-size: .8rem; font-weight: 760; }
.subtitle, .meta { color: var(--muted); }
.subtitle { margin-bottom: 20px; }
.meta { margin: 4px 0 8px; font-size: .9rem; }
.card { background: white; border: 1px solid var(--border); border-radius: 13px; padding: 17px; margin: 10px 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 14px; }
.grid .card { margin: 0; }
progress { accent-color: #296287; width: 100%; }
.login { max-width: 440px; }
form { margin: 0; }
label { display: block; font-size: .9rem; font-weight: 650; color: var(--navy); }
label input, label select { display: block; margin: 5px 0 12px; width: 100%; }
input, select, button { font: inherit; }
input, select { background: white; color: var(--text); border: 1px solid #849cab; border-radius: 7px; padding: 8px 10px; min-height: 43px; }
button, .button, .tab { cursor: pointer; display: inline-block; line-height: 1.35; padding: 9px 13px; border-radius: 8px; text-decoration: none; font-size: .9rem; font-weight: 670; }
button, .button { border: 1px solid var(--navy); background: var(--navy); color: white; }
.secondary, .tab { background: white; color: var(--navy); border: 1px solid #9db1bf; }
.quiet { color: white; border: 1px solid #8da7b9; background: transparent; }
.tab.active { background: var(--navy); color: white; border-color: var(--navy); }
.tabs { margin: 16px 0 20px; }
.competency { scroll-margin-block: 12px; }
.competency .split { align-items: flex-start; }
.competency:target { outline: 2px solid #296287; }
.badge { white-space: normal; border-radius: 20px; font-size: .85rem; padding: 5px 10px; background: #edf2f6; color: #354e60; }
.badge.confirmed { background: #e6f4ec; color: #126045; }
.badge.training, .badge.submitted { background: #eaf3fa; color: #154e78; }
.badge.retry { background: #fff3d4; color: #6a4907; }
.note, .alert, .notice { padding: 10px 12px; border-radius: 8px; background: #fff3d4; color: #62460c; }
.notice { color: #126045; background: #e6f4ec; }
.actions { align-items: flex-end; gap: 8px; }
.action-form { display: flex; align-items: flex-end; gap: 6px; flex-wrap: wrap; }
.action-form label input { margin-bottom: 0; min-height: 38px; }
.timeline { padding-left: 1.35rem; }
.timeline li { margin-bottom: 10px; }
summary { color: var(--navy); font-weight: 680; cursor: pointer; }
:focus-visible { outline: 3px solid #397fbb; outline-offset: 3px; }
@media (max-width: 600px) {
  header { align-items: flex-start; flex-wrap: wrap; }
  .split { align-items: flex-start; flex-direction: column; }
}
