:root {
  color-scheme: light;
  --ink: #182536;
  --muted: #526273;
  --line: #d6dde6;
  --blue: #284c87;
  background: #eef1f5;
  color: var(--ink);
  font: 16px/1.5 "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid #5a76ad; outline-offset: 3px; }
.frame { width: min(1240px, calc(100% - 56px)); margin-inline: auto; }
.skip, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { z-index: 2; width: auto; height: auto; clip-path: none; padding: 10px; background: #fff; }
.top { border-bottom: 1px solid #394b64; background: #172538; color: #eff4ff; }
.top-inner, .sheet-head, .foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.top-inner { min-height: 63px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; }
.brand span { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #9fb6db; border-radius: 7px; }
.top nav { display: flex; flex-wrap: wrap; gap: 14px; font-size: .9rem; }
.sandbox { color: #e9d2ac; font-size: .82rem; }
.intro { display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 25px; padding-block: 38px 23px; }
.intro .eyebrow { margin-bottom: 8px; }
.eyebrow { color: var(--blue); font-size: .72rem; font-weight: 800; letter-spacing: .12em; }
h1 { font-size: clamp(3rem, 6vw, 5.75rem); line-height: .96; letter-spacing: -.075em; }
h1 span { color: #5879b0; }
.intro-note { border-left: 2px solid #879ebe; padding: 5px 0 5px 14px; max-width: 43ch; }
.intro-note p { font-size: 1.12rem; }
.intro-note strong { display: block; margin-top: 6px; color: var(--muted); font-size: .85rem; }
.totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; background: #51627b; border: 1px solid #51627b; border-radius: 11px; }
.totals div { padding: 12px 16px; background: #203650; color: #eef5ff; }
.totals span { display: block; color: #c8d7eb; font-size: .82rem; }
.totals strong { display: block; margin-top: 2px; font-size: clamp(1.08rem, 3vw, 2rem); font-variant-numeric: tabular-nums; }
.desk { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(285px, 1fr); gap: 12px; margin-block: 12px; align-items: start; }
.sheet { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.72rem); line-height: 1.13; letter-spacing: -.04em; margin-top: 3px; }
.button { padding: 7px 11px; min-height: 38px; border-radius: 7px; border: 1px solid var(--line); cursor: pointer; font-size: .86rem; font-weight: 750; }
.secondary { background: #f0f4fa; color: #1e3c69; }
.primary { background: #2a4d83; color: #fff; border-color: #2a4d83; }
.button:hover:not(:disabled) { filter: brightness(.94); }
.button:disabled { cursor: default; opacity: .55; }
.filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 13px; }
label { display: grid; gap: 4px; min-width: 0; font-size: .83rem; font-weight: 700; }
select, input:not([type="checkbox"]) { width: 100%; min-width: 0; min-height: 38px; padding: 5px 7px; background: #fff; color: var(--ink); border: 1px solid #b8c6d8; border-radius: 6px; font-size: .9rem; }
input[type="checkbox"] { accent-color: var(--blue); width: 18px; height: 18px; }
.helper { margin-top: 7px; color: var(--muted); font-size: .81rem; min-height: 1.3em; }
.table-wrap { margin-top: 10px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .84rem; text-align: left; }
thead { background: #e9eef5; }
td, th { padding: 8px; border-bottom: 1px solid #e4eaf1; }
td:nth-child(3), td:nth-child(4) { white-space: nowrap; }
td small { display: block; color: var(--muted); }
tr:has(input:checked) { background: #eef4fe; }
.tag { display: inline-block; min-width: 59px; border-radius: 4px; padding: 2px 5px; color: #564515; background: #faf0d7; font-size: .72rem; font-weight: 700; }
.tag.ready { color: #214679; background: #e6efff; }
.review { display: grid; gap: 9px; }
.review h2 { margin-top: -5px; }
.review .helper { margin-top: 0; }
.message { border: 1px solid var(--line); border-left: 3px solid #7d96bb; border-radius: 6px; padding: 11px; background: #f6f8fb; overflow-wrap: anywhere; }
.message p:first-child { color: var(--muted); font-size: .78rem; }
.message h3 { margin: 3px 0 6px; font-size: 1rem; }
.message p:last-child { white-space: pre-line; font-size: .88rem; }
.history #history-list { margin-top: 12px; }
.history details { border-top: 1px solid var(--line); padding: 8px 0; }
.history summary { cursor: pointer; font-weight: 700; overflow-wrap: anywhere; }
.history ul { font-size: .85rem; overflow-wrap: anywhere; }
.foot { padding-block: 18px 24px; font-size: .86rem; color: #28497c; flex-wrap: wrap; }
@media (max-width: 800px) {
  .desk, .intro { grid-template-columns: 1fr; }
  .intro { gap: 15px; }
}
@media (max-width: 500px) {
  .frame { width: calc(100% - 24px); }
  .top-inner { flex-wrap: wrap; padding-block: 8px; }
  .top nav { order: 3; width: 100%; font-size: .83rem; }
  .intro { padding-top: 24px; }
  .totals div { padding: 7px; }
  .totals span { font-size: .72rem; }
  .sheet { padding: 12px; }
  td, th { padding: 6px 4px; }
  .sheet-head { align-items: start; }
  .sheet-head .button { flex: none; }
}

.claim-steps{display:flex;flex-wrap:wrap;gap:5px;list-style:none;padding:0;margin:8px 0 13px}
.claim-steps li{background:#f5f2ef;color:#51483f;border:1px solid #d6c7bb;border-radius:6px;padding:4px 7px;font-size:.83rem}
.claim-steps li[aria-current="step"]{background:#5f402e;color:#fff;border-color:#5f402e;font-weight:800}
.claim-steps li.complete{border-color:#a58f7d;color:#5f402e;font-weight:750}

.intro-related { display: block; margin-top: 6px; color: var(--blue, #1d4ed8); font-size: .85rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
