:root{--navy:#10253e;--navy2:#183552;--blue:#244d73;--gold:#c2a77e;--gold-light:#f8f3e9;--ink:#24364a;--muted:#7d8b9c;--line:#e7ebf0;--bg:#f3f5f8;--green:#24866a;--red:#bd5355;--radius:14px;font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:var(--ink);font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:var(--bg);font-size:14px}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}a{color:var(--blue);text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #b8cde2;outline-offset:2px}button svg,.icon{width:19px;height:19px;flex-shrink:0;vertical-align:middle}button{border:0}h1,h2,h3,p{margin:0}h2{font-size:19px;font-weight:650}h3{font-size:15px}small{color:var(--muted)}.muted{color:var(--muted)}.boot{min-height:100vh;display:grid;place-content:center;gap:22px;text-align:center;color:var(--muted)}.brand-seal{width:42px;height:42px;display:grid;place-items:center;border:1px solid var(--gold);color:var(--gold);font-family:serif;font-size:26px;border-radius:7px}.boot .brand-seal{margin:auto}.app-shell{display:flex;min-height:100vh}.sidebar{position:fixed;width:232px;inset:0 auto 0 0;background:var(--navy);color:#d6dfeb;display:flex;flex-direction:column;z-index:30}.sidebar-brand{padding:30px 24px 28px;display:flex;gap:12px;align-items:center}.sidebar-brand strong{font-family:serif;letter-spacing:3px;color:#fff;font-size:21px;font-weight:500;display:block}.sidebar-brand span{font-size:10px;letter-spacing:2px;display:block;color:#9caec0;margin-top:5px}.sidebar-group{font-size:10px;letter-spacing:2px;color:#738ba2;padding:15px 28px 9px}.sidebar nav{padding:0 13px;overflow:auto}.nav-item{width:100%;display:flex;align-items:center;gap:13px;background:transparent;color:#aebdce;padding:12px 15px;text-align:left;border-radius:8px;margin:3px 0;font-size:13px}.nav-item:hover{background:#ffffff09;color:#fff}.nav-item.active{color:#f1dfc0;background:#ffffff0f;position:relative}.nav-item.active:before{content:"";position:absolute;left:-13px;width:3px;height:22px;background:var(--gold);border-radius:0 3px 3px 0}.nav-item .count{margin-left:auto;min-width:19px;padding:2px 5px;background:#b95e5e;color:white;font-size:10px;border-radius:9px;text-align:center}.sidebar-footer{margin-top:auto;padding:20px 25px;color:#6f88a1;font-size:10px;letter-spacing:1px;border-top:1px solid #ffffff0b}.sidebar-footer a{color:#b6c5d3;display:flex;align-items:center;gap:8px;font-size:12px;margin-bottom:13px;letter-spacing:0}.main-shell{margin-left:232px;min-width:0;flex:1}.topbar{height:82px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 34px;gap:16px;position:sticky;top:0;z-index:20}.breadcrumb{color:#99a4b0;font-size:12px}.breadcrumb span{color:#34475c;margin-left:12px}.top-right{margin-left:auto;display:flex;gap:18px;align-items:center}.connection{display:flex;gap:7px;align-items:center;font-size:11px;color:var(--muted)}.dot{width:6px;height:6px;border-radius:100%;background:#b1bcc7;display:inline-block}.dot.online{background:#48a589;box-shadow:0 0 0 3px #48a58912}.staff-badge{display:flex;gap:10px;align-items:center;border-left:1px solid var(--line);padding-left:20px}.avatar{height:35px;width:35px;background:#e9edf2;color:var(--blue);border-radius:11px;display:grid;place-items:center;font-size:14px;font-weight:600;flex-shrink:0}.staff-badge strong{font-size:12px;display:block}.staff-badge small{font-size:10px;display:block;margin-top:3px}.icon-btn{height:34px;min-width:34px;background:transparent;color:var(--muted);display:inline-flex;align-items:center;justify-content:center;border-radius:7px;padding:6px;gap:6px}.icon-btn:hover{background:#eef2f6;color:var(--navy)}.mobile-menu{display:none}.page{padding:30px 34px;max-width:1900px;margin:auto}.page-heading{display:flex;gap:20px;justify-content:space-between;align-items:center;margin-bottom:26px}.page-heading h1{font-size:25px;letter-spacing:.5px;font-weight:650;margin-bottom:9px}.page-heading p{font-size:12px;color:var(--muted);line-height:1.8}.eyebrow{font-size:10px;letter-spacing:2.5px;color:var(--gold);margin-bottom:11px}.btn{border:1px solid var(--line);background:white;color:var(--ink);border-radius:7px;padding:9px 14px;font-size:12px;display:inline-flex;align-items:center;justify-content:center;gap:7px;line-height:1.6;white-space:nowrap}.btn:hover{background:#f6f8fa;border-color:#ccd6df}.btn.primary{background:var(--navy);color:#fff;border-color:var(--navy)}.btn.primary:hover{background:var(--navy2)}.btn.gold{background:var(--gold-light);border-color:#e8dbc6;color:#8b6e44}.btn.danger{color:var(--red);background:#fff9f9;border-color:#f0d5d5}.btn.small{padding:5px 10px;font-size:11px}.btn.text{border-color:transparent;background:transparent;color:var(--blue);padding:4px 6px}.btn svg{width:15px;height:15px}.toolbar{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.card{background:white;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.card-head{padding:20px 23px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:15px}.card-head h2{font-size:15px}.card-body{padding:23px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin-bottom:22px}.stat{padding:23px;position:relative}.stat .stat-icon{width:38px;height:38px;border-radius:10px;background:#f0f4f8;display:grid;place-items:center;position:absolute;right:22px;top:23px;color:#5d7c9b}.stat small{display:block;font-size:11px;letter-spacing:.4px}.stat strong{display:block;font-size:31px;font-weight:550;letter-spacing:1px;margin-top:13px}.stat p{font-size:10px;color:#9aa6b4;margin-top:13px}.stat:nth-child(2) .stat-icon{background:#f9f4eb;color:#b79d76}.stat:nth-child(3) .stat-icon{background:#eff7f4;color:#6a9d8d}.dashboard-grid{display:grid;grid-template-columns:1.55fr 1fr;gap:22px}.welcome-banner{position:relative;overflow:hidden;background:linear-gradient(120deg,#142e4a,#254b6d);border:0;padding:30px;color:#fff;min-height:175px;margin-bottom:22px}.welcome-banner:after{content:"";position:absolute;width:220px;height:220px;border:1px solid #b6cce826;border-radius:50%;right:15px;top:20px;box-shadow:0 0 0 30px #b6cce808,0 0 0 60px #b6cce808}.welcome-banner h2{font-size:22px;position:relative;z-index:1;margin:6px 0 12px;font-weight:500}.welcome-banner p{color:#b9c9da;font-size:12px;max-width:420px;line-height:1.9;position:relative;z-index:1}.welcome-banner .eyebrow{color:#cbb998}.welcome-banner .btn{margin-top:21px;position:relative;z-index:1;border-color:#ffffff25;color:#eee0c5;background:#ffffff0d}.queue-item{display:flex;align-items:center;gap:13px;padding:17px 23px;border-bottom:1px solid #f0f2f5;cursor:pointer}.queue-item:last-child{border-bottom:0}.queue-item:hover{background:#fafbfd}.queue-item .queue-info{flex:1;min-width:0}.queue-item h3{font-size:12px;margin-bottom:7px}.queue-item p{font-size:11px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.queue-item time{font-size:10px;color:#99a5b3}.tag{display:inline-flex;align-items:center;gap:4px;border-radius:4px;padding:3px 7px;background:#f0f4f8;font-size:10px;color:#63809e;line-height:1.4;white-space:nowrap}.tag.green{color:#34806a;background:#edf7f2}.tag.gold{color:#aa8854;background:#faf4e9}.tag.red{color:#ad6060;background:#fbeeee}.tag.gray{color:#8b97a4;background:#f1f3f5}.notice-item{padding:19px 22px;border-bottom:1px solid #f0f2f5}.notice-item h3{font-size:12px;display:flex;gap:8px;align-items:center}.notice-item p{font-size:11px;line-height:1.9;color:var(--muted);margin-top:10px;white-space:pre-wrap}.notice-item time{font-size:10px;color:#a4afbc;display:block;margin-top:10px}.empty{text-align:center;padding:53px 20px;color:#93a1af;font-size:12px;line-height:1.9}.empty svg{width:33px;height:33px;color:#bbc8d6;display:block;margin:0 auto 14px}.empty strong{display:block;color:#657a8f;font-size:13px;font-weight:500;margin-bottom:6px}.search{position:relative}.search input{padding-left:34px}.search svg{position:absolute;left:10px;top:10px;width:15px;height:15px;color:#99a8b8}.input,input:not([type=checkbox]):not([type=file]),select,textarea{width:100%;border:1px solid #e1e6ed;border-radius:7px;color:var(--ink);padding:10px 11px;background:white;outline:none;font-size:12px;line-height:1.6}input:focus,select:focus,textarea:focus{border-color:#9cb2c8;box-shadow:0 0 0 3px #94aec312}textarea{resize:vertical;min-height:90px}input::placeholder,textarea::placeholder{color:#aab4c0}.field{display:block;min-width:0}.field>span{display:block;font-size:12px;color:#60748b;margin-bottom:8px}.field small{font-size:10px;display:block;line-height:1.8;margin-top:6px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-grid .wide{grid-column:1/-1}.check{display:flex;align-items:center;gap:8px;font-size:12px;color:#61758b;line-height:1.7}.check input{accent-color:var(--navy);width:15px;height:15px}.form-actions{display:flex;gap:9px;justify-content:flex-end;margin-top:25px}.help-box{padding:13px 16px;border:1px solid #eee2ce;background:#fcf9f2;border-radius:7px;color:#9b8158;font-size:11px;line-height:1.9;margin-bottom:20px}.error-box{padding:11px 14px;background:#fff3f3;color:#b75356;border-radius:7px;font-size:12px;margin-bottom:18px;line-height:1.8}.tabs{display:flex;gap:22px;border-bottom:1px solid var(--line);padding:0 23px;overflow:auto;white-space:nowrap}.tab{color:#8c9aaa;padding:16px 0;border:0;background:transparent;font-size:12px;position:relative}.tab.active{color:var(--navy);font-weight:600}.tab.active:after{content:"";height:2px;background:var(--gold);position:absolute;left:0;right:0;bottom:0}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}th{background:#fafbfd;padding:13px 20px;color:#8b9aac;font-weight:400;font-size:11px;white-space:nowrap;border-bottom:1px solid var(--line)}td{padding:17px 20px;border-bottom:1px solid #edf0f4;vertical-align:middle;line-height:1.8}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fcfdff}td .sub{display:block;color:#98a6b7;font-size:10px;margin-top:3px}.table-title{font-weight:550;max-width:260px;display:block}.table-actions{display:flex;gap:5px}.table-thumb{width:53px;height:38px;border-radius:5px;object-fit:cover;background:#f2f5f8}.table-meta{display:flex;align-items:center;gap:13px}.truncate{max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-page{padding:0;max-width:none}.chat-workspace{height:calc(100vh - 82px);display:grid;grid-template-columns:290px minmax(320px,1fr) 270px;background:#fff}.chat-workspace.internal{grid-template-columns:290px minmax(320px,1fr)}.conversation-pane{border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0;background:#fff}.pane-heading{padding:24px 20px 19px;display:flex;align-items:center;justify-content:space-between}.pane-heading h1{font-size:18px;font-weight:600}.pane-heading small{display:block;margin-top:7px;font-size:10px}.conversation-search{padding:0 18px 15px}.conversation-filters{display:flex;padding:0 17px 13px;gap:6px}.conversation-filter{padding:5px 10px;background:transparent;color:#8a99ab;font-size:11px;border-radius:5px}.conversation-filter.active{background:#edf2f7;color:#3f607e}.conversation-list{overflow:auto;flex:1}.conversation-item{padding:18px;display:flex;gap:11px;border-top:1px solid #f1f3f6;cursor:pointer;position:relative}.conversation-item:hover{background:#f8fafc}.conversation-item.active{background:#f0f4f9}.conversation-item.active:before{content:"";position:absolute;left:0;top:24px;bottom:24px;width:3px;border-radius:0 2px 2px 0;background:var(--gold)}.conversation-item .avatar{width:37px;height:37px;border-radius:12px;background:#eaf0f7;color:#718fac}.conversation-item.active .avatar{background:#dbe5f0;color:#416586}.conversation-info{flex:1;min-width:0}.conversation-name{display:flex;justify-content:space-between;align-items:center;gap:8px}.conversation-name strong{font-size:12px;font-weight:550;max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.conversation-name time{font-size:9px;color:#9dabb9}.conversation-last{display:flex;gap:7px;align-items:center;margin-top:9px}.conversation-last span{font-size:11px;color:#93a0b1;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.unread-badge{background:var(--gold);color:white;min-width:16px;height:16px;border-radius:10px;font-size:9px;display:grid;place-items:center;padding:0 4px}.chat-main{display:flex;flex-direction:column;min-width:0;min-height:0;background:#f7f8fb}.chat-header{height:77px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 25px;border-bottom:1px solid var(--line);gap:12px}.chat-header h2{font-size:14px;font-weight:600}.chat-header p{font-size:10px;color:#98a5b3;margin-top:6px;display:flex;gap:6px;align-items:center}.chat-header .toolbar{gap:3px}.chat-header .btn{padding:5px 8px;font-size:10px}.mobile-back{display:none}.messages{flex:1;overflow:auto;padding:28px 25px;scroll-behavior:smooth}.chat-info{text-align:center;font-size:10px;color:#a1adba;margin-bottom:26px;line-height:1.9}.message-date{text-align:center;font-size:10px;color:#a9b4c0;margin:15px 0 24px}.message{display:flex;gap:10px;margin:17px 0;align-items:flex-start}.message.mine{flex-direction:row-reverse}.message .avatar{height:30px;width:30px;border-radius:10px;font-size:11px;background:#e6edf5;color:#6e8eac}.message.mine .avatar{background:var(--navy);color:#d4bd95}.message-content{max-width:75%;min-width:0}.message-sender{font-size:10px;color:#9ba9b9;margin:1px 0 6px}.message.mine .message-sender{text-align:right}.bubble{padding:11px 14px;background:white;box-shadow:0 2px 7px #16324b04;border:1px solid #e8edf3;border-radius:0 10px 10px 10px;font-size:12px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere}.mine .bubble{background:#203f5f;color:#f1f5f9;border-color:#203f5f;border-radius:10px 0 10px 10px}.bubble.image-bubble{padding:5px;line-height:0;cursor:zoom-in;overflow:hidden}.bubble img{max-width:230px;max-height:230px;object-fit:contain;border-radius:6px}.bubble.file-bubble{display:flex;gap:12px;align-items:center;line-height:1.8;white-space:normal}.bubble.file-bubble svg{width:25px;height:25px;flex-shrink:0;color:var(--gold)}.bubble.file-bubble a{color:inherit}.message-status{font-size:9px;color:#a7b3bf;margin-top:5px;display:flex;justify-content:flex-end;gap:8px}.message-status.error{color:var(--red)}.message-status button{background:none;color:var(--red);font-size:10px;padding:0}.composer{background:#fff;border-top:1px solid var(--line);padding:0 23px 17px;flex-shrink:0}.composer-tools{display:flex;align-items:center;gap:7px;height:43px}.composer-tools .icon-btn{color:#8495a8;width:29px;height:29px}.composer-tools small{margin-left:auto;font-size:9px}.composer textarea{border:0;border-radius:0;padding:4px 2px;min-height:62px;height:62px;resize:none;font-size:12px;box-shadow:none;line-height:1.8}.composer textarea:focus{box-shadow:none}.composer-footer{display:flex;justify-content:space-between;align-items:center}.composer-footer small{font-size:9px;color:#b3bdc8}.composer-footer .btn{padding:7px 19px}.upload-preview{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid #f1f3f6}.upload-preview img{width:54px;height:54px;border-radius:6px;object-fit:cover}.upload-preview .upload-file-icon{width:45px;height:45px;display:grid;place-items:center;background:#f1f4f8;color:#7c94aa;border-radius:6px}.upload-detail{flex:1;min-width:0;font-size:10px;color:#8a99ab}.upload-detail strong{display:block;color:#61798f;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:500;margin-bottom:5px}.upload-bar{height:3px;border-radius:3px;background:#eef2f5;overflow:hidden;margin-top:7px}.upload-bar span{display:block;height:100%;background:var(--gold)}.chat-context{background:#fff;border-left:1px solid var(--line);min-height:0;overflow:auto}.context-customer{padding:27px 20px 22px;text-align:center;border-bottom:1px solid var(--line)}.context-customer .avatar{margin:0 auto 13px;width:52px;height:52px;background:#f0f3f7;color:#708ba5;border-radius:17px;font-size:20px}.context-customer h3{font-size:14px}.context-customer p{font-size:10px;color:#9aa7b7;margin-top:8px}.context-section{padding:22px 20px;border-bottom:1px solid var(--line)}.context-section h3{font-size:11px;letter-spacing:.5px;display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.context-row{font-size:11px;display:flex;justify-content:space-between;margin:12px 0;gap:8px}.context-row span{color:#9aa8b9}.context-section textarea{font-size:11px;min-height:73px;background:#fcfdfe}.context-section .btn{margin-top:9px}.note{font-size:11px;line-height:1.8;color:#6f8297;margin-top:15px;padding:10px;background:#f8fafc;border-radius:5px;white-space:pre-wrap}.note small{display:block;font-size:9px;margin-top:6px;color:#a4b0bd}.linked-consultation{display:block;width:100%;text-align:left;padding:12px;background:#f8fafc;border:1px solid var(--line);border-radius:7px;margin-bottom:9px;font-size:11px;color:#506d89}.linked-consultation small{display:block;font-size:10px;margin-top:6px}.chat-closed{padding:10px 20px;background:#faf5eb;color:#aa8d61;font-size:11px;text-align:center;line-height:1.9}.modal-overlay{position:fixed;inset:0;background:#0d203e70;backdrop-filter:blur(3px);z-index:80;display:flex;align-items:center;justify-content:center;padding:25px}.modal{width:600px;max-width:100%;max-height:90vh;border-radius:16px;background:white;box-shadow:0 20px 80px #03192c35;display:flex;flex-direction:column}.modal.wide{width:800px}.modal-head{padding:23px 27px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px}.modal-head h2{font-size:18px}.modal-body{padding:25px 27px;overflow:auto}.modal-body p{font-size:12px;line-height:1.9;color:#71859a}.modal-body .form-grid{gap:18px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.detail-item small{display:block;font-size:11px;margin-bottom:8px}.detail-item div{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9}.detail-item.wide{grid-column:1/-1}.divider{height:1px;background:var(--line);margin:24px 0}.section-label{font-size:13px;margin-bottom:18px;color:#46627d}.permission-list{display:flex;flex-wrap:wrap;gap:13px}.login-shell{min-height:100vh;display:grid;grid-template-columns:1.05fr 1fr;background:#f8fafc}.login-art{background:linear-gradient(135deg,#10253e,#203f5e);padding:55px;display:flex;flex-direction:column;position:relative;overflow:hidden}.login-brand{display:flex;align-items:center;gap:15px;color:#e6dfd1}.login-brand strong{font-family:serif;font-weight:400;font-size:24px;letter-spacing:4px}.login-art-copy{margin:auto 0;position:relative;z-index:1}.login-art-copy .eyebrow{color:#b9a68a;letter-spacing:4px}.login-art-copy h1{font-size:38px;line-height:1.7;font-weight:400;letter-spacing:5px;color:#f3f6fa}.login-art-copy p{font-size:12px;color:#90a7be;line-height:2;margin-top:22px;max-width:340px}.login-art:after{content:"";position:absolute;width:520px;height:520px;border:1px solid #b9cde725;border-radius:50%;right:-200px;bottom:-170px;box-shadow:0 0 0 55px #a2bdd70a,0 0 0 110px #a2bdd705}.login-art-footer{font-size:10px;letter-spacing:2px;color:#69839e}.login-main{display:grid;place-items:center;padding:40px}.login-card{width:350px;max-width:100%}.login-card .eyebrow{font-size:10px;color:#a6b2be}.login-card h2{font-size:26px;letter-spacing:1px;margin-bottom:12px}.login-card>p{font-size:12px;color:#a2adba;margin-bottom:35px}.login-card .field{margin-bottom:22px}.login-card .btn{width:100%;padding:12px;margin-top:6px}.login-help{font-size:10px!important;line-height:1.9;color:#a5b1be!important;margin:22px 0!important}.login-card>a{display:block;font-size:11px;margin-top:30px;text-align:center;color:#8b9bad}.toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,15px);background:#183149;color:#fff;max-width:90vw;padding:12px 22px;border-radius:9px;z-index:100;font-size:12px;box-shadow:0 6px 25px #142d4826;opacity:0;pointer-events:none;transition:.18s;line-height:1.8}.toast.show{opacity:1;transform:translate(-50%,0)}.lightbox{position:fixed;inset:0;z-index:90;background:#07101eea;display:flex;align-items:center;justify-content:center;padding:60px 20px}.lightbox img{max-width:100%;max-height:100%;object-fit:contain}.lightbox .icon-btn{position:absolute;right:25px;top:20px;color:white;background:#ffffff15;width:38px;height:38px}.mobile-overlay{display:none}.subheading{margin:22px 0 13px;font-size:12px;color:#647d96}.searchbar{padding:18px 23px;display:flex;gap:12px;align-items:center}.searchbar .search{max-width:300px;flex:1}.searchbar small{margin-left:auto;font-size:10px}.badge-row{display:flex;gap:5px;flex-wrap:wrap}.settings-form{max-width:750px}.footnote{font-size:10px;line-height:1.9;color:#9ba7b5;margin-top:19px}.loading-inline{padding:60px;color:#98a7b7;text-align:center;font-size:12px}.page-error{margin:30px;padding:30px;border-radius:12px;background:white;color:#ad6060;line-height:2;font-size:13px}.row-content{white-space:pre-wrap;max-width:320px;overflow-wrap:anywhere;font-size:11px}.security-line{font-size:10px;color:#99a8b9;display:flex;gap:7px;align-items:center;margin-top:18px}.security-line svg{width:13px;height:13px}.announcement-banner{padding:11px 22px;font-size:10px;background:#fdf9f0;color:#aa8e60;border-bottom:1px solid #f1e8d7;line-height:1.8}.attachment-picker{border:1px dashed #d4dde6;padding:15px;border-radius:8px;background:#fafcfe}.attachment-picker input{font-size:11px;max-width:100%}.attachment-picker small{display:block;margin-top:8px;font-size:10px;line-height:1.8}.separator{color:#d7dee6;margin:0 7px}.status-bar{padding:8px 15px;font-size:10px;background:#fff6e5;color:#aa8e60;text-align:center}.status-bar[hidden]{display:none}.top-role{display:inline;font-size:10px;padding:3px 7px;background:#f9f5ec;color:#a48b62;border-radius:4px}.checkbox-members{max-height:230px;overflow:auto;border:1px solid var(--line);border-radius:7px}.member-row{padding:12px;display:flex;gap:11px;align-items:center;border-bottom:1px solid var(--line);font-size:12px}.member-row:last-child{border:0}.member-row input{accent-color:var(--navy)}.member-row small{display:block;font-size:10px;margin-top:4px}.member-row .avatar{height:29px;width:29px;border-radius:8px;font-size:12px}
.mobile-enter-hint{display:none}
@media(min-width:1600px){.chat-workspace{grid-template-columns:320px minmax(400px,1fr) 300px}.chat-workspace.internal{grid-template-columns:320px minmax(400px,1fr)}}
@media(max-width:1200px){.sidebar{width:205px}.sidebar-brand{padding-left:20px}.sidebar-brand strong{font-size:19px}.main-shell{margin-left:205px}.topbar{padding:0 24px}.page{padding:25px 24px}.chat-page{padding:0}.chat-workspace{grid-template-columns:260px minmax(300px,1fr)}.chat-context{display:none}.chat-workspace.internal{grid-template-columns:260px minmax(300px,1fr)}.stats{gap:12px}.stat{padding:20px}.stat .stat-icon{right:15px;top:20px;width:32px;height:32px}.stat small{max-width:85px}.dashboard-grid{grid-template-columns:1.35fr 1fr}.login-art{padding:40px}.login-art-copy h1{font-size:31px}}
@media(max-width:900px){.sidebar{width:215px;transform:translateX(-100%);transition:transform .2s}.sidebar.open{transform:translateX(0)}.main-shell{margin-left:0}.mobile-menu{display:inline-flex}.mobile-overlay.open{display:block;position:fixed;inset:0;z-index:29;background:#10253e66}.topbar{height:68px;padding:0 20px}.chat-workspace{height:calc(100vh - 68px)}.staff-badge{padding-left:12px}.top-right{gap:10px}.stats{grid-template-columns:repeat(2,1fr)}.dashboard-grid{grid-template-columns:1fr}.login-shell{grid-template-columns:.9fr 1fr}.login-art{padding:30px}.login-art-copy h1{font-size:27px}.login-main{padding:30px}.login-art-copy p{font-size:11px}.breadcrumb{font-size:11px}.topbar .connection span:last-child{display:none}}
@media(max-width:620px){.topbar{height:61px;padding:0 12px;gap:8px}.staff-badge{padding-left:10px;gap:8px}.staff-badge .avatar{width:29px;height:29px;border-radius:9px;font-size:12px}.staff-badge strong{font-size:11px}.staff-badge small{font-size:9px}.top-right{gap:5px}.breadcrumb{font-size:10px}.breadcrumb span{margin-left:6px}.page{padding:22px 15px}.page-heading{margin-bottom:20px;align-items:flex-start;gap:12px}.page-heading h1{font-size:22px;margin-bottom:7px}.page-heading p{font-size:11px}.page-heading .btn{padding:7px 9px;font-size:11px}.eyebrow{font-size:9px;margin-bottom:9px}.stats{gap:10px;margin-bottom:16px}.stat{padding:18px}.stat strong{font-size:26px;margin-top:11px}.stat .stat-icon{right:13px;top:18px;width:27px;height:27px}.stat .stat-icon svg{width:15px;height:15px}.stat small{font-size:10px}.stat p{font-size:9px}.welcome-banner{padding:24px;margin-bottom:16px;min-height:180px}.welcome-banner h2{font-size:20px}.welcome-banner p{font-size:11px;max-width:260px}.welcome-banner:after{right:-120px}.dashboard-grid{gap:16px}.card-head{padding:18px}.queue-item{padding:16px 18px}.tabs{padding:0 18px;gap:22px}.tab{font-size:11px}.searchbar{padding:15px;gap:7px}.searchbar small{display:none}.searchbar .btn{font-size:10px;padding:7px 9px}th,td{padding-left:15px;padding-right:15px}td{font-size:11px}.form-grid{grid-template-columns:1fr;gap:16px}.form-grid .wide{grid-column:auto}.modal-overlay{padding:14px}.modal{max-height:93vh;border-radius:13px}.modal-head{padding:20px}.modal-head h2{font-size:17px}.modal-body{padding:20px}.modal-body .form-grid{gap:16px}.form-actions{flex-wrap:wrap}.detail-grid{gap:19px 12px}.login-shell{display:flex;min-height:100vh;flex-direction:column}.login-art{padding:25px 28px;height:220px;flex-shrink:0}.login-brand .brand-seal{width:32px;height:32px;font-size:20px}.login-brand strong{font-size:20px}.login-art-copy{margin:28px 0 0}.login-art-copy h1{font-size:23px;letter-spacing:3px;line-height:1.7}.login-art-copy .eyebrow{font-size:8px;letter-spacing:3px;margin-bottom:5px}.login-art-copy p,.login-art-footer{display:none}.login-art:after{width:280px;height:280px;bottom:-190px;right:-70px}.login-main{padding:35px 28px;flex:1;place-items:start center}.login-card{width:350px}.login-card h2{font-size:23px}.login-card>p{margin-bottom:28px}.chat-page{padding:0}.chat-workspace,.chat-workspace.internal{height:calc(100dvh - 61px);display:block;position:relative}.conversation-pane{height:100%;border-right:0}.chat-main{position:absolute;inset:0;z-index:5;display:none}.chat-workspace.has-active .conversation-pane{display:none}.chat-workspace.has-active .chat-main{display:flex}.chat-header{height:70px;padding:0 14px;flex-shrink:0}.chat-header h2{font-size:13px}.chat-header .toolbar .btn span{display:none}.chat-header .toolbar .btn{padding:6px}.chat-header .toolbar .btn svg{width:15px;height:15px}.mobile-back{display:inline-flex;margin-left:-4px;margin-right:0}.chat-header-title{flex:1;min-width:0}.messages{padding:20px 15px}.message-content{max-width:77%}.bubble{font-size:12px;padding:10px 12px}.bubble img{max-width:190px;max-height:220px}.composer{padding:0 15px max(12px,env(safe-area-inset-bottom))}.composer-tools small{display:none}.composer-footer small{font-size:8px}.composer textarea{min-height:55px;height:55px}.composer-tools{height:40px}.chat-info{font-size:9px;max-width:270px;margin-left:auto;margin-right:auto}.message .avatar{height:27px;width:27px;font-size:10px;border-radius:9px}.message{gap:8px}.pane-heading{padding:23px 20px}.pane-heading h1{font-size:21px}.conversation-item{padding:19px 20px}.conversation-name strong{max-width:220px}.context-section.mobile-notes{display:block}.lightbox{padding:60px 12px}.login-help{font-size:10px!important}.settings-form .card-body{padding:20px}.card-body{padding:18px}.security-line{font-size:9px}.row-content{max-width:230px}.page-error{margin:20px}}

/* Phone controls and the visible viewport keep the composer usable with a soft keyboard. */
@media(max-width:620px){
  .chat-workspace,.chat-workspace.internal{height:calc(100vh - 61px);height:calc(var(--staff-viewport-height,100dvh) - 61px)}
  input:not([type=checkbox]):not([type=file]),select,textarea,.composer textarea{font-size:16px}
  .icon-btn,.composer-tools .icon-btn,.chat-header .toolbar .btn{min-width:44px;width:auto;min-height:44px;height:44px}
  .composer-tools{height:48px}
  .composer-footer .btn,.conversation-filter,.nav-item,.tab{min-height:44px}
  .chat-header .toolbar{flex-wrap:nowrap;gap:0}
  .chat-header h2,.chat-header p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .chat-header-title{min-width:0}
  .composer-footer .desktop-enter-hint{display:none}
  .composer-footer .mobile-enter-hint{display:inline}
  .modal{max-height:calc(var(--staff-viewport-height,100dvh) - 28px)}
  .modal-overlay{padding-bottom:max(14px,env(safe-area-inset-bottom))}
}

.chat-image-policy{font-size:11px;line-height:1.5;color:#64788c;margin:4px 0 6px}
