/* One quiet row: wordmark, navigation, then the scene and music controls. */
:is(.public-scene,.app-shell)>header{display:grid;grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:'identity navigation controls';align-items:center;gap:0 10px;min-height:49px;padding:2px clamp(12px,1.2vw,24px)}
:is(.public-scene,.app-shell)>header>.living-identity{grid-area:identity;justify-self:start;min-width:0;width:100%;gap:0}
:is(.public-scene,.app-shell)>header .living-wordmark{width:100%;min-width:0;line-height:1;margin:0}
:is(.public-scene,.app-shell)>header .living-wordmark-art{position:relative;display:block;width:clamp(240px,30vw,500px);max-width:100%;aspect-ratio:3850 / 180;overflow:hidden;opacity:.55}
/* Crop the original artwork's separate mark while retaining its lined lettering. */
:is(.public-scene,.app-shell)>header .living-wordmark-art>img{position:absolute;display:block;width:112.363636%;max-width:none;height:auto;left:-12.363636%;top:-53.333333%}
:is(.public-scene,.app-shell)>header>.scene-navigation{grid-area:navigation;min-width:0;margin-left:0;justify-content:flex-end;flex-wrap:nowrap;gap:0;font-size:11px;white-space:nowrap}
:is(.public-scene,.app-shell)>header>.scene-navigation>button,:is(.public-scene,.app-shell)>header>.scene-navigation>.header-dropdown>button,:is(.public-scene,.app-shell)>header>.scene-navigation>.language-picker>button{min-height:44px;padding:8px 6px;font:inherit;white-space:nowrap}
.downloads-dropdown{position:relative;flex:none}
:is(.public-scene,.app-shell)>header>.scene-navigation>.downloads-dropdown>summary{position:relative;display:flex;align-items:center;min-height:44px;padding:8px 6px;color:#b6c7d1;font:inherit;white-space:nowrap;list-style:none;cursor:pointer}
.downloads-dropdown>summary::-webkit-details-marker{display:none}
.downloads-dropdown>summary::before,.downloads-dropdown>summary::after{content:'';position:absolute;left:9px;right:9px;height:1px;background:linear-gradient(90deg,transparent,#b9dae9 20%,#b9dae9 80%,transparent);opacity:0;transform:scaleX(.4);transition:transform .22s ease,opacity .22s ease;pointer-events:none}
.downloads-dropdown>summary::before{top:2px}.downloads-dropdown>summary::after{bottom:2px}
:is(.public-scene,.app-shell)>header>.scene-navigation>.downloads-dropdown>summary:hover,:is(.public-scene,.app-shell)>header>.scene-navigation>.downloads-dropdown>summary:focus-visible,:is(.public-scene,.app-shell)>header>.scene-navigation>.downloads-dropdown[open]>summary{color:#e9f5fa}
.downloads-dropdown>summary:is(:hover,:focus-visible)::before,.downloads-dropdown>summary:is(:hover,:focus-visible)::after,.downloads-dropdown[open]>summary::before,.downloads-dropdown[open]>summary::after{opacity:1;transform:scaleX(1)}
.downloads-dropdown>summary:focus-visible{outline:1px solid #b9dae9;outline-offset:2px}
@media(prefers-reduced-motion:reduce){.downloads-dropdown>summary::before,.downloads-dropdown>summary::after{transition:none}}
.downloads-menu{position:absolute;top:100%;right:0;z-index:1001;min-width:205px;max-width:calc(100vw - 28px);padding:6px;background:rgba(8,14,18,.96)}
.downloads-menu>a{display:block;padding:10px 12px;color:#b6c7d1;text-decoration:none;white-space:nowrap}
.downloads-menu>a:hover,.downloads-menu>a:focus-visible{color:#e9f5fa;background:#bad8e512}
.downloads-menu small{display:block;margin-top:3px;color:#90a6b3;font-size:10px;line-height:1.4}
.scene-controls{position:relative;grid-area:controls;justify-self:end;display:flex;align-items:center;gap:0;padding:0 0 0 6px;border-left:1px solid #91b6c933;white-space:nowrap}
.scene-controls .scene-control{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:44px;min-height:44px;padding:8px;border:1px solid transparent;border-radius:5px;background:transparent;color:#90a6b3;font:400 11px/1.3 'Living Sans',system-ui,sans-serif;letter-spacing:.01em;box-shadow:none;cursor:pointer;transition:color .18s,background .18s,border-color .18s}
.scene-controls .scene-control .ui-icon{width:17px;height:17px;flex:0 0 17px}
.scene-controls .fx-control .ui-icon{width:18px;height:18px;flex-basis:18px;font-weight:400}
.scene-controls .control-label:empty{display:none}
.scene-controls .music-control{width:44px;min-width:44px;padding:8px;border-radius:50%;color:#8e9ba3}
.scene-controls .music-control .ui-icon{width:24px;height:24px;flex-basis:24px}
.scene-controls .fx-control{margin-left:2px}
/* 0.1.17: the pause / play sign of the motion (motion-toggle.mjs) stands where the word „needle“ stood. */
.scene-controls .needle-control{min-width:44px}
.scene-controls .needle-control .motion-icon{display:block;width:18px;height:18px;flex:0 0 18px}
.scene-controls .scene-control[aria-pressed=true]{color:#c6e2ed;background:#b0d7e40b}
.scene-controls .scene-control:hover{color:#effaff;background:#b0d7e414;border-color:#94bbcc3d}
.scene-controls .music-control[aria-pressed=true]{color:#a5b4bc}
.scene-controls .music-control:hover{color:#bac6cc}
.scene-controls .scene-control:focus-visible{outline:2px solid #b6deec;outline-offset:3px}
.scene-controls .scene-control:disabled{opacity:.35;cursor:default}
.scene-controls .fx-control{position:relative;font-size:12px;letter-spacing:.07em}
.scene-controls .fx-control[aria-pressed=true]::after{content:'';position:absolute;bottom:3px;left:calc(50% - 2px);width:4px;height:2px;border-radius:3px;background:#9ed6e9;box-shadow:0 0 9px #96d0e88c}
/* Keep the decorative mark beside the author's name, within the fifth chat cell. */
.site-credit>.author-credit{display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;height:100%;padding:0 8px;border-right:1px solid #688ea329}
.site-credit>.author-credit>button{flex:0 1 auto;min-width:0;max-width:calc(100% - 40px);min-height:44px;height:auto;padding:6px 0;border:0;border-radius:2px;background:transparent;color:#9eb4c3;font:inherit;overflow-wrap:anywhere;box-shadow:none;text-shadow:none;transition:color .25s}
.site-credit>.author-credit>button>span{height:auto;padding:0;display:inline;overflow-wrap:anywhere}
.site-credit>.author-credit>button.author-online{color:#a6bbc6}
.site-credit>.author-credit>button:hover,.site-credit>.author-credit>button:focus-visible,.site-credit>.author-credit>button[aria-expanded=true]{background:transparent;color:#d0e1e9;box-shadow:none;text-shadow:none}
.site-credit>.author-credit>button:focus-visible{outline:1px solid #92c5db;outline-offset:3px}
.site-credit>.author-credit>button.chat-minimized{box-shadow:none}
.site-credit>.author-credit>.author-credit-mark{display:block;flex:0 0 32px;width:32px;height:32px;object-fit:contain;opacity:.5;pointer-events:none;user-select:none}
.public-scene[data-header-layout=rail]>header{grid-template-columns:minmax(280px,1fr) auto;grid-template-areas:'identity navigation' 'controls controls';gap:12px 24px;padding-bottom:0}
.public-scene[data-header-layout=rail]>header>.scene-controls{justify-self:stretch;justify-content:flex-end;border-left:0;border-top:1px solid #91b6c92e;padding:3px 0 4px;gap:18px}
.public-scene[data-header-layout=rail]>header>.scene-controls .scene-control{min-width:86px;padding:9px 14px}
.public-scene[data-header-layout=identity]>header{grid-template-columns:minmax(300px,1fr) auto;grid-template-areas:'identity navigation' 'controls navigation';column-gap:32px;row-gap:5px;padding-top:19px;padding-bottom:12px}
.public-scene[data-header-layout=identity]>header>.scene-controls{justify-self:start;border-left:0;padding-left:38px;gap:13px}
.public-scene[data-header-layout=identity]>header>.scene-controls .scene-control{min-height:36px;padding:6px 9px}
.public-scene[data-header-layout=identity]>header>.scene-navigation{align-self:center}
.design-review{position:fixed;z-index:60;bottom:76px;left:22px;width:min(390px,calc(100vw - 88px));color:#d3e5ec;font:12px/1.5 'Living Sans',system-ui,sans-serif;background:#061219ed;border:1px solid #819eaf50;border-radius:9px;box-shadow:0 15px 50px #0008;backdrop-filter:blur(12px)}
.design-review details{padding:12px 15px}.design-review summary{cursor:pointer;font-size:12px;letter-spacing:.04em;color:#def0f8;padding:3px 0}.design-review summary:focus-visible{outline:1px solid #9dd7f0;outline-offset:4px}
.design-review-options{display:flex;flex-wrap:wrap;gap:5px;margin-top:14px}
.design-review-options button{font:inherit;font-size:11px;padding:8px;border-radius:4px;background:transparent;color:#a9bcc6;border:1px solid #809dac33;min-height:36px}
.design-review-options button[aria-pressed=true]{background:#9bcbe323;border-color:#9bcbe3b3;color:#e4f6ff}
.design-review p{color:#9fb3bf;font-size:11px;margin:12px 0}
.design-review a{display:block;width:fit-content;color:#c4e5f4;text-decoration:none;border-bottom:1px solid #8fbbce4d;padding:4px 0;margin-top:5px}
.design-review a:hover{color:#fff;border-color:currentColor}
@media(max-width:1049px){
 :is(.public-scene,.app-shell)>header,.public-scene[data-header-layout=rail]>header,.public-scene[data-header-layout=identity]>header{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:'identity controls' 'navigation navigation';min-height:0;gap:0 12px;padding:2px 14px}
 :is(.public-scene,.app-shell)>header .living-wordmark-art{width:min(100%,380px)}
 :is(.public-scene,.app-shell)>header>.scene-navigation{justify-self:stretch;justify-content:flex-end;flex-wrap:wrap;gap:0}
 :is(.public-scene,.app-shell)>header>.scene-controls,.public-scene[data-header-layout=rail]>header>.scene-controls,.public-scene[data-header-layout=identity]>header>.scene-controls{justify-self:end;gap:0;border:0;padding:0}
 .public-scene[data-header-layout=rail]>header>.scene-controls .scene-control,.public-scene[data-header-layout=identity]>header>.scene-controls .scene-control{min-width:44px;min-height:44px;padding:8px}
 .scene-controls .scene-control{font-size:11px;gap:5px}
}
@media(max-width:600px){
 :is(.public-scene,.app-shell)>header,.public-scene[data-header-layout=rail]>header,.public-scene[data-header-layout=identity]>header{grid-template-columns:minmax(0,1fr);grid-template-areas:'identity' 'navigation' 'controls';padding:6px 10px 2px;gap:0}
 :is(.public-scene,.app-shell)>header>.living-identity{justify-self:center;width:min(100%,460px);padding:4px 0}
 :is(.public-scene,.app-shell)>header>.scene-navigation{justify-content:center;white-space:normal}
 :is(.public-scene,.app-shell)>header>.scene-controls,.public-scene[data-header-layout=rail]>header>.scene-controls,.public-scene[data-header-layout=identity]>header>.scene-controls{justify-self:center}
 .site-credit>.author-credit{gap:4px;padding:0 4px}
 .site-credit>.author-credit>button{max-width:calc(100% - 22px)}
 .site-credit>.author-credit>.author-credit-mark{flex-basis:18px;width:18px;height:22px}
 .design-review{left:12px;bottom:68px}
}
@media(prefers-reduced-motion:reduce){.scene-controls .scene-control{transition:none}}
