/* Star plate. One motion language: ease --e, durations 160 / 280 / 480 / 800. Transform + opacity only. */
@view-transition{navigation:auto}
body{--e:var(--v-ease);--x:var(--v-ease);--d1:160ms;--d2:280ms;--d3:480ms;--d4:800ms}

/* Pin the app to the visual viewport so iOS keyboards never shove it */
html,body{overscroll-behavior:none}
.app{position:fixed;left:0;right:0;top:var(--vvt,0px);height:var(--vvh,100dvh)}
.pre .hero .eic,.pre .hero .eid-txt b,.pre .hero .by,.pre .starter,.pre .ft{opacity:0}

/* Composer is no longer on an opaque bar; the plate texture runs under it */
.ft,.ft{background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}

/* Stage: hero + log + footer */
.stage{flex:1;min-height:0;display:flex;flex-direction:column;position:relative;overflow:hidden}
.hero{flex:none;width:100%;max-width:var(--w);margin:0 auto;padding:8px 20px 28px}
.hero .plate{display:flex;flex-direction:column;align-items:center;gap:22px;text-align:center}
.hero .eid{flex-direction:column;align-items:center;gap:16px;max-width:100%}
.hero .eid-txt{text-align:center}
.hero .eid b{font-size:22px;letter-spacing:-.03em;line-height:1.2;white-space:normal}
.hero .eid .by{font-size:13px;margin-top:4px}
.hero .eic,.hero .eic svg{width:64px;height:64px}
.hero .eic{will-change:transform}
.starters{display:flex;flex-direction:column;align-items:stretch;gap:2px;width:max-content;max-width:100%;margin-inline:auto}
.starter,.fub{color:var(--fg);opacity:.72;transition:opacity var(--d2) var(--e)}
.starter{display:flex;align-items:center;gap:10px;padding:6px 0;font-size:15px;line-height:1.4;text-align:left;cursor:pointer;position:relative}
.starter svg,.fub svg{width:15px;height:15px;flex:none;transition:transform var(--d3) var(--e)}
.starter span,.fub span{position:relative;transition:transform var(--d3) var(--e)}
.starter span::after,.fub span::after{content:"";position:absolute;left:0;right:0;bottom:-2px;height:1px;background:currentColor;opacity:.5;transform:scaleX(0);transform-origin:left;transition:transform var(--d3) var(--e)}
.fur.open>.fub{opacity:1}

body[data-mode=empty] .stage{justify-content:center}
body[data-mode=empty] .log{flex:none;height:0;min-height:0;padding:0;opacity:0;overflow:hidden;pointer-events:none}
body[data-mode=empty] .hd .eid{opacity:0;pointer-events:none}
body[data-mode=chat]:not(.leaving) .hero{display:none}
body[data-mode=chat] .hd .eid{opacity:1}
body[data-mode=chat] .stage{justify-content:flex-start}
body.flipping .hero{display:block}
body.flipping .stage{overflow:visible}

/* Message rhythm and entrances are driven from JS (transform + opacity on the compositor) */
.m.rise,.m.u.rise,.m.e.rise{animation:none}
.fu{animation:none}
.fub{border-radius:0;background:none;margin-left:0;padding:7px 0}@media (hover:hover) and (pointer:fine){
.fub:hover{background:none}}
.ghost{position:fixed;z-index:20;margin:0;pointer-events:none;will-change:transform,opacity}
.ghost .bub{margin:0}

/* Words: opacity + a 4px lift. No blur. */
.w{filter:none;transform:translate3d(0,4px,0);transition:opacity var(--d3) var(--e),transform var(--d3) var(--e)}
.w.on,.static .w{opacity:1;transform:none}

/* Bubbles: hover is a 1px lift plus a line layer that fades in */
.e .bub,.u .bub,.thi .bub{transition:transform var(--d2) var(--e)}
.e .bub::after,.thi .bub::after{content:"";position:absolute;inset:-1px;border:1px solid var(--line2);border-radius:inherit;opacity:0;pointer-events:none;transition:opacity var(--d2) var(--e)}
.e .bub,.thi .bub{box-shadow:none}@media (hover:hover) and (pointer:fine){
.e .bub:hover,.thi .bub:hover{box-shadow:none;border-color:var(--line)}}
.u .bub{border-radius:20px}

