/* The full Build Room at /room/ (/chat-test/ until 2026-10-12). Home mode (the film) served the homepage until then and is unused.
   Brand: ink, lime, forest and paper, the b tile. The chat column follows WhatsApp's group-chat conventions: header, sender names,
   ticks, centered events. body[data-mode] is home or room, body[data-state] is fresh (no room yet) or room, and on phones
   body[data-view] is film (home, first screen), chat or app. */
:root{--paper:#f5f4ed;--ink:#222b23;--muted:#5f685c;--muted-2:#7d877d;--line:#e0dfd2;--line-2:#d3d3c4;
  --lime:#d6f681;--lime-2:#e9f7c3;--lime-3:#f3fbde;--forest:#234b3b;--green:#234b3b;--green-2:#2d5a48;--forest-3:#1b3a2e;--moss:#4d6a37;--white:#fffef9;
  --wall:#efeee4;--dots:#dcdccd;--in:#fffef9;--out:#e6f4bf;--out-line:#d3e8a6;--tick:#7d8870;--read:#3f8f2f;--stage:#e9ebdf;
  --warm:#f6ebcf;--warm-line:#ead7a6;--warm-ink:#6f4c0f;--amber:#d9971f;
  --serif:'Instrument Serif',Georgia,serif;--sans:'DM Sans',Arial,sans-serif;--mono:'DM Mono',ui-monospace,Menlo,monospace;--ease:cubic-bezier(.2,.8,.2,1);
  --sh-1:0 1px 0 rgba(34,43,35,.04),0 2px 8px -4px rgba(34,43,35,.14);
  --sh-2:0 18px 40px -22px rgba(34,43,35,.38),0 2px 6px -2px rgba(34,43,35,.08);
  --sh-3:0 30px 70px -30px rgba(22,40,30,.5),0 8px 20px -10px rgba(22,40,30,.18);color-scheme:light}
*{box-sizing:border-box}
html{height:100%}
body{margin:0;height:100%;height:100dvh;overflow:hidden;background:var(--paper);color:var(--ink);font:15px/1.5 var(--sans);-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%}
button,input,textarea,select{font:inherit;color:inherit}
button{cursor:pointer}
button,a{-webkit-tap-highlight-color:transparent}
a{color:inherit}
p,h1,h2,h3{margin:0}
img{display:block;max-width:100%}
[hidden]{display:none!important}
button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid #688947;outline-offset:2px}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.sprite{position:absolute;width:0;height:0;overflow:hidden}
.skip-link{position:absolute;left:12px;top:-80px;z-index:50;background:var(--ink);color:var(--white);padding:10px 14px;border-radius:8px;font-size:13px;text-decoration:none}
.skip-link:focus{top:10px}
.live-dot{display:inline-block;flex:none;width:7px;height:7px;border-radius:50%;background:#8fd67a;box-shadow:0 0 0 3px rgba(143,214,122,.22)}

/* Layout: chat column (header on top) beside the app panel */
.layout{height:100%;display:grid;grid-template-columns:460px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);grid-template-areas:"head preview" "chat preview"}
.head{grid-area:head;position:relative;z-index:5;background:var(--forest);color:#f3f6ec;border-right:1px solid var(--forest-3)}
.chat{grid-area:chat}
.preview{grid-area:preview}

/* Header: the room's name and who is here; the people list lives in the info sheet */
.head-bar{height:64px;display:flex;align-items:center;gap:6px;padding:0 8px 0 10px}
.head-main{flex:1;min-width:0;align-self:stretch;display:flex;align-items:center;gap:11px;border:0;background:transparent;padding:0 6px;text-align:left;color:inherit;border-radius:12px}
.head-main:hover{background:#ffffff0d}
.head-tile{flex:none;width:30px;height:34px}
.head-copy{display:flex;flex-direction:column;min-width:0;line-height:1.25}
.head-copy b{font-size:16px;font-weight:650;letter-spacing:-.01em;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.head-copy small{display:flex;align-items:center;gap:7px;font-size:12.5px;color:#c4d7c8;white-space:nowrap;min-width:0}
.head-copy small span{overflow:hidden;text-overflow:ellipsis}
.head-info{flex:none;width:40px;height:40px;border-radius:50%;border:0;background:transparent;color:#dce8d0;display:grid;place-items:center}
.head-info:hover{background:#ffffff14;color:#fff}
.signin{flex:none;height:32px;padding:0 14px;border-radius:99px;border:1px solid rgba(255,255,255,.3);background:transparent;color:#fff;font-size:13px;font-weight:600}
.signin:hover{background:#ffffff14}
#makeup-demo-back:not([hidden]){display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:44px;padding:0 12px;text-decoration:none}
@media(max-width:400px){.makeup-demo .head-tile{display:none}.makeup-demo .head-copy b{white-space:normal}}
.save-pill,.build-save{flex:none;display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 13px 0 11px;border-radius:99px;border:0;background:var(--lime);color:var(--forest);font-size:13px;font-weight:650;white-space:nowrap;box-shadow:0 4px 14px -6px rgba(214,246,129,.8)}
.save-pill svg,.build-save svg{width:13px;height:13px}
.save-pill:hover{background:#e3fb9e}
.acct{flex:none;position:relative;width:32px;height:32px;border-radius:50%;background:#f1efe2;color:var(--forest);display:grid;place-items:center;font-weight:700;font-size:14px}
.acct>svg{position:absolute;right:-3px;bottom:-3px;width:15px;height:15px;padding:2px;border-radius:50%;background:var(--lime);color:var(--forest);box-shadow:0 0 0 2px var(--forest)}
.view-tabs{display:none}

/* A person's face in the info sheet: avatar plus a status badge (green dot = online, bell = notified) */
.face{position:relative;flex:none;display:inline-flex}
.face .avatar{width:32px;height:32px;font-size:14.5px;border-radius:50%}
.face .avatar-ai{width:30px;height:34px;border-radius:0}
.face[data-status=pinged] .avatar,.face[data-status=waiting] .avatar,.face[data-status=away] .avatar{filter:grayscale(1);opacity:.5}
.face[data-status=online] .avatar{opacity:.8}
.face[data-status=joined] .avatar{box-shadow:0 0 0 2px var(--lime)}
.badge{position:absolute;right:-2px;bottom:-2px;width:11px;height:11px;border-radius:50%;background:#62d26f;border:2px solid var(--forest)}
.badge-bell{width:17px;height:17px;right:-5px;bottom:-4px;display:grid;place-items:center;background:#f4d35e;border-width:1.5px}
.badge-bell svg{width:11px;height:11px;fill:none;stroke:#3d3510;stroke-width:2.2;stroke-linejoin:round;stroke-linecap:round}
.avatar-blank svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.people .face .avatar-blank{background:#dfe4d6;color:#4e5a44}

/* Engineer mode only: who you are in this chat, whether the visitor is here, and hand back */
.eng-bar{display:flex;align-items:center;gap:10px;min-height:34px;padding:4px 6px 4px 14px;background:var(--lime);color:#23391f;font-size:12.5px;line-height:1.3}
.eng-copy{flex:1;min-width:0;overflow-wrap:anywhere}
.eng-visitor{white-space:nowrap}
.eng-visitor::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:#8d977f;margin:0 5px 1px 0}
.eng-visitor[data-here=true]{font-weight:650}
.eng-visitor[data-here=true]::before{background:#2c8a37}
.eng-bar button{flex:none;border:1px solid #4d6f2d59;background:#ffffff8c;color:#23391f;border-radius:7px;padding:4px 10px;font-size:12px;font-weight:650;min-height:28px;white-space:nowrap}
.eng-bar button:disabled{opacity:.6;cursor:default}

/* Voice call bar, under the header so it stays visible on both phone tabs */
.call{display:flex;align-items:center;gap:10px;padding:8px 8px 8px 14px;background:#173427;color:#eef4e6;border-top:1px solid #ffffff14}
.call .face .avatar{width:30px;height:30px}
.call-copy{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
.call-copy strong{font-size:13.5px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.call-copy span{font-size:11.5px;color:#b3c8a8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.call-copy span.is-error{color:#ffc9b8;white-space:normal}
.call-clock{flex:none;font-size:12px;font-variant-numeric:tabular-nums;color:var(--lime)}
.call-actions{flex:none;display:flex;gap:6px}
.call-actions button{min-height:34px;border-radius:99px;padding:6px 13px;font-size:12.5px;font-weight:650;border:1px solid #ffffff3d;background:transparent;color:inherit;white-space:nowrap}
.call-actions button:hover{background:#ffffff14}
.call-actions .call-join{background:var(--lime);border-color:var(--lime);color:var(--forest)}
.call-actions .call-end{background:#c2553f;border-color:#c2553f;color:#fff}
.call-actions button:disabled{opacity:.6;cursor:default}
.call[data-mode=incoming]{background:#2a5a45}
.call[data-mode=incoming] .face .avatar{animation:ring 1.6s infinite}

.avatar{flex:none;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-size:14px;line-height:1;font-weight:700}
.avatar-ai{width:26px;height:30px;border-radius:0;display:block}
.avatar-human{background:var(--forest);color:var(--lime);font-size:13px}
.avatar-you{background:#dfe7cf;color:var(--forest)}
.avatar-visitor{background:#f3dfc9;color:#8a4a1c}
.tag-ai{display:inline-block;font-size:9.5px;font-weight:700;letter-spacing:.06em;padding:1px 5px;border-radius:4px;line-height:1.35;vertical-align:1px;background:var(--lime);color:#2c451d}

/* Conversation */
.chat{position:relative;display:flex;flex-direction:column;min-height:0;min-width:0;border-right:1px solid var(--line);background-color:var(--wall);background-image:radial-gradient(var(--dots) 1px,transparent 1.2px);background-size:18px 18px}
.notice{flex:none;padding:8px 16px;font-size:12px;background:#f6efd9;color:#65501f;border-bottom:1px solid #e7dcbb}
.notice[data-kind=error]{background:#faebe6;color:#8e3a2a;border-color:#efd0c6}
.notice button{margin-left:8px;border:1px solid currentColor;background:transparent;border-radius:6px;padding:3px 9px;font-size:12px;font-weight:600}
.scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:14px 14px 8px;display:flex;flex-direction:column;scrollbar-width:thin;scrollbar-color:#c9cdbd transparent}

/* Bubbles */
.log,.nudges,.room-cards{display:flex;flex-direction:column}
.msg{display:flex;align-items:flex-start;gap:6px;min-width:0;margin-top:10px}
.msg--cont{margin-top:3px}
.msg--in>.avatar{margin-top:1px}
.msg--cont>.avatar{visibility:hidden;height:0}
.msg--out{justify-content:flex-end}
.bubble{position:relative;min-width:0;max-width:min(82%,520px);padding:7px 10px 8px;border-radius:12px;font-size:14.5px;line-height:1.45;box-shadow:0 1px .5px #0b141a1f;overflow-wrap:anywhere}
.msg--in .bubble{background:var(--in);border-top-left-radius:0}
.msg--out .bubble{background:var(--out);border-top-right-radius:0}
.msg--cont .bubble{border-radius:12px}
.msg--in:not(.msg--cont) .bubble::before,.msg--out:not(.msg--cont) .bubble::before{content:"";position:absolute;top:0;width:8px;height:12px}
.msg--in:not(.msg--cont) .bubble::before{left:-7px;background:var(--in);clip-path:polygon(100% 0,0 0,100% 100%)}
.msg--out:not(.msg--cont) .bubble::before{right:-7px;background:var(--out);clip-path:polygon(0 0,100% 0,0 100%)}
.msg--in .bubble{max-width:calc(100% - 44px)}
.msg--out .bubble{margin-right:7px}
.msg--in .bubble{margin-left:7px}
.who{display:flex;align-items:center;gap:6px;font-size:12.5px;font-weight:650;line-height:1.3;margin:0 0 2px}
.who-name{color:var(--forest)}
.who-role{font-weight:450;color:#8a8f80;font-size:11.5px}
.text{white-space:pre-wrap}
.text a{text-decoration:underline;text-underline-offset:3px;color:#1d6a52}
.text::after{content:"";display:inline-block;width:52px;height:1px}
.msg--out .text::after{width:70px}
.meta{position:absolute;right:8px;bottom:4px;display:inline-flex;align-items:center;gap:3px;font-size:11px;line-height:1;color:#7d8472;white-space:nowrap}
.meta svg{width:16px;height:16px;fill:none;stroke:var(--tick);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.meta[data-tick=read] svg{stroke:var(--read)}
.media{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin:2px -5px 4px}
.media--1{grid-template-columns:minmax(0,1fr)}
.media button{padding:0;border:0;border-radius:6px;overflow:hidden;background:#fff;cursor:zoom-in;aspect-ratio:4/3;width:100%;min-width:120px}
.media--1 button{width:260px;max-width:100%;aspect-ratio:auto;max-height:320px}
.media img{width:100%;height:100%;object-fit:cover}
.bubble--media-only{padding-bottom:22px}
.msg--pending .bubble{opacity:.75}
.is-new{animation:rise .42s var(--ease) both}

/* Centered events: day, system notes, "Tim joined" */
.event{align-self:center;max-width:88%;margin:12px 0 2px;padding:5px 11px;border-radius:99px;background:#fffef9e8;color:#5a6050;font-size:12px;line-height:1.4;text-align:center;box-shadow:0 1px .5px #0b141a1a;white-space:pre-wrap}
.event--day{border-radius:8px;font:500 10.5px/1.4 var(--mono);letter-spacing:.14em;text-transform:uppercase;color:#6c7363}
.event--ping,.event--saved{display:inline-flex;align-items:center;gap:7px;background:var(--lime-2);color:#2f4a22;font-weight:600}
.event--warm{display:inline-flex;align-items:center;gap:7px;background:var(--warm);color:var(--warm-ink);font-weight:600;box-shadow:0 0 0 1px var(--warm-line)}
.event svg{flex:none;width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}
.event--saved svg{stroke-width:2.4}
.event--join{display:inline-flex;align-items:center;gap:7px;padding:4px 12px 4px 4px;background:var(--forest);color:#eef4e3;font-weight:650}
.event--join .avatar{width:22px;height:22px;font-size:11px;background:var(--lime);color:var(--forest)}

.typing .bubble,.nudge-typing .bubble{padding:10px 12px}
.dots{display:inline-flex;gap:4px;align-items:center;height:14px}
.dots i{width:6px;height:6px;border-radius:50%;background:#8a9a78;animation:typing 1.2s infinite ease-in-out}
.dots i:nth-child(2){animation-delay:.15s}
.dots i:nth-child(3){animation-delay:.3s}
/* Engineer view: the visitor's unsent text, a faded italic ghost under the messages */
.peer-draft .bubble{opacity:.72;font-style:italic;padding:7px 10px 9px}
.peer-draft-text{white-space:pre-wrap;color:#4f5446;margin-bottom:4px}
.peer-draft .dots{height:8px}
.peer-draft .dots i{width:5px;height:5px}

/* Fresh room: the greeting, what's in the room, idea chips */
.msg--intro{margin-top:0}
.msg--intro .text::after,.profile .text::after{display:none}
.empty{margin:10px 0 2px 39px;display:flex;flex-direction:column;gap:10px}
.value{background:var(--white);border-radius:14px;padding:13px 14px 6px;box-shadow:var(--sh-1);border:1px solid #e7e6da;max-width:430px}
.value h3{font:500 10.5px/1 var(--mono);letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin:0 0 11px}
.value ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:2px 14px}
.value li{display:flex;gap:9px;align-items:flex-start;padding-bottom:9px;font-size:12px;line-height:1.3;color:var(--muted)}
.value li svg{flex:none;width:18px;height:18px;margin-top:1px;color:var(--forest)}
.value strong{display:block;font-size:13px;font-weight:650;color:var(--ink);letter-spacing:-.01em;margin-bottom:1px}
.ideas{display:flex;flex-wrap:wrap;gap:6px}
.ideas button,.ideas .chip-link{display:inline-flex;align-items:center;gap:5px;border:1px solid var(--line-2);background:var(--white);border-radius:99px;padding:7px 13px;font-size:13px;color:#334234;min-height:35px;box-shadow:var(--sh-1);text-decoration:none;transition:border-color .2s,background .2s}
.ideas button:hover,.ideas .chip-link:hover{background:var(--lime-3);border-color:var(--forest)}
.sheet-note b{color:var(--ink);font-weight:650}
.sheet-cta{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.cta-primary,.cta-secondary{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:0 15px;border-radius:99px;font-size:13px;font-weight:600;text-decoration:none;cursor:pointer}
.cta-primary{background:var(--forest);color:#fff;border:1px solid var(--forest)}
.tag-ai-btn{border:0;font-family:inherit;cursor:pointer}
.ai-report{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin-top:8px;padding-top:8px;border-top:1px solid var(--line);font-size:12.5px;color:var(--ink)}
.ai-report button{font:inherit;font-weight:600;border:1px solid var(--line-2);background:var(--white);border-radius:99px;padding:4px 12px;cursor:pointer}
.ai-report .ai-report-yes{border-color:#a3341f;color:#a3341f}
.acct-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;margin-top:10px}
.acct-actions .acct-warn{flex-basis:100%;margin:0;color:#8e3a2a}
.acct-link{background:none;border:0;padding:6px 0;font:inherit;font-size:13px;font-weight:600;color:var(--ink);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.acct-link.acct-danger{color:#a3341f}
.acct-link:disabled{opacity:.5;cursor:default}
.cta-primary:hover{background:var(--forest-3)}
.cta-secondary{background:#fff;color:var(--forest);border:1px solid var(--line-2)}
.cta-secondary:hover{background:var(--lime-3)}

/* "What should we call you?" */
.profile .bubble{width:300px;max-width:calc(100% - 44px)}
.profile input{display:block;width:100%;margin-top:7px;border:1px solid #d5dbc6;border-radius:9px;background:#fff;padding:8px 10px;font-size:14px;outline:none}
.profile input:focus{border-color:#86a55d;box-shadow:0 0 0 3px #d6f68166}
.profile-actions{display:flex;gap:6px;margin-top:8px;justify-content:flex-end}
.profile-actions button{border-radius:99px;padding:7px 15px;font-size:13px;font-weight:600;min-height:34px;border:1px solid var(--line);background:transparent;color:var(--muted)}
.profile-actions button[type=submit]{background:var(--forest);border-color:var(--forest);color:#f3f6ec}
.profile-actions button:disabled{opacity:.55;cursor:default}
.profile-error{font-size:12px;color:#8e3a2a;margin-top:6px}
.profile-note{font-size:13.5px;line-height:1.45;margin-top:4px}
.profile-note b{font-weight:650}

/* Teaching cards in the conversation: drawn by the page from state, never stored */
.card{margin:10px 0 4px 39px;padding:14px 15px;border-radius:16px;background:var(--white);border:1px solid var(--line);box-shadow:var(--sh-2);max-width:440px}
.card h3{margin:0 0 10px;font-size:16px;font-weight:650;letter-spacing:-.015em;line-height:1.25}
.card h3 em,.claim-sheet h2 em{font:400 italic 1.18em/1 var(--serif);letter-spacing:0;color:var(--forest)}
.how{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.how li{display:flex;gap:11px;align-items:flex-start}
.how .hi{width:30px;height:30px;flex:none;border-radius:9px;background:var(--lime-2);color:var(--forest);display:grid;place-items:center}
.how .hi svg{width:17px;height:17px}
.how b{display:block;font-size:14px;font-weight:650}
.how span span{display:block;font-size:13px;line-height:1.38;color:var(--muted)}
.card-foot{margin:12px 0 0;padding-top:10px;border-top:1px dashed var(--line-2);font:500 10.5px/1.3 var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--muted-2)}
.card-claim{position:relative;overflow:hidden;background:var(--forest);color:#fff;border:0}
.card-claim::before{content:"";position:absolute;right:-60px;top:-80px;width:220px;height:220px;border-radius:50%;background:radial-gradient(circle,rgba(214,246,129,.28),transparent 65%);pointer-events:none}
.ck-head{position:relative;display:flex;gap:11px;align-items:center;margin-bottom:8px}
.ck-head svg{width:27px;height:31px;flex:none}
.card-claim h3{margin:0;color:#fff;font-size:17px}
.card-claim h3 em{color:var(--lime)}
.card-claim p{position:relative;margin:0 0 12px;font-size:13.5px;line-height:1.45;color:#d6e4d9}
.ck-btns{position:relative;display:flex;gap:8px;flex-wrap:wrap}
.btn-g,.btn-e{flex:1;min-width:128px;display:inline-flex;align-items:center;justify-content:center;gap:8px;height:42px;padding:0 12px;border-radius:99px;border:0;font-size:13.5px;font-weight:650;white-space:nowrap}
.btn-g{background:#fff;color:var(--ink)}
.btn-g svg{width:17px;height:17px}
.btn-e{background:var(--lime);color:var(--forest)}
.btn-e svg{width:16px;height:16px}
.btn-g:hover{background:#f3f3ec}.btn-e:hover{background:#e3fb9e}
.ck-fine{position:relative;display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:11px;font:500 10.5px/1 var(--mono);letter-spacing:.12em;text-transform:uppercase;color:#a9c3b1}
.ck-fine button{border:0;background:none;padding:4px 0;font:inherit;letter-spacing:inherit;color:#d6e4d9;text-decoration:underline;text-underline-offset:3px}
.card-saved h3{display:flex;align-items:center;gap:8px}
.okc{width:22px;height:22px;border-radius:50%;background:var(--lime);color:var(--forest);display:grid;place-items:center;flex:none}
.okc svg{width:13px;height:13px}
.card-saved p{margin:0 0 12px;font-size:13.5px;color:var(--muted);overflow-wrap:anywhere}
.allow{margin:0 0 10px}
.allow>div{display:flex;justify-content:space-between;font-size:13px;color:var(--muted);margin-bottom:5px}
.allow>div b{color:var(--ink);font-weight:650}
.meter{display:block;height:5px;border-radius:9px;background:rgba(34,43,35,.1);overflow:hidden}
.meter i{display:block;height:100%;width:0;border-radius:inherit;background:var(--forest);transition:width .5s var(--ease)}
.btn-line{display:inline-flex;align-items:center;gap:7px;height:38px;padding:0 15px;border-radius:99px;border:1px solid var(--line-2);background:var(--white);font-size:13.5px;font-weight:650;color:var(--forest);margin-top:4px}
.btn-line svg{width:15px;height:15px}
.btn-line:hover{background:var(--lime-3)}
.btn-line:disabled{opacity:.6;cursor:default}

/* Jump to latest / New messages, over the end of the messages. Its box takes no room in the column (32 - 42 + 10 = 0), so
   showing it resizes nothing: it used to take -4px, which grew the messages by 4px each time it showed, and that read as
   the reader being back at the end (Scott, 2026-11-18: "once they scroll up, stop following, keep their position stable"). */
.jump{position:relative;z-index:3;align-self:center;flex:none;height:32px;margin:-42px 0 10px;border:0;background:var(--forest);color:#fff;border-radius:99px;padding:0 14px;font-size:12px;font-weight:650;white-space:nowrap;box-shadow:0 2px 10px #29371f33}

/* Build status card, pinned above the composer: building, live, near a limit, at a limit, waiting for a save, paused */
.build-card{flex:none;position:relative;z-index:2;margin:4px 12px 4px;display:flex;align-items:center;gap:11px;padding:9px 9px 9px 14px;min-height:54px;border-radius:15px;background:var(--forest);color:#eef4e6;box-shadow:var(--sh-2)}
.build-dot{flex:none;width:9px;height:9px;border-radius:50%;background:var(--lime);box-shadow:0 0 0 4px rgba(214,246,129,.18)}
.build-card[data-look=building] .build-dot,.preview-updating .build-dot,.progress .build-dot{animation:pulse 1.4s ease-in-out infinite}
/* A build runs along the bar's bottom edge, so the room reads as working at a glance (Tim, Oct 1) */
.build-card[data-look=building]{overflow:hidden}
.build-card[data-look=building]::after{content:"";position:absolute;left:0;bottom:0;width:38%;height:3px;border-radius:3px;background:linear-gradient(90deg,transparent,var(--lime),transparent);animation:buildrun 1.7s ease-in-out infinite}
@keyframes buildrun{from{transform:translateX(-100%)}to{transform:translateX(265%)}}
.build-card[data-look=building] .build-view{background:var(--lime);border-color:var(--lime);color:var(--forest)}
.build-copy{min-width:0;flex:1;display:flex;flex-direction:column;line-height:1.3}
.build-copy strong{font-size:14px;font-weight:650;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.build-copy span{font-size:12px;color:#c4d6b8;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.build-copy .meter{margin-top:6px;height:4px;background:rgba(34,43,35,.14)}
.build-clock{flex:none;font:500 12.5px var(--mono);font-variant-numeric:tabular-nums;color:#e6f6c4}
.build-actions{display:flex;gap:6px;flex:none}
.build-open,.build-view{display:inline-flex;align-items:center;gap:6px;min-height:36px;border-radius:99px;padding:7px 14px;font-size:13px;font-weight:650;text-decoration:none;white-space:nowrap}
.build-open{background:var(--ink);color:#fff;border:1px solid var(--ink)}
.build-view{display:none;background:#ffffff66;border:1px solid #4d6f2d40;color:#23391f}
.build-save{height:36px}
.build-card[data-look=live],.build-card[data-look=near]{background:var(--lime);color:var(--ink)}
.build-card[data-look=live] .build-dot,.build-card[data-look=near] .build-dot{background:var(--forest);box-shadow:0 0 0 4px rgba(35,75,59,.14)}
.build-card[data-look=live] .build-copy span,.build-card[data-look=near] .build-copy span{color:#41513f}
.build-card[data-look=limit],.build-card[data-look=paused]{background:var(--warm);color:var(--warm-ink);box-shadow:0 0 0 1px var(--warm-line),var(--sh-1)}
.build-card[data-look=limit] .build-dot,.build-card[data-look=paused] .build-dot{background:var(--amber);box-shadow:0 0 0 4px rgba(217,151,31,.16)}
.build-card[data-look=limit] .build-copy span,.build-card[data-look=paused] .build-copy span{color:#8a6a2c}
.build-card[data-look=limit] .build-open{background:#fff8e6;color:var(--warm-ink);border-color:var(--warm-line)}
.build-card[data-look=limit] .build-view{border-color:var(--warm-line)}
.build-card[data-look=claim] .build-dot{background:var(--lime)}
.build-card[data-look=failed]{background:#faebe6;color:#7e3223}
.build-card[data-look=failed] .build-dot{background:#c2553f;box-shadow:none}
.build-card[data-look=failed] .build-copy span{color:#95533f}

/* Composer: idea chips (phones, before the first message), then a pill with attach + mic, and a round send button */
.composer{position:relative;flex:none;padding:6px 10px 10px;background:#e7e6db;border-top:1px solid #dad9cc}
.dock-ideas{display:none}
.send-error{font-size:12.5px;color:#8e3a2a;background:#faebe6;border:1px solid #efd0c6;border-radius:9px;padding:8px 12px;margin-bottom:6px}
.composer-row{display:flex;align-items:flex-end;gap:8px}
.composer-box{flex:1;min-width:0;display:flex;align-items:flex-end;gap:2px;background:var(--white);border-radius:24px;padding:3px 4px;box-shadow:0 1px .5px #0b141a24;border:1.5px solid transparent;transition:box-shadow .25s,border-color .25s}
.composer-box:focus-within{border-color:var(--forest);box-shadow:0 0 0 4px rgba(214,246,129,.6)}
.composer-box[data-drag=true]{box-shadow:0 0 0 2px #6e8952}
.composer-box.is-calling{border-color:var(--forest);animation:call-in 1.8s var(--ease) both}
.composer textarea{flex:1;min-width:0;display:block;border:0;background:transparent;resize:none;outline:none;font-size:15px;line-height:1.4;min-height:40px;max-height:160px;padding:9px 4px;overflow-y:auto}
.composer textarea::placeholder{color:#868b7c}
.tool{position:relative;flex:none;width:40px;height:40px;border-radius:50%;border:0;background:transparent;color:#5e6853;display:grid;place-items:center}
.tool:hover{background:#eef1e5;color:var(--ink)}
.tool[data-available=true]{color:var(--forest)}
.tool[data-available=true]::after{content:"";position:absolute;top:8px;right:7px;width:7px;height:7px;border-radius:50%;background:#62d26f;box-shadow:0 0 0 2px var(--white)}
.tool[data-live=true]{background:#e2f5b8;color:var(--forest)}
.tool[data-live=true] .mic-slash{display:none}

/* Mic popover: what voice chat is, and the only place a call starts */
.mic-pop{position:absolute;right:58px;bottom:calc(100% + 4px);z-index:6;width:min(300px,calc(100% - 66px));padding:12px 36px 13px 14px;border-radius:12px;background:var(--ink);color:#e9eee2;box-shadow:0 10px 30px #0000004d;font-size:12.5px;line-height:1.45}
.mic-pop::after{content:"";position:absolute;right:20px;bottom:-5px;width:11px;height:11px;background:var(--ink);transform:rotate(45deg)}
.mic-pop-title{font-size:13.5px;font-weight:650;color:#fff;margin-bottom:3px;text-wrap:balance}
.mic-pop-error{margin-top:6px;color:#ffc9b8}
.mic-pop-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.mic-pop-actions button{min-height:34px;border-radius:99px;padding:6px 14px;font-size:12.5px;font-weight:650;border:1px solid #ffffff3d;background:transparent;color:inherit}
.mic-pop-actions #mic-pop-start{background:var(--lime);border-color:var(--lime);color:var(--forest)}
.mic-pop-actions button:disabled{opacity:.6;cursor:default}
.mic-pop-close{position:absolute;top:6px;right:6px;width:28px;height:28px;border:0;border-radius:50%;background:transparent;color:#b8c4ad;font-size:12px}
.mic-pop-close:hover{background:#ffffff14;color:#fff}
.send{flex:none;width:48px;height:48px;border-radius:50%;border:0;background:var(--forest);color:var(--lime);display:grid;place-items:center;box-shadow:0 8px 20px -10px rgba(35,75,59,.7);transition:background .2s,opacity .2s,transform .1s}
.send svg{margin-left:2px}
.send:hover:not(:disabled){background:var(--green-2)}
.send:active:not(:disabled){transform:scale(.94)}
.send:disabled{background:#b5bdaa;color:#f3f5ec;cursor:default;box-shadow:none}
/* Engineer view: "Send & build" beside Send, and the visitor's phone width for their app ("See it like them"). */
.send-build{flex:none;height:48px;border-radius:99px;border:1.5px solid var(--forest);background:var(--white);color:var(--forest);font:inherit;font-size:13px;font-weight:650;padding:0 14px;white-space:nowrap;transition:background .2s,opacity .2s}
.send-build:hover:not(:disabled){background:#eef3e2}
.send-build:disabled{opacity:.45;cursor:default}
.build-ai{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin:0 2px 6px;font-size:12.5px;color:#4d5a44}
.build-ai[hidden]{display:none}
.build-ai-label{font-weight:650}
.build-ai select{min-height:34px;max-width:100%;border:1px solid #cfd3c2;border-radius:9px;background:var(--white);color:inherit;font:inherit;padding:0 8px}
.build-ai select:disabled{opacity:.5}
.build-ai-note{color:#727a69}
body[data-like=phone] .surface{width:100%;max-width:400px;margin-inline:auto}
body[data-state=fresh] .send:not(:disabled){background:radial-gradient(circle at 34% 28%,#f6ffd9 0,#d6f681 46%,#b3d958 100%);color:var(--forest);box-shadow:0 10px 26px -8px rgba(140,185,40,.75),inset 0 -2px 5px rgba(80,120,20,.18)}
.char-count{display:block;text-align:right;font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums;margin:4px 56px 0 0}
.char-count[data-over=true]{color:#a83624;font-weight:600}
.tray{list-style:none;margin:0 0 6px;padding:0;display:flex;gap:8px;flex-wrap:wrap}
.tray li{position:relative;width:64px;height:64px;border-radius:10px;overflow:hidden;border:2px solid var(--white);background:#fff;box-shadow:0 1px 2px #0b141a24}
.tray img{width:100%;height:100%;object-fit:cover}
.tray button{position:absolute;top:3px;right:3px;width:22px;height:22px;border-radius:50%;border:0;background:#22251fd9;color:#fff;font-size:11px;line-height:1;display:grid;place-items:center}
.tray button::after{content:"";position:absolute;inset:-6px}
.drop-zone{position:absolute;inset:10px;z-index:10;display:grid;place-items:center;border:2px dashed #7f9a5c;border-radius:16px;background:#f3f7e8ee;color:var(--forest);font-weight:650;font-size:15px;pointer-events:none}
.drop-zone span{display:block;text-align:center;font-size:30px;line-height:1;margin-bottom:6px}

/* App panel */
.preview{display:flex;flex-direction:column;min-height:0;min-width:0;background:var(--stage);padding:14px 22px 0}
.preview-bar{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;min-height:38px}
.preview-chat{display:inline-flex;align-items:center;gap:7px;min-height:36px;border:1.5px solid var(--forest);background:var(--lime);color:var(--forest);border-radius:99px;padding:7px 15px;font-size:12.5px;font-weight:700;white-space:nowrap}
.preview-chat:hover{background:#e3fb9e}
.preview-actions{display:flex;gap:8px;flex:none}
.preview-actions button,.preview-actions a{display:inline-flex;align-items:center;gap:6px;min-height:36px;border:1px solid var(--line-2);background:var(--white);border-radius:99px;padding:7px 14px;font-size:12.5px;white-space:nowrap;text-decoration:none;color:var(--ink)}
.preview-actions a{background:var(--ink);border-color:var(--ink);color:var(--white);font-weight:600}
.preview-actions button:hover{background:#fff}
.preview-ready{flex:none;display:flex;align-items:center;justify-content:space-between;gap:15px;background:var(--lime);border:1px solid #c4dd88;border-radius:13px;padding:13px 16px;margin-bottom:12px;color:#28412b}
.preview-ready strong{display:block;font-size:16px;font-weight:650;letter-spacing:-.03em}
.preview-ready div>span{display:block;font-size:12px;margin-top:2px;color:#4c6634}
.preview-ready button{flex:none;border:1px solid #64883b55;background:#ffffff66;border-radius:99px;font-size:12px;font-weight:600;color:#28412b;padding:9px 14px;min-height:38px}
.preview-updating{position:relative;flex:none;display:flex;align-items:center;gap:10px;background:var(--forest);color:#eef4e6;border-radius:13px;padding:11px 16px;margin-bottom:12px;font-size:13px;overflow:hidden}
.preview-updating::after{content:"";position:absolute;left:0;bottom:0;width:36%;height:2px;border-radius:2px;background:linear-gradient(90deg,transparent,var(--lime),transparent);transform:translateX(-100%);animation:sweep 2.6s ease-in-out infinite}
.updating-copy{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.updating-copy b{font-weight:650}
.updating-copy span{color:#c4d6b8}
.preview-updating .build-clock{margin-left:auto}
/* Which version is on screen and how long it took (sandbox publishes only) */
.made{flex:none;display:flex;align-items:center;gap:7px;margin:-3px 0 9px 4px;font-size:11.5px;color:#56634a;min-width:0}
.made svg{flex:none;fill:#7c9b59}
.made span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.surface{position:relative;flex:1;min-height:0;display:flex;flex-direction:column;border-radius:18px;overflow:hidden;border:1px solid #d3d8c6;background:var(--white);box-shadow:var(--sh-2);container:surface/inline-size}
.surface iframe{flex:1;min-height:0;width:100%;border:0;display:block;background:#fff}
.illus{display:inline-block;font:500 9px/1.4 var(--mono);letter-spacing:.1em;text-transform:uppercase;padding:2px 6px;border-radius:4px;background:#ffffff1f;color:#e7efdc}
.preview-foot{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;font-size:12px;color:var(--muted-2)}
.pf-apps{display:flex;align-items:center;gap:8px}
.pf-label{font:500 10px/1 var(--mono);letter-spacing:.14em;text-transform:uppercase}
.pf-apps a{display:block;border-radius:6px}
.pf-apps img{height:30px;width:auto}
.pf-apps .pf-play img{height:45px;margin:-7.5px -6px}
.pf-links{display:flex;align-items:center;gap:14px;min-width:0}
.pf-links a{text-decoration:none;color:var(--muted)}
.pf-links a:hover{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.pf-note{color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}

/* After the first message, before a build: where the app will show up */
.welcome{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;align-items:center;text-align:center;padding:30px 32px;background:radial-gradient(60% 55% at 18% 6%,#eaf6c9 0,transparent 70%),radial-gradient(55% 50% at 92% 20%,#e1efe5 0,transparent 70%),var(--white)}
.welcome>:first-child{margin-top:auto}
.welcome>:last-child{margin-bottom:auto}
.welcome-tile{width:44px;height:50px;margin-bottom:20px;filter:drop-shadow(0 12px 18px rgba(34,43,35,.22))}
.welcome h2{font-size:clamp(34px,4vw,54px);font-weight:700;line-height:1;letter-spacing:-.05em;margin-bottom:14px}
.welcome h2 em{font-family:var(--serif);font-weight:400;font-size:1.1em;color:var(--forest);letter-spacing:-.01em}
.welcome-copy{font-size:15px;color:var(--muted);max-width:420px}
.welcome-steps{list-style:none;margin:24px 0 0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.welcome-steps li{display:flex;align-items:center;gap:8px;padding:6px 14px 6px 6px;border-radius:99px;background:var(--white);border:1px solid var(--line);font-size:13px;color:#3f4d35;box-shadow:var(--sh-1);transition:background .3s,border-color .3s}
.welcome-steps span{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--forest);color:var(--lime);font-size:11px;font-weight:700}
.welcome[data-step="2"] li[data-n="1"]{background:var(--lime-2);border-color:#cfe79c}
.welcome[data-step="2"] li[data-n="1"] span{font-size:0;background:var(--forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='%23d6f681' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat}
.welcome[data-step="2"] li[data-n="2"]{border-color:var(--forest);box-shadow:0 0 0 3px rgba(214,246,129,.6)}

/* While building: the live timeline (server state only) beside an illustration */
.progress{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;padding:32px clamp(22px,4vw,56px);background:radial-gradient(90% 70% at 100% 0%,#2f5d49 0,transparent 62%),var(--forest);color:var(--white)}
.progress-body{margin:auto 0;display:grid;grid-template-columns:minmax(0,1fr);gap:26px;align-items:center;width:100%}
.progress-main{min-width:0}
.eyebrow{display:flex;align-items:center;gap:9px;margin-bottom:16px;font:500 10.5px/1 var(--mono);letter-spacing:.16em;text-transform:uppercase;color:var(--muted)}
.progress .eyebrow{color:#c2d8ab;margin-bottom:14px}
.progress .build-clock{margin-left:4px;padding-left:12px;border-left:1px solid #ffffff38;letter-spacing:.02em;color:#e4eed9}
.progress h2{font-size:clamp(30px,3vw,44px);font-weight:600;letter-spacing:-.045em;line-height:1.05;max-width:520px;margin-bottom:10px}
#progress-copy{font-size:13.5px;line-height:1.55;color:#c6d8bc;max-width:440px}
.progress[data-status=failed]{background:#584939}
.progress[data-status=failed] .watch,.progress[data-status=failed] .assemble{display:none}
.progress :focus-visible{outline-color:var(--lime)}
@container surface (min-width:760px){.progress:not([data-status=failed]) .progress-body{grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:clamp(28px,5cqi,60px)}}

.bts{list-style:none;margin:20px 0 0;padding:0;max-width:460px}
.bts li{position:relative;display:grid;grid-template-columns:22px minmax(0,1fr) auto;column-gap:12px;align-items:start;padding:5px 0 11px}
.bts li:not(.bts-engineer)::before{content:"";position:absolute;left:10.25px;top:31px;bottom:-1px;width:1.5px;border-radius:1px;background:#ffffff24}
.bts li[data-state=done]::before{background:#d6f6815c}
.bts li:nth-last-child(2)::before{display:none}
.bts-mark{position:relative;width:22px;height:22px;border-radius:50%;border:1.5px solid #ffffff40;display:grid;place-items:center}
.bts [data-state=done]>.bts-mark{background:var(--lime);border-color:var(--lime)}
.bts [data-state=done]>.bts-mark::after{content:"";width:9px;height:5px;border:solid var(--forest);border-width:0 0 2px 2px;transform:translateY(-1px) rotate(-45deg)}
.bts [data-state=active]>.bts-mark{border-color:#d6f68140;border-top-color:var(--lime);animation:spin 1s linear infinite}
.bts [data-state=stopped]>.bts-mark{background:#f0b25a;border-color:#f0b25a}
.bts [data-state=stopped]>.bts-mark::after{content:"!";font-size:12px;font-weight:800;color:#3d2a0c;line-height:1}
.bts-copy{min-width:0;padding-top:1px}
.bts-copy b{display:block;font-size:13.5px;font-weight:600;line-height:1.35;color:#fff}
.bts [data-state=waiting] .bts-copy b{color:#a9bfa3;font-weight:500}
.bts-copy small{display:block;font-size:12px;line-height:1.4;color:#b4c9aa;margin-top:2px}
.bts-time{padding-top:2px;font:500 12px/1.35 var(--mono);font-variant-numeric:tabular-nums;color:#d3e3c8;white-space:nowrap}
.bts li.bts-engineer{margin-top:3px;padding-top:12px;border-top:1px dashed #ffffff2e}
.bts .bts-face{border:0;background:none}
.bts-face .face .avatar{width:22px;height:22px;font-size:11px;background:var(--lime);color:var(--forest)}
.bts-face .badge{right:-3px;bottom:-3px;width:9px;height:9px;border-width:2px}
.bts-bell{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#f4d35e}
.bts-bell svg{width:13px;height:13px;fill:none;stroke:#3d3510;stroke-width:2.2;stroke-linejoin:round;stroke-linecap:round}
.watch{margin-top:16px;display:inline-flex;align-items:center;gap:10px;border:1px solid #ffffff33;background:#ffffff0d;color:#eef4e6;border-radius:99px;padding:5px 15px 5px 5px;font-size:12.5px;font-weight:600;text-align:left;transition:background .2s}
.watch:hover{background:#ffffff1f}
.play-icon{position:relative;flex:none;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--lime);color:var(--forest)}
.play-icon svg{fill:currentColor;margin-left:2px}

.assemble{margin:0;min-width:0;display:flex;flex-direction:column;align-items:center;gap:10px}
.asm-win{position:relative;width:100%;max-width:400px;aspect-ratio:4/3;border-radius:14px;overflow:hidden;background:#fffef9;box-shadow:0 26px 60px #0b1a1238,0 0 0 1px #ffffff26}
@container surface (max-width:759px){.asm-win{max-width:340px;aspect-ratio:16/10}}
.asm-bar{height:24px;display:flex;align-items:center;gap:5px;padding:0 10px;background:#eef1e4;border-bottom:1px solid #dfe4d2}
.asm-bar i{width:7px;height:7px;border-radius:50%;background:#cdd5bf}
.asm-url{margin-left:8px;flex:1;max-width:50%;height:9px;border-radius:99px;background:#dde3cf}
.asm-page{position:absolute;inset:24px 0 0;padding:13px 15px;display:flex;flex-direction:column;gap:8px}
.asm-blk{display:block;flex:none;border-radius:6px}
.asm-head{height:20px;background:var(--forest)}
.asm-title{height:10px;width:52%;border-radius:99px;background:#c4d2b0}
.asm-line{height:7px;width:78%;border-radius:99px;background:#e3e8d8}
.asm-cards{flex:1;min-height:30px;max-height:72px;display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.asm-cards i{border-radius:8px;background:#eef5dc;border:1px solid #d6e3bd}
.asm-list{height:26px;display:flex;align-items:center;gap:8px;padding:0 10px;background:#f3f5ec;border:1px solid #e5e9dc}
.asm-list i{height:6px;width:30%;border-radius:99px;background:#d5dcc7}
.asm-list i+i{width:18%;margin-left:auto}
.asm-btn{height:20px;width:36%;border-radius:99px;background:#7c9b59}
.asm-shimmer{position:absolute;inset:0;pointer-events:none;background:linear-gradient(105deg,transparent 30%,#ffffffb3 50%,transparent 70%);transform:translateX(-100%)}
.asm-cursor{position:absolute;left:64%;top:70%;display:block;line-height:0;filter:drop-shadow(0 2px 3px #0000004d)}
.asm-cursor svg{fill:var(--ink);stroke:#fff;stroke-width:1.3;stroke-linejoin:round}
.assemble figcaption{display:flex;align-items:center;gap:8px;font-size:12px;color:#c6d8bc}
@media (prefers-reduced-motion:no-preference){
  .asm-head{animation:asm1 7s infinite both}
  .asm-title,.asm-line{animation:asm2 7s infinite both}
  .asm-cards i{animation:asm3 7s infinite both}
  .asm-cards i:nth-child(2){animation-delay:.15s}.asm-cards i:nth-child(3){animation-delay:.3s}
  .asm-list{animation:asm4 7s infinite both}
  .asm-btn{animation:asm5 7s infinite both}
  .asm-shimmer{animation:asm-shine 7s infinite}
  .asm-cursor{animation:asm-cursor 7s ease-in-out infinite}
}
.preview[data-motion=off] .assemble *,.preview[data-motion=off] .preview-updating::after,.preview[data-motion=off] .bts-mark{animation-play-state:paused!important}

/* The film (home mode): the silent explainer loop with the room's headline and a real button that opens the room */
.film{position:absolute;inset:0;z-index:4;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;container:film/size;
  padding:clamp(20px,5cqh,46px) clamp(18px,4cqw,44px) clamp(14px,3cqh,26px);
  background:radial-gradient(55% 50% at 14% 4%,#e7f6c3 0,rgba(231,246,195,0) 70%),radial-gradient(50% 55% at 94% 26%,#dceee3 0,rgba(220,238,227,0) 70%),radial-gradient(70% 50% at 50% 104%,#e6e7dc 0,rgba(230,231,220,0) 70%),#f4f4ec}
.film::before{content:"";position:absolute;inset:0;pointer-events:none;background-image:radial-gradient(rgba(34,43,35,.07) 1px,transparent 1.25px);background-size:22px 22px;-webkit-mask-image:radial-gradient(120% 80% at 50% 30%,#000 20%,transparent 75%);mask-image:radial-gradient(120% 80% at 50% 30%,#000 20%,transparent 75%)}
.film-copy{position:relative;flex:none;text-align:center;max-width:780px}
.film-kicker{display:inline-flex;align-items:center;gap:9px;margin-bottom:clamp(10px,2.2cqh,18px);font:500 10.5px/1 var(--mono);letter-spacing:.16em;text-transform:uppercase;color:var(--muted)}
.film-h1{font-size:clamp(34px,min(6.4cqw,7.6cqh),70px);line-height:.98;font-weight:700;letter-spacing:-.05em;color:var(--ink);text-wrap:balance}
.film-h1 em{font-family:var(--serif);font-weight:400;font-size:1.14em;letter-spacing:-.015em;color:var(--forest)}
.pd{display:inline-block;width:.2em;height:.2em;margin:0 0 .08em .05em;border-radius:50%;vertical-align:baseline;background:radial-gradient(circle at 34% 28%,#fbffe8 0,#e3fa9c 30%,#c7ea6a 62%,#95bf3c 100%);box-shadow:0 4px 10px -3px rgba(110,150,30,.55),inset 0 -2px 4px rgba(70,110,20,.25)}
.film-sub{margin:clamp(8px,1.8cqh,14px) auto 0;max-width:34ch;font-size:clamp(14.5px,min(1.9cqw,2.2cqh),18px);line-height:1.45;color:#4b574c}
.film-stage{position:relative;flex:1 1 auto;min-height:0;max-height:calc((100cqw - 60px) * 9 / 16 + 70px);width:100%;margin-top:clamp(14px,3cqh,30px);display:flex;flex-direction:column;align-items:center;justify-content:center;container:stage/size} /* tall panels center the headline and the film together */
.film-frame{position:relative;width:min(100cqw,calc((100cqh - 64px) * 16 / 9));aspect-ratio:16/9;border-radius:clamp(12px,1.6cqw,20px);overflow:hidden;background:#e7eedb;box-shadow:0 34px 70px -36px rgba(22,40,30,.6),0 10px 24px -14px rgba(22,40,30,.22),0 0 0 1px rgba(34,43,35,.07);cursor:pointer}
.film-poster,.film-poster img,.film-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.film-video{opacity:0;transition:opacity .7s var(--ease);background:transparent}
.film[data-playing=true] .film-video{opacity:1}
.film-sound{position:absolute;z-index:2;top:14px;right:14px;display:inline-flex;align-items:center;gap:9px;height:38px;padding:0 15px 0 5px;border-radius:99px;border:1px solid rgba(255,255,255,.8);background:rgba(255,254,249,.72);-webkit-backdrop-filter:blur(14px) saturate(1.3);backdrop-filter:blur(14px) saturate(1.3);box-shadow:0 12px 30px -16px rgba(34,43,35,.55);font-size:13px;font-weight:650;color:var(--ink);transition:background .2s,transform .2s var(--ease)}
.film-sound:hover{background:rgba(255,254,249,.92);transform:translateY(-1px)}
.film-sound-ico{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--forest);color:var(--lime)}
.film-sound-ico svg{width:12px;height:12px;margin-left:2px}
body:not([data-film=ready]) .film-sound,body:not([data-film=ready]) .watch{display:none}
@container stage (max-width:600px){.film-sound{top:9px;right:9px;height:32px;padding:0 12px 0 3px;gap:7px;font-size:12px}.film-sound-ico{width:26px;height:26px}}
.film-cta{position:relative;z-index:2;flex:none;margin-top:max(-12px,-1.4cqw);display:flex;flex-direction:column;align-items:center;gap:9px}
.film-open{display:inline-flex;align-items:center;gap:12px;height:54px;padding:0 8px 0 26px;border-radius:99px;border:0;background:var(--forest);color:#fff;font-size:16px;font-weight:650;letter-spacing:-.01em;box-shadow:0 18px 36px -16px rgba(22,48,36,.75),0 0 0 4px rgba(244,244,236,.9);transition:transform .25s var(--ease),background .2s,box-shadow .25s}
.film-open:hover{background:var(--forest-3);transform:translateY(-1px);box-shadow:0 22px 40px -16px rgba(22,48,36,.8),0 0 0 4px rgba(244,244,236,.9)}
.film-open:active{transform:scale(.98)}
.film-open-ico{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--lime);color:var(--forest)}
.film-open-ico svg{width:18px;height:18px}
.film-note{font:500 10.5px/1 var(--mono);letter-spacing:.14em;text-transform:uppercase;color:var(--muted-2)}
.film :focus-visible{outline-color:var(--forest)}

/* The sound film: only after a tap */
.filmdlg{border:0;padding:0;width:min(1100px,calc(100vw - 32px));background:transparent;overflow:visible}
.filmdlg::backdrop{background:rgba(12,20,16,.84)}
.filmdlg-frame{aspect-ratio:16/9;border-radius:18px;overflow:hidden;background:#101712;box-shadow:0 40px 90px -30px rgba(0,0,0,.7)}
.filmdlg-frame video{display:block;width:100%;height:100%;background:#101712}
.filmdlg-close{position:absolute;right:-4px;top:-50px;width:40px;height:40px;border-radius:50%;border:0;background:rgba(255,255,255,.16);color:#fff;display:grid;place-items:center}
.filmdlg-close:hover{background:rgba(255,255,255,.26)}
.filmdlg-close svg{width:16px;height:16px}

/* Sheets: the info sheet and the save / sign-in sheet */
dialog{color:var(--ink)}
.sheet{border:0;padding:0;width:min(440px,calc(100vw - 32px));max-height:min(88vh,760px);max-height:min(88dvh,760px);border-radius:22px;background:var(--white);color:var(--ink);box-shadow:var(--sh-3);overflow:auto}
.sheet::backdrop,.lightbox::backdrop{background:rgba(20,32,25,.5);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.sheet-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:12px;padding:18px 16px 14px 18px;background:var(--white);border-bottom:1px solid var(--line)}
.group-avatar{flex:none;width:34px;height:39px}
.sheet-head div{flex:1;min-width:0}
.sheet-head h2{font-size:18px;font-weight:650;letter-spacing:-.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sheet-head p{font-size:12.5px;color:var(--muted)}
.sheet-close{flex:none;width:36px;height:36px;border-radius:50%;border:0;background:#efeee4;color:var(--ink);display:grid;place-items:center}
.sheet-close:hover{background:#e5e4d8}
.sheet-close svg{width:15px;height:15px}
.sheet-section{padding:14px 18px;border-bottom:1px solid var(--line)}
.sheet-section:last-child{border-bottom:0;padding-bottom:20px}
.sheet-section h3{font:500 10.5px/1 var(--mono);letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin-bottom:11px}
.people{list-style:none;margin:0 0 10px;padding:0}
.people li{display:flex;align-items:center;gap:11px;padding:6px 0}
.people .face .avatar{width:34px;height:34px;font-size:15px}
.people .face .avatar-ai{width:30px;height:34px}
.people .badge{border-color:var(--white)}
.people b{display:flex;align-items:center;gap:6px;font-size:14px;font-weight:600}
.people small{display:block;font-size:12.5px;color:var(--muted)}
.people small.is-on{color:var(--read);font-weight:600}
.sheet-note{font-size:13px;color:var(--muted);line-height:1.5}
.sheet-note .tag-ai{vertical-align:1px}
.faq details{border-top:1px solid var(--line);padding:9px 0}
.faq details:first-of-type{border-top:0;padding-top:0}
.faq summary{cursor:pointer;font-size:14px;font-weight:600;list-style:none;border-radius:6px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";float:right;color:var(--muted-2);font-weight:500}
.faq details[open] summary::after{content:"–"}
.faq p{margin:6px 0 0;font-size:13px;color:var(--muted)}
.privacy{margin:0 0 10px;padding:0 0 0 18px;font-size:13px;line-height:1.5;color:#3f4538}
.privacy li+li{margin-top:5px}
.sheet-links{margin:0 0 12px;font-size:13px}
.sheet-apps{display:flex;align-items:center;gap:10px;margin:0}
.sheet-apps img{height:36px;width:auto}
.sheet-apps .pf-play img{height:54px;margin:-9px -8px}

.claim-sheet{padding:28px 24px 22px;width:min(420px,calc(100vw - 32px))}
.claim-sheet .sheet-close{position:absolute;right:14px;top:14px}
.claim-tile{width:38px;height:43px;margin-bottom:16px}
.claim-sheet h2{font-size:27px;font-weight:700;letter-spacing:-.035em;line-height:1.05;padding-right:36px}
.claim-copy{margin:10px 0 14px;font-size:14.5px;color:var(--muted)}
.claim-keeps{list-style:none;margin:0 0 18px;padding:0;display:grid;gap:7px}
.claim-keeps li{display:flex;gap:9px;align-items:center;font-size:14px}
.claim-keeps svg{width:18px;height:18px;padding:3px;border-radius:50%;background:var(--lime-2);color:var(--forest);flex:none}
.btn-google{width:100%;height:48px;display:flex;align-items:center;justify-content:center;gap:10px;border-radius:99px;border:1px solid var(--line-2);background:#fff;font-weight:650;font-size:15px}
.btn-google:hover{background:#f7f7f1}
.btn-google svg{width:19px;height:19px}
.or{display:flex;align-items:center;gap:10px;margin:12px 0;font-size:12px;color:var(--muted-2)}
.or::before,.or::after{content:"";flex:1;height:1px;background:var(--line)}
.email-row{display:flex;gap:8px}
.email-row input{flex:1;min-width:0;height:48px;padding:0 16px;border-radius:99px;border:1px solid var(--line-2);background:#fff;font-size:16px;outline:none}
.email-row input:focus{border-color:var(--forest);box-shadow:0 0 0 4px rgba(214,246,129,.6)}
.btn-code{flex:none;height:48px;padding:0 17px;border-radius:99px;border:0;background:var(--forest);color:var(--lime);font-weight:650;font-size:14px}
.btn-code:hover{background:var(--forest-3)}
.btn-code:disabled,.btn-google:disabled{opacity:.6;cursor:default}
.claim-sent{font-size:14px;color:var(--muted);margin-bottom:10px;overflow-wrap:anywhere}
.claim-sent b{color:var(--ink)}
.claim-link{margin-top:10px;border:0;background:none;padding:4px 0;font-size:13px;color:var(--forest);text-decoration:underline;text-underline-offset:3px}
.claim-error{margin-top:12px;font-size:13px;color:#8e3a2a;background:#faebe6;border:1px solid #efd0c6;border-radius:10px;padding:8px 12px}
.claim-fine{margin:16px 0 0;text-align:center;font:500 10.5px/1 var(--mono);letter-spacing:.14em;text-transform:uppercase;color:var(--muted-2)}
.claim-room-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.claim-room-list button{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:52px;padding:8px 14px;border-radius:14px;border:1px solid var(--line-2);background:#fff;text-align:left}
.claim-room-list button:hover{border-color:var(--forest);background:var(--lime-3)}
.claim-room-list b{display:block;font-size:14px;font-weight:650}
.claim-room-list small{display:block;font-size:12px;color:var(--muted)}

/* Screenshot viewer */
.lightbox{border:0;padding:0;background:transparent;max-width:min(94vw,1200px);max-height:94vh;max-height:94dvh;overflow:visible}
.lightbox img{max-width:min(94vw,1200px);max-height:84vh;max-height:84dvh;border-radius:10px;background:#fff;box-shadow:0 20px 60px #0008;margin:auto}
.lightbox-close{display:flex;align-items:center;gap:8px;margin:0 0 10px auto;border:1px solid #ffffff4d;background:#ffffff1a;color:#fff;border-radius:99px;padding:8px 14px;font-size:13px;min-height:38px}

@keyframes blink{50%{opacity:.3}}
@keyframes pulse{50%{box-shadow:0 0 0 7px rgba(214,246,129,.05)}}
@keyframes tabdot{0%,80%,100%{opacity:.15}40%{opacity:1}}
@keyframes ring{0%{box-shadow:0 0 0 0 #d6f681aa}70%{box-shadow:0 0 0 8px #d6f68100}100%{box-shadow:0 0 0 0 #d6f68100}}
@keyframes typing{0%,60%,100%{transform:translateY(0);opacity:.5}30%{transform:translateY(-4px);opacity:1}}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes sweep{from{transform:translateX(-100%)}to{transform:translateX(290%)}}
@keyframes rise{from{opacity:0;transform:translate3d(0,12px,0)}}
@keyframes drop{from{opacity:0;transform:translate3d(0,-8px,0)}}
@keyframes call-in{0%{box-shadow:0 0 0 0 rgba(214,246,129,.95),0 0 0 0 rgba(35,75,59,.25)}35%{box-shadow:0 0 0 7px rgba(214,246,129,.85),0 0 30px 6px rgba(150,200,60,.35)}100%{box-shadow:0 0 0 4px rgba(214,246,129,.6),0 0 0 0 rgba(150,200,60,0)}}
@keyframes asm1{0%,2%{opacity:0;transform:translateY(8px)}8%,86%{opacity:1;transform:none}94%,100%{opacity:0;transform:none}}
@keyframes asm2{0%,9%{opacity:0;transform:translateX(-10px)}15%,86%{opacity:1;transform:none}94%,100%{opacity:0;transform:none}}
@keyframes asm3{0%,17%{opacity:0;transform:scale(.9)}24%,86%{opacity:1;transform:none}94%,100%{opacity:0;transform:none}}
@keyframes asm4{0%,28%{opacity:0;transform:translateY(8px)}35%,86%{opacity:1;transform:none}94%,100%{opacity:0;transform:none}}
@keyframes asm5{0%,38%{opacity:0;transform:scale(.85)}45%,86%{opacity:1;transform:none}94%,100%{opacity:0;transform:none}}
@keyframes asm-shine{0%,48%{transform:translateX(-100%)}72%,100%{transform:translateX(100%)}}
@keyframes asm-cursor{0%,4%{left:72%;top:88%}22%{left:40%;top:30%}38%{left:62%;top:56%}52%,58%{left:21%;top:76%;transform:none}61%{transform:scale(.8)}65%,84%{left:21%;top:76%;transform:none}100%{left:72%;top:88%}}

/* Fresh home: nothing is in the room yet; the header offers Sign in and the build card waits */
body[data-state=fresh] .build-card{display:none}

@media (min-width:1600px){.layout{grid-template-columns:500px minmax(0,1fr)}.preview{padding:18px 28px 0}}
@media (max-width:1000px){
  .layout{grid-template-columns:380px minmax(0,1fr)}.preview{padding:12px 12px 0}.preview-bar{flex-wrap:wrap}
  .head-bar{padding:0 4px 0 6px;gap:4px}
  .head-copy b{font-size:15px}
  .head-copy small{font-size:12px}
  .eng-bar{padding-left:10px;font-size:12px}
  .call{padding:7px 6px 7px 10px;gap:8px}
  .call-actions button{padding:6px 11px}
  .value ul{grid-template-columns:1fr}
  .pf-label,.pf-copy{display:none}
  .btn-g .lg{display:none}
}
@media (max-width:1000px) and (min-width:721px){.empty,.card{margin-left:33px}}

/* Phone: header with Chat | Your app tabs, one panel at a time. Home mode starts on the film. */
@media (max-width:720px){
  .layout{display:flex;flex-direction:column}
  .head{flex:none;border-right:0;box-shadow:0 1px 3px #0003}
  .head-bar{height:58px;padding:0 4px 0 8px}
  .head-tile{width:28px;height:32px}
  .view-tabs{display:flex;height:42px;padding:0 6px;border-top:1px solid rgba(255,255,255,.07)}
  .view-tabs button{position:relative;flex:1;border:0;background:transparent;font-size:14px;font-weight:600;letter-spacing:.01em;color:#b5cba6;display:inline-flex;align-items:center;justify-content:center;gap:7px}
  .view-tabs button[aria-selected=true]{color:#fff}
  .view-tabs button[aria-selected=true]::after{content:"";position:absolute;left:14%;right:14%;bottom:0;height:3px;border-radius:3px 3px 0 0;background:var(--lime)}
  body[data-state=fresh] .view-tabs{display:none}
  body[data-state=room] .view-tabs{animation:drop .38s var(--ease) both}
  .tab-dot{width:8px;height:8px;border-radius:50%;background:var(--lime)}
  .tab-building{margin-left:-3px;font-weight:500;color:var(--lime)}
  .tab-dots i{font-style:normal;animation:tabdot 1.2s infinite both}
  .tab-dots i:nth-child(2){animation-delay:.2s}
  .tab-dots i:nth-child(3){animation-delay:.4s}
  .tab-count{min-width:18px;height:18px;padding:0 5px;border-radius:99px;background:var(--lime);color:var(--forest);font-size:10.5px;font-weight:700;display:inline-grid;place-items:center}
  .chat,.preview{flex:1;min-height:0;width:100%}
  .chat{border-right:0}
  body[data-view=app] .chat,body[data-view=film] .chat,body[data-view=chat] .preview{display:none}
  .scroll{padding:10px 8px 6px}
  .bubble{font-size:15px;max-width:86%}
  .msg--in .bubble{max-width:calc(100% - 40px)}
  .empty{margin-left:0}
  .value{max-width:none}
  .value ul{grid-template-columns:1fr 1fr;gap:0 10px}
  .value li{font-size:11.5px}
  .value strong{font-size:12.5px}
  .card{margin-left:35px}
  .build-card{margin:4px 8px}
  .build-view{display:inline-flex}
  .build-view~.build-open{display:none} /* phones preview in the app tab, which has its own Open */
  .composer{padding:6px 6px max(8px,env(safe-area-inset-bottom))}
  body[data-keyboard=up] .composer{padding-bottom:8px} /* the keyboard covers the home indicator */
  .composer textarea{font-size:16px}
  body[data-state=fresh] .composer{background:#ecebe1}
  body[data-state=fresh] .empty .ideas{display:none}
  body[data-state=fresh] .dock-ideas{display:flex;gap:7px;overflow-x:auto;margin:0 -6px;padding:2px 8px 8px;scrollbar-width:none;-webkit-mask-image:linear-gradient(90deg,#000 88%,transparent);mask-image:linear-gradient(90deg,#000 88%,transparent)}
  .dock-ideas::-webkit-scrollbar{display:none}
  .dock-ideas button{flex:none;height:36px;padding:0 14px;border-radius:99px;border:1px solid var(--line-2);background:var(--white);font-size:13.5px;color:#334234;box-shadow:var(--sh-1);white-space:nowrap}
  .preview{padding:10px 10px 0}
  .preview-bar{margin-bottom:10px;gap:8px;flex-wrap:nowrap}
  .preview-chat{font-size:12px;padding:6px 12px}
  .preview-actions button,.preview-actions a{padding:6px 11px;font-size:12px}
  .preview-ready{padding:11px 13px;gap:10px}
  .preview-ready strong{font-size:15px}
  .preview-ready div>span{font-size:11.5px}
  .preview-ready button{font-size:11.5px;padding:8px 10px}
  .welcome{padding:24px 18px}
  .welcome h2{font-size:34px}
  .welcome-copy{font-size:14px}
  .progress{padding:24px 18px}
  .progress h2{font-size:30px}
  .bts li{padding-bottom:9px}
  .bts-copy b{font-size:13px}
  .updating-copy{font-size:12.5px}
  .preview-updating{padding:10px 13px}
  .made{font-size:11px;margin-left:2px}
  .preview-foot{display:none}
  .sheet{width:100vw;max-width:100vw;max-height:90vh;max-height:90dvh;margin:auto auto 0;border-radius:20px 20px 0 0}
  .claim-sheet{padding:26px 18px max(20px,env(safe-area-inset-bottom))}
  .filmdlg-close{right:0;top:-48px}

  /* The film is the first screen: full bleed under the header, the button over its bottom 22% */
  body[data-view=film] .preview{padding:0;background:#eef0e3}
  body[data-view=film] .preview-bar,body[data-view=film] .preview-ready,body[data-view=film] .preview-updating,body[data-view=film] .made{display:none}
  body[data-view=film] .surface{border:0;border-radius:0;box-shadow:none}
  .film{padding:0}
  .film::before{display:none}
  .film-copy{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .film-stage{position:absolute;inset:0;margin:0;max-height:none;container-type:normal}
  .film-frame{position:absolute;inset:0;width:auto;aspect-ratio:auto;border-radius:0;box-shadow:none;container-type:size}
  /* The phone cut keeps its words above 78% of its height (and inside 10% side margins): crop so that line meets the button's zone */
  .film-poster img,.film-video{--fh:max(100cqh,100cqw * 16 / 9);object-position:50% calc(-1 * clamp(0px, .78 * var(--fh) - 100cqh + max(22cqh,132px), var(--fh) - 100cqh))}
  .film-sound{top:12px;right:12px;height:34px;padding:0 13px 0 4px;font-size:12.5px;gap:7px}
  .film-sound-ico{width:26px;height:26px}
  .film-cta{position:absolute;left:0;right:0;bottom:0;height:max(22cqh,132px);margin:0;justify-content:center;gap:10px;padding:18px 18px max(14px,env(safe-area-inset-bottom));background:linear-gradient(to bottom,rgba(238,240,227,0),rgba(238,240,227,.88) 34%,rgba(238,240,227,.96))}
  .film-open{width:min(100%,360px);justify-content:space-between;height:58px;padding:0 9px 0 24px;font-size:17px;box-shadow:0 18px 36px -16px rgba(22,48,36,.75)}
  .film-open-ico{width:42px;height:42px}
}
@media (max-width:400px){.sp-long{display:none}.save-pill{padding:0 12px 0 10px}}
@media (max-width:370px){.value ul{grid-template-columns:1fr}.btn-g,.btn-e{min-width:0}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
