/* Data Refresh app: Design B (one-screen explorer) and the Vista sign-in page. */
@font-face { font-family: "Geist"; src: url("../assets/fonts/Geist-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../assets/fonts/Geist-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../assets/fonts/Geist-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../assets/fonts/Geist-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --navy: #002762; --ink: #0A1F3D; --muted: #4C5F78; --pale: #C9DCF0; --band: #0F3A78; --track: #1F4C8C;
  --line: #D8E3EF; --soft: #EDF2F8; --wash: #F3F7FC; --sky: #EAF2FA; --border: #9DB2CC; --body2: #33475F;
  --red: #8F1B13; --red-wash: #FDECEA; --red-soft: #F4B4AE; --grey-ink: #5C6E86; --off: #33527C; --accent: #4286BE;
}

* { box-sizing: border-box; }
body { margin: 0; background: #FFFFFF; color: var(--ink); font-family: Geist, system-ui, sans-serif; font-size: 15px; line-height: 1.5; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }

/* header */
.top { background: var(--navy); color: #FFFFFF; }
.top-bar { max-width: 1280px; margin: 0 auto; padding: 16px clamp(16px, 4vw, 40px) 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 28px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand-logo { height: 30px; width: auto; display: block; }
.brand-sep { width: 1px; height: 24px; background: rgba(255, 255, 255, 0.35); }
.top-right { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-left: auto; }
.tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 44px; }
.tab { min-height: 44px; padding: 0 12px; display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 10px; font-weight: 600; cursor: pointer; color: #FFFFFF; background: transparent; }
.tab:hover { background: rgba(255, 255, 255, 0.1); }
.tab[aria-pressed="true"] { background: var(--track); }
.sep { width: 1px; height: 20px; background: rgba(255, 255, 255, 0.4); flex: 0 0 auto; }
.who { color: var(--pale); font-size: 14px; overflow-wrap: anywhere; }
.signout { min-height: 44px; display: flex; align-items: center; padding: 0 6px; border: 0; background: transparent; color: #FFFFFF; font-weight: 600; cursor: pointer; }
.signout:hover { text-decoration: underline; }
.hero { max-width: 1280px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 40px) 32px; display: flex; flex-direction: column; gap: 22px; }
.headline { margin: 0; font-size: 40px; line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; }
.subline { margin: 8px 0 0; font-size: 17px; color: var(--pale); }

/* route band */
.route { display: flex; flex-wrap: wrap; align-items: stretch; gap: 16px 24px; }
.endpoint { flex: 0 0 auto; padding: 12px 20px; border-radius: 14px; background: var(--band); display: flex; flex-direction: column; justify-content: center; }
.endpoint .k, .to-pick .k { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--pale); }
.endpoint .v { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; }
.endpoint .n { font-size: 13px; color: var(--pale); }
.progress { flex: 1 1 280px; min-width: 200px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.progress .label { font-weight: 600; font-size: 15px; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.steps li { display: flex; flex-direction: column; gap: 6px; }
.track { height: 8px; border-radius: 999px; background: var(--track); overflow: hidden; }
.fill { width: 0; height: 100%; border-radius: 999px; background: #FFFFFF; transition: width 0.3s ease; }
.fill.trouble { background: var(--red-soft); }
.steps .name { font-size: 13px; font-weight: 500; color: var(--pale); }
.steps li[aria-current="step"] .name { font-weight: 700; color: #FFFFFF; }
.to-pick { flex: 0 0 auto; padding: 12px 14px; border-radius: 14px; background: var(--band); display: flex; flex-direction: column; gap: 6px; }
.to-pick .k { padding-left: 6px; }
.dest-group { display: flex; flex-wrap: wrap; gap: 6px; }
.dest { min-height: 44px; min-width: 92px; padding: 0 16px; border-radius: 10px; font-weight: 700; border: 1px solid #5B84BD; background: transparent; color: #FFFFFF; cursor: pointer; }
.dest[aria-pressed="true"] { border-color: #FFFFFF; background: #FFFFFF; color: var(--navy); }

/* work area */
.work { max-width: 1280px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 40px) 64px; display: flex; flex-wrap: wrap; gap: 36px; align-items: flex-start; }
.work-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-16 { display: flex; flex-direction: column; gap: 16px; }
.stack-20 { display: flex; flex-direction: column; gap: 20px; }
.stack-28 { display: flex; flex-direction: column; gap: 28px; }
.busy-note { padding: 16px 18px; border-radius: 12px; background: var(--sky); color: var(--navy); }
.section { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.section.mb { margin-bottom: 12px; }
.muted { margin: 0; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; }
.text { min-height: 48px; width: 100%; padding: 0 14px; color: var(--ink); background: #FFFFFF; border: 1px solid var(--border); border-radius: 10px; }
.recents { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.recents .lead { font-size: 14px; color: var(--muted); }
.chip { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: #FFFFFF; font-size: 14px; font-weight: 600; color: var(--navy); cursor: pointer; }

/* tick-box explorer */
.tree { max-height: 500px; overflow-y: auto; border: 1px solid var(--line); border-radius: 14px; }
.tree-row { display: flex; align-items: center; min-height: 50px; padding-right: 16px; border-bottom: 1px solid var(--soft); background: #FFFFFF; }
.tree-row.picked { background: var(--wash); }
.lvl-0 { padding-left: 4px; } .lvl-1 { padding-left: 28px; } .lvl-2 { padding-left: 52px; }
.tree-note { padding: 10px 16px; border-bottom: 1px solid var(--soft); font-size: 13px; color: var(--muted); }
.tree-note.lvl-1 { padding-left: 76px; } .tree-note.lvl-2 { padding-left: 100px; }
.tree-note.bad { color: var(--red); }
.expander { width: 44px; height: 44px; flex-shrink: 0; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.expander svg { transition: transform 0.15s ease; }
.expander[aria-expanded="true"] svg { transform: rotate(90deg); }
.spacer { width: 44px; flex-shrink: 0; }
.pick { flex-grow: 1; min-width: 0; min-height: 44px; padding: 3px 0; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.pick.locked { cursor: default; }
.pick input, .confirm input { width: 20px; height: 20px; margin: 0; flex-shrink: 0; accent-color: var(--navy); }
.pick .txt { min-width: 0; display: flex; flex-direction: column; }
.pick .nm { font-weight: 400; color: var(--ink); overflow-wrap: break-word; }
.pick .nm.strong { font-weight: 600; }
.pick .nm.skipped { color: var(--grey-ink); }
.pick .meta { font-size: 13px; line-height: 1.35; color: var(--muted); }
.pick .meta.inside { color: var(--navy); font-weight: 600; }
.tree-empty { margin: 0; padding: 20px; color: var(--muted); }

/* check, results */
.pending { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--soft); color: var(--muted); }
.ring { width: 14px; height: 14px; margin: 0 4px; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--border); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { border-color: var(--navy); } }
@media (prefers-reduced-motion: reduce) { .ring { animation: none; } .fill, .expander svg { transition: none; } }
.stats { display: flex; flex-wrap: wrap; gap: 24px 56px; }
.stats.mb { margin-bottom: 8px; }
.stat .num { font-size: 56px; line-height: 1; font-weight: 700; letter-spacing: -0.03em; color: var(--navy); }
.stat .num.red { color: var(--red); }
.stat .lbl { margin-top: 6px; color: var(--muted); font-weight: 500; }
.checked-item { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--soft); }
.checked-item svg { flex-shrink: 0; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.plan-card { padding: 16px; border-radius: 12px; background: var(--wash); display: flex; flex-direction: column; gap: 4px; }
.plan-card .n { font-weight: 700; color: var(--navy); }
.alert { padding: 16px 18px; border-radius: 12px; background: var(--red-wash); color: var(--red); font-weight: 600; }
.alert .detail { display: block; margin-top: 6px; font-weight: 400; overflow-wrap: anywhere; }
.info { padding: 16px 18px; border-radius: 12px; background: var(--sky); color: var(--navy); }

/* tables */
.tbl-wrap { overflow-x: auto; }
.tbl-wrap.rel { position: relative; }
.grid { width: 100%; border-collapse: collapse; text-align: left; }
.grid.w480 { min-width: 480px; } .grid.w600 { min-width: 600px; } .grid.w960 { min-width: 960px; }
.grid th { padding: 10px 12px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 13px; color: var(--muted); }
.grid th:first-child { padding-left: 0; }
.grid th:last-child { padding-right: 0; }
.grid td { padding: 12px; border-bottom: 1px solid var(--soft); }
.grid.roomy td { padding-top: 14px; padding-bottom: 14px; }
.grid td:first-child { padding-left: 0; }
.grid td:last-child { padding-right: 0; }
.grid td.name { font-weight: 600; overflow-wrap: anywhere; }
.grid td.soft { color: var(--muted); }
.grid .num-col { text-align: right; font-variant-numeric: tabular-nums; }
.grid td.nowrap { white-space: nowrap; }
.grid td.act-cell { padding-top: 6px; padding-bottom: 6px; }
.cell-main { display: block; font-weight: 600; overflow-wrap: anywhere; }
.cell-sub { display: block; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.b-active { background: var(--navy); color: #FFFFFF; }
.b-done { background: #E3F4E8; color: #146C2E; }
.b-ok { background: var(--sky); color: var(--navy); }
.b-wait { background: var(--wash); color: var(--muted); }
.b-bad { background: var(--red-wash); color: var(--red); }
.row-actions { display: flex; justify-content: flex-end; gap: 8px; }
.row-btn { min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border); background: #FFFFFF; font-weight: 600; color: var(--navy); cursor: pointer; white-space: nowrap; }
.row-btn:disabled { background: var(--soft); color: var(--muted); cursor: default; }
.row-btn.icon-only { width: 44px; padding: 0; justify-content: center; }
.grid.hist th, .grid.hist td { white-space: nowrap; padding-left: 9px; padding-right: 9px; }
.grid.hist th:first-child, .grid.hist td:first-child { padding-left: 0; }
.grid.hist th:last-child, .grid.hist td:last-child { padding-right: 0; }
.grid.hist .hist-data .cell-main, .grid.hist .hist-data .cell-sub { display: block; max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grid.hist .hist-who { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }

/* "Your refresh" panel */
.side { flex: 1 1 340px; min-width: 0; padding: 26px; border-radius: 20px; background: var(--wash); display: flex; flex-direction: column; gap: 18px; }
.side-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.side-head h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.side-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.link-btn { min-height: 44px; padding: 0 4px; border: 0; background: transparent; font-size: 14px; font-weight: 600; color: var(--navy); cursor: pointer; }
.empty-list { margin: 0; padding: 18px; border-radius: 12px; border: 1px dashed var(--border); color: var(--muted); }
.sel-list { display: flex; flex-direction: column; gap: 8px; }
.sel-item { min-height: 44px; padding: 8px 8px 8px 14px; border-radius: 12px; background: #FFFFFF; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sel-item > span { min-width: 0; }
.icon-btn { width: 44px; height: 44px; flex-shrink: 0; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.actions { display: flex; flex-direction: column; gap: 10px; }
.actions.g12 { gap: 12px; }
.btn-primary { min-height: 52px; border: 0; border-radius: 12px; font-weight: 700; font-size: 16px; background: var(--navy); color: #FFFFFF; cursor: pointer; }
.btn-primary:disabled { background: var(--line); color: var(--off); cursor: default; }
.btn-secondary { min-height: 48px; border: 1px solid var(--border); border-radius: 12px; font-weight: 600; background: #FFFFFF; color: var(--navy); cursor: pointer; }
.side-note { margin: 0; text-align: center; color: var(--muted); font-size: 14px; }
.panel-note { margin: 0; padding: 14px; border-radius: 12px; background: #FFFFFF; color: var(--muted); font-size: 14px; }
.panel-note.mt { margin-top: 6px; }
.muted.mt { margin-top: 8px; }
.small-muted { margin: 0; color: var(--muted); font-size: 14px; }
.confirm { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.confirm input { margin-top: 2px; }
.stage { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); }
.stage.now { font-weight: 700; }
.stage.next { color: var(--muted); }
.dot { width: 12px; height: 12px; flex-shrink: 0; border-radius: 50%; background: #FFFFFF; border: 2px solid var(--navy); }
.stage.done .dot { background: var(--navy); }
.stage.next .dot { border-color: var(--border); }

/* history, help, no access */
.page { max-width: 1280px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 40px) 64px; display: flex; flex-direction: column; gap: 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); background: #FFFFFF; color: var(--navy); font-size: 14px; font-weight: 600; cursor: pointer; }
.filter[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: #FFFFFF; }
.more { align-self: flex-start; }
.faqs { flex: 999 1 560px; min-width: 0; }
.faq { border-bottom: 1px solid var(--line); }
.faq button { width: 100%; min-height: 56px; padding: 12px 0; border: 0; background: transparent; font-size: 16px; font-weight: 600; color: var(--ink); text-align: left; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq .sign { font-size: 22px; line-height: 1; color: var(--navy); }
.faq p { margin: 0; padding: 0 0 16px; color: var(--body2); }
.contact { flex: 1 1 320px; min-width: 0; padding: 26px; border-radius: 20px; background: var(--navy); color: #FFFFFF; display: flex; flex-direction: column; gap: 8px; }
.contact h2 { margin: 0; font-size: 20px; font-weight: 700; }
.contact p { margin: 0; color: var(--pale); }
.contact .strong { color: #FFFFFF; font-weight: 700; overflow-wrap: anywhere; }
.contact .strong.first { margin-top: 8px; }
.narrow-page { max-width: 1280px; margin: 0 auto; padding: 36px clamp(16px, 4vw, 40px) 64px; }
.narrow { max-width: 640px; display: flex; flex-direction: column; gap: 18px; }
.lead { margin: 0; font-size: 17px; }
.btn-solid { align-self: flex-start; min-height: 52px; padding: 0 24px; display: flex; align-items: center; border: 0; border-radius: 12px; background: var(--navy); color: #FFFFFF; font-weight: 700; font-size: 16px; cursor: pointer; }
.loading-page { max-width: 1280px; margin: 0 auto; padding: 36px clamp(16px, 4vw, 40px); color: var(--muted); }

/* sign in (Vista theme) */
.si { position: relative; min-height: 100vh; overflow: hidden; background: var(--navy); color: #1F2937; font-family: Arial, Helvetica, sans-serif; }
.si-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.si-corner { position: absolute; left: 0; bottom: 0; width: 69%; height: 42%; background: #ECEEF0; clip-path: polygon(0 0, 0 100%, 100% 100%); }
.si-wrap { position: relative; min-height: 100vh; padding: 64px; display: flex; flex-direction: column; gap: 32px; }
.si-row { flex-grow: 1; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; justify-content: space-between; }
.si-intro { flex: 1 1 420px; min-width: 0; padding-top: 56px; }
.si-intro h1 { margin: 0; font-size: 64px; line-height: 1.08; font-weight: 700; color: #FFFFFF; }
.si-intro p { margin: 16px 0 0; font-size: 21px; color: #FFFFFF; max-width: 560px; }
.si-card { flex: 0 1 420px; min-width: 0; background: #FFFFFF; border-radius: 16px; padding: 36px; display: flex; flex-direction: column; gap: 20px; box-shadow: 0 18px 48px rgba(0, 39, 98, 0.35); }
.si-logo { width: 150px; height: auto; display: block; }
.si-card h2 { margin: 0; font-size: 32px; line-height: 1.2; font-weight: 700; color: #2F6FA5; }
.si-card p { margin: 8px 0 0; color: #4B5563; }
.si-go { min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 10px; background: var(--navy); color: #FFFFFF; font-weight: 700; font-size: 16px; cursor: pointer; }
.si-go:hover { background: #0B3A82; }
.si-help { padding: 14px 16px; border-radius: 10px; background: #ECEEF0; color: #374151; font-size: 14px; }
.si-help strong, .si-foot { color: var(--navy); }
.si-foot { font-weight: 700; }
.si-error { padding: 12px 14px; border-radius: 10px; background: var(--red-wash); color: var(--red); font-size: 14px; }

@media (max-width: 640px) {
  .headline { font-size: 32px; }
  .stat .num { font-size: 44px; }
  .si-wrap { padding: 24px; }
  .si-intro { padding-top: 16px; }
  .si-intro h1 { font-size: 44px; }
  .si-corner { display: none; }
  .si-foot { color: #FFFFFF; }
  .tree-note.lvl-1, .tree-note.lvl-2 { padding-left: 52px; }
}

/* sign-in form inside the Vista card */
.si-form { display: flex; flex-direction: column; gap: 14px; }
.si-field { display: flex; flex-direction: column; gap: 6px; }
.si-field label { font-weight: 600; font-size: 14px; color: #1F2937; }
.si-field input { min-height: 48px; padding: 0 14px; border: 1px solid #CBD5E1; border-radius: 10px; font: inherit; font-size: 16px; color: #111827; background: #FFFFFF; }
.si-field input:focus { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.si-code { letter-spacing: 0.3em; font-weight: 600; font-size: 20px; }
.si-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.si-go[disabled] { opacity: 0.7; cursor: default; }
.si-link { align-self: flex-start; padding: 0; border: 0; background: none; color: #2F6FA5; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: underline; }
.si-info { padding: 12px 14px; border-radius: 10px; background: #E6F1FA; color: #0B3A82; font-size: 14px; }

/* animated backdrops of the sign-in page (drawn by the browser; see js/backdrop.js) */
.si-backdrop { position: absolute; inset: 0; overflow: hidden; background: var(--navy); }
.bd-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bd-sky { position: absolute; inset: 0; background: linear-gradient(135deg, #031B46 0%, #002762 55%, #0B3A82 100%); }
.bd-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.bd-mesh line { stroke: rgba(201, 220, 240, 0.06); stroke-width: 0.15; }
.bd-line { fill: none; stroke: rgba(201, 220, 240, 0.14); stroke-width: 0.18; }
.bd-pulse { fill: none; stroke: #FFFFFF; stroke-width: 0.22; stroke-linecap: round; stroke-dasharray: 3 140; stroke-dashoffset: 143; opacity: 0.9; filter: drop-shadow(0 0 0.6px rgba(255, 255, 255, 0.9)); animation: bd-run 7s linear infinite; }
.bd-pulse-1 { animation-delay: -2.4s; animation-duration: 8.5s; stroke: #C9DCF0; }
.bd-pulse-2 { animation-delay: -4.8s; animation-duration: 6.2s; }
.bd-node { fill: #C9DCF0; opacity: 0.8; r: 0.45; animation: bd-breathe 4s ease-in-out infinite; }
.bd-node-big { r: 0.8; fill: #FFFFFF; filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.9)); }
@keyframes bd-run { to { stroke-dashoffset: 0; } }
@keyframes bd-breathe { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
.bd-blob { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(60px); opacity: 0.55; mix-blend-mode: screen; animation: bd-drift 26s ease-in-out infinite alternate; }
.bd-blob-1 { left: -20vmax; top: -25vmax; background: radial-gradient(circle, #2F6FA5 0%, rgba(47, 111, 165, 0) 70%); }
.bd-blob-2 { right: -25vmax; top: -10vmax; background: radial-gradient(circle, #4286BE 0%, rgba(66, 134, 190, 0) 70%); animation-duration: 34s; animation-delay: -12s; }
.bd-blob-3 { left: 20vmax; bottom: -40vmax; background: radial-gradient(circle, #6FB1E8 0%, rgba(111, 177, 232, 0) 70%); animation-duration: 40s; animation-delay: -20s; opacity: 0.35; }
@keyframes bd-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(12vmax, 9vmax, 0) scale(1.15); } }
.bd-rows { position: absolute; inset: 0; }
.bd-row { position: absolute; bottom: -6vh; height: 10px; border-radius: 5px; background: rgba(201, 220, 240, 0.18); box-shadow: 0 0 18px rgba(201, 220, 240, 0.12); animation: bd-rise 22s linear infinite; }
.bd-row-0 { left: 6%; width: 160px; animation-delay: -3s; }
.bd-row-1 { left: 18%; width: 110px; animation-delay: -9s; animation-duration: 26s; }
.bd-row-2 { left: 31%; width: 220px; animation-delay: -15s; }
.bd-row-3 { left: 45%; width: 90px; animation-delay: -6s; animation-duration: 19s; }
.bd-row-4 { left: 57%; width: 180px; animation-delay: -18s; animation-duration: 30s; }
.bd-row-5 { left: 72%; width: 130px; animation-delay: -12s; }
.bd-row-6 { left: 86%; width: 200px; animation-delay: -21s; animation-duration: 24s; }
.bd-row:nth-child(n+8) { animation-delay: -27s; opacity: 0.6; }
@keyframes bd-rise { from { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { transform: translateY(-115vh); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bd-pulse, .bd-node, .bd-blob, .bd-row { animation: none; } }
.from-pick .n { padding-left: 6px; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--pale); }

/* live progress: the job's own notes, a loader and a completion percentage */
.spin { width: 14px; height: 14px; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--navy); animation: spin 0.9s linear infinite; }
.spin.light { display: inline-block; vertical-align: -2px; margin-right: 8px; border-color: rgba(255, 255, 255, 0.35); border-top-color: #FFFFFF; }
.btn-primary:disabled .spin.light { border-color: rgba(51, 82, 124, 0.3); border-top-color: var(--off); }
@keyframes spin { to { transform: rotate(360deg); } }
.notes { display: flex; flex-direction: column; }
.note-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--soft); }
.note-dot { width: 12px; height: 12px; margin: 0 1px; flex-shrink: 0; border-radius: 50%; background: var(--navy); }
.note-row.bad .note-dot { background: var(--red); }
.note-row.next { color: var(--muted); }
.note-row.next .note-dot { background: var(--border); }
.note-text { flex: 1 1 auto; }
.note-time { color: var(--muted); font-size: 13px; white-space: nowrap; }
.section-sm { margin: 16px 0 0; font-size: 15px; font-weight: 700; color: var(--ink); }
.pct { display: flex; align-items: center; gap: 10px; }
.pct-num { font-size: 28px; font-weight: 700; color: var(--navy); line-height: 1; }
.pct-label { color: var(--muted); font-size: 14px; }
.pct-bar { height: 8px; margin: 10px 0 14px; border-radius: 4px; background: var(--soft); overflow: hidden; }
.pct-bar span { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--navy); transition: width 0.4s; }
.stage.now .spin { margin: 0 -1px; }
/* every FROM / TO box on the route band is the same size, whether it shows a badge or buttons */
.endpoint, .to-pick { flex: 0 0 220px; box-sizing: border-box; min-height: 92px; justify-content: center; }
.dest { min-width: 0; flex: 1 1 0; padding: 0 10px; }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } .pct-bar span { transition: none; } }

/* buttons answer the hand: lift on hover, press down on click, and a clear ring for keyboard users */
.btn-primary, .btn-secondary, .btn-solid, .dest, .tab, .si-go, .row-btn, .chip, .link-btn, .signout, .si-link, .si-peek { transition: transform 0.08s ease-out, box-shadow 0.15s ease-out, background-color 0.15s ease-out, border-color 0.15s ease-out; will-change: transform; }
.btn-primary:not(:disabled):hover, .btn-solid:hover, .si-go:not(:disabled):hover { background: #0B3A82; box-shadow: 0 6px 16px rgba(0, 39, 98, 0.28); transform: translateY(-1px); }
.btn-secondary:hover, .row-btn:not(:disabled):hover, .chip:hover { border-color: var(--navy); box-shadow: 0 4px 12px rgba(0, 39, 98, 0.12); transform: translateY(-1px); }
.dest:not([aria-pressed="true"]):hover { border-color: #FFFFFF; background: rgba(255, 255, 255, 0.12); }
.btn-primary:not(:disabled):active, .btn-secondary:active, .btn-solid:active, .si-go:not(:disabled):active, .dest:active, .tab:active, .row-btn:not(:disabled):active, .chip:active, .signout:active, .si-peek:active { transform: scale(0.96); box-shadow: none; transition-duration: 0.04s; }
.link-btn:active, .si-link:active { transform: scale(0.97); }
.dest[aria-pressed="true"] { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); }
.tab[aria-pressed="true"] { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15); }
@media (prefers-reduced-motion: reduce) { .btn-primary, .btn-secondary, .btn-solid, .dest, .tab, .si-go, .row-btn, .chip, .link-btn, .signout, .si-link, .si-peek { transition: none; } .btn-primary:not(:disabled):hover, .btn-solid:hover, .si-go:not(:disabled):hover, .btn-secondary:hover, .row-btn:not(:disabled):hover, .chip:hover { transform: none; } *:active { transform: none !important; } }

/* history filters */
.hist-filters { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.hf-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 20px; }
.hf-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.hf-field.grow { flex: 1 1 320px; }
.hf-field .text { min-height: 44px; font-weight: 500; font-size: 15px; color: var(--ink); }
.hf-select { min-width: 200px; padding-right: 12px; }
.hf-date { min-width: 170px; }
.hf-clear { align-self: center; margin-left: auto; }
.link-btn.inline { min-height: 0; padding: 0; text-decoration: underline; }
.hf-count { margin: 0 0 8px; font-size: 13px; }
.row-btn { display: inline-flex; align-items: center; gap: 7px; }
.row-btn svg { flex-shrink: 0; }
.row-btn:disabled svg { opacity: 0.5; }

/* idle sign-out question */
.idle { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 20, 50, 0.55); }
.idle-card { width: 100%; max-width: 440px; padding: 28px; display: flex; flex-direction: column; gap: 12px; border-radius: 16px; background: #FFFFFF; box-shadow: 0 24px 60px rgba(0, 20, 50, 0.4); }
.idle-card h2 { margin: 0; font-size: 22px; font-weight: 700; color: var(--navy); }
.idle-card p { margin: 0; color: var(--ink); }
.idle-card .idle-note { font-size: 14px; color: var(--muted); }
.idle-left { font-variant-numeric: tabular-nums; color: var(--navy); }
.idle-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.idle-actions .btn-primary, .idle-actions .btn-secondary { flex: 1 1 150px; min-height: 48px; padding: 0 16px; }

/* help: questions, user guide, support guide */
.help-page { gap: 20px; }
.help-tabs .filter { display: inline-flex; align-items: center; gap: 8px; }
.help-body { max-width: none; margin: 0; padding: 0; }
.guide { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.guide-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.guide-head h2 { margin: 0 0 4px; font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.guide-head p { margin: 0; max-width: 640px; }
.guide-toc { display: flex; flex-wrap: wrap; gap: 8px; }
.guide-toc .chip { min-height: 38px; font-size: 13px; }
.guide-sec { padding-top: 18px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.guide-sec h3 { margin: 0 0 10px; display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; color: var(--ink); }
.guide-n { width: 28px; height: 28px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--navy); color: #FFFFFF; font-size: 14px; }
.guide-sec p { margin: 0 0 10px; }
.guide-sec ol, .guide-sec ul { margin: 0 0 10px; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.guide-sec ul { color: var(--body2); }
.guide-table td { padding: 10px 12px; border-bottom: 1px solid var(--soft); vertical-align: top; }
.guide-table td:first-child { padding-left: 0; width: 36%; font-weight: 600; }
@media print {
  .top-bar, .help-tabs, .contact, .guide-toc, .guide-head .row-btn, .idle { display: none !important; }
  .top { background: #FFFFFF; color: #000000; }
  .guide-sec { break-inside: avoid; }
}

/* stopping a run */
.btn-stop { min-height: 44px; margin-top: 6px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--red-soft); border-radius: 12px; background: #FFFFFF; color: var(--red); font-weight: 600; cursor: pointer; transition: transform 0.08s ease-out, background-color 0.15s ease-out; }
.btn-stop:not(:disabled):hover { background: var(--red-wash); }
.btn-stop:not(:disabled):active { transform: scale(0.96); }
.btn-stop:disabled { color: var(--muted); border-color: var(--line); cursor: default; }
.btn-stop.solid { margin-top: 0; flex: 1 1 150px; min-height: 48px; border-color: var(--red); background: var(--red); color: #FFFFFF; }
.btn-stop.solid:not(:disabled):hover { background: #741510; }
