html,body { background:#071725; }
.lesson-companion { display:none; }
@media(min-width:1000px) {
 .presentation-stage { background:radial-gradient(ellipse at 25% 40%,#133044 0%,#091b29 55%,#071725 100%)!important; }
 .presentation-scene { border-radius:16px; overflow:hidden; box-shadow:0 12px 48px #0005,0 0 0 1px #9cdae52e; }
 .presentation-scene-tip { left:24px!important; right:544px!important; top:32px!important; }
 .presentation-controls {
   justify-content:flex-start!important; gap:20px!important; padding:0 8px 20px!important;
   overflow-y:auto; overflow-x:hidden; scrollbar-width:thin; scrollbar-color:#365568 transparent;
   pointer-events:auto!important; overscroll-behavior:contain;
 }
 .presentation-controls::before { content:'EXPERIMENT CONTROLS'; display:block; flex-shrink:0; color:#94becd; font:500 11px/1.5 Inter,Arial,sans-serif; letter-spacing:.16em; margin:0 0 -8px 2px; }
 .presentation-controls > div { flex-shrink:0!important; border-color:#365568!important; background-color:#102a3b!important; border-radius:12px!important; }
 .presentation-controls [role=button] { min-height:40px; transition:background-color .15s ease, border-color .15s ease; }
 .presentation-controls [role=button]:hover { background-color:#20465b!important; }
 .presentation-controls [role=button]:focus-visible,.companion-reflection summary:focus-visible { outline:2px solid #a6d9e5; outline-offset:3px; }
 .presentation-app-toolbar { background:#071725!important; border-bottom-color:#203847!important; }
 .presentation-app-toolbar > div > div:nth-child(2) { visibility:hidden; }
 .lesson-companion { display:block; order:100; flex-shrink:0; color:#c6d7e0; font:14px/1.6 Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; padding:24px 20px 0; border-top:1px solid #294251; }
 .lesson-companion * { box-sizing:border-box; }
 .companion-eyebrow { display:block; margin:0 0 10px; font-size:10px; font-weight:600; letter-spacing:.14em; color:#8bb5c5; }
 .companion-title { margin:0 0 10px; font-size:23px; font-weight:500; line-height:1.2; letter-spacing:-.025em; color:#ecf5f8; }
 .companion-description { margin:0; color:#9fb7c6; font-size:13px; }
 .companion-steps { counter-reset:experiment; list-style:none; margin:24px 0; padding:0; }
 .companion-step { counter-increment:experiment; position:relative; padding:0 0 22px 42px; }
 .companion-step:last-child { padding-bottom:0; }
 .companion-step::before { content:counter(experiment,decimal-leading-zero); position:absolute; top:1px; left:0; width:27px; height:27px; display:grid; place-items:center; border:1px solid #375365; border-radius:50%; color:#a5d1df; font-size:10px; font-variant-numeric:tabular-nums; }
 .companion-step:not(:last-child)::after { content:''; position:absolute; left:13px; top:34px; bottom:7px; width:1px; background:#284250; }
 .companion-step h3 { margin:0 0 4px; font-size:14px; font-weight:600; color:#dfedf3; }
 .companion-step p { margin:0; font-size:13px; color:#9fb7c6; line-height:1.6; }
 .companion-reflection { border:1px solid #335263; border-radius:10px; background:#112a39; }
 .companion-reflection summary { display:block; cursor:pointer; padding:18px; list-style:none; }
 .companion-reflection summary::-webkit-details-marker { display:none; }
 .companion-question { display:block; font-size:15px; line-height:1.5; color:#deedf2; }
 .companion-reveal { display:block; margin-top:14px; font-size:11px; color:#9ed4e1; }
 .companion-reveal::after { content:' +'; float:right; }
 .companion-reflection[open] .companion-reveal::after { content:' −'; }
 .companion-explanation { margin:0 18px 18px; padding-top:14px; border-top:1px solid #335263; font-size:13px; color:#b7cdd8; }
 .companion-takeaway { margin:18px 0 0; color:#7898aa; font-size:11px; line-height:1.6; }
}

/* Applets are interactive surfaces. Keep real text-entry fields editable. */
#root, #root * { -webkit-user-select:none!important; user-select:none!important; -webkit-user-drag:none; }
#root input, #root textarea, #root [contenteditable="true"], #root [contenteditable="true"] * { -webkit-user-select:text!important; user-select:text!important; }

@media(min-width:1000px) {
 /* Reserve a stable instrument column without moving React-owned elements.
    The app still measures its true width and computes all device geometry. */
 .computer-guided-content {
   position:relative!important; box-sizing:border-box;
   padding:28px 32px 32px calc(54% + 24px)!important;
   min-height:660px; background:linear-gradient(90deg,#0b2130 0%,#071725 54%);
 }
 .computer-guided-content > .computer-instrument {
   position:absolute!important; left:28px; top:28px;
   width:calc(54% - 52px)!important; margin-top:0!important;
 }
 .computer-instrument { box-sizing:border-box; min-width:0!important; padding:20px 0!important; border:0; border-radius:16px; background:#0d2433; box-shadow:inset 0 0 0 1px #2d485a; }
 .computer-instrument::before { content:'LIVE INSTRUMENT'; display:block; flex-shrink:0; margin:0 0 20px; color:#94becd; font:500 10px/1.5 Inter,Arial,sans-serif; letter-spacing:.16em; }
 .computer-instrument > div { flex-shrink:0!important; }
 .computer-instrument [aria-label="What the ADV and SEL buttons do on this screen"] { margin-top:20px!important; background:#102c3e!important; border-color:#365568!important; padding:16px!important; }
 .computer-practice-content { padding:28px 32px 32px!important; background:#071725; }
 .computer-practice-row { display:grid!important; grid-template-columns:minmax(0,1.2fr) minmax(340px,1fr); gap:28px!important; align-items:start; margin-top:24px!important; }
 .computer-practice-row > .computer-instrument { width:100%!important; margin-top:0!important; }
 .computer-control-panel { box-sizing:border-box; width:100%!important; margin:0!important; padding:24px!important; border-radius:16px!important; background:#102736!important; border-color:#365568!important; }
 .computer-control-panel [role="button"] { min-height:44px; }
 .computer-guided-content > div:not(.computer-instrument) { min-width:0; }
 .computer-guided-content [aria-label="Canonical dive profile"] { width:100%!important; }
}
body.has-phone-compass { display:flex; flex-direction:column; margin:0; }
.has-phone-compass #root { height:auto; min-height:0; }
.phone-compass-bar { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:16px 24px; background:#102a3b; border-bottom:1px solid #365568; color:#dceaf1; font:13px/1.5 system-ui,sans-serif; }
.phone-compass-bar strong { font-weight:600; }
.phone-compass-bar p { margin:4px 0 0; font-size:12px; color:#a9c1cf; max-width:680px; }
.phone-compass-bar button { flex-shrink:0; border:1px solid #82b8c9; background:#193e50; color:#e4f6fc; border-radius:8px; padding:12px 16px; font:600 12px system-ui,sans-serif; cursor:pointer; min-height:44px; }
.phone-compass-bar button:focus-visible { outline:2px solid #a6d9e5; outline-offset:3px; }
.phone-compass-bar button:disabled { opacity:.6; }
@media(max-width:600px) { .phone-compass-bar { flex-direction:column; align-items:stretch; gap:10px; padding:12px 16px; } }
