/* NightSeam Web — dark night-planning UI */
:root {
  --bg: #060b14;
  --bg2: #0a1322;
  --panel: rgba(16, 29, 51, .82);
  --line: #1d3152;
  --txt: #dbe9ff;
  --muted: #7f97b8;
  --accent: #7cc4ff;
  --amber: #ffd166;
  --green: #7bf1a8;
  --radius: 14px;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--txt);
  background:
    radial-gradient(1200px 700px at 70% -10%, rgba(46, 110, 190, .22), transparent 60%),
    radial-gradient(900px 600px at 10% 110%, rgba(90, 50, 140, .16), transparent 55%),
    var(--bg);
  min-height: 100vh;
}
.hidden { display: none !important; }
.mono { font-family: var(--mono); }

/* ---------- topbar / planner chrome ---------- */
.topbar {
  display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between;
  padding: 14px 22px 10px;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 45;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.brand { display: flex; gap: 12px; align-items: center; cursor: pointer; }
.brand-ico { width: 34px; height: 34px; border-radius: 8px; filter: drop-shadow(0 0 8px rgba(124,196,255,.6)); }
.brand h1 { font-size: 21px; letter-spacing: .4px; font-weight: 700; }
.brand h1 em { color: var(--accent); font-style: normal; }
.tagline { font-size: 12px; color: var(--muted); margin-top: 2px; }

.planner-controls { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.planner-controls label { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.planner-controls select,
.planner-controls input[type="date"] {
  background: var(--panel); border: 1px solid var(--line); color: var(--txt);
  border-radius: 8px; padding: 6px 8px; font-size: 12.5px; font-family: var(--mono);
}
#tb-site { max-width: 150px; }
/* the rig selector sits in the topbar next to Site (it used to hide in the
   hamburger menu) - long preset names must not stretch the bar */
#rigSelect { max-width: 170px; }
.minalt input[type="range"] { width: 88px; accent-color: var(--accent); margin: 0; }
.minalt .mono { min-width: 40px; text-align: right; font-size: 11.5px; color: var(--txt); }
.minalt .note { font-size: 10.5px; color: var(--muted); opacity: .8; }
.scrub { display: inline-flex; align-items: center; gap: 6px; }
.scrub input[type="range"] { width: 108px; accent-color: var(--accent); margin: 0; }
.scrub strong { font-size: 11.5px; color: var(--txt); min-width: 52px; text-align: right; }
.topbar:focus-within input[type="date"]:focus,
.planner-controls select:focus { outline: 1px solid var(--accent); }

.ghost {
  background: var(--panel); border: 1px solid var(--line); color: var(--txt);
  border-radius: 8px; padding: 6px 10px; font-size: 12.5px; cursor: pointer;
  font-family: inherit;
}
.ghost:hover { border-color: var(--accent); color: var(--accent); }

.topbar-right { display: flex; gap: 8px; align-items: center; }
.nightinfo {
  font-size: 12px; color: var(--muted); font-family: var(--mono); white-space: nowrap;
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px;
  background: var(--panel);
}
#busy {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--muted); font-family: var(--mono);
}
#busy .busy-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--amber);
  animation: busyPulse 1s ease-in-out infinite;
}
@keyframes busyPulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

.menubtn { display: inline-flex; align-items: center; padding: 7px 10px; }
.menubtn svg { display: block; }

/* ---------- hamburger menu (desktop-style popover) ---------- */
.popwrap { position: relative; }
#menuPanel.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: 310px; max-width: min(92vw, 340px);
  max-height: min(72vh, 540px); overflow-y: auto;
  background: #0b1526f2; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,.5); padding: 14px;
  z-index: 60;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.menu-section { border-bottom: 1px dashed rgba(29,49,82,.6); padding: 10px 2px 12px; }
.menu-section:last-child { border-bottom: none; }
.menu-section h4 {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1.4px;
  color: var(--muted); margin-bottom: 8px; font-weight: 600;
}
.menu-section label.inline {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--muted); margin: 6px 0;
  cursor: pointer;
}
.menu-section label.inline .mono { color: var(--txt); margin-left: auto; }
.menu-section input[type="range"] { accent-color: var(--accent); margin: 6px 0; }
.menu-section input[type="checkbox"], .menu-section input[type="radio"] { accent-color: var(--accent); }
.menu-section select {
  background: var(--panel); border: 1px solid var(--line); color: var(--txt);
  border-radius: 8px; padding: 6px 8px; font-size: 12.5px; font-family: var(--mono);
}
.hint { font-size: 11px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.chkrow { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }

.theme-row { display: flex; gap: 8px; flex-wrap: wrap; }
.theme-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--panel); border: 1px solid var(--line); color: var(--txt);
  border-radius: 999px; padding: 7px 14px; font-size: 12.5px; cursor: pointer;
  font-family: inherit;
}
.theme-btn:hover { border-color: var(--accent); color: var(--accent); }
.theme-btn.active { border-color: rgba(124,196,255,.55); color: var(--accent); background: rgba(124,196,255,.1); }
.theme-btn .sw { width: 10px; height: 10px; border-radius: 50%; }

