:root {
  --bg: #0a1017;
  --panel: #0f1821;
  --panel2: #142130;
  --panel3: #1a2a3b;
  --line: #213041;
  --line2: #2c3e52;
  --text: #e4ecf4;
  --muted: #8a9db0;
  --accent: #4aa8ea;
  --accent2: #2f80bd;
  --ok: #49c08a;
  --err: #ef6a5a;
  --none: #6fbf73;
  --possible: #e6cf5a;
  --likely: #f0a23c;
  --severe: #e2552c;
  --lethal: #a51818;
  --radius: 8px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --lw: 300px;
  --rw: 380px;
}
* { box-sizing: border-box; }
body {
  margin: 0; height: 100vh; display: grid; overflow: hidden;
  grid-template-columns: var(--lw) 1fr var(--rw);
  grid-template-rows: 52px 1fr;
  grid-template-areas: "top top top" "left main right";
  background: var(--bg); color: var(--text);
  font: 13px/1.5 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.hideLeft { grid-template-columns: 0 1fr var(--rw); }
body.hideRight { grid-template-columns: var(--lw) 1fr 0; }
body.hideLeft.hideRight { grid-template-columns: 0 1fr 0; }
body.hideLeft #controls, body.hideRight #results { display: none; }
body.resizing { cursor: col-resize; user-select: none; }
body.basic .expert { display: none !important; }
[hidden] { display: none !important; }
kbd {
  display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 4px; text-align: center;
  font: 600 11px/17px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text);
  background: #1d2c3c; border: 1px solid var(--line2); border-bottom-width: 2px;
}

/* ---------------------------------------------------------------- top bar */
#topbar {
  grid-area: top; display: flex; align-items: center; gap: 10px; padding: 0 14px; position: relative; z-index: 5;
  background: linear-gradient(180deg, #132232, #0e1823); border-bottom: 1px solid var(--line);
}
.brand { font-weight: 700; font-size: 17px; letter-spacing: .01em; white-space: nowrap; }
.brand .logo { color: var(--accent); margin-right: 2px; }
.brand .tag { font-weight: 400; font-size: 12px; color: var(--muted); margin-left: 6px; }
.preset { margin: 0 0 0 14px; }
.preset select { width: 270px; }
.spacer { flex: 1; }
.divider { width: 1px; height: 24px; background: var(--line2); margin: 0 2px; }
button.tb { background: transparent; border-color: transparent; color: var(--text); padding: 5px 10px; border-radius: 7px; white-space: nowrap; }
button.tb:hover, button.tb.open { background: var(--panel3); border-color: var(--line2); }
button.tb.icon { font-size: 16px; padding: 3px 9px; }
.seg { display: flex; background: #09121a; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.seg button { border: 0; background: transparent; border-radius: 999px; padding: 5px 13px; color: var(--muted); }
.seg button.on { background: var(--accent2); color: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.seg button:hover:not(.on) { color: var(--text); }
.seg.inline { display: inline-flex; margin: 6px 0 4px; }

/* ---------------------------------------------------------------- side panels */
aside { overflow-y: auto; padding: 10px 14px 18px; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
#controls { grid-area: left; background: var(--panel); border-right: 1px solid var(--line); }
#results { grid-area: right; background: var(--panel); border-left: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); padding: 4px 0 10px; }
summary {
  cursor: pointer; list-style: none; font-weight: 600; font-size: 13px; padding: 7px 0; user-select: none;
  display: flex; align-items: center; justify-content: space-between;
}
summary:hover { color: #fff; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "▾"; color: var(--muted); transition: transform .15s; }
details:not([open]) > summary::after { transform: rotate(-90deg); }
h2 { font-size: 15px; margin: 0; }
h3 { font-size: 13px; margin: 14px 0 6px; }
label { display: block; margin: 8px 0; color: var(--text); }
label.check { display: flex; gap: 7px; align-items: center; cursor: pointer; }
label.small { font-size: 12px; margin: 0; color: var(--muted); }
.row { display: flex; gap: 6px; align-items: center; margin-top: 4px; }
.unit { color: var(--muted); min-width: 28px; }
.help, .hint { color: var(--muted); font-size: 12px; margin: 3px 0; display: block; }
input[type=number], input[type=text], select {
  background: #09111a; color: var(--text); border: 1px solid var(--line2); border-radius: 6px;
  padding: 6px 8px; font: inherit; width: 100%; transition: border-color .12s, box-shadow .12s;
}
input[type=number]:hover, input[type=text]:hover, select:hover { border-color: #3a5068; }
input:focus, select:focus, button:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(74,168,234,.25); }
input[type=number]:disabled { opacity: .45; }
input[type=range] { width: 100%; accent-color: var(--accent); }
input[type=checkbox] { accent-color: var(--accent); width: 15px; height: 15px; }
button {
  background: var(--panel3); color: var(--text); border: 1px solid var(--line2); border-radius: 6px;
  padding: 6px 10px; font: inherit; cursor: pointer; transition: border-color .12s, background .12s, color .12s;
}
button:hover { border-color: var(--accent); }
button:disabled { opacity: .45; cursor: default; }
button.primary { background: var(--accent2); border-color: var(--accent2); color: #fff; font-weight: 600; }
aside button.primary { width: 100%; margin-top: 4px; }
button.primary:hover { background: var(--accent); }
button.ghost { background: transparent; }
.buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 6px; }
.buttons button { padding: 7px 4px; font-size: 12px; }
.buttons button:active { transform: translateY(1px); }
#receiverList { list-style: none; padding: 0; margin: 8px 0 0; }
#receiverList li {
  background: var(--panel2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 7px 9px; margin-bottom: 6px; cursor: pointer; transition: border-color .12s;
}
#receiverList li:hover { border-color: var(--line2); }
#receiverList li.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
#receiverList li .top { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-weight: 600; }
#receiverList li .props { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
#receiverList li .props label { margin: 0; font-size: 11px; color: var(--muted); }
#receiverList li .props label.wide { grid-column: 1 / -1; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; box-shadow: 0 0 0 2px rgba(0,0,0,.3); }
.del { padding: 0 7px; background: transparent; border-color: transparent; color: var(--muted); }
.del:hover { color: var(--err); border-color: transparent; }

/* ---------------------------------------------------------------- main scene and its overlays */
main { grid-area: main; position: relative; overflow: hidden; min-width: 0; container: main / inline-size; }
#scene { position: absolute; inset: 0; }
#scene canvas { display: block; }
#timeline { z-index: 2; }
#status {
  position: absolute; right: 12px; bottom: 98px; top: auto; display: flex; align-items: center; gap: 7px;
  background: rgba(10,17,25,.78); padding: 4px 11px; border-radius: 999px; color: var(--muted); font-size: 12px;
  border: 1px solid rgba(80,110,140,.28); backdrop-filter: blur(6px); z-index: 2;
}
#status .spin { display: none; width: 11px; height: 11px; border-radius: 50%; border: 2px solid rgba(74,168,234,.25); border-top-color: var(--accent); animation: spin .8s linear infinite; }
#status.busy .spin { display: inline-block; }
#status.busy { color: var(--text); }
@keyframes spin { to { transform: rotate(360deg); } }
#burstInfo {
  position: absolute; left: 14px; top: 12px; background: rgba(10,17,25,.78); padding: 9px 12px; z-index: 2;
  border-radius: var(--radius); max-width: 340px; border: 1px solid rgba(80,110,140,.28); backdrop-filter: blur(8px);
}
#camBar {
  position: absolute; left: 14px; bottom: 98px; display: flex; gap: 4px; align-items: center; z-index: 2; flex-wrap: wrap;
  background: rgba(10,17,25,.78); padding: 4px 5px; border-radius: 999px; border: 1px solid rgba(80,110,140,.28);
  backdrop-filter: blur(8px); color: var(--muted); max-width: calc(100% - 190px); flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
}
#camBar button { flex: none; }
#camBar .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding: 0 6px 0 8px; }
#camBar button { border-radius: 999px; padding: 3px 11px; background: transparent; border-color: transparent; color: var(--text); font-size: 12px; }
#camBar button:hover { background: var(--panel3); }
#camBar button.on { background: var(--accent2); color: #fff; }
#camBar button.free { border-color: var(--line2); }
#camBar button.free kbd { margin-left: 4px; font-size: 10px; line-height: 14px; min-width: 14px; }
#flyHint {
  position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 3; white-space: nowrap;
  background: rgba(10,17,25,.85); border: 1px solid rgba(74,168,234,.45); border-radius: 999px; padding: 6px 14px;
  font-size: 12px; color: var(--text); box-shadow: 0 0 20px rgba(74,168,234,.18); pointer-events: none;
  max-width: calc(100% - 28px); white-space: normal; text-align: center; line-height: 1.9;
}
#flyHint kbd { margin: 0 1px; }
body.flyLocked #scene { cursor: none; }
body.flying #burstInfo { display: none; }
body.flying #uwHud { top: 52px; }

