/* chat-composer: 10 takes on the starters + composer + disclaimer zone. Scoped by body.cvN.
   Motion: 480ms / cubic-bezier(.2,.8,.2,1), transform + opacity only, same as moon fill and K hover. */
.vt{position:relative}
/* starters moved next to the composer (split, quiet) disappear once the chat starts */
body[data-mode=chat]:not(.flipping) .ft .starters{display:none}

/* ---------- 1 Hairline: underline-only composer ---------- */
.cv1 .cmp{background:transparent;border:0;border-radius:0;padding:4px 0 4px 0;box-shadow:none!important;position:relative}
.cv1 .cmp::before,.cv1 .cmp::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;pointer-events:none}
.cv1 .cmp::before{background:var(--line2)}
.cv1 .cmp::after{background:var(--fg);transform:scaleX(0);transform-origin:left;transition:transform var(--v-d4) var(--e)}@media (hover:hover) and (pointer:fine){
.cv1 .cmp:hover::before{background:var(--fg);opacity:.5}}
.cv1 .cmp:focus-within::after,.cv1 .cmp.fs::after{transform:scaleX(1)}
.cv1 .cmp textarea{font-size:18px;letter-spacing:-.01em}
.cv1 .snd{width:36px;height:36px}
.cv1 .snd::before{background:transparent}
.cv1 .disc{text-align:left;margin-top:10px}

/* ---------- 2 Index: numbered editorial starters ---------- */
.cv2 .starters{counter-reset:st;width:min(520px,100%);gap:0}
.cv2 .starter{counter-increment:st;padding:11px 0;border-top:1px solid var(--line);opacity:1;gap:16px}
.cv2 .starter:last-child{border-bottom:1px solid var(--line)}
.cv2 .starter svg{display:none}
.cv2 .starter::before{content:counter(st,lower-roman) ".";width:26px;flex:none;font-size:12.5px;color:var(--mute);font-variant-numeric:tabular-nums;letter-spacing:.02em;transition:transform var(--v-d4) var(--e)}
.cv2 .starter span{opacity:.78;transition:opacity var(--v-d3) var(--e),transform var(--v-d4) var(--e)}
.cv2 .starter span::after{display:none}
.cv2 .starter::after{content:"";position:absolute;inset:0;background:var(--fg);opacity:0;transform:none;pointer-events:none;transition:opacity var(--v-d3) var(--v-ease)}
@media (hover:hover) and (pointer:fine){.cv2 .starter:hover span{opacity:1;transform:translateX(2px)}.cv2 .starter:hover::after{opacity:.04;transform:none}.cv2 .starter:hover::before{transform:none}.cv2 .starter:hover svg{transform:none}}
.cv2 .starter:focus-visible span{opacity:1;transform:translateX(2px)}.cv2 .starter:focus-visible::after{opacity:.04;transform:none}.cv2 .starter:focus-visible::before{transform:none}
.cv2 .cmp{border-radius:14px}

/* ---------- 3 Type-ahead: hovering a starter types it into the composer ---------- */
.cv3 .cmp textarea::placeholder{transition:opacity var(--v-d2) var(--v-ease)}
.cv3 .cmp.ta-on{border-color:var(--line2)}
.cv3 .cmp.ta-on textarea::placeholder{color:var(--fg);opacity:.9;transform:none}
.cv3 .tahint{position:absolute;right:58px;top:50%;transform:translate3d(6px,-50%,0);opacity:0;font-size:11.5px;color:var(--mute);pointer-events:none;transition:opacity var(--v-d3) var(--e),transform var(--v-d4) var(--e)}
.cv3 .cmp{position:relative}
.cv3 .cmp.ta-on .tahint{opacity:1;transform:translate3d(0,-50%,0)}

