:root {
  --navy: #121D34; --navy-2: #1B2A47; --sky: #0284C7; --sky-2: #0369A1; --sky-soft: #E0F2FE; --signal: #38BDF8;
  --ink: #030712; --slate: #4B5563; --muted: #6B7280; --line: #E5E7EB; --mist: #F3F4F6; --white: #FFFFFF;
  --ok: #15803D; --warn: #B45309; --bad: #B91C1C;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--mist); color: var(--ink); font: 15.5px/1.55 var(--sans); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 8px; font-weight: 600; font-size: 14.5px; border: 1px solid transparent; text-decoration: none; white-space: nowrap; }
.btn.primary { background: var(--sky); color: #fff; } .btn.primary:hover { background: var(--sky-2); }
.btn.secondary { background: var(--white); color: var(--ink); border-color: #D1D5DB; } .btn.secondary:hover { border-color: var(--slate); }
.btn.onnavy { background: var(--white); color: var(--navy); } .btn.onnavy:hover { background: var(--sky-soft); }
.btn svg { width: 16px; height: 16px; }
.link { color: var(--sky); font-weight: 600; background: none; border: 0; padding: 0; } .link:hover { text-decoration: underline; }
.hdr { background: var(--navy); color: #fff; }
.hdr .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.logo svg { width: 30px; height: 30px; }
.logo small { display: block; font-weight: 500; font-size: 12px; color: #9FB0CC; }
.spacer { flex: 1; }
.secure { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #C7D2E5; } .secure svg { width: 14px; height: 14px; }
.user { display: flex; align-items: center; gap: 10px; padding-left: 16px; border-left: 1px solid rgba(255,255,255,.15); font-size: 14px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--navy-2); display: grid; place-items: center; font-weight: 700; font-size: 13px; border: 1px solid rgba(255,255,255,.2); }
.tabs { background: var(--white); border-bottom: 1px solid var(--line); }
.tabs .wrap { display: flex; gap: 4px; overflow-x: auto; }
.tabs button { border: 0; background: transparent; padding: 15px 14px 13px; font-weight: 600; font-size: 14.5px; color: var(--slate); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-current="page"] { color: var(--navy); border-bottom-color: var(--sky); }
.tabs .count { margin-left: 6px; color: var(--bad); font-weight: 700; }
main { padding-block: 28px 64px; }
.pagehead { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.pagehead h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.pagehead p { margin: 4px 0 0; color: var(--slate); max-width: 70ch; }
.grid { display: grid; gap: 18px; }
.cols { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.card-h h2 { margin: 0; font-size: 16px; font-weight: 700; }
.card-b { padding: 18px 20px; }
.muted { color: var(--muted); } .small { font-size: 13px; color: var(--muted); }
.big { display: block; font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.summary { background: var(--navy); color: #fff; border-radius: 12px; padding: 24px 26px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.summary .label { font-size: 13px; color: #9FB0CC; font-weight: 500; }
.summary .status { display: flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin: 4px 0 6px; }
.summary .status i { width: 12px; height: 12px; border-radius: 50%; }
.summary p { margin: 0; color: #C7D2E5; max-width: 60ch; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.14); margin-top: 18px; padding-top: 16px; grid-column: 1 / -1; gap: 12px; }
.facts b { display: block; font-size: 18px; font-weight: 700; }
.facts span { font-size: 12.5px; color: #9FB0CC; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 10px 20px; background: #FAFAFA; border-bottom: 1px solid var(--line); }
td { padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; white-space: nowrap; }
.tablewrap { overflow-x: auto; }
.st { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.st i { width: 8px; height: 8px; border-radius: 50%; }
.st.bad { color: var(--bad); } .st.bad i { background: var(--bad); }
.st.warn { color: var(--warn); } .st.warn i { background: #D97706; }
.st.ok { color: var(--ok); } .st.ok i { background: #16A34A; }
.st.info { color: var(--slate); } .st.info i { background: #9CA3AF; }
.t1 { font-weight: 600; } .t2 { color: var(--slate); font-size: 14px; margin-top: 2px; }
.item { padding: 22px 22px 20px; border-bottom: 1px solid var(--line); display: grid; gap: 12px; }
.item:last-child { border-bottom: 0; }
.item-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: center; }
.item h3 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.item p { margin: 0; color: var(--slate); max-width: 72ch; }
.why { color: var(--ink) !important; }
.who { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--navy); }
.who::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--sky); }
.item ol { margin: 0; padding-left: 20px; color: var(--slate); display: grid; gap: 4px; }
details.tech { border: 1px solid var(--line); border-radius: 8px; background: #FAFAFA; }
details.tech summary { cursor: pointer; padding: 10px 14px; font-weight: 600; font-size: 14px; color: var(--slate); }
details.tech div { padding: 0 14px 12px; font-size: 13.5px; color: var(--slate); }
details.tech code { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; background: #fff; border: 1px solid var(--line); padding: 1px 5px; border-radius: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.item.done h3, .item.done p { color: var(--muted); }
.monitor div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.monitor div:last-child { border-bottom: 0; }
.quick { display: grid; gap: 10px; } .quick .btn { justify-content: flex-start; width: 100%; }
.callout { background: var(--sky-soft); border: 1px solid #BAE6FD; border-radius: 12px; padding: 16px 18px; color: var(--navy); }
.callout b { display: block; margin-bottom: 2px; }
.copy { background: var(--mist); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; color: var(--slate); }
.kitimg { aspect-ratio: 16 / 9; border-radius: 10px; background: #F2C230; padding: 26px; display: grid; align-content: center; gap: 8px; color: #0B1220; }
.kitimg b { font-size: clamp(18px, 2.4vw, 26px); line-height: 1.1; font-weight: 800; max-width: 18ch; }
.kitimg span { font-size: 13.5px; max-width: 42ch; }
.foot { margin-top: 28px; font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: 13.5px; }
.field input, .field select, .field textarea { border: 1px solid #D1D5DB; border-radius: 8px; padding: 10px 12px; font-weight: 400; font-size: 15px; background: #fff; }
.field input, .field select { height: 44px; padding-block: 0; }
.field textarea { min-height: 110px; }
.pages { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 10px; }
.page { flex: none; width: 150px; display: grid; gap: 8px; background: none; border: 0; padding: 0; text-align: left; }
.sheet { aspect-ratio: 8.5 / 11; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 6px 14px -8px rgba(0,0,0,.25); padding: 12px; display: grid; align-content: start; gap: 5px; overflow: hidden; }
.page:hover .sheet { border-color: var(--sky); }
.sheet .band { height: 22px; background: var(--navy); margin: -12px -12px 6px; border-radius: 6px 6px 0 0; }
.sheet .h { height: 8px; border-radius: 2px; background: var(--ink); width: 80%; }
.sheet .l { height: 4px; border-radius: 2px; background: #D1D5DB; }
.sheet .box { height: 34px; border-radius: 4px; background: var(--sky-soft); border: 1px solid #BAE6FD; }
.sheet .rb { height: 4px; border-radius: 2px; background: #FCA5A5; width: 60%; }
.sheet .tbl { height: 40px; border-radius: 3px; background: repeating-linear-gradient(#fff 0 7px, #E5E7EB 7px 8px); border: 1px solid #E5E7EB; }
.sheet .img { height: 44px; border-radius: 4px; background: #E5E7EB; }
.page span { font-size: 13px; font-weight: 600; color: var(--ink); }
.page em { font-style: normal; font-size: 12px; color: var(--muted); display: block; margin-top: -6px; }
dialog { border: 0; border-radius: 14px; padding: 0; width: min(560px, calc(100% - 32px)); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(18, 29, 52, .55); }
.dlg-h { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.dlg-h h2 { margin: 0; font-size: 18px; }
.dlg-b { padding: 20px 22px; display: grid; gap: 14px; }
.dlg-f { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; background: #FAFAFA; border-radius: 0 0 14px 14px; flex-wrap: wrap; }
.x { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--muted); }
.preview { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font-size: 13.5px; color: var(--slate); background: #FAFAFA; }
.signin { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.signin .brand { background: var(--navy); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.signin .brand h1 { margin: 0; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; max-width: 16ch; }
.signin .brand p { color: #C7D2E5; max-width: 42ch; margin: 14px 0 0; }
.signin .formside { background: var(--white); display: grid; place-items: center; padding: 40px 24px; }
.form { width: min(380px, 100%); display: grid; gap: 16px; }
.form h2 { margin: 0; font-size: 24px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--slate); }
@media (max-width: 900px) {
  .cols, .three { grid-template-columns: minmax(0, 1fr); }
  .signin { grid-template-columns: minmax(0, 1fr); } .signin .brand { padding: 32px 24px; }
  .summary { grid-template-columns: minmax(0, 1fr); } .facts { grid-template-columns: minmax(0, 1fr); }
  .secure, .user .name { display: none; }
  td, th { padding-left: 14px; padding-right: 14px; }
}

/* ---- added for the live portal (the CSP forbids style attributes, so every look has a class) ---- */
[hidden] { display: none !important; }
a { color: var(--sky); }
.btn[disabled] { opacity: .55; cursor: default; }
.btn.small { min-height: 34px; padding: 0 12px; font-size: 13.5px; }
.btn.danger { background: var(--white); color: var(--bad); border-color: #FCA5A5; }
.hdr .btn.primary .short { display: none; }
.foot a { color: var(--muted); }
.summary.ok .status i { background: #4ADE80; } .summary.warn .status i { background: #FBBF24; } .summary.bad .status i { background: #F87171; }
.row { display: flex; flex-wrap: wrap; gap: 28px; }
.big.bad { color: var(--bad); }
.mt { margin-top: 18px; } .mt-l { margin-top: 28px; }
.slate { color: var(--slate); margin: 0; }
.addr { font-weight: 600; color: var(--ink); word-break: break-all; }
.empty { padding: 22px 20px; color: var(--muted); margin: 0; }
.card-b .empty { padding: 0; }
.thumb { display: block; width: 100%; aspect-ratio: 8.5 / 11; object-fit: cover; object-position: top; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 6px 14px -8px rgba(0,0,0,.25); }
.page:hover .thumb { border-color: var(--sky); }
.viewer { width: min(920px, calc(100% - 24px)); }
.viewer .dlg-b { background: var(--mist); max-height: calc(100vh - 170px); overflow: auto; }
.viewer img { width: 100%; height: auto; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.kitpic { width: 100%; border-radius: 10px; border: 1px solid var(--line); display: block; }
.qa { padding: 16px 20px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.qa:last-child { border-bottom: 0; }
.qa .a { background: var(--sky-soft); border: 1px solid #BAE6FD; border-radius: 8px; padding: 10px 12px; color: var(--navy); white-space: pre-wrap; }
.pre { white-space: pre-wrap; }
.err { color: var(--bad); font-size: 14px; margin: 0; }
.ok-note { color: var(--ok); font-size: 14px; margin: 0; font-weight: 600; }
.check input { width: 18px; height: 18px; }
.urgent { border: 1px solid #FCA5A5; background: #FEF2F2; border-radius: 8px; padding: 10px 12px; color: var(--bad); font-size: 14px; }
.linkrow { display: flex; gap: 8px; } .linkrow input { flex: 1; min-width: 0; }
.share { max-width: 760px; margin: 0 auto; padding: 28px 20px 64px; display: grid; gap: 18px; }
.share .lead { font-size: 15px; color: var(--slate); margin: 0; }
.note { background: var(--white); border-left: 4px solid var(--sky); border-radius: 6px; padding: 12px 16px; color: var(--ink); white-space: pre-wrap; }
.techtext { font-size: 14px; color: var(--ink); white-space: pre-wrap; }
.techtext code { font-family: ui-monospace, Menlo, monospace; font-size: 13px; background: var(--mist); border: 1px solid var(--line); padding: 1px 5px; border-radius: 4px; }
.loading { padding: 80px 20px; text-align: center; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 14.5px; box-shadow: 0 10px 30px rgba(0,0,0,.25); z-index: 50; max-width: calc(100% - 32px); }
.toast.bad { background: var(--bad); }
.show-m { display: none; }
@media (max-width: 640px) {
  .hide-m { display: none; } span.show-m { display: inline; } div.show-m { display: block; margin-top: 6px; }
  .hdr .wrap { gap: 10px; }
  .logo span { font-size: 13.5px; }
  .hdr .btn.primary { padding: 0 12px; } .hdr .btn.primary .long { display: none; } .hdr .btn.primary .short { display: inline; }
  .user { padding-left: 10px; }
  .pagehead h1 { font-size: 22px; }
  .item { padding: 18px 16px; }
}
.hdr .small { color: #9FB0CC; font-size: 12.5px; }
.pagehead-h { margin: 0 0 6px; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
