@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2"); font-style: normal; font-weight: 200 800; font-display: swap; }
@font-face { font-family: Montserrat; src: url("fonts/montserrat-latin.woff2") format("woff2"); font-style: normal; font-weight: 400 700; font-display: swap; }
:root { color-scheme: dark; --bg:#1a1a1a; --surface:#222; --surface-raised:#2b2b2b; --line:rgba(255,255,255,.08); --text:#fff; --text-2:#a8a8a8; --text-3:#8c8c8c; --brand:#fb364a; --brand-strong:#e02a3d; --brand-pressed:#d4202f; --accent:#faa848; --danger:#ff5a6b; font:400 13px/18px Montserrat,sans-serif; color:var(--text); background:var(--bg); font-synthesis:none; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; background:var(--bg); }
main { display:flex; flex-direction:column; height:100vh; height:100dvh; min-height:0; }
h1,h2,h3,p { margin-top:0; }
h1,h2,h3 { font-family:"Bricolage Grotesque",sans-serif; }
h1 { font-size:20px; line-height:24px; margin-bottom:3px; }
h2 { font-size:15px; line-height:20px; margin-bottom:8px; }
h3 { font-size:14px; line-height:19px; margin-bottom:8px; }
label { display:block; font-weight:600; margin:0 0 6px; }
button,input,select,textarea { font:inherit; }
button { min-height:44px; width:100%; padding:9px 12px; border:0; border-radius:12px; background:var(--brand-strong); color:var(--text); font-weight:600; cursor:pointer; }
button:hover:not(:disabled) { filter:brightness(1.08); }
button:active:not(:disabled) { background:var(--brand-pressed); }
button:disabled { opacity:.48; cursor:not-allowed; }
button.secondary { background:var(--surface-raised); color:var(--text); border:1px solid var(--line); }
button.text-button { width:auto; min-height:40px; padding:6px 0; background:transparent; color:var(--text-2); text-align:left; }
button.quiet-button { width:auto; min-height:36px; padding:6px 10px; color:var(--text-2); background:transparent; border:1px solid var(--line); }
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
input[type=text],input[type=password],input[type=url],select,textarea { display:block; width:100%; min-width:0; min-height:42px; padding:10px 11px; color:var(--text); background:var(--surface-raised); border:1px solid rgba(255,255,255,.18); border-radius:9px; }
textarea { resize:vertical; line-height:20px; }
input::placeholder,textarea::placeholder { color:var(--text-3); }
input[type=checkbox] { accent-color:var(--brand); }
::selection { background:var(--brand-strong); color:var(--text); }
.hint { font-size:12px; line-height:17px; color:var(--text-2); margin:8px 0 0; }
.inline { display:flex; gap:8px; align-items:stretch; }
.inline input { flex:1; }
.inline button { flex:0 0 auto; width:auto; }
.mic-choice { margin-top:12px; }
.mic-choice .inline select { flex:1; }
.mic-choice .inline button { min-height:42px; }
.app-header { flex:none; padding:14px 16px 10px; border-bottom:1px solid var(--line); }
.header-line { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:7px; }
.header-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; min-width:0; }
.header-actions #ai-pause { display:none; width:auto; flex:none; min-height:40px; padding:7px 9px; background:var(--surface-raised); border:1px solid var(--line); color:var(--text-2); font-size:12px; white-space:nowrap; }
body.active-call .header-actions #ai-pause,body.manual-call .header-actions #ai-pause { display:block; }
.brand-name { color:var(--text); font:700 12px/16px Montserrat,sans-serif; letter-spacing:.04em; }
.brand-name span { color:var(--text-2); font-weight:500; }
.capture-state { display:block; min-width:0; color:var(--text-2); font-size:12px; line-height:16px; text-align:right; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
body.active-call #status:not(.error),body.manual-call #status:not(.error) { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
body.capturing .capture-state::before { content:""; display:inline-block; width:6px; height:6px; margin:0 5px 1px 0; border-radius:50%; background:var(--brand); animation:capture-pulse 2s ease-in-out infinite; }
.audio-diagnostics { display:flex; flex-wrap:wrap; gap:4px 12px; margin-top:7px; color:var(--text-2); font-size:12px; line-height:16px; }
.audio-diagnostics span { display:inline-flex; align-items:center; gap:5px; }
.audio-diagnostics span::before { content:""; width:6px; height:6px; flex:none; border-radius:50%; background:var(--text-3); }
.audio-diagnostics span[data-state="active"]::before { background:var(--text); }
.audio-diagnostics span[data-state="silent"]::before { background:var(--accent); }
.audio-diagnostics p { flex-basis:100%; margin:0; color:var(--accent); }
.lead-context-notes { max-height:92px; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; color:var(--text-2); font-size:12px; line-height:17px; }
#lead-context-status { margin-bottom:6px; }
#open-suggestion #suggestion-label { display:inline-block; overflow:hidden; max-width:145px; text-overflow:ellipsis; white-space:nowrap; vertical-align:middle; }
@keyframes capture-pulse { 50% { opacity:.6; } }
.header-meta { font-size:12px; line-height:16px; color:var(--text-2); margin:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#status { min-height:0; max-height:36px; overflow:hidden; margin:7px 0 0; color:var(--text-2); font-size:12px; line-height:16px; text-overflow:ellipsis; }
#status.error,#review-status.error { color:var(--danger); }
.pairing-screen { flex:1; min-height:0; overflow-y:auto; padding:22px 16px; }
.pairing-screen label { margin-top:16px; }
.pairing-screen button { margin-top:16px; }
.card { background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:16px; }
.now-card { display:none; flex:none; min-height:120px; margin:12px 16px 0; border-left:3px solid var(--accent); }
body.active-call .now-card:not([hidden]) { display:block; }
.now-heading { display:flex; align-items:center; justify-content:space-between; gap:6px; color:var(--accent); font-size:12px; font-weight:600; }
.now-card #ai-suggestion { font-size:17px; line-height:24px; font-weight:600; margin:9px 0 0; }
.now-actions { display:flex; gap:8px; margin-top:9px; }
.objection-chip { display:inline-block; margin-top:8px; color:var(--accent); font-size:12px; }
#planning { flex:1; display:flex; flex-direction:column; min-height:0; }
.setup-controls { flex:1; overflow-y:auto; min-height:0; padding:16px; }
.section-title { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:8px; }
.prospecting-entry { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:70px; padding:12px 14px; margin:0 0 18px; text-align:left; background:var(--surface); border:1px solid rgba(255,255,255,.16); border-radius:16px; }
.prospecting-entry:hover:not(:disabled) { background:var(--surface-raised); }
.prospecting-entry strong,.prospecting-entry small { display:block; }
.prospecting-entry strong { font:600 15px/20px "Bricolage Grotesque",sans-serif; color:var(--text); }
.prospecting-entry small { margin-top:3px; color:var(--text-2); font:500 11px/16px Montserrat,sans-serif; }
.prospecting-entry > span:last-child { flex:none; color:var(--text); font-size:12px; }
.section-title h2 { margin:0; }
.section-title span { color:var(--text-3); font-size:12px; }
.setup-controls > select,.setup-controls .setup-detail input,.setup-row select,#read-options input,#read-options select { margin-bottom:12px; }
.setup-detail { margin-top:10px; }
#edit-lead { font-size:12px; margin:0 0 6px; }
.setup-row { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.setup-row > div { min-width:0; }
.setup-row select { font-size:12px; }
.consent { display:flex; align-items:flex-start; gap:8px; margin-top:10px; color:var(--text-2); font-size:12px; line-height:17px; font-weight:500; }
.consent input { flex:0 0 auto; width:18px; height:18px; margin:0; }
#source-hint { margin-top:6px; }
#manual-mode { margin-top:14px; }
.setup-more { margin-top:8px; border-top:1px solid var(--line); }
.setup-more summary,.extras summary { min-height:44px; padding:12px 0; color:var(--text-2); font-weight:600; cursor:pointer; }
.setup-more > section,.extras > section { padding:12px 0; border-top:1px solid var(--line); }
.setup-more button + select,.extras button + select { margin-top:8px; }
.setup-more button:not(.text-button),.extras button:not(.text-button) { margin-top:8px; }
.checklist-stage { display:none; flex:1; min-height:0; overflow-y:auto; padding:12px 16px 20px; }
body.active-call .setup-controls,body.manual-call .setup-controls { display:none; }
body.active-call .checklist-stage,body.manual-call .checklist-stage { display:block; }
.checklist-head { display:flex; align-items:center; gap:8px; }
.checklist-head h2 { margin:0; }
.checklist-head #progress { margin-left:auto; white-space:nowrap; font-size:12px; color:var(--text-2); font-variant-numeric:tabular-nums; }
.checklist-head #edit-setup { width:auto; font-size:11px; min-height:36px; padding:4px; }
body.active-call #edit-setup { display:none; }
.progress-track { height:4px; margin:9px 0 12px; overflow:hidden; background:var(--line); border-radius:999px; }
.progress-track span { display:block; height:100%; width:0; background:var(--brand); transition:width .18s ease; }
.check-group { border-top:1px solid var(--line); }
.check-group summary { padding:11px 0; min-height:40px; font:600 15px/20px "Bricolage Grotesque",sans-serif; color:var(--text); cursor:pointer; }
.check-group .check-item:first-child { border-top:0; }
.check-item { position:relative; min-height:44px; padding:9px 0; border-top:1px solid var(--line); }
.check-item label { display:flex; align-items:center; gap:9px; min-height:24px; padding-right:88px; font-size:14px; line-height:20px; font-weight:500; margin:0; cursor:pointer; }
.check-item input { width:20px; height:20px; margin:0; flex:none; }
.check-item label span { min-width:0; }
.check-item small { display:block; color:var(--text-3); font-size:12px; line-height:16px; margin:3px 0 0 29px; padding-right:88px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.check-item.ai-checked label span { color:var(--text-2); }
.ai-badge { position:absolute; top:13px; right:68px; color:var(--text-2); font-size:12px; }
.undo-ai { position:absolute; top:5px; right:0; width:auto !important; min-height:30px !important; margin:0 !important; padding:2px 3px; background:transparent !important; color:var(--accent) !important; font-size:12px; opacity:0; }
.ai-fresh .undo-ai,.ai-checked:hover .undo-ai,.ai-checked:focus-within .undo-ai { opacity:1; }
.extras { margin-top:18px; border-top:1px solid var(--line); }
.extras h3 { color:var(--text-2); }
#ai-summary { white-space:pre-wrap; line-height:20px; }
.line { padding:9px 11px; margin:8px 0 0; background:var(--surface); border:1px solid var(--line); border-radius:12px; }
.line b { display:block; margin-bottom:3px; color:var(--text-2); font-size:11px; }
.line p { margin:0; }
#interim { color:var(--text-3); font-size:12px; margin-top:8px; }
.call-footer { flex:none; padding:10px 16px 14px; background:var(--bg); border-top:1px solid var(--line); }
.call-footer button { margin:0; }
body:not(.active-call):not(.manual-call) #end-review { display:none; }
body.active-call #start,body.manual-call #start { display:none; }
body.active-call #end-review,body.manual-call #end-review { display:block; background:var(--brand-strong); border:0; }
body:not(.active-call) #stop { display:none; }
.review-screen { display:flex; flex:1; flex-direction:column; min-height:0; }
.review-top { flex:none; padding:12px 16px; border-bottom:1px solid var(--line); }
.review-top #back-review { min-height:28px; padding:0; margin-bottom:5px; }
.review-top h2 { font-size:20px; line-height:24px; margin:0 0 4px; }
.review-top p { margin:0; }
.review-top #review-target { margin-top:10px; padding:10px 12px; color:var(--text); background:var(--surface); border:1px solid rgba(255,255,255,.18); border-radius:10px; font-size:12px; line-height:18px; font-weight:600; overflow-wrap:anywhere; }
.review-scroll { flex:1; min-height:0; overflow-y:auto; padding:16px; }
.review-lead-picker { padding-bottom:12px; border-bottom:1px solid var(--line); }
.review-lead-picker select { margin-top:8px; }
.review-lead-picker #review-create-prospect { margin:12px 0 0; }
.review-scroll > .hint { margin:12px 0; }
.review-card { padding:14px 0; border-top:1px solid var(--line); }
.review-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:8px; font-family:"Bricolage Grotesque",sans-serif; font-size:15px; }
.review-heading span:last-child { display:flex; align-items:center; gap:4px; color:var(--text-2); font:500 12px/16px Montserrat,sans-serif; }
.review-card textarea { margin:0; }
#review-status { margin:8px 0; color:var(--text-2); }
#review-status:empty { display:none; }
.review-footer { flex:none; padding:10px 16px 14px; background:var(--bg); border-top:1px solid var(--line); }
.review-footer button { min-height:48px; }
body.review-mode main > :not(#review) { display:none !important; }
#save-toast { position:fixed; bottom:16px; left:16px; right:16px; z-index:5; padding:12px 14px; color:var(--text); background:var(--surface-raised); border:1px solid var(--line); border-radius:12px; box-shadow:0 8px 24px rgba(0,0,0,.45); }
.stage-rail { display:flex; gap:4px; margin:0 0 8px; }
.stage-rail button { position:relative; flex:1; width:auto; height:40px; min-height:40px; padding:0; border:0; background:transparent; }
.stage-rail button::before { content:""; position:absolute; inset:17px 0; border-radius:999px; background:#454545; }
.stage-rail button.done::before { background:var(--brand); }
.stage-rail button.current::before { background:linear-gradient(90deg,var(--brand) var(--stage-progress),#484848 var(--stage-progress)); }
.stage-rail button:disabled { opacity:1; }
.stage-rail button:focus-visible { outline-offset:5px; }
.stage-kicker { color:var(--brand); font-size:12px; font-weight:700; letter-spacing:.08em; margin-bottom:7px; }
.checklist-head h2 { font-size:23px; line-height:26px; }
.stage-description { color:var(--text-2); font-size:12px; line-height:18px; margin:8px 0 17px; }
.checklist-stage { padding:14px 18px 22px; scrollbar-color:#555 transparent; scrollbar-width:thin; }
.checklist-stage #progress-track { display:none; }
.check-item { min-height:56px; display:flex; align-items:center; border-top:1px solid var(--line); }
.check-item:last-child { border-bottom:1px solid var(--line); }
.check-item label { width:100%; min-height:40px; font-size:14px; line-height:20px; padding-right:85px; }
.check-item small { display:none; }
.check-item .check-text { display:flex; flex-direction:column; gap:3px; }
.check-item .check-question { color:var(--text-2); font-size:13px; line-height:18px; font-weight:400; }
.check-item input:checked + .check-text .check-question { color:var(--text-3); }
.check-item input[type=checkbox] { appearance:none; width:24px; height:24px; border:1.5px solid var(--text-3); border-radius:7px; background:transparent; display:grid; place-items:center; cursor:pointer; }
.check-item input[type=checkbox]:checked { background:var(--brand); border-color:var(--brand); }
.check-item input[type=checkbox]:checked::after { content:""; width:10px; height:6px; border-left:2px solid white; border-bottom:2px solid white; transform:rotate(-45deg) translate(1px,-1px); }
.check-item.ai-checked .undo-ai { opacity:1; }
.ai-badge { top:18px; right:65px; }
.undo-ai { top:8px; min-height:40px !important; padding:8px 3px; }
.advance-card { margin-top:16px; padding:12px; background:#29241e; border:1px solid rgba(250,168,72,.35); border-radius:12px; display:flex; align-items:center; gap:8px; }
.advance-card strong { font-size:12px; }
.advance-card p { color:var(--text-2); font-size:11px; line-height:15px; margin:3px 0 0; }
.advance-card button { width:auto; min-height:36px; margin-left:auto; background:var(--accent); color:var(--bg); font-size:11px; border-radius:8px; }
.call-quick-actions { display:none; grid-template-columns:1fr 1fr; gap:8px; margin-bottom:9px; }
body.active-call .call-quick-actions,body.manual-call .call-quick-actions { display:grid; }
.call-quick-actions button { min-height:44px; background:var(--surface); border:1px solid rgba(255,255,255,.18); border-radius:10px; color:var(--text); font-size:12px; }
.call-quick-actions button:hover { background:var(--surface-raised); }
.suggestion-dot { display:inline-block; width:5px; height:5px; margin-left:4px; vertical-align:middle; background:var(--accent); border-radius:50%; }
.call-sheet-backdrop { position:fixed; inset:0; z-index:3; background:rgba(0,0,0,.58); }
.call-sheet { position:fixed; z-index:4; left:0; right:0; bottom:0; max-height:82dvh; overflow-y:auto; padding:8px 16px 22px; background:var(--surface-raised); border:1px solid rgba(255,255,255,.16); border-radius:18px 18px 0 0; box-shadow:0 -8px 28px rgba(0,0,0,.35); scrollbar-color:#555 transparent; scrollbar-width:thin; }
.call-sheet-handle { width:34px; height:4px; margin:0 auto 18px; border-radius:999px; background:#666; }
.call-sheet-header { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; }
.call-sheet-header p { color:var(--text-2); font-size:10px; font-weight:700; letter-spacing:.12em; margin:0 0 4px; }
.call-sheet-header h2 { font-size:22px; line-height:26px; margin:0; }
.call-sheet-header button { min-height:36px; }
.call-sheet-view { margin-top:18px; }
.call-sheet .now-card:not([hidden]) { display:block; min-height:0; margin:0; padding:0; background:transparent; border:0; border-radius:0; }
.call-sheet .now-heading { color:var(--accent); }
.call-sheet .now-card #ai-suggestion { font-size:17px; line-height:24px; }
.call-sheet #ai-ask-card { margin-top:22px; padding-top:16px; border-top:1px solid var(--line); }
.call-sheet #ai-summary-card p,.call-sheet #notes-empty { color:var(--text-2); font-size:13px; line-height:20px; }
.call-sheet #ai-summary-card h3,.call-sheet #read-summaries h3 { font-size:14px; }
.call-sheet-options { margin-top:22px; padding-top:8px; border-top:1px solid var(--line); }
.call-sheet-options summary { min-height:40px; padding:10px 0; color:var(--text-2); cursor:pointer; }
.call-sheet-options label { display:flex; align-items:flex-start; gap:8px; color:var(--text-2); font-size:12px; line-height:17px; font-weight:500; }
.call-sheet-options input { width:17px; height:17px; margin:0; accent-color:var(--brand); }
.call-sheet-options #stop { margin-top:14px; }
.review-scroll { padding:18px; }
.review-card { border:0; padding:14px 0 0; }
.review-card textarea { min-height:220px; }
.review-checklist { margin-top:14px; border-top:1px solid var(--line); }
.review-checklist summary { display:flex; justify-content:space-between; align-items:center; gap:8px; min-height:48px; cursor:pointer; font:600 15px/20px "Bricolage Grotesque",sans-serif; }
.review-checklist summary span:last-child { color:var(--text-2); font:500 11px/16px Montserrat,sans-serif; text-align:right; }
.review-checklist .hint { margin:0 0 8px; }
.review-checklist-item { display:flex; align-items:flex-start; gap:9px; min-height:44px; padding:10px 0; border-top:1px solid var(--line); font-size:12px; line-height:18px; font-weight:500; cursor:pointer; }
.review-checklist-item input { flex:none; width:18px; height:18px; margin:0; }
.review-checklist-item span { min-width:0; }
.review-checklist-item.is-done span { color:var(--text); font-weight:700; }
.review-checklist-item:not(.is-done) span { color:var(--text-2); text-decoration:line-through; text-decoration-color:var(--text-3); }
@media (prefers-reduced-motion: reduce) { * { animation-duration:.1s !important; transition-duration:.1s !important; } }

/* Faixa da sugestão: aparece só quando há sugestão; um clique abre o detalhe. */
.suggestion-strip { display:block; width:100%; margin:0 0 9px !important; padding:9px 12px; text-align:left; background:#29241e; border:1px solid rgba(250,168,72,.35); border-radius:10px; color:var(--text); }
.suggestion-strip #suggestion-strip-label { display:block; color:var(--accent); font-size:11px; line-height:14px; font-weight:600; text-transform:uppercase; letter-spacing:.04em; }
.suggestion-strip #suggestion-strip-text { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:14px; line-height:20px; font-weight:600; margin-top:2px; }
.next-call { margin-bottom:9px; }
.next-call .consent { margin-bottom:8px; }
.call-end-actions { display:flex; gap:8px; }
.call-end-actions #end-review { flex:1.4; }
.call-end-actions #skip-call { flex:1; min-height:44px; background:var(--surface); border:1px solid rgba(255,255,255,.18); border-radius:10px; color:var(--text); font-size:12px; }
body:not(.capturing) .suggestion-strip { display:none !important; }
.next-call #next-call-start { background:var(--surface); border:1px solid rgba(255,255,255,.18); color:var(--text); }
.next-call #next-call-start:disabled { opacity:.5; }
