:root{color-scheme:dark;--bg:#06172a;--panel:#091e35;--surface:#102c4b;--ink:#edf3ff;--muted:#91a9c8;--line:#183650;--accent:#1467ff;--light:#14385e;--green:#8ad5b7;--orange:#ecc38a}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}a{color:inherit}button,input,textarea,select,a{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid #8fb8ff}button{color:inherit}h1,h2,h3,p{margin-top:0}h1{font-size:25px;letter-spacing:-.5px}h2{font-size:22px;letter-spacing:-.3px}h3{font-size:16px;margin-bottom:8px}pre{font:inherit;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}hr{border:0;border-top:1px solid var(--line);margin:22px 0}[hidden],.hidden{display:none!important}
.app-header{height:76px;background:#06172a;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 28px;gap:24px;position:relative;z-index:10}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;white-space:nowrap;font-size:20px;font-weight:720;letter-spacing:.5px;flex-shrink:0}.brand small{display:none}.brand-icon{display:block;color:#91b9e9;width:31px;height:35px}.brand-icon svg{width:100%;height:100%}.account-name{border-left:1px solid var(--line);padding-left:23px;color:#b6c7df;font-size:12px;white-space:nowrap}.main-nav{display:flex;align-items:center;justify-content:center;gap:8px;flex:1}.nav{border:0;background:none;color:#9bb2cf;display:flex;align-items:center;justify-content:center;gap:8px;padding:10px 17px;border-radius:22px;white-space:nowrap}.nav:hover{background:#102d49;color:var(--ink)}.nav.active{background:#12396a;color:white;font-weight:600}.nav b{font-size:10px;background:#214876;padding:1px 5px;border-radius:7px;min-width:17px}.icon-button{border:0;background:none;color:#9eb9db;font-size:22px;line-height:1;padding:10px;border-radius:9px}.icon-button:hover{background:var(--surface);color:white}.settings-toggle{margin-left:auto}.settings-panel{position:fixed;z-index:30;right:20px;top:85px;width:370px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 105px);overflow:auto;background:#0c223b;border:1px solid #264564;border-radius:16px;box-shadow:0 24px 70px #0008;padding:24px}.settings-nav{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin:20px 0}.settings-nav .nav{border-radius:8px;white-space:normal;text-align:left;justify-content:flex-start;padding:10px;font-size:13px}#auto-draft-panel{border-top:1px solid var(--line);padding-top:20px}#auto-draft-panel p{font-size:13px}.page-heading{padding:28px 32px 0}body[data-view=inbox] .page-heading{display:none}body:not([data-view=inbox]) #workspace{padding:16px 32px 40px;max-width:1300px;margin:auto}body[data-view=inbox]{overflow:hidden}
.inbox{display:grid;grid-template-columns:320px minmax(0,1fr);height:calc(100dvh - 76px)}.thread-list{border-right:1px solid var(--line);display:flex;flex-direction:column;min-width:0;background:#071a30}.list-header{display:flex;align-items:center;justify-content:space-between;padding:28px 24px 13px}.list-header h1{margin:0}.count{color:var(--muted);font-size:12px}.search{padding:0 18px 15px}input,textarea,select{color:var(--ink);background:#0a213b;border:1px solid #234261;border-radius:9px;padding:11px 12px;width:100%}input::placeholder,textarea::placeholder{color:#809abb}.search input{font-size:13px;border-radius:11px}.queue-bar{display:flex;gap:8px;margin:0 14px;border-bottom:1px solid var(--line);overflow:auto;flex-shrink:0;scrollbar-width:none}.queue-tab{padding:10px 3px 12px;border:0;border-bottom:2px solid transparent;background:none;color:#8fa8c9;font-size:12px;white-space:nowrap}.queue-tab.active{color:white;border-bottom-color:#2377ff;font-weight:650}.threads{overflow-y:auto;flex:1;min-height:0;padding:10px}.thread{display:flex;gap:12px;width:100%;border:0;text-align:left;background:none;border-radius:10px;padding:15px 11px;margin-bottom:2px;min-width:0}.thread:hover{background:#0d2948}.thread.selected{background:#103660}.customer-avatar{width:45px;height:45px;flex:0 0 45px;border-radius:50%;background:#173a5c;color:#b9cce5;display:grid;place-items:center;position:relative;overflow:hidden;font-size:16px;letter-spacing:.4px}.customer-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.thread-content{display:block;min-width:0;flex:1}.thread-top{display:flex;align-items:baseline;justify-content:space-between;gap:6px}.thread strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.thread time{font-size:10px;color:#94afcf;white-space:nowrap}.product-label{display:inline-block;font-size:11px;line-height:1.6;padding:1px 9px;background:#12375d;border-radius:20px;color:#c8deff;margin-top:4px;max-width:100%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;vertical-align:middle}.thread.selected .product-label{background:#1b4877}.preview{display:block;color:#96b0cf;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;margin-top:6px}.thread-status{display:block;font-size:10px;color:#91baff;margin-top:5px}.attention{color:var(--orange)!important}.list-foot{font-size:10px;color:#7793b3;padding:10px 23px;border-top:1px solid var(--line)}
.chat-panel{display:flex;flex-direction:column;min-height:0;min-width:0;position:relative;background:#06192e}.chat-head{display:flex;align-items:center;gap:14px;min-height:96px;border-bottom:1px solid var(--line);padding:20px 32px;flex-shrink:0}.chat-head>.customer-avatar{width:52px;height:52px;flex-basis:52px}.chat-heading{min-width:0;flex:1}.chat-heading h2{font-size:22px;margin:0;overflow-wrap:anywhere}.chat-heading .product-label{font-size:12px}.runtime-status{font-size:12px;color:#a9bdd8;white-space:nowrap}.runtime-status:before{content:' ';display:inline-block;width:7px;height:7px;border-radius:50%;background:#92b4e2;margin-right:8px}.chat-scroll{flex:1;overflow-y:auto;min-height:0;scrollbar-color:#244466 transparent}.timeline{padding:24px 32px 12px}.timeline-label{font-size:9px;letter-spacing:1.4px;color:#6382a6;text-align:center;margin:0 0 23px}.message-row{display:flex;align-items:flex-start;gap:10px;margin:0 0 18px}.message-row .customer-avatar{width:28px;height:28px;flex-basis:28px;font-size:10px;margin-top:5px}.bubble{background:#102f50;border-radius:3px 17px 17px 17px;max-width:78%;padding:14px 18px;overflow-wrap:anywhere;white-space:pre-wrap;font-size:14px;line-height:1.6}.bubble small{font-size:10px;color:#90aace;display:block;text-align:right;margin-top:6px}.bubble .message-author{text-align:left;font-size:10px;color:#92b5dc;margin:0 0 7px;white-space:normal}.outgoing{justify-content:flex-end}.outgoing .bubble{background:#123861;border-radius:17px 3px 17px 17px}.system{justify-content:center}.system .bubble{font-size:11px;background:none;color:#89a1bf;max-width:90%;text-align:center}.draft-area{border-top:1px solid var(--line);padding:25px 32px 24px;margin:16px 0 0}.draft-heading h3{margin:0}.draft-messages{display:flex;flex-direction:column;align-items:flex-end;gap:12px;margin-top:22px}.draft-box{background:#133e70;border-radius:17px 4px 17px 17px;padding:16px 20px;width:max-content;max-width:84%;font-size:15px;line-height:1.65}.draft-messages>.hint{font-size:10px}.source-note{color:#8aa7ca;font-size:11px;margin-top:18px}.source-note summary{cursor:pointer}.source-note p{padding:12px;background:#0c2743;border-radius:8px}.draft-toolbar{border-top:1px solid var(--line);padding:18px 32px 15px;display:flex;align-items:flex-end;flex-direction:column;gap:5px;background:#081d34;flex-shrink:0}.draft-toolbar small{font-size:10px;color:#819bbb}.draft-toolbar .row{gap:22px}.draft-toolbar .primary{min-width:180px}.approval-note{font-size:12px;color:var(--green);margin-top:16px}.no-draft{padding:16px 0 5px;color:#9bb2ce}.no-draft p{margin:0 0 8px}.no-draft small{font-size:12px;color:#718cac}.details{position:absolute;right:0;top:0;bottom:0;z-index:12;width:360px;max-width:100%;overflow:auto;background:#0c233d;border-left:1px solid #294865;box-shadow:-20px 0 60px #0004;padding:24px;font-size:13px}.details .row h3{margin:0}.details h3{margin-top:16px}.details p{color:#a5bdd8}.details .listing-title{font-size:15px;color:var(--ink)}.detail-actions{display:flex;flex-direction:column;gap:8px;margin-top:18px}.mobile-back{display:none}
.button{border:1px solid transparent;border-radius:10px;padding:11px 17px;font-size:13px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:7px;transition:background .15s}.primary{background:#1467ff;color:#fff}.primary:hover:not(:disabled){background:#307dff}.secondary{background:#102d4c;border-color:#2a4969;color:#d7e7fc}.secondary:hover:not(:disabled){background:#173b5f}.quiet{color:#73a9ff;background:transparent}.quiet:hover{background:#102b47}.danger{background:#452837;color:#ffc0c7}.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.between{justify-content:space-between}.pill{font-size:10px;display:inline-flex;align-items:center;border-radius:20px;padding:4px 9px;background:#163a60;color:#b4d1f8;white-space:nowrap}.green{background:#123a36;color:#9cdfc3}.orange{background:#39332c;color:#e8bf81}.neutral{background:#152d45;color:#a5b9d2}.purple{background:#163968;color:#b1d0ff}.muted{color:#94adcb}.hint,.source-meta{font-size:11px;line-height:1.6;color:#7f9cbd}.eyebrow{font-size:10px;letter-spacing:1.3px;color:#90b1d7}.empty{text-align:center;padding:70px 24px;color:#819cbb;font-size:13px;margin:auto;max-width:440px;line-height:1.9}.empty strong{color:#c3d6ed;font-size:16px}.empty-icon{display:block;font-size:32px;margin-bottom:14px;color:#4877ab}.threads .empty{padding:40px 18px;font-size:12px}.card{background:#0c233d;border:1px solid var(--line);border-radius:14px;padding:24px;margin-bottom:18px}.card p{line-height:1.7}.card pre{background:#071a30;padding:18px;border-radius:10px;margin:16px 0}.card h2{font-size:18px}.card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:18px}.card-grid .card{margin:0}.tabs-caption{display:flex;justify-content:space-between;gap:18px;margin-bottom:20px}.card .row{margin-top:10px}label{display:block;font-size:12px;color:#a9bed8;margin:16px 0 7px}label input,label textarea,label select{margin-top:7px}form .button{margin-top:15px}.template-text{max-height:480px;overflow:auto}.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}.table th{font-weight:500;color:#87a4c5}.table th,.table td{padding:12px;border-bottom:1px solid var(--line)}.nowrap{white-space:nowrap}.qr{display:block;width:190px;max-width:100%;border-radius:8px;margin:15px 0}.qr-package{background:#153658;border-radius:9px;padding:16px;margin-top:12px}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 32px);width:max-content;background:#123c60;color:white;border:1px solid #2e638b;box-shadow:0 10px 35px #0008;padding:14px 20px;border-radius:12px;z-index:60;font-size:13px}.toast.error{background:#492738;border-color:#865365}dialog{background:#0b223c;color:var(--ink);border:1px solid #31506e;border-radius:16px;padding:28px;width:600px;max-width:calc(100vw - 24px);max-height:90dvh;overflow:auto}dialog::backdrop{background:#020812b8;backdrop-filter:blur(3px)}.modal-head{display:flex;align-items:center;justify-content:space-between}.modal-head h2{margin:4px 0 16px}.auto-errors p{overflow-wrap:anywhere}
@media(min-width:1500px){.inbox{grid-template-columns:370px minmax(0,1fr)}.timeline,.draft-area{padding-left:48px;padding-right:48px}.thread{padding:17px 14px}.bubble{font-size:15px;max-width:70%}.draft-box{max-width:72%;font-size:16px}.customer-avatar{width:50px;height:50px;flex-basis:50px}}
@media(max-width:1050px){.app-header{padding:0 20px;gap:15px}.account-name{display:none}.main-nav{justify-content:flex-end}.nav{padding:9px 12px}.inbox{grid-template-columns:280px minmax(0,1fr)}.chat-head{padding:18px 22px}.chat-heading h2{font-size:18px}.timeline,.draft-area{padding:22px}.chat-head>.customer-avatar{width:40px;height:40px;flex-basis:40px}.runtime-status{font-size:10px}.draft-toolbar{padding:16px 22px}.draft-box{max-width:94%;font-size:14px}.thread{gap:9px}.customer-avatar{width:36px;height:36px;flex-basis:36px}.thread strong{font-size:13px}.queue-bar{gap:5px}.queue-tab{font-size:11px}}
@media(max-width:700px){.app-header{height:106px;display:grid;grid-template-columns:1fr 40px;grid-template-rows:55px 50px;gap:0;padding:0 16px}.brand{font-size:18px;gap:8px}.brand-icon{width:26px;height:30px}.main-nav{grid-row:2;grid-column:1/3;justify-content:flex-start;gap:12px}.nav{font-size:12px;padding:7px 14px}.settings-toggle{grid-column:2;grid-row:1}.inbox{height:calc(100dvh - 106px);display:block}.thread-list{height:100%;border:0}.list-header{padding:22px 22px 14px}.search{padding:0 20px 12px}.queue-bar{margin:0 20px;gap:23px}.queue-tab{font-size:12px}.threads{padding:10px 12px}.thread{padding:17px 12px;gap:14px}.customer-avatar{width:48px;height:48px;flex-basis:48px}.thread strong{font-size:15px}.preview{font-size:13px}.thread time{font-size:11px}.product-label{font-size:12px}.chat-panel{display:none;height:100%}.mobile-chat .thread-list{display:none}.mobile-chat .chat-panel{display:flex}.mobile-back{display:block}.chat-head{min-height:83px;padding:14px 12px;gap:10px}.chat-head .runtime-status{display:none}.chat-heading h2{font-size:17px}.chat-head>.customer-avatar{width:36px;height:36px;flex-basis:36px}.chat-heading .product-label{font-size:10px}.timeline,.draft-area{padding:18px}.bubble{max-width:88%;font-size:13px;padding:12px 14px}.message-row{gap:7px}.message-row .customer-avatar{width:22px;height:22px;flex-basis:22px}.draft-box{max-width:94%;font-size:14px;padding:14px 16px}.draft-toolbar{padding:14px 18px}.draft-toolbar .row{gap:10px}.draft-toolbar .primary{min-width:150px}.draft-toolbar small{font-size:9px}.settings-panel{top:64px;right:12px;max-height:calc(100dvh - 80px)}.details{width:100%}.page-heading{padding:24px 20px 0}body:not([data-view=inbox]) #workspace{padding:12px 18px 30px}.card{padding:18px}.card-grid{grid-template-columns:1fr}.tabs-caption{flex-wrap:wrap}.card h2{font-size:17px}.empty{padding:40px 20px}.modal-head h2{font-size:20px}dialog{padding:22px}}
/* Keep long real conversations inside the viewport, including the action bar. */
.inbox{grid-template-rows:minmax(0,1fr);overflow:hidden}.thread-list{min-height:0}.chat-panel{max-height:100%;overflow:hidden}.chat-scroll{overscroll-behavior:contain}

/* Shared visual language with Platezhka: Manrope, cobalt, lime, soft dark panels. */
@font-face{font-family:Manrope;src:url('/fonts/manrope-latin.woff2') format('woff2');font-weight:200 800;font-display:swap;unicode-range:U+0000-00FF,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212}
@font-face{font-family:Manrope;src:url('/fonts/manrope-cyrillic.woff2') format('woff2');font-weight:200 800;font-display:swap;unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
:root{--bg:#10152b;--panel:#1c233b;--surface:#2b3552;--ink:#edf1ff;--muted:#a7b4da;--line:#ffffff12;--accent:#4b78ff;--light:#334578;--green:#dbff75;--orange:#ffe1a3;--spring:cubic-bezier(.22,1,.36,1)}
body{font-family:Manrope,Arial,sans-serif;background:#10152b;-webkit-font-smoothing:antialiased}
body::before{content:'';position:fixed;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 20% 12%,#24365a66,transparent 42%),radial-gradient(ellipse at 95% 100%,#b5d9570d,transparent 20%),radial-gradient(ellipse at -8% 107%,#2944a64d,transparent 32%)}
button{transition:background .2s,box-shadow .2s,transform .2s var(--spring)}button:active:not(:disabled){transform:scale(.98)}
.app-header{max-width:1680px;margin:auto;height:112px;padding:20px 32px;gap:24px;background:transparent;border:0}
.brand{font-size:25px;font-weight:800;letter-spacing:-1.1px;gap:12px}.brand small{display:block;margin-top:2px;font-size:9px;letter-spacing:2px;color:var(--muted);font-weight:600}
.brand-icon{width:47px;height:52px;color:#a9beff;padding:5px;border-radius:17px;background:linear-gradient(140deg,#3c5998,#1d2b50);box-shadow:inset 0 1px 0 #ffffff26}
.account-name{border:0;padding:0;color:#b4c2ef;font-size:11px;font-weight:650}
.main-nav{flex:0 1 auto;margin:auto;gap:3px;background:#2b355280;border:1px solid #ffffff09;padding:5px;border-radius:100px}.main-nav .nav{padding:13px 22px;font-weight:650;color:#b4c2ef}
.nav.active{background:linear-gradient(120deg,#4b78ff,#1643ff);color:white;box-shadow:inset 1px 2px 5px #ffffff26,0 5px 15px #244aff20}.nav:hover:not(.active){background:#344469;color:#edf1ff}.nav b{background:#ffffff18;border-radius:100px;padding:2px 6px}
.workspace-status{display:inline-flex;align-items:center;gap:8px;color:#b8c5e3;font-size:11px;white-space:nowrap}.workspace-status:before{content:'';width:6px;height:6px;border-radius:50%;background:#ffe1a3}
.settings-toggle{margin:0;background:#2b355280;border:1px solid #ffffff0c;border-radius:50%;width:42px;height:42px;font-size:20px;color:#b4c2ef}
main{max-width:1680px;margin:auto}body[data-view=inbox] main{padding:0 32px 24px}.inbox{height:calc(100dvh - 136px);grid-template-columns:340px minmax(0,1fr);gap:20px}
.thread-list,.chat-panel{background:linear-gradient(135deg,#222c47,#1c233b);border:1px solid #ffffff14;border-radius:28px;box-shadow:0 12px 36px #060b1d18;overflow:hidden}
.list-header{padding:26px 24px 18px}.list-header h1{font-size:23px;letter-spacing:-.9px;font-weight:800}.count{background:#344265;color:#dce4ff;padding:3px 9px;border-radius:100px}
.search{padding:0 20px 16px}.search input{background:#2b3552;border-color:transparent;border-radius:100px;font-size:12px;padding:12px 16px}.search input::placeholder{color:#a7b4da}
.queue-bar{margin:0 20px;gap:14px}.queue-tab{color:#a7b4da;font-size:11px}.queue-tab.active{color:#bbccff;border-color:#8fa9ff}
.threads{padding:12px}.thread{border-radius:20px;padding:15px 12px;margin:0 0 4px;border:1px solid transparent}.thread:hover{background:#2d3a5b}.thread.selected{background:linear-gradient(120deg,#345cdf,#2548b8);border-color:#88a6ff44;box-shadow:0 6px 16px #0c153421}
.customer-avatar{background:linear-gradient(130deg,#5367a5,#384970);color:#e0e8ff;font-weight:650}.thread.selected .customer-avatar{background:#ffffff20;color:white}
.thread strong{font-weight:750;font-size:13px}.thread time{color:#a7b4da}.thread.selected time{color:#cedbff}.product-label{background:#344265;color:#d4dfff;font-size:10px;padding:2px 9px}.thread.selected .product-label{background:#ffffff1a;color:#e6edff}.preview{color:#a7b4da;font-size:11px}.thread.selected .preview{color:#d0dcff}.thread-status{color:#bfd3ff}.thread-status.attention{color:#f4dda9!important}.list-foot{color:#9baacb;padding:13px 20px;font-size:10px;background:#151c3126}
.chat-head{padding:20px 28px;min-height:100px;background:#ffffff02}.chat-heading h2{font-weight:800;font-size:21px;letter-spacing:-.7px}.chat-head .product-label{font-size:11px}.runtime-status{font-size:10px;color:#b5c0dc;background:#2b3552;border-radius:100px;padding:7px 12px}.runtime-status:before{background:#ffe1a3;width:5px;height:5px}
.chat-scroll{scrollbar-color:#46577c transparent}.timeline{padding:28px 32px 12px}.timeline-label{color:#8c9dbf;letter-spacing:1.5px}.bubble{background:#2b3552;border:1px solid #ffffff07;border-radius:7px 22px 22px 22px;padding:15px 19px;font-size:13px;line-height:1.75;max-width:76%;box-shadow:0 4px 14px #0b10200c}.outgoing .bubble{background:#283f78;border-radius:22px 7px 22px 22px;border-color:#7596ff18}.bubble small,.bubble .message-author{color:#aebfe6}.system .bubble{background:transparent;box-shadow:none;border:0;color:#a7b4da}
.draft-area{margin:16px 24px 24px;padding:22px 24px;background:#17203980;border:1px solid #ffffff0d;border-radius:22px}.draft-heading h3{font-size:15px;font-weight:750;letter-spacing:-.3px}.no-draft{color:#b6c3df;font-size:13px}.no-draft small{color:#95a6cb}.draft-box{background:linear-gradient(135deg,#3367ff,#1945e4);border-radius:22px 7px 22px 22px;font-size:14px}.draft-toolbar{background:#1c233b;padding:17px 28px;gap:8px}.draft-toolbar small{color:#a7b4da}.draft-toolbar .row{gap:12px}
.button{border-radius:100px;padding:12px 20px;font-weight:750;font-size:12px}.primary{background:linear-gradient(115deg,#d5ff67,#e5ff93);color:#0b1540;border-color:#e5ff9350;box-shadow:inset 0 1px 1px #fff5}.primary:hover:not(:disabled){background:#e5ff93;box-shadow:0 5px 20px #dbff751a}.secondary{background:#2b3552;border-color:#ffffff12;color:#dce4ff}.secondary:hover:not(:disabled){background:#344469}.quiet{color:#afc2ff}.quiet:hover{background:#2b3552}.icon-button{color:#b4c2ef}.icon-button:hover{background:#344469;color:#edf1ff}
.card,.settings-panel,.details,dialog{background:linear-gradient(135deg,#222c47,#1c233b);border:1px solid #ffffff14;border-radius:26px;box-shadow:0 12px 38px #060b1d20}.card{padding:28px}.card h2{letter-spacing:-.5px;font-weight:750}.card pre,.source-note p{background:#19223b;border-radius:18px}.settings-panel{top:96px;right:32px;padding:26px}.settings-nav{gap:8px}.settings-nav .nav{border-radius:15px;background:#2b355255}.details{border-radius:0 27px 27px 0;box-shadow:-18px 0 40px #080d2450}.details p{color:#b6c3df}.details .listing-title{color:#edf1ff}
input,textarea,select{background:#2b3552;border-color:#ffffff16;border-radius:16px;color:#edf1ff}input::placeholder,textarea::placeholder{color:#9baacb}label{color:#b4c2ef}.muted{color:#a7b4da}.hint,.source-meta{color:#9cadd1}.pill{background:#344265;color:#dce4ff}.green{background:#263f36;color:#c9efb7}.orange{background:#463728;color:#ffe1a3}.purple{background:#35304f;color:#ded2ff}.neutral{background:#2b3552;color:#bcc9e8}.empty{color:#a7b4da}.empty strong{color:#e1e8ff}.empty-icon{color:#8fa9ff}.approval-note{color:#dbff75}.table th{color:#a7b4da}.toast{background:#2b3552;border-color:#52617e;border-radius:20px}.page-heading{padding-top:16px}.page-heading h1{font-weight:800;letter-spacing:-1px}.card-grid{gap:20px}
body[data-paused=true] .draft-toolbar .button{opacity:.45;pointer-events:none}body[data-paused=true] .draft-toolbar small{font-size:0}body[data-paused=true] .draft-toolbar small:after{content:'Режим просмотра · бот на паузе';font-size:11px}
@media(min-width:1500px){.inbox{grid-template-columns:370px minmax(0,1fr)}.bubble{max-width:72%}}
@media(max-width:1150px){.app-header{padding:16px 24px;gap:16px}.brand{font-size:22px}.account-name{display:none}.main-nav .nav{padding:11px 16px}.workspace-status{display:none}body[data-view=inbox] main{padding:0 24px 20px}.inbox{height:calc(100dvh - 132px);grid-template-columns:300px minmax(0,1fr);gap:16px}.chat-head{padding:20px}.timeline{padding:24px}.draft-area{margin:14px 16px 20px;padding:20px}.bubble{max-width:90%}.queue-bar{gap:10px}}
@media(max-width:700px){.app-header{height:132px;padding:12px 18px;display:grid;grid-template-columns:1fr 42px;grid-template-rows:52px 48px;gap:8px}.brand{font-size:22px}.brand-icon{width:38px;height:42px;border-radius:14px}.brand small{font-size:8px}.main-nav{grid-column:1/3;grid-row:2;width:100%;margin:0;justify-content:space-between;padding:4px;gap:2px}.main-nav .nav{padding:9px 12px;font-size:12px;flex:1}.settings-toggle{grid-column:2;grid-row:1}body[data-view=inbox] main{padding:0 12px 12px}.inbox{display:block;height:calc(100dvh - 144px)}.thread-list,.chat-panel{border-radius:24px}.thread-list{height:100%}.list-header{padding:22px 20px 16px}.list-header h1{font-size:22px}.search{padding:0 18px 12px}.queue-bar{gap:20px;margin:0 18px}.queue-tab{font-size:11px}.thread{padding:15px 12px;gap:12px;border-radius:18px}.thread strong{font-size:14px}.preview{font-size:12px}.customer-avatar{width:44px;height:44px;flex-basis:44px}.chat-head{padding:15px 12px;min-height:86px;gap:8px}.chat-heading h2{font-size:17px}.chat-head .product-label{font-size:10px}.timeline{padding:20px 14px 10px}.bubble{font-size:12px;padding:13px 15px;max-width:90%}.draft-area{margin:12px;padding:18px}.draft-toolbar{padding:14px 18px}.draft-toolbar .button{font-size:11px;padding:11px 15px}.draft-toolbar .primary{min-width:140px}.details{border-radius:23px}.settings-panel{top:72px;right:12px}.card{padding:22px;border-radius:24px}.card-grid{grid-template-columns:minmax(0,1fr)}.page-heading{padding:20px 22px 0}body:not([data-view=inbox]) #workspace{padding:12px 18px 24px}}
@media(prefers-reduced-motion:reduce){button{transition:none}button:active:not(:disabled){transform:none}}

/* Platezhka's sculptural cobalt workspace and lime controls. */
.brand{gap:7px;font-size:27px;letter-spacing:-1.2px}.brand-icon{width:62px;height:64px;padding:0;background:none;box-shadow:none;border-radius:0;color:inherit}.brand-icon img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 4px 7px #07113540)}.brand small{font-size:8px;letter-spacing:2.2px;margin-top:4px}
.app-header{height:110px}.main-nav{background:#232d49;border:1px solid #ffffff0a}.main-nav .nav.active{background:linear-gradient(130deg,#5392ff,#2451ff);box-shadow:inset 0 2px 5px #c2d5ff44,0 3px 12px #1643ff50}.nav b{color:#e7f0ff}.workspace-status{color:#c7d3ec}.workspace-status:before{background:#dbff75;box-shadow:0 0 0 4px #dbff7510}.settings-toggle{background:#253252;color:#a6caff}
.inbox{height:calc(100dvh - 134px);gap:24px;grid-template-columns:340px minmax(0,1fr)}.thread-list{background:linear-gradient(155deg,#222d49,#1b233a);border-radius:30px}.list-header h1{font-size:25px}.count{background:#dfff83;color:#172645;font-weight:800;border:1px solid #efffb340}.list-header{padding-bottom:20px}.search input{background:#2c3856;border-color:#90adff12;box-shadow:inset 0 1px 1px #ffffff06}.queue-bar{border:0;background:#17223c80;border-radius:100px;gap:3px;padding:4px;margin:0 16px 4px;justify-content:space-between}.queue-tab{border:0;border-radius:100px;padding:8px 10px;font-size:10px;color:#bbcae7;flex:1}.queue-tab.active{background:linear-gradient(115deg,#d5ff67,#e5ff93);color:#15213f;font-weight:800;box-shadow:inset 0 1px 1px #fff8}.thread.selected{background:linear-gradient(120deg,#304676,#2d3d60);border-color:#8faeff66;box-shadow:inset 3px 0 0 #dbff75}.thread.selected .product-label{background:#8fbdff24;color:#bddcff}.thread-status.attention{color:#dbff9d!important}.thread time{color:#a2b7d8}.product-label{background:#2f4269;color:#b6d4ff}.customer-avatar{background:linear-gradient(140deg,#638ac9,#30456c);color:#e7f2ff;box-shadow:inset 0 1px 1px #b9d4ff44}.thread.selected .customer-avatar{background:linear-gradient(145deg,#72a5f4,#3763a7)}
.chat-panel{isolation:isolate;background:linear-gradient(135deg,#3367ff 2%,#214de4 45%,#173dc8 78%,#3461ff 100%);border:1px solid #7aa6ff55;border-radius:42px 34px 38px 42px;box-shadow:inset 0 0 50px #91b6ff24,0 20px 65px #1535bb18}.chat-panel:before{content:'';position:absolute;top:-140px;right:-70px;width:73%;height:265px;border-radius:10% 90% 45% 70%;transform:rotate(20deg);background:linear-gradient(175deg,#95b8ff44,#244aff00 65%,#b6d1ff40);box-shadow:0 1px 0 #c7dcff35;pointer-events:none;z-index:-1}.chat-panel:after{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 100% 0,#92baff38,transparent 45%);pointer-events:none;z-index:-1}
.chat-head{background:transparent;border-bottom-color:#c6d8ff22;min-height:100px;padding:23px 30px}.chat-heading h2{color:#fff;font-size:22px;letter-spacing:-.6px}.chat-head .product-label{background:#b9d7ff21;color:#e2eeff;border:1px solid #c6dcff21}.chat-head .customer-avatar{background:linear-gradient(145deg,#95c3ff,#567fdb);box-shadow:inset 0 1px 3px #fff6}.chat-head .icon-button{color:#e2edff}.chat-head .icon-button:hover{background:#ffffff17}.runtime-status{background:#102daa44;border:1px solid #c3daff28;color:#e1eaff;padding:7px 12px}.runtime-status:before{background:#dcff81}
.chat-scroll{scrollbar-color:#a8caff55 transparent}.timeline{padding:26px 30px 10px}.timeline-label{color:#c8daff9c;font-size:9px}.bubble{background:#e8f1ff13;border-color:#c8dfff26;color:#f1f6ff;box-shadow:0 6px 16px #09278b0c}.bubble small,.bubble .message-author{color:#c3d8ff}.outgoing .bubble{background:#092d9b55;border-color:#9bc0ff26}.system .bubble{color:#c3d7ff;line-height:1.5}.timeline .customer-avatar{background:#a8d1ff33;color:#edf5ff;box-shadow:none}
.draft-area{background:#ffffff0c;border:1px solid #b6d3ff26;border-radius:28px;padding:24px 26px;margin:16px 24px 22px;box-shadow:inset 0 1px 1px #dceaff0c}.draft-heading h3{color:#edf4ff}.draft-heading .pill{background:#dfff83;color:#183254}.draft-box{background:#f0f6ff16;border:1px solid #cee2ff44;box-shadow:0 7px 16px #0b25841a;color:white}.draft-area .source-note{color:#d9e8ff}.source-note p{background:#0e2d8f55}.draft-area .hint{color:#c4d9ff}.draft-area .approval-note{color:#e5ffa5}
.no-draft{display:flex;align-items:center;gap:22px;padding:16px 0 0;min-height:150px}.agent-illustration{width:130px;flex:0 0 130px;align-self:center}.agent-illustration img{display:block;width:100%;height:auto;filter:drop-shadow(0 14px 16px #0b247f55)}.draft-empty-copy{max-width:370px;min-width:0}.draft-kicker{font-size:8px;letter-spacing:1.8px;color:#c7ddff}.draft-empty-copy h4{font-size:20px;line-height:1.35;letter-spacing:-.6px;margin:8px 0 10px;color:#fff;font-weight:750}.no-draft p{font-size:11px;line-height:1.65;color:#d2e2ff;margin-bottom:7px}.no-draft small{font-size:10px;color:#b8d2ff}
.draft-toolbar{background:#143dc455;border-top:1px solid #b9d4ff26;padding:17px 28px 20px;align-items:stretch}.draft-toolbar .row{justify-content:flex-end}.draft-toolbar .button{min-height:45px}.draft-toolbar .primary{min-width:230px;font-size:13px}.draft-toolbar small{text-align:right;color:#c7dbff}.draft-toolbar .secondary{background:linear-gradient(115deg,#d5ff67,#e5ff93);color:#14224a;border-color:#e5ff9380;box-shadow:inset 0 1px 1px #fff7}.draft-toolbar .quiet{color:#e1edff}.draft-toolbar .quiet:hover{background:#ffffff13}body[data-paused=true] .draft-toolbar .button:disabled{opacity:.85;pointer-events:auto;cursor:not-allowed}body[data-paused=true] .draft-toolbar small:after{font-size:10px}
.details{z-index:15;background:linear-gradient(135deg,#222c47,#1c233b);border-radius:0 33px 37px 0}.settings-panel{border-radius:28px}.settings-nav .nav{border:1px solid #ffffff09}.settings-nav .nav.active{color:#fff}.pill.green{background:#dcff8524;color:#e1ff9c}.list-foot{background:#111a2c30;color:#9fb6d9}.no-draft+.approval-note{margin-bottom:0}
@media(min-width:1500px){.inbox{grid-template-columns:370px minmax(0,1fr)}.bubble{max-width:70%}.agent-illustration{width:148px;flex-basis:148px}.draft-empty-copy{max-width:460px}}
@media(max-width:1150px){.inbox{grid-template-columns:300px minmax(0,1fr);gap:18px;height:calc(100dvh - 130px)}.queue-tab{padding:8px 7px;font-size:9px}.brand{font-size:23px}.brand-icon{width:52px;height:56px}.chat-panel{border-radius:32px}.chat-head{padding:20px 22px}.timeline{padding:24px 22px 10px}.draft-area{margin:14px 18px 20px;padding:20px}.agent-illustration{width:100px;flex-basis:100px}.no-draft{gap:16px}.draft-empty-copy h4{font-size:17px}.details{border-radius:0 31px 31px 0}}
@media(max-width:700px){.app-header{height:134px;padding:10px 16px;grid-template-rows:58px 48px;gap:7px}.brand{font-size:24px;gap:5px}.brand-icon{width:52px;height:56px}.brand small{font-size:8px}.main-nav .nav{font-size:11px}.inbox{display:block;height:calc(100dvh - 146px)}.thread-list{border-radius:28px}.list-header h1{font-size:24px}.queue-bar{margin:0 16px 6px;gap:3px}.queue-tab{padding:9px 8px;font-size:10px}.chat-panel{border-radius:30px}.chat-head{min-height:88px;padding:16px 12px}.chat-heading h2{font-size:17px}.timeline{padding:20px 14px 10px}.bubble{font-size:12px}.draft-area{margin:12px;padding:18px;border-radius:24px}.draft-heading h3{font-size:13px}.no-draft{gap:12px;min-height:124px}.agent-illustration{width:80px;flex-basis:80px}.draft-empty-copy h4{font-size:15px;letter-spacing:-.4px}.draft-kicker{font-size:7px;letter-spacing:1px}.no-draft p,.no-draft small{font-size:9px}.draft-toolbar{padding:14px 18px 18px}.draft-toolbar .row{width:100%}.draft-toolbar .button{flex:1;font-size:11px;padding:11px 12px}.draft-toolbar .primary{min-width:140px}.draft-toolbar small{text-align:center}.details{border-radius:29px}.list-foot{font-size:9px}}

/* Motion adapted from Platezhka reveal, fold-breathe, money-float and parallax. */
@keyframes agent-reveal{from{opacity:0;transform:translateY(18px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes agent-fold{from{transform:translate(0,0) rotate(21deg)}to{transform:translate(12px,8px) rotate(25deg)}}
@keyframes agent-float{0%,100%{transform:translateY(4px) rotate(-3deg)}50%{transform:translateY(-8px) rotate(2deg)}}
@keyframes agent-shadow{0%,100%{transform:scale(1);opacity:.55}50%{transform:scale(.8);opacity:.25}}
@keyframes agent-toast{from{opacity:0;transform:translate(-50%,12px)}to{opacity:1;transform:translate(-50%,0)}}
.app-header{animation:agent-reveal .7s var(--spring) both}.panel-enter{animation:agent-reveal .65s var(--spring) both}.chat-panel.panel-enter{animation-delay:.08s}
.chat-panel:before{animation:agent-fold 10s ease-in-out infinite alternate}.agent-illustration{position:relative;perspective:700px;padding-bottom:9px}.agent-parallax{position:relative;z-index:1;transform:translate3d(var(--agent-x,0px),var(--agent-y,0px),0) rotateX(var(--agent-rx,0deg)) rotateY(var(--agent-ry,0deg));transition:transform .65s cubic-bezier(.2,.7,.2,1)}.agent-illustration img{animation:agent-float 5.5s ease-in-out infinite;will-change:transform}.agent-shadow{position:absolute;bottom:0;left:23%;width:54%;height:9px;border-radius:50%;background:#071f8577;filter:blur(6px);animation:agent-shadow 5.5s ease-in-out infinite}
.brand-icon img{transition:transform .6s var(--spring)}.brand:hover .brand-icon img{transform:rotate(-7deg) translateY(-3px)}
.button,.nav,.thread,.queue-tab{transition:transform .23s var(--spring),background .23s,box-shadow .23s,opacity .2s,border-color .2s}.button.primary,.draft-toolbar .secondary{position:relative;overflow:hidden}.button.primary:after,.draft-toolbar .secondary:after{content:'';position:absolute;inset:-30px auto -30px -90px;width:60px;background:#fff5;filter:blur(10px);transform:rotate(25deg);transition:left .8s var(--spring);pointer-events:none}.button.primary:hover:not(:disabled):after,.draft-toolbar .secondary:hover:not(:disabled):after{left:115%}.button.primary:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 10px 24px #0b268f40}.button:active:not(:disabled){transform:scale(.97)}
@media(hover:hover) and (pointer:fine){.thread:hover{transform:translateX(3px)}.queue-tab:hover:not(.active){background:#ffffff0c}.settings-toggle:hover{transform:rotate(12deg)}}
input,textarea,select{transition:border-color .2s,box-shadow .2s,background .2s}input:focus,textarea:focus,select:focus{border-color:#9fc4ff;box-shadow:0 0 0 4px #91b6ff12}.settings-panel:not([hidden]),dialog[open]{animation:agent-reveal .25s var(--spring) both}.toast:not(.hidden){animation:agent-toast .35s var(--spring) both}
body[data-motion-paused=true] *,body[data-motion-paused=true] *:before,body[data-motion-paused=true] *:after{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.agent-parallax{transform:none!important}.brand:hover .brand-icon img,.thread:hover,.settings-toggle:hover,.button:active:not(:disabled),.button.primary:hover:not(:disabled){transform:none!important}}
/* Compact chrome brand mark; the larger illustration belongs to the workspace. */
.brand{gap:9px;font-size:25px;letter-spacing:-.9px}.brand-icon{width:38px;height:42px;flex:0 0 38px}.brand-icon img{width:100%;height:100%;object-fit:contain;filter:none;animation:none}.brand:hover .brand-icon img{transform:none}.brand small{letter-spacing:1.7px;font-size:8px}
@media(max-width:700px){.brand{font-size:22px;gap:8px}.brand-icon{width:34px;height:38px;flex-basis:34px}.brand small{font-size:7px;letter-spacing:1.7px}}

/* Wordmark proportions, account context and quieter reading surface. */
.brand{font-size:32px;letter-spacing:-1.4px;gap:13px;align-items:center}.brand-wordmark{display:flex;align-items:baseline;gap:10px;white-space:nowrap}.brand-byline{font-size:14px;letter-spacing:-.45px;font-weight:650;color:#b6c5e8}.brand-icon{width:45px;height:50px;flex-basis:45px}.brand-icon img{object-fit:contain;transform:scale(1.12)}.brand:hover .brand-icon img{transform:scale(1.12)}
.account-context{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 22px 0;padding-bottom:14px;border-bottom:1px solid #ffffff0b}.account-context label{margin:0;font-size:9px;font-weight:600;letter-spacing:.25px;color:#94a9cf;white-space:nowrap}.account-context select{width:auto;max-width:170px;padding:7px 26px 7px 12px;border-radius:100px;border:1px solid #a2c4ff20;background-color:#2a3857;color:#dce9ff;font-weight:700;font-size:10px;cursor:pointer}.list-header{padding-top:19px}
.chat-panel{background:linear-gradient(135deg,#2e5fe9 2%,#2148d2 45%,#193bb9 78%,#2e55df 100%)}.chat-panel:after{background:radial-gradient(ellipse at 100% 0,#92baff28,transparent 45%)}.chat-panel:before{opacity:.8}.bubble{font-weight:550;color:#f3f6ff}.bubble small,.bubble .message-author{font-weight:500;color:#cedeFF}.draft-box{font-weight:550}.no-draft p{font-weight:500}.draft-toolbar{background:#1238ae55}
@media(max-width:1150px){.brand{font-size:27px;gap:10px}.brand-icon{width:40px;height:46px;flex-basis:40px}.brand-byline{font-size:12px}.brand-wordmark{gap:7px}.main-nav .nav{padding:11px 13px}.account-context{margin:18px 20px 0}}
@media(max-width:700px){.brand{font-size:24px;letter-spacing:-1px;gap:8px}.brand-wordmark{gap:7px}.brand-byline{font-size:10px;letter-spacing:-.3px}.brand-icon{width:35px;height:40px;flex-basis:35px}.app-header{grid-template-rows:58px 48px;gap:7px}.account-context{margin:17px 20px 0;padding-bottom:12px}.account-context label{font-size:9px}.account-context select{font-size:10px}.list-header{padding-top:16px}.bubble{font-weight:550}.main-nav .nav{padding:9px 12px}}
@media(max-width:355px){.brand{font-size:21px}.brand-byline{font-size:9px}.brand-wordmark{gap:5px}.brand-icon{width:31px;flex-basis:31px}}
/* A single metallic lettermark replaces headset imagery throughout the UI. */
.brand-icon img{transform:none}.brand:hover .brand-icon img{transform:none}.brand-icon{width:39px;height:48px;flex-basis:39px}.agent-illustration{width:92px;flex-basis:92px;padding:0 10px 12px}.agent-illustration img{filter:drop-shadow(0 8px 9px #0c246b40)}
@media(max-width:700px){.brand-icon{width:32px;height:39px;flex-basis:32px}.agent-illustration{width:66px;flex-basis:66px;padding:0 5px 10px}}

/* Restore the original blue headset only inside the draft illustration. */
.agent-illustration{width:130px;flex-basis:130px;padding:0 0 9px}
@media(min-width:1500px){.agent-illustration{width:148px;flex-basis:148px}}
@media(max-width:1150px){.agent-illustration{width:100px;flex-basis:100px}}
@media(max-width:700px){.agent-illustration{width:80px;flex-basis:80px}}
/* Slightly stronger message copy without changing size or spacing. */
.bubble>div,.draft-box pre{font-weight:600}
/* Platezhka-style logo hover, scoped to the mark itself. */
.brand-icon img{transition:transform .6s var(--spring);transform-origin:50% 65%}
@media(hover:hover) and (pointer:fine){.brand .brand-icon:hover img{transform:rotate(-7deg) translateY(-3px)}}
@media(prefers-reduced-motion:reduce){.brand .brand-icon:hover img{transform:none;transition:none}}
/* Multi-account: account chip in the list/chat header, per-account draft switches. */
.account-label{display:inline-block;margin:4px 0 0 6px;padding:1px 8px;border-radius:20px;font-size:10px;line-height:1.6;color:#d8e6ff;background:#ffffff10;border:1px solid #c6dcff1f;white-space:nowrap;vertical-align:middle}
.auto-account{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #ffffff0d}
.auto-account-name{display:flex;flex-direction:column;min-width:0}
.auto-account-name small{font-size:11px;color:#94a9cf;margin-top:2px}
.auto-account .button{flex-shrink:0;padding:8px 14px;font-size:12px}
.account-context select{max-width:190px}
/* Staff logins: login screen, profile box, staff management. */
.login-screen{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:16px;background:radial-gradient(120% 90% at 20% 0%,#1d2a52 0%,#0d1428 55%,#080d1c 100%)}
.login-card{width:360px;max-width:100%;padding:32px;border-radius:26px;background:linear-gradient(135deg,#222c47,#1c233b);border:1px solid #ffffff14;box-shadow:0 18px 50px #03081a80}
.login-card h1{margin:14px 0 2px}.login-card .button{width:100%;margin-top:20px}.login-card #login-error{min-height:18px;margin:12px 0 0}
body.locked>header,body.locked>main,body.locked>aside{visibility:hidden}
body.auth-mode .local-role{display:none}
.me-box{border-top:1px solid var(--line);padding:18px 0 4px}.me-line{display:flex;flex-direction:column;margin-bottom:6px}.me-line small{color:#94a9cf;font-size:11px}.me-box .button{margin-top:6px}
.staff-card .row label{flex:1;min-width:160px}.checks{display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:10px}.check{display:flex;align-items:center;gap:7px;margin:0;font-size:13px;color:var(--ink)}.check input{width:auto;margin:0}
.password-once{margin-top:16px;padding:14px;border-radius:14px;background:#123a36;color:#cdeee0}.password-once code{font-size:15px;letter-spacing:.5px;user-select:all}
/* Inline draft editing and bot messages. */
.draft-edit{width:min(84%,640px);align-self:flex-end;font-size:15px;line-height:1.6;border-radius:17px 4px 17px 17px;padding:14px 18px;background:#1c2c55;border:1px solid #6d9bff66;resize:vertical}
.message-row.bot .bubble{background:#1d3a7a}
.send-title{margin-top:20px}

.msg-photo{display:block;max-width:260px;max-height:320px;border-radius:12px;object-fit:cover}
.hint-box{padding:0 32px 12px}.hint-box textarea{font-size:13px;border-radius:14px;resize:vertical}#order-form .check{margin-top:12px}

/* Manager attachment preview, using the existing cabinet palette. */
#image-dialog{width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto}
.image-recipient{padding:10px 14px;border-radius:12px;background:#ffffff0a;color:#dae7ff;font-weight:650;overflow-wrap:anywhere}
.image-file-label input{font-size:13px;padding:12px;cursor:pointer}
.image-file-label input::file-selector-button{border:0;border-radius:9px;background:#334c83;color:#eef4ff;font:inherit;padding:8px 12px;margin-right:12px;cursor:pointer}
.image-preview{margin:16px 0 0;padding:12px;border:1px solid #ffffff1c;border-radius:16px;background:#0d1730;text-align:center}
.image-preview img{display:block;margin:auto;max-width:100%;max-height:min(300px,30dvh);object-fit:contain;border-radius:8px}
.image-preview figcaption{margin-top:10px;font-size:12px;color:#b4c8e5;overflow-wrap:anywhere}
.image-buttons{justify-content:flex-end;margin-top:18px}.image-preview[hidden]{display:none}
#image-error{min-height:18px}.draft-toolbar .attach-image{white-space:nowrap}

/* Learning stays beside its source reply, without inflating the manager queue. */
.learning-suggestion{margin:18px 0}.learning-card{margin:12px 0;padding:20px}.learning-card pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.55}.learning-card p{overflow-wrap:anywhere}.learning-card h3{margin:0}.learning-knowledge{margin-bottom:28px}.learn-reply-link{display:block;margin-top:10px;padding:0;border:0;background:none;color:inherit;font:inherit;font-size:12px;opacity:.8;text-decoration:underline;cursor:pointer}#learning-dialog{width:min(620px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto}#learning-form label{display:grid;gap:8px;margin:16px 0}#learning-form textarea{width:100%;box-sizing:border-box;resize:vertical}

.thread.unread{background:#30467266;box-shadow:inset 3px 0 0 #d8ff78}.thread.unread strong,.thread.unread .preview{color:#f5f8ff;font-weight:800}.thread-right{display:flex;align-items:center;gap:8px;flex-shrink:0}.unread-badge{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:20px;background:#d8ff78;color:#132238;font-size:11px;font-weight:850;box-sizing:border-box}.unread-filter{margin:0 24px 10px;padding:7px 12px;border:1px solid #8ca5d844;border-radius:12px;background:#243450;color:#c8d8f3;display:flex;justify-content:space-between;align-items:center;font:inherit;font-size:12px;cursor:pointer}.unread-filter.active{background:#d8ff78;color:#132238;border-color:#d8ff78}.unread-filter span{font-weight:800}#chat-count.has-unread{box-shadow:0 0 0 2px #d8ff78;color:#d8ff78}