/* panel toggles and resize handles at the edges of the scene */
.edgeTab {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 16px; height: 48px; padding: 0;
  background: rgba(15,24,33,.85); border: 1px solid var(--line2); color: var(--muted); font-size: 13px; line-height: 1;
  opacity: .55; transition: opacity .15s;
}
.edgeTab:hover { opacity: 1; color: var(--text); }
.edgeTab.left { left: 0; border-left: 0; border-radius: 0 6px 6px 0; }
.edgeTab.right { right: 0; border-right: 0; border-radius: 6px 0 0 6px; }
.splitter { position: absolute; top: 0; bottom: 0; width: 6px; z-index: 2; cursor: col-resize; }
.splitter.left { left: 0; } .splitter.right { right: 0; }
.splitter:hover, body.resizing .splitter { background: rgba(74,168,234,.25); }
body.hideLeft .splitter.left, body.hideRight .splitter.right { display: none; }

/* "at this moment" box from the timeline */
#tlNow { top: 12px !important; right: 14px; padding: 0 !important; width: min(320px, 48%); border: 1px solid rgba(80,110,140,.28); backdrop-filter: blur(8px); z-index: 2; }
#tlNow .tlNowHead {
  display: flex; justify-content: space-between; width: 100%; border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0; padding: 6px 10px; font-weight: 600; font-size: 12px; color: var(--muted); position: sticky; top: 0;
  background: rgba(15,23,32,.96); z-index: 1;
}
#tlNow .tlNowHead:hover { color: var(--text); }
#tlNow .tlNowBody { padding: 6px 10px 8px; }
#tlNow.collapsed { overflow: hidden; }
#tlNow.collapsed .tlNowBody { display: none; }
#tlNow.collapsed .tlNowHead { border-bottom: 0; }
#tlNow.collapsed .chev { transform: rotate(-90deg); }
#tlNow .chev { transition: transform .15s; }
body.real #tlNow { width: min(280px, 45%); max-height: 45%; opacity: .92; font-size: 11.5px; }
body.real #burstInfo { max-width: 300px; opacity: .92; }

