:root{--bg:#0b0f1a;--panel:#151b2e;--panel2:#1c2339;--line:#31384e;--ink:#f0f0fa;--muted:#a5abc3;--pur:#8650ea}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px Inter,system-ui,-apple-system,Segoe UI,sans-serif}button,input,textarea,select{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}.top{height:70px;display:flex;align-items:center;justify-content:space-between;background:#101426;border-bottom:1px solid #29304a;padding:0 27px}.brand{font-size:19px;font-weight:900;color:#9a78ee}.brand strong{color:white}.brand span{margin-left:12px;font-weight:500;font-size:12px;color:#9ca3b8}.top-actions{display:flex;align-items:center;gap:21px;color:#a9afd0;font-size:12px}.top-actions a:hover{color:white}.presence{color:#77dfa8}.layout{display:grid;grid-template-columns:235px 1fr;min-height:calc(100vh - 70px)}.side{background:#111629;border-right:1px solid #2d324a;padding:25px 13px}.nav{width:100%;display:flex;justify-content:space-between;border:0;border-radius:10px;color:#b7bfd9;background:transparent;padding:15px 12px;margin:5px 0;font-size:13px;font-weight:700;text-align:left}.nav.active{color:#fff;background:linear-gradient(105deg,#5635b6,#2b295c)}.nav span{background:#a660ee;color:#fff;border-radius:20px;padding:1px 7px}.side-note{font-size:11px;line-height:1.65;color:#8992ae;margin:33px 10px}.main{padding:30px;min-width:0}.panel{display:none}.panel.active{display:block}.section-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:25px}.eyebrow{letter-spacing:2px;color:#ae8bff;font-weight:850;font-size:10px}.section-head h1{margin:9px 0;font-size:29px;letter-spacing:-.5px}.section-head p:not(.eyebrow){color:var(--muted);margin:0}.status-badge{border:1px solid #385e5a;color:#76e1b0;border-radius:25px;padding:9px 12px;font-size:11px}.chat-layout{display:grid;grid-template-columns:300px minmax(0,1fr);background:var(--panel);border:1px solid var(--line);border-radius:16px;overflow:hidden;height:min(700px,calc(100vh - 220px));min-height:470px}.threads{border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0}.threads-head{padding:18px;border-bottom:1px solid var(--line);font-weight:800}.threads-head input{width:100%;margin-top:12px}.thread-list{overflow:auto;flex:1}.thread{width:100%;display:block;padding:16px 14px;background:transparent;color:var(--ink);border:0;border-bottom:1px solid #2a3043;text-align:left}.thread:hover,.thread.selected{background:#252545}.thread-top{display:flex;justify-content:space-between;align-items:center;gap:8px}.thread-top span{font-size:10px;color:#8b93b1}.thread strong{font-size:14px}.thread p{margin:8px 0 0;color:#aab1c8;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:12px}.unread{display:inline-block;margin-left:8px;background:#7856e8;color:white;border-radius:20px;padding:2px 6px;font-size:10px}.dialogue{display:flex;flex-direction:column;min-width:0}.dialog-header{min-height:65px;padding:20px;border-bottom:1px solid var(--line);font-size:16px;font-weight:800}.dialog-messages{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:12px;padding:20px}.empty{margin:auto;text-align:center;font-size:16px;line-height:2;color:#8389a7}.chat-msg{max-width:75%;border-radius:12px;padding:12px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.5}.chat-msg.customer{align-self:flex-start;background:#2b344c;border-bottom-left-radius:3px}.chat-msg.operator{align-self:flex-end;background:#6744cf;border-bottom-right-radius:3px}.chat-msg small{display:block;text-align:right;font-size:10px;opacity:.7;margin-top:5px}.reply{border-top:1px solid var(--line);padding:14px;display:grid;gap:10px;background:#13182a}.reply>div{display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap}input,textarea,select{border:1px solid #3a4260;background:#0f1527;color:#f6f5fa;border-radius:9px;padding:11px 12px;outline:none;min-width:0}input:focus,textarea:focus,select:focus{border-color:#9876fa}input::placeholder,textarea::placeholder{color:#7e879e}textarea{resize:vertical}button[type=submit],#replySend{border:0;background:linear-gradient(100deg,#6644d7,#9951df);color:white;border-radius:9px;padding:12px 17px;font-weight:800}button:disabled{opacity:.35;cursor:not-allowed}.ghost{background:transparent;border:1px solid #666e8e;color:#ebe6ff;border-radius:9px;padding:9px 12px}.danger{background:transparent;border:1px solid #845161;color:#ffb4c3;border-radius:9px;padding:9px 12px}.theme-layout{display:grid;grid-template-columns:minmax(300px,400px) 1fr;gap:23px}.form-card{border:1px solid var(--line);background:var(--panel);padding:23px;border-radius:14px;display:grid;gap:15px;align-content:start}.form-card h2,.theme-list-area h2{font-size:19px;margin:0 0 6px}.form-card label{display:grid;gap:7px;font-size:12px;font-weight:750;color:#bec5e1}.form-card label small{font-weight:400;color:#8c94b1}.form-card .check{display:flex;align-items:center}.form-card .check input{width:17px;height:17px}.form-card input[type=file]{font-size:11px}.form-card input,.form-card textarea,.form-card select{width:100%}.upload-preview{border:1px dashed #4e5778;background:#10172b;border-radius:10px;min-height:84px;display:flex;align-items:center;justify-content:center;color:#8791ad;font-size:12px;overflow:hidden}.upload-preview img{max-width:100%;max-height:155px;object-fit:contain}.notice{font-size:12px;color:#9de3b7;min-height:14px}.theme-list-area{border:1px solid var(--line);background:var(--panel);border-radius:14px;padding:23px}.theme-item{display:grid;grid-template-columns:90px 1fr auto;align-items:center;gap:13px;border-bottom:1px solid var(--line);padding:13px 0}.theme-thumb{width:90px;height:65px;border-radius:8px;background:#2f3152;display:grid;place-items:center;color:#ad99e8;overflow:hidden}.theme-thumb img{width:100%;height:100%;object-fit:cover}.theme-item h3{font-size:13px;margin:0 0 6px}.theme-item p{margin:0;color:#a4adca;font-size:11px}.theme-item button{background:transparent;border:1px solid #686496;padding:8px 10px;border-radius:8px;color:#e7e5f5;font-size:12px;margin-left:5px}.theme-item button.delete-theme{color:#f2aabc;border-color:#80556f}.settings-form{max-width:480px}.info{max-width:650px;color:#9ba9c8;line-height:1.7;margin:22px 0;font-size:12px}.error{color:#ffb4bd;background:#5b253844;border:1px solid #7c3548;border-radius:8px;padding:12px;font-size:13px}.auth-page{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 48% 26%,#39246b,#0d1120 68%)}.auth-card{width:min(440px,calc(100% - 30px));padding:32px;background:#191e34;border:1px solid #3a3858;border-radius:20px;box-shadow:0 20px 80px #0006;display:grid;gap:18px}.mark{font-size:23px;font-weight:900;color:#a46af4}.mark span{color:white;font-size:21px}.auth-card h1{margin:8px 0 0;font-size:28px}.auth-card p{color:#a3acc7;font-size:13px;line-height:1.6;margin:0}.auth-card label{display:grid;gap:8px;color:#c9c9dd;font-size:12px;font-weight:700}.auth-card a{text-align:center;color:#b4a4e9;font-size:12px}@media(max-width:1050px){.chat-layout{grid-template-columns:235px minmax(0,1fr)}.theme-layout{grid-template-columns:1fr}}@media(max-width:720px){.top{padding:0 14px}.brand span{display:none}.top-actions{gap:10px}.layout{grid-template-columns:1fr}.side{display:flex;padding:8px;gap:5px;border-right:0;overflow:auto}.side-note{display:none}.nav{white-space:nowrap;padding:12px 10px;width:auto}.main{padding:16px}.section-head{display:block}.status-badge{display:none}.chat-layout{grid-template-columns:1fr;height:calc(100dvh - 225px);min-height:510px}.threads{max-height:155px;border-right:0;border-bottom:1px solid var(--line)}.thread-list{display:flex;overflow-x:auto}.thread{min-width:180px;max-width:200px;border-right:1px solid var(--line)}.threads-head{padding:8px 12px}.threads-head input{padding:7px;margin-top:5px}.dialog-header{min-height:42px;padding:12px}.dialog-messages{padding:10px}.theme-item{grid-template-columns:65px 1fr}.theme-thumb{width:65px;height:55px}.theme-item>div:last-child{grid-column:1/-1}.chat-msg{max-width:88%}}

.notify-button{background:#302655;color:#ede9ff;border:1px solid #6752a8;border-radius:9px;padding:9px 11px;font-size:11px;font-weight:700}.notify-button:hover{background:#493476}@media(max-width:600px){.notify-button{font-size:10px;padding:7px}.top-actions a:first-of-type{display:none}}

.orders-list{display:grid;gap:13px;margin-top:18px}.order-item{padding:18px;border:1px solid #33465f;border-radius:14px;background:#172235}.order-heading{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:8px}.order-heading h3{margin:0;font-size:17px}.order-heading small{color:#9daec6}.order-info{margin:13px 0;color:#d2e2f0;font-size:13px;line-height:1.9;overflow-wrap:anywhere}.order-info b{color:#91b4d3}.order-actions{display:flex;align-items:center;gap:12px}.order-actions select{background:#0d1b2e;border:1px solid #647690;color:#fff;border-radius:10px;padding:10px;font-size:13px}.order-actions button{border:1px solid #b53a55;color:#ffc2cb;border-radius:8px;padding:10px 15px;background:#6b253733}@media(max-width:700px){.order-heading{display:block}.order-actions{flex-wrap:wrap}}