/* Typing indicator: Question and answer (#6). A ring travels to a point, a dot travels back. */
.typ{margin:0 0 8px}
.typ .bub{gap:10px}

/* Composer: field with two border layers (hover, focus) that cross-fade */
.cmp{position:relative;border-radius:14px;padding:6px 6px 6px 16px;box-shadow:none}.cmp:focus-within,.cmp.fs{border-color:var(--line);box-shadow:none}@media (hover:hover) and (pointer:fine){
.cmp:hover{border-color:var(--line);box-shadow:none}}
.cmp::before,.cmp::after{content:"";position:absolute;inset:-1px;border-radius:inherit;border:1px solid var(--line2);opacity:0;pointer-events:none;transition:opacity var(--d3) var(--e)}
.cmp::after{border-color:var(--fg)}@media (hover:hover) and (pointer:fine){
.cmp:hover::before{opacity:1}}
.cmp:focus-within::after,.cmp.fs::after{opacity:1}
.cmp:focus-within::before,.cmp.fs::before{opacity:0}
.cmp textarea::placeholder{transition:opacity var(--d2) var(--e),transform var(--d3) var(--e)}

/* Send: soft plate under, ink plate fades and scales in over it */
.snd{position:relative;border-radius:10px;background:transparent;animation:none!important;transition:transform var(--d2) var(--e),color var(--d2) var(--e)}
.snd::before,.snd::after{content:"";position:absolute;inset:0;border-radius:inherit}
.snd::before{background:var(--soft2)}
.snd::after{background:var(--ink);opacity:0;transform:scale(.86);transition:opacity var(--d2) var(--e),transform var(--d3) var(--e)}
.snd svg{position:relative;z-index:1}
.snd[data-s=ready],.snd[data-s=busy]{background:transparent;color:var(--inkfg);border-radius:10px}
.snd[data-s=ready]::after,.snd[data-s=busy]::after{opacity:1;transform:none}
.snd[data-s=ready] .ar{transform:translateY(-1px)}
.snd[data-s=busy] .ar{opacity:0;transform:translateY(-12px) scale(.6)}@media (hover:hover) and (pointer:fine){

/* Hover (fine pointers only) */
@media (hover:hover) and (pointer:fine){
  .starter:hover,.fub:hover{opacity:1}
  .starter:hover span,.fub:hover span{transform:translateX(2px)}
  .e .bub:hover,.thi .bub:hover,.u .bub:hover{transform:translate3d(0,-1px,0)}
  .e .bub:hover::after,.thi .bub:hover::after{opacity:1}
  .snd[data-s=ready]:hover{transform:scale(1.06)}
  .snd[data-s=ready]:active{transform:scale(.94)}
}}
.fur.open>.fub svg{transform:rotate(90deg)}@media (hover:hover) and (pointer:fine){
.fur.open>.fub:hover svg{transform:rotate(90deg) translateX(3px)}}

@media (max-width:760px){
  .hero{padding:8px 20px 20px}
  .hero .eid b{font-size:18px}
  .hero .eic,.hero .eic svg{width:52px;height:52px}
  .ft{background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}}
/* Short viewport (keyboard up, landscape): quieter plate so the composer never crowds it */
@media (max-height:520px){
  .hero .eic,.hero .eic svg{width:36px;height:36px}
  .hero .plate{gap:12px}
  .hero .eid{gap:10px}
  .starter{padding:3px 0}
}
/* reduced motion: keep gentle fades; movement is stripped per-animation in JS (no global kill) */
@media (prefers-reduced-motion:reduce){
  ::view-transition-old(root),::view-transition-new(root){animation-duration:var(--v-d1)!important}
}

/* Per-Echo mark: the same icon Explore shows above the focused title (44-56px), shared element 'echo-mark' */
.hero .eic{view-transition-name:echo-mark}
.has-echo .hero .eic,.has-echo .hero .eic svg{width:56px;height:56px}
.has-echo .hd .eic,.has-echo .hd .eic svg{width:24px;height:24px}
@media (max-width:760px){
  .has-echo .hero .eic,.has-echo .hero .eic svg{width:48px;height:48px}
  .has-echo .hd .eic,.has-echo .hd .eic svg{width:22px;height:22px}}
