.presentation-export { grid-column: 1/-1; display: grid; gap: 16px; border-top: 1px solid var(--line); padding-top: 22px; min-width: 0; }
.presentation-export h3,.presentation-export p { margin: 0; }
.presentation-export progress { width: 100%; height: 10px; }
.presentation-export .form-note,.presentation-export .error-box { min-width: 0; overflow-wrap: anywhere; }
.studio-showcase,.studio-advanced-settings { min-width: 0; margin-bottom: 16px; }
.studio-showcase { display: grid; gap: 12px; }
.studio-showcase h3 { margin: 0; }
.studio-showcase select { width: 100%; min-width: 0; }
.studio-showcase pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 260px; overflow: auto; }
.studio-showcase dd { margin: 4px 0 12px; overflow-wrap: anywhere; }
.studio-showcase details>summary,.studio-advanced-settings>summary { cursor: pointer; padding: 8px 0; }
.presentation-export h3 { font-size: 18px; line-height: 1.4; }
.presentation-export > p { color: var(--muted); font-size: 14px; line-height: 1.75; max-width: 100ch; }
.presentation-export fieldset { min-width: 0; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 6px; }
.presentation-export legend { padding-inline: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
.presentation-export .benchmark-scenario-choices label { font-size: 13px; line-height: 1.5; }
.presentation-export .presentation-approval { display: flex; align-items: start; gap: 11px; padding: 13px 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; font-size: 15px; line-height: 1.7; font-weight: 500; cursor: pointer; }
.presentation-approval span { min-width: 0; flex: 1; }
.presentation-export .presentation-approval input { margin-top: 4px; }
.presentation-export .button { justify-self: start; }
@media (max-width: 620px) { .presentation-export .button { width: 100%; } }
html[data-presentation="true"] #showHomeWorkspace,
html[data-presentation="true"] #showAlgorithmWorkspace,
html[data-presentation="true"] #showProblemWorkspace,
html[data-presentation="true"] #changeKey,
html[data-presentation="true"] #identity,
html[data-presentation="true"] #adminPanel,
html[data-presentation="true"] #jointComparisonPanel,
html[data-presentation="true"] #jointStressPanel,
html[data-presentation="true"] #jointEngineDiffPanel,
html[data-presentation="true"] #homeWorkspace,
html[data-presentation="true"] #algorithmWorkspace,
html[data-presentation="true"] #problemWorkspace { display: none !important; }
.presentation-algorithms { padding: 18px 24px; margin: 18px 0; background: var(--surface, #fff); border: 1px solid var(--line); }
.presentation-algorithm-stage { margin-top: 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.presentation-algorithm-stage strong { min-width: 70px; }
.presentation-algorithm-stage button[aria-pressed="true"] { outline: 2px solid var(--blue); }

html[data-presentation-shell="desktop"],html[data-presentation-shell="desktop"] body { height: 100%; margin: 0; overflow: hidden; background: #f3f5f8; }
html[data-presentation-shell="desktop"] * { box-sizing: border-box; }
html[data-presentation-shell="desktop"] .topbar,
html[data-presentation-shell="desktop"] .joint-header,
html[data-presentation-shell="desktop"] .joint-mobile-nav { display: none !important; }
html[data-presentation-shell="desktop"] main { width: 100%; max-width: none; margin: 0; padding: 14px; }
html[data-presentation-shell="desktop"] #jointWorkspace,
html[data-presentation-shell="desktop"] #scenarioEditorWorkspace { height: 100vh; display: flex; flex-direction: column; gap: 10px; }
html[data-presentation-shell="desktop"] .panel { border: 1px solid #dfe5ee; border-radius: 9px; box-shadow: none; }
html[data-presentation-shell="desktop"] .joint-layout { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 12px; min-height: 0; flex: 1; align-items: stretch; }
html[data-presentation-shell="desktop"] .joint-stage { display: flex !important; flex-direction: column; grid-column: 1; grid-row: 1; min-height: 0; min-width: 0; overflow: hidden; }
html[data-presentation-shell="desktop"] .joint-controls { display: flex !important; flex-direction: column; grid-column: 2; grid-row: 1; min-height: 0; min-width: 0; padding: 0; overflow: hidden; position: static; }
.desktop-dock-tabs { display: flex; flex: 0 0 auto; gap: 4px; padding: 8px; border-bottom: 1px solid #dfe5ee; background: #f8faff; }
.desktop-dock-tabs button { flex: 1; border: 0; padding: 9px 5px; background: transparent; color: #64758c; border-radius: 6px; font-size: 13px; font-weight: 600; }
.desktop-dock-tabs button[aria-pressed="true"] { background: #e4edfc; color: #2f65bb; }
.desktop-dock-page { flex: 1; min-height: 0; min-width: 0; overflow-y: auto; overflow-x: hidden; }
.desktop-settings-group { border-top: 1px solid #e0e6ef; padding-top: 8px; }
.desktop-settings-group > summary { cursor: pointer; color: #48678e; font-size: 12px; font-weight: 600; padding: 5px 0; }
.desktop-settings-group[open] { display: grid; gap: 10px; }
html[data-presentation-shell="desktop"] #startJointRun { position: sticky; bottom: 0; z-index: 3; box-shadow: 0 -4px 10px #ffffffcc; }
html[data-presentation-shell="desktop"] .panel-heading { padding: 10px 12px; min-height: 46px; }
html[data-presentation-shell="desktop"] .panel-heading h2 { font-size: 14px; overflow-wrap: anywhere; }
html[data-presentation-shell="desktop"] .eyebrow { display: none; }
html[data-presentation-shell="desktop"] #jointForm { padding: 12px; gap: 11px; }
html[data-presentation-shell="desktop"] label { font-size: 12px; min-width: 0; }
html[data-presentation-shell="desktop"] input,html[data-presentation-shell="desktop"] select { min-width: 0; max-width: 100%; min-height: 34px; font-size: 13px; }
html[data-presentation-shell="desktop"] .button.primary { background: #3269c7; border-color: #3269c7; color: white; }
html[data-presentation-shell="desktop"] .scene-view-modes button[aria-pressed="true"] { background: #3269c7; }
html[data-presentation-shell="desktop"] .platform-candidates { max-height: 170px; overflow: auto; }
html[data-presentation-shell="desktop"] .workspace-viewport { display: flex; flex-direction: column; flex: 1; min-height: 0; --scene-scroll-offset: 0px; }
html[data-presentation-shell="desktop"] .workspace-view-toolbar { position: static; flex: 0 0 auto; padding: 6px 8px; gap: 5px; }
html[data-presentation-shell="desktop"] .workspace-view-stage { flex: 1; min-height: 130px; }
html[data-presentation-shell="desktop"] #jointCanvas,html[data-presentation-shell="desktop"] #scenarioEditorCanvas { height: 100%; min-height: 130px; }
html[data-presentation-shell="desktop"] .joint-stage-footer { padding: 8px; flex: 0 0 auto; }
html[data-presentation-shell="desktop"] .playback-bar { gap: 6px; padding: 6px 8px; flex-wrap: wrap; flex: 0 0 auto; }
html[data-presentation-shell="desktop"] .playback-status { flex-basis: 100%; font-size: 11px; }
html[data-presentation-shell="desktop"] .playback-timeline { flex: 1; min-width: 90px; }
html[data-presentation-shell="desktop"] .scene-follow { max-width: 115px; }
html[data-presentation-shell="desktop"] .scene-view-status { font-size: 10px; }
html[data-presentation-shell="desktop"] .joint-analysis { display: block !important; margin: 0; }
html[data-presentation-shell="desktop"] .joint-results { margin: 0; display: block; padding: 10px; }
html[data-presentation-shell="desktop"] .joint-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
html[data-presentation-shell="desktop"] .joint-results .panel { margin-top: 10px; }
html[data-presentation-shell="desktop"] .joint-results .table-wrap { max-width: 100%; overflow: auto; }
html[data-presentation-shell="desktop"] .editor-header { flex: 0 0 auto; align-items: center; justify-content: flex-end; gap: 10px; border: 0; padding: 0; background: transparent; }
html[data-presentation-shell="desktop"] .editor-header > div:first-child { display: none; }
html[data-presentation-shell="desktop"] .editor-header h1 { font-size: 18px; margin: 0; }
html[data-presentation-shell="desktop"] .editor-header p { font-size: 11px; margin: 3px 0 0; }
html[data-presentation-shell="desktop"] .editor-header-actions { gap: 7px; flex-wrap: wrap; }
html[data-presentation-shell="desktop"] .editor-history-bar { padding: 0 0 6px; flex: 0 0 auto; }
.desktop-map-library { position: relative; flex: 0 0 auto; z-index: 20; }
.desktop-map-library > summary,.desktop-altitude > summary { cursor: pointer; color: #355d8c; font-weight: 600; font-size: 12px; padding: 8px 12px; background: #e9f0fa; border-radius: 6px; }
.desktop-map-library[open] > .scene-library { position: absolute; top: 100%; left: 0; right: 0; max-height: 65vh; overflow: auto; margin: 5px 0 0; padding: 14px; box-shadow: 0 12px 30px #21375026; background: #fff; }
html[data-presentation-shell="desktop"] .scene-template-picker,html[data-presentation-shell="desktop"] .scene-library-selectors,html[data-presentation-shell="desktop"] .scene-library-actions { display: flex; flex-wrap: wrap; gap: 8px; }
html[data-presentation-shell="desktop"] .editor-layout { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 12px; flex: 1; min-height: 0; margin: 0; align-items: stretch; }
html[data-presentation-shell="desktop"] .editor-canvas-panel { display: flex; flex-direction: column; position: relative; min-height: 0; overflow: hidden; }
html[data-presentation-shell="desktop"] .editor-toolbar { gap: 4px; padding: 7px; flex-wrap: wrap; flex: 0 0 auto; }
html[data-presentation-shell="desktop"] .editor-inspector { position: static; min-width: 0; min-height: 0; overflow-y: auto; }
html[data-presentation-shell="desktop"] .editor-properties { padding: 10px; }
html[data-presentation-shell="desktop"] .editor-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); overflow: visible; }
html[data-presentation-shell="desktop"] .editor-tab { min-width: 0; padding: 6px 2px; min-height: 32px; font-size: 11px; }
html[data-presentation-shell="desktop"] .inspector-section { padding: 10px; }
html[data-presentation-shell="desktop"] .editor-canvas-footer { flex: 0 0 auto; font-size: 10px; }
.desktop-altitude { flex: 0 0 auto; }
.desktop-altitude[open] #editorAltitudeView { position: absolute; bottom: 32px; left: 8px; right: 8px; max-height: 170px; overflow: auto; z-index: 10; box-shadow: 0 6px 20px #21375033; background: white; }
@media (max-width: 900px) {
  html[data-presentation-shell="desktop"] main { padding: 8px; }
  html[data-presentation-shell="desktop"] .joint-layout { grid-template-columns: minmax(0,1fr) 280px; gap: 8px; }
  html[data-presentation-shell="desktop"] .editor-layout { grid-template-columns: minmax(0,1fr) 290px; gap: 8px; }
}

/* Studio shares one palette across the native frame and embedded workspaces. */
:root[data-presentation-shell="desktop"] {
  color-scheme: dark;
  --paper: #07111f; --surface: #0e2033; --ink: #e5f1fb; --muted: #9fb3c8;
  --line: #263e55; --blue: #70dcf3; --green: #67e5c4;
  --theme-soft: #102338; --theme-raised: #142a40; --theme-hover: #173a50;
  --theme-input-border: #3a566f; --theme-focus: #60d9ef;
  --home-ink: #eaf5ff; --home-muted: #a4bbcf; --home-line: #263e55; --home-accent: #65e5ef;
}
:root[data-presentation-shell="desktop"] body { color: var(--ink); background: #07111f; background-image: none; }
:root[data-presentation-shell="desktop"] :is(.panel,.desktop-dock-tabs,.desktop-dock-page,.editor-properties,.editor-tabs,.workspace-view-toolbar,.joint-stage-footer,.playback-bar,.scene-library,.inspector-section,.editor-inspector > .panel-heading,.desktop-altitude[open] #editorAltitudeView) { background: var(--surface); border-color: var(--line); }
:root[data-presentation-shell="desktop"] :is(input,select,textarea) { background: #0a1a2c; color: var(--ink); border-color: var(--theme-input-border); border-radius: 6px; }
:root[data-presentation-shell="desktop"] :is(.button.secondary,.editor-tool,.scene-icon,.home-icon-button) { background: #11283d; border-color: var(--line); color: #cbe6f5; }
:root[data-presentation-shell="desktop"][data-theme="dark"] .button.primary { background: linear-gradient(115deg,#58dbe6,#79b6ff); color: #071725; border: 0; box-shadow: 0 4px 18px #3ec4e31c; }
:root[data-presentation-shell="desktop"] .button.primary:hover { filter: brightness(1.1); }
:root[data-presentation-shell="desktop"] :is(.scene-view-modes button[aria-pressed="true"],.editor-tab.active) { background: #174b62; color: #83f0f3; border-color: #3c788d; }
:root[data-presentation-shell="desktop"] .desktop-dock-tabs button { color: var(--muted); }
:root[data-presentation-shell="desktop"] .desktop-dock-tabs button[aria-pressed="true"] { background: #143b50; color: #85edf6; }
:root[data-presentation-shell="desktop"] :is(.desktop-settings-group > summary,.desktop-map-library > summary,.desktop-altitude > summary) { color: #a8d7e9; border-color: var(--line); background: #10273d; }
:root[data-presentation-shell="desktop"] .desktop-map-library[open] > .scene-library { background: var(--surface); box-shadow: 0 16px 40px #0008; }
:root[data-presentation-shell="desktop"] :is(.panel-heading,.desktop-settings-group,.editor-history-bar,.workspace-view-toolbar) { border-color: var(--line); }
:root[data-presentation-shell="desktop"] .panel-heading h2 { color: var(--ink); }
:root[data-presentation-shell="desktop"] .editor-header p { color: var(--muted); }
:root[data-presentation-shell="desktop"] #startJointRun { box-shadow: 0 -6px 14px #07111fcc,0 4px 18px #3ec4e31c; }
:root[data-presentation-shell="desktop"] #scenarioEditorCanvas { background: #0c1c2d; }
:root[data-presentation-shell="desktop"] :is(.desktop-dock-page,.editor-inspector,.editor-properties) { scrollbar-color: #375871 #0b1c2d; scrollbar-width: thin; }
:root[data-presentation-shell="desktop"] #homeWorkspace:not([hidden]) { display: flex !important; height: 100vh; padding: 14px; gap: 12px; flex-direction: column; overflow: hidden; }
:root[data-presentation-shell="desktop"] #homeWorkspace > :is(.home-section,.home-workflow-band,.home-footer) { display: none; }
:root[data-presentation-shell="desktop"] .home-hero { height: auto; min-height: 0; max-height: none; flex: 1; background: #091626; border: 1px solid #24415b; border-radius: 13px; box-shadow: inset 0 0 70px #2c8bad12; }
:root[data-presentation-shell="desktop"] .home-hero::before { background: linear-gradient(90deg,#081526fa 0%,#081526e8 25%,#0917277a 48%,#07111f00 72%),linear-gradient(0deg,#071525dc,transparent 35%); }
:root[data-presentation-shell="desktop"] .home-hero::after { content: ""; pointer-events: none; position: absolute; inset: 0; z-index: -1; opacity: .16; background: repeating-linear-gradient(0deg,transparent 0 54px,#59dbed28 55px 56px); mask-image: linear-gradient(90deg,transparent 34%,#000); }
:root[data-presentation-shell="desktop"] .home-poster { filter: brightness(.42) saturate(.55) hue-rotate(35deg); }
:root[data-presentation-shell="desktop"] .home-hero-copy { left: 30px; top: 19%; width: min(440px,44%); animation-duration: .75s; }
:root[data-presentation-shell="desktop"] .home-kicker { color: #77dfef; font-size: 10px; letter-spacing: 1.8px; line-height: 1.6; margin-bottom: 20px; }
:root[data-presentation-shell="desktop"] #homeTitle { color: #edf7ff; font-size: clamp(44px,6.2vw,78px); line-height: 1.02; letter-spacing: -2px; margin-bottom: 17px; }
:root[data-presentation-shell="desktop"] #homeTitle span { display: block; font-weight: 400; color: #6de5ef; letter-spacing: -1px; }
:root[data-presentation-shell="desktop"] .home-tagline { color: #d3e6f4; font-size: 19px; line-height: 1.6; margin-bottom: 14px; }
:root[data-presentation-shell="desktop"] .home-intro { color: #a7bfd3; font-size: 13px; line-height: 1.8; margin-bottom: 23px; max-width: 345px; }
:root[data-presentation-shell="desktop"] .home-actions { gap: 9px; }
:root[data-presentation-shell="desktop"] .home-actions a { border-radius: 7px; font-size: 12px; min-height: 40px; }
:root[data-presentation-shell="desktop"] .home-actions .home-secondary { color: #cae4f4; border-color: #376079; background: #102e43b3; }
:root[data-presentation-shell="desktop"] .home-model-note { color: #91aabd; font-size: 10px; line-height: 1.6; max-width: 330px; }
:root[data-presentation-shell="desktop"] .home-topline { top: 18px; left: 25px; right: 24px; color: #8dafc8; letter-spacing: 1.6px; }
.studio-signal::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #60e8d9; box-shadow: 0 0 12px #60e8d9; animation: studio-signal 3s ease-in-out infinite; }
:root[data-presentation-shell="desktop"] .home-scene-stats { top: 55px; right: 24px; gap: 19px; border-color: #53849c66; padding: 12px 15px; border-radius: 8px; background: #0b2132b3; backdrop-filter: blur(12px); }
:root[data-presentation-shell="desktop"] .home-scene-stats dt { color: #a9c7d9; }
:root[data-presentation-shell="desktop"] .home-scene-stats dd { color: #b6f4fa; font-size: 22px; }
:root[data-presentation-shell="desktop"] .home-world-label { color: #b7ecf7; border-color: #58e3f0; background: #0b2338d9; box-shadow: 0 0 14px #2a9fbf22; }
:root[data-presentation-shell="desktop"] .home-world-label[data-complete="true"] { color: #a0f4dc; border-color: #57d8b8; }
:root[data-presentation-shell="desktop"] .home-playback { left: 24px; right: 24px; bottom: 17px; gap: 12px; border-color: #4c78874d; padding-top: 12px; }
:root[data-presentation-shell="desktop"] .home-replay-heading span { color: #8db4c8; font-size: 9px; }
:root[data-presentation-shell="desktop"] .home-replay-heading strong { color: #cfedf8; font-size: 12px; }
:root[data-presentation-shell="desktop"] .home-control-group { background: #0c2235e8; border-color: #34566d; color: #bbd9e8; border-radius: 7px; gap: 6px; backdrop-filter: blur(12px); }
:root[data-presentation-shell="desktop"] .home-control-group input { min-height: 18px; height: 18px; width: 115px; accent-color: #67e5ef; }
:root[data-presentation-shell="desktop"] .home-control-group select { min-height: 28px; height: 28px; }
:root[data-presentation-shell="desktop"] .home-scene-message { background: #10273de6; color: #bbd9e8; border: 1px solid #36556c; border-radius: 8px; }
:root[data-presentation-shell="desktop"] .home-proof-band { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; padding: 16px 20px; background: #0b1b2c; border: 1px solid var(--line); border-radius: 9px; flex: 0 0 auto; }
:root[data-presentation-shell="desktop"] .home-proof-item { color: #a5bbce; gap: 12px; }
:root[data-presentation-shell="desktop"] .home-proof-item strong { color: #83e7f2; font-size: 21px; }
:root[data-presentation-shell="desktop"] .home-proof-item span { font-size: 10px; }
@keyframes studio-signal { 50% { box-shadow: 0 0 20px #60e8d9; opacity: .55; } }
@media (max-width: 1000px), (max-height: 650px) {
  :root[data-presentation-shell="desktop"] .home-hero-copy { left: 24px; top: 17%; width: 44%; }
  :root[data-presentation-shell="desktop"] #homeTitle { font-size: 47px; margin-bottom: 13px; }
  :root[data-presentation-shell="desktop"] .home-kicker { margin-bottom: 12px; font-size: 9px; letter-spacing: 1px; }
  :root[data-presentation-shell="desktop"] .home-tagline { font-size: 16px; }
  :root[data-presentation-shell="desktop"] .home-intro { display: none; }
  :root[data-presentation-shell="desktop"] .home-model-note { max-width: 270px; font-size: 9px; }
  :root[data-presentation-shell="desktop"] .home-proof-band { padding: 12px; gap: 10px; }
  :root[data-presentation-shell="desktop"] .home-proof-item { gap: 7px; }
  :root[data-presentation-shell="desktop"] .home-proof-item strong { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .studio-signal::before { animation: none; } }
