@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;650;700;800&display=swap');
:root{font-family:Manrope,-apple-system,BlinkMacSystemFont,sans-serif;color:#233e37;background:#f4f5f1;font-synthesis:none;--green:#153c35;--muted:#7b8881;--line:#e4e8e1}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;color:inherit}button,a,input,select,textarea{outline-offset:3px}button{border:0;background:none}button:disabled{opacity:.45;cursor:not-allowed}a{color:var(--green)}h1,h2,h3,p{margin:0}button.primary{background:var(--green);color:white;border-radius:10px;padding:12px 18px;font-weight:700}.shell{display:grid;grid-template-columns:210px 1fr;height:100dvh;overflow:hidden}.sidebar{background:var(--green);color:#d9e5dc;padding:30px 18px 22px;display:flex;flex-direction:column}.brand{display:flex;gap:12px;align-items:center;padding:0 10px 40px}.brand img{width:36px}.brand strong{font-size:15px;letter-spacing:.2px}.brand small{display:block;font-size:10px;color:#94ada4;margin-top:5px;letter-spacing:2px}.nav{display:flex;flex-direction:column;gap:6px}.nav button{color:#b6ccc3;text-align:left;padding:13px 15px;border-radius:9px;display:flex;gap:12px;align-items:center;font-weight:600;font-size:13px}.nav button.active{background:#31554a;color:#fff}.nav svg{width:19px;height:19px}.nav .count{margin-left:auto;background:#dce9b7;color:#234436;font-size:10px;border-radius:5px;padding:2px 6px}.sidebar-bottom{margin-top:auto}.workspace{font-size:11px;color:#97b0a6;margin:16px 12px;line-height:1.8}.user{display:flex;gap:10px;align-items:center;border-top:1px solid #35554b;padding:18px 6px 0;font-size:12px}.avatar{height:38px;width:38px;flex-shrink:0;border-radius:50%;display:grid;place-items:center;background:#e9eddf;color:#516443;font-size:13px;font-weight:800}.user small{display:block;color:#94ada4;font-size:10px;margin-top:3px}.main{min-width:0;display:flex;flex-direction:column;overflow:hidden}.topbar{padding:25px 30px 20px;display:flex;align-items:center;gap:15px;background:#fff;border-bottom:1px solid var(--line)}h1{font-size:23px;font-weight:800;letter-spacing:-.7px}.subtitle{font-size:11px;color:var(--muted);margin-top:5px}.topbar .right{margin-left:auto;display:flex;align-items:center;gap:12px}.pill{font-size:10px;border:1px solid var(--line);padding:7px 10px;border-radius:20px;white-space:nowrap}.pill.demo{background:#f9f3e2;color:#8a6b29;border-color:#ebdfbf}.pill.live{color:#27805c}.demo-banner{font-size:11px;padding:9px 30px;background:#f3f0e5;color:#817553;display:flex;justify-content:space-between;gap:12px}.demo-banner button{text-decoration:underline;font-size:11px;padding:0}.inbox{display:grid;grid-template-columns:310px minmax(270px,1fr) 280px;flex:1;min-height:0}.threads{background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0}.search{padding:18px 16px 12px}.search input{width:100%;border:1px solid var(--line);background:#f8f9f6;border-radius:9px;padding:11px 12px;font-size:12px}.filters{display:flex;gap:5px;padding:0 16px 14px;flex-wrap:wrap}.filters button{padding:6px 9px;border-radius:6px;font-size:10px;background:#f4f6f1;color:#748179}.filters button.active{background:#e3ecdc;color:#345332;font-weight:700}.list-title{display:flex;justify-content:space-between;padding:6px 20px 12px;font-size:10px;color:#8c9890}.thread-list{overflow:auto;flex:1}.thread{display:flex;text-align:left;gap:11px;padding:19px 16px;width:100%;border-bottom:1px solid #eef0eb;border-left:3px solid transparent}.thread.active{background:#f0f4e9;border-left-color:#6f8c55}.thread .body{min-width:0;flex:1}.thread .name{display:flex;align-items:center;justify-content:space-between;gap:7px;font-size:12px;font-weight:800}.thread .time{font-weight:400;font-size:9px;color:#99a096}.thread p{font-size:11px;color:#7d897f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:6px 0 9px}.thread .meta{display:flex;justify-content:space-between;align-items:center;font-size:9px;color:#78906c}.badge{width:17px;height:17px;display:grid;place-items:center;border-radius:50%;background:#456d4f;color:#fff;font-size:9px}.channel-badge{display:inline-grid;place-items:center;width:16px;height:16px;border-radius:5px;font-size:9px;font-weight:800;color:#fff;background:var(--c)}.avatar-wrap{position:relative}.avatar-wrap .channel-badge{position:absolute;right:-2px;bottom:-2px;border:2px solid #fff;width:19px;height:19px}.chat{display:flex;flex-direction:column;min-height:0;background:#f6f7f2}.chat-header{background:#fff;padding:18px 22px;border-bottom:1px solid var(--line);display:flex;gap:11px;align-items:center;min-height:78px}.chat-header h2{font-size:14px;font-weight:800}.chat-header small{font-size:10px;color:var(--muted);display:block;margin-top:4px}.chat-header .details-toggle{margin-left:auto;font-size:12px;border:1px solid var(--line);padding:8px 10px;border-radius:8px}.back{display:none}.messages{padding:25px 26px;overflow:auto;flex:1;display:flex;flex-direction:column;gap:18px}.day-label{text-align:center;font-size:10px;color:#99a18e;margin:0 0 10px}.bubble{max-width:86%;border:1px solid #e4e8de;border-radius:14px 14px 14px 3px;padding:13px 16px;background:#fff;align-self:flex-start;box-shadow:0 2px 3px #153c3503;font-size:12px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere}.bubble.out{background:#e6eedc;border-color:#dce5d2;align-self:flex-end;border-radius:14px 14px 3px 14px}.bubble.note{background:#fff3d5;border-color:#eadfbe;align-self:center}.bubble footer{text-align:right;font-size:9px;color:#8b9981;margin-top:7px;line-height:1.2}.composer{margin:0 20px 19px;border:1px solid #dfe5d7;background:#fff;border-radius:12px;padding:13px}.composer textarea{width:100%;resize:none;border:0;min-height:55px;max-height:130px;font-size:12px;line-height:1.7;background:transparent;outline:none}.compose-top{display:flex;gap:16px;margin-bottom:9px;border-bottom:1px solid #edf0e7;padding-bottom:9px}.compose-top button{font-size:10px;padding:0;color:#87927f}.compose-top button.active{color:#35583f;font-weight:800}.compose-footer{display:flex;align-items:center;justify-content:space-between;gap:10px}.compose-footer small{font-size:9px;color:#9a9e91}.compose-footer button{padding:9px 13px;font-size:11px}.profile{background:#fff;padding:22px 20px;overflow:auto;border-left:1px solid var(--line)}.eyebrow{font-size:9px;letter-spacing:1.4px;color:#939c8d;font-weight:700;text-transform:uppercase;margin-bottom:15px}.profile h3{font-size:14px;margin-bottom:19px}.field{margin-bottom:15px}.field label{display:block;font-size:10px;color:#8a9586;margin-bottom:6px}.field input,.field select,.field textarea{width:100%;background:#f9faf7;border:1px solid #e5e9df;border-radius:7px;font-size:11px;padding:9px;color:#40513c}.field textarea{resize:vertical;min-height:66px}.profile hr{border:0;border-top:1px solid var(--line);margin:22px 0}.profile .primary{width:100%;font-size:11px;padding:10px}.content{padding:28px 30px;overflow:auto;flex:1}.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.section-head h2{font-size:18px}.section-head p{font-size:12px;color:var(--muted);margin-top:7px}.board{display:flex;gap:16px;align-items:flex-start;overflow:auto;padding-bottom:20px}.column{min-width:250px;width:250px;background:#edf0e8;border-radius:13px;padding:12px}.column h3{font-size:11px;display:flex;justify-content:space-between;padding:5px 3px 16px}.column h3 span{color:#8b9781}.deal{background:#fff;border:1px solid #e0e6d9;border-radius:10px;margin-bottom:10px;padding:16px;width:100%;text-align:left}.deal h4{margin:0 0 10px;font-size:12px}.deal p{font-size:11px;color:#7e8a76;line-height:1.6}.deal .price{font-size:12px;color:#3f633f;margin-top:12px;font-weight:700}.deal .bottom{display:flex;justify-content:space-between;border-top:1px solid #edf0e7;padding-top:10px;margin-top:12px;font-size:10px;color:#8c9785}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:24px}.card h3{font-size:16px;margin:15px 0 9px}.card p{font-size:12px;line-height:1.8;color:#87917e}.card .channel-badge{height:40px;width:40px;font-size:20px;border-radius:12px}.card .status{font-size:10px;color:#9a8253;margin:18px 0 12px}.card button{font-size:12px;width:100%;border:1px solid var(--line);padding:11px;border-radius:8px;margin-top:8px}.notice{background:#edf1e5;border:1px solid #dfe6d1;color:#68755c;padding:18px 20px;border-radius:10px;font-size:12px;line-height:1.8;margin-top:22px}.table-wrap{overflow:auto;background:#fff;border:1px solid var(--line);border-radius:12px}table{width:100%;border-collapse:collapse;font-size:12px}td,th{padding:16px;text-align:left;border-bottom:1px solid #edf0e7}th{font-size:10px;color:#8b9584;font-weight:600}.team{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.team .card{display:flex;align-items:center;gap:15px;padding:19px}.team h3{font-size:13px;margin:0 0 4px}.team small{font-size:10px;color:#8c9584}.team button{width:auto;margin-left:auto}.empty{padding:36px;text-align:center;color:#8b9683;font-size:12px}.stage-editor{display:flex;flex-wrap:wrap;gap:8px;margin-top:17px}.stage-editor input{border:1px solid var(--line);border-radius:7px;padding:10px;font-size:12px;width:210px}.stage-editor button{background:#fff;padding:10px;border:1px solid var(--line);border-radius:7px}.wide{max-width:980px}dialog{border:1px solid var(--line);padding:26px;border-radius:16px;max-width:480px;width:calc(100% - 32px);color:#2d483d;box-shadow:0 20px 100px #163d3522}dialog::backdrop{background:#133b3555;backdrop-filter:blur(3px)}dialog h2{font-size:20px;margin-bottom:12px}dialog p{font-size:12px;line-height:1.8;color:#7f8d77;margin-bottom:17px}dialog .actions{display:flex;justify-content:flex-end;gap:12px;margin-top:20px}dialog .actions button{font-size:12px;padding:11px 15px}dialog .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#173e35;color:white;padding:13px 20px;border-radius:10px;font-size:12px;z-index:99;display:none;max-width:90%;box-shadow:0 8px 30px #153c3522}.login{min-height:100dvh;display:grid;place-items:center}.login .card{width:min(420px,90vw);padding:35px}.login img{width:50px;margin-bottom:18px}.login h1{margin-bottom:12px}.login p{margin-bottom:23px}.login button{width:100%}.mobile-nav{display:none}.qr{width:240px;max-width:100%;display:block;margin:auto}.error{color:#a45142!important}.settings-actions{display:flex;gap:12px;flex-wrap:wrap}.settings-actions button{border:1px solid var(--line);border-radius:8px;background:#fff;padding:12px;font-size:12px}
@media(min-width:1600px){.inbox{grid-template-columns:340px minmax(350px,1fr) 315px}}@media(max-width:1200px){.shell{grid-template-columns:175px 1fr}.sidebar{padding:25px 12px}.brand{gap:8px;padding-left:5px}.brand strong{font-size:13px}.inbox{grid-template-columns:280px 1fr}.profile{display:none}.inbox.show-profile{grid-template-columns:280px 1fr}.inbox.show-profile .chat{display:none}.inbox.show-profile .profile{display:block}.topbar{padding:21px}.grid{grid-template-columns:1fr}.card h3{margin-top:10px}.card{padding:20px}.brand img{width:30px}}
@media(max-width:760px){.shell{display:block;height:100dvh}.sidebar{display:none}.main{height:100dvh;padding-bottom:calc(62px + env(safe-area-inset-bottom))}.topbar{padding:17px 16px;gap:8px;min-height:74px}h1{font-size:21px}.topbar .primary{font-size:0;padding:9px 12px}.topbar .primary:before{content:'+';font-size:22px}.topbar .right{gap:7px}.topbar .pill{font-size:9px;padding:6px 8px}.subtitle{font-size:10px}.demo-banner{padding:8px 16px;font-size:10px}.demo-banner button{font-size:10px}.inbox{display:block;overflow:hidden}.threads{height:100%;border:0}.thread{padding:18px 17px}.thread .name{font-size:14px}.thread p{font-size:12px}.thread .meta{font-size:10px}.search input{font-size:16px}.filters button{font-size:11px;padding:8px 10px}.chat{display:none;height:100%}.inbox.chat-open .threads{display:none}.inbox.chat-open .chat{display:flex}.inbox.chat-open.show-profile .chat{display:none}.inbox.show-profile .threads{display:none}.inbox.show-profile .profile{display:block;height:100%}.profile{padding:22px}.field input,.field textarea,.field select{font-size:16px}.back{display:block;font-size:20px;padding:3px 8px 3px 0}.chat-header{padding:13px 14px;min-height:70px}.chat-header h2{font-size:14px}.messages{padding:20px 16px;gap:16px}.bubble{font-size:14px;max-width:88%;padding:12px 15px}.composer{margin:0 12px 12px;padding:12px}.composer textarea{font-size:16px;min-height:48px}.compose-footer small{max-width:160px}.compose-top button{font-size:12px}.content{padding:22px 16px}.team{grid-template-columns:1fr}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:10;background:#fff;border-top:1px solid var(--line);height:calc(62px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);justify-content:space-around}.mobile-nav button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;font-size:9px;color:#8b9782;flex:1;padding:7px 0}.mobile-nav svg{width:21px;height:21px}.mobile-nav button.active{color:#285a41;font-weight:800}.section-head{align-items:flex-start;gap:10px}.section-head h2{font-size:16px}.column{min-width:260px}.stage-editor input{width:100%;font-size:16px}.topbar .pill.live{display:none}.profile h3{display:flex;align-items:center;gap:10px}dialog .form-grid{grid-template-columns:1fr}dialog{max-height:90dvh}.settings-actions button{width:100%}.grid{gap:12px}}
.brand-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:22px}.brand-tabs button{padding:11px 18px;border-radius:9px;background:#e9eee2;font-size:12px}.brand-tabs button.active{background:#153c35;color:#fff}.sender-info{background:#edf2e6;padding:12px;border-radius:9px;margin-bottom:10px;font-size:11px}.sender-info small{display:block;color:#7b8870;margin-top:5px;overflow-wrap:anywhere}.task-link{font-size:11px;color:#3a684d;padding:9px 0 17px}.calendar-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:20px}.calendar-toolbar>div{display:flex;gap:14px;align-items:center}.calendar-toolbar strong{text-transform:capitalize;font-size:15px}.calendar-toolbar button{padding:8px 12px;border:1px solid var(--line);border-radius:7px;background:#fff}.calendar-toolbar select{padding:10px;border:1px solid var(--line);border-radius:8px;background:#fff;font-size:12px}.calendar-layout{display:grid;grid-template-columns:minmax(420px,1fr) 300px;gap:20px}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}.weekday{text-align:center;padding:12px;font-size:11px;color:#8a9680;background:#f8faf5}.day{min-height:100px;text-align:left;padding:9px;border-top:1px solid var(--line);border-right:1px solid var(--line);display:flex;flex-direction:column;gap:4px;overflow:hidden}.day>span{font-size:12px;padding:3px;width:25px;text-align:center}.day.today>span{background:#315b43;color:white;border-radius:50%}.day.selected{background:#eaf0df}.day.other{color:#bbc2b4;background:#fafbf8}.day small{display:block;font-size:9px;background:#e0ead2;padding:5px;border-radius:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%;color:#46613c}.day em{font-size:9px;color:#8b957e}.day-agenda{background:white;border:1px solid var(--line);border-radius:12px;padding:20px}.day-agenda h3{font-size:14px;margin-bottom:20px}.agenda-task{border-bottom:1px solid var(--line);padding:14px 0}.agenda-task>div{display:flex;align-items:flex-start;gap:6px}.agenda-task button{text-align:left;font-size:12px}.agenda-task small{display:block;font-size:10px;color:#8b967f;margin-top:7px}.agenda-task p{font-size:11px;color:#8b967f;margin:9px 0}.agenda-task .task-client{font-size:10px;color:#477a54;margin:10px 0}.done{text-decoration:line-through;opacity:.6}@media(max-width:1100px){.calendar-layout{grid-template-columns:1fr}.day-agenda{min-height:150px}}@media(max-width:760px){.calendar-toolbar{flex-wrap:wrap}.calendar-toolbar>div{gap:6px}.calendar-toolbar strong{font-size:13px}.calendar-toolbar select{width:100%}.day{min-height:76px;padding:5px}.day small{font-size:8px;padding:3px}.calendar-layout{gap:15px}.calendar-content{padding:20px 10px}.weekday{padding:8px 2px}.brand-tabs button{padding:9px 12px}.mobile-nav button{font-size:8px}}

.compose-top{flex-wrap:wrap;row-gap:6px}

.contact-warning{margin:8px 0;padding:10px 12px;border-radius:8px;background:#fff4df;color:#77521b;font-size:12px;line-height:1.5}.composer button:disabled,.composer textarea:disabled{opacity:.55;cursor:not-allowed}
.queue-list{display:grid;gap:12px}.queue-list .card{display:flex;align-items:center;justify-content:space-between;gap:20px}.task-backlog{margin:20px 0;padding:18px;border:1px solid var(--line);border-radius:14px;max-height:360px;overflow:auto}.task-backlog h3{margin-bottom:12px}.agenda-task.overdue{border-left:3px solid #bd3f50;background:#fff1f1}.agenda-task.overdue small{color:#a32339}.day small.overdue{background:#ffe4e4;color:#a32339}.personal-settings{padding-bottom:32px;margin-bottom:28px;border-bottom:1px solid var(--line)}.personal-settings form{display:grid;gap:14px;max-width:560px;margin-top:20px}.personal-settings p{font-size:13px;line-height:1.6}.settings-actions{flex-wrap:wrap}

/* Shared surfaces keep all controls readable in both palettes. */
:root{--surface:#fff;--surface-alt:#f5f7f2;--text:#283c32;--accent-ink:#fff;--selected:#e5eddf;--outgoing:#e5eddf;--sidebar:#153c35;--note:#fff5dc}
:root[data-theme=pink]{--green:#984568;--muted:#78636e;--line:#ecdce3;--surface:#fffdfd;--surface-alt:#fcf3f6;--text:#493740;--accent-ink:#fff;--selected:#f5e2eb;--outgoing:#f7e6ee;--sidebar:#754057;--note:#fff4df;background:#fff8fa;color:var(--text)}
:root[data-mode=dark]{color-scheme:dark;--green:#b0d7c4;--muted:#b3c1ba;--line:#46544d;--surface:#29372f;--surface-alt:#223028;--text:#edf3ee;--accent-ink:#20382a;--selected:#3b5143;--outgoing:#3b5143;--sidebar:#1d2b23;--note:#4b4230;background:#202b24;color:var(--text)}
:root[data-mode=dark][data-theme=pink]{--green:#efb7d0;--muted:#d0bdc7;--line:#564b53;--surface:#383239;--surface-alt:#2e292f;--text:#faf1f6;--accent-ink:#482b3a;--selected:#54404d;--outgoing:#51404a;--sidebar:#30272e;--note:#4b4033;background:#2e292f;color:var(--text)}
:root[data-theme] body{color:var(--text);background:var(--surface-alt)}
:root[data-theme] .sidebar{background:var(--sidebar)}
:root[data-theme] .main,:root[data-theme] .chat,:root[data-theme] .column{background:var(--surface-alt)}
:root[data-theme] .topbar,:root[data-theme] .threads,:root[data-theme] .chat-header,:root[data-theme] .profile,:root[data-theme] .card,:root[data-theme] .table-wrap,:root[data-theme] dialog,:root[data-theme] .mobile-nav,:root[data-theme] .compose,:root[data-theme] .calendar-grid,:root[data-theme] .deal,:root[data-theme] .bubble{background:var(--surface);color:var(--text)}
:root[data-theme] input,:root[data-theme] select,:root[data-theme] textarea{background:var(--surface-alt);color:var(--text);border-color:var(--line)}
:root[data-theme] input::placeholder,:root[data-theme] textarea::placeholder{color:var(--muted);opacity:1}
:root[data-theme] .primary,:root[data-theme] .compose-top button.active{background:var(--green);color:var(--accent-ink)}
:root[data-theme] .settings-actions button:not(.primary),:root[data-theme] .calendar-toolbar button,:root[data-theme] .calendar-toolbar select,:root[data-theme] .card button:not(.primary),:root[data-theme] dialog .actions button:not(.primary),:root[data-theme] .compose-top button,:root[data-theme] .filters button{background:var(--surface-alt);color:var(--text);border:1px solid var(--line)}
:root[data-theme] .compose-top button.active,:root[data-theme] .filters button.active{background:var(--green);color:var(--accent-ink);border-color:var(--green)}
:root[data-theme] .thread.active,:root[data-theme] .day.selected,:root[data-theme] .notice,:root[data-theme] .sender-info{background:var(--selected);color:var(--text)}
:root[data-theme] .bubble.out{background:var(--outgoing)}
:root[data-theme] .bubble.note,:root[data-theme] .contact-warning{background:var(--note);color:var(--text)}
:root[data-theme] .weekday,:root[data-theme] .day.other{background:var(--surface-alt);color:var(--muted)}
:root[data-theme] .day small{background:var(--selected);color:var(--text)}
:root[data-theme] .day.today .day-num{background:var(--green);color:var(--accent-ink)}
:root[data-theme] .card p,:root[data-theme] .empty,:root[data-theme] .field label,:root[data-theme] .thread p,:root[data-theme] .thread time,:root[data-theme] .thread .meta,:root[data-theme] .bubble footer,:root[data-theme] .agenda small,:root[data-theme] .sender-info small,:root[data-theme] .subtitle,:root[data-theme] .more-intro{color:var(--muted)}
:root[data-theme] .deal .price{color:var(--green)}
:root[data-theme] .nav button.active{background:rgba(255,255,255,.16);color:#fff}
:root[data-mode=dark] .agenda-task.overdue{background:#4c3039;border-color:#eea1b2}
:root[data-mode=dark] .agenda-task.overdue small{color:#ffc0cd}
.more-menu{width:100%;overflow:auto}.more-intro{margin:0 0 20px}.more-item{width:100%;display:flex;align-items:center;gap:16px;text-align:left;padding:20px;margin-bottom:12px;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--text)}.more-item>svg{width:25px;height:25px;flex-shrink:0;color:var(--green)}.more-item>span:first-of-type{flex:1}.more-item strong{display:block;font-size:16px}.more-item small{display:block;margin-top:5px;color:var(--muted);line-height:1.5}.more-item>span:last-child{font-size:26px;color:var(--muted)}
.queue-list .card button{width:auto;flex:0 0 auto;min-width:150px}.queue-list .card>div{flex:1}
@media(max-width:760px){
.main{padding-bottom:calc(76px + env(safe-area-inset-bottom))}
.mobile-nav{height:calc(76px + env(safe-area-inset-bottom));padding:5px 6px env(safe-area-inset-bottom);gap:2px;box-shadow:0 -4px 20px #00000008}
.mobile-nav button{min-width:0;min-height:64px;gap:5px;font-size:11px;font-weight:600;padding:8px 2px;border-radius:15px;color:var(--muted)}
.mobile-nav svg{width:25px;height:25px}
:root[data-theme] .mobile-nav button.active{color:var(--green);background:var(--selected)}
.queue-list .card{align-items:flex-start;flex-direction:column}.task-backlog{max-height:320px}
.more-menu{padding:20px 16px}.more-item{padding:18px 16px}
}
/* Composer is a form, not .compose: theme the complete reply panel. */
:root[data-theme] .composer{background:var(--surface);border-color:var(--line);color:var(--text)}
:root[data-theme] .composer textarea{background:var(--surface);color:var(--text);border-radius:8px;padding:8px}
:root[data-theme] .compose-top{border-color:var(--line);gap:6px;flex-wrap:wrap}
:root[data-theme] .compose-top button{border:0;border-radius:8px;padding:7px 9px;min-height:34px;background:var(--surface-alt);color:var(--muted)}
:root[data-theme] .compose-top button.active{background:var(--selected);color:var(--green)}
:root[data-theme] .compose-footer small,:root[data-theme] .day-label{color:var(--muted)}
:root[data-theme] .bubble{border-color:var(--line)}

.deal-wrap{margin-bottom:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);overflow:hidden;cursor:grab}.deal-wrap.dragging{opacity:.4}.deal-wrap .deal{margin:0;border:0;border-radius:0;cursor:grab}.drag-grip{color:var(--muted);font-size:18px}.deal-stage{display:block;padding:0 12px 12px;font-size:10px;color:var(--muted)}.deal-stage select{display:block;width:100%;margin-top:5px;padding:9px;border:1px solid var(--line);border-radius:8px;font-size:11px}.column{min-height:180px;transition:background .15s,box-shadow .15s}.column.drop-target{box-shadow:inset 0 0 0 2px var(--green);background:var(--selected)}
@media(pointer:coarse){.deal-stage select{min-height:44px;font-size:16px}.drag-grip{display:none}.deal-wrap,.deal-wrap .deal{cursor:pointer}}

.merge-list{max-height:55dvh;overflow:auto}.merge-list label,.merge-field label{display:flex;gap:12px;padding:12px;border-bottom:1px solid var(--line);align-items:flex-start}.merge-list small,.merge-field small{display:block;color:var(--muted);margin:4px 0}.merge-list input,.merge-field input{width:20px;height:20px;flex-shrink:0;accent-color:var(--green)}.merge-field{border:1px solid var(--line);border-radius:12px;margin:16px 0;padding:8px}.merge-field legend{font-weight:700}.merge-review p{margin:12px 0;overflow-wrap:anywhere}.source-details{margin:16px 0;font-size:12px}.source-details article{border-bottom:1px solid var(--line);padding:12px 0}.source-details p{margin:8px 0;overflow-wrap:anywhere}.conversation-picker{padding:12px 20px;background:var(--surface);border-bottom:1px solid var(--line);font-size:11px}.conversation-picker label{display:block;margin-bottom:6px;color:var(--muted)}.conversation-picker select{width:100%;padding:10px;border:1px solid var(--line);border-radius:8px;min-width:0}.actions{flex-wrap:wrap}@media(max-width:760px){.section-head{gap:12px;flex-wrap:wrap}.conversation-picker select{font-size:16px}.merge-field label{min-height:44px}}
.chat-header>div:not(.avatar-wrap){min-width:0}.chat-header h2{overflow-wrap:anywhere}.chat-header .details-toggle{flex-shrink:0}#quick-contact-status{margin-top:12px;font-size:13px;color:var(--text)}
@media(max-width:760px){.chat-header{flex-wrap:wrap;gap:8px}.chat-header h2{font-size:13px}.chat-header #quick-contact{margin-left:auto}.chat-header #details{margin-left:0}}
.chat-title{flex:1;min-width:0;text-align:left;padding:0}.chat-title h2{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-title small{font-size:10px}.chat-header #quick-contact{width:40px;height:40px;padding:0;font-size:24px;flex-shrink:0;margin-left:0}.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.conversation-picker{padding:8px 12px}.conversation-picker select{padding:8px 10px;font-size:12px}.messages .empty small{display:block;max-width:230px;margin:8px auto;line-height:1.6;font-size:11px}
@media(max-width:760px){.mobile-chat .topbar{display:none}.chat-header{flex-wrap:nowrap;min-height:68px;padding:12px;gap:10px}.chat-header .avatar{width:32px;height:32px;font-size:11px}.chat-header .back{width:24px;flex-shrink:0;padding:0}.conversation-picker select{font-size:16px;height:42px}.composer{margin:0 10px 10px;padding:10px}.composer textarea{min-height:50px;max-height:100px;font-size:16px}.compose-footer small{display:none}.compose-footer{justify-content:flex-end}.compose-top{gap:4px!important}.compose-top button{font-size:10px!important;padding:7px!important}.messages{padding:18px 14px}}
/* Direction is explicit in labels, alignment and surface color. */
:root[data-theme] .bubble{align-self:flex-start;max-width:85%;background:var(--surface);border:1px solid var(--line);border-left:3px solid var(--muted);border-radius:15px 15px 15px 4px;white-space:normal}
:root[data-theme] .bubble.out{align-self:flex-end;background:var(--outgoing);border:1px solid var(--line);border-right:3px solid var(--green);border-radius:15px 15px 4px 15px}
:root[data-theme] .bubble.note{align-self:center;background:var(--note);border:1px dashed var(--muted);border-radius:12px;width:92%;max-width:92%}
.message-author{font-size:10px;font-weight:800;line-height:1.4;margin-bottom:7px;color:var(--muted)}
:root[data-theme] .bubble.out .message-author{color:var(--green)}
.message-text{white-space:pre-wrap;overflow-wrap:anywhere}
:root[data-mode=dark][data-theme=pink]{--outgoing:#624254}
:root[data-mode=light][data-theme=pink]{--outgoing:#f5dce8}
@media(max-width:760px){.messages{gap:14px}:root[data-theme] .bubble{max-width:84%;padding:11px 13px;font-size:14px}.message-author{font-size:11px}.bubble footer{font-size:10px;margin-top:8px}}
.file-compose{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:8px 0;font-size:11px;color:var(--muted)}.attach-button{display:inline-flex;align-items:center;min-height:36px;cursor:pointer;color:var(--green);font-weight:700}.attach-button input{max-width:190px;font-size:11px;margin-left:8px}.message-attachment{margin-top:9px;display:grid;gap:6px}.message-attachment img{display:block;max-width:100%;max-height:300px;border-radius:9px;object-fit:contain}.message-attachment strong{overflow-wrap:anywhere;font-size:12px}.message-attachment small{color:var(--muted)}.message-attachment>div{display:flex;gap:18px}.message-attachment a{font-weight:600}.chat-tasks{flex:0 0 auto;max-height:160px;overflow:auto;margin:0 12px 10px;border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:10px}.chat-tasks-title{font-size:10px;color:var(--muted);margin-bottom:6px}.chat-task{display:flex;align-items:center;gap:8px;padding:7px 0;border-top:1px solid var(--line)}.chat-task>button:first-child{flex:1;text-align:left;min-width:0}.chat-task strong{font-size:12px;display:block;overflow-wrap:anywhere}.chat-task small{font-size:10px;display:block;color:var(--muted);margin-top:5px}.chat-task>button:last-child{min-height:38px;color:var(--green);font-size:11px;font-weight:700}.chat-task.is-overdue{border-left:3px solid #bf5268;padding-left:8px}@media(max-width:760px){.chat-tasks{max-height:120px}.message-attachment img{max-height:230px}.file-compose{margin:4px 0}.attach-button input{max-width:160px}}
.message-attachment>div{flex-wrap:wrap;align-items:center}.message-attachment [data-save-file]{color:var(--green);font-weight:600;padding:0;min-height:36px;text-align:left;text-decoration:underline}
