:root {
  --ink: #14263d;
  --muted: #4b5c70;
  --line: #cbd5e1;
  --control: #76879a;
  --primary: #0b6e72;
  --paper: #fff;
  --canvas: #f5f7fa;
  --focus: #1769d2;
  font: 16px/1.5 system-ui, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-variant-numeric: tabular-nums;
}
* { box-sizing: border-box }
.readiness { min-width: 0; overflow-wrap: anywhere; }
.readiness dd { margin: .25rem 0 1rem; }
.readiness article { border-top: 1px solid var(--line); padding-block: .65rem; }
.readiness code { white-space: normal; }
body { margin: 0 }
a { color: var(--primary) }
.skip { position: absolute; inset-inline-start: -10000px }
.skip:focus { inset-inline-start: 1rem; top: .5rem; z-index: 2; background: white; padding: .6rem }
header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--ink); color: white; min-height: 68px; padding: 8px clamp(16px,4vw,48px) }
#brand { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 18px; letter-spacing: -.025em; font-weight: 650; text-decoration: none; color: white }
.mark { display: grid; place-items: center; background: var(--primary); color: white; width: 36px; height: 36px; border-radius: 8px; font-size: 14px }
.header-actions { display: flex; align-items: center; gap: 16px }
.header-actions label { color: white }
.header-actions select { width: auto; margin: 0 0 0 4px; max-width: 195px }
.header-actions button { color: white; border-color: #a8bacf; background: transparent }
.shell { display: grid; grid-template-columns: 240px minmax(0,1fr); max-width: 1680px; margin: auto; min-height: calc(100vh - 68px) }
nav { display: flex; flex-direction: column; gap: 4px; border-inline-end: 1px solid var(--line); padding: 32px 16px; background: var(--paper) }
nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--ink); border-radius: 8px; padding: 8px 16px; font-size: 15px }
nav a[aria-current=page] { background: #e4f1f1; color: #08595c; font-weight: 650; box-shadow: inset 3px 0 var(--primary) }
main { min-width: 0; padding: clamp(16px,3vw,48px); max-width: 1280px; width: 100% }
main:focus { outline: none }
.source-return-actions { display: grid; gap: 16px; justify-items: start; overflow-wrap: anywhere }
.source-return-actions button { max-width: 100%; white-space: normal; overflow-wrap: anywhere }
h1,h2,h3,p { margin-top: 0 }
h1 { font-size: 28px; line-height: 36px; font-weight: 680; letter-spacing: -.025em; margin-bottom: 8px }
h2 { font-size: 20px; font-weight: 650; line-height: 28px; margin-bottom: 12px }
h3 { font-size: 16px; margin-bottom: 8px }
.lede { color: var(--muted); max-width: 67ch; margin-bottom: 24px }
.layout { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,265px),1fr)); gap: 16px; align-items: start }
.card,form.panel,.detail { min-width: 0; padding: clamp(16px,2vw,24px); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 16px }
.card p:last-child,.card ul:last-child { margin-bottom: 0 }
.feature { padding: clamp(24px,3vw,48px); border-inline-start: 4px solid var(--primary); background: #edf6f6 }
.compact { margin: 12px 0 }
.metrics { display: grid; grid-template-columns: repeat(auto-fit,minmax(138px,1fr)); margin: 0 0 24px; gap: 12px }
.metric { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 16px; text-decoration: none }
.metric strong { display: block; font-size: 32px; color: var(--ink) }
.muted,small { color: var(--muted) }
button,input,textarea,select { font: inherit }
button,.button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--control); background: white; color: var(--ink); padding: 8px 16px; border-radius: 8px; cursor: pointer; text-decoration: none; min-height: 44px }
button:hover,.button:hover { background: #e4f1f1 }
button.primary,.button.primary { background: var(--primary); border-color: var(--primary); color: white }
button:disabled { cursor: default; opacity: .65 }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px }
.unsaved-dialog { width: min(30rem, 92vw); padding: 1.5rem; max-height: 90dvh; overflow: auto; border: 1px solid var(--control); border-radius: 12px; color: var(--ink) }
.unsaved-dialog::backdrop { background: rgb(18 34 31 / 52%) }
.unsaved-dialog button { margin: 4px }
@media (max-width: 540px) {
  .unsaved-dialog { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; padding: max(1.25rem, env(safe-area-inset-top)) 1rem max(1.25rem, env(safe-area-inset-bottom)) }
}
label { display: block; font: 600 14px/20px system-ui,sans-serif }
input,textarea,select { background: white; color: var(--ink); margin: 4px 0 16px; width: 100%; border: 1px solid var(--control); border-radius: 8px; padding: 8px 12px; min-height: 44px }
textarea { min-height: 88px; resize: vertical }
input[type=checkbox] { min-height: 0; width: auto }
button+button,.button+.button { margin-inline-start: 8px }
.narrow { max-width: 34rem }
.row { display: flex; gap: 16px; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 12px 0; min-height: 44px }
.row:last-child { border: 0 }
.row>div { min-width: 0; overflow-wrap: anywhere }
pre,code { overflow-wrap: anywhere; white-space: pre-wrap }
.person { font-weight: 600 }
.status { font-size: 12px; line-height: 18px; color: var(--muted) }
.detail { border-inline-start: 4px solid var(--primary) }
#alerts:not(:empty) { background: #fff3f2; border: 1px solid #b42318; border-radius: 8px; color: #8b1b13; padding: 12px 16px; margin-bottom: 16px }
.notice:not(:empty) { color: #146c43; background: #eef8f1; padding: 12px; border-radius: 8px }
[hidden] { display: none!important }
fieldset { min-width: 0; border: 1px solid var(--line); border-radius: 8px; margin: 16px 0; padding: 16px }
blockquote { border-inline-start: 3px solid var(--control); margin: 16px 0; padding-inline-start: 16px; white-space: pre-wrap }
ul { padding-inline-start: 20px }
table { width: 100%; border-collapse: collapse }
td,th { padding: 8px; text-align: start; border-bottom: 1px solid var(--line); height: 44px }
summary { padding: 10px 0; min-height: 44px; cursor: pointer }
@media(max-width:1023px) {
  .shell { display: block }
  nav { flex-direction: row; overflow-x: auto; white-space: nowrap; border-inline-end: 0; border-bottom: 1px solid var(--line); padding: 4px 12px }
  nav a { padding: 8px 12px }
}
@media(max-width:639px) {
  header { align-items: flex-start; flex-wrap: wrap }
  .header-actions { flex-wrap: wrap }
  main { padding: 16px }
  .row { flex-wrap: wrap }
  .layout { grid-template-columns: 1fr }
}
