.rail{position:fixed;inset:0 auto 0 0;width:var(--rail);padding:32px 16px 16px;background:var(--surface);border-right:1px solid var(--line);display:flex;flex-direction:column;overflow-y:auto;z-index:40}.brand{display:flex;align-items:center;gap:10px;padding:0 8px;color:var(--ink)}.brand:hover{text-decoration:none}.brand img{border-radius:10px}.brand-name{font-size:27px;line-height:1;letter-spacing:-1.1px;font-weight:550}.brand-name small{display:block;font-size:11px;letter-spacing:0;font-weight:400;margin-top:8px}.search-launch{display:flex;align-items:center;gap:8px;width:100%;min-height:44px;padding:0 10px;margin:32px 0 24px;background:var(--soft);border:1px solid var(--line);border-radius:var(--radius-control);font-size:12px;color:var(--muted)}.search-launch .icon{width:16px;height:16px}kbd{font-size:10px;padding:2px 4px;border:1px solid var(--control);border-radius:4px;margin-left:auto;white-space:nowrap}nav{display:flex;flex-direction:column;gap:4px}nav a{position:relative;display:flex;align-items:center;gap:10px;min-height:46px;padding:0 12px;border-radius:var(--radius-control);font-size:13px;color:var(--muted)}nav a:hover{background:var(--soft);text-decoration:none}nav a.active{background:var(--accent-soft);color:var(--accent);font-weight:550}.nav-count{margin-left:auto;font-size:11px;font-variant-numeric:tabular-nums}.nav-divider{height:1px;background:var(--line);margin:20px 12px 16px}.rail-bottom{margin-top:auto;padding-top:40px}.local-state{display:flex;gap:8px;align-items:center;min-height:44px;color:var(--muted);font-size:11px;padding:0 10px}.status-dot{width:6px;height:6px;border-radius:50%;background:var(--control)}.status-dot.online{background:var(--good)}.identity{display:flex;gap:10px;align-items:center;border-top:1px solid var(--line);padding:20px 8px 0;margin-top:8px}.identity strong{font-size:12px}.identity small{display:block;font-size:10px;margin-top:4px}.initials{width:34px;height:34px;border-radius:var(--radius-control);display:grid;place-items:center;background:var(--soft);font-size:11px;color:var(--muted)}.rail-close{display:none}
main{margin-left:var(--rail);min-height:100dvh}.top{height:72px;position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:space-between;padding:0 40px;background:var(--canvas);border-bottom:1px solid transparent;transition:border-color var(--duration-change)}.top.scrolled{border-color:var(--line)}#breadcrumb{font-size:12px;color:var(--muted)}.top-actions{display:flex;gap:8px}.mobile-menu{display:none}.page{max-width:1424px;margin:auto;padding:24px 40px 64px}.view{min-width:0}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:32px}.page-heading p:not(.date-label){color:var(--muted);margin:12px 0 0;max-width:55ch}.date-label{font-size:12px;color:var(--muted);margin:0 0 16px}.section-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.section-head .subtle{white-space:nowrap;font-size:11px}
.home-hero{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(300px,1fr);gap:32px;align-items:center;margin-bottom:40px;min-height:352px}.hero-copy{min-width:0}.hero-copy .page-heading{margin-bottom:24px}.home-hero h1{font-size:clamp(36px,3.9vw,56px)}#home-observation{font-size:14px}.composer{background:var(--surface);border:1px solid var(--control);border-radius:var(--radius-input);padding:24px;box-shadow:var(--key-shadow);transition:border-color .2s,box-shadow .2s}.composer:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}.composer label:not(.continue-option){font-size:15px;font-weight:550;display:block;margin-bottom:8px}.composer textarea{display:block;width:100%;resize:vertical;min-height:60px;background:transparent;border:0;color:var(--ink);padding:4px 0;line-height:1.6}.composer textarea::placeholder{color:var(--muted)}.home-composer{padding:20px 24px}.home-composer textarea{min-height:48px;font-size:15px}.composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}.composer-bottom select{min-width:0;flex:1;max-width:220px}.engine-label{font-size:12px;color:var(--muted)}.composer select,.memory-form select{min-height:44px;padding:8px 10px;border:1px solid var(--control);border-radius:var(--radius-control);background:var(--surface);color:var(--muted)}.quick-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 0}.quick-actions button{display:flex;align-items:center;gap:8px;padding:8px 12px;min-height:44px;font-size:12px;background:var(--soft);border:1px solid var(--line);border-radius:var(--radius-control);box-shadow:var(--key-shadow)}.quick-actions button:hover{background:var(--accent-soft);color:var(--accent)}.quick-actions .icon{width:16px;height:16px}
.presence-stage{position:relative;min-width:0;height:352px;overflow:hidden;isolation:isolate}.presence-stage canvas{position:absolute;inset:0;width:100%;height:calc(100% - 66px);touch-action:pan-y}.presence-stage canvas[aria-hidden]{pointer-events:auto}.world-doors{position:absolute;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:8px 0}.world-doors a{display:flex;flex-direction:column;align-items:center;gap:7px;min-height:56px;padding:4px;border-radius:var(--radius-control);font-size:12px;color:var(--ink)}.world-doors a:hover{background:var(--soft);text-decoration:none}.world-doors small{font-size:10px;color:var(--muted);text-align:center;line-height:1.4}.world-dot{width:6px;height:6px;border-radius:50%;background:var(--world-memory)}[data-world="gmail"] .world-dot{background:var(--world-mail)}[data-world="whatsapp"] .world-dot{background:var(--world-whatsapp)}[data-world="studio"] .world-dot{background:var(--world-studio)}.world-doors a[data-available="false"] .world-dot{background:var(--control)}.presence-fallback{display:flex;align-items:center;justify-content:center;gap:12px;height:270px}.presence-fallback i{display:block;width:34px;height:145px;border-radius:24px;background:var(--world-memory);transform:rotate(-16deg)}.presence-fallback i:nth-child(1){background:var(--world-mail);height:95px}.presence-fallback i:nth-child(2){background:var(--world-whatsapp);height:125px}.presence-fallback i:nth-child(4){background:var(--world-studio);height:110px}.presence-stage[data-renderer="three"] .presence-fallback{display:none}
.home-grid,.assistant-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:32px;align-items:start}.day-main,.day-context,.conversation-column,.proposal-column{min-width:0}.day-context{display:flex;flex-direction:column;gap:16px}.brief-panel{margin-bottom:32px}.brief-actions{list-style:none;margin:0;padding:0}.brief-actions li{display:flex;gap:12px;align-items:center;border-bottom:1px solid var(--line);min-height:58px}.brief-actions li:first-child{border-top:1px solid var(--line)}.brief-action{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:1;min-width:0;min-height:58px;text-align:left;border:0;background:none;font-size:14px;padding:12px 0}.brief-action span{overflow-wrap:anywhere}.brief-action .icon{width:16px;height:16px;flex-shrink:0;color:var(--muted);transition:transform .2s}.brief-action:hover{color:var(--accent)}.brief-action:hover .icon{transform:translateX(3px)}.brief-source{font-size:11px;min-height:44px;display:flex;align-items:center;color:var(--muted)}.brief-source:hover{color:var(--accent)}.brief-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:8px}.brief-coverage-toggle{margin:0}.brief-coverage-toggle summary{font-size:11px}.brief-coverage{font-size:12px;color:var(--muted);margin:8px 0;max-width:64ch}.brief-footer .text-button{font-size:11px;white-space:nowrap}
.message-list{border-top:1px solid var(--line)}.message-preview{display:flex;align-items:center;gap:12px;width:100%;min-height:88px;padding:16px 8px;border:0;border-bottom:1px solid var(--line);background:none;text-align:left;border-radius:8px;transition:background .2s}.message-preview:hover{background:var(--soft)}.message-icon{width:38px;height:38px;flex-shrink:0;border-radius:12px;background:var(--soft);display:grid;place-items:center;color:var(--world-mail)}.message-preview[data-source="whatsapp"] .message-icon{color:var(--world-whatsapp)}[data-theme="light"] .message-icon{color:#465ca4}[data-theme="light"] .message-preview[data-source="whatsapp"] .message-icon{color:#246c4c}.message-copy{flex:1;min-width:0}.message-top{display:flex;justify-content:space-between;gap:12px;align-items:baseline}.message-sender{font-size:12px;font-weight:550;overflow-wrap:anywhere}.message-time{font-size:11px;color:var(--muted);white-space:nowrap}.message-subject{display:block;font-size:13px;line-height:1.5;margin-top:4px;overflow-wrap:anywhere}.message-excerpt{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;color:var(--muted);font-size:12px;margin-top:4px}.home-feed .message-excerpt{display:none}.home-feed .message-subject{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.message-open{color:var(--muted)}.message-open .icon{width:16px;height:16px}.home-feed .section-head{margin-bottom:12px}
.studio-card{background:var(--surface);padding:24px;border:1px solid var(--line);border-radius:var(--radius-card);box-shadow:var(--key-shadow)}.studio-card .section-head{margin-bottom:20px}.studio-card .section-head h2{font-size:18px}.studio-card .section-head>span{color:var(--world-studio)}.studio-card h3{font-size:14px}.studio-caption{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;font-size:11px;color:var(--muted);margin:8px 0}.studio-actions{display:flex;justify-content:space-between;align-items:center;margin-top:12px}.piano-wrap{background:var(--studio);padding:16px 12px 8px;border:1px solid #405247;border-radius:var(--radius-control);margin-bottom:20px;color:var(--studio-ink);overflow:hidden}.piano-label{display:flex;justify-content:space-between;font-size:10px;color:var(--studio-ink);margin:0 4px 12px}.piano{width:100%;height:auto;display:block}.piano rect{fill:var(--studio-note)}.piano path{stroke:var(--studio-grid)}.piano text{fill:var(--studio-ink)}.context-note,.source-health{padding:0 8px}.context-note details,.source-health details{margin:0}.context-note>details>summary,.source-health>details>summary{min-height:52px;font-size:13px;color:var(--ink);border-bottom:1px solid var(--line)}.context-note>details>summary .icon{width:16px;height:16px;margin-left:auto;color:var(--muted)}.source-health summary .subtle{margin-left:auto;font-size:11px}.context-note p{font-size:13px;line-height:1.7;margin-top:12px}.health-row{padding:14px 0;border-bottom:1px solid var(--line)}.health-label{display:flex;justify-content:space-between;gap:8px;font-size:12px}.health-row small{display:block;font-size:11px;margin-top:4px}
.assistant-layout{grid-template-columns:minmax(0,1fr) 310px}.continue-option{display:flex;align-items:center;gap:8px;min-height:44px;color:var(--muted);font-size:12px;margin-top:8px}.continue-option input,.switch input{width:18px;height:18px;accent-color:var(--accent);margin:0}.conversation-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:32px 0 16px}.answer,.proposal{border:1px solid var(--line);border-radius:var(--radius-card);background:var(--surface);padding:24px;margin-bottom:16px;box-shadow:var(--key-shadow)}.ask{font-size:16px;font-weight:550;line-height:1.6;margin-bottom:16px}.run-state{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:var(--muted);border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:20px}.response{font-size:14px;line-height:1.8;overflow-wrap:anywhere;max-width:80ch}.response h3{margin:24px 0 12px}.response h3:first-child{margin-top:0}.response ul,.response ol{padding-left:20px;margin:0 0 20px}.response li{margin:8px 0}.response a{text-decoration:underline;overflow-wrap:anywhere}.usage-note{font-size:11px;color:var(--muted);margin-top:20px}.progress{height:3px;background:var(--soft);max-width:160px;overflow:hidden;border-radius:2px;margin-bottom:16px}.progress::after{content:'';display:block;width:40%;height:100%;background:var(--accent);animation:working 1.4s ease-in-out infinite}@keyframes working{from{transform:translateX(-110%)}to{transform:translateX(360%)}}.proposal-column h2{margin-bottom:16px}.proposal h3{margin:12px 0}.proposal p{font-size:13px;line-height:1.7;overflow-wrap:anywhere}.buttons{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
.filter-bar{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:24px}.segmented{display:flex;gap:4px;flex-wrap:wrap;padding:4px;background:var(--soft);border-radius:var(--radius-control);max-width:100%}.segmented button{border:0;background:none;color:var(--muted);font-size:12px;padding:8px 14px;min-height:44px;border-radius:7px}.segmented button[aria-pressed="true"]{background:var(--surface);color:var(--ink);box-shadow:var(--key-shadow);font-weight:550}.inline-search{display:flex;gap:8px;align-items:center;min-height:44px;min-width:0;padding:0 12px;border:1px solid var(--control);border-radius:var(--radius-control);background:var(--surface)}.inline-search .icon{width:16px;height:16px;color:var(--muted)}.inline-search input{background:transparent;color:var(--ink);border:0;min-width:0;width:100%;height:44px;font-size:12px}.inline-search input::placeholder{color:var(--muted)}.source-section{margin-bottom:32px}.source-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:8px}.source-heading h2{display:flex;align-items:center;gap:8px}.source-coverage{font-size:12px;color:var(--muted);max-width:80ch;margin-bottom:16px}
.memory-form{max-width:800px;padding:24px;border:1px solid var(--control);border-radius:var(--radius-input);background:var(--surface);margin-bottom:32px}.memory-form>label{display:block;font-weight:550;margin-bottom:12px}.memory-form textarea{display:block;width:100%;min-height:66px;padding:12px;border:1px solid var(--control);border-radius:var(--radius-control);background:var(--canvas);color:var(--ink);resize:vertical}.memory-form textarea::placeholder{color:var(--muted)}.memory-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.memory-card{padding:24px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-card)}.domain{display:block;font-size:12px;font-weight:550;color:var(--accent);margin-bottom:12px}.memory-card p{font-size:14px;line-height:1.7}.memory-card small{display:block;font-size:11px;line-height:1.7;margin-top:16px}
.studio-layout{display:grid;grid-template-columns:270px minmax(0,1fr);gap:24px;align-items:start}.library{position:sticky;top:96px;padding:24px 16px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-card)}.library .section-head h2{font-size:15px}.library .inline-search{margin-bottom:12px}.library #sets{max-height:calc(100dvh - 300px);overflow-y:auto;overscroll-behavior:contain}.set{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;min-height:72px;padding:16px 8px;background:none;border:0;border-bottom:1px solid var(--line);border-radius:8px;text-align:left;font-size:13px}.set:hover,.set.selected{background:var(--accent-soft);color:var(--accent)}.set small{display:block;font-size:11px;margin-top:4px}.set .icon{width:16px;height:16px}.session-detail{min-height:250px;padding:32px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-card)}.session-detail h2{font-size:28px}.session-title{margin-top:12px}.session-title-empty{margin-top:24px}.session-subtitle{color:var(--muted);font-size:12px;margin:12px 0 24px}.session-facts{display:flex;gap:32px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding:16px 0 24px;margin-bottom:24px}.session-facts strong{display:block;font-size:32px;font-weight:500;line-height:1.1;font-variant-numeric:tabular-nums}.session-facts span{display:block;font-size:11px;color:var(--muted);margin-top:8px}.locator-list{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0 24px}.locator-list span{padding:8px 12px;background:var(--soft);border-radius:8px;font-size:11px}.track{display:flex;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);padding:12px 0;font-size:13px}.track span{text-align:right;font-size:11px;color:var(--muted)}.source-integrity{display:flex;gap:8px;align-items:center;font-size:12px;color:var(--good);margin-top:16px;padding:12px 0}.source-integrity .icon{width:16px;height:16px}.live-panel,.routine{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:24px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-card);margin-top:24px}.live-panel p,.routine p{font-size:12px;color:var(--muted);margin:12px 0;max-width:70ch}.live-panel>.secondary{flex-shrink:0}
.connections-list{padding:0 24px;border:1px solid var(--line);border-radius:var(--radius-card);background:var(--surface)}.connection{display:grid;grid-template-columns:160px minmax(0,1fr) 140px;gap:24px;border-bottom:1px solid var(--line);padding:24px 0;align-items:start}.connection:last-child{border-bottom:0}.connection h2{font-size:15px}.connection p{font-size:12px;color:var(--muted);line-height:1.8;margin:0}.connection .result-tag{justify-self:end;text-align:right}.switch{display:flex;align-items:center;gap:12px;min-height:44px;font-size:13px;cursor:pointer}.reference-links{display:flex;flex-wrap:wrap;gap:24px;margin-top:24px;font-size:12px}.reference-links a{display:flex;align-items:center;min-height:44px}.receipt{padding:8px 24px;margin:0 0 12px;border:1px solid var(--line);border-radius:var(--radius-input);background:var(--surface)}.receipt summary{color:var(--ink);font-size:13px;min-height:54px}.receipt summary small{margin-left:auto;font-size:11px}.receipt>p{font-size:11px;overflow-wrap:anywhere;color:var(--muted)}
dialog{background:var(--surface);color:var(--ink);border:1px solid var(--line);box-shadow:var(--panel-shadow);max-width:100%;padding:0}dialog::backdrop{background:#0c0b0a85;backdrop-filter:blur(8px)}dialog:not([open]){display:none}dialog.reader{position:fixed;inset:0 0 0 auto;width:580px;max-width:min(100%,580px);height:100dvh;max-height:100dvh;margin:0;border-radius:var(--radius-panel) 0 0 var(--radius-panel);display:flex;flex-direction:column}.reader-header{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;border-bottom:1px solid var(--line);flex-shrink:0}.reader-content{padding:32px;overflow-y:auto;flex:1}.reader-content h2{font-size:24px;line-height:1.35;margin-bottom:16px}.reader-content .subtle{line-height:1.7}.reader-body-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.8;margin:24px 0}.reader-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding:16px 24px;flex-shrink:0}.reader-preview{padding:16px;background:var(--soft);border-radius:var(--radius-input);margin:24px 0}.reader-preview p{font-size:13px;margin:0;line-height:1.8}.reader-coverage{font-size:12px;color:var(--muted);margin-top:24px}.search-dialog{width:650px;max-height:75dvh;margin:12vh auto auto;border-radius:var(--radius-panel)}.search-head{display:flex;gap:12px;align-items:center;padding:12px 16px;border-bottom:1px solid var(--line)}.search-head>span{color:var(--muted)}.search-head input{flex:1;min-width:0;height:48px;background:none;border:0;font-size:15px;color:var(--ink)}.search-head input::placeholder{color:var(--muted)}.search-caption{padding:16px 20px;font-size:12px;color:var(--muted);margin:0}#search-results{max-height:50dvh;overflow-y:auto}.search-result{display:flex;align-items:center;gap:12px;min-height:60px;width:100%;padding:16px 20px;border:0;border-top:1px solid var(--line);background:none;text-align:left}.search-result:hover{background:var(--soft)}.search-result span{display:block;font-size:13px;overflow-wrap:anywhere}.search-result small{display:block;font-size:11px;margin-bottom:4px}.search-result .icon{color:var(--muted)}#search-results>.empty{padding:16px 20px}.error-banner{padding:16px;margin:12px 40px;background:var(--warn-bg);color:var(--warn);border:1px solid var(--warn);border-radius:var(--radius-control);font-size:13px}#notice{position:fixed;bottom:24px;left:calc(var(--rail) + (100vw - var(--rail))/2);transform:translateX(-50%);max-width:calc(100vw - var(--rail) - 40px);width:max-content;padding:16px 20px;border-radius:var(--radius-control);background:var(--ink);color:var(--surface);box-shadow:var(--panel-shadow);font-size:13px;z-index:100}#notice.error{background:var(--warn-bg);color:var(--warn);border:1px solid var(--warn)}.busy-label{display:inline-flex;gap:8px;align-items:center}.busy-label::before{content:'';width:12px;height:12px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
dialog.reader:not([open]){display:none}
.presence-stage{background:radial-gradient(ellipse at 50% 42%,#244a392b,transparent 65%);border-radius:var(--radius-card)}
[data-theme="light"] .presence-stage{background:radial-gradient(ellipse at 50% 42%,#d7e9dc,transparent 66%)}
#presence-canvas.pickable{cursor:pointer}
[data-motion="paused"] *,[data-motion="paused"] *::before,[data-motion="paused"] *::after{animation:none!important;transition:none!important}
@media(max-width:1190px){.page{padding:24px 24px 56px}.top{padding:0 24px}.home-hero{gap:24px;grid-template-columns:minmax(0,1fr) minmax(240px,.9fr)}.home-grid,.assistant-layout{gap:24px;grid-template-columns:minmax(0,1fr) 260px}.studio-layout{grid-template-columns:220px minmax(0,1fr)}.connection{grid-template-columns:130px minmax(0,1fr)}.connection .result-tag{grid-column:2;justify-self:start}}
@media(max-width:1000px){.home-hero{grid-template-columns:1fr;position:relative}.presence-stage{height:250px;grid-row:1;width:100%;max-width:430px;margin:auto}.home-hero h1{font-size:44px}.home-hero .page-heading{margin-bottom:24px}.home-grid,.assistant-layout{grid-template-columns:1fr}.day-context{display:grid;grid-template-columns:1fr 1fr;align-items:start}.studio-card{grid-row:span 2}.memory-list{grid-template-columns:1fr}.presence-fallback{height:170px}}
@media(max-width:760px){.rail{width:264px;padding:32px 16px 16px;transform:translateX(-100%);transition:transform .4s var(--ease)}.rail.open{transform:none;box-shadow:0 0 0 100vmax #0c0b0a85}.rail-close{display:flex;position:absolute;top:14px;right:8px}.rail .brand{margin-top:24px}.top{height:64px;padding:0 20px}.top-actions{gap:0}.mobile-menu{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0;background:none;border:0;font-size:12px;color:var(--ink);margin-right:16px}#breadcrumb{margin-right:auto}.page{padding:16px 20px 48px}.page-heading{display:block;margin-bottom:24px}.page-heading>.primary{margin-top:16px}.page-heading p:not(.date-label){font-size:13px}.home-hero{display:flex;flex-direction:column-reverse;gap:0;min-height:0;margin-bottom:32px}.hero-copy{width:100%}.presence-stage{height:216px;max-width:360px;margin-bottom:20px}.home-hero h1{font-size:36px}.date-label{margin-bottom:12px}.home-composer,.composer{padding:16px 20px}.home-composer textarea{font-size:14px}.composer-bottom{gap:8px}.primary,.secondary{padding:10px 14px;font-size:12px}.quick-actions{gap:6px}.quick-actions button{font-size:11px;padding:8px}.quick-actions .icon{width:14px;height:14px}.world-doors{padding:4px 0}.world-doors a{font-size:11px}.home-grid{gap:24px}.brief-footer{flex-wrap:wrap;gap:4px}.brief-action{font-size:13px}.message-preview{padding:16px 0;gap:10px}.message-icon{width:32px;height:32px}.message-open{display:none}.message-time{white-space:normal;text-align:right;max-width:100px}.day-context{gap:16px}.studio-card{padding:20px}.filter-bar>.inline-search{width:100%}.source-heading{align-items:flex-start}.source-heading h2{padding-top:8px}.studio-layout{grid-template-columns:1fr}.library{position:static;padding:20px 16px}.library #sets{max-height:320px}.session-detail{padding:24px 20px}.live-panel,.routine{display:block;padding:24px 20px}.live-panel>.secondary,.switch{margin-top:16px}.connections-list{padding:0 20px}.connection{grid-template-columns:1fr;gap:8px}.connection .result-tag{grid-column:auto}.memory-form{padding:20px 16px}.memory-form select{max-width:140px;min-width:0;flex:1}.segmented button{padding:8px 11px}.error-banner{margin:12px 20px}.conversation-heading{flex-wrap:wrap}.answer,.proposal,.memory-card{padding:24px 20px}.receipt{padding:8px 16px}.receipt summary{flex-wrap:wrap;gap:6px}.receipt summary small{margin-left:18px;width:100%}.reader-content{padding:24px 20px}.reader-header,.reader-actions{padding:12px 20px}.reader-actions{flex-wrap:wrap}.reader-actions>.primary{flex:1}dialog.reader{border-radius:0}.search-dialog{margin:9vh 12px auto;width:calc(100% - 24px)}.search-head{gap:8px}.search-head input{font-size:13px}#notice{left:50%;max-width:calc(100vw - 32px);bottom:16px}.reference-links{gap:12px}}
@media(max-width:460px){.day-context{display:flex}.presence-stage{height:198px;margin-bottom:16px}.page{padding:12px 16px 44px}.top{padding:0 16px}.world-doors small{font-size:9px}.home-composer{padding:16px}.brief-footer .text-button{font-size:11px}}
@media(prefers-reduced-motion:reduce){.progress::after{width:100%;transform:none}.busy-label::before{border-color:currentColor}}

/* The request stays first; source detail and motion support it. */
.page{max-width:1280px;padding-top:28px}
.page-heading{margin-bottom:28px}
.page-heading h1{line-height:1.12;letter-spacing:-.045em}
.section-head{margin-bottom:16px;min-height:44px}
.home-hero{grid-template-columns:minmax(0,1fr) 304px;gap:32px;min-height:0;margin-bottom:36px}
.home-hero h1{font-size:clamp(36px,3.5vw,48px)}
.presence-stage{height:320px}
.presence-stage canvas{height:calc(100% - 88px)}
.world-doors{height:88px;padding:0;align-items:start}
.world-doors a{display:grid;grid-template-rows:6px 20px minmax(30px,auto);gap:6px;justify-items:center;align-items:start;align-content:start;min-height:88px;height:88px;padding:8px 4px}
.view h1[tabindex="-1"]:focus{outline:none}
.home-grid{grid-template-columns:minmax(0,1fr) 304px}
.brand{min-height:44px}
.brand-name small,.identity small,.local-state,.nav-count{font-size:12px}
nav a{font-size:14px;min-height:48px}
.search-launch{font-size:13px;margin-top:28px;margin-bottom:20px}
.nav-divider{margin-top:16px;margin-bottom:12px}
.top-actions{gap:4px}
#breadcrumb{font-size:13px}
.composer{padding:24px}
.composer label:not(.continue-option){font-size:14px}
.home-composer>label{position:absolute;width:1px;height:1px;padding:0;margin:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.composer textarea{resize:none;min-height:84px;font-size:16px;line-height:1.6;padding:0}
.home-composer textarea{min-height:68px}
.composer-bottom{margin-top:16px}
.composer select,.memory-form select,.inline-search input,.search-head input,.memory-form textarea{font-size:16px}
.quick-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-width:440px;margin-top:12px}
.quick-actions button{justify-content:center;gap:6px;padding:10px 8px;font-size:13px;white-space:nowrap;background:var(--surface)}
.quick-actions button:hover{background:var(--soft);color:var(--ink)}
.brief-action{font-size:15px;line-height:1.5;min-height:64px;padding:16px 0}
.brief-source{min-width:62px;gap:6px;justify-content:flex-end;font-size:12px}
.brief-source .icon{width:12px;height:12px}
.brief-heading-actions{gap:16px}
.brief-heading-actions .text-button,.section-head .subtle,.brief-footer .text-button,.brief-coverage-toggle summary{font-size:12px}
.brief-actions li{gap:16px}
.message-preview{min-height:92px;padding:16px 12px;border-radius:12px}
.message-icon{width:40px;height:40px;border-radius:12px}
.message-sender{font-size:13px}
.message-subject{font-size:15px;line-height:1.5;margin-top:5px}
.message-time,.message-excerpt{font-size:12px}
.message-list{border-top:1px solid var(--line)}
.home-feed .message-preview{min-height:88px}
.studio-card h3{font-size:15px}
.studio-caption,.piano-label{font-size:12px}
.world-doors small{font-size:11px}
.world-doors a{font-size:13px}
.memory-form{max-width:none;padding:24px}
.memory-card p{font-size:15px;line-height:1.65}
.memory-card small{font-size:12px}
.memory-card .domain{color:var(--muted)}
.response{font-size:15px;line-height:1.75;max-width:72ch}
.response>h3{margin-top:28px}
.response li{margin:10px 0}
.ask{font-size:15px;font-weight:500;line-height:1.6}
.run-state,.usage-note,.continue-option,.set small,.session-subtitle,.session-facts span,.track span{font-size:12px}
.proposal-column{position:sticky;top:96px}
.source-coverage{margin:0 0 16px;font-size:12px}
.source-coverage summary{flex-wrap:wrap;gap:8px 12px;min-height:44px;color:var(--muted);font-size:12px}
.source-coverage p{margin:8px 0 16px;max-width:72ch;line-height:1.7}
.source-count{font-size:12px;font-weight:400;color:var(--muted);padding-left:4px}
.source-heading{margin-bottom:0}
.connection p,.routine p,.live-panel p{font-size:14px;line-height:1.7}
.connection .result-tag{font-size:12px}
.connection{grid-template-columns:160px minmax(0,1fr) 144px;gap:24px}
.field-error{font-size:13px;line-height:1.5;color:var(--warn);margin:8px 0 0}
textarea[aria-invalid="true"]{box-shadow:inset 3px 0 0 var(--warn);padding-left:12px}
.reader-content{padding:32px}
.reader-body-text{font-size:16px;line-height:1.75}
.reader-header,.reader-actions{padding:16px 24px}
summary::before{content:'';width:6px;height:6px;margin-right:4px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);flex-shrink:0;transition:transform 180ms var(--ease)}
details[open]>summary::before{content:'';transform:rotate(45deg)}

@media(max-width:1190px){.home-grid{grid-template-columns:minmax(0,1fr) 260px}.home-hero{grid-template-columns:minmax(0,1fr) 260px;gap:24px}.presence-stage{height:280px}.connection{grid-template-columns:130px minmax(0,1fr)}}
@media(max-width:1100px){
  .home-hero{display:block}.home-grid{grid-template-columns:1fr}.proposal-column{position:static}
  .presence-stage{width:100%;max-width:none;height:176px;margin:24px 0 0;background:var(--surface);border:1px solid var(--line);border-radius:20px}
  .presence-stage canvas{width:34%;height:100%;right:auto}
  .world-doors{left:34%;top:0;bottom:0;grid-template-columns:repeat(2,minmax(0,1fr));align-content:center;padding:8px;gap:4px}
  .world-doors{height:auto}
  .world-doors a{display:flex;position:relative;align-items:flex-start;justify-content:flex-start;gap:4px;min-height:76px;height:auto;padding:14px 8px 8px 24px;font-size:13px}
  .world-dot{position:absolute;top:20px;left:10px;width:5px;height:5px}.world-doors small{text-align:left;font-size:11px;max-width:100%;overflow-wrap:anywhere}
  .presence-fallback{position:absolute;width:34%;inset:0 auto 0 0;height:100%;transform:scale(.55)}
}
@media(max-width:760px){
  .page{padding:20px 20px 48px}.page-heading{margin-bottom:24px}.page-heading h1{font-size:34px}
  .home-hero{margin-bottom:28px}.home-hero h1{font-size:36px}.hero-copy .page-heading{margin-bottom:20px}.date-label{margin-bottom:10px}
  .home-composer,.composer{padding:20px}.home-composer textarea{font-size:16px;min-height:68px}
  .composer-actions{gap:8px}.primary,.secondary{font-size:13px;padding:10px 14px}
  .quick-actions{max-width:none}.quick-actions button{font-size:12px;padding:10px 8px}
  .presence-stage{margin-top:20px}.world-doors a{font-size:12px}
  .section-head{gap:12px}.section-head h2{font-size:19px}.brief-actions li{gap:12px}.brief-action{font-size:14px}.brief-source{min-width:56px}
  .message-preview{padding:16px 4px;gap:12px}.message-icon{width:36px;height:36px}.message-subject{font-size:14px}.message-sender{font-size:13px}
  .home-grid,.assistant-layout{gap:24px}.day-context{display:flex}.studio-card{padding:24px}
  .assistant-layout{grid-template-columns:1fr}.response{font-size:15px}.answer,.proposal,.memory-card{padding:24px 20px}
  .memory-form{padding:20px}.inline-search input,.search-head input{font-size:16px}
  .connection{grid-template-columns:1fr;gap:8px}.connection .result-tag{grid-column:auto}
  .reader-content{padding:24px 20px}.reader-header,.reader-actions{padding:12px 20px}.reader-content h2{font-size:22px}
  .source-coverage summary{font-size:12px}.brief-footer .text-button{font-size:12px}.brief-heading-actions{gap:12px}
}
@media(max-width:390px){
  .page{padding-left:16px;padding-right:16px}.home-composer,.composer{padding:18px}
  .home-composer .composer-bottom{flex-wrap:wrap;gap:8px}.home-composer .engine-label{order:2;width:100%;font-size:12px}
  .home-composer .composer-actions{width:100%;justify-content:flex-end}
  .brief-heading-actions{gap:8px}.brief-heading-actions .subtle{font-size:11px}
}