/* ---------------------------------------------------------------- results */
.resultsHead { display: flex; align-items: center; gap: 10px; padding: 4px 0 6px; flex-wrap: wrap; }
.resultsHead h2 { margin-right: auto; }
#legend { margin-top: 8px; font-size: 12px; color: var(--muted); }
#legend .bar { height: 10px; border-radius: 3px; margin: 4px 0; }
.level { font-weight: 700; text-transform: uppercase; font-size: 10.5px; padding: 1px 7px; border-radius: 4px; color: #111; letter-spacing: .03em; }
.lv-none { background: var(--none); } .lv-possible { background: var(--possible); }
.lv-likely { background: var(--likely); } .lv-severe { background: var(--severe); color: #fff; }
.lv-lethal { background: var(--lethal); color: #fff; }
.summaryCard { background: var(--panel2); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin: 6px 0 4px; }
.summaryCard .big { font-size: 15px; font-weight: 700; }
.effect { border-top: 1px solid var(--line); padding: 8px 0; }
.effect .val { margin: 3px 0; }
.effect .src { color: var(--muted); font-size: 12px; }
.effect.pending b { color: var(--muted); }
.effect.pending .src { opacity: .6; }
.effect .when { float: right; color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.help.inline { display: inline; }
.bodyBtn { margin-top: 8px; padding: 4px 10px; font-size: 12px; }
.tl-pending { font-size: 10.5px; padding: 1px 6px; border-radius: 4px; background: #33414f; color: #b8c6d3; text-transform: uppercase; font-weight: 700; letter-spacing: .03em; }
.notes { color: var(--muted); font-size: 12px; padding-left: 16px; margin: 4px 0; }
.error { color: #ff9b8a; }
aside canvas { width: 100%; background: #09111a; border: 1px solid var(--line); border-radius: var(--radius); }
.probbar { display: flex; height: 12px; border-radius: 4px; overflow: hidden; margin: 6px 0 2px; border: 1px solid var(--line); }
.probbar div { height: 100%; }
.probtext { font-size: 12px; color: var(--muted); }
.range { color: var(--accent); font-size: 12px; }

/* ---------------------------------------------------------------- menus */
.menu {
  position: fixed; z-index: 60; min-width: 250px; max-width: 340px; padding: 5px; border-radius: 10px;
  background: #121e2b; border: 1px solid var(--line2); box-shadow: var(--shadow); animation: pop .12s ease-out;
}
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.menu > button {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; background: transparent; border: 0;
  padding: 7px 9px; border-radius: 6px;
}
.menu > button:hover:not(:disabled) { background: var(--accent2); }
.menu .mi { width: 18px; text-align: center; opacity: .9; }
.menu .ml { flex: 1; }
.menu kbd { font-size: 10px; line-height: 15px; }
.menu .sep { height: 1px; background: var(--line2); margin: 5px 4px; }
.menuHead { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding: 4px 9px; }
.menuHtml { max-height: 280px; overflow-y: auto; }
.savedRow { display: flex; align-items: stretch; border-radius: 6px; }
.savedRow:hover { background: var(--panel3); }
.savedRow .load { flex: 1; text-align: left; background: transparent; border: 0; padding: 5px 9px; display: flex; flex-direction: column; }
.savedRow .load small { color: var(--muted); font-size: 11px; }
.savedRow .rm { background: transparent; border: 0; color: var(--muted); padding: 0 9px; }
.savedRow .rm:hover { color: var(--err); }

/* ---------------------------------------------------------------- dialogs */
.modal { position: fixed; inset: 0; background: rgba(2,6,10,.6); display: grid; place-items: center; z-index: 50; backdrop-filter: blur(2px); }
.modal .card {
  background: var(--panel); border: 1px solid var(--line2); border-radius: 14px; padding: 22px 26px; max-width: 580px; width: calc(100% - 32px);
  box-shadow: var(--shadow); animation: pop .15s ease-out; max-height: calc(100vh - 40px); overflow-y: auto;
}
.modal .card.small { max-width: 420px; }
.modal .card h2 { font-size: 18px; margin-bottom: 10px; }
.modal ol { padding-left: 18px; }
.modal li { margin: 6px 0; }
.cardButtons { display: flex; gap: 8px; align-items: center; margin-top: 16px; }
.cardButtons button { padding: 7px 14px; }
.setRow { margin: 10px 0 14px; }
.setRow > b { display: block; }
.kbdGrid { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center; }
.kbdGrid h4 { grid-column: 1 / -1; margin: 10px 0 2px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.kbdGrid > span:nth-of-type(odd) { white-space: nowrap; }

/* ---------------------------------------------------------------- toasts */
#toasts { position: fixed; left: 50%; top: 62px; transform: translateX(-50%); z-index: 70; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 9px 14px; border-radius: 10px; max-width: 520px;
  background: #15222f; border: 1px solid var(--line2); box-shadow: var(--shadow); opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s;
}
.toast.in { opacity: 1; transform: none; }
.toast.ok { border-left: 3px solid var(--ok); }
.toast.err { border-left: 3px solid var(--err); }
.toast button { padding: 3px 10px; background: transparent; color: var(--accent); border-color: var(--line2); font-weight: 600; }

/* ---------------------------------------------------------------- guided tour */
.tourBlock { position: fixed; inset: 0; z-index: 80; }
.tourSpot {
  position: fixed; z-index: 81; border-radius: 10px; pointer-events: none; transition: all .3s ease;
  box-shadow: 0 0 0 9999px rgba(2,6,10,.62), 0 0 0 2px var(--accent), 0 0 24px rgba(74,168,234,.5);
}
.tourCard {
  position: fixed; z-index: 82; width: 320px; background: var(--panel); border: 1px solid var(--accent2); border-radius: 12px;
  padding: 14px 16px; box-shadow: var(--shadow); transition: left .3s ease, top .3s ease;
}
.tourCard h3 { margin: 2px 0 6px; font-size: 15px; }
.tourCard p { margin: 0; color: #c9d6e2; }
.tourStep { color: var(--muted); font-size: 11px; }
.tourCard .cardButtons { margin-top: 12px; }

/* ---------------------------------------------------------------- underwater mode of the realistic view */
#uwHud {
  position: absolute; left: 50%; top: 12px; transform: translateX(-50%); padding: 6px 12px; border-radius: 999px; font-size: 13px;
  color: #d9fbff; background: linear-gradient(90deg, rgba(4,58,70,.85), rgba(2,30,44,.7));
  border: 1px solid rgba(120,230,240,.35); box-shadow: 0 0 18px rgba(60,200,220,.25); letter-spacing: .02em;
  pointer-events: none; z-index: 2;
}
#uwHud b { color: #fff; }
#uwHud .uwIcon { color: #7fe8f0; margin-right: 2px; }
body.underwater #camBar button[data-cam="under"] { background: #0e5a66; border-color: #48c9d6; color: #e6fdff; }
body.underwater main::after {   /* soft dark vignette, like looking through a diving mask */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,15,22,.55) 100%);
}

@media (max-width: 1250px) {
  .brand .tag { display: none; }
  .preset select { width: 210px; }
}
@media (max-width: 1280px) {
  :root { --lw: 260px; --rw: 320px; }
  .tbl { display: none; }
  #burstInfo { max-width: 46%; font-size: 12px; }
  #camBar .lbl { display: none; }
}

/* narrow 3D area (small laptop, or both panels open): stack the boxes instead of overlapping them */
@container main (max-width: 760px) {
  #burstInfo { right: 14px; max-width: none !important; }
  #tlNow, body.real #tlNow { top: auto !important; bottom: 168px; left: 14px; right: 14px; width: auto; max-height: 34% !important; }
  #camBar { max-width: calc(100% - 28px); }
  #camBar button { padding: 3px 8px; }
  #camBar button.free kbd { display: none; }
  body main #status { bottom: 134px; }
}

/* ---------------------------------------------------------------- body view */
#bodyView {
  position: absolute; left: 14px; top: 12px; z-index: 4; width: min(620px, calc(100% - 28px)); max-height: calc(100% - 130px);
  display: flex; flex-direction: column; background: rgba(10,17,25,.92); border: 1px solid var(--line2); border-radius: 12px;
  box-shadow: var(--shadow); backdrop-filter: blur(8px); overflow: hidden; animation: pop .15s ease-out;
}
.bvHead { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.bvHead .bvTime { color: var(--muted); font-size: 12px; margin-right: auto; }
.bvClose { background: transparent; border-color: transparent; padding: 0 6px; color: var(--muted); }
.bvMain { display: flex; gap: 10px; min-height: 0; flex: 1; }
.bvCanvas { flex: 1.1; min-height: 240px; background: radial-gradient(circle at 50% 40%, #1b3348, #0a131c 75%); }
.bvCanvas canvas { width: 100%; height: 100%; display: block; }
.bvList { flex: 1; overflow-y: auto; padding: 8px 10px 8px 0; font-size: 12px; }
.bvPart { margin-bottom: 9px; }
.bvPartName { font-weight: 600; margin-bottom: 2px; }
.bvItem { margin: 2px 0 2px 16px; }
.bvItem.pending { color: var(--muted); }
.bvItem .when { color: var(--muted); font-size: 11px; }
.bvNote { margin: 0; padding: 6px 12px 9px; color: var(--muted); font-size: 11px; border-top: 1px solid var(--line); }
@container main (max-width: 760px) { .bvMain { flex-direction: column; } .bvCanvas { min-height: 200px; } }

#flashOverlay { position: absolute; inset: 0; background: #fffdf4; opacity: 0; pointer-events: none; z-index: 1; }
#recBadge { position: absolute; left: 50%; transform: translateX(-50%); top: 54px; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 5px 8px 5px 12px;
  background: rgba(40,8,8,.85); border: 1px solid #b83a2e; border-radius: 999px; font-weight: 700; color: #ffd9d4; font-variant-numeric: tabular-nums; }
#recBadge .dotRec { width: 10px; height: 10px; border-radius: 50%; background: #ff3b2f; animation: blink 1s infinite; }
#recBadge button { padding: 2px 10px; border-radius: 999px; background: #b83a2e; border-color: #b83a2e; color: #fff; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------------------------------------------------------------- Simple mode */
body:not(.classic) .classicOnly { display: none; }
body.simple { grid-template-columns: 0 1fr 0 !important; }
body.simple #controls, body.simple #results, body.simple .edgeTab, body.simple .splitter, body.simple #burstInfo,
body.simple #tlNow, body.simple #viewSeg, body.simple .preset, body.simple #saveBtn, body.simple .divider, body.simple #bodyView { display: none !important; }
body:not(.simple) #simple { display: none; }
body.spOverlay #camBar, body.spOverlay #status, body.spOverlay #timeline { visibility: hidden; }
body.simple #status { display: none; }
#simple { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
#simple > * { pointer-events: auto; }
.spStart {
  position: absolute; inset: 0; overflow-y: auto; padding: 28px 24px 40px; text-align: center;
  background: radial-gradient(ellipse at 50% 30%, rgba(14,30,48,.82), rgba(5,9,14,.94));
  backdrop-filter: blur(4px);
}
.spStart h1 { font-size: clamp(20px, 3.2vw, 32px); margin: 4px 0 18px; letter-spacing: -.01em; }
.spStep { display: flex; gap: 14px; justify-content: center; align-items: flex-start; margin: 0 auto 16px; max-width: 980px; text-align: left; }
.spNum { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent2); display: grid; place-items: center; font-weight: 800; margin-top: 2px; }
.spBody { flex: 1; min-width: 0; }
.spBody h3 { margin: 4px 0 8px; font-size: 16px; }
.spCards { display: flex; gap: 10px; flex-wrap: wrap; }
.spCard {
  flex: 1 1 140px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 10px;
  background: rgba(20,33,48,.9); border: 1.5px solid var(--line2); border-radius: 12px; text-align: center; transition: transform .1s, border-color .12s, background .12s;
}
.spCard:hover { transform: translateY(-2px); border-color: #4f7aa0; }
.spCard.on { border-color: #ff8a3d; background: rgba(60,34,18,.85); box-shadow: 0 0 0 3px rgba(255,138,61,.25); }
.spCard b { font-size: 14px; }
.spCard small { color: var(--muted); font-size: 11.5px; line-height: 1.3; }
.spIcon { font-size: 30px; line-height: 1.2; }
.spBoom { display: block; border-radius: 50%; margin: 6px 0; background: radial-gradient(circle, #fff7d6 0%, #ffc04d 35%, #ff6a1a 65%, rgba(255,80,20,0) 72%); }
.spBoom.s1 { width: 18px; height: 18px; margin: 15px 0; } .spBoom.s2 { width: 26px; height: 26px; margin: 11px 0; } .spBoom.s3 { width: 34px; height: 34px; margin: 7px 0; }
.spBoom.s4 { width: 42px; height: 42px; margin: 3px 0; } .spBoom.s5 { width: 48px; height: 48px; margin: 0; }
.spGo {
  margin: 10px auto 8px; padding: 14px 42px; font-size: 20px; font-weight: 800; letter-spacing: .02em; border-radius: 999px; color: #fff;
  background: linear-gradient(180deg, #ff5a3a, #c22a16); border: 0; box-shadow: 0 8px 26px rgba(226,70,40,.45), inset 0 1px 0 rgba(255,255,255,.3);
}
.spGo:hover { filter: brightness(1.1); transform: scale(1.03); }
.spNote { color: var(--muted); font-size: 12px; max-width: 620px; margin: 8px auto 0; }
.spCount { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(80px, 16vw, 180px); font-weight: 900; color: #fff;
  text-shadow: 0 0 40px rgba(255,120,60,.8); background: rgba(3,6,10,.55); pointer-events: none; }
.spCaption {
  position: absolute; left: 50%; bottom: 150px; transform: translateX(-50%); max-width: min(720px, calc(100% - 32px)); text-align: center;
  padding: 10px 18px; border-radius: 12px; font-size: clamp(14px, 1.7vw, 18px); line-height: 1.4; font-weight: 600;
  background: rgba(6,10,16,.72); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(6px); pointer-events: none;
}
.spCaption.in { animation: capIn .45s ease-out; }
@keyframes capInPhone { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes capIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.spCaption:empty { display: none; }
.spBar { position: absolute; top: 12px; left: 14px; display: flex; gap: 6px; }
.spBar button { border-radius: 999px; background: rgba(10,17,25,.82); backdrop-filter: blur(6px); }
.spResults {
  position: absolute; right: 14px; top: 12px; bottom: 140px; width: min(380px, calc(100% - 28px)); display: flex; flex-direction: column;
  background: rgba(9,15,22,.93); border: 1px solid var(--line2); border-radius: 14px; box-shadow: var(--shadow); animation: pop .2s ease-out;
}
.spResHead { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px 6px; }
.spResHead button { background: transparent; border-color: transparent; color: var(--muted); }
.spResBody { overflow-y: auto; padding: 0 12px; flex: 1; }
.spRes { border-left: 4px solid var(--c); background: rgba(20,33,48,.7); border-radius: 10px; padding: 9px 11px; margin-bottom: 8px; }
.spResTop { display: flex; gap: 10px; align-items: center; }
.spEmoji { font-size: 28px; }
.spResTop small { color: var(--muted); }
.spVerdict { font-weight: 800; font-size: 15px; color: var(--c); }
.spWhy { margin: 5px 0 2px; color: #d3dde7; }
.spRes details { margin-top: 4px; border: 0; padding: 0; }
.spRes summary { font-size: 12px; color: var(--muted); font-weight: 500; padding: 2px 0; }
.spRes ul { padding-left: 16px; margin: 4px 0; font-size: 12px; color: #c4d0dc; }
.spResFoot { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.spResFoot button { flex: 1 1 auto; }
.spExpert { background: transparent; }
@container main (max-width: 760px) {
  .spResults { left: 14px; width: auto; top: auto; bottom: 140px; max-height: 55%; }
  .spCaption { bottom: 140px; }
  body.simple .spResults:not([hidden]) ~ .spCaption { display: none; }
}

.spSpeed { display: inline-flex; background: rgba(10,17,25,.82); border: 1px solid var(--line2); border-radius: 999px; padding: 2px; backdrop-filter: blur(6px); }
.spSpeed button { border: 0; background: transparent; padding: 3px 10px; color: var(--muted); }
.spSpeed button.on { background: var(--accent2); color: #fff; }
.spSpeed[hidden] { display: none !important; }
.spLook { position: absolute; top: 52px; left: 14px; right: 410px; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.spLook .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-right: 2px; }
.spLook button { border-radius: 999px; padding: 3px 10px; font-size: 12px; background: rgba(10,17,25,.78); backdrop-filter: blur(6px); }
.spLook button.on { background: var(--accent2); border-color: var(--accent2); color: #fff; }
.spView { margin-left: auto; padding: 3px 9px; font-size: 12px; border-radius: 999px; flex: none; }
.spResTop > div { flex: 1; min-width: 0; }
@container main (max-width: 760px) { .spLook { right: 14px; } }

table.zones { width: 100%; border-collapse: collapse; font-size: 11.5px; margin-top: 6px; }
table.zones th, table.zones td { padding: 3px 4px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
table.zones td:first-child { text-align: left; white-space: normal; color: var(--muted); }
.spZones { background: rgba(20,33,48,.7); border-radius: 10px; padding: 9px 11px; margin-bottom: 10px; }
.spZones h3 { margin: 0 0 5px; font-size: 13px; }
.spZones div { margin: 2px 0; }
.spZones label { margin: 6px 0 0; font-size: 12px; color: var(--muted); }

/* ================================================================ Simple mode: light, friendly (neal.fun-like) */
body.simple { --ink: #232846; --ink2: #5b6180; --card: rgba(255,255,255,.88); --card2: rgba(255,255,255,.72); --hot: #ff5a3a; }
body.simple #topbar { background: rgba(255,255,255,.82); border-bottom: 1px solid rgba(35,40,70,.08); backdrop-filter: blur(10px); color: var(--ink); }
body.simple #topbar .brand { color: var(--ink); }
body.simple #topbar .brand .tag { color: var(--ink2); }
body.simple #topbar button.tb { color: var(--ink); }
body.simple #topbar button.tb:hover { background: rgba(35,40,70,.06); border-color: transparent; }
body.simple #detailSeg { background: rgba(35,40,70,.06); border-color: transparent; }
body.simple #detailSeg button { color: var(--ink2); }
body.simple #detailSeg button.on { background: var(--ink); color: #fff; }
body.simple #exportBtn { display: none; }

.spStart { background: linear-gradient(180deg, rgba(190,222,240,.55) 0%, rgba(214,232,240,.25) 45%, rgba(10,40,60,.15) 100%) !important;
  backdrop-filter: none !important; color: var(--ink); padding: 26px 20px 30px !important; }
.spHero { max-width: 760px; margin: 0 auto 14px; text-align: center; }
.spKicker { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: #343a5e; font-weight: 700; text-shadow: 0 0 10px rgba(255,255,255,.7); }
.spHero h1 { font-size: clamp(26px, 4.4vw, 46px) !important; line-height: 1.1; margin: 6px 0 10px !important; font-weight: 800; letter-spacing: -.02em; color: var(--ink);
  text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.spHero p { font-size: clamp(14px, 1.7vw, 17px); color: #2c3254; margin: 0 auto; max-width: 600px; text-shadow: 0 0 12px rgba(255,255,255,.75); }   /* over the sky: dark enough to read */
.spPanel { max-width: 980px; margin: 0 auto; background: var(--card); border-radius: 22px; padding: 18px 20px 16px; box-shadow: 0 20px 60px rgba(20,40,70,.25); backdrop-filter: blur(14px); }
.spPanel .spStep { margin-bottom: 12px; }
.spPanel .spBody h3 { color: var(--ink); font-weight: 800; }
.spNum { background: var(--ink) !important; color: #fff; }
.spCard { background: #fff !important; border: 2px solid rgba(35,40,70,.08) !important; color: var(--ink); box-shadow: 0 2px 6px rgba(20,40,70,.06); }
.spCard small { color: var(--ink2) !important; }
.spCard:hover { border-color: rgba(35,40,70,.25) !important; }
.spCard.on { border-color: var(--hot) !important; background: #fff6f2 !important; box-shadow: 0 0 0 3px rgba(255,90,58,.18) !important; }
.spActions { display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.spGo { margin: 4px 0 !important; }
.spRandom { padding: 12px 20px; font-size: 16px; font-weight: 700; border-radius: 999px; background: #fff; color: var(--ink); border: 2px solid rgba(35,40,70,.12); }
.spRandom:hover { border-color: var(--ink); }
.spMore { text-align: center; margin: 14px 0 0; color: rgba(255,255,255,.8); }
.spMore button { background: rgba(255,255,255,.85); color: var(--ink); border: 0; border-radius: 999px; padding: 8px 16px; font-weight: 700; margin: 0 6px; box-shadow: 0 4px 14px rgba(20,40,70,.15); }
.spMore span { color: rgba(35,40,70,.4); }
.spNote { color: rgba(255,255,255,.92) !important; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.spCount { flex-direction: column; background: rgba(230,240,248,.35) !important; color: var(--ink) !important; text-shadow: none !important; display: flex !important; align-items: center; justify-content: center; gap: 18px; }
.spCount[hidden] { display: none !important; }
.spCountNum { font-size: clamp(90px, 18vw, 200px); font-weight: 900; color: #fff; text-shadow: 0 6px 40px rgba(255,90,58,.6), 0 2px 0 rgba(35,40,70,.25); }
.spFact { max-width: 560px; margin: 0 20px; font-size: clamp(15px, 1.8vw, 19px); font-weight: 600; line-height: 1.45; text-align: center; color: var(--ink);
  background: var(--card); padding: 14px 18px; border-radius: 16px; box-shadow: 0 10px 30px rgba(20,40,70,.2); }
body.simple .spCaption { background: var(--card) !important; color: var(--ink); border: 0 !important; box-shadow: 0 10px 30px rgba(20,40,70,.25); font-weight: 700; }
body.simple .spBar button, body.simple .spLook button, body.simple .spSpeed { background: var(--card) !important; color: var(--ink); border-color: transparent !important; box-shadow: 0 3px 10px rgba(20,40,70,.15); }
body.simple .spSpeed button { color: var(--ink2); background: transparent !important; box-shadow: none; }
body.simple .spSpeed button.on, body.simple .spLook button.on { background: var(--ink) !important; color: #fff !important; }
body.simple .spLook .lbl { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
body.simple .spResults { background: rgba(255,255,255,.95) !important; color: var(--ink); border: 0 !important; }
body.simple .spResHead h2 { color: var(--ink); }
body.simple .spRes { background: #f4f6fa !important; }
body.simple .spRes small, body.simple .spRes summary { color: var(--ink2) !important; }
body.simple .spWhy { color: var(--ink) !important; }
body.simple .spRes ul { color: var(--ink2) !important; }
body.simple .spZones { background: #eef5fb !important; color: var(--ink); }
body.simple .spZones label { color: var(--ink2) !important; }
body.simple .spResFoot { border-top-color: rgba(35,40,70,.08) !important; }
body.simple .spResFoot button { background: #fff; color: var(--ink); border: 2px solid rgba(35,40,70,.1); font-weight: 700; }
body.simple .spResFoot .spShare { background: var(--hot); border-color: var(--hot); color: #fff; }
body.simple .spView { background: #fff !important; color: var(--ink); border: 1px solid rgba(35,40,70,.15) !important; }
body.simple #camBar { background: var(--card); color: var(--ink2); border-color: transparent; }
body.simple #camBar button { color: var(--ink); }
body.simple #camBar button.on { background: var(--ink); color: #fff; }
body.simple #timeline { background: linear-gradient(to top, rgba(255,255,255,.9), rgba(255,255,255,.6)); border-top-color: rgba(35,40,70,.08); color: var(--ink); }
body.simple #timeline .tl-what, body.simple #timeline .tl-ticks, body.simple #timeline .tl-speed { color: var(--ink2); }
body.simple #timeline .tl-time { color: var(--ink); }
body.simple #timeline button, body.simple #timeline select { background: #fff; color: var(--ink); border-color: rgba(35,40,70,.15); }
body.simple .tl-rail { background: rgba(35,40,70,.15); }
.spCompare { background: #fff8f0; border-radius: 10px; padding: 9px 11px; margin-bottom: 10px; color: var(--ink); }
.spCompare h3 { margin: 0 0 5px; font-size: 13px; }
.spCompare div { margin: 2px 0; }

/* phones and small tablets */
@media (max-width: 700px) {
  body { grid-template-rows: 48px 1fr; }
  .brand .tag, .tbl, #saveBtn, .divider { display: none !important; }
  #topbar { gap: 6px; padding: 0 8px; }
  .brand { font-size: 15px; }
  .seg button { padding: 4px 10px; }
  .spStart { padding: 14px 12px 24px !important; }
  .spPanel { padding: 12px; border-radius: 18px; }
  .spStep { gap: 8px !important; }
  .spNum { width: 24px !important; height: 24px !important; font-size: 13px; }
  .spCards { gap: 6px !important; }
  .spCard { flex: 1 1 calc(50% - 6px) !important; max-width: none !important; padding: 8px 6px !important; }
  .spCard b { font-size: 13px !important; }
  .spGo { padding: 12px 30px !important; font-size: 18px !important; }
  .spBar { left: 8px !important; right: 8px; flex-wrap: wrap; }
  .spBar button, .spSpeed button { font-size: 12px; padding: 4px 9px; }
  .spLook { top: auto !important; bottom: 132px; left: 0 !important; right: 0 !important; flex-wrap: nowrap !important; overflow-x: auto; padding: 0 8px 4px; scrollbar-width: none; }
  .spLook button { flex: none; }
  .spCaption { bottom: 176px !important; font-size: 14px !important; left: 12px; right: 12px; max-width: none; transform: none; }
  .spCaption.in { animation: capInPhone .45s ease-out; }
  #uwHud { top: 96px; font-size: 12px; }
  .spLook .lbl { display: none; }
  .spResults { left: 8px !important; right: 8px !important; width: auto !important; top: auto !important; bottom: 96px !important; max-height: 58% !important; border-radius: 18px 18px 14px 14px !important; }
  #camBar { display: none !important; }
  .tl-speed, .tl-what { display: none !important; }
  #flyHint, #status { display: none !important; }
}

.spGo.pulse { animation: goPulse 1.4s ease-in-out infinite; }
@keyframes goPulse { 50% { transform: scale(1.06); box-shadow: 0 8px 36px rgba(255,90,58,.7); } }

/* ================================================================ Dive into the deep (dive.js) */
#dive { position: fixed; inset: 0; z-index: 40; color: #fff; background: #0b3a5c; --c: #7c8aa5; }
#dive[hidden] { display: none; }
.dvGl { position: absolute; left: 0; top: 0; width: 100%; height: calc(100% - var(--dvTop, 0px)); display: block; z-index: 0; }
.dvTop { position: absolute; top: 0; left: 0; right: 0; z-index: 4; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 10px 16px;
  background: rgba(8,22,38,.82); color: #e6f2fb; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,.08); }
.dvTop button { background: #fff; color: #0d2236; border: 0; border-radius: 999px; padding: 6px 14px; font-weight: 700; }
.dvTop select { width: auto; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 5px 10px; font-weight: 600; }
.dvTop select option { color: #0d2236; }
.dvDist { display: flex; align-items: center; gap: 10px; margin: 0 0 0 auto; color: #a9c3d8; font-weight: 600; }
.dvDist input { width: min(260px, 40vw); accent-color: #ff6a45; }
.dvDist b { color: #fff; min-width: 56px; }
.dvScroll { position: absolute; inset: 0; overflow-y: auto; z-index: 1; overscroll-behavior: contain; }
.dvPage { position: relative; max-width: 980px; margin: 0 auto; }
.dvTitle { position: absolute; left: 0; right: 0; text-align: center; color: #0f2c45; padding: 0 20px 0 150px; }
.dvTitle h1 { font-size: clamp(34px, 6.4vw, 64px); margin: 0 0 10px; font-weight: 800; letter-spacing: -.025em; }
.dvTitle p { font-size: 17px; color: #1d3f5c; margin: 0 auto; max-width: 560px; }
.dvHint { font-size: 14px !important; color: #18405f !important; background: rgba(255,255,255,.6); display: inline-block; padding: 7px 14px; border-radius: 14px; margin-top: 14px !important; }
.dvCue { position: absolute; left: 150px; right: 0; text-align: center; color: #1d4b6e; font-weight: 700; font-size: 14px; letter-spacing: .04em; transition: opacity .4s; }
.dvCue span { display: block; font-size: 24px; animation: dvBob 1.6s ease-in-out infinite; }
@keyframes dvBob { 50% { transform: translateY(8px); } }
.dvItem { position: absolute; left: 150px; right: 16px; display: flex; gap: 20px; align-items: center; transform: translateY(-50%); }
.dvModel { flex: 1 1 46%; height: 220px; min-width: 0; }
.dvText { flex: 0 1 420px; background: rgba(6,18,32,.62); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 14px 18px 14px 18px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 14px 40px rgba(0,0,0,.3); border-left: 5px solid var(--c); transition: border-color .3s; }
.dvHead b { font-size: 19px; display: block; }
.dvHead small { color: #9fbbd0; font-weight: 600; font-size: 13px; }
.dvVerdict { display: inline-block; margin: 9px 0 6px; padding: 4px 12px; border-radius: 999px; font-weight: 800; font-size: 15px; background: var(--c); color: #fff; transition: background .3s; }
.dvItem.busy .dvVerdict, .dvItem.busy .dvWhy { opacity: .5; }
.dvWhy { font-size: 14.5px; line-height: 1.4; color: #e8f1f8; }
.dvNote { font-size: 13px; color: #9fbbd0; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.1); }
.dvZone { position: absolute; left: 150px; right: 16px; border-top: 1px dashed rgba(190,225,255,.3); }
.dvZone span { display: inline-block; margin-top: 6px; color: rgba(205,230,250,.8); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.dvFloor { position: absolute; left: 150px; right: 16px; text-align: center; color: #e9dcc0; }
.dvFloor b { font-size: 22px; }
.dvFloor p { color: rgba(240,230,210,.8); max-width: 520px; margin: 8px auto 16px; }
.dvFloor button { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 8px 18px; font-weight: 700; }
/* the depth gauge on the left */
.dvGauge { position: absolute; left: 14px; top: 0; bottom: 0; margin: auto 0; height: fit-content; width: 120px; z-index: 3; pointer-events: none; display: flex; flex-direction: column; gap: 14px;
  background: rgba(6,18,32,.66); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 16px 0 10px 14px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.dvTrack { position: relative; width: 6px; height: min(40vh, 340px); border-radius: 3px; margin-left: 4px; }
.dvBand { position: absolute; left: 0; width: 6px; background: #5fc3ea; border-radius: 3px 3px 0 0; }
.dvBand.tw { background: #2a6c9c; border-radius: 0; } .dvBand.mid { background: #17324f; border-radius: 0 0 3px 3px; }
.dvTrack span { position: absolute; left: 14px; transform: translateY(-50%); font-size: 11px; font-weight: 700; color: rgba(220,238,250,.75); letter-spacing: .03em; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.dvMark { position: absolute; left: -5px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transform: translateY(-50%); box-shadow: 0 0 0 4px rgba(255,255,255,.25), 0 2px 8px rgba(0,0,0,.5); }
.dvBurst { position: absolute; left: 14px; transform: translateY(-50%); font-style: normal; font-size: 10.5px; font-weight: 800; color: #ffb199; white-space: nowrap; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.dvBurst::before { content: ""; position: absolute; left: -19px; top: 50%; width: 12px; height: 2px; background: #ff6a45; }
.dvRead { display: flex; flex-direction: column; gap: 2px; padding-right: 8px; }
.dvDepth { font: 800 22px/1.1 ui-monospace, Menlo, monospace; }
.dvRead span { font-size: 11px; line-height: 1.3; color: #b4cde0; }
@media (max-width: 700px) {
  .dvTitle, .dvCue { padding: 0 16px; left: 0; }
  .dvItem, .dvZone, .dvFloor { left: 12px; right: 12px; }
  .dvItem { flex-direction: column; gap: 6px; }
  .dvModel { flex: none; width: 100%; height: 130px; }
  .dvText { flex: none; width: 100%; padding: 12px 14px; }
  .dvGauge { top: auto !important; bottom: 12px; left: 12px; width: auto; height: auto; margin: 0; padding: 6px 10px; border-radius: 12px; }
  .dvTrack { display: none; }
  .dvRead { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; max-width: calc(100vw - 44px); padding: 0; }
  .dvDepth { font-size: 17px; }
  .dvRead .dvTemp { display: none; }
  .dvDist { margin: 0; flex: 1 1 100%; gap: 8px; }
  .dvDist input { flex: 1; width: auto; }
  .dvLong { display: none; }
  .dvTop { gap: 8px; padding: 8px 12px; }
  .dvTop button, .dvTop select { padding: 5px 10px; font-size: 14px; }
  .dvTop select { max-width: 40vw; }
}

@media (pointer: coarse) { #camBar .free, #camBar .free + .lookMenu kbd, .menu kbd { display: none; } }
/* compact start screen: everything (and the Detonate button) visible without scrolling on a laptop */
body.simple #topbar { background: #f4f7fb; }
.spHero { margin-bottom: 10px; }
.spHero h1 { font-size: clamp(24px, 3.4vw, 40px) !important; }
.spPanel .spStep { margin-bottom: 8px; }
.spPanel .spBody h3 { margin: 2px 0 6px !important; font-size: 15px !important; }
.spCard { padding: 8px 8px !important; gap: 2px !important; }
.spIcon { font-size: 24px !important; }
.spBoom.s1 { width: 12px; height: 12px; margin: 8px 0; } .spBoom.s2 { width: 17px; height: 17px; margin: 6px 0; } .spBoom.s3 { width: 22px; height: 22px; margin: 3px 0; }
.spBoom.s4 { width: 26px; height: 26px; margin: 1px 0; } .spBoom.s5 { width: 28px; height: 28px; margin: 0; }
.spActions { position: sticky; bottom: -16px; padding: 10px 0 12px; margin: 4px -20px -16px; border-radius: 0 0 22px 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.96) 35%); }
@media (max-width: 700px) { .spActions { margin: 4px -12px -12px; bottom: -12px; } }


.brand .short { display: none; }
@media (max-width: 1250px) { body:not(.simple) .brand .full { display: none; } body:not(.simple) .brand .short { display: inline; } }
@media (max-width: 700px) { .brand .full { display: none; } .brand .short { display: inline; } }

/* keyboard users: a clear ring around whatever has focus (mouse clicks do not show it) */
button:focus-visible, .spCard:focus-visible, a:focus-visible, input[type="checkbox"]:focus-visible { outline: 3px solid #2f7fd8 !important; outline-offset: 2px; }

