/* Momo Desk — restrained, native-feeling workspace. No blur or GPU effects. */
:root{color-scheme:light;--bg:#f7f8fc;--surface:#fff;--text:#252a3c;--muted:#777e91;--subtle:#a2a8b8;--line:#e9ecf3;--line-strong:#dce1ed;--accent:#5865df;--accent-soft:#eef0ff;--accent-ink:#4956c9;--green:#269b76;--danger:#d95665;--warning:#b98b35;--radius:12px;--shadow:0 12px 48px rgba(24,36,67,.12)}
*{box-sizing:border-box}html,body{height:100%;margin:0}body{overflow:hidden;background:var(--bg);color:var(--text);font:13px/1.5 -apple-system,BlinkMacSystemFont,"SF Pro Text","PingFang SC","Microsoft YaHei",sans-serif;-webkit-font-smoothing:antialiased}h1,h2,h3,p{margin:0}button,input,textarea,select{font:inherit}button,input,select,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.42}button,summary{touch-action:manipulation}button:focus-visible,summary:focus-visible{outline:3px solid #cbd1ff;outline-offset:2px}a{color:var(--accent)}::selection{background:#dde3ff}svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icon-sprite{position:absolute;width:0;height:0;overflow:hidden}.hidden,[hidden]{display:none!important}.sr-only{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-thumb{background:#d9deea;border-radius:6px}::-webkit-scrollbar-track{background:transparent}
/* Global shell */
.app-header{height:66px;display:flex;align-items:center;gap:32px;padding:0 24px;background:var(--surface);border-bottom:1px solid var(--line);position:relative;z-index:8}.brand{display:flex;gap:10px;align-items:center;min-width:212px}.brand-mark{width:34px;height:34px;border-radius:10px;background:var(--accent);color:white;display:grid;place-items:center}.brand-mark svg{width:26px;height:26px;stroke:none}.brand-copy{display:flex;align-items:baseline;gap:9px}.brand-copy h1{font-size:17px;letter-spacing:-.5px;font-weight:700}.brand-copy>span{font-size:10px;color:var(--muted);padding-left:9px;border-left:1px solid var(--line-strong)}.header-center{display:flex;align-items:center;gap:13px;font-size:12px}.header-center strong{font-weight:550}.breadcrumb,.slash{color:var(--muted)}.slash{color:#c5cbd8}.header-actions{display:flex;align-items:center;gap:10px;margin-left:auto}.connection-status{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--muted);margin-right:8px}.connection-status i{width:6px;height:6px;border-radius:50%;background:#b0b6c3}.connection-status.connected{color:#638773}.connection-status.connected i{background:#4fa782}.connection-status.error i{background:var(--danger)}.admin-avatar{margin-left:6px;display:grid;place-items:center;width:29px;height:29px;border-radius:50%;background:#e8edf8;color:#5b6d8e;font-size:11px;font-weight:650}.notice{position:absolute;top:74px;left:50%;transform:translateX(-50%);max-width:min(640px,75vw);padding:10px 18px;background:#fff;border:1px solid var(--line);box-shadow:0 5px 20px rgba(32,42,70,.1);border-radius:10px;z-index:80;font-size:12px}.notice:empty{display:none}.notice.error{color:#ad4251;border-color:#f0d5da;background:#fffafb}main{height:calc(100% - 66px)}.workspace{display:grid;grid-template-columns:244px 294px minmax(340px,1fr);height:100%;overflow:hidden}.workspace>aside,.workspace>section,.workspace>article{min-width:0;min-height:0}.account-sidebar{display:flex;flex-direction:column;background:#f6f7fb;border-right:1px solid var(--line)}.conversation-pane{display:flex;flex-direction:column;background:#fff;border-right:1px solid var(--line)}.chat-room{display:flex;flex-direction:column;background:#fafbfe}
/* Shared controls */
button{border:1px solid var(--line-strong);border-radius:8px;background:#fff;color:#555d73;padding:7px 12px;font-weight:500;transition:background .12s,color .12s,border-color .12s}button:hover{background:#f3f5fa;color:var(--text);border-color:#cdd4e2}.primary{background:var(--accent);color:#fff;border-color:var(--accent)}.primary:hover{background:#4855d1;border-color:#4855d1;color:#fff}.danger{color:#c45261}.danger:hover{background:#fff2f4;border-color:#edc6cd}.icon-button{display:inline-flex;justify-content:center;align-items:center;width:30px;height:30px;padding:0;border:0;border-radius:7px;color:#7f879b;background:transparent;flex-shrink:0;list-style:none}.icon-button:hover{background:#e9edf6;color:var(--accent)}summary{cursor:pointer}summary::-webkit-details-marker{display:none}.icon-button svg{width:17px;height:17px}.search-field{display:flex;flex-direction:row;align-items:center;gap:7px;position:relative;border:1px solid var(--line);background:#fff;border-radius:8px;height:34px;padding:0 10px;margin:0 16px}.search-field svg{color:#9aa2b6;width:15px;height:15px}.search-field input{border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;padding:0!important;font-size:11px;width:100%;min-width:0;color:var(--text)}.search-field:focus-within{border-color:#bdc5fb;box-shadow:0 0 0 2px #eceeff}.search-field input::placeholder{color:#939aad}.search-field kbd{white-space:nowrap;flex-shrink:0;background:#f5f6fa;color:#9aa2b4;border:1px solid #e9ecf3;border-radius:4px;padding:0 3px;font:9px/16px -apple-system,sans-serif}.eyebrow{font-size:9px;font-weight:650;letter-spacing:1.5px;color:#a1a8ba;display:block;margin-bottom:6px}.count-badge{font-size:10px;line-height:18px;padding:0 6px;border-radius:5px;background:#e9edf6;color:#838b9f;font-weight:550;vertical-align:middle;margin-left:6px}
/* Accounts */
.sidebar-head{padding:25px 17px 18px;display:flex;align-items:center;justify-content:space-between}.sidebar-head h2{font-size:19px;font-weight:650;letter-spacing:-.4px}.batch-menu{position:relative}.batch-actions{position:absolute;top:33px;left:0;width:180px;z-index:25;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:10px;padding:7px}.batch-actions button{border:0;text-align:left;background:transparent;width:100%;padding:8px;display:flex;align-items:center;gap:9px;font-size:12px}.batch-actions button:hover{background:#f5f6fc}.batch-actions svg{width:14px;height:14px}.batch-actions hr{height:1px;border:0;background:var(--line);margin:5px}.menu-caption{display:block;padding:5px 8px;font-size:10px;color:var(--muted)}.account-filters{display:flex;gap:3px;margin:14px 16px 0;background:#ebedf5;padding:3px;border-radius:8px}.account-filters button{border:0;flex:1;font-size:11px;padding:5px 6px;background:transparent;color:#868da1;border-radius:6px;display:flex;align-items:center;justify-content:center;gap:5px}.account-filters button.active{background:#fff;color:#4752b8;box-shadow:0 1px 3px rgba(35,47,81,.05)}.account-filters b{font-size:10px;font-weight:500}.list-label{padding:20px 19px 9px;color:#9aa2b4;display:flex;justify-content:space-between;font-size:10px}.accounts{flex:1;min-height:0;overflow-y:auto;padding:0 8px 12px;scrollbar-gutter:stable}.account{position:relative;padding:13px 11px;border-radius:10px;cursor:pointer;border:1px solid transparent;margin-bottom:4px;background:transparent;transition:background .12s}.account:hover{background:#eef1f9}.account.active{background:#e9edfc;border-color:#e1e6fa}.account-topline{display:flex;gap:10px;align-items:center;padding-right:15px}.account-monogram{width:35px;height:35px;flex-shrink:0;display:grid;place-items:center;position:relative;border-radius:10px;background:#e2e8f8;color:#6e80b0;font-size:12px;font-weight:650;letter-spacing:.3px}.account[data-tone="1"] .account-monogram{background:#e6e4f5;color:#8c7bba}.account[data-tone="2"] .account-monogram{background:#e0eee9;color:#6b9886}.account[data-tone="3"] .account-monogram{background:#f1e6df;color:#b38d76}.account[data-tone="4"] .account-monogram{background:#e1ebf3;color:#7295af}.account[data-tone="5"] .account-monogram{background:#ebe6ed;color:#a186a1}.account-monogram i{position:absolute;bottom:-1px;right:-1px;border:2px solid #f6f7fb;width:9px;height:9px;background:#b9c1d0;border-radius:50%}.account-monogram i.online{background:#43ac87}.account-info{min-width:0;flex:1}.account-name{font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;color:#515971;line-height:19px}.account.active .account-name{color:#4b59bc}.account-subline{display:flex;gap:6px;align-items:center;margin-top:2px;white-space:nowrap;font-size:9px;color:#929bad}.account-subline .account-id{font-variant-numeric:tabular-nums;letter-spacing:.2px;overflow:hidden;text-overflow:ellipsis}.account-status{font-size:9px;color:#919aad;flex-shrink:0}.account-status.online{color:#299b77}.account-options>summary{position:absolute;right:6px;top:15px;width:23px;height:26px;color:#9aa2b5}.account-options[open]>summary{background:#dde4f6;color:var(--accent)}.account-detail{display:flex;flex-wrap:wrap;gap:5px;font-size:9px;margin-top:12px;padding-top:10px;border-top:1px solid #dde2f0;color:#8690a6}.account-detail>span{padding:2px 5px;background:rgba(255,255,255,.65);border-radius:4px}.account-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin-top:8px}.account-actions button{padding:5px 2px;font-size:10px;border-color:#e2e6f0;background:#fff;display:flex;align-items:center;justify-content:center;gap:4px}.account-actions svg{width:11px;height:11px}.account-actions .health-delete{grid-column:1/-1;color:var(--danger)}.status-dot,.dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:#bdc5d2}.status-dot.online{background:#43a883}.sidebar-footer{margin-top:auto;border-top:1px solid var(--line);padding:15px 18px;display:flex;gap:9px;align-items:center;color:#99a4b6;flex-shrink:0}.sidebar-footer>svg{width:18px;height:18px;color:#98a7bc}.sidebar-footer strong{display:block;font-size:10px;font-weight:500;color:#7a859a}.sidebar-footer span:not(.footer-dot){display:block;font-size:9px;color:#a1a9b9;margin-top:1px}.footer-dot{margin-left:auto;width:5px;height:5px;border-radius:50%;background:#b8c5dc}
/* Conversation pane */
.conversation-head{padding:25px 0 16px}.pane-title{padding:0 20px 21px;display:flex;justify-content:space-between;align-items:center}.pane-title h2{font-size:19px;font-weight:650;letter-spacing:-.4px}.pane-title p{font-size:10px;color:#99a1b3;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:205px}.conversation-head .search-field{background:#f7f8fb;border-color:#f0f2f7}.conversation-section{padding:1px 20px 13px;color:#a0a7b7;font-size:10px;display:flex;justify-content:space-between}.conversation-list{flex:1;min-height:0;overflow-y:auto;padding:0 9px 16px;scrollbar-gutter:stable}.conversation{display:flex;align-items:center;gap:11px;width:100%;text-align:left;border:1px solid transparent;margin:0 0 4px;padding:14px 10px;border-radius:10px;background:#fff}.conversation:hover{background:#f7f8fc;border-color:transparent}.conversation.active{background:#f0f2fd;border-color:#edf0fc}.contact-avatar{width:39px;height:39px;border-radius:12px;flex-shrink:0;position:relative;display:grid;place-items:center;color:#fff;font-size:13px;font-weight:600;overflow:hidden;background:#adb9d3}.contact-avatar img{display:block;width:100%;height:100%;object-fit:cover;position:absolute;inset:0}.contact-avatar.loaded>span{display:none}.contact-avatar-large{width:38px;height:38px;border-radius:11px}.contact-avatar-small{width:31px;height:31px;border-radius:10px;font-size:10px}.conversation-content{min-width:0;flex:1;display:flex;flex-direction:column;gap:4px}.conversation-content>span{display:flex;align-items:center;gap:5px;min-width:0}.conversation-content strong{font-size:12px;font-weight:600;max-width:150px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#49536b}.conversation-content>small{font-size:11px;color:#99a1b2;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:195px}.conversation-content em{font-size:9px;font-style:normal;color:#abb2c0;line-height:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.badge{font-size:8px;font-weight:500;border-radius:4px;padding:1px 4px;background:#f0f2f7;color:#a1a9b8;white-space:nowrap}.muted-badge{display:none}.danger-badge{color:#c77983;background:#faedf0}.conversation-footer{height:46px;border-top:1px solid var(--line);padding:0 20px;display:flex;align-items:center;gap:7px;color:#a1aabc;font-size:9px}.conversation-footer svg{width:12px;height:12px}.inline-form{display:flex;gap:5px;padding:0 16px 14px}.inline-form input{min-width:0;flex:1;font-size:11px}.inline-form button{font-size:11px;padding:5px 10px}
/* Chat reading and writing */
.chat-room-head{height:83px;min-height:83px;padding:0 30px;display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);background:#fff}.chat-target-copy{display:flex;flex-direction:column;gap:4px;min-width:0}.chat-target-copy strong{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-target-copy small{font-size:10px;color:#99a2b4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.read-legend{display:flex;align-items:center;gap:5px;color:#a0a9bc;font-size:9px;margin-left:auto;white-space:nowrap}.read-legend .dot.unread{margin-left:7px}.dot.read{background:#79b5a3}.dot.unread{background:#b6bfd0}.chat-room-head .danger{font-size:10px;padding:5px 8px}.chat-messages{min-height:0;flex:1;overflow-y:auto;padding:27px 30px;display:flex;flex-direction:column;gap:20px}.chat-messages>.empty{margin:auto;max-width:340px;text-align:center;background:none;border:0}.message{display:flex;align-items:flex-end;gap:9px;max-width:88%;align-self:flex-start}.message.outgoing{align-self:flex-end;flex-direction:row}.message .bubble{min-width:70px;max-width:100%;border:1px solid #e9edf5;background:white;border-radius:13px 13px 13px 4px;padding:11px 14px;box-shadow:0 2px 3px rgba(38,51,78,.015)}.message.outgoing .bubble{background:#eef0fc;border-color:#e6eafa;border-radius:13px 13px 4px 13px;color:#445079}.message-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.75}.image-message{font-size:11px;overflow-wrap:anywhere}.message-meta{display:flex;flex-wrap:wrap;gap:7px;margin-top:7px;font-size:8px;color:#a4adbf}.read-state.read{color:#6daa93}.read-state.unread,.read-state.unknown{color:#a1aac0}.chat-compose{padding:6px 28px 13px;flex-shrink:0}.compose-box{border:1px solid #e4e8f1;border-radius:12px;background:white;box-shadow:0 2px 7px rgba(35,47,86,.015);overflow:hidden}.compose-box:focus-within{border-color:#bdc6f6;box-shadow:0 0 0 2px #eef0ff}.compose-box textarea{width:100%;border:0;outline:none!important;box-shadow:none!important;resize:none;background:transparent;padding:16px 18px 6px;min-height:78px;max-height:160px;font-size:12px;line-height:1.65}.compose-box textarea::placeholder{color:#b1b8c8}.compose-bottom{padding:6px 11px 10px 16px;display:flex;justify-content:space-between;align-items:center;gap:10px}.compose-hint{color:#adb5c5;font-size:9px;display:flex;align-items:center;gap:5px}.compose-hint svg{width:13px;height:13px}.send-button{display:flex;gap:9px;align-items:center;padding:7px 13px;font-size:11px;border-radius:7px}.send-button svg{width:12px;height:12px}.compose-footer{color:#b8bfcd;font-size:8px;text-align:center;margin-top:9px;letter-spacing:.15px}
/* Thoughtful empty states */
.empty{color:#9ba4b8;text-align:center;padding:36px 18px;font-size:11px;display:flex;flex-direction:column;align-items:center;gap:9px;line-height:1.8}.empty>svg{width:30px;height:30px;color:#c1c9dc;margin-bottom:4px}.empty strong{font-size:12px;color:#8b96ad;font-weight:500}.empty span{font-size:10px}.empty.compact{padding:18px;font-size:10px}.empty.chat-welcome{gap:0}.welcome-art{width:146px;height:123px;margin-bottom:17px}.welcome-art svg{width:100%;height:100%;stroke:none}.chat-welcome h3{font-size:19px;font-weight:550;letter-spacing:.2px;color:#7683a1;margin-bottom:9px}.chat-welcome p{font-size:11px;color:#a5aec2;max-width:300px;line-height:1.8}.empty-shortcut{display:flex;gap:7px;align-items:center;margin-top:25px;color:#abb4c6;font-size:9px!important}.empty-shortcut kbd{font:9px -apple-system,sans-serif;border:1px solid #e3e7f0;border-radius:4px;padding:3px 5px;background:#fff}
/* Forms, settings, and dialogs keep existing capabilities */
input,textarea,select{border:1px solid var(--line-strong);background:#fff;border-radius:7px;padding:9px 10px;color:var(--text);width:100%;outline:none;font-size:12px}input:focus,textarea:focus,select:focus{border-color:#b5c0fa;box-shadow:0 0 0 2px #eff1ff}input::placeholder,textarea::placeholder{color:#aab1c1}input[type=checkbox]{width:auto;accent-color:var(--accent);flex-shrink:0}input[type=file]{font-size:11px}textarea{resize:vertical;line-height:1.6}label{display:flex;flex-direction:column;gap:7px;color:#606b83;font-size:11px;margin:13px 0}label small,.field-help{font-size:10px;color:#a0a9ba;line-height:1.6}.check{flex-direction:row;align-items:center;gap:7px;color:#8390a5;font-size:10px}.grid{display:grid;gap:0 14px}.grid.two{grid-template-columns:1fr 1fr}.switch-line{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:13px;background:#f8f9fc;border:1px solid #f0f2f7;border-radius:8px;gap:14px}.switch-line strong{font-size:11px;color:#596780;font-weight:550;display:block}.switch-line small{display:block;font-size:9px;margin-top:3px}.switch-line input[type=checkbox]{appearance:none;-webkit-appearance:none;width:29px;height:17px;background:#d8deea;border:0;border-radius:10px;position:relative;cursor:pointer;padding:0}.switch-line input[type=checkbox]:after{content:"";position:absolute;left:2px;top:2px;width:13px;height:13px;background:#fff;border-radius:50%;box-shadow:0 1px 2px #b5bed1}.switch-line input[type=checkbox]:checked{background:var(--accent)}.switch-line input[type=checkbox]:checked:after{left:14px}.modal{position:fixed;inset:0;z-index:100;background:rgba(32,39,62,.22);display:none;place-items:center;padding:30px}.modal.show{display:grid}.dialog{background:#fff;border:1px solid #e7eaf2;border-radius:16px;padding:26px;max-height:calc(100vh - 60px);max-width:calc(100vw - 60px);overflow:auto;box-shadow:0 22px 80px rgba(30,43,78,.16);width:880px}.dialog.small{width:430px}.dialog.medium{width:510px}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.dialog-head h2{font-size:20px;letter-spacing:-.5px;font-weight:650}.dialog-head p{font-size:11px;color:#96a0b3;margin-top:5px;line-height:1.7}.dialog-head>button{font-size:10px;border-color:var(--line);padding:5px 9px}.dialog-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:20px}.dialog-actions button{font-size:11px}.settings-dialog{width:1050px;padding:0;overflow:hidden;display:flex;flex-direction:column}.settings-dialog>.dialog-head{padding:23px 26px 17px;margin:0;border-bottom:1px solid var(--line);flex-shrink:0}.settings-account-bar,.settings-global-bar{padding:13px 26px;border-bottom:1px solid var(--line);background:#fafbfe;display:flex;align-items:center;justify-content:space-between;gap:20px}.settings-account-bar label{display:flex;flex-direction:row;align-items:center;white-space:nowrap;margin:0;font-size:11px}.settings-account-bar select{min-width:210px;width:240px;padding:6px;font-size:11px}.settings-account-bar>span,.settings-global-bar>span{font-size:10px;color:#8c98b0}.settings-global-bar strong{font-size:12px;font-weight:550}.settings-global-bar small{display:block;font-size:10px;color:#a1abba;margin-top:3px}.settings-columns{overflow:auto;min-height:0;display:grid;grid-template-columns:1fr 1fr;padding:8px 26px 25px;gap:32px}.settings-panel{min-width:0}.settings-panel+.settings-panel{border-left:1px solid var(--line);padding-left:28px}.settings-section-title{margin:22px 0 12px;display:flex;flex-direction:column;gap:4px}.settings-section-title h3{font-size:13px;font-weight:600;color:#4c5a76}.settings-section-title small{font-size:9px;color:#a0a9bb}.settings-footer{display:flex;align-items:center;justify-content:space-between;padding:13px 26px;border-top:1px solid var(--line);background:#fff;flex-shrink:0;gap:12px}.settings-footer .dialog-actions,.settings-footer .check{margin:0}.settings-footer button{font-size:10px}.settings-details{border:1px solid var(--line);border-radius:8px;padding:10px 12px;margin:15px 0}.settings-details>summary{font-size:11px;color:#7a87a0}.settings-details[open]>summary{margin-bottom:13px;color:var(--accent)}.model-picker{display:flex;gap:8px}.model-picker select{min-width:0}.model-picker button{white-space:nowrap;font-size:10px}.model-save-row{display:flex;align-items:center;gap:10px;margin:15px 0}.model-save-row button{font-size:10px;white-space:nowrap}.model-save-row small{font-size:9px;color:#a0a8b8}.upload-status{color:#919ab0;font-size:10px}.field-help.error{color:var(--danger)}.field-help.success{color:var(--green)}
#token-dialog{background:#f5f7fc}#token-form{width:430px;padding:38px 38px 32px;border-color:#e6eaf3;box-shadow:0 12px 45px rgba(47,60,102,.06)}.login-brand{width:51px;height:51px;border-radius:15px;background:var(--accent);color:#fff;font-size:29px;letter-spacing:-4px;font-weight:700;display:grid;place-content:center;position:relative;margin-bottom:29px;padding-right:3px}.login-brand span{position:absolute;right:6px;bottom:6px;font-size:28px;color:#cbd1ff}#token-form>.eyebrow{font-size:8px;letter-spacing:1.4px;color:#9ca6be;margin-bottom:9px}#token-form .dialog-head{margin-bottom:25px}#token-form .dialog-head h2{font-size:23px;color:#364460;font-weight:600;letter-spacing:-.6px}#token-form .dialog-head p{font-size:11px;margin-top:9px;color:#95a0b6}#token-form label{font-size:11px;color:#67748f}#admin-token{height:42px;border-radius:8px;background:#fcfdff}#token-hint{font-size:10px;color:#a3adbf;line-height:1.8;margin-top:10px}#token-error{font-size:11px;line-height:1.7;margin-top:9px}#token-error:empty{display:none}#token-submit{width:100%;height:40px;font-size:12px;border-radius:8px}#token-form .dialog-actions{margin-top:24px}
/* Feed capability */
.feed-dialog{width:1050px}.feed-columns{display:grid;grid-template-columns:1fr 1fr;gap:26px}.feed-publish-panel,.feed-history-panel{min-width:0}.section-title{display:flex;align-items:center;gap:10px;margin-bottom:15px}.section-title h3{font-size:13px}.section-title small{display:block;font-size:10px;color:#9aa4b7;margin-top:3px}.section-title button{margin-left:auto;font-size:10px}.step-number{display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);width:25px;height:25px;border-radius:8px;font-size:11px}.feed-image-preview{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}.feed-image-preview img{width:100%;height:100px;object-fit:cover;border-radius:8px}.feed-image-preview .empty{grid-column:1/-1}.feed-location-head{display:flex;align-items:center;justify-content:space-between;margin:17px 0 12px}.feed-location-head strong{font-size:11px}.feed-location-head small{display:block;font-size:10px;color:#9aa4b7;margin-top:4px}.feed-location-head button{font-size:10px}.feed-locations{max-height:200px;overflow:auto;display:flex;flex-direction:column;gap:5px}.feed-location{padding:10px;border:1px solid var(--line);text-align:left;border-radius:8px}.feed-location.active{border-color:#aeb8fa;background:#f0f2ff}.feed-location small{display:block;font-size:10px;color:#929db0}.wide-button{width:100%;margin-top:14px}.feed-list{max-height:590px;overflow:auto}.feed-card{padding:17px;border:1px solid var(--line);border-radius:12px;margin-bottom:12px}.feed-card-head{display:flex;align-items:center;justify-content:space-between;font-size:11px}.feed-card-content{white-space:pre-wrap;font-size:12px;margin:10px 0}.feed-card-images{display:flex;gap:5px;flex-wrap:wrap}.feed-card-images img{width:90px;height:90px;object-fit:cover;border-radius:7px}.feed-card-meta{font-size:9px;color:#9ba6b8;margin-top:9px}
@media(min-width:1500px){.workspace{grid-template-columns:272px 320px minmax(400px,1fr)}.account{padding:14px}.account-topline{gap:12px}.chat-room-head{padding:0 40px}.chat-messages{padding:32px 42px}.chat-compose{padding:10px 40px 20px}}
@media(max-width:1100px){.workspace{grid-template-columns:222px 262px minmax(300px,1fr)}.app-header{padding:0 18px;gap:15px}.brand{min-width:192px}.brand-copy>span{display:none}.chat-room-head{padding:0 20px}.chat-messages{padding:22px 20px}.chat-compose{padding:6px 19px 12px}.read-legend{display:none}.conversation-content strong{max-width:140px}.conversation-content>small{max-width:163px}.header-center{gap:8px;font-size:11px}.connection-status{margin-right:0}}
@media(max-width:800px){body{overflow:auto}.workspace{grid-template-columns:195px 230px minmax(310px,1fr);min-width:735px}.header-center{display:none}.app-header{position:sticky;top:0}.chat-messages{padding:20px 16px}.modal{padding:16px}.dialog{max-width:calc(100vw - 32px);max-height:calc(100vh - 32px)}.settings-columns,.feed-columns{grid-template-columns:1fr}.settings-panel+.settings-panel{border-left:0;padding-left:0}.settings-footer{flex-direction:column;align-items:stretch}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* Final optical balance after native WebKit review. */
.account-name{font-size:12px;color:#4c5872}.account-subline{font-size:10px}.conversation-content strong{font-size:12px}.conversation-content>small{font-size:11px;color:#8893aa}.account-options>summary{opacity:0}.account:hover .account-options>summary,.account.active .account-options>summary,.account:focus-within .account-options>summary,.account-options[open]>summary{opacity:1}
/* Default dark workspace: low luminance, restrained contrast, no pure white surfaces. */
:root{color-scheme:dark;--bg:#161a22;--surface:#1c212c;--text:#d4dbea;--muted:#8995ac;--subtle:#69758b;--line:#293140;--line-strong:#353f51;--accent:#7885d5;--accent-soft:#29324e;--accent-ink:#b0bbf3;--green:#64b395;--danger:#d88190;--warning:#c2a46c;--shadow:0 12px 40px rgba(0,0,0,.24)}
body{background:#161a22;color:#d4dbea}::selection{background:#3d496c;color:#e0e7fa}::-webkit-scrollbar-thumb{background:#394456}.app-header{background:#191e28;border-color:#2a3240}.brand-copy h1{color:#dce3f1}.brand-mark{background:#707ecb}.brand-copy>span,.breadcrumb{color:#7d8aa4}.slash{color:#465169}.header-center strong{color:#bac5dc}.admin-avatar{background:#2b354a;color:#a7b9d9}.connection-status{color:#8592a8}.connection-status.connected{color:#7ba998}.connection-status.connected i{background:#63a38e}.notice{background:#252d3b;border-color:#3a455b;color:#c6d2e8;box-shadow:0 8px 28px #0003}.notice.error{background:#352932;border-color:#61404e;color:#df9eac}.icon-button{color:#8592ab}.icon-button:hover{background:#2c3649;color:#bec8ef}.account-sidebar{background:#191e28;border-color:#293140}.conversation-pane{background:#1d2330;border-color:#2b3444}.chat-room{background:#171c26}.sidebar-head h2,.pane-title h2{color:#d5deee}.eyebrow{color:#738099}.count-badge{background:#2b3549;color:#a1b0cd}.search-field{background:#212938;border-color:#303a4d}.search-field input{color:#bcc9e0!important}.search-field input::placeholder{color:#748199}.search-field svg{color:#7686a2}.search-field kbd{background:#2b3447;border-color:#36425a;color:#8796b2}.search-field:focus-within{border-color:#6878ac;box-shadow:0 0 0 2px #7587d014}.account-filters{background:#131923}.account-filters button{color:#8b98b3}.account-filters button.active{background:#303a53;color:#c1cbf3;box-shadow:none}.list-label{color:#78869f}.account:hover{background:#232c3d}.account.active{background:#2a3550;border-color:#394765}.account-name{color:#b4c3dc}.account.active .account-name{color:#c8d3f4}.account-subline,.account-status{color:#7d8ca7}.account-status.online{color:#75b69e}.account-monogram{background:#2d3b55;color:#97b0d8}.account[data-tone="1"] .account-monogram{background:#37334e;color:#ada0d1}.account[data-tone="2"] .account-monogram{background:#293e3b;color:#91b5ab}.account[data-tone="3"] .account-monogram{background:#453930;color:#bca58d}.account[data-tone="4"] .account-monogram{background:#2c3c4d;color:#93b2c9}.account[data-tone="5"] .account-monogram{background:#3e3345;color:#b49cba}.account-monogram i{border-color:#1a202b;background:#59677e}.account-monogram i.online{background:#64ac94}.account-options>summary{color:#75839f}.account-options[open]>summary{background:#384563;color:#b6c5ef}.account-detail{border-color:#3b4863;color:#9aa9c3}.account-detail>span{background:#202a3d}.account-actions button{background:#222c3e;border-color:#3a4862;color:#b1c0da}.account-actions button:hover{background:#364563}.sidebar-footer{border-color:#2b3444;color:#73819a}.sidebar-footer>svg{color:#8192b0}.sidebar-footer strong{color:#8d9db9}.sidebar-footer span:not(.footer-dot){color:#64728b}.footer-dot{background:#4f6283}.batch-actions{background:#242c3b;border-color:#3a465d}.batch-actions button{color:#b5c2da}.batch-actions button:hover{background:#313d53}.batch-actions hr{background:#3a4559}.menu-caption{color:#8190ab}.batch-actions button.danger{color:#d48997}.pane-title p{color:#7d8ba6}.conversation-head .search-field{background:#202937;border-color:#2e394c}.conversation-section{color:#7a89a4}.conversation{background:transparent;border-color:transparent}.conversation:hover{background:#273145}.conversation.active{background:#2d3854;border-color:#354261}.conversation-content strong{color:#becce4}.conversation-content>small{color:#8594ae}.conversation-content em{color:#657591}.badge{background:#303a4f;color:#8495b2}.danger-badge{background:#443240;color:#d594a7}.conversation-footer{border-color:#2b3547;color:#6d7c96}.chat-room-head{background:#1b222f;border-color:#2b3545}.chat-target-copy strong{color:#c9d6eb}.chat-target-copy small,.read-legend{color:#7a8ba6}.message .bubble{background:#222c3c;border-color:#303e53;color:#c1cde1;box-shadow:none}.message.outgoing .bubble{background:#303b59;border-color:#3d4b6d;color:#ccd7f0}.message-meta{color:#788ba9}.read-state.read{color:#86b2a4}.read-state.unread,.read-state.unknown{color:#7f92b1}.compose-box{background:#202937;border-color:#334056;box-shadow:none}.compose-box:focus-within{border-color:#6b7eaf;box-shadow:0 0 0 2px #7185c112}.compose-box textarea{color:#c4d0e8}.compose-box textarea::placeholder{color:#7c8ba7}.compose-hint{color:#72829e}.compose-footer{color:#5d6d88}.primary{background:#6c7ac5;border-color:#6c7ac5;color:#eef1ff}.primary:hover{background:#7b89d4;border-color:#7b89d4;color:#fff}.send-button{box-shadow:none}.chat-welcome h3{color:#9baccb}.chat-welcome p{color:#7285a5}.welcome-art svg rect:first-of-type,.welcome-art svg path:nth-child(2){fill:#303d61}.welcome-art svg rect:nth-of-type(2){fill:#253049;stroke:#4d608c}.welcome-art svg path:nth-child(4){fill:#253049;stroke:#4d608c}.welcome-art svg path:nth-child(5){stroke:#8298cc}.welcome-art svg circle{fill:#485d8a}.empty{color:#788bab}.empty strong{color:#96a8c8}.empty-shortcut{color:#6d7f9f}.empty-shortcut kbd{background:#202b40;border-color:#344561;color:#98acce}button{background:#273143;border-color:#3a465c;color:#b8c6df}button:hover{background:#34415a;border-color:#4a5a77;color:#d2ddf1}button.icon-button{background:transparent;border-color:transparent}.icon-button:hover{background:#2c384e}.danger{color:#d98b9a}.danger:hover{background:#473341;border-color:#745061}.primary{background:#6c7ac5;border-color:#6c7ac5;color:#eef1ff}.primary:hover{background:#7a88d3;border-color:#7a88d3;color:#f2f4ff}input,textarea,select{background:#202a3a;border-color:#3a465e;color:#c2cee4}input:focus,textarea:focus,select:focus{border-color:#778ab9;box-shadow:0 0 0 2px #7185c116}input::placeholder,textarea::placeholder{color:#6c7e9e}label{color:#a4b4d1}label small,.field-help{color:#7286a8}.check{color:#93a7c8}.modal{background:rgba(7,11,19,.62)}.dialog{background:#202735;border-color:#354056;box-shadow:0 22px 70px #0005}.dialog-head h2{color:#d2ddef}.dialog-head p{color:#8a9cb9}.dialog-head>button{border-color:#3d4a63}.settings-dialog>.dialog-head{border-color:#344055}.settings-account-bar,.settings-global-bar{background:#1a2230;border-color:#344055}.settings-account-bar>span,.settings-global-bar>span{color:#8c9ebd}.settings-global-bar small{color:#8091ad}.settings-panel+.settings-panel{border-color:#344156}.settings-section-title h3{color:#b2c3e0}.settings-section-title small{color:#7e91b1}.switch-line{background:#252e40;border-color:#344156}.switch-line strong{color:#b2c2de}.switch-line input[type=checkbox]{background:#46536c}.switch-line input[type=checkbox]:after{background:#c4cddd;box-shadow:none}.switch-line input[type=checkbox]:checked{background:#7384d0}.switch-line input[type=checkbox]:checked:after{background:#e0e5f2}.settings-footer{background:#1c2432;border-color:#344156}.settings-details{border-color:#39465e}.settings-details>summary{color:#98acca}.settings-details[open]>summary{color:#b6c6ed}.model-save-row small,.upload-status{color:#8397b8}#token-dialog{background:#171c26}#token-form{background:#1f2838;border-color:#33415a;box-shadow:0 16px 60px #0004}#token-form .dialog-head h2{color:#d1dcef}#token-form .dialog-head p{color:#8d9dbc}#token-form>.eyebrow{color:#7084a9}#token-form label{color:#a0b2d0}#admin-token{background:#172132;border-color:#3a4c6a;color:#ccd8ef}#token-hint{color:#7b91b3}.login-brand{background:#6678c1}.feed-card,.feed-location{border-color:#3a4862;background:#222d40}.feed-location.active{background:#31415d;border-color:#6c82b6}.feed-card-meta,.feed-location small,.section-title small,.feed-location-head small{color:#8097bb}.step-number{background:#354569;color:#bdcef2}
/* Comfortable desktop typography, requested by the user. */
body{font-size:14px;line-height:1.6}.app-header{height:70px;padding:0 22px;gap:24px}main{height:calc(100% - 70px)}.brand{min-width:230px}.brand-copy h1{font-size:20px}.brand-copy>span{font-size:12px}.header-center{font-size:13px}.header-actions{gap:11px}.connection-status{font-size:12px}.admin-avatar{width:32px;height:32px;font-size:13px}.icon-button{width:34px;height:34px}.icon-button svg{width:19px;height:19px}.workspace{grid-template-columns:266px 306px minmax(360px,1fr)}.eyebrow{font-size:11px;letter-spacing:1.25px}.sidebar-head{padding-top:23px;padding-bottom:18px}.sidebar-head h2,.pane-title h2{font-size:23px}.count-badge{font-size:12px;line-height:21px;padding:0 7px}.search-field{height:40px;padding:0 11px;gap:8px}.search-field input{font-size:13px}.search-field svg{width:17px;height:17px}.search-field kbd{font-size:11px;line-height:20px}.account-filters{margin-top:14px}.account-filters button{font-size:13px;padding:7px 5px}.account-filters b{font-size:12px}.list-label{font-size:12px;padding:19px 19px 10px}.account{padding:15px 11px;margin-bottom:5px}.account-topline{gap:11px;padding-right:16px}.account-monogram{width:39px;height:39px;font-size:14px;border-radius:11px}.account-name{font-size:15px;line-height:22px;font-weight:550}.account-subline{font-size:12px;gap:5px;line-height:18px;margin-top:4px}.account-status{font-size:12px}.account-options>summary{right:5px;top:17px;width:25px;height:28px}.account-detail{font-size:12px}.account-actions button{font-size:12px;padding:7px 2px}.account-actions svg{width:13px;height:13px}.batch-actions{width:195px}.batch-actions button{font-size:13px;padding:10px}.menu-caption{font-size:12px}.sidebar-footer{padding:13px 17px;gap:10px}.sidebar-footer strong{font-size:12px}.sidebar-footer span:not(.footer-dot){font-size:12px}.sidebar-footer>svg{width:20px;height:20px}.pane-title{padding-bottom:18px}.pane-title p{font-size:12px;margin-top:5px;max-width:230px}.conversation-section{font-size:12px;padding-top:2px}.conversation{gap:11px;padding:15px 10px;margin-bottom:5px}.contact-avatar{width:42px;height:42px;border-radius:12px;font-size:15px}.contact-avatar-large{width:44px;height:44px;font-size:16px}.conversation-content{gap:5px}.conversation-content strong{font-size:15px;max-width:177px;font-weight:550}.conversation-content>small{font-size:14px;max-width:205px}.conversation-content em{font-size:12px;line-height:18px}.badge{font-size:11px}.conversation-footer{font-size:12px;height:48px}.conversation-footer svg{width:14px;height:14px}.inline-form input,.inline-form button{font-size:13px}.chat-room-head{height:88px;min-height:88px;padding:0 27px;gap:13px}.chat-target-copy strong{font-size:16px}.chat-target-copy small{font-size:12px;line-height:18px}.read-legend{font-size:12px}.chat-room-head .danger{font-size:12px}.chat-messages{padding:25px 28px;gap:22px}.message .bubble{padding:12px 16px}.message-text{font-size:16px;line-height:1.75}.message-meta{font-size:12px;line-height:18px;gap:8px;margin-top:8px}.image-message{font-size:14px}.message .contact-avatar{width:38px;height:38px;font-size:14px}.chat-compose{padding:8px 26px 12px}.compose-box textarea{font-size:15px;min-height:90px;padding:16px 18px 8px;line-height:1.7}.compose-bottom{padding:7px 13px 12px 16px}.compose-hint{font-size:12px;gap:7px}.compose-hint svg{width:15px;height:15px}.send-button{font-size:14px;padding:8px 15px;gap:9px}.send-button svg{width:15px;height:15px}.compose-footer{font-size:12px;line-height:18px;margin-top:9px}.empty{font-size:14px}.empty strong{font-size:15px}.empty span{font-size:13px}.empty.compact{font-size:13px}.chat-welcome h3{font-size:23px}.chat-welcome p{font-size:14px;max-width:340px}.empty-shortcut{font-size:12px!important}.empty-shortcut kbd{font-size:12px;padding:3px 7px}.notice{font-size:14px}.dialog-head h2{font-size:23px}.dialog-head p{font-size:13px}.dialog-head>button{font-size:13px;padding:7px 11px}.dialog-actions button{font-size:14px}.dialog.medium{width:560px}input,textarea,select{font-size:14px;padding:10px 11px}label{font-size:14px;gap:8px;margin:15px 0}label small,.field-help{font-size:12px}.check{font-size:12px}.switch-line strong{font-size:14px}.switch-line small{font-size:12px}.settings-account-bar label{font-size:13px}.settings-account-bar select{font-size:13px;padding:8px}.settings-account-bar>span,.settings-global-bar>span{font-size:12px}.settings-global-bar strong{font-size:14px}.settings-global-bar small{font-size:12px}.settings-section-title h3{font-size:16px}.settings-section-title small{font-size:12px}.settings-details>summary{font-size:14px}.settings-footer button{font-size:13px}.model-picker button{font-size:12px}.model-save-row button{font-size:12px}.model-save-row small,.upload-status{font-size:12px}.settings-columns{gap:26px}.settings-panel+.settings-panel{padding-left:22px}#token-form{width:470px;padding:38px}#token-form>.eyebrow{font-size:10px}#token-form .dialog-head h2{font-size:26px}#token-form .dialog-head p{font-size:14px}#token-form label{font-size:14px}#admin-token{font-size:15px;height:45px}#token-hint{font-size:12px}#token-error{font-size:13px}#token-submit{font-size:15px;height:43px}.section-title h3{font-size:16px}.section-title small{font-size:12px}.section-title button,.feed-location-head button{font-size:13px}.feed-location-head strong{font-size:14px}.feed-location-head small,.feed-location small{font-size:12px}.feed-card-head{font-size:14px}.feed-card-content{font-size:15px}.feed-card-meta{font-size:12px}.step-number{font-size:13px}
@media(min-width:1500px){.workspace{grid-template-columns:290px 336px minmax(400px,1fr)}.account{padding:16px 13px}.conversation-content strong{max-width:204px}.conversation-content>small{max-width:234px}.chat-messages{padding:32px 42px}.chat-compose{padding:10px 40px 20px}}
@media(max-width:1100px){.workspace{grid-template-columns:248px 284px minmax(340px,1fr)}.header-center{display:none}.brand{min-width:210px}.conversation-content strong{max-width:158px}.conversation-content>small{max-width:181px}.chat-room-head{padding:0 20px}.chat-messages{padding:23px 20px}.chat-compose{padding:8px 18px 12px}.compose-hint{font-size:12px}.compose-hint svg{display:none}.account-name{font-size:15px}.account-subline{font-size:12px}}

/* Graphite workspace: neutral surfaces, restrained mint accents, and compact hierarchy. */
:root{
  color-scheme:dark;
  --bg:#151715;--surface:#1b1e1b;--text:#e5e9e3;--muted:#a1aaa0;
  --subtle:#7e897e;--line:#303630;--line-strong:#414a41;
  --accent:#93d9ad;--accent-soft:#263b2e;--accent-ink:#b4e9c5;
  --green:#93d9ad;--danger:#e49b97;--warning:#d7bb7e;
  --shadow:0 18px 48px rgba(0,0,0,.38);
}
body{background:var(--bg);color:var(--text)}
::selection{background:#355a42;color:#f0fff3}
::-webkit-scrollbar-thumb{background:#4a534a}
.app-header{background:#1a1d1a;border-color:#313831}
.brand{gap:12px}.brand-copy h1{color:#f0f2ee;font-weight:650}
.brand-mark{background:#29513a;color:#b6edc7;border-radius:8px}
.brand-copy>span,.breadcrumb{color:#9aa59a}.slash{color:#697469}
.header-center strong{color:#d6ded5}
.admin-avatar{background:#303c32;color:#bedbc1;border-radius:7px}
.connection-status{color:#9ba69b}.connection-status.connected{color:#9dceb1}
.connection-status.connected i{background:#85d3a2}
.notice{background:#252c25;border-color:#3d4b3e;color:#e0e9df}
.notice.error{background:#382a2b;border-color:#674041;color:#f2b1aa}
.icon-button{color:#9ea99e;border-radius:7px}.icon-button:hover{background:#2e382f;color:#d1ead4}
.account-sidebar{background:#191c19;border-color:#303630}
.conversation-pane{background:#202320;border-color:#343a34}
.chat-room{background:#171a17}
.sidebar-head h2,.pane-title h2{color:#f0f2ee;font-weight:620}
.eyebrow{color:#8da88f}.count-badge{background:#303b32;color:#b7d9bd;border-radius:5px}
.search-field,.conversation-head .search-field{background:#252b25;border-color:#3a433a;border-radius:7px}
.search-field input{color:#e3e9e1!important}.search-field input::placeholder{color:#929d91}
.search-field svg{color:#91a393}.search-field:focus-within{border-color:#79bc8d;box-shadow:0 0 0 2px #79bc8d24}
.search-field kbd{background:#303830;border-color:#465146;color:#a8baa9}
.account-filters{background:#222722;border:1px solid #313931;border-radius:7px}
.account-filters button{color:#a4aea3;border-radius:5px}
.account-filters button.active{background:#394b3d;color:#e4f4e6;box-shadow:none}
.list-label,.conversation-section{color:#9daa9d}
.account,.conversation{border-radius:7px}
.account:hover,.conversation:hover{background:#272e27}
.account.active,.conversation.active{background:#304035;border-color:#49644f}
.account.active{box-shadow:inset 3px 0 0 #96d7aa}
.account-name,.conversation-content strong{color:#dee7dc}
.account.active .account-name,.conversation.active .conversation-content strong{color:#f2fff1}
.account-subline,.account-status,.conversation-content>small,.conversation-content em{color:#a2aea1}
.account-status.online{color:#9be1af}.account-status.login_conflict{color:#e7a5a0}
.account-monogram,.account[data-tone] .account-monogram{background:#344a39;color:#d1e8d2;border-radius:7px;overflow:visible}
.account[data-tone="1"] .account-monogram,.account[data-tone="4"] .account-monogram{background:#3b4b48;color:#d3e5de}
.account[data-tone="2"] .account-monogram,.account[data-tone="5"] .account-monogram{background:#4b4441;color:#e7d6ce}
.account-monogram img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:7px}
.account-monogram i{z-index:2;border-color:#1a1e1a;background:#859185}
.account-monogram i.online{background:#86d99b}
.account-options>summary{color:#b0bdb0}.account-options[open]>summary{background:#3a493b;color:#def2dd}
.account-detail{border-color:#415042;color:#b6c4b4}
.account-detail>span{background:#2d392e}
.account-actions{grid-template-columns:repeat(3,minmax(0,1fr))}
.account-actions button{background:#2b352c;border-color:#465146;color:#d2dfd0;border-radius:6px}
.account-actions button:hover{background:#3a4b3c}
.account-actions [data-action="reauthorize"]{grid-column:1/-1;color:#b7e5c0}
.sidebar-footer,.conversation-footer{border-color:#323a32;color:#91a091}
.sidebar-footer>svg,.sidebar-footer strong{color:#a9bca9}
.sidebar-footer span:not(.footer-dot){color:#879587}.footer-dot{background:#6b8b70}
.batch-actions{background:#252c25;border-color:#434e43;border-radius:8px}
.batch-actions button{color:#d3dfd1}.batch-actions button:hover{background:#364237}
.batch-actions hr{background:#424c42}.menu-caption{color:#9dac9b}
.pane-title p{color:#a6b3a5}
.contact-avatar{border-radius:8px;color:#e6f0e5}
.badge{background:#344036;color:#bad7bd}.danger-badge{background:#4b3736;color:#e6aca7}
.chat-room-head{background:#1c211c;border-color:#343c34}
.chat-target-copy strong{color:#eff4ec}.chat-target-copy small,.read-legend{color:#a1afa1}
.message .bubble{background:#292f29;border-color:#3d463d;color:#e2eae0;border-radius:8px 8px 8px 3px}
.message.outgoing .bubble{background:#304b39;border-color:#4d7154;color:#e8f6e9;border-radius:8px 8px 3px 8px}
.message-meta{color:#9aa99b}.read-state.read{color:#a3d6ae}
.read-state.unread,.read-state.unknown{color:#9ca99b}
.compose-box{background:#242a24;border-color:#465146;border-radius:8px}
.compose-box:focus-within{border-color:#8dc99c;box-shadow:0 0 0 2px #8dc99c22}
.compose-box textarea{color:#e7eee5}.compose-box textarea::placeholder{color:#9cab9b}
.compose-hint,.compose-footer{color:#9aaa99}
button{background:#2b332b;border-color:#485348;color:#d9e4d6;border-radius:7px}
button:hover{background:#3a493b;border-color:#66806a;color:#f3f9f1}
.primary{background:#9bd9ad;border-color:#9bd9ad;color:#173421;font-weight:650}
.primary:hover{background:#b4e8c1;border-color:#b4e8c1;color:#16321f}
.danger{color:#edaca7}.danger:hover{background:#4a3333;border-color:#754e4e}
input,textarea,select{background:#232b23;border-color:#465246;color:#e0ebdf}
input:focus,textarea:focus,select:focus{border-color:#8dca9c;box-shadow:0 0 0 2px #8dca9c22}
input::placeholder,textarea::placeholder{color:#8d9c8c}
label{color:#d0ddce}label small,.field-help{color:#a4b4a1}
.modal{background:rgba(7,10,7,.72)}.dialog{background:#222822;border-color:#435043;border-radius:8px}
.dialog-head h2{color:#eff6ec}.dialog-head p{color:#aebfa9}
.dialog-head>button{border-color:#485748}
.settings-dialog>.dialog-head,.settings-panel+.settings-panel{border-color:#455146}
.settings-account-bar,.settings-global-bar,.settings-footer{background:#202620;border-color:#414d41}
.settings-section-title h3,.switch-line strong{color:#e0ebdc}
.settings-section-title small,.settings-global-bar small{color:#a8bba5}
.switch-line{background:#2b352b;border-color:#465246}
.settings-details,.settings-details[open]>summary{border-color:#495749;color:#d6ead5}
#token-dialog{background:#171b17}#token-form{background:#242b24;border-color:#455445}
#admin-token{background:#1e271f;border-color:#4b5e4d;color:#e7f1e5}
#token-form .dialog-head h2{color:#f0f5ed}#token-form .dialog-head p,#token-hint{color:#afbfaa}
.login-brand{background:#376447;color:#d6f4d9}
.form-error{color:#efa9a3;font-size:13px;min-height:20px;margin-top:9px}
.feed-card,.feed-location{background:#2b342b;border-color:#455345}
.feed-location.active{background:#3c5540;border-color:#81ad83}
.feed-card-meta,.feed-location small,.section-title small{color:#abbca7}
.account-name-row{display:flex;align-items:center;gap:6px;min-width:0}
.account-name-row .account-name{flex:1;min-width:0}
.account-health{flex:none;display:inline-flex;align-items:center;min-height:21px;padding:1px 6px;border:1px solid #596357;border-radius:4px;background:#303830;color:#c8d5c4;font-size:11px;font-weight:650;line-height:16px;white-space:nowrap}
.account-health.normal{background:#263b2e;border-color:#426d4c;color:#a9e1b5}
.account-health.banned{background:#422c2c;border-color:#85504e;color:#f1b0aa}
.account-health.blocked{background:#3c3526;border-color:#776542;color:#e8cb91}
.health-summary{display:flex;align-items:center;gap:13px;padding:5px 11px;border:1px solid #414b41;border-radius:6px;background:#252c25;white-space:nowrap;font-size:12px}
.health-summary-item{display:inline-flex;align-items:center;gap:6px;color:#c8d3c5}
.health-summary-item strong{font-size:14px;font-variant-numeric:tabular-nums;color:#edf4eb}
.health-summary-item i{width:7px;height:7px;border-radius:50%;background:#8ed1a0}
.health-summary-item.banned i{background:#e4a09b}
.conversation-scope{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;margin:0 18px 14px;padding:3px;min-height:42px;background:#252b25;border:1px solid #3a433a;border-radius:7px}
.conversation-scope button{min-width:0;padding:6px 4px;border:0;border-radius:5px;background:transparent;color:#a4aea3;font-size:13px;line-height:20px;letter-spacing:0}
.conversation-scope button.active{background:#394b3d;color:#e4f4e6}
.conversation-content .conversation-owner{display:flex;align-items:center;gap:6px;min-width:0;margin-top:3px;font-size:12px;line-height:18px;color:#bfd7c4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.conversation-owner .status-dot{flex:none}
.conversation-owner small{min-width:0;overflow:hidden;text-overflow:ellipsis;color:#9aaa99;font-size:11px}
.new-chat-form{flex-direction:column;gap:8px}
.new-chat-form select{width:100%;min-width:0;font-size:13px}
.new-chat-target{display:flex;gap:6px;min-width:0}
.chat-sender{min-height:22px;margin:0 0 9px;color:#bfd7c4;font-size:13px;line-height:22px;overflow-wrap:anywhere;letter-spacing:0}
@media(max-width:800px){.app-header{min-width:735px}.health-summary{gap:9px;padding:4px 7px}.header-actions{gap:6px}.admin-avatar{display:none}}
#workspace-refresh.is-refreshing{color:var(--accent);background:var(--accent-soft);opacity:1;cursor:progress}
#workspace-refresh.is-refreshing svg{animation:workspace-refresh-spin .85s linear infinite}
@keyframes workspace-refresh-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){#workspace-refresh.is-refreshing svg{animation:none}}
