:root{--bg:#f4f7fb;--ink:#18273d;--muted:#8290a4;--line:#e7edf4;--blue:#3868ee;--light:#edf2ff}*{box-sizing:border-box}body{margin:0;font:14px/1.6 system-ui,-apple-system,'Segoe UI','Microsoft YaHei',sans-serif;color:var(--ink);background:var(--bg)}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);padding:9px 14px}button:hover{background:var(--light);border-color:#bccbf9}button.primary{background:var(--blue);color:#fff;border:0}button:disabled{opacity:.5;cursor:wait}input,select,textarea{width:100%;border:1px solid #dce3ed;border-radius:9px;padding:10px 12px;outline:none;background:white;color:var(--ink)}input:focus,textarea:focus{border-color:var(--blue)}textarea{resize:vertical}h1,h2,h3,p{margin:0}h1{font-size:25px}h2{font-size:19px}h3{font-size:15px}small,.muted{color:var(--muted)}.hidden{display:none!important}.row{display:flex;align-items:center;gap:10px}.spread{justify-content:space-between}.stack{display:grid;gap:14px}.brand{font-weight:750;font-size:21px;letter-spacing:-.5px}.brand i{display:inline-grid;place-items:center;width:35px;height:35px;border-radius:11px;background:var(--blue);color:#fff;margin-right:8px;font-style:normal}.pill{font-size:11px;padding:3px 9px;border-radius:20px;background:var(--light);color:#436ce0;white-space:nowrap}.green{background:#e8f8f0;color:#218d67}.login{max-width:410px;margin:12vh auto;padding:35px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 20px 80px #2032510a}.login h2{margin:25px 0 4px}.login form{margin-top:24px}.app{display:grid;grid-template-columns:210px 1fr;min-height:100vh}.sidebar{background:#fff;border-right:1px solid var(--line);padding:28px 18px;display:flex;flex-direction:column;gap:8px;position:fixed;top:0;bottom:0;width:210px}.sidebar .brand{margin:0 0 32px 6px}.nav{text-align:left;border:none;padding:13px 15px;background:none;color:#66758c}.nav.active{background:var(--light);color:var(--blue);font-weight:650}.sidebar .foot{margin-top:auto;border-top:1px solid var(--line);padding-top:20px}.main{grid-column:2;min-width:0}.topbar{height:83px;padding:20px 30px;background:#fff;border-bottom:1px solid var(--line)}.view{padding:26px 30px}.heading{margin-bottom:24px}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:25px}.card{padding:22px;background:#fff;border:1px solid var(--line);border-radius:13px}.number{font-size:31px;font-weight:700;margin-top:6px}.table-wrap{overflow:auto;background:#fff;border:1px solid var(--line);border-radius:12px}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}th,td{padding:15px 19px;border-bottom:1px solid var(--line)}th{background:#fafbfd;font-size:12px;color:var(--muted);font-weight:500}td small{display:block}.workspace{display:grid;grid-template-columns:290px minmax(280px,1fr) 245px;height:calc(100vh - 135px);background:white;border:1px solid var(--line);border-radius:14px;overflow:hidden}.inbox{border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0}.filters{padding:16px;display:grid;gap:8px;border-bottom:1px solid var(--line)}.conversation-list{overflow:auto}.conversation{padding:16px;display:block;width:100%;text-align:left;border:0;border-radius:0;border-bottom:1px solid var(--line)}.conversation.selected{background:#f0f4ff;border-left:3px solid var(--blue)}.conversation .preview{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#8a96a7;font-size:12px;margin:8px 0}.badge{background:#ef6473;color:#fff;min-width:18px;text-align:center;font-size:10px;border-radius:20px;padding:0 5px}.chat-panel{display:flex;flex-direction:column;min-height:0;min-width:0}.chat-head{padding:17px 20px;border-bottom:1px solid var(--line);min-height:75px}.messages{overflow:auto;flex:1;padding:24px;background:#fafbfd;display:flex;flex-direction:column;gap:18px}.bubble-wrap{align-self:flex-start;max-width:85%;min-width:80px}.bubble-wrap.mine{align-self:flex-end}.bubble{padding:11px 15px;border:1px solid var(--line);border-radius:0 12px 12px;background:#fff;white-space:pre-wrap;overflow-wrap:anywhere}.mine .bubble{background:var(--blue);color:white;border-color:var(--blue);border-radius:12px 0 12px 12px}.bubble-wrap small{font-size:10px;display:block;margin-bottom:4px}.composer{padding:15px;border-top:1px solid var(--line);display:grid;gap:10px}.composer textarea{border:0;padding:4px;min-height:70px;resize:none}.details{padding:20px;border-left:1px solid var(--line);overflow:auto}.details label{display:block;font-size:12px;color:var(--muted);margin-top:18px;margin-bottom:6px}.details .value{word-break:break-all;font-size:13px}.empty{padding:50px 20px;text-align:center;color:var(--muted);margin:auto}.notice{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:20;background:#263650;color:white;border-radius:10px;padding:12px 22px;box-shadow:0 8px 25px #0002}.panel-form{max-width:650px;background:white;padding:25px;border:1px solid var(--line);border-radius:12px;margin-top:20px}.panel-form label{display:block;margin-bottom:5px}.inline{display:grid;grid-template-columns:1fr 1fr;gap:14px}.visitor-body{background:linear-gradient(135deg,#edf2ff,#f8fafc);min-height:100dvh;display:grid;place-items:center;padding:20px}.visitor-shell{width:100%;max-width:470px;height:min(790px,94dvh);border-radius:20px;overflow:hidden;background:#fff;border:1px solid #e0e6f2;box-shadow:0 20px 90px #38517b15;display:flex;flex-direction:column}.visitor-header{padding:25px;color:white;background:linear-gradient(120deg,#3868ee,#638aff)}.visitor-header small{color:#e0e8ff}.visitor-start{padding:30px;display:grid;gap:15px}.visitor-shell .messages{min-height:150px}.visitor-shell .composer{padding:17px}.visitor-footer{text-align:center;font-size:11px;color:#a2abba;padding:8px}.error{color:#c84e61;font-size:13px}.hint{font-size:12px;color:#8a96a7}.tools{display:flex;gap:8px;flex-wrap:wrap}.tools select{width:auto;max-width:100%}@media(max-width:1200px){.workspace{grid-template-columns:250px minmax(260px,1fr)}.details{display:none}.workspace.show-details{grid-template-columns:1fr}.workspace.show-details .details{display:block}.workspace.show-details .inbox,.workspace.show-details .chat-panel{display:none}.sidebar{width:175px}.app{grid-template-columns:175px 1fr}.view{padding:18px}.topbar{padding:18px}}@media(min-width:1201px){#detail-toggle{display:none}}@media(max-width:760px){.app{display:block}.sidebar{position:static;width:100%;padding:12px;flex-direction:row;overflow:auto;align-items:center;border-bottom:1px solid var(--line)}.sidebar .brand{margin:0;font-size:0}.sidebar .brand i{font-size:20px}.nav{white-space:nowrap;padding:8px}.sidebar .foot{margin:0;border:0;padding:0;white-space:nowrap}.sidebar .foot small,.sidebar .foot strong{display:none}.topbar{height:65px}.view{padding:10px}.workspace{height:calc(100dvh - 160px);grid-template-columns:1fr}.workspace.has-chat .inbox{display:none}.workspace:not(.has-chat) .chat-panel{display:none}.cards{grid-template-columns:1fr 1fr;gap:8px}.card{padding:15px}.inline{grid-template-columns:1fr}.visitor-body{padding:0}.visitor-shell{height:100dvh;max-width:none;border:0;border-radius:0}.heading{margin:10px 0 20px}.chat-head{padding:12px}.row{gap:6px}.bubble-wrap{max-width:92%}}
.presence-label{display:block;font-size:12px;color:var(--muted);margin-top:10px}.sidebar #presence{margin:5px 0 10px}.multi-filter{border:1px solid var(--line);border-radius:8px;background:white}.multi-filter summary{cursor:pointer;padding:9px 11px;display:flex;justify-content:space-between;gap:10px}.multi-filter summary span{font-size:12px;color:var(--blue)}.multi-options{max-height:180px;overflow:auto;padding:9px;border-top:1px solid var(--line)}.multi-options label{display:flex;gap:8px;align-items:center;padding:6px;cursor:pointer;overflow-wrap:anywhere}.multi-options input,.check-row input{width:16px;height:16px;flex-shrink:0}.multi-options button{padding:4px 10px}.filters{max-height:58%;overflow-y:auto;flex-shrink:0}.conversation-list{flex:1;min-height:0}.list-pages{border-top:1px solid var(--line);padding:8px;font-size:11px}.list-pages button{font-size:11px;padding:5px 8px}.check-row{display:flex!important;align-items:center;gap:8px}.visitor-shell details{padding:8px 16px;background:#fff;border-bottom:1px solid var(--line)}.visitor-shell details summary{cursor:pointer;font-size:12px;color:var(--muted)}.visitor-shell details form{padding:10px 0;gap:8px}.visitor-shell .visitor-start{padding:12px}.visitor-shell #retry{margin:12px}.visitor-header .availability{display:block;margin-top:5px}@media(max-width:760px){.sidebar .foot{display:flex;align-items:center;gap:5px}.sidebar .presence-label{display:none}.sidebar #presence{width:85px;margin:0}.sidebar .foot br{display:none}.filters{max-height:65%}}

.media-tools{margin-top:10px;border-top:1px solid #e5e9ef;padding-top:10px}.media-tools .row{flex-wrap:wrap}.media-pending{padding:10px;background:#f4f7fa;border-radius:10px;margin-top:8px}.media-status{overflow-wrap:anywhere;font-size:13px}.media-tools progress{width:100%;height:10px}.chat-media{display:block;max-width:100%;width:auto;max-height:280px;border-radius:8px;object-fit:contain}.media-preview .chat-media{max-height:130px}.bubble:has(.chat-media){min-width:140px;max-width:min(360px,100%)}.bubble a{display:block;overflow-wrap:anywhere;font-size:12px;margin-top:8px;color:inherit}.composer{flex-shrink:0}.media-tools small{font-size:11px}

/* v2.2.5 — admin-only, conversation-first layout. Visitor styles stay separate. */
.admin-body .app{grid-template-columns:160px minmax(0,1fr);height:100dvh;min-height:0;overflow:hidden}
.admin-body .sidebar{position:static;width:auto;min-height:0;padding:20px 10px;overflow:auto}
.admin-body .sidebar .brand{font-size:17px;margin:0 0 24px 2px;white-space:nowrap}
.admin-body .sidebar .brand i{width:29px;height:29px;margin-right:5px}
.admin-body .nav{padding:11px 10px;font-size:13px}
.admin-body .sidebar .foot{padding-top:12px}
.admin-body .main{display:flex;flex-direction:column;min-height:0;overflow:hidden}
.admin-body .topbar{height:62px;flex-shrink:0;padding:10px 20px}
.admin-body .topbar h2{font-size:17px}
.admin-body .topbar small{font-size:10px}
.admin-body .view{padding:12px;flex:1;min-height:0;overflow:auto}
.admin-body .workspace{position:relative;grid-template-columns:300px minmax(0,1fr);height:100%;min-height:0;border-radius:12px}
.admin-body .inbox{min-width:0;overflow:hidden}
.admin-body .filters{padding:12px;gap:10px;max-height:45%;min-height:0}
.admin-body .advanced-filters>summary{display:flex;justify-content:space-between;gap:8px;cursor:pointer;padding:7px 2px;color:var(--blue);font-size:12px}
.admin-body .advanced-filters>summary::before{content:'＋'}
.admin-body .advanced-filters[open]>summary::before{content:'－'}
.admin-body .advanced-filters>summary span{margin-left:auto;color:var(--muted);font-size:11px}
.admin-body .advanced-filter-body{display:grid;gap:8px;padding-top:8px}
.admin-body .conversation{padding:13px 14px}
.admin-body .conversation .row>*{min-width:0}
.admin-body .conversation strong,.admin-body .conversation .pill{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.admin-body .conversation .row>small{flex-shrink:0;font-size:10px}
.admin-body .conversation .preview{margin:6px 0}
.admin-body .chat-head{min-height:64px;padding:10px 18px;gap:8px;flex-wrap:wrap;flex-shrink:0}
.admin-body .chat-head> .row{min-width:0;flex-wrap:wrap}
.admin-body .chat-head h3,.admin-body .chat-head small{overflow-wrap:anywhere}
.admin-body .chat-head button{padding:6px 10px;font-size:12px}
.admin-body .messages{min-height:0;padding:22px 28px;gap:16px;overscroll-behavior:contain}
.admin-body .bubble-wrap{max-width:min(78%,900px)}
.admin-body .bubble-wrap small{font-size:11px}
.admin-body .bubble{line-height:1.75}
.admin-body .composer{display:flex;flex-direction:column;padding:12px 20px;gap:8px;max-height:35%;min-height:0;overflow:auto}
.admin-body .composer>.tools{order:0;flex-shrink:0}
.admin-body .composer>textarea{order:1;min-height:48px;height:48px;flex-shrink:0;background:#f8fafd;border:1px solid var(--line);padding:10px 12px}
.admin-body .composer>.media-tools{order:2;margin-top:0;padding-top:0;border:0}
.admin-body .composer>.row{order:3;flex-wrap:wrap;flex-shrink:0}
.admin-body .composer .media-tools>.row{gap:8px}
.admin-body .composer .media-tools button{padding:6px 10px;font-size:12px}
.admin-body .details{display:none;position:absolute;right:0;top:0;bottom:0;width:min(340px,100%);padding:20px;background:#fff;z-index:5;box-shadow:-12px 0 36px #18273d18;overscroll-behavior:contain}
.admin-body .workspace.show-details{grid-template-columns:300px minmax(0,1fr)}
.admin-body .workspace.show-details .inbox,.admin-body .workspace.show-details .chat-panel{display:flex}
.admin-body .workspace.show-details .details{display:block}
.admin-body #detail-toggle{display:inline-block}
.admin-body #detail-back{display:block;width:100%;margin-bottom:18px;text-align:right}
.admin-body #back{display:none}
.admin-body .workspace.list-collapsed{grid-template-columns:minmax(0,1fr)}
.admin-body .workspace.list-collapsed .inbox{display:none}
.admin-body :focus-visible{outline:2px solid var(--blue);outline-offset:2px}
@media(min-width:1700px){.admin-body .workspace,.admin-body .workspace.show-details{grid-template-columns:340px minmax(0,1fr)}.admin-body .workspace.list-collapsed{grid-template-columns:minmax(0,1fr)}}
@media(min-width:761px) and (max-width:1100px){.admin-body .app{grid-template-columns:140px minmax(0,1fr)}.admin-body .sidebar .brand{font-size:14px}.admin-body .nav{font-size:12px;padding:10px 6px}.admin-body .workspace,.admin-body .workspace.show-details{grid-template-columns:260px minmax(0,1fr)}.admin-body .workspace.list-collapsed{grid-template-columns:minmax(0,1fr)}.admin-body .messages{padding:18px}}
@media(max-width:760px){
 .admin-body .app{display:flex;flex-direction:column}
 .admin-body .sidebar{flex-direction:row;align-items:center;flex-shrink:0;overflow:auto;padding:8px;gap:4px;border-right:0;max-height:62px}
 .admin-body .sidebar .brand{font-size:0;margin:0}.admin-body .sidebar .brand i{font-size:18px;margin:0}
 .admin-body .nav{font-size:12px;padding:8px;white-space:nowrap}
 .admin-body .sidebar .foot{margin:0;padding:0;border:0;flex-shrink:0}
 .admin-body .main{flex:1}.admin-body .topbar{height:48px;padding:8px 12px}.admin-body .topbar small{display:none}
 .admin-body .view{padding:6px}.admin-body .workspace,.admin-body .workspace.show-details{grid-template-columns:minmax(0,1fr);border-radius:8px}
 .admin-body .workspace.has-chat .inbox{display:none}.admin-body .workspace:not(.has-chat) .chat-panel{display:none}
 .admin-body .chat-head{padding:8px 10px;min-height:54px}.admin-body .chat-head button{padding:5px 8px}
 .admin-body #back{display:inline-block}.admin-body #list-toggle{display:none}
 .admin-body .messages{padding:14px 12px}.admin-body .bubble-wrap{max-width:90%}
 .admin-body .composer{padding:10px;gap:6px;max-height:40%}.admin-body .composer>textarea{height:44px;min-height:44px}
 .admin-body .composer>.row>small{font-size:10px}.admin-body .details{width:min(340px,100%)}
}
@media(max-height:650px){.admin-body .composer>textarea{height:52px;min-height:52px}.admin-body .composer{gap:5px;padding-top:8px;padding-bottom:8px}.admin-body .messages{gap:10px}.admin-body .sidebar .brand{margin-bottom:10px}}
.admin-body .composer>.tools{align-items:center;gap:8px}
.admin-body .composer>.tools select{padding:6px 10px;max-width:180px;font-size:12px}
.admin-body .composer>.tools .row{flex-wrap:wrap;gap:6px}
.admin-body .composer>.tools button{padding:5px 9px;font-size:12px}
.admin-body .composer>.tools small{font-size:10px}
.admin-body .composer>.media-tools:not(:has(.media-pending:not(.hidden))){display:none}
.internal-message .bubble{background:#fff6dc;border-color:#efd68b;color:#654c13}
.internal-message>small{color:#89681d}
.admin-body .internal-compose{background:#fff8e6;border-top-color:#e4c465}
.admin-body .internal-compose>.tools>.row{display:none}
.admin-body .internal-compose>.media-tools{display:none}
.admin-body #reply-context{order:0;font-size:11px;color:#89681d}
.admin-body #reply-context:empty{display:none}
.message-actions{display:flex;gap:8px;margin-top:4px}
.message-actions button{padding:2px 7px;font-size:11px;background:transparent;color:var(--muted)}
.retracted .bubble{font-style:italic;background:#f1f3f6;color:#8390a0;border-color:var(--line)}
.reply-body{white-space:pre-wrap;min-width:200px;max-width:600px;overflow-wrap:anywhere}
/* Always show both reply modes side by side, including narrow screens. */
.admin-body .reply-mode-buttons{display:inline-flex;flex-wrap:nowrap;align-items:center;gap:3px;padding:3px;border:1px solid var(--line);border-radius:9px;background:#f2f5fa;flex-shrink:0}
.admin-body .composer>.tools .reply-mode-buttons button{white-space:nowrap;padding:6px 11px;border:1px solid transparent;border-radius:6px;background:transparent;color:#637087;font-weight:600}
.admin-body .composer>.tools .reply-mode-buttons #reply-public.active{background:#e3ebff;color:#244fcb;border-color:#a9bff8}
.admin-body .composer>.tools .reply-mode-buttons #reply-internal.active{background:#fff0bf;color:#795600;border-color:#d9b14b}
.admin-body .composer>.tools .reply-mode-buttons button:hover{border-color:#bac5d8}
/* Keep attachment actions reachable in short mobile viewports. */
.visitor-shell .messages{min-height:0;overscroll-behavior:contain}
.visitor-shell .composer{min-height:0;max-height:52%;overflow-y:auto;overscroll-behavior:contain;padding:10px 12px;padding-bottom:max(10px,env(safe-area-inset-bottom))}
.visitor-shell .composer textarea{min-height:44px;height:44px}
.visitor-shell .media-actions{position:sticky;top:0;z-index:1;background:#f4f7fa;padding:4px 0;gap:8px}
.visitor-shell .media-actions button{min-height:42px}
.visitor-shell .media-preview .chat-media{max-height:90px}
.visitor-shell .media-status{font-size:12px;margin:6px 0}
.visitor-shell .visitor-header{padding:14px 18px;flex-shrink:0}
.visitor-shell>#profile-details{flex-shrink:0;max-height:28%;overflow:auto}
.visitor-shell>.visitor-footer{flex-shrink:0;padding:4px 8px}
.visitor-shell>#error:empty{display:none}
@media(max-width:760px){.visitor-shell{height:100dvh;max-height:100dvh}.visitor-shell .composer{max-height:55%}.visitor-shell .media-tools{margin-top:4px;padding-top:6px}.visitor-shell .messages{padding:12px}}
.danger-button{color:#b43a4a;border-color:#ebc8cf}.danger-button:hover{background:#fff0f2;border-color:#d48b97}
/* v2.2.6: allocate the actual visible height to messages first. */
.visitor-body{height:var(--visitor-height,100dvh);min-height:0;overflow:hidden;padding:12px}
.visitor-shell{height:min(790px,calc(var(--visitor-height,100dvh) - 24px));min-height:0}
.visitor-shell .messages{flex:1 1 0;min-height:0;padding:12px;gap:10px}
.visitor-shell .bubble-wrap{flex-shrink:0}
.visitor-shell .visitor-header{padding:10px 14px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 10px;align-items:center}
.visitor-header h2{font-size:17px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.visitor-header>small:not(.availability){grid-column:1/-1;grid-row:2;font-size:12px}
.visitor-header .availability{margin:0;font-size:11px}
.visitor-shell .composer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;padding:6px 10px;padding-bottom:max(6px,env(safe-area-inset-bottom));max-height:38%;flex-shrink:0}
.visitor-shell .composer textarea{font-size:16px;height:42px;min-height:42px;grid-column:1;padding:8px;border:1px solid var(--line)}
.visitor-shell .composer>.row{grid-column:2;grid-row:1}
.visitor-shell .composer #status{display:none}
.visitor-shell .composer button{padding:7px 12px;min-height:40px}
.visitor-shell .media-tools{grid-column:1/-1;margin:0;padding:0;border:0}
.visitor-shell .media-tools>.row{gap:6px;flex-wrap:nowrap}
.visitor-shell .media-tools>.row button{padding:4px 10px;min-height:34px;white-space:nowrap}
.visitor-shell .media-tools>.row small{font-size:10px}
.visitor-shell .media-pending{margin-top:4px;padding:5px}
.visitor-shell .media-preview .chat-media{max-height:64px}
.visitor-shell>#profile-details{padding:4px 12px;max-height:22%}
.visitor-shell>#profile-details[open]{overflow:auto}
.visitor-shell>.visitor-footer{padding:2px 8px;font-size:10px}
.visitor-shell>#error:not(:empty){max-height:10%;overflow:auto;color:#c84e61}
.visitor-fit.visitor-body{padding:0;position:fixed;inset:auto 0;top:var(--visitor-top,0px);width:100%}
.visitor-fit .visitor-shell{height:100%;max-height:none;max-width:none;border:0;border-radius:0}
.visitor-compact .visitor-header{padding:5px 10px}
.visitor-compact .visitor-header>small:not(.availability),.visitor-compact .visitor-shell>footer{display:none}
.visitor-compact .visitor-shell .messages{padding:8px;gap:8px}
.visitor-compact .visitor-shell .composer{max-height:36%}
.visitor-short .visitor-header h2{font-size:14px}
.visitor-short .visitor-shell>#profile-details{display:none}
.visitor-short .visitor-shell .composer{max-height:42%;padding-top:4px;gap:2px 6px}
.visitor-short .visitor-shell .composer textarea{height:36px;min-height:36px}
.visitor-short .visitor-shell .composer button{min-height:34px;padding:4px 10px}
.visitor-short .media-tools>.row small{display:none}
/* Modal editing keeps the work context visible. */
.desk-dialog{width:min(680px,calc(100vw - 24px));max-height:90dvh;padding:18px;border:1px solid var(--line);border-radius:14px;color:var(--ink);box-shadow:0 20px 90px #14233c44;overflow:auto}
.desk-dialog::backdrop{background:#17253e66}.desk-dialog>header{position:sticky;top:-18px;background:#fff;z-index:2;padding:6px 0 12px;border-bottom:1px solid var(--line);margin-bottom:12px}.desk-dialog .panel-form{padding:0;border:0;margin:0;max-width:none}.modal-trigger{margin:10px 8px 10px 0}.desk-dialog .advanced-filters{border:0}.desk-dialog .advanced-filters>summary{display:none}.desk-dialog .multi-options{max-height:230px}.desk-dialog .multi-filter{margin:8px 0}.desk-dialog .advanced-filter-body{display:grid;gap:12px}
.admin-body .desk-dialog .details{display:block;position:static;width:100%;max-width:none;max-height:none;border:0;padding:0;box-shadow:none}.desk-dialog #detail-back{display:none}.admin-body .workspace>.details{display:none}.admin-body .workspace>.desk-dialog{grid-column:auto}
.conversation.has-unread{border-left:4px solid #ed536d;background:#fff7f8}.conversation.has-unread strong{color:#bd2340}.badge{font-weight:700;display:inline-block;min-width:22px}.badge:empty{display:none}.read-receipt{color:#8994a4!important}.read-receipt.read{color:#168266!important}.import-result{color:#b33344;white-space:pre-wrap}.welcome-preview:empty{display:none}.welcome-preview{white-space:pre-wrap}.bubble a{display:inline}.visitor-shell .bubble{min-width:0}.visitor-shell .bubble .chat-media{max-height:min(260px,35vh)}
@media(max-width:760px){.desk-dialog{padding:12px;max-height:94dvh}.admin-body .topbar{gap:6px}.admin-body .topbar small{display:none}#enable-alerts{padding:5px;font-size:11px}.visitor-shell .media-tools>.row{flex-wrap:wrap}.visitor-short .visitor-shell .media-tools>.row{flex-wrap:nowrap}}
/* v2.3.1 media viewing remains inside the current chat page. */
.media-clickable{cursor:zoom-in}.media-open{display:block;max-width:100%;margin-top:6px;padding:5px 8px;font-size:12px;white-space:normal;overflow-wrap:anywhere;background:#ffffffee;color:#2854c6}.media-viewer{width:min(1100px,96vw);max-width:96vw;max-height:94dvh;border:0;border-radius:12px;padding:12px;background:#111827;color:#fff;overflow:auto}.media-viewer::backdrop{background:#000b}.media-viewer header{position:sticky;top:0;z-index:2;background:#111827;padding-bottom:10px;flex-wrap:wrap}.media-viewer strong{min-width:0;overflow-wrap:anywhere;flex:1}.media-viewer-stage{overflow:auto;max-height:75dvh;text-align:center;overscroll-behavior:contain}.media-viewer-stage img,.media-viewer-stage video{display:block;margin:auto;max-width:100%;max-height:75dvh;object-fit:contain}.media-viewer-stage.media-zoomed img{max-width:none;max-height:none}.media-viewer .error{padding-top:8px}.media-viewer .error:empty{display:none}.chat-head #block-visitor{color:#b93850}.visitor-short .media-viewer-stage,.visitor-short .media-viewer-stage video,.visitor-short .media-viewer-stage img{max-height:60dvh}
.reception-editor{border:1px solid var(--line);padding:14px;border-radius:10px;background:#f7f9fd}.reception-choices{max-height:230px;overflow:auto;display:grid;gap:8px}.reception-choices label{margin:0}.reception-choices input{flex:0 0 16px}.reception-editor small{line-height:1.7}
/* v2.4 persistent three-column workbench */
.admin-body .workspace{grid-template-columns:250px minmax(300px,1fr) 270px}
.admin-body .workspace>.details{display:block;position:static;inset:auto;width:auto;min-width:0;max-width:none;height:100%;max-height:none;overflow:auto;border-left:1px solid var(--line);box-shadow:none;padding:14px;background:#fff;grid-column:3;grid-row:1}
.admin-body .workspace.list-collapsed{grid-template-columns:minmax(300px,1fr) 270px}.admin-body .workspace.list-collapsed>.details{grid-column:2}
.admin-body .chat-head,.admin-body .chat-head>.row{flex-wrap:wrap;gap:5px}.admin-body .chat-head button{padding:5px 7px;font-size:12px}
.inbox-tabs{display:flex;gap:4px;margin-top:8px}.inbox-tabs button{flex:1;padding:7px 3px}.inbox-tabs .active{background:#e7eeff;color:#2854c6;border-color:#aac0ff}.online-dot{font-size:10px}.online-dot.online{color:#169575}.online-dot.offline{color:#aab3c0}
.quick-sidebar{padding-bottom:14px;margin-bottom:14px;border-bottom:1px solid var(--line)}#quick-groups{max-height:28vh;overflow:auto}#quick-groups summary{padding:8px 0;font-size:12px}#quick-groups button{display:block;width:100%;text-align:left;margin:4px 0;padding:7px 9px;white-space:normal;overflow-wrap:anywhere}
.label-row{padding:8px;background:#f5f7fb;border:1px solid var(--line);border-radius:8px;margin:8px 0}.label-row>*{width:100%;margin-bottom:4px}.label-row button{padding:4px;font-size:11px}.internal-labels{margin:12px 0}
.admin-body .composer>.tools .reply-mode-buttons #reply-anonymous.active{background:#e6e4ff;border-color:#aba4e7;color:#5c4797}#mention-box{max-height:90px;overflow:auto}#mention-box label{font-size:11px}#mention-users{padding:2px;max-height:54px}
@media(max-width:1200px) and (min-width:761px){.admin-body .workspace{grid-template-columns:200px minmax(240px,1fr) 220px}.admin-body .workspace.list-collapsed{grid-template-columns:minmax(240px,1fr) 220px}.admin-body .sidebar{width:130px}.admin-body .app{grid-template-columns:130px minmax(0,1fr)}}
@media(max-width:760px){.admin-body .workspace,.admin-body .workspace.list-collapsed{display:flex;flex-direction:column;overflow:auto}.admin-body .workspace>.details{display:none;flex:none;height:auto;max-height:none;width:100%;border-left:0;border-top:1px solid var(--line)}.admin-body .workspace.has-chat>.details{display:block}.admin-body .workspace.has-chat>.chat-panel{display:flex;flex:none;height:calc(100dvh - 125px);min-height:380px}.admin-body .workspace>.inbox{flex:1;min-height:0}.admin-body .workspace.has-chat>.inbox{display:none}.admin-body .reply-mode-buttons{flex-wrap:wrap;flex-shrink:1}.admin-body .composer>.tools .reply-mode-buttons button{padding:5px 7px;font-size:11px}.admin-body .chat-head #list-toggle{display:none}}
@media(min-width:761px) and (max-width:1000px){.admin-body .workspace{grid-template-columns:160px minmax(190px,1fr) 190px}.admin-body .workspace.list-collapsed{grid-template-columns:minmax(190px,1fr) 190px}.admin-body .workspace>.details{padding:10px}.admin-body .composer>.tools .reply-mode-buttons{flex-wrap:wrap;flex-shrink:1}}
/* Older messages load on demand; the chat viewport keeps its scroll position. */
.history-more{flex:none;border-radius:0;border-width:0 0 1px;padding:4px 10px;font-size:12px;color:#3868ee;background:#f7f9fd;min-height:26px}.history-more[hidden]{display:none!important}.visitor-shell>.history-more{min-height:26px;padding:2px 8px}.admin-body .history-more{align-self:stretch}
/* Full channel names remain readable, including long domains and narrow lists. */
.admin-body .conversation-meta{flex-wrap:wrap;align-items:flex-start;gap:5px}.admin-body .conversation-meta .channel-name{display:block;flex:1 0 100%;width:100%;max-width:100%;min-width:0;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;word-break:break-word;text-align:left;line-height:1.5;border-radius:7px}.admin-body .conversation-meta>small{white-space:normal;max-width:100%;overflow-wrap:anywhere}.admin-body #filter-button[hidden]{display:none!important}

/* v2.5.0 rich welcome editor */
[hidden]{display:none!important}.rich-content{min-height:180px;max-height:360px;overflow:auto;padding:14px;border:1px solid #ccd5e3;border-radius:10px;background:white;white-space:pre-wrap;overflow-wrap:anywhere}.rich-content:focus{outline:2px solid #3868ee}.rich-toolbar{flex-wrap:wrap}.rich-controls>.row{flex-wrap:wrap;margin:8px 0}.rich-url{flex:1;min-width:160px}.welcome-preview p,.rich-content p{margin:0 0 8px}.welcome-preview a{display:inline}.welcome-editor .chat-media{max-height:200px}

/* Source-authored content is contained within the message/editor. */
.rich-source{width:100%;min-height:300px;max-height:60vh;resize:vertical;font:13px/1.6 ui-monospace,Consolas,monospace;white-space:pre;overflow:auto;tab-size:2}.source-status{font-size:12px;color:#936329;overflow-wrap:anywhere}.source-html.active,.source-visual.active{background:#edf2ff;color:#3868ee;border-color:#3868ee}.desk-rich-content{max-width:100%;overflow:auto;contain:paint;isolation:isolate;white-space:pre-wrap}.desk-rich-content table{white-space:normal;max-width:100%;font-size:inherit}.desk-rich-content td,.desk-rich-content th{padding:6px;overflow-wrap:anywhere}.desk-rich-content img,.desk-rich-content video{max-width:100%!important;height:auto!important;object-fit:contain}.desk-rich-content a{display:inline;font-size:inherit;margin-top:0}.desk-rich-content p{margin-bottom:8px}.desk-rich-content h1,.desk-rich-content h2,.desk-rich-content h3{line-height:1.4}.rich-source:focus{outline:2px solid #3868ee}

.reply-bulk-tools{margin:12px 0;flex-wrap:wrap}#reply-select-all,[data-select-reply]{width:18px;height:18px;min-height:0;cursor:pointer}

.visitor-verification{box-sizing:border-box;width:min(94vw,420px);max-height:90dvh;overflow:auto;border:0;border-radius:16px;padding:24px;color:#183448;background:#fff}.visitor-verification::backdrop{background:#142d43d9}.visitor-verification small{display:block;margin-top:14px}.captcha-widget{min-height:70px;width:100%}

/* v2.6.4 operations and reports */
.page-actions{flex-wrap:wrap;margin:12px 0 20px;gap:10px}.page-actions .row{margin:0}.report-section{padding:20px;background:white;border:1px solid #e3eaf5;border-radius:16px;margin-bottom:24px}.report-filters{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.report-filters label{display:grid;gap:6px}.report-filters input,.report-filters select{min-width:180px}.report-definitions{margin:16px 0;line-height:1.8}.sla-warning{display:inline-block;background:#fff0e4;color:#a33b00;border:1px solid #ffbd85;padding:3px 8px;border-radius:6px;font-size:12px;margin-top:6px}.order-row{padding:8px;border-bottom:1px solid #edf1f7}.order-row strong{flex:1}.report-section td,.report-section th{white-space:nowrap}

[hidden]{display:none!important}.row-actions{flex-wrap:wrap}.row-actions label{min-width:220px;max-width:420px}.row-actions>span{flex-wrap:wrap}.sidebar{overflow-y:auto}.cards{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}
/* v2.6.6: consistent console surfaces, accessible controls, compact conversation layout */
:root{--bg:#f3f6fc;--ink:#20304b;--muted:#687991;--line:#e2e9f3;--blue:#365de9;--light:#eef2ff}
.admin-body{background:var(--bg);-webkit-font-smoothing:antialiased}
.admin-body button{transition:background .15s,border-color .15s,box-shadow .15s;border-radius:10px}
.admin-body button:focus-visible,.admin-body summary:focus-visible{outline:3px solid #9bafff;outline-offset:2px}
.admin-body .sidebar{background:linear-gradient(180deg,#fff,#f7f9ff);border-right:1px solid var(--line);gap:5px;padding:24px 14px}
.admin-body .sidebar .brand{font-size:20px;margin-bottom:24px}.admin-body .nav{font-size:14px;padding:11px 14px;border-radius:11px}.admin-body .nav.active{background:#e9eeff;box-shadow:inset 3px 0 #365de9;color:#294dc9}
.admin-body .topbar{background:#ffffffed;min-height:78px;border-bottom:1px solid var(--line)}.admin-body .topbar h2{letter-spacing:.3px}.admin-body .topbar small{font-size:11px;letter-spacing:.8px}
.admin-body .heading h1{font-size:23px;line-height:1.4}.admin-body .heading p{margin-top:7px;max-width:980px;line-height:1.7}
.admin-body .card{border:1px solid var(--line);box-shadow:0 5px 20px #243d7510;border-radius:15px}.admin-body .number{font-variant-numeric:tabular-nums;color:#294dc9}
.admin-body .table-wrap{box-shadow:0 3px 15px #243d7508}.admin-body th{background:#f7f9fd;color:#526580;font-weight:600}.admin-body tbody tr:hover{background:#f7f9ff}.admin-body td{vertical-align:middle}
.admin-body .page-actions{padding:14px;background:#fff;border:1px solid var(--line);border-radius:13px;align-items:center}.admin-body .row-actions{gap:8px}.admin-body .page-actions label{font-size:12px;color:var(--muted)}
.admin-body .desk-dialog{border:1px solid var(--line);border-radius:18px;box-shadow:0 28px 90px #14264c40;padding:24px;max-height:90dvh}.admin-body .desk-dialog::backdrop{background:#15243f66;backdrop-filter:blur(3px)}.admin-body .desk-dialog>header{padding-bottom:16px;margin-bottom:18px;border-bottom:1px solid var(--line)}
.history-range{border:1px solid #dce4fa;border-radius:12px;padding:14px;background:#f8faff;display:grid;gap:10px;min-width:0}.history-range legend{font-weight:600;color:#3653a0;padding:0 7px}.history-range label{display:grid;gap:6px;font-size:13px}.history-range input{font-variant-numeric:tabular-nums}.history-range small{font-size:12px;line-height:1.7}.history-range .row{flex-wrap:wrap}
.admin-body .workspace{border-radius:15px;box-shadow:0 4px 24px #243d750a}.admin-body .conversation{border-radius:10px;margin:4px 6px;width:calc(100% - 12px);border:1px solid transparent}.admin-body .conversation.selected{background:#edf2ff;border-color:#cbd7ff}.admin-body .conversation.has-unread{box-shadow:inset 3px 0 #365de9}.admin-body .conversation .preview{line-height:1.55}.admin-body .chat-head{background:#fff}.admin-body .messages{background:#f6f8fc}.admin-body .bubble{box-shadow:0 2px 6px #243d7506}.admin-body .details{background:#fcfdff}.admin-body .details h3{color:#344b71}.admin-body .composer{background:#fff}.admin-body .reply-mode-buttons button.active{box-shadow:none;background:#e9eeff;color:#294dc9;border-color:#cbd7ff}.admin-body .sla-warning{font-weight:600}
@media(max-width:900px){.admin-body .desk-dialog{padding:16px;width:calc(100% - 24px);max-width:calc(100% - 24px)}.admin-body .page-actions{padding:10px}.admin-body .row-actions label{min-width:160px;max-width:100%}.admin-body .heading h1{font-size:20px}}
@media(prefers-reduced-motion:reduce){.admin-body button{transition:none}}

/* v2.7.0 account themes and rule controls */
.admin-body{--surface:#fff;--soft:#f7f9fd;--field:#fff;--bubble:#fff}
.admin-body[data-theme="day"]{--bg:#fafafa;--ink:#182026;--muted:#586570;--line:#dce2e8;--blue:#2459d3;--light:#eaf0ff;--surface:#fff;--soft:#f7f8fa}
.admin-body[data-theme="eye"]{--bg:#e7efe4;--ink:#253f31;--muted:#526c59;--line:#c4d4bf;--blue:#36714d;--light:#d8e8d3;--surface:#f0f6e9;--soft:#e5efde;--field:#f7faef;--bubble:#f0f6e9}
.admin-body[data-theme="night"]{color-scheme:dark;--bg:#141b26;--ink:#e1e8f3;--muted:#a3b0c5;--line:#354158;--blue:#547de0;--light:#283a59;--surface:#1d2839;--soft:#172130;--field:#233046;--bubble:#27364c}
.admin-body[data-theme]:not([data-theme="normal"]) :is(.sidebar,.topbar,.card,.table-wrap,.workspace,.chat-head,.composer,.details,.panel-form,.inbox,.conversation,dialog,.modal-head,.modal-bar,.modal-titlebar,.multi-filter,.multi-options,.quick-replies,.internal-labels,.visitor-details,.filters,.list-pages,.heading){background:var(--surface);color:var(--ink);border-color:var(--line)}
.admin-body[data-theme]:not([data-theme="normal"]) :is(th,.messages,.media-pending,.advanced-filter-body,.security-events){background:var(--soft);color:var(--ink)}
.admin-body[data-theme]:not([data-theme="normal"]) :is(input,select,textarea,button,.bubble){background:var(--field);color:var(--ink);border-color:var(--line)}
.admin-body[data-theme]:not([data-theme="normal"]) :is(.primary,.mine .bubble){background:var(--blue);color:#fff}
.admin-body[data-theme]:not([data-theme="normal"]) :is(.nav.active,.conversation.selected,button:hover,.pill){background:var(--light);color:var(--ink)}
.feature-tools270{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:10px 0 18px}.feature-tools270 select{width:auto;max-width:100%}.rules270{max-width:800px!important}.button-row270{display:grid;grid-template-columns:1fr 110px 2fr auto;gap:8px;margin:10px 0}.tag-chips270{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}.tag-chips270 span{border:1px solid;padding:2px 9px;border-radius:12px}.interactive270{display:inline-block;margin:8px 6px 0 0;border-color:var(--blue);color:var(--blue);white-space:normal}.history-boundary270{border-top:1px dashed var(--line);padding-top:8px}.prechat270{width:min(420px,90vw);border:1px solid var(--line);border-radius:16px;padding:24px}.prechat270 h2{margin-bottom:18px}#theme270{width:auto;max-width:130px}.rules270 .reply-body{white-space:pre-wrap;max-width:400px;overflow-wrap:anywhere}.rules270 input[type=color]{height:42px}.internal-compose #chat-buttons270{display:none}@media(max-width:650px){.button-row270{grid-template-columns:1fr 1fr}.button-row270 [data-value]{grid-column:1/-1}.feature-tools270{gap:6px}.rules270{padding:14px}.topbar #theme270{max-width:90px}}

.admin-body[data-theme="night"] :is(h1,h2,h3,h4,h5,h6,.details h3,.quick-replies h3){color:var(--ink)}
.admin-body[data-theme="night"] :is(.danger,#block-visitor,.error){color:#ffb4be}

#visitor-shortcuts271{display:flex;flex-wrap:wrap;gap:8px;padding:8px 14px;max-height:120px;overflow:auto;border-top:1px solid var(--line);flex-shrink:0;background:var(--surface,#fff)}#visitor-shortcuts271[hidden]{display:none}#visitor-shortcuts271 .interactive270{margin:0;max-width:100%;overflow-wrap:anywhere}.conversation-list{overflow-anchor:none}
/* Keep the pre-chat dialog out of flex layout and within the visible keyboard viewport. */
.visitor-body>dialog.prechat270{position:fixed;inset:0;margin:auto;box-sizing:border-box;width:min(420px,calc(100% - 24px));max-width:calc(100% - 24px);max-height:calc(var(--visitor-height,100dvh) - 24px);height:fit-content;overflow:auto;overscroll-behavior:contain;flex:none;min-width:0;padding:20px;color:var(--ink);background:#fff}
.prechat270::backdrop{background:#15243f66}.prechat270 h2{font-size:20px;line-height:1.4;overflow-wrap:anywhere}.prechat270 form,.prechat270 label{min-width:0;max-width:100%}.prechat270 label{display:grid;gap:6px;overflow-wrap:anywhere}.prechat270 input{font-size:16px;min-width:0;width:100%;box-sizing:border-box}.prechat270 button{width:100%;min-height:42px}.prechat-open272 .visitor-shell{min-width:0;flex-shrink:0}
.prechat-card272{flex:none;padding:10px 14px;max-height:150px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;border-bottom:1px solid var(--line);background:var(--surface,#f7f9fd);font-size:13px}.prechat-card272 strong{display:block;margin-bottom:5px}
.label-options272{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.label-options272 label{display:flex;align-items:center;gap:5px;cursor:pointer}.label-options272 input{width:18px;height:18px;flex:none}.label-options272 span{border:1px solid;border-radius:12px;padding:2px 8px;overflow-wrap:anywhere}.internal-labels>small{display:block}.internal-labels button[hidden]{display:none}
@media(max-height:420px){.visitor-body>dialog.prechat270{padding:12px}.prechat270 h2{margin:0 0 8px;font-size:17px}.prechat270 form{gap:8px}}

.chat-head{flex-wrap:wrap}.chat-labels275{display:flex;flex-wrap:wrap;gap:6px;flex-basis:100%;max-height:96px;overflow:auto}.chat-labels275[hidden]{display:none}.chat-labels275 .pill{border:1px solid;max-width:100%;overflow-wrap:anywhere;white-space:normal}

.batch-domains277{max-height:42vh;overflow:auto;display:grid;gap:.4rem}.batch-domains277 label{display:flex;align-items:center;gap:.5rem}.batch-domains277 input{width:auto}

/* v2.7.9: responsive conversation-first workspace. */
.admin-body .topbar{min-height:58px;height:auto;padding:8px 14px;gap:8px;flex-wrap:wrap}.admin-body .topbar h2{font-size:19px;margin:0}.admin-body .topbar small{font-size:11px}.admin-body .topbar select{width:auto;max-width:130px;padding:6px}
.admin-body .view{padding:8px;min-height:0}.admin-body .workspace{height:calc(100dvh - 86px);border-radius:8px}.admin-body .chat-head{min-height:52px;padding:8px 12px}.admin-body .messages{padding:12px 16px;gap:10px}.admin-body .bubble,.visitor-body .bubble{font-size:16px;line-height:1.6;padding:8px 12px}.admin-body .bubble-wrap small,.visitor-body .bubble-wrap small{font-size:12px}.admin-body .composer{padding:8px 12px;gap:6px}.admin-body .composer textarea{min-height:48px;font-size:16px}.admin-body .conversation{padding:10px}.admin-body .conversation .preview{font-size:14px;margin:4px 0}.admin-body .details{padding:12px}.admin-body .filters{padding:8px}.admin-body .media-tools{margin-top:4px;padding-top:4px}.admin-body .prechat-card272{max-height:90px}
@media(min-width:1201px){.admin-body .app{grid-template-columns:148px minmax(0,1fr)}.admin-body .workspace{grid-template-columns:clamp(230px,19vw,310px) minmax(0,1fr) clamp(210px,17vw,270px)}}
@media(min-width:761px) and (max-width:1200px){.admin-body .workspace{grid-template-columns:230px minmax(0,1fr)}.admin-body .workspace.show-details{grid-template-columns:1fr}}
@media(max-width:760px){.admin-body .workspace{height:calc(100dvh - 156px)}.admin-body .topbar select{max-width:100px}.admin-body .messages{padding:10px}.admin-body .bubble{font-size:16px}}
@media(max-height:700px) and (min-width:761px){.admin-body .topbar small{display:none}.admin-body .composer textarea{min-height:36px}.admin-body .chat-labels275{max-height:42px}.admin-body .workspace{height:calc(100dvh - 78px)}}

/* Use the available viewport after the toolbar wraps, including browser zoom. */
@media(min-width:761px){.admin-body .workspace{height:100%}.admin-body .workspace.list-collapsed{grid-template-columns:minmax(0,1fr) clamp(200px,17vw,270px)}}
@media(min-width:761px) and (max-width:1200px){.admin-body .workspace,.admin-body .workspace.show-details{grid-template-columns:180px minmax(0,1fr) 200px}.admin-body .workspace.list-collapsed{grid-template-columns:minmax(0,1fr) 200px}.admin-body .workspace>.details{grid-column:3;display:block}.admin-body .workspace.list-collapsed>.details{grid-column:2}.admin-body .workspace.show-details .chat-panel,.admin-body .workspace.show-details .inbox{display:flex}}
.visitor-header #language279{margin-top:8px;width:auto;max-width:100%;padding:5px 9px;font-size:14px}

/* v2.7.10: one shared sidebar width; labels never squeeze the grid track. */
@media(min-width:761px){
 .admin-body .app{--sidebar-width:clamp(224px,16vw,256px);grid-template-columns:var(--sidebar-width) minmax(0,1fr)}
 .admin-body .sidebar{width:100%;min-width:0;max-width:100%;padding:18px 12px;overflow-x:hidden;overflow-y:auto;scrollbar-gutter:stable;gap:5px}
 .admin-body .sidebar>*{flex-shrink:0}
 .admin-body .sidebar .brand{font-size:20px;letter-spacing:-.5px;margin:0 0 18px;white-space:nowrap}
 .admin-body .nav{display:grid;grid-template-columns:20px minmax(0,1fr);align-items:center;gap:10px;width:100%;min-width:0;padding:10px 12px;font-size:14px;line-height:1.55;white-space:normal;text-align:left}
 .admin-body .nav-label{min-width:0;word-break:normal;overflow-wrap:break-word}
 .admin-body .nav-icon{text-align:center;font-size:15px}
 .admin-body .sidebar .foot{min-width:0;margin-top:auto;padding-top:12px}
 .admin-body .sidebar .foot strong{display:block;overflow-wrap:anywhere}
 .admin-body .sidebar .foot small{display:block;white-space:normal}
 .admin-body .sidebar .foot br{display:none}
 .admin-body .topbar>.row{min-width:0;flex-wrap:wrap}
}
@media(min-width:761px) and (max-width:1200px){
 .admin-body .workspace,.admin-body .workspace.show-details{grid-template-columns:180px minmax(0,1fr)}
 .admin-body .workspace.list-collapsed{grid-template-columns:minmax(0,1fr)}
 .admin-body .workspace>.details{display:none;position:absolute;inset:0 0 0 auto;width:min(320px,100%);height:100%;grid-column:auto;grid-row:auto;z-index:5;box-shadow:-8px 0 24px #18273d18}
 .admin-body .workspace.show-details>.details{display:block}
 .admin-body .workspace.show-details .chat-panel,.admin-body .workspace.show-details .inbox{display:flex}
 .admin-body .workspace.list-collapsed>.inbox{display:none}
 .admin-body #detail-toggle,.admin-body #detail-back{display:inline-block}
}
@media(max-width:760px){
 .admin-body .sidebar{width:100%;min-width:0;padding:8px;gap:5px;overflow-x:auto;overflow-y:hidden;scrollbar-gutter:auto}
 .admin-body .sidebar>*{flex-shrink:0}
 .admin-body .sidebar .brand{font-size:0;margin:0}
 .admin-body .sidebar .brand i{font-size:18px;margin:0}
 .admin-body .nav{display:flex;align-items:center;gap:6px;width:auto;padding:8px;white-space:nowrap}
 .admin-body .topbar>.row{flex-wrap:wrap;min-width:0}
}

@media(min-width:1201px),(max-width:760px){.admin-body #detail-toggle,.admin-body #detail-back{display:none}}
