@font-face {
  font-family: Montserrat;
  src: url("/fonts/Montserrat-Light.ttf") format("truetype");
  font-weight: 300;
}
@font-face {
  font-family: Montserrat;
  src: url("/fonts/Montserrat-Regular.ttf") format("truetype");
  font-weight: 400;
}
@font-face {
  font-family: Montserrat;
  src: url("/fonts/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700;
}
@font-face {
  font-family: Montserrat;
  src: url("/fonts/Montserrat-Black.ttf") format("truetype");
  font-weight: 900;
}

:root {
  --navy: #000b1c;
  --blue: #005ce2;
  --blue5: #002868;
  --red: #bf0a30;
  --gray2: #d6d6d6;
  --gray3: #b0b0b0;
  --gray5: #424040;
  --panel: #071428;
  --line: rgba(255, 255, 255, 0.12);
  --ink: #ffffff;
  --top: #050f1f;
  --btn: #0c1c36;
  --input: #050f1f;
  --link: #f4f7ff;
  --link-hover: #ffffff;
  --nav-on: #ffffff;
}
html[data-theme="light"] .chip.ok { color: #0b6b3c; border-color: #0b6b3c; }
html[data-theme="light"] .chip.bad { color: #9b1028; }
html[data-theme="light"] .cfg-err { color: #9b1028; }
html[data-theme="light"] {
  --navy: #eef2f7;
  --panel: #ffffff;
  --line: rgba(0, 11, 28, 0.14);
  --ink: #000b1c;
  --gray2: #1a2740;
  --gray3: #3d4a63;
  --gray5: #5c6578;
  --top: #ffffff;
  --btn: #ffffff;
  --input: #ffffff;
  --link: #005ce2;
  --link-hover: #002868;
  --nav-on: #000b1c;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  background: var(--navy);
  color: var(--ink);
  font-family: Montserrat, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}
a:hover { color: var(--link-hover); }
.pages a, .lib-card { text-decoration: none; }

.top {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: var(--top);
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.mark { font-weight: 900; letter-spacing: 3px; color: var(--blue); }
.name { font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 13px; }
.pages { display: flex; gap: 4px; }
.pages a {
  color: var(--gray3);
  text-decoration: none;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.pages a.on { color: var(--nav-on); border-bottom: 2px solid var(--blue); }
.pages a.nav-ico {
  display: grid;
  place-items: center;
  padding: 8px 10px;
  color: var(--gray3);
  position: relative;
}
.ai-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--red);
  vertical-align: middle;
}
.parse-out {
  white-space: pre-wrap;
  max-height: 280px;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font-size: 12px;
}
.alert-dot {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 14px;
  text-align: center;
}
.pages a.nav-ico.on, .pages a.nav-ico:hover { color: var(--nav-on); }
.card-pick {
  min-width: 240px;
  max-width: 360px;
  margin-left: 8px;
  background: var(--btn);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}
.actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

button, .pick {
  background: var(--btn);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  cursor: pointer;
}
button.primary { background: var(--blue); border-color: var(--blue); }
button:disabled { opacity: 0.4; cursor: not-allowed; }
button.warn { background: var(--red); border-color: var(--red); }

.chip {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid var(--line);
}
.chip.ok { color: #7dffb3; border-color: #1d6b44; }
.chip.bad { color: #ff8aa0; border-color: var(--red); }
.chip.wait { color: var(--gray3); }

.desk {
  height: calc(100vh - 56px);
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr) 300px;
  overflow: hidden;
}
.desk.ingest {
  grid-template-columns: 184px minmax(0, 1fr);
}
.desk > * {
  min-width: 0;
  min-height: 0;
}
.desk.ingest .stage-wrap,
.desk.ingest .tools { display: none; }
.desk:not(.ingest) .bench { display: none; }

.steps {
  border-right: 1px solid var(--line);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.step {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px 10px;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  width: 100%;
}
.step.on { border-color: var(--blue); background: rgba(0, 92, 226, 0.12); }
.step .n {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  font-weight: 900;
  font-size: 12px;
  background: var(--btn);
}
.step.on .n { background: var(--blue); color: #fff; }
.step .t { font-weight: 800; font-size: 13px; }
.step .h { font-weight: 400; font-size: 11px; color: var(--gray3); margin-top: 2px; }

.stage-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #030914;
  isolation: isolate;
}
.stage-label {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 0;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray3);
  font-weight: 700;
}
.hand-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 8px;
  color: var(--gray3);
}
.hand-btn.on {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}
body.hand-on, body.hand-on .hits, body.hand-on .hit { cursor: grab; }
body.hand-on .hit.drag { cursor: grabbing; }
.hits {
  position: absolute;
  inset: 0;
  z-index: 3;
}
.hit {
  position: absolute;
  box-sizing: border-box;
  border: 1.5px dashed rgba(255, 255, 255, 0.4);
  background: rgba(0, 92, 226, 0.04);
}
.hit.on {
  border: 2px solid var(--blue);
  background: rgba(0, 92, 226, 0.12);
}
.hit span {
  position: absolute;
  top: 2px;
  left: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 4px #000;
}
.well {
  flex: 1;
  min-width: 0;
  min-height: 0;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 20px;
  isolation: isolate;
}
.stage {
  position: relative;
  width: 0;
  height: 0;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.bench {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--top);
}
.bench-col {
  overflow: auto;
  padding: 18px 20px 40px;
}
.bench-col + .bench-col { border-left: 1px solid var(--line); }
.bench h2 { margin: 0 0 10px; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; }
.laws-mini {
  font-size: 12px;
  color: var(--gray2);
  line-height: 1.45;
  margin: 0 0 16px;
  padding-left: 16px;
}
.stage-rows { margin: 0 0 14px; }
.stage-rows .pick-row { cursor: pointer; }
#frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1080px;
  border: 0;
  background: #000;
  transform-origin: 0 0;
}

.tools {
  border-left: 1px solid var(--line);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 12px;
  background: var(--panel);
}
.tools h2 {
  margin: 0 0 6px;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.tools p.lead {
  margin: 0 0 14px;
  color: var(--gray3);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 400;
}

.grid { display: grid; gap: 8px; }
.choice {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px;
}
.choice.on { border-color: var(--blue); background: rgba(0, 92, 226, 0.16); }
.choice b { display: block; font-size: 13px; }
.choice span { display: block; color: var(--gray3); font-size: 12px; font-weight: 400; margin-top: 3px; }

label.f { display: block; margin: 0 0 12px; }
label.f span {
  display: block;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gray3);
  margin-bottom: 6px;
  font-weight: 700;
}
input, textarea, select {
  width: 100%;
  background: var(--input);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 9px 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 400;
}
textarea { min-height: 120px; resize: vertical; }
input:disabled { opacity: 0.7; }

.panel-ed {
  border: 1px solid var(--line);
  padding: 10px;
  margin-bottom: 10px;
}
.panel-ed header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray3);
}

.issues { display: grid; gap: 8px; }
.issue {
  padding: 10px 12px;
  border-left: 4px solid var(--gray5);
  background: var(--input);
  font-size: 13px;
}
.issue.fail { border-color: var(--red); }
.issue.warn { border-color: #c9a227; }

#toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--btn);
  border: 1px solid var(--blue);
  padding: 10px 16px;
  font-size: 13px;
}

.lays {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.lay {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 10px;
  text-align: left;
}
.lay b { font-size: 12px; }
.lay span { font-size: 11px; color: var(--gray3); font-weight: 400; }
.lay.on { border-color: var(--blue); background: rgba(0, 92, 226, 0.16); }
.mini {
  height: 40px;
  display: grid;
  gap: 4px;
  align-items: stretch;
}
.mini i { background: rgba(255,255,255,0.18); display: block; }
.mini.dual, .mini.three { grid-template-columns: repeat(2, 1fr); }
.mini.three { grid-template-columns: repeat(3, 1fr); }
.mini.vs { grid-template-columns: 1fr auto 1fr; align-items: center; }
.mini.vs em { font-size: 9px; color: var(--gray3); font-style: normal; font-weight: 900; }
.mini.stack { grid-template-columns: 1.2fr 0.8fr; }
.mini.stack span { display: grid; gap: 3px; }
.mini.rank { grid-template-rows: repeat(4, 1fr); }
.mini .xl { min-height: 36px; }
.mini .q { width: 70%; }
.mini .lg { min-height: 36px; }
.bgs { display: grid; gap: 8px; }
.bg { text-align: left; min-height: 44px; }
.bg.dark-streak { background: linear-gradient(90deg, #000b1c, #002868); }
.bg.light-streak { background: linear-gradient(90deg, #003587, #005ce2); }
.bg.split { background: linear-gradient(90deg, #000b1c 50%, #002868 50%); }
.bg.navy { background: #000b1c; }
.bg.glass { background: radial-gradient(circle at 20% 0, #005ce2, #000b1c 70%); }
.bg.on { outline: 2px solid #fff; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.chip-row .choice, .chip-row button { padding: 7px 10px; }

.icons {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 24px;
  margin: 2px 0 28px;
  align-items: flex-start;
}
.src-group {
  margin: 18px 0 12px;
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 700;
}
.src-group:first-of-type { margin-top: 4px; }
button.src-icon,
.src-icon {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 76px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  letter-spacing: 0;
}
button.src-icon:hover,
button.src-icon:focus,
.src-icon:hover,
.src-icon:focus {
  background: transparent;
  border: 0;
  outline: none;
  box-shadow: none;
  transform: translateY(-4px);
}
.src-icon img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.45));
  pointer-events: none;
}
.src-icon span {
  font-size: 10px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
}
.src-icon:hover img { filter: drop-shadow(0 10px 18px rgba(0,92,226,.5)); }

.row3 {
  display: grid;
  grid-template-columns: 1fr 72px 1fr;
  gap: 6px;
  margin-bottom: 6px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 8, 20, 0.72);
  display: grid;
  place-items: center;
  z-index: 20;
}
.modal[hidden] { display: none; }
.sheet {
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 18px;
}
.sheet header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  gap: 12px;
}
.mk { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gray3); font-weight: 700; }
.mt { font-size: 22px; font-weight: 900; }
.mt a { color: var(--link); text-decoration: underline; text-underline-offset: 4px; }
.release-row {
  display: grid;
  grid-template-columns: 1fr 36px;
  gap: 6px;
  align-items: stretch;
  margin-bottom: 6px;
}
.release-row .release { margin-bottom: 0; }
.visit {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--btn);
  color: var(--gray2);
}
.visit:hover { color: var(--nav-on); border-color: var(--blue); }
.q-item { display: block; width: 100%; text-align: left; margin-bottom: 6px; }
.q-item.on { border-color: var(--blue); }
.viz {
  background: #030914;
  border: 1px solid var(--line);
  padding: 12px;
  margin: 0 0 14px;
}
.viz-row { display: grid; grid-template-columns: 110px 1fr 64px; gap: 8px; align-items: center; margin-bottom: 8px; font-size: 12px; }
.viz-row b { font-size: 13px; }
.viz-track { height: 14px; background: rgba(255,255,255,.08); }
.viz-fill { height: 100%; background: var(--blue); }
.viz-fill.women { background: var(--red); }
.viz-fill.neutral { background: var(--gray3); }
.viz-pie { display: flex; align-items: center; gap: 14px; }
.viz-pie svg { flex: none; }
.releases { max-height: 280px; overflow: auto; margin: 0 0 10px; }
.release {
  display: block;
  width: 100%;
  text-align: left;
  margin-bottom: 6px;
  padding: 8px 10px;
}
.release b { font-size: 13px; }
.release .blurb {
  display: block;
  color: var(--gray3);
  font-size: 12px;
  font-weight: 400;
  margin-top: 3px;
  line-height: 1.3;
}
.release .when {
  display: block;
  color: var(--gray3);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}
.release.on { border-color: var(--blue); }
.picks { margin: 0 0 12px; }
.pick-row {
  display: grid;
  grid-template-columns: 22px 1fr 70px;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.kit-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}
.kit-page h1 { font-size: 28px; margin: 0 0 8px; }
.kit-page .sub { color: var(--gray3); margin: 0 0 28px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.swatch { width: 92px; }
.swatch i {
  display: block;
  height: 56px;
  border: 1px solid var(--line);
}
.swatch b, .swatch em {
  display: block;
  font-style: normal;
  font-size: 11px;
  margin-top: 4px;
}
.swatch em { color: var(--gray3); font-weight: 400; }
.dead i { outline: 2px solid var(--red); }
.laws { padding-left: 18px; color: var(--gray2); }
.laws li { margin: 0 0 8px; }
.field-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.field-table th, .field-table td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 8px 6px;
}
.field-table th { color: var(--gray3); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }

.lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.lib-card {
  display: block;
  padding: 0 0 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
}
.lib-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
  margin-bottom: 10px;
}
.lib-card b { display: block; font-size: 15px; margin: 0 14px 6px; }
.lib-card span { color: var(--gray3); font-size: 12px; margin: 0 14px; }
.lib-card:hover { border-color: var(--blue); }

.cfg-grid {
  display: grid;
  gap: 12px;
  margin: 0 0 32px;
}
.cfg-card {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 14px 16px;
}
.cfg-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.cfg-card header b { display: block; font-size: 15px; }
.cfg-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
.cfg-card h3 { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--gray3); margin: 14px 0 6px; }
.cfg-card details { margin-top: 10px; }
.cfg-card summary { cursor: pointer; color: var(--gray3); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.cfg-list { margin: 0; padding-left: 18px; color: var(--gray2); font-size: 13px; }
.cfg-list li { margin: 0 0 4px; }
.cfg-err, .cfg-live { color: #ff8aa0; font-size: 12px; }
.cfg-live { color: var(--gray2); }
.cfg-card code { font-size: 11px; word-break: break-all; }
.cfg-card.on { border-color: var(--blue); }
.cfg-card.is-disabled { opacity: 0.55; }
.people-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cfg-token {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px dashed var(--line);
  color: var(--ink);
  font-size: 13px;
  word-break: break-all;
}
.app-mark { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 24px; }
.choice-row .cfg-card { cursor: pointer; text-align: left; }
.choice-row .cfg-card b, .pick-row b { display: block; }
.choice-row .cfg-card .sub, .pick-row em { display: block; font-style: normal; color: var(--gray3); font-weight: 400; font-size: 12px; }
.pdf-frame {
  width: 100%;
  height: min(72vh, 820px);
  border: 1px solid var(--line);
  background: var(--panel);
}
.lockup-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 24px; }
.lockup-row img { width: 100%; background: #fff; border: 1px solid var(--line); }
#boot-film {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #000b1c;
  display: grid;
  place-items: center;
}
#boot-film video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#boot-film .boot-mark {
  position: absolute;
  width: 96px;
  height: 96px;
  border-radius: 22px;
  bottom: 48px;
  left: 48px;
}
#boot-film .boot-status {
  position: absolute;
  bottom: 56px;
  left: 164px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 12px;
}
.boot-skip {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
}
.cfg-card select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 8px 10px;
  background: var(--input);
  color: var(--ink);
  border: 1px solid var(--line);
  font: inherit;
}
.who-bar { display: flex; align-items: center; gap: 8px; margin-right: 10px; }
.who-bar span { font-size: 12px; color: var(--gray3); }
button.ico-btn {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--gray3);
  letter-spacing: 0;
}
button.ico-btn:hover,
button.ico-btn:focus {
  background: transparent;
  border: 0;
  outline: none;
  box-shadow: none;
  color: var(--nav-on);
}
button.ico-btn svg { display: block; }
button.ico-btn svg[hidden] { display: none; }