/* ---------- weather chip + submenu ---------- */
.weatherwrap { position: relative; }
.weatherbtn { white-space: nowrap; max-width: 230px; }
.weatherbtn #wxChip {
  display: inline-block; max-width: 100%; overflow: hidden;
  text-overflow: ellipsis; vertical-align: bottom; white-space: nowrap;
}
#weatherPanel.weather-panel {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: 340px; max-width: min(94vw, 360px);
  max-height: min(74vh, 560px); overflow-y: auto;
  background: #0b1526f2; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,.5); padding: 14px;
  z-index: 60;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.wx-now { display: flex; align-items: center; gap: 14px; }
.wx-icon { font-size: 30px; line-height: 1; }
.wx-big { font-size: 28px; font-weight: 700; color: var(--txt); }
.wx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 16px; margin-top: 12px; }
.wx-grid > div {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: 12px; color: var(--muted);
  border-bottom: 1px dashed rgba(29,49,82,.55); padding: 4px 0;
}
.wx-grid b { color: var(--txt); font-family: var(--mono); font-weight: 600; }
.wx-days { display: flex; gap: 8px; margin-top: 12px; }
.wx-day {
  flex: 1; text-align: center; font-size: 11px; color: var(--muted);
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 4px;
}
.wx-day .wx-di { font-size: 18px; line-height: 1.3; }
.wx-day .wx-t { color: var(--txt); font-family: var(--mono); font-size: 12px; margin-top: 2px; }
.wx-day .wx-p { margin-top: 2px; }
.wx-err { color: #ffb454; font-size: 12.5px; line-height: 1.5; }
@media (max-width: 1240px) { .weatherbtn { max-width: 160px; font-size: 11.5px; } }
@media (max-width: 900px) { .weatherbtn { max-width: 130px; } }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 6px; padding: 12px 22px 0; border-bottom: 1px solid var(--line); }
.tabs a {
  color: var(--muted); text-decoration: none; font-size: 14px; padding: 9px 18px 11px;
  border: 1px solid transparent; border-bottom: none; border-radius: 10px 10px 0 0;
  transition: color .15s;
}
.tabs a:hover { color: var(--txt); }
.tabs a.active { color: var(--accent); background: var(--panel); border-color: var(--line); }

/* ---------- content ---------- */
/* "Free space per side" (hamburger menu → Layout) removes that many pixels from
   EACH side of the content on every screen size — the desktop keeps the same
   semantics (content width = viewport - 2 * edge, static/style.css). `100%` can
   never overflow the viewport and 320px is the usable floor.
   A 1500px reading-width cap used to sit in this min() as well. It silently WON
   over the edge term on any viewport wider than 1500 + 2*edge, so the slider was
   inert below edge 210 on a 1920px screen and had NO effect at all from ~2100px
   up (2560/3440 owners: the control did nothing). The cap is gone — the slider
   decides, exactly as on the desktop. */
