@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700;800&display=swap");.lead-date{display:block;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.lead-date>span{color:var(--muted)}.lead-date time{color:var(--soft)}.lead-row>.lead-date{padding-left:12px;text-align:left}.lead-dates{display:flex;flex-direction:column;gap:7px}.lead-dates>.lead-date>span{display:block}.lead-dates p{margin:0}.lead-row .row-top{flex-wrap:wrap}.lead-row .row-top strong{flex:1 1;min-width:90px}:root{font-family:Figtree,Inter,system-ui,sans-serif;font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}a{text-decoration:none;color:inherit}h1,h2,p{margin-top:0}h1,h2{letter-spacing:-.02em}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.console{--bg:#f4f4f5;--surface:#fdfdfd;--text:#1a1a1c;--muted:#707076;--soft:#57575c;--border:#e2e2e5;--accent:#e03a2a;--accent-hover:#bf2c1e;--accent-text:#982216;--accent-soft:#f4aaa2;--accent-wash:#fdecea;--shadow-sm:0 0 0 1px #e2e2e5,0 1px 3px rgba(20,20,24,.05);--shadow-md:0 0 0 1px #d4d4d8,0 8px 22px rgba(20,20,24,.10);min-height:100vh;color:var(--text);background:radial-gradient(1200px 500px at 0 -10%,color-mix(in srgb,var(--accent) 7%,transparent),transparent 60%),var(--bg);font-size:14px}.console[data-theme=nocturne]{--bg:#161826;--surface:#202232;--text:#e9e9ed;--muted:#aaa9bb;--soft:#cdcbe0;--border:#38394b;--accent:#9184d9;--accent-hover:#a598ed;--accent-text:#bfb5f2;--accent-soft:#544b82;--accent-wash:#2d2946;--shadow-sm:0 0 0 1px #38394b,0 1px 3px #0003;--shadow-md:0 0 0 1px #49495e,0 8px 22px #0004}.console[data-theme=daylight]{--bg:#f5f6fa;--surface:#fdfdff;--text:#1c1e2b;--muted:#72768a;--soft:#5a5e72;--border:#dfe1ea;--accent:#5b4ec4;--accent-hover:#43379a;--accent-text:#43379a;--accent-soft:#b9b2ec;--accent-wash:#eeecfc}.console[data-theme=showroom]{--bg:#f4f2ed;--surface:#fcfbf8;--text:#22201c;--muted:#7a7468;--soft:#615c52;--border:#e3ded4;--accent:#2d5ca3;--accent-hover:#1f4580;--accent-text:#1f4580;--accent-soft:#a8c0e2;--accent-wash:#e8eff8}.console[data-theme=porcelain]{--bg:#f3f4f4;--surface:#fbfbfb;--text:#191b1e;--muted:#6f747a;--soft:#565b61;--border:#dfe1e3;--accent:#1f7a57;--accent-hover:#175a41;--accent-text:#175a41;--accent-soft:#a0cdb9;--accent-wash:#e7f3ed}.topbar{min-height:62px;padding:11px 22.4px;gap:22px;flex-wrap:wrap;background:var(--surface);border-bottom:1px solid var(--border)}.brand,.topbar{display:flex;align-items:center}.brand{gap:10px;white-space:nowrap}.brand img{height:30px;width:auto;max-width:160px;object-fit:contain;border-radius:3px}.brand span{color:var(--soft);font-size:15px;font-weight:600;letter-spacing:-.01em}.header-right,.main-nav,.theme-picker{display:flex;align-items:center;gap:6px}.main-nav{margin-left:12px}.header-right{margin-left:auto;gap:15px}.btn{min-height:36px;padding:6px 11px;border:1px solid transparent;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;gap:6px;background:transparent;color:var(--text);font-size:13px;font-weight:600;line-height:1.2;white-space:nowrap}.btn:hover:not(:disabled){filter:brightness(.96)}.btn-primary{background:var(--accent);border-color:var(--accent);color:#fff}.btn-primary:hover:not(:disabled){background:var(--accent-hover)}.btn-secondary{background:var(--surface);border-color:var(--border);box-shadow:var(--shadow-sm)}.btn-ghost:hover:not(:disabled){background:var(--accent-wash)}.btn-icon{height:36px;width:36px;padding:0;border-color:var(--border);background:var(--surface)}.nav-count{min-width:19px;height:18px;padding:1px 5px;border-radius:5px;background:color-mix(in srgb,var(--surface) 80%,transparent);color:var(--accent-text);font-size:11px}.btn-primary .nav-count{background:#ffffff35;color:#fff}.tag{display:inline-flex;align-items:center;gap:3px;padding:3px 6px;border-radius:6px;font-size:11px;font-weight:600;line-height:1.2;white-space:nowrap}.tag-accent{background:var(--accent);color:#fff}.tag-neutral{background:var(--bg);color:var(--soft)}.tag-outline{border:1px solid var(--border);color:var(--soft)}.accent{color:var(--accent)}.agent-picker{position:relative}.agent-picker>.btn .tag{margin-left:4px}.agent-menu{position:absolute;top:calc(100% + 8px);right:0;width:300px;z-index:10;padding:12px;background:var(--surface);border-radius:8px;box-shadow:var(--shadow-md)}.kicker{font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--accent-text);font-weight:700;margin-bottom:10px}.agent-option{display:flex;align-items:center;gap:8px;padding:8px 3px}.agent-option span:nth-child(2){flex:1 1}.agent-option.unavailable{opacity:.55}.agent-menu p{margin:10px 2px 2px;color:var(--muted);font-size:12px;line-height:1.5}.theme-picker{gap:6px}.theme-swatch{width:22px;height:22px;border:1px solid var(--border);border-radius:50%;padding:0;display:grid;place-items:center}.theme-swatch span{width:7px;height:7px;border-radius:50%}.theme-swatch.active{box-shadow:0 0 0 2px var(--accent)}.avatar{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--border);color:var(--text);font-size:11px;font-weight:700}.status-band{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0 22px;padding:7px 0;border-bottom:1px solid var(--border);color:var(--soft);font-size:12px}.status-band>span:first-child{display:flex;align-items:center;gap:6px}.sync{white-space:nowrap;color:var(--muted)}.review-dot,.sync i{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--accent);box-shadow:0 0 8px var(--accent);margin-right:5px}.console-main{max-width:1480px;margin:0 auto;padding:22.4px}.leads-layout{display:flex;gap:22.4px;align-items:flex-start}.lead-sidebar{flex:0 0 330px;position:-webkit-sticky;position:sticky;top:16px;max-height:calc(100vh - 32px);display:flex;flex-direction:column}.sidebar-title{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.detail-heading h1,.sidebar-title h1{font-size:26px;line-height:1.1;margin:0 0 14px;font-weight:700}.sidebar-title p{font-size:12px;color:var(--muted);white-space:nowrap}.input{min-height:36px;width:100%;padding:7px 10px;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:8px;outline:none}.input::placeholder{color:var(--muted)}.search-box{position:relative}.search-box svg{position:absolute;top:10px;left:10px;color:var(--muted)}.search-box .input{padding-left:32px}.filter-row{display:flex;gap:6px;margin:9px 0 14px}.filter-row select{flex:1 1;min-width:0;font-size:12px}.seg{display:flex;align-items:center;background:var(--border);border-radius:7px;padding:2px;gap:2px}.seg button{border:0;border-radius:5px;background:transparent;padding:7px 8px;color:var(--muted);font-size:11px;white-space:nowrap}.seg button.selected{background:var(--surface);color:var(--text);box-shadow:var(--shadow-sm)}.lead-list{overflow-y:auto;padding:0 3px 15px 0}.group-label{display:flex;justify-content:space-between;align-items:center;margin:4px 0 8px;padding:0 7px;color:var(--accent-text);font-size:11px;font-weight:700;letter-spacing:.07em;text-transform:uppercase}.group-label span:first-child{display:flex;align-items:center;gap:3px}.lead-group:not(:first-child){margin-top:18px}.lead-group:not(:first-child) .group-label{color:var(--muted)}.lead-row{display:flex;flex-direction:column;align-items:stretch;width:100%;gap:4px;padding:9px 8px;border:0;border-radius:8px;background:transparent;color:var(--text);text-align:left}.lead-row:hover{background:color-mix(in srgb,var(--surface) 75%,transparent)}.lead-row.active{background:var(--surface);box-shadow:inset 0 0 0 1px var(--accent-soft)}.row-bottom,.row-top{display:flex;align-items:center;gap:5px;min-width:0}.row-top strong{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.row-top time{margin-left:auto;color:var(--muted)}.row-top time,.row-vehicle{font-size:12px;white-space:nowrap}.row-vehicle{color:var(--soft)}.row-bottom,.row-vehicle{padding-left:12px;overflow:hidden;text-overflow:ellipsis}.row-bottom{color:var(--muted);font-size:12px;white-space:nowrap}.row-bottom svg{flex:none}.empty-list{color:var(--muted);font-size:13px;padding:12px}.detail-panel{min-width:0;flex:1 1}.no-selection{padding:80px 22px;text-align:center;color:var(--muted)}.no-selection svg{color:var(--accent)}.detail-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:18px}.detail-heading h1{margin-bottom:7px}.detail-nav{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:12px}.detail-nav span{margin-right:7px}.detail-grid{display:flex;align-items:flex-start;flex-wrap:wrap;gap:16.8px}.conversation-column{flex:3 1 440px;min-width:0}.context-column{flex:1 1 260px;max-width:300px;display:flex;flex-direction:column;gap:12px}.section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:4px 0 17px}.card h2,.section-heading h2{font-size:16px;margin:0;font-weight:700}.card>p,.section-heading span{font-size:12px;color:var(--muted)}.conversation{gap:12px}.conversation,.message{display:flex;flex-direction:column}.message{max-width:78%;gap:5px}.message.out{align-self:flex-end;align-items:flex-end}.message-meta{color:var(--muted);font-size:12px}.message-bubble{padding:9px 11px;border-radius:8px 8px 8px 4px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;background:var(--surface);box-shadow:var(--shadow-sm)}.message.out .message-bubble{background:var(--accent-wash);border:1px solid var(--accent-soft);box-shadow:none;border-radius:8px 8px 4px 8px;color:var(--accent-text)}.system-event{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:12px;text-align:center}.system-event:after,.system-event:before{content:"";height:1px;background:linear-gradient(90deg,transparent,var(--border));flex:1 1}.system-event:after{transform:rotate(180deg)}.conversation-empty{display:flex;align-items:center;gap:7px;padding:30px 10px;color:var(--muted);font-size:12px}.draft-card{margin-top:18px;padding:12px;background:var(--surface);border-radius:14px;box-shadow:0 0 0 1px var(--accent-soft),0 0 32px color-mix(in srgb,var(--accent) 12%,transparent);display:flex;flex-direction:column;gap:10px}.draft-header{display:flex;align-items:center;gap:7px}.draft-header strong{font-weight:600}.draft-version{margin-left:auto;color:var(--muted);font-size:12px}.subject{font-weight:600}.draft-editor{min-height:130px;line-height:1.55;background:var(--bg);resize:vertical}.draft-meta{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:12px}.draft-meta .btn{min-height:26px;padding:4px 6px}.draft-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.draft-actions .approve{margin-left:auto}.action-note{font-size:11px;color:var(--muted);margin:0}.reject-panel{background:var(--bg);border-radius:8px;padding:10px}.reject-panel p{font-size:12px;color:var(--muted);margin:4px 0 10px}.reason-list{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}.reason-list .btn{min-height:30px;font-size:11px}.reject-panel .draft-actions{justify-content:flex-end}.card{padding:12px;background:var(--surface);border-radius:8px;box-shadow:var(--shadow-sm)}.context-column .card{display:flex;flex-direction:column;gap:8px}.context-column .kicker{margin-bottom:2px}.info-row{display:grid;grid-template-columns:18px 1fr;grid-gap:6px;gap:6px;align-items:center;font-size:12px;overflow-wrap:anywhere}.info-row svg{color:var(--muted)}.vehicle-item{padding:9px;background:var(--bg);border-radius:5px;font-size:12px}.vehicle-item strong{font-weight:600}.vehicle-item p{margin:4px 0;color:var(--muted)}.unavailable-card{opacity:.75}.unavailable-card textarea{min-height:65px;background:var(--bg)}.no-draft{display:flex;align-items:center;gap:9px;margin-top:18px;color:var(--soft)}.no-draft svg{color:var(--accent);flex:none}.muted{color:var(--muted)!important;font-size:12px}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:8px;padding:12px 16px;background:var(--surface);box-shadow:var(--shadow-md);border-radius:8px;z-index:20;font-size:13px}.toast svg{color:var(--accent)}.error-banner{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;margin-bottom:15px;background:#fff1ed;border:1px solid #f2b4a9;border-radius:8px;color:#a53223}.error-banner button{background:transparent;border:0;color:inherit}.dashboard-title h1{font-size:28px;margin:0 0 4px}.dashboard-title p{color:var(--muted);font-size:13px;margin-bottom:20px}.kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));grid-gap:11px;gap:11px;margin-bottom:17px}.kpi{min-height:125px;display:flex;flex-direction:column;gap:8px}.kpi span{font-size:12px;color:var(--soft)}.kpi strong{font-size:30px;font-weight:500;letter-spacing:-.02em}.kpi small{font-size:12px;color:var(--accent-text)}.dashboard-grid{display:flex;flex-wrap:wrap;gap:16px;margin-bottom:16px}.dashboard-grid>.card:first-child{flex:2 1 520px}.dashboard-grid>.card:last-child{flex:1 1 300px}.dashboard .card h2{font-size:17px;margin-bottom:5px}.dashboard .card>p{margin:0 0 15px}.chart-area{margin-top:10px}.chart-area svg{display:block;width:100%;height:200px;overflow:visible}.chart-labels{display:flex;justify-content:space-between;color:var(--muted);font-size:12px}.progress-row{margin:17px 0}.progress-row>div:first-child{display:flex;justify-content:space-between;gap:8px;margin-bottom:7px;font-size:12px}.progress-row span{display:flex;align-items:center;gap:5px}.progress-row svg{color:var(--accent)}.progress-row strong{white-space:nowrap}.bar-row>div,.progress-track{height:5px;background:var(--bg);border-radius:10px;overflow:hidden}.bar-row i,.progress-track i{display:block;height:100%;background:var(--accent);border-radius:10px}.bar-row{display:grid;grid-template-columns:minmax(120px,1fr) minmax(80px,1.2fr) 25px;align-items:center;grid-gap:8px;gap:8px;margin:12px 0;font-size:12px}.bar-row>div{height:8px}.bar-row strong{text-align:right}.no-data{padding:20px 0;color:var(--muted)}.comparison{margin-top:16px}.table-scroll{overflow-x:auto}.comparison table{width:100%;min-width:560px;border-collapse:collapse;font-size:13px}.comparison td,.comparison th{padding:11px 8px;border-bottom:1px solid var(--border);text-align:left}.comparison th{font-size:11px;color:var(--muted);font-weight:600}.signin-page{min-height:100vh;display:grid;place-items:center;background:#f4f4f5}.signin-card{background:white;padding:36px;border-radius:14px;box-shadow:0 8px 24px #0001;max-width:380px}.signin-card img{height:40px;max-width:180px;object-fit:contain}.signin-card h1{margin:16px 0 6px}.signin-card p{color:#707076;line-height:1.5}.signin-card .btn-primary{background:#e03a2a;color:white}@media(max-width:1100px){.context-column{max-width:none;flex:1 1 100%;display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}.header-right{margin-left:0}.status-band{align-items:flex-start;flex-direction:column;gap:5px}}@media(max-width:780px){.topbar{gap:10px}.main-nav{margin-left:0}.header-right{width:100%;justify-content:space-between}.console-main{padding:16px}.leads-layout{flex-direction:column}.lead-sidebar{position:static;max-height:none;width:100%;flex-basis:auto}.lead-list{max-height:320px}.detail-panel{width:100%}.status-band{margin:0 16px}.message{max-width:92%}}@media(max-width:480px){.topbar{padding:10px 14px}.brand,.main-nav{width:100%}.main-nav .btn{flex:1 1}.agent-picker>.btn{font-size:11px}.theme-picker{gap:3px}.theme-swatch{width:18px;height:18px}.detail-heading{flex-wrap:wrap}.draft-actions .approve{margin-left:0;width:100%}.context-column{display:flex}.bar-row{grid-template-columns:1fr 80px 22px}}.rule-list{display:flex;flex-direction:column;gap:6px}.rule-item{padding:9px;background:var(--bg);border-radius:5px;font-size:12px;line-height:1.45}.rule-item p{margin:4px 0 2px}.rule-item .btn{min-height:26px;padding:3px 6px;font-size:11px}.context-column .card textarea.input{min-height:65px;background:var(--bg);resize:vertical}.context-column .card select.input{font-size:12px}.overview-card{margin-bottom:16.8px;display:flex;flex-direction:column;gap:6px;font-size:13px;line-height:1.5}.overview-card p{margin:0}.overview-card ul{margin:0;padding-left:18px}.overview-card .kicker{margin-bottom:2px}.overview-missing{margin:0 0 16.8px}.conversation-column>.section-heading:not(:first-child){margin-top:26px}.message.note{align-self:center;max-width:88%}.message.note .message-bubble{background:var(--bg);box-shadow:none;border:1px dashed var(--border);color:var(--soft)}.regenerate-instruction{font-size:12px}.approved-card,.both-drafts{display:grid;grid-gap:8px;gap:8px;margin-bottom:12px}.approved-subject{margin:0;font-weight:600;font-size:13px}.crm-note{display:flex;flex-direction:column;gap:6px;padding:8px;background:var(--bg);border-radius:8px;font-size:12px}.crm-note label{display:flex;align-items:center;gap:6px;color:var(--soft)}.crm-note textarea{min-height:52px;font-size:12px;resize:vertical}.shaped-by{font-size:12px;color:var(--soft)}.shaped-by summary{cursor:pointer;color:var(--accent-text);font-weight:600}.shaped-by ul{margin:6px 0 0;padding-left:18px;display:grid;grid-gap:3px;gap:3px}.learning{display:grid;grid-gap:18px;gap:18px;max-width:980px}.learning-section{display:grid;grid-gap:10px;gap:10px}.learning-section h2{display:flex;align-items:center;gap:8px}.lesson{display:grid;grid-gap:6px;gap:6px}.lesson-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.lesson-head strong{font-weight:600;line-height:1.45}.lesson-warning{margin:0;font-size:12px;color:#a53223}.replay-list{display:grid;grid-gap:10px;gap:10px;margin-top:8px}.replay-row{border-top:1px solid var(--border);padding-top:8px}.replay-pair{display:grid;grid-template-columns:1fr 1fr;grid-gap:10px;gap:10px}.replay-pair p{margin:4px 0 0;font-size:12px;color:var(--text);white-space:pre-wrap}@media (max-width:640px){.replay-pair{grid-template-columns:1fr}}.history-card{align-self:stretch;margin:0 4%;padding:9px 12px 10px;border-radius:8px;display:grid;grid-gap:5px;gap:5px}.history-card p{margin:0;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--text)}.history-card-head{display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:12px}.history-card-head strong{font-weight:700}.history-card-head span{color:var(--muted)}.note-card{--note:#c98a12;background:color-mix(in srgb,var(--note) 10%,var(--surface));border:1px solid color-mix(in srgb,var(--note) 35%,var(--border));border-left:4px solid var(--note)}.note-card .history-card-head strong,.note-card .history-card-head svg{color:color-mix(in srgb,var(--note) 75%,var(--text))}.instruction-card{background:var(--surface);border:1px solid var(--border);border-left:4px solid var(--soft);box-shadow:var(--shadow-sm)}.instruction-card p{font-style:italic;color:var(--soft)}.instruction-card p:before{content:"“"}.instruction-card p:after{content:"”"}.reject-panel label{display:block;font-size:12px;margin-bottom:6px}.reject-panel textarea{resize:vertical;min-height:80px;margin-bottom:10px}.history-section{display:flex;flex-direction:column;gap:12px;min-width:0}.history-divider{border-top:2px solid var(--accent-soft);padding:12px 0 4px;margin-top:10px}.history-divider h3{font-size:13px;margin:0;color:var(--text)}.history-divider p{font-size:12px;margin:4px 0 0;color:var(--muted)}