/* KOFAD Support v3 — assigned agent live chat */
.support-workspace-page .body>main#main{height:calc(100dvh - 72px);min-height:0;overflow:hidden;padding:12px 14px 14px}
.support-workspace-page .page-heading,.support-workspace-page .page-footer{display:none!important}
.support-workspace-page .notice{margin:0 0 8px}
.support-desk-v3{height:100%;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);gap:9px}
.support-desk-top{display:grid;grid-template-columns:minmax(280px,1fr) auto;grid-template-areas:"title metrics" "tabs tabs";gap:8px 18px;padding:2px 2px 0}
.support-desk-title{grid-area:title}.support-desk-title p{margin:0;color:#0f7d84;font-size:7px;font-weight:900;letter-spacing:.12em}.support-desk-title h2{margin:2px 0 1px;font-size:22px;letter-spacing:-.035em}.support-desk-title span{font-size:8px;color:#718492}
.support-desk-metrics{grid-area:metrics;display:flex;gap:5px;align-items:center}.support-desk-metrics>span{min-width:64px;padding:7px 9px;border:1px solid var(--line);border-radius:10px;background:var(--surface);text-align:center}.support-desk-metrics b,.support-desk-metrics small{display:block}.support-desk-metrics b{font-size:15px}.support-desk-metrics small{margin-top:1px;font-size:6px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}
.support-desk-tabs{grid-area:tabs;display:flex;gap:5px;overflow-x:auto;scrollbar-width:none}.support-desk-tabs::-webkit-scrollbar{display:none}.support-desk-tabs a{flex:none;display:flex;align-items:center;gap:6px;min-height:34px;padding:0 10px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--muted);font-size:8px;font-weight:850}.support-desk-tabs a.active{background:#0c314a;border-color:#0c314a;color:#fff}.support-desk-tabs b{min-width:17px;height:17px;padding:0 4px;border-radius:999px;display:grid;place-items:center;background:rgba(15,116,122,.12);font-size:7px}.support-desk-tabs a.active b{background:rgba(255,255,255,.14)}

.support-desk-shell{min-height:0;display:grid;grid-template-columns:330px minmax(0,1fr);border:1px solid var(--line);border-radius:16px;background:var(--surface);overflow:hidden;box-shadow:0 12px 34px rgba(10,35,50,.08)}
.support-queue-v3{min-width:0;min-height:0;border-right:1px solid var(--line);display:grid;grid-template-rows:auto minmax(0,1fr);background:color-mix(in srgb,var(--surface) 96%,#edf5f6 4%)}
.support-queue-v3>header{min-height:55px;padding:10px 12px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px}.support-queue-v3>header strong,.support-queue-v3>header small{display:block}.support-queue-v3>header strong{font-size:10px}.support-queue-v3>header small{font-size:7px;color:var(--muted);margin-top:2px}.support-queue-v3>header>a{padding:6px 8px;border-radius:8px;background:#edf5f6;color:#0f747a;font-size:7px;font-weight:850}
.support-queue-list{min-height:0;overflow-y:auto;padding:5px}
.support-queue-item{display:grid;grid-template-columns:35px minmax(0,1fr) auto;gap:9px;align-items:center;padding:10px 8px;border-radius:11px;color:inherit!important}.support-queue-item:hover{background:color-mix(in srgb,#0f747a 6%,transparent)}.support-queue-item.active{background:#e9f4f5;box-shadow:inset 3px 0 #0f747a}.support-queue-avatar{width:35px;height:35px;border-radius:11px;display:grid;place-items:center;background:#0c314a;color:#fff;font-size:11px;font-weight:900}.support-queue-copy{min-width:0}.support-queue-copy>div{display:flex;align-items:center;gap:5px;min-width:0}.support-queue-copy strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px}.support-queue-copy i{flex:none;max-width:104px;padding:3px 5px;border-radius:999px;font-size:5px;font-style:normal;font-weight:900;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.support-queue-copy i.waiting{background:#fff1d7;color:#8d5d09}.support-queue-copy i.connected{background:#dff3eb;color:#197052}.support-queue-copy i.closed{background:#edf0f2;color:#73838d}.support-queue-copy p{margin:3px 0 2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:8px;color:#3d596b}.support-queue-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:6px;color:var(--muted)}.support-queue-arrow{color:#8ea1ac;font-size:15px}.support-queue-empty{height:100%;min-height:160px;display:grid;place-content:center;text-align:center;padding:18px}.support-queue-empty span{font-size:22px;color:#0f747a}.support-queue-empty strong{margin-top:7px;font-size:10px}.support-queue-empty small{margin-top:3px;font-size:7px;color:var(--muted)}

.support-agent-thread-v3{min-width:0;min-height:0;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto auto;background:var(--surface)}
.support-agent-head{min-height:68px;padding:9px 12px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}.support-agent-customer{display:flex;align-items:center;gap:9px;min-width:0}.support-agent-avatar{width:39px;height:39px;border-radius:12px;display:grid;place-items:center;background:#0f747a;color:#fff;font-size:12px;font-weight:900;flex:none}.support-agent-customer>div{min-width:0}.support-agent-customer p{margin:0;color:#0f7d84;font-size:6px;font-weight:900;letter-spacing:.08em}.support-agent-customer h3{margin:2px 0;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.support-agent-customer small{display:block;font-size:7px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.support-agent-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px;flex-wrap:wrap}.support-action{min-height:33px;padding:0 9px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);font-size:7px;font-weight:850;cursor:pointer}.support-action.primary{background:#0f747a;border-color:#0f747a;color:#fff}.support-action.danger{border-color:#efc9c9;color:#a04444}.support-connected-pill{min-height:32px;padding:0 8px;border-radius:999px;background:#e6f5ee;color:#1b7255;display:flex;align-items:center;gap:5px;font-size:7px;font-weight:850}.support-connected-pill i{width:6px;height:6px;border-radius:50%;background:#26a673;box-shadow:0 0 0 3px rgba(38,166,115,.12)}.support-connected-pill.other{background:#eef2f4;color:#617681}.support-connected-pill.other i{background:#8296a1;box-shadow:none}.support-mobile-back{display:none}

.support-live-status{min-height:34px;padding:7px 12px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:6px;background:#f7fafb;color:#617684;font-size:7px}.support-live-status>span{width:7px;height:7px;border-radius:50%;flex:none}.support-live-status>span.online{background:#27a875;box-shadow:0 0 0 3px rgba(39,168,117,.11)}.support-live-status>span.waiting{background:#e2a63a;box-shadow:0 0 0 3px rgba(226,166,58,.11)}.support-live-status strong{color:#29495c}
.support-stream-v3{min-height:0!important;overflow-y:auto!important;padding:14px!important;background:linear-gradient(180deg,#f8fbfb 0%,#f2f7f7 100%)}.support-stream-v3 .support-message{max-width:78%;margin-bottom:9px}.support-stream-v3 .support-message.staff{margin-left:auto}.support-stream-v3 .support-bubble{border-radius:14px!important;padding:9px 11px!important;box-shadow:none!important}.support-stream-v3 .support-message.staff .support-bubble{background:#0c314a!important;color:#fff!important}.support-stream-v3 .support-message.customer .support-bubble{background:#fff!important;border:1px solid #dce7eb!important}.support-stream-v3 .support-message>small{font-size:6px!important;color:#82949e!important;margin-top:3px!important}
.support-typing-v3{min-height:25px;padding:3px 13px!important;border-top:1px solid var(--line);background:var(--surface)}.support-typing-v3 b{font-size:6px!important}
.support-compose-v3{padding:9px 10px!important;border-top:1px solid var(--line)!important;background:var(--surface)!important}.support-compose-v3 textarea{min-height:42px!important;max-height:92px!important;resize:none!important}.support-compose-v3 .support-file-note{display:none}.support-compose-v3 .support-compose-actions{align-self:end}
.support-accept-panel{min-height:58px;padding:9px 12px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff9ec}.support-accept-panel strong,.support-accept-panel span{display:block}.support-accept-panel strong{font-size:8px;color:#6f4b0a}.support-accept-panel span{margin-top:2px;font-size:7px;color:#8b7449}.support-accept-panel button{min-height:34px;padding:0 11px;border:0;border-radius:8px;background:#0f747a;color:#fff;font-size:7px;font-weight:900}.support-accept-panel.locked{background:#f4f7f8}
.support-desk-empty,.support-ended-v3{height:100%;min-height:220px;display:grid;place-content:center;text-align:center;padding:24px}.support-desk-empty>span,.support-ended-v3>span{width:45px;height:45px;margin:auto;border-radius:14px;display:grid;place-items:center;background:#e8f4f4;color:#0f747a;font-size:19px}.support-desk-empty h2,.support-ended-v3 h3{margin:10px 0 3px;font-size:17px}.support-desk-empty p,.support-ended-v3 p{max-width:430px;margin:0 auto;color:var(--muted);font-size:8px;line-height:1.55}.support-ended-v3 small{margin-top:7px;color:var(--muted);font-size:7px}

.support-v3-page{width:min(1220px,calc(100% - 30px));margin:20px auto 60px}.support-v3-customer-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:12px}.support-v3-customer-head h1{margin:3px 0;font-size:29px;letter-spacing:-.035em}.support-v3-customer-head>div>span{font-size:8px;color:var(--v2-muted)}.support-v3-new{min-height:38px;padding:0 11px;border-radius:9px;background:#0f747a;color:#fff!important;display:flex;align-items:center;font-size:8px;font-weight:900}
.support-v3-customer-layout{height:min(680px,calc(100dvh - 210px));min-height:480px;display:grid;grid-template-columns:290px minmax(0,1fr);border:1px solid var(--v2-line);border-radius:16px;overflow:hidden;background:var(--v2-surface);box-shadow:0 12px 34px rgba(10,35,50,.07)}.support-thread-list-v3{min-height:0;overflow-y:auto;border-right:1px solid var(--v2-line);padding:7px}.support-conversation-v3{min-height:0;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto auto;overflow:hidden}.support-customer-thread-head{min-height:67px;margin:0!important;padding:9px 12px!important;border-bottom:1px solid var(--v2-line)!important}.support-customer-thread-head>div{min-width:0}.support-customer-thread-head h2{font-size:13px!important}.support-customer-end button{min-height:32px;padding:0 9px;border:1px solid #e2c5c5;border-radius:8px;background:transparent;color:#9f4848;font-size:7px;font-weight:850}.support-live-status.customer{background:#f6fbfa}.support-ended-v3.customer{height:auto;min-height:100%;}.support-ended-v3.customer .market-button{margin:13px auto 0}.support-new-panel-v3{height:100%;overflow-y:auto;padding:26px!important}

html[data-theme="dark"] .support-queue-item.active{background:#143448}html[data-theme="dark"] .support-live-status,html[data-theme="dark"] .support-stream-v3{background:#0a2133}html[data-theme="dark"] .support-stream-v3 .support-message.customer .support-bubble{background:#102d42!important;border-color:#31556b!important;color:#e6f0f4!important}html[data-theme="dark"] .support-accept-panel{background:#382f1c}html[data-theme="dark"] .support-accept-panel.locked{background:#10283a}

@media(max-width:900px){
 .support-workspace-page .body>main#main{height:calc(100dvh - 62px - 62px);padding:8px}.support-desk-top{grid-template-columns:1fr;grid-template-areas:"title" "metrics" "tabs";gap:7px}.support-desk-title span{display:none}.support-desk-metrics{justify-content:flex-start}.support-desk-shell{grid-template-columns:280px minmax(0,1fr)}.support-agent-actions{max-width:270px}
}
@media(max-width:680px){
 .support-workspace-page .body>main#main{height:calc(100dvh - 58px - 64px);padding:6px}.support-desk-v3{gap:6px}.support-desk-title h2{font-size:18px}.support-desk-title p{font-size:6px}.support-desk-metrics{display:none}.support-desk-tabs a{min-height:31px;padding:0 8px;font-size:7px}.support-desk-shell{display:block;border-radius:12px;height:100%}.support-queue-v3{height:100%;border:0}.support-desk-shell.has-thread .support-queue-v3{display:none}.support-agent-thread-v3{height:100%}.support-desk-shell:not(.has-thread) .support-agent-thread-v3{display:none}.support-agent-head{min-height:62px;padding:7px 8px}.support-mobile-back{display:inline-flex;align-items:center;color:#0f747a!important;font-size:7px;font-weight:900;position:absolute;top:7px;left:8px}.support-agent-head{position:relative;padding-top:22px}.support-agent-avatar{width:34px;height:34px}.support-agent-customer h3{font-size:11px}.support-agent-customer p{font-size:5px}.support-agent-customer small{font-size:6px}.support-agent-actions{gap:3px;max-width:45%}.support-connected-pill{display:none}.support-action{min-height:30px;padding:0 7px;font-size:6px}.support-stream-v3{padding:9px!important}.support-stream-v3 .support-message{max-width:88%}.support-accept-panel{min-height:54px;padding:7px 9px}.support-accept-panel span{display:none}.support-compose-v3{padding:7px!important}.support-compose-v3 textarea{min-height:38px!important}.support-queue-v3>header{min-height:47px;padding:7px 9px}.support-queue-item{padding:8px 7px}.support-queue-avatar{width:32px;height:32px}.support-queue-copy i{max-width:88px}
 .support-v3-page{width:calc(100% - 16px);margin:10px auto 82px}.support-v3-customer-head{align-items:center;margin-bottom:8px}.support-v3-customer-head h1{font-size:22px}.support-v3-customer-head>div>span{display:none}.support-v3-new{min-height:34px;font-size:7px}.support-v3-customer-layout{height:calc(100dvh - 230px);min-height:430px;display:block;border-radius:12px}.support-thread-list-v3{height:100%;border:0}.support-v3-customer-layout.has-thread .support-thread-list-v3{display:none}.support-conversation-v3{height:100%}.support-v3-customer-layout:not(.has-thread) .support-conversation-v3{display:none}.support-customer-thread-head{position:relative;padding-top:22px!important}.support-customer-thread-head .support-mobile-back{top:6px}.support-customer-thread-head h2{font-size:11px!important}.support-customer-end button{min-height:29px;font-size:6px}.support-new-panel-v3{padding:16px!important}
}