main {
  max-width: min(100%, max(320px, calc(100% - 2 * var(--edge, 14px))));
  margin: 0 auto;
  padding: 20px 22px 40px;
  position: relative;
}

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px;
  backdrop-filter: blur(5px);
}
.card h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); margin-bottom: 10px; font-weight: 600; }
.card .big { font-size: 26px; font-weight: 700; color: var(--txt); }
.card .sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.card .row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13.5px; border-bottom: 1px dashed rgba(29,49,82,.55); }
.card .row:last-child { border-bottom: none; }
.card .row b { font-weight: 600; }

/* ---------- pick lists ---------- */
.pick { list-style: none; }
.pick li {
  display: flex; gap: 10px; align-items: center; padding: 9px 10px; margin: 6px 0;
  background: rgba(8, 15, 28, .55); border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer; transition: border-color .15s;
}
.pick li:hover { border-color: var(--accent); }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.pick .p-name { font-size: 14px; font-weight: 600; }
.pick .p-tags { color: var(--muted); font-size: 11.5px; margin-left: 6px; font-family: var(--mono); }
.pick .p-right { margin-left: auto; text-align: right; font-size: 12px; color: var(--muted); white-space: nowrap; }
.pick .p-right b { color: var(--txt); font-size: 13px; display: block; }
.f-own { color: var(--amber); font-size: 11px; margin-left: 6px; font-family: var(--mono); }

/* ---------- sky view ---------- */
.sky-wrap { display: grid; grid-template-columns: 1fr 260px; gap: 14px; }
@media (max-width: 900px) { .sky-wrap { grid-template-columns: 1fr; } }
.sky-canvas-box { position: relative; }
canvas#sky {
  display: block; width: 100%; max-width: 80vh; aspect-ratio: 1 / 1; margin: 0 auto;
  border-radius: var(--radius); background: radial-gradient(circle at 50% 55%, #0d1b33 0%, #081022 70%);
}
.sky-side { display: flex; flex-direction: column; gap: 12px; }
.sky-side label { font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.sky-side input[type="datetime-local"] {
  background: var(--panel); border: 1px solid var(--line); color: var(--txt); border-radius: 8px;
  padding: 8px; font-size: 13px; font-family: var(--mono); width: 100%;
}
.sky-side .btnrow { display: flex; gap: 8px; }
.btn {
  flex: 1; background: var(--panel); border: 1px solid var(--line); color: var(--txt);
  border-radius: 8px; padding: 8px 10px; font-size: 13px; cursor: pointer;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary { background: rgba(124,196,255,.14); border-color: rgba(124,196,255,.5); color: var(--accent); }
.legend { list-style: none; }
.legend li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); padding: 3px 0; }
.legend .dot { width: 9px; height: 9px; }

/* ---------- catalog ---------- */
.cat-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; align-items: center; }
.cat-bar input[type="search"] {
  flex: 1; min-width: 220px; background: var(--panel); border: 1px solid var(--line); color: var(--txt);
  border-radius: 10px; padding: 10px 14px; font-size: 14px;
}
.cat-bar input[type="search"]:focus { outline: 1px solid var(--accent); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  background: var(--panel); border: 1px solid var(--line); color: var(--muted); border-radius: 999px;
  padding: 6px 13px; font-size: 12.5px; cursor: pointer;
}
.chip.on { color: var(--accent); border-color: rgba(124,196,255,.55); background: rgba(124,196,255,.1); }
.cat-count { font-size: 12.5px; color: var(--muted); margin-left: auto; }

