/* Approved V4 layout; every merchant surface uses the active merchant palette. */
body.merchant-theme{--paper:var(--chatBg);--ink:var(--textColor);--muted:var(--mutedColor);--line:var(--borderColor);--desk-line:var(--borderColor);--desk-tint:var(--select);background:var(--pageBg);color:var(--textColor)}
body.merchant-theme .workspace{--paper:var(--chatBg);--ink:var(--textColor);--line:var(--borderColor);--desk-line:var(--borderColor);--desk-tint:var(--select);color:var(--textColor);background:var(--chatBg)}
.merchant-theme :is(input,textarea,select,button,.btn,dialog){color:var(--textColor);border-color:var(--borderColor);background:var(--surfaceBg)}
.merchant-theme :is(input,textarea,select):not([type=checkbox],[type=color],[type=radio],[type=file]){border-radius:9px;background:color-mix(in srgb,var(--surfaceBg) 82%,var(--pageBg));box-shadow:inset 0 1px 3px #102b2110;padding:10px 12px}
.merchant-theme :is(input,textarea,button,a):focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.merchant-theme input:is([type=checkbox],[type=radio]){accent-color:var(--accent)}
.merchant-theme :is(.panel,.card,.dx-card,.settings-nav,.desk-settings-nav,.desk-subnav,.top,.chat,.convos,.details,.visitor-detail,.dx-table,.faq-editor,.faq-detail,.asset-card,.modal,.home-review,.language-alert-card){background:var(--surfaceBg);border-color:var(--borderColor);color:var(--textColor)}
.merchant-theme .workspace[data-chat-theme] :is(.top,.merchant,.merchant>.panel){background:var(--chatBg);color:var(--textColor)}
.merchant-theme .workspace[data-chat-theme] :is(.panel,.dx-card,.settings-nav,.desk-settings-nav,.details,.convos,.chathead,.customer-panel,.customer-detail,.customer-profile,.settings-sidebar){color:var(--textColor);border-color:var(--borderColor)}
.merchant-theme .workspace[data-chat-theme] .top{background:var(--surfaceBg)}
.merchant-theme :is(h1,h2,h3,h4,.brand){color:var(--textColor)}
.merchant-theme :is(small,.muted,.hint){color:var(--mutedColor)}
.merchant-theme :is(th,.thread.sel,[aria-selected=true],.badge,.tab.active){background:var(--select);color:var(--textColor)}
.merchant-theme tr:nth-child(even){background:color-mix(in srgb,var(--pageBg) 45%,var(--surfaceBg))}
.merchant-theme button:hover:not(:disabled){background:var(--select)}
.merchant-theme .workspace[data-chat-theme] :is(button.primary,.btn.primary,.home-chat),.merchant-theme button.primary{background:var(--accent);color:var(--headerText);border-color:var(--accent)}
.merchant-theme .workspace[data-chat-theme] .desk-rail{background:var(--rail)}
.merchant-theme .workspace[data-chat-theme] .desk-rail .active{background:var(--signal);color:var(--rail)}
.merchant-theme .workspace[data-chat-theme] .merchant :is(.log,.conversation-body,.inbox-aside){background:var(--chatBg);color:var(--textColor)}
.merchant-theme .workspace-version{background:var(--surfaceBg);color:var(--mutedColor);border-color:var(--borderColor)}
.merchant-theme .merchant:has(.dc-approved)>.panel{padding:24px;background:var(--chatBg);border:0;box-shadow:none}
.merchant-theme .merchant:has(.dc-approved)>.panel>h1{font-size:27px;letter-spacing:-.02em;display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.dc-theme-badge{font-size:12px;line-height:1.5;font-weight:500;padding:7px 13px;border-radius:24px;background:var(--select);color:var(--accent);letter-spacing:0}
.merchant-theme .dc-approved{grid-template-columns:minmax(340px,.85fr) minmax(0,1.55fr);gap:22px;margin-top:24px;max-width:none}
.dc-approved .appearance-controls,.dc-approved .appearance-visual{display:grid;gap:20px;align-content:start;min-width:0}
.merchant-theme .dc-approved .dc-card{background:var(--surfaceBg);border:1px solid var(--borderColor);border-radius:16px;padding:22px;box-shadow:0 4px 20px #203e3505;min-width:0;display:block}
.dc-approved .dc-card>h3{font-size:17px;margin:0 0 20px;font-weight:700}
.dc-approved h4{font-size:13px;margin:0 0 12px}
.dc-approved .dc-display-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}
.dc-approved .dc-basic,.dc-approved .dc-window{min-width:0}
.dc-approved .dc-window{border-left:1px solid var(--borderColor);padding-left:20px}
.dc-approved label{font-size:13px;font-weight:600;gap:8px;margin:0 0 18px;min-width:0}
.dc-approved label:last-child{margin-bottom:0}
.dc-approved label input:not([type=checkbox],[type=color],[type=file]),.dc-approved textarea,.dc-approved .dc-select{padding:11px 12px;min-height:44px;width:100%;font-size:13px}
.dc-approved small{display:block;font-size:11px;font-weight:400;line-height:1.7}
.dc-basic>small{margin:16px 0 20px}
.dc-version-actions{display:flex;gap:5px;flex-wrap:wrap;margin-top:-6px}
.dc-version-actions button{padding:6px 8px;font-size:12px}
.dc-approved .palette{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:14px 0}
.dc-approved .tone-field{border:1px solid var(--borderColor);border-radius:9px;background:color-mix(in srgb,var(--pageBg) 25%,var(--surfaceBg));padding:10px;margin:0;font-weight:400;min-width:0}
.dc-approved .tone-value{display:flex;gap:7px;flex-wrap:wrap;align-items:center}
.dc-approved .tone-value input[type=color]{width:32px;height:28px;padding:0;border:0;flex:none}
.dc-approved output{font-size:10px;color:var(--mutedColor);word-break:break-all}
.dc-approved .theme-color-row{width:fit-content;border-color:var(--borderColor);background:var(--pageBg);padding:8px;border-radius:9px}
.dc-approved .visitor-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:0;padding:0;margin:0;gap:10px 14px}
.dc-approved .visitor-options label{display:flex;gap:8px;align-items:center;font-size:13px;font-weight:400;margin:0}
.dc-approved .visitor-options input{width:17px;height:17px;flex:none;margin:0}
.dc-approved .visitor-options small{grid-column:1/-1;margin-top:10px}
.dc-marquee-fields{display:grid;grid-template-columns:minmax(0,1fr) 98px;gap:14px}
.dc-approved .dc-marquee-fields textarea{height:145px;resize:vertical}
.dc-marquee-sample{border-radius:9px;padding:12px;font-size:13px;overflow-wrap:anywhere}
[data-effect=bold]{font-weight:700}[data-effect=outline]{font-weight:600;text-shadow:.6px 0 #0008,-.6px 0 #0008,0 .6px #0008,0 -.6px #0008}[data-effect=shadow]{text-shadow:0 2px 3px #0007}
.dc-approved .appearance-assets-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 14px}
.dc-approved .appearance-assets-heading h3{font-size:17px;margin:0}
.dc-approved .appearance-assets-heading small{color:var(--mutedColor)}
.dc-approved .appearance-assets .asset-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:14px}
.dc-approved .asset-card{border:0;background:transparent;padding:0}
.dc-approved .asset-card b{font-size:13px}
.dc-approved .asset-picker{margin:8px 0;min-height:106px;height:auto;border:1px dashed var(--borderColor);border-radius:10px;background:color-mix(in srgb,var(--pageBg) 65%,var(--surfaceBg));display:flex;flex-direction:column;gap:6px;padding:16px}
.dc-approved .asset-picker:hover{border-color:var(--accent);background:var(--select)}
.dc-approved .asset-placeholder{font-size:22px;color:var(--accent)}
.dc-approved .asset-picker img{max-width:100%;height:48px}
.dc-approved .asset-action{color:var(--accent);background:transparent;font-size:12px}
.dc-approved .asset-footer button{font-size:11px;padding:0;border:0;background:transparent;color:var(--accent)}
.dc-approved .appearance-ad{grid-template-columns:minmax(132px,35%) minmax(0,1fr);align-content:start;align-self:stretch;gap:14px 18px}
.dc-approved .appearance-ad-media{min-width:0}
.dc-approved .appearance-ad-media>small{margin-top:10px;color:var(--mutedColor)}
.merchant-theme .dc-approved .appearance-time{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px}
.dc-approved .appearance-time>h3{margin:0;white-space:nowrap}
.dc-approved .appearance-time>label{margin:0;flex:1 1 180px}
.dc-approved .appearance-time :is(select,.dc-dropdown){width:100%}
.dc-approved .appearance-ad>h3{grid-column:1/-1;margin-bottom:4px}
.dc-approved .appearance-ad>.ad-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid;min-width:0}
.dc-approved .appearance-ad>.ad-options label{margin:0}
.dc-approved .appearance-ad>.ad-options label:has([data-key=sideUrl]){grid-column:1/-1}
.dc-approved .design-preview.dc-real-preview{display:grid;grid-template-columns:minmax(80px,.24fr) minmax(0,1fr);gap:18px;align-items:start}
.dc-real-preview>h3{grid-column:1/-1;margin:0 0 8px;font-size:17px}
.dc-real-preview figure{margin:0;min-width:0}
.dc-real-preview figcaption{font-size:11px;display:flex;justify-content:space-between;color:var(--mutedColor);margin-bottom:8px}
.dc-preview-holder{width:100%;position:relative;overflow:hidden;background:var(--pageBg)}
.dc-pc-holder{aspect-ratio:16/9;border-radius:9px}
.dc-phone-holder{aspect-ratio:390/760;border:2px solid var(--borderColor);border-radius:18px;max-width:156px;margin:auto}
.dc-preview-holder>.sample{position:absolute;inset:0 auto auto 0;transform-origin:0 0;padding:0;border:0;border-radius:0;max-width:none;margin:0;pointer-events:none;overflow:hidden}
.dc-preview-holder>.stage0{width:1920px;height:1080px;display:flex;align-items:center;justify-content:center;gap:8px;background:var(--pageBg);background-position:center;background-size:cover}
.dc-preview-holder>.stage1{width:390px;height:760px;background:var(--chatBg)}
.dc-preview-holder .sample .sample-chat{width:720px;max-width:720px;flex:none;height:760px;margin:0;display:flex;flex-direction:column;background:var(--chatBg);border-radius:12px;box-shadow:0 12px 40px #14231b20;overflow:hidden}
.dc-preview-holder .stage1 .sample-chat{width:390px;max-width:none;border-radius:0}
.dc-preview-holder .sample .log{height:auto;flex:1;padding:16px;gap:14px;background:var(--chatBg)}
.dc-preview-holder .sample .chathead{padding:12px 18px;min-height:58px;font-size:18px;gap:10px}
.dc-preview-holder .sample .chathead small{font-size:12px}
.dc-preview-holder .sample .bubble{font-size:15px;padding:8px 12px}
.dc-preview-holder .sample .message-avatar{width:32px;height:32px}
.dc-preview-holder .sample .visitor-compose{padding:8px}
.dc-preview-holder .sample .visitor-compose .compose-icon,.dc-preview-holder .sample .visitor-compose .send-arrow{width:36px;height:36px;padding:5px}
.dc-preview-holder .sample .write-field textarea{font-size:15px;padding:8px}
.dc-preview-holder .sample .pc-side-ad{position:static;flex:none;width:auto;height:760px;inset:auto;transform:none}
.dc-preview-holder .sample .pc-side-ad img{height:760px;width:auto;max-width:640px;object-fit:contain}
.dc-preview-holder .sample .pc-side-ad.custom-width img{width:var(--side-width);object-fit:cover}
.dc-preview-caption{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px}
.dc-preview-caption button{font-size:11px;padding:6px 9px}
.dc-enlarge{width:min(94vw,1600px);max-width:none;border-radius:16px;padding:20px;border:1px solid var(--borderColor)}
.dc-enlarge>button{margin:0 0 15px auto;display:flex}
.dc-enlarge::backdrop{background:#0c191c99;backdrop-filter:blur(4px)}
.visitor-window.styled-chat{color:var(--textColor,#243b34);background-color:var(--pageBg,#f5f7f3)}
.visitor-window.styled-chat :is(.log,.sample-chat,.chat,.faq-strip){background-color:var(--chatBg,#fffefa);color:var(--textColor,#243b34)}
.visitor-window.styled-chat .chathead,.visitor-window.styled-chat .chathead small{color:var(--headerText,#fff)}
.visitor-window.styled-chat .visitor-compose{background:var(--surfaceBg,#fff);border-color:var(--borderColor,#d4dfd8)}
.visitor-window.styled-chat .write-field{background:var(--pageBg,#f5f7f3)}
.visitor-window.styled-chat .write-field textarea{color:var(--textColor,#243b34)}
/* Floating menus escape cards and scrolling panes; dialogs retain their top-layer menu. */
.dc-dropdown{position:relative;display:inline-flex;min-width:0;max-width:100%;vertical-align:middle}
label>.dc-dropdown{display:flex;width:100%;align-self:start}.dc-dropdown>select[hidden]{display:none!important}
.dc-select{display:flex;justify-content:space-between;align-items:center;text-align:left;gap:18px;width:100%;white-space:normal;min-height:40px;padding:9px 12px;border:1px solid var(--borderColor,#d4dfd8);border-radius:9px;background:var(--surfaceBg,#fff);color:var(--textColor,#243b34);font-weight:600;cursor:pointer}
.dc-select::after{content:'';width:7px;height:7px;flex:none;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);transition:transform .16s}
.dc-select[aria-expanded=true]::after{transform:rotate(225deg)}
.dc-menu{display:block;position:fixed;z-index:2147483000;box-sizing:border-box;padding:6px;border:1px solid var(--borderColor,#d4dfd8);border-radius:12px;background:var(--surfaceBg,#fff);color:var(--textColor,#243b34);box-shadow:0 12px 36px #102b2126,0 2px 8px #102b2110;overflow:auto;overscroll-behavior:contain;animation:dc-open .14s ease-out;font:13px/1.5 'Segoe UI','Microsoft YaHei',sans-serif}
.dc-option{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:10px 12px;border-radius:7px;cursor:pointer;min-height:40px;font-weight:500}
.dc-option[hidden]{display:none}.dc-option[aria-disabled=true]{opacity:.4;cursor:default}
.dc-option[aria-selected=true]{color:var(--accent,#246552);background:var(--select,#e0efe6);font-weight:650}
.dc-option[aria-selected=true]::after{content:'✓';font-weight:700}
.dc-option:hover:not([aria-disabled=true]),.dc-option.dc-active{background:var(--select,#e0efe6)}
.dc-option-group{display:block;padding:6px 12px;font-size:11px;color:var(--mutedColor,#687a72)}
@keyframes dc-open{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1800px){.dc-approved .appearance-assets .asset-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1300px){.merchant-theme .dc-approved{grid-template-columns:minmax(320px,1fr) minmax(0,1.3fr)}.merchant-theme .dc-approved .dc-card{padding:18px}.dc-approved .dc-display-split{gap:14px}.dc-approved .dc-window{padding-left:14px}.dc-approved .design-preview.dc-real-preview{grid-template-columns:90px minmax(0,1fr);gap:10px}}
@media(max-width:1050px){.merchant-theme .dc-approved{grid-template-columns:1fr}.dc-approved .appearance-visual{grid-row:2}.dc-approved .design-preview.dc-real-preview{grid-template-columns:120px minmax(0,1fr)}}
@media(max-width:560px){.merchant-theme .merchant:has(.dc-approved)>.panel{padding:12px}.dc-approved .dc-display-split{grid-template-columns:1fr}.dc-approved .dc-window{padding:16px 0 0;border-left:0;border-top:1px solid var(--borderColor)}.dc-approved .visitor-options{grid-template-columns:1fr}.dc-approved .design-preview.dc-real-preview{grid-template-columns:1fr}.dc-phone-holder{max-width:120px}.dc-approved .appearance-ad{grid-template-columns:1fr}.dc-approved .appearance-ad>.ad-options{grid-template-columns:1fr}.dc-approved .appearance-assets .asset-grid{gap:12px}.dc-marquee-fields{grid-template-columns:minmax(0,1fr) 90px}.dc-preview-caption{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.dc-menu,.window-banner span{animation:none}.dc-select::after{transition:none}}
@media(min-width:960px){
 .merchant-theme .workspace .settings-nav{padding:18px 14px}
}
.dc-approved .dc-marquee-fields{align-items:start}.dc-approved .dc-marquee-fields>label{align-content:start}
.merchant-theme .workspace .merchant.with-settings>nav{background:var(--surfaceBg);border-color:var(--borderColor);padding:18px 14px}
.merchant-theme .workspace .merchant.with-settings>nav :is(a,summary){color:var(--textColor);font-size:16px;line-height:1.5;letter-spacing:.01em;min-height:44px}
.merchant-theme .workspace .merchant.with-settings>nav a{display:flex;align-items:center;padding:10px 14px;font-weight:550}
.merchant-theme .workspace .merchant.with-settings>nav .nav-category>div{padding-inline-start:4px}
.merchant-theme .workspace .merchant.with-settings>nav .nav-page-links{
  display:grid;
  padding:2px 0 0 4px;
  border-top:1px solid var(--borderColor);
}
.merchant-theme .workspace .merchant.with-settings>nav a[aria-current]{background:var(--select);color:var(--accent);font-weight:700}
.merchant-theme .workspace .merchant.with-settings>nav .nav-category{border-color:var(--borderColor)}
.merchant-theme .workspace[data-chat-theme] .duty-control{background:var(--pageBg);color:var(--textColor);border-color:var(--borderColor);flex-direction:row;gap:7px;padding:4px 8px;white-space:nowrap}
.merchant-theme .workspace .duty-control .dc-select{min-height:30px;border:0;background:transparent;padding:4px 6px}
.merchant-theme .workspace .duty-control>span:first-child{color:var(--textColor)}
.merchant-theme[data-theme-base=graphite] .desk-logo{background:#f5f7f3;border-radius:6px;padding:3px}
.dc-basic label small{font-weight:400;color:var(--mutedColor);margin-top:2px}
.merchant-theme .workspace .merchant.with-settings>nav>h2{font-size:24px;background:var(--surfaceBg);color:var(--textColor);border-color:var(--borderColor)}
.merchant-theme[data-theme-base=graphite] .workspace .merchant :is(section,aside,nav,fieldset,thead,tbody,td,th):not(.visitor-window *){background-color:var(--surfaceBg);border-color:var(--borderColor);color:var(--textColor)}
.merchant-theme[data-theme-base=graphite] .workspace .merchant :is(.thread-card,.thread,.compose,.desk-side-tabs,.chat-scope-tabs,.home-metrics,.home-total-report,.qc-card,.qc-empty,.qc-preview){background-color:var(--surfaceBg);border-color:var(--borderColor);color:var(--textColor)}
.merchant-theme[data-theme-base=graphite] .workspace .merchant :is(.log,.thread.sel,.thread-card:has(.sel)){background-color:var(--chatBg)}
.merchant-theme[data-theme-base=graphite] .workspace .merchant :is(.msg small,.thread small,.home-metrics label,.home-metrics span,.home-total-report label){color:var(--mutedColor)}

.dc-test-banner{position:fixed;bottom:8px;left:50%;transform:translateX(-50%);z-index:1000;background:#73521e;color:white;border-radius:20px;padding:6px 16px;font-size:12px;max-width:95vw;box-shadow:0 3px 15px #0002;pointer-events:none}

.merchant-theme .workspace[data-chat-theme] :is(.daily-metrics small,dt,.empty,.profile-note,.assignee,.thread small,.thread time,#chat-owner){color:var(--mutedColor)}
.merchant-theme .workspace[data-chat-theme] .inbox :is(.chathead,.compose,#visitor-profile,.conversation-actions,.resource-tabs,.inbox-scopes,.thread-card){background:var(--surfaceBg);border-color:var(--borderColor);color:var(--textColor)}
.merchant-theme .workspace[data-chat-theme] .inbox :is(.chathead small,.profile-body,.chat-resources,.resource-tabs button,.inbox-scopes button){color:var(--textColor)}
.merchant-theme .workspace[data-chat-theme] .inbox .log{background:var(--chatBg)}
.merchant-theme .workspace[data-chat-theme] .inbox :is(.resource-tabs,.inbox-scopes) [aria-pressed=true]{background:var(--select);color:var(--accent);border-color:var(--borderColor)}
.merchant-theme .workspace[data-chat-theme] .inbox .bubble{background:var(--agentBg);color:var(--agentText);border-color:var(--borderColor)}
.merchant-theme .workspace[data-chat-theme] .inbox .mine .bubble{background:var(--guestBg);color:var(--guestText)}
.merchant-theme .workspace[data-chat-theme] #submit{color:var(--headerText)}
.merchant-theme .workspace[data-chat-theme] .conversation-actions button{background:var(--surfaceBg);color:var(--textColor);border-color:var(--borderColor)}
.merchant-theme[data-theme-base=graphite] .desk-entry-content article{
  background:var(--surfaceBg);border-color:var(--borderColor);color:var(--textColor);
}
.merchant-theme[data-theme-base=graphite] .desk-entry-content article>strong{color:var(--mutedColor)}
.merchant-theme[data-theme-base=graphite] .desk-entry-content a{color:var(--accent)}
.merchant-theme[data-theme-base=graphite] :is(#desk-compose,.compose-tabs,.internal-composer){
  background:var(--surfaceBg);border-color:var(--borderColor);color:var(--textColor);
}
.merchant-theme[data-theme-base=graphite] .compose-tabs button{color:var(--mutedColor)}
.merchant-theme[data-theme-base=graphite] .compose-tabs [aria-pressed=true]{
  background:var(--select);color:var(--accent);box-shadow:inset 0 -2px var(--signal);
}
.merchant-theme[data-theme-base=graphite] .internal-composer :is(input,textarea){
  background:var(--chatBg);border-color:var(--borderColor);color:var(--textColor);
}
.merchant-theme[data-theme-base=graphite] .internal-composer #post-note{
  background:var(--accent);border-color:var(--accent);color:var(--headerText);
}
.merchant-theme[data-theme-base=graphite] .workspace .chat-header-actions button{
  background:var(--surfaceBg);border-color:var(--borderColor);color:var(--textColor);
}
.merchant-theme[data-theme-base=graphite] .workspace .chat-header-actions button:hover:not(:disabled){
  background:var(--select);border-color:var(--accent);color:var(--accent);
}
.merchant-theme[data-theme-base=graphite] .workspace .chat-header-actions button[data-action=close]:hover:not(:disabled){
  background:color-mix(in srgb,var(--surfaceBg) 82%,#a43c46);border-color:#a96f76;color:#f2b6bc;
}
.merchant-theme[data-theme-base=graphite] .role-card h3 small{
  background:var(--pageBg);color:var(--mutedColor);
}
.merchant-theme[data-theme-base=graphite] .role-card h3 small[data-role-enabled=true]{
  background:var(--select);color:var(--accent);
}
@media(max-width:800px){
 .merchant-theme .wrap.workspace.reception-first[data-chat-theme]{padding:0;width:100%;min-width:0}
 .merchant-theme .workspace.reception-first[data-chat-theme]>.top{height:auto;display:flex;flex-wrap:wrap;gap:12px;padding:12px;align-items:center}
 .merchant-theme .workspace.reception-first[data-chat-theme]>.top>.brand{font-size:18px;min-width:0}
 .merchant-theme .workspace.reception-first[data-chat-theme]>.top>.row{margin:0;width:100%;flex:1 1 100%;min-width:0;display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-start}
 .merchant-theme .workspace.reception-first[data-chat-theme]>.top>.row>*{flex:none;white-space:nowrap}
 .merchant-theme .workspace.reception-first[data-chat-theme] .top .desk-rail{position:static;inset:auto;order:3;width:100%;height:auto;display:flex;flex-direction:row;flex-wrap:wrap;gap:5px;padding:6px;border-radius:10px}
 .merchant-theme .workspace.reception-first[data-chat-theme] .top .desk-rail>:is(a,span){width:auto;min-height:36px;flex:1 0 auto;flex-direction:row;gap:5px;padding:5px;font-size:12px}
 .merchant-theme .workspace.reception-first[data-chat-theme] .top .desk-rail .shop-mark{display:none}
 .merchant-theme .workspace.reception-first[data-chat-theme] .merchant.with-settings{display:block;min-width:0}
 .merchant-theme .workspace.reception-first[data-chat-theme] .merchant.with-settings>nav{position:static;height:auto;max-height:180px;overflow:auto;width:100%}
 .merchant-theme .workspace.reception-first[data-chat-theme] .merchant.with-settings>.panel{margin:8px;min-width:0}
}

.dc-prompt{width:min(420px,calc(100vw - 32px));padding:26px;border:1px solid var(--borderColor);border-radius:16px;box-shadow:0 20px 80px #0004;background:var(--surfaceBg);color:var(--textColor)}
.dc-prompt::backdrop{background:#0c201a80;backdrop-filter:blur(3px)}
.dc-prompt h3{margin:0 0 20px;font-size:20px}.dc-prompt form{display:grid;gap:14px}.dc-prompt label{display:grid;gap:8px}.dc-prompt input{width:100%}.dc-prompt .dc-version-actions{justify-content:flex-end;margin-top:16px}

.merchant-theme .workspace .merchant.with-settings .dc-approved>button.primary{grid-column:1/-1;justify-self:end}

.merchant-theme .workspace :is(.history-filters,.account-create){
  background:color-mix(in srgb,var(--surfaceBg) 89%,var(--accent));
  border-color:var(--borderColor);color:var(--textColor);
}
.merchant-theme .workspace :is(.history-filters,.account-create) label{color:var(--textColor);font-weight:550}
.merchant-theme .workspace :is(.history-filters,.account-create) :is(input,select,textarea){color:var(--textColor);border-color:var(--borderColor);background:var(--chatBg)}
.merchant-theme :is(input,textarea)::placeholder{color:var(--mutedColor);opacity:1}
.merchant-theme[data-theme-base=graphite] :is(input,select,textarea,dialog){color-scheme:dark}
.merchant-theme .account-dialog{background:var(--surfaceBg);color:var(--textColor);border-color:var(--borderColor)}
.merchant-theme .account-dialog :is(header,footer){background:var(--chatBg);color:var(--textColor);border-color:var(--borderColor)}
.account-dialog>form>header{border-bottom:1px solid var(--borderColor,#dbe4de)}
.account-dialog>form>footer{border-top:1px solid var(--borderColor,#dbe4de)}
.block-confirm{width:min(440px,calc(100vw - 32px));border-radius:18px;box-shadow:0 22px 70px #122c2555}
.block-confirm::backdrop{background:#101b19a8;backdrop-filter:blur(3px)}
.block-confirm h2{font-size:20px;font-weight:700}
.block-confirm .restriction-summary{display:grid;gap:3px;padding:12px 14px;border-inline-start:3px solid #ad5048;border-radius:8px;background:var(--chatBg,#f8faf7)}
.block-confirm .restriction-summary p{color:var(--mutedColor,#596d64);font-size:13px}
.block-confirm textarea{width:100%;resize:vertical}
.merchant-theme .block-confirm button.primary,.block-confirm button.primary{background:#9f4039;border-color:#9f4039;color:#fff}
.merchant-theme .block-confirm button.primary:hover:not(:disabled){background:#85352f}
.account-log-tabs{display:flex;flex-wrap:wrap;gap:7px;margin-block:0 12px}
.merchant-theme .account-log-tabs button[aria-pressed=true]{color:var(--accent);background:var(--select);border-color:var(--accent);font-weight:700}
.blacklist-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));align-items:start;gap:16px;min-width:0}
.blacklist-card{display:grid;gap:12px;min-width:0;border:1px solid var(--borderColor,#dbe4de);border-radius:12px;padding:16px}
.blacklist-card h2{font-size:16px}
.blacklist-card .history-filters{margin-bottom:0;display:flex;align-items:end;gap:8px;flex-wrap:wrap;padding:10px}
.blacklist-card .history-filters label{flex:1 1 135px;min-width:0}
.blacklist-card .company-table{max-width:100%;overflow:auto}
.dc-palette-scopes{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr));gap:12px;align-items:start}
.dc-palette-scopes .dc-dropdown{width:100%}
.merchant-theme .faq-editor{background:var(--surfaceBg);color:var(--textColor);border-color:var(--borderColor)}
.merchant-theme .faq-editor>header,.merchant-theme .faq-workbench>[data-questions]{background:var(--pageBg);color:var(--textColor);border-color:var(--borderColor)}
.merchant-theme .faq-workbench .faq-detail{background:var(--surfaceBg);color:var(--textColor)}

.merchant-theme .dc-approved .appearance-ad{display:grid}

/* Workbench controls use foreground/background pairs, including in detached dialogs. */
.merchant-theme {
  --desk-success:#1d6949;
  --desk-warning:#855400;
  --desk-danger:#9b3044;
  --desk-control-line:#728078;
  --desk-muted:var(--mutedColor);
}
.merchant-theme[data-theme-base=graphite] {
  --desk-success:#85d7ae;
  --desk-warning:#edc27c;
  --desk-danger:#ffa7b1;
  --desk-control-line:#83958e;
}
:where(.merchant-theme) a:any-link {color:var(--accent)}
.merchant-theme .workspace a.pair,
.merchant-theme .profile-entry-link a {color:var(--accent);text-underline-offset:.18em}
.merchant-theme .workspace a.pair:hover {background:var(--select)}
.merchant-theme .workspace a.pair small {color:var(--mutedColor)}
.merchant-theme .desk-message .bubble a:any-link,
.merchant-theme .qc-message a:any-link {color:inherit;text-decoration:underline}
.merchant-theme :is(.workspace,dialog) :is(input:not([type=checkbox],[type=radio],[type=color],[type=file]),textarea,.dc-select):not(.visitor-window *) {
  border-color:var(--desk-control-line);
}
.merchant-theme :is(a[href],button,summary,input,textarea,select,[tabindex]):focus-visible {
  outline:2px solid var(--accent);outline-offset:2px;
}
.merchant-theme .desk-rail a:focus-visible {outline-color:var(--signal);outline-offset:-3px}
.merchant-theme .workspace[data-chat-theme] :is(.top>.row,.merchant) :is(button,a.btn):not(.visitor-window *):not(:disabled) {
  transition:box-shadow .15s;
}
.merchant-theme .workspace .merchant a.btn:hover {background:var(--select);color:var(--textColor)}
.merchant-theme :is(.workspace,dialog) button.primary:hover:not(:disabled),
.merchant-theme .dx-days button.selected:not(:disabled),
.merchant-theme .dx-days button.selected:hover:not(:disabled) {
  background:var(--accent);color:var(--headerText);border-color:var(--accent);
}
.merchant-theme dialog.block-confirm button.primary:hover:not(:disabled) {background:#85352f;border-color:#85352f;color:white}
.merchant-theme :is(.workspace,dialog) :is(button,input,select,textarea):disabled:not(.visitor-window *,[type=checkbox],[type=radio],[type=color],[type=file]),
.merchant-theme .dc-option[aria-disabled=true] {
  opacity:1;color:var(--mutedColor);-webkit-text-fill-color:currentColor;
  background:var(--pageBg);border-color:var(--borderColor);border-style:dashed;cursor:not-allowed;box-shadow:none;
}
.merchant-theme :is(.workspace,dialog) :is(input,textarea)[readonly]:not(.visitor-window *) {
  opacity:1;color:var(--textColor);-webkit-text-fill-color:currentColor;background:var(--chatBg);
}
.merchant-theme .dx-calendar button:disabled {border:1px dashed var(--borderColor)}
.merchant-theme :is(.duty-state,.duty-control,.attendance-status)[data-mode=online] {--duty-color:var(--desk-success)}
.merchant-theme :is(.duty-state,.duty-control,.attendance-status)[data-mode=away] {--duty-color:var(--desk-warning)}
.merchant-theme :is(.duty-state,.duty-control,.attendance-status)[data-mode=offline] {--duty-color:var(--desk-danger)}
.merchant-theme .workspace .duty-control[data-mode=online]::before,
.merchant-theme .attendance-status:is([data-mode=online],[data-mode=offline],[data-mode=away])::before {background:var(--duty-color)}
.merchant-theme .workspace .duty-control[data-mode=away]::before {box-shadow:inset -3px -2px var(--desk-warning)}
.merchant-theme :is(.error,.overdue,.language-state[data-unread=true]) {color:var(--desk-danger)}
.merchant-theme :is(.company-facts dd,.attendance-drawer h2,.seat-portrait) {color:var(--textColor)}
.merchant-theme .workspace .seat-portrait {background:var(--select)}
.merchant-theme :is(.inbox .desk-message small,.profile-tags-empty,.rule-status,.attendance-drawer header small,
  .attendance-drawer td small,.language-entry time,.language-entry>span,.qc-message small,.qc-info dt,#history-status) {color:var(--mutedColor)}
.merchant-theme :is(.profile-tags,.colleague-group h3,.mention-choices,.attendance-totals,.customer-tag-manager,
  .qc-message.from-visitor p,.profile-tag-actions button,.profile-tag-catalog,.tag-preview) {
  background:var(--surfaceBg);color:var(--textColor);border-color:var(--borderColor);
}
.merchant-theme .qc-message.from-agent p {background:var(--select);color:var(--textColor);border-color:var(--borderColor)}
.merchant-theme :is(.dx-card,.dx-library,.dx-drawer,.dx-calendar,.dx-report-body) {
  --dx-line:var(--borderColor);--dx-fill:var(--pageBg);--dx-blue:var(--accent);
}
.merchant-theme .attendance-totals dt {color:var(--mutedColor)}
.merchant-theme .dx-table tbody tr:nth-child(even) {background:var(--pageBg)}
.merchant-theme .dx-table th,
.merchant-theme .attendance-drawer .dx-table th {background:var(--select);color:var(--textColor)}
.merchant-theme :is(.dx-days .inrange,.dx-library button.selected) {background:var(--select);color:var(--accent)}
.merchant-theme .role-card h3 small {color:var(--mutedColor);background:var(--pageBg)}
.merchant-theme .role-card h3 small[data-role-enabled=true] {color:var(--accent);background:var(--select)}
.merchant-theme .staff-account-status[data-enabled=true] {color:var(--desk-success)}
.merchant-theme .staff-account-status[data-enabled=false] {color:var(--mutedColor)}
.merchant-theme .dx-chart {border-color:var(--borderColor);background:repeating-linear-gradient(to top,transparent 0 49px,var(--borderColor) 50px)}
.merchant-theme .dx-bars small {background:var(--surfaceBg);color:var(--mutedColor)}
/* The actual panel owns the outline. Its wrapper also holds the optional side advertisement. */
.visit.visitor-window.styled-chat {background-color:transparent}
.visit.visitor-window > .chat {overflow:hidden}
.merchant-theme .merchant :is(.fields,fieldset,label,.entry-config) {min-inline-size:0}
.merchant-theme .merchant textarea,.merchant-theme dialog textarea {box-sizing:border-box;max-inline-size:100%;min-inline-size:0;resize:vertical}
.merchant-theme .merchant .entry-config {display:grid;gap:16px}
.entry-config :is(input,select,.dc-dropdown,.dc-select) {box-sizing:border-box;width:100%;max-width:100%;min-width:0}
.entry-config .entry-rule {overflow-wrap:anywhere}
.entry-config .entry-rule p {margin:.4rem 0}
.entry-config .actions {flex-wrap:wrap}
.blacklist-card .block-key {font-weight:700;color:var(--textColor);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.merchant-theme .workspace :is(#queue-count,.duty-empty,.needs-reception),
.merchant-theme .workspace[data-chat-theme] #chat-owner.needs-reception {
  font-size:1.125rem;font-weight:750;line-height:1.4;color:var(--textColor);
}
.waiting-room.offline-room h1 {font-size:clamp(2rem,4vw,2.5rem);font-weight:800;line-height:1.25;color:#173e33}
.waiting-room.offline-room [data-waiting-copy] {font-size:1.0625rem;font-weight:600;color:#364d44}
.merchant-theme[data-theme-base=graphite] .top .desk-wordmark {background:#f1f7f2;border-radius:6px;padding:3px 7px}
.desk-login .login-brand-title {display:grid;justify-items:center;gap:10px}
.desk-login .login-brand-title img {display:block;width:clamp(136px,8.7vw,158px);max-width:100%;height:auto}
.desk-login .login .dc-select {background:var(--login-field);border-color:var(--login-line);color:var(--login-ink)}
.desk-login .login-preferences .dc-dropdown {align-self:stretch}
.desk-login .login-preferences .dc-select {min-height:var(--login-control-height);padding-inline:14px;border-radius:9px;font-size:15px;font-weight:500}
body:has(.desk-login) {position:relative}
body:has(.desk-login)>.dc-test-banner {position:absolute;width:max-content;max-width:calc(100% - 24px);text-align:center;background:#edf5ef;color:#355843;border:1px solid #c6dace;box-shadow:none}
.desk-login .login-brand-title span {font-size:17px;font-weight:600}
.desk-login .login [hidden],.desk-login .login[hidden] {display:none!important}
.factor-dialog {width:min(430px,calc(100vw - 32px));max-height:90dvh;overflow:auto}
.factor-body {display:grid;gap:12px}
.factor-body p {margin:0;line-height:1.6}
.factor-setup {display:grid;justify-items:center;gap:6px}
.factor-setup img {display:block;background:white;width:min(180px,100%);height:auto}
.factor-setup code,.factor-codes li {overflow-wrap:anywhere;font-family:ui-monospace,monospace}
.factor-body footer {display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.factor-codes {list-style:none;margin:0;padding:0;line-height:1.9;user-select:all}
.staff-factor {display:grid;gap:6px;margin:0;min-inline-size:0}
.staff-factor p,.staff-factor .actions {margin:0}
.staff-factor small {color:var(--mutedColor)}
.arrival-audio {position:relative;font-size:.875rem}
.arrival-audio summary {cursor:pointer;padding:7px 10px;border:1px solid var(--borderColor);border-radius:8px;white-space:nowrap}
.arrival-audio summary:focus-visible {outline:2px solid var(--accent);outline-offset:2px}
.arrival-audio[open]>div {position:absolute;z-index:12;inset-block-start:calc(100% + 4px);inset-inline-end:0;display:grid;gap:8px;min-width:12rem;padding:12px;border:1px solid var(--borderColor);border-radius:10px;background:var(--surfaceBg);color:var(--textColor);box-shadow:0 5px 16px #0002}
.arrival-audio label {display:flex;align-items:center;gap:6px}
.member-api-form,.member-api-guide {max-width:40rem;overflow-wrap:anywhere}
.member-api-form label[hidden] {display:none}
.member-api-form p,.member-api-guide p {margin:4px 0}
.member-api-guide summary {cursor:pointer;font-weight:650;padding:10px 0}
.member-api-guide ol {padding-inline-start:1.5em}
.member-api-guide li {margin-block:.4em}
.member-api-guide pre {white-space:pre-wrap;overflow-wrap:anywhere}
.arrival-audio input[type=checkbox] {width:16px;height:16px;margin:0}
@media(max-width:680px){.arrival-audio[open]>div {inset-inline:0 auto}}
.merchant-theme .workspace .desk-main .merchant>.panel:not(:has(.appearance-editor)):not([data-preference],[data-workbench-page=entryMessages],[data-workbench-page=overview]) {max-inline-size:74rem}
.merchant-theme .workspace .desk-main .merchant>.panel[data-workbench-page=overview] {
  box-sizing:border-box;inline-size:100%;max-inline-size:112rem;margin-inline:auto;
  padding:0;border:0;background:transparent;box-shadow:none;
}
.merchant-theme .workspace .merchant>.panel>h1 {margin-bottom:8px;padding-bottom:10px}
.merchant-theme .workspace .merchant>.panel {row-gap:10px}
.merchant-theme .workspace .merchant .panel>:is(.pair,.role-card,.home-chat),
.merchant-theme .workspace :is(.home-report header,.language-panel header,.reply-rule header,.rule-toolbar,.customer-tag-bar,.waiting-message footer),
.owner-workspace :is(.directory-title,.directory-tools,.company-section>header) {justify-content:flex-start;gap:8px 16px;flex-wrap:wrap}
.merchant-theme .workspace .merchant .panel>.role-card {padding-block:9px}
.merchant-theme .workspace .merchant .role-card p {margin-block:2px}
.merchant-theme .workspace .merchant .panel>.staff-account-row {
  display:grid;grid-template-columns:fit-content(19rem) max-content auto;justify-content:start;
  align-items:center;gap:6px 14px;min-height:0;padding-block:8px;
}
.merchant-theme .workspace .merchant :is(.role-card,.staff-account-row) .actions {margin:0;gap:6px;flex-wrap:wrap}
.merchant-theme .workspace .merchant :is(.role-card,.staff-account-row) .actions button {min-height:36px;padding:6px 11px}
.reply-template>span {min-inline-size:0;white-space:pre-wrap;overflow-wrap:anywhere}
.reply-template>.actions {margin:0}
.merchant-theme .workspace .merchant>.panel :is(.language-state,.faq-editor>header button) {margin-inline-start:0}
.merchant-theme .workspace :is(.duty-table,.dx-report-body) table {width:auto}
.merchant-theme .workspace .merchant .dx-library {grid-template-columns:minmax(9rem,12rem) minmax(0,1fr);gap:12px}
.merchant-theme .workspace .merchant .dx-sites {grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),20rem))}
.merchant-theme .workspace .merchant .blacklist-grid {grid-template-columns:repeat(auto-fit,minmax(min(100%,22rem),32rem))}
.merchant-theme .workspace .merchant .account-create {margin-bottom:8px}
.merchant-theme .workspace [data-workbench-page=accountLogs] :is(div,form,label) {min-inline-size:0}
.merchant-theme .workspace [data-workbench-page=accountLogs] .company-table {inline-size:100%;overflow-x:auto}
.workspace[aria-busy=true]>.top {
  background-image:linear-gradient(var(--accent),var(--accent));background-repeat:no-repeat;
  background-size:24% 2px;background-position:left bottom;animation:desk-page-loading 1.15s ease-in-out infinite alternate;
}
@keyframes desk-page-loading {to {background-position:right bottom}}
@media(prefers-reduced-motion:reduce){.workspace[aria-busy=true]>.top {animation:none;background-size:100% 2px}}
#duty-board.home-board {display:grid;gap:16px;margin:8px 0 0;align-items:start}
.home-board [data-home-error] {margin:0;color:var(--mutedColor)}
.home-detail,.home-sidebar {display:grid;gap:16px;min-inline-size:0;align-content:start}
.home-detail {align-items:start}
.home-overview>section,.home-duty,.home-sidebar>.home-report,.home-sidebar>.language-panel {
  min-inline-size:0;padding:clamp(14px,1.25vw,22px);margin:0;
  border:1px solid var(--borderColor);border-radius:14px;background:var(--surfaceBg);
}
.home-duty>p {margin:6px 0 14px;color:var(--mutedColor);font-size:.875rem}
.merchant-theme .workspace .home-duty .duty-table table {width:100%;min-width:24rem;font-size:.875rem}
.home-duty .duty-table :is(th,td) {padding:9px 10px}
.home-duty .duty-table [scope=row] {max-inline-size:11rem;overflow-wrap:anywhere}
.home-duty .duty-table [data-change] {white-space:nowrap}
.home-sidebar>.language-panel {overflow-wrap:anywhere}
.merchant-theme .workspace #duty-board .home-sidebar>section header {justify-content:space-between}
.home-sidebar .home-report dl {grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.home-sidebar .home-report dd {font-size:1.25rem}
.home-overview {display:grid;grid-template-columns:minmax(14rem,1fr) minmax(0,2.2fr);grid-template-areas:"live today";gap:16px}
.home-overview:has(.home-entry) {grid-template-areas:"entry entry" "live today"}
.home-board h2,.home-qr-dialog h2 {margin:0;font-size:1.08rem;line-height:1.4}
.home-overview dl,.home-overview dd {margin:0}
.merchant-theme .workspace #duty-board .home-live {
  grid-area:live;display:grid;gap:10px;align-content:start;
  --mutedColor:var(--headerText);background:var(--accent);color:var(--headerText);
}
.merchant-theme .workspace .home-live :is(h2,dt,dd) {color:inherit}
.home-active dt,.home-live-detail dt,.home-today dt {font-size:.83rem;font-weight:500}
.home-active>div {display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.home-active dd {font-size:2.35rem;line-height:1.1;font-weight:725;letter-spacing:-.035em}
.home-overview dd {font-variant-numeric:tabular-nums}
.home-live-detail {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;
  padding-top:10px;border-top:1px solid color-mix(in srgb,currentColor 35%,transparent);
}
.home-live-detail dd {margin-top:4px;font-weight:675;font-size:1.1rem}
.home-overview>.home-entry {
  grid-area:entry;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px 22px;
  background:color-mix(in srgb,var(--select) 38%,var(--surfaceBg));
}
.home-entry [data-entry-tools] {min-inline-size:0}
.home-entry [data-entry-tools]>p {margin:0;color:var(--mutedColor)}
.home-entry-tools {display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.home-entry-tools :is(select,input) {min-width:0;max-width:100%;height:40px}
.home-entry-tools :is(select,.dc-dropdown) {flex:0 1 auto;width:auto;min-width:0;max-width:min(100%,12rem)}
.home-entry-tools .dc-select {width:100%;overflow:hidden;text-overflow:ellipsis}
.home-entry-tools select[hidden] {display:none}
.home-entry-tools input {flex:1 1 14rem;width:0;text-overflow:ellipsis;font-size:.875rem;font-variant-numeric:tabular-nums}
.merchant-theme .workspace .home-entry-tools .actions {display:flex;flex-wrap:wrap;gap:6px;margin:0}
.home-entry-tools button {min-height:40px;white-space:nowrap}
.home-downloads:not([hidden]) {display:flex;flex-wrap:wrap;gap:8px}
.home-downloads .btn {min-height:40px}
.merchant-theme .workspace #duty-board :is(.home-entry-tools,.home-qr-dialog) .primary {background:var(--accent);color:var(--headerText)}
.home-today {grid-area:today;display:grid;align-content:center;gap:14px}
.home-today dl {display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.home-today dl>div {display:grid;gap:5px;align-content:start;padding:8px clamp(10px,1.2vw,18px)}
.home-today dl>div+div {border-inline-start:1px solid var(--borderColor)}
.home-today dl>div:first-child {padding-inline-start:0}
.home-today dd {font-size:1.65rem;line-height:1.2;font-weight:725;color:var(--textColor)}
.home-qr-dialog {box-sizing:border-box;width:min(320px,calc(100% - 28px));padding:20px;text-align:center;border:1px solid var(--borderColor);border-radius:16px}
.home-qr-dialog::backdrop {background:rgb(13 23 29 / 45%)}
.home-qr-dialog p {margin:4px 0 10px;overflow-wrap:anywhere;color:var(--mutedColor)}
.home-qr-image {display:grid;place-items:center;min-height:4rem;color:var(--textColor)}
.home-qr-dialog .link-qr-preview {width:min(224px,100%);height:auto;border:0}
.home-qr-dialog footer {display:flex;justify-content:center;gap:8px;margin-top:14px}
@media(min-width:1060px){
  .home-detail:has(.home-duty):has(.home-sidebar) {grid-template-columns:minmax(0,1.55fr) minmax(19rem,1fr)}
}
@media(max-width:1040px){
  .home-today dl {grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-today dl>div:nth-child(odd) {padding-inline-start:0;border-inline-start:0}
  .home-today dl>div:nth-child(n+3) {border-block-start:1px solid var(--borderColor)}
}
@media(max-width:680px){
  .home-overview,.home-overview:has(.home-entry) {grid-template-columns:minmax(0,1fr);grid-template-areas:"live" "today"}
  .home-overview:has(.home-entry) {grid-template-areas:"entry" "live" "today"}
  .home-overview>.home-entry {grid-template-columns:minmax(0,1fr)}
  .home-entry-tools :is(input,select,.dc-dropdown) {flex:1 1 100%;width:100%;max-width:100%}
  .home-entry-tools button,.home-qr-dialog :is(a,button) {min-height:44px}
  .home-duty .duty-table [data-change] {min-height:44px}
}
.merchant-theme .workspace .desk-main .merchant>.panel:is([data-workbench-page=staff],[data-workbench-page=roles],[data-workbench-page=groups]) {max-inline-size:60rem}
.merchant-theme .workspace.reception-first[data-chat-theme] .inbox :is(.resource-tabs,.inbox-scopes) {
  display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:auto;gap:0;
  margin:0;padding:0;border:0;border-bottom:1px solid var(--borderColor);border-radius:0;background:transparent;
}
.merchant-theme .workspace.reception-first[data-chat-theme] .inbox .resource-tabs {margin:4px 0 10px}
.merchant-theme .workspace.reception-first[data-chat-theme] .inbox :is(.resource-tabs,.inbox-scopes) button {
  box-sizing:border-box;width:100%;min-width:0;min-height:48px;padding:8px 3px;white-space:nowrap;
  font-size:.9375rem;font-weight:500;line-height:1.3;text-align:center;justify-content:center;
  border:0;border-radius:0;background:transparent;color:var(--textColor);
}
.merchant-theme .workspace.reception-first[data-chat-theme] .inbox :is(.resource-tabs,.inbox-scopes) button[aria-pressed=true] {
  color:var(--accent);background:transparent;font-weight:700;box-shadow:inset 0 -3px currentColor;
}
.merchant-theme .workspace.reception-first .inbox :is(.resource-tabs,.inbox-scopes) button:focus-visible {outline-offset:-3px}
.inbox .desk-message .operator-face.default-chat-avatar {background:#fff}
.desk-login .login .remember-login {display:inline-flex;align-items:center;justify-self:start;gap:8px;cursor:pointer;min-height:44px;font-weight:500;color:var(--login-muted)}
.desk-login .login .remember-login input {width:16px;height:16px;min-height:0;margin:0;padding:0;accent-color:var(--accent)}
.desk-login .login #saved-accounts {max-width:100%;font-size:.875rem;min-height:36px}
@media(max-width:680px){
  .merchant-theme .workspace .merchant .panel>.staff-account-row {grid-template-columns:minmax(0,max-content) auto}
  .merchant-theme .workspace .merchant .staff-account-row .actions {grid-column:1/-1}
  .merchant-theme .workspace .merchant .dx-library {grid-template-columns:minmax(0,1fr)}
  .merchant-theme .workspace .merchant :is(.staff-account-row,.role-card) .actions button {min-height:44px}
}
@media(max-width:560px){
  .desk-login>.top .build-version {font-size:.7rem}
  .desk-login .login-preferences .dc-select {gap:8px;padding:5px 10px;font-size:15px;line-height:1.25;overflow-wrap:anywhere}
}
@media(max-width:359px){
  .desk-login .login-preferences .dc-select {gap:5px;padding-inline:7px;font-size:14px}
}

/* Conversation workspace */
.workspace.reception-first .inbox .convos {position:relative;min-width:0;overflow:hidden}
.workspace.reception-first .inbox #threads {min-width:0;min-height:0;overflow:auto}
.conversation-resize {display:none}
@media(min-width:801px) {
  .conversation-resize {display:block;position:absolute;inset:0 0 0 auto;width:9px;z-index:2;cursor:col-resize;touch-action:none}
  .conversation-resize::after {content:"";position:absolute;inset:0 0 0 auto;width:3px;background:var(--accent);opacity:0}
  .conversation-resize:is(:hover,:focus-visible,.dragging)::after {opacity:.8}
  .conversation-resize:focus-visible {outline-offset:-3px}
}
.workspace.reception-first .inbox .chathead {flex-wrap:wrap}
.workspace .chat-heading {min-width:min(180px,100%);flex:1 1 auto}
.workspace .chat-heading #chat-title {min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.workspace .chat-header-actions {max-width:100%;flex-wrap:wrap}
.workspace .chat-header-actions button[data-action=pin] {border-color:var(--accent);color:var(--accent)}
.workspace .chat-header-actions button[data-action=pin][aria-pressed=true] {background:var(--select)}
.thread-pin-label {
  flex:none;border-radius:5px;padding:1px 4px;background:var(--desk-tint);color:var(--accent);font-size:11px;line-height:1.45;
}
.top button#logout {border-color:#c26c75;color:#912b35;background:#fff8f8}
.top button#logout:hover {border-color:#ad3944;color:#801c28;background:#ffe7e9}
.top button#logout:focus-visible {outline-color:#ad3944}
.workspace .chat-header-actions button:is([data-action=block],[data-action=blockIp]),
.workspace .thread-tools button:is([data-thread-action=block],[data-thread-action=blockIp]) {
  background:#fff1f2;border-color:#d88e96;color:#9f252f;
}
.workspace .chat-header-actions button:is([data-action=block],[data-action=blockIp]):hover:not(:disabled),
.workspace .thread-tools button:is([data-thread-action=block],[data-thread-action=blockIp]):hover:not(:disabled) {
  background:#ffe0e3;border-color:#ad3944;color:#861c26;
}
.workspace.reception-first #visitor-profile {padding:12px}
#visitor-profile .profile-scroll {min-height:0;min-width:0;flex:1 1 auto;overflow:auto;scrollbar-width:thin}
#visitor-profile .profile-scroll > header:has(h2[hidden]) {display:none}
#visitor-profile .conversation-actions-end {flex:none;margin:8px 0 0;padding:6px;border-radius:12px}
.workspace.reception-first #visitor-profile .resource-tabs {margin:4px 0 8px}
#visitor-profile .resource-tabs button {min-width:0;padding-inline:4px;white-space:nowrap}
#visitor-profile .profile-body .visitor-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 10px;margin:0 0 8px}
#visitor-profile .visitor-fields > div {display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:baseline;gap:0 6px;min-width:0}
#visitor-profile .visitor-fields .visitor-field-wide {grid-column:1/-1}
#visitor-profile .visitor-fields dd {margin:0;overflow-wrap:anywhere}
#visitor-profile .profile-entry-link {margin:0 0 8px}
#visitor-profile .profile-tags {margin:0 0 8px;padding:8px 10px}
#visitor-profile .profile-tags h3 {margin:0 0 4px}
#visitor-profile .visitor-note-form {gap:6px}
#visitor-profile .visitor-note-form textarea {min-height:60px;margin:0}
.workspace.reception-first .desk-compose-form #text {height:clamp(112px,12dvh,144px);min-height:96px;font-size:16px;line-height:1.55}
.workspace.reception-first .thread-label,.workspace.reception-first .desk-message .bubble {font-size:16px}
.workspace.reception-first .thread small {font-size:14px}
.workspace.reception-first .chat-heading #chat-title {font-size:19px}
@media(min-width:801px) {
  .merchant-theme .workspace.reception-first[data-chat-theme] .top .desk-rail>a {font-size:15px;min-height:56px;gap:4px}
  .merchant-theme .workspace.reception-first[data-chat-theme] .top .desk-rail>a svg {width:24px;height:24px}
  .merchant-theme .workspace.reception-first[data-chat-theme] .merchant.with-settings {
    grid-template-columns:clamp(236px,19.5vw,278px) minmax(0,1fr);
  }
}
.reception-history-list {margin:0;padding:0;list-style:none}
.reception-history-list li {display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid var(--borderColor,#d7e1dc)}
.reception-history-list li div {display:grid;gap:1px;min-width:0;overflow-wrap:anywhere}
.reception-history-list li time {color:var(--mutedColor,#53665d)}
.reception-history-list li button {white-space:nowrap}
dialog.reception-transcript {
  inset:0;margin:auto;width:min(1072px,calc(100% - 28px));height:min(1016px,78dvh);
  border:1px solid var(--borderColor,#d7e1dc);border-radius:16px;box-shadow:0 22px 70px #152a2255;
}
.reception-transcript .qc-log {flex:1;min-height:0;overflow:auto}
.desk-action-dialog {position:fixed;inset:0;margin:auto;width:min(442px,calc(100vw - 32px));box-shadow:0 20px 64px #152a224b}
.desk-action-dialog p {white-space:pre-wrap;overflow-wrap:anywhere}
.desk-action-dialog input,.desk-action-dialog textarea {width:100%}
.desk-action-dialog .fields {gap:0}
.desk-action-dialog::backdrop {background:#17272183}
.desk-message[data-recalled] .bubble {border-style:dashed}
.desk-message .recall-status {display:inline-block;margin-inline-end:6px;color:var(--mutedColor,#516b60);font-weight:650}
@media(max-width:1000px) {
  #visitor-profile .profile-body .visitor-fields {gap:5px 8px}
  .workspace .chat-header-actions {margin-left:0}
}
@media(max-width:800px) {
  #visitor-profile .profile-scroll {overflow:visible}
  #visitor-profile .conversation-actions-end {position:sticky;bottom:0;z-index:1}
  .workspace.reception-first .desk-compose-form #text {height:104px;min-height:90px}
}

@media(max-width:650px) {
  dialog.reception-transcript {height:calc(100dvh - 24px)}
}
@media (min-width:1051px) {
  .dc-approved > :is(.appearance-controls:not(.appearance-lower),.appearance-visual) {
    grid-row:span 2;grid-template-rows:subgrid;align-content:stretch;
  }
}
.merchant-theme .workspace .desk-main .merchant>.panel[data-workbench-page=entryMessages] {
  max-inline-size:96rem;
}
.entry-message-editor .asset-grid {
  grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%;
}
.entry-message-editor .asset-card,.entry-message-editor .asset-picker {min-width:0}
.entry-message-editor .asset-picker {width:100%}
@media(max-width:430px) {
  .entry-message-editor .asset-grid {grid-template-columns:minmax(0,1fr)}
}
