/* The real Build Room, sharing the homepage API and browser room. */
/* ---------- the floating Build Room ---------- */
.br { position: absolute; inset: 0; z-index: 30; pointer-events: none; font-size: 15px; color: var(--ink); }
.br--live { position: fixed; z-index: 60; }
.br-dock { position: absolute; left: 0; top: 0; width: 62px; height: 62px; pointer-events: auto; }
.br-head { position: relative; width: 62px; height: 62px; border-radius: 50%; border: 0; padding: 0; cursor: grab; touch-action: none; display: grid; place-items: center; background: radial-gradient(circle at 32% 26%, #356650, #142820 70%); box-shadow: 0 12px 30px rgba(8, 20, 14, .38), 0 0 0 3px var(--lime), 0 0 0 7px rgba(214, 246, 129, .22); }
.br-head > svg { width: 27px; height: 31px; }
.br-head:active { cursor: grabbing; }
.br-face { position: absolute; right: -5px; bottom: -5px; width: 27px; height: 27px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 12.5px; line-height: 23px; text-align: center; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.br-badge { position: absolute; top: -5px; right: -5px; min-width: 23px; height: 23px; border-radius: 12px; padding: 0 6px; background: var(--red); color: #fff; font-weight: 700; font-size: 12.5px; line-height: 19px; text-align: center; border: 2px solid #fff; }
.br-peek { position: absolute; right: calc(100% + 12px); top: 50%; margin-top: -30px; width: max-content; max-width: min(300px, 64vw); padding: 10px 14px 11px; border-radius: 18px 18px 5px 18px; background: #fff; color: var(--ink); box-shadow: 0 12px 34px rgba(10, 22, 16, .22); font-size: 14.5px; line-height: 1.35; cursor: pointer; opacity: 0; visibility: hidden; }
.br-peek b { display: block; font-size: 12.5px; color: var(--forest); margin-bottom: 2px; }
.br[data-side="left"] .br-peek { right: auto; left: calc(100% + 12px); border-radius: 18px 18px 18px 5px; }
.br-panel { position: absolute; display: flex; flex-direction: column; background: #fbfaf6; border-radius: 24px; overflow: hidden; pointer-events: auto; box-shadow: 0 30px 90px rgba(8, 18, 13, .38), 0 0 0 1px rgba(20, 35, 28, .1); }
.br-top { display: flex; align-items: center; gap: 10px; padding: 11px 10px 11px 14px; background: var(--forest-d); color: #fff; flex: none; }
.br-top-tile { width: 29px; height: 33px; flex: none; }
.br-top-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.br-top-copy b { font-size: 15.5px; font-weight: 650; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-top-copy small { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: rgba(255, 255, 255, .74); white-space: nowrap; overflow: hidden; }
.br-dot { width: 7px; height: 7px; border-radius: 50%; background: #86e08f; flex: none; }
.br-btn { width: 36px; height: 36px; border-radius: 11px; border: 0; background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.br-btn:hover { background: rgba(255, 255, 255, .18); }
.br-btn svg { width: 18px; height: 18px; }
.br-body { flex: 1; min-height: 0; display: flex; }
.br-scroll { flex: 1; min-width: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 12px 10px; background: #f1efe7; display: flex; flex-direction: column; }
.br-log { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.br-extra:empty { display: none; }
.br-side { display: none; width: 320px; flex: none; border-left: 1px solid var(--line); padding: 20px 18px; overflow-y: auto; background: #fbfaf6; }
.br--live[data-state="max"] .br-side { display: block; }
.br-m { display: flex; gap: 8px; align-items: flex-end; max-width: 94%; }
.br-m--out { align-self: flex-end; flex-direction: row-reverse; max-width: 86%; }
.br-av { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.br-av-ai { width: 25px; height: 29px; border-radius: 0; }
.br-av-p { display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 12.5px; }
.br-m--cont .br-av { visibility: hidden; }
.br-b { background: #fff; border-radius: 17px 17px 17px 6px; padding: 8px 12px 6px; box-shadow: 0 1px 2px rgba(20, 30, 25, .07); font-size: 15px; line-height: 1.42; min-width: 0; }
.br-m--out .br-b { background: var(--forest); color: #fff; border-radius: 17px 17px 6px 17px; }
.br-m--pending { opacity: .7; }
.br-who { margin: 0 0 2px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 650; }
.br-name { color: var(--forest); }
.br-ai { font-weight: 750; font-size: 10px; line-height: 1; letter-spacing: .03em; background: var(--lime); color: #1c2b20; padding: 3px 5px; border-radius: 5px; border: 0; }
.br-ai-btn { cursor: pointer; }
.br-role { font-weight: 500; color: var(--muted); }
.br-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.br-text a { color: inherit; }
.br-meta { display: flex; justify-content: flex-end; align-items: center; gap: 4px; min-height: 12px; font-size: 11px; color: var(--muted); margin-top: 1px; }
.br-m--out .br-meta { color: rgba(255, 255, 255, .7); }
.br-meta svg { width: 14px; height: 14px; }
.br-media { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 2px 0 6px; }
.br-media--1 { grid-template-columns: 1fr; }
.br-media img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 11px; display: block; }
.br-media img { cursor: zoom-in; }
.br-media img:focus-visible { outline: 3px solid #8aaf58; outline-offset: 2px; }
/* A message's photo opened over the whole page (br.js lightbox): fits the screen; tapped, full size to scroll around. */
.br-lightbox { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; overflow: auto; overscroll-behavior: contain; padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); background: rgba(8, 14, 11, .92); cursor: zoom-out; }
.br-lightbox[hidden] { display: none !important; }
.br-lightbox img { display: block; max-width: 100%; max-height: calc(100dvh - 32px); border-radius: 8px; background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); cursor: zoom-in; }
.br-lightbox.is-full { place-items: start center; }
.br-lightbox.is-full img { max-width: none; max-height: none; cursor: zoom-out; }
.br-lightbox-x { position: fixed; top: max(14px, env(safe-area-inset-top)); right: 14px; width: 42px; height: 42px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, .16); color: #fff; display: grid; place-items: center; cursor: pointer; }
.br-lightbox-x:hover { background: rgba(255, 255, 255, .26); }
.br-lightbox-x svg { width: 20px; height: 20px; display: block; }
.br-files { display: flex; flex-direction: column; gap: 4px; margin: 2px 0 4px; }
.br-file { display: flex; align-items: center; gap: 9px; padding: 8px 11px 8px 9px; border-radius: 11px; background: #f1efe7; min-width: 0; }
.br-file svg { width: 20px; height: 20px; flex: none; color: var(--forest); }
.br-file-label { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.br-file-label b { font-size: 13.5px; font-weight: 650; overflow-wrap: anywhere; }
.br-file-label small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.br-ev { align-self: center; display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); background: rgba(255, 255, 255, .8); border-radius: 999px; padding: 5px 12px 5px 7px; max-width: 94%; }
.br-ev .br-av { width: 20px; height: 20px; font-size: 10px; }
.br-ev svg { width: 15px; height: 15px; }
.br-ev--live { background: #e3f4cc; color: #285319; }
.br-ev--ping { background: #fff2d6; color: #7a4a00; }
.br-ev--plain { background: transparent; color: var(--muted); font-weight: 500; }
.br-card { margin: 8px 0 2px; display: flex; gap: 10px; align-items: center; border-radius: 12px; padding: 9px 11px; background: #fff6e3; border: 1px solid #f2c97f; color: #5b3b00; }
.br-card svg { width: 18px; height: 18px; flex: none; }
.br-card b { display: block; font-size: 13.5px; overflow-wrap: anywhere; }
.br-card small { font-size: 12px; opacity: .85; }
.br-dots { display: inline-flex; gap: 4px; padding: 6px 2px; }
.br-dots i { width: 7px; height: 7px; border-radius: 50%; background: #9aa39d; animation: dot 1.1s infinite; }
.br-dots i:nth-child(2) { animation-delay: .15s; } .br-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 30% { transform: translateY(-4px); background: var(--forest); } }
.br .is-new { animation: msgIn .38s cubic-bezier(.2, .85, .25, 1.1); }
@keyframes msgIn { from { transform: translateY(12px) scale(.96); opacity: 0; } }
.br-compose { flex: none; padding: 10px 12px 12px; background: #fbfaf6; border-top: 1px solid var(--line); }
.br-row { display: flex; gap: 6px; align-items: flex-end; background: #fff; border: 1.5px solid #d6dbd2; border-radius: 22px; padding: 5px 5px 5px 6px; transition: border-color .2s, box-shadow .2s; }
.br-row:focus-within { border-color: var(--forest); box-shadow: 0 0 0 4px rgba(35, 75, 59, .1); }
.br-input { flex: 1; min-width: 0; border: 0; outline: 0; resize: none; background: transparent; color: var(--ink); font: 16px/1.38 var(--sans); padding: 7px 2px; max-height: 150px; }
.br-input::placeholder { color: #8d968f; }
.br-clip { width: 36px; height: 36px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; border-radius: 50%; flex: none; }
.br-clip svg { width: 20px; height: 20px; }
.br-send { width: 38px; height: 38px; border-radius: 50%; border: 0; background: #c9d1c6; color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; transition: background .2s, transform .12s; }
.br-send svg { width: 20px; height: 20px; }
.br-send.is-ready { background: var(--forest); color: var(--lime); }
.br-send.is-down { transform: scale(.86); }
.br-tray { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.br-tray:empty { display: none; }
.br-tray > span { position: relative; width: 54px; height: 54px; border-radius: 10px; overflow: hidden; }
.br-tray img { width: 100%; height: 100%; object-fit: cover; }
.br-tray button { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; line-height: 20px; padding: 0; cursor: pointer; }
.br-tray > .br-tray-file { width: auto; max-width: 100%; height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 7px 0 10px; background: #fff; border: 1.5px solid #d6dbd2; }
.br-tray-file svg { width: 18px; height: 18px; flex: none; color: var(--forest); }
.br-tray-file b { font-size: 13px; font-weight: 650; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.br-tray-file small { font-size: 12px; color: var(--muted); white-space: nowrap; }
.br-tray > .br-tray-file button { position: static; flex: none; background: #e9ece6; color: var(--ink-2); }
/* a file dragged over the page: the composer and the bubble show where it lands */
body.is-dropping .br-scroll { background: #e9f2d3; }
body.is-dropping .br-row { border-style: dashed; border-color: var(--forest); background: #f6fbec; box-shadow: 0 0 0 4px rgba(216, 238, 154, .6); }
body.is-dropping .br--live[data-state="head"] .br-head { transform: scale(1.12); box-shadow: 0 12px 30px rgba(8, 20, 14, .38), 0 0 0 3px var(--lime), 0 0 0 11px rgba(214, 246, 129, .45); }
body.is-dropping #cv-frame { pointer-events: none; }
.br-err { margin: 0 0 8px; color: #b42318; font-size: 13.5px; }
.br-x { position: absolute; left: 50%; bottom: 30px; width: 66px; height: 66px; margin-left: -33px; border-radius: 50%; background: rgba(16, 26, 21, .76); color: #fff; display: grid; place-items: center; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 2px solid rgba(255, 255, 255, .55); opacity: 0; visibility: hidden; transition: transform .2s, background .2s; }
.br-x svg { width: 26px; height: 26px; }
.br-x.is-over, .br--live.is-over .br-x { transform: scale(1.22); background: var(--red); }
.br-tab { position: absolute; right: 0; top: 60%; display: flex; align-items: center; gap: 7px; padding: 8px 10px 8px 9px; border: 0; border-radius: 14px 0 0 14px; background: var(--forest-d); color: #fff; font-weight: 650; font-size: 13px; box-shadow: 0 8px 24px rgba(8, 20, 14, .3); pointer-events: auto; cursor: pointer; opacity: 0; visibility: hidden; }
.br-tab svg { width: 18px; height: 21px; }
.br[data-side="left"] .br-tab { right: auto; left: 0; border-radius: 0 14px 14px 0; }

/* the visitor's bubble: states and their transitions */
.br--live .br-dock { transition: transform .38s cubic-bezier(.2, .9, .25, 1.15), opacity .2s; }
.br--live.is-dragging .br-dock { transition: none; }
.br--live .br-head { transition: transform .25s cubic-bezier(.2, .9, .3, 1.3); }
.br--live.is-dragging .br-head { transform: scale(1.08); }
.br--live .br-panel { opacity: 0; visibility: hidden; transform: scale(.14); transition: opacity .2s, transform .34s cubic-bezier(.2, .9, .25, 1.04), visibility 0s .34s; }
.br--live[data-state="open"] .br-panel, .br--live[data-state="max"] .br-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .34s cubic-bezier(.2, .9, .25, 1.04), visibility 0s; }
.br--live[data-state="max"] .br-panel { left: 16px; top: 70px; right: 16px; bottom: 16px; width: auto; height: auto; }
.br--live[data-state="open"] .br-dock, .br--live[data-state="max"] .br-dock { opacity: 0; pointer-events: none; }
.br--live[data-state="gone"] .br-dock { opacity: 0; pointer-events: none; }
.br--live[data-state="gone"] .br-head { transform: scale(.2); }
.br--live .br-peek { transition: opacity .25s, transform .3s cubic-bezier(.2, .9, .25, 1.2); transform: translateX(8px) scale(.94); }
.br--live .br-peek.is-on { opacity: 1; visibility: visible; transform: none; }
.br--live .br-x { transition: opacity .2s, transform .2s, background .2s, visibility 0s .2s; }
.br--live.is-dragging .br-x { opacity: 1; visibility: visible; transition: opacity .2s, transform .2s, background .2s; }
.br--live .br-tab { transform: translateX(110%); transition: transform .35s cubic-bezier(.2, .9, .25, 1.1), opacity .2s; }
.br--live[data-side="left"] .br-tab { transform: translateX(-110%); }
.br--live[data-state="gone"] .br-tab { opacity: 1; visibility: visible; transform: none; }
.br-tab.is-new::after { content: ''; position: absolute; top: 6px; left: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); border: 2px solid var(--forest-d); }
.br--live .br-head::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 3px solid var(--lime); opacity: 0; }
.br--live.is-ping .br-head::after { animation: ring 1.6s ease-out 2; }
@keyframes ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }

/* the maximized room's side column */
.bs-sec { margin: 0 0 22px; }
.bs-h { margin: 0 0 10px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bs-env, .bs-p { display: flex; gap: 10px; align-items: center; margin: 0 0 10px; }
.bs-env i { width: 10px; height: 10px; border-radius: 50%; flex: none; background: #2c8a4b; box-shadow: 0 0 0 4px rgba(44, 138, 75, .15); }
.bs-env i.is-qa { background: var(--amber); box-shadow: 0 0 0 4px rgba(240, 163, 58, .2); }
.bs-env > span, .bs-p > span:not(.br-av) { display: flex; flex-direction: column; min-width: 0; }
.bs-env b, .bs-p b { font-size: 14px; }
.bs-env small, .bs-p small { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.bs-p .br-av { width: 30px; height: 30px; }
.bs-f { display: flex; gap: 8px; align-items: center; font-size: 13.5px; margin: 0 0 8px; color: var(--ink-2); }
.bs-f svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.bs-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border: 0; border-radius: 12px; padding: 11px 12px; font-weight: 650; font-size: 14.5px; cursor: pointer; text-decoration: none; margin-top: 8px; }
.bs-btn svg { width: 17px; height: 17px; }
.bs-btn--main { background: var(--forest); color: #fff; }
.bs-btn--line { background: #fff; color: var(--forest-d); box-shadow: inset 0 0 0 1.5px #d6dbd2; }
.bs-btn--quiet { background: none; color: var(--muted); font-weight: 600; font-size: 13.5px; }
.bs-link { font-weight: 600; color: var(--forest); overflow-wrap: anywhere; }
.bs-note { font-size: 13px; color: var(--muted); line-height: 1.45; margin: 6px 0 0; }

/* ---------- the visitor's app: the whole screen ---------- */
.canvas { position: fixed; inset: 0; z-index: 10; background: var(--night); display: flex; flex-direction: column; }
.canvas-bar { height: 58px; flex: none; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 200px; background: var(--night); }
.cv-url { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 520px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .09); color: #fff; font-weight: 600; font-size: 14.5px; }
.cv-url svg { width: 14px; height: 14px; color: #8fd48f; flex: none; }
.cv-url span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-chip { padding: 5px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 650; background: #2b4d22; color: #d6f681; white-space: nowrap; }
.cv-chip[data-kind="build"] { background: #4a3a12; color: #ffd98a; }
.cv-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .09); color: #fff; font-weight: 600; font-size: 13.5px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.cv-btn:hover { background: rgba(255, 255, 255, .16); }
.cv-btn svg { width: 15px; height: 15px; }
.cv-body { position: relative; flex: 1; min-height: 0; background: var(--paper); border-radius: 18px 18px 0 0; overflow: hidden; }
#cv-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.cv-building { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 4vw; padding: 6vh 6vw; background: radial-gradient(1200px 600px at 85% 20%, rgba(214, 246, 129, .35), transparent 60%), radial-gradient(900px 600px at 10% 90%, rgba(217, 208, 243, .5), transparent 60%), var(--paper); }
.cvb-eyebrow { margin: 0 0 18px; font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--forest); display: flex; align-items: center; gap: 8px; }
.cvb-eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #5fbf5f; box-shadow: 0 0 0 4px rgba(95, 191, 95, .2); }
.cvb-title { margin: 0; font-size: clamp(34px, 4.4vw, 76px); line-height: 1.02; letter-spacing: -.045em; font-weight: 650; color: var(--forest-d); }
.cvb-title em { font-family: var(--serif); font-weight: 400; color: #2f6b4f; letter-spacing: -.015em; }
.cvb-title.is-quote { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; font-size: clamp(28px, 3vw, 52px); line-height: 1.12; }
.cvb-steps { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cvb-steps li { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 600; color: #9aa39d; }
.cvb-steps li i { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #c9cfc6; flex: none; display: grid; place-items: center; }
.cvb-steps li.is-done { color: var(--forest-d); }
.cvb-steps li.is-done i { background: var(--forest); border-color: var(--forest); }
.cvb-steps li.is-done i::after { content: ''; width: 9px; height: 5px; border: 2.5px solid var(--lime); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.cvb-steps li.is-now { color: var(--ink); }
.cvb-steps li.is-now i { border-color: var(--forest); border-right-color: transparent; animation: spin .9s linear infinite; }
.cvb-steps b { font-family: var(--mono); font-weight: 500; font-size: 15px; color: var(--muted); margin-left: auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.cvb-note { margin: 22px 0 0; font-size: 17px; line-height: 1.5; color: var(--ink-2); max-width: 34em; }
.cvb-note:empty { display: none; }
.cvb-sketch { position: relative; aspect-ratio: 4 / 3.2; border-radius: 22px; background: #fff; box-shadow: 0 30px 80px rgba(24, 49, 38, .16), inset 0 0 0 1px rgba(24, 49, 38, .07); overflow: hidden; }
.cvb-sketch i { position: absolute; border-radius: 10px; background: linear-gradient(90deg, #eef0ea 0%, #f7f8f4 40%, #eef0ea 80%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
.cvb-sketch i:nth-child(1) { left: 0; top: 0; right: 0; height: 13%; border-radius: 0; background: #e6ebe2; animation: none; }
.cvb-sketch i:nth-child(2) { left: 6%; top: 20%; width: 46%; height: 8%; }
.cvb-sketch i:nth-child(3) { left: 6%; top: 34%; width: 27%; height: 18%; }
.cvb-sketch i:nth-child(4) { left: 36%; top: 34%; width: 27%; height: 18%; }
.cvb-sketch i:nth-child(5) { left: 66%; top: 34%; width: 28%; height: 18%; }
.cvb-sketch i:nth-child(6) { left: 6%; top: 58%; width: 88%; height: 34%; }
@keyframes shimmer { to { background-position: -200% 0; } }
body[data-mode="turn"] .cvb-sketch { opacity: .55; }
body[data-mode="turn"] .cvb-sketch i { animation-play-state: paused; }


/* ---------- the visitor's room: ideas, keeping the room, reporting ---------- */
.br-ideas { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 2px 36px; }
.br-idea { border: 1.5px solid #d6dbd2; background: #fff; color: var(--forest-d); border-radius: 999px; padding: 7px 12px; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s; }
.br-idea:hover { border-color: var(--forest); background: #f6fbec; }
.br-keep { margin: 12px 0 2px 36px; padding: 12px 13px 13px; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(20, 30, 25, .07), inset 0 0 0 1.5px #e3e7de; }
.bk-h { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 15px; }
.bk-h svg { width: 19px; height: 22px; flex: none; }
.bk-copy { margin: 0 0 9px; font-size: 13.5px; line-height: 1.42; color: var(--ink-2); }
.bk-form { margin: 0; }
.bk-in { display: block; width: 100%; margin: 0 0 8px; padding: 10px 12px; border-radius: 11px; border: 1.5px solid #d6dbd2; font: 16px var(--sans); color: var(--ink); background: #fbfaf6; outline: 0; }
.bk-in:focus { border-color: var(--forest); box-shadow: 0 0 0 4px rgba(35, 75, 59, .1); background: #fff; }
.bk-row { display: flex; gap: 8px; align-items: center; }
.bk-save { border: 0; border-radius: 11px; background: var(--forest); color: #fff; font-weight: 650; padding: 10px 16px; cursor: pointer; }
.bk-save:disabled { opacity: .6; }
.bk-later { border: 0; background: none; color: var(--muted); font-weight: 600; padding: 10px 8px; cursor: pointer; }
.bk-err { margin: 0 0 8px; font-size: 13px; color: #b42318; }
.br-report { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; font-size: 12.5px; color: var(--ink-2); }
.br-report button { border: 0; border-radius: 8px; padding: 5px 9px; font-size: 12.5px; font-weight: 650; cursor: pointer; background: #eef0ea; }
.br-report .br-report-yes { background: #fde2e1; color: #9b1c1c; }

/* The app keeps the whole viewport. The conversation floats over it without changing its layout. */
.br, .canvas {
  --forest: #2d493c; --forest-d: #1b2c24; --night: #132019; --ink: #23322a; --ink-2: #526056;
  --muted: #747e76; --paper: #f6f4ed; --line: rgba(35, 50, 42, .12); --lime: #d8ee9a;
  --red: #c05046; --amber: #c69847; --sans: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif; --mono: 'DM Mono', ui-monospace, monospace;
  font-family: var(--sans);
}
.br[hidden], .canvas[hidden] { display: none !important; }
.canvas { inset: 0; transition: none; }
.canvas-bar { height: 46px; justify-content: flex-start; padding: 0 18px; background: #fdfefb; border-top: 0; border-bottom: 1px solid #e7eadf; }
.cv-url { padding: 6px 0; flex: 1; max-width: none; background: none; color: #7e8a7e; font-size: 12px; }
.cv-url svg { color: #849c72; }
.cv-chip { font-size: 11px; padding: 5px 8px; background: #e8f1dd; color: #67834f; }
.cv-chip[data-kind="build"] { background: #faf2df; color: #a07c37; }
.cv-btn { font-size: 11px; padding: 6px 9px; border-radius: 4px; color: #718269; background: #f2f6ec; }
.cv-btn:hover { background: #e9f0e1; }
.cv-body { border-radius: 0; }
.cv-building { grid-template-columns: minmax(0, 1fr); align-content: center; padding: clamp(24px, 5vw, 76px); overflow-y: auto; background: radial-gradient(ellipse at 55% 90%, #e4ebd8 0, transparent 65%), #fafbf5; }
.cvb-copy { max-width: 720px; }
.cvb-title { max-width: 12em; font-size: clamp(34px, 4.2vw, 66px); font-weight: 500; }
.cvb-title em { color: #668155; }
.cvb-eyebrow { color: #8b9c79; }
.cvb-title.is-quote { font-size: clamp(28px, 3.4vw, 48px); }
.cvb-sketch { display: none; }
.cvb-steps li { font-size: 15px; }
.cvb-note { font-size: 15px; }
.br--live .br-panel { top: auto; right: 32px; bottom: 32px; left: auto; width: 420px; height: 500px; max-height: calc(var(--room-vh, 100dvh) - 64px); border: 1px solid #d3dacd; border-radius: 14px; background: #fbfcf8; transform: translateY(18px); box-shadow: 0 18px 60px -22px rgba(25, 45, 28, .28); transition: opacity .3s, transform .5s cubic-bezier(.22, 1, .36, 1), visibility 0s .5s; }
.br--live[data-state="open"] .br-panel, .br--live[data-state="max"] .br-panel { transform: none; transition: opacity .3s, transform .5s cubic-bezier(.22, 1, .36, 1), visibility 0s; }
.br--live[data-state="max"] .br-panel { top: 12px; right: 12px; bottom: 12px; left: 12px; width: auto; height: auto; max-height: none; }
.br-top { min-height: 74px; padding: 18px 15px; gap: 9px; color: #23352c; border-bottom: 1px solid #e7eadf; background: #fdfefb; }
.br-top-copy b { font-size: 13px; }
.br-top-copy small { color: #7a8c6e; font-size: 10px; margin-top: 3px; }
.br-top-tile { width: 25px; height: 29px; }
.br-dot { width: 5px; height: 5px; background: #8ca978; }
.br-btn { width: 28px; height: 28px; border-radius: 4px; color: #85907b; background: none; }
.br-btn:hover { background: #ebf0e5; }
.br-btn svg { width: 15px; height: 15px; }
.br-scroll { padding: 24px 20px 18px; background: #fbfcf8; scrollbar-width: thin; scrollbar-color: #dce5d4 transparent; }
.br-log { gap: 22px; margin-top: 0; flex: none; }
.br-m { flex: none; max-width: 100%; }
.br-m--in { align-items: flex-start; }
.br-m--in > .br-av { display: none; }
.br-b { padding: 0; border-radius: 0; background: none; box-shadow: none; font-size: 13px; line-height: 1.65; color: #4e5f47; }
.br-who { font-size: 9px; font-weight: 600; color: #6d8061; gap: 6px; margin-bottom: 7px; }
.br-name { color: inherit; }
.br-ai { font-size: 7px; font-weight: 400; padding: 2px 3px; border: 1px solid #dfe4d8; border-radius: 2px; background: none; color: #6d8061; }
.br-role { font-size: 9px; }
.br-meta { min-height: 0; font-size: 9px; color: #9ca790; margin-top: 5px; }
.br-meta:empty { display: none; }
.br-launch-guide { margin-top: 12px; padding: 13px 14px; border: 1px solid #dde6d4; border-radius: 8px; background: #f3f7ec; color: #4e5f47; }
.br-guide-label { display: block; margin-bottom: 8px; color: #7a8c6e; font-size: 10px; }
.br-guide-title { margin: 0 0 6px; color: #354e31; font-size: 14px; font-weight: 600; line-height: 1.45; }
.br-guide-copy { margin: 0; font-size: 13px; line-height: 1.65; }
.br-meta svg { width: 12px; height: 12px; }
.br-m--out { max-width: 95%; }
.br-m--out .br-b { padding: 12px 14px; border: 1px solid #e1e8d9; border-radius: 8px 8px 2px 8px; background: #eef3e7; color: #455e38; }
.br-m--out .br-meta { color: #829475; }
.br-m--out .br-file { background: #fff; border: 1px solid #e1e8d9; }
.br-compose { padding: 13px 16px max(12px, env(safe-area-inset-bottom)); background: #fdfefb; border-top: 1px solid #e6ecde; }
.br-row { border: 1px solid #dde6d4; background: #f6f8f1; border-radius: 6px; }
.br-row { position: relative; }
.br-ghost { pointer-events: none; color: #788d69; font: 16px/1.38 var(--sans); white-space: pre-wrap; overflow-wrap: anywhere; padding: 7px 2px; min-width: 0; }
.br-compose.has-ghost .br-row { display: grid; grid-template-columns: 36px 36px minmax(0, 1fr) 38px; align-items: end; }
.br-compose.has-ghost .br-clip { grid-area: 2 / 1; }
.br-compose.has-ghost .br-mic { grid-area: 2 / 2; }
.br-compose.has-ghost .br-send { grid-area: 2 / 4; }
.br-compose.has-ghost .br-input, .br-compose.has-ghost .br-ghost { grid-area: 1 / 1 / 2 / -1; padding-left: 7px; padding-right: 7px; }
.br-compose.has-ghost .br-input { height: 100% !important; max-height: none; min-height: 0; align-self: stretch; }
.has-ghost .br-input::placeholder { color: transparent; }
.br.is-preview .br-dot { display: none; }
.br.is-preview .br-subtext { color: #819476; }
.br.is-preview-muted .br-panel { opacity: .24; }
.br.is-preview-muted:focus-within .br-panel, .br.is-preview-muted .br-panel:hover { opacity: 1; }
.br--live[data-state="max"] { z-index: 100; }
.br-row:focus-within { border-color: #9eb58d; box-shadow: 0 0 0 2px #dce5d466; }
.br-input { font-size: 16px; }
.br-input::placeholder { color: #899a7c; }
.br-send, .br-send.is-ready { border-radius: 4px; background: #dceabf; color: #617e4b; }
.br-send:disabled { background: #eaf0e1; color: #a4b09a; }
.br.is-preview .has-ghost .br-send, .br.is-preview[data-preview-phase="sending"] .br-send { background: #dceabf; color: #617e4b; }
.br.is-preview[data-preview-phase="sending"] .br-send { animation: previewSend .22s ease-out; }
@keyframes previewSend { 45% { transform: scale(.88); background: #cedead; } }
.br-clip { border-radius: 4px; color: #859775; }
.br-mic { width: 32px; height: 36px; flex: none; display: grid; place-items: center; padding: 0; border: 0; border-radius: 4px; background: transparent; color: #859775; cursor: pointer; }
.br-mic svg { width: 19px; height: 19px; }
.br-mic:hover { background: #eaf0e1; }
.br-mic[aria-pressed="true"] { color: #a34037; background: #f8e5df; }
.br-mic[data-available="false"] { color: #9aab8e; }
.br-hint { margin: 8px 3px 0; font-size: 10px; line-height: 1.5; color: #7c8e70; }
.br.is-preview .br-hint { display: none; }
.br.is-preview-voice .br-hint { display: block; color: #668250; }
.br.is-preview-voice .br-mic { color: #52763e; background: #e1edce; animation: previewVoice 1.7s ease-in-out infinite; }
@keyframes previewVoice { 50% { box-shadow: 0 0 0 4px #dceabf66; } }
.br-compose.is-dictating .br-hint { color: #9a4e40; }
.br-send:disabled { cursor: default; }
.br-privacy { margin: 9px 3px 0; color: var(--muted); font-size: 10.5px; line-height: 1.5; }
.br-privacy summary { cursor: pointer; width: fit-content; }
.br-privacy p { margin: 7px 0 0; }
.br-privacy a { color: var(--forest); text-underline-offset: 2px; }
.br :focus-visible, .canvas :focus-visible { outline: 3px solid #8fba53; outline-offset: 3px; }
.br-input:focus-visible { outline: none; }
.br-ideas { margin-left: 0; }
.br-idea { font-size: 12px; font-weight: 500; border: 1px solid #dfe6d7; border-radius: 6px; padding: 8px 10px; background: #f5f8ef; color: #658054; }
.br-keep { margin-left: 0; border: 1px solid #dfe6d7; border-radius: 8px; background: #fdfefb; box-shadow: none; }
.bk-h { font-size: 13px; }
.bk-copy { color: #718269; font-size: 12px; }
.bk-save, .bk-in { border-radius: 6px; }
.bk-save, .bk-later { font-size: 12px; }
/* "While we build: make an account": a title row with its close, the sign-in buttons, one line of copy (room.js renderProfile) */
.br-keep { padding: 10px 11px 11px; }
.br-keep.is-busy { opacity: .6; pointer-events: none; }
.bk-h { margin-bottom: 8px; }
.bk-h b { flex: 1; min-width: 0; }
.bk-close { flex: none; display: grid; place-items: center; width: 26px; height: 26px; margin: -4px -5px -4px 0; border: 0; border-radius: 6px; background: none; color: #8a9a7f; cursor: pointer; }
.bk-close:hover { background: #eef2e7; color: var(--ink); }
.bk-close svg { width: 14px; height: 14px; }
.bk-ways { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.bk-google { min-height: 40px; max-width: 100%; }
.bk-xbtn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 40px; flex: 1 1 200px; min-width: 0; padding: 0 14px; border: 1px solid #dadce0; border-radius: 4px; background: #fff; color: #1f1f1f; font: 500 14px var(--sans); cursor: pointer; }
.bk-xbtn:hover { background: #f7f8f8; border-color: #d2e3fc; }
.bk-xbtn svg { width: 15px; height: 15px; flex: none; }
.bk-copy { margin: 0; }
.bk-copy + .bk-email, .bk-email + .bk-alt { margin-top: 8px; }
.bk-link { border: 0; background: none; padding: 0; color: var(--forest); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.bk-email { display: flex; gap: 8px; }
.bk-email .bk-in { flex: 1; min-width: 0; margin: 0; padding: 8px 10px; }
.bk-email .bk-save { flex: none; padding: 8px 13px; }
.br-keep > .bk-save { margin-top: 8px; }
.bk-err { margin: 8px 0 0; }
.br-head { box-shadow: 0 8px 26px rgba(8,20,14,.2), 0 0 0 2px var(--lime); }

/* Shared app visitors see only the generated app until a trusted host and saved room both match. */
body[data-mode="public"] .canvas-bar { display: none; }
.cv-public-actions { position: absolute; z-index: 4; left: 16px; bottom: max(16px, env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; gap: 8px; max-width: calc(100% - 32px); }
.cv-create, .cv-moved { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid #d3dacd; border-radius: 8px; background: #fdfefb; color: #455e38; font-size: 11px; line-height: 1.4; text-decoration: none; box-shadow: 0 2px 8px #203a1910; }
.cv-create svg { width: 14px; height: 17px; }
.cv-create:hover, .cv-moved:hover { background: #eef3e7; }

@media (min-width: 720px) {
  .br--live.is-preview[data-state="open"] .br-panel { height: 560px; }
}
@media (max-width: 719px) {
  .canvas { inset: 0; }
  .canvas-bar { height: 40px; padding: 0 10px; gap: 5px; }
  .cv-url { font-size: 10px; }
  .cv-btn span { display: none; }
  .cv-btn { padding: 6px; }
  .cv-chip { max-width: 125px; overflow: hidden; text-overflow: ellipsis; font-size: 10px; }
  .cv-building { padding: 20px; align-content: start; }
  .cvb-eyebrow { margin-bottom: 12px; font-size: 9px; letter-spacing: .09em; }
  .cvb-title { font-size: 30px; }
  .cvb-title.is-quote { font-size: 23px; max-height: 4.5em; overflow: hidden; }
  .cvb-note { margin-top: 12px; font-size: 12px; }
  .cvb-steps { gap: 8px; margin-top: 16px; }
  .cvb-steps li { font-size: 12px; }
  .cvb-steps li i { width: 18px; height: 18px; }
  .cvb-steps b { font-size: 11px; }
  .br-dock, .br-head { width: 56px; height: 56px; }
  .br-peek { max-width: 62vw; font-size: 13px; }
  .br--live .br-panel { top: auto; bottom: calc(12px + var(--room-keyboard, 0px)); left: 12px; right: 12px; width: auto; height: min(clamp(320px, 56dvh, 560px), calc(var(--room-vh, 100dvh) - 24px)); max-height: calc(var(--room-vh, 100dvh) - 24px); border-radius: 13px; transform: translateY(18px); }
  .br--live.is-preview:not(.has-keyboard)[data-state="open"] .br-panel { height: min(clamp(380px, 64dvh, 560px), calc(var(--room-vh, 100dvh) - 24px)); }
  .br--live.is-preview:not(.has-keyboard)[data-state="open"][data-preview-phase="intro"] .br-panel { height: auto; min-height: min(clamp(380px, 64dvh, 560px), calc(var(--room-vh, 100dvh) - 24px)); }
  .br--live.has-keyboard .br-panel { height: calc(var(--room-vh, 100dvh) - 24px); }
  .br--live[data-state="max"] { z-index: 100; }
  .br--live[data-state="max"] .br-panel { top: calc(12px + var(--room-vtop, 0px)); bottom: auto; height: calc(var(--room-vh, 100dvh) - 24px); }
  .br--live[data-state="max"] .br-body { flex-direction: column; }
  .br-side { width: 100%; border-left: 0; border-top: 1px solid var(--line); padding: 16px; max-height: 34%; }
  .br-top { min-height: 51px; padding: 8px 11px; }
  .br-top-copy b { font-size: 13px; }
  .br-top-copy small { font-size: 10px; }
  .br-top-tile { width: 23px; height: 27px; }
  .br-btn { width: 32px; height: 32px; }
  .br-scroll { padding: 13px 11px 11px; }
  .br-b { font-size: 14px; line-height: 1.55; }
  .br-log { gap: 18px; }
  .br-m--out .br-b { padding: 10px 12px; }
  .br-compose { padding-left: 10px; padding-right: 10px; }
  .br-ghost { font-size: 15px; line-height: 1.45; }
  .br-privacy { font-size: 10px; }
  .br-ideas { gap: 5px; }
  .br-idea { padding: 6px 9px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .br *, .canvas, .canvas * { transition: none !important; animation: none !important; }
}