table.cat { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.cat th {
  text-align: left; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .8px;
  padding: 8px 10px; border-bottom: 1px solid var(--line); cursor: pointer; user-select: none; white-space: nowrap;
}
table.cat th:hover { color: var(--accent); }
table.cat td { padding: 7px 10px; border-bottom: 1px solid rgba(29,49,82,.4); }
table.cat tr { cursor: pointer; }
table.cat tbody tr:hover { background: rgba(124,196,255,.07); }
td.num, th.num { text-align: right; font-family: var(--mono); }
td.frame, th.frame { text-align: right; font-family: var(--mono); font-size: 11.5px; white-space: nowrap; }
td.frame .fit { color: var(--green); }
.tags { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.tname { font-weight: 600; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 14px; font-size: 13px; color: var(--muted); }

/* ---------- modal / detail ---------- */
.modal-wrap {
  position: fixed; inset: 0; background: rgba(2, 6, 14, .72); backdrop-filter: blur(3px);
  display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 30px 16px; z-index: 40;
}
/* author rule must restore the hidden attribute: display:flex above would otherwise override it */
.modal-wrap[hidden] { display: none; }
.modal {
  width: min(900px, 100%); background: #0b1526; border: 1px solid var(--line); border-radius: 16px;
  padding: 22px 24px; box-shadow: 0 24px 70px rgba(0,0,0,.6);
  margin: auto;  /* safe vertical centering inside the flex wrapper: centers
                    when the modal fits, scrolls from the top when it doesn't */
}
.modal h2 { font-size: 22px; }
.modal .tags { font-size: 12.5px; margin: 6px 0 0; display: block; }
.modal .close {
  float: right; background: none; border: 1px solid var(--line); color: var(--muted); cursor: pointer;
  border-radius: 8px; width: 30px; height: 30px; font-size: 15px;
}
.modal .close:hover { color: var(--txt); border-color: var(--accent); }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 0 0 6px; }
.modal-head h2 { flex: 1; margin: 0; }
.modal-head .close { float: none; flex: none; }
.detail-grid { display: grid; grid-template-columns: 240px 1fr; gap: 18px; margin-top: 14px; }
@media (max-width: 720px) { .detail-grid { grid-template-columns: 1fr; } }
.objimg {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: 1px solid var(--line);
  background: #081022;
}
.objimg-ph { width: 100%; aspect-ratio: 1; border-radius: 12px; border: 1px dashed var(--line); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; text-align: center; padding: 10px; }
.meta { display: grid; grid-template-columns: 120px 1fr; gap: 4px 12px; font-size: 13.5px; align-content: start; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; }
.blurb { margin-top: 14px; font-size: 14px; line-height: 1.6; color: #c4d6f2; }
.tonight-box { margin-top: 16px; }
canvas#graph {
  width: 100%; background: #081022; border: 1px solid var(--line); border-radius: 12px; display: block;
  margin-top: 8px;
}
.graph-legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); margin-top: 8px; flex-wrap: wrap; }
.graph-legend span { display: flex; align-items: center; gap: 6px; }
.sw { width: 18px; height: 3px; border-radius: 2px; display: inline-block; }
.win-note { font-size: 13px; color: var(--green); margin-top: 6px; }
a.wiki { color: var(--accent); }

