/* An ocean-blue workspace with an original whale and container identity. */
.app::before{background:radial-gradient(ellipse at 5% 8%,#72bffd1c,transparent 50%),radial-gradient(ellipse at 90% 90%,#568ee51b,transparent 46%)}
::selection{background:#b8dcff;color:#123454}
.app-wordmark{display:inline-flex;align-items:center;gap:9px;flex:none}
.app-wordmark .wordmark-name,.brand .wordmark-name{margin:0;font-weight:750;color:var(--ink);letter-spacing:-.8px;display:inline;line-height:1}
.app-wordmark .wordmark-name>.brand-light,.brand .wordmark-name>.brand-light{font:inherit;font-weight:450;color:var(--purple);margin:0;padding:0;border:0;text-transform:none;letter-spacing:inherit}
.app-wordmark .wordmark-name>.brand-dot,.brand .wordmark-name>.brand-dot{font:inherit;font-weight:750;color:var(--purple);margin:0;padding:0;border:0;letter-spacing:inherit}
.brand{gap:10px;font-size:24px;letter-spacing:normal}
.whale-mark{width:40px;height:28px;object-fit:contain;flex:none}
.brand .brand-icon{display:block;width:44px;height:32px;object-fit:contain;clip-path:none;background:none;flex:none}
.onboarding-motion{background:linear-gradient(120deg,#eef4ee,#f3f6f1 60%,#f5f8f5);border:1px solid var(--line)}
.onboarding-motion::before{background:radial-gradient(ellipse,#b0dbff55,transparent 70%);filter:none;animation:none}
.onboarding-motion::after{background-image:none}
.ocean-whale{display:block;width:100%;height:100%;object-fit:contain;position:relative;z-index:1;animation:none}

.lecture-visual{background:#102d49;box-shadow:0 18px 40px #11375c18}
.lecture-visual::before{background:radial-gradient(ellipse at 10% 5%,#2498eb25,transparent 65%),radial-gradient(ellipse at 100% 90%,#316dcc22,transparent 50%)}
.lecture-transport [data-lecture-play]{background:#d1ecff;border-color:#b2dfff;color:#103b62}
.lecture-time-fill{background:linear-gradient(90deg,#4badf7,#a6d9ff)}
.lecture-indicator{background:#81cfff;box-shadow:0 0 12px #6ac4ff44}
.mechanism-scrub input{accent-color:#91d3ff}
.mechanism-scrub input::-webkit-slider-thumb{background:#8fceff;border-color:#d9f1ff}
.mechanism-scrub input::-moz-range-thumb{background:#8fceff;border-color:#d9f1ff}
.mechanism-node.active rect{fill:#204e74;stroke:#85cbff}
.mechanism-node.active circle{fill:#9ddaff}
.mechanism-wire.engaged{stroke:#b5e1ff}
.mechanism-wire.network.engaged{stroke:#9bcfff}
.mechanism-wire.write.engaged{stroke:#e5c591}
.mechanism-packet.control,.mechanism-packet.read{fill:#cdeaff}
.mechanism-node.ready rect{fill:#244448;stroke:#71baa8}
.diagram-container{background:var(--lavender);border-color:var(--line);color:var(--purple)}
.diagram-kernel{background:#d6eaff;color:#285984}
.diagram-host{background:var(--surface-soft);color:var(--muted)}
.code-block,.case-context .code-block,.worked-example .code-block,.lecture-narration .code-block{background:#122b44;border-color:#294963}
.onboarding-form{box-shadow:0 12px 44px #123d690c}
[data-theme=dark] .onboarding-motion{background:linear-gradient(120deg,#102f4c,#173e60 65%,#132b43);border-color:#294f72}
[data-theme=dark] .onboarding-motion::after{background-image:none}
[data-theme=dark] .primary,[data-theme=dark] .workspace-tabs>button.selected,[data-theme=dark] .compact-topic-filters>button.selected,[data-theme=dark] .explorer-tab.active{color:#09233d}
[data-theme=dark] .diagram-kernel{background:#1d4265;color:#b6dbff}
@media(max-width:720px){.app-wordmark{gap:6px}.whale-mark{width:30px;height:22px}.breadcrumb{gap:10px}}
@media(max-width:380px){.app-wordmark{gap:4px}.whale-mark{width:27px;height:20px}}
[data-theme=dark] .phase-rail .current b,[data-theme=dark] .topic-filter.active{color:#09233d}
[data-theme=dark] .avatar,[data-theme=dark] .nav-count,[data-theme=dark] .diagram-container{background:var(--lavender);border-color:var(--line);color:var(--purple)}
[data-theme=dark] .primary{background:var(--purple);border-color:var(--purple)}
[data-theme=dark] .primary:hover{background:var(--purple-dark);border-color:var(--purple-dark)}
[data-theme=dark] .lab-choice.active{border-color:var(--purple)}
[data-theme=dark] .filter.active{background:var(--purple);border-color:var(--purple);color:#09233d}
@media(max-width:340px){.breadcrumb{gap:8px}}
.onboarding-form input::placeholder,.ref-search::placeholder,.modal-content input::placeholder{color:var(--muted);opacity:1}

@media(max-width:340px){.app-wordmark .wordmark-name{font-size:12px}}

/* Solid controls retain readable hints in both themes. */
#terminal-input::placeholder{color:#a8bdd2;opacity:1}
.skip{background:var(--surface);color:var(--ink)}
