/* Inline case desk. Existing controls, permissions, statuses and APIs are reused. */
body.voice-console-page.staff-mode{--desk-surface:#fff;--desk-soft:#f1f8f6;--desk-line:#d4e5e0;--desk-ink:#163c40;--desk-muted:#577776;--desk-selected:#def8f1;background:#edf5f2!important}
html[data-dc-theme=dark] body.voice-console-page.staff-mode{--desk-surface:#172c38;--desk-soft:#203947;--desk-line:#35505f;--desk-ink:#edf6fa;--desk-muted:#b5cbd4;--desk-selected:#254c50;background:#11232e!important}
body.voice-console-page.staff-mode .ops-container{width:calc(100% - 16px)!important;max-width:none!important;margin:8px auto!important}
body.voice-console-page.staff-mode .main-header{padding:12px 16px!important;margin-bottom:8px!important;border-radius:12px!important}
body.voice-console-page.staff-mode .main-header h1{font-size:23px!important;letter-spacing:-.5px!important}
body.voice-console-page.staff-mode .main-header .txt-muted{font-size:12px!important}
body.voice-console-page.staff-mode #app>.admin-queue-tools:not([style*="display: none"]){display:grid!important;grid-template-columns:minmax(0,1fr) 150px;gap:8px!important;padding:0!important;margin:0 0 8px!important;border:0!important;background:transparent!important}
body.voice-console-page.staff-mode #queueTabBar{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px!important}
body.voice-console-page.staff-mode #queueTabBar .queue-tab,body.voice-console-page.staff-mode #btnClosedCases{min-height:46px!important;margin:0!important;display:flex!important;align-items:center;justify-content:space-between;gap:8px!important;padding:8px 12px!important;background:var(--desk-surface)!important;border:1px solid var(--desk-line)!important;border-radius:10px!important;color:var(--desk-ink)!important}
body.voice-console-page.staff-mode #queueTabBar .queue-tab.active{background:var(--desk-selected)!important;border-color:#40aa98!important}
body.voice-console-page.staff-mode #queueTabBar .queue-tab span{font-size:10px!important;white-space:nowrap}
body.voice-console-page.staff-mode #app .board{display:grid!important;grid-template-columns:310px minmax(0,1fr)!important;gap:10px!important;height:calc(100dvh - var(--dc-nav-height,64px) - 162px)!important;min-height:420px!important;align-items:stretch!important}
body.voice-console-page.staff-mode #app .panel-nav,body.voice-console-page.staff-mode #app .panel-detail{display:block!important;height:100%!important;min-width:0!important;min-height:0!important;margin:0!important;border:1px solid var(--desk-line)!important;border-radius:12px!important;background:var(--desk-surface)!important;overflow:hidden!important;box-shadow:none!important}
body.voice-console-page.staff-mode #app .panel-nav>.panel-inner{height:100%!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;padding:0!important}
body.voice-console-page.staff-mode #app .panel-nav .panel-head{padding:10px!important;background:var(--desk-soft)!important}
body.voice-console-page.staff-mode #app .panel-nav .panel-head h2{font-size:15px!important;color:var(--desk-ink)!important}
body.voice-console-page.staff-mode #app .panel-nav .panel-kicker,body.voice-console-page.staff-mode #queueWorkspaceCopy{display:none!important}
body.voice-console-page.staff-mode #app .panel-nav .list-controls{flex:0 0 auto;padding:8px!important;background:var(--desk-soft)!important}
body.voice-console-page.staff-mode #app .panel-nav .toolbar{display:flex!important;gap:6px!important;flex-wrap:nowrap!important}
body.voice-console-page.staff-mode #app .panel-nav .toolbar-left{flex:1;min-width:0}
body.voice-console-page.staff-mode #q{width:100%!important;min-width:0!important;min-height:38px!important;font-size:12px!important}
body.voice-console-page.staff-mode #app .panel-nav .toolbar label{display:none!important}
body.voice-console-page.staff-mode #app .panel-nav .simple-filters{display:flex!important;flex-wrap:wrap;gap:6px!important}
body.voice-console-page.staff-mode #app .panel-nav .filter-inline{flex:1;min-width:0!important}
body.voice-console-page.staff-mode #app .list{flex:1!important;min-height:0!important;overflow-y:auto!important;height:auto!important;padding:7px!important;background:var(--desk-surface)!important}
body.voice-console-page.staff-mode #app .mail-list-head,body.voice-console-page.staff-mode #app .voice-queue-avatar,body.voice-console-page.staff-mode #app .voice-queue-open{display:none!important}
body.voice-console-page.staff-mode #app .mail-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:4px 6px!important;min-height:72px!important;padding:8px!important;background:var(--desk-surface)!important;color:var(--desk-ink)!important}
body.voice-console-page.staff-mode #app .mail-row.selected{background:var(--desk-selected)!important;border-color:#3aab98!important}
body.voice-console-page.staff-mode #app .mail-row-col-name{grid-column:1;grid-row:1;min-width:0}
body.voice-console-page.staff-mode #app .voice-status-column{grid-column:2;grid-row:1}
body.voice-console-page.staff-mode #app .mail-row-col-subject{grid-column:1/-1;grid-row:2}
body.voice-console-page.staff-mode #app .mail-row-col-assigned{grid-column:1;grid-row:3}
body.voice-console-page.staff-mode #app .voice-date-column{display:block!important;grid-column:2;grid-row:3}
body.voice-console-page.staff-mode #app .mail-row-title,body.voice-console-page.staff-mode #app .voice-assignee-label{font-size:11px!important;color:var(--desk-muted)!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap!important}
body.voice-console-page.staff-mode #app .mail-row-name{font-size:12px!important;color:var(--desk-ink)!important}
body.voice-console-page.staff-mode #app .mail-row{grid-template-rows:auto auto auto!important;grid-auto-rows:auto!important}
body.voice-console-page.staff-mode #app .mail-row-col{padding:0!important;min-height:0!important}
body.voice-console-page.staff-mode #app .mail-row-name,body.voice-console-page.staff-mode #app .mail-row-title,body.voice-console-page.staff-mode #app .voice-assignee-label,body.voice-console-page.staff-mode #app .mail-row-meta-text{line-height:1.2!important}
body.voice-console-page.staff-mode #app .voice-queue-person{gap:0!important}
body.voice-console-page.staff-mode #app .voice-list-status{font-size:9px!important;padding:3px 5px!important}
body.voice-console-page.staff-mode #app .panel-detail>.panel-inner{height:100%!important;padding:0!important;overflow:auto!important}
body.voice-console-page.staff-mode #app .panel-detail>.panel-inner>.panel-head{display:none!important}
body.voice-console-page.staff-mode #detail{min-height:100%;padding:10px!important}
body.voice-console-page.staff-mode #caseDeskEmpty{display:grid;place-items:center;min-height:320px;color:var(--desk-muted);text-align:center}
body.voice-console-page.staff-mode #caseDeskEmpty[hidden]{display:none!important}
body.voice-console-page.staff-mode #caseActionsOverlay{position:static!important;inset:auto!important;z-index:auto!important;align-items:stretch!important;justify-content:stretch!important;background:transparent!important;padding:0!important;width:100%!important;height:auto!important;overflow:visible!important;backdrop-filter:none!important}
body.voice-console-page.staff-mode #caseActionsOverlay .case-workspace-modal,body.voice-console-page.staff-mode #caseActionsOverlay .modal-inner{width:100%!important;max-width:none!important;min-height:0!important;max-height:none!important;height:auto!important;overflow:visible!important;box-shadow:none!important;background:var(--desk-surface)!important;border:0!important;border-radius:0!important;margin:0!important}
body.voice-console-page.staff-mode #caseActionsOverlay .modal-inner{padding:0!important;color:var(--desk-ink)!important}
body.voice-console-page.staff-mode #caseActionsOverlay .modal-header{position:static!important;padding:10px!important;gap:10px!important;background:var(--desk-soft)!important;border:1px solid var(--desk-line)!important;border-radius:9px!important}
body.voice-console-page.staff-mode #caseActionsOverlay .case-modal-body{display:block!important;padding:0!important;overflow:visible!important}
body.voice-console-page.staff-mode #caseActionsOverlay .case-document-shell,body.voice-console-page.staff-mode #caseActionsOverlay .case-control-console{min-width:0!important;width:100%!important;padding:10px 0!important;background:transparent!important}
body.voice-console-page.staff-mode #caseActionsOverlay .case-workflow-menu{position:static!important;inset:auto!important;width:100%!important;max-height:none!important;margin:8px 0!important;box-shadow:none!important}
body.voice-console-page.staff-mode #caseWorkflowMenu:not(.open){display:none!important}
body.voice-console-page.staff-mode #caseWorkflowMenu.open{display:block!important;transform:none!important;visibility:visible!important;opacity:1!important}
body.voice-console-page.staff-mode #caseActionsOverlay .modal-header .modal-title{color:var(--desk-ink)!important;font-size:18px!important}
body.voice-console-page.staff-mode #caseActionsOverlay .modal-header .case-workspace-kicker,body.voice-console-page.staff-mode #caseActionsIntro{color:var(--desk-muted)!important}
body.voice-console-page.staff-mode #caseActionsOverlay .case-modal-actions button{background:var(--desk-surface)!important;color:var(--desk-ink)!important;border:1px solid var(--desk-line)!important}
body.voice-console-page.staff-mode #caseActionsOverlay #caseActionsTitle{color:var(--desk-ink)!important;font-size:14px!important;margin:0!important}
body.voice-console-page.staff-mode #caseActionsOverlay .case-workspace-kicker,body.voice-console-page.staff-mode #caseActionsIntro{display:none!important}
body.voice-console-page.staff-mode #caseActionsOverlay #btnCaseActionsClose{font-size:12px!important;width:auto!important;height:auto!important;min-width:62px!important;padding:8px 10px!important}
body.voice-console-page.staff-mode #caseActionsOverlay #btnCaseActionsClose::before,body.voice-console-page.staff-mode #caseActionsOverlay #btnCaseActionsClose::after{display:none!important;content:none!important}
body.voice-console-page.staff-mode #btnClosedCases{min-width:0!important;font-size:11px!important;padding:6px 8px!important}
body.voice-console-page.staff-mode #caseActionsOverlay .case-workspace-conversation{min-width:0!important}
body.voice-console-page.staff-mode #caseActionsOverlay .modal-ticket-actions{position:static!important;flex-wrap:wrap;background:var(--desk-soft)!important;border:1px solid var(--desk-line)!important;border-radius:9px!important;padding:10px!important}
@media(max-width:800px){
 body.voice-console-page.staff-mode.voice-mobile-case-open .main-header{display:none!important}
 body.voice-console-page.staff-mode #app .board{grid-template-columns:minmax(0,1fr)!important;height:calc(100dvh - var(--dc-nav-height,64px) - 205px)!important;min-height:360px!important}
 body.voice-console-page.staff-mode #app>.admin-queue-tools:not([style*="display: none"]){grid-template-columns:minmax(0,1fr) 110px!important;gap:5px!important}
 body.voice-console-page.staff-mode #queueTabBar{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px!important}
 body.voice-console-page.staff-mode #queueTabBar .queue-tab{padding:6px!important;min-height:34px!important;gap:4px!important}
 body.voice-console-page.staff-mode #app .panel-detail{display:none!important}
 body.voice-console-page.staff-mode.voice-mobile-case-open #app .panel-nav{display:none!important}
 body.voice-console-page.staff-mode.voice-mobile-case-open #app .panel-detail{display:block!important}
 body.voice-console-page.staff-mode #app .panel-detail>.panel-inner>.panel-head{display:flex!important;padding:6px 10px!important;background:var(--desk-soft)!important}
 body.voice-console-page.staff-mode #app .panel-detail .panel-head>div:first-child,body.voice-console-page.staff-mode #app .panel-detail .panel-copy{display:none!important}
 body.voice-console-page.staff-mode #btnMobileCaseBack{display:block!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .modal-header{flex-wrap:wrap!important}
 body.voice-console-page.staff-mode #app .mail-row{min-height:78px!important}
}
/* Compact chat header and one disclosure for existing case tools. */
@layer voiceModernDialogs {
 body.voice-console-page.staff-mode #caseActionsOverlay .voice-modern-overlay{position:fixed!important;inset:0!important;z-index:2500!important;align-items:center!important;justify-content:center!important;padding:20px!important;background:#071c2e88!important;backdrop-filter:blur(5px)!important;overflow:hidden!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .voice-modern-overlay[aria-hidden=true]{display:none!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .voice-modern-overlay[aria-hidden=false]{display:flex!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .voice-modern-overlay #caseWorkflowMenu,body.voice-console-page.staff-mode #caseActionsOverlay .voice-modern-overlay .discipline-modal{position:static!important;display:flex!important;flex-direction:column!important;width:min(680px,100%)!important;max-width:100%!important;max-height:calc(100dvh - 40px)!important;margin:0!important;padding:0!important;border:1px solid var(--desk-line)!important;border-radius:18px!important;box-shadow:0 20px 70px #0004!important;overflow:hidden!important;background:var(--desk-surface)!important;color:var(--desk-ink)!important;transform:none!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .voice-modern-overlay .discipline-modal>.modal-inner{display:flex!important;flex-direction:column!important;width:100%!important;max-height:calc(100dvh - 40px)!important;padding:0!important;margin:0!important;overflow:hidden!important;background:var(--desk-surface)!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .voice-modern-overlay .case-workflow-menu-head,body.voice-console-page.staff-mode #caseActionsOverlay .voice-modern-overlay .modal-header{display:flex!important;flex:0 0 auto!important;align-items:flex-start!important;justify-content:space-between!important;gap:16px!important;margin:0!important;padding:20px 22px!important;border:0!important;border-bottom:1px solid var(--desk-line)!important;border-radius:0!important;background:var(--desk-soft)!important;color:var(--desk-ink)!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .voice-modern-overlay h3,body.voice-console-page.staff-mode #caseActionsOverlay .voice-modern-overlay h2{font-size:22px!important;line-height:28px!important;letter-spacing:-.3px!important;margin:0 0 5px!important;color:var(--desk-ink)!important;-webkit-text-fill-color:currentColor!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .voice-modern-overlay .case-workflow-menu-head span{display:block!important;font-size:10px!important;font-weight:700!important;letter-spacing:.1em!important;text-transform:uppercase!important;margin-bottom:6px!important;color:var(--desk-muted)!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .voice-modern-overlay .case-workflow-menu-head p,body.voice-console-page.staff-mode #caseActionsOverlay .voice-modern-overlay .small{font-size:12px!important;line-height:18px!important;margin:0!important;color:var(--desk-muted)!important;white-space:normal!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .voice-modern-overlay .modal-header>button,body.voice-console-page.staff-mode #caseActionsOverlay .voice-modern-overlay #btnCaseWorkflowClose{flex:0 0 auto!important;width:auto!important;min-width:36px!important;min-height:36px!important;margin:0!important;padding:6px 10px!important;border-radius:10px!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .voice-modern-overlay .modal-header>div{flex:1!important;width:auto!important;min-width:0!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .voice-modern-overlay .modal-header .small{display:block!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .voice-modern-overlay #caseAssignBlock{flex:1 1 auto!important;min-height:0!important;overflow:auto!important;padding:20px 22px!important;margin:0!important;border:0!important;border-radius:0!important;background:var(--desk-surface)!important;color:var(--desk-ink)!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .voice-modern-overlay .voice-assignment-field{margin:12px 0!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .voice-modern-overlay .voice-assignment-actions{display:flex!important;align-items:center!important;gap:12px!important;justify-content:space-between!important;padding-top:14px!important;border-top:1px solid var(--desk-line)!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .voice-modern-overlay .discipline-modal-list{flex:1 1 auto!important;min-height:0!important;overflow:auto!important;padding:18px!important;margin:0!important;display:grid!important;gap:12px!important;background:var(--desk-surface)!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .voice-modern-overlay .discipline-modal-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:14px!important;padding:15px!important;border:1px solid var(--desk-line)!important;border-radius:12px!important;background:var(--desk-soft)!important;box-shadow:none!important;color:var(--desk-ink)!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .voice-modern-overlay .discipline-modal-row strong{display:block!important;font-size:15px!important;line-height:21px!important;margin-bottom:5px!important;color:var(--desk-ink)!important;overflow-wrap:anywhere!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .voice-modern-overlay .discipline-modal-row>div>span{display:block!important;font-size:11px!important;line-height:17px!important;white-space:normal!important;color:var(--desk-muted)!important;overflow-wrap:anywhere!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .voice-modern-overlay .discipline-modal-actions{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .voice-modern-overlay .compact-status{font-size:10px!important;line-height:16px!important;padding:4px 8px!important;border-radius:20px!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .voice-modern-overlay .voice-history-empty{text-align:center!important;padding:35px 20px!important;color:var(--desk-muted)!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .voice-modern-overlay .voice-history-empty strong{font-size:16px!important;color:var(--desk-ink)!important}
 body.voice-console-page.staff-mode #caseAutosaveStatus,body.voice-console-page.staff-mode #caseNoteAutosaveStatus{display:block!important;font-size:11px!important;line-height:16px!important;padding:4px 8px!important;color:var(--desk-muted)!important;overflow-wrap:anywhere!important}
 body.voice-console-page.staff-mode #caseNoteAutosaveHelp{font-size:10px!important;line-height:15px!important;margin:2px 8px 6px!important;color:var(--desk-muted)!important}
 body.voice-console-page.staff-mode [data-state=error]{color:#cb334d!important}
 body.voice-console-page.staff-mode #btnRetryCaseAutosave[hidden]{display:none!important}
 body.voice-console-page.staff-mode #btnRetryNoteAutosave[hidden]{display:none!important}
 @media(max-width:600px){body.voice-console-page.staff-mode #caseActionsOverlay .voice-modern-overlay{padding:10px!important}body.voice-console-page.staff-mode #caseActionsOverlay .voice-modern-overlay #caseWorkflowMenu,body.voice-console-page.staff-mode #caseActionsOverlay .voice-modern-overlay .discipline-modal,body.voice-console-page.staff-mode #caseActionsOverlay .voice-modern-overlay .discipline-modal>.modal-inner{max-height:calc(100dvh - 20px)!important;border-radius:14px!important}body.voice-console-page.staff-mode #caseActionsOverlay .voice-modern-overlay .case-workflow-menu-head,body.voice-console-page.staff-mode #caseActionsOverlay .voice-modern-overlay .modal-header{padding:16px!important}body.voice-console-page.staff-mode #caseActionsOverlay .voice-modern-overlay #caseAssignBlock{padding:16px!important}body.voice-console-page.staff-mode #caseActionsOverlay .voice-modern-overlay .discipline-modal-row{grid-template-columns:1fr!important;gap:9px!important}body.voice-console-page.staff-mode #caseActionsOverlay .voice-modern-overlay .voice-assignment-actions{flex-wrap:wrap!important}}
}
@layer dc-contrast-repairs {
 :is(html,#dcTheme#dcTheme#dcTheme)[data-dc-theme=dark] body.voice-console-page.staff-mode #caseToolsPanel :is(#btnSave,#btnDeleteTicket,#btnCaseWorkflowToggle,#btnDisciplinaryHistory){background:transparent!important;color:var(--desk-ink)!important;-webkit-text-fill-color:currentColor!important;border:0!important;box-shadow:none!important}
 :is(html,#dcTheme#dcTheme#dcTheme)[data-dc-theme=dark] body.voice-console-page.staff-mode #caseToolsPanel #btnSave{color:#8ce0d3!important}
 :is(html,#dcTheme#dcTheme#dcTheme)[data-dc-theme=dark] body.voice-console-page.staff-mode #caseToolsPanel #btnDeleteTicket{color:#ff9baa!important}
 :is(html,#dcTheme#dcTheme#dcTheme)[data-dc-theme=dark] body.voice-console-page.staff-mode #caseToolsPanel button:hover{background:var(--desk-soft)!important}
}
@layer voiceCaseTools {
 body.voice-console-page.staff-mode #caseActionsOverlay>.case-workspace-modal>.modal-inner>.modal-header{position:relative!important;z-index:5!important;padding:4px 8px!important}
 body.voice-console-page.staff-mode #caseActionsSummary{min-width:0!important;flex:1!important;align-self:center!important}
 body.voice-console-page.staff-mode #caseActionsSummary .case-chat-person{font-size:16px!important;line-height:20px!important;color:var(--desk-ink)!important;margin:0!important;overflow-wrap:anywhere!important}
 body.voice-console-page.staff-mode #caseToolsMenu{position:static!important;display:block!important}
 body.voice-console-page.staff-mode #caseToolsMenu>summary{display:flex!important;align-items:center!important;justify-content:center!important;list-style:none!important;cursor:pointer!important;width:36px!important;height:32px!important;border:1px solid var(--desk-line)!important;border-radius:8px!important;background:var(--desk-surface)!important;color:var(--desk-ink)!important;font:20px/1 Arial,sans-serif!important}
 body.voice-console-page.staff-mode #caseToolsMenu>summary::-webkit-details-marker{display:none!important}
 body.voice-console-page.staff-mode #caseToolsMenu>summary:focus-visible{outline:2px solid #12aa98!important;outline-offset:2px!important}
 body.voice-console-page.staff-mode #caseToolsMenu:not([open])>#caseToolsPanel{display:none!important}
 body.voice-console-page.staff-mode #caseToolsPanel{display:flex!important;flex-direction:column!important;gap:0!important;position:absolute!important;top:calc(100% + 4px)!important;right:0!important;z-index:60!important;width:min(240px,100%)!important;max-height:var(--case-tools-max-height,min(540px,calc(100dvh - 300px)))!important;overflow:hidden!important;padding:0!important;border:1px solid var(--desk-line)!important;border-radius:8px!important;background:var(--desk-surface)!important;color:var(--desk-ink)!important;box-shadow:0 6px 20px #0002!important}
 body.voice-console-page.staff-mode #caseToolsBody{display:flex!important;flex-direction:column!important;gap:8px!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;padding:10px!important;flex:1 1 auto!important;overscroll-behavior:contain}
 body.voice-console-page.staff-mode #caseMenuActions{flex:0 0 auto!important;border-top:1px solid var(--desk-line)!important;background:var(--desk-soft)!important;padding:8px!important}
 body.voice-console-page.staff-mode #caseToolsPanel h4{font-size:12px!important;line-height:16px!important;margin:0!important;border-top:1px solid var(--desk-line)!important;padding-top:8px!important;color:var(--desk-ink)!important}
 body.voice-console-page.staff-mode #caseToolsPanel .case-modal-heading{display:block!important}
 body.voice-console-page.staff-mode #caseMenuHeading{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;padding-bottom:6px!important;border-bottom:1px solid var(--desk-line)!important}
 body.voice-console-page.staff-mode #caseMenuHeading::before{content:'Case number';display:block;font-size:10px;color:var(--desk-muted);margin:0}
 body.voice-console-page.staff-mode #caseMenuDetails{display:grid!important;gap:7px!important}
 body.voice-console-page.staff-mode #caseMenuDetails .case-menu-status{grid-row:1!important;grid-template-columns:auto minmax(0,1fr)!important;gap:8px!important;align-items:center!important}
 body.voice-console-page.staff-mode #caseToolsPanel .case-menu-activity>summary{font-size:11px!important;line-height:18px!important;color:var(--desk-muted)!important;cursor:pointer!important;padding:2px 0!important}
 body.voice-console-page.staff-mode #caseMenuDetails .case-contact-sla{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:3px!important;padding:7px 8px!important;margin:0!important;min-height:0!important;border:1px solid #e5be76!important;border-left:3px solid #da9f37!important;border-radius:8px!important;background:#fffbef!important;color:#644a17!important}
 body.voice-console-page.staff-mode #caseMenuDetails .case-call-heading{display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:space-between!important;gap:3px 8px!important}
 body.voice-console-page.staff-mode #caseMenuDetails .case-contact-sla strong{font-size:11px!important;line-height:15px!important;color:inherit!important}
 body.voice-console-page.staff-mode #caseMenuDetails .case-contact-sla span{display:block!important;font-size:10px!important;line-height:14px!important;white-space:normal!important;overflow-wrap:normal!important}
 body.voice-console-page.staff-mode #caseMenuDetails .case-contact-sla a{font-size:11px!important;line-height:15px!important;white-space:nowrap!important;color:#086b69!important}
 html[data-dc-theme=dark] body.voice-console-page.staff-mode #caseMenuDetails .case-contact-sla{background:#38301e!important;border-color:#8c733b!important;color:#ffe0a4!important}
 html[data-dc-theme=dark] body.voice-console-page.staff-mode #caseMenuDetails .case-contact-sla a{color:#9fe8df!important}
 body.voice-console-page.staff-mode #caseMenuDetails .case-menu-subject,body.voice-console-page.staff-mode #caseMenuDetails .case-menu-status{display:grid!important;gap:4px!important}
 body.voice-console-page.staff-mode #caseMenuDetails label,body.voice-console-page.staff-mode #caseMenuDetails .case-menu-subject>span{font-size:11px!important;font-weight:700!important;color:var(--desk-muted)!important}
 body.voice-console-page.staff-mode #caseMenuDetails strong{font-size:12px!important;color:var(--desk-ink)!important;overflow-wrap:anywhere!important}
 body.voice-console-page.staff-mode #caseMenuDetails #statusSel{display:block!important;width:100%!important;min-height:34px!important;height:auto!important;margin:0!important;padding:5px 8px!important;border:1px solid var(--desk-line)!important;border-radius:7px!important;background:var(--desk-soft)!important;color:var(--desk-ink)!important}
 body.voice-console-page.staff-mode #caseToolsPanel .case-date-line{grid-template-columns:1fr!important}
 body.voice-console-page.staff-mode #caseToolsPanel .case-date-line>span{display:grid!important;grid-template-columns:1fr!important;gap:2px!important;padding:3px 0!important;border:0!important}
 body.voice-console-page.staff-mode #caseToolsPanel .modal-ticket-actions{display:flex!important;flex-wrap:nowrap!important;gap:8px!important;margin:0!important;padding:0!important;justify-content:space-between!important;border:0!important;background:transparent!important}
 body.voice-console-page.staff-mode #caseToolsPanel #btnSave,body.voice-console-page.staff-mode #caseToolsPanel #btnDeleteTicket{min-height:36px!important;padding:6px 10px!important;flex:1!important;font-size:11px!important;border-radius:8px!important}
 body.voice-console-page.staff-mode #caseToolsPanel #btnDeleteTicket{background:var(--desk-surface)!important;color:#c32840!important;border:1px solid #e5a5af!important}
 body.voice-console-page.staff-mode #caseToolsPanel .case-save-note{display:none!important}
 body.voice-console-page.staff-mode #caseToolsPanel .discipline-history-strip{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:2px 8px!important;padding:7px 8px!important;margin:0!important;border:1px solid var(--desk-line)!important;border-radius:8px!important;background:var(--desk-soft)!important;color:var(--desk-ink)!important}
 body.voice-console-page.staff-mode #caseToolsPanel .discipline-history-strip>span,body.voice-console-page.staff-mode #caseToolsPanel .discipline-history-strip>strong{font-size:11px!important;line-height:15px!important;grid-column:1!important;overflow-wrap:anywhere!important}
 body.voice-console-page.staff-mode #caseToolsPanel .discipline-history-strip>button{grid-column:2!important;grid-row:1/3!important;min-height:32px!important;padding:4px 7px!important;font-size:10px!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .conversation-transcript-line{padding:6px 9px!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .conversation-transcript-line>div:first-child{gap:2px!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .conversation-transcript-line>div>span{line-height:1.35!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .conversation-transcript-line time{margin:0!important;line-height:12px!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .reader-thread{gap:6px!important;padding:10px!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .case-workspace-document{padding-top:0!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .case-document-shell{padding-top:2px!important}
 /* Standard dropdown rows; details stay collapsed until requested. */
 body.voice-console-page.staff-mode #caseToolsBody{gap:0!important;padding:4px!important}
 body.voice-console-page.staff-mode #caseMenuHeading{padding:5px 8px!important;border:0!important;justify-content:flex-start!important}
 body.voice-console-page.staff-mode #caseMenuHeading::before{display:none!important}
 body.voice-console-page.staff-mode #caseMenuHeading #caseActionsTitle{color:var(--desk-muted)!important;font-size:11px!important;font-weight:500!important}
 body.voice-console-page.staff-mode #caseRecordDisclosure>summary,body.voice-console-page.staff-mode #caseToolsPanel #btnCaseWorkflowToggle,body.voice-console-page.staff-mode #caseToolsPanel #btnDisciplinaryHistory,body.voice-console-page.staff-mode #caseToolsPanel #btnSave,body.voice-console-page.staff-mode #caseToolsPanel #btnDeleteTicket{display:flex;align-items:center!important;width:100%!important;min-height:34px!important;padding:7px 9px!important;margin:0!important;border:0!important;border-radius:4px!important;box-shadow:none!important;background:transparent!important;color:var(--desk-ink)!important;font-size:12px!important;font-weight:500!important;line-height:18px!important;text-align:left!important;justify-content:flex-start!important;cursor:pointer!important}
 body.voice-console-page.staff-mode #caseRecordDisclosure>summary{list-style:none!important;justify-content:space-between!important}
 body.voice-console-page.staff-mode #caseRecordDisclosure>summary::-webkit-details-marker{display:none!important}
 body.voice-console-page.staff-mode #caseRecordDisclosure>summary::after{content:'›';font-size:17px}
 body.voice-console-page.staff-mode #caseRecordDisclosure[open]>summary::after{content:'⌄'}
 body.voice-console-page.staff-mode #caseToolsPanel #caseMenuDetails{padding:6px 8px!important;background:var(--desk-soft)!important;border-radius:4px!important}
 body.voice-console-page.staff-mode #caseRecordDisclosure:not([open])>#caseMenuDetails{display:none!important}
 body.voice-console-page.staff-mode #caseToolsPanel .discipline-history-strip{display:block!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important}
 body.voice-console-page.staff-mode #caseToolsPanel .discipline-history-strip>span,body.voice-console-page.staff-mode #caseToolsPanel .discipline-history-strip>strong{display:none!important}
 body.voice-console-page.staff-mode #caseMenuActions{padding:4px!important;background:var(--desk-surface)!important}
 body.voice-console-page.staff-mode #caseToolsPanel .modal-ticket-actions{flex-direction:column!important;gap:0!important;align-items:stretch!important}
 body.voice-console-page.staff-mode #caseToolsPanel #btnSave{color:#087f72!important;flex:none!important}
 body.voice-console-page.staff-mode #caseToolsPanel #btnDeleteTicket{color:#c32840!important;flex:none!important}
 body.voice-console-page.staff-mode #caseToolsPanel button:hover,body.voice-console-page.staff-mode #caseRecordDisclosure>summary:hover{background:var(--desk-soft)!important}
 body.voice-console-page.staff-mode #caseToolsPanel button:focus-visible,body.voice-console-page.staff-mode #caseRecordDisclosure>summary:focus-visible{outline:2px solid #12aa98!important;outline-offset:-2px!important}
 html[data-dc-theme=dark] body.voice-console-page.staff-mode #caseToolsPanel #btnSave{color:#8ce0d3!important}
 html[data-dc-theme=dark] body.voice-console-page.staff-mode #caseToolsPanel #btnDeleteTicket{color:#ff9baa!important}
}
@media(prefers-reduced-motion:reduce){body.voice-console-page.staff-mode *{scroll-behavior:auto!important}}
/* Layered important rules beat legacy theme specificity without changing shared CSS. */
@layer voiceSplitDesk {
 body.voice-console-page.staff-mode #app .board{grid-template-columns:380px minmax(0,1fr)!important}
 body.voice-console-page.staff-mode #app .mail-row{height:auto!important;min-height:60px!important;grid-template-rows:14px 14px 11px 11px!important;gap:1px 6px!important;padding:3px 6px!important;margin-bottom:4px!important;align-content:start!important}
 body.voice-console-page.staff-mode #app .mail-row .voice-queue-person,body.voice-console-page.staff-mode #app .mail-row .mail-row-col-name{display:contents!important}
 body.voice-console-page.staff-mode #app .mail-row .mail-row-name{grid-column:1!important;grid-row:1/3!important;min-width:0!important;white-space:normal!important;overflow:hidden!important;overflow-wrap:anywhere!important;text-overflow:clip!important;font-size:12px!important;line-height:14px!important;max-height:28px!important;align-self:center!important}
 body.voice-console-page.staff-mode #app .mail-row .voice-case-code{grid-column:2!important;grid-row:2!important;font-size:9px!important;line-height:11px!important;white-space:nowrap!important;text-align:right!important}
 body.voice-console-page.staff-mode #app .mail-row .mail-row-col-subject{grid-row:3!important}
 body.voice-console-page.staff-mode #app .mail-row .mail-row-col-assigned,body.voice-console-page.staff-mode #app .mail-row .voice-date-column{grid-row:4!important}
 body.voice-console-page.staff-mode #app .mail-row .mail-row-title,body.voice-console-page.staff-mode #app .mail-row .voice-assignee-label,body.voice-console-page.staff-mode #app .mail-row .mail-row-date{font-size:10px!important;line-height:11px!important;margin:0!important;white-space:nowrap!important}
 body.voice-console-page.staff-mode #app .mail-row .voice-list-status{font-size:9px!important;line-height:10px!important;padding:1px 5px!important;min-height:0!important;height:14px!important;gap:3px!important}
 body.voice-console-page.staff-mode #app .mail-row .voice-response-indicator{height:12px!important;line-height:12px!important;font-size:14px!important}
 body.voice-console-page.staff-mode #caseActionsTitle{color:var(--desk-ink)!important;-webkit-text-fill-color:var(--desk-ink)!important;text-shadow:none!important}
 body.voice-console-page.staff-mode #app .panel-nav #listControls{display:flex!important;flex-direction:column!important;gap:8px!important;position:static!important;height:auto!important;max-height:none!important;overflow:visible!important}
 body.voice-console-page.staff-mode #app .panel-nav #listControls.is-collapsed{display:none!important}
 body.voice-console-page.staff-mode #app .panel-nav .toolbar{display:flex!important;flex-direction:row!important;position:static!important;grid-template-columns:none!important;grid-template-areas:none!important;width:100%!important;height:auto!important;margin:0!important;align-items:center!important}
 body.voice-console-page.staff-mode #app .panel-nav .toolbar-left{display:block!important;position:static!important;flex:1!important;min-width:0!important;width:auto!important;margin:0!important}
 body.voice-console-page.staff-mode #app .panel-nav #q{display:block!important;position:static!important;width:100%!important;min-width:0!important;margin:0!important}
 body.voice-console-page.staff-mode #app .panel-nav #btnRefresh{position:static!important;flex:0 0 auto!important;min-width:0!important;width:auto!important;margin:0!important;padding:8px!important;font-size:11px!important;min-height:38px!important}
 body.voice-console-page.staff-mode #app .panel-nav .simple-filters{display:flex!important;position:static!important;width:100%!important;margin:0!important;gap:6px!important;align-items:end!important}
 body.voice-console-page.staff-mode #app .panel-nav .filter-inline{position:static!important;flex:1!important;width:auto!important;min-width:0!important;margin:0!important}
 body.voice-console-page.staff-mode #app .panel-nav #deptFilterSelect{position:static!important;width:100%!important;min-width:0!important;margin:0!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .case-document-identity{padding:0!important;margin:0!important;min-height:0!important;gap:10px!important;align-items:center!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .modal-header{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;min-height:0!important;padding:4px 8px!important;margin:0!important;gap:4px!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .case-modal-heading{min-width:0!important;width:auto!important;margin:0!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .case-modal-actions{display:flex!important;flex-wrap:nowrap!important;gap:4px!important;width:auto!important;margin:0!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .modal-header h2{margin:0!important;font-size:12px!important;line-height:16px!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .modal-header button{min-height:32px!important;height:auto!important;padding:5px 10px!important;margin:0!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .case-actions-summary-card{display:flex!important;flex-direction:column!important;padding:6px 8px!important;margin:0!important;gap:4px!important;min-height:0!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .case-document-person h3,body.voice-console-page.staff-mode #caseActionsOverlay .case-document-person p{margin:0!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .case-document-person h3{line-height:20px!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .case-document-person p,body.voice-console-page.staff-mode #caseActionsOverlay .case-employee-email{line-height:14px!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .case-document-person .reader-side-kicker{line-height:12px!important;margin:0!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .case-document-shell{padding:4px 0!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .case-document-head-facts{min-height:0!important;align-self:center!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .case-document-head-facts>span{padding:5px 8px!important;gap:3px!important;min-height:0!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .case-head-status .status-pill{min-height:24px!important;height:auto!important;padding:3px 8px!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .case-document-subject{margin:0!important;padding:5px 8px!important;min-height:0!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .case-date-line{padding:0!important;margin:0!important;gap:0!important;min-height:0!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .case-date-line>span{padding:4px 8px!important;min-height:0!important;gap:6px!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .case-date-line strong{line-height:16px!important}
 body.voice-console-page.staff-mode #caseActionsSummary{margin:0!important;padding:0!important;min-height:0!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .case-workspace-conversation{background:var(--desk-soft)!important;border:1px solid var(--desk-line)!important;border-radius:12px!important;overflow:hidden!important;padding:0!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .case-workspace-conversation .case-document-section-heading{padding:10px 14px!important;margin:0!important;background:var(--desk-surface)!important;border-bottom:1px solid var(--desk-line)!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .reader-thread{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important;min-height:260px!important;max-height:48dvh!important;overflow-y:auto!important;overflow-x:hidden!important;padding:16px!important;margin:0!important;border:0!important;border-radius:0!important;background:var(--desk-soft)!important;scrollbar-gutter:stable}
 body.voice-console-page.staff-mode #caseActionsOverlay .conversation-transcript-line{display:block!important;flex:0 0 auto!important;align-self:flex-start!important;width:fit-content!important;max-width:84%!important;margin:0!important;padding:10px 13px!important;border:1px solid var(--desk-line)!important;border-radius:14px 14px 14px 3px!important;background:var(--desk-surface)!important;color:var(--desk-ink)!important;box-shadow:0 1px 2px #0000000a!important;overflow-wrap:anywhere!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .conversation-transcript-line.is-manager{align-self:flex-end!important;border-radius:14px 14px 3px 14px!important;background:var(--desk-selected)!important;border-color:#65b7a9!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .conversation-transcript-line>div:first-child{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:4px!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .conversation-transcript-line strong{font-size:11px!important;line-height:15px!important;color:var(--desk-muted)!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .conversation-transcript-line>div>span{display:block!important;font-size:13px!important;line-height:1.5!important;color:var(--desk-ink)!important;white-space:pre-wrap!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .conversation-transcript-line time{display:block!important;align-self:flex-end!important;background:none!important;color:var(--desk-muted)!important;font-size:10px!important;line-height:14px!important;padding:0!important;margin:2px 0 0!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .chat-day-separator{align-self:center!important;font-size:10px!important;font-weight:600!important;color:var(--desk-muted)!important;background:var(--desk-surface)!important;border:1px solid var(--desk-line)!important;border-radius:20px!important;padding:3px 10px!important;margin:3px 0!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .case-employee-reply-panel{position:sticky!important;bottom:0!important;z-index:2!important;padding:10px 12px!important;margin:0!important;border:0!important;border-top:1px solid var(--desk-line)!important;border-radius:0!important;background:var(--desk-surface)!important}
 body.voice-console-page.staff-mode #caseActionsOverlay .case-employee-reply-compose{display:flex!important;gap:8px!important;align-items:stretch!important}
 body.voice-console-page.staff-mode #caseActionsOverlay #publicReplyMsg{flex:1!important;min-width:0!important;margin:0!important;font-size:13px!important}
 body.voice-console-page.staff-mode #caseActionsOverlay #btnSendPublicReply{flex:0 0 auto!important;min-width:64px!important;width:auto!important}
 @media(max-width:800px){body.voice-console-page.staff-mode #app .board{grid-template-columns:minmax(0,1fr)!important}body.voice-console-page.staff-mode #caseActionsOverlay .reader-thread{padding:10px!important;min-height:240px!important;max-height:45dvh!important}body.voice-console-page.staff-mode #caseActionsOverlay .conversation-transcript-line{max-width:91%!important}}
 @media(max-width:800px){
  body.voice-console-page.staff-mode #caseActionsOverlay .case-document-identity{padding:0!important;gap:8px!important;grid-template-columns:46px minmax(0,1fr)!important}
  body.voice-console-page.staff-mode #caseActionsOverlay .case-document-head-facts{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:0!important}
  body.voice-console-page.staff-mode #caseActionsOverlay .case-document-head-facts>span{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:4px!important;padding:6px!important;border-bottom:0!important}
  body.voice-console-page.staff-mode #caseActionsOverlay .case-document-head-facts strong{white-space:normal!important;overflow-wrap:anywhere!important;font-size:10px!important}
  body.voice-console-page.staff-mode #caseActionsOverlay .case-document-person h3{font-size:16px!important;margin:0!important}
  body.voice-console-page.staff-mode #caseActionsOverlay .case-date-line{padding:0!important;margin:0!important}
  body.voice-console-page.staff-mode #caseActionsOverlay .case-date-line>span{padding:4px 6px!important;min-height:0!important}
  body.voice-console-page.staff-mode #caseActionsOverlay .modal-header button{font-size:11px!important;padding:5px 7px!important}
 }
}
