:root{--bg:#f5f8ff;--surface:#fff;--text:#111b35;--muted:#69758c;--line:#dce4f1;--blue:#0758ff;--blue-soft:#e7efff;--green:#279c39;--red:#c22d43;--radius:10px;color-scheme:light;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;color:var(--text);background:var(--bg);font-synthesis:none}*{box-sizing:border-box}body{margin:0;font-size:14px;line-height:1.55}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #a8c6ff;outline-offset:2px}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}h1,h2,h3,p{margin-top:0}h1{font-size:26px;line-height:1.25;margin-bottom:0;letter-spacing:-.5px}h2{font-size:19px;line-height:1.4;margin-bottom:16px}h3{font-size:15px;margin-bottom:12px}small,.muted{color:var(--muted)}small{font-size:12px}strong{font-weight:650}button,input,select,textarea{border-radius:8px}input,select,textarea{background:#fff;border:1px solid #cbd6e9;padding:9px 11px;min-height:40px;max-width:100%}textarea{resize:vertical;line-height:1.6}input[type=checkbox]{min-height:0;width:17px;height:17px;accent-color:var(--blue);padding:0;margin:0 6px 0 0;vertical-align:middle}label{display:flex;flex-direction:column;gap:6px;font-weight:500}label small{font-weight:400}.check{flex-direction:row;align-items:center;font-weight:400}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #c6d4ec;background:#fff;min-height:40px;padding:8px 15px;font-weight:550;white-space:nowrap}.btn:hover{background:#f2f6ff}.btn.primary{border-color:var(--blue);background:var(--blue);color:#fff}.btn.primary:hover{background:#0047da}.btn.danger{color:var(--red);border-color:#efc9d0}.btn.quiet{border-color:transparent;background:transparent;color:var(--muted)}.btn.quiet:hover{background:var(--blue-soft);color:var(--blue)}.btn.sm{font-size:12px;min-height:32px;padding:4px 9px}.icon{width:22px;height:22px;flex:none;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}.icon-btn{width:40px;min-height:40px;padding:8px}.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.row.between{justify-content:space-between}.stack{display:flex;flex-direction:column;gap:16px}.full{width:100%}.hidden,[hidden]{display:none!important}.brand{display:block;color:var(--blue);font-size:38px;line-height:1.05;letter-spacing:-2px;font-weight:800}.boot{display:grid;place-content:center;min-height:100dvh;text-align:center;gap:18px}.shell{display:grid;grid-template-columns:200px minmax(0,1fr);height:100dvh;overflow:hidden}.sidebar{display:flex;flex-direction:column;background:linear-gradient(150deg,#f0f5ff,#f8faff);border-right:1px solid var(--line);padding:22px 10px 12px;min-height:0}.brand-link{padding:0 15px 28px;color:var(--text)}.brand-link:hover{text-decoration:none}.brand-domain{font-size:13px;display:block;margin-top:6px;letter-spacing:0;color:var(--text)}.nav{display:flex;flex-direction:column;gap:5px}.nav button,.nav a{display:flex;align-items:center;gap:13px;min-height:46px;padding:10px 13px;border:0;background:none;color:var(--text);border-radius:8px;font-weight:550;font-size:15px;text-decoration:none;text-align:left}.nav button:hover,.nav a:hover{background:#e9f0fc}.nav .active{background:#d9e7ff;color:var(--blue)}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--line);padding:16px 4px 0}.account-line{display:flex;align-items:center;gap:10px;padding:0 8px 12px;min-width:0}.avatar{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:50%;background:#e8eef9;color:#4e6185;font-size:14px;font-weight:600}.account-copy{min-width:0}.account-copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.status-dot{display:inline-block;width:8px;height:8px;margin-right:6px;border-radius:50%;background:#98a3b5}.status-dot.online{background:var(--green)}.status-dot.away{background:#e6a223}.workspace{min-width:0;display:flex;flex-direction:column;overflow:hidden}.topbar{min-height:73px;flex:none;border-bottom:1px solid var(--line);background:#fff;display:flex;justify-content:space-between;align-items:center;padding:14px 24px;gap:12px}.topbar-title{display:flex;align-items:center;gap:18px;min-width:0}.topbar-title p{margin:0;color:var(--muted);font-size:15px}.topbar-actions{display:flex;align-items:center;gap:10px}.presence{position:relative}.presence select{padding-left:30px;min-width:110px}.presence .status-dot{position:absolute;left:13px;top:17px;pointer-events:none}.mobile-menu{display:none}.content{flex:1;min-height:0;overflow:auto}.notice{padding:10px 16px;border:1px solid #eedcaa;border-radius:8px;background:#fffbef;color:#805a12;font-size:13px}.error{background:#fff2f4;border-color:#f0c2cb;color:#ad243b}.inline-error{font-size:13px;color:var(--red);margin:8px 0 0;white-space:pre-wrap}.global-error{margin:10px 12px 0;flex:none}.toast{position:fixed;z-index:80;bottom:24px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 32px);padding:12px 20px;border-radius:10px;box-shadow:0 6px 25px #172a4e29;background:#152341;color:white;pointer-events:none}.panel{border:1px solid var(--line);border-radius:var(--radius);background:#fff}.inbox{display:grid;grid-template-columns:310px minmax(340px,1fr) 280px;gap:8px;height:100%;min-height:0;padding:10px}.conversation-list{display:flex;flex-direction:column;min-height:0;overflow:hidden}.list-tools{padding:15px 14px 10px;flex:none}.search-wrap{position:relative}.search-wrap input{padding-left:35px;width:100%;font-size:13px}.search-wrap .icon{position:absolute;left:10px;top:10px;width:19px;height:19px;color:#71809d}.queue-tabs{display:flex;border-bottom:1px solid var(--line);padding:0 12px}.queue-tabs button{border:0;border-bottom:2px solid transparent;border-radius:0;background:none;flex:1;padding:13px 4px;color:var(--text);font-weight:550;font-size:13px}.queue-tabs button.active{color:var(--blue);border-bottom-color:var(--blue)}.list-filters{padding:12px 14px;display:grid;grid-template-columns:1fr;gap:9px}.list-filters label{font-size:12px;flex-direction:row;align-items:center;gap:8px}.list-filters select{font-size:12px;min-height:34px;padding:5px 8px;flex:1;min-width:0}.list-scroll{overflow:auto;flex:1;min-height:0;padding:0 5px}.conversation-row{display:block;width:100%;border:0;border-left:3px solid transparent;background:white;text-align:left;padding:14px 12px;border-radius:7px}.conversation-row+.conversation-row{border-top:1px solid #eef2f8}.conversation-row:hover{background:#f6f8fe}.conversation-row.active{border-left-color:var(--blue);background:var(--blue-soft)}.conversation-row .row-head{display:flex;align-items:center;gap:7px}.conversation-row .row-name{font-weight:650;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;flex:1}.conversation-row time{font-size:11px;color:var(--muted);white-space:nowrap}.conversation-row p{margin:7px 0 0;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.badge{display:inline-flex;align-items:center;gap:4px;border-radius:5px;padding:2px 7px;color:var(--blue);background:var(--blue-soft);font-size:11px;font-weight:550;white-space:nowrap}.badge.gray{background:#eff2f7;color:#66738a}.badge.green{background:#eaf8ee;color:#257a36}.badge.yellow{background:#fff3d5;color:#936812}.badge.red{background:#fff0f2;color:var(--red)}.unread{background:var(--blue);color:#fff;border-radius:20px;min-width:17px;text-align:center;font-size:10px;padding:1px 4px}.list-foot{border-top:1px solid var(--line);padding:10px;display:flex;gap:7px;align-items:center;justify-content:space-between;flex:none}.list-foot small{font-size:11px}.empty{display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:30px 22px;min-height:160px;color:var(--muted);gap:9px}.empty .icon{height:38px;width:38px;color:#a4b4cf;stroke-width:1.3}.empty p{max-width:320px;margin:0}.chat{min-height:0;display:flex;flex-direction:column;overflow:hidden}.chat-header{padding:15px 18px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);gap:10px;flex:none}.chat-header h2{margin:0 0 5px;font-size:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-person{min-width:0}.chat-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}.chat-actions .btn{min-height:34px;font-size:12px;padding:6px 10px}.messages{padding:20px 18px;overflow:auto;flex:1;min-height:0;overscroll-behavior:contain;scroll-behavior:auto}.message{display:flex;gap:9px;margin:0 0 18px;max-width:91%;align-items:flex-start}.message.outgoing{margin-left:auto;flex-direction:row-reverse}.message-body{min-width:0}.message-bubble{white-space:pre-wrap;overflow-wrap:anywhere;background:#edf1f7;padding:10px 13px;border-radius:11px;color:var(--text);font-size:14px}.message.outgoing .message-bubble{background:var(--blue);color:#fff}.message.note .message-bubble{background:#fff5d9;color:#6b4e18;border:1px solid #f2e0ad}.message .avatar{width:29px;height:29px;font-size:11px}.message-meta{font-size:10px;color:var(--muted);margin:5px 2px 0;display:flex;gap:7px;flex-wrap:wrap}.outgoing .message-meta{justify-content:flex-end}.message-system{margin:14px auto 18px;text-align:center;color:var(--muted);font-size:11px;max-width:90%}.message-system span{display:inline-block;background:#f2f5fa;border-radius:7px;padding:5px 10px}.composer{border-top:1px solid var(--line);padding:13px 15px 15px;flex:none;background:#fff}.composer textarea{width:100%;min-height:86px;max-height:180px;resize:none;display:block}.compose-bar{margin-top:10px;display:flex;align-items:center;justify-content:space-between;gap:8px}.compose-bar .check{font-size:12px}.compose-bar small{font-size:10px}.compose-error{margin:8px 0 0}.connection{font-size:11px;display:flex;align-items:center;gap:5px;color:var(--muted)}.connection.degraded{color:#9b6c16}.chat-empty{height:100%}.details{min-height:0;display:flex;flex-direction:column;gap:10px;overflow:auto}.detail-section{padding:17px 16px}.detail-section h2{font-size:17px;margin-bottom:14px}.detail-list{margin:0}.detail-list>div{display:grid;grid-template-columns:82px minmax(0,1fr);gap:8px;padding:10px 0;border-top:1px solid var(--line);font-size:12px}.detail-list dt{color:var(--muted)}.detail-list dd{margin:0;overflow-wrap:anywhere}.detail-json{font:11px/1.65 ui-monospace,monospace;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0 0;max-height:180px;overflow:auto;color:#52607a}.timeline{margin:0;padding:0 0 0 7px;list-style:none}.timeline li{position:relative;padding:0 0 18px 20px;border-left:1px solid #c9d5e8}.timeline li:last-child{padding-bottom:0;border-left-color:transparent}.timeline li:before{content:"";position:absolute;left:-5px;top:5px;width:9px;height:9px;background:#b7c5d9;border-radius:50%}.timeline li:first-child:before{background:var(--blue)}.timeline strong{font-size:12px}.timeline p{font-size:11px;margin:3px 0 0;color:var(--muted);overflow-wrap:anywhere}.detail-close,.mobile-back{display:none}.data-page{padding:24px;max-width:1500px;margin:auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.page-heading h2{margin:0}.page-heading p{margin:6px 0 0;font-size:13px;color:var(--muted)}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;text-align:left;font-size:13px;min-width:580px}.data-table th{font-size:12px;color:var(--muted);font-weight:500;background:#f9fbff;padding:12px 15px;border-bottom:1px solid var(--line);white-space:nowrap}.data-table td{padding:14px 15px;border-bottom:1px solid #edf1f7;vertical-align:top}.data-table tr:last-child td{border-bottom:0}.data-table .cell-main{font-weight:600}.data-table small{display:block;max-width:380px;overflow-wrap:anywhere}.toolbar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;margin-bottom:20px}.toolbar label{font-size:12px;min-width:130px}.toolbar input,.toolbar select{font-size:13px}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.metric{padding:18px 20px;border-left:3px solid #cbdcff;background:#fff;border-radius:0 8px 8px 0}.metric span{display:block;color:var(--muted);font-size:12px}.metric strong{font-size:29px;display:block;line-height:1.25;margin:9px 0 5px;letter-spacing:-.6px}.metric small{font-size:11px}.section-title{margin:24px 0 12px}.report-summary{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:22px}.summary-panel{padding:20px}.summary-panel dl{margin:0}.summary-panel dl>div{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:9px 0;border-bottom:1px solid #edf1f7}.summary-panel dt{color:var(--muted);font-size:13px}.summary-panel dd{margin:0;font-weight:600}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.field-grid .span-2{grid-column:span 2}.form-panel{padding:22px;max-width:700px}.form-panel label{font-size:13px}.form-panel .form-actions{margin-top:22px}.form-actions{display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap}.section-note{font-size:12px;color:var(--muted);margin-bottom:18px}.check-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:12px;border:1px solid var(--line);border-radius:8px}.check-grid .check{font-size:12px;overflow-wrap:anywhere}.key-value{display:block;padding:15px;background:#f5f8ff;border:1px solid #cbdcff;border-radius:8px;white-space:pre-wrap;overflow-wrap:anywhere;font-family:ui-monospace,monospace;font-size:12px;user-select:all}.login-page{min-height:100dvh;display:grid;grid-template-columns:1fr minmax(330px,440px);gap:60px;align-items:center;padding:60px max(6vw,24px);max-width:1440px;margin:auto}.login-intro .brand{font-size:62px;letter-spacing:-3px;margin-bottom:28px}.login-intro h1{font-size:38px;line-height:1.4;max-width:550px;margin-bottom:16px}.login-intro p{font-size:17px;color:var(--muted);max-width:470px;line-height:1.9}.login-links{display:flex;gap:24px;margin-top:30px;font-size:14px}.login-card{padding:34px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 20px 60px #345b9910}.login-card h2{font-size:24px;margin-bottom:8px}.login-card>p{font-size:13px;color:var(--muted);margin-bottom:26px}.login-card form{display:flex;flex-direction:column;gap:18px}.login-card .btn{min-height:43px}.password-page{max-width:560px;margin:50px auto;padding:0 20px}.password-page .panel{padding:28px}.password-page .brand{margin-bottom:24px}.password-page p{color:var(--muted);font-size:13px}dialog{padding:0;border:1px solid var(--line);border-radius:13px;box-shadow:0 20px 90px #12234033;color:var(--text);width:min(590px,calc(100vw - 30px));max-height:calc(100dvh - 36px);overflow:hidden}dialog::backdrop{background:#11234059;backdrop-filter:blur(2px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:17px 20px;border-bottom:1px solid var(--line)}.dialog-head h2{margin:0;font-size:19px}.dialog-content{padding:22px;overflow:auto;max-height:calc(100dvh - 190px)}.dialog-content form{display:flex;flex-direction:column;gap:16px}.dialog-footer{padding:15px 20px;border-top:1px solid var(--line);background:#fbfcff}.dialog-content .notice{margin-bottom:8px}.menu-scrim{display:none}.audit-data{max-width:420px;font-size:11px;white-space:pre-wrap;overflow-wrap:anywhere}.service-checks{list-style:none;margin:0;padding:0}.service-checks li{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 0;border-bottom:1px solid var(--line)}
@media(min-width:1700px){.inbox{grid-template-columns:340px minmax(420px,1fr) 310px}.message-bubble{font-size:15px}.chat-header{padding:19px 22px}}
@media(max-width:1340px){.inbox{grid-template-columns:285px minmax(330px,1fr)}.details{display:none}.details.open{display:flex;position:fixed;z-index:50;inset:74px 0 0 auto;width:320px;background:var(--bg);padding:10px;box-shadow:-8px 0 32px #182e5a1f}.detail-close{display:flex;justify-content:flex-end}.topbar-title p{display:none}.chat-header{padding:13px}.chat-actions{max-width:220px}.metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1000px){.shell{grid-template-columns:172px minmax(0,1fr)}.sidebar{padding-left:7px;padding-right:7px}.nav button,.nav a{font-size:13px;gap:9px;padding-left:10px}.brand-link{padding-left:11px}.inbox{grid-template-columns:250px minmax(0,1fr);gap:5px;padding:7px}.chat-actions{max-width:170px}.chat-header h2{font-size:17px}.topbar{padding:14px 18px}.chat-actions .btn{font-size:11px;padding:5px 7px}.chat-person .badge{font-size:10px}.messages{padding:16px 11px}.message{max-width:96%}.message-bubble{font-size:13px}.composer{padding:10px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.data-page{padding:20px}}
@media(max-width:760px){body{font-size:14px}.shell{display:block;height:100dvh}.sidebar{position:fixed;inset:0 auto 0 0;z-index:70;width:228px;transform:translateX(-100%);transition:transform .18s ease}.sidebar.open{transform:translateX(0)}.sidebar.open+.menu-scrim{display:block;position:fixed;inset:0;z-index:65;background:#1426456b;border:0}.mobile-menu{display:inline-flex}.workspace{height:100dvh}.topbar{min-height:62px;padding:10px 12px;gap:5px}.topbar h1{font-size:19px;letter-spacing:0}.topbar-title{gap:8px}.topbar-actions{gap:6px}.presence select{font-size:12px;min-width:90px;min-height:36px;padding-top:7px;padding-bottom:7px}.presence .status-dot{top:15px}.topbar-actions .connection{display:none}.inbox{display:block;padding:7px;height:100%}.conversation-list{height:100%}.chat{display:none;height:100%}.inbox.has-selection .conversation-list{display:none}.inbox.has-selection .chat{display:flex}.mobile-back{display:inline-flex;flex:none}.chat-header{padding:10px;gap:6px;align-items:flex-start}.chat-header h2{font-size:17px;max-width:160px}.chat-header .mobile-back{padding:6px;width:32px;min-height:32px;margin-left:-4px}.chat-actions{max-width:155px;gap:4px}.chat-actions .btn{min-height:30px;padding:4px 7px;font-size:11px}.chat-header-main{display:flex;align-items:flex-start;gap:3px;min-width:0}.chat-person{padding-top:2px}.messages{padding:16px 12px}.message-bubble{font-size:14px}.message .avatar{width:27px;height:27px}.message{gap:6px}.composer{padding:10px 11px max(10px,env(safe-area-inset-bottom))}.composer textarea{min-height:72px;max-height:125px;font-size:14px}.compose-bar{margin-top:7px}.compose-bar small{display:none}.compose-bar .btn{min-height:36px;padding:6px 17px}.details.open{inset:0;width:min(360px,100vw);z-index:75}.list-tools{padding:15px}.queue-tabs button{padding:13px;font-size:14px}.list-filters{grid-template-columns:1fr 1fr;padding:12px 15px}.list-filters label{flex-direction:column;align-items:stretch;gap:4px;font-size:11px}.list-filters select{width:100%;min-height:37px}.list-scroll{padding:0 7px}.conversation-row{padding:15px 12px}.conversation-row .row-name{font-size:15px}.conversation-row p{font-size:13px;margin-top:8px}.conversation-row time{font-size:12px}.list-foot{padding:11px}.data-page{padding:18px 14px}.page-heading{align-items:flex-start;gap:10px}.page-heading h2{font-size:19px}.page-heading p{font-size:12px}.page-heading .btn{font-size:12px;padding:7px 11px;min-height:37px}.toolbar{gap:9px}.toolbar label{min-width:calc(50% - 5px);flex:1}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:20px}.metric{padding:14px 12px}.metric strong{font-size:25px}.metric span{font-size:11px}.report-summary{grid-template-columns:1fr;gap:12px}.summary-panel{padding:16px}.field-grid{grid-template-columns:1fr}.field-grid .span-2{grid-column:auto}.form-panel{padding:18px}.login-page{display:flex;flex-direction:column;gap:28px;align-items:stretch;min-height:100dvh;padding:35px 22px}.login-intro .brand{font-size:42px;margin-bottom:16px}.login-intro h1{font-size:27px;margin-bottom:10px}.login-intro p{font-size:14px;margin-bottom:0}.login-links{margin-top:16px;font-size:13px}.login-card{padding:25px 22px}.login-card h2{font-size:22px}.password-page{margin:28px auto}.password-page .panel{padding:22px}.check-grid{grid-template-columns:1fr}.dialog-content{padding:18px}.global-error{margin:7px 8px 0}.notice{font-size:12px}}
@media(max-width:360px){.topbar h1{font-size:17px}.topbar{padding-left:7px;padding-right:7px}.chat-header h2{max-width:130px;font-size:15px}.chat-actions{max-width:135px}.chat-actions .btn{font-size:10px;padding:4px 5px}.chat-header{padding:8px}.message{max-width:100%}.message .avatar{display:none}.compose-bar .check{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
#chat-content{display:flex;flex:1;min-height:0;flex-direction:column}dialog.wide{width:min(760px,calc(100vw - 30px))}.chat-header-main{display:flex;align-items:center;min-width:0;gap:3px}.chat-person>.row{gap:5px}.conversation-row>.row{margin-top:7px;gap:6px}.list-filters .check{font-size:11px}#stats-filters>.check{align-self:center}.dialog-content .form-actions{margin-top:16px}.dialog-content h3{margin-top:24px}.detail-section details{margin-top:14px}

/* Explicit message origins: automated content never resembles a visitor bubble. */
.message-role{font-size:10px;line-height:1.4;color:var(--muted);margin-bottom:5px;font-weight:600}.outgoing .message-role{text-align:right}.automated-message{width:100%;margin:14px 0 22px;padding:12px 15px;border:1px solid #dce2ef;border-radius:9px;background:#f8f9fc;color:#45506a;flex:none}.automated-message header{display:flex;align-items:center;gap:7px;margin-bottom:8px;font-size:12px;color:#586485}.automated-message header .icon{width:16px;height:16px}.automated-message time{margin-left:auto;font-size:10px;color:var(--muted)}.automated-content{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.65}.bot-reply{background:#f6f4ff;border-color:#e5def7}.bot-reply header{color:#6f50a2}.system-notice{background:#f5f7fa;border-style:dashed;color:#68768d}.message-attachments{display:flex;flex-wrap:wrap;gap:8px;margin-top:7px}.message-attachment{margin:0;max-width:300px;min-width:0;width:100%;border-radius:9px;overflow:hidden;border:1px solid var(--line);background:#fff}.message-attachment img,.message-attachment video{display:block;max-width:100%;width:100%;max-height:280px;object-fit:contain;background:#eaf0f8}.message-attachment figcaption{padding:5px 9px;overflow-wrap:anywhere;font-size:10px;color:var(--muted)}.outgoing .message-attachments{justify-content:flex-end}@media(max-width:760px){.automated-message{padding:10px 12px;margin:10px 0 18px}.automated-content{font-size:13px}.message-attachment{max-width:250px}.message-attachment img,.message-attachment video{max-height:210px}}

.reception-list{display:flex;flex-direction:column;gap:10px}.reception-member{border:1px solid var(--line);border-radius:9px;padding:13px;display:flex;align-items:center;justify-content:space-between;gap:12px}.reception-member small{display:block;font-size:11px;margin-top:3px}.eligibility{display:inline-block;margin-top:5px;font-size:11px;color:#805a12}.eligibility.ready{color:#278039}.reception-on,[data-enable][aria-pressed="true"]{background:#eff9f0;border-color:#b8dfbd;color:#248136}.routing-members{border-top:1px solid var(--line);margin-top:22px;padding-top:4px}@media(max-width:760px){.reception-member{align-items:flex-start;flex-direction:column}.reception-member>.row{width:100%}.reception-member .btn{flex:1}}

.composer-tools{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-bottom:6px}.composer-tools .icon{width:17px;height:17px}.composer-tools small{margin-left:auto;font-size:10px}.emoji-picker{display:flex;flex-wrap:wrap;gap:5px;border:1px solid var(--line);border-radius:8px;background:#fafcff;padding:7px;margin-bottom:7px}.emoji-picker button{font-size:22px;border:0;background:none;padding:4px 6px}.emoji-picker button:hover{background:var(--blue-soft)}.attachment-drafts{display:flex;gap:7px;flex-wrap:wrap;max-height:170px;overflow:auto}.attachment-draft{width:100%;display:flex;align-items:center;gap:9px;padding:8px;border:1px solid var(--line);border-radius:8px;margin-bottom:5px;background:#fbfcff}.attachment-draft img,.attachment-draft video,.file-placeholder{width:48px;height:48px;object-fit:cover;border-radius:5px;flex:none}.file-placeholder{display:grid;place-items:center;background:#eaf0fa}.attachment-draft-copy{flex:1;min-width:0}.attachment-draft strong{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attachment-draft small{display:block;font-size:11px;overflow-wrap:anywhere}.attachment-draft .icon{width:16px;height:16px}.attachment-draft>.row{gap:3px;flex-wrap:nowrap}@media(max-width:760px){.composer-tools small{display:none}.composer-tools .btn{padding:3px 6px;min-height:28px;font-size:11px}.attachment-drafts{max-height:120px}.attachment-draft img,.attachment-draft video,.file-placeholder{width:36px;height:36px}.composer:has(.attachment-draft) textarea{min-height:46px}.composer-tools{margin-bottom:4px}}

.candidate-reasons{display:flex;flex-direction:column;gap:5px;padding:10px;background:#f7f9fd;border-radius:8px}.chat-actions .btn[disabled]{max-width:175px;white-space:normal;font-size:11px}#chat-warning{margin:8px 12px;flex:none}

.team-receptions{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px;max-width:360px}.team-receptions .btn{white-space:normal;font-size:11px;text-align:left}

/* Knowledge outcomes: honest samples, accessible comparisons and bounded tables. */
.stats-tabs{display:flex;gap:8px;border-bottom:1px solid var(--line);margin:0 0 22px;padding-bottom:0}.stats-tabs button{border:0;border-bottom:3px solid transparent;background:none;padding:13px 17px;font:inherit;font-weight:600;color:var(--muted);cursor:pointer}.stats-tabs button[aria-selected=true]{color:var(--blue);border-bottom-color:var(--blue)}.stats-tabs button:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}.insights-filters{background:#fff;border:1px solid var(--line);padding:17px;border-radius:10px;margin-bottom:10px}.range-shortcuts{display:flex;gap:6px;align-self:end}.insights-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:20px}.insights-panel{margin-bottom:20px;overflow:hidden}.insights-grid>.insights-panel{margin:0;min-width:0}.insights-panel>header{padding:20px 22px 14px}.insights-panel>header h3{margin:0;font-size:16px}.insights-panel>header p{color:var(--muted);font-size:12px;line-height:1.7;margin:5px 0 0}.insight-metrics{margin-top:22px;grid-template-columns:repeat(4,minmax(0,1fr))}.insight-metrics .metric{border:1px solid var(--line);border-radius:10px;border-top:3px solid #94b5ff;padding:20px}.insight-metrics .metric-positive{border-top-color:#16a085}.insight-metrics .metric-positive strong{color:#13826e}.outcome-bar{height:16px;border-radius:8px;overflow:hidden;background:#eef2f7;margin:8px 22px 20px}.outcome-bar svg,.reason-track svg{display:block;width:100%;height:100%}.solved{background:#1a9e87;fill:#1a9e87}.unsolved{background:#d9a246;fill:#d9a246}.human{background:#507df2;fill:#507df2}.unknown{background:#c9d3e1;fill:#c9d3e1}.outcome-key{list-style:none;padding:0 22px;margin:0;display:grid;grid-template-columns:1fr 1fr;gap:16px 24px}.outcome-key li{display:flex;align-items:center;gap:8px;font-size:13px}.outcome-key strong{margin-left:auto}.legend-dot{width:9px;height:9px;border-radius:3px;flex:none}.insights-panel>.section-note{margin:20px 22px;line-height:1.8}.insight-values{margin:0;padding:0 22px 12px}.insight-values>div{display:flex;justify-content:space-between;align-items:start;gap:22px;padding:13px 0;border-bottom:1px solid #edf1f7}.insight-values>div:last-child{border:0}.insight-values dt{font-size:13px;color:var(--muted)}.insight-values dd{margin:0;text-align:right;font-weight:600;font-size:17px}.insight-values dd small{display:block;font-size:11px;font-weight:400;line-height:1.8;max-width:300px}.reason-list{list-style:none;padding:0 22px 20px;margin:0}.reason-list li{margin:14px 0 18px}.reason-list li>div:first-child{display:flex;justify-content:space-between;gap:16px;font-size:13px}.reason-track{background:#f0f4fa;height:7px;border-radius:9px;margin-top:8px;overflow:hidden}.reason-track rect{fill:#7095ee}.topic-panel>header{display:flex;align-items:start;justify-content:space-between;gap:20px}.topic-panel>header .check{white-space:nowrap;font-size:12px;margin-top:3px}.insights-pagination{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 20px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}.insights-definitions{padding:16px 20px;border:1px solid var(--line);border-radius:9px;color:var(--muted);font-size:12px;line-height:1.8;background:#f9fbff}.insights-definitions summary{cursor:pointer;font-weight:600;color:var(--text)}.insights-definitions li{margin:7px 0}.insight-daily summary{margin:0 22px 17px;cursor:pointer;color:var(--blue);font-size:13px}.insights-panel .data-table th[scope=row]{font-weight:500;white-space:normal;background:#fff;color:var(--text)}.insights-panel [data-retry-topics], [data-report]>button{margin:20px}.insights-panel .notice.error{margin:12px 20px}.insights-scope{line-height:1.8}
@media(max-width:1100px){.insights-grid{grid-template-columns:1fr}.insight-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.stats-tabs{gap:0;margin-bottom:16px}.stats-tabs button{padding:11px 12px;font-size:13px}.insights-filters{padding:13px}.range-shortcuts{width:100%;flex-wrap:wrap}.range-shortcuts button{flex:1}.insights-panel>header{padding:16px}.insight-values{padding:0 16px 8px}.insight-values>div{gap:12px}.insight-values dd small{max-width:185px}.insight-metrics .metric{padding:15px 12px}.insight-metrics .metric small{line-height:1.7;display:block}.outcome-key{padding:0 16px;gap:13px}.outcome-bar{margin:6px 16px 18px}.reason-list{padding:0 16px 12px}.topic-panel>header{flex-direction:column;gap:12px}.insights-pagination{padding:12px;gap:8px}.insights-panel .data-table{min-width:650px}.insights-panel>.section-note{margin:16px}.insights-definitions{padding:14px}.insights-definitions ul{padding-left:20px}}

/* Statistics filters: option text never dictates field layout. */
.stats-filter-form{display:block}.stats-filter-fields{display:grid;grid-template-columns:minmax(0,150px) minmax(0,150px) minmax(0,1fr);gap:12px}.stats-filter-form label{min-width:0;flex:initial}.stats-filter-fields input,.stats-filter-fields select{display:block;width:100%;min-width:0;max-width:100%}.stats-filter-platform{min-width:0}.stats-filter-actions{display:flex;align-items:center;gap:12px;margin-top:14px}.stats-filter-actions>.check{margin-right:auto;min-width:0;gap:6px}.stats-filter-actions>.check input{flex:none;margin-right:0}.stats-filter-actions .range-shortcuts{align-self:auto;width:auto;flex-wrap:wrap}.stats-filter-submit{flex:none}.filter-state{margin:0 0 10px;font-size:12px;line-height:1.75;color:var(--muted);overflow-wrap:anywhere}.filter-state.is-dirty{color:#805a12}.reception-permission-note{max-width:420px;color:var(--muted)}
@media(max-width:760px){.stats-filter-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stats-filter-platform{grid-column:1 / -1}.stats-filter-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 10px}.stats-filter-actions>.check{grid-column:1;grid-row:1;font-size:12px;margin-right:0}.stats-filter-submit{grid-column:2;grid-row:1}.stats-filter-actions .range-shortcuts{grid-column:1 / -1;grid-row:2;display:flex;width:100%;gap:6px}.stats-filter-actions .range-shortcuts button{flex:1;min-width:0}.stats-filter-form .check{min-width:0}}
/* Reception continuity and independent unread/history feedback. */
.conversation-unread{display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:20px;height:20px;padding:0 6px;border-radius:12px;background:var(--blue);color:#fff;font-size:11px;font-weight:650;line-height:1}.chat-new-messages{align-self:stretch;flex:none;margin:7px 14px;min-height:34px;padding:6px 12px;border-color:#b4caf2;background:#eaf1ff;color:#0751dc;font-size:12px;box-shadow:0 2px 6px #193e7a0a}.chat-new-messages:hover{background:#dfeaff}.chat-history-status{flex:none;text-align:center;padding:7px 12px;color:var(--muted);font-size:12px;line-height:1.6}.message-media-retry{display:inline-flex;align-items:center;justify-content:center;margin:7px 0 0;border:1px solid #c6d4ec;border-radius:7px;background:#fff;color:var(--blue);font:inherit;font-size:12px;min-height:32px;padding:4px 10px}.queue-tabs button{min-width:0;padding-left:2px;padding-right:2px;font-size:12px;white-space:nowrap}@media(max-width:760px){.chat-new-messages{margin:5px 10px;min-height:34px}.chat-history-status{padding:6px 10px;font-size:11px}}

/* Checkbox filters keep one inline row when mobile select labels stack. */
.list-filters .check{display:flex;flex-direction:row;align-items:center;grid-column:1 / -1;gap:6px}.list-filters .check input{flex:none;margin-right:0}

/* Manual transfer keeps the selected identity readable before confirmation. */
.transfer-form{min-width:0}.transfer-form select{width:100%;min-width:0;max-width:100%}.transfer-target-summary{margin:0;padding:11px 13px;border:1px solid var(--line);border-radius:8px;background:#f8faff;font-size:13px;line-height:1.7;overflow-wrap:anywhere;min-width:0}.transfer-target-summary strong{font-weight:650}.transfer-offline-notice{margin:0;line-height:1.75;overflow-wrap:anywhere}.transfer-form .candidate-reasons{overflow-wrap:anywhere;min-width:0;max-height:112px;overflow:auto;overscroll-behavior:contain}
@media(max-width:760px){.transfer-form .form-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.transfer-form .form-actions .btn{min-width:0;white-space:normal;overflow-wrap:anywhere}.transfer-target-summary{padding:10px 11px;font-size:12px}}

/* Assigned offline-agent names may be unbroken external identifiers. */
.inbox #chat-warning{overflow-wrap:anywhere;min-width:0}

.conversation-row>.row>small{min-width:0;max-width:100%;overflow-wrap:anywhere}

/* Pending delivery recovery stays reachable on short and narrow screens. */
.delivery-recovery{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface-soft,#f5f8ff)}
.delivery-recovery p{margin:0;font-size:12px;line-height:1.6;overflow-wrap:anywhere}.delivery-recovery .btn{flex-shrink:0}
@media(max-width:600px){.delivery-recovery{align-items:stretch;flex-direction:column}.delivery-recovery .btn{align-self:flex-end}}

.inbox-view-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;grid-column:1/-1}.inbox-view-actions .btn[aria-pressed="true"]{color:var(--blue);background:var(--blue-soft)}.filter-status{grid-column:1/-1;font-size:12px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}.filter-status .btn{margin-top:6px}

.admin-controls{border:0;margin:0;padding:0;min-width:0}.admin-sync{margin-bottom:16px;position:sticky;top:0;z-index:5}.reception-config{display:grid;gap:4px}

/* Member conflict review: four columns on desktop, labelled field cards on narrow screens. */
.member-review-table-wrap{max-width:100%;overflow:visible}
.data-table.member-review-table{min-width:0;width:100%;table-layout:fixed}
.member-review-table th,.member-review-table td{white-space:normal;overflow-wrap:anywhere;word-break:normal;padding:10px 9px}
.member-review-table th{vertical-align:top}
.member-review-table small{max-width:100%}
@media(max-width:600px){
 .member-review-table thead{display:none}
 .member-review-table,.member-review-table tbody,.member-review-table tr,.member-review-table th,.member-review-table td{display:block;width:100%;min-width:0;box-sizing:border-box}
 .member-review-table tr{border-bottom:1px solid var(--line);padding:8px 0}
 .member-review-table tr:last-child{border-bottom:0}
 .member-review-table th,.member-review-table td{border:0;padding:6px 8px}
 .member-review-table td::before{content:attr(data-label);display:block;color:var(--muted);font-size:11px;font-weight:500;margin-bottom:3px}
}

/* Global pending work stays visible while visiting reports or settings. */
.inbox-attention{flex:none;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 18px;background:#f8fbff;border-bottom:1px solid var(--line)}
.attention-links{display:flex;align-items:stretch;gap:7px;min-width:0}.attention-link{display:flex;align-items:center;gap:7px;flex-wrap:wrap;background:#fff;border:1px solid var(--line);padding:6px 10px;min-height:36px;font-size:12px;text-align:left}.attention-link:hover{border-color:#a8c6ff;background:var(--blue-soft)}.attention-link strong{color:var(--blue);font-size:15px;font-variant-numeric:tabular-nums}.attention-link small{font-size:10px}.attention-feedback{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:4px 8px;font-size:11px;color:var(--muted);max-width:320px}.attention-feedback [role=alert]{color:#9b4930}.inbox-attention.stale{background:#fffaf0}.inbox-attention.stale .attention-link strong{color:#8b631e}
@media(max-width:1000px){.inbox-attention{align-items:stretch;flex-direction:column;gap:4px;padding:7px 12px}.attention-feedback{max-width:none;justify-content:flex-start}.attention-link{flex:1}.attention-links{width:100%}.attention-link small{flex-basis:100%}}
@media(max-width:760px){.inbox-attention{padding:6px 8px;gap:3px}.attention-links{gap:5px}.attention-link{min-width:0;gap:2px 5px;padding:5px 7px;font-size:11px}.attention-link strong{font-size:14px}.attention-link small{font-size:9px;line-height:1.3}.attention-feedback{font-size:10px;line-height:1.3}.attention-feedback .btn{min-height:26px;padding:2px 7px;font-size:10px}.list-filters .check:has(#unread-only),.list-filters .check:has(#include-test){grid-column:auto}}

/* Stable result rounds keep controls mounted so polling and page edges retain keyboard focus. */
.list-result-status{display:flex;flex-wrap:wrap;align-items:center;gap:5px 8px;padding:8px 10px;border-bottom:1px solid var(--line);color:var(--muted);font-size:11px;line-height:1.5;flex:none}.list-result-status .btn{margin-left:auto}.list-updates{flex:none;margin:6px 9px;padding:6px 8px;background:var(--blue-soft);border-color:#b7cdfa;color:var(--blue);font-size:12px;white-space:normal}.list-foot{flex-wrap:wrap;gap:6px}.list-foot small{flex-basis:100%}.list-foot [aria-disabled="true"],.list-updates[aria-disabled="true"]{opacity:.55;cursor:default}.list-row-changed{color:#8b6312;font-size:11px}.conversation-row .row{flex-wrap:wrap}

/* Durable reception-action recovery stays distinct from message delivery. */
.operation-recovery{margin:0 14px 10px;padding:10px 12px;flex:none;overflow-wrap:anywhere}.operation-recovery p{margin:0 0 8px}.operation-recovery .row{flex-wrap:wrap;gap:8px}.operation-recovery .btn{white-space:normal}.operation-recovery[hidden]{display:none}

/* Service capacity, off-duty recovery and message cards share the shell flow. */
.workload-status{font-size:12px;color:var(--muted);white-space:nowrap}.notification-controls{display:flex;align-items:center;gap:6px}.notification-audio-status{font-size:11px;color:var(--muted);max-width:140px}.shift-recovery{margin:8px 12px 0;flex:none;max-height:160px;overflow:auto}.shift-recovery p{margin:0 0 6px}.message-notifications{flex:none;padding:8px 12px 0;max-height:168px;overflow:auto}.notification-cards{display:flex;gap:8px;align-items:stretch}.message-notification{position:relative;display:flex;min-width:0;flex:1;max-width:380px;border:1px solid #cbdcf8;border-radius:10px;background:white;box-shadow:0 3px 12px #1b3e7810}.message-notification-open{display:flex;flex:1;flex-direction:column;align-items:flex-start;min-width:0;padding:10px 40px 10px 13px;text-align:left;border:0;background:transparent}.message-notification-open:hover{background:#f3f7ff}.notification-caption{font-size:11px;color:var(--blue);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.message-notification-open strong{font-size:13px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.notification-preview{font-size:12px;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;max-width:100%}.notification-close{position:absolute;right:3px;top:3px;width:30px;min-height:30px;padding:6px}.notification-close .icon{width:16px;height:16px}.notification-error{font-size:12px;color:#805a12}.global-policy-panel{margin-top:20px;max-width:760px}.policy-comparison{display:grid;grid-template-columns:1fr auto;gap:4px 12px;margin:0;font-size:13px}.policy-comparison dt{color:var(--muted)}.policy-comparison dd{margin:0;font-weight:600}
@media(max-width:1200px){.topbar{flex-wrap:wrap}.topbar-actions{flex-wrap:wrap;justify-content:flex-end;margin-left:auto}.topbar-title p{display:none}.notification-audio-status{max-width:120px}}
@media(max-width:600px){.topbar{padding:9px 12px;gap:7px}.topbar-title{width:100%}.topbar-title h1{font-size:21px}.topbar-actions{width:100%;justify-content:flex-start;gap:7px}.topbar-actions .connection{margin-left:auto;font-size:11px}.presence select{min-width:90px;min-height:34px;padding-top:5px;padding-bottom:5px}.presence .status-dot{top:14px}.notification-controls{max-width:100%;flex-wrap:wrap}.notification-audio-status{max-width:120px}.notification-cards{flex-direction:column}.message-notifications{max-height:138px}.message-notification{max-width:none;flex:none}.message-notification-open{padding-top:8px;padding-bottom:8px}.notification-preview{-webkit-line-clamp:1}.shift-recovery{max-height:150px}.shift-recovery .row{gap:6px}.shift-recovery .btn{white-space:normal}.global-policy-panel{margin-top:12px}}

.image-preview-trigger{display:block;border:0;padding:0;margin:0;background:transparent;cursor:zoom-in;width:100%}.image-preview-trigger:focus-visible{outline:3px solid var(--blue);outline-offset:2px}.image-preview{display:grid;gap:10px}.image-preview-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.image-preview-stage{height:min(55vh,640px);overflow:auto;display:grid;align-items:center;justify-items:center;background:#111827;border-radius:10px}.image-preview-stage img{display:block;max-width:100%;max-height:min(55vh,640px);object-fit:contain}.image-preview-stage img.zoomed{max-height:none;justify-self:start;align-self:start}.image-preview-caption{margin:0;overflow-wrap:anywhere;font-size:12px;color:var(--muted)}.image-preview [role=status]{margin:0;font-size:12px}.image-preview-tools [data-image-count]{font-size:12px;min-width:45px;text-align:center}@media(max-width:600px){.image-preview-tools{gap:5px}.image-preview-tools .btn{padding:6px 9px}.image-preview-stage{height:50vh}}

.translation-controls{border-bottom:1px solid var(--line);padding:8px 14px;font-size:12px;flex:none}.translation-controls summary{cursor:pointer;color:var(--blue)}.translation-control-row{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:9px 0}.translation-control-row select{width:auto;min-width:92px;max-width:150px;padding:5px 7px;font-size:12px}.translation-control-row .check{min-width:126px}.translation-controls p{font-size:11px;line-height:1.5;margin:6px 0}.message-translation,.message-original{margin-top:7px;padding:8px 10px;border-left:2px solid #9eb9ec;background:#f4f7fc;border-radius:4px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}.message-translation small,.message-original small{display:block;color:var(--muted);font-size:10px;margin-bottom:4px}.message-translation-label{font-size:10px;color:var(--muted);margin:6px 0}.message-translate{padding:3px 6px;min-height:25px;font-size:11px;color:var(--blue)}.translation-settings-group{display:grid;gap:12px;margin:0;padding:15px;border:1px solid var(--line);border-radius:8px;min-width:0}.translation-settings-group legend{font-weight:650;padding:0 6px}.translation-settings-group p{font-size:11px;overflow-wrap:anywhere}.translation-options-status{color:var(--muted)}

.annotation-scope{border-top:1px solid var(--line);padding-top:10px;margin-top:12px}.annotation-scope h3{font-size:12px;margin:0}.annotation-scope .row{gap:4px;flex-wrap:wrap}.customer-tags{display:flex;flex-wrap:wrap;gap:5px;margin:8px 0}.customer-tag{display:inline-flex;align-items:center;gap:5px;background:#eef4ff;color:#2259aa;border:1px solid #d6e4fa;border-radius:5px;padding:4px 7px;font-size:11px;overflow-wrap:anywhere;max-width:100%;white-space:normal}.customer-tag button{background:transparent;border:0;padding:0 2px;color:inherit}.customer-note{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;margin:8px 0}.annotation-editor fieldset{border:0;padding:0;display:grid;gap:10px;min-width:0}.annotation-history-row{border-bottom:1px solid var(--line);padding:10px 0}.annotation-history-row h3{font-size:14px;margin:0 0 4px}.annotation-history-row details{font-size:12px}.annotation-history-row>p{overflow-wrap:anywhere}

/* Keep agent names and response durations readable; only this table scrolls on narrow screens. */
.agent-performance-table-wrap{width:100%;max-width:100%;min-width:0;overflow-x:auto}
.data-table.agent-performance-table{width:100%;min-width:880px;table-layout:auto}
.data-table.agent-performance-table th,.data-table.agent-performance-table td,.data-table.agent-performance-table small{white-space:nowrap;overflow-wrap:normal;word-break:normal}
.data-table.agent-performance-table th:first-child,.data-table.agent-performance-table td:first-child{min-width:110px}
.data-table.agent-performance-table th:nth-child(n+4):nth-child(-n+6),.data-table.agent-performance-table td:nth-child(n+4):nth-child(-n+6){min-width:140px;font-variant-numeric:tabular-nums}
.detached-recovery{flex:none;max-height:190px;overflow:auto;margin:0 8px 8px;padding:12px;border:1px solid var(--line);border-radius:var(--radius);text-align:left}
.detached-recovery .row{margin-top:8px;overflow-wrap:anywhere}
.site-ops-hours{margin:0;padding:12px;border:1px solid var(--line);border-radius:var(--radius)}
.site-ops-hours legend{padding:0 5px;font-weight:600}
.site-ops-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.site-ops-form .check{display:flex;align-items:center;gap:6px}
.reception-supervision-tools{margin-bottom:12px;align-items:end}
.reception-supervision-site .row h3{margin:0}
.reception-supervision-site h4{margin-bottom:6px}
.reception-counts{margin:14px 0}
.reception-counts div{padding:8px 10px;background:var(--bg);border-radius:var(--radius)}
.reception-counts dt{font-size:12px;color:var(--muted)}
.reception-counts dd{margin:4px 0 0;font-weight:600}
.reception-alerts{padding-inline-start:18px}
.reception-alerts li{margin:5px 0}

/* Keep the account controls in view while open navigation groups can scroll. */
.sidebar .brand-link,
.sidebar-bottom {
  flex: none;
}

#workspace-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
}

.workspace-nav-group {
  flex: none;
  min-width: 0;
}

.nav .workspace-nav-trigger {
  width: 100%;
}

.workspace-nav-trigger span {
  flex: 1;
}

.nav .workspace-nav-trigger.contains-current,
.nav [aria-current="page"] {
  color: var(--blue);
}

.workspace-nav-trigger .workspace-nav-chevron {
  width: 15px;
  height: 15px;
}

.workspace-nav-trigger[aria-expanded="true"] .workspace-nav-chevron {
  transform: rotate(90deg);
}

.workspace-nav-items {
  display: grid;
  gap: 3px;
  margin: 3px 0 5px 18px;
  padding-inline-start: 7px;
  border-inline-start: 1px solid var(--line);
}

.nav .workspace-nav-items button {
  min-height: 38px;
  padding: 7px 9px;
  gap: 8px;
  font-size: 13px;
}

.workspace-nav-items .icon {
  width: 17px;
  height: 17px;
}

.sidebar .nav :focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

@media (max-width: 760px) {
  .sidebar {
    visibility: hidden;
    transition: transform .18s ease, visibility 0s linear .18s;
  }

  .sidebar.open {
    visibility: visible;
    transition-delay: 0s;
  }
}

@media (max-height: 440px) {
  .sidebar {
    overflow-y: auto;
  }

  #workspace-nav {
    flex: none;
    overflow: visible;
  }
}

.project-admin .project-admin-actions{justify-content:flex-end;flex-wrap:wrap}
.project-admin .project-admin-filters{display:grid;grid-template-columns:minmax(0,22rem) minmax(9rem,12rem);gap:12px;align-items:end;margin-bottom:16px}
.project-admin .project-admin-filters label{min-width:0}
.project-admin .project-admin-filters .search-wrap{display:flex}
.project-admin .project-admin-filters input{width:100%;min-width:0}
.project-admin .project-admin-editor{margin-bottom:16px}
.project-admin .project-admin-editor h3{margin:0 0 12px}
.project-admin .project-admin-fields{display:grid;gap:12px;padding:0;margin:0;border:0;min-width:0}
.project-admin .project-admin-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.project-admin .project-admin-roles{padding:10px 12px;margin:0;border:1px solid var(--line);border-radius:var(--radius);min-width:0}
.project-admin .project-admin-roles legend{padding:0 6px;font-weight:600}
.project-admin .project-admin-roles>div{display:flex;flex-wrap:wrap;gap:8px 16px}
.project-admin .project-admin-roles .check,.project-admin .project-admin-enabled{display:flex;flex-direction:row;align-items:center}
.project-admin .project-admin-group{padding:16px 18px}
.project-admin .project-admin-group h3{margin:0 0 5px;overflow-wrap:anywhere}
.project-admin .project-admin-group ul{margin:0;padding:0;list-style:none}
.project-admin .project-admin-entry{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--line)}
.project-admin .project-admin-entry-info{min-width:0}
.project-admin .project-admin-entry-info small{display:block;color:var(--muted);overflow-wrap:anywhere}
.project-admin .project-admin-entry .row{flex-wrap:wrap}
.project-admin .project-admin-entry-actions{flex:none}
.project-admin .project-admin-link,.project-admin .project-admin-entry strong{overflow-wrap:anywhere;font-weight:600}
.project-admin .project-admin-link{color:var(--blue)}
.project-admin .project-admin-link:hover{text-decoration:underline}
.project-admin .project-admin-empty-action{text-align:center}
.project-admin .project-admin-review{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 10px}
.project-admin .project-admin-review dd{margin:0;overflow-wrap:anywhere}
@media(max-width:600px){
  .project-admin .project-admin-filters{grid-template-columns:minmax(0,1fr) minmax(7rem,10rem)}
  .project-admin .project-admin-actions{justify-content:flex-start}
  .project-admin .project-admin-entry{align-items:flex-start;flex-direction:column;gap:5px}
}
@media(max-width:400px){
  .project-admin .project-admin-field-grid{grid-template-columns:minmax(0,1fr)}
}
.project-admin .project-admin-sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