.group {
  border: 1px solid var(--line);
  margin: 0 0 8px;
  background: var(--top);
}
.group-h {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 10px 12px;
  background: transparent;
  border: 0;
}
.group-h .gk {
  display: block;
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gray3);
  font-weight: 700;
  margin-bottom: 2px;
}
.group-h .gt {
  display: block;
  font-size: 13px;
  font-weight: 800;
}
.group-h .chev {
  flex: none;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--gray3);
  border-bottom: 2px solid var(--gray3);
  transform: rotate(-45deg);
  margin-top: 4px;
}
.group.open .chev {
  transform: rotate(45deg);
  margin-top: -2px;
}
.group-b {
  display: none;
  padding: 8px 10px 12px;
  border-top: 1px solid var(--line);
}
.group.open .group-b { display: block; }
.group .lead { margin: 0 0 8px; }

/* Desktop shell — native Liquid Glass shows through. Browser path unchanged. */
html[data-shell="desktop"],
html[data-shell="desktop"] body {
  background: transparent;
}
html[data-shell="desktop"] .top {
  background: rgba(5, 15, 31, 0.28);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border-bottom-color: rgba(255, 255, 255, 0.14);
  padding-left: 88px;
  -webkit-app-region: drag;
  app-region: drag;
  cursor: grab;
}
html[data-shell="desktop"] .top a,
html[data-shell="desktop"] .top button,
html[data-shell="desktop"] .top input,
html[data-shell="desktop"] .top select,
html[data-shell="desktop"] .top textarea,
html[data-shell="desktop"] .top label,
html[data-shell="desktop"] .top .card-pick,
html[data-shell="desktop"] .top .nav-ico {
  -webkit-app-region: no-drag;
  app-region: no-drag;
  cursor: pointer;
}
html[data-shell="desktop"][data-theme="light"] .top {
  background: rgba(255, 255, 255, 0.42);
  border-bottom-color: rgba(0, 11, 28, 0.12);
}
html[data-shell="desktop"] .steps,
html[data-shell="desktop"] .tools,
html[data-shell="desktop"] .bench,
html[data-shell="desktop"] .stage-wrap,
html[data-shell="desktop"] .sheet,
html[data-shell="desktop"] .card,
html[data-shell="desktop"] .lib-card,
html[data-shell="desktop"] .panel {
  background: rgba(7, 20, 40, 0.42);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
}
html[data-shell="desktop"][data-theme="light"] .steps,
html[data-shell="desktop"][data-theme="light"] .tools,
html[data-shell="desktop"][data-theme="light"] .bench,
html[data-shell="desktop"][data-theme="light"] .stage-wrap,
html[data-shell="desktop"][data-theme="light"] .sheet,
html[data-shell="desktop"][data-theme="light"] .card,
html[data-shell="desktop"][data-theme="light"] .lib-card,
html[data-shell="desktop"][data-theme="light"] .panel {
  background: rgba(255, 255, 255, 0.55);
}
@media (prefers-reduced-motion: no-preference) {
  html[data-shell="desktop"] .sheet {
    animation: cks-spring-in 420ms cubic-bezier(0.22, 1.2, 0.36, 1);
  }
  html[data-shell="desktop"] #toast:not([hidden]) {
    animation: cks-spring-in 380ms cubic-bezier(0.22, 1.2, 0.36, 1);
  }
}
@keyframes cks-spring-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-shell="desktop"] .sheet,
  html[data-shell="desktop"] #toast {
    animation: none;
  }
}
