:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#dcebee;background:#050e14;font-synthesis:none;--mint:#92f2dc;--muted:#95aabb;--line:#17303b;--serif:Georgia,"Times New Roman",serif}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 50% 46%,#0a1d26 0,transparent 60%),#050e14}button,a,input{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button{cursor:pointer;color:inherit;background:none;border:0}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--mint);outline-offset:4px}button:hover{color:var(--mint)}header{height:72px;display:flex;align-items:center;border-bottom:1px solid var(--line);padding:0 24px;gap:30px}.brand{width:155px;color:#c9faf1;text-decoration:none;font:32px var(--serif);display:flex;align-items:center;gap:10px}.brand img{width:29px;height:29px}.tagline{color:#b9eeee;font-size:17px}.header-actions{margin-left:auto;display:flex;gap:26px;align-items:center;font-size:12px;color:var(--muted)}.primary{background:var(--mint);color:#082022;padding:13px 21px;border-radius:9px;font-size:14px;font-weight:650;box-shadow:0 0 28px #67edd222}.primary:hover{background:#b6ffeb;color:#082022}.rail{position:fixed;top:72px;bottom:0;width:190px;border-right:1px solid var(--line);padding:22px 10px;display:flex;flex-direction:column;justify-content:space-between}.rail nav{display:grid;gap:8px}.rail nav button{text-align:left;padding:17px 15px;border-radius:8px;display:flex;gap:17px;align-items:center;color:#a9bfcc;font-size:14px;border-left:3px solid transparent}.rail nav button>span:first-child{font-size:23px;width:23px}.rail nav button.selected{background:#122931;color:#b4fff2;border-left-color:var(--mint)}.rail-bottom{padding:16px 12px 0;border-top:1px solid var(--line);font-size:13px}.rail-bottom button{padding:0;color:var(--mint);text-align:left}.rail-bottom p{line-height:1.9;color:#c3d4dc}.rail-bottom small{color:var(--muted)}main{margin-left:190px;padding:14px;display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:14px;min-height:calc(100vh - 72px)}.workspace{border:1px solid var(--line);border-radius:12px;overflow:hidden;display:flex;flex-direction:column;min-width:0;background:linear-gradient(145deg,#03111855,#04121800)}.workspace-heading{display:flex;justify-content:space-between;padding:22px 24px 0;gap:12px;z-index:2}h1{font:clamp(25px,2.3vw,36px)/1.14 var(--serif);letter-spacing:-.7px;margin:0;color:#ecf4f7}h2{font:23px/1.25 var(--serif);font-weight:400;margin:0;color:#edf5f5}.workspace-heading p{margin:8px 0 0;font-size:14px;color:var(--muted)}.view-tools{display:flex;gap:3px;align-self:flex-start;border:1px solid var(--line);padding:3px;border-radius:8px;font-size:11px;white-space:nowrap}.view-tools button{padding:7px 10px;border-radius:5px;color:var(--muted)}.view-tools .active{background:#132c36;color:#e1ffff}.graph-area{position:relative;min-height:470px;flex:1;height:calc(100vh - 310px)}canvas{width:100%;height:100%;display:block}#anchors{position:absolute;inset:0;pointer-events:none}.anchor{position:absolute;pointer-events:auto;transform:translate(-12px,-50%);display:flex;align-items:center;gap:10px;white-space:nowrap;font-size:12px;text-shadow:0 1px 7px #000;padding:8px;border-radius:20px;background:#071d2880}.anchor i{width:17px;height:17px;border-radius:50%;background:var(--color);box-shadow:0 0 14px 5px color-mix(in srgb,var(--color),transparent 60%);border:2px solid #d5ffffb0}.anchor.selected{background:#112e3e;border:1px solid #76dcc977}.graph-caption{position:absolute;bottom:10px;left:24px;display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted)}.status-dot{height:5px;width:5px;border-radius:50%;background:var(--mint);box-shadow:0 0 10px var(--mint)}.timeline{padding:20px 24px 22px}.timeline>div:first-child{display:flex;justify-content:space-between;font-size:13px}.timeline button{font-size:11px;color:var(--muted)}#ticks{display:flex;gap:3px;align-items:flex-end;height:51px;border-bottom:1px solid #66818d;overflow:hidden}#ticks button{padding:0;width:12px;flex:1;max-width:20px;border-left:1px solid #5ae3ca;position:relative;opacity:.8}#ticks button:before{content:"";position:absolute;top:0;left:-2px;width:4px;height:4px;background:#8cf7de;border-radius:50%;box-shadow:0 0 8px #74fadb}#ticks button:hover{opacity:1;background:#73f7d529}.timeline-labels{display:flex;justify-content:space-between;margin-top:14px;font-size:10px;color:#8ba2b5}.intelligence{display:flex;flex-direction:column;gap:12px;min-width:0}.intelligence-heading{display:flex;align-items:center;justify-content:space-between;padding:15px 16px 8px}.intelligence-heading h2{font-size:24px}.intelligence-heading button{color:var(--mint)}.insight{border:1px solid var(--line);border-radius:11px;background:linear-gradient(130deg,#0b1c25,#07182180);padding:20px}.featured{background:radial-gradient(ellipse at bottom right,#55513944,transparent 65%),linear-gradient(145deg,#12303a,#0c2028);border-color:#315561}.eyeline{font-size:10px;letter-spacing:.7px;color:#f1cd86;display:block;margin-bottom:16px}.insight h2{font-size:23px;line-height:1.3}.insight p{color:#afc3d1;font-size:14px;line-height:1.7;margin:10px 0 14px}.text-action{color:#88f3da;font-size:13px;padding:0;text-align:left}.section-label{display:flex;gap:8px;align-items:flex-start;justify-content:space-between;margin-bottom:13px}.section-label h3{font:18px/1.4 var(--serif);margin:0;color:#eaf1f6}.section-label small{font-size:9px;color:var(--muted);padding-top:5px;text-align:right}.forecast h2{font-size:19px}.spark{width:100%;height:72px;margin:0 0 13px}.ownership{display:flex;align-items:center;text-align:left;gap:18px;border:1px solid var(--line);padding:19px;border-radius:10px;background:#091b2444}.ownership>span{font-size:28px;color:#a4bfd0}.ownership>span:last-child{margin-left:auto;font-size:20px}.ownership strong{font:19px var(--serif);display:block}.ownership small{color:var(--muted);display:block;font-size:12px;margin-top:8px}#notice{font-size:10px;line-height:1.6;color:#859aa8;padding:0 10px;margin:1px 0 8px}#content-view{padding:24px;flex:1;min-height:460px;max-height:calc(100vh - 290px);overflow:auto}.content-head{display:flex;justify-content:space-between;gap:12px;margin-bottom:22px}input{background:#0b222c;border:1px solid #27444f;color:#dffff7;border-radius:6px;padding:10px;width:min(220px,50%);font-size:12px}.record{display:block;width:100%;text-align:left;border-bottom:1px solid var(--line);padding:15px 4px}.record strong{font-size:14px;display:block;margin-bottom:7px}.record small{font-size:11px;color:var(--muted);line-height:1.5}.record .record-meta{color:#80e9d1;font-size:10px;margin-top:7px}.record:hover{background:#12313b55}dialog{background:#091b25;color:#dbecef;border:1px solid #2d5564;border-radius:14px;padding:32px;max-width:640px;width:calc(100% - 32px);max-height:85vh;box-shadow:0 30px 120px #000b}dialog::backdrop{background:#010a10bb;backdrop-filter:blur(8px)}.close{float:right;font-size:26px;margin:-12px -8px 0 12px}dialog h2{margin-bottom:20px}dialog p{line-height:1.7;color:#b5cbd5;font-size:14px}dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;color:#afced3;max-height:350px;overflow:auto;line-height:1.65;border-top:1px solid var(--line);padding-top:15px}dialog a{color:var(--mint)}[hidden]{display:none!important}@media(min-width:1600px){main{grid-template-columns:minmax(0,1fr) 385px}.graph-area{min-height:620px}.insight{padding:25px}.insight p{font-size:15px}}@media(max-width:1150px){.rail{width:145px}.brand{width:110px;font-size:27px}.rail nav button{padding:14px 8px;gap:10px}main{margin-left:145px;grid-template-columns:minmax(0,1fr) 300px}.workspace-heading{flex-direction:column;padding:20px 18px 0}.view-tools{margin-top:5px}.graph-area{min-height:430px}.anchor{font-size:10px;gap:5px}.anchor i{width:12px;height:12px}.timeline{padding:15px 18px}.insight{padding:17px}.tagline{font-size:14px}}@media(max-width:800px){header{height:65px;padding:0 16px;gap:12px}.brand{width:auto;font-size:25px}.brand img{width:24px}.tagline{display:none}.header-actions{gap:12px}.header-actions #mode{font-size:10px}.primary{font-size:12px;padding:10px 12px}.rail{position:static;width:auto;border:0;padding:8px 12px}.rail nav{display:flex;justify-content:space-between;gap:2px}.rail nav button{flex-direction:column;gap:4px;font-size:10px;padding:8px;flex:1;border-left:0;border-bottom:2px solid transparent}.rail nav button.selected{border-bottom-color:var(--mint)}.rail nav button>span:first-child{font-size:18px}.rail-bottom{display:none}main{margin:0;padding:0 10px 20px;grid-template-columns:1fr;gap:10px}.workspace-heading h1{font-size:27px}.workspace-heading{flex-direction:row}.view-tools{font-size:9px}.view-tools button{padding:6px}.graph-area{height:450px;min-height:380px}.anchor{font-size:10px;padding:5px}.timeline-labels{font-size:9px}.intelligence{display:grid;grid-template-columns:1fr 1fr;gap:10px}.intelligence-heading,.featured,#notice,.ownership{grid-column:1/-1}.intelligence-heading{padding:15px 8px 2px}.featured{padding:22px}.forecast h2{font-size:18px}.section-label{display:block}.insight p{font-size:12px}.section-label small{display:block;text-align:left}.ownership{padding:18px}.graph-caption{font-size:9px;left:16px}#content-view{max-height:550px}}@media(max-width:410px){.workspace-heading{flex-direction:column}.graph-area{height:390px}.intelligence{display:flex}.anchor{font-size:9px;gap:4px}.anchor i{width:10px;height:10px}.header-actions #mode{max-width:60px}.workspace-heading h1{font-size:25px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

canvas{touch-action:none;cursor:grab}canvas:active{cursor:grabbing}.zoom-controls{position:absolute;bottom:43px;left:24px;display:flex;align-items:center;gap:8px;background:#0b2630d9;border:1px solid #34545d;border-radius:8px;padding:4px 7px;font-size:10px;color:#bde9e3}.zoom-controls button{padding:6px;font-size:13px}.zoom-controls span{min-width:30px;text-align:center}
@media(max-width:800px){
 html,body{height:100%;overflow:hidden}header{height:65px}.rail{position:fixed;top:auto;bottom:0;left:0;right:0;height:calc(70px + env(safe-area-inset-bottom));width:100%;padding:5px 8px calc(5px + env(safe-area-inset-bottom));background:#081720f2;backdrop-filter:blur(18px);border-top:1px solid #24414b;z-index:8}.rail nav{height:58px}.rail nav button{justify-content:center;padding:5px 3px;border-bottom:0;border-top:2px solid transparent}.rail nav button.selected{border-top-color:var(--mint);border-bottom:0}.rail nav button>span:first-child{font-size:20px;line-height:24px}.rail-bottom{display:none}main{height:calc(100dvh - 135px - env(safe-area-inset-bottom));min-height:0;padding:8px;display:block}.workspace{height:100%;min-height:0;position:relative}.workspace-heading{padding:16px 16px 0;flex-direction:column;gap:7px;flex-shrink:0}.workspace-heading h1{font-size:25px;line-height:1.12}.workspace-heading p{font-size:11px;line-height:1.5;margin-top:5px}.view-tools{margin-top:0}.graph-area{flex:1;height:auto;min-height:0}.intelligence{display:none}.timeline{padding:12px 16px 15px;flex-shrink:0}.timeline>div:first-child{font-size:11px}#ticks{height:33px}.timeline-labels{margin-top:9px;font-size:8px}.graph-caption{left:16px;bottom:7px;font-size:8px}.zoom-controls{bottom:29px;left:16px;font-size:9px;padding:2px 5px;gap:5px}.zoom-controls button{padding:4px 6px}.anchor{font-size:9px;padding:5px;gap:5px}.anchor i{width:11px;height:11px}.anchor.selected{border:0}#content-view{min-height:0;max-height:none;flex:1;overflow:auto;padding:18px 16px}.content-head h2{font-size:23px}.record{padding:13px 2px}.record strong{font-size:13px}.record small{font-size:11px}.content-head{align-items:center;margin-bottom:10px}dialog{padding:25px;max-height:calc(100dvh - 48px)}.mobile-story{display:inline-block;color:var(--mint);font-size:11px;position:absolute;right:15px;top:87px;padding:6px 0;z-index:3}.header-actions{gap:12px}.header-actions #mode{font-size:9px;max-width:72px;text-align:right}}
@media(min-width:801px){.mobile-story{display:none}}
#intelligence-dock{position:fixed;bottom:20px;right:24px;z-index:9;background:linear-gradient(130deg,#123a43,#10242c);border:1px solid #365b62;border-radius:12px;padding:13px 16px;display:flex;align-items:center;gap:10px;box-shadow:0 7px 35px #0006;font-size:12px}#intelligence-dock strong{font-weight:500;color:#c6fff0}#dock-note{font-size:10px;color:#99b8c1}#intelligence-popover{position:fixed;right:24px;bottom:77px;z-index:10;width:380px;background:linear-gradient(145deg,#132c36f7,#091b25fa);border:1px solid #41666c;border-radius:14px;padding:16px;box-shadow:0 14px 55px #0009;backdrop-filter:blur(24px)}.popover-heading{display:flex;gap:9px;align-items:center;font-size:14px}.popover-heading small{font-size:9px;color:#9db7c0;margin-left:auto}.popover-heading button{font-size:21px;padding:0 0 0 8px}#assistant-response{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.65;color:#c2d9df;margin:15px 0;max-height:135px;overflow:auto}.quick-prompts{display:flex;gap:7px;margin-bottom:12px}.quick-prompts button{border:1px solid #31505b;border-radius:15px;padding:6px 9px;font-size:10px;color:#a4e7dc}#ask-form{display:flex;gap:8px;align-items:center;border:1px solid #31505b;border-radius:8px;background:#061822}#question{border:0;background:none;flex:1;width:auto;min-width:0;padding:11px;font-size:12px}#ask-form button{background:#88e9d4;color:#123032;width:27px;height:27px;border-radius:6px;margin-right:7px;font-size:19px}
@media(max-width:800px){#intelligence-dock{bottom:calc(80px + env(safe-area-inset-bottom));left:17px;right:17px;padding:11px 13px;font-size:11px;border-radius:10px}#dock-note{margin-left:auto;font-size:9px}#intelligence-popover{bottom:calc(130px + env(safe-area-inset-bottom));left:17px;right:17px;width:auto;padding:14px;max-height:calc(100dvh - 230px);overflow:auto}main{height:calc(100dvh - 184px - env(safe-area-inset-bottom))}#assistant-response{font-size:11px;max-height:119px}.timeline-labels>span:nth-child(2){display:none}.graph-area{min-height:120px}.mobile-story{top:88px}}
canvas{position:absolute;inset:0;width:100%;height:100%}
@media(min-width:801px){html,body{height:100%;overflow:hidden}main{height:calc(100dvh - 72px);min-height:0}.workspace{height:100%;min-height:0}.graph-area{height:auto;min-height:0;flex:1}.intelligence{max-height:100%;overflow:auto;padding-bottom:55px;scrollbar-width:thin;scrollbar-color:#24444e transparent}.workspace-heading{flex-shrink:0}.timeline{flex-shrink:0}#content-view{min-height:0;max-height:none}.insight{padding:17px}.insight p{font-size:13px;line-height:1.65;margin:9px 0 12px}.insight h2{font-size:22px}.forecast h2{font-size:18px}.intelligence-heading{padding-top:12px}.spark{height:54px}}

.live-kai{display:flex;align-items:center;gap:9px;border:1px solid #355f64;border-radius:9px;padding:7px 10px;background:#0d252c;color:#c9fff0;white-space:nowrap}.live-kai span{font-size:11px;letter-spacing:.12em}.live-kai strong{font:500 14px ui-monospace,monospace;font-variant-numeric:tabular-nums}@media(max-width:800px){.header-actions{gap:6px}.live-kai{gap:4px;padding:6px}.live-kai span{font-size:9px}.live-kai strong{font-size:11px}header #mode{display:none}}

.plan-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.plan-options article{padding:18px;border:1px solid #31505a;border-radius:14px;background:#10252e}.plan-options h3{margin:0 0 12px}.plan-options p{min-height:90px}.plan-options .primary{width:100%}#plan-menu{text-align:left;width:100%;padding:12px;border:1px solid #31505a;border-radius:10px}#plan-menu small{color:#90aab5}@media(max-width:650px){.plan-options{grid-template-columns:1fr}.plan-options p{min-height:0}}

.memory-breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 40px 18px 0;color:#668f98;font-size:12px}.breadcrumb-button{background:transparent;border:0;border-radius:6px;color:#b0d1d7;padding:5px 3px;font:inherit;cursor:pointer}.breadcrumb-button:hover{color:#e0fff5;background:#9aead510}.breadcrumb-button:focus-visible{outline:1px solid #9aead5;outline-offset:3px}
header{position:relative}.kai-center{position:absolute;left:50%;transform:translateX(-50%);display:grid;justify-items:center;gap:2px;white-space:nowrap;pointer-events:none}.kai-center-label{font-size:8px;letter-spacing:.15em;color:#76949e}.kai-center strong{font:500 17px ui-monospace,monospace;letter-spacing:.09em;font-variant-numeric:tabular-nums}.kai-center-date{display:flex;gap:5px;font:10px ui-monospace,monospace;font-variant-numeric:tabular-nums;color:#dcebee}.kai-center-date i{font-style:normal;color:#526d78}@media(max-width:600px){header{padding:0 12px;gap:8px}header .brand{width:auto;font-size:23px;gap:6px}.brand img{width:23px;height:23px}.kai-center strong{font-size:13px}.kai-center-label{font-size:6px}.kai-center-date{font-size:8px;gap:3px}.header-actions .live-kai strong{font-size:9px}.header-actions .live-kai span{font-size:8px}header .primary{font-size:10px;padding:7px}}@media(max-width:450px){body:not(.native) .kai-center{position:static;transform:none;margin-left:auto}.header-actions{gap:4px}.header-actions .live-kai span{display:none}}
/* Each header region participates in layout; the clock cannot cover its neighbors. */
header{display:grid;grid-template-columns:max-content minmax(100px,1fr) max-content;column-gap:24px}.kai-center{position:static;transform:none;left:auto;justify-self:center;margin:0}.header-actions{margin-left:0;min-width:0;gap:16px}.brand{width:auto}@media(max-width:1100px){header{column-gap:16px}.header-actions #mode{display:none}.header-actions{gap:10px}}@media(max-width:640px){header{height:110px;grid-template-columns:1fr 1fr;grid-template-rows:54px 48px;column-gap:12px;padding:0 14px}.brand{grid-column:1;grid-row:1}.kai-center,body:not(.native) .kai-center{grid-column:2;grid-row:1;justify-self:end;margin:0}.header-actions{grid-column:1/-1;grid-row:2;justify-content:space-between;width:100%}.header-actions .live-kai span{display:inline}main{height:calc(100dvh - 229px - env(safe-area-inset-bottom))}}

#graph-pulses{position:absolute;inset:0;pointer-events:none;width:100%;height:100%}

.activity-record{height:108px!important;box-sizing:border-box;overflow:hidden;display:block;width:100%;margin:0!important}.activity-record strong,.activity-record small,.activity-record .record-meta{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.content-head{flex-wrap:wrap;gap:10px}#activity-order{font:inherit;font-size:12px;color:var(--mint);background:#0a2029;border:1px solid var(--line);border-radius:8px;padding:9px 10px;max-width:100%;color-scheme:dark}#activity-order:focus-visible{outline:2px solid var(--mint);outline-offset:3px}#content-list{overflow-anchor:none}

#timeline-insight{margin:10px 0 0;color:var(--muted);font-size:11px;line-height:1.5}#ticks button:disabled{opacity:.18;cursor:default}#ticks button:disabled:before{display:none}@media(max-width:800px){#timeline-insight{font-size:9px;line-height:1.4;margin-top:7px}}

.kai-center-label small{font:inherit;font-size:.85em;opacity:.64;margin-left:2px}.kai-center-label{white-space:nowrap;letter-spacing:.04em}

button.kai-center{pointer-events:auto;cursor:pointer;background:transparent;border:0;padding:0}button.kai-center:focus-visible,button.live-kai:focus-visible{outline:2px solid var(--mint);outline-offset:5px}.kai-guide-section{border-top:1px solid var(--line);padding:14px 0}.kai-guide-section summary{cursor:pointer;color:#bcf5e7;font-size:14px;line-height:1.5}.kai-guide-section[open] summary{margin-bottom:12px}.kai-guide-copy{white-space:pre-line;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.kai-guide-section p{font-size:13px;line-height:1.75;margin:10px 0}

/* Product descriptor; the Receiz wordmark and Kai stamp retain their styling. */
.brand .brand-mind{font:500 9px/1.2 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:.14em;color:var(--muted);align-self:center;margin-left:1px}

/* One header row at every viewport; preserve the requested controls. */
@media(max-width:640px){
 header{height:65px;grid-template-columns:max-content minmax(70px,1fr) max-content;grid-template-rows:1fr;column-gap:8px;padding:0 8px}
 header .brand{grid-column:1;grid-row:1;font-size:20px;gap:5px}
 header .brand img{width:20px;height:20px}
 header .brand-mind{font-size:8px;letter-spacing:1px}
 .kai-center,body:not(.native) .kai-center{grid-column:2;grid-row:1;justify-self:center;margin:0}
 header .kai-center-label{font-size:5px;letter-spacing:0}
 header .kai-center strong{font-size:12px}
 .header-actions{grid-column:3;grid-row:1;width:auto;gap:5px;justify-content:end;white-space:nowrap}
 header .live-kai{padding:5px;gap:3px}
 header .live-kai span{font-size:7px}
 header .live-kai strong{font-size:9px}
 header #install{font-size:10px;padding:8px 6px;white-space:nowrap}
 main{height:calc(100dvh - 184px - env(safe-area-inset-bottom))}
}
@media(max-width:380px){header{column-gap:4px;padding:0 5px}header .brand{font-size:17px}header .brand-mind{display:none}header .live-kai span{display:none}header #install{font-size:9px;padding:8px 5px}.header-actions{gap:4px}}

#chat-history{max-height:220px;overflow:auto;overflow-wrap:anywhere}.chat-message{white-space:pre-wrap;font-size:12px;line-height:1.6;padding:10px;border-radius:9px;margin:8px 0}.chat-message.user{background:#183e46;color:#dcfff6}.chat-message.assistant{color:#c2d9df;border:1px solid #31505b}#question{font-size:16px}@media(max-width:800px){#chat-history{max-height:24dvh}#intelligence-popover input,#intelligence-popover textarea{font-size:16px}}

@media(max-width:800px){.timeline-labels{gap:8px;align-items:center}.timeline-labels>span:first-child,.timeline-labels>span:last-child{white-space:nowrap;flex-shrink:0;font-size:8px;line-height:1.3}.timeline-labels>span:last-child{margin-left:auto}}

@media(max-width:640px){header .brand{font-size:18px}header{column-gap:6px}#dock-note{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:55%}}

#source-controls{padding-bottom:16px;border-bottom:1px solid var(--line)}#source-controls p{font-size:12px;line-height:1.6;color:var(--muted)}#source-controls>button{margin-right:10px}

@media(max-width:380px){header{column-gap:4px}header .brand{font-size:17px}.header-actions .live-kai span{display:none}.header-actions .live-kai{padding:4px}.header-actions{gap:3px}header #install{font-size:9px;padding:8px 4px}}


/* One conversation viewport; replies and sent messages share chronological flow. */
#intelligence-popover{display:flex;flex-direction:column;max-height:calc(100dvh - 110px);overflow:hidden}
#chat-history{min-height:0;max-height:360px;overflow:auto;overscroll-behavior:contain;margin:12px 0;scrollbar-width:thin}
#assistant-response{max-height:none;overflow:visible;margin:8px 0;font-size:12px;line-height:1.6}
.chat-message.assistant{border:0;padding:8px 2px}.chat-message.user{margin-left:20px}
.popover-heading,.quick-prompts,#ask-form{flex-shrink:0}
@media(max-width:800px){#intelligence-popover{max-height:calc(100dvh - 210px);overflow:hidden}#chat-history{max-height:45dvh}#assistant-response{max-height:none;font-size:12px}}

.kai-calendar-row{display:grid;grid-template-columns:14px minmax(0,1fr) auto;align-items:start;column-gap:10px;row-gap:0;margin:12px 0}.kai-color-swatch{width:14px;height:14px;border-radius:50%;flex-shrink:0;border:1px solid #ffffff55;margin-top:4px}.kai-calendar-row span{min-width:0;overflow-wrap:anywhere}.kai-calendar-row small{color:var(--muted);font:11px ui-monospace,monospace;white-space:nowrap;margin:2px 0 0}

/* Same Receiz ID mark and blue treatment as ReceizIdentityPasskeyButton in wallet/market. */
.receiz-id-entry{display:inline-flex;align-items:center;justify-content:center;gap:7px;margin-top:12px;padding:6px 12px 6px 6px;border:1px solid #1b335f;border-radius:11px;background:linear-gradient(145deg,#12264b,#18386e);color:#f9fbff;font-size:12px;font-weight:600;box-shadow:0 12px 22px -24px #08142ab8}.receiz-id-entry>span:first-child{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;flex-shrink:0;border-radius:50%;border:1px solid #86a6dccc;background:radial-gradient(circle at 30% 28%,#355a92 0%,#1f3b6d 58%,#142b52 100%);font:700 12px/1 "Iowan Old Style","Palatino Linotype","Times New Roman",serif;color:white;box-shadow:inset 0 1px 0 #ffffff3d,0 6px 12px #0712266b}.receiz-id-entry:hover{background:linear-gradient(145deg,#133062,#1b3f80);color:white}@media(max-width:800px){.receiz-id-entry{margin-top:8px;font-size:11px;padding:4px 9px 4px 4px}.receiz-id-entry>span:first-child{width:21px;height:21px;font-size:11px}}

.audience-switcher{display:flex;align-items:center;padding:3px;border:1px solid #8bdcd528;border-radius:24px;background:#03111b80;gap:2px}.audience-switcher button{border:0;border-radius:20px;background:transparent;color:#93aeb5;padding:8px 12px;font-size:11px;white-space:nowrap}.audience-switcher button[aria-pressed="true"]{background:#79edcf18;color:#b8ffec;box-shadow:inset 0 0 0 1px #8af0d426}.audience-switcher[hidden]{display:none}@media(max-width:760px){.audience-switcher button{padding:7px 9px;font-size:10px}.header-actions{flex-wrap:wrap}.audience-switcher{order:5}}

.economy-intro h3{font-size:24px;letter-spacing:-.6px;margin:12px 0}.economy-intro p{color:#9eb8bf;font-size:13px;line-height:1.65;max-width:650px}.economy-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:22px 0}.economy-metric{padding:23px;text-align:left;border:1px solid #86d7d42b;border-radius:18px;background:linear-gradient(145deg,#12303b88,#071923);display:flex;flex-direction:column;gap:12px;min-width:0}.economy-metric>span{color:#afcbd0;font-size:12px}.economy-metric strong{color:#b7fce4;font-size:clamp(22px,3vw,35px);font-weight:500;overflow-wrap:anywhere}.economy-metric small{color:#91abb4;line-height:1.6}.economy-assumptions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:20px}.economy-assumptions label{font-size:10px;color:#a4bdc5}.economy-assumptions input{display:block;width:100%;box-sizing:border-box;margin-top:6px;padding:10px;background:#06161e;color:#d8f6ed;border:1px solid #31565e;border-radius:8px}.rail nav button #economy-nav-label{font:inherit}@media(max-width:760px){.economy-metrics{gap:9px}.economy-metric{padding:15px}.economy-metric strong{font-size:23px}.economy-assumptions{grid-template-columns:repeat(2,minmax(0,1fr))}.rail nav{display:flex}.rail nav button{flex:1;min-width:0;font-size:9px}}

.identity-context{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:8px}.identity-context .receiz-id-entry{margin:0}.identity-context .audience-switcher{margin:0}@media(max-width:760px){.identity-context{gap:7px}.identity-context .audience-switcher button{font-size:9px;padding:7px 8px}.economy-metrics{grid-template-columns:1fr}.economy-metric strong{font-size:27px;overflow-wrap:normal}.economy-metric{gap:8px}.economy-intro h3{font-size:21px}.economy-intro p{font-size:12px}}

@media(max-width:760px){.view-tools{width:100%;box-sizing:border-box}.view-tools .mobile-story{position:static;margin-left:auto;font-size:10px;padding:6px 2px;border:0;background:transparent}}
.economy-metric strong{font-size:clamp(18px,2vw,27px);white-space:nowrap;overflow-wrap:normal;max-width:100%;overflow-x:auto}
@media(max-width:760px){.economy-metric strong{font-size:26px}}

.identity-entry-stack{display:flex;flex-direction:column;align-items:flex-start;gap:5px}.identity-entry-stack #account-create{font-size:11px;padding:2px 0;color:var(--muted);border:0;background:none}

.identity-restore-form{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin-top:24px;min-width:0}
.identity-restore-form label{font-size:12px;letter-spacing:.02em;color:#a8c4cd;margin-top:8px}
.identity-restore-form input{width:100%;min-width:0;max-width:100%;box-sizing:border-box;background:#061820;border:1px solid #294a56;border-radius:12px;padding:13px;color:#e0f5f2;font-size:16px}
.identity-restore-form input[type=file]{font-size:12px;overflow:hidden;padding:10px}
.identity-restore-form input::file-selector-button{background:#183c45;color:#b8ffee;border:1px solid #37606a;border-radius:7px;padding:9px 12px;margin-right:10px;font:inherit;cursor:pointer}
.identity-restore-form .primary{margin-top:10px;min-height:48px;width:100%}
.identity-download{display:block;width:100%;min-height:50px;margin-top:24px;text-align:center}
.identity-status,.identity-restore-form [role=status]{font-size:13px;line-height:1.6;overflow-wrap:anywhere;margin:14px 0 0}

.kai-week-row{padding:12px;border:1px solid transparent;border-radius:12px}.kai-week-row.is-selected{border-color:var(--accent);background:#9df1de0a}.kai-week-meaning,.kai-week-application{grid-column:2/-1}.kai-week-meaning{margin-top:6px;color:var(--text)}.kai-week-application{margin-top:4px;color:var(--muted)}@media(max-width:600px){.kai-week-row{grid-template-columns:14px minmax(0,1fr)}.kai-week-row small{grid-column:2;white-space:normal}}

.record-window-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px}.record-window-controls span{font-size:.85rem;color:var(--muted);text-align:center}.record-window-controls button{padding:8px 12px}

@media(min-width:801px){#install-web-app-mobile{display:none}}

#detail{overflow-y:auto;overscroll-behavior:contain;overflow-anchor:none}#detail .evidence-scroll .record{overflow-wrap:anywhere}#detail .evidence-scroll-count{color:var(--muted);font-size:12px}

/* Mobile panels prioritize their own scroll surface; Memory keeps its time navigator. */
@media(max-width:800px){
 .workspace-heading{padding:12px 12px 0;gap:6px}
 .workspace-heading h1{font-size:20px;line-height:1.15;letter-spacing:-.35px}
 .workspace-heading p{font-size:11px;line-height:1.35;margin-top:4px}
 .identity-context{margin-top:6px;gap:6px}
 .identity-entry-stack{gap:3px}
 .identity-entry-stack #account-create{font-size:10px}
 #content-view{padding:12px;min-width:0;min-height:0;overscroll-behavior:contain;scrollbar-width:thin}
 .content-head{gap:8px;margin-bottom:10px}
 .content-head h2{font-size:20px;line-height:1.2}
 .timeline{padding:8px 12px 10px}
 .timeline-labels{flex-wrap:wrap;row-gap:4px}
 .timeline-labels>span:first-child,.timeline-labels>span:last-child{white-space:normal;min-width:0;max-width:100%;overflow-wrap:anywhere}
 dialog{padding:20px;max-height:calc(100dvh - 32px)}
 dialog h2{font-size:21px;line-height:1.2;margin-bottom:12px}
}

/* Generated conversation formatting, beneath the unchanged source surfaces. */
#assistant-response,.chat-message.assistant{white-space:normal;line-height:1.65}
.chat-message.assistant p{margin:0 0 .85em}.chat-message.assistant p:last-child{margin-bottom:0}
.chat-message.assistant strong{font-weight:700;color:#e1fff5}.chat-message.assistant em{font-style:italic}
.chat-message.assistant h3,.chat-message.assistant h4,.chat-message.assistant h5,.chat-message.assistant h6{font:600 1.05em/1.4 system-ui;margin:1.15em 0 .5em;color:#e1fff5}
.chat-message.assistant>:first-child{margin-top:0}
.chat-message.assistant ul,.chat-message.assistant ol{margin:.6em 0 1em;padding-left:1.7em}
.chat-message.assistant li{padding-left:.15em;margin:.4em 0}.chat-message.assistant li>p{margin:.25em 0}
.chat-message.assistant blockquote{margin:.8em 0;padding:.3em .8em;border-left:3px solid #64bcad;color:#aacbd0}
.chat-message.assistant code{font: .92em/1.5 ui-monospace,monospace;background:#061822;border-radius:4px;padding:.1em .3em}
.chat-message.assistant pre{max-width:100%;overflow:auto;white-space:pre;background:#061822;border:1px solid #31505b;border-radius:8px;padding:.85em;margin:.85em 0}
.chat-message.assistant pre code{padding:0;background:none}.chat-message.assistant a{color:#91e8d7;text-decoration:underline;text-underline-offset:2px}
.chat-message.assistant hr{border:0;border-top:1px solid #31505b;margin:1em 0}
.chat-table{max-width:100%;overflow-x:auto;margin:.8em 0}.chat-table table{border-collapse:collapse;font-size:.95em;width:100%}.chat-table th,.chat-table td{text-align:left;border:1px solid #31505b;padding:.45em .6em}.chat-table th{color:#e1fff5;background:#183e46}
.chat-author{font-size:.85em;color:#96b6bf;margin-bottom:.45em}
