@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("./assets/fonts/IBMPlexSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("./assets/fonts/IBMPlexSans-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("./assets/fonts/IBMPlexSans-Bold.woff2") format("woff2"); }
:root {
  color-scheme: dark;
  --font-ui: "IBM Plex Sans", Arial, Helvetica, sans-serif;
  --view-tab-height: 36px;
  --viewer-divider-size: 16px;
  --black: #141619;
  --panel: #1D2024;
  --line: #343940;
  --muted: #A5ADB6;
  --white: #E4E7EB;
  --amber: #E5AB45;
  --focus: var(--amber);
  --selected: color-mix(in srgb,var(--amber) 12%,var(--panel));
  --hover: color-mix(in srgb,var(--white) 6%,var(--panel));
  --studio: #85888b;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--black); color: var(--white); }
button, input, a, summary { font: inherit; letter-spacing: normal; -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; border-radius: 2px; }
button:disabled { cursor: default; opacity: .45; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible, .viewport:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
a { color: var(--white); text-underline-offset: .2em; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.topbar { height: 74px; padding: 0 27px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 24px; }
.brand { color: var(--white); text-decoration: none; font-size: 23px; font-weight: 700; line-height: 1.15; }
.brand span { display: block; font-size: 11px; font-weight: 400; margin-top: 5px; }
.header-actions { display: flex; align-items: center; }
.page-title { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.3; }
.text-button { border: 0; background: none; padding: 4px 0; color: var(--muted); min-height: 32px; font-size: 14px; }
.text-button:hover, .asset-credits:hover { color: var(--white); }
.workspace { height: calc(100dvh - 74px); min-height: 640px; padding: 16px; display: grid; grid-template-columns: minmax(0,1fr) clamp(310px,25vw,400px); grid-template-rows: minmax(0,1fr) var(--viewer-divider-size) auto; column-gap: 16px; row-gap: 0; max-width: 2800px; margin: 0 auto; }
.workspace.viewer-resized { grid-template-rows: var(--viewer-height) var(--viewer-divider-size) minmax(120px,1fr); }
.workspace.viewer-resized .performance { max-height: none; min-height: 0; overflow: auto; }
.viewer-divider { grid-column: 1; grid-row: 2; display: grid; place-items: center; cursor: row-resize; touch-action: none; user-select: none; outline-offset: -2px; }
.viewer-divider::after { content: ''; width: 48px; height: 2px; border-radius: 1px; background: var(--line); }
.viewer-divider:hover::after, .viewer-divider:focus-visible::after, .viewer-resizing .viewer-divider::after { background: var(--amber); }
.viewer-divider:focus-visible { outline: 2px solid var(--focus); }
.viewer-resizing, .viewer-resizing * { cursor: row-resize !important; user-select: none !important; }
.sidebar { grid-column: 2; grid-row: 1/4; min-height: 0; min-width: 0; overflow: auto; overscroll-behavior: contain; border-left: 1px solid var(--line); padding: 0 12px 16px; background: var(--panel); scrollbar-width: thin; scrollbar-color: var(--muted) transparent; }
.option-section { padding: 12px 0; border-bottom: 1px solid var(--line); }
.section-heading { margin-bottom: 6px; }
.section-heading h2 { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.4; }
.option-list { display: grid; gap: 2px; }
.selection-row, .checkbox-row { position: relative; display: grid; grid-template-columns: 16px minmax(0,1fr); align-items: start; width: 100%; gap: 10px; padding: 6px 8px; min-height: 48px; margin: 0; border: 0; border-radius: 2px; background: transparent; cursor: pointer; text-align: left; }
.selection-row > input, .checkbox-row > input { appearance: auto; accent-color: var(--amber); position: static; width: 16px; height: 16px; margin: 3px 0 0; opacity: 1; cursor: pointer; }
.selection-row:has(input:checked), .checkbox-row:has(input:checked) { background: var(--selected); }
.selection-row:hover:not(:has(input:disabled)), .checkbox-row:hover:not(:has(input:disabled)) { background: var(--hover); }
.selection-row:has(input:focus-visible), .checkbox-row:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 1px; }
.selection-row > input:focus-visible, .checkbox-row > input:focus-visible { outline: none; }
.selection-row:has(input:disabled), .checkbox-row:has(input:disabled) { opacity: .5; cursor: default; }
.mission-body, .option-copy { display: block; min-width: 0; }
.mission-title, .option-copy > strong { display: block; font-size: 16px; font-weight: 400; line-height: 1.3; }
.selection-row input:checked + .mission-body .mission-title, .selection-row input:checked + .option-copy > strong, .checkbox-row input:checked + .option-copy > strong { font-weight: 600; }
.mission-description, .option-copy > small { display: block; font-size: 14px; line-height: 1.4; color: var(--muted); margin-top: 2px; }
.property-value { padding: 4px 8px; }
.property-value > strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.4; }
.property-value > small { display: block; color: var(--muted); font-size: 14px; line-height: 1.4; margin-top: 2px; }
.property-subheading { margin: 12px 8px 4px; color: var(--muted); font-size: 14px; font-weight: 600; line-height: 1.4; }
.property-action { display: block; width: calc(100% - 16px); min-height: 44px; margin: 4px 8px; padding: 6px 8px; border: 1px solid var(--line); background: transparent; text-align: left; }
.property-action:hover:not(:disabled) { background: var(--hover); }
.equipment-controls[aria-disabled=true] { opacity: .55; }
.payload-motion-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.payload-motion-controls > div { display: flex; gap: 8px; }
.payload-motion-controls button { border: 1px solid var(--line); background: none; min-height: 44px; padding: 8px 16px; font-size: 14px; }
.payload-motion-controls button:hover:not(:disabled) { background: var(--hover); }
.payload-motion-controls button[aria-pressed=true] { border-color: var(--amber); }
#payload-motion-state { font-size: 14px; color: var(--muted); white-space: nowrap; }
.fine-print { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 8px 8px 0; }
.baseline-details { padding: 8px 0; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.baseline-details summary { cursor: pointer; color: var(--white); font-size: 15px; padding: 8px; min-height: 44px; }
.baseline-details p { font-size: 14px; line-height: 1.6; color: var(--muted); }
.baseline-details small { display: block; color: var(--muted); font-size: 14px; margin-top: 10px; }
.outline-button { padding: 8px 12px; border: 1px solid var(--line); background: none; min-height: 44px; font-size: 14px; }
.baseline-details .outline-button { width: 100%; }
.reset-button { width: 100%; border: 0; border-top: 1px solid var(--line); background: none; color: var(--muted); padding: 12px 0; min-height: 44px; font-size: 14px; margin-top: 16px; }
.reset-button:hover { color: var(--white); }
.studio { grid-column: 1; grid-row: 1; position: relative; min-width: 0; min-height: 0; overflow: hidden; background: var(--studio); color: var(--white); }
.viewport { position: absolute; inset: 0 0 calc(var(--view-tab-height) + 44px); touch-action: none; outline-offset: -4px; }
.viewport canvas { display: block; width: 100%; height: 100%; }
.studio-top { position: absolute; top: 32px; left: 20px; right: 20px; z-index: 2; text-align: center; pointer-events: none; }
.eyebrow, .dark-eyebrow { font-size: 14px; font-weight: 400; }
.studio-top h2 { font-size: 22px; font-weight: 600; margin: 12px 0 8px; }
.studio-top p { font-size: 14px; color: var(--muted); margin: 0; }
.variant-code { font-size: 14px; margin-top: 12px; }
.mission-prompt { position: absolute; left: 20px; right: 20px; top: 44%; text-align: center; pointer-events: none; }
.mission-prompt strong { font-size: 20px; font-weight: 600; }
.mission-prompt p { font-size: 16px; color: var(--muted); margin-top: 12px; }
.scene-loading { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); z-index: 5; background: var(--panel); color: var(--white); padding: 12px 20px; font-size: 14px; }
.view-toolbar { position: absolute; bottom: 0; left: 0; right: 0; height: var(--view-tab-height); display: flex; align-items: stretch; background: var(--panel); z-index: 4; border: 0; padding: 0 8px; overflow: auto; scrollbar-width: thin; }
.view-toolbar button { background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: var(--muted); font: 400 14px/1.4 var(--font-ui); padding: 0 12px; min-height: var(--view-tab-height); white-space: nowrap; flex-shrink: 0; }
.view-toolbar button:hover:not(:disabled) { color: var(--white); background: var(--hover); }
.view-toolbar button.active, .view-toolbar button[aria-pressed=true] { border-bottom-color: var(--amber); color: var(--white); }
.view-toolbar #xray { margin-left: auto; }
.view-toolbar button:focus-visible, .systems-inspector button:focus-visible { outline-offset: -3px; }
.studio-bottom { position: absolute; bottom: var(--view-tab-height); left: 0; right: 0; min-height: 44px; padding: 8px 16px; display: flex; align-items: center; gap: 16px; z-index: 3; background: var(--panel); color: var(--muted); font-size: 14px; }
.studio-bottom .orbit-hint { margin-right: auto; }
.asset-credits { color: var(--muted); font-size: 14px; }
.view-readout, #model-note { font: 14px/1.4 var(--font-ui); white-space: nowrap; }
#model-note { display: flex; gap: 12px; }
.systems-inspector { position: absolute; z-index: 4; right: 16px; bottom: calc(var(--view-tab-height) + 62px); padding: 12px; background: var(--panel); color: var(--white); border: 0; max-width: min(360px,calc(100% - 32px)); }
.systems-inspector > span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.systems-inspector > div { display: flex; gap: 0; flex-wrap: wrap; }
.kestrel-interior-inspector { position: static; max-width: none; padding: 0; margin-top: 16px; background: none; }
.interior-values { margin: 10px 0 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.interior-values > div { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; }
.interior-values dt { color: var(--muted); }
.interior-values dd { margin: 0; text-align: right; }
.kestrel-interior-inspector .fine-print { margin: 8px 0 0; max-width: 42ch; }
.systems-inspector button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--muted); padding: 4px 12px; font: 400 14px/1.4 var(--font-ui); min-height: 32px; }
.systems-inspector button:hover:not(:disabled) { color: var(--white); background: var(--hover); }
.systems-inspector button.active, .systems-inspector button[aria-pressed=true] { border-bottom-color: var(--amber); color: var(--white); }
.screen-mode { margin-top: 8px; }
.installation-status { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.asset-error { position: absolute; inset: 160px 24px auto; z-index: 10; background: #512b29; color: var(--white); padding: 16px; font-size: 16px; }
.radio-inspection-note { position: absolute; z-index: 3; left: 16px; top: 16px; background: var(--panel); color: var(--white); padding: 8px 12px; font-size: 14px; pointer-events: none; }
/* Performance summary strip; qualifications stay with their values. */
.performance { max-height: min(40dvh,360px); overflow: auto; scrollbar-width: thin; scrollbar-color: var(--muted) transparent; grid-column: 1; grid-row: 3; position: relative; min-width: 0; background: var(--panel); border-top: 1px solid var(--line); padding: 16px 20px; }
.performance:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.performance-heading { margin-bottom: 12px; }
.performance-heading h2 { font-size: 18px; line-height: 1.4; font-weight: 600; margin: 0; }
.metrics { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); margin: 0; }
.metric { min-width: 0; }
.metrics > .metric { padding: 0 16px; border-left: 1px solid var(--line); }
.metrics > .metric:first-child { border: 0; padding-left: 0; }
.metrics > .metric:last-child { padding-right: 0; }
.metric-label { display: block; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.metrics .metric-label { min-height: 2.9em; }
.metric-value { display: block; margin: 4px 0; color: var(--white); font-size: 26px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric-unit { font-size: 14px; font-weight: 400; color: var(--muted); }
.metric-note { display: block; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.empty-metrics { margin: 0; padding: 6px 0; color: var(--muted); font-size: 14px; }
.performance--hades .communications-performance { display: block; }
.hades-family { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.hades-family h3 { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.hades-family dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 24px; margin: 0; }
.hades-family dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-width: 0; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.45; }
.hades-family dt, .communications-description dt { color: var(--muted); }
.hades-family dd { margin: 0; min-width: 0; color: var(--white); font-size: 14px; font-weight: 400; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.communications-performance { display: grid; grid-template-columns: minmax(190px,1fr) 2fr; gap: 24px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
#communications-metric, .communications-description { margin: 0; }
.communications-description > div { font-size: 14px; line-height: 1.45; }
.communications-description dt { margin: 0 0 4px; }
.communications-description dd { margin: 0; color: var(--white); overflow-wrap: anywhere; }
.radio-performance { border-top: 1px solid var(--line); padding: 10px 8px; margin-top: 8px; }
.radio-performance h3 { font-size: 14px; font-weight: 600; line-height: 1.4; margin: 0 0 8px; }
.radio-metrics { display: grid; gap: 0; margin: 0 0 8px; }
.radio-metrics .metric { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: baseline; gap: 2px 8px; padding: 4px 0; border: 0; }
.radio-metrics .metric-label { font-size: 14px; }
.radio-metrics .metric-value { margin: 0; font-size: 14px; font-weight: 400; }
.radio-metrics .metric-note { grid-column: 1 / -1; margin: 0; }
.radio-capabilities { margin: 0; font-size: 14px; line-height: 1.45; }
.radio-capabilities > div { display: grid; grid-template-columns: 80px minmax(0,1fr); gap: 8px; padding: 4px 0; }
.radio-capabilities dt { color: var(--muted); }
.radio-capabilities dd { margin: 0; overflow-wrap: anywhere; }
.capacity-warning { color: var(--amber); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: calc(100% - 32px); background: var(--panel); border: 1px solid var(--line); color: var(--white); padding: 12px 20px; font-size: 14px; z-index: 20; pointer-events: none; opacity: 0; }
.toast.visible { opacity: 1; }
.is-embedded .topbar { display: none; }
.is-embedded .workspace { height: 100dvh; }
@media (min-width:1700px) { :root { --viewer-divider-size: 20px; } .topbar { height: 88px; padding: 0 32px; } .workspace { height: calc(100dvh - 88px); padding: 20px; column-gap: 20px; } .sidebar { padding: 0 12px 16px; } }
@media (max-width:1279px) { .metrics { grid-template-columns: repeat(3,minmax(0,1fr)); row-gap: 16px; } .metrics > .metric:nth-child(4) { border-left: 0; padding-left: 0; } .studio-bottom { flex-wrap: wrap; gap: 4px 16px; } .studio-bottom .orbit-hint { flex: 1 0 100%; } .viewport { bottom: calc(var(--view-tab-height) + 66px); } }
@media (max-width:1023px) {
  .workspace, .workspace.viewer-resized, .is-embedded .workspace { height: auto; min-height: 0; padding: 12px; grid-template-columns: minmax(0,1fr); grid-template-rows: auto var(--viewer-divider-size) auto auto; gap: 0; }
  .studio { grid-column: 1; grid-row: 1; height: 60dvh; min-height: 420px; }
  .workspace.viewer-resized .studio { height: var(--viewer-height); min-height: 240px; }
  .performance, .workspace.viewer-resized .performance { grid-column: 1; grid-row: 3; max-height: none; overflow: visible; }
  .sidebar { grid-column: 1; grid-row: 4; margin-top: 16px; overflow: visible; padding: 0 12px 16px; }
  .option-section { padding: 12px 0; }
  .topbar { padding: 0 20px; }
}
@media (max-width:599px) {
  .topbar { height: 74px; padding: 0 16px; gap: 16px; }
  .brand { font-size: 19px; }
  .brand span { font-size: 10px; }
  .page-title { font-size: 17px; }
  :root { --viewer-divider-size: 12px; }
  .workspace { padding: 10px; }
  .sidebar { margin-top: 12px; }
  .sidebar { padding: 0 12px 16px; }
  .view-toolbar { padding: 0 4px; }
  .studio-bottom { padding: 8px 12px; gap: 4px 12px; }
  .studio-bottom .orbit-hint { font-size: 14px; }
  .view-readout, #model-note { font-size: 14px; }
  #model-note { gap: 8px; }
  .performance { padding: 16px; }
  .metrics, .performance--hades .metrics { grid-template-columns: minmax(0,1fr); gap: 0; }
  .metrics > .metric { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 12px; align-items: baseline; padding: 8px 0; border: 0; border-bottom: 1px solid var(--line); }
  .metrics .metric-label { min-height: 0; }
  .metrics .metric-value { margin: 0; font-size: 24px; text-align: right; }
  .metrics .metric-note { grid-column: 1 / -1; }
  .hades-family dl { grid-template-columns: minmax(0,1fr); }
  .communications-performance { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .communications-performance .metric { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 12px; align-items: baseline; }
  .communications-performance .metric-value { margin: 0; font-size: 24px; text-align: right; }
  .communications-performance .metric-note { grid-column: 1 / -1; }
  .radio-inspection-note { max-width: calc(100% - 32px); }
}
@media (pointer:coarse) { :root { --view-tab-height: 44px; --viewer-divider-size: 28px; } .systems-inspector button { min-height: 44px; } }
/* Eight primary multirotor metrics: four across, two down on desktop. */
.performance--hades { max-height: min(48dvh,420px); }
.performance--hades .metrics { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0 24px; }
.performance--hades .metrics > .metric { display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(2.9em,1fr) auto 1.45em; align-items: start; gap: 0; padding: 8px 0; border: 0; }
.performance--hades .metrics > .metric:nth-child(n+5) { border-top: 1px solid var(--line); }
.performance--hades .metrics .metric-label { min-height: 0; }
.performance--hades .metrics .metric-value { margin: 6px 0 4px; font-size: clamp(32px,2.8vw,44px); line-height: 1.1; text-align: left; }
.performance--hades .metrics .metric-unit { display: inline-block; white-space: nowrap; }
.performance--hades .metrics .metric-note { grid-row: 3; }
@media (max-width:1023px) { .performance--hades { max-height: none; } }
@media (max-width:899px) {
  .performance--hades .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 20px; }
  .performance--hades .metrics > .metric:nth-child(n+3) { border-top: 1px solid var(--line); }
  .performance--hades .metrics .metric-value { font-size: 36px; }
}
@media (prefers-reduced-motion:reduce) { * { scroll-behavior: auto !important; } }