/* ---------- 4 Mark in field: the Echo's mini-icon sits inside, left ---------- */
.cv4 .cmp{padding-left:12px;align-items:center;border-radius:14px}
.cv4 .cmp .eic.fm,.cv4 .cmp .eic.fm svg{width:24px;height:24px}
.cv4 .cmp .eic.fm{margin:0 4px 0 2px;opacity:.85;transition:opacity var(--v-d3) var(--e)}
.cv4 .cmp:focus-within .eic.fm{opacity:1}
.cv4 .cmp:focus-within .eic.fm .mf-sweep,.cv4 .cmp.fs .eic.fm .mf-sweep{transform:none}
.cv4 .snd{align-self:flex-end}

/* ---------- 5 Mark send: the send button is the Echo's mark, fills when ready ---------- */
.cv5 .snd{width:40px;height:40px}
.cv5 .snd::before,.cv5 .snd::after{display:none}
.cv5 .snd .ar{display:none}
.cv5 .snd .eic.sm,.cv5 .snd .eic.sm svg{width:34px;height:34px}
.cv5 .snd .eic.sm{grid-area:1/1;position:relative;z-index:1;color:var(--mute);transition:color var(--v-d3) var(--e),transform var(--v-d4) var(--e)}
.cv5 .snd[data-s=ready] .eic.sm{color:var(--fg)}
.cv5 .snd[data-s=ready] .eic.sm .mf-sweep{transform:none}@media (hover:hover) and (pointer:fine){
.cv5 .snd[data-s=ready]:hover .eic.sm{transform:scale(1.06)}}
.cv5 .snd[data-s=busy] .eic.sm{opacity:0}
.cv5 .snd[data-s=busy] .st{color:var(--fg)}
.cv5 .snd[data-s=ready]{transform:none!important}

/* ---------- 6 Rotating line: one suggestion at a time ---------- */
.cv6 .starters{width:min(560px,100%);display:block;height:30px;overflow:hidden;position:relative}
.cv6 .starter{position:absolute;left:0;right:0;justify-content:center;opacity:0;transform:translate3d(0,14px,0);transition:opacity var(--v-d4) var(--e),transform var(--v-d4) var(--e);pointer-events:none}
.cv6 .starter.cur{opacity:.8;transform:none;pointer-events:auto}
.cv6 .starter.was{opacity:0;transform:translate3d(0,-14px,0)}
.cv6 .starter svg{display:none}
.cv6 .starter span::before{content:"Try  ";color:var(--mute);white-space:pre}
.cv6 .rot-dots{display:flex;gap:6px;justify-content:center;margin-top:6px}
.cv6 .rot-dots i{width:4px;height:4px;border-radius:50%;background:var(--fg);opacity:.2;transition:opacity var(--v-d4) var(--e)}
.cv6 .rot-dots i.on{opacity:.7}

/* ---------- 7 Split: ask left, suggestions right ---------- */
.cv7 .ft .split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.82fr);gap:28px;align-items:start}
.cv7 .ft .starters{width:auto;margin:0;padding-left:20px;border-left:1px solid var(--line)}
.cv7 .ft .starters::before{content:"Or try";display:block;font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--mute);margin:2px 0 4px}
.cv7 .ft .starter{font-size:14px;padding:5px 0}
.cv7 .ft .ask-l{font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--mute);margin:2px 0 8px}
.cv7 .disc{text-align:left}
@media (max-width:760px){.cv7 .ft .split{grid-template-columns:1fr;gap:14px}.cv7 .ft .starters{border-left:0;padding-left:0;order:-1}}
body.cv7[data-mode=chat] .ask-l{display:none}

/* ---------- 8 Grow: a hairline that becomes a field on focus ---------- */
.cv8 .cmp{background:transparent;border-color:transparent;box-shadow:none!important;position:relative;isolation:isolate}
.cv8 .cmp::before{content:"";position:absolute;inset:0;border-radius:inherit;background:var(--field);border:1px solid var(--fg);z-index:-1;transform:scaleY(.025);transform-origin:50% 100%;opacity:.35;transition:transform var(--v-d4) var(--e),opacity var(--v-d3) var(--e)}@media (hover:hover) and (pointer:fine){
.cv8 .cmp:hover::before{opacity:.6}}
.cv8 .cmp:focus-within::before,.cv8 .cmp.fs::before,body.cv8[data-mode=chat] .cmp::before{transform:none;opacity:1;border-color:var(--line2)}
.cv8 .cmp:focus-within::before{border-color:var(--fg)}

