
  :root {
    --bg:var(--calendar-paper); --g900:#3d2a1c; --g800:#4a3423; --g700:#d9690a; --g500:#ff8e0b; --g300:#ffcf99; --g200:#ffe0bd; --g100:#fdebd6;
    --ink:#2b1d12; --mute:#8b8f8a;
    --glass-border:rgba(255,255,255,.92);
  }
  * { box-sizing:border-box; margin:0; padding:0; -webkit-tap-highlight-color:transparent; }
  html,body { height:100%; }
  body { background:#dccfca; overflow:hidden; font-family:"Noto Sans SC","PingFang SC","Helvetica Neue",Arial,sans-serif; color:var(--ink); }
  button { font:inherit; color:inherit; border:0; background:none; cursor:pointer; }
  .fit { position:absolute; left:50%; top:0; width:390px; height:720px; transform-origin:top center; }
  .phone { position:relative; width:390px; height:720px; background:var(--bg); overflow:hidden; }
  @media (min-width: 481px) {
    body { background:var(--bg); }
  }

  /* status bar */
  .status { position:absolute; inset:0 0 auto 0; height:28px; z-index:6; display:flex; align-items:center; justify-content:space-between; padding:0 16px 0 23px; font:600 11.5px/1 -apple-system,"SF Pro Text","Helvetica Neue",sans-serif; color:#111; }
  .status svg { height:9px; display:block; }
  .status .r { display:flex; gap:5px; align-items:center; }

  .world { --echo-x:123px; --echo-width:112px; --shoe-line:448.2px; }
  /* Echo's soles sit 93.4% down the transparent artboard. Anchor them to Kobe's shoes. */
  .welcome-avatar { position:absolute; left:var(--echo-x); top:var(--shoe-line); width:var(--echo-width); aspect-ratio:800/830; translate:-50% -93.4%; transform-origin:50% 93.4%; z-index:2; pointer-events:none; }
  .welcome-avatar img, .welcome-avatar canvas { position:absolute; inset:0; width:100%; height:100%; display:block; }
  [hidden] { display:none !important; }
  .title { position:absolute; left:24.5px; top:31px; width:87.5px; z-index:3; pointer-events:none; }

  /* shared glass */
  .glass { position:relative; isolation:isolate;
    background:linear-gradient(140deg, rgba(255,255,255,.72) 0%, rgba(255,255,255,.34) 42%, rgba(255,255,255,.46) 100%);
    -webkit-backdrop-filter:blur(18px) saturate(190%) brightness(1.04); backdrop-filter:blur(18px) saturate(190%) brightness(1.04);
    border:1.5px solid var(--glass-border);
    box-shadow:
      0 22px 40px -18px rgba(70,50,40,.38), 0 6px 14px -6px rgba(70,50,40,.16),
      inset 0 1.5px 0 #fff, inset 0 -1.5px 1px rgba(255,255,255,.55),
      inset 0 0 0 4px rgba(255,255,255,.22), inset 0 -10px 18px -10px rgba(120,130,150,.28), inset 0 10px 16px -10px rgba(255,255,255,.9); }
  .glass::before { content:""; position:absolute; inset:4px; border-radius:inherit; z-index:-1; pointer-events:none;
    border:1px solid rgba(255,255,255,.65); box-shadow:inset 0 0 10px rgba(255,255,255,.35), 0 0 6px rgba(130,140,160,.18); }
  .glass::after { content:""; position:absolute; inset:0; border-radius:inherit; z-index:-1; pointer-events:none;
    background:
      radial-gradient(120% 60% at 12% 0%, rgba(255,255,255,.75) 0, rgba(255,255,255,0) 55%),
      linear-gradient(112deg, rgba(255,255,255,0) 62%, rgba(255,255,255,.34) 78%, rgba(255,255,255,0) 90%); }

  /* call pill */
  .call { position:absolute; left:211px; top:111px; width:162px; height:54px; border-radius:27px; z-index:4; display:flex; align-items:center; gap:9px; padding:0 12px 0 11px; text-align:left; transition:transform .18s cubic-bezier(.3,1.4,.5,1); }
  .call:active { transform:scale(.96); }
  .call .ball { flex:none; width:33px; height:33px; border-radius:50%; display:grid; place-items:center;
    background:radial-gradient(circle at 32% 26%, #ffc46b 0, #ff8e0b 42%, #d65f06 100%);
    box-shadow:0 5px 9px -3px rgba(214,95,6,.65), inset 0 1.5px 1px rgba(255,255,255,.75), inset 0 -3px 5px rgba(120,50,0,.35); }
  .call .ball svg { width:17px; height:17px; }
  .call b { display:block; font-weight:900; font-size:19px; line-height:1.1; letter-spacing:.06em; color:var(--g900); white-space:nowrap; }
  .call span { display:flex; align-items:center; gap:4px; margin-top:4px; font-weight:500; font-size:9px; line-height:1; color:#4a3a2e; white-space:nowrap; }
  .call span i { width:6px; height:6px; border-radius:50%; background:#ff8e0b; box-shadow:0 0 0 0 rgba(255,142,11,.6); animation:pulse 2s infinite; }
  @keyframes pulse { 70% { box-shadow:0 0 0 5px rgba(255,142,11,0); } 100% { box-shadow:0 0 0 0 rgba(255,142,11,0); } }

  /* mascot bubble */
  .echo { position:absolute; left:296px; top:232px; height:27px; padding:0 11px; border-radius:14px; z-index:4; font-weight:700; font-size:11px; color:var(--g900); white-space:nowrap; transition:transform .18s cubic-bezier(.3,1.4,.5,1); }
  .echo:active { transform:scale(.94); }
  .mascot-hit { position:absolute; left:var(--echo-x); top:var(--shoe-line); width:calc(var(--echo-width) * .8); height:calc(var(--echo-width) * .9); translate:-50% -100%; z-index:3; border-radius:40%; }

  /* colour behind the card so the glass has something to refract */
  .glow { position:absolute; z-index:1; border-radius:50%; filter:blur(26px); pointer-events:none; }
  .glow.a { left:-10px; top:500px; width:180px; height:120px; background:rgba(255,160,60,.28); }
  .glow.b { left:250px; top:430px; width:170px; height:170px; background:rgba(240,150,140,.26); }
  .glow.c { left:170px; top:560px; width:200px; height:90px; background:rgba(255,200,120,.32); }

  /* booking card */
  .card { position:absolute; left:16px; top:370px; width:358px; border-radius:26px; padding:15px 18px 17px; z-index:5; }
  .head { display:flex; align-items:center; height:30px; }
  .head h1 { font-weight:700; font-size:20px; letter-spacing:-.01em; color:var(--g900); white-space:nowrap; }
  .head .bar { width:1px; height:16px; background:rgba(61,42,28,.55); margin:0 16px 0 17px; }
  .meet { display:flex; align-items:center; gap:7px; font:500 13.5px/1 "Google Sans","Product Sans",-apple-system,"Helvetica Neue",Arial,sans-serif; color:#6b6f73; letter-spacing:.01em; white-space:nowrap; }
  .meet svg { width:20.5px; height:auto; display:block; filter:drop-shadow(0 1.5px 1.5px rgba(0,0,0,.14)); }

  .card { font-family:"Roboto",-apple-system,"SF Pro Text","Helvetica Neue",Arial,sans-serif; }
  .row { display:flex; align-items:center; justify-content:space-between; margin-top:9px; padding-top:8px; border-top:1px solid rgba(80,60,50,.12); }
  .mbtn { display:flex; align-items:center; gap:5px; height:26px; font-weight:700; font-size:15px; letter-spacing:.005em; color:var(--g900); white-space:nowrap; }
  .mbtn svg { width:9px; height:9px; opacity:.7; transition:transform .3s cubic-bezier(.3,1.25,.5,1); transform:rotate(180deg); }
  .card.day .mbtn svg { transform:none; }
  .tools { display:flex; align-items:center; gap:7px; }
  .nav { display:flex; gap:3px; }
  .nav button { width:24px; height:24px; border-radius:50%; display:grid; place-items:center; color:var(--g800); transition:transform .18s cubic-bezier(.3,1.4,.5,1), background .2s; }
  .nav button:hover { background:rgba(255,255,255,.55); }
  .nav button:active { transform:scale(.86); }
  .nav button:disabled { color:rgba(61,42,28,.2); background:none; cursor:default; }
  .nav svg { width:9px; height:9px; }
  .seg { position:relative; display:flex; width:104px; height:24px; border-radius:12px; background:rgba(255,255,255,.42); box-shadow:inset 0 0 0 1px rgba(140,120,110,.24), inset 0 2px 3px rgba(100,80,70,.1); }
  .seg button { position:relative; z-index:1; flex:1; font-weight:500; font-size:11px; color:#9a8f88; transition:color .25s; }
  .seg button.on { color:var(--g900); font-weight:700; }
  .seg .thumb { position:absolute; top:0; left:0; width:52px; height:24px; border-radius:12px;
    background:linear-gradient(175deg,#ffe9cf,#ffd3a1); box-shadow:0 3px 6px -3px rgba(214,120,30,.5), inset 0 1px 0 rgba(255,255,255,.9);
    transition:transform .3s cubic-bezier(.3,1.25,.5,1); }
  .seg[data-v="60"] .thumb { transform:translateX(52px); }

  .wk { display:grid; grid-template-columns:repeat(7,1fr); margin-top:5px; height:18px; align-items:center; text-align:center; font-weight:500; font-size:10px; color:#a3978f; }
  .weeks { touch-action:pan-y; }
  .weeks.slide { animation:slide .26s cubic-bezier(.3,1.1,.5,1); }
  @keyframes slide { from { transform:translateX(var(--from)); } }
  .week { display:grid; grid-template-columns:repeat(7,1fr); height:30px; overflow:hidden; transition:height .34s cubic-bezier(.3,1.05,.5,1), opacity .24s; }
  .card.day .week:not(.cur) { height:0; opacity:0; }
  .week button { height:30px; display:grid; place-items:center; cursor:default; }
  .week button i { position:relative; font-style:normal; width:25px; height:25px; border-radius:50%; display:grid; place-items:center; font-weight:400; font-size:12.5px; color:#c4b8b0; font-variant-numeric:tabular-nums;
    transition:background .2s, color .2s, transform .18s cubic-bezier(.3,1.4,.5,1), box-shadow .2s; }
  .week button.open { cursor:pointer; }
  .week button.open i { font-weight:700; color:var(--g900); }
  .week button.open i::after { content:""; position:absolute; left:50%; bottom:1.500px; width:3px; height:3px; margin-left:-1.500px; border-radius:50%; background:#ff8e0b; transition:opacity .2s; }
  .week button.out i { opacity:.55; }
  .week button.today i { box-shadow:inset 0 0 0 1px rgba(61,42,28,.4); }
  .week button.open:hover i { background:rgba(255,255,255,.7); }
  .week button.open:active i { transform:scale(.86); }
  .week button.sel i { color:#fff; opacity:1; background:linear-gradient(165deg,#5e4530,#3d2a1c); box-shadow:0 5px 9px -4px rgba(61,42,28,.75), inset 0 1px 0 rgba(255,255,255,.35); }
  .week button.sel i::after { opacity:0; }

  .dayp { display:grid; grid-template-rows:0fr; transition:grid-template-rows .34s cubic-bezier(.3,1.05,.5,1); margin:0 -6px; }
  .card.day .dayp { grid-template-rows:1fr; }
  .dayp > div { overflow:hidden; min-height:0; padding:0 6px; }
  .label { display:flex; align-items:center; justify-content:space-between; margin-top:9px; padding-top:9px; border-top:1px solid rgba(80,60,50,.12); font-weight:700; font-size:13.5px; color:var(--g900); }
  .label > button { display:flex; align-items:center; gap:3px; height:20px; font-weight:500; font-size:10.5px; color:#8a7d74; }
  .label > button svg { width:8px; height:8px; opacity:.7; }
  .tzmenu { position:absolute; right:14px; top:10px; width:150px; padding:5px; border-radius:14px; z-index:9;
    background:rgba(255,255,255,.95); box-shadow:0 14px 28px -10px rgba(70,50,40,.45), 0 0 0 1px rgba(255,255,255,.9), inset 0 1px 0 #fff; animation:pop .16s both; transform-origin:bottom right; }
  .tzmenu button { display:flex; width:100%; align-items:center; justify-content:space-between; height:25px; padding:0 9px; border-radius:8px; font-weight:500; font-size:12px; color:var(--g900); }
  .tzmenu button em { font-style:normal; font-size:10px; color:#ab9f97; font-variant-numeric:tabular-nums; }
  .tzmenu button.on { background:var(--g100); font-weight:700; }
  @keyframes pop { from { transform:scale(.92); } }
  .slots { display:grid; grid-template-columns:repeat(3,1fr); gap:7px; margin-top:8px; padding-bottom:6px; }
  .slots button { height:33px; border-radius:10px; font-weight:700; font-size:13.5px; color:var(--g900); font-variant-numeric:tabular-nums;
    background:linear-gradient(175deg, rgba(255,236,214,.95), rgba(255,216,172,.9));
    box-shadow:0 3px 6px -4px rgba(214,120,30,.5), inset 0 1.500px 0 rgba(255,255,255,.95), inset 0 -2px 3px rgba(230,140,50,.2);
    transition:transform .18s cubic-bezier(.3,1.4,.5,1), background .2s, color .2s, box-shadow .2s; animation:rise .3s both; }
  .slots button:active { transform:scale(.95); }
  .slots button.on { color:#fff; background:linear-gradient(165deg,#5e4530,#3d2a1c); box-shadow:0 6px 10px -6px rgba(61,42,28,.8), inset 0 1px 0 rgba(255,255,255,.35); }
  .slots p { grid-column:1/-1; height:33px; display:grid; place-items:center; font-size:12px; font-weight:500; color:#8a7d74; }
  @keyframes rise { from { transform:translateY(6px); } }

  .confirm { display:grid; grid-template-rows:0fr; transition:grid-template-rows .32s cubic-bezier(.3,1.1,.5,1), margin .32s; }
  .confirm.show { grid-template-rows:1fr; margin-top:6px; }
  .confirm > div { overflow:hidden; min-height:0; }
  .cta { width:100%; height:38px; border-radius:12px; display:flex; align-items:center; justify-content:center; gap:8px; font-weight:700; font-size:13px; color:#fff;
    background:linear-gradient(170deg,#ffa233,#d9650a); box-shadow:inset 0 1.5px 0 rgba(255,255,255,.45), inset 0 -3px 6px rgba(120,50,0,.3);
    transition:transform .18s cubic-bezier(.3,1.4,.5,1); }
  .cta:active { transform:scale(.97); }
  .cta svg { width:17px; height:auto; background:#fff; border-radius:5px; padding:3px 2.5px; box-sizing:content-box; }
  .cta.done { background:linear-gradient(175deg,#ffe9cf,#ffd3a1); color:var(--g900); box-shadow:inset 0 1.5px 0 rgba(255,255,255,.95); }

  /* mascot speech bubble */
  .echo { left:118px; top:173px; translate:-50% 0; font:700 11.5px/1 "Roboto",-apple-system,sans-serif; transform-origin:50% 100%; animation:nudge 7s infinite; }
  .echo.say { animation:say .42s cubic-bezier(.3,1.6,.5,1); }
  @keyframes say { from { transform:scale(.6) translateY(8px); } }
  @keyframes nudge { 0%,90%,100% { rotate:0deg; } 93% { rotate:-5deg; } 96% { rotate:4deg; } }

  /* open / closed card */
  .card { top:auto; bottom:27px; padding:0; }
  .glow { opacity:0; transition:opacity .4s; }
  .phone.open .glow { opacity:1; }
  .glow.a { left:-10px; top:480px; } .glow.b { left:250px; top:420px; } .glow.c { left:170px; top:540px; }
  .opener { display:grid; grid-template-rows:1fr; width:100%; text-align:left; transition:grid-template-rows .36s cubic-bezier(.3,1.05,.5,1), opacity .22s; }
  .card.open .opener { grid-template-rows:0fr; opacity:0; pointer-events:none; }
  .opener > span { overflow:hidden; min-height:0; }
  .opener .in { height:56px; display:flex; align-items:center; gap:11px; padding:0 14px 0 16px; }
  .opener .ic svg { width:27px; height:auto; display:block; filter:drop-shadow(0 1.5px 1.5px rgba(0,0,0,.14)); }
  .opener b { display:block; font-weight:700; font-size:14px; line-height:1.15; color:var(--g900); letter-spacing:-.005em; }
  .opener small { display:block; margin-top:3px; font-weight:400; font-size:11px; line-height:1; color:#8a7d74; }
  .opener .go { margin-left:auto; width:26px; height:26px; border-radius:50%; display:grid; place-items:center; color:var(--g800); background:rgba(255,255,255,.55); box-shadow:inset 0 0 0 1px rgba(255,255,255,.9), 0 2px 4px -2px rgba(80,60,50,.25); }
  .opener .go svg { width:10px; height:10px; }
  .body { display:grid; grid-template-rows:0fr; opacity:0; transition:grid-template-rows .36s cubic-bezier(.3,1.05,.5,1), opacity .25s; }
  .card.open .body { grid-template-rows:1fr; opacity:1; }
  .body > div { overflow:hidden; min-height:0; }
  .body .pad { padding:12px 18px 15px; }
  .row { margin-top:0; padding-top:0; border-top:0; }
  .mbtn { font-size:13.5px; font-weight:500; height:24px; }
  .tools { gap:3px; }
  .wk { margin-top:4px; }
  .slots { margin-top:7px; padding-top:10px; border-top:1px solid rgba(80,60,50,.12); }
  .foot { display:flex; align-items:center; justify-content:space-between; margin-top:6px; }
  .foot > button { display:flex; align-items:center; gap:3px; height:20px; font-weight:500; font-size:10.5px; color:#8a7d74; }
  .foot > button svg { width:8px; height:8px; opacity:.7; }
  .tzmenu { top:auto; bottom:14px; }

  /* steps: calendar -> your details -> sent */
  .step { display:grid; grid-template-rows:0fr; opacity:0; pointer-events:none; margin:0 -6px; transition:grid-template-rows .36s cubic-bezier(.3,1.05,.5,1), opacity .25s; }
  .step > div { overflow:hidden; min-height:0; padding:0 6px; }
  .card[data-step="cal"] .step.cal, .card[data-step="form"] .step.form, .card[data-step="sent"] .step.sent { grid-template-rows:1fr; opacity:1; pointer-events:auto; }
  .fhead { display:flex; align-items:center; gap:8px; height:30px; margin-bottom:9px; }
  .fhead .sum { flex:1; min-width:0; }
  .fhead b { display:block; font-weight:700; font-size:13.5px; line-height:1.15; color:var(--g900); }
  .fhead small { display:block; margin-top:2px; font-size:10.5px; line-height:1; color:#8a7d74; }
  .field { display:block; width:100%; height:38px; padding:0 12px; margin-top:7px; border:0; outline:0; border-radius:11px; font-family:inherit; font-weight:400; font-size:16px; line-height:1.3; color:var(--ink); resize:none;
    background:rgba(255,255,255,.6); box-shadow:inset 0 0 0 1px rgba(140,120,110,.26), inset 0 2px 3px rgba(100,80,70,.08); transition:box-shadow .2s, background .2s; }
  textarea.field { height:60px; padding:8px 12px; }
  .field::placeholder { color:#b5a9a1; }
  .field:focus { background:rgba(255,255,255,.85); box-shadow:inset 0 0 0 1.5px var(--g700), 0 0 0 3px rgba(255,142,11,.18); }
  .field.bad { box-shadow:inset 0 0 0 1.5px #c5392f; }
  .err { margin:5px 2px 0; font-size:11px; color:#b3261e; }
  .done { display:flex; flex-direction:column; align-items:center; text-align:center; padding:6px 8px 12px; }
  .tick { width:34px; height:34px; border-radius:50%; display:grid; place-items:center; background:radial-gradient(circle at 32% 26%, #ffc46b 0, #ff8e0b 42%, #d65f06 100%); box-shadow:0 6px 10px -4px rgba(214,95,6,.6), inset 0 1.5px 1px rgba(255,255,255,.7); }
  .tick svg { width:15px; height:15px; }
  .done b { margin-top:9px; font-weight:700; font-size:16px; color:var(--g900); }
  .done p { margin-top:5px; font-size:12.5px; line-height:1.45; color:#6e6058; }
  .done p strong { font-weight:500; color:var(--g900); }
  .acts { display:flex; gap:8px; }
  .acts .cta { flex:1; }
  .acts .cta svg { background:none; padding:0; width:15px; height:15px; }
  .ghost { height:38px; padding:0 18px; border-radius:12px; font-weight:500; font-size:13px; color:var(--g900); background:rgba(255,255,255,.55); box-shadow:inset 0 0 0 1px rgba(255,255,255,.9), 0 2px 4px -2px rgba(80,60,50,.25); transition:transform .18s cubic-bezier(.3,1.4,.5,1); }
  .ghost:active { transform:scale(.96); }

  /* warm theme: dark text on the orange actions */
  .cta, .t-pick button[data-min] { color:#2b1d12; }
  .cta.done { color:var(--g900); }
  .acts .cta svg { fill:#2b1d12; }

  /* ---------- layout v9: names behind the figures, actions next to each one ---------- */
  /* Retain Kobe's photographed silhouette and shoes on the original 390×307 coordinate system. */
  /* Kobe's welcome clip: kobe-welcome.mp4, cropped from x20-3/outputs/选片/B-完整圆台原速挥手-9秒.mp4 with the whole round stage in frame.
     The last 0.75s is an eased optical-flow bridge from his closing pose back to the first frame, so the loop has no jump.
     Kobe stands 251px tall with his shoes on --shoe-line, so Echo stands on the same stage; the edges fade into the page. */
  .kobe-portrait { position:absolute; left:8px; top:170px; width:368px; height:332px; z-index:1; pointer-events:none; object-fit:cover;
    -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 6%,#000 94%,transparent 100%),linear-gradient(180deg,transparent 0,#000 6%,#000 95%,transparent 100%); -webkit-mask-composite:source-in;
    mask-image:linear-gradient(90deg,transparent 0,#000 6%,#000 94%,transparent 100%),linear-gradient(180deg,transparent 0,#000 6%,#000 95%,transparent 100%); mask-composite:intersect; }
  #playWelcome { position:absolute; left:50%; top:460px; translate:-50% 0; z-index:4; padding:5px 12px; border-radius:16px; background:#fff8f0; color:#4a3423; cursor:pointer; }
  .phone.incall #playWelcome { display:none; }
  /* Opening hold: Kobe's clip waits on its poster (its own frame 78, with the round stage) and Echo on his poster for at least 3s.
     Then the clip starts moving (booking.js) and, once the Rive splash (a black frame) is over, Echo's canvas fades in (data-echo, welcome.js). */
  .world #mascotRive { transition:opacity 1.2s cubic-bezier(.45,0,.25,1); }
  /* The clip's poster and Echo's ease in on first paint instead of popping. */
  .kobe-portrait, #mascotPoster { animation:introIn .7s cubic-bezier(.2,0,.2,1) backwards; }
  @keyframes introIn { from { opacity:0; } to { opacity:1; } }
  /* A call can finish before the opening fade. Its result uses the parked video frame or its poster. */
  .phone:has(.convo.open[data-state="bye"]) .kobe-portrait { opacity:1; }
  .world:not([data-echo="live"]) #mascotRive { opacity:0; }
  /* Contact shadows on the round stage, under Kobe's shoes and Echo's feet. They sit above the clip and below Echo,
     and multiply so they only darken the stage: a tight dark core where the feet touch plus a wider soft falloff. */
  .foot-shadow { position:absolute; top:var(--shoe-line); translate:-50% -50%; z-index:1; pointer-events:none; border-radius:50%; mix-blend-mode:multiply;
    background:radial-gradient(closest-side, rgba(82,58,42,.55), rgba(82,58,42,0) 60%), radial-gradient(closest-side, rgba(82,58,42,.28), rgba(82,58,42,.1) 58%, rgba(82,58,42,0)); }
  .kobe-shadow { left:199px; width:92px; height:15px; margin-top:1px; }
  /* Echo's shadow follows his size. Each foot gets its own dark contact patch, centred on the sole so it touches the foot,
     over one soft patch for the body. His feet are 10.2% of his width either side of centre. */
  .echo-shadow { left:var(--echo-x); width:calc(var(--echo-width) * .6); height:calc(var(--echo-width) * .1);
    background:radial-gradient(ellipse 14% 40% at 33% 50%, rgba(70,46,30,.62), rgba(70,46,30,.3) 55%, rgba(70,46,30,0)),
      radial-gradient(ellipse 14% 40% at 67% 50%, rgba(70,46,30,.62), rgba(70,46,30,.3) 55%, rgba(70,46,30,0)),
      radial-gradient(closest-side, rgba(82,58,42,.24), rgba(82,58,42,.1) 58%, rgba(82,58,42,0)); }
  .word { position:absolute; font-family:"Caveat Brush","Marker Felt",cursive; line-height:1; pointer-events:none; white-space:nowrap; }
  .world { --echo-name-x:72px; --echo-name-y:256px; --echo-name-size:58px; }
  .word.echo-w { left:var(--echo-name-x); top:var(--echo-name-y); translate:-50% 0; rotate:-5deg; font-size:var(--echo-name-size); color:#ff8e0b; z-index:2; }
  .word.kobe-w { left:292px; top:238px; rotate:-4deg; font-size:44px; color:#4a3423; z-index:3; }
  .word.hint { left:16px; top:472px; rotate:-12deg; font-size:17px; color:#d9690a; z-index:3; }
  .echo { left:104px; top:252px; opacity:0; pointer-events:none; animation:none; transition:opacity .25s; }
  .echo.show { opacity:1; }
  .callbtn { position:absolute; left:50%; top:503px; translate:-50% 0; height:36px; padding:0 16px 0 5px; border-radius:18px; z-index:4; display:flex; align-items:center; gap:8px; white-space:nowrap;
    font:700 13px/1 "Roboto",-apple-system,sans-serif; color:var(--g900); transition:transform .18s cubic-bezier(.3,1.4,.5,1); }
  .callbtn:active { transform:scale(.94); }
  .callbtn .ball { position:relative; width:26px; height:26px; border-radius:50%; display:grid; place-items:center; color:#fff;
    background:radial-gradient(circle at 32% 26%, #ffc46b 0, #ff8e0b 45%, #d65f06 100%); box-shadow:0 3px 6px -2px rgba(214,95,6,.6), inset 0 1px 1px rgba(255,255,255,.7); }
  .callbtn .ball::after { content:""; position:absolute; inset:0; border-radius:50%; box-shadow:0 0 0 0 rgba(255,142,11,.5); animation:ring 2.4s infinite; }
  @keyframes ring { 70%,100% { box-shadow:0 0 0 7px rgba(255,142,11,0); } }
  .callbtn svg { width:13px; height:13px; animation:wig 4s infinite; transform-origin:50% 60%; }
  .sched { position:absolute; left:50%; top:551px; translate:-50% 0; height:24px; padding:0 6px; z-index:4; display:flex; align-items:center; gap:5px; white-space:nowrap;
    font:500 11px/1 "Roboto",-apple-system,sans-serif; color:#6e6058; transition:transform .18s cubic-bezier(.3,1.4,.5,1), color .2s; }
  .sched u { text-decoration:underline; text-decoration-color:rgba(110,96,88,.4); text-underline-offset:3px; }
  .sched:hover { color:var(--g900); }
  .sched:active { transform:scale(.95); }
  .sched svg { width:13px; height:auto; display:block; margin-left:1px; }
  .aside { left:50%; top:574px; translate:-50% 0; rotate:-2deg; font-size:16px; color:#8a7d74; z-index:3; }
  .arrow { position:absolute; left:0; top:0; width:390px; height:720px; z-index:3; pointer-events:none; fill:none; stroke:#ff8e0b; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }
  .arrow path { stroke-dasharray:1; stroke-dashoffset:1; animation:draw .5s .35s cubic-bezier(.5,0,.3,1) forwards; }
  .arrow path + path { animation-duration:.2s; animation-delay:.85s; }
  @keyframes draw { to { stroke-dashoffset:0; } }
  @keyframes wig { 0%,86%,100% { transform:none; } 89% { transform:rotate(-16deg); } 92% { transform:rotate(14deg); } 95% { transform:rotate(-10deg); } 98% { transform:rotate(6deg); } }

  /* bottom sheets: calendar and conversation */
  .card, .convo { transition:opacity .25s, transform .38s cubic-bezier(.3,1.15,.5,1); }
  .card:not(.open), .convo:not(.open) { opacity:0; transform:translateY(26px) scale(.97); pointer-events:none; }
  .convo { position:absolute; left:16px; bottom:27px; width:358px; border-radius:26px; z-index:6; padding:13px 18px 15px; font-family:"Roboto",-apple-system,"Helvetica Neue",sans-serif; }
  .c-head { display:flex; align-items:center; gap:10px; }
  .c-head img { width:36px; height:36px; border-radius:50%; object-fit:cover; box-shadow:0 0 0 2px #fff, 0 4px 8px -3px rgba(120,50,0,.45); }
  .c-head .tx { flex:1; }
  .c-head b { display:block; font-weight:700; font-size:14.5px; line-height:1.1; color:var(--g900); }
  .c-head small { display:flex; align-items:center; gap:4px; margin-top:3px; font-size:10.5px; line-height:1; color:#8a7d74; }
  .c-head small i { width:6px; height:6px; border-radius:50%; background:#58b947; }
  .convo > .c-pick, .convo > .c-live, .convo > .c-bye { display:none; }
  .convo[data-state="pick"] > .c-pick, .convo[data-state="live"] > .c-live, .convo[data-state="bye"] > .c-bye { display:block; animation:rise .3s both; }
  .convo p { margin:11px 0 10px; font-size:12.5px; line-height:1.45; color:#6e6058; }
  .wave { display:flex; align-items:center; justify-content:center; gap:3px; height:50px; margin:10px 0 8px; }
  .wave i { width:3px; height:100%; border-radius:2px; background:var(--voice-wave,#c4b8b0); transform:scaleY(var(--level,.09)); transition:transform 80ms linear; }
  .c-row { display:flex; align-items:center; justify-content:space-between; }
  .c-row b { font-weight:700; font-size:19px; color:var(--g900); font-variant-numeric:tabular-nums; }
  .c-row .ghost { width:76px; padding:0; }
  .c-row .end { width:76px; height:38px; border-radius:12px; display:grid; place-items:center; background:linear-gradient(170deg,#ff7b6b,#c5392f); box-shadow:inset 0 1.5px 0 rgba(255,255,255,.45), 0 6px 10px -6px rgba(179,38,30,.7); transition:transform .18s cubic-bezier(.3,1.4,.5,1); }
  .c-row .end:active { transform:scale(.94); }
  .c-row .end svg { width:17px; height:17px; transform:rotate(135deg); }

  /* thank-you step */
  .done { padding:10px 8px 4px; }
  .done .ty { margin:0; font:400 34px/1 "Caveat Brush","Marker Felt",cursive; color:#ff8e0b; rotate:-3deg; }
  .done p { margin-top:8px; font-size:13px; }
  .done .sig { margin-top:6px; font:400 20px/1 "Caveat Brush","Marker Felt",cursive; color:var(--g900); rotate:-4deg; }
  .done .sig::before { content:"— "; }
  .acts2 { display:flex; flex-direction:column; align-items:center; gap:4px; margin-top:12px; }
  .acts2 .ghost { height:34px; padding:0 30px; }
  .link { height:24px; padding:0 6px; font-weight:500; font-size:11px; color:#8a7d74; text-decoration:underline; text-decoration-color:rgba(110,96,88,.4); text-underline-offset:3px; }

  .meet.gm { gap:5px; margin-right:6px; font-size:12px; font-weight:500; color:#6b6f73; }
  .meet.gm svg { width:17px; }

  /* ---------- v14: calmer sheets — flat fills, low saturation, no extra feedback ---------- */
  .card, .convo { font-family:"DM Sans","Roboto",-apple-system,"Helvetica Neue",sans-serif; }
  .phone.open .glow { opacity:.3; }
  .mbtn { font-weight:600; font-size:14px; letter-spacing:-.01em; }
  .wk { font-size:10px; font-weight:500; color:#b3a79f; letter-spacing:.04em; }
  .week { height:32px; }
  .week button { height:32px; }
  .week button i { width:28px; height:28px; font-weight:400; font-size:14px; letter-spacing:-.01em; color:#cfc5be; box-shadow:none; transition:background .15s, color .15s; }
  .week button.open i { font-weight:600; color:var(--g900); }
  .week button.open i::after { display:none; }
  .week button.out i { opacity:.6; }
  .week button.open:hover i { background:none; }
  .week button.open:active i { transform:none; }
  .week button.today i { box-shadow:inset 0 0 0 1px rgba(61,42,28,.25); }
  .week button.sel i, .week button.sel:hover i { background:var(--g900); color:#fff; opacity:1; box-shadow:none; }
  .slots { gap:6px; }
  .slots button { height:34px; border-radius:10px; font-weight:600; font-size:13.5px; letter-spacing:-.01em; background:rgba(255,255,255,.6); box-shadow:inset 0 0 0 1px rgba(61,42,28,.1); animation:none; transition:background .15s, color .15s; }
  .slots button:active { transform:none; }
  .slots button.on { background:var(--g900); color:#fff; box-shadow:none; }
  .seg { background:rgba(61,42,28,.06); box-shadow:none; }
  .seg .thumb { background:#fff; box-shadow:0 1px 2px rgba(61,42,28,.14); }
  .seg button { font-weight:500; }
  .seg button.on { font-weight:600; }
  .cta, .cta.done { height:38px; border-radius:11px; font-weight:600; font-size:13.5px; color:#fff; background:var(--g900); box-shadow:none; }
  .cta:active { transform:scale(.98); }
  .acts .cta svg { fill:#fff; }
  .ghost { box-shadow:inset 0 0 0 1px rgba(61,42,28,.12); background:rgba(255,255,255,.6); }
  .nav button:hover { background:none; }
  .field:focus { box-shadow:inset 0 0 0 1.5px var(--g900), 0 0 0 3px rgba(61,42,28,.08); }
  .c-row .end { background:#c8554a; box-shadow:none; }
  .c-head img { box-shadow:0 0 0 2px #fff; }

  /* ---------- site header: echo. wordmark + a small quiet menu button ---------- */
  .hdr { position:absolute; inset:0 0 auto 0; height:60px; padding:0 14px 0 18px; z-index:8; display:flex; align-items:center; justify-content:space-between; }
  .brand { font:600 24px/1 "Poppins",sans-serif; letter-spacing:-.035em; color:#1a1a1a; text-decoration:none; }
  .brand span { color:#4169e1; }
  .burger { width:34px; height:34px; border-radius:50%; display:grid; place-items:center; transition:background .2s; }
  .burger:active, .burger[aria-expanded="true"] { background:rgba(17,17,17,.07); }
  .burger span { position:relative; width:16px; height:1.5px; }
  .burger span::before, .burger span::after { content:""; position:absolute; left:0; top:0; width:16px; height:1.5px; border-radius:1px; background:#1a1a1a; transition:transform .25s; }
  .burger span::before { transform:translateY(-3px); } .burger span::after { transform:translateY(3px); }
  .burger[aria-expanded="true"] span::before { transform:rotate(45deg); } .burger[aria-expanded="true"] span::after { transform:rotate(-45deg); }
  .menu { position:absolute; right:14px; top:56px; width:188px; z-index:8; border-radius:16px; padding:6px; display:flex; flex-direction:column; font-family:"Poppins",sans-serif;
    background:rgba(255,255,255,.93); -webkit-backdrop-filter:blur(20px); backdrop-filter:blur(20px);
    box-shadow:0 18px 36px -14px rgba(70,50,40,.4), 0 0 0 1px rgba(255,255,255,.9); animation:pop .18s both; transform-origin:top right; }
  .menu a { height:36px; padding:0 12px; display:flex; align-items:center; border-radius:9px; font-weight:500; font-size:13.5px; color:#1a1a1a; text-decoration:none; }
  .menu a:active { background:rgba(17,17,17,.06); }
  .mrow2 { display:flex; gap:6px; margin-top:4px; padding-top:6px; border-top:1px solid rgba(17,17,17,.08); }
  .mrow2 a { flex:1; height:32px; padding:0; justify-content:center; font-weight:600; font-size:12.5px; }
  .mrow2 .login { box-shadow:inset 0 0 0 1px rgba(17,17,17,.25); }
  .mrow2 .dl { background:#1a1a1a; color:#fff; }

  /* ---------- call mode: camera moves in on Echo, Kobe and the rest fade away ---------- */
  .world { position:absolute; inset:0; z-index:1; transform-origin:0 0; transition:transform 1.1s cubic-bezier(.65,0,.2,1); }
  .phone.incall .world { transform:translate(-47px,-500px) scale(2); }
  .phone.incall .echo-w { opacity:0; }
  .phone.incall .kobe-portrait { animation:none; }
  @media (max-width:799px) {
    /* Keep focusing a call control from scrolling the zoomed stage inside the phone. */
    .phone:has(.convo.open) { overflow:clip; }
  }
  .kobe-portrait, .kobe-shadow, .kobe-w, .sched, .aside, .arrow, .callbtn { transition:opacity .6s; }
  .phone.incall .kobe-portrait, .phone.incall .kobe-shadow, .phone.incall .kobe-w, .phone.incall .sched, .phone.incall .aside, .phone.incall .arrow, .phone.incall .callbtn, .phone.incall .echo { opacity:0; pointer-events:none; }
  .spot { position:absolute; inset:0; z-index:0; opacity:0; transition:opacity .9s; pointer-events:none;
    background:radial-gradient(circle at 50% 44%, rgba(255,255,255,.7) 0, rgba(255,255,255,0) 58%); }
  .phone.incall .spot { opacity:1; }
  .callbtn .ball::before { content:""; position:absolute; right:-1px; bottom:-1px; width:8px; height:8px; border-radius:50%; background:#58b947; box-shadow:0 0 0 1.5px #fff; z-index:1; }

  /* call sheet */
  .c-top { display:flex; align-items:center; justify-content:space-between; }
  .c-top b { display:block; font-weight:600; font-size:15px; line-height:1.1; color:var(--g900); }
  .c-top small { display:block; margin-top:3px; font-size:11px; line-height:1; color:#8a7d74; }
  .c-status { display:flex; align-items:center; gap:5px; font-weight:500; font-size:12px; color:#6e6058; font-variant-numeric:tabular-nums; }
  .c-status i { width:7px; height:7px; border-radius:50%; background:#58b947; }
  .convo[data-state="ringing"] .c-status i { animation:blink 1s infinite; }
  .convo[data-state="bye"] .c-status i { background:#c4b8b0; }
  @keyframes blink { 50% { opacity:.25; } }
  .convo > .c-call, .convo > .c-bye { display:none; }
  .convo[data-state="ringing"] > .c-call, .convo[data-state="live"] > .c-call, .convo[data-state="bye"] > .c-bye { display:block; animation:none; }
  .convo .cap { margin:10px 0 0; min-height:38px; font-size:13px; line-height:1.45; color:var(--g900); }
  .convo[data-state="ringing"] .cap::before { content:"Ringing Echo…"; color:#8a7d74; }
  .wave { height:30px; margin:8px 0 10px; }
  .convo[data-state="ringing"] .wave i { animation:none; transform:scaleY(.1); background:#c4b8b0; }
  .c-row { gap:8px; }
  .c-row .ghost, .c-row .end, .c-row .cta { flex:1; width:auto; height:38px; }
  .c-row .end { display:flex; align-items:center; justify-content:center; gap:7px; border-radius:11px; font-weight:600; font-size:13.5px; color:#fff; }
  .c-row .end svg { width:14px; height:14px; }
  .yr { position:absolute; left:20px; top:-22px; font-family:"DM Sans","Roboto",sans-serif; font-weight:700; font-size:26px; line-height:1; letter-spacing:-.01em; color:#dea173; pointer-events:none; font-variant-numeric:tabular-nums;
        text-shadow:0 1px 0 rgba(255,255,255,.8), 0 3px 6px rgba(120,85,65,.2); transition:opacity .25s; }
  .card:not([data-step="cal"]) .yr { opacity:0; }
  .yr.flip { animation:pop .3s; }
  /* scene sits lower; it lifts back up when the calendar opens */
  .world { transform:translateY(46px); }
  .phone:has(.card.open) .world { transform:none; transition-duration:.5s; }
  .sched { top:571px; height:30px; gap:7px; font-size:15px; font-weight:500; color:#5a4a40; }
  .sched svg { width:18px; }
  .sched u { text-decoration-color:rgba(61,42,28,.45); }
  .aside { top:602px; left:252px; translate:-50% 0; display:flex; align-items:center; gap:4px; white-space:nowrap; }
  .aside svg { width:13px; height:13px; fill:none; stroke:#58b947; stroke-width:2.6; stroke-linecap:round; stroke-linejoin:round; }
  /* slide to answer */
  .callbtn { top:499px; width:214px; height:44px; padding:0; border-radius:22px; gap:0; justify-content:center; touch-action:none; -webkit-user-select:none; user-select:none; cursor:grab; }
  .callbtn:active { transform:none; }
  .callbtn .ball { position:absolute; left:4px; top:4px; width:36px; height:36px; transform:translateX(var(--x,0px)); transition:transform .4s cubic-bezier(.3,1.3,.5,1); }
  .callbtn.drag { cursor:grabbing; }
  .callbtn.drag .ball { transition:none; }
  .callbtn svg { width:17px; height:17px; }
  .callbtn .lbl { padding-left:34px; font-family:"DM Sans","Roboto",sans-serif; font-weight:500; font-size:14px; letter-spacing:.005em; opacity:calc(1 - var(--p,0) * 1.8);
                  background:linear-gradient(90deg,#9a8b80 38%,#3d2a1c 50%,#9a8b80 62%) 100% 0 / 280% 100%; -webkit-background-clip:text; background-clip:text; color:transparent; animation:shine 2.8s linear infinite; }
  @keyframes shine { to { background-position:0 0; } }
  .convo > .c-ask { display:none; }
  .convo[data-state="ask"] > .c-ask { display:block; }
  .c-ask .cap { min-height:0; margin-bottom:12px; color:#6e6058; }
  .c-ask .c-row .ghost { flex:none; width:92px; }
  .convo[data-state="ask"] .c-status i { background:#ff8e0b; }
  /* iPhone-style slider */
  .callbtn { top:497px; width:232px; height:50px; border-radius:25px; background:rgba(96,74,62,.17); border:0; box-shadow:inset 0 1px 2px rgba(61,42,28,.10), 0 1px 0 rgba(255,255,255,.55);
             -webkit-backdrop-filter:blur(14px) saturate(140%); backdrop-filter:blur(14px) saturate(140%); }
  .callbtn::before, .callbtn::after { display:none; }
  .callbtn .ball { left:4px; top:4px; width:42px; height:42px; background:#fff; color:#34c759; box-shadow:0 2px 6px rgba(61,42,28,.22), 0 0 0 .5px rgba(61,42,28,.06); }
  .callbtn .ball::before { display:none; }
  .callbtn .ball::after { box-shadow:0 0 0 0 rgba(255,255,255,.75); animation-name:ringw; }
  @keyframes ringw { 70%,100% { box-shadow:0 0 0 8px rgba(255,255,255,0); } }
  .callbtn svg { width:21px; height:21px; }
  .callbtn .lbl { padding-left:40px; font-family:-apple-system,"SF Pro Text","DM Sans","Roboto",sans-serif; font-weight:400; font-size:16px; letter-spacing:-.01em;
                  background-image:linear-gradient(90deg,rgba(61,42,28,.5) 38%,#fff 50%,rgba(61,42,28,.5) 62%); }
  /* ---------- topics: one stream that rises out of the slider, pauses above it, drifts up past Echo and fades ---------- */
  /* --beat is the one clock: the slider's shine, its rim light and the stream all run on it.
     'leave' and 'arrive' draw nothing; booking.js listens for their ticks. leave is 70% of the way through the shine, arrive is its end. */
  .phone { --beat:3.6s; }
  /* --topic-handoff: how far into one topic's rise the one before it sets off, so they move in relay, not together. */
  .world { --topic-launch-y:497px; --topic-pass-x:29px; --topic-rise:1.8s; --topic-handoff:calc(var(--topic-rise) * .7); }
  .stream { position:absolute; inset:0; z-index:4; pointer-events:none; transition:opacity .4s;
            animation:fadein .8s .9s both, leave var(--beat) calc(var(--beat) * -.3) linear infinite, arrive var(--beat) linear infinite; }
  @keyframes fadein { from { opacity:0; } }
  @keyframes leave { to { outline-offset:0; } }
  @keyframes arrive { to { outline-offset:0; } }
  /* waiting inside the slider, centred on it: --y is the top of the topic, --s its size. It goes back there at once, with no transition. */
  .topic { --y:530px; --s:.7; position:absolute; left:0; top:0; display:flex; align-items:center; gap:8px; height:24px; padding:0 5px 0 0; border:0; border-radius:999px; white-space:nowrap; cursor:pointer;
           font:500 12px/1 "DM Sans","Roboto",sans-serif; letter-spacing:-.005em; color:#5a4a40; background:rgba(244,232,226,0); opacity:0;
           translate:calc(195px - 50%) var(--y); transform:scale(calc(var(--s) * var(--k, 1))); }
  .topic[data-s] { transition:translate 2.6s cubic-bezier(.45,.05,.3,1), transform 2.6s cubic-bezier(.45,.05,.3,1), opacity 1.4s ease, background-color 1.2s ease, box-shadow 1.2s ease, gap 1.2s ease, padding 1.2s ease; }
  /* 0: the line just above the slider */
  .topic[data-s="0"] { --y:var(--topic-launch-y); --s:1; opacity:1; pointer-events:auto; transition-duration:.7s; animation:topicLit calc(var(--beat) * .7) ease-out both; }
  /* it comes out lit by the slider's light, then slowly dims while it waits */
  @keyframes topicLit { 0% { opacity:0; filter:brightness(1.3) drop-shadow(0 0 2px #fff) drop-shadow(0 0 8px #fff); } 14% { opacity:1; filter:brightness(1.3) drop-shadow(0 0 2px #fff) drop-shadow(0 0 8px #fff); }
                        100% { opacity:.72; filter:brightness(1) drop-shadow(0 0 0 rgba(255,255,255,0)) drop-shadow(0 0 0 rgba(255,255,255,0)); } }
  .topic[data-s="1"], .topic[data-s="2"] { gap:5px; padding:0 5px 0 8px; background:rgba(244,232,226,.8); box-shadow:inset 0 0 0 1px rgba(255,255,255,.45), 0 6px 14px -8px rgba(90,60,45,.32); }
  /* Center the pill under the name. On phones, keep the left edge of long pills on screen. */
  .topic[data-s="1"] { --y:calc(var(--echo-name-y) + var(--echo-name-size) + var(--topic-gap, 7px)); --s:.88; opacity:.86; pointer-events:auto;
    --dock-x:max(calc(var(--echo-name-x) - 50%), calc(6px - (1 - var(--s)) * 50%));
    translate:var(--dock-x) var(--y); transition-duration:0s, var(--topic-rise), .3s, 1.2s, 1.2s, 1.2s, 1.2s; }
  .topic[data-rising] { offset-anchor:center; offset-rotate:0deg; animation:topicArc var(--topic-rise) cubic-bezier(.38,0,.42,1); }
  .topic[data-rising] :is(.flab,.fwhen) { transition-duration:.35s; }
  @keyframes topicArc {
    from, to { offset-path:var(--topic-arc); translate:none; }
    from { offset-distance:0%; }
    to { offset-distance:100%; }
  }
  @media (max-width:799px) {
    /* The mobile gutter has room for a short pill. Open the text again above Echo. */
    .topic[data-rising] .ftxt { animation:topicFold var(--topic-rise) ease-in-out; }
    @keyframes topicFold { 0%, 100% { max-width:var(--topic-text-width); } 34%, 68% { max-width:22px; } }
  }
  /* Fly from under the name to the paired proof. It waits under the name until the topic rising from the slider is
     slowing into place (--topic-handoff), then sets off and fades on the way: one topic moves at a time. */
  .topic[data-s="2"] { --flight:calc(var(--beat) * .3); --s:.5; opacity:0; pointer-events:none;
    translate:calc(var(--proof-x) - 50%) calc(var(--proof-y) - 50%);
    transition:translate var(--flight) cubic-bezier(.36,.2,.75,.8) var(--topic-handoff), transform var(--flight) ease-in var(--topic-handoff),
               opacity calc(var(--flight) * .6) ease-out var(--topic-handoff); }
  .topic:active { filter:brightness(.97); }
  .topic .ftxt { flex:none; max-width:250px; }
  .topic img { height:1.25em; vertical-align:-.25em; }
  /* as a pill only the dot of the label and the text are left */
  .topic .flab, .topic .fwhen { overflow:hidden; transition:max-width 1.2s ease, padding 1.2s ease, opacity .8s ease, color .6s ease, background-color .8s ease, box-shadow .8s ease; }
  .topic .flab { max-width:120px; }
  .topic .fwhen { max-width:60px; }
  .topic:not([data-s="0"]) .flab { max-width:5px; padding:0; color:transparent; background-color:transparent; box-shadow:none; }
  .topic:not([data-s="0"]) .fwhen { max-width:0; opacity:0; }
  .phone.incall .stream, .phone:has(.card.open) .stream, .phone:has(.convo.open) .stream { opacity:0; }
  .phone.incall .topic, .phone:has(.card.open) .topic, .phone:has(.convo.open) .topic { pointer-events:none; }
  /* Echo's speech bubble takes the place of the pills around it */
  .world:has(.echo.show) .topic:not([data-s="0"]) { opacity:0; pointer-events:none; }
  /* ---------- the pitch: Echo's headline on the wall above the figures, with its proofs in pale lines under it. They light up one at a time as the topics come up. The topic stream ends here. ---------- */
  .pitch { position:absolute; inset:0; z-index:1; pointer-events:none; text-align:center; color:#4a3423; transition:opacity .4s; }
  .pitch h1 { position:absolute; left:0; right:0; margin:0; font:400 33px/1 "Caveat Brush","Marker Felt",cursive; white-space:nowrap; animation:fadein .8s .3s both; }
  .pitch h1 { top:36px; font:700 25px/1 "DM Sans","Roboto",sans-serif; letter-spacing:-.03em; }
  .proofs { position:absolute; left:36px; right:36px; top:74px; font:500 11px/1.6 "DM Sans","Roboto",sans-serif; letter-spacing:-.005em; color:#beb1a9; animation:fadein .8s 1s both; }
  .proofs > * { display:inline-block; margin:0 5px; color:inherit; text-decoration:none; transition:color 1.2s ease; }
  .proofs a { pointer-events:auto; }
  .proofs img { height:1.2em; vertical-align:-.22em; opacity:.4; filter:grayscale(1); transition:opacity 1.2s ease, filter 1.2s ease; }
  .proofs .lit img { opacity:1; filter:none; transition-duration:.4s; transition-delay:var(--topic-handoff); }
  /* the memory itself: a dot that keeps jumping from one icon to the other and back */
  .hop { display:inline-block; position:relative; width:16px; height:1em; vertical-align:-.15em; }
  .hop::before { content:""; position:absolute; left:1px; bottom:.2em; width:4px; height:4px; border-radius:50%; background:currentColor;
                 animation:hopAcross .8s ease-in-out infinite alternate, hopUp .4s ease-out infinite alternate; }
  @keyframes hopAcross { to { translate:10px 0; } }
  @keyframes hopUp { to { transform:translateY(-5px); } }
  /* Lights as its topic lands: the topic leaves --topic-handoff after the tick, the proof is marked one flight after the tick. */
  .proofs > .lit { color:#4a3423; transition-duration:.4s; transition-delay:var(--topic-handoff); }
  .phone.incall .pitch, .phone:has(.card.open) .pitch, .phone:has(.convo.open) .pitch { opacity:0; }
  .phone.incall .proofs a, .phone:has(.card.open) .proofs a, .phone:has(.convo.open) .proofs a { pointer-events:none; }
  /* ---------- the slider's light: it crosses the label, leaves at the right end, runs up the rim and goes out at the top, where the next topic appears ---------- */
  @property --rim { syntax:"<angle>"; inherits:false; initial-value:100deg; }
  .callbtn .lbl { animation-duration:var(--beat); }
  .callbtn::after { display:block; z-index:1; padding:2px; box-shadow:none; opacity:0; filter:drop-shadow(0 0 2px #fff) drop-shadow(0 0 5px rgba(255,255,255,.85));
                    background:conic-gradient(from calc(var(--rim) - 18deg), transparent 0, #fff 18deg, transparent 36deg);
                    -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite:xor; mask-composite:exclude;
                    animation:rim var(--beat) linear infinite; }
  /* the label's light reaches the right end of the slider at about 80% of the way through */
  @keyframes rim { 0%, 80% { --rim:100deg; opacity:0; } 84%, 96% { opacity:1; } 100% { --rim:0deg; opacity:0; } }
  .callbtn.drag::after { visibility:hidden; }
  .phone .world[data-welcome-paused] *, .phone .world[data-welcome-paused] *::before,
  .phone .world[data-welcome-paused] *::after { animation-play-state:paused; }
  /* make room for the news line: the slider and the links under it move down. The hand-drawn arrow swings out to the left of the line and comes in at the slider's ball. */
  .callbtn { top:524px; }
  .sched { top:598px; }
  .aside { top:629px; }
  .flab { flex:none; display:flex; align-items:center; gap:5px; padding:4.5px 8px 4px 7px; border-radius:9px; font-weight:700; font-size:8.5px; letter-spacing:.08em; text-transform:uppercase; color:#4a3423;
          background:rgba(255,252,249,.8); box-shadow:inset 0 0 0 1px rgba(255,255,255,.9), 0 1px 0 rgba(120,85,65,.16), 0 3px 5px -3px rgba(120,85,65,.3); }
  .flab::before { content:""; flex:none; width:5px; height:5px; border-radius:50%; background:var(--g500); }
  .topic[data-kind="customer"] .flab::before { background:#58b947; }
  .topic[data-kind="kobe"] .flab::before { background:#4a3423; }
  .topic[data-kind="echo"] .flab::before { background:#ffc933; }
  .ftxt { flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .ftxt b { font-weight:700; color:var(--g900); }
  .fwhen { flex:none; font-size:10px; font-weight:500; color:#ab9c92; }
  .c-bye .cap { min-height:0; margin-bottom:12px; }
  .c-status { font-weight:600; font-size:14px; color:var(--g900); gap:7px; }
  .c-time { font-weight:500; font-size:12px; line-height:1; color:#8a7d74; font-variant-numeric:tabular-nums; padding:4px 0; border-radius:10px; transition:color .3s, background .3s, padding .3s; }
  .convo.low .c-time { padding:4px 8px; color:#b5483c; background:rgba(201,86,74,.14); font-weight:600; animation:blink 1s ease-in-out 2; }
  .wave { height:36px; margin:14px 0 6px; }
  .convo[data-voice="listening"] { --voice-ink:#105e58; --voice-tint:#d6eee6; --voice-wave:#187e72; --preview-peak:.42; }
  .convo[data-voice="speaking"] { --voice-ink:#8a380e; --voice-tint:#ffe3c8; --voice-wave:#bb5316; --preview-peak:1; }
  .convo[data-state="live"] .c-status { padding:5px 10px; border-radius:20px; color:var(--voice-ink); background:var(--voice-tint); font-size:15px; }
  .convo[data-state="live"] .c-status i { background:currentColor; }
  /* The offline preview illustrates the two turns. Live bars show only SDK samples. */
  .wave[data-preview] i { animation-name:previewWave; animation-timing-function:ease-in-out; animation-iteration-count:infinite; }
  @keyframes previewWave { 50% { transform:scaleY(var(--preview-peak,.42)); } }
  .convo.muted[data-voice="listening"] .wave i { animation:none; transform:scaleY(.09); }
  @media (prefers-reduced-motion:reduce) {
    .wave i { transition:none; }
    .wave[data-preview] i { animation:none; }
    .wave[data-preview] i:nth-child(3n+1) { transform:scaleY(var(--preview-peak)); }
  }
  .c-bye .c-row .ghost { flex:none; width:76px; }
  .c-bye .c-row .cta { display:flex; align-items:center; justify-content:center; gap:7px; }
  .c-bye .c-row .cta svg { width:17px; height:17px; flex:none; }

  .c-share { display:flex; align-items:center; justify-content:space-between; margin-top:12px; padding-top:10px; border-top:1px solid rgba(61,42,28,.08); font-size:12px; color:#8a7d74; }
  .c-share button { padding:5px 2px 5px 10px; border:0; background:none; font:inherit; font-weight:600; color:var(--g900); text-decoration:underline; text-underline-offset:3px; text-decoration-color:rgba(61,42,28,.3); cursor:pointer; }
  .preview-voices { display:flex; align-items:center; gap:4px; margin-top:12px; padding-top:10px; border-top:1px solid rgba(61,42,28,.12); }
  .preview-voices span { margin-right:auto; color:var(--g900); font-size:12px; }
  .preview-voices button { padding:6px 10px; border-radius:8px; font-size:12px; }
  .preview-voices button[aria-pressed="true"] { background:var(--voice-ink); color:white; }
  .phone:has(.convo.open) .callbtn, .phone:has(.convo.open) .arrow, .phone:has(.convo.open) .sched, .phone:has(.convo.open) .aside { opacity:0; pointer-events:none; }
  /* Sliding: over the last third the slider hands over to the question, following the thumb. */
  .phone.peek .callbtn, .phone.peek .arrow, .phone.peek .sched, .phone.peek .aside { opacity:calc(1 - var(--t,0)); transition:opacity .5s linear; }
  .phone.peek .convo { opacity:var(--t,0); transform:translateY(calc((1 - var(--t,0)) * 26px)) scale(calc(.97 + var(--t,0) * .03)); }
  /* The question arrives unhurried: it trails the thumb instead of snapping to it. */
  .phone.peek .convo, .convo[data-state="ask"].open { transition:opacity .7s linear, transform .7s cubic-bezier(.2,.7,.3,1); }

  .home { position:absolute; left:50%; bottom:8px; width:130px; height:4.5px; margin-left:-65px; border-radius:3px; background:#55535a; z-index:6; }

#availabilityStatus { text-align:center; font: 12px/1.4 Arial,sans-serif; }

.sceneViewport, .bookingColumn { display:contents; }
.desktopMemory { display:none; }

@media (min-width: 800px) {
  html { height:100%; }
  body { height:100%; overflow:hidden; }
  .fit { position:static; width:100%; height:100%; }
  /* Two modes. Default: Kobe and the stage alone at the centre of the page.
     Booking (calendar or call open): the stage steps left and the panel takes focus on the right. */
  .phone {
    display:grid;
    width:var(--desktop-width, auto);
    margin:0 auto;
    grid-template-columns:minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-rows:28px minmax(0, 1fr);
    grid-template-areas:"drive drive drive" ". scene .";
    column-gap:64px;
    row-gap:8px;
    align-content:center;
    height:100%;
    zoom:var(--desktop-scale, 1);
    padding:12px 0;
    overflow:visible;
  }
  .phone:has(.card.open), .phone:has(.convo.open:not([data-state="ask"])) {
    grid-template-columns:minmax(0, 1fr) auto auto minmax(0, 1fr);
    grid-template-areas:"drive drive drive drive" ". scene booking .";
  }
  .hdr, .menu, .glow, .spot { display:none; }
  .sceneViewport {
    grid-area:scene;
    display:block;
    align-self:center;
    position:relative;
    width:390px;
    height:570px;
    overflow:clip;
    zoom:1.65;
  }
  .phone:has(.card.open) .sceneViewport, .phone:has(.convo.open:not([data-state="ask"])) .sceneViewport { zoom:1.2; }
  /* Keep the controls under the enlarged stage at a normal size; the arrow shrinks with the slider. */
  .sceneViewport .callbtn { scale:.8; }
  .sceneViewport .arrow { scale:.8; transform-origin:195px 522px; }
  .sceneViewport .sched, .sceneViewport .aside { scale:.85; }
  .sceneViewport .topic { --k:.82; }
  .phone.incall .sceneViewport { overflow:clip; }
  /* The wall is wide here and low above the heads: the proofs spread wider. */
  .sceneViewport { overflow:visible; }
  /* and the names stand further out from the figures */
  .world { --echo-name-x:36px; --echo-name-y:238px; --topic-pass-x:-44px; --topic-gap:10px; }
  .word.kobe-w { left:306px; }
  .pitch h1 { top:84px; font-size:21px; }
  .proofs { left:-10px; right:-10px; top:113px; font-size:9.5px; }
  .sceneViewport .topic[data-s="1"] { --dock-x:calc(var(--echo-name-x) - 50%); }
  .world, .phone:has(.card.open) .world {
    inset:-100px auto auto 0;
    width:390px;
    height:720px;
    transform:none;
  }
  .phone.incall .world { transform:translate(-47px,-410px) scale(2); }
  /* The open panel is the focus: larger than on a phone. */
  .card, .convo { position:relative; inset:auto; grid-area:booking; align-self:center; width:370px; margin-top:0; zoom:1.4; animation:panelIn .45s cubic-bezier(.3,1.15,.5,1); }
  @keyframes panelIn { from { opacity:0; transform:translateX(24px); } }
  .card:not(.open), .convo:not(.open) { display:none; }
  /* Asking to start a call happens in place: the question takes over from the slider under Kobe,
     and the stage only steps aside once the call starts. */
  .convo[data-state="ask"] { position:absolute; grid-area:scene; inset:calc(50% + 112px) auto auto 50%; translate:-50% 0; animation:none; }
  .convo[data-state="ask"]:not(.open) { display:block; }
  .slots { grid-template-columns:repeat(4, minmax(0,1fr)); max-height:144px; overflow-y:auto; overscroll-behavior:contain; }
  .desktopMemory:not([hidden]) {
    display:block; grid-area:drive; position:relative; z-index:4; justify-self:end; align-self:center;
    font:500 11px/20px "DM Sans",sans-serif; color:var(--mute); text-decoration:underline;
  }
}

/* A live call occupies the viewport. The avatar and its caption share the sole line. */
.fit:has(.phone.incall) { position:fixed; inset:0; width:100%; height:100%; transform:none !important; }
.phone.incall {
  --call-center:50%; --edge:clamp(18px,4vw,64px);
  --toolbar-top:max(22px,env(safe-area-inset-top)); --dock-bottom:max(clamp(18px,4dvh,42px),env(safe-area-inset-bottom));
  --topic-step:clamp(22px,3.8dvh,34px); --track-height:calc(var(--topic-step) * 2 + 24px);
  --label-height:26px; --topic-height:calc(var(--track-height) + var(--label-height));
  --hat-gap:clamp(16px,3dvh,32px); --headroom:calc(var(--toolbar-top) + 16px + var(--topic-height) + var(--hat-gap));
  --actor:clamp(64px,min(55vw,38dvh,calc(100dvh - var(--headroom) - var(--dock-bottom) - 156px)),330px);
  --feet:max(51%,calc(var(--headroom) + var(--actor)));
  --status-size:clamp(14px,min(max(18px,2.2vw),3.6dvh),24px); /* Shrinks with a short window. */
  display:block; position:relative; width:100%; height:100%; margin:0; padding:0; zoom:1; overflow:clip;
  /* Keep the glow inside the scene: every viewport edge meets the surrounding paper. */
  background:radial-gradient(ellipse 49% 49% at 50% 49%,#fff8ef 0%,#f4e8df 55%,var(--bg) 100%) var(--bg);
}
.phone.incall .card, .phone.incall .desktopMemory, .phone.incall .spot { display:none; }
.phone.incall:has(.convo.open) .sceneViewport { display:block; position:absolute; inset:0; width:auto; height:100%; align-self:stretch; zoom:1; overflow:visible; }
.phone.incall .world {
  --echo-x:var(--call-center); --echo-width:var(--actor); --shoe-line:var(--feet);
  inset:0; width:100%; height:100%; transform:none;
}
.phone.incall .world > :not(.welcome-avatar,.echo-shadow,.mascot-hit) { visibility:hidden; }
.phone.incall .echo-shadow { opacity:.70; }
.phone.incall .convo.open {
  position:absolute; inset:0; width:auto; height:100%; align-self:stretch; margin:0; padding:0; border:0; border-radius:0; box-shadow:none;
  background:none; backdrop-filter:none; -webkit-backdrop-filter:none; transform:none; zoom:1; isolation:auto;
  pointer-events:none; animation:none;
}
.phone.incall .convo::before, .phone.incall .convo::after { content:none; }
.phone.incall .convo > .c-top, .phone.incall .convo > .c-call { display:contents; }
.phone.incall .convo .c-status {
  position:absolute; left:var(--call-center); top:calc(var(--feet) + 18px); translate:-50% 0;
  width:max-content; padding:0; background:none; color:var(--voice-ink,var(--g900));
  font:600 var(--status-size)/1.2 "DM Sans",sans-serif; letter-spacing:-.045em;
}
.phone.incall .c-status i { width:7px; height:7px; margin-right:2px; }
/* After a finished call the scene stays. Echo steps up and waves over a short report and one email field. */
.phone.incall:has(.convo[data-state="bye"]) {
  --topic-height:0px; --actor:clamp(64px,min(46vw,24dvh),200px); --feet:max(34%,calc(var(--headroom) + var(--actor)));
}
.phone.incall .convo[data-state="bye"] > .c-call, .phone.incall .convo[data-state="bye"] .c-time { display:none; }
.phone.incall .convo[data-state="bye"] .c-status { color:#8a7d74; font-size:13px; font-weight:500; letter-spacing:0; }
.phone.incall .convo[data-state="bye"] > .c-bye {
  position:absolute; left:var(--call-center); top:calc(var(--feet) + 46px); translate:-50% 0;
  width:min(340px,calc(100% - 2 * var(--edge))); display:grid; justify-items:center; gap:14px; text-align:center; pointer-events:auto;
}
.phone.incall .c-bye .cap { margin:0; min-height:0; font:600 var(--status-size)/1.2 "DM Sans",sans-serif; letter-spacing:-.035em; color:var(--g900); }
/* The report: how many of Kobe's memories the call used, and the first few by name. */
.bye-labels:not([hidden]) { display:flex; flex-wrap:wrap; justify-content:center; gap:7px 6px; margin:0; padding:0; list-style:none; }
.bye-labels li { display:flex; align-items:center; gap:5px; height:26px; padding:0 11px; border-radius:999px; background:rgba(255,255,255,.5); border:1px solid rgba(61,42,28,.1); color:#5a4a40; font:500 12.5px/1 "DM Sans",sans-serif; white-space:nowrap; }
.bye-labels li.lead { background:#ffe9cf; border-color:rgba(255,142,11,.35); color:#7a3d00; font-weight:600; }
.bye-labels img { width:14px; height:14px; object-fit:contain; }
/* With room either side, the labels stand around Echo instead of under the title: odd ones to his left, even ones to his
   right, the first pair at his middle and furthest out, the next at his head, the last at his feet. --h is how far up
   his body a label sits, --out how far from his centre line. Echo's feet are 46px above this block (see .c-bye top). */
@media (min-width:700px) and (min-height:521px) {
  .bye-labels:not([hidden]) { position:absolute; left:50%; bottom:100%; display:block; width:0; height:0; }
  .bye-labels li { position:absolute; bottom:calc(46px + var(--actor) * var(--h) - 13px); --h:.5; --out:.6; }
  .bye-labels li:nth-child(odd) { right:calc(var(--actor) * var(--out)); }
  .bye-labels li:nth-child(even) { left:calc(var(--actor) * var(--out)); }
  .bye-labels li:nth-child(n+3) { --h:.86; --out:.44; }
  .bye-labels li:nth-child(n+5) { --h:.14; --out:.48; }
}
@media (min-width:700px) and (min-height:521px) and (prefers-reduced-motion:no-preference) {
  .bye-labels li { animation:labelPop .42s cubic-bezier(.3,1.5,.5,1) backwards; animation-delay:calc(.25s + var(--i,0) * 90ms); }
  .bye-labels li:nth-child(2) { --i:1; } .bye-labels li:nth-child(3) { --i:2; } .bye-labels li:nth-child(4) { --i:3; }
  .bye-labels li:nth-child(5) { --i:4; } .bye-labels li:nth-child(6) { --i:5; }
  @keyframes labelPop { from { opacity:0; scale:.7; } }
}
.bye-claim:not([hidden]) { display:grid; justify-items:center; gap:10px; width:100%; }
.bye-pill {
  display:flex; align-items:center; gap:8px; width:100%; height:46px; padding:0 5px 0 18px; border-radius:999px;
  background:rgba(255,255,255,.32); border:1.5px dashed rgba(61,42,28,.22);
}
.bye-pill:focus-within { border-color:rgba(61,42,28,.5); }
.bye-pill input { flex:1; min-width:0; border:0; outline:0; background:none; font:400 16px/1.3 "DM Sans",sans-serif; color:var(--ink); }
.bye-pill input::placeholder { color:#b5a9a1; }
.bye-go { flex:none; height:34px; padding:0 14px; border-radius:999px; background:var(--g900); color:#fff; font:600 13px/1 "DM Sans",sans-serif; }
#byeCode { letter-spacing:.24em; font-variant-numeric:tabular-nums; }
#byeCode::placeholder { letter-spacing:0; }
.bye-claim:not([data-step="email"]) [data-for="email"], .bye-claim:not([data-step="code"]) [data-for="code"], .bye-claim:not([data-step="leave"]) [data-for="leave"],
.c-bye:has(.bye-claim[data-step="leave"]) :is(.c-row,.bye-labels) { display:none; }
.bye-quiet, .phone.incall .c-bye .c-row :is(.ghost,.cta) {
  flex:none; width:auto; height:auto; padding:6px 2px; background:none; box-shadow:none;
  color:#6e6058; font:500 13px/1 "DM Sans",sans-serif; text-decoration:underline; text-underline-offset:3px;
}
.bye-claim p { margin:0; font-size:12.5px; line-height:1.4; color:#8a7d74; }
.bye-claim p:empty { display:none; }
/* Last two lines: "or schedule a Google Meet", then Bye. */
.phone.incall .c-bye .c-row { flex-direction:column-reverse; justify-content:center; gap:10px; }
.phone.incall .c-bye .c-row .cta::before { content:"or"; display:inline-block; margin-right:-2px; }
.phone.incall .c-bye .c-row .cta svg { background:none; padding:0; width:15px; height:auto; }
.phone.incall .wave {
  position:absolute; left:var(--call-center); top:calc(var(--feet) + 54px); translate:-50% 0;
  width:160px; height:23px; margin:0; gap:3px;
}
.phone.incall .wave i { flex:1; max-width:3px; border-radius:4px; }
.memory-action { display:none; }
.memory-pose-preview { position:absolute; inset:0; pointer-events:none; background-size:1200% 900%; background-repeat:no-repeat; }
.memory-pose-preview { opacity:0; }
.welcome-avatar[data-memory-pose] .memory-pose-preview { opacity:1; }
.world .welcome-avatar[data-memory-pose] :is(#mascotRive,#mascotPoster) { opacity:0; }
@media (prefers-reduced-motion:no-preference) {
  .memory-pose-preview, .mandarin-preview .world #mascotRive, .mandarin-preview .world #mascotPoster { transition:opacity .5s ease-out; }
}
@media (prefers-reduced-motion:reduce) {
  .world #mascotRive { transition:none; }
}
.phone.mandarin-preview.incall .convo[data-memory]:not([data-topic-turn="speaking"]) .c-status { color:#715025; }
.phone.mandarin-preview.incall .convo[data-memory] .memory-action { display:none; }
.phone.mandarin-preview.incall .convo[data-memory] .c-status i { display:block; }
.phone.incall .convo[data-memory]:not([data-topic-turn="speaking"]) .c-status { color:#245b8c; }
/* Small transparent clips from the blue Echo V21 artboard, beside the live status. */
@media (prefers-reduced-motion:no-preference) {
  .convo[data-memory="search"] { --memory-action:url("memory-magnifier.webp"); }
  .convo[data-memory="map"] { --memory-action:url("memory-map.webp"); }
  .convo[data-memory="found"] { --memory-action:url("memory-notebook.webp"); }
  .phone.incall:not(.mandarin-preview) .convo:not([data-topic-turn]):is([data-memory="search"],[data-memory="map"],[data-memory="found"]) .memory-action {
    display:block; width:clamp(52px,7vw,72px); height:1em; position:relative;
  }
  .memory-action::before {
    content:""; position:absolute; top:50%; translate:0 -50%; width:100%; aspect-ratio:1;
    background:var(--memory-action) center / contain no-repeat;
  }
  .convo:not([data-topic-turn]):is([data-memory="search"],[data-memory="map"],[data-memory="found"]) .c-status i { display:none; }
  .phone.incall:not(.mandarin-preview) .convo[data-memory]:not([data-topic-turn]) .wave { margin-top:8px; }
}
.c-time svg { display:none; }
.phone.incall .c-time {
  position:absolute; top:var(--toolbar-top); right:var(--edge); display:flex; align-items:center; gap:8px;
  min-height:34px; padding:0; background:none; color:#57463e; font:600 17px/1 "DM Sans",sans-serif; font-variant-numeric:tabular-nums;
}
.phone.incall .c-time svg { display:block; width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2; }
.c-time circle:first-child { opacity:.2; }
.time-left { stroke-dasharray:100; stroke-dashoffset:var(--elapsed,0); transform-origin:center; transform:rotate(-90deg); }
.phone.incall .convo.low .c-time { color:#ad4339; animation:none; }
.c-time:has(#talkStatus:empty) { visibility:hidden; }
.phone.incall .preview-voices {
  position:absolute; left:var(--edge); top:var(--toolbar-top); margin:0; padding:0; border:0; gap:2px; pointer-events:auto;
}
.phone.incall .preview-voices > span { margin-right:6px; font-size:11px; color:#78685e; }
.phone.incall .preview-voices button { color:#69584d; background:transparent; border-radius:16px; font-size:12px; padding:8px 10px; }
.phone.incall .preview-voices button[aria-pressed="true"] { background:#fff9f1; color:#3e3228; box-shadow:0 1px 4px #59391d16; }
.convo:not([data-state="live"]) #previewMemory { display:none; }
.call-controls {
  position:absolute; left:50%; bottom:var(--dock-bottom); translate:-50% 0; display:flex; align-items:flex-start;
  justify-content:center; gap:clamp(16px,4vw,32px); pointer-events:auto;
}
.call-controls > button, .call-volume > summary {
  display:flex; flex-direction:column; align-items:center; gap:8px; min-width:65px; padding:0;
  font:600 12px/1.25 "DM Sans",sans-serif; color:#544439; cursor:pointer;
}
.call-controls .control-icon {
  display:grid; place-items:center; width:48px; height:48px; border-radius:50%;
  background:#fffaf3; border:1px solid #fffdfa; box-shadow:0 2px 5px #54372012;
}
.control-icon svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
#talkEnd .control-icon { background:#ac453c; color:white; border-color:#a74438; }
#mute[aria-pressed="true"] .control-icon, .call-volume[open] .control-icon { color:#fff9f2; background:#514338; border-color:transparent; }
.mic-slash, .speaker-off, #mute[aria-pressed="true"] rect, .call-volume.silent .sound-arcs { display:none; }
#mute[aria-pressed="true"] .mic-slash, .call-volume.silent .speaker-off { display:block; }
.call-volume { position:relative; }
.call-volume summary, .call-memories summary { list-style:none; cursor:pointer; }
.call-volume summary::-webkit-details-marker, .call-memories summary::-webkit-details-marker { display:none; }
.volume-panel {
  position:absolute; z-index:2; left:50%; bottom:calc(100% + 14px); translate:-50% 0;
  width:208px; padding:14px 16px; display:grid; align-items:center; grid-template-columns:1fr auto; gap:8px;
  color:var(--g900); background:#fffaf5; border:1px solid #ffffff; border-radius:16px; box-shadow:0 6px 20px #4a312426; font-size:13px;
}
.volume-panel output { font-variant-numeric:tabular-nums; }
.volume-panel input { grid-column:1/-1; width:100%; height:24px; accent-color:#6b5140; cursor:pointer; }
.phone.incall {
  --reader-width:clamp(280px,38vw,480px);
  --reader-right:max(var(--edge),calc((100% - 1280px) / 2));
  --topics-width:min(390px,calc(100% - 12px));
}
.call-topics { display:none; }
.phone.incall .convo[data-state="live"] .call-topics {
  position:absolute; left:var(--call-center); bottom:calc(100% - var(--feet) + var(--actor) + var(--hat-gap)); translate:-50% 0;
  display:grid; align-items:center; width:var(--topics-width); height:var(--topic-height);
  font:400 15px/1.45 "DM Sans",sans-serif; color:#6d594b; text-align:center; pointer-events:none;
}
#topicOptions { display:grid; grid-template-rows:var(--label-height) var(--track-height); justify-items:center; align-items:start; }
.hint-track {
  position:relative; width:100%; height:var(--track-height); overflow:clip; font-size:min(clamp(16px,2.6vw,18px),max(13px,calc(var(--topic-step) * .56)));
  mask-image:linear-gradient(to bottom,transparent,#000 15%,#000 85%,transparent);
}
.hint-row {
  --offset:2; --scale:.72; position:absolute; top:50%; left:50%;
  display:flex; align-items:center; width:max-content; max-width:100%;
  transform:translate(-50%,calc(-50% + var(--offset) * var(--topic-step))) scale(var(--scale)); opacity:0;
}
.hint-row[data-slot="-2"] { --offset:-2; }
.hint-row[data-slot="-1"] { --offset:-1; }
.hint-row[data-slot="1"] { --offset:1; }
.hint-row:is([data-slot="-1"],[data-slot="1"]) { --scale:.79; opacity:.3; }
.hint-row[data-slot="0"] { --offset:0; --scale:1; opacity:.76; z-index:1; }
.hint-row button[data-topic] { min-width:0; min-height:36px; padding:1px 2px; font:inherit; }
.hint-row[data-slot="0"] button { pointer-events:auto; }
.hint-row[data-slot="0"]:has(:focus-visible) { opacity:1; }
#nextHint {
  display:inline-flex; align-items:center; gap:4px; min-height:24px; padding:0 4px; pointer-events:auto;
  color:#716e69; font:500 12px/1 "DM Sans",sans-serif;
}
#nextHint svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.3; stroke-linecap:round; stroke-linejoin:round; }
.call-topics button:focus-visible { outline:2px solid #92552d; outline-offset:2px; }
.hint-track button:focus-visible { outline-offset:-3px; }
@media (prefers-reduced-motion:no-preference) {
  #topicOptions { animation:arrive var(--beat) linear infinite; }
  #topicOptions:has(:focus-visible) { animation-play-state:paused; }
  .hint-row { transition:opacity .48s ease, transform .62s cubic-bezier(.32,.05,.22,1); }
}
@media (hover:hover) and (pointer:fine) {
  #topicOptions:hover { animation-play-state:paused; }
  .hint-row[data-slot="0"]:hover { opacity:1; color:var(--g900); }
  #nextHint:hover { color:#555250; }
}
#topicFeedback { max-width:38ch; margin-inline:auto; color:#68584c; font-size:14px; line-height:1.5; text-wrap:balance; }
#topicFeedback:focus { outline:none; }
.call-memories {
  position:absolute; right:var(--reader-right); top:max(calc(var(--toolbar-top) + 44px),17%); bottom:calc(var(--dock-bottom) + 82px);
  width:var(--reader-width); font:500 15px/1.5 "DM Sans",sans-serif; color:#534135; pointer-events:none;
}
.call-memories:not([open]) { bottom:auto; }
.call-memories > summary {
  display:flex; align-items:center; gap:9px; width:fit-content; max-width:100%; min-height:44px; padding:0 4px;
  color:#49362a; font-weight:650; font-size:17px; cursor:pointer; pointer-events:auto;
}
.call-memories > summary img { object-fit:contain; flex:none; }
.call-memories summary:focus-visible, .mem-groups:focus-visible { outline:2px solid #966337; outline-offset:2px; }
.mem-groups:focus-visible { outline-offset:-2px; }
.chevron { width:7px; height:7px; border:solid currentColor; border-width:0 1.5px 1.5px 0; transform:rotate(45deg); margin:-3px 2px 0 4px; }
.call-memories[open] .chevron { transform:rotate(225deg); margin-top:4px; }
.mem-groups {
  --fade-top:0px; --fade-bottom:0px;
  --memory-mask:linear-gradient(to bottom, transparent,
    rgb(0 0 0 / .24) calc(var(--fade-top) * .25), rgb(0 0 0 / .78) calc(var(--fade-top) * .75), #000 var(--fade-top),
    #000 calc(100% - var(--fade-bottom)), rgb(0 0 0 / .78) calc(100% - var(--fade-bottom) * .75),
    rgb(0 0 0 / .24) calc(100% - var(--fade-bottom) * .25), transparent);
  -webkit-mask-image:var(--memory-mask); mask-image:var(--memory-mask);
  position:absolute; inset:48px 0 0; overflow-y:auto; overscroll-behavior:contain; padding:0 8px 8px 0;
  scroll-padding-block:min(90px,22%);
  scrollbar-width:thin; scrollbar-color:#a38a7855 transparent; text-align:left; pointer-events:auto;
}
.mem-entries { margin:0; padding:0; list-style:none; }
.mem-entries li + li { border-top:1px solid #d9cbbc; }
@media (prefers-reduced-motion:no-preference) {
  .call-memories:not([hidden]) > summary { animation:memoryArrival .48s ease-out backwards; }
  .mem-entries > li { animation:memoryArrival .56s ease-out var(--arrival-delay,0ms) backwards; }
  /* Keep the actor, its shadow and the controls together as the reader takes space. */
  .phone.incall :is(.welcome-avatar,.echo-shadow,.mascot-hit,.call-topics,.c-status,.wave) {
    transition:left .45s ease, top .45s ease, bottom .45s ease, width .45s ease, height .45s ease;
  }
  .phone.incall .world .welcome-avatar { animation:callActorArrival .7s ease-out backwards; animation-play-state:running; }
  .memory-action::before { animation:callActorArrival .5s ease-out backwards; }
  @keyframes callActorArrival { from { opacity:0; } to { opacity:1; } }
  @keyframes memoryArrival { from { opacity:0; transform:translateY(9px); } }
}
.mem-head { display:flex; align-items:center; flex-wrap:wrap; gap:5px; min-height:44px; padding:4px 3px; font-size:14px; color:#715e50; }
.mem-head time { font-size:12px; font-variant-numeric:tabular-nums; }
.mem-head b { font-weight:600; color:#49382c; }
.mem-head img { flex:none; width:17px; height:17px; object-fit:contain; border-radius:4px; }
.mem-head .mem-face { object-fit:cover; object-position:top; border-radius:50%; background:#e9d9cb; }
.mem-title { display:block; overflow-wrap:anywhere; font-size:clamp(16px,1.4vw,19px); line-height:1.35; color:#423124; }
.mem-body[open] { padding-bottom:10px; }
.mem-body > summary::after { content:""; flex:none; width:7px; height:7px; margin-left:auto; margin-right:2px; border:solid #846d5c; border-width:0 1.5px 1.5px 0; transform:rotate(-45deg); }
.mem-body[open] > summary::after { transform:rotate(45deg); }
.mem-body > summary:hover { color:#844821; }
.mem-source { display:inline-block; margin-top:5px; font-size:13px; }
.mem-detail { overflow-wrap:anywhere; }
.convo .mem-detail { margin:5px 0 0; font:400 15px/1.55 "DM Sans",sans-serif; color:#5a493c; white-space:pre-line; }
.call-memories a, .c-ask a { color:inherit; text-underline-offset:3px; }
.call-memories a:hover { color:#944217; }
@media (max-width:799px) {
  .phone.incall { --toolbar-top:max(64px,calc(env(safe-area-inset-top) + 54px)); }
  .phone.incall .preview-voices > span { display:none; }
}
@media (max-height:520px) {
  .phone.incall {
    --topic-step:20px; --track-height:calc(var(--topic-step) * 2 + 16px); --label-height:24px;
    --headroom:calc(var(--toolbar-top) + 12px + var(--topic-height) + var(--hat-gap));
    --actor:clamp(48px,calc(100dvh - var(--headroom) - var(--dock-bottom) - 136px),155px); --dock-bottom:clamp(12px,4dvh,20px);
  }
  .phone.incall .wave { top:calc(var(--feet) + 18px + var(--status-size) * 1.5); height:17px; }
  .call-controls .control-icon { width:40px; height:40px; }
  .phone.incall .convo[data-state="bye"] > .c-bye { top:calc(var(--feet) + 36px); gap:7px; }
  .bye-claim:not([hidden]) { gap:6px; }
  .bye-pill { height:40px; }
  .bye-go { height:30px; }
  .phone.incall .c-bye .c-row { gap:4px; }
  .bye-labels:not([hidden]) { flex-wrap:nowrap; overflow:hidden; justify-content:flex-start; }
  .phone.incall:has(.convo[data-state="bye"]) { --actor:clamp(48px,20dvh,120px); --feet:calc(var(--headroom) + var(--actor)); }
}
@media (min-width:640px), (min-width:480px) and (orientation:landscape) {
  .phone.incall:has(.call-memories:not([hidden])) {
    --reader-start:calc(100% - var(--reader-right) - var(--reader-width) - 12px);
    --topics-width:min(390px,calc(var(--reader-start) - var(--edge)));
    --call-center:min(50%,calc(var(--reader-start) - max(var(--topics-width),var(--actor)) / 2));
  }
}
@media (min-width:480px) and (max-height:520px) and (orientation:landscape) {
  .phone.incall { --reader-width:clamp(205px,38vw,480px); }
  .phone.incall:has(.call-memories:not([hidden])) {
    --call-center:calc((100% - var(--reader-right) - var(--reader-width)) / 2);
  }
  .phone.incall:has(.call-memories:not([hidden])) .call-controls { left:var(--call-center); }
  .call-memories { top:var(--toolbar-top); bottom:var(--dock-bottom); }
  .call-memories > summary { max-width:calc(100% - 64px); }
}
@media (min-width:480px) and (max-width:799px) and (orientation:landscape) and (max-height:520px) {
  .phone.incall { --toolbar-top:max(12px,env(safe-area-inset-top)); }
  .phone.incall .hdr { pointer-events:none; }
  .phone.incall .hdr :is(a,button) { pointer-events:auto; }
  .phone.incall .preview-voices { left:96px; }
  .phone.incall .c-time { right:64px; min-height:30px; }
  .phone.incall .call-memories { top:60px; }
}
@media (max-width:479px), (max-width:639px) and (orientation:portrait) {
  .phone.incall { --reader-width:calc(100% - 2 * var(--edge)); }
  .phone.incall:has(.call-memories:not([hidden])) {
    --actor:clamp(64px,13dvh,112px);
    --feet:calc(var(--headroom) + var(--actor));
  }
  .phone.incall:has(.call-memories:not([hidden])) .c-status { top:calc(var(--feet) + 5px); font-size:clamp(15px,4vw,18px); }
  .phone.incall:has(.call-memories:not([hidden])) .wave { top:calc(var(--feet) + 30px); width:128px; }
  .call-memories { top:calc(var(--feet) + 63px); }
  .mem-groups { padding-right:4px; }
}

.wave canvas { display:none; width:100%; height:100%; }
.convo[data-state="live"][data-interaction] .wave:not([data-preview]) i { display:none; }
.convo[data-state="live"][data-interaction] .wave:not([data-preview]) canvas { display:block; }
.phone.incall .convo:is([data-interaction="overlap"],[data-interaction="yielding"]) .c-status {
  color:#126d63;
}
.convo[data-interaction="overlap"] .c-status i { box-shadow:0 0 0 3px #38a68b38; }
/* A search indicator runs along the real trace, even during a quiet lookup. */
.wave::after { content:''; display:none; pointer-events:none; }
.convo:is([data-interaction="thinking"],[data-interaction="searching"]) .wave::after {
  display:block; position:absolute; left:8%; top:43%; width:14%; height:2px; border-radius:2px; background:#4b83aa;
}
@media (prefers-reduced-motion:no-preference) {
  .convo:is([data-interaction="thinking"],[data-interaction="searching"]) .wave::after { animation:memoryTraceScan 1.3s ease-in-out infinite alternate; }
  @keyframes memoryTraceScan { to { left:78%; } }
}

.phone.incall .convo[data-interaction="listening"] .c-status { color:#105e58; }
.phone.incall .convo:is([data-interaction="thinking"],[data-interaction="searching"]) .c-status { color:#245b8c; }
@media (min-height:570px) {
  .phone.incall .convo[data-interaction] .wave { width:clamp(156px,43vw,205px); height:30px; }
  .phone.incall:has(.call-memories:not([hidden])) .convo[data-interaction] .wave { width:142px; height:25px; }
}
