:root{color-scheme:light;--app-bg:#d7dbd8;--chrome:#f0f2f5;--panel:#ffffff;--panel-muted:#f7f8fa;--chat-bg:#efe7dc;--line:#d9dee4;--text:#111b21;--muted:#667781;--accent:#00a884;--accent-dark:#008069;--outgoing:#d9fdd3;--incoming:#ffffff;--danger:#c1362e;--shadow:0 18px 50px rgba(17,27,33,0.16)}*{box-sizing:border-box}body,html{height:100%}body,html{overflow:hidden}body{margin:0;background:linear-gradient(var(--accent-dark) 0 128px,transparent 128px),var(--app-bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}button,input,select,textarea{font:inherit}button{border:0;cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}input,select,textarea{width:100%;border:0;outline:0;color:var(--text)}textarea{min-height:112px;resize:vertical}.app-shell{width:min(1720px,calc(100vw - 32px));height:min(940px,calc(100vh - 32px));min-height:0;margin:16px auto;display:grid;grid-template-columns:420px minmax(0,1fr);overflow:hidden;background:var(--panel);box-shadow:var(--shadow)}.login-shell{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(var(--accent-dark) 0 34%,transparent 34%),var(--app-bg)}.login-panel{width:min(420px,100%);padding:32px;border-radius:8px;display:grid;grid-gap:18px;gap:18px;justify-items:center;background:var(--panel);box-shadow:var(--shadow);text-align:center}.login-panel>div:not(.brand-mark):not(.google-auth-area){display:grid;grid-gap:6px;gap:6px}.login-panel strong{font-size:24px}.login-panel span{color:var(--muted)}.login-form{width:100%;display:grid;grid-gap:14px;gap:14px;text-align:left}.login-form label{display:grid;grid-gap:6px;gap:6px}.login-form label span{font-size:12px;font-weight:700;color:var(--muted)}.login-form input{width:100%;height:42px;border:1px solid var(--border);border-radius:6px;padding:0 12px;color:var(--text);background:var(--panel)}.google-signin-btn,.login-submit{width:100%;justify-content:center}.google-signin-btn{max-width:320px;height:44px;padding:0 16px;border-radius:4px;border:1px solid #dadce0;background:white;color:#3c4043;font-size:14px;font-weight:500;letter-spacing:.01em;display:flex;align-items:center;gap:10px;cursor:pointer;transition:background .12s ease,box-shadow .12s ease}.google-signin-btn:hover:not(:disabled){background:#f8f9fa;box-shadow:0 1px 3px rgba(60,64,67,.18)}.google-signin-btn:disabled{opacity:.55}.google-auth-area{width:100%;display:grid;grid-gap:12px;gap:12px;justify-items:center}.auth-status{max-width:100%;text-align:center}.sidebar{min-width:0;min-height:0;height:100%;display:grid;grid-template-rows:auto auto auto minmax(0,1fr);border-right:1px solid var(--line);background:var(--panel);overflow:hidden}.chat-header,.sidebar-top{min-height:64px;padding:10px 16px;justify-content:space-between;gap:12px;background:var(--chrome)}.brand,.chat-actions,.chat-header,.chat-line,.chat-list-head,.chat-row,.composer,.contact,.message-time,.modal-actions,.modal-head,.pairing-form,.panel-title,.session-row,.sidebar-top,.top-tools{display:flex;align-items:center}.brand{min-width:0;gap:10px}.top-tools{flex-shrink:0;gap:8px}.brand-mark{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:white}.brand strong,.chat-list-head strong,.chat-main strong,.contact strong,.modal-head strong,.panel-title span{font-size:15px;font-weight:700}.brand span,.chat-line em,.chat-list-head span,.chat-preview,.contact span,.empty,.field span,.info-grid span,.modal-head span,.qr-panel span,.session-banner span,.session-meta em,.start-state span{color:var(--muted);font-size:13px}.brand>div:last-child,.chat-main,.contact>div,.session-meta{min-width:0;display:grid;grid-gap:2px;gap:2px}.icon-btn{width:38px;min-width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:transparent;color:#54656f}.icon-btn:hover{background:#e2e7ea}.icon-btn.solid{background:var(--accent);color:white}.session-panel{padding:14px;border-bottom:1px solid var(--line)}.chat-list-head,.panel-title{justify-content:space-between;gap:14px}.chat-list-head>div,.panel-title>div{min-width:0;display:grid;grid-gap:3px;gap:3px}.sidebar-section-body{display:flex;flex-direction:column;min-height:0;overflow:hidden;flex:1 1}.sidebar-section-body>.chat-list{flex:1 1}.module-section-head{display:flex;align-items:center;gap:8px;padding:10px 16px 6px;flex-shrink:0}.module-section-title{flex:1 1;text-transform:uppercase;letter-spacing:.6px}.module-section-count,.module-section-title{font-size:11px;font-weight:700;color:var(--muted)}.module-section-count{background:var(--chrome);padding:2px 7px;border-radius:99px;min-width:20px;text-align:center}.companies-section{flex-shrink:0;border-top:1px solid var(--line)}.companies-section .chat-list{max-height:180px;height:auto}.search-box{height:40px;margin-top:12px;border-radius:8px;padding:0 12px;display:flex;align-items:center;gap:10px;background:var(--chrome);color:var(--muted)}.search-box input{background:transparent}.session-list{max-height:210px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;display:grid;grid-gap:6px;gap:6px;margin-top:12px}.session-row{width:100%;min-height:58px;display:grid;grid-template-columns:minmax(0,1fr) 32px;grid-gap:8px;gap:8px}.session-card,.session-row{min-width:0;border-radius:8px;background:transparent}.session-card{flex:1 1;align-self:stretch;padding:8px;display:flex;align-items:center;gap:10px;color:var(--text);text-align:left}.chat-row.active,.chat-row:hover,.session-row.active,.session-row:hover{background:#f0f2f5}.avatar{width:48px;min-width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:#dfe5e7;color:#54656f;font-weight:800}.avatar.small{width:36px;min-width:36px;height:36px;font-size:12px}.session-meta{flex:1 1}.chat-main strong,.chat-preview,.session-meta em,.session-meta strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.state-dot{width:10px;height:10px;border-radius:50%;background:#aebac1}.state-dot[data-state=connected],.state-dot[data-state=open]{background:var(--accent)}.state-dot[data-state=close],.state-dot[data-state=disabled],.state-dot[data-state=disconnected],.state-dot[data-state=logged_out]{background:var(--danger)}.state-dot[data-state=archived]{background:#8a9297}.chat-list-head{padding:12px 16px 0}.chat-search{margin:10px 16px 8px}.chat-list{min-height:0;height:100%;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable}.chat-row{position:relative;width:100%;min-width:0;display:flex;flex-direction:column;align-items:stretch;background:transparent;color:var(--text);text-align:left;cursor:pointer}.chat-row:after{content:"";position:absolute;right:0;bottom:0;left:76px;height:1px;background:#edf0f2}.chat-row-body{display:flex;align-items:center;gap:10px;padding:10px 16px;min-height:64px}.chat-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:4px;padding:0 10px;max-height:0;overflow:hidden;transition:max-height .15s ease,padding-bottom .12s ease}.chat-row:hover .chat-row-actions{max-height:38px;padding-bottom:6px}.chat-main{flex:1 1;min-width:0;overflow:hidden}.chat-line{display:grid;grid-template-columns:minmax(0,1fr) max-content;grid-gap:8px;gap:8px}.chat-line,.chat-line strong,.chat-time{min-width:0}.chat-time{display:inline-flex;align-items:center;justify-content:flex-end;gap:6px}.chat-time em{min-width:max-content;font-style:normal}.chat-preview{display:block}.unread{min-width:22px;height:22px;padding:0 6px;display:grid;place-items:center;background:var(--accent);color:white}.automation-chip,.unread{border-radius:999px;font-size:12px;font-weight:800}.automation-chip{width:34px;min-width:34px;height:30px;padding:0;display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid transparent;letter-spacing:0;white-space:nowrap;flex-shrink:0}.automation-chip span{display:none}.automation-chip.active{border-color:rgba(0,128,105,.26);background:#d6f6ec;color:var(--accent-dark)}.automation-chip.manual{border-color:#d7dde2;background:#f7f8fa;color:#667781}.automation-chip:hover{box-shadow:inset 0 0 0 1px rgba(17,27,33,.08)}.row-action-btn{width:32px;min-width:32px;height:30px;border-radius:50%;display:grid;place-items:center;background:transparent;color:var(--muted);opacity:.68}.mobile-back-btn,.mobile-nav-bar{display:none}.settings-user,.share-form,.share-row{display:flex;align-items:center}.settings-user{gap:12px}.settings-user img{width:44px;min-width:44px;height:44px;border-radius:50%}.settings-user>div{min-width:0;flex:1 1;display:grid;grid-gap:2px;gap:2px}.settings-user span,.share-row em{color:var(--muted);font-size:13px;font-style:normal}.personality-panel,.share-panel{display:grid;grid-gap:12px;gap:12px}.personality-panel{padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--panel-muted)}.share-form{gap:8px}.share-form input,.share-form select{height:40px;border-radius:8px;padding:0 12px;background:var(--chrome)}.share-form select{max-width:180px}.share-list{display:grid;grid-gap:6px;gap:6px}.share-row{min-width:0;justify-content:space-between;gap:10px;padding:10px;border:1px solid var(--line);border-radius:8px}.share-row>span{min-width:0;display:grid;grid-gap:2px;gap:2px}.share-row em,.share-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.session-row.active .row-action-btn,.session-row:hover .row-action-btn{opacity:1}.row-action-btn:hover{background:#dfe5e7;color:var(--text)}.row-action-btn.danger:hover{background:#ffe3e0;color:var(--danger)}.chat-pane{min-width:0;min-height:0;height:100%;display:grid;grid-template-rows:auto auto auto minmax(0,1fr) auto;background:var(--chat-bg);overflow:hidden}.automation-profile-bar{min-height:0;padding:4px 14px;display:flex;align-items:center;gap:5px;flex-wrap:nowrap;background:#edfaf3;border-bottom:1px solid rgba(0,128,105,.14);overflow:hidden}.profile-tag{flex-shrink:1;min-width:0;max-width:min(42%,360px);display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border-radius:999px;font-size:12px;overflow:hidden}.profile-tag strong{flex-shrink:0;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.profile-tag em{flex-shrink:0;font-style:normal;font-weight:800;font-size:13px}.profile-tag span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.profile-tag-bot{background:rgba(0,128,105,.1);color:var(--accent-dark);border:1px solid rgba(0,128,105,.18)}.profile-tag-receiver{background:rgba(99,91,255,.08);color:#4338ca;border:1px solid rgba(99,91,255,.18)}.profile-divider{width:1px;height:20px;flex-shrink:0;background:rgba(0,128,105,.18)}.profile-bar-edit{margin-left:auto;flex-shrink:0;display:inline-flex;align-items:center;gap:4px}.profile-bar-edit .icon-btn{width:30px;min-width:30px;height:30px}.contact{min-width:0;gap:12px}.chat-actions{min-width:0;max-width:min(560px,60%);justify-content:flex-end;overflow:hidden;gap:8px}.automation-header{flex:0 1 172px;min-width:138px;max-width:190px;height:44px;padding:0 12px 0 8px;border-radius:999px;display:inline-flex;align-items:center;gap:9px;border:1px solid transparent;text-align:left}.automation-header-icon{width:30px;min-width:30px;height:30px;border-radius:50%;display:grid;place-items:center}.automation-header>span:last-child{flex:1 1;min-width:0;display:grid;grid-gap:1px;gap:1px}.automation-header em,.automation-header strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.automation-header strong{font-size:13px;font-weight:800}.automation-header em{color:inherit;font-size:11px;font-style:normal;opacity:.78}.automation-header.active{border-color:rgba(0,128,105,.28);background:#d6f6ec;color:var(--accent-dark)}.automation-header.active .automation-header-icon{background:var(--accent);color:white}.automation-header.manual{border-color:#d7dde2;background:#ffffff;color:#54656f}.automation-header.manual .automation-header-icon{background:#edf1f3;color:#667781}.automation-header:hover:not(:disabled){box-shadow:inset 0 0 0 1px rgba(17,27,33,.08)}.danger-action,.pill,.primary-action,.soft-action{min-height:38px;padding:0 14px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:700;white-space:nowrap}.pill{background:transparent;color:#54656f}.pill:hover{background:#e2e7ea}.pill.primary,.primary-action{background:var(--accent);color:white}.soft-action{background:var(--chrome);color:var(--text)}.danger-action{background:var(--danger);color:white}.session-banner{min-height:46px;padding:8px 18px;display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fff7df;border-bottom:1px solid rgba(17,27,33,.08)}.session-banner>div{min-width:0;display:grid;grid-gap:2px;gap:2px}.session-banner span,.session-banner strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.status-pill{min-width:max-content;padding:5px 10px;border-radius:999px;background:#eef0f1;color:#54656f;font-size:12px;font-weight:800}.status-pill[data-state=connected],.status-pill[data-state=open]{background:#d6f6ec;color:#05785f}.status-pill[data-state=close],.status-pill[data-state=disabled],.status-pill[data-state=logged_out]{background:#ffe3e0;color:var(--danger)}.status-pill[data-state=archived]{background:#eef0f1;color:#54656f}.message-space{grid-row:4;position:relative;min-height:0;height:100%;margin:0;padding:24px 8%;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;list-style:none;background:linear-gradient(rgba(239,231,220,.9),rgba(239,231,220,.9)),radial-gradient(circle at 20% 20%,rgba(0,0,0,.045) 0 1px,transparent 1px);background-size:auto,22px 22px}.message-row{display:flex;margin:6px 0}.message-row.outbound{justify-content:flex-end}.message-bubble{position:relative;max-width:min(680px,76%);padding:8px 10px 6px;border-radius:8px;background:var(--incoming);box-shadow:0 1px 1px rgba(17,27,33,.13)}.message-row.outbound .message-bubble{background:var(--outgoing)}.message-info-btn{position:absolute;top:4px;right:5px;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:rgba(17,27,33,.06);color:var(--muted);opacity:0}.message-bubble:hover .message-info-btn{opacity:1}.message-info-btn:hover{background:rgba(17,27,33,.14);color:var(--text)}.message-bubble strong{display:block;margin-bottom:4px;color:var(--accent-dark);font-size:12px}.message-bubble p{margin:0;line-height:1.42;white-space:pre-wrap;overflow-wrap:anywhere}.message-time{justify-content:flex-end;gap:3px;margin-top:4px;color:var(--muted);font-size:11px}.message-image{width:min(320px,100%);max-height:360px;object-fit:cover}.message-image,.message-video{display:block;border-radius:6px;margin-bottom:6px}.message-video{width:min(360px,100%);max-height:420px;background:#111b21}.message-audio{display:flex;align-items:center;gap:10px;min-width:min(320px,100%);max-width:100%;padding:8px 10px;border-radius:8px;margin-bottom:6px;background:rgba(17,27,33,.06);color:var(--accent-dark)}.message-audio audio{width:260px;max-width:calc(100vw - 142px);height:36px}.link-preview-card{display:grid;grid-template-columns:62px minmax(0,1fr);grid-gap:10px;gap:10px;width:min(340px,100%);min-height:70px;padding:8px;border-left:3px solid var(--accent);border-radius:6px;margin-bottom:6px;background:rgba(17,27,33,.06);color:var(--text);text-decoration:none}.link-preview-card img,.link-preview-icon{width:62px;height:54px;border-radius:5px;object-fit:cover;background:rgba(17,27,33,.08)}.link-preview-icon{display:grid;place-items:center;color:var(--accent-dark)}.link-preview-card span:last-child{min-width:0;display:grid;align-content:center;grid-gap:2px;gap:2px}.link-preview-card em,.link-preview-card small,.link-preview-card strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.link-preview-card strong{margin:0;color:var(--text);font-size:13px}.link-preview-card em,.link-preview-card small{color:var(--muted);font-size:12px;font-style:normal}.file-card{display:flex;align-items:center;gap:10px;min-width:220px;padding:12px;border-radius:8px;background:rgba(17,27,33,.06);color:var(--text);text-decoration:none}.start-state{min-height:100%;display:grid;place-items:center;align-content:center;grid-gap:10px;gap:10px;color:var(--muted);text-align:center}.start-state strong{color:var(--text);font-size:22px}.composer{grid-row:5;min-height:66px;padding:10px 16px;gap:10px;background:var(--chrome)}.message-input,.recipient{height:44px;border-radius:22px;background:white;padding:0 16px}.recipient{max-width:240px}.message-input{flex:1 1;min-width:120px}.attach-btn,.send-btn{width:44px;min-width:44px;height:44px;border-radius:50%;display:grid;place-items:center}.attach-btn{color:#54656f;cursor:pointer}.attach-btn:hover{background:#e2e7ea}.attach-btn input{display:none}.send-btn{background:var(--accent);color:white}.empty{padding:18px;text-align:center}.modal-backdrop{position:fixed;inset:0;z-index:20;display:grid;place-items:center;padding:16px;background:rgba(17,27,33,.38)}.modal{width:min(540px,100%);max-height:min(760px,calc(100vh - 32px));overflow-y:auto;overflow-x:hidden;border-radius:8px;background:white;box-shadow:var(--shadow)}.modal-head{justify-content:space-between;gap:16px;padding:16px 18px;background:var(--chrome)}.modal-head>div{min-width:0;display:grid;grid-gap:2px;gap:2px}.modal-body{display:grid;grid-gap:16px;gap:16px;padding:18px}.field{display:grid;grid-gap:7px;gap:7px}.field input,.field select,.field textarea,.pairing-form input{border:1px solid var(--line);border-radius:8px;background:white;padding:12px}.field input:focus,.field select:focus,.field textarea:focus,.pairing-form input:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(0,168,132,.16)}.brain-create{display:grid;grid-gap:10px;gap:10px;border:1px solid var(--line)}.automation-top,.brain-create{padding:12px;border-radius:8px;background:var(--panel-muted)}.automation-top{min-height:74px;display:flex;align-items:center;gap:14px}.automation-orb{width:48px;min-width:48px;height:48px;border-radius:50%;display:grid;place-items:center}.automation-orb.active{background:var(--accent);color:white;box-shadow:0 0 0 6px rgba(0,168,132,.12)}.automation-orb.manual{background:#e8edf0;color:#667781}.automation-top>div{min-width:0;flex:1 1;display:grid;grid-gap:3px;gap:3px}.automation-top span,.automation-top strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.automation-top span{color:var(--muted);font-size:13px}.switch-control{position:relative;width:48px;min-width:48px;height:28px}.switch-control input{position:absolute;inset:0;opacity:0;cursor:pointer}.switch-control span{position:absolute;inset:0;border-radius:999px;background:#c8d0d5;transition:background .16s ease}.switch-control span:after{content:"";position:absolute;top:4px;left:4px;width:20px;height:20px;border-radius:50%;background:white;box-shadow:0 1px 3px rgba(17,27,33,.24);transition:transform .16s ease}.switch-control input:checked+span{background:var(--accent)}.switch-control input:checked+span:after{transform:translateX(20px)}.form-error{padding:10px 12px;border-radius:8px;background:#ffe3e0;color:var(--danger);font-size:13px;font-weight:700}.info-grid{display:grid;grid-gap:8px;gap:8px;padding:12px;border-radius:8px;background:var(--panel-muted)}.info-grid span{display:flex;justify-content:space-between;gap:14px}.info-grid strong{min-width:0;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.link-modal{grid-template-columns:180px minmax(0,1fr);align-items:start}.qr-panel{display:grid;justify-items:center;grid-gap:12px;gap:12px;color:var(--muted)}.qr-panel img,.qr-panel svg{width:164px;height:164px;border-radius:8px;object-fit:contain;background:white;border:1px solid var(--line)}.pairing-form{grid-column:1/-1;gap:10px}.pairing-form input{flex:1 1}.modal-actions{justify-content:flex-end;flex-wrap:wrap;gap:10px}.modal-actions>button{flex:1 1 148px;min-width:0}.detail-body{gap:14px}.detail-grid span{align-items:start}.detail-grid strong{max-width:62%;white-space:normal;overflow-wrap:anywhere;text-align:right}.hint-box{display:grid;grid-gap:6px;gap:6px;padding:12px;border-radius:8px;background:#fff7df;color:var(--text)}.hint-box p{margin:0;color:var(--muted);font-size:13px;line-height:1.4}.raw-json{max-height:260px;margin:0;overflow:auto;padding:12px;border-radius:8px;background:#111b21;color:#d9fdd3;font-size:12px;line-height:1.45}.prompt-preview-body{gap:20px}.prompt-block{display:grid;grid-gap:10px;gap:10px}.prompt-block-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.prompt-pre{max-height:340px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.55}.run-row{display:grid;grid-gap:6px;gap:6px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--panel-muted)}.run-row-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.run-status{padding:2px 8px;border-radius:999px;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.run-status-queued{background:#d6f6ec;color:#05785f}.run-status-running{background:#fff7df;color:#8a6400}.run-status-failed{background:#ffe3e0;color:var(--danger)}.run-time{color:var(--muted);font-size:12px}.run-error{padding:6px 8px;border-radius:6px;background:#ffe3e0;color:var(--danger);font-size:12px}.run-error,.run-response{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.run-response{font-size:13px;line-height:1.45;color:var(--text)}@media (max-width:980px){.app-shell,body{overflow:hidden}.app-shell{display:block;position:relative;width:100%;height:100vh;height:100dvh;margin:0;border-radius:0;box-shadow:none}.sidebar{position:absolute;inset:0;height:100%;max-height:none;border-right:none;border-bottom:none;z-index:2;transition:transform .28s cubic-bezier(.4,0,.2,1);overflow-y:auto}.app-shell.mobile-detail .sidebar{transform:translateX(-100%);pointer-events:none}.chat-pane,.module-pane{position:absolute;inset:0;height:100%;transform:translateX(100%);transition:transform .28s cubic-bezier(.4,0,.2,1);z-index:1}.app-shell.mobile-detail .chat-pane,.app-shell.mobile-detail .module-pane{transform:translateX(0)}.mobile-back-btn{display:grid!important;flex-shrink:0}.mobile-nav-bar{display:flex;align-items:center;gap:10px;padding:8px 12px;min-height:50px;background:var(--chrome);border-bottom:1px solid var(--line);flex-shrink:0}.mobile-nav-bar strong{font-size:15px;font-weight:600}.sidebar-top{min-height:50px;padding:8px 12px}.section-tabs button{padding:7px 4px;font-size:10px}.chat-list-head{padding:8px 12px 0}.chat-search{height:34px;margin:6px 12px 4px}.chat-row-body{min-height:54px;padding:8px 12px}.chat-row-actions{padding-right:8px;padding-left:8px}.avatar{width:40px;min-width:40px;height:40px}.module-section-head{padding:7px 12px 4px}.chat-header{min-height:50px;padding:8px 12px}.chat-actions{max-width:52%;gap:4px}.chat-actions .pill{width:38px;min-width:38px;padding:0;font-size:0}.automation-header{width:44px;min-width:44px;padding:0;justify-content:center}.automation-header>span:last-child{display:none}.message-space{padding:14px 12px}.message-bubble{max-width:88%}.recipient{display:none}}@media (max-width:640px){.chat-header,.composer,.sidebar-top{padding:8px 10px}.brand strong,.contact strong{font-size:14px}.automation-chip{width:34px;min-width:34px;padding:0}.automation-chip span{display:none}.link-modal{grid-template-columns:1fr}.pairing-form{display:grid}}.section-tabs-row{display:flex;align-items:stretch;border-bottom:1px solid var(--line);background:var(--chrome);flex-shrink:0}.section-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:var(--chrome);flex:1 1}.new-chat-btn{width:36px;min-width:36px;display:grid;place-items:center;background:var(--accent);color:white;flex-shrink:0;border-left:1px solid rgba(255,255,255,.18)}.new-chat-btn:hover:not(:disabled){background:var(--accent-dark)}.new-chat-btn:disabled{opacity:.38}.section-tabs button{display:flex;align-items:center;justify-content:center;gap:5px;padding:9px 4px;font-size:11px;font-weight:500;color:var(--muted);background:transparent;border-bottom:2px solid transparent;transition:color .15s,border-color .15s}.section-tabs button:hover:not(:disabled){color:var(--text)}.section-tabs button.active{color:var(--accent-dark);border-bottom-color:var(--accent-dark)}.section-tabs button:disabled{opacity:.35}.workspace-pane{display:grid;grid-template-rows:auto minmax(0,1fr);background:var(--panel-muted)}.workspace-list{min-height:0;overflow:auto;padding:18px;display:grid;align-content:start;grid-gap:12px;gap:12px}.workspace-card{display:grid;grid-gap:10px;gap:10px;padding:14px;border:1px solid var(--line);border-radius:8px;background:var(--panel)}.inline-actions,.mission-progress-list,.tag-row,.workspace-card-head{display:flex;align-items:center}.workspace-card-head{justify-content:space-between;gap:12px}.workspace-card-head>div:first-child{min-width:0;display:grid;grid-gap:3px;gap:3px}.workspace-card p,.workspace-card-head span,.workspace-card-head strong{min-width:0;overflow-wrap:anywhere}.mission-progress-list,.workspace-card p,.workspace-card-head span{color:var(--muted);font-size:13px}.workspace-card p{margin:0;line-height:1.5}.inline-actions{flex-shrink:0;gap:8px}.mission-progress-list,.tag-row{flex-wrap:wrap;gap:6px}.mission-progress-list span,.tag-row span{padding:5px 8px;border-radius:999px;background:#eef0f1;color:#54656f;font-size:12px;font-weight:700}.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:10px;gap:10px}.mission-attach{width:max-content;min-width:0;height:38px;padding:0 12px;border-radius:999px;display:inline-flex;gap:8px;background:var(--chrome)}.resource-list{display:grid;grid-gap:6px;gap:6px}.resource-row{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--panel)}.resource-row.pending{background:#f7f8fa}.resource-row>span{min-width:0;flex:1 1;display:grid;grid-gap:2px;gap:2px}.resource-row em,.resource-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.resource-row em{color:var(--muted);font-size:12px;font-style:normal}.section-sub-tabs{display:flex;gap:2px;padding:8px 10px 0;border-bottom:1px solid var(--line);flex-shrink:0}.section-sub-tabs button{padding:6px 12px;border-radius:6px 6px 0 0;font-size:12px;color:var(--muted);background:transparent;border-bottom:2px solid transparent}.section-sub-tabs button.active{color:var(--accent-dark);background:var(--panel-muted);border-bottom-color:var(--accent-dark)}.module-pane{display:flex;flex-direction:column;overflow:hidden;background:var(--panel-muted)}.module-empty{flex:1 1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:var(--muted)}.module-empty svg{opacity:.25}.module-detail{display:flex;flex-direction:column;height:100%;overflow:hidden}.module-detail-head{display:flex;align-items:center;justify-content:space-between;padding:20px 24px 16px;background:var(--panel);border-bottom:1px solid var(--line);flex-shrink:0}.contact-hero{display:flex;align-items:center;gap:14px}.contact-hero div{display:flex;flex-direction:column;gap:2px}.contact-hero strong{font-size:16px}.contact-hero em,.contact-hero span{font-size:13px;color:var(--muted)}.avatar.large{width:52px;height:52px;min-width:52px;font-size:18px;border-radius:50%;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:600}.module-detail-actions{display:flex;align-items:center;gap:8px}.module-detail-body{flex:1 1;overflow-y:auto;padding:20px 24px;display:flex;flex-direction:column;gap:20px}.detail-section{display:flex;flex-direction:column;gap:8px}.detail-section>strong{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}.detail-section>p,.detail-section>span{font-size:14px}.detail-section-head{display:flex;align-items:center;justify-content:space-between}.detail-section-head strong{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}.soft-action.small{padding:4px 10px;font-size:12px;border-radius:6px;background:var(--chrome);color:var(--text)}.soft-action.small.danger{color:var(--danger)}.company-chips{display:flex;flex-direction:column;gap:8px}.company-chip{display:flex;align-items:center;gap:10px;padding:10px 14px;background:var(--panel);border:1px solid var(--line);border-radius:8px;font-size:13px}.company-chip div{display:flex;flex-direction:column;gap:2px}.company-chip strong{font-size:13px}.company-chip em,.company-chip span{font-size:12px;color:var(--muted)}.number-list{display:flex;flex-direction:column;gap:6px}.number-row{display:flex;align-items:center;gap:8px;padding:6px 10px;border-radius:8px;background:var(--surface);border:1px solid var(--line);font-size:13px}.number-row.primary{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 8%,transparent)}.number-row svg{color:var(--muted);flex-shrink:0}.number-row.primary svg:first-child{color:var(--accent)}.number-value{font-family:monospace;font-size:13px;flex:1 1}.number-label{font-size:11px;color:var(--muted)}.primary-star{color:var(--accent)!important}.number-actions{display:flex;align-items:center;gap:4px;margin-left:auto}.icon-btn.danger.small{width:24px;height:24px;padding:0;color:var(--danger,#e05)}.count{font-weight:400}.count,.muted-tag{font-size:11px;color:var(--muted);font-style:normal}.muted-tag{background:var(--chrome);padding:1px 6px;border-radius:4px;margin-left:4px}.col-dashboard{display:grid;grid-template-columns:1fr 1fr;grid-gap:1px;gap:1px;background:var(--line);border-bottom:1px solid var(--line);flex-shrink:0}.col-stat{display:flex;flex-direction:column;gap:2px;padding:10px 14px;background:var(--panel)}.col-stat span{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}.col-stat strong{font-size:15px;font-weight:700}.col-stat.danger strong{color:var(--danger)}.stage-dot{width:8px;height:8px;min-width:8px;border-radius:50%;flex-shrink:0}.stage-dot.stage-pre_due{background:var(--muted)}.stage-dot.stage-soft{background:#f5a623}.stage-dot.stage-firm{background:#e07b00}.stage-dot.stage-urgent{background:var(--danger)}.stage-dot.stage-final{background:#7c1111}.stage-badge{font-size:11px;font-weight:600;padding:3px 8px;border-radius:5px;text-transform:capitalize}.stage-badge.stage-pre_due{background:var(--chrome);color:var(--muted)}.stage-badge.stage-soft{background:#fff3cd;color:#7a4f00}.stage-badge.stage-firm{background:#ffe0b2;color:#7a3800}.stage-badge.stage-urgent{background:#fde8e8;color:var(--danger)}.stage-badge.stage-final{background:#7c1111;color:#fff}.stage-avatar{color:white}.stage-avatar.stage-pre_due{background:#9aabba}.stage-avatar.stage-soft{background:#f5a623}.stage-avatar.stage-firm{background:#e07b00}.stage-avatar.stage-urgent{background:var(--danger)}.stage-avatar.stage-final{background:#7c1111}.status-select{font-size:12px;padding:4px 8px;border-radius:6px;border:1px solid var(--line);background:var(--chrome);color:var(--text);cursor:pointer}.payment-list{display:flex;flex-direction:column;gap:8px}.payment-row{display:flex;align-items:center;gap:10px;font-size:13px;padding:8px 12px;background:var(--panel);border:1px solid var(--line);border-radius:8px;flex-wrap:wrap}.payment-row em{color:var(--muted);font-size:12px}.check-icon{color:var(--accent)}.payment-balance{display:flex;justify-content:space-between;padding:8px 12px;background:var(--panel-muted);border-radius:6px;font-size:13px;margin-top:4px}.payment-balance strong{color:var(--muted)}.promise-dot{width:8px;height:8px;min-width:8px;border-radius:50%}.promise-dot.pending{background:var(--muted)}.promise-dot.kept{background:var(--accent)}.promise-dot.broken{background:var(--danger)}.promise-actions{display:flex;gap:6px;margin-left:auto}.empty.small{font-size:12px;padding:8px 0;color:var(--muted)}.scan-chip{width:34px;min-width:34px;height:30px;padding:0 10px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;gap:5px;border:1px solid transparent;font-size:12px;font-weight:800;letter-spacing:0;white-space:nowrap;flex-shrink:0;transition:box-shadow .15s}.scan-chip span{display:none}.scan-chip.active{border-color:rgba(79,70,229,.28);background:#ede9fe;color:#4338ca}.scan-chip.manual{border-color:#d7dde2;background:#f7f8fa;color:#667781}.scan-chip:hover{box-shadow:inset 0 0 0 1px rgba(17,27,33,.08)}.group-monitor-bar{min-height:0;padding:5px 14px;display:flex;align-items:center;gap:8px;background:#f0eeff;border-bottom:1px solid rgba(79,70,229,.14);overflow:hidden;flex-shrink:0}.monitor-status-dot{width:8px;height:8px;min-width:8px;border-radius:50%;flex-shrink:0}.monitor-status-dot.active{background:#4f46e5;box-shadow:0 0 0 3px rgba(79,70,229,.18)}.monitor-status-dot.inactive{background:var(--muted)}.monitor-bar-label{flex:1 1;min-width:0;display:flex;align-items:center;gap:6px;font-size:12px;overflow:hidden}.monitor-bar-label strong{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:#4338ca;flex-shrink:0}.monitor-bar-label em{font-style:normal;color:var(--muted);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:flex;align-items:center;gap:5px}.score-badge{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;font-size:12px;font-weight:800;flex-shrink:0;line-height:1}.score-low{background:#e8f5e9;color:#2e7d32}.score-medium{background:#fff8e1;color:#f57f17}.score-high{background:#fff3e0;color:#e65100}.score-critical{background:#fce4e4;color:var(--danger)}.gm-modal{display:flex;flex-direction:column;gap:0}.gm-tabs{display:flex;gap:0;border-bottom:1px solid var(--line);margin:0 -20px;padding:0 20px;flex-shrink:0}.gm-tabs button{padding:9px 14px;font-size:13px;font-weight:600;color:var(--muted);background:transparent;border-bottom:2px solid transparent;border-radius:0;display:flex;align-items:center;gap:6px;transition:color .15s,border-color .15s}.gm-tabs button.active{color:#4338ca;border-bottom-color:#4338ca}.gm-tabs button:hover:not(.active){color:var(--text)}.gm-tab-badge{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:999px;font-size:11px;font-weight:700;background:#ede9fe;color:#4338ca}.gm-tab-body{display:flex;flex-direction:column;gap:12px;padding-top:14px;flex:1 1;min-height:0;overflow-y:auto}.gm-add-recipient{display:flex;flex-direction:column;gap:10px;padding:14px;background:var(--panel-muted);border:1px solid var(--line);border-radius:8px}.gm-recipient-form{display:grid;grid-template-columns:1fr 1fr;grid-gap:10px;gap:10px}.gm-recipient-form .field:last-child,.gm-recipient-form button{grid-column:1/-1}.score-input-row{display:flex;align-items:center;gap:10px}.score-input-row input[type=range]{flex:1 1;width:auto;accent-color:#4338ca}.field-hint{font-size:11px;color:var(--muted);margin-top:2px}.gm-recipient-list{display:flex;flex-direction:column;gap:6px}.gm-recipient-list strong{font-size:12px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;padding-bottom:2px}.recipient-row{display:flex;align-items:center;gap:10px;padding:8px 12px;background:var(--panel);border:1px solid var(--line);border-radius:8px;font-size:13px}.recipient-info{flex:1 1;min-width:0;display:flex;flex-direction:column;gap:1px}.recipient-info strong{font-size:13px;font-weight:600}.recipient-info em{font-style:normal;font-size:11px;color:var(--muted)}.gm-run-row{display:flex;flex-direction:column;gap:6px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;font-size:13px;background:var(--panel)}.gm-run-row.triggered{border-color:rgba(79,70,229,.28);background:#f8f7ff}.gm-run-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.run-meta{font-size:11px;color:var(--muted);margin-left:auto}.run-status-skipped{background:#f0f2f5;color:var(--muted)}.run-status-completed{background:#d6f6ec;color:#05785f}.gm-actions{flex-wrap:wrap;gap:8px}.gm-run-range-panel{display:grid;grid-gap:10px;gap:10px;padding:12px;border:1px solid rgba(79,70,229,.22);border-radius:8px;background:#f8f7ff}.gm-run-range-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.gm-run-range-head strong{font-size:13px}.gm-run-range-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:10px;gap:10px}.gm-run-range-fields .field{margin:0}.gm-run-row{cursor:pointer}.gm-run-row.expanded{border-color:rgba(79,70,229,.4)}.run-expand-icon{margin-left:auto;color:var(--muted);display:flex;align-items:center}.run-summary-preview{margin:0;font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gm-run-detail{gap:10px;padding-top:6px;border-top:1px solid var(--line)}.gm-run-detail,.gm-run-period{display:flex;flex-direction:column}.gm-run-period{gap:2px;font-size:12px;color:var(--muted)}.gm-run-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));grid-gap:8px;gap:8px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--bg)}.gm-run-facts>div{min-width:0}.gm-run-facts span:last-child{display:block;font-size:12px;color:var(--text);overflow-wrap:anywhere}.gm-detail-label{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);display:block;margin-bottom:4px}.gm-run-section{display:flex;flex-direction:column;gap:4px}.gm-run-pre{max-height:240px;margin:0;overflow:auto;padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--text);font-size:12px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}.gm-notification-sent{display:flex;align-items:flex-start;gap:6px;font-size:12px;padding:6px 0 0}.gm-notification-sent>svg{flex-shrink:0;margin-top:3px;color:var(--muted)}.notif-body{display:flex;flex-direction:column;gap:3px;flex:1 1}.notif-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.notif-meta strong{color:var(--text);font-size:12px}.notif-sent-at{font-size:11px;color:var(--muted)}.notif-message{margin:0;font-size:13px;line-height:1.45;color:var(--text);white-space:pre-wrap;overflow-wrap:anywhere;background:var(--bg);border-radius:6px;padding:6px 8px}.search-bar{display:flex;align-items:center;gap:6px;background:var(--surface);border:1px solid var(--border);border-radius:6px;padding:6px 10px;margin-bottom:10px}.search-bar svg{color:var(--text-muted);flex-shrink:0}.search-bar input{flex:1 1;background:transparent;border:none;outline:none;font-size:.85rem;color:var(--text)}.search-bar input::placeholder{color:var(--text-muted)}.search-bar .icon-btn{color:var(--text-muted);padding:0}.blacklist-list{display:flex;flex-direction:column;gap:8px}.blacklist-entry{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--panel)}.blacklist-entry-info{display:flex;flex-direction:column;gap:2px;flex:1 1;min-width:0}.blacklist-jid{font-size:13px;font-weight:600;color:var(--text)}.blacklist-jid,.blacklist-reason{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.blacklist-reason{font-size:12px;color:var(--muted)}.blacklist-date{font-size:11px;color:var(--muted)}.gm-alert-block{display:flex;flex-direction:column;gap:8px;padding:10px 12px;border:1px solid rgba(79,70,229,.2);border-radius:8px;background:#f8f7ff}.gm-alert-header{display:flex;align-items:center;gap:8px}.notif-media-badge{font-size:11px;background:#e0e7ff;color:#4338ca;border-radius:999px;padding:1px 7px;font-weight:600}@media (max-width:760px){.gm-run-range-fields{grid-template-columns:1fr}.gm-run-range-head{align-items:stretch;flex-direction:column}}.blacklist-remove{flex-shrink:0;display:flex;align-items:center;gap:4px;font-size:12px;padding:4px 10px}@media (min-width:520px){.scan-chip{width:auto;padding:0 10px}.scan-chip span{display:inline}}@media (max-width:640px){.scan-chip{width:34px;min-width:34px;padding:0}.scan-chip span{display:none}.gm-recipient-form{grid-template-columns:1fr}.gm-tabs button{padding:8px 10px;font-size:12px}.group-monitor-bar{padding:5px 10px}}