/* LifeOS design system. Controls belong to their page header, never a floating dock. */
:root{--brand-orange:#f67a45;--brand-orange-bright:#ff8c24;--brand-gold:#ffb347;--brand-black:#090909;--brand-anthracite:#171717;--brand-white:#f5f3ef;--radius-sm:10px;--radius-md:16px;--radius-lg:22px;--sidebar-size:248px;--primary:var(--accent,#f67a45)}
button,input,select,textarea{font:inherit}button,a,summary{-webkit-tap-highlight-color:transparent}button{min-height:42px;border-radius:var(--radius-sm);font-size:13px;font-weight:550;line-height:1.3;transition:background .16s ease,border-color .16s ease,box-shadow .16s ease}button:hover{border-color:var(--accent,#f67a45)}button:disabled{opacity:.45;cursor:default}.primary{box-shadow:0 2px 8px #0001}.primary:hover{filter:brightness(1.06)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid var(--accent,#f67a45);outline-offset:4px}
/* Compact shared utilities, integrated in each header. */
.lifeos-utilities{position:relative;display:flex;align-items:center;gap:4px;flex-shrink:0;color:var(--ink,#f5f3ef);font:12px/1.5 system-ui,sans-serif}
.language-choice{display:flex;align-items:center;margin:0;min-height:40px}.language-choice>span{display:none}.language-choice select{width:60px;min-height:40px;padding:8px 5px;border:0;background:transparent;color:inherit;font-size:12px;font-weight:600;cursor:pointer}.music-panel,.journey-options{position:relative}.music-panel>summary,.journey-options>summary{display:flex;align-items:center;justify-content:center;min-width:42px;min-height:42px;padding:9px 12px;border:0;border-radius:10px;background:transparent;color:inherit;font-size:12px;font-weight:550;cursor:pointer;list-style:none}.music-panel>summary::-webkit-details-marker,.journey-options>summary::-webkit-details-marker{display:none}.music-panel>summary:hover,.journey-options>summary:hover,.music-panel[open]>summary,.journey-options[open]>summary{background:var(--soft,#ffffff12)}
.music-panel>section{position:absolute;right:0;top:calc(100% + 14px);z-index:90;width:min(340px,calc(100vw - 32px));padding:22px;border:1px solid var(--border,#49403a);border-radius:18px;background:var(--surface,#171717);box-shadow:0 24px 60px #0005;max-height:70dvh;overflow:auto}.music-panel h2{font:600 19px/1.3 system-ui,sans-serif;letter-spacing:-.02em;margin:0 0 8px}.music-panel p{font-size:12px;line-height:1.6;margin:8px 0;color:var(--muted,#c6bfba)}.music-panel label{display:grid;gap:8px;margin:16px 0;font-size:12px}.music-panel select{width:100%;min-width:0;padding:11px;font:inherit;border:1px solid var(--border,#49403a);border-radius:10px;background:var(--canvas,#090909);color:inherit}.music-panel audio{width:100%;height:40px;margin:8px 0}.music-panel input[type=range]{width:100%;padding:0;accent-color:var(--accent,#f67a45)}.lifeos-utilities option{background:var(--surface,#171717);color:var(--ink,#f5f3ef)}
/* Application shell. */
#shell>aside{width:var(--sidebar-size);padding:30px 18px 20px;background:var(--surface);overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--border) transparent;z-index:60}.workspace{margin-left:var(--sidebar-size)}aside .brand{font-size:29px;padding:0 12px;letter-spacing:-1.2px}aside .brand span{font-size:8px;letter-spacing:1.6px;margin-left:0;margin-top:8px}.nav-label{margin:36px 12px 14px;font-size:9px}aside nav{gap:4px}aside nav button{min-height:44px;padding:12px 14px;border-radius:10px;font-size:13px;letter-spacing:0;gap:10px}aside nav button[aria-current=page]{box-shadow:inset 3px 0 var(--accent);font-weight:600}.sidebar-bottom{padding-top:22px;margin-top:auto}.sidebar-bottom button{min-height:40px;padding:10px 12px;text-align:left;font-size:12px;background:transparent}.sidebar-bottom #open-data{border:0}.sidebar-bottom .journey-entry{padding:12px;font-size:11px;line-height:1.5;text-decoration:none;display:block}.sidebar-bottom>p{padding:0 12px;font-size:10px}.sidebar-bottom #logout{border-color:var(--border)}
.app-header{position:sticky;top:0;z-index:40;min-height:80px;height:auto;padding:16px 30px;gap:20px;background:var(--surface);border-bottom:1px solid var(--border)}.app-header>.header-heading{display:flex;align-items:center;gap:14px;width:auto;min-width:0}.app-header>.app-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:10px;width:auto;min-width:0}.header-heading #breadcrumb{font-size:12px;white-space:nowrap;color:var(--muted)}#navigation-toggle{min-width:40px;padding:9px;border-color:transparent;background:transparent;font-size:18px;color:var(--muted)}#navigation-toggle:hover{background:var(--soft)}.app-toolbar .date-label{font-size:11px;gap:8px}.app-toolbar .date-label input{font-size:12px;min-height:40px;padding:8px 10px;border-radius:10px}.app-toolbar #theme-toggle{min-width:40px;padding:10px 12px;font-size:12px}.app-toolbar .avatar{width:32px;height:32px;border:0;font-size:11px}.navigation-close{display:none}.navigation-backdrop{position:fixed;inset:0;z-index:55;border:0;border-radius:0;background:#09090999;backdrop-filter:blur(3px);padding:0}
.workspace main{padding:36px 30px 48px;max-width:1440px;min-width:0}.page-head{gap:20px;margin-bottom:28px;align-items:center}.page-head h1{font-size:clamp(26px,2.6vw,36px);line-height:1.18;letter-spacing:-.035em;margin:8px 0 10px}.page-head p{max-width:65ch;line-height:1.6}.eyebrow{font-size:9px;letter-spacing:1.8px}.section-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.section-actions .primary{padding:12px 17px}.cards{gap:16px;margin-bottom:24px}.card,.panel{border-radius:18px;padding:22px;min-width:0;box-shadow:0 3px 14px #00000006}.card .icon{padding:7px 10px;border-radius:10px;margin-bottom:18px}.card .label{font-size:11px;line-height:1.5}.card strong{font-size:clamp(25px,2.2vw,32px);line-height:1.2;letter-spacing:-.04em;margin:12px 0 8px;overflow-wrap:anywhere}.card small{font-size:10px;line-height:1.6}.grid{gap:20px}.grid>*{min-width:0}.panel-head{gap:12px;align-items:center;margin-bottom:20px}.panel-head h2{font-size:15px;line-height:1.4;letter-spacing:-.015em;margin:0}.panel-head button{font-size:11px;min-height:36px;padding:8px 12px}.row{padding:16px 0;gap:16px}.row .grow{min-width:0}.row strong{font-size:13px;font-weight:550}.row small{font-size:11px;line-height:1.6}.row .actions{gap:6px}.row .actions button{min-height:34px;padding:7px 10px;font-size:11px}.empty{padding:28px 20px;border-radius:12px;font-size:12px;line-height:1.8}.observation-chart{color:var(--accent)}label{font-size:12px;line-height:1.5}input,select,textarea{min-height:42px;border-radius:10px;padding:11px 12px;font-size:14px}dialog{width:min(640px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:28px;border-radius:22px;border-color:var(--border,#49403a);box-shadow:0 30px 100px #0005}dialog::backdrop{background:#09090999;backdrop-filter:blur(6px)}#fields{gap:16px}.workspace footer{padding:22px 30px;font-size:10px;line-height:1.6}
/* Sign-in is part of the same product, with its own clean header. */
.access-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px clamp(20px,5vw,70px);border-bottom:1px solid var(--border);background:var(--canvas);min-height:88px}.access-wordmark{font-size:25px;font-weight:750;letter-spacing:-1.3px;color:var(--accent);text-decoration:none}.access-wordmark span{font-weight:400}.auth{min-height:calc(100svh - 90px);padding:40px 20px;place-items:center;align-items:center;background:radial-gradient(ellipse at 50% 15%,var(--soft),transparent 65%),var(--canvas)}.auth-card{width:min(460px,100%);max-width:460px;padding:36px;border-radius:22px;box-shadow:0 22px 70px #00000012;margin:0 auto}.auth-card>.brand{display:none}.auth-card h1{font-size:30px;line-height:1.2;letter-spacing:-.04em;margin:0 0 14px}.auth-card>p{font-size:13px;line-height:1.7}.auth-card form{gap:18px;margin-top:28px}.auth-card label{display:grid;gap:8px;font-size:12px}.auth-card input{font-size:16px;min-height:46px}.auth-card .primary{min-height:46px}.auth-links{gap:8px;margin-top:18px}.auth-links button{flex:1;font-size:12px;padding:10px;background:transparent}.auth-card .small-note{font-size:10px;line-height:1.7}.auth-card .journey-entry{font-size:11px;text-align:center;padding:12px 0;margin:12px 0;text-decoration:none}
/* Cinematic page: one header, one footer, no floating rows of buttons. */
.experience-header{position:fixed;inset:18px 24px auto;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:24px;padding:15px 22px;border:1px solid #ffffff1c;border-radius:18px;background:#090909e8;backdrop-filter:blur(18px);z-index:50}.experience-mark{display:grid;gap:5px}.experience-mark .brand{padding:0;font-size:28px;line-height:1;letter-spacing:-1.5px}.experience-mark .personal{font-size:7px;letter-spacing:1.3px;white-space:nowrap;color:#c6bfba}.experience-header .chapters{position:static;display:flex;align-items:center;justify-content:center;gap:22px;min-width:0}.experience-header .chapters a{font-size:11px;min-height:40px;padding:12px 0 9px;white-space:nowrap}.experience-header .chapters small{font-size:8px;margin-right:5px}.experience-actions{display:flex;align-items:center;gap:8px}.experience-actions .entry-link{display:inline-flex;align-items:center;justify-content:center;border:1px solid #f67a45;border-radius:10px;background:#f67a45;color:#201008;padding:11px 15px;min-height:42px;white-space:nowrap;font-size:11px;font-weight:650}.journey-options>summary{font-size:24px;padding:5px 10px}.journey-options-menu{position:absolute;right:0;top:calc(100% + 14px);min-width:210px;padding:8px;border:1px solid #49403a;border-radius:14px;background:#171717;box-shadow:0 20px 60px #0006}.journey-options-menu button{display:flex;align-items:center;justify-content:space-between;width:100%;padding:12px;border:0;border-radius:8px;background:transparent;color:#f5f3ef;font-size:12px;text-align:left}.journey-options-menu button:hover{background:#28211c}.journey-options-menu button span{margin-left:24px}.journey-options-menu #fullScreenBtn{font-size:12px}.frame-label,#sceneRail{display:none}.copy{max-width:min(650px,80vw)}.copy h1,.copy h2{transform:perspective(1200px) rotateY(-3deg);transform-origin:left center;text-shadow:1px 2px 0 #482b19,0 8px 28px #0006;letter-spacing:-.045em}.copy p{max-width:42ch;font-size:14px;line-height:1.85;color:#f5f3efd9}.copy .action{display:none}.copy .platform-entry{display:inline-flex;align-items:center;min-height:46px;padding:13px 22px;border-radius:12px;font-size:12px}.copy .caption{margin-top:20px;font-size:8px;letter-spacing:1.5px}.storage-note{border-left:2px solid #f67a45;padding-left:12px}body:has(#journey)>footer{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:22px;min-height:78px;padding:16px 32px;border-top:1px solid #ffffff14;background:#090909e8;backdrop-filter:blur(18px);z-index:25}.step-controls{display:flex;gap:0;border:1px solid #ffffff24;border-radius:12px;overflow:hidden}.step-controls button{min-width:44px;min-height:40px;padding:8px 12px;border:0;border-radius:0;background:transparent;font-size:17px}.step-controls button+button{border-left:1px solid #ffffff20}.step-controls button:hover{background:#ffffff0c}footer .scroll-cue{display:none}footer .scene-name{font-size:10px;letter-spacing:1.3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}footer .track{position:absolute;inset:0 0 auto;height:2px}footer #chapterCount{font-size:11px;letter-spacing:1px}
@media(max-width:1200px){.app-toolbar .avatar{display:none}.app-toolbar #theme-toggle{font-size:0;min-width:40px;width:40px;padding:9px}.app-toolbar #theme-toggle::before{content:'◐';font-size:17px}.experience-header{gap:16px;padding:14px 18px}.experience-header .chapters{gap:14px}.experience-header .chapters small{display:none}.experience-mark .personal{display:none}.experience-mark .brand{font-size:27px}.music-panel>summary{font-size:0;min-width:40px;width:40px;padding:9px}.music-panel>summary::before{content:'♫';font-size:17px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.workspace{margin-left:0}.app-header{padding:12px 20px;gap:12px}.app-header>.header-heading,.app-header>.app-toolbar{width:auto}.header-heading #breadcrumb{max-width:190px;overflow:hidden;text-overflow:ellipsis;font-size:11px}.app-toolbar .date-label{font-size:0;gap:0}.app-toolbar .date-label input{max-width:148px}.app-toolbar{gap:5px!important}#shell>aside{position:fixed;inset:0 auto 0 0;width:min(286px,calc(100vw - 48px));height:100dvh;padding-top:62px;transform:translateX(-105%);transition:transform .2s ease;display:flex!important}.navigation-open #shell>aside{transform:translateX(0)}body.navigation-open{overflow:hidden}.navigation-close{display:block;position:absolute;top:16px;right:16px;width:36px;min-height:36px;padding:4px;border-color:transparent;background:transparent;font-size:24px}.workspace main{padding:28px 20px}.grid{grid-template-columns:1fr}.experience-header{grid-template-columns:auto 1fr;inset:12px 16px auto;gap:5px 12px;padding:12px 16px}.experience-actions{justify-self:end;gap:4px}.experience-header .chapters{grid-row:2;grid-column:1/-1;justify-content:space-between;width:100%;gap:12px}.experience-header .chapters a{font-size:10px;min-height:34px;padding:10px 0 6px}.experience-mark .brand{font-size:26px}.experience-actions .entry-link{padding:10px 12px;font-size:10px;min-height:38px}.experience-header .language-choice select{width:52px;font-size:11px;min-height:38px}.experience-header .music-panel>summary,.journey-options>summary{width:36px;min-width:36px;min-height:38px}.copy h1,.copy h2{transform:none}.experience-header .music-panel>section{position:fixed;top:124px;right:16px}.journey-options-menu{position:fixed;right:16px;top:124px}}
@media(max-width:560px){.app-header{display:grid;grid-template-columns:1fr;padding:12px 16px;gap:8px}.app-header>.header-heading{gap:10px}.app-header>.app-toolbar{justify-content:space-between;gap:4px;width:100%}.app-toolbar .date-label{width:auto}.app-toolbar .date-label input{min-height:38px;width:145px}.app-toolbar .lifeos-utilities{gap:0}.app-toolbar #theme-toggle{min-height:38px}.app-header .music-panel>section{position:fixed;right:16px;top:122px}.header-heading #breadcrumb{max-width:calc(100vw - 92px)}.workspace main{padding:24px 16px}.page-head{align-items:flex-start;flex-direction:column;gap:16px;margin-bottom:22px}.page-head h1{font-size:28px}.section-actions{width:100%;gap:8px}.section-actions>button{flex:1}.cards{gap:10px}.card{padding:16px}.card .icon{margin-bottom:12px}.card strong{font-size:25px}.card small{font-size:9px}.panel{padding:18px}.panel-head{flex-wrap:wrap;gap:10px}.row{flex-wrap:wrap;gap:10px}.row>.grow{flex:1;min-width:160px}.panel input,.panel select{max-width:100%;font-size:16px}.workspace footer{padding:20px 16px;flex-wrap:wrap}.auth{padding:24px 16px;min-height:calc(100svh - 76px)}.auth-card{padding:26px 22px;border-radius:18px}.auth-card h1{font-size:28px}.access-toolbar{padding:16px 20px;min-height:76px}.access-toolbar .music-panel>section{position:fixed;top:80px;right:16px}.experience-header{inset:10px 10px auto;padding:10px 12px;gap:3px 4px}.experience-mark .brand{font-size:23px}.experience-mark .brand sup{display:none}.experience-actions{gap:2px}.experience-actions .entry-link{font-size:9px;padding:9px 10px}.experience-header .language-choice select{width:48px}.experience-header .music-panel>summary,.journey-options>summary{width:32px;min-width:32px;min-height:36px}.experience-header .chapters{gap:6px}.experience-header .chapters a{font-size:9px}.copy{margin-left:22px;margin-right:22px;max-width:calc(100vw - 44px)}body:has(#journey) .copy{top:28vh!important}.copy h1,.copy h2{font-size:clamp(32px,8.5vw,45px);line-height:1.12}.copy p{font-size:12px;line-height:1.8;max-width:35ch}.copy .caption{font-size:7px}body:has(#journey)>footer{padding:12px 18px;min-height:70px;gap:14px}.step-controls button{min-width:40px;min-height:38px}footer .scene-name{font-size:8px;letter-spacing:.7px}footer #chapterCount{font-size:9px}.music-panel>section{max-height:calc(100dvh - 150px)}}
@media(max-height:600px) and (max-width:900px){body:has(#journey) .copy{top:29vh!important}.copy h1,.copy h2{font-size:30px;margin:14px 0}.copy p{font-size:11px;line-height:1.6;margin:12px 0}.copy .caption{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}.copy h1,.copy h2{transform:none}}
/* The approved frame occupies its own stage, clear of the header and footer. */
body:has(#journey) #stage{inset:108px 0 78px}
@media(max-width:900px){body:has(#journey) #stage{inset:124px 0 78px}}
@media(max-width:560px){body:has(#journey) #stage{inset:120px 0 70px}}
.panel{overflow-wrap:anywhere}.panel table{display:block;max-width:100%;overflow-x:auto}.panel pre{max-width:100%;overflow:auto}
@media(max-width:560px){.app-toolbar .language-choice select{width:48px}.app-toolbar .music-panel>summary{width:36px;min-width:36px}}
/* A consistent reading position; the introductory chapter no longer drops below mid-screen. */
@media(min-width:701px){body:has(#journey) .copy{top:clamp(150px,28vh,300px)}}
/* Keep ordinary and visited application links in the same warm identity. */
body:not(:has(#journey)) a,body:not(:has(#journey)) a:visited{color:var(--accent,var(--brand-orange))}