@media (max-height:520px){.has-echo .hero .eic,.has-echo .hero .eic svg{width:36px;height:36px}}

/* ---- Echo mark hover: moon-phase ink fill (markfill.js) ---- */
.eic{cursor:default;border-radius:50%;outline-offset:4px}
.eic svg.mf{overflow:visible}
.eic .mf-sweep{transform:translate3d(var(--mf-off,-34px),0,0);transition:transform var(--v-d4) var(--v-ease)}
.eic .mf-inv{stroke:var(--bg)}
.eic .mf-ring{transform-box:fill-box;transform-origin:center;transition:transform var(--v-d4) var(--v-ease)}
.eic svg.mf-solo{transition:transform var(--v-d4) var(--v-ease)}
.eic.mf-on .mf-sweep,.eic:focus-visible .mf-sweep{transform:none}
.eic.mf-on .mf-ring,.eic:focus-visible .mf-ring{transform:scale(1.03)}
.eic.mf-on svg.mf-solo,.eic:focus-visible svg.mf-solo{transform:rotate(90deg) scale(1.04)}
@media (hover:hover) and (pointer:fine){
  .eic:hover .mf-sweep{transform:none}
  .eic:hover .mf-ring{transform:scale(1.03)}
  .eic:hover svg.mf-solo{transform:rotate(90deg) scale(1.04)}}
/* header mark is only live in chat mode */
body[data-mode=empty] .hd .eic{pointer-events:none}
@media (prefers-reduced-motion:reduce){.eic .mf-sweep,.eic .mf-ring,.eic svg.mf-solo{transition:none!important}}

/* ---- one hover language for small controls: an ink/soft plate sweeps in from the left (same 480ms ease) ---- */
.ib{position:relative;overflow:hidden;transition:color var(--v-d3) var(--v-ease),transform var(--v-d3) var(--v-ease)}
.ib::before{content:"";position:absolute;inset:0;border-radius:inherit;background:var(--soft);transform:translate3d(-101%,0,0);transition:transform var(--v-d4) var(--v-ease)}
.ib svg{position:relative;z-index:1}@media (hover:hover) and (pointer:fine){
.ib:hover{background:transparent}}.ib:focus-visible::before{transform:none}@media (hover:hover) and (pointer:fine){
.ib:hover::before{transform:none}}
.starter svg,.starter span,.starter span::after,.fub svg,.fub span,.fub span::after{transition-duration:var(--v-d4);transition-timing-function:var(--v-ease)}
.starter:focus-visible{opacity:1}
.starter:focus-visible span{transform:translateX(2px)}
@media (prefers-reduced-motion:reduce){
  .starter:hover span,.fub:hover span,.starter:focus-visible span,.fub:focus-visible span{transform:none}
}
.snd{transition:transform var(--v-d4) var(--v-ease),color var(--v-d3) var(--v-ease)}.snd[data-s=ready]:focus-visible .ar{transform:translateY(-3px)}@media (hover:hover) and (pointer:fine){
.snd[data-s=ready]:hover .ar{transform:translateY(-3px)}}
@media (prefers-reduced-motion:reduce){.ib::before{transition:none}}

/* disclaimer on a quiet fixed bottom line */
.ft > .wrap > .disc{display:none}
.fdisc{flex:none;margin:0;padding:8px 16px max(8px,env(safe-area-inset-bottom));text-align:center;font-size:11px;line-height:16px;color:var(--mute);position:relative;z-index:2}
.ft{padding-bottom:max(16px,env(safe-area-inset-bottom))}

/* ---- streaming reply: dots become the bubble; size follows the text smoothly ---- */
.e .bub.sbub{padding:0;overflow:hidden;transition:width var(--v-d3) var(--v-ease),height var(--v-d3) var(--v-ease)}
.sbub .bi{display:block;width:max-content;padding:14px 18px;position:relative}
.sbub .txt{margin:0}
.sbub .txt:empty{display:none}
.dots{display:flex;align-items:center;gap:10px;height:38px;padding:0 16px;background:var(--bub);border:1px solid var(--line);border-radius:20px;box-shadow:none;transition:opacity var(--v-d1) var(--v-ease)}
.tkc{font-size:13px;line-height:1;color:var(--mute);letter-spacing:0;white-space:nowrap;font-weight:400}
.tk6{position:relative;display:block;flex:none;width:40px;height:24px;color:var(--fg)}
.tk6-ln,.tk6-a,.tk6-b,.tk6-q,.tk6-r{position:absolute;box-sizing:border-box;display:block}
.tk6-ln{left:11px;right:11px;top:12px;height:1px;background:var(--line2)}
.tk6-a{left:3px;top:9px;width:6px;height:6px;border-radius:50%;background:var(--fg);animation:tk6-a 2.2s linear infinite}
.tk6-b{left:31px;top:9px;width:6px;height:6px;border-radius:50%;border:1.25px solid var(--fg);animation:tk6-b 2.2s linear infinite}
.tk6-q{left:11px;top:10px;width:4px;height:4px;border-radius:50%;border:1px solid var(--fg);animation:tk6-q 2.2s linear infinite}
.tk6-r{left:11px;top:10px;width:4px;height:4px;border-radius:50%;background:var(--fg);animation:tk6-r 2.2s linear infinite}
@keyframes tk6-q{0%{opacity:1;transform:translateX(0);animation-timing-function:cubic-bezier(.2,.8,.2,1)}28%{opacity:1;transform:translateX(14px)}36%{opacity:0;transform:translateX(14px)}37%,84%{opacity:0;transform:translateX(0)}100%{opacity:1;transform:translateX(0)}}
@keyframes tk6-r{0%,34%{opacity:0;transform:translateX(14px)}40%{opacity:1;transform:translateX(14px);animation-timing-function:cubic-bezier(.2,.8,.2,1)}68%{opacity:1;transform:translateX(0)}76%{opacity:0;transform:translateX(0)}77%,100%{opacity:0;transform:translateX(14px)}}
@keyframes tk6-b{0%,24%{transform:scale(1);animation-timing-function:cubic-bezier(.2,.8,.2,1)}32%{transform:scale(1.5);animation-timing-function:cubic-bezier(.2,.8,.2,1)}44%,100%{transform:scale(1)}}
@keyframes tk6-a{0%,64%{transform:scale(1);animation-timing-function:cubic-bezier(.2,.8,.2,1)}72%{transform:scale(1.5);animation-timing-function:cubic-bezier(.2,.8,.2,1)}84%,100%{transform:scale(1)}}
@keyframes tk6-pulse{from{opacity:.4}to{opacity:1}}
@media (prefers-reduced-motion:reduce){
  .tk6-ln,.tk6-a,.tk6-b,.tk6-q,.tk6-r{animation:none!important}
  .tk6-q,.tk6-r{opacity:0}
  .tk6{animation:tk6-pulse 2.6s cubic-bezier(.37,0,.63,1) infinite alternate}
}
.dots.gone{position:absolute;left:18px;top:14px;opacity:0;pointer-events:none}
.ck{display:inline;animation:ck var(--v-d1) var(--v-ease) both}
@keyframes ck{from{opacity:0}to{opacity:1}}
.ck{position:relative;animation-name:ck2}
@keyframes ck2{from{opacity:0;top:2px}to{opacity:1;top:0}}
/* composer focus: a 1px ink hairline at 30% */
.cmp::after{border-color:color-mix(in srgb,var(--fg) 30%,transparent)}
@media (prefers-reduced-motion:reduce){.e .bub.sbub{transition:none}.ck{animation:none}}
/* ===== steady reply (v5): reserved slot, no box resizing, opacity/transform only ===== */
.sm2 .col{position:relative}
.sm2 .dots{position:absolute;left:0;top:0;height:auto;padding:14px 18px;border-radius:var(--r,20px);background:var(--bub,transparent);opacity:1;transition:opacity var(--v-d2) var(--v-ease);animation:dotin var(--v-d3) var(--v-ease) both}
.sm2 .dots.gone{left:0;top:0;opacity:0}
.sm2 .bub.sbub{padding:14px 18px;overflow:visible;transition:opacity var(--v-d2) var(--v-ease);opacity:0}
.sm2 .bub.sbub.in{opacity:1}
.sm2 .ck{animation:none;opacity:0;transform:translate3d(0,2px,0);transition:opacity var(--v-d2) var(--v-ease),transform var(--v-d2) var(--v-ease)}
.sm2 .ck.on{opacity:1;transform:none}
.tools.tin{animation:dotin var(--v-d3) var(--v-ease) both}
@keyframes dotin{from{opacity:0;transform:translate3d(0,4px,0)}to{opacity:1;transform:none}}
.log .starters.fu{width:100%;max-width:560px;margin:8px 0 0;counter-reset:st}
.starters.fu.fin{animation:dotin var(--v-d3) var(--v-ease) both}
.fdisc{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (prefers-reduced-motion:reduce){.sm2 .dots,.sm2 .bub.sbub,.sm2 .ck,.tools.tin,.starters.fu.fin{transition:none;animation:none}}
/* ===== v6 reply: no box, plain text on paper, soft word wave ===== */
.m.e.sm3 .col{position:relative;max-width:min(620px,100%)}
.sm3 .txt{margin:0;font-size:16.5px;line-height:1.62;color:var(--fg);letter-spacing:-.003em}
.sm3 .w{display:inline-block;opacity:0;will-change:opacity,transform}
.sm3.done .w{will-change:auto}
.sm3 .dots{position:absolute;left:0;top:0;height:38px;padding:0 16px;background:var(--bub);border:1px solid var(--line);border-radius:20px;animation:none;opacity:0;display:flex;align-items:center;gap:10px}
.sm3 .s{display:inline}
.fu .fub{will-change:auto}
.sm3 .w{transform:none;transition:none}
.log .in{margin:0 auto}

/* ===== v7 mobile: composer pinned at the bottom from the first frame; hero centred above; starters sit just above the field ===== */
@media (max-width:760px){
  body[data-mode=empty] .stage{justify-content:flex-end}
  body[data-mode=empty] .hero{flex:1;display:flex;flex-direction:column;justify-content:center;padding-bottom:16px}
  body.cv11 .ft .split{display:flex!important;flex-direction:column-reverse}
  .cv11 .ft .split>div:first-child{display:block}
  body.cv11 .ft .starters{margin:0 0 12px!important}
}
/* v7 mobile chat header: K mark only, title block gets the width, subline steps down instead of truncating */
@media (max-width:760px){
  body[data-mode=chat] .hd .brand .kw{display:none}
  body[data-mode=chat] .hd .eid{flex:1;min-width:0;max-width:none}
  body[data-mode=chat] .hd .eid-txt{min-width:0}
  body[data-mode=chat] .hd .eid-txt b,body[data-mode=chat] .hd .eid-txt .by{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
  body[data-mode=chat] .hd .eid-txt .by{font-size:clamp(11px,3.05vw,12.5px)}
  body[data-mode=chat] .hd .eid-txt b{font-size:clamp(13px,3.7vw,15px)}
}
@media (max-width:760px){body[data-mode=chat] .hd .wrap{grid-template-columns:auto minmax(0,1fr) auto;column-gap:12px}body[data-mode=chat] .hd .eid{justify-self:start}}
@media (max-width:760px){body[data-mode=chat] .hd .eid{justify-content:flex-start}}
/* reading scale for replies */
.sm3 .txt{font-size:16.5px;line-height:1.6;letter-spacing:-.004em}
.m.e.sm3 .col{max-width:min(64ch,100%)}
@media (min-width:761px){.sm3 .txt{font-size:17.5px;line-height:1.66;letter-spacing:-.006em}.m.e.sm3 .col{max-width:min(62ch,100%)}}
.m.e.sm3+.m.u,.m.u+.m.e.sm3{margin-top:20px}
/* user message: flat solid ink, no sheen */
body .m.u .bub,body .ghost.u .bub{background:var(--ink)!important;background-image:none!important;box-shadow:none!important;border:0!important;border-radius:20px!important;padding:10px 16px!important;filter:none!important}
body .m.u .bub::before,body .m.u .bub::after{display:none!important}
/* ?reply=box: quiet paper-lighter box, hairline, no shadow; appears with the first words, never empty */
.rbox .sm3 .txt{background:color-mix(in srgb,var(--bg) 55%,#fff);border:1px solid var(--line);border-radius:20px;padding:14px 18px;opacity:0;transition:opacity var(--v-d3) var(--v-ease)}
[data-theme=dark] .rbox .sm3 .txt{background:color-mix(in srgb,var(--bg) 88%,#fff)}
.rbox .sm3.go .txt{opacity:1}
.rbox .sm3 .dots{left:19px;top:24px}
.rbox .m.e.sm3 .col{max-width:min(64ch,92%)}
@media (max-width:760px){body[data-mode=chat] .log{padding-top:16px}}

/* ===== chat-final: press, leaving, boxed growth, iPad/desktop type and pin ===== */
.starter.press,.fub.press,.snd.press,.ib.press,.brand.press{transform:scale(.97);opacity:.82}
.starter,.fub,.snd,.ib,.brand{touch-action:manipulation}

body[data-mode=chat]:not(.leaving) .hero{display:none}
body.leaving[data-mode=chat] .hero,body.leaving .hero{position:absolute;left:0;right:0;top:0;z-index:4;pointer-events:none;margin:0;background:transparent}
body.leaving .log{flex:1;height:auto;min-height:0;opacity:1;overflow:auto;pointer-events:auto}

/* boxed reply: the paper box only exists around words that are already in; it grows as words arrive */
.rbox .sm3 .txt{background:color-mix(in srgb,var(--bg) 55%,#fff);border:1px solid var(--line);border-radius:20px;padding:14px 18px;opacity:0;transition:opacity var(--v-d2) var(--v-ease)}
[data-theme=dark] .rbox .sm3 .txt{background:color-mix(in srgb,var(--bg) 88%,#fff)}
.rbox .sm3.go .txt{opacity:1}
.rbox .sm3 .txt:empty{background:none;border-color:transparent;padding:0;min-height:0}
.rbox .sm3 .dots{left:0;top:8px}
.rbox .m.e.sm3 .col{max-width:min(62ch,92%)}

/* composer pinned on every size from the first frame (ChatGPT pattern); start group centres above it */
body[data-mode=empty] .stage{justify-content:flex-end}
body[data-mode=empty] .hero{flex:1;display:flex;flex-direction:column;justify-content:center;padding-bottom:8px;min-height:0}
body.cv11c .ft .split{display:flex!important;flex-direction:column-reverse;grid-template-columns:none}
body.cv11c .ft .starters{margin:0 0 12px!important}
body.cv11c .ft .ask-l,body.cv11c .ft .starters::before{display:none}

/* reading column and optical scale */
body.cv11c,body{--w:min(720px,92vw)}
@media (min-width:761px) and (max-width:1024px){
  body.cv11c,body{--w:min(700px,90vw)}
  .has-echo .cv11c .hero .eic,.has-echo .cv11c .hero .eic svg{width:clamp(64px,11vh,112px);height:clamp(64px,11vh,112px)}
  .cv11c .hero .eid b{font-size:clamp(34px,5.6vh,56px)}
  .cv11c .hero{padding-bottom:clamp(20px,3.5vh,40px)}
  .cv11c .ft .starter{min-height:52px!important;font-size:16px}
  body[data-mode=chat] .hd .brand .kw{display:inline}}
@media (min-width:1025px) and (max-width:1366px){
  body.cv11c,body{--w:min(740px,84vw)}
  .has-echo .cv11c .hero .eic,.has-echo .cv11c .hero .eic svg{width:clamp(72px,12vh,120px);height:clamp(72px,12vh,120px)}
  .cv11c .hero .eid b{font-size:clamp(40px,6.2vh,64px)}}
@media (min-width:1367px){
  body.cv11c,body{--w:min(760px,56vw)}
  .has-echo .cv11c .hero .eic,.has-echo .cv11c .hero .eic svg{width:clamp(72px,11vh,120px);height:clamp(72px,11vh,120px)}
  .cv11c .hero .eid b{font-size:clamp(40px,5.8vh,64px)}
  .cv11c .hero{padding-bottom:clamp(24px,4vh,48px)}
  .cv11c .ft .starter{min-height:clamp(52px,7.2vh,72px)!important}}
body[data-mode=chat] .log{padding-top:12px;padding-bottom:8px}
.brand,.brand .km,.brand .kw{color:var(--fg)}

/* conversation header: back chevron, Echo identity, no K mark */
.hd .back{display:none;width:44px;height:44px;place-items:center;color:var(--mute);justify-self:start;margin-left:-6px;border-radius:10px;transition:color var(--v-d2) var(--v-ease),opacity var(--v-d2) var(--v-ease),background var(--v-d2) var(--v-ease)}
.hd .back svg{width:20px;height:20px;display:block}@media (hover:hover) and (pointer:fine){
.hd .back:hover{color:var(--fg)}}
.hd .back:active{transform:scale(.97)}
/* plate: back (to explore/home) plus K, no Echo icon in the bar so they don't clash */
body[data-mode=empty] .hd .back{display:grid}
body[data-mode=empty] .hd .wrap{grid-template-columns:auto auto 1fr auto;column-gap:4px}
body[data-mode=chat] .hd .brand{display:none}
body[data-mode=chat] .hd .back{display:grid}
body[data-mode=chat] .hd .wrap{grid-template-columns:auto minmax(0,1fr) auto;column-gap:8px}
body[data-mode=chat] .hd .eid{justify-self:start;max-width:100%}
.hd-act{gap:2px}
.hd-act .ib{width:44px;height:44px;color:var(--mute)}
.hd-act .ib svg{width:18px;height:18px;stroke-width:1.5}
@media (prefers-reduced-motion:reduce){
  .hd .back:active,.hd-act .ib:active{transform:none}
  .hd::after{transition:opacity var(--v-d1) var(--v-ease)}}

/* structured replies inside the boxed text */
.sm3 .txt.rich{display:block}
.sm3 .lead{margin:0}
.steps{list-style:none;margin:14px 0 0;padding:0}
.step{display:grid;grid-template-columns:1.6em minmax(0,1fr);column-gap:10px;align-items:start;padding:10px 0;border-top:1px solid color-mix(in srgb,var(--fg) 12%,transparent)}
.step:first-child{border-top:0;padding-top:2px}
.step .sn{font-variant-numeric:tabular-nums;font-feature-settings:"tnum";font-weight:500;font-size:13.5px;line-height:1.5;opacity:.5;padding-top:.15em}
.step .sb{min-width:0}
.step .sb b{display:block;font-weight:560;letter-spacing:-.02em;line-height:1.3}
.step .sd{display:block;margin-top:3px;font-size:.92em;line-height:1.45;opacity:.62}
.proto{margin-top:14px;width:100%;font-variant-numeric:tabular-nums;font-feature-settings:"tnum"}
.proto-h,.proto-r{display:grid;grid-template-columns:1.1fr 1.5fr .9fr;gap:10px;padding:8px 0;border-top:1px solid color-mix(in srgb,var(--fg) 12%,transparent)}
.proto-h{border-top:0;padding-top:0;font-size:11px;line-height:1.3;letter-spacing:.08em;text-transform:uppercase;font-weight:500;opacity:.5}
.proto-r span{min-width:0}
@media (max-width:699px){
  .proto-h{display:none}
  .proto-r{grid-template-columns:1fr;gap:5px;padding:10px 0}
  .proto-r > span{display:grid;grid-template-columns:7.2em minmax(0,1fr);gap:8px;align-items:baseline}
  .proto-r > span::before{content:attr(data-l);font-size:11px;letter-spacing:.08em;text-transform:uppercase;opacity:.5;font-weight:500}
  .proto-r > span .pv{min-width:0}}
@media (prefers-reduced-motion:reduce){
  .step,.proto-r,.proto-h{transition:opacity var(--v-d2) var(--v-ease)}}

/* follow-up suggestions collapse */
.starters.fu{overflow:hidden}

.note-med{margin:8px 0 0;font-size:12px;line-height:1.3;letter-spacing:-.01em;opacity:.5;color:var(--fg)}
.hero .eid b{white-space:normal;overflow:visible;text-overflow:clip}