:root {
  color-scheme: dark;
  --bg: #07131f;
  --panel: #0b1c2a;
  --panel-2: #0e2434;
  --line: rgba(151, 198, 222, 0.13);
  --line-strong: rgba(151, 198, 222, 0.22);
  --text: #e9f5fb;
  --muted: #8ea8b9;
  --muted-2: #607b8e;
  --cyan: #8ee5f4;
  --blue: #63b7e5;
  --green: #83d8bd;
  --violet: #b6a6f5;
  --radius: 14px;
  --shadow: 0 16px 50px rgba(0, 0, 0, .28);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html, body { width: 100%; min-width: 320px; min-height: 100%; margin: 0; background: var(--bg); color: var(--text); }
body { min-height: 100vh; overflow-x: hidden; }
button, input, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
button:disabled { opacity: .45; cursor: not-allowed; }

.app-shell {
  width: min(1800px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 26px 14px;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 54% -18%, rgba(49, 109, 143, .17), transparent 42%),
    linear-gradient(180deg, #081724 0%, #07131f 58%, #06111b 100%);
}
.topbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.brand-lockup { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-mark { width: 34px; height: 34px; border: 1px solid rgba(142, 229, 244, .4); border-radius: 11px; position: relative; display: grid; place-items: center; background: linear-gradient(145deg, rgba(105, 202, 229, .17), rgba(33, 79, 111, .04)); box-shadow: inset 0 0 18px rgba(114, 217, 241, .08); }
.brand-mark span { position: absolute; width: 17px; height: 1px; border-radius: 2px; background: #a8edf5; box-shadow: 0 0 8px rgba(142, 229, 244, .7); }
.brand-mark span:nth-child(2) { transform: rotate(60deg); }
.brand-mark span:nth-child(3) { transform: rotate(-60deg); }
.eyebrow { color: #7395a9; font-size: 9px; line-height: 1.2; letter-spacing: .17em; font-weight: 750; }
.eyebrow-dot { display: inline-block; width: 3px; height: 3px; margin: 0 5px 2px; border-radius: 50%; background: #65bcd6; }
h1 { margin: 5px 0 0; font-size: clamp(17px, 1.65vw, 22px); line-height: 1.1; letter-spacing: -.035em; font-weight: 640; white-space: nowrap; }
.title-divider { color: #416276; font-weight: 300; padding: 0 3px; }
.title-sub { color: #90aaba; font-size: .79em; font-weight: 450; letter-spacing: -.01em; }
.topbar-meta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.meta-chip { height: 29px; padding: 0 10px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 7px; color: #88a5b7; font-size: 9px; letter-spacing: .1em; font-weight: 750; background: rgba(14, 35, 51, .55); }
.meta-chip strong { color: #d3e8f1; font-size: 10px; letter-spacing: .04em; }
.live-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #70d8b3; box-shadow: 0 0 10px rgba(112, 216, 179, .75); }
.icon-button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 8px; background: rgba(13, 35, 51, .65); cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.icon-button:hover { border-color: rgba(142, 229, 244, .55); background: rgba(40, 86, 112, .45); transform: translateY(-1px); }
.icon-button svg { width: 17px; height: 17px; fill: none; stroke: #9fc8d8; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 338px; gap: 18px; padding-top: 18px; flex: 1; min-height: 0; }
.scene-column { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.scene-frame { position: relative; min-height: 460px; height: clamp(460px, calc(100vh - 330px), 720px); overflow: hidden; border: 1px solid rgba(130, 192, 218, .18); border-radius: 15px; background: radial-gradient(ellipse at 52% 45%, #143d55 0%, #0c263a 45%, #071725 100%); box-shadow: var(--shadow); isolation: isolate; }
#scene-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; }
.scene-vignette { position: absolute; inset: 0; pointer-events: none; z-index: 1; background: linear-gradient(180deg, rgba(3, 14, 24, .32), transparent 19%, transparent 72%, rgba(3, 13, 22, .58)), linear-gradient(90deg, rgba(4, 16, 26, .25), transparent 30%, transparent 72%, rgba(4, 16, 26, .16)); }
.scene-topline { position: absolute; z-index: 2; top: 18px; left: 19px; right: 19px; display: flex; align-items: center; justify-content: space-between; gap: 12px; pointer-events: none; }
.scene-location { color: rgba(203, 232, 242, .8); font-size: 9px; font-weight: 750; letter-spacing: .15em; display: flex; align-items: center; gap: 8px; text-shadow: 0 1px 8px #061522; }
.location-icon { color: #a1edf4; font-size: 15px; }
.scene-scale { padding: 6px 9px; border: 1px solid rgba(167, 219, 236, .22); border-radius: 5px; color: rgba(184, 219, 232, .78); background: rgba(6, 23, 37, .42); font-size: 8px; letter-spacing: .13em; font-weight: 750; }
.scene-callout { position: absolute; z-index: 2; color: rgba(205, 238, 246, .72); font-size: 8px; letter-spacing: .16em; font-weight: 750; text-shadow: 0 2px 10px #061522; pointer-events: none; display: flex; align-items: center; gap: 7px; }
.callout-line { display: block; width: 22px; height: 1px; background: rgba(151, 226, 240, .7); box-shadow: 0 0 6px rgba(151, 226, 240, .5); }
.callout-vapour { top: 25%; left: 7%; }
.callout-brine { top: 67%; left: 7%; }
.callout-lattice { top: 42%; right: 6%; flex-direction: row-reverse; }
.scene-bottomline { position: absolute; z-index: 2; left: 19px; right: 19px; bottom: 17px; display: flex; align-items: end; justify-content: space-between; gap: 14px; pointer-events: none; }
.scene-caption { display: flex; flex-direction: column; gap: 5px; max-width: 430px; text-shadow: 0 2px 8px #061522; }
.caption-kicker { color: #8ee5f4; font-size: 8px; letter-spacing: .16em; font-weight: 800; }
.scene-caption > span:last-child { color: rgba(216, 238, 246, .84); font-size: 11px; line-height: 1.4; }
.scene-controls-hint { color: rgba(183, 212, 224, .58); font-size: 8px; letter-spacing: .08em; white-space: nowrap; }
kbd { padding: 3px 5px; border: 1px solid rgba(175, 220, 235, .22); border-radius: 4px; color: rgba(210, 237, 245, .78); font: inherit; font-size: 7px; }
.webgl-notice { position: absolute; z-index: 5; left: 50%; top: 50%; width: min(420px, calc(100% - 36px)); transform: translate(-50%, -50%); padding: 18px; border: 1px solid rgba(142, 229, 244, .28); border-radius: 12px; background: rgba(4, 18, 29, .9); box-shadow: 0 15px 50px rgba(0,0,0,.4); display: flex; flex-direction: column; gap: 8px; text-align: center; }
.webgl-notice strong { font-size: 14px; }
.webgl-notice span { color: #a2bbc8; font-size: 11px; line-height: 1.55; }

.transport-bar { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(180deg, rgba(14, 34, 49, .9), rgba(9, 25, 38, .9)); }
.transport-left, .transport-right { display: flex; align-items: center; gap: 6px; }
.transport-button, .quality-button, .camera-button { min-height: 32px; padding: 0 11px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #91aebe; font-size: 10px; font-weight: 650; cursor: pointer; transition: .18s ease; }
.transport-button:hover, .camera-button:hover { color: #e1f4fa; border-color: var(--line-strong); background: rgba(87, 147, 174, .11); }
.transport-button.primary { border-color: rgba(111, 207, 221, .34); background: linear-gradient(135deg, rgba(54, 139, 163, .28), rgba(35, 92, 119, .22)); color: #c8f2f6; }
.transport-button.primary:hover { border-color: rgba(142, 229, 244, .6); background: rgba(61, 143, 166, .32); }
.play-symbol { font-size: 12px; line-height: 1; }
.step-symbol { font-size: 17px; line-height: 0; }
.reset-symbol { font-size: 16px; line-height: 0; }
.speed-label { color: #69879a; font-size: 8px; letter-spacing: .12em; font-weight: 800; }
#speed-select { height: 30px; min-width: 60px; padding: 0 7px; border: 1px solid var(--line); border-radius: 6px; background: #10283a; color: #c1dce7; font-size: 10px; cursor: pointer; }
.transport-separator { height: 19px; width: 1px; margin: 0 4px; background: var(--line-strong); }
.quality-button { min-width: 42px; padding: 0 8px; color: #668398; font-size: 8px; letter-spacing: .09em; }
.quality-button.active { color: #b9e8ef; background: rgba(80, 160, 185, .16); border-color: rgba(124, 205, 223, .2); }
.camera-button { border-color: var(--line); font-size: 9px; }
.camera-button span { font-size: 15px; color: #9dd9e6; }

.telemetry-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.telemetry-card { min-width: 0; padding: 12px 13px 10px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(145deg, rgba(14, 35, 51, .86), rgba(8, 24, 37, .82)); }
.telemetry-label { color: #7d9bad; font-size: 8px; line-height: 1.35; letter-spacing: .11em; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.telemetry-unit { color: #58798d; font-size: 7px; }
.telemetry-value { margin-top: 6px; color: #e0f4f8; font-size: clamp(19px, 2vw, 25px); line-height: 1; letter-spacing: -.04em; font-weight: 560; font-variant-numeric: tabular-nums; }
.telemetry-value small { color: #8daebd; font-size: 9px; font-weight: 500; letter-spacing: 0; }
.telemetry-foot { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: #59798d; font-size: 7px; letter-spacing: .09em; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.micro-dot { width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%; }
.micro-dot.cyan { background: var(--cyan); box-shadow: 0 0 7px rgba(142,229,244,.65); }
.micro-dot.blue { background: var(--blue); }
.micro-dot.green { background: var(--green); }
.micro-dot.violet { background: var(--violet); }

.control-panel { position: relative; min-width: 0; align-self: stretch; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(180deg, rgba(13, 31, 46, .96), rgba(8, 23, 35, .97)); box-shadow: 0 14px 40px rgba(0,0,0,.18); overflow: hidden; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 17px 17px 14px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 5px 0 0; font-size: 17px; letter-spacing: -.035em; font-weight: 610; }
.panel-status { display: flex; align-items: center; gap: 6px; color: #6f9d9d; font-size: 8px; letter-spacing: .1em; font-weight: 800; }
.preset-block { padding: 14px 16px 13px; border-bottom: 1px solid var(--line); }
.section-label { display: flex; justify-content: space-between; color: #7c9aab; font-size: 8px; letter-spacing: .13em; font-weight: 800; }
.section-label span { color: #54758a; font-size: 7px; }
.preset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.preset-button { min-height: 56px; padding: 7px 4px; border: 1px solid var(--line); border-radius: 8px; background: rgba(7, 22, 34, .65); color: #7894a6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; font-size: 8px; font-weight: 650; cursor: pointer; transition: .18s ease; }
.preset-button:hover { border-color: rgba(133, 204, 222, .35); color: #c7e5ee; }
.preset-button.active { border-color: rgba(119, 209, 226, .45); color: #c7eff4; background: linear-gradient(145deg, rgba(43, 116, 143, .27), rgba(16, 48, 68, .38)); box-shadow: inset 0 0 14px rgba(86, 192, 214, .05); }
.preset-icon { font-size: 16px; line-height: 1; color: #a5e5ed; }
.control-list { padding: 2px 17px 4px; }
.control-item { padding: 12px 0 10px; border-bottom: 1px solid rgba(151, 198, 222, .08); }
.control-item:last-child { border-bottom: 0; }
.control-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.control-heading label { color: #bed2dc; font-size: 10px; font-weight: 560; }
.control-heading output { color: #9de0e9; font-size: 10px; font-weight: 680; font-variant-numeric: tabular-nums; white-space: nowrap; }
input[type="range"] { width: 100%; height: 4px; display: block; margin: 0; border-radius: 8px; appearance: none; background: linear-gradient(90deg, #398eaa, #62c7d8); cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { width: 13px; height: 13px; border: 2px solid #d6f5f7; border-radius: 50%; appearance: none; background: #4dabc0; box-shadow: 0 0 0 3px rgba(78, 180, 201, .15), 0 0 10px rgba(101, 220, 235, .25); }
input[type="range"]::-moz-range-thumb { width: 10px; height: 10px; border: 2px solid #d6f5f7; border-radius: 50%; background: #4dabc0; box-shadow: 0 0 0 3px rgba(78, 180, 201, .15); }
.range-ends { display: flex; justify-content: space-between; margin-top: 6px; color: #557487; font-size: 7px; letter-spacing: .02em; }
.panel-footer { padding: 12px 17px 14px; border-top: 1px solid var(--line); background: rgba(5, 17, 27, .35); }
.clock-row { display: flex; align-items: center; justify-content: space-between; color: #638397; font-size: 8px; letter-spacing: .12em; font-weight: 800; }
.clock-row strong { color: #c2e9ef; font-size: 10px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.clock-track { height: 3px; margin-top: 9px; border-radius: 5px; background: rgba(95, 141, 164, .15); overflow: hidden; }
.clock-track span { display: block; width: 0%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #4f9bb8, #a3edf0); box-shadow: 0 0 8px rgba(113, 217, 232, .5); transition: width .3s linear; }
.panel-footer-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; color: #6d8da0; font-size: 8px; }
#science-toggle { padding: 0; border: 0; background: transparent; color: #9fdce7; font-size: 9px; font-weight: 650; cursor: pointer; }
#science-toggle span { display: inline-block; margin-left: 4px; transition: transform .2s; }
#science-toggle[aria-expanded="true"] span { transform: rotate(180deg); }
.science-panel { border-top: 1px solid var(--line); background: #091a28; }
.science-panel[open] { max-height: 58vh; overflow: auto; }
.science-panel > summary { display: none; }
.science-content { padding: 15px 17px 18px; }
.science-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.science-title-row h3 { margin: 0; font-size: 14px; font-weight: 650; }
.science-tag { color: #6b91a4; font-size: 7px; letter-spacing: .13em; font-weight: 800; }
.science-content p { margin: 10px 0; color: #8ca8b8; font-size: 9px; line-height: 1.55; }
.equation-block { margin-top: 9px; padding: 9px 10px; border: 1px solid rgba(134, 190, 212, .11); border-radius: 7px; background: rgba(20, 50, 69, .28); }
.equation-label { margin-bottom: 5px; color: #6e9bae; font-size: 7px; letter-spacing: .12em; font-weight: 800; }
.equation-block code { color: #c7eaf0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 9px; }
.science-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 10px; margin-top: 11px; }
.science-grid div { display: flex; flex-direction: column; gap: 3px; }
.science-grid b { color: #a6dce6; font-size: 9px; }
.science-grid span { color: #718fa1; font-size: 8px; line-height: 1.4; }
.validation-box { margin-top: 13px; padding: 10px; border: 1px solid rgba(116, 211, 182, .22); border-radius: 8px; background: rgba(36, 91, 80, .11); }
.validation-head { display: flex; align-items: center; justify-content: space-between; color: #81b9a8; font-size: 7px; letter-spacing: .13em; font-weight: 800; }
.validation-status { color: #8cdbbd; }
.validation-box > strong { display: block; margin-top: 7px; color: #c9e8e4; font-size: 9px; }
.validation-values { display: flex; gap: 12px; margin-top: 8px; color: #739a94; font-size: 7px; letter-spacing: .08em; }
.validation-values b { display: block; margin-top: 3px; color: #d5f0e9; font-size: 9px; letter-spacing: 0; }
.validation-diff { margin-top: 8px; color: #7fa99d; font-size: 8px; }
.validation-diff b { color: #9de0c4; }
.science-content p.limitations { color: #6f8a9a; font-size: 8px; }
.science-content p.disclaimer { padding-top: 8px; border-top: 1px solid var(--line); color: #8ba7b6; font-size: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.app-footer { min-height: 34px; display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 10px 2px 0; color: #4d6c80; font-size: 7px; letter-spacing: .12em; font-weight: 750; }
.footer-mark { color: #7d9eaf; }
.footer-sep { padding: 0 8px; color: #34536a; }
.footer-right { display: flex; align-items: center; gap: 8px; }
.footer-pill { padding: 4px 6px; border: 1px solid rgba(112, 164, 188, .12); border-radius: 4px; color: #638397; font-size: 6px; }
.footer-version { color: #4d7187; }

@media (min-width: 1500px) {
  .workspace { grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; }
  .scene-frame { height: clamp(500px, calc(100vh - 330px), 800px); }
}
@media (max-width: 1120px) {
  .app-shell { padding-left: 16px; padding-right: 16px; }
  .workspace { grid-template-columns: minmax(0, 1fr) 310px; gap: 12px; }
  .telemetry-card { padding: 10px 9px; }
  .telemetry-label { font-size: 7px; }
  .transport-button { padding: 0 8px; }
  .callout-vapour { left: 4%; }
  .callout-brine { left: 4%; }
}
@media (max-width: 860px) {
  .topbar { min-height: 70px; }
  .workspace { grid-template-columns: 1fr; gap: 12px; }
  .scene-frame { height: min(64vh, 620px); min-height: 380px; }
  .control-panel { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .panel-heading { grid-column: 1 / -1; }
  .preset-block { border-right: 1px solid var(--line); }
  .control-list { padding-bottom: 12px; }
  .panel-footer { grid-column: 1 / -1; }
  .science-panel { grid-column: 1 / -1; }
  .science-panel[open] { max-height: 48vh; }
  .app-footer { align-items: center; }
}
@media (max-width: 560px) {
  .app-shell { padding: 0 10px 10px; }
  .topbar { min-height: 64px; gap: 8px; }
  .brand-lockup { gap: 9px; }
  .brand-mark { width: 29px; height: 29px; border-radius: 9px; }
  .brand-mark span { width: 14px; }
  .eyebrow { font-size: 7px; letter-spacing: .12em; }
  h1 { margin-top: 4px; font-size: 16px; }
  .title-sub, .title-divider { display: none; }
  .topbar-meta { gap: 5px; }
  .meta-chip { height: 25px; padding: 0 7px; font-size: 7px; }
  .seed-chip { display: none; }
  .icon-button { width: 30px; height: 30px; }
  .workspace { padding-top: 10px; gap: 9px; }
  .scene-column { gap: 8px; }
  .scene-frame { height: 54vh; min-height: 340px; max-height: 500px; border-radius: 11px; }
  .scene-topline { top: 12px; left: 12px; right: 12px; }
  .scene-location { font-size: 7px; letter-spacing: .1em; gap: 5px; }
  .location-icon { font-size: 12px; }
  .scene-scale { padding: 5px 6px; font-size: 6px; }
  .scene-callout { display: none; }
  .scene-bottomline { left: 12px; right: 12px; bottom: 12px; }
  .scene-caption > span:last-child { font-size: 9px; max-width: 250px; }
  .scene-controls-hint { font-size: 6px; }
  kbd { font-size: 6px; padding: 2px 3px; }
  .transport-bar { min-height: 43px; padding: 4px; gap: 4px; border-radius: 8px; }
  .transport-left, .transport-right { gap: 2px; }
  .transport-button { min-height: 30px; padding: 0 6px; gap: 4px; font-size: 8px; }
  .transport-button .reset-symbol { display: none; }
  .transport-right { gap: 3px; }
  .speed-label { display: none; }
  #speed-select { min-width: 51px; height: 28px; padding: 0 4px; font-size: 8px; }
  .transport-separator { margin: 0 2px; }
  .quality-button { min-width: 31px; min-height: 28px; padding: 0 4px; font-size: 7px; }
  .camera-button { min-height: 28px; padding: 0 5px; font-size: 0; }
  .camera-button span { font-size: 14px; }
  .telemetry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .telemetry-card { padding: 9px 10px 8px; border-radius: 8px; }
  .telemetry-label { font-size: 7px; }
  .telemetry-value { margin-top: 5px; font-size: 21px; }
  .telemetry-foot { margin-top: 6px; font-size: 6px; }
  .control-panel { display: block; border-radius: 10px; }
  .panel-heading { padding: 12px 13px 10px; }
  .panel-heading h2 { font-size: 15px; }
  .preset-block { padding: 11px 13px 10px; border-right: 0; }
  .preset-button { min-height: 47px; font-size: 7px; }
  .preset-icon { font-size: 14px; }
  .control-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; padding: 0 13px 8px; }
  .control-item { padding: 10px 0 8px; }
  .control-heading { display: block; margin-bottom: 8px; }
  .control-heading label { display: block; min-height: 24px; font-size: 9px; line-height: 1.3; }
  .control-heading output { display: block; margin-top: 3px; font-size: 9px; }
  .range-ends { font-size: 6px; }
  .panel-footer { padding: 10px 13px 11px; }
  .science-content { padding: 13px; }
  .science-panel[open] { max-height: 52vh; }
  .app-footer { min-height: 31px; padding-top: 8px; font-size: 6px; }
  .footer-right { gap: 4px; }
  .footer-pill { display: none; }
  .footer-version { font-size: 6px; }
}
@media (max-width: 360px) {
  .meta-chip { display: none; }
  .transport-button { padding: 0 5px; font-size: 7px; }
  .camera-button { display: none; }
  .control-list { column-gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

body.embed-mode .app-shell { padding: 0; }
body.embed-mode .topbar, body.embed-mode .app-footer { display: none; }
body.embed-mode .workspace { padding: 0; grid-template-columns: minmax(0, 1fr) 300px; gap: 8px; min-height: 100vh; }
body.embed-mode .scene-frame { height: calc(100vh - 116px); border-radius: 0; }
body.embed-mode .telemetry-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) {
  body.embed-mode .workspace { display: flex; flex-direction: column; }
  body.embed-mode .scene-frame { height: 58vh; min-height: 300px; }
  body.embed-mode .control-panel { display: block; }
}
