:root,[data-theme=dark]{color-scheme:dark;--canvas:#0e171c;--panel:#16242b;--panel-alt:#1b2d35;--inset:#111e25;--ink:#edf7f3;--muted:#b7c8ce;--line:#344b56;--accent:#32f5a7;--button:#19e69b;--button-ink:#062b1c;--selected:#153d30;--selected-line:#20df93;--message:#174735;--message-ink:#edfff5;--attention:#ffcf95;--attention-bg:#3d2c1c;--note:#24313b;--outline:#32f5a7;--avatar0:#513728;--avatar0-ink:#ffdfc7;--avatar1:#253f32;--avatar1-ink:#cceecf;--avatar2:#40344f;--avatar2-ink:#ecdbff;--avatar3:#284457;--avatar3-ink:#d1ebff;--avatar4:#49402a;--avatar4-ink:#ffedb4;--notice-info-bg:#14252c;--notice-info-ink:#c3dde8;--notice-warning-bg:#2c251e;--notice-warning-ink:#ffcf95;--notice-note-bg:#202630;--notice-note-ink:#d8def0}
[data-theme=light]{color-scheme:light;--canvas:#eef3f1;--panel:#ffffff;--panel-alt:#f3f7f5;--inset:#f7faf8;--ink:#17332a;--muted:#4c6069;--line:#cbd8d1;--accent:#006c42;--button:#10df91;--button-ink:#062b1c;--selected:#e2fff1;--selected-line:#00995c;--message:#d8fbe8;--message-ink:#173c2a;--attention:#7b420f;--attention-bg:#fff0dd;--note:#eef3f6;--outline:#007447;--avatar0:#f5e4d6;--avatar0-ink:#743a20;--avatar1:#e1eddc;--avatar1-ink:#335a37;--avatar2:#ece3f5;--avatar2-ink:#654786;--avatar3:#dfeef7;--avatar3-ink:#305d7d;--avatar4:#f5edcf;--avatar4-ink:#70551b;--notice-info-bg:#f0f7fa;--notice-info-ink:#244a5a;--notice-warning-bg:#fff7ec;--notice-warning-ink:#7b420f;--notice-note-bg:#f5f3fa;--notice-note-ink:#4d4269}
*{box-sizing:border-box}html,body{margin:0;background:var(--canvas);color:var(--ink)}body{font:14px/1.45 'Segoe UI',Arial,sans-serif;font-variant-numeric:tabular-nums}h1,h2,h3,p{margin:0}h1{font-size:22px;font-weight:650;letter-spacing:-.5px;line-height:1.2}h2{font-size:16px;letter-spacing:-.2px;font-weight:600}h3{font-size:14px;font-weight:600}small,time{font-size:12px;color:var(--muted)}small{display:block;line-height:1.45}strong{font-weight:600}svg{width:19px;height:19px;flex-shrink:0}button,select{font:inherit}button{cursor:default}a{color:inherit;text-decoration:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.study-note{display:flex;height:32px;align-items:center;justify-content:space-between;padding:0 24px;font-size:12px;color:var(--muted);background:var(--canvas);border-bottom:1px solid var(--line)}.app-shell{height:928px;display:flex;flex-direction:column}.app-nav{height:68px;flex-shrink:0;display:flex;align-items:center;gap:35px;padding:0 24px;background:var(--panel);border-bottom:1px solid var(--line)}.wordmark{display:flex;align-items:center;gap:8px;font-size:23px;font-weight:650;letter-spacing:-.8px;white-space:nowrap;min-height:44px}.brandmark{width:32px;height:36px;display:flex;align-items:center;justify-content:center;color:var(--accent)}.brandmark svg{width:32px;height:32px}.app-nav>nav{display:flex;align-items:center;gap:4px;height:100%}.nav-item{display:flex;align-items:center;gap:9px;border-radius:7px;padding:0 13px;height:44px;font-size:14px;color:var(--muted);white-space:nowrap}.nav-item.active{color:var(--accent);background:var(--selected);font-weight:600}.nav-count{font-size:12px;min-width:20px;text-align:center}.nav-tools{display:flex;align-items:center;gap:18px;margin-left:auto}.theme-control{display:flex;align-items:center;gap:7px;color:var(--muted);min-height:44px}.theme-control svg{width:18px;height:18px}select{border:1px solid var(--line);border-radius:7px;color:var(--ink);background:var(--panel-alt);min-height:44px;padding:9px 29px 9px 12px;font-size:14px}.theme-control select{width:102px;padding-right:10px}.language{display:flex;align-items:center;gap:7px;font-size:13px;color:var(--muted);white-space:nowrap}.language svg{width:18px;height:18px}.nav-divider{height:28px;width:1px;background:var(--line)}.nav-person{display:flex;gap:10px;align-items:center;font-size:13px;white-space:nowrap}.nav-person small{font-size:12px}.nav-person>svg{width:14px;height:14px}.nav-person .avatar{width:34px;height:34px;font-size:12px}.avatar{width:40px;height:40px;flex-shrink:0;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:600;line-height:1}.avatar.large{width:54px;height:54px;font-size:19px}.color-0{background:var(--avatar0);color:var(--avatar0-ink)}.color-1{background:var(--avatar1);color:var(--avatar1-ink)}.color-2{background:var(--avatar2);color:var(--avatar2-ink)}.color-3{background:var(--avatar3);color:var(--avatar3-ink)}.color-4{background:var(--avatar4);color:var(--avatar4-ink)}main{display:flex;flex-direction:column;flex:1;min-height:0}.page-heading{height:72px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 24px}.page-title{display:flex;align-items:center;gap:12px}.quiet-count{display:inline-flex;align-items:center;justify-content:center;min-width:25px;height:25px;border-radius:5px;background:var(--panel-alt);color:var(--muted);font-size:13px;font-weight:500;border:1px solid var(--line)}.breadcrumb{color:var(--muted);font-size:14px}.workspace-context{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--muted)}.workspace-square{width:30px;height:30px;border:1px solid var(--line);border-radius:7px;background:var(--panel);color:var(--ink);display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:600;flex-shrink:0}.context-dot{width:3px;height:3px;border-radius:50%;background:var(--muted);margin:0 3px}.page-content{flex:1;min-height:0;padding:0 24px 24px;display:flex;flex-direction:column}.work-area{display:grid;grid-template-columns:314px minmax(0,1fr) 280px;grid-template-rows:minmax(0,1fr);min-height:0;flex:1;background:var(--panel);border:1px solid var(--line);border-radius:10px;overflow:hidden}.conversation-area{grid-template-columns:264px minmax(0,1fr) 288px}.queue{min-height:0;display:flex;flex-direction:column;padding:20px 15px;border-right:1px solid var(--line);background:var(--panel)}.queue-top{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:0 3px 17px}.queue-top h2{font-size:15px}.queue-total{color:var(--muted);font-size:12px}.search{display:flex;align-items:center;gap:9px;background:var(--inset);border:1px solid var(--line);border-radius:7px;height:44px;flex-shrink:0;padding:0 12px;color:var(--muted);font-size:13px;min-width:0}.search svg{width:17px;height:17px}.key-hint{margin-left:auto;font-size:12px;border:1px solid var(--line);border-radius:4px;min-width:19px;text-align:center}.filter-tabs{display:flex;align-items:center;gap:22px;padding:20px 5px 17px;font-size:12px;color:var(--muted)}.filter-tabs>span{display:flex;gap:6px;align-items:center}.filter-tabs .current{color:var(--accent);font-weight:600}.filter-tabs b{font-weight:500;font-size:12px}.thread-row{display:flex;gap:11px;padding:18px 10px;border-bottom:1px solid var(--line);min-width:0;align-items:flex-start}.thread-row.selected{background:var(--selected);border-radius:7px;border-bottom-color:transparent;box-shadow:none}.thread-text{min-width:0;flex:1}.row-top{display:flex;gap:6px;align-items:center;justify-content:space-between}.row-top strong{font-size:14px;white-space:nowrap}.row-top time{white-space:nowrap}.thread-text p{font-size:13px;line-height:1.55;color:var(--muted);margin:5px 0 8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.row-bottom{display:flex;justify-content:space-between;align-items:center}.thread-state{display:flex;gap:5px;align-items:center;font-size:12px;color:var(--muted)}.thread-state svg{width:14px;height:14px}.thread-state.attention{color:var(--attention)}.unread-count{background:var(--button);color:var(--button-ink);border-radius:4px;font-size:12px;padding:0 6px;line-height:20px;font-weight:600}.queue-foot{display:flex;gap:9px;align-items:center;color:var(--muted);margin-top:auto;padding:20px 4px 0;font-size:12px}.queue-foot svg{color:var(--accent);width:18px;height:18px}.queue-foot small{font-size:12px;margin-top:3px}.focus-queue .filter-tabs{gap:16px}.focus-queue .thread-row{gap:9px;padding:18px 9px}.focus-queue .thread-row .avatar{width:32px;height:32px;font-size:12px}.focus-queue .row-top strong{font-size:13px}.focus-queue .search{font-size:12px}.focus-queue .key-hint{display:none}.focus-queue .queue-top h2{font-size:14px}.chat{min-width:0;min-height:0;display:flex;flex-direction:column;background:var(--panel)}.chat-head{height:80px;padding:0 22px;display:flex;justify-content:space-between;align-items:center;gap:10px;flex-shrink:0;border-bottom:1px solid var(--line)}.userline{display:flex;align-items:center;gap:11px;min-width:0}.userline>div{min-width:0}.chat-head h2{font-size:16px}.chat-head .muted{display:block;font-size:12px;margin-top:4px}.chat-actions{display:flex;gap:13px;align-items:center}.chat-actions>svg{width:19px;height:19px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 14px;min-height:44px;flex-shrink:0;white-space:nowrap;border:1px solid var(--line);border-radius:7px;font-size:13px;font-weight:600;color:var(--ink);background:var(--panel)}.btn svg{width:17px;height:17px}.btn.primary{color:var(--button-ink);background:var(--button);border-color:var(--button)}.handoff{display:flex;align-items:center;gap:9px;min-height:44px;padding:10px 20px;font-size:12px;color:var(--ink);background:var(--selected);border-bottom:1px solid var(--line);flex-shrink:0}.handoff>svg{color:var(--accent);width:17px;height:17px}.handoff-label{display:none}.messages{display:flex;flex-direction:column;align-items:flex-start;gap:14px;flex:1;min-height:0;padding:20px 24px;background:var(--inset);overflow-y:auto}.messages>*{flex-shrink:0}.date-line{width:100%;text-align:center;color:var(--muted);font-size:12px;margin-bottom:2px}.bubble{max-width:88%;font-size:14px;line-height:1.55;padding:11px 13px;border-radius:10px;background:var(--panel-alt);color:var(--ink);border:1px solid var(--line)}.bubble small{display:flex;justify-content:flex-end;align-items:center;gap:5px;font-size:12px;color:var(--muted);margin-top:6px}.bubble small svg{width:13px;height:13px}.bubble.outgoing{align-self:flex-end;color:var(--message-ink);background:var(--message);border-color:transparent}.bubble.outgoing small{color:var(--message-ink)}.assistant-caption{display:flex;align-items:center;gap:6px;align-self:flex-end;color:var(--muted);font-size:12px;margin-bottom:-7px}.assistant-caption svg{width:14px;height:14px}.event-line{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:12px;align-self:center;margin:2px 0}.event-line svg{width:15px;height:15px}.composer{flex-shrink:0;margin:15px 18px 0;padding:13px;border:1px solid var(--line);border-radius:8px;background:var(--panel-alt)}.composer-tabs{display:flex;align-items:center;gap:20px;color:var(--muted);font-size:12px}.composer-tabs .current{color:var(--accent);font-weight:600}.window{display:flex;align-items:center;gap:5px;margin-left:auto;font-size:12px}.window svg{width:14px;height:14px}.compose-placeholder{font-size:14px;color:var(--muted);margin:17px 0 19px}.composer-actions{display:flex;align-items:center;justify-content:space-between;gap:15px}.composer-actions>div{display:flex;gap:14px;align-items:center;color:var(--muted);font-size:12px}.composer-actions>div svg{width:18px;height:18px}.composer-actions .primary{min-height:40px;padding:8px 13px}.composer-foot{flex-shrink:0;text-align:center;padding:9px 0 11px;font-size:12px;color:var(--muted)}.profile{border-left:1px solid var(--line);padding:21px 20px;min-width:0;min-height:0;overflow-y:auto;background:var(--panel)}.section-label{display:flex;align-items:center;justify-content:space-between;font-size:12px;letter-spacing:.35px;color:var(--muted);font-weight:500}.section-label svg{width:16px;height:16px}.profile-person{text-align:center;padding:17px 0 20px}.profile-person>.avatar{margin-bottom:11px}.profile-person h3{font-size:18px}.profile-person p{font-size:12px;color:var(--muted);margin:6px 0 11px}.pill{display:inline-flex;align-items:center;border-radius:5px;background:var(--selected);color:var(--accent);padding:4px 8px;font-size:12px;white-space:nowrap;line-height:1.4;font-weight:500}.pill.quiet{color:var(--muted);background:var(--panel-alt);border:1px solid var(--line)}.pill.warm{color:var(--attention);background:var(--attention-bg)}.profile dl{display:grid;grid-template-columns:1fr 1fr;gap:17px 10px;margin:0}.profile dl>div:first-child{grid-column:1/-1}.profile dt{font-size:12px;color:var(--muted);margin-bottom:6px}.profile dd{margin:0;display:flex;align-items:center;gap:6px;font-size:12px}.profile dd .avatar{width:24px;height:24px;font-size:12px}.profile dd svg{width:13px;height:13px;margin-left:auto}.side-divider{height:1px;flex-shrink:0;background:var(--line);margin:19px 0}.tags{display:flex;gap:7px;flex-wrap:wrap;margin-top:13px}.permission{display:flex;align-items:flex-start;gap:8px;font-size:12px;margin:15px 0}.permission>svg{width:17px;height:17px;color:var(--accent)}.permission strong{font-size:12px;font-weight:500}.permission small{font-size:12px;margin-top:4px}.profile .small{font-size:12px;line-height:1.65}.private-note{font-size:12px;line-height:1.65;padding:11px 12px;border-radius:6px;background:var(--note);margin-top:13px}.private-note small{font-size:12px;margin-top:7px}.muted{color:var(--muted)}.contact-toolbar{display:flex;align-items:center;gap:12px;margin-bottom:18px}.contact-toolbar .search{width:395px}.toolbar-total{margin-left:auto;color:var(--muted);font-size:13px}.crm-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;grid-template-rows:minmax(0,1fr);gap:20px;flex:1;min-height:0}.directory{border:1px solid var(--line);border-radius:9px;min-width:0;overflow:hidden;background:var(--panel)}.directory-title{height:67px;padding:0 23px;display:flex;align-items:center;justify-content:space-between}.directory-title h2{display:flex;align-items:center;gap:9px}.directory-title>span{font-size:12px;color:var(--muted)}.crm-layout>.profile{border:1px solid var(--line);border-radius:9px}.crm-layout .profile-notes{display:none}.contacts-table{border-top:1px solid var(--line)}.table-head,.table-row{display:grid;grid-template-columns:minmax(215px,1.7fr) 1fr 1fr 1fr 16px;align-items:center;gap:14px;padding:19px 23px}.table-head{background:var(--inset);color:var(--muted);font-size:12px;padding-top:15px;padding-bottom:15px}.table-row{border-top:1px solid var(--line);font-size:13px;min-height:89px}.table-row.selected{background:var(--selected);box-shadow:none}.table-row strong{font-size:14px}.table-row small{font-size:12px;margin-top:5px}.table-row .avatar{width:36px;height:36px;font-size:12px}.table-window{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:12px;white-space:nowrap}.table-window svg{width:15px;height:15px}.table-row>svg{width:16px;height:16px;color:var(--muted)}.table-footer{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding:20px 23px;color:var(--muted);font-size:12px}.directory-note{display:flex;align-items:flex-start;gap:10px;border-top:1px solid var(--line);padding:19px 23px;font-size:12px;color:var(--muted);background:var(--inset)}.directory-note svg{color:var(--accent);width:17px;height:17px}.settings-layout{display:grid;grid-template-columns:224px minmax(0,1fr) 285px;gap:20px;min-height:0;flex:1;align-items:start}.settings-menu{background:var(--panel);border:1px solid var(--line);border-radius:9px;padding:12px}.menu-title{font-size:12px;color:var(--muted);padding:10px 12px 17px}.settings-menu>div:not(.menu-title){display:flex;align-items:center;justify-content:space-between;padding:14px 11px;min-height:48px;border-radius:6px;font-size:13px;color:var(--muted);margin-bottom:4px}.settings-menu .current{background:var(--selected);color:var(--accent)!important;font-weight:600}.settings-menu svg{width:16px;height:16px}.settings-form{background:var(--panel);border:1px solid var(--line);border-radius:9px;padding:27px}.form-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:27px}.form-title h2{font-size:19px}.form-title p{font-size:13px;color:var(--muted);margin-top:8px}.form-title .workspace-square{width:40px;height:40px;font-size:17px}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:20px}.field label{display:block;font-size:13px;font-weight:500;margin-bottom:10px}.mock-input,.field select{border:1px solid var(--line);border-radius:7px;background:var(--inset);color:var(--ink);padding:12px;font-size:14px;min-height:46px;width:100%}.field small{font-size:12px;margin-top:9px}.settings-form>.side-divider{margin:29px 0}.settings-form>h3{font-size:16px;margin-bottom:8px}.settings-form>.muted{font-size:13px}.preference{display:flex;align-items:center;gap:12px}.pref-icon{display:flex;align-items:center;justify-content:center;width:39px;height:39px;flex-shrink:0;background:var(--selected);color:var(--accent);border-radius:7px}.preference p{font-size:12px;color:var(--muted);margin-top:5px}.toggle{display:flex;align-items:center;justify-content:flex-end;width:38px;height:23px;border-radius:20px;background:var(--button);padding:4px;margin-left:auto;flex-shrink:0}.toggle i{width:15px;height:15px;border-radius:50%;background:var(--button-ink)}.form-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid var(--line);padding-top:25px;margin-top:31px}.form-footer>span{font-size:12px;color:var(--muted)}.settings-context{background:var(--panel);border:1px solid var(--line);border-radius:9px;padding:25px 22px}.context-icon{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:10px;background:var(--selected);color:var(--accent);margin-bottom:20px}.context-icon svg{width:24px;height:24px}.settings-context>h2{font-size:18px;margin-bottom:10px}.settings-context>.muted{font-size:13px;line-height:1.7}.status-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:21px;font-size:12px}.status-row>span:first-child{color:var(--muted)}.status-row strong{font-size:12px;font-weight:500}.settings-context .side-divider{margin:25px 0}.settings-context h3{margin-bottom:10px}.context-foot{display:flex;gap:8px;align-items:flex-start;font-size:12px;color:var(--muted);border-top:1px solid var(--line);padding-top:20px;margin-top:25px;line-height:1.7}.context-foot svg{width:17px;height:17px}a:hover{background:var(--panel-alt)}.nav-item.active:hover{background:var(--selected)}a:focus-visible,select:focus-visible{outline:3px solid var(--outline);outline-offset:3px}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Complete contact context and reply action stay inside the review canvas. */
.profile{padding:18px 20px}
.profile-person{padding:12px 0 14px}
.profile dl{row-gap:14px}
.profile .side-divider{margin:15px 0}
.messages{gap:12px}
.composer-actions .primary{min-height:44px}

/* Settings → AI: requests unrelated to the business */
.ai-scope{display:grid;gap:12px}
.ai-scope>p{margin:0}
.ai-scope .field small{display:block;margin-top:6px}