/* ---------- 9 Quiet footer: disclaimer lives inside the composer ---------- */
.cv9 .cmp{flex-wrap:wrap;border-radius:20px;padding:6px 6px 0 18px}
.cv9 .cmp .disc{flex-basis:100%;order:3;margin:2px -6px 0 -18px;padding:7px 18px 8px;border-top:1px solid var(--line);text-align:left;font-size:11px}
.cv9 .ft > .wrap > .disc{display:none}
.cv9 .starters{flex-direction:row;flex-wrap:wrap;justify-content:center;gap:4px 0;width:min(620px,100%)}
.cv9 .starter{padding:4px 12px;font-size:14px}
.cv9 .starter + .starter{border-left:1px solid var(--line)}
.cv9 .starter svg{display:none}

/* ---------- 10 Letter: "Dear Andrew," ---------- */
.cv10 .cmp{flex-direction:column;align-items:stretch;border-radius:6px;padding:16px 18px 10px;gap:2px;background:var(--field)}
.cv10 .cmp .sal{font-size:15px;color:var(--mute);transition:color var(--v-d3) var(--e)}
.cv10 .cmp:focus-within .sal{color:var(--fg)}
.cv10 .cmp textarea{font-size:17px;line-height:26px}
.cv10 .cmp .lrow{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px dashed var(--line);padding-top:8px;margin-top:4px}
.cv10 .cmp .sig{font-size:12px;color:var(--mute)}
.cv10 .snd{width:auto;height:34px;padding:0 14px;border-radius:10px}
.cv10 .snd .ar{display:none}
.cv10 .snd .lbl{position:relative;z-index:1;font-size:13.5px;font-weight:600;letter-spacing:-.01em}
.cv10 .snd[data-s=busy] .lbl{opacity:0}
.cv10 .starters{gap:0}
.cv10 .starter svg{display:none}
.cv10 .starter span::before{content:"P.S.  ";color:var(--mute);white-space:pre}
body.cv10[data-mode=chat] .sal,body.cv10[data-mode=chat] .lrow .sig{display:none}
body.cv10[data-mode=chat] .cmp{padding:10px 14px 8px}
@media (prefers-reduced-motion:reduce){.cv6 .starter,.cv8 .cmp::before,.cv1 .cmp::after{transition:none}
.cv2 .starter span,.cv2 .starter::after{transition:opacity var(--v-d2) var(--v-ease)}
.cv2 .starter:hover span,.cv2 .starter:focus-visible span{transform:none}}
/* overrides of the base composer's hover/focus layers */
.cv1 .cmp::before,.cv1 .cmp::after{inset:auto 0 0 0;border:0;border-radius:0;opacity:1}@media (hover:hover) and (pointer:fine){
.cv1 .cmp:hover::before{opacity:1}}
.cv1 .cmp:focus-within::before,.cv1 .cmp.fs::before{opacity:1}
.cv8 .cmp::after{display:none}
.cv8 .cmp::before{inset:0}
.cv8 .cmp:focus-within::before,.cv8 .cmp.fs::before,body.cv8[data-mode=chat] .cmp::before{opacity:1}@media (hover:hover) and (pointer:fine){.cv8 .cmp:hover::before{opacity:1}}
.cv8 .cmp:not(:focus-within):not(.fs)::before{opacity:.5}
body.cv8[data-mode=chat] .cmp::before{opacity:1!important;transform:none}
.cv9 .starter + .starter{border-left:0}
.cv9 .starter + .starter::before{content:"·";position:absolute;left:-3px;color:var(--mute)}
/* rising ink fill states for marks inside the composer (shared/echo-fill) */
/* ---------- 11 Index split: golden split, ruled roman starters, composer as tall as the index ---------- */
.cv11 .ft .split{grid-template-columns:minmax(0,1fr) minmax(0,1.618fr);gap:0 32px;align-items:stretch}
.cv11 .ft .split>div:first-child{display:flex;flex-direction:column;min-width:0}
.cv11 .ft .ask-l,.cv11 .ft .starters::before{height:24px;line-height:24px;margin:0;font-size:11px;letter-spacing:.08em}
.cv11 .ft .starters{border-left:0;padding-left:0;width:auto;max-width:none;margin:0;gap:0}
.cv11 .ft .starter{height:40px;padding:0;font-size:14.5px;white-space:nowrap;min-width:0}
.cv11 .ft .starter span{overflow:hidden;white-space:nowrap}
.cv11 .ft .starter:last-child{border-bottom:1px solid var(--line)}
.cv11 .ft .cmp{flex:1;flex-direction:column;align-items:stretch;justify-content:space-between;border-radius:14px;padding:8px 8px 8px 16px;min-height:0}
.cv11 .ft .cmp textarea{flex:1;height:auto!important;min-height:40px}
.cv11 .ft .cmp .snd{align-self:flex-end}
.cv11 .ft > .wrap > .disc{display:none}
.cv11 .hero{padding-bottom:32px}
.cv11 .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}
.cv11 .ft{padding-bottom:max(16px,env(safe-area-inset-bottom))}
body.cv11[data-mode=chat] .ft .split{display:block}
body.cv11[data-mode=chat] .ft .cmp{flex-direction:row;align-items:flex-end}
body.cv11[data-mode=chat] .ft .cmp textarea{height:40px!important;flex:1}
@media (max-width:760px){
  .cv11 .ft .split{grid-template-columns:1fr;gap:8px}
  .cv11 .ft .ask-l,.cv11 .ft .starters::before{display:none}
  .cv11 .ft .starters{order:0}
  .cv11 .ft .cmp{flex-direction:row;align-items:flex-end}
  .cv11 .ft .cmp textarea{height:40px!important}
  .cv11 .ft .starter{height:40px;font-size:14px}
  .cv11 .hero{padding-bottom:24px}}
/* 11: stricter scale (8px rhythm), larger plate so the centred start carries the page */
.cv11.has-echo .hero .eic,.cv11.has-echo .hero .eic svg,.has-echo .cv11 .hero .eic,.has-echo .cv11 .hero .eic svg{width:64px;height:64px}
.cv11 .hero .eid{gap:16px}
.cv11 .hero .eid b{font-size:32px;line-height:40px;letter-spacing:-.03em}
.cv11 .hero .eid .by{font-size:14px;line-height:24px;margin-top:0}
.cv11 .hero{padding-bottom:40px}
.cv11 .ft .starter{height:48px;font-size:15px}
.cv11 .ft .cmp textarea{font-size:16px}
@media (max-width:760px){
  .has-echo .cv11 .hero .eic,.has-echo .cv11 .hero .eic svg{width:48px;height:48px}
  .cv11 .hero .eid b{font-size:24px;line-height:32px}
  .cv11 .hero .eid .by{font-size:13px;line-height:16px}
  .cv11 .hero{padding-bottom:24px}
  .cv11 .ft .starter{height:48px;font-size:14px}}
/* 11: plate scales with viewport height so the centred start fills the page; 8px-based steps */
@media (min-width:761px){
  .has-echo .cv11 .hero .eic,.has-echo .cv11 .hero .eic svg{width:clamp(64px,11vh,104px);height:clamp(64px,11vh,104px)}
  .cv11 .hero .eid{gap:clamp(16px,2.6vh,24px)}
  .cv11 .hero .eid b{font-size:clamp(32px,5.4vh,48px);line-height:1.15}
  .cv11 .hero .eid .by{font-size:clamp(14px,1.9vh,16px);line-height:1.5}
  .cv11 .hero{padding-bottom:clamp(40px,6.4vh,64px)}
  .cv11 .ft .starter{height:clamp(48px,7vh,64px)}
}
@media (min-width:761px) and (max-width:1100px){.cv11 .ft .split{grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:0 24px}.cv11 .ft .starter{font-size:14.5px}}
@media (max-width:760px){
  .has-echo .cv11 .hero .eic,.has-echo .cv11 .hero .eic svg{width:64px;height:64px}
  .cv11 .hero .eid b{font-size:28px;line-height:36px}
  .cv11 .hero .eid .by{font-size:14px;line-height:24px}
  .cv11 .hero{padding-bottom:32px}
  .cv11 .ft .starter{height:56px;font-size:15px}
  .cv11 .ft .cmp{min-height:56px}}
@media (max-width:760px){
  .cv11 .ft .split{grid-template-columns:minmax(0,1fr)}
  .cv11 .ft .starter{height:auto;min-height:48px;padding:12px 0;white-space:normal;align-items:flex-start}
  .cv11 .ft .starter span{white-space:normal}
  .cv11 .ft .starter::before{line-height:24px}
  .cv11 .ft .starter span{line-height:24px}}
.cv11 .ft .starter{gap:8px}
.cv11 .ft .starter::before{width:32px}

/* ===== disclaimer on a quiet fixed bottom line, all versions ===== */
.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:16px}

/* ===== 11 b: composer is the wide column (1.618 : 1), group fills the page ===== */
@media (min-width:761px){
  body.cv11{--w:min(1040px,78vw)}
  .cv11 .ft .split{grid-template-columns:minmax(0,1.618fr) minmax(0,1fr);gap:0 clamp(24px,3vw,48px)}
  .has-echo .cv11 .hero .eic,.has-echo .cv11 .hero .eic svg{width:clamp(64px,15vh,168px);height:clamp(64px,15vh,168px)}
  .cv11 .hero .eid{gap:24px}
  .cv11 .hero .eid b{font-size:clamp(32px,7.6vh,84px);line-height:1.1}
  .cv11 .hero .eid .by{font-size:clamp(14px,2vh,20px);line-height:1.4}
  .cv11 .hero{padding-bottom:48px}
  .cv11 .ft .starter{height:auto;min-height:clamp(48px,11vh,124px);padding:8px 0;white-space:normal;align-items:center;font-size:clamp(14.5px,1.9vh,18px)}
  .cv11 .ft .starter span{white-space:normal;line-height:1.35}
  .cv11 .ft .cmp textarea{font-size:clamp(16px,2.2vh,22px);line-height:1.45}
  .cv11 .ft .cmp{padding:clamp(8px,1.6vh,16px) clamp(8px,1.6vh,16px) clamp(8px,1.6vh,16px) clamp(16px,2vh,24px)}
  body.cv11[data-mode=empty] .stage{padding-bottom:0}
}

/* ===== 11 c: slim single-line field, send inside, centre line on row i ===== */
.cv11 .ft{--row:56px}
@media (min-width:761px){.cv11 .ft{--row:clamp(56px,10vh,112px)}}
.cv11 .ft .starter{min-height:var(--row)!important}
.cv11 .ft .split>div:first-child{display:block}
.cv11 .ft .cmp,body.cv11[data-mode=chat] .ft .cmp{flex:none;flex-direction:row;align-items:center;min-height:56px;height:auto;border-radius:14px;padding:8px 10px 8px 20px;gap:8px;margin-top:calc((var(--row) - 56px) / 2)}
body.cv11[data-mode=chat] .ft .cmp{margin-top:0}
.cv11 .ft .cmp textarea,body.cv11[data-mode=chat] .ft .cmp textarea{flex:1;height:40px;min-height:40px;max-height:136px;font-size:16px!important;line-height:24px!important;padding:8px 0}
.cv11 .ft .cmp .snd{align-self:center;width:36px;height:36px;border-radius:50%}
.cv11 .ft .cmp .snd::before,.cv11 .ft .cmp .snd::after{border-radius:50%}
.cv11 .ft .cmp .snd svg{width:17px;height:17px}
@media (max-width:760px){.cv11 .ft .cmp{margin-top:0}}
@media (min-width:761px){
  .cv11 .ft{--row:clamp(56px,12vh,128px)}
  .has-echo .cv11 .hero .eic,.has-echo .cv11 .hero .eic svg{width:clamp(64px,16vh,176px);height:clamp(64px,16vh,176px)}}

/* ===== 11c: one centred column: mark, title, by, slim composer, then the 3 starters as hairline rows ===== */
@media (min-width:761px){
  body.cv11c{--w:min(680px,88vw)}
  .cv11c .ft .split{grid-template-columns:minmax(0,1fr);gap:0}
  .cv11c .ft .ask-l,.cv11c .ft .starters::before{display:none}
  .cv11c .ft .cmp{margin-top:0}
  .cv11c .ft .starters{margin-top:16px}
  .cv11c .ft .starter{min-height:56px!important;height:auto;padding:8px 0;font-size:15px;white-space:nowrap}
  .cv11c .ft .starter span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .has-echo .cv11c .hero .eic,.has-echo .cv11c .hero .eic svg{width:clamp(56px,10vh,96px);height:clamp(56px,10vh,96px)}
  .cv11c .hero .eid{gap:16px}
  .cv11c .hero .eid b{font-size:clamp(32px,5.2vh,52px);line-height:1.12}
  .cv11c .hero .eid .by{font-size:clamp(14px,1.8vh,17px)}
  .cv11c .hero{padding-bottom:clamp(24px,4vh,40px)}
}
/* 11c: scale the group with the viewport so it sits at optical centre */
@media (min-width:761px){
  .has-echo .cv11c .hero .eic,.has-echo .cv11c .hero .eic svg{width:clamp(64px,14vh,144px);height:clamp(64px,14vh,144px)}
  .cv11c .hero .eid{gap:clamp(16px,2.4vh,24px)}
  .cv11c .hero .eid b{font-size:clamp(36px,7vh,72px);line-height:1.1}
  .cv11c .hero .eid .by{font-size:clamp(14px,2vh,19px)}
  .cv11c .hero{padding-bottom:clamp(32px,6vh,64px)}
  .cv11c .ft .starters{margin-top:clamp(16px,3vh,32px)}
  .cv11c .ft .starter{min-height:clamp(56px,9.5vh,104px)!important;font-size:clamp(15px,1.9vh,18px)}
}

/* chat-final reading column: wrap max-width includes padding, so size for a 680–760px composer */
@media (min-width:761px) and (max-width:1024px){
  body.cv11c,body.cv11{--w:min(760px,94vw)}
}
@media (min-width:1025px) and (max-width:1366px){
  body.cv11c,body.cv11{--w:min(800px,88vw)}}
@media (min-width:1367px){
  body.cv11c,body.cv11{--w:min(800px,58vw)}}
@media (min-width:761px) and (min-height:1100px){
  .has-echo .cv11c .hero .eic,.has-echo .cv11c .hero .eic svg{width:clamp(88px,12vh,148px);height:clamp(88px,12vh,148px)}
  .cv11c .hero .eid{gap:clamp(16px,2.2vh,28px)}
  .cv11c .hero .eid b{font-size:clamp(44px,6.6vh,76px);line-height:1.08}
  .cv11c .hero .eid .by{font-size:clamp(15px,1.8vh,20px)}
  .cv11c .hero{padding-bottom:clamp(28px,4.2vh,56px)}
  .cv11c .ft .starters{margin-bottom:16px!important}
  .cv11c .ft .starter{min-height:clamp(56px,8vh,88px)!important;font-size:clamp(16px,1.9vh,20px)}}