/* Buffr UI: dark theme, blue accents, built to be read at a glance mid-call. No green. */
:root {
  --bg:#0a0e17; --bg2:#0e1422; --panel:#121a2b; --panel2:#172238; --line:#223050; --line2:#2c3d63;
  --text:#ffffff; --soft:#ffffff; --mute:#ffffff;
  --blue:#3b82f6; --blue2:#60a5fa; --cyan:#38bdf8; --amber:#fbbf24; --ice:#ffffff;
  --glow:0 0 0 1px rgba(96,165,250,.35), 0 12px 40px -12px rgba(59,130,246,.45);
  --radius:14px;
}
* { box-sizing:border-box; }
html, body { height:100%; }
body { margin:0; font:20px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color:var(--text);
  background: radial-gradient(1200px 600px at 85% -10%, rgba(59,130,246,.16), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(56,189,248,.08), transparent 60%), var(--bg);
  min-height:100vh; display:flex; flex-direction:column; -webkit-font-smoothing:antialiased; }

header { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; padding:14px 24px;
  background:rgba(10,14,23,.75); backdrop-filter:blur(10px); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:5; }
.brand { font-weight:700; font-size:26px; letter-spacing:-.01em; display:flex; align-items:center; gap:10px; }
.brand small { font-weight:500; color:var(--mute); font-size:16px; letter-spacing:.02em; }
.logo { width:40px; height:40px; border-radius:12px; display:grid; place-items:center; font-weight:800; color:#fff;
  background:linear-gradient(135deg, var(--blue), var(--cyan)); box-shadow:0 6px 18px -6px rgba(56,189,248,.7); }

button { font:inherit; font-size:17px; font-weight:600; color:#fff; background:var(--panel); border:1px solid var(--line);
  padding:10px 16px; border-radius:11px; cursor:pointer; transition:background .15s, border-color .15s, color .15s, transform .05s; }
button:hover:not(:disabled) { border-color:var(--line2); color:var(--text); background:var(--panel2); }
button:active:not(:disabled) { transform:translateY(1px); }
button.primary { color:#fff; border-color:transparent; background:linear-gradient(135deg, var(--blue), #2563eb); box-shadow:0 6px 20px -8px rgba(59,130,246,.8); font-weight:600; }
button.primary:hover:not(:disabled) { background:linear-gradient(135deg, var(--blue2), var(--blue)); }
button:disabled { opacity:.75; cursor:default; }
.controls { display:flex; gap:8px; flex-wrap:wrap; }

.consent { display:flex; align-items:center; gap:10px; margin:14px 24px 0; padding:9px 14px; border-radius:10px; font-size:17px;
  color:var(--ice); background:rgba(59,130,246,.08); border:1px solid rgba(96,165,250,.25); }
.consent::before { content:"i"; flex:none; width:22px; height:22px; border-radius:50%; display:grid; place-items:center; font-size:14px; font-weight:700; color:var(--bg); background:var(--blue2); }
.demo-label { margin:8px 24px 0; padding:6px 14px; border-radius:10px; font-size:16px; font-weight:600; letter-spacing:.02em;
  color:#fff; background:rgba(251,191,36,.10); border:1px dashed rgba(251,191,36,.35); }

.stages { display:flex; gap:4px; margin:14px 24px; padding:4px; background:var(--bg2); border:1px solid var(--line); border-radius:12px; }
.stages span { flex:1; text-align:center; padding:9px 6px; border-radius:9px; color:var(--mute); font-size:17px; font-weight:600; text-transform:capitalize; transition:all .25s; }
.stages span.on { color:#fff; background:linear-gradient(135deg, rgba(59,130,246,.9), rgba(37,99,235,.9)); box-shadow:0 4px 14px -6px rgba(59,130,246,.9); }

main { flex:1; display:grid; grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); gap:18px; padding:0 24px 18px; }
@media (max-width: 800px) { main { grid-template-columns:1fr; } }
h2 { font-size:16px; font-weight:600; text-transform:uppercase; letter-spacing:.12em; color:var(--mute); margin:2px 0 12px; }
h3 { font-size:16px; font-weight:600; text-transform:uppercase; letter-spacing:.12em; color:var(--mute); margin:22px 0 8px; }
.transcript, .coach { background:linear-gradient(180deg, var(--panel), rgba(18,26,43,.85)); border:1px solid var(--line); border-radius:var(--radius);
  padding:16px 18px; overflow:auto; max-height:calc(100vh - 280px); }

#lines { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
#lines li { padding:11px 15px; border-radius:14px; max-width:92%; font-size:20px; background:var(--panel2); border:1px solid var(--line); color:var(--soft); }
#lines li.rep { align-self:flex-end; background:rgba(59,130,246,.12); border-color:rgba(96,165,250,.28); color:var(--text); }
#lines li.prospect { align-self:flex-start; }
#lines li .who { display:block; font-size:16px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:var(--mute); margin-bottom:3px; }
#lines li.rep .who { color:#fff; }
#lines li .tag { float:right; margin-left:10px; font-size:16px; color:var(--mute); }
#lines li .tag.hit { color:var(--bg); background:var(--amber); padding:2px 10px; border-radius:999px; font-weight:700; }
.interim { color:var(--mute); font-size:20px; font-style:italic; min-height:1.5em; padding:6px 4px; }

.card { position:relative; border-radius:16px; padding:20px 22px 18px; background:linear-gradient(160deg, rgba(37,99,235,.22), rgba(14,20,34,.6) 60%);
  border:1px solid rgba(96,165,250,.45); box-shadow:var(--glow); animation:pop .25s ease-out; }
@keyframes pop { from { transform:translateY(6px); opacity:.3; } to { transform:none; opacity:1; } }
.card.empty { background:transparent; border:1px dashed var(--line2); box-shadow:none; animation:none; }
.card .moment { display:inline-block; font-size:16px; font-weight:700; text-transform:uppercase; letter-spacing:.1em; color:var(--amber);
  background:rgba(251,191,36,.1); border:1px solid rgba(251,191,36,.3); padding:3px 10px; border-radius:999px; }
.card .say { font-size:38px; line-height:1.25; font-weight:650; letter-spacing:-.01em; margin:14px 0 14px; color:#fff; }
.card .why, .card .next { color:var(--soft); margin:8px 0; font-size:21px; }
.card .why b, .card .next b { color:#fff; font-weight:800; }
.card .meta { display:flex; gap:16px; flex-wrap:wrap; margin-top:14px; padding-top:12px; border-top:1px solid rgba(96,165,250,.18); color:var(--mute); font-size:16px; }
.conf { display:inline-block; height:6px; width:84px; background:var(--line); border-radius:3px; vertical-align:middle; overflow:hidden; margin-right:4px; }
.conf i { display:block; height:100%; background:linear-gradient(90deg, var(--blue), var(--cyan)); }
.hint { color:var(--mute); margin:0; }

.history { list-style:none; padding:0; margin:0; font-size:19px; color:var(--soft); }
.history li { padding:8px 0; border-bottom:1px solid var(--line); }
.history li:last-child { border-bottom:none; }
.history b { color:var(--ice); font-weight:600; }

footer { display:flex; gap:24px; flex-wrap:wrap; padding:10px 24px; border-top:1px solid var(--line); background:rgba(10,14,23,.8); color:var(--mute); font-size:16px; }
footer #lat { color:#fff; }

dialog { background:var(--panel); color:var(--text); border:1px solid var(--line2); border-radius:16px; max-width:500px; padding:22px; box-shadow:0 30px 80px -20px rgba(0,0,0,.7); }
dialog::backdrop { background:rgba(5,8,14,.7); backdrop-filter:blur(3px); }
dialog p { color:var(--soft); }
dialog label { display:flex; gap:10px; align-items:flex-start; margin:12px 0; }
dialog input[type=checkbox] { accent-color:var(--blue); width:18px; height:18px; margin-top:2px; }
dialog menu { display:flex; justify-content:flex-end; gap:8px; padding:0; margin:16px 0 0; }

::-webkit-scrollbar { width:10px; } ::-webkit-scrollbar-thumb { background:var(--line); border-radius:10px; border:2px solid var(--panel); }
@media (max-width: 800px) { #lines li { max-width:100%; } #lines li .tag { float:none; display:table; margin:2px 0 6px; } .transcript, .coach { max-height:none; } .card .say { font-size:32px; } .brand small { display:none; } .stages span { font-size:16px; padding:8px 2px; } }

/* Fit the whole app in one screen on laptops: panels scroll inside, the page does not. */
@media (min-width: 801px) {
  body { height:100vh; overflow:hidden; }
  main { min-height:0; }
  .transcript, .coach { max-height:none; height:100%; min-height:0; }
}
header { padding:10px 24px; }
.consent { margin:10px 24px 0; padding:7px 14px; font-size:16px; }
.demo-label { margin:6px 24px 0; padding:4px 14px; }
.stages { margin:10px 24px; }
.stages span { padding:7px 6px; }
.card { padding:16px 20px 14px; }
.card .say { margin:10px 0; }
.card .why, .card .next { font-size:20px; margin:6px 0; }
.card .meta { margin-top:10px; padding-top:10px; }
#lines li .tag { float:none; display:table; margin:2px 0 6px; }
footer { flex-wrap:nowrap; white-space:nowrap; overflow:hidden; gap:20px; padding:8px 24px; }
@media (max-width: 1440px) { footer #pbname { display:none; } }
.card .say { font-size:36px; }
.coach h2 { margin-bottom:8px; }

.hero { padding:14px 24px 0; }
.hero h1 { margin:0; font-size:30px; line-height:1.2; letter-spacing:-.01em; color:#fff; }
.hero .lead { margin:6px 0 0; font-size:20px; color:#fff; max-width:1100px; }
.hero .sub { margin:4px 0 0; font-size:17px; color:#fff; }
body.signed-in .hero .sub { display:none; }
dialog input[type=email] { width:100%; font:inherit; font-size:20px; padding:10px 12px; border-radius:10px; border:1px solid var(--line2); background:var(--bg2); color:#fff; }
dialog .msg { min-height:1.4em; font-size:17px; }
#btnSignin.user { max-width:260px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media (max-width: 800px) { .hero h1 { font-size:26px; } .hero .lead { font-size:18px; } }