/* ---------- misc ---------- */
.splash {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  z-index: 5; min-height: 300px;
}
.splash-inner { text-align: center; color: var(--muted); font-size: 14px; }
.spinner {
  width: 42px; height: 42px; border-radius: 50%; margin: 0 auto 14px;
  border: 3px solid var(--line); border-top-color: var(--accent);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.foot { border-top: 1px solid var(--line); padding: 18px 22px 26px; text-align: center; }
.foot p { font-size: 12px; color: var(--muted); max-width: 760px; margin: 0 auto; line-height: 1.6; }
.foot .foot2 { margin-top: 6px; opacity: .75; }

.tooltip {
  position: fixed; pointer-events: none; z-index: 60; background: rgba(4, 10, 20, .95);
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 12px;
  color: var(--txt); max-width: 260px; box-shadow: 0 6px 20px rgba(0,0,0,.5);
}
.tooltip b { color: var(--accent); }

/* ---------- horizon editor ---------- */
.btnrow label { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.btnrow input[type="text"], .btnrow select, .pref-row select, .pref-row input[type="text"] {
  background: var(--panel); border: 1px solid var(--line); color: var(--txt);
  border-radius: 8px; padding: 6px 8px; font-size: 12.5px; max-width: 100px;
}
.btnrow input[type="range"] { width: 90px; accent-color: var(--accent); }
.btn.small { flex: 0 0 auto; padding: 4px 8px; font-size: 12px; }
.cal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 760px) { .cal-grid { grid-template-columns: repeat(2, 1fr); } }
.cal-grid label { font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.cal-grid output { font-family: var(--mono); color: var(--txt); font-size: 12.5px; }
.cal-grid input[type="range"] { width: 100%; margin: 0; padding: 0; accent-color: var(--accent); }
#pano-list { display: flex; flex-wrap: wrap; gap: 8px; }
#pano-list li { flex: 1 1 250px; margin: 0; }
#pano-list .p-name { font-size: 13.5px; }
#pano-list input[type="radio"] { accent-color: var(--accent); }
.pano-canvas-box { margin-top: 10px; }
#pano-canvas {
  width: 100%; max-width: 135vh; margin: 0 auto;
  border: 1px solid var(--line); border-radius: 10px;
  touch-action: none; cursor: crosshair; display: block; background: #0c1830;
}
#pano-profile { width: 100%; border: 1px solid var(--line); border-radius: 8px; margin-top: 8px; display: block; background: #081022; }
.pref-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); padding: 5px 0; gap: 10px; }
.pref-row input[type="checkbox"] { accent-color: var(--accent); }
.p-blk { color: #ff8a8a; font-size: 11px; margin-left: 6px; }
.p-vis { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.top-prefs { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.top-prefs label { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.top-prefs input[type="text"] { width: 66px; }
.top-prefs select { width: 58px; }
.top-prefs input[type="text"], .top-prefs select {
  background: var(--panel); border: 1px solid var(--line); color: var(--txt);
  border-radius: 8px; padding: 6px 8px; font-size: 12.5px; font-family: var(--mono);
}
.top-prefs input[type="checkbox"] { accent-color: var(--accent); }
.tn-chk { white-space: nowrap; }
td.pct { font-family: var(--mono); color: var(--green); white-space: nowrap; }
.btn.on { border-color: #ff8a8a; color: #ff8a8a; }
.vhidden { position: fixed; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ---------- settings (webstore parity) ---------- */
/* ("Free space per side" is handled by the earlier `main` rule) */
.iconbtn {
  background: none; border: 1px solid var(--line); color: var(--muted); cursor: pointer;
  border-radius: 8px; width: 30px; height: 30px; font-size: 15px; line-height: 1;
}
.iconbtn:hover { color: var(--txt); border-color: var(--accent); }
#tb-site { width: auto; max-width: 150px; }
.modal.settings { max-width: 860px; }
.modal.welcome h2 { text-align: center; }

/* setup dialog tabs — the same sections as the desktop's Setup dialog.
   Glass language (DESIGN.md §6): pill container, active pill = accent + dark ink */
.modal-tabs {
  display: flex; flex-wrap: wrap; gap: 2px; width: fit-content; max-width: 100%;
  margin: 2px 0 16px; padding: 4px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
}
.modal-tabs .tab {
  background: none; border: none; border-radius: 999px;
  color: var(--muted); font-family: inherit; font-weight: 600; font-size: 13px;
  padding: 7px 16px; cursor: pointer;
}
.modal-tabs .tab:hover { color: var(--txt); }
.modal-tabs .tab.active { color: #0a0d1a; background: var(--accent); }
.mtabpane > .card + .card { margin-top: 12px; }

.set-form {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px 12px; margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px;
}
.set-form label { font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.set-form input, .set-form select {
  background: var(--panel); border: 1px solid var(--line); color: var(--txt);
  border-radius: 8px; padding: 6px 8px; font-size: 13px; font-family: var(--mono);
}
.set-form .btnrow { grid-column: 1 / -1; }
/* The panels hidden with the `hidden` ATTRIBUTE (sites / rigs / custom targets,
   and the Add-rig picker) need this: an author `display` (grid above) beats the
   UA's `[hidden] { display:none }`, so without the rule every one of them shows
   up on render — exactly like `.modal-wrap[hidden]` further up. Elements hidden
   with the `.hidden` CLASS already win via `!important` and are unaffected. */
.set-form[hidden],
#set-rig-picker[hidden] { display: none; }
.chk { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; }
.chk input { accent-color: var(--accent); }

/* small screens */
@media (max-width: 640px) {
  .tagline { display: none; }
  #busy { position: absolute; right: 70px; top: 8px; }
  .scrub strong { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}