/* Bri's Talk room, copied from her approved sketch (sketches/index.html, 2026-10-23): one calm column, the orb big
   in the middle, only Robotica's latest line under it, a hint, and typing one tap away. Paper, ink, blush, Bodoni
   Moda / DM Sans and the orb are the front page's own. Everything here applies only once her passkey opens the door. */
.talk-status,.talk-words,.talk-corner{display:none}
/* The top bar and the four doors (room-doors.css) are for Bri only: hidden until her passkey opens the door. */
html:not([data-room="open"]) .room-top,html:not([data-room="open"]) .room-doors{display:none!important}
html[data-room="open"] .room-top{position:fixed;z-index:20;top:0;left:0;right:0;max-width:560px;margin:0 auto;padding:max(20px,env(safe-area-inset-top)) 20px 10px;background:var(--paper)}
html[data-room="open"] .talk-corner{display:block;position:fixed;z-index:21;top:max(6px,env(safe-area-inset-top));right:max(0px,calc(50% - 288px));width:min(132px,30vw);opacity:.32;mix-blend-mode:multiply;pointer-events:none}

html[data-room="open"]{--orb-size:clamp(210px,min(70vw,40svh),340px)}
html[data-room="open"],html[data-room="open"] body{overflow-x:clip}
/* A focused field (Type instead) scrolls clear of the fixed top bar and the four doors on short screens. */
html[data-room="open"]{scroll-padding:calc(90px + env(safe-area-inset-top)) 0 calc(110px + env(safe-area-inset-bottom))}
html[data-room="open"] .page{max-width:560px;margin:0 auto;min-height:100svh;padding:calc(82px + env(safe-area-inset-top)) 20px calc(118px + env(safe-area-inset-bottom));overflow:visible}
html[data-room="open"] .page>main{flex:none;padding:6svh 0 0;gap:0;justify-content:flex-start}
html[data-room="open"] .identity-copy,html[data-room="open"] .drawn-name-home,html[data-room="open"] .tagline,html[data-room="open"] .song,html[data-room="open"] .door-controls,html[data-room="open"] .front-door,html[data-room="open"] .front-door-player,html[data-room="open"] .more-nudge,html[data-room="open"] .art-backdrop,html[data-room="open"] .dance-stage,html[data-room="open"] .letter-stage,html[data-room="open"] .scene-stage,html[data-room="open"] footer .credit{display:none!important}

/* The orb, with mute and the X at its lower corners while a conversation is open. */
html[data-room="open"] .orb-row{width:var(--orb-size);margin:0 auto}
html[data-room="open"] .talk-button{display:grid;visibility:hidden;top:auto;bottom:0;width:56px;height:56px;background:var(--paper);border-color:#d9b7c6;color:#513745}
html[data-room="open"][data-talk] .talk-button{visibility:visible}
html[data-room="open"] .talk-mute{left:-10px}
html[data-room="open"] .talk-end{right:-10px}
html[data-room="open"] .talk-button svg{width:24px;height:24px}
html[data-room="open"][data-talk="muted"] .talk-mute{background:#f8e7ee;border-color:#d9b7c6;color:#513745}
html[data-room="open"] .orb-stage:focus-visible{outline:2px solid #513745;outline-offset:10px}

/* Her words, a hint, and Type instead. */
html[data-room="open"] .page>footer{flex:none;width:100%;padding:0;border:0;text-align:center}
html[data-room="open"] .room{display:flex;flex-direction:column;align-items:center;width:100%;max-width:none;margin:0;padding:0;border:0;border-radius:0;background:transparent}
html[data-room="open"] .talk-words{display:flex;flex-direction:column;align-items:center;order:0;width:100%}
.you-said{min-height:26px;margin:34px 0 0;max-width:26em;font-size:17px;line-height:1.5;color:var(--mid)}
.her-line{margin:6px 0 0;padding:0 .15em;max-width:15em;max-height:34svh;overflow-x:hidden;overflow-y:auto;scrollbar-width:none;color:var(--ink);font:italic 400 clamp(26px,6.6vw,34px)/1.22 var(--display);letter-spacing:-.02em;white-space:pre-line;overflow-wrap:anywhere}
.her-line:empty{display:none}
.her-line.is-long{max-width:22em;font-size:21px;line-height:1.35}
.talk-hint{margin:26px 0 0;font-size:17px;color:var(--mid)}
.talk-type{margin-top:14px}
html[data-typing] .talk-type{display:none}

/* Jobs she offers to send, and notices about her answer, show under her line. The talk history waits for Past talks. */
html[data-room="open"] .room-transcript{order:1;width:100%;max-height:none;overflow:visible;padding:0;text-align:left}
html[data-room="open"] .room-jobs[aria-label="Chat history"],html[data-room="open"] .needs-notices,html[data-room="open"] .room-reply,html[data-room="open"] .room-voice:not(.room-stop),html[data-room="open"] .talk-model{display:none!important}
html[data-room="open"] .room-jobs{max-width:none;margin:16px 0 0;display:flex;flex-direction:column;gap:12px}
html[data-room="open"] .room-jobs[hidden]{display:none}
html[data-room="open"] .room-choice-status{margin:12px auto 0;font-size:16px;color:var(--mid)}
.room-choice-status:empty{display:none}

/* Typing: a soft field and a pink send button, as in the sketch. */
.talk-composer{display:none}
html[data-room="open"][data-typing] .talk-composer{display:flex;order:2;align-items:center;gap:8px;width:100%;margin-top:16px}
.talk-composer .room-form{flex:1;min-width:0;display:flex;gap:8px;margin:0}
.talk-composer .room-field{flex:1;min-width:0;max-width:none;min-height:56px;margin:0;padding:0 20px;border:1px solid #d9b7c6;border-radius:999px;background:#fdf6f9;font:400 17px/1.4 var(--sans);text-align:left}
.talk-composer .room-field:focus-visible{outline:2px solid #513745;outline-offset:2px}
.talk-send{flex:none;width:56px;height:56px;border:0;border-radius:50%;background:var(--accent);color:#fff;font:400 22px var(--sans);cursor:pointer}
.talk-mic{display:none}
html[data-room="open"] .room-stop{flex:none;width:56px;height:56px;margin:0;display:grid;place-items:center;border:1px solid #d9b7c6;border-radius:50%;background:var(--paper);color:#513745;font:400 14px var(--sans);cursor:pointer}
html[data-room="open"] .room-stop[hidden]{display:none}

@media(max-height:620px){html[data-room="open"]{--orb-size:clamp(150px,min(60vw,34svh),240px)}html[data-room="open"] .page>main{padding-top:2svh}.you-said{margin-top:18px}.talk-hint{margin-top:14px}}
