/* LUNI — mission-console screen inside a rugged field unit */
@font-face { font-family: "Plex Mono"; font-weight: 400; font-display: swap; src: url("../assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Plex Mono"; font-weight: 600; font-display: swap; src: url("../assets/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Cond"; font-weight: 600; font-display: swap; src: url("../assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Cond"; font-weight: 700; font-display: swap; src: url("../assets/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  /* palette: --amb is the main text color, --dim its quiet version, --faint/--grid/--fill the dark tints,
     --acc the accent for step numbers, --key-* the highlighted key. Status colors (--grn, --red) stay fixed. */
  --amb: #d2e7ff; --dim: #7cb8ff; --faint: #15294f; --grid: #10203f; --grid0: #3f69b0; --fill: #0b1834; --quiet: #5f8fd6;
  --acc: #ffffff; --acc-ink: #06122a; --key-a: #4aa8ff; --key-b: #1b6cf0; --key-ink: #fff; --glow: 90, 160, 255;
  --hi: #41b6ff;      /* the vivid blue: names of things, active frames */
  --grn: #21e07a; --red: #ff3d3d; --cy: #35d6c4; --wht: #f4f4f4; --key-y: #ffd166;
  --mono: "Plex Mono", "Cascadia Mono", Consolas, "DejaVu Sans Mono", monospace;
  --cond: "Barlow Cond", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
}
/* Alternative palettes (add ?palette=ice etc. to the address to preview one). */
html[data-palette="ice"] {
  --amb: #d3e4f4; --dim: #6c8298; --faint: #141d27; --grid: #101922; --grid0: #2f4253; --fill: #0a1118; --quiet: #45586a;
  --acc: #d3e4f4; --acc-ink: #000; --key-a: #eef3f8; --key-b: #b7c3d0; --key-ink: #10151b; --glow: 150, 200, 255; --cy: #4d8dff; --key-y: #ffd166;
}
html[data-palette="mono"] {
  --amb: #efece6; --dim: #8b877f; --faint: #1c1b19; --grid: #171614; --grid0: #403d39; --fill: #0e0d0c; --quiet: #5a5751;
  --acc: #ff6b35; --acc-ink: #000; --key-a: #ff8355; --key-b: #e2501c; --key-ink: #160600; --glow: 255, 255, 255; --key-y: #ffd166;
}
html[data-palette="amber"] {
  --amb: #ffb000; --dim: #8a6614; --faint: #2a1f06; --grid: #1d1606; --grid0: #5a430c; --fill: #120d02; --quiet: #5c4410;
  --acc: #ffb000; --acc-ink: #000; --key-a: #ffd52e; --key-b: #e0a800; --key-ink: #111; --glow: 255, 176, 0; --cy: #5ac8ff; --key-y: #f5c400;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: #232427; }
body { overflow-x: hidden; }
body { font-family: var(--mono); color: var(--amb); padding: 14px; }

/* ---------- hardware shell ---------- */
.unit { position: relative; padding: 16px 22px 20px; border-radius: 22px;
  width: calc(var(--dw, 1412) * 1px); height: calc(var(--dh, 872) * 1px); transform: scale(var(--s, 1)); transform-origin: 0 0;
  display: flex; flex-direction: column;
  background: linear-gradient(160deg, #3b3d42, #1c1d20); border: 3px solid #0e0e0f;
  box-shadow: 0 24px 50px rgba(0,0,0,.45), inset 0 2px 0 rgba(255,255,255,.08); }
.bolt { position: absolute; width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #a0a0a0, #303030); box-shadow: inset 0 0 0 2px #1a1a1a; }
.bolt.a { top: 9px; left: 9px; } .bolt.b { top: 9px; right: 9px; } .bolt.c { bottom: 9px; left: 9px; } .bolt.d { bottom: 9px; right: 9px; }
.unit-top { display: flex; justify-content: space-between; align-items: center; margin: 0 14px 10px; font-family: var(--cond); font-weight: 700; font-size: 13px; letter-spacing: .3em; color: #9a9ca3; }
.led { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--grn); box-shadow: 0 0 8px var(--grn); margin-right: 10px; }
.demo { color: #ff8a3d; letter-spacing: .2em; font-size: 12px; text-align: right; }
.demo.ok { color: var(--grn); }
.unit-top .wip { color: var(--key-y); font-weight: 700; letter-spacing: .14em; }

/* ---------- screen ---------- */
.screen { flex: 1; min-height: 0; display: flex; flex-direction: column; background: #000; border: 6px solid #0a0a0a; border-radius: 10px; padding: 12px 16px 14px; box-shadow: inset 0 0 50px rgba(var(--glow), .035); font-size: 12.5px; line-height: 1.45; letter-spacing: .02em; }
.bar { display: flex; flex-wrap: wrap; gap: 4px 26px; padding-bottom: 8px; border-bottom: 1px solid var(--dim); text-transform: uppercase; }
.bar b { color: var(--wht); font-weight: 600; }
.bar .r { margin-left: auto; }
#bar-tplus { color: var(--dim); }
h3 { margin: 0 0 6px; font-size: 10.5px; font-weight: 400; color: var(--dim); letter-spacing: .12em; }
h3 .step { display: inline-block; min-width: 15px; text-align: center; margin-right: 7px; background: var(--acc); color: var(--acc-ink); font-weight: 600; letter-spacing: 0; }

.cols { flex: 1; min-height: 0; display: grid; grid-template-columns: 330px minmax(0, 1fr) 280px; grid-template-rows: minmax(0, 1fr); }
.col { padding: 12px 16px 0; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.col > * { flex: none; }
.col-site { padding-left: 0; border-right: 1px solid var(--dim); }
.col-side { padding-right: 0; border-left: 1px solid var(--dim); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--dim) #000; }

/* globe */
.globe-wrap { position: relative; flex: 0.9 1 0 !important; min-height: 130px; max-height: 340px; }
.globe { width: 100%; height: 100%; border: 1px solid var(--faint); background: #000; overflow: hidden; touch-action: none; }
.globe canvas { display: block; cursor: grab; }
.globe.no-webgl { display: grid; place-items: center; text-align: center; padding: 20px; color: var(--dim); }
.globe-tip { position: absolute; pointer-events: none; background: var(--amb); color: #000; padding: 1px 6px; font-weight: 600; white-space: nowrap; transform: translate(12px, -24px); z-index: 2; }
.globe-key { position: absolute; left: 8px; bottom: 6px; display: flex; gap: 12px; font-size: 10px; letter-spacing: .1em; pointer-events: none; }
.k-sun { color: #ffd23c; } .k-earth { color: var(--cy); } .k-hint { color: var(--dim); font-size: 10px; letter-spacing: .06em; margin-top: 5px; }
.globe-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.globe-labels span { position: absolute; transform: translate(7px, -50%); font-size: 10px; font-weight: 600; color: #000; background: var(--amb); padding: 0 3px; line-height: 13px; white-space: nowrap; }
.globe-labels span.sel { background: var(--wht); z-index: 1; }

/* site list */
.site-list { margin-top: 4px; flex: 1.5 1 0 !important; min-height: 96px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--dim) #000; }
.site-list .grp { color: var(--dim); font-size: 10px; letter-spacing: .14em; margin: 6px 0 2px; }
.site-row { display: flex; justify-content: space-between; gap: 8px; width: 100%; background: none; border: none; color: var(--amb); font: inherit; text-align: left; padding: 2px 4px; cursor: pointer; text-transform: uppercase; }
.site-row:hover { background: var(--faint); outline: 1px solid var(--dim); }
.site-row.sel { background: var(--amb); color: #000; font-weight: 600; }
.site-row span:last-child { color: var(--dim); white-space: nowrap; }
.site-row.sel span:last-child { color: #000; opacity: .65; }
.site-row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fields { display: flex; gap: 12px; margin-top: 10px; }
.fields label { flex: 1; display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 10.5px; letter-spacing: .12em; white-space: nowrap; }
.t0 { display: grid; grid-template-columns: 50px 62px 68px 1fr; gap: 5px; }
.t0 select { width: 100%; background: #000; color: var(--wht); border: 1px solid var(--amb); font: inherit; font-size: 13px; padding: 5px 4px; color-scheme: dark; border-radius: 0; cursor: pointer; }
.t0 select:focus-visible { outline: 2px solid var(--cy); outline-offset: 1px; }
input[type=number], .date { width: 100%; background: #000; color: var(--wht); border: 1px solid var(--dim); font: inherit; font-size: 13px; padding: 5px 6px; color-scheme: dark; border-radius: 0; }
input:focus-visible, button:focus-visible { outline: 2px solid var(--cy); outline-offset: 1px; }
.note { margin: 6px 0 0; min-height: 1.4em; font-size: 11px; color: var(--dim); }
.note a { color: var(--dim); }

/* big readouts (field-unit style) */
.readouts { display: grid; grid-template-columns: 1fr 1fr; font-family: var(--cond); }
.ro { padding: 0 0 6px; }
.ro + .ro { border-left: 3px solid #1c1c1c; padding-left: 24px; }
.lab { font-size: 15px; font-weight: 700; letter-spacing: .14em; color: #9a9ca3; }
.st { font-size: 40px; font-weight: 700; line-height: 1; margin: 2px 0 6px; letter-spacing: .01em; }
.st.go { color: var(--grn); } .st.nogo { color: var(--red); }
.cd { font-size: 15px; font-weight: 700; letter-spacing: .08em; color: #9a9ca3; }
.cd b { display: block; color: #fff; font-size: 48px; line-height: 1; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.mini { font-family: var(--mono); font-size: 12px; color: var(--dim); margin-top: 4px; }
.mini b { color: var(--amb); font-weight: 400; }

.verdict { border-top: 3px solid #1c1c1c; border-bottom: 1px solid var(--dim); padding: 6px 0; text-transform: uppercase; font-weight: 600; }
.verdict.mission { border-top: none; margin-top: -1px; }
.verdict.go { color: var(--grn); } .verdict.caution { color: var(--key-y); } .verdict.nogo { color: var(--red); }
.verdict span { color: var(--amb); font-weight: 400; }

svg { display: block; width: 100%; }
svg text { font-family: var(--mono); }
.horizon { flex: 1 1 0 !important; min-height: 64px; margin-bottom: 8px; border-bottom: 1px solid var(--dim); padding-bottom: 8px; box-sizing: content-box; }
.verdict.mission { margin-bottom: 8px; }
.timeline { height: 112px; margin-bottom: 8px; cursor: ew-resize; touch-action: none; }
/* Headings in three voices: the name of the thing (bright), what it is (dim), and what you can do with it (white, bold, with a pointer) */
.h-t { color: var(--amb); font-weight: 600; }
.h-do { color: var(--wht); font-weight: 700; }
.h-do::before { content: "▸ "; }
#clock-head { color: var(--amb); font-weight: 600; }
.more summary .h-do { letter-spacing: .06em; }
.timeline, .timeline text { user-select: none; -webkit-user-select: none; }
#tl-handle { cursor: grab; } .timeline:active #tl-handle { cursor: grabbing; }
#tl-handle.nudge #tl-handle-box { animation: tl-nudge 1.4s ease-in-out infinite; }
@keyframes tl-nudge { 50% { fill: #fff; stroke: var(--amb); stroke-width: 4; } }
@media (prefers-reduced-motion: reduce) { #tl-handle.nudge #tl-handle-box { animation: none; } }

.calendar { height: 74px; cursor: pointer; }

/* mission needs */
.needs { display: grid; gap: 3px; }
.need { display: flex; align-items: center; gap: 6px; color: var(--dim); font-size: 10.5px; letter-spacing: .08em; white-space: nowrap; }
.need > span:first-child { flex: 1; }
.seg { display: flex; }
.seg button { background: #000; color: var(--amb); border: 1px solid var(--dim); margin-left: -1px; font: inherit; font-size: 11.5px; padding: 2px 6px; min-width: 27px; cursor: pointer; border-radius: 0; }
.seg button:hover { background: var(--faint); }
.seg button.on { background: var(--amb); color: #000; font-weight: 600; }
.windows { display: grid; gap: 2px; }
.windows button { display: flex; justify-content: space-between; gap: 8px; background: none; border: none; color: var(--amb); font: inherit; font-size: 11.5px; padding: 2px 4px; cursor: pointer; text-align: left; white-space: nowrap; }
.windows button:hover { background: var(--faint); }
.windows button.cur { color: var(--grn); }
.windows button span:last-child { color: var(--dim); }
.windows button b { font-weight: 400; color: var(--dim); }
.windows .empty { color: var(--red); }
.cmp .tag-go, .cmp .tag-nogo { font-size: 10px; font-weight: 600; padding: 0 4px; margin-right: 6px; color: #000; }
.cmp .tag-go { background: var(--grn); } .cmp .tag-nogo { background: var(--red); }

/* area scan */
.col-main { position: relative; overflow: hidden auto; scrollbar-width: thin; scrollbar-color: var(--dim) #000; }      /* nothing in the middle column may spill over the keys; it scrolls as a last resort */
/* narrow design widths: tighten the middle column so it still fits */
.tight .hero { padding: 6px 12px; gap: 6px 16px; margin-bottom: 8px; }
.tight .hero-word { font-size: 54px; }
.tight .hero-why { font-size: 13.5px; }
.tight .hero-next { font-size: 14px; padding: 3px 9px; }
.tight .timeline { height: 112px; margin-bottom: 4px; } .tight .horizon { min-height: 46px; margin-bottom: 6px; padding-bottom: 5px; }
.tight .hero-fix > span { flex: 1 1 100%; } .tight .hero-fix-list { flex-wrap: nowrap; gap: 6px; } .tight .hero-next { font-size: 12.5px; padding: 3px 7px; letter-spacing: .02em; }
.tight .st { font-size: 26px; } .tight .cd b { font-size: 32px; }
.scan { position: absolute; inset: 0; z-index: 5; background: #000; padding: 12px 16px 0; display: flex; flex-direction: column; }
.scan[hidden] { display: none; }
.scan-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; border-bottom: 1px solid var(--dim); padding-bottom: 8px; color: var(--wht); font-weight: 600; text-transform: uppercase; }
.scan-head button { background: none; border: 1px solid var(--dim); color: var(--amb); font: inherit; padding: 2px 8px; cursor: pointer; white-space: nowrap; }
.scan-head button:hover { background: var(--faint); }
.scan-head-btns { display: flex; gap: 8px; flex: none; } .scan-head button.on { border-color: var(--cy); color: var(--cy); }
.scan.big { z-index: 7; padding-bottom: 10px; } .scan.big .scan-body { grid-template-columns: minmax(0, 1fr) 300px; }
html.flow #scan-big { display: none; }
.scan-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 16px; padding-top: 12px; }
.scan-map { min-width: 0; min-height: 0; display: grid; place-items: center; }
.scan-map canvas { border: 1px solid var(--dim); cursor: crosshair; image-rendering: pixelated; }
.scan-side { overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--dim) #000; display: flex; flex-direction: column; }
.scan-side > * { flex: none; }
.scan-side h3 { margin: 10px 0 4px; }
.scan-legend.flat { display: block; }
.scan-side h3:first-child { margin-top: 0; }
.scan-side .seg button { flex: 1; }
.scan-legend { margin-top: 8px; display: grid; grid-template-columns: auto 1fr auto; gap: 2px 6px; font-size: 10px; color: var(--dim); align-items: center; }
.scan-legend i { grid-column: 1 / -1; height: 9px; display: block; }
.scan-legend span:nth-child(3) { text-align: center; }
.scan-legend b { display: inline-block; width: 10px; height: 10px; vertical-align: -1px; }
.scan-legend .ends { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 8px; color: var(--amb); }
#scan-scale b { color: var(--wht); font-weight: 600; }
svg.lander { display: inline-block; width: 15px; height: 15px; vertical-align: -3px; color: var(--wht); }
.scan-cell .dist { color: var(--wht); font-size: 13px; }
#scan-progress { margin-top: 8px; color: var(--key-y); font-weight: 600; } #scan-progress.ok { color: var(--grn); }
.dimtxt { color: var(--dim); font-size: 10.5px; }
.scan-cell { font-size: 11.5px; line-height: 1.5; color: var(--amb); min-height: 3em; }
.scan-cell .ok { color: var(--grn); font-weight: 600; } .scan-cell .bad { color: var(--red); font-weight: 600; }
.scan-go { margin-top: 6px; background: var(--amb); color: #000; border: none; font: inherit; font-weight: 600; padding: 6px; cursor: pointer; }
.scan-go:disabled { background: var(--faint); color: var(--dim); cursor: default; }

/* right column */
.sum { border-collapse: collapse; width: 100%; }
.sum td { padding: 2px 0; color: var(--dim); }
.sum td:last-child { color: var(--wht); text-align: right; font-weight: 600; }
.compare { display: flex; flex-direction: column; gap: 6px; }
.compare .empty { color: var(--dim); }
.cmp { position: relative; border: 1px solid var(--faint); padding: 5px 7px; cursor: pointer; text-transform: uppercase; }
.cmp:hover { border-color: var(--dim); }
.cmp.best { border-color: var(--grn); }
.cmp .nm { color: var(--wht); font-weight: 600; padding-right: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp .dt { color: var(--dim); font-size: 11px; }
.cmp .best-tag { color: #000; background: var(--grn); font-size: 10px; font-weight: 600; padding: 0 4px; margin-right: 6px; }
.cmp .rowb { display: grid; grid-template-columns: 44px 1fr 34px; gap: 6px; align-items: center; font-size: 11px; color: var(--dim); }
.cmp .rowb i { display: block; height: 5px; background: var(--faint); }
.cmp .rowb i b { display: block; height: 100%; }
.cmp .rowb span:last-child { text-align: right; color: var(--amb); }
.cmp .x { position: absolute; top: 2px; right: 2px; background: none; border: none; color: var(--dim); font: inherit; cursor: pointer; padding: 0 5px; }
.cmp .x:hover { color: var(--red); }
.help { color: var(--dim); font-size: 11px; line-height: 1.7; }
.help b { color: var(--amb); font-weight: 400; }

/* ---------- hard keys ---------- */
.keys { flex: none; display: flex; gap: 14px; margin-top: 16px; padding: 0 4px; }
.key { flex: 1; min-width: 0; height: 70px; border-radius: 12px; border: 3px solid #0d0d0d; background: linear-gradient(180deg, #4a4c52, #2a2b2f); color: #fff;
  font-family: var(--cond); font-size: 22px; font-weight: 700; letter-spacing: .06em; white-space: nowrap; cursor: pointer;
  box-shadow: 0 6px 0 #0d0d0d, inset 0 2px 0 rgba(255,255,255,.12); transition: transform .05s, box-shadow .05s; }
.key small { display: block; font-size: 11px; letter-spacing: .22em; opacity: .65; }
.key:active, .key.down { transform: translateY(4px); box-shadow: 0 2px 0 #0d0d0d, inset 0 2px 0 rgba(255,255,255,.12); }
.key.y { background: linear-gradient(180deg, var(--key-a), var(--key-b)); color: var(--key-ink); flex: 1.2; }
.key.g { flex: 1.5; }
.key.flash { background: linear-gradient(180deg, #ff5a5a, #b02020); }
.key.on { background: linear-gradient(180deg, #2bd47c, #17a05a); color: #06210f; }
.key-gap { flex: .25; }
/* the two shortcuts, repeated in the left column where the inputs are */
.side-go { flex: none; display: block; width: 100%; margin-top: 7px; font-family: var(--cond); font-size: 14.5px; font-weight: 700; letter-spacing: .05em; color: var(--key-ink); background: linear-gradient(180deg, var(--key-a), var(--key-b));
  border: 2px solid #0d0d0d; border-radius: 8px; padding: 3px 8px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.side-go:hover { filter: brightness(1.15); } .side-go:active { transform: translateY(2px); }
.side-go.flash { background: linear-gradient(180deg, #ff5a5a, #b02020); color: #fff; }
.key[data-slip] { flex: .8; }
.key.c { flex: 1.2; background: linear-gradient(180deg, #2f8f86, #17534d); }
.tight .keys { gap: 10px; } .tight .key { font-size: 19px; letter-spacing: .04em; } .tight .key small { font-size: 10px; letter-spacing: .18em; }
.key.c.on { background: linear-gradient(180deg, #ff6b5a, #b3261c); color: #fff; }

/* ---------- left column: the site list comes first and gets the room; the Moon sits under it ---------- */
.step-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.step-head > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step-head .side-go { width: auto; margin: -2px 0; padding: 1px 9px; font-size: 13.5px; }
.site-list { margin-top: 0; flex: 3 1 0 !important; max-height: max-content; min-height: 120px; border: 1px solid var(--dim); padding: 0 3px 2px; scrollbar-width: auto; scrollbar-color: var(--amb) #0b0f16; }
.site-list .grp { font-size: 10px; margin: 4px 0 1px; }
.site-more { position: sticky; bottom: -2px; margin: 0 -3px -2px; padding: 2px 6px; background: #0a1322; color: var(--amb); border-top: 1px solid var(--amb); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-align: center; pointer-events: none; }
.site-more.off { display: none; }
.globe-wrap { margin-top: 8px; flex: 1 1 0 !important; min-height: 128px; max-height: 300px; container-type: size; }
@container (max-height: 170px) { .globe-key { display: none !important; } .globe-wrap .k-hint .long { display: none; } }
.globe-wrap .k-hint { position: absolute; left: 8px; right: 92px; top: 5px; margin: 0; font-size: 9.5px; line-height: 1.35; pointer-events: none; color: var(--amb); }
.globe-wrap .k-hint b { color: var(--wht); }
.globe { border-color: var(--dim); } .globe-wrap:hover .globe { border-color: var(--amb); }
.globe-big { position: absolute; right: 6px; top: 5px; z-index: 2; background: #000; color: var(--amb); border: 1px solid var(--dim); font: inherit; font-size: 10.5px; padding: 2px 7px; cursor: pointer; white-space: nowrap; }
.globe-big:hover { background: var(--faint); } .globe-big.on { border-color: var(--cy); color: var(--cy); }
/* BIG MOON: the picture takes over the middle of the screen */
.globe-wrap.big { position: absolute; inset: 0; z-index: 6; margin: 0; max-height: none !important; background: #000; padding: 12px 16px 8px; }
.globe-wrap.big .k-hint { left: 26px; top: 20px; font-size: 12px; } .globe-wrap.big .globe-big { right: 24px; top: 18px; font-size: 13px; padding: 3px 10px; }
.globe-wrap.big .globe-key { left: 26px; top: 44px; font-size: 12px; } .globe-wrap.big .side-go { right: 24px; bottom: 18px; font-size: 15px; padding: 4px 12px; }
html.flow .globe-big { display: none; }
.globe-verdict { display: none; }
.globe-wrap.big .globe-verdict { display: block; position: absolute; left: 26px; bottom: 18px; z-index: 2; padding: 4px 12px; background: #000; border-left: 6px solid var(--red); font-size: 13px; color: var(--wht); text-transform: uppercase; pointer-events: none; max-width: 55%; }
.globe-verdict b { font-family: var(--cond); font-size: 30px; line-height: 1; color: var(--red); margin-right: 10px; vertical-align: -4px; }
.globe-verdict.go { border-left-color: var(--grn); } .globe-verdict.go b { color: var(--grn); }
.globe-wrap .side-go { position: absolute; right: 6px; bottom: 6px; z-index: 2; width: auto; max-width: calc(100% - 12px); margin: 0; padding: 2px 9px; font-size: 13px; }
.globe-key { bottom: auto !important; top: 32px; flex-direction: column; gap: 1px !important; }
/* a short confirmation that fades: "the site moved" */
.toast { position: absolute; left: 50%; top: 41px; transform: translateX(-50%); z-index: 14; max-width: 80%; background: #04140b; color: var(--grn); border: 1px solid var(--grn); padding: 4px 14px; font-size: 14px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; text-align: center; pointer-events: none; animation: toast-fade 4.5s ease-in forwards; }
.toast[hidden] { display: none; }
@keyframes toast-fade { 0%, 75% { opacity: 1; } 100% { opacity: 0; } }
html.flow .toast { position: fixed; top: 10px; }
.col-site .need { margin-top: -1px; }
html.flow .site-list { max-height: 260px; }

/* ---------- ASK LUNI: command line, talk button, answers ---------- */
.screen { position: relative; }
.comms { position: absolute; left: 10px; right: 10px; bottom: 8px; z-index: 12; background: #000; border: 1px solid var(--cy); box-shadow: 0 -10px 30px #000, 0 0 0 4px #000; padding: 10px 12px 8px; display: flex; flex-direction: column; gap: 7px; }
.comms[hidden] { display: none; }
.comms-row { display: flex; gap: 8px; align-items: stretch; }
.comms-mic { flex: none; min-width: 108px; background: var(--cy); color: #000; border: none; font: inherit; font-weight: 700; font-size: 15px; padding: 6px 14px; cursor: pointer; white-space: nowrap; }
.comms-mic.on { background: var(--red); color: #fff; animation: comms-pulse 1s ease-in-out infinite; }
.comms-mic.off { background: var(--faint); color: var(--dim); }
@keyframes comms-pulse { 50% { opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .comms-mic.on { animation: none; } }
#comms-input { flex: 1; min-width: 0; background: #000; color: var(--wht); border: 1px solid var(--dim); font: inherit; font-size: 16px; padding: 6px 10px; text-transform: uppercase; letter-spacing: .04em; }
#comms-input:focus { outline: none; border-color: var(--cy); }
#comms-input::placeholder { color: var(--dim); font-size: 13px; }
.comms-opt { flex: none; background: #000; color: var(--amb); border: 1px solid var(--dim); font: inherit; font-size: 11.5px; padding: 3px 9px; cursor: pointer; white-space: nowrap; }
.comms-opt:hover { background: var(--faint); }
.comms-opt.on { border-color: var(--cy); color: var(--cy); }
.comms-opt[hidden] { display: none; }
.comms-you { color: var(--dim); font-size: 12px; text-transform: uppercase; min-height: 1.4em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comms-reply { color: var(--wht); font-size: 17px; line-height: 1.35; text-transform: uppercase; font-weight: 600; max-height: 7.2em; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--dim) #000; }
.comms-reply.bad { color: var(--key-y); }
.comms-tips { display: flex; flex-wrap: wrap; gap: 6px; } .comms-tips[hidden] { display: none; }
.comms-tips button { background: #000; color: var(--cy); border: 1px solid var(--cy); font: inherit; font-size: 12px; padding: 2px 9px; cursor: pointer; }
.comms-tips button:hover { background: var(--cy); color: #000; }
.comms-foot { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; justify-content: space-between; font-size: 10.5px; color: var(--dim); letter-spacing: .04em; }
.tight .comms-reply { font-size: 15.5px; }
.os-box[hidden] { display: none; } .os-box h3.gap { margin-top: 8px; margin-bottom: 5px; }
.os-row { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-bottom: 4px; }
#os-btn.on { background: var(--grn); color: #04210f; border-color: var(--grn); }
#os-status { text-transform: uppercase; }
.comms-reply .who { display: block; font-size: 11px; font-weight: 400; color: var(--cy); letter-spacing: .06em; }
.comms-ai { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; font-size: 11.5px; color: var(--dim); border-top: 1px solid var(--faint); padding-top: 7px; }
.comms-ai[hidden] { display: none; }
.comms-ai select, .comms-ai input { background: #000; color: var(--wht); border: 1px solid var(--dim); font: inherit; padding: 3px 6px; color-scheme: dark; border-radius: 0; }
.comms-ai input { flex: 1 1 220px; min-width: 0; }
.comms-ai select[hidden], #comms-ai[hidden] { display: none; }
#ai-status { color: var(--amb); text-transform: uppercase; }

.credit { margin-top: auto !important; padding-top: 14px; font-size: 9.5px; line-height: 1.5; color: var(--quiet); letter-spacing: .06em; }

/* ---------- type scale and hierarchy ----------
   Bigger text, and one clear order of importance: the verdict first, Sun/Earth second, charts third. */
.screen { font-size: 14px; line-height: 1.45; }
.bar { font-size: 13.5px; gap: 4px 30px; }
.bar .name { color: var(--wht); font-weight: 600; letter-spacing: .3em; }
#bar-tplus { color: var(--dim); }
h3 { font-size: 11.5px; letter-spacing: .1em; margin-bottom: 7px; }
h3.gap { margin-top: 16px; }
.cols { grid-template-columns: 330px minmax(0, 1fr) 316px; }
.site-list .grp { font-size: 11px; margin: 8px 0 3px; }
.site-row { padding: 3px 5px; }
.fields label { font-size: 11.5px; }
input[type=number] { font-size: 14px; }
.note { font-size: 11.5px; line-height: 1.4; }
.t0 select { font-size: 14px; }
.k-hint { font-size: 11px; }

/* the verdict */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 8px 16px; margin-bottom: 12px; border-left: 8px solid var(--dim); background: var(--faint); }
.hero.go { border-color: var(--grn); background: rgba(33, 224, 122, .09); }
.hero.nogo { border-color: var(--red); background: rgba(255, 61, 61, .1); }
.hero-word { font-family: var(--cond); font-weight: 700; font-size: 68px; line-height: .95; letter-spacing: .01em; white-space: nowrap; }
.hero.go .hero-word { color: var(--grn); } .hero.nogo .hero-word { color: var(--red); }
.hero-text { min-width: 0; flex: 1 1 240px; }
.hero-title { font-size: 12px; letter-spacing: .06em; color: var(--amb); margin-bottom: 4px; }
.hero-why { font-size: 15px; font-weight: 600; color: var(--wht); line-height: 1.4; }
.hero-why .warn { display: inline-block; margin-top: 4px; padding: 1px 8px; background: var(--key-y); color: #000; font-weight: 600; }
.mini.warn { color: var(--key-y); font-weight: 600; }
/* ways out of a NO-GO: a full-width row of key-like buttons, because testers press keys and skip small text */
.hero-fix { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; border-top: 1px solid rgba(255,255,255,.18); padding-top: 6px; padding-bottom: 2px; }
.hero-fix[hidden] { display: none; }
.hero-fix > span { font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--wht); }
.hero-fix-list { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.hero-next { font-family: var(--cond); font-size: 15px; font-weight: 700; letter-spacing: .04em; color: var(--key-ink); background: linear-gradient(180deg, var(--key-a), var(--key-b)); border: 2px solid #0d0d0d; border-radius: 8px; padding: 4px 12px; cursor: pointer; white-space: nowrap; box-shadow: 0 3px 0 #0d0d0d; }
.hero-next:hover { filter: brightness(1.15); }
.hero-next:active { transform: translateY(2px); box-shadow: 0 1px 0 #0d0d0d; }
.hero-why .next { color: var(--wht); }
.hero-next:hover { background: var(--amb); }

/* Sun and Earth: supporting detail */
.readouts { gap: 0; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--dim); }
.tiles-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tiles-head h3 { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nasa-check { flex: none; font-size: 11px; letter-spacing: .04em; color: var(--dim); white-space: nowrap; }
.nasa-check a { color: var(--wht); font-weight: 600; margin: 0 4px; }
.nasa-check a:hover { color: var(--amb); }
.nasa-check span { color: var(--quiet); }
.ro { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; padding: 0 16px 0 0; min-width: 0; }
.ro-a { min-width: 0; }
.ro + .ro { padding: 0 0 0 18px; border-left-width: 2px; }
.lab { font-size: 13px; }
.st { font-size: 30px; margin: 1px 0 3px; }
.cd { font-size: 12.5px; text-align: right; }
.cd b { font-size: 38px; }
.cd i { display: block; font-style: normal; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .02em; color: var(--dim); white-space: nowrap; }
.mini { font-size: 11.5px; margin-top: 0; }
.horizon { margin-bottom: 10px; }

/* 3D surface view: covers the three columns */
.cols { position: relative; }
.surface { position: absolute; inset: 0; z-index: 8; background: #000; }
.surface[hidden] { display: none; }
.surface:fullscreen { inset: 0; width: 100vw; height: 100vh; font-family: var(--mono); color: var(--amb); font-size: 14px; }
.sv-canvas { position: absolute; inset: 0; }
.sv-top { position: absolute; left: 0; right: 0; top: 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 6px 16px; padding: 8px 10px; background: linear-gradient(180deg, rgba(0,0,0,.75), rgba(0,0,0,0)); pointer-events: none; font-size: 12px; }
.sv-top > * { pointer-events: auto; }
.sv-top b { color: var(--wht); margin-right: 12px; }
.sv-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; color: var(--dim); font-size: 11px; }
.sv-ctl .seg button { font-size: 11.5px; padding: 2px 6px; min-width: 0; background: rgba(0,0,0,.6); }
.sv-ctl .seg button.on { background: var(--amb); }
.sv-ctl > button, .mini-btn { background: rgba(0,0,0,.6); color: var(--wht); border: 1px solid var(--dim); font: inherit; font-size: 11.5px; padding: 2px 8px; cursor: pointer; white-space: nowrap; }
.sv-ctl > button:hover, .mini-btn:hover { background: var(--wht); color: #000; }
.mini-btn { flex: none; background: var(--wht); color: #000; border-color: var(--wht); font-weight: 600; }
.sv-status { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #000; border: 1px solid var(--amb); padding: 10px 18px; color: var(--wht); font-weight: 600; }
.sv-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 10px 7px; background: linear-gradient(0deg, rgba(0,0,0,.75), rgba(0,0,0,0)); font-size: 11px; line-height: 1.5; color: var(--amb); pointer-events: none; }
#sv-look { color: var(--wht); font-size: 12px; }
#sv-info { color: var(--dim); }
.sv-key { color: var(--dim); } .sv-key i { display: inline-block; width: 22px; border-top: 2px solid #35d6c4; vertical-align: middle; margin-right: 4px; }
html.flow .surface { position: fixed; }

/* right column */
.need { font-size: 11.5px; letter-spacing: .02em; }
.col-site .seg button { min-width: 27px; padding: 3px 5px; }
.seg button { font-size: 13px; padding: 3px 6px; min-width: 30px; }
.windows button { font-size: 13px; padding: 3px 4px; }
.windows .empty, .compare .empty { font-size: 12.5px; line-height: 1.45; }
.sum td { font-size: 13px; padding: 3px 0; }
.cmp { padding: 6px 8px; }
.cmp .dt { font-size: 12px; }
.cmp .rowb { font-size: 12px; grid-template-columns: 48px 1fr 38px; }
.more { margin-top: 16px; border-top: 1px solid var(--faint); padding-top: 8px; }
.more summary { cursor: pointer; color: var(--amb); font-size: 11.5px; letter-spacing: .1em; }
.more summary:hover { color: var(--wht); }
.credit { font-size: 10px; }

/* ---------- first-use test mode ---------- */
.test-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 0 auto 8px; padding: 8px 14px; background: #000; border: 1px solid var(--amb); color: var(--wht); font-size: 13.5px; line-height: 1.45; }
.test-bar[hidden], .test-overlay[hidden] { display: none; }
.test-q { flex: 1 1 420px; min-width: 0; }
.test-q b { color: var(--acc-ink); background: var(--acc); padding: 1px 6px; margin-right: 8px; white-space: nowrap; }
.test-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.test-ctl input { width: 150px; background: #000; color: var(--wht); border: 1px solid var(--amb); font: inherit; padding: 5px 6px; color-scheme: dark; }
.test-ctl span { color: var(--dim); font-size: 11px; }
.test-ctl .test-date { display: inline-flex; gap: 5px; }
.test-date select { background: #000; color: var(--wht); border: 1px solid var(--amb); font: inherit; padding: 5px 4px; color-scheme: dark; border-radius: 0; cursor: pointer; }
.test-opt { background: #000; color: var(--amb); border: 1px solid var(--dim); font: inherit; padding: 5px 10px; cursor: pointer; }
.test-opt:hover { background: var(--faint); }
.test-opt.on { background: var(--amb); color: #000; font-weight: 600; }
.test-btn { background: #000; color: var(--amb); border: 1px solid var(--amb); font: inherit; font-weight: 600; padding: 6px 12px; cursor: pointer; }
.test-btn.go { background: var(--grn); border-color: var(--grn); color: #04210f; }
.test-btn:disabled { background: #000; border-color: var(--dim); color: var(--dim); cursor: default; }
.test-overlay { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .88); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.test-panel { width: min(680px, 100%); background: #000; border: 1px solid var(--amb); padding: 22px 24px; color: var(--wht); font-size: 14px; line-height: 1.55; }
.test-panel h2 { margin: 0 0 12px; color: var(--amb); font-size: 17px; letter-spacing: .12em; }
.test-panel p { margin: 0 0 10px; } .test-panel ul { margin: 0 0 12px; padding-left: 20px; } .test-panel li { margin-bottom: 5px; }
.test-panel b { color: var(--amb); }
.test-panel label { display: block; margin: 12px 0 4px; color: var(--amb); }
.test-panel textarea { width: 100%; background: #000; color: var(--wht); border: 1px solid var(--dim); font: inherit; padding: 6px 8px; resize: vertical; }
.test-panel textarea:focus-visible, .test-ctl input:focus-visible { outline: 2px solid var(--cy); }
.test-report { font-size: 11.5px; white-space: pre; }
.test-rate { display: flex; gap: 6px; } .test-rate .test-opt { min-width: 44px; }
.test-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.test-small { color: var(--dim); font-size: 12px; }

/* ---------- sizing ----------
   Wide windows: the unit is laid out at a fixed design size (--dw x --dh) and scaled as one piece to fit the
   window (set by fitStage() in app.js), so its proportions hold and nothing can collide.
   Narrow windows (html.flow): one stacked column at natural height. */
.stage { margin: 0 auto; width: calc(var(--dw, 1412) * var(--s, 1) * 1px); height: calc(var(--dh, 872) * var(--s, 1) * 1px); }

html.flow body { padding: 6px; }
html.flow .stage { width: auto; height: auto; }
html.flow .unit { width: auto; height: auto; transform: none; padding: 12px 10px 14px; border-radius: 14px; }
html.flow .unit-top { font-size: 11px; letter-spacing: .18em; margin: 0 8px 8px; } html.flow .demo { font-size: 10px; }
html.flow .screen { padding: 10px; }
html.flow .cols { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
html.flow .col { padding: 12px 0 0; }
html.flow .col-site { border-right: none; border-bottom: 1px solid var(--dim); padding-bottom: 12px; }
html.flow .col-main { overflow: visible; }
html.flow .col-side { border-left: none; border-top: 1px solid var(--dim); margin-top: 12px; overflow: visible; }
html.flow .globe-wrap { flex: none !important; height: 270px; max-height: none; }
html.flow .site-list { flex: none !important; max-height: 154px; }
html.flow .horizon { flex: none !important; height: 230px; }
html.flow .bar .name { display: none; } html.flow .bar .r { margin-left: 0; }
html.flow .st { font-size: 24px; } html.flow .cd b { font-size: 30px; } html.flow .lab { font-size: 12px; } html.flow .cd { font-size: 11px; } html.flow .ro { padding-right: 8px; } html.flow .ro + .ro { padding-left: 10px; }
html.flow .readouts { grid-template-columns: minmax(0, 1fr); row-gap: 10px; } html.flow .ro + .ro { border-left: none; padding-left: 0; } html.flow .mini { white-space: normal; }
html.flow .tiles-head { display: block; } html.flow .nasa-check { margin-bottom: 6px; } html.flow .tiles-head h3 { white-space: normal; }
html.flow .ro { flex-direction: column; align-items: flex-start; gap: 4px; } html.flow .cd { text-align: left; } html.flow .cd i { white-space: normal; }
html.flow .hero { gap: 14px; padding: 10px 12px; } html.flow .hero-word { font-size: 50px; } html.flow .hero-why { font-size: 13.5px; }
html.flow .mini { font-size: 11px; white-space: nowrap; }
html.flow .keys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
html.flow .key { height: 60px; font-size: 18px; } html.flow .key small { font-size: 8.5px; letter-spacing: .14em; }
html.flow .key-gap { display: none; }
html.flow #talk-btn { order: 10; grid-column: span 4; }
html.flow .comms { position: fixed; left: 6px; right: 6px; bottom: 6px; max-height: 80vh; overflow-y: auto; }
html.flow .comms-row { flex-wrap: wrap; } html.flow #comms-input { flex: 1 1 100%; order: -1; } html.flow .comms-mic { flex: 1; }
html.flow .comms-reply { font-size: 15px; max-height: none; }
html.flow #play-btn { order: 5; } html.flow #next-window-btn { order: 6; grid-column: span 2; } html.flow #pin-btn { order: 7; }
html.flow #scan-btn { order: 8; grid-column: span 2; } html.flow #next-site-btn { order: 9; grid-column: span 2; }
html.flow .scan { position: fixed; inset: 0; padding: 10px; overflow-y: auto; }
html.flow .scan-body { display: block; }
html.flow .scan-map { height: min(92vw, 60vh); margin-bottom: 12px; }
html.flow .scan-side { overflow: visible; }

/* ==================== Two columns, brighter, bigger (the user: "the blues are faded, nothing jumps, too much small text") ==================== */
.cols { grid-template-columns: 350px minmax(0, 1fr); }
.col-main { padding-right: 0; }
/* the old right column: a panel that slides over the right edge when COMPARE · MORE or PIN is pressed */
.col-side { position: absolute; top: 0; right: 0; bottom: 0; width: 400px; z-index: 9; background: #000; border-left: 2px solid var(--hi); padding: 12px 0 10px 18px; box-shadow: -24px 0 50px #000; }
.col-side[hidden] { display: none; }
.side-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--dim); color: var(--wht); font-size: 15px; letter-spacing: .08em; }
.side-head button, .more-btn { background: #000; color: var(--amb); border: 1px solid var(--dim); font: inherit; font-size: 13px; padding: 2px 10px; cursor: pointer; white-space: nowrap; }
.side-head button:hover, .more-btn:hover { background: var(--faint); color: var(--wht); }
.more-btn { margin-left: 4px; border-color: var(--hi); color: var(--hi); font-weight: 600; } .more-btn.on { background: var(--hi); color: #000; }
.more > summary { display: none; }
html.flow .col-side { position: fixed; inset: 0; width: auto; z-index: 30; padding: 12px; margin: 0; overflow-y: auto; border: none; }

/* color: names of things in the vivid blue, frames a step brighter */
.h-t { color: var(--hi); font-weight: 700; }
#clock-head { color: var(--hi); font-weight: 700; }
h3 .step { background: var(--hi); color: #001326; }
.bar { border-bottom-color: var(--hi); } .bar .name { color: var(--hi); font-weight: 700; }
.col-site { border-right-color: var(--grid0); }
.site-list { border-color: var(--grid0); } .site-row.sel { background: var(--hi); }
.seg button.on { background: var(--hi); border-color: var(--hi); }
.screen { box-shadow: inset 0 0 70px rgba(var(--glow), .09); }
.readouts, .horizon { border-bottom-color: var(--grid0); }

/* size: nothing a person has to read is under 12.5 px any more */
.screen { font-size: 15px; }
h3 { font-size: 13px; letter-spacing: .08em; margin-bottom: 8px; }
.bar { font-size: 15px; }
.site-list .grp { font-size: 11.5px; } .site-row { font-size: 15px; }
.note, .k-hint { font-size: 12.5px; } .globe-wrap .k-hint { font-size: 11px; }
.need { font-size: 13px; } .seg button { font-size: 13px; padding: 3px 7px; } .col-site .seg button { min-width: 30px; padding: 3px 6px; }
.t0 select { font-size: 15px; }
.lab { font-size: 14px; } .mini { font-size: 13px; } .cd { font-size: 13.5px; } .cd i { font-size: 12.5px; }
.nasa-check { font-size: 12.5px; }
.hero-title { font-size: 13.5px; } .hero-why { font-size: 16.5px; } .hero-fix > span { font-size: 13px; }
.mini-btn { font-size: 13px; }
.windows, .cmp, .sum, .credit { font-size: 13px; } .cmp .rowb { font-size: 12.5px; } .credit { font-size: 11.5px; line-height: 1.5; }
.dimtxt { font-size: 12px; } .scan-cell { font-size: 13px; } .scan-legend { font-size: 11.5px; }
.tight .hero-why { font-size: 15px; } .tight .hero-next { font-size: 13.5px; padding: 3px 9px; }
html.flow .screen { font-size: 14px; } html.flow h3 { font-size: 12px; }

/* the answer row: GO / NO-GO on the left, Sun and Earth stacked on its right (the middle column is wide enough now) */
.ans-head { align-items: center; margin-bottom: 6px; } .ans-head h3 { margin-bottom: 0; }
.answer-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 0 18px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--grid0); }
.answer-row .hero { margin-bottom: 0; align-content: center; }
.answer-side { min-width: 0; display: flex; flex-direction: column; }
.answer-side .tiles-head { flex-wrap: wrap; gap: 0 12px; } .answer-side .tiles-head h3 { margin-bottom: 3px; }
.answer-side .readouts { flex: 1; grid-template-columns: minmax(0, 1fr); align-content: space-around; margin: 0; padding: 0; border-bottom: none; }
.answer-side .ro { padding: 4px 0; } .answer-side .ro + .ro { padding: 6px 0 0; border-left: none; border-top: 1px solid var(--grid0); }
.answer-side .st { font-size: 28px; } .answer-side .cd b { font-size: 34px; }
.tight .hero-fix-list { flex-wrap: wrap; }
html.flow .answer-row { display: block; border-bottom: none; padding-bottom: 0; } html.flow .answer-row .hero { margin-bottom: 12px; }
/* left column: every pixel of height goes to the site list */
.site-row { padding: 2px 5px; } .globe-wrap { min-height: 112px; }
.col-site .need + .need { margin-top: 3px; } .col-site .seg button { padding: 2px 6px; }

/* 3D surface view: name tags that follow the Sun and the Earth */
.sv-tag { position: absolute; transform: translate(-50%, 16px); padding: 2px 9px; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; white-space: nowrap; pointer-events: none; background: rgba(0,0,0,.72); border: 1px solid currentColor; }
.sv-tag[hidden] { display: none; }
.sv-tag-sun { color: #ffd66b; } .sv-tag-earth { color: #7cc0ff; transform: translate(-50%, 22px); } .sv-tag.off { color: var(--red); }
.scan-cell .dist.bad { color: var(--key-y); }

/* ---------- 14 Nov, evening: story strip, proof panel, share link, first-visit guide, slope need ---------- */
.ans-btns { display: flex; gap: 6px; flex: none; } .ans-btns .more-btn { margin-left: 0; }
.tight .ans-head .long { display: none; }
.story { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; padding: 3px 8px; border: 1px solid var(--hi); border-left-width: 5px; background: var(--fill); font-size: 13.5px; line-height: 1.3; color: var(--amb); }
.story[hidden] { display: none; }
.story-text { flex: 1; min-width: 0; } .story-text b { color: var(--wht); }
.story-btns { flex: none; display: flex; gap: 5px; }
.story-btns button { background: #000; color: var(--wht); border: 1px solid var(--hi); font: inherit; font-size: 13px; font-weight: 700; padding: 1px 8px; cursor: pointer; white-space: nowrap; }
.story-btns button:hover { background: var(--hi); color: #000; }
#story-x { border-color: var(--dim); color: var(--dim); padding: 1px 6px; }
html.flow .story:not([hidden]) { display: block; } html.flow .story-btns { margin-top: 6px; }
.proof-card.hot { border-color: var(--hi); box-shadow: 0 0 0 1px var(--hi); }
/* room for the story strip and the slope need: tighter rows in the left column, one-line Sun / Earth numbers */
.col-site h3.gap { margin-top: 11px; } .col-site .note { margin-top: 3px; min-height: 0; } .col-site .needs { gap: 1px; } .col-site .need + .need { margin-top: 1px; }
.answer-side .mini { font-family: var(--cond); font-weight: 600; font-size: 15px; letter-spacing: .03em; white-space: nowrap; } .answer-side .mini b { font-weight: 700; }
.answer-side .cd i { font-family: var(--cond); font-weight: 600; font-size: 14.5px; letter-spacing: .03em; }
.answer-side .ro { gap: 10px; }
.story-text { font-family: var(--cond); font-weight: 600; font-size: 15px; letter-spacing: .02em; }
.hz-key { color: #ffd23c; } .hz-key i { font-style: normal; color: var(--cy); }

.proof { z-index: 8; }
.proof-body { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--dim) #000; padding: 12px 6px 14px 0; font-size: 13.5px; line-height: 1.38; color: var(--amb); }
.proof-body section { margin-bottom: 16px; } .proof-body h3 { margin-bottom: 7px; }
.proof-body a { color: var(--hi); font-weight: 600; } .proof-body p { margin: 6px 0 0; }
.proof-body ul { margin: 0; padding-left: 18px; } .proof-body li { margin-bottom: 3px; } .proof-body li b { color: var(--wht); }
.proof-big { display: flex; align-items: center; gap: 16px; border: 1px solid var(--grn); background: #04140b; padding: 6px 14px; }
.proof-big b { font-family: var(--cond); font-size: 46px; line-height: 1; color: var(--grn); white-space: nowrap; } .proof-big span { color: var(--wht); }
.proof-card { border: 1px solid var(--grid0); margin-top: 8px; padding: 7px 10px 8px; background: var(--fill); }
.proof-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 5px; color: var(--amb); } .proof-card-head b { color: var(--wht); font-size: 15px; }
.proof-card table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.proof-card th { text-align: left; font-weight: 600; font-size: 12.5px; color: var(--dim); padding: 2px 8px 3px 0; border-bottom: 1px solid var(--grid0); }
.proof-card th:first-child, .proof-card td:first-child { width: 21%; }
.proof-card td { vertical-align: top; padding: 4px 8px 4px 0; border-bottom: 1px solid var(--grid); } .proof-card td:first-child { color: var(--dim); font-weight: 600; }
.proof-card td.luni { color: var(--grn); font-weight: 600; }
.proof-src { margin-top: 5px; font-size: 12.5px; color: var(--dim); }
html.flow .proof { position: fixed; inset: 0; padding: 10px; z-index: 31; } html.flow .proof-big { display: block; }

.versus th { text-align: right; font-weight: 600; font-size: 12.5px; color: var(--dim); padding-bottom: 2px; }
.versus td { vertical-align: top; } .versus td:nth-child(2) { color: var(--wht); text-align: right; font-weight: 600; padding-left: 8px; } .versus td:last-child { color: var(--dim); font-weight: 400; padding-left: 10px; width: 30%; }

.toast.raw { text-transform: none; pointer-events: auto; user-select: all; background: #000; color: var(--wht); border-color: var(--hi); letter-spacing: 0; word-break: break-all; }

a.nasa-check { margin-left: 8px; font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--hi); text-decoration: underline; } a.nasa-check:hover { color: var(--wht); }
.answer-row { margin-bottom: 7px; padding-bottom: 7px; } .horizon { margin-bottom: 6px; padding-bottom: 5px; }
.tight .tiles-head .long { display: none; }

/* ---------- MISSION HISTORY screen and the screen tabs ---------- */
.tabs { display: flex; gap: 6px; }
.tabs button { font: inherit; font-size: 13px; letter-spacing: .16em; padding: 3px 14px; cursor: pointer; color: #c9ccd3; background: linear-gradient(180deg, #3a3c42, #26272b); border: 1px solid #55585f; border-radius: 4px; }
.tabs button:hover { color: #fff; border-color: #8a8d95; }
.tabs button.on { color: #06101f; background: linear-gradient(180deg, var(--key-a), var(--key-b)); border-color: var(--key-a); }
html.flow .unit-top { flex-wrap: wrap; gap: 6px; } html.flow .tabs button { font-size: 11.5px; padding: 3px 9px; letter-spacing: .1em; }

.history { position: absolute; inset: 0; z-index: 10; background: #000; padding: 12px 16px 8px; display: flex; flex-direction: column; min-height: 0; }
.history[hidden] { display: none; }
.hist-top { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 18px; padding: 8px 0 6px; border-bottom: 1px solid var(--grid0); }
.hist-map { position: relative; align-self: start; border: 1px solid var(--grid0); background: #000; line-height: 0; }
.hist-map img { width: 100%; aspect-ratio: 2 / 1; display: block; filter: brightness(1.25) contrast(1.05); }
#hist-pins { position: absolute; inset: 0; }
.hist-pin { position: absolute; transform: translate(-50%, -50%); width: 22px; height: 22px; border-radius: 50%; border: 2px solid #000; background: var(--wht); color: #000; font: 700 13px var(--mono); cursor: pointer; padding: 0; line-height: 1; box-shadow: 0 0 0 1px var(--wht); }
.hist-pin:hover { background: var(--key-y); } .hist-pin.on { background: var(--hi); box-shadow: 0 0 0 2px var(--hi), 0 0 14px var(--hi); z-index: 2; }
.hist-map-note { position: absolute; left: 0; right: 0; top: 0; padding: 3px 6px; background: rgba(0,0,0,.72); color: var(--amb); font-size: 12.5px; line-height: 1.25; letter-spacing: .03em; }
.hist-detail { min-width: 0; height: 171px; font-size: 13.5px; line-height: 1.36; color: var(--amb); display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; }
.hist-text { min-width: 0; min-height: 0; overflow-y: auto; scrollbar-width: thin; display: flex; flex-direction: column; gap: 4px; } .hist-side { min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.hist-detail p { margin: 0; color: var(--wht); text-transform: none; letter-spacing: 0; }
.hist-verdict { font-family: var(--cond); font-size: 30px; font-weight: 700; line-height: 1; vertical-align: -3px; margin: 0 4px; }
.hist-name { font-family: var(--cond); font-size: 22px; letter-spacing: .04em; color: var(--amb); } .hist-name b { color: var(--wht); }
.hist-num { display: inline-block; min-width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; background: var(--hi); color: #000; font: 700 13px/22px var(--mono); text-align: center; vertical-align: middle; }
.hist-where { color: var(--dim); font-size: 13px; }
.hist-src { font-size: 12.5px; line-height: 1.25; color: var(--dim); } .hist-src a, .hist-detail a { color: var(--hi); font-weight: 600; }
.hist-luni { font-size: 13.5px; } .hist-luni .go { color: var(--grn); font-weight: 700; } .hist-luni .nogo { color: var(--red); font-weight: 700; } .hist-luni .warn { color: var(--key-y); font-weight: 600; margin-left: 8px; white-space: nowrap; }
.hist-load { align-self: stretch; margin-top: 2px; font-family: var(--cond); font-size: 17px; font-weight: 700; letter-spacing: .05em; color: var(--key-ink); background: linear-gradient(180deg, var(--key-a), var(--key-b)); border: none; border-radius: 4px; padding: 5px 16px 6px; cursor: pointer; text-align: left; box-shadow: 0 3px 0 #0a2a66; }
.hist-load { padding: 3px 12px 4px; } .hist-load small { display: block; font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: .02em; opacity: .85; }
.hist-load:hover { filter: brightness(1.15); } .hist-load:active { transform: translateY(2px); box-shadow: none; }

.hist-table { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--dim) #000; }
.hist-row { display: grid; grid-template-columns: 196px 112px 118px 132px 96px minmax(170px, 1fr) 214px 66px; gap: 0 12px; align-items: center; padding: 3px 6px; border-bottom: 1px solid var(--grid); cursor: pointer; font-size: 13px; color: var(--amb); }
.hist-row:hover { background: var(--fill); } .hist-row.on { background: var(--faint); box-shadow: inset 4px 0 0 var(--hi); }
.hist-headrow { cursor: default; font-size: 12.5px; font-weight: 600; color: var(--dim); position: sticky; top: 0; background: #000; z-index: 1; border-bottom-color: var(--grid0); align-items: end; } .hist-headrow:hover { background: #000; }
.hist-headrow i { font-style: normal; white-space: nowrap; } .hist-headrow .k-s { color: var(--grn); } .hist-headrow .k-e { color: var(--cy); } .hist-headrow .k-m { color: var(--wht); }
.c-name { display: flex; align-items: center; min-width: 0; } .c-name span { min-width: 0; } .c-name b { display: block; color: var(--wht); font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .c-name small { color: var(--dim); font-size: 12.5px; white-space: nowrap; }
.c-num b { display: block; font-family: var(--cond); font-size: 19px; letter-spacing: .03em; color: var(--wht); line-height: 1.1; } .c-num small { color: var(--dim); font-size: 12.5px; white-space: nowrap; }
.c-num.ok b { color: var(--grn); } .c-num.bad b { color: var(--red); }
.hist-bar { display: block; height: 5px; margin-top: 3px; background: var(--grid0); } .hist-bar b { display: block; height: 100%; } .hist-bar .g { background: var(--grn); } .hist-bar .r { background: var(--red); }
.hist-strip { display: block; width: 100%; height: 34px; }
.c-end { font-size: 12.5px; line-height: 1.2; color: var(--wht); }
.hist-foot { display: flex; align-items: center; gap: 10px; padding-top: 7px; border-top: 1px solid var(--grid0); } .hist-foot .dimtxt { flex: 1; font-size: 12.5px; line-height: 1.3; } .hist-sortlab { font-size: 13px; color: var(--dim); } .hist-foot .seg { flex: none; }
.tight .hist-row { grid-template-columns: 180px 100px 106px 126px 92px minmax(140px, 1fr) 200px 62px; gap: 0 9px; }
html.flow .hist-detail { grid-template-columns: minmax(0, 1fr); height: auto; }
html.flow .history:not([hidden]) { position: fixed; z-index: 32; overflow-y: auto; display: block; padding: 10px; } html.flow .hist-top { grid-template-columns: minmax(0, 1fr); }
html.flow .hist-table { overflow-x: auto; } html.flow .hist-row { min-width: 1100px; } html.flow .hist-foot { flex-wrap: wrap; }

/* ---------- MOON MAP screen: the big Moon with data layers, and the data profile card ---------- */
.moonmap { position: absolute; inset: 0; z-index: 10; background: #000; padding: 12px 16px 8px; display: flex; flex-direction: column; min-height: 0; }
.moonmap[hidden] { display: none; }
.mm-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 16px; padding-top: 10px; }
.mm-globe { position: relative; min-width: 0; min-height: 0; border: 1px solid var(--grid0); }
.mm-globe .globe-wrap.big { position: absolute; inset: 0; z-index: 1; margin: 0; padding: 0; max-height: none !important; }
.mm-globe .globe-wrap.big .globe { border: none; }
.mm-globe .globe-wrap.big .k-hint { left: 12px; top: 8px; right: 240px; font-size: 13px; } .mm-globe .globe-wrap.big .globe-key { left: 12px; top: 32px; }
.mm-globe .globe-wrap.big .globe-big { right: 10px; top: 8px; } .mm-globe .globe-wrap.big .side-go { right: 10px; bottom: 10px; }
.mm-globe .globe-wrap.big .globe-verdict { left: 12px; bottom: 10px; }
.mm-status { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); z-index: 3; background: #000; border: 1px solid var(--hi); color: var(--wht); font-weight: 700; padding: 6px 16px; letter-spacing: .06em; pointer-events: none; }
.mm-status[hidden] { display: none; }
.mm-side { min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--dim) #000; padding-right: 4px; font-size: 13px; color: var(--amb); }
.mm-side h3 { margin-bottom: 5px; } .mm-side h3.gap { margin-top: 11px; }
.mm-layers { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 5px; }
.mm-view { position: absolute; right: 10px; top: 42px; z-index: 3; display: flex; flex-direction: column; gap: 3px; align-items: stretch; } .mm-view > span { font-size: 12.5px; color: var(--amb); text-align: right; font-weight: 600; }
.mm-view > div { display: flex; flex-direction: column; gap: 3px; } .mm-view button { background: rgba(0,0,0,.8); border: 1px solid var(--dim); color: var(--wht); font: inherit; font-size: 12.5px; padding: 2px 9px; cursor: pointer; text-align: right; } .mm-view button:hover { background: var(--hi); color: #000; }
.mm-layers button { text-align: left; background: #000; border: 1px solid var(--dim); color: var(--amb); font: inherit; padding: 4px 9px 5px; cursor: pointer; line-height: 1.15; }
.mm-layers button { padding: 3px 7px 4px; } .mm-layers button b { display: block; font-family: var(--cond); font-size: 16px; letter-spacing: .05em; color: var(--wht); } .mm-layers button small { font-size: 12.5px; color: var(--dim); }
.mm-layers button:hover { background: var(--faint); } .mm-layers button.on { background: var(--hi); border-color: var(--hi); } .mm-layers button.on b, .mm-layers button.on small { color: #00101f; }
.lay-legend { margin-top: 8px; } .lay-legend i { display: block; height: 14px; border: 1px solid var(--grid0); }
.lay-legend .ends { display: flex; justify-content: space-between; gap: 10px; margin-top: 3px; font-size: 12.5px; font-weight: 600; color: var(--wht); line-height: 1.25; } .lay-legend .ends span:last-child { text-align: right; }
.lay-legend.flat { color: var(--wht); font-weight: 600; } .lay-legend.flat b { display: inline-block; width: 16px; height: 13px; vertical-align: -2px; margin-right: 4px; }
.mm-strength { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12.5px; color: var(--dim); } .mm-strength input { flex: 1; accent-color: var(--hi); }
.mm-meaning { margin-top: 6px; color: var(--wht); line-height: 1.35; } .mm-side .dimtxt { line-height: 1.35; font-size: 12.5px; }
.mm-prof-where { font-size: 12.5px; color: var(--dim); margin-bottom: 4px; line-height: 1.3; } .mm-side .seg { display: flex; flex-wrap: wrap; }
.prof { display: grid; gap: 3px; }
.prof-row { display: grid; grid-template-columns: 146px 60px minmax(0, 1fr) 40px; gap: 7px; align-items: center; font-size: 12.5px; color: var(--amb); }
.prof-row span { white-space: nowrap; color: var(--dim); font-weight: 600; }
.prof-row i { display: block; height: 9px; background: var(--grid0); } .prof-row u { display: block; height: 100%; text-decoration: none; }
.prof-row b { color: var(--wht); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .prof-row b small { color: var(--dim); font-weight: 400; font-size: 12.5px; }
.prof-row em { font-style: normal; font-weight: 700; text-align: right; } .prof-row.none b { color: var(--quiet); font-weight: 400; }
.tight .mm-body { grid-template-columns: minmax(0, 1fr) 352px; }
html.flow .moonmap:not([hidden]) { position: fixed; z-index: 32; overflow-y: auto; display: block; padding: 10px; } html.flow .mm-body { display: block; } html.flow .mm-globe { height: 62vh; margin-bottom: 10px; }
html.flow .globe-big { display: block; }

/* the scan's SHOW groups, layer legends and the small data profile card */
.scan-metric { display: grid; gap: 4px; } .scan-mgroup > span { display: block; font-size: 12.5px; color: var(--dim); margin-bottom: 2px; } .scan-mgroup .seg { display: flex; }
.scan-legend.lay { display: block; } .scan-legend.lay .lay-legend { margin-top: 0; } .scan-legend.lay .ends { font-size: 12.5px; }
.scan-src { margin-top: 5px; font-size: 12.5px; line-height: 1.3; color: var(--dim); }
.scan-cell .prof { margin: 4px 0 5px; gap: 2px; } .scan-cell .prof-row { grid-template-columns: minmax(0, 1fr) auto 38px; gap: 6px; } .scan-cell .prof-row i { display: none; }
html.flow .mm-globe { height: 56vh; } html.flow .mm-globe .globe-wrap.big { height: 100% !important; } html.flow .mm-globe .globe-wrap.big .k-hint, html.flow .mm-globe .globe-wrap.big .globe-key { display: none; }
html.flow .moonmap .scan-head, html.flow .history .scan-head { flex-wrap: wrap; } html.flow .mm-globe .globe-wrap.big .globe-verdict { max-width: 60%; font-size: 12.5px; } html.flow .mm-globe .globe-wrap.big .side-go { display: none; }
.scan-legend.lay .ends { flex-wrap: nowrap; } .scan-legend.lay .ends span { max-width: 50%; }

/* YOUR MIX: weight sliders on the Moon map */
.mm-mix { margin-top: 7px; border: 1px solid var(--hi); padding: 6px 8px 7px; } .mm-mix[hidden] { display: none; }
.mm-mix label { display: grid; grid-template-columns: 124px 1fr 38px; gap: 8px; align-items: center; font-size: 12.5px; font-weight: 600; color: var(--wht); } .mm-mix input { accent-color: var(--hi); width: 100%; } .mm-mix label b { text-align: right; color: var(--hi); }
.mm-mix-use { margin-top: 6px; width: 100%; font-family: var(--cond); font-size: 16px; font-weight: 700; letter-spacing: .05em; color: var(--key-ink); background: linear-gradient(180deg, var(--key-a), var(--key-b)); border: none; border-radius: 3px; padding: 4px 10px; cursor: pointer; } .mm-mix-use:hover { filter: brightness(1.15); }
.scan-mgroup .seg { flex-wrap: wrap; }

/* ---------- 15 Nov: Sun / Earth blocks with big icons; one lower chart at a time (MISSION PLAN / GOOD DAYS) ---------- */
.answer-side .ro { align-items: center; gap: 12px; padding: 5px 0; } .answer-side .ro + .ro { padding: 6px 0 0; }
.ro-ico { flex: none; width: 66px; text-align: center; color: var(--grn); line-height: 1; }
.ro-ico svg { display: block; width: 54px; height: 54px; margin: 0 auto; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ro-ico span { display: block; margin-top: 2px; font-family: var(--cond); font-size: 12.5px; font-weight: 700; letter-spacing: .1em; color: var(--amb); white-space: nowrap; }
.ro-ico .i-sun circle { fill: #ffd23c; stroke: #ffd23c; } .ro-ico .i-sun path { stroke: #ffd23c; } .ro-ico .i-panel path:first-child { fill: rgba(33, 224, 122, .16); }
.ro-ico .i-earth circle { fill: #2a6fd8; stroke: #9fd0ff; stroke-width: 1.6; } .ro-ico .i-earth .land { fill: #3fae6a; stroke: none; }
.ro-ico .i-off { display: none; stroke: var(--red); stroke-width: 4; }
.ro-ico.nogo { color: var(--red); } .ro-ico.nogo .i-off { display: block; }
.ro-ico.nogo .i-sun circle { fill: none; stroke: #7a6a2a; } .ro-ico.nogo .i-sun path { stroke: #7a6a2a; } .ro-ico.nogo .i-panel path:first-child { fill: none; }
.ro-ico.nogo .i-waves { display: none; } .ro-ico.nogo .i-earth circle { fill: #173a70; }
.answer-side .ro-a { flex: 1; min-width: 0; } .answer-side .st { margin: 0 0 2px; }
.nasa-line { flex: none; font-size: 12.5px; color: var(--dim); white-space: nowrap; } .nasa-line a.nasa-check { margin-left: 6px; }
.plan-head { align-items: center; } .plan-head h3 { margin-bottom: 0; } .plan-head h3[hidden] { display: none; }
.plan-tabs { flex: none; display: flex; gap: 7px; } .plan-head { margin-bottom: 4px; }
.plan-tabs button { background: #000; color: var(--amb); border: 2px solid var(--dim); font-family: var(--cond); font-size: 18px; font-weight: 700; letter-spacing: .06em; padding: 4px 18px 5px; cursor: pointer; white-space: nowrap; }
.plan-tabs button:hover { background: var(--faint); color: var(--wht); } .plan-tabs button.on { background: var(--hi); border-color: var(--hi); color: #00101f; }
.timeline[hidden], .calendar[hidden] { display: none !important; }
.col-main .calendar { height: 112px; margin-bottom: 4px; }
html.flow .plan-head { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- each numbered section has its own color (a tester asked for the sections to be told apart) ---------- */
:root { --s1: #41b6ff; --s2: #c79bff; --s3: #ffb648; --s4: #21e07a; }
h3[data-step="1"] .step { background: var(--s1); } h3[data-step="1"] .h-t { color: var(--s1); }
h3[data-step="2"] .step { background: var(--s2); } h3[data-step="2"] .h-t { color: var(--s2); }
h3[data-step="3"] .step { background: var(--s3); } h3[data-step="3"] .h-t { color: var(--s3); }
h3[data-step="4"] .step { background: var(--s4); } h3[data-step="4"] .h-t { color: var(--s4); }
.col-site .site-list { border-color: var(--s1); border-left-width: 3px; }
.col-site .t0 select { border-color: var(--s2); border-left-width: 3px; }
.col-site .needs { border-left: 3px solid var(--s3); padding-left: 7px; }
.col-site .needs .seg button.on { background: var(--s3); border-color: var(--s3); color: #1a0f00; }
.prof-head { margin-top: 5px; padding-top: 4px; border-top: 1px solid var(--grid0); font-size: 12.5px; font-weight: 700; color: var(--wht); letter-spacing: .03em; } .prof-head:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.mm-side .mm-meaning { margin-top: 0; margin-bottom: 5px; }

/* 15 Nov, second tester's notes: each step is a colored band so the sections do not run together */
h3[data-step="1"] { --sc: var(--s1); } h3[data-step="2"] { --sc: var(--s2); } h3[data-step="3"] { --sc: var(--s3); } h3[data-step="4"] { --sc: var(--s4); }
.band[data-band="1"] { --sc: var(--s1); } .band[data-band="2"] { --sc: var(--s3); } .band[data-band="3"] { --sc: var(--s2); }
h3[data-step], h3.band { padding: 4px 8px 4px 7px; border-left: 5px solid var(--sc); background: linear-gradient(90deg, color-mix(in srgb, var(--sc) 30%, #000), color-mix(in srgb, var(--sc) 7%, #000)); }
h3.band .h-t { color: var(--sc); }
.col-site .site-list { border-width: 2px 2px 2px 5px; }
.col-site .t0 select { border-width: 2px 2px 2px 5px; }
.col-site .needs { border-left-width: 5px; }
.col-site .need > span:first-child { color: color-mix(in srgb, var(--s3) 62%, #fff); }
.mm-side .mm-layers, .mm-side #mm-profile, .mm-side #mm-meaning { border-left: 3px solid var(--sc); padding-left: 4px; }
.mm-side .mm-layers { --sc: var(--s1); } .mm-side #mm-profile { --sc: var(--s3); } .mm-side #mm-meaning { --sc: var(--s2); }
/* action words: larger and bold */
h3 .h-do, .scan-head .h-do { font-size: 1.14em; font-weight: 700; }
.comms-tips button { font-size: 14.5px; font-weight: 700; padding: 3px 11px; letter-spacing: .03em; }
/* the slider: thicker, with a pointer until it is first used */
.timeline, .tight .timeline { height: 128px; } .col-main .calendar { height: 128px; }
#tl-hint, #tl-hint-bg { display: none; pointer-events: none; } #tl-handle.nudge #tl-hint-bg { display: block; }
#tl-handle.nudge #tl-hint { display: block; animation: tl-blink 1s steps(2, jump-none) infinite; }
@keyframes tl-blink { 50% { opacity: .25; } }
@keyframes tl-nudge { 50% { fill: #fff; stroke: var(--key-y, #ffd23c); stroke-width: 5; } }
@media (prefers-reduced-motion: reduce) { #tl-handle.nudge #tl-hint { animation: none; } }
/* the left side pops in and out */
.setup-tab { position: absolute; left: 339px; top: 46%; z-index: 4; width: 23px; padding: 9px 0; writing-mode: vertical-rl; font: inherit; font-family: var(--cond); font-size: 14px; font-weight: 700; letter-spacing: .08em; cursor: pointer;
  color: var(--key-ink); background: linear-gradient(90deg, var(--key-a), var(--key-b)); border: 1px solid #000; border-radius: 6px; white-space: nowrap; }
.setup-tab:hover { filter: brightness(1.15); }
.cols.setup-off { grid-template-columns: minmax(0, 1fr); } .cols.setup-off .col-site { display: none; } .cols.setup-off .col-main { padding-left: 36px; }
.cols.setup-off .setup-tab { left: 0; top: 50%; transform: translateY(-50%); width: 27px; padding: 14px 0; font-size: 15px; border-radius: 0 8px 8px 0; }
html.flow .setup-tab { display: none; } html.flow .cols.setup-off .col-site { display: flex; } html.flow .cols.setup-off .col-main { padding-left: 0; }
.col-site h3[data-step] { white-space: nowrap; letter-spacing: .05em; } .col-site h3[data-step] .h-do { letter-spacing: .03em; }

/* 15 Nov, a friend's notes ("a lot going on", "hard to navigate"): SIMPLE VIEW is the default */
html.simple .key[data-slip], html.simple #next-site-btn, html.simple #pin-btn { display: none; }
html.simple .col-site .needs:not(.open) .need:nth-child(n+2) { display: none; }
.needs-more { display: none; margin-top: 6px; width: 100%; text-align: left; font: inherit; font-size: 13.5px; font-weight: 700; letter-spacing: .03em; padding: 4px 9px; cursor: pointer; color: var(--wht); background: #000; border: 1px solid color-mix(in srgb, var(--s3) 60%, #000); border-left: 5px solid var(--s3); }
.needs-more:hover { background: color-mix(in srgb, var(--s3) 18%, #000); }
html.simple .needs-more { display: block; }
/* the scan: what it is and the answer first, the choices folded away */
.scan-how { font-size: 13.5px; line-height: 1.4; color: var(--amb); margin-bottom: 8px; } .scan-how b { color: var(--wht); }
.band[data-band="4"] { --sc: var(--s4); }
.scan-side .scan-go { margin: 6px 0 4px; padding: 9px 6px; font-family: var(--cond); font-size: 17px; font-weight: 700; letter-spacing: .04em; color: var(--key-ink); background: linear-gradient(180deg, var(--key-a), var(--key-b)); border: 1px solid #000; border-radius: 6px; }
.scan-side .scan-go:disabled { background: var(--faint); color: var(--dim); }
.scan-more { margin-top: 10px; border: 1px solid var(--grid0); padding: 5px 8px 7px; } .scan-more summary { cursor: pointer; font-size: 13px; letter-spacing: .06em; color: var(--dim); }
.scan-more[open] summary .h-do { display: none; }
.scan-mgroup .seg { flex-wrap: wrap; } .scan-mgroup .seg button { flex: 1 1 46%; }
.scan-legend.flat { line-height: 1.7; font-size: 13px; }
html.flow.simple #play-btn { grid-column: span 2; } html.flow.simple #tools-btn { order: 9; grid-column: span 2; } html.flow:not(.simple) #tools-btn { order: 11; grid-column: span 4; }
.ic { width: 1.25em; height: 1.25em; vertical-align: -0.24em; margin-right: 6px; fill: currentColor; }
.comms-opt { font-size: 13px; padding: 5px 10px; } .comms-mic .ic { width: 1.35em; height: 1.35em; }

/* the guided tutorial (js/guide.js): everything but one part is dimmed */
.tour-dim { position: fixed; z-index: 60; background: rgba(0, 0, 0, .82); }
.tour-ring { position: fixed; z-index: 61; pointer-events: none; border: 3px solid var(--key-y, #ffd23c); border-radius: 6px; box-sizing: border-box; animation: tour-ring 1.3s ease-in-out infinite; }
@keyframes tour-ring { 50% { border-color: rgba(255, 210, 60, .25); } }
.tour-card { position: fixed; z-index: 62; width: min(440px, calc(100vw - 16px)); max-height: calc(100vh - 16px); overflow-y: auto; box-sizing: border-box; background: #05080d; border: 2px solid var(--key-y, #ffd23c); border-radius: 8px;
  box-shadow: 0 12px 50px #000; padding: 12px 16px 14px; color: #e9eef5; font-family: var(--mono); font-size: 15px; line-height: 1.45; }
.tour-top { display: flex; align-items: center; gap: 10px; font-size: 12.5px; letter-spacing: .08em; color: #9fb0c6; }
.tour-bar { flex: 1; height: 6px; background: #1b2634; border-radius: 3px; overflow: hidden; } .tour-bar b { display: block; height: 100%; background: var(--key-y, #ffd23c); }
.tour-skip { font: inherit; font-size: 12.5px; color: #9fb0c6; background: none; border: 1px solid #3a4a5e; border-radius: 4px; padding: 2px 8px; cursor: pointer; } .tour-skip:hover { color: #fff; border-color: #fff; }
.tour-card h2 { margin: 9px 0 6px; font-family: var(--cond); font-size: 25px; font-weight: 700; letter-spacing: .04em; line-height: 1.1; color: var(--key-y, #ffd23c); }
.tour-card dl { margin: 0; } .tour-card dt { margin-top: 8px; font-family: var(--cond); font-size: 14.5px; font-weight: 700; letter-spacing: .12em; } .tour-card dd { margin: 1px 0 0; }
.tour-card dt.w1 { color: var(--s1); } .tour-card dt.w2 { color: var(--s3); } .tour-card dt.w3 { color: var(--s4); }
.tour-text { margin: 0; font-size: 16px; } .tour-text b { color: #fff; }
.tour-try { margin-top: 10px; padding: 6px 10px; border: 1px dashed var(--s4); color: var(--s4); font-weight: 600; } .tour-try.ok { border-style: solid; background: color-mix(in srgb, var(--s4) 18%, #000); }
.tour-check { margin-top: 10px; padding: 8px 10px; background: #0d141d; border-left: 4px solid var(--s2); } .tour-check > b { display: block; font-family: var(--cond); font-size: 15px; letter-spacing: .08em; color: var(--s2); margin-bottom: 5px; }
.tour-check button { display: block; width: 100%; margin-top: 4px; text-align: left; font: inherit; font-size: 14.5px; color: #e9eef5; background: #000; border: 1px solid #3a4a5e; border-radius: 4px; padding: 5px 9px; cursor: pointer; }
.tour-check button:hover { border-color: #fff; } .tour-check button.yes { border-color: var(--s4); background: color-mix(in srgb, var(--s4) 20%, #000); } .tour-check button.no { border-color: var(--red); background: color-mix(in srgb, var(--red) 18%, #000); }
.tour-fb { margin: 7px 0 0; font-size: 14.5px; } .tour-fb.yes { color: var(--s4); } .tour-fb.no { color: #ff9b9b; }
.tour-alt { margin-top: 10px; padding: 8px 10px; background: #0d141d; border-left: 4px solid var(--s1); } .tour-alt b { display: block; font-family: var(--cond); font-size: 14.5px; letter-spacing: .12em; color: var(--s1); margin-bottom: 2px; }
.tour-btns { display: flex; gap: 8px; margin-top: 12px; align-items: stretch; }
.tour-btns button { font: inherit; font-size: 13.5px; font-weight: 700; padding: 7px 11px; cursor: pointer; color: #e9eef5; background: #000; border: 1px solid #56677c; border-radius: 5px; } .tour-btns button:hover { border-color: #fff; }
.tour-btns .tour-more { flex: 1; font-size: 12.5px; } .tour-btns .tour-next { margin-left: auto; background: var(--key-y, #ffd23c); border-color: var(--key-y, #ffd23c); color: #000; font-family: var(--cond); font-size: 17px; letter-spacing: .04em; white-space: nowrap; }
.tour-next.pulse { animation: tour-next 1s ease-in-out infinite; } @keyframes tour-next { 50% { box-shadow: 0 0 0 5px rgba(255, 210, 60, .35); } }
.tour-card.sheet { left: 8px !important; right: 8px; top: auto !important; bottom: 8px; width: auto; max-height: 50vh; font-size: 14.5px; }
.tour-card.sheet.up { top: 8px !important; bottom: auto; }
@media (prefers-reduced-motion: reduce) { .tour-ring, .tour-next.pulse { animation: none; } }
.top-right { display: flex; align-items: center; gap: 12px; }
.tour-btn { font: inherit; font-size: 13px; letter-spacing: .14em; padding: 3px 12px; cursor: pointer; color: #1a1300; background: var(--key-y, #ffd23c); border: 1px solid #000; border-radius: 4px; }
.tour-btn:hover { filter: brightness(1.1); }
html.flow .tour-btn { font-size: 11.5px; padding: 3px 8px; letter-spacing: .08em; }
.comms-row .ic { display: inline-block; } .comms-row .comms-opt, .comms-row .comms-mic { display: inline-flex; align-items: center; }
/* 15 Nov (the user's sketch): the verdict is one wide strip, the Sun and Earth sit side by side under it, and the
   room this frees goes to the skyline */
html:not(.flow) .answer-row { display: block; }
html:not(.flow) .answer-row .hero { padding: 5px 16px; margin-bottom: 7px; gap: 6px 22px; }
html:not(.flow) .answer-row .hero-text { flex: 1 1 300px; }
html:not(.flow) .answer-side .tiles-head { flex-wrap: nowrap; justify-content: space-between; }
html:not(.flow) .answer-side .readouts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-content: start; }
html:not(.flow) .answer-side .ro { padding: 2px 14px 0 0; }
html:not(.flow) .answer-side .ro + .ro { padding: 2px 0 0 14px; border-top: none; border-left: 2px solid var(--grid0); }
html:not(.flow) .answer-side .ro-a { overflow: hidden; }
html:not(.flow) .answer-row .hero-fix > span { flex: none; }
html:not(.flow) .answer-row .hero-why { display: flex; flex-wrap: wrap; gap: 0 26px; align-items: baseline; }
/* Best Site Finder: a clear header, scan sizes stacked on the left, the move button under the map */
.scan-name { font-family: var(--cond); font-size: 28px; font-weight: 700; letter-spacing: .06em; line-height: 1; color: var(--hi); }
.scan-head .scan-home { font-family: var(--cond); font-size: 16px; font-weight: 700; letter-spacing: .05em; padding: 4px 14px; color: var(--key-ink); background: linear-gradient(180deg, var(--key-a), var(--key-b)); border: 1px solid #000; border-radius: 5px; }
.scan-head .scan-home:hover { background: linear-gradient(180deg, var(--key-a), var(--key-b)); filter: brightness(1.15); }
.scan-body, .scan.big .scan-body { grid-template-columns: 84px minmax(0, 1fr) 270px; gap: 14px; } .scan.big .scan-body { grid-template-columns: 84px minmax(0, 1fr) 300px; }
.scan-sizes { display: flex; flex-direction: column; gap: 6px; align-self: center; } .scan-sizes > b { font-family: var(--cond); font-size: 15px; letter-spacing: .08em; color: var(--hi); text-align: center; }
.scan-sizes > small { font-size: 12.5px; line-height: 1.25; color: var(--dim); text-align: center; }
.scan-sizes .seg { display: flex; flex-direction: column; gap: 5px; } .scan-sizes .seg button { width: 100%; padding: 9px 2px; font-family: var(--cond); font-size: 18px; font-weight: 700; letter-spacing: .03em; border: 1px solid var(--dim); }
.scan-map { display: flex; flex-direction: column; align-items: center; gap: 8px; } .scan-canvas-box { flex: 1; min-height: 0; align-self: stretch; display: grid; place-items: center; }
.scan-map .scan-go { flex: none; margin: 0 0 2px; padding: 9px 10px; font-family: var(--cond); font-size: 27px; font-weight: 700; letter-spacing: .05em; line-height: 1.1; color: var(--key-ink); background: linear-gradient(180deg, var(--key-a), var(--key-b)); border: 2px solid #000; border-radius: 8px; box-shadow: 0 3px 0 #0d0d0d; cursor: pointer; }
.scan-map .scan-go:hover { filter: brightness(1.12); } .scan-map .scan-go:disabled { background: var(--faint); color: var(--dim); box-shadow: none; cursor: default; filter: none; }
html.flow .scan-map { height: auto; } html.flow .scan-canvas-box { height: min(92vw, 60vh); flex: none; } html.flow .scan-sizes .seg { flex-direction: row; } html.flow .scan-sizes { margin-bottom: 10px; } html.flow .scan-map .scan-go { font-size: 20px; }
/* the bottom keys: every key reads as live; ASK LUNI keeps its own color */
.key { background: linear-gradient(180deg, #686c76, #3d4048); } .key small { opacity: .85; }
#play-btn, .key.g { background: linear-gradient(180deg, var(--key-a), var(--key-b)); color: var(--key-ink); }
.key.c { background: linear-gradient(180deg, #35c2ad, #17776a); } .key.on, .key.g.on { background: linear-gradient(180deg, #2bd47c, #17a05a); color: #06210f; } .key.c.on { background: linear-gradient(180deg, #ff6b5a, #b3261c); color: #fff; }
html:not(.flow) .answer-side .ro-a .mini { white-space: normal; }
html:not(.flow) .answer-row .hero-text { flex: 1 1 430px; }
html:not(.flow) .answer-row .hero-fix { flex: 0 1 auto; border-top: none; padding: 0; }      /* beside the reason when there is room, else on its own line */
/* Best Site Finder: the map choices are a second stack, right of the map; a line sets off the scrolling panel */
.scan-body, .scan.big .scan-body { grid-template-columns: 78px minmax(0, 1fr) 150px 250px; gap: 12px; } .scan.big .scan-body { grid-template-columns: 78px minmax(0, 1fr) 150px 290px; }
.scan-shows { display: flex; flex-direction: column; gap: 6px; align-self: center; min-width: 0; } .scan-shows > b, .scan-sizes > b { font-family: var(--cond); font-size: 15px; letter-spacing: .08em; color: var(--hi); text-align: center; }
.scan-shows .scan-metric { display: flex; flex-direction: column; gap: 9px; } .scan-shows .scan-mgroup { display: flex; flex-direction: column; gap: 4px; }
.scan-shows button, .scan-sizes .seg button { width: 100%; padding: 7px 2px; font-family: var(--cond); font-size: 16.5px; font-weight: 700; letter-spacing: .03em; line-height: 1.1; white-space: nowrap; cursor: pointer; color: var(--amb); background: #000; border: 1px solid var(--dim); }
.scan-shows button:hover, .scan-sizes .seg button:hover { background: var(--faint); } .scan-shows button.on { background: var(--hi); border-color: var(--hi); color: #00101f; }
.scan-side { border-left: 2px solid var(--dim); padding-left: 12px; }
.scan-rank { margin-top: 10px; } .scan-rank > span { display: block; font-size: 12.5px; color: var(--dim); margin-bottom: 3px; } .scan-rank .seg { display: flex; } .scan-rank .seg button { flex: 1; }
html.flow .scan-shows .scan-metric, html.flow .scan-shows .scan-mgroup { flex-direction: row; flex-wrap: wrap; } html.flow .scan-shows button { width: auto; padding: 6px 10px; } html.flow .scan-shows { margin-bottom: 10px; } html.flow .scan-side { border-left: none; padding-left: 0; }
/* bottom keys: one line of the same lettering on each (it may break into two lines on narrow keys); ASK LUNI in the middle */
.key { white-space: normal; line-height: 1.08; padding: 0 6px; font-size: 21px; letter-spacing: .05em; } .tight .key { font-size: 19px; }
.key.g, .key.y, .key.c { flex: 1.25; } #play-btn { flex: 1.25; }
html.simple:not(.flow) #play-btn { order: 1; } html.simple:not(.flow) #next-window-btn { order: 2; } html.simple:not(.flow) #talk-btn { order: 3; } html.simple:not(.flow) #scan-btn { order: 4; } html.simple:not(.flow) #tools-btn { order: 5; }
html.flow .key { font-size: 16px; }
/* custom coordinates in the open, GO / NO-GO dots in the site list, and the all-sites ranking */
.coord-row { display: flex; align-items: center; gap: 6px; margin: 5px 0 7px; font-size: 12.5px; color: var(--dim); white-space: nowrap; }
.coord-row .h-do { font-size: 12.5px; letter-spacing: .02em; margin-right: auto; } .coord-row label { display: flex; align-items: center; gap: 3px; }
.coord-row input { width: 74px; min-width: 0; background: #000; color: var(--wht); border: 1px solid var(--s1); font: inherit; font-size: 13px; padding: 2px 3px; }
.coord-row button { font-family: var(--cond); font-size: 14px; font-weight: 700; letter-spacing: .04em; padding: 2px 8px; cursor: pointer; color: var(--key-ink); background: linear-gradient(180deg, var(--key-a), var(--key-b)); border: 1px solid #000; border-radius: 5px; }
.site-ok { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; background: #333; vertical-align: 0; } .site-ok.go { background: var(--grn); } .site-ok.nogo { background: var(--red); }
.rank { display: grid; gap: 2px; margin-right: 12px; }
.rank-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) 54px 74px; gap: 6px; align-items: center; text-align: left; font: inherit; font-size: 13px; color: var(--amb); padding: 3px 5px; cursor: pointer; border: 1px solid transparent;
  background: linear-gradient(90deg, rgba(33, 224, 122, .2) var(--f), transparent var(--f)); }
.rank-row:hover { border-color: var(--dim); } .rank-row.cur { border-color: var(--hi); }
.rk-n { color: var(--dim); } .rk-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--wht); } .rk-ok { font-family: var(--cond); font-weight: 700; letter-spacing: .04em; } .rk-ok.go { color: var(--grn); } .rk-ok.nogo { color: var(--red); }
.rk-days { text-align: right; font-family: var(--cond); font-weight: 700; font-size: 14.5px; letter-spacing: .03em; color: var(--wht); white-space: nowrap; }
.note-low { color: var(--dim); font-size: 12.5px !important; white-space: normal !important; }
html.flow .coord-row { flex-wrap: wrap; }
html.flow .ans-head { flex-wrap: wrap; gap: 6px; } html.flow .ans-btns { flex-wrap: wrap; }
/* operations plan: the mission as stretches in order */
.ops { cursor: default; } .ops .ops-b { cursor: pointer; } .ops .ops-b:hover rect { stroke: #fff; stroke-width: 2; } .ops text { pointer-events: none; }
.plan-tabs button { padding: 4px 13px 5px; } .plan-tabs { gap: 5px; }
html.flow .plan-tabs { flex-wrap: wrap; } html.flow .plan-tabs button { font-size: 15px; padding: 4px 9px 5px; flex: 1 1 auto; }
.prof-note { margin-top: 5px; font-size: 12.5px; line-height: 1.35; color: var(--dim); }
.mm-side .prof-row { grid-template-columns: 142px 42px minmax(0, 1fr) 38px; gap: 6px; }
#earth-dsn { color: var(--amb); } #earth-dsn b { color: var(--dim); font-weight: 600; }
/* the unit's top row: larger buttons; the green data line is gone (its words live in the source bubbles) */
.tabs button { font-size: 16px; padding: 7px 20px; letter-spacing: .14em; } .tour-btn { font-size: 16px; padding: 7px 18px; }
html.flow .tabs button { font-size: 13px; padding: 5px 10px; letter-spacing: .08em; } html.flow .tour-btn { font-size: 13px; padding: 5px 10px; }
/* source bubbles: where a result's NASA data came from */
.src, .scan-head button.src { flex: none; font-family: var(--cond); font-size: 13px; font-weight: 700; letter-spacing: .07em; line-height: 1.3; white-space: nowrap; cursor: help;
  color: #8ff5bf; background: rgba(33, 224, 122, .1); border: 1px solid rgba(33, 224, 122, .65); border-radius: 999px; padding: 1px 10px 1px 8px; }
.src::before { content: "● "; color: var(--grn); } .src:hover, .scan-head button.src:hover { background: rgba(33, 224, 122, .24); color: #fff; }
.src.warn { color: #ffd9a8; border-color: rgba(255, 138, 61, .8); background: rgba(255, 138, 61, .12); } .src.warn::before { color: #ff8a3d; }
.src.fresh { animation: src-fresh 1.5s ease-out; } @keyframes src-fresh { 0% { box-shadow: 0 0 0 0 rgba(33, 224, 122, .9); background: rgba(33, 224, 122, .45); } 100% { box-shadow: 0 0 0 9px rgba(33, 224, 122, 0); } }
@media (prefers-reduced-motion: reduce) { .src.fresh { animation: none; } }
.hero { position: relative; } .hero > .src { position: absolute; top: 6px; right: 8px; }
html:not(.flow) .answer-row .hero-title { padding-right: 190px; }
.src-globe { position: absolute; left: 6px; bottom: 6px; z-index: 2; } .globe-wrap.big .src-globe { left: 26px; bottom: 60px; }
.mm-srcline { margin: 6px 0 2px; }
.src-pop { position: fixed; z-index: 70; width: min(360px, calc(100vw - 12px)); box-sizing: border-box; padding: 9px 12px 10px; background: #04120b; color: #e9eef5; border: 1.5px solid var(--grn); border-radius: 12px;
  box-shadow: 0 10px 34px #000; font-family: var(--mono); font-size: 13.5px; line-height: 1.4; pointer-events: none; }
.src-pop[hidden] { display: none; } .src-pop b { display: block; font-family: var(--cond); font-size: 14.5px; letter-spacing: .1em; color: var(--grn); margin-bottom: 3px; }
html.flow .hero > .src { position: static; order: -1; }
html.flow .col-main .tiles-head { flex-wrap: wrap; gap: 4px 8px; }
.tiles-head > .src { margin: 0 auto 0 10px; align-self: center; } .tiles-head > .src + * { margin-left: 10px; }
/* Best Site Finder, condensed: size and "map shows" sit in one row over the map; the reading panel on the right is wider */
.scan-body, .scan.big .scan-body { grid-template-columns: minmax(0, 1fr) minmax(300px, 43%); gap: 14px; }
.scan-map { gap: 7px; } .scan-ctl { flex: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; max-width: 100%; }
.scan-pick { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .scan-pick > b { font-family: var(--cond); font-size: 14px; letter-spacing: .1em; color: var(--hi); }
.scan-pick .seg { display: flex; } .scan-pick .seg button, .scan-pick select { font-family: var(--cond); font-size: 17px; font-weight: 700; letter-spacing: .03em; line-height: 1.1; padding: 6px 9px; color: var(--amb); background: #000; border: 1px solid var(--dim); cursor: pointer; white-space: nowrap; }
.scan-pick .seg button.on { background: var(--hi); border-color: var(--hi); color: #00101f; } .scan-pick select { color: var(--wht); border-color: var(--hi); max-width: 100%; }
.scan-side { padding-left: 14px; }
html.flow .scan-ctl { flex-wrap: wrap; width: auto !important; }
/* the verdict strip: one fact a row (what it is, then the value); on a NO-GO the word and the ways out pulse */
html:not(.flow) .answer-row .hero-why, .hero-why { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 14px; align-items: baseline; }
.hw { display: contents; } .hw > span { font-family: var(--cond); font-size: 14px; font-weight: 700; letter-spacing: .1em; color: var(--dim); white-space: nowrap; } .hw > b { font-weight: 600; color: var(--wht); }
.hero-why .warn { grid-column: 1 / -1; justify-self: start; }
html:not(.flow) .answer-row .hero-title { padding-right: 0; } .hero-title[hidden] { display: none; }
.hero.nogo .hero-word { animation: nogo-pulse 1.6s ease-in-out infinite; } @keyframes nogo-pulse { 50% { opacity: .45; text-shadow: 0 0 18px rgba(255, 61, 61, .9); } }
.hero.nogo .hero-next { animation: fix-pulse 1.6s ease-in-out infinite; }
.key.fixit, .side-go.fixit { animation: fix-pulse 1.6s ease-in-out infinite; }
@keyframes fix-pulse { 50% { box-shadow: 0 0 0 4px var(--key-y, #ffd23c), 0 0 22px 4px rgba(255, 210, 60, .65); filter: brightness(1.25); } }
@media (prefers-reduced-motion: reduce) { .hero.nogo .hero-word, .hero.nogo .hero-next, .key.fixit, .side-go.fixit { animation: none; } .key.fixit, .side-go.fixit, .hero.nogo .hero-next { box-shadow: 0 0 0 3px var(--key-y, #ffd23c); } }
.col-site .need .seg button { white-space: nowrap; }
/* NASA DATA USED: a band over the screen's top line whenever something is calculated or shown */
header.bar { position: relative; }
.data-band { position: absolute; left: -6px; right: -6px; top: -5px; bottom: 2px; z-index: 6; display: flex; align-items: center; flex-wrap: wrap; gap: 2px 22px; padding: 2px 12px; overflow: hidden;
  background: var(--hi); color: #00101f; font-family: var(--cond); font-size: 18px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; pointer-events: none;
  box-shadow: 0 0 0 2px #000, 0 6px 22px rgba(65, 182, 255, .55); animation: data-band 6500ms ease both; }
.data-band[hidden] { display: none; } .data-band > b { background: #00101f; color: var(--hi); padding: 1px 10px; letter-spacing: .12em; white-space: nowrap; }
.data-band span { white-space: nowrap; } .data-band i { font-style: normal; font-weight: 600; opacity: .72; margin-right: 4px; }
@keyframes data-band { 0% { transform: translateY(-110%); opacity: 0; } 5% { transform: none; opacity: 1; } 9% { filter: brightness(1.5); } 14% { filter: none; } 92% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .data-band { animation: none; } }
.src-note { flex: none; margin: 0 auto 0 10px; font-family: var(--cond); font-size: 14px; font-weight: 700; letter-spacing: .08em; color: #ff8a3d; white-space: nowrap; } .src-note:empty { display: none; }
.tiles-head > .src-note + * { margin-left: 10px; }
.mm-srcline { font-size: 12.5px; color: var(--dim); letter-spacing: .04em; } .mm-srcline b { color: var(--wht); }
html.flow .data-band { font-size: 14px; position: fixed; top: 0; left: 0; right: 0; bottom: auto; z-index: 45; padding: 6px 10px; }
/* PROOF, calmer: four headline numbers, then one line a section that opens on a click */
.proof-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 4px 0 10px; }
.proof-tiles > div { border: 1px solid var(--grid0); border-top: 4px solid var(--grn); background: rgba(33, 224, 122, .05); padding: 9px 12px 10px; }
.proof-tiles b { display: block; font-family: var(--cond); font-size: 40px; font-weight: 700; line-height: 1; letter-spacing: .01em; color: var(--grn); margin-bottom: 5px; }
.proof-tiles span { display: block; font-size: 12.5px; line-height: 1.35; color: var(--amb); }
.proof-hint { margin: 0 0 4px; font-size: 13px; }
.proof-sec { border-top: 1px solid var(--grid0); padding: 7px 0; } .proof-sec > summary { cursor: pointer; list-style: none; } .proof-sec > summary::-webkit-details-marker { display: none; }
.proof-sec > summary h3 { display: inline-block; margin: 0; font-size: 14.5px; } .proof-sec > summary h3::after { content: "  ▸ OPEN"; color: var(--wht); font-weight: 700; letter-spacing: .06em; }
.proof-sec[open] > summary h3::after { content: "  ▾ CLOSE"; } .proof-sec[open] > summary { margin-bottom: 8px; } .proof-sec > summary:hover h3 { filter: brightness(1.3); }
html.flow .proof-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } html.flow .proof-tiles b { font-size: 30px; }
/* the main screen's sections stand apart: every section starts with a band, with air above it */
.col-main > .tiles-head:not(.ans-head), .answer-side > .tiles-head { margin-top: 9px; padding: 3px 8px 3px 7px; border-left: 5px solid var(--hi); background: linear-gradient(90deg, color-mix(in srgb, var(--hi) 24%, #000), color-mix(in srgb, var(--hi) 5%, #000)); }
.col-main > .tiles-head:not(.ans-head) h3, .answer-side > .tiles-head h3 { margin-bottom: 0; }
.answer-row { border-bottom: none; padding-bottom: 0; margin-bottom: 0; } .col-main .horizon { border-bottom: none; margin-top: 5px; } .answer-side .readouts { margin-top: 5px; }
.col-main > .plan-head { margin-bottom: 5px; }
.col-site h3.gap { margin-top: 17px; } .col-site .globe-wrap { margin-top: 2px; }
html.flow .col-main > .tiles-head:not(.ans-head), html.flow .answer-side > .tiles-head { margin-top: 14px; }
.col-main > .tiles-head:not(.ans-head), .answer-side > .tiles-head { margin-top: 6px; padding: 1px 8px 1px 7px; }
.col-main .horizon { margin-top: 2px; margin-bottom: 2px; padding-bottom: 2px; } .answer-side .readouts { margin-top: 2px; } .col-main > .plan-head { margin-bottom: 3px; }
html:not(.flow) .answer-row .hero { margin-bottom: 0; }
html.flow .col-main > .plan-head { padding-right: 0; } html.flow .plan-tabs { width: 100%; } html.flow .plan-tabs button { padding: 4px 5px 5px; font-size: 14px; }

/* ===== 15 Nov, afternoon batch ===== */
/* verdict strip: warnings stand to the right of the verdict, not under it */
.hero-warn { order: 5; margin-left: auto; display: flex; flex-direction: column; gap: 4px; max-width: 320px; }
.hero-warn[hidden] { display: none; }
.hero-warn .warn { display: flex; flex-direction: column; padding: 4px 11px 5px; background: var(--key-y); color: #000; line-height: 1.22; font-size: 13.5px; font-weight: 600; }
.hero-warn .warn b { font-family: var(--cond); font-size: 16.5px; letter-spacing: .05em; }
html.flow .hero-warn { margin-left: 0; max-width: none; flex: 1 1 100%; }

/* Best Site Finder: the two button stacks stand against the map, as tall as the map */
.scan-body, .scan.big .scan-body { grid-template-columns: minmax(0, 1fr) minmax(280px, 36%); }
.scan-row { flex: 1; min-height: 0; align-self: stretch; display: flex; align-items: center; justify-content: center; }
.scan-row .scan-canvas-box { flex: none; align-self: center; display: block; line-height: 0; }
.scan-stack { flex: none; display: flex; flex-direction: column; gap: 4px; min-height: 0; }
#scan-sizes { width: 84px; padding-right: 6px; } #scan-shows { width: 150px; padding-left: 6px; }
.scan-stack > b { flex: none; font-family: var(--cond); font-size: 14px; letter-spacing: .08em; color: var(--hi); text-align: center; white-space: nowrap; }
.scan-stack .seg, .scan-stack .scan-metric { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 3px; border: none; }
.scan-stack .scan-mgroup { display: contents; } .scan-stack .scan-mgroup + .scan-mgroup button:first-child { margin-top: 5px; }
.scan-stack button { flex: 1 1 0; min-height: 0; width: 100%; padding: 0 2px; font-family: var(--cond); font-size: 16px; font-weight: 700; letter-spacing: .03em; line-height: 1.05; white-space: nowrap; cursor: pointer; color: var(--amb); background: #000; border: 1px solid var(--dim); border-radius: 0; }
#scan-sizes button { font-size: 19px; }
.scan-stack button:hover { background: var(--faint); }
.scan-stack button.on, .scan-stack .seg button.on { background: var(--hi); border-color: #fff; color: #00101f; box-shadow: inset 0 0 0 2px #00101f; }
html.flow .scan-row { flex-direction: column; align-items: stretch; gap: 8px; } html.flow .scan-row .scan-canvas-box { align-self: center; }
html.flow .scan-stack, html.flow #scan-sizes, html.flow #scan-shows { width: auto; padding: 0; } html.flow .scan-stack .seg, html.flow .scan-stack .scan-metric { flex-direction: row; flex-wrap: wrap; }
html.flow .scan-stack button { flex: 1 1 auto; padding: 8px 10px; width: auto; }

/* NASA DATA USED: white with a red tag, so it cannot blend into the blue screen; it flashes three times and wipes away */
.data-band { top: -8px; bottom: -3px; left: -8px; right: -8px; padding: 2px 14px; gap: 2px 26px; background: #fff; color: #06122a; border: none; font-size: 15.5px; font-weight: 600; letter-spacing: .03em; opacity: 1;
  box-shadow: 0 0 0 2px #000, 0 0 0 5px #ff3b2e, 0 10px 28px rgba(0, 0, 0, .7); animation: data-wipe 8000ms ease both, data-flash 1500ms linear 1; }
.data-band > b { background: #e0261a; color: #fff; padding: 2px 12px; font-family: var(--cond); font-size: 18px; letter-spacing: .12em; }
.data-band i { opacity: 1; color: #4d5a75; font-weight: 600; } .data-band u { text-decoration: none; font-weight: 700; color: #06122a; }
@keyframes data-wipe { 0% { clip-path: inset(-10px -10px 110% -10px); } 4% { clip-path: inset(-10px); } 95% { clip-path: inset(-10px); } 100% { clip-path: inset(-10px -10px 110% -10px); } }
@keyframes data-flash { 0%, 30%, 60%, 100% { background: #fff; } 15%, 45%, 75% { background: #ffe14d; } }
@media (prefers-reduced-motion: reduce) { .data-band { animation: none; } }

/* the left side folded away: its tab has to be easy to find */
.cols.setup-off .setup-tab { width: 34px; padding: 24px 0; font-size: 16.5px; color: #00101f; background: var(--hi); border-color: #fff; box-shadow: 0 0 14px rgba(65, 182, 255, .7); animation: tab-call 1.8s ease-in-out 3; }
@keyframes tab-call { 50% { filter: brightness(1.35); box-shadow: 0 0 26px rgba(65, 182, 255, 1); } }
.cols.setup-off .col-main { padding-left: 46px; }

/* ENERGY */
.energy-btn { margin-top: 3px; padding: 2px 9px; font: inherit; font-family: var(--cond); font-size: 14.5px; font-weight: 700; letter-spacing: .05em; color: #1a1200; background: var(--key-y); border: 1px solid #000; border-radius: 4px; cursor: pointer; white-space: nowrap; }
.energy-btn:hover, .energy-btn.on { filter: brightness(1.15); } .energy-btn b { font-weight: 700; }
.energy { z-index: 8; }
.en-lead { margin: 0 0 8px; color: var(--wht); font-weight: 600; }
.en-top { display: grid; grid-template-columns: minmax(300px, 40%) minmax(0, 1fr); gap: 18px; margin-bottom: 12px; }
.en-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; } .en-row > span { color: var(--amb); font-weight: 600; }
.en-row .seg button { min-width: 54px; padding: 4px 6px; } .en-row .seg button.on { background: var(--s3); border-color: var(--s3); color: #1a0f00; }
.en-note { margin: 8px 0 0; font-size: 12.5px; color: var(--dim); }
.en-verdict { display: flex; align-items: center; gap: 14px; padding: 6px 12px; border-left: 8px solid var(--grn); background: #04140b; margin-bottom: 8px; } .en-verdict.nogo { border-color: var(--red); background: #1a0606; }
.en-verdict b { font-family: var(--cond); font-size: 26px; line-height: 1; white-space: nowrap; color: var(--grn); } .en-verdict.nogo b { color: var(--red); } .en-verdict span { color: var(--wht); font-weight: 600; font-size: 13.5px; }
.en-tiles { grid-template-columns: repeat(4, 1fr); }
.en-chart { width: 100%; height: auto; display: block; background: #000; border: 1px solid var(--grid0); margin-top: 6px; }
.en-grid { stroke: var(--grid); } .en-tick, .en-ax { fill: var(--dim); font-size: 12.5px; } .en-cap { fill: var(--wht); font-size: 12.5px; font-weight: 700; }
.en-power { fill: #ffd23c; opacity: .85; } .en-load { stroke: var(--red); stroke-width: 2; stroke-dasharray: 7 5; } .en-loadt { fill: #fff; font-size: 13px; font-weight: 700; stroke: #7a0d0d; stroke-width: 4px; paint-order: stroke; }
.en-cap { stroke: #000; stroke-width: 4px; paint-order: stroke; }
.en-full { stroke: var(--grid0); } .en-batt { fill: none; stroke: var(--cy); stroke-width: 2.5; }
.en-facts { margin: 8px 0 10px; padding-left: 18px; } .en-facts li { margin-bottom: 3px; } .en-facts b { color: var(--wht); }
html.flow .en-top { grid-template-columns: 1fr; } html.flow .en-tiles { grid-template-columns: repeat(2, 1fr); }

/* BEFORE AND AFTER */
.cmp-pop { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(0, 4, 12, .78); font-family: var(--mono); animation: cmp-in .18s ease-out; }
@keyframes cmp-in { from { opacity: 0; } }
.cmp-card { width: min(900px, 96vw); max-height: 94vh; overflow: auto; background: #050d1f; border: 2px solid var(--hi); box-shadow: 0 0 0 4px #000, 0 20px 80px rgba(65, 182, 255, .35); padding: 16px 20px 14px; color: var(--amb); }
.cmp-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; } .cmp-head b { font-family: var(--cond); font-size: 30px; letter-spacing: .05em; color: var(--hi); }
.cmp-x { font: inherit; font-size: 18px; color: var(--wht); background: #000; border: 1px solid var(--dim); padding: 2px 10px; cursor: pointer; }
.cmp-lead { margin: 2px 0 10px; color: var(--wht); font-size: 14px; font-weight: 600; }
.cmp-table { width: 100%; border-collapse: collapse; } .cmp-table th, .cmp-table td { padding: 7px 10px; text-align: left; border-bottom: 1px solid var(--grid0); font-size: 16px; }
.cmp-table th { vertical-align: bottom; color: var(--wht); font-size: 14.5px; font-weight: 700; } .cmp-table th i { display: block; font-style: normal; font-family: var(--cond); font-size: 13.5px; letter-spacing: .12em; color: var(--dim); }
.cmp-table th small { display: block; font-size: 12.5px; font-weight: 600; color: var(--dim); }
.cmp-table td:first-child { color: var(--dim); font-family: var(--cond); font-size: 15px; font-weight: 700; letter-spacing: .08em; white-space: nowrap; } .cmp-table td { color: var(--wht); font-weight: 600; }
.cmp-table tr.big td { font-family: var(--cond); font-size: 30px; font-weight: 700; padding: 4px 10px; } .cmp-table tr.big td:first-child { font-size: 15px; }
.cmp-table td.go { color: var(--grn); } .cmp-table td.nogo { color: var(--red); }
.cmp-table td.good { color: var(--grn); } .cmp-table td.bad { color: #ff7a7a; } .cmp-table td.same { color: var(--dim); } .cmp-table td:last-child { white-space: nowrap; font-size: 15px; } .cmp-table tr.big td:last-child { font-size: 20px; }
.cmp-note { margin: 8px 0 12px; font-size: 12.5px; color: var(--dim); line-height: 1.35; }
.cmp-btns { display: flex; flex-wrap: wrap; gap: 10px; } .cmp-btns button { flex: 1 1 200px; padding: 11px 12px; font-family: var(--cond); font-size: 20px; font-weight: 700; letter-spacing: .05em; cursor: pointer; color: var(--wht); background: #1a2440; border: 2px solid #000; border-radius: 8px; box-shadow: 0 3px 0 #000; }
.cmp-btns button.primary { color: var(--key-ink); background: linear-gradient(180deg, var(--key-a), var(--key-b)); } .cmp-btns button:hover { filter: brightness(1.15); }
.cmp-keep { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 12.5px; color: var(--dim); cursor: pointer; }

/* SOLAR PANELS in the Best Site Finder */
.panels-open { width: 100%; padding: 8px 6px; font-family: var(--cond); font-size: 18px; font-weight: 700; letter-spacing: .05em; color: #1a1200; background: var(--key-y); border: 1px solid #000; border-radius: 6px; cursor: pointer; }
.panels-open:hover { filter: brightness(1.12); }
.panels-form { margin-top: 7px; display: flex; flex-direction: column; gap: 6px; } .panels-form[hidden] { display: none; }
.panels-form label { color: var(--wht); font-weight: 600; font-size: 13.5px; } .panels-form input { width: 64px; margin: 0 4px; padding: 3px 5px; font: inherit; font-weight: 700; color: var(--wht); background: #000; border: 2px solid var(--key-y); }
.panels-btns { display: flex; gap: 8px; } .panels-btns button { padding: 6px 12px; font-family: var(--cond); font-size: 16px; font-weight: 700; letter-spacing: .05em; cursor: pointer; color: var(--amb); background: #000; border: 1px solid var(--dim); }
.panels-btns button.primary { flex: 1; color: var(--key-ink); background: linear-gradient(180deg, var(--key-a), var(--key-b)); border-color: #000; }
.panels-out { margin-top: 6px; font-size: 13px; line-height: 1.35; color: var(--amb); } .panels-out b { color: var(--wht); }
.panels-table { width: 100%; border-collapse: collapse; margin: 5px 0; } .panels-table th { text-align: left; font-size: 12.5px; color: var(--dim); font-weight: 600; border-bottom: 1px solid var(--grid0); padding: 2px 6px 2px 0; }
.panels-table td { padding: 2px 6px 2px 0; color: var(--wht); font-weight: 600; } .panels-table td i { display: inline-block; min-width: 20px; text-align: center; font-style: normal; font-weight: 700; color: #000; background: #ffd23c; }
.proof-tiles i { font-style: normal; color: var(--wht); }

/* ===== 15 Nov, late afternoon: the finder's reading panel as cards, full screen, NASA band with links ===== */
.scan-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 12px; align-content: start; align-items: start; padding-left: 16px; overflow-y: auto; }
.scan-side > * { min-width: 0; }
.fcard { border: 1px solid var(--grid0); background: var(--fill); padding: 10px 14px 12px; }
.fcard > h3, .fcard > summary { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 8px; padding: 0 0 7px; border: none; border-bottom: 2px solid var(--grid0); background: none; font-family: var(--cond); font-size: 19px; font-weight: 700; letter-spacing: .06em; color: var(--hi); }
.fcard > h3 b, .fcard > summary b { color: var(--hi); font-weight: 700; } .fcard > h3 span, .fcard > summary span { font-size: 14px; letter-spacing: .08em; color: var(--dim); }
.fi { width: 26px; height: 26px; flex: none; fill: currentColor; }
.fcard.best { border-color: var(--grn); border-width: 2px; background: #04140b; } .fcard.best > h3 { color: var(--grn); border-bottom-color: rgba(33, 224, 122, .45); } .fcard.best > h3 b { color: var(--grn); }
.fcard .scan-cell { font-size: 14.5px; line-height: 1.5; min-height: 0; } .fcard .scan-cell .dist { font-size: 17px; font-family: var(--cond); letter-spacing: .04em; }
.fcard #scan-progress { margin-top: 6px; font-size: 14px; font-weight: 600; }
.fcard .scan-legend { font-size: 13.5px; margin-top: 0; } .fcard .scan-legend b { width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px; } .fcard .scan-legend i { height: 13px; }
.fcard .scan-rank { margin-top: 10px; } .fcard .prof-row { font-size: 13.5px; grid-template-columns: minmax(118px, 1.25fr) 52px minmax(0, 1fr) 40px; } .fcard .prof-row span { white-space: normal; }
.fmore { grid-column: 1 / -1; } .fmore > summary { cursor: pointer; margin-bottom: 0; padding-bottom: 0; border-bottom: none; list-style: none; color: var(--dim); } .fmore > summary b { color: var(--dim); }
.fmore > summary::-webkit-details-marker { display: none; } .fmore > summary::after { content: "▸ OPEN"; margin-left: auto; font-size: 14px; color: var(--wht); } .fmore[open] > summary::after { content: "▾ CLOSE"; }
.fmore[open] > summary { margin-bottom: 8px; padding-bottom: 7px; border-bottom: 2px solid var(--grid0); } .fmore .dimtxt, .fmore .credit, .fmore .scan-how { font-size: 13px; line-height: 1.45; margin-top: 6px; }
html.flow .scan-side { grid-template-columns: 1fr; padding-left: 0; }

.fs-btn { margin-left: 8px; padding: 6px 12px; font: inherit; font-family: var(--cond); font-size: 16px; font-weight: 700; letter-spacing: .06em; color: var(--wht); background: #1a2440; border: 1px solid var(--dim); border-radius: 4px; cursor: pointer; white-space: nowrap; }
.fs-btn:hover, .fs-btn.on { border-color: var(--hi); color: var(--hi); } .fs-btn.nudge { animation: tab-call 1.6s ease-in-out 4; border-color: var(--hi); }
html.flow .fs-btn { display: none; }

.data-band { animation: data-wipe 14000ms ease both, data-flash 1500ms linear 1; pointer-events: auto; }
@keyframes data-wipe { 0% { clip-path: inset(-10px -10px 110% -10px); } 2.5% { clip-path: inset(-10px); } 97% { clip-path: inset(-10px); } 100% { clip-path: inset(-10px -10px 110% -10px); } }
.data-band a { color: #06122a; text-decoration: none; font-weight: 700; border-bottom: 2px solid #e0261a; cursor: pointer; } .data-band a:hover { background: #ffe14d; } .data-band a u { text-decoration: none; }
.data-band:hover { animation-play-state: paused; }
.fcard .prof-row { grid-template-columns: minmax(0, 1.6fr) max-content minmax(34px, .7fr) 42px; gap: 8px; } .fcard .prof-row > * { overflow: visible; text-overflow: clip; }
.fcard .prof-row b, .fcard .prof-row strong { white-space: nowrap; }

/* Bottom keys: bright glazed look (the user: "glossy bright high quality glazed ceramic or glass"). One sheen over each key's own color. */
.key { --k1: #a9afbf; --k2: #4c5261; }
#play-btn, .key.g, .key.y { --k1: #6fd0ff; --k2: #1263f2; } .key.c { --k1: #63f2da; --k2: #0e9482; }
.key.on, .key.g.on { --k1: #7dffb4; --k2: #10ad5b; } .key.c.on, .key.flash { --k1: #ff9a8c; --k2: #c22a1e; }
.key, .key.g, .key.y, .key.c, #play-btn, .key.on, .key.g.on, .key.c.on, .key.flash {
  background: linear-gradient(180deg, rgba(255,255,255,.62) 0%, rgba(255,255,255,.2) 44%, rgba(255,255,255,0) 50%, rgba(0,0,0,.14) 100%), linear-gradient(180deg, var(--k1), var(--k2));
  border-color: #05070c; box-shadow: 0 5px 0 #05070c, inset 0 2px 0 rgba(255,255,255,.85), inset 0 -4px 8px rgba(0,0,0,.3), inset 0 0 0 1px rgba(255,255,255,.18), 0 0 20px color-mix(in srgb, var(--k1) 45%, transparent);
  text-shadow: 0 1px 2px rgba(0,0,0,.55); }
.key:hover { filter: brightness(1.08) saturate(1.1); }
.key:active, .key.down { box-shadow: 0 1px 0 #05070c, inset 0 2px 0 rgba(255,255,255,.6), inset 0 -3px 6px rgba(0,0,0,.3); }
.key.on, .key.g.on { text-shadow: 0 1px 0 rgba(255,255,255,.35); }

/* Best Site Finder: bolder choice buttons and bigger headers over them */
.scan-stack > b { font-size: 18px; letter-spacing: .07em; padding-bottom: 2px; }
.scan-stack button { border-width: 3px; border-radius: 8px; } .scan-stack .seg { gap: 5px; } .scan-stack .scan-metric { gap: 4px; }
.scan-stack button.on, .scan-stack .seg button.on { border-color: #fff; }
#scan-sizes { width: 92px; } #scan-shows { width: 158px; }

/* Finder choice buttons, second pass (the user: they "look cheap"): the same glazed family as the bottom keys, in a dark glass */
.scan-stack button, .scan-stack .seg button { color: #eaf4ff; border: 3px solid #05070c; border-radius: 9px; text-shadow: 0 1px 2px rgba(0,0,0,.6);
  background: linear-gradient(180deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,.06) 46%, rgba(255,255,255,0) 52%, rgba(0,0,0,.2) 100%), linear-gradient(180deg, #2b4f8f, #10224a);
  box-shadow: 0 3px 0 #05070c, inset 0 1px 0 rgba(255,255,255,.5), inset 0 0 0 1px rgba(124,184,255,.35); }
.scan-stack button:hover { filter: brightness(1.2); }
.scan-stack button.on, .scan-stack .seg button.on { color: #fff; border-color: #fff;
  background: linear-gradient(180deg, rgba(255,255,255,.6) 0%, rgba(255,255,255,.18) 46%, rgba(255,255,255,0) 52%, rgba(0,0,0,.14) 100%), linear-gradient(180deg, #6fd0ff, #1263f2);
  box-shadow: 0 3px 0 #05070c, inset 0 2px 0 rgba(255,255,255,.85), 0 0 16px rgba(65,182,255,.6); }
.scan-stack .seg, .scan-stack .scan-metric { gap: 7px; }

/* ===== LUNI Console design system applied across the app (stage 1: choice buttons and action buttons) ===== */
:root { --sheen: linear-gradient(180deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,.06) 46%, rgba(255,255,255,0) 52%, rgba(0,0,0,.2) 100%);
  --sheen-hi: linear-gradient(180deg, rgba(255,255,255,.6) 0%, rgba(255,255,255,.18) 46%, rgba(255,255,255,0) 52%, rgba(0,0,0,.14) 100%); }
/* choices: dark glass; the chosen one glazed, white edge */
.seg { gap: 3px; }
:is(.seg, .plan-tabs, .mm-layers, .tabs) button, .scan-pick .seg button, .sv-ctl .seg button, .fs-btn {
  margin-left: 0; color: #eaf4ff; border: 2px solid #05070c; border-radius: 6px; text-shadow: 0 1px 2px rgba(0,0,0,.6);
  background: var(--sheen), linear-gradient(180deg, #2b4f8f, #10224a);
  box-shadow: 0 2px 0 #05070c, inset 0 1px 0 rgba(255,255,255,.45), inset 0 0 0 1px rgba(124,184,255,.3); }
:is(.seg, .plan-tabs, .mm-layers, .tabs) button:hover, .fs-btn:hover { filter: brightness(1.2); background: var(--sheen), linear-gradient(180deg, #2b4f8f, #10224a); }
:is(.seg, .plan-tabs, .mm-layers, .tabs) button.on:not(#_) { color: var(--on-ink, #fff); border-color: #fff; text-shadow: var(--on-ts, 0 1px 2px rgba(0,0,0,.55));
  background: var(--sheen-hi), linear-gradient(180deg, var(--on1, #6fd0ff), var(--on2, #1263f2));
  box-shadow: 0 2px 0 #05070c, inset 0 2px 0 rgba(255,255,255,.85), 0 0 12px color-mix(in srgb, var(--on1, #41b6ff) 55%, transparent); }
.col-site .needs .seg button, .en-row .seg button { --on1: #ffd58a; --on2: #e58a00; --on-ink: #1a0f00; --on-ts: none; }
.mm-layers button.on b, .mm-layers button.on small { color: #fff; }
.scan-stack button, .scan-stack .seg button { border-width: 3px; border-radius: 9px; }
.plan-tabs button { border-radius: 8px; } .tabs button { border-radius: 7px; }
/* actions: the same glaze as the bottom keys, smaller */
:is(.side-go, .hero-next, .scan-go, .scan-home, .hist-load, .mm-mix-use, .coord-row button, .cmp-btns button.primary, .energy-btn, .tour-btn):not(:disabled):not(#_) {
  background: var(--sheen-hi), linear-gradient(180deg, var(--b1, #6fd0ff), var(--b2, #1263f2)); border-color: #05070c;
  box-shadow: 0 3px 0 #05070c, inset 0 1px 0 rgba(255,255,255,.8), inset 0 -3px 6px rgba(0,0,0,.25); }
:is(.side-go, .hero-next, .scan-go, .scan-home, .hist-load, .mm-mix-use, .coord-row button, .cmp-btns button.primary):not(:disabled) { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.55); }
.energy-btn, .tour-btn { --b1: #ffe9a8; --b2: #f2b01e; } .side-go.flash { --b1: #ff9a8c; --b2: #c22a1e; }

/* ===== design system, stage 2: icons on bands, cards in the dense panels, marks in the state dots, text floor ===== */
[data-ico]::before { content: ""; display: inline-block; flex: none; width: 1.25em; height: 1.25em; margin-right: .5em; vertical-align: -.25em; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
[data-ico="list"] { --ico: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath fill-rule=%27evenodd%27 d=%27M4 5h16v3H4zM4 10.5h16v3H4zM4 16h16v3H4z%27/%3E%3C/svg%3E"); }
[data-ico="sliders"] { --ico: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath fill-rule=%27evenodd%27 d=%27M3 6h10v2H3zM17 6h4v2h-4zM13 4h3v6h-3zM3 16h4v2H3zM11 16h10v2H11zM7 14h3v6H7z%27/%3E%3C/svg%3E"); }
[data-ico="layers"] { --ico: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath fill-rule=%27evenodd%27 d=%27M12 2l10 5-10 5L2 7zM4.5 11L12 14.7 19.5 11 22 12.2 12 17.2 2 12.2zM4.5 16L12 19.7 19.5 16 22 17.2 12 22.2 2 17.2z%27/%3E%3C/svg%3E"); }
[data-ico="bars"] { --ico: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath fill-rule=%27evenodd%27 d=%27M3 20h18v2H3zM5 10h3v9H5zM10.500 4h3v15h-3zM16 13h3v6h-3z%27/%3E%3C/svg%3E"); }
[data-ico="info"] { --ico: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath fill-rule=%27evenodd%27 d=%27M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zM11 10h2v8h-2zM11 6h2v2.500h-2z%27/%3E%3C/svg%3E"); }
[data-ico="sunearth"] { --ico: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath fill-rule=%27evenodd%27 d=%27M8 3a4.500 4.500 0 1 0 0 9 4.500 4.500 0 0 0 0-9zM17 12a5 5 0 1 0 0 10 5 5 0 0 0 0-10zM17 14.500a2.500 2.500 0 1 1 0 5 2.500 2.500 0 0 1 0-5z%27/%3E%3C/svg%3E"); }
[data-ico="mountain"] { --ico: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath fill-rule=%27evenodd%27 d=%27M1 20l7-11 4 6 3-4 8 9z%27/%3E%3C/svg%3E"); }
[data-ico="timeline"] { --ico: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath fill-rule=%27evenodd%27 d=%27M2 11h20v2H2zM5 7h2v10H5zM11 4h2v16h-2zM17 7h2v10h-2z%27/%3E%3C/svg%3E"); }
[data-ico="calendar"] { --ico: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath fill-rule=%27evenodd%27 d=%27M4 5h16v16H4zM6 10v9h12v-9zM7 2h2v4H7zM15 2h2v4h-2z%27/%3E%3C/svg%3E"); }
[data-ico="pin"] { --ico: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath fill-rule=%27evenodd%27 d=%27M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7zM12 6.500a2.500 2.500 0 1 1 0 5 2.500 2.500 0 0 1 0-5z%27/%3E%3C/svg%3E"); }
[data-ico="globe"] { --ico: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath fill-rule=%27evenodd%27 d=%27M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zM12 4.500a7.500 7.500 0 1 1 0 15 7.500 7.500 0 0 1 0-15zM11 4h2v16h-2zM4 11h16v2H4z%27/%3E%3C/svg%3E"); }
[data-ico="bolt"] { --ico: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27%3E%3Cpath fill-rule=%27evenodd%27 d=%27M13 2L4 14h6l-1 8 9-12h-6z%27/%3E%3C/svg%3E"); }
/* cards */
.fcard > h3 .h-do, .fcard > summary .h-do { color: var(--wht); } .fcard > h3.gap { margin-top: 0; }
.mm-side .fcard, #more-panel .fcard { margin-bottom: 10px; padding: 9px 12px 10px; border-radius: 4px; } .fcard { border-radius: 4px; }
.mm-side .fcard > h3, #more-panel .fcard > h3, #more-panel .fcard > summary { font-size: 17px; margin-bottom: 7px; padding-bottom: 6px; }
.mm-side .mm-layers, .mm-side #mm-profile, .mm-side #mm-meaning { border-left: none; padding-left: 0; }
#more-panel details.fcard > h3 { margin-top: 10px; } #more-panel details.fcard:not([open]) > summary { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
#more-panel .os-box.fcard h3.gap { margin-top: 0; }
.en-inputs, .en-out, .hist-text, .comms-log { border: 1px solid var(--grid0); background: var(--fill); border-radius: 4px; padding: 9px 12px; }
.hist-text { padding: 7px 11px; }
/* state marks: never by color alone */
.site-ok.go::after, .site-ok.nogo::after { position: absolute; inset: 0; display: grid; place-items: center; font: 700 9px/1 Arial, sans-serif; color: #00140a; }
.site-ok { position: relative; } .site-ok.go::after { content: "✓"; } .site-ok.nogo::after { content: "✕"; color: #fff; }
.site-ok { width: 14px; height: 14px; vertical-align: -2px; }
/* text floor: nothing to read under 12.5 px (wide layout) */
html:not(.flow) :is(.site-list .grp, .site-more, .globe-labels span, .k-hint, .k-hint b, #globe-big, .key small, .globe-key span, #comms-note):not(#_) { font-size: 12.5px; }
/* left column: the glass choices must fit the row */
.col-site .seg { gap: 2px; } .col-site .seg button:not(#_) { padding: 2px 4px; min-width: 24px; border-width: 1px; border-radius: 5px; box-shadow: 0 1px 0 #05070c, inset 0 1px 0 rgba(255,255,255,.4); }
.col-site .need { gap: 4px; }
#mm-view button:not(#_) { color: #eaf4ff; border: 2px solid #05070c; border-radius: 6px; background: var(--sheen), linear-gradient(180deg, #2b4f8f, #10224a); box-shadow: 0 2px 0 #05070c, inset 0 1px 0 rgba(255,255,255,.45), inset 0 0 0 1px rgba(124,184,255,.3); }
/* Moon map cards keep the data profile's bars and its compact rows */
.mm-side .fcard .prof-row { grid-template-columns: 138px max-content minmax(40px, 1fr) 38px; gap: 6px; font-size: 13px; } .mm-side .fcard .prof-row span { white-space: nowrap; }
.mm-side .fcard { padding: 7px 10px 8px; margin-bottom: 7px; } .mm-side .fcard > h3 { margin-bottom: 5px; padding-bottom: 4px; }
.mm-side .fcard .prof-row { grid-template-columns: 138px 42px minmax(0, 1fr) 38px; }

/* the test's one-minute tour: a small map of the screen with one part lit */
.test-map { display: grid; grid-template: "top top" 26px "left mid" 96px "keys keys" 30px / 30% 1fr; gap: 5px; margin: 4px 0 14px; padding: 8px; background: #232427; border-radius: 10px; }
.test-map i { display: grid; place-items: center; text-align: center; font: 700 13px/1.25 var(--cond); font-style: normal; letter-spacing: .06em; color: #5d6b85; background: #05080f; border: 2px solid #1c2a47; border-radius: 4px; }
.test-map .m-top { grid-area: top; } .test-map .m-left { grid-area: left; } .test-map .m-mid { grid-area: mid; } .test-map .m-keys { grid-area: keys; border-radius: 8px; }
.test-map.z-top .m-top, .test-map.z-left .m-left, .test-map.z-mid .m-mid, .test-map.z-keys .m-keys { color: #06122a; background: var(--key-y); border-color: #fff; }
.test-tour-t { font: 700 21px/1.15 var(--cond); letter-spacing: .05em; color: var(--key-y); margin-bottom: 6px !important; }

/* the line under the verdict: what the answer rests on (the judges: a GO reads as more official than the team's own rule) */
.hero-basis { flex: 0 0 100%; margin-top: -3px; font-size: 12.5px; letter-spacing: .05em; color: var(--dim); }
.hero-basis b { color: var(--amb); font-weight: 600; }
.hero-basis button { background: none; border: none; padding: 0; font: inherit; font-weight: 700; color: var(--wht); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.hero-basis button:hover { color: var(--hi); }
@media (max-height: 560px) { html:not(.flow) .hero-basis { display: none; } }
/* ABOUT in the top row */
a.about-link { display: inline-block; text-decoration: none; margin-left: 0; margin-right: 8px; }
html.flow a.about-link { font-size: 13px; padding: 5px 10px; }
/* Best Site Finder: the data card gets its small bars back */
.scan-side .fcard .scan-cell .prof-row { grid-template-columns: minmax(0, 1.5fr) 40px minmax(0, 1fr) 42px; gap: 8px; } .scan-side .fcard .scan-cell .prof-row i { display: block; }

/* after the first outside tester: say what the squares mean on the map itself, and where the other sites are */
.scan-hint { flex: none; font-size: 13.5px; letter-spacing: .05em; color: var(--amb); text-align: center; }
.scan-hint i { display: inline-block; width: 13px; height: 13px; margin-right: 7px; vertical-align: -2px; background: var(--grn); }
.scan-hint[data-m="other"] .sh-g { display: none; }
.hist-tip { color: var(--amb); } .hist-tip button { background: none; border: none; padding: 0; font: inherit; font-weight: 700; color: var(--wht); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; } .hist-tip button:hover { color: var(--hi); }

/* the user test: the task bar calls for attention when a task starts, and the tour has a card for it */
@keyframes task-call { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 209, 102, 0); } 50% { box-shadow: 0 0 0 5px var(--key-y), 0 0 26px 6px rgba(255, 209, 102, .7); } }
.test-bar.fresh { animation: task-call 1.1s ease-in-out 6; border-color: var(--key-y); }
.test-bar .test-q b { font-size: 1.1em; }
@media (prefers-reduced-motion: reduce) { .test-bar.fresh { animation: none; box-shadow: 0 0 0 4px var(--key-y); } }
.test-map { grid-template: "task task" 24px "top top" 26px "left mid" 84px "keys keys" 28px / 30% 1fr; }
.test-map .m-task { grid-area: task; border-style: dashed; }
.test-map.z-task .m-task { color: #06122a; background: var(--key-y); border-color: #fff; border-style: solid; }
