:root{--bg:#f4f3ed;--ink:#23352e;--muted:#758078;--line:#e3e6dc;--green:#244b3b;--orange:#dc824f;--white:#fffefb}*{box-sizing:border-box}body{margin:0;background:var(--bg);font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);font-size:14px}header{max-width:1440px;margin:auto;padding:25px 5.5%;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.brand{color:var(--ink);text-decoration:none;font-size:23px;letter-spacing:-.8px;font-weight:650;display:flex;align-items:center;gap:10px}.brand-mark{display:grid;place-items:center;background:var(--green);color:white;border-radius:11px;width:32px;height:32px;font-family:Georgia,serif;font-size:30px}.beta{font-size:9px;letter-spacing:1px;border:1px solid #ccd2c6;padding:4px 5px;border-radius:4px;margin-left:6px}.environment{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px}.environment i{background:#87a27c;width:7px;height:7px;border-radius:50%}main{max-width:1320px;margin:0 auto;padding:40px 32px 20px}.intro{display:flex;justify-content:space-between;align-items:center;margin-bottom:32px}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:650;color:var(--muted);margin:0 0 16px}h1{font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:46px;line-height:1.12;letter-spacing:-1.2px;margin:0 0 17px}.subtitle{color:var(--muted);margin:0;line-height:1.5}button,input,select,textarea{font:inherit}button{cursor:pointer;border-radius:9px;padding:12px 17px;font-weight:550;transition:background .15s,transform .15s}button:hover:not(:disabled){transform:translateY(-1px)}button:disabled{opacity:.4;cursor:not-allowed}.primary{background:var(--green);color:white;border:1px solid var(--green)}.primary:hover:not(:disabled){background:#306047}.outline{background:transparent;color:var(--ink);border:1px solid #cdd4c9}.danger{color:#9b4b3d;border:1px solid #ead5cb;background:#fff9f6}.workspace{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(310px,1fr);gap:22px}.card{background:var(--white);border:1px solid var(--line);border-radius:16px;overflow:hidden}.section-head{display:flex;align-items:center;justify-content:space-between;gap:10px}h2{font-size:14px;letter-spacing:-.2px;margin:0;font-weight:600}.conversation>.section-head{padding:22px 25px;border-bottom:1px solid #eef0e8}.pill{font-size:10px;background:#eff1e9;color:#7c867c;border-radius:20px;padding:6px 10px}.pill.live{background:#e5efe5;color:#3c6748}.voice-space{padding:33px 24px 23px;text-align:center}.orb{margin:auto auto 22px;border-radius:50%;width:120px;height:120px;display:grid;place-items:center;background:radial-gradient(circle at 35% 30%,#78937a,#274e3c 72%);color:#edf2e4;box-shadow:0 0 0 12px #f4f6ee,0 0 0 13px #e8ecdf}.orb.live{animation:breathe 2.3s ease-in-out infinite}.voice-space h3{font-family:Georgia,serif;font-size:25px;font-weight:400;margin:0 0 10px}.voice-space>p{color:var(--muted);font-size:12px}.timer{font-variant-numeric:tabular-nums;color:#96a08f;font-size:13px;margin:18px 0}.call-controls{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}.status{min-height:17px;line-height:1.6;margin:15px 0 0!important}.status.error{color:#a35040}audio{height:28px;width:260px;margin-top:12px}.transcript-heading{display:flex;align-items:center;justify-content:space-between;padding:16px 25px;border-top:1px solid var(--line);border-bottom:1px solid #eef0e8}.transcript-heading h3{font-size:12px;margin:0;font-weight:600}.transcript-heading span{color:#9aa291;font-size:10px}.transcript{padding:18px 25px;min-height:190px;max-height:340px;overflow:auto}.empty{text-align:center;padding:26px 10px;color:#9aa28f}.empty span{font-family:Georgia,serif;font-style:italic;font-size:19px}.empty p{font-size:11px;margin-top:14px}.bubble{margin-bottom:14px;padding:13px 15px;border-radius:10px;background:#f1f4ec;max-width:92%;line-height:1.65;font-size:13px}.bubble.user{margin-left:auto;background:#edf0f4}.bubble span{display:block;font-size:9px;letter-spacing:1px;color:var(--muted);margin-bottom:4px;font-weight:650}.bubble p{margin:0;white-space:pre-wrap}aside{display:flex;flex-direction:column;gap:18px}.brief{padding:23px}.small-label{font-size:9px;letter-spacing:1px;color:#a5ab9e}.stage{background:#f3f5ec;border:1px solid #e8ebdd;border-radius:9px;padding:14px;margin-top:18px;display:flex;flex-direction:column;gap:7px}.stage span,.next-step span{font-size:10px;color:var(--muted)}.stage strong{font-size:12px;font-weight:550}dl{margin:10px 0 17px}dl div{display:grid;grid-template-columns:100px 1fr;padding:11px 0;border-bottom:1px solid #eef0e8;gap:12px}dt{color:var(--muted);font-size:11px}dd{margin:0;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.next-step{padding:12px 14px;background:#fcf1e9;border-left:3px solid var(--orange);border-radius:5px}.next-step p{font-size:12px;line-height:1.5;margin:7px 0 0}.minor{font-size:11px;margin:17px 0 8px}ul{font-size:11px;color:var(--muted);padding-left:17px;line-height:1.7;margin:0}.micro{font-size:10px;color:var(--muted);line-height:1.7;margin:14px 0 0}.scenarios{padding:21px 23px}.scenarios h2{margin-bottom:15px}.scenario{display:flex;align-items:center;width:100%;gap:13px;background:transparent;border:0;border-bottom:1px solid #eef0e8;border-radius:0;text-align:left;padding:13px 0}.scenario:last-of-type{border-bottom:0}.scenario-icon{width:30px;height:30px;background:#f2f3e9;border-radius:8px;display:grid;place-items:center;font-size:18px;color:#6f8162}.scenario strong,.scenario small{display:block}.scenario strong{font-size:12px;font-weight:550}.scenario small{font-size:10px;margin-top:4px;color:var(--muted)}.scenario.selected .scenario-icon{background:#fae9dc;color:#bf7947}.review{margin-top:22px;padding:25px;display:grid;grid-template-columns:1fr 1fr;gap:38px}.review h2{font-family:Georgia,serif;font-size:25px;font-weight:400}.review p{color:var(--muted);font-size:12px;line-height:1.7}.review .eyebrow{font-size:9px}.review-input label,dialog label{display:block;font-size:11px;color:var(--muted);margin-bottom:8px}textarea,input,select{width:100%;background:#fffefb;border:1px solid #dce1d5;border-radius:8px;padding:12px;color:var(--ink);outline:none}textarea:focus,input:focus,select:focus{border-color:#63836e;box-shadow:0 0 0 3px #eef3e9}textarea{min-height:85px;resize:vertical;font-size:12px;line-height:1.6}.review-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:10px}.review-actions button{font-size:11px;padding:10px 13px}footer{font-size:10px;color:#949c8e;text-align:center;padding:25px 0 5px}dialog{border:1px solid var(--line);border-radius:16px;padding:27px;max-width:470px;width:calc(100% - 32px);color:var(--ink);background:var(--white);box-shadow:0 25px 90px #152a2b20}dialog::backdrop{background:#19332d60;backdrop-filter:blur(4px)}dialog h2{font-family:Georgia,serif;font-size:25px;font-weight:400}dialog p{color:var(--muted);line-height:1.65;font-size:12px}dialog label{margin-top:18px}dialog .primary{width:100%;margin-top:20px}.icon-button{background:transparent;border:0;font-size:23px;padding:0 5px}button:focus-visible{outline:3px solid #abc9b1;outline-offset:3px}@keyframes breathe{50%{box-shadow:0 0 0 17px #f0f4e8,0 0 0 18px #e8ecdf}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}@media(max-width:850px){main{padding:28px 18px}.workspace{grid-template-columns:1fr}.intro{gap:20px;align-items:flex-start}h1{font-size:37px}.review{grid-template-columns:1fr;gap:20px}.environment{font-size:10px}header{padding:20px}.intro .outline{font-size:11px;padding:10px;white-space:nowrap}}@media(max-width:500px){h1{font-size:32px}.brand{font-size:19px}.environment{max-width:120px;line-height:1.5}.intro{flex-direction:column}.transcript-heading span{display:none}.voice-space{padding:30px 15px 20px}.review-actions{justify-content:flex-start}.call-controls button{padding:11px 13px;font-size:12px}}
:root{--sidebar:232px}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:#fffefb;border-right:1px solid var(--line);padding:28px 18px;z-index:20;display:flex;flex-direction:column;gap:0}.sidebar .brand{font-size:20px;padding:0 7px;white-space:nowrap}.sidebar .brand-mark{width:29px;height:29px}.workspace-name{display:flex;gap:10px;padding:18px 10px;margin:25px 0 16px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);align-items:center;font-size:12px;font-weight:550}.workspace-name small,.sidebar-bottom small{display:block;color:var(--muted);font-size:9px;font-weight:400;margin-top:5px}.workspace-avatar,.avatar{width:32px;height:32px;border-radius:9px;background:#e9eedf;display:grid;place-items:center;font-size:10px;color:#59704c}.sidebar nav{display:flex;flex-direction:column;gap:3px}.sidebar nav button{display:flex;gap:11px;align-items:center;border:0;background:transparent;padding:12px 13px;text-align:left;color:#7b8376;font-size:12px;font-weight:450}.sidebar nav button span{width:17px;text-align:center;font-size:16px;color:#8e9b87}.sidebar nav button.active{background:#eaf0e1;color:#34513b;font-weight:600}.sidebar nav button.active span{color:#426b41}.sidebar nav button:hover{background:#f2f4ed}.sidebar-bottom{margin-top:auto;display:flex;gap:9px;align-items:center;border-top:1px solid var(--line);padding:19px 6px 0;font-size:11px}.logout{border:0;background:transparent;padding:6px;margin-left:auto;font-size:20px;color:var(--muted)}.app-content{margin-left:var(--sidebar);min-height:100vh}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 38px;border-bottom:1px solid var(--line);color:#7d8677;font-size:12px;background:#f7f7f1}.topbar-actions{display:flex;gap:22px;align-items:center}.topbar input{width:230px;background:#fffefb;font-size:11px;padding:10px 13px;border-color:#e4e7dc}.mode-banner{padding:12px 38px;background:#eeeede;font-size:10px;color:#7c7f62;line-height:1.6}.mode-banner strong{font-weight:600}.app-page{padding:35px 38px;max-width:1600px;margin:auto}.app-page[hidden]{display:none!important}.page-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.page-head h1{font-size:39px;line-height:1.15}.page-head .subtitle{font-size:12px;max-width:630px}.page-head .eyebrow{font-size:9px;margin-bottom:14px}.page-head button{white-space:nowrap;font-size:12px}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:23px}.stat{padding:22px;display:flex;flex-direction:column;gap:11px}.stat>span{color:var(--muted);font-size:11px}.stat>strong{font-family:Georgia,serif;font-size:37px;font-weight:400;line-height:1}.stat>small{color:#a0a693;font-size:9px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(270px,1fr);gap:22px;margin-bottom:22px}.module-card{padding:24px;margin-bottom:20px}.module-card .section-head{margin-bottom:18px}.module-card .section-head button{font-size:10px;padding:8px 11px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:11px}th{font-size:9px;letter-spacing:.5px;font-weight:550;color:#8a9283;padding:14px 12px 14px 0;border-bottom:1px solid var(--line);white-space:nowrap}td{padding:15px 12px 15px 0;border-bottom:1px solid #eef0e7;vertical-align:middle;line-height:1.6}tr:last-child td{border-bottom:0}td strong{display:block;font-size:11px;font-weight:550;color:#3d4d3d}td small{display:block;color:#8d9586;font-size:9px;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}td button{font-size:9px;padding:7px 9px;white-space:nowrap}.tag{display:inline-block;background:#f0f1e7;color:#828a72;border-radius:5px;font-size:9px;padding:5px 8px;white-space:nowrap}.tag.good{background:#e9f1e2;color:#587c45}.flow-list{padding:4px 0 0;margin:0;list-style:none}.flow-list li{display:flex;gap:14px;align-items:center;padding:13px 0}.flow-list li>span{background:#f1f4e8;border:1px solid #e7ebda;color:#7a8f67;width:30px;height:30px;border-radius:8px;display:grid;place-items:center;font-size:10px}.flow-list strong{display:block;font-size:11px;font-weight:550}.flow-list small{display:block;font-size:9px;color:#969e8d;margin-top:4px}.module-empty{padding:50px 20px;text-align:center;color:#9aa28e}.module-empty>span{width:42px;height:42px;border-radius:12px;background:#f0f3e6;margin:auto;display:grid;place-items:center;font-size:22px}.module-empty h3{font-family:Georgia,serif;font-size:23px;font-weight:400;margin:15px 0 8px;color:#6e7d60}.module-empty p{font-size:11px;line-height:1.7}.kanban{display:grid;grid-template-columns:repeat(6,minmax(190px,1fr));gap:16px;overflow:auto;padding-bottom:10px;min-height:390px}.kanban-column{background:#eceee3;border-radius:12px;padding:14px;min-height:330px}.kanban-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.kanban-head h2{font-size:11px;font-weight:550}.kanban-head>span{font-size:9px;color:#8c977f;background:#dfe4d4;border-radius:5px;padding:3px 6px}.deal{width:100%;padding:16px;text-align:left;margin-bottom:12px;cursor:pointer;border-radius:10px}.deal>span{font-size:8px;letter-spacing:.8px;color:#8c9b78;display:block;text-transform:uppercase;margin-bottom:12px}.deal strong{display:block;font-size:12px;font-weight:550}.deal p{font-size:10px;line-height:1.5;color:#8a9581;font-weight:400}.deal small{display:block;border-top:1px solid var(--line);padding-top:10px;font-size:9px;color:#919b88;font-weight:400}.kanban-empty{font-size:10px;text-align:center;color:#a0a992;padding-top:35px}.quality-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:23px}.quality-card{padding:22px}.quality-card>span{color:#9aae84;font-size:25px;display:block;margin-bottom:15px}.quality-card h2{font-size:12px}.quality-card p{font-size:11px;color:var(--muted);line-height:1.7}.settings-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;margin-bottom:24px}.integration{padding:25px}.integration-icon{width:38px;height:38px;border-radius:11px;background:#eef2e4;color:#859a6b;display:grid;place-items:center;font-size:24px;margin-bottom:18px}.integration h2{margin-bottom:12px}.integration p,.muted{font-size:12px;line-height:1.8;color:var(--muted)}.integration button{font-size:10px}.toast{position:fixed;bottom:25px;left:calc(var(--sidebar) + 30px);right:30px;background:#254c3b;color:white;padding:16px 20px;border-radius:12px;z-index:100;font-size:12px;line-height:1.6;box-shadow:0 8px 30px #203a2d20;opacity:0;pointer-events:none;transition:opacity .2s}.toast.visible{opacity:1}.toast.error{background:#934f3d}.mobile-menu{display:none;background:transparent;border:0;font-size:20px;padding:5px}#editDialog{max-width:670px;max-height:88vh}#editDialog h3{font-size:12px;margin:18px 0 10px}#editDialog .primary{margin-top:23px}#editDialog .checkbox{width:auto;display:block}#editDialog .case-transcript{max-height:320px;overflow:auto}.confirmation{display:flex!important;align-items:flex-start;gap:10px;color:#65715b!important;line-height:1.7;font-size:11px!important;margin-top:18px!important}.confirmation input{width:auto;margin:3px 0 0}.form-divider{height:1px;background:var(--line);margin:22px 0}.public-proposal{max-width:880px;padding-top:45px}.public-proposal>.brand{margin-bottom:40px}.public-proposal .module-card{padding:40px}.public-proposal h1{font-size:38px;margin-top:10px}.public-proposal h2{margin-top:30px}.proposal-text{font-size:14px;line-height:1.9;color:#6c7863;white-space:pre-wrap}.proposal-disclosure{padding:20px;background:#f4f5e9;border:1px solid #e5e8d8;border-radius:10px;margin:30px 0}.proposal-disclosure strong{font-size:13px}.proposal-disclosure p{font-size:12px;line-height:1.8;color:var(--muted)}.public-proposal button{margin-top:20px}.accepted-message{color:#5c7d4d;padding:20px;background:#edf4e4;border-radius:10px}#loginDialog h2{font-size:30px}#loginError,#recordError{color:#9a5546}.voice-space .status{font-size:11px}#voicePane .intro h1{font-size:38px}#voicePane .intro{margin-bottom:27px}#voicePane .subtitle{font-size:12px}@media(max-width:1200px){:root{--sidebar:208px}.app-page{padding:28px}.topbar{padding:0 28px}.mode-banner{padding:12px 28px}.dashboard-grid{grid-template-columns:1fr}.quality-grid{grid-template-columns:repeat(2,1fr)}#voicePane .workspace{grid-template-columns:1fr}#voicePane aside{display:grid;grid-template-columns:1fr 1fr;align-items:start}}@media(max-width:820px){:root{--sidebar:0px}.sidebar{width:232px;transform:translateX(-100%);transition:transform .2s}.sidebar.open{transform:translateX(0);box-shadow:0 0 0 100vw #152c2444}.app-content{margin-left:0}.mobile-menu{display:block}.topbar{padding:0 18px;gap:12px;height:65px}.topbar-actions{margin-left:auto}.topbar input{width:180px}.topbar .environment{display:none}.app-page{padding:24px 18px}.mode-banner{padding:10px 18px}.stat-grid{grid-template-columns:repeat(2,1fr)}.page-head h1{font-size:32px}.page-head{align-items:flex-start}.page-head button{font-size:10px;padding:11px}.settings-grid{grid-template-columns:1fr}.toast{left:18px;right:18px}#voicePane aside{display:flex}}@media(max-width:500px){.topbar input{width:145px}.page-head{flex-direction:column;gap:15px}.quality-grid{grid-template-columns:1fr 1fr}.quality-card{padding:15px}.stat{padding:18px}.stat>strong{font-size:30px}.module-card{padding:18px}.stat-grid{gap:12px}.public-proposal .module-card{padding:25px}.public-proposal h1{font-size:30px}}

.client-context{max-width:320px;margin:20px auto 0;text-align:left}.client-context label{font-size:10px;color:var(--muted);display:block;margin-bottom:7px}.client-context select{font-size:11px;padding:10px}

.brain-detail{border-top:1px solid var(--line);padding:16px 0;font-size:12px;line-height:1.8}.brain-detail summary{cursor:pointer;font-weight:600;color:var(--text)}.brain-detail p,.brain-detail li{color:var(--muted)}.brain-detail blockquote{margin:16px 0;padding:14px 18px;background:#f0f3e7;border-left:3px solid #81996c;border-radius:6px}.brain-detail textarea{min-height:110px}.brain-detail h3{margin:16px 0 5px;font-size:12px}.memory-item{border-bottom:1px solid var(--line);padding:12px 0;font-size:12px;line-height:1.8}#memoryPreview{line-height:1.7;margin-top:12px}#memoryPreview button{font-size:10px;padding:8px}.flow-list small{white-space:normal;line-height:1.7}

.deal[draggable="true"]{cursor:grab}.deal.dragging{opacity:.45}.kanban-column.drop-target{outline:2px solid var(--green);outline-offset:-2px;background:#e1ecdc}.moving-card .deal{cursor:wait;opacity:.65}
.preferences{display:flex;align-items:center;gap:7px;flex-shrink:0}.preferences button{font-size:11px;white-space:nowrap;padding:8px 11px;min-height:36px;background:var(--white);border:1px solid var(--line);color:var(--ink)}.preferences button[aria-checked="true"]{border-color:#6c9275;background:#e5eddf;color:#244b3b}.topbar-actions{gap:12px}.topbar input{width:190px}.public-proposal~.preferences,body>.preferences{justify-content:flex-end;padding:16px 24px}#loginDialog>.preferences{margin-bottom:20px}html[data-theme="dark"]{--bg:#151c19;--white:#202a25;--ink:#e6eee7;--muted:#a8b7ab;--line:#39473e;--green:#8bbd96;--orange:#e3a779}html[data-theme="dark"] .sidebar,html[data-theme="dark"] .topbar,html[data-theme="dark"] dialog{background:#1a231e}html[data-theme="dark"] .topbar{color:var(--muted)}html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#17201b;border-color:var(--line);color:var(--ink)}html[data-theme="dark"] input:focus,html[data-theme="dark"] select:focus,html[data-theme="dark"] textarea:focus{box-shadow:0 0 0 3px #304838}html[data-theme="dark"] .primary{color:#102719}html[data-theme="dark"] .primary:hover:not(:disabled){background:#a0d2aa}html[data-theme="dark"] .outline{border-color:#56665b}html[data-theme="dark"] .danger{background:#382620;color:#f0b39a;border-color:#6d4739}html[data-theme="dark"] .mode-banner{background:#2b3022;color:#c1c8aa}html[data-theme="dark"] .kanban-column{background:#1e2922}html[data-theme="dark"] .kanban-column.drop-target{background:#324a38}html[data-theme="dark"] .kanban-head>span,html[data-theme="dark"] .tag,html[data-theme="dark"] .pill{background:#334034;color:#c6d2bf}html[data-theme="dark"] .tag.good,html[data-theme="dark"] .pill.live{background:#314a35;color:#b5dbab}html[data-theme="dark"] td strong{color:var(--ink)}html[data-theme="dark"] .deal p,html[data-theme="dark"] .deal small,html[data-theme="dark"] .deal>span,html[data-theme="dark"] td small,html[data-theme="dark"] .flow-list small,html[data-theme="dark"] .stat>small,html[data-theme="dark"] .kanban-empty,html[data-theme="dark"] .empty,html[data-theme="dark"] .module-empty,html[data-theme="dark"] .module-empty h3{color:var(--muted)}html[data-theme="dark"] .sidebar nav button{color:#b5c2b4}html[data-theme="dark"] .sidebar nav button.active,html[data-theme="dark"] .sidebar nav button:hover{background:#304032;color:#e2f2dd}html[data-theme="dark"] .sidebar nav button.active span{color:#b7d9ac}html[data-theme="dark"] .stage,html[data-theme="dark"] .scenario-icon,html[data-theme="dark"] .workspace-avatar,html[data-theme="dark"] .avatar,html[data-theme="dark"] .flow-list li>span,html[data-theme="dark"] .module-empty>span,html[data-theme="dark"] .integration-icon{background:#2d3c2e;color:#b5ceac;border-color:var(--line)}html[data-theme="dark"] .next-step{background:#352b22}html[data-theme="dark"] .bubble{background:#2b3a2e}html[data-theme="dark"] .bubble.user{background:#2a3441}html[data-theme="dark"] .orb{box-shadow:0 0 0 12px #253126,0 0 0 13px #3c4e3c}html[data-theme="dark"] .orb.live{animation-name:breathe-dark}@keyframes breathe-dark{50%{box-shadow:0 0 0 17px #263728,0 0 0 18px #425441}}html[data-theme="dark"] .scenario.selected .scenario-icon{background:#493526;color:#f1bf94}html[data-theme="dark"] .proposal-disclosure,html[data-theme="dark"] .brain-detail[open]{background:#263127;border-color:var(--line)}html[data-theme="dark"] .accepted-message{background:#2b422f;color:#b9dba8}html[data-theme="dark"] .proposal-text{color:#bdcabc}html[data-theme="dark"] .confirmation{color:#bbccba!important}html[data-theme="dark"] .preferences button[aria-checked="true"]{background:#304a36;color:#d8eed5}html[data-theme="dark"] td,html[data-theme="dark"] .scenario,html[data-theme="dark"] dl div,html[data-theme="dark"] .conversation>.section-head,html[data-theme="dark"] .transcript-heading,html[data-theme="dark"] .brain-detail{border-color:var(--line)}html[data-theme="dark"] .status.error,html[data-theme="dark"] #recordError,html[data-theme="dark"] #loginError{color:#f1b69e}html[data-theme="dark"] .toast{background:#365e43}html[data-theme="dark"] .toast.error{background:#743f32}
@media(max-width:1100px){.topbar .environment{display:none}}@media(max-width:650px){.topbar{height:auto;min-height:76px;padding-top:12px;padding-bottom:12px;flex-wrap:wrap}.topbar-actions{width:100%;justify-content:space-between}.topbar input{width:45%;min-width:130px}.preferences button{padding:8px 10px}.topbar #breadcrumb{margin-right:auto}}
:root{--text:var(--ink)}html[data-theme="dark"] .brain-detail blockquote{background:#2d3b2d;color:#e1eadd}
.office-controls{max-width:360px;margin:12px auto 18px;text-align:left;padding:14px;border:1px solid var(--line,#ddd);border-radius:12px}.office-controls label{display:block;margin:5px 0;font-size:13px}.office-controls input[type=checkbox]{width:auto;vertical-align:middle;margin-right:6px}.office-controls input[type=range]{width:100%;accent-color:var(--accent,#234f46)}.office-controls button{font-size:12px;margin-top:8px}.office-controls .micro{margin:8px 0 0}

/* Luna workspace: compact navigation and a conversation-first layout. */
:root{--bg:#f0f4f4;--white:#fff;--ink:#263b43;--muted:#71848c;--line:#dce6e6;--green:#187c80;--orange:#34adae;--sidebar:248px}
body{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:14px;line-height:1.45}
h1,.page-head h1,#voicePane .intro h1,.voice-space h3,.review h2,.empty span{font-family:inherit;letter-spacing:-.5px;font-weight:600}.page-head h1,#voicePane .intro h1{font-size:27px;line-height:1.25;margin-bottom:8px}.page-head{margin-bottom:24px}.page-head .eyebrow{display:none}.subtitle{font-size:13px}.app-page{max-width:none;padding:28px 32px}.topbar{height:58px;background:var(--white);border-bottom:1px solid var(--line);padding:0 26px;color:var(--ink)}#breadcrumb{font-size:15px;font-weight:600}.topbar input{background:var(--white);padding:8px 11px;border:1px solid var(--line)}.mode-banner{padding:9px 28px;background:#f8fafc;border-bottom:1px solid var(--line);font-size:11px;color:#6b8188}.sidebar{background:#14272f!important;border-right:1px solid #29414a;padding:18px 9px 12px;gap:0}.sidebar .brand{color:#fff;font-size:14px;letter-spacing:0;padding:0 8px 22px;gap:8px;white-space:nowrap}.sidebar .brand small{display:block;font-size:10px;font-weight:400;color:#8f99a8;margin-top:3px}.sidebar .brand-mark{font-family:inherit;background:#39b7ad;border-radius:6px;width:26px;height:26px;font-size:15px}.sidebar-new{width:100%;background:#187c80;color:#fff;border:0;border-radius:7px;padding:9px 12px;text-align:left;font-size:13px;margin-bottom:23px}.sidebar-new>span{float:right;font-size:18px;line-height:18px}.nav-caption{font-size:9px;letter-spacing:1.2px;color:#8c96a5;padding:0 10px;margin-bottom:9px}.sidebar nav{gap:3px}.sidebar nav button{padding:10px 11px;border-radius:7px;font-size:13px;color:#c1c7d0!important;font-weight:450}.sidebar nav button>span{font-size:17px;color:#b5becb!important;width:21px}.sidebar nav button:hover,.sidebar nav button.active{background:#26434c!important;color:#fff!important}.sidebar nav button.active>span{color:#fff!important}.sidebar-bottom{border-top:1px solid #303641;padding:15px 8px 2px;color:#d6dae1;font-size:12px}.sidebar-bottom small{color:#97a0ae}.sidebar-bottom .avatar{background:#b83a7e;color:#fff;border-radius:6px}.logout{color:#c1c7d0}.card{border-radius:10px;box-shadow:none}.primary{background:#187c80;color:#fff;border-color:#187c80}.primary:hover:not(:disabled){background:#11656a}.outline{background:var(--white);border-color:#d3d8e0;color:var(--ink)}button{border-radius:7px;padding:9px 13px;font-size:12px}button:hover:not(:disabled){transform:none}button:focus-visible,a:focus-visible{outline:3px solid #75c4bc;outline-offset:2px}input,select,textarea{background:var(--white);border-color:var(--line);padding:10px;font-size:13px}input:focus,select:focus,textarea:focus{border-color:#6b83fb;box-shadow:0 0 0 3px #187c8018}.stat{padding:21px 23px}.stat>strong{font-family:inherit;font-size:32px;letter-spacing:-1px;color:var(--ink)}.stat>span{font-size:12px;color:var(--ink)}.stat>small{font-size:11px;color:var(--muted)}.stat-grid{gap:16px}.module-card{padding:22px;margin-bottom:20px}.dashboard-grid{grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr);gap:20px}.section-head h2,.module-card>h2{font-size:14px}.tag,.pill{background:#eef1f7;color:#617087;font-size:10px;border-radius:5px;padding:4px 7px;letter-spacing:0}.tag.good,.pill.live{background:#e4f5f0;color:#15856c}th{text-transform:none;letter-spacing:0;font-size:11px;color:#697586}td{padding:16px 10px;font-size:12px}td strong{color:var(--ink);font-size:13px}td small{font-size:11px;color:var(--muted)}.flow-list li>span,.integration-icon,.scenario-icon{background:#e7f3f1;color:#237d7b}.kanban-column{background:#e5eaf1}.kanban-head h2{font-size:12px}.kanban-head>span{background:#d8e0ed;color:#58657a}.deal strong{font-size:13px}.deal p,.deal small{color:var(--muted)}.bubble{background:#f0f3f7;border:1px solid #e5e9f0;font-size:13px;line-height:1.65;max-width:90%;border-radius:11px 11px 11px 3px}.bubble.user{background:#e7f3f1;border-color:#cee6e2;border-radius:11px 11px 3px 11px}.bubble span{font-size:10px;letter-spacing:0;text-transform:none}.empty span{font-size:17px}.orb{background:radial-gradient(circle at 35% 30%,#8aa0fb,#187c80 72%);box-shadow:0 0 0 12px #e7f3f1,0 0 0 13px #dce3ff}.stage{background:#f6f8fc;border-color:var(--line)}.next-step{background:#f1f6fb}.toast{background:#293c67}.preferences button[aria-checked="true"]{background:#e7f3f1;border-color:#5caaa3;color:#176c69}.brain-detail blockquote{background:#f1f4fb;border-color:#5caaa3}.quality-card>span{color:#237d7b}
body[data-view="conversations"] #modulePane{padding:0;max-width:none}.inbox-layout{display:grid;grid-template-columns:300px minmax(300px,1fr) 310px;height:calc(100dvh - 112px);min-height:500px;background:var(--white)}.inbox-list{display:flex;flex-direction:column;min-width:0;border-right:1px solid var(--line)}.inbox-list-head{padding:20px 17px 15px}.inbox-list-head h1{font-size:16px;letter-spacing:0;margin:0}.inbox-list-head h1>span{font-size:11px;color:var(--muted);font-weight:400;float:right;padding-top:3px}.inbox-list-head p{font-size:11px;color:var(--muted);margin:7px 0 0}.inbox-tabs{display:flex;border-bottom:1px solid var(--line)}.inbox-tabs button{width:50%;border:0;border-radius:0;background:transparent;padding:13px 6px;color:var(--muted);border-bottom:2px solid transparent}.inbox-tabs button[aria-pressed="true"]{color:var(--ink);border-bottom-color:#187c80}.thread-list{padding:7px;overflow:auto}.thread-item{display:flex;gap:10px;width:100%;padding:16px 12px;text-align:left;border:0;background:transparent;color:var(--ink);margin-bottom:4px}.thread-item:hover{background:#f1f4fa}.thread-item.selected{background:#e5f1ee;color:#214940;box-shadow:inset 3px 0 #238a7f}.contact-avatar{display:grid;place-items:center;flex-shrink:0;width:33px;height:33px;background:#d7f5ee;color:#189b88;border-radius:8px;font-weight:600;font-size:15px}.thread-copy{min-width:0;display:block}.thread-copy>strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:600}.thread-copy>small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;font-weight:400;color:var(--muted);margin:4px 0 6px}.thread-meta{font-size:10px;font-weight:400;display:block;color:var(--muted);margin-bottom:7px}.thread-item.selected small,.thread-item.selected .thread-meta{color:#58796e}.thread-item.selected .tag{background:#d0e7df;color:#2d695a}.thread-conversation{min-width:0;display:flex;flex-direction:column;background:var(--white);overflow:hidden}.thread-header{min-height:74px;padding:15px 20px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:10px}.thread-header>div{min-width:0;flex:1}.thread-header h2{font-size:13px}.thread-header p{font-size:10px;color:var(--muted);margin:4px 0 0}.thread-header button{font-size:10px;white-space:nowrap}.thread-timeline{flex:1;overflow:auto;padding:22px 24px}.timeline-date{text-align:center;font-size:11px;color:var(--muted);margin-bottom:24px}.call-summary{padding:16px;background:#f7f9fc;border:1px solid var(--line);border-radius:10px;margin-bottom:20px}.call-summary p{font-size:12px;line-height:1.7;margin:9px 0 0}.timeline-label{font-size:12px;color:var(--muted);font-weight:500;margin:22px 0 16px}.thread-timeline .memory-item{font-size:12px;padding:16px;border:1px solid var(--line);border-radius:10px}.thread-timeline audio{width:100%;max-width:340px;height:34px}.thread-footer{border-top:1px solid var(--line);padding:14px 20px;display:flex;gap:15px;align-items:center}.thread-footer>span{color:var(--muted);font-size:10px}.inbox-contact{display:block;overflow:auto;padding:0 20px 24px;border-left:1px solid var(--line)}.contact-heading{display:flex;align-items:center;justify-content:space-between;margin:0 -20px;padding:16px 18px;border-bottom:1px solid var(--line);min-height:74px}.contact-heading button{font-size:10px}.contact-profile{padding:23px 0;border-bottom:1px solid var(--line)}.contact-avatar.large{height:44px;width:44px;font-size:20px}.contact-profile h3{font-size:15px;font-weight:600;margin:12px 0 4px}.contact-profile p{font-size:12px;color:var(--muted);margin:0 0 14px;overflow-wrap:anywhere}.inbox-contact h3{font-size:12px;margin-top:20px}.detail-label{padding:9px 12px;border-radius:5px;background:#f0f4f4;display:inline-block}.inbox-contact dl div{grid-template-columns:80px minmax(0,1fr);padding:13px 0}.inbox-contact dd{font-size:12px}.inbox-contact>p,.inbox-contact .memory-item p{font-size:12px;line-height:1.7}.inbox-contact .micro{font-size:10px}.inbox-contact ul{font-size:12px}.sidebar .workspace-name{display:none}
html[data-theme="dark"]{--bg:#161a22;--white:#202631;--ink:#e6eaf1;--muted:#a1acbc;--line:#374150;--green:#78c8bc}html[data-theme="dark"] .mode-banner{background:#202631;color:#b3bed0}html[data-theme="dark"] .primary{background:#187c80;color:#fff}html[data-theme="dark"] .thread-item:hover,html[data-theme="dark"] .call-summary,html[data-theme="dark"] .bubble,html[data-theme="dark"] .detail-label,html[data-theme="dark"] .stage{background:#293342}html[data-theme="dark"] .thread-item.selected{background:#24473f;color:#e5f3ef}html[data-theme="dark"] .thread-item.selected small,html[data-theme="dark"] .thread-item.selected .thread-meta{color:#b4d2c6}html[data-theme="dark"] .bubble.user,html[data-theme="dark"] .preferences button[aria-checked="true"]{background:#234843;color:#d8eee8}html[data-theme="dark"] .topbar{background:var(--white)}html[data-theme="dark"] .stat>strong{color:var(--ink)}
@media(min-width:1600px){.inbox-layout{grid-template-columns:340px minmax(350px,1fr) 350px}}@media(max-width:1250px){.inbox-layout{grid-template-columns:260px minmax(280px,1fr)}.inbox-contact{grid-column:2;border-top:1px solid var(--line);max-height:420px}.inbox-layout{height:auto;min-height:calc(100dvh - 112px)}.inbox-list{grid-row:span 2;max-height:calc(100dvh - 112px);position:sticky;top:0}.thread-conversation{height:calc(100dvh - 112px);min-height:500px}.contact-heading{min-height:50px}.contact-profile{padding:15px 0}.inbox-contact dl{display:grid;grid-template-columns:1fr 1fr;gap:0 25px}.dashboard-grid{grid-template-columns:1fr}}@media(max-width:820px){:root{--sidebar:0px}.sidebar{width:248px}.app-page{padding:22px 18px}.inbox-layout{grid-template-columns:220px minmax(0,1fr)}.thread-header{flex-wrap:wrap}.thread-header button{margin-left:43px}.inbox-contact dl{display:block}.thread-timeline{padding:18px}.thread-footer{flex-wrap:wrap}.mode-banner{padding:9px 18px}}@media(max-width:600px){.inbox-layout{display:block}.inbox-list{position:static;max-height:320px;border-bottom:1px solid var(--line);border-right:0}.inbox-list-head{padding:14px 17px}.thread-item{padding:12px}.thread-conversation{height:650px;min-height:400px}.inbox-contact{max-height:none;border-left:0}.topbar-actions{gap:8px}.page-head h1{font-size:24px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Distinctive Solar Smart Living accents without changing the familiar layout. */
.sidebar .brand-mark{border-radius:9px 9px 9px 3px;background:#e8b966;color:#243f41}
.sidebar nav button.active{box-shadow:inset 3px 0 #e8b966}
.sidebar-new{border-radius:9px;background:#278d88}
.inbox-list-head{border-top:3px solid #e8b966}
.inbox-list-head h1{font-size:17px}
.contact-avatar{border-radius:11px 11px 11px 4px;background:#d8ede6;color:#287362}
.call-summary{background:#f7f9f7;border-left:3px solid #d7b87b}
.thread-header{background:#fbfcfb}
.contact-profile{border-bottom-style:dashed}
.stat{border-top:3px solid #d2e5e0}
.stat:first-child{border-top-color:#d7b87b}
.stat>strong{color:#246b64}
.inbox-tabs button[aria-pressed="true"]{color:#256f68}
html[data-theme="dark"] .thread-header{background:#202d32}
html[data-theme="dark"] .call-summary{background:#263536;border-left-color:#bfa16a}
html[data-theme="dark"] .inbox-tabs button[aria-pressed="true"]{color:#9ed3c2}

/* Customer workspace: white surfaces, orange actions and green context. */
:root{--bg:#f7f9f7;--white:#fff;--ink:#243b32;--muted:#5e7168;--line:#dfe7e1;--green:#28634a;--orange:#b94f20}
::selection{background:#fae0ce;color:#58301d}
input,textarea{caret-color:var(--orange)}
.sidebar{background:#fff!important;border-color:var(--line);overflow-y:auto}
.sidebar .brand{color:var(--ink)}
.sidebar .brand small,.sidebar-bottom small,.nav-caption{color:var(--muted)}
.sidebar .brand-mark{background:#28634a;color:#fff}
.sidebar-new,.primary{background:#b94f20;border-color:#b94f20;color:#fff}
.sidebar-new:hover,.primary:hover:not(:disabled){background:#963f19}
.sidebar nav button{color:#435e50!important;flex-shrink:0}
.sidebar nav button>span{color:#5b7866!important}
.sidebar nav button:hover,.sidebar nav button.active{background:#eaf3ed!important;color:#204f38!important;box-shadow:none}
.sidebar nav button.active>span{color:#28634a!important}
.sidebar-new.active{background:#963f19}
.sidebar-bottom{border-color:var(--line);color:var(--ink);padding-bottom:5px}
.sidebar-bottom .avatar{background:#e8f1eb;color:#28634a}
.logout{color:var(--muted)}
.sidebar nav{flex-shrink:0}
.settings-nav{margin-top:16px;border-top:1px solid var(--line);padding-top:10px}
.settings-nav summary{cursor:pointer;padding:11px 12px;font-size:13px;font-weight:600;border-radius:7px}
.settings-nav summary:hover{background:#f3f6f3}
.settings-subnav{display:grid;gap:3px;padding:4px 0 10px 12px}
.sidebar .settings-subnav button{font-size:12px;padding:10px 12px}
.mode-banner{background:#f4f8f4;color:#476454}
.contact-avatar{background:#e5f0e8;color:#28634a;border-radius:8px}
.thread-item.selected{background:#fff0e5;color:#713b23;box-shadow:none}
.thread-item.selected small,.thread-item.selected .thread-meta{color:#7a5846}
.thread-item.selected .tag{background:#f9dfcd;color:#754024}
.thread-item:hover{background:#f4f7f4}
.thread-item.selected:hover{background:#fce8d9}
.thread-header{background:#fff}
.inbox-tabs button[aria-pressed="true"]{border-bottom-color:#b94f20;color:#8f3d1b}
.call-summary{background:#f8faf7;border:1px solid var(--line)}
.stat{border-top:1px solid var(--line)}
.stat:first-child{border-top-color:var(--line)}
.bubble.user{background:#eaf4ed;border-color:#d4e6d9}
.preferences button[aria-checked="true"]{background:#eaf3ed;border-color:#739c80;color:#28563a}
button:focus-visible,a:focus-visible,summary:focus-visible,[tabindex="0"]:focus-visible{outline:2px solid #b94f20;outline-offset:2px}
input:focus,select:focus,textarea:focus{border-color:#b94f20;box-shadow:0 0 0 2px #b94f2015}
.thread-list,.thread-timeline,.inbox-contact,.sidebar{scrollbar-width:thin;scrollbar-color:#a5b6aa transparent;overscroll-behavior:contain}
@media(min-width:1000px){
 body[data-view="conversations"]{overflow:hidden}
 body[data-view="conversations"] .app-content{height:100dvh;min-height:0;display:grid;grid-template-rows:auto auto minmax(0,1fr)}
 body[data-view="conversations"] .topbar{min-height:58px;height:auto;padding-top:10px;padding-bottom:10px}
 body[data-view="conversations"] #modulePane{min-height:0;min-width:0;height:100%;width:100%;overflow:hidden;margin:0}
 .inbox-layout{height:100%;min-height:0;grid-template-columns:minmax(220px,27%) minmax(280px,1fr) minmax(255px,28%);overflow:hidden}
 .inbox-list{position:static;grid-row:auto;min-height:0;max-height:none;overflow:hidden}
 .inbox-list-head,.inbox-tabs,.thread-header,.thread-footer{flex-shrink:0}
 .thread-list{flex:1;min-height:0;overflow-y:auto}
 .thread-conversation{height:100%;min-height:0}
 .thread-timeline{min-height:0;overflow-y:auto}
 .inbox-contact{grid-column:auto;max-height:none;min-height:0;height:100%;overflow-y:auto;border-top:0}
 .contact-heading{position:sticky;top:0;background:var(--white);z-index:1;min-height:74px}
 .inbox-contact dl{display:block}
}
@media(min-width:1600px){.inbox-layout{grid-template-columns:320px minmax(350px,1fr) 330px}}
html[data-theme="dark"] .sidebar{background:#1d2b23!important}
html[data-theme="dark"] .sidebar .brand,html[data-theme="dark"] .sidebar-bottom{color:#e6eee7}
html[data-theme="dark"] .sidebar nav button{color:#c0d2c5!important}
html[data-theme="dark"] .sidebar nav button:hover,html[data-theme="dark"] .sidebar nav button.active{background:#304939!important;color:#e6eee7!important}
html[data-theme="dark"] .settings-nav summary:hover{background:#304939}
html[data-theme="dark"] .thread-item.selected{background:#493327;color:#fae1ce}
html[data-theme="dark"] .thread-item.selected small,html[data-theme="dark"] .thread-item.selected .thread-meta{color:#e4c5ad}
html[data-theme="dark"] .thread-item:hover{background:#304139}
html[data-theme="dark"] .thread-header{background:var(--white)}
html[data-theme="dark"] .primary{background:#b94f20;color:#fff}
.internal-tests-toggle{display:flex;justify-content:space-between;gap:8px;width:calc(100% - 16px);margin:8px;flex-shrink:0;background:#f3f6f3;border:1px solid var(--line);color:var(--muted);font-size:11px;text-align:left}
.internal-tests-toggle[aria-expanded="true"]{background:#fff0e5;color:#713b23}
html[data-theme="dark"] .internal-tests-toggle{background:#2a3930;color:#c0d2c5}

/* Legibility pass: clear type, comfortable message measure and operator forms. */
body{font-family:Arial,"Helvetica Neue",sans-serif;font-size:15px;line-height:1.6;letter-spacing:0}
h1,h2,h3,.page-head h1,.voice-space h3{letter-spacing:0}
.sidebar .brand{font-size:15px;line-height:1.35}.sidebar .brand small{font-size:11px;line-height:1.5;margin-top:5px}
.sidebar nav button,.settings-nav summary{font-size:14px;line-height:1.45;min-height:42px}
.sidebar .settings-subnav button{font-size:13px;min-height:40px}.sidebar-new{font-size:14px;min-height:42px}
.nav-caption{font-size:10px;letter-spacing:.8px}.mode-banner{font-size:12px;line-height:1.6}
button{font-size:13px;line-height:1.4}.outline{color:var(--ink)}
.page-head h1,#voicePane .intro h1{font-size:28px;line-height:1.3}.page-head .subtitle{font-size:14px;line-height:1.65}
.inbox-list-head h1{font-size:19px}.inbox-list-head p,.thread-header p{font-size:12px}
.thread-copy>strong{font-size:15px;line-height:1.45}.thread-copy>small{font-size:13px;line-height:1.55;margin-top:5px}
.thread-meta{font-size:11px;line-height:1.5}.thread-header h2{font-size:15px;line-height:1.45}
.thread-header button,.contact-heading button{font-size:12px}.thread-item{padding:15px 12px}
.thread-timeline{padding:24px}.bubble{font-size:15px;line-height:1.7;max-width:min(92%,70ch);padding:14px 16px}
.bubble span{font-size:12px;line-height:1.5;font-weight:600;margin-bottom:7px;color:var(--muted)}
.bubble small{font-size:11px;color:var(--muted)}
.call-summary p,.thread-timeline .memory-item,.inbox-contact>p,.inbox-contact .memory-item p{font-size:14px;line-height:1.7}
.small-label{font-size:11px;letter-spacing:.8px}.timeline-date,.timeline-label{font-size:12px}
.inbox-contact h3{font-size:14px;line-height:1.5}.inbox-contact .contact-profile h3{font-size:17px}
.contact-profile p,.inbox-contact dd{font-size:14px;line-height:1.6}.inbox-contact dt{font-size:12px;line-height:1.6}
.inbox-contact .micro,.thread-timeline .micro{font-size:12px;line-height:1.65}.tag,.pill{font-size:11px;font-weight:500}
.inbox-contact dl div{grid-template-columns:85px minmax(0,1fr)}
.thread-composer{width:100%;min-width:0}.thread-footer{padding:14px 20px;background:var(--white)}
.thread-composer label{display:block;font-size:12px;font-weight:600;color:var(--ink);margin-bottom:8px}
.thread-composer textarea{width:100%;min-height:76px;max-height:160px;resize:vertical;font-size:14px;line-height:1.55}
.composer-actions{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-top:8px}
.composer-actions>span{font-size:11px;color:var(--muted);max-width:48ch;line-height:1.5}.composer-actions button{min-height:40px;white-space:nowrap}
#smsStatus{font-size:12px;line-height:1.5;margin:8px 0 0}.crm-thread-messages{border-top:1px solid var(--line);margin-top:28px;padding-top:12px}
.crm-directory .section-head p{margin:6px 0 0;font-size:13px}.crm-directory td{font-size:14px}.crm-directory td strong{font-size:14px}
.crm-directory th{font-size:12px}.crm-directory .table-wrap{margin-top:16px}.local-contacts-title{font-size:15px;margin-bottom:18px}
.module-card h2,.integration h2{font-size:16px}.integration p,.muted{font-size:14px;line-height:1.7}
#loginDialog{max-width:470px;padding:32px;border-radius:14px}#loginDialog h2{font-family:Arial,sans-serif;font-size:26px;font-weight:600;line-height:1.3;margin:18px 0 12px}
#loginDialog p{font-size:14px;line-height:1.65}#loginDialog label{font-size:13px;font-weight:600;color:var(--ink)}#loginDialog input{font-size:16px;padding:13px}
#loginDialog .primary{min-height:46px;font-size:15px}.login-brand{color:var(--green);font-weight:700;font-size:15px;letter-spacing:.1px}.invited-email{background:var(--bg);padding:10px 12px;border-radius:6px;overflow-wrap:anywhere}
#loginError,#activationError{color:#9d351d!important;min-height:22px}
@media(max-width:650px){.thread-timeline{padding:18px}.thread-footer{padding:14px}.composer-actions{align-items:flex-end;gap:10px}.composer-actions>span{max-width:26ch}.thread-conversation{height:780px}.crm-conversation-layout .inbox-list{max-height:150px}.bubble{font-size:15px}.topbar #breadcrumb{font-size:13px}}
html[data-theme="dark"] #loginError,html[data-theme="dark"] #activationError{color:#ffb9a7!important}
html[data-theme="dark"] .bubble.user{background:#2c4434;border-color:#46634e}
html[data-theme="dark"] .sidebar-new{color:#fff}
.crm-contact-search{margin:20px 0 16px;max-width:760px}
.crm-contact-search label{display:block;font-size:14px;font-weight:600;color:var(--ink);margin-bottom:8px}
.crm-search-controls{display:flex;align-items:stretch;gap:10px}
.crm-search-field{position:relative;flex:1;min-width:0}
.crm-search-field svg{position:absolute;width:21px;height:21px;left:13px;top:50%;transform:translateY(-50%);color:var(--muted);pointer-events:none}
.crm-search-field input{padding:13px 14px 13px 44px;min-height:47px;font-size:15px;background:var(--white)}
.crm-search-controls .primary{min-width:94px;font-size:14px}
@media(max-width:500px){.crm-search-controls{gap:8px}.crm-search-controls .primary{min-width:76px;padding:10px}.crm-search-field input{font-size:14px}}
.date-range-form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;padding:18px 20px;background:var(--white);border:1px solid var(--line);border-radius:9px;margin-bottom:24px}
.date-range-form>div{flex:1;min-width:140px}.date-range-form label{display:block;font-size:12px;font-weight:600;margin-bottom:6px}.date-range-form select,.date-range-form input{min-height:42px}.date-range-form button{min-height:42px}.date-range-form>p{width:100%;font-size:12px;color:var(--muted);margin:0}
.inbox-date-filter{padding:0 15px 12px}.inbox-date-filter summary{cursor:pointer;font-size:12px;color:var(--ink);padding:6px 0}.date-range-form.compact{padding:10px;margin:8px 0 0;gap:8px}.date-range-form.compact>div{min-width:100%;}.date-range-form.compact>p{font-size:11px}.messages-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.messages-heading h3{margin:0}.messages-heading button{font-size:12px}.crm-thread-messages>[data-action="crm-older"]{margin-bottom:16px}
.inbox-list:has(.inbox-date-filter[open]) .thread-list{min-height:80px}.inbox-list:has(.inbox-date-filter[open]){overflow-y:auto}
.operator-settings details{border-top:1px solid var(--line);padding-top:14px;margin-top:16px}.operator-settings summary{cursor:pointer;font-size:14px;font-weight:600}.operator-settings form{max-width:540px;padding-top:12px}.operator-settings form label{display:block;margin:14px 0 7px;font-size:13px;font-weight:600}.operator-settings form button{margin-top:16px}
.operator-contact-actions{display:flex;align-items:center;gap:12px;margin-bottom:12px}.operator-contact-actions span{font-size:11px;color:var(--muted);line-height:1.5}.operator-contact-actions button{white-space:nowrap;min-height:40px}
.operator-call-bar{position:fixed;bottom:20px;right:20px;z-index:45;display:flex;align-items:center;gap:12px;background:var(--white);border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 32px #18322626;padding:16px;max-width:calc(100vw - 40px)}.operator-call-bar[hidden]{display:none}.operator-call-bar strong{display:block;font-size:14px}.operator-call-bar p{font-size:12px;margin:4px 0 0;color:var(--muted)}.operator-call-bar button{min-height:40px}.operator-call-bar .danger{background:#a63626;border-color:#a63626;color:#fff}
@media(max-width:650px){.operator-call-bar{bottom:12px;left:12px;right:12px;max-width:none;flex-wrap:wrap}.operator-call-bar>div{width:100%}.operator-contact-actions{align-items:flex-start}.operator-contact-actions span{max-width:28ch}}
#loginDialog .remember-choice{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:400;line-height:1.5;margin-top:18px;cursor:pointer}#loginDialog .remember-choice input{width:18px;height:18px;flex-shrink:0;padding:0;accent-color:var(--green)}
.related-call-selector{margin-bottom:20px}.related-call-selector label{display:block;font-size:13px;font-weight:600;margin-bottom:8px}.related-call-selector select{min-height:44px;font-size:14px}
.history-block{border:1px solid var(--line);border-radius:8px;margin-bottom:14px;background:var(--white)}.history-block>summary{padding:15px 16px;font-size:14px;font-weight:600;cursor:pointer;line-height:1.6;overflow-wrap:anywhere}.history-block[open]>summary{border-bottom:1px solid var(--line)}.history-block .history-content{padding:18px}.history-block .call-summary{margin:16px}.history-block>.memory-item{margin:16px}.history-block .crm-thread-messages{margin:0;padding:18px;border-top:0}#crmMessageCount{font-size:12px;font-weight:400;color:var(--muted);margin-left:8px}

/* Contact history: one call owns its audio and transcript. */
.contact-overview{padding:4px 0 22px;margin-bottom:24px;border-bottom:1px solid var(--line)}
.contact-overview h3,.history-section-title h3{font-size:17px;margin:0 0 8px}
.contact-overview p{line-height:1.65;margin:8px 0;max-width:75ch}
.history-section-title{display:flex;align-items:baseline;gap:10px;color:#205d45;margin-bottom:12px}
.history-section-title>span{font-size:13px}
.call-history-item{border-color:#c4dfcf;background:#fff}
.call-history-item>summary{display:flex;align-items:center;gap:12px;background:#edf6ef;color:#205d45;list-style:none}
.call-history-item>summary:before,.messages-history>summary:before{content:'›';font-size:23px;line-height:1;transform:rotate(0deg)}
.call-history-item[open]>summary:before,.messages-history[open]>summary:before{transform:rotate(90deg)}
.call-history-item>summary small{display:block;font-size:12px;font-weight:400;color:#3d6652;margin-top:3px}
.call-duration{margin-left:auto;font-size:12px;font-weight:400;white-space:nowrap}
.call-history-item .memory-item{margin:18px 0;padding:0;border:0;box-shadow:none;background:transparent}
.call-history-item h4{font-size:14px;margin:20px 0 12px}
.individual-call-summary p{font-size:14px;line-height:1.65}
.messages-history{margin-top:26px;border-color:#edccb6}
.messages-history>summary{display:flex;align-items:center;gap:10px;background:#fff1e5;color:#873a16;list-style:none}
.messages-history>summary small{margin-left:auto;font-weight:400;font-size:12px}
.messages-history #crmMessageCount{color:#873a16}
button.call-button{background:#28634a;color:white;border:1px solid #28634a;border-radius:7px;padding:10px 15px;font-weight:600}
button.call-button:hover{background:#1c4f39}
button.sms-send-button{background:#b94f20;border-color:#b94f20}
[data-theme="dark"] .contact-overview{color:#e2eae5}
[data-theme="dark"] .call-history-item{background:#17271f;border-color:#3c6751}
[data-theme="dark"] .call-history-item>summary{background:#203e2d;color:#d7f0df}
[data-theme="dark"] .call-history-item>summary small{color:#c4dfcf}
[data-theme="dark"] .history-section-title{color:#c4dfcf}
[data-theme="dark"] .messages-history>summary{background:#4b2b18;color:#ffe1c9}
[data-theme="dark"] .messages-history #crmMessageCount{color:#ffe1c9}
@media(max-width:600px){.messages-history>summary{flex-wrap:wrap}.messages-history>summary small{margin-left:0}.history-content{overflow-wrap:anywhere}}
