/* Office conversations: one readable visual system, scoped away from public widgets. */
:is(#siteChatWorkspace,#supportWorkspace,.job-chat-section,.dashboard-chat-popup,#dashboardChatsDialog){
  --chat-ink:#17263c;--chat-muted:#475569;--chat-line:#b9c6d6;
  --chat-canvas:#edf1f7;--chat-blue:#1854bd;--chat-blue-hover:#103f94;
  --chat-note:#fff3ce;--chat-note-ink:#684000;--chat-note-line:#c28a26;
  color:var(--chat-ink);font-family:'DM Sans',system-ui,-apple-system,Segoe UI,sans-serif;
  font-size:15px;line-height:1.55;
}
:is(#siteChatWorkspace,#supportWorkspace,.job-chat-section,.dashboard-chat-popup) :is(input,textarea,select){color:var(--chat-ink);}
:is(#siteChatWorkspace,#supportWorkspace,.job-chat-section,.dashboard-chat-popup) :is(input,textarea)::placeholder{color:#56657a;opacity:1;}
:is(#siteChatWorkspace,#supportWorkspace,.job-chat-section,.dashboard-chat-popup) :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #1854bd;outline-offset:3px;}

/* Site inbox: compact navigation, clear selection and a generous conversation pane. */
#siteChatWorkspace .site-chat-workspace{width:100%;max-width:none;margin:0;border:1px solid var(--chat-line);border-radius:18px;background:#fff;box-shadow:0 8px 28px #17263c0d;overflow:hidden;}
#siteChatWorkspace .site-chat-workspace>header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px 24px;background:#fff;color:var(--chat-ink);border-bottom:1px solid var(--chat-line);}
#siteChatWorkspace .site-chat-workspace>header h2{margin:4px 0 0;font-size:25px;line-height:1.2;letter-spacing:-.6px;color:var(--chat-ink);}
#siteChatWorkspace .eyebrow{color:#3c5475;font-size:11px;font-weight:750;letter-spacing:1.1px;}
#siteChatWorkspace .sc-toolbar{padding:16px 20px 12px;gap:14px;}
#siteChatWorkspace .sc-tabs{padding:4px;gap:4px;background:#e9eef6;border:1px solid #c5cfde;border-radius:12px;}
#siteChatWorkspace .sc-tabs button{border:0;background:transparent;box-shadow:none;color:#35465e;font-size:14px;font-weight:650;padding:9px 16px;min-height:42px;}
#siteChatWorkspace .sc-tabs button[aria-selected=true]{background:var(--chat-blue);color:#fff;box-shadow:0 2px 5px #153c731f;}
#siteChatWorkspace :is(.sc-toolbar select,.sc-actions button,.sc-paging button,.sc-back,#scCustomerSupport){background:#fff;color:var(--chat-ink);border:1px solid #98aac2;border-radius:9px;min-height:42px;padding:9px 14px;font-size:14px;font-weight:650;box-shadow:none;}
#siteChatWorkspace :is(.sc-actions button,.sc-paging button,#scCustomerSupport):hover:not(:disabled){background:#eaf0fa;border-color:var(--chat-blue);}
#siteChatWorkspace button:disabled{opacity:1;color:#637185;background:#edf0f5;border-color:#c4cdd9;cursor:default;}
#siteChatWorkspace .sc-meta{font-size:13px;font-weight:600;color:var(--chat-muted);}
#siteChatWorkspace .sc-search-tools{padding:0 20px 18px;gap:16px;}
#siteChatWorkspace .sc-search-tools>input{max-width:480px;min-height:44px;border:1px solid #98aac2;border-radius:10px;background:#f8faff;font-size:14px;padding:11px 14px;}
#siteChatWorkspace .sc-search-tools label{gap:8px;color:#334155;font-size:13px;font-weight:600;}
#siteChatWorkspace input[type=checkbox]{width:18px;height:18px;accent-color:var(--chat-blue);}
#siteChatWorkspace .sc-layout{grid-template-columns:280px minmax(320px,1fr) 280px;height:clamp(480px,calc(100dvh - 500px),920px);min-height:480px;border-top:1px solid var(--chat-line);}
#siteChatWorkspace .sc-list{padding:8px;background:#f5f7fb;border-right:1px solid var(--chat-line);max-height:none;min-height:0;}
#siteChatWorkspace .sc-person{padding:16px 15px;margin:0 0 7px;border:1px solid transparent;border-radius:12px;background:transparent;color:var(--chat-ink);position:relative;}
#siteChatWorkspace .sc-person:hover{background:#e9eef7;border-color:#aebed3;}
#siteChatWorkspace .sc-person[aria-current=true]{background:#e1ebff;border-color:#7799d8;box-shadow:inset 4px 0 var(--chat-blue);}
#siteChatWorkspace .sc-person strong{font-size:15px;line-height:1.4;font-weight:750;}
#siteChatWorkspace .sc-person small{font-size:12px;line-height:1.5;color:#43536b;margin-top:6px;}
#siteChatWorkspace .sc-online{color:#146143;font-size:12px;font-weight:650;}
#siteChatWorkspace .sc-person .sc-unread{display:inline-block;margin-top:9px;padding:3px 7px;border-radius:5px;color:#fff;background:var(--chat-blue);font-size:10px;letter-spacing:.5px;}
#siteChatWorkspace .sc-thread{background:var(--chat-canvas);min-height:0;}
#siteChatWorkspace :is(.sc-thread-heading,.sc-actions,.sc-compose){flex:none;}
#siteChatWorkspace .sc-thread-heading{min-height:84px;gap:14px;padding:20px 22px;background:#fff;border-bottom:1px solid var(--chat-line);}
#siteChatWorkspace .sc-thread-heading h3{font-size:20px;font-weight:750;letter-spacing:-.35px;color:var(--chat-ink);}
#siteChatWorkspace .sc-thread-heading small{font-size:12px;line-height:1.5;color:var(--chat-muted);margin-top:5px;}
#siteChatWorkspace .sc-actions{padding:12px 20px;gap:8px;border-bottom:1px solid #cdd6e3;background:#f8faff;}
#siteChatWorkspace #scResolve{background:#e6f3ec;color:#155735;border-color:#8db7a0;}
#siteChatWorkspace .sc-messages{padding:24px;max-height:none;min-height:140px;scrollbar-color:#8b9bb2 var(--chat-canvas);}
#siteChatWorkspace .sc-message{max-width:min(86%,720px);padding:14px 17px;margin:0 0 18px;border:1px solid #aebed2;border-radius:15px 15px 15px 4px;background:#fff;color:var(--chat-ink);font-size:15px;line-height:1.6;box-shadow:0 2px 3px #17263c06;}
#siteChatWorkspace .sc-message small{font-size:11px;line-height:1.5;font-weight:600;color:#4d5e75;opacity:1;margin-top:8px;}
#siteChatWorkspace .sc-message.staff{margin-left:auto;border:1px solid #1649a3;border-radius:15px 15px 4px 15px;background:var(--chat-blue);color:#fff;}
#siteChatWorkspace .sc-message.staff small{color:#fff;}
#siteChatWorkspace .sc-message.assistant{background:#e5f3f2;border:1px solid #6a9f9b;border-left:4px solid #17766f;color:#133f3c;}
#siteChatWorkspace .sc-message.assistant small{color:#275e59;}
#siteChatWorkspace .sc-message.system{max-width:min(94%,720px);margin:10px auto 20px;background:#e0e6ef;border:1px solid #b6c2d3;border-radius:10px;color:#374961;font-size:13px;box-shadow:none;text-align:center;}
#siteChatWorkspace .sc-message.note{margin-left:0;background:var(--chat-note);color:var(--chat-note-ink);border:1px solid var(--chat-note-line);border-left:4px solid #a86908;}
#siteChatWorkspace .sc-message.note small{color:var(--chat-note-ink);}
#siteChatWorkspace .sc-compose{padding:14px 20px;background:#fff;border-top:1px solid var(--chat-line);}
#siteChatWorkspace .sc-compose textarea{min-height:80px;max-height:160px;padding:14px 15px;font-size:15px;line-height:1.55;color:var(--chat-ink);background:#f8faff;border:1px solid #879bb8;border-radius:12px;}
#siteChatWorkspace .sc-compose:has(#scInternal:checked){background:#fff8e8;}
#siteChatWorkspace .sc-compose:has(#scInternal:checked) textarea{background:#fffcf5;border-color:#b48329;}
#siteChatWorkspace .sc-compose footer{margin-top:12px;}
#siteChatWorkspace .sc-compose footer label{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:650;color:#45536b;}
#siteChatWorkspace #scSend{background:var(--chat-blue);border:1px solid var(--chat-blue);border-radius:10px;color:#fff;font-size:14px;min-height:44px;padding:11px 21px;box-shadow:none;}
#siteChatWorkspace .sc-compose:has(#scInternal:checked) #scSend{background:#80500b;border-color:#80500b;}
#siteChatWorkspace .sc-reply-tools select{font-size:13px;color:#344660;border-color:#a7b7cc;border-radius:8px;min-height:38px;padding:7px 10px;}
#siteChatWorkspace .sc-reply-tools span{font-size:12px;color:#475569;}
#siteChatWorkspace .sc-context{padding:22px;background:#f8faff;border-left:1px solid var(--chat-line);max-height:none;min-height:0;}
#siteChatWorkspace .sc-context h3{font-size:15px;font-weight:750;color:var(--chat-ink);margin-bottom:16px;}
#siteChatWorkspace .sc-context dt{font-size:10px;font-weight:750;letter-spacing:.7px;color:#4f6079;margin-top:17px;}
#siteChatWorkspace .sc-context dd{font-size:13px;line-height:1.5;font-weight:500;color:#263a56;}
#siteChatWorkspace .sc-context a{color:#174daa;font-weight:650;text-decoration:underline;text-underline-offset:3px;}
#siteChatWorkspace .sc-context>p,#siteChatWorkspace .sc-intake-card p{font-size:12px;line-height:1.6;color:#43536b;}
#siteChatWorkspace .sc-pill{padding:5px 8px;background:#dfeafe;color:#244b91;border:1px solid #a5bde5;border-radius:6px;font-size:10px;font-weight:750;letter-spacing:.3px;}
#siteChatWorkspace .sc-intake-card{padding-bottom:20px;border-bottom:1px solid var(--chat-line);}
#siteChatWorkspace :is(.sc-intake-card button,.sc-tag-label select){min-height:40px;border:1px solid #98aac2;border-radius:8px;background:#fff;color:#233c60;font-size:12px;font-weight:600;}
#siteChatWorkspace .sc-tag-label{font-size:12px;font-weight:600;color:#475569;}
#siteChatWorkspace .sc-history{font-size:12px;padding-left:18px;}
#siteChatWorkspace .sc-history time{color:#475569;margin-top:4px;}
#siteChatWorkspace .sc-empty{font-size:15px;line-height:1.7;color:#475569;}
#siteChatWorkspace .sc-overview{padding:24px;background:#f7f9fc;}
#siteChatWorkspace .sc-stat{padding:22px;border:1px solid #afbed1;border-radius:14px;background:#fff;box-shadow:0 2px 4px #17263c04;}
#siteChatWorkspace .sc-stat span{font-size:13px;font-weight:650;color:#475569;}
#siteChatWorkspace .sc-stat strong{font-size:34px;color:var(--chat-ink);letter-spacing:-1px;}
#siteChatWorkspace .sc-charts>section{padding:20px;background:#fff;border:1px solid #bdc9d8;border-radius:14px;}
#siteChatWorkspace .sc-charts h3{font-size:17px;color:var(--chat-ink);}
#siteChatWorkspace .sc-analytics-row{font-size:14px;color:#334155;border-color:#cbd5e1;}
.sc-dashboard-link{background:#fff;border-color:#aabbd3;border-left:4px solid #1854bd;box-shadow:0 3px 10px #17263c08;}
.sc-dashboard-link strong{color:#17263c;font-size:16px;}.sc-dashboard-link small{color:#475569;font-size:13px;}

/* Existing Case Chat and floating conversations use the same message directions. */
.job-chat-section{background:var(--chat-canvas);border:1px solid var(--chat-line);border-radius:16px;box-shadow:0 4px 16px #17263c0a;}
.job-chat-section .job-chat-header{padding:18px 20px;background:#fff;border-bottom:1px solid var(--chat-line);}
.job-chat-section .job-chat-avatar,.dashboard-chat-popup>header .dashboard-chat-avatar{background:#dce8fe;color:#1c478e;box-shadow:none;font-size:14px;border:1px solid #9eb8e2;}
.job-chat-section .job-chat-header h3{font-size:19px;color:var(--chat-ink);letter-spacing:-.3px;}
.job-chat-section .job-chat-header small{font-size:13px;color:var(--chat-muted);}
.job-chat-section .job-chat-header .eyebrow{font-size:10px;color:#465a76;}
.job-chat-section .job-chat-live{background:#e1f0e8;color:#146143;font-size:11px;border:1px solid #9cc0ad;}
.job-chat-section .job-chat-messages{background:var(--chat-canvas);padding:22px;gap:18px;scrollbar-color:#8b9bb2 transparent;}
.job-chat-section .job-chat-messages .bubble{flex-shrink:0;align-self:flex-start;margin:0;width:fit-content;max-width:88%;font-size:15px;line-height:1.65;padding:14px 17px;color:var(--chat-ink);background:#fff;border:1px solid #aebed2;border-radius:15px 15px 15px 4px;box-shadow:0 2px 3px #17263c06;}
.job-chat-section .job-chat-messages .bubble.inbound{align-self:flex-start;justify-self:start;background:#fff;color:var(--chat-ink);border:1px solid #aebed2;border-radius:15px 15px 15px 4px;}
.job-chat-section .job-chat-messages .bubble.outbound{align-self:flex-end;justify-self:end;background:var(--chat-blue);color:#fff;border-color:#1649a3;border-radius:15px 15px 4px 15px;}
.job-chat-section .job-chat-messages .bubble small{display:block;font-size:11px;line-height:1.5;color:#4d5e75;opacity:1;margin-top:8px;}
.job-chat-section .job-chat-messages .bubble.outbound small{color:#fff;}
.job-chat-section .job-chat-composer{padding:14px;background:#fff;border-top:1px solid var(--chat-line);grid-template-columns:minmax(0,1fr) 48px;gap:10px;}
.job-chat-section .job-chat-composer textarea{min-height:48px;font-size:15px;line-height:1.55;padding:12px 14px;border:1px solid #879bb8;border-radius:12px;color:var(--chat-ink);background:#f8faff;}
.job-chat-section .job-chat-composer button{height:48px;width:48px;background:var(--chat-blue);border-radius:11px;color:#fff;box-shadow:none;}
.job-chat-section .job-chat-empty{color:#475569;font-size:14px;}.job-chat-section .job-chat-empty strong{color:#17263c;font-size:18px;}
.job-chat-section .job-chat-messages :is(.milestone-card,.appointment-card,.next-step-card){flex-shrink:0;background:#fff;border-color:#aebed2;border-radius:14px;box-shadow:0 3px 10px #17263c0a;}
.job-chat-section .job-chat-messages :is(.milestone-card>p,.appointment-card-copy,.next-step-card p){font-size:15px;line-height:1.65;color:#334155;}
.job-chat-section .job-chat-messages :is(.milestone-card>small,.appointment-card-meta,.next-step-card small){color:#475569;font-size:12px;}
.job-chat-section .job-chat-messages .appointment-card-time small{color:#475569;}
.job-chat-section .job-chat-messages :is(.visit-card,.wr-billing-card){flex-shrink:0;border-color:#aebed2;box-shadow:0 3px 10px #17263c0a;}
.dashboard-chat-popup{width:min(400px,calc(100vw - 40px));border:1px solid #9caec7;border-radius:16px;background:#fff;box-shadow:0 20px 65px #152b4b33;}
.dashboard-chat-popup>header{padding:17px 16px;grid-template-columns:42px minmax(0,1fr) auto;background:#172e50;color:#fff;border-bottom:1px solid #233e64;}
.dashboard-chat-popup .dashboard-chat-popup-title strong{font-size:15px;}.dashboard-chat-popup .dashboard-chat-popup-title span{color:#e1eaff;font-size:12px;}
.dashboard-chat-popup .dashboard-chat-popup-actions button{height:40px;width:40px;background:#fff;color:#213d62;border:1px solid #d0daea;border-radius:9px;}
.dashboard-chat-popup .dashboard-chat-popup-messages{background:var(--chat-canvas);padding:20px 16px;gap:16px;}
.dashboard-chat-popup .dashboard-chat-popup-message{justify-self:start;background:#fff;color:var(--chat-ink);border:1px solid #aebed2;border-radius:14px 14px 14px 4px;box-shadow:none;padding:13px 15px;max-width:90%;}
.dashboard-chat-popup .dashboard-chat-popup-message.inbound{justify-self:start;background:#fff;color:var(--chat-ink);border:1px solid #aebed2;border-radius:14px 14px 14px 4px;}
.dashboard-chat-popup .dashboard-chat-popup-message.outbound{justify-self:end;background:var(--chat-blue);color:#fff;border-color:#1649a3;border-radius:14px 14px 4px 14px;}
.dashboard-chat-popup .dashboard-chat-popup-message.system{justify-self:center;background:#e0e6ef;border-color:#b6c2d3;color:#374961;border-radius:10px;}
.dashboard-chat-popup .dashboard-chat-popup-message p{font-size:15px;line-height:1.6;}
.dashboard-chat-popup .dashboard-chat-popup-message strong{font-size:11px;letter-spacing:.3px;opacity:1;}
.dashboard-chat-popup .dashboard-chat-popup-message small{font-size:11px;opacity:1;}
.dashboard-chat-popup>footer{padding:14px;border-top:1px solid var(--chat-line);}
.dashboard-chat-popup .dashboard-chat-popup-form{grid-template-columns:minmax(0,1fr) 46px;gap:10px;}
.dashboard-chat-popup .dashboard-chat-popup-form textarea{font-size:15px;border-color:#879bb8;border-radius:11px;min-height:46px;background:#f8faff;}
.dashboard-chat-popup .dashboard-chat-popup-form button{height:46px;width:46px;background:var(--chat-blue);border-radius:10px;}
.dashboard-chat-popup .dashboard-chat-popup-status{font-size:12px;color:#475569;}
.dashboard-chat-popup .dashboard-chat-popup-status.error{color:#9f2330;}
#dashboardChatsDialog .dashboard-chat-card>header{background:#fff;color:#17263c;border-bottom:1px solid #b9c6d6;}
#dashboardChatsDialog :is(.eyebrow,.surface-description,.dashboard-chat-footer){color:#475569;}

/* Office Support shares the palette, without changing the customer portal's stylesheet. */
#supportWorkspace .support-ui{--sp-text:#17263c;--sp-muted:#475569;--sp-line:#aebed2;--sp-blue:#1854bd;--sp-bg:#fff;--sp-soft:#edf1f7;max-width:1240px;}
#supportWorkspace :is(.sp-intro,.sp-ticket-heading){padding:26px;border:1px solid #b9c6d6;border-radius:16px;box-shadow:0 4px 14px #17263c08;}
#supportWorkspace .sp-intro h3,#supportWorkspace .sp-ticket-heading h3{font-size:27px;letter-spacing:-.6px;}
#supportWorkspace .sp-button{border-radius:9px;box-shadow:none;font-size:14px;font-weight:650;}
#supportWorkspace .sp-row{border-radius:13px;border-color:#b4c3d6;padding:22px;box-shadow:0 2px 4px #17263c04;}
#supportWorkspace .sp-row:has(.sp-unread){border-left:4px solid #1854bd;background:#f3f7ff;}
#supportWorkspace .sp-row-link{color:#1854bd;}
#supportWorkspace .sp-messages{padding:24px;background:#edf1f7;border:1px solid #b9c6d6;border-radius:16px;gap:18px;}
#supportWorkspace .sp-message{border:1px solid #aebed2;border-radius:13px;box-shadow:0 2px 3px #17263c06;}
#supportWorkspace .sp-message header{background:#f5f7fb;color:#17263c;border-bottom:1px solid #c5cfde;padding:13px 17px;}
#supportWorkspace .sp-message header strong{font-size:14px;}
#supportWorkspace .sp-message p{font-size:15px;line-height:1.7;color:#17263c;}
#supportWorkspace .sp-message.sp-internal{background:#fff8e6;border-color:#c28a26;border-left:4px solid #a86908;}
#supportWorkspace .sp-message.sp-internal header{background:#fff0c4;border-color:#cfab69;color:#684000;}
#supportWorkspace .sp-message.sp-internal :is(p,time){color:#684000;}
#supportWorkspace :is(.sp-compose,.sp-manage){border-radius:14px;border-color:#aebed2;box-shadow:0 3px 8px #17263c06;}
#supportWorkspace .sp-compose:has([name=internal]:checked){background:#fff8e6;border-color:#c28a26;}
#supportWorkspace .sp-compose textarea{background:#f8faff;border-color:#879bb8;border-radius:11px;}
#supportWorkspace .sp-status{font-weight:750;}
#supportWorkspace .sp-status-new{background:#e7efff;color:#234b91;}
#supportWorkspace .sp-status-in_progress{background:#fff2ce;color:#714607;}
#supportWorkspace .sp-status-resolved{background:#e2f1e9;color:#155b3d;}

@media(max-width:1279px){
  #siteChatWorkspace .sc-layout{grid-template-columns:245px minmax(0,1fr);height:auto;}
  #siteChatWorkspace .sc-thread{height:680px;}
  #siteChatWorkspace .sc-context{grid-column:2;border-left:0;border-top:1px solid var(--chat-line);max-height:none;}
  #siteChatWorkspace .sc-list{grid-row:span 2;max-height:none;}
  #siteChatWorkspace .sc-context dl{grid-template-columns:105px minmax(0,1fr);}
  #siteChatWorkspace .sc-context dt,#siteChatWorkspace .sc-context dd{margin:0;}
}
@media(max-width:767px){
  #siteChatWorkspace .site-chat-workspace{border-radius:12px;}
  #siteChatWorkspace .site-chat-workspace>header{padding:18px;gap:12px;}
  #siteChatWorkspace .site-chat-workspace>header h2{font-size:23px;}
  #siteChatWorkspace .sc-toolbar{padding:14px 12px;gap:10px;}
  #siteChatWorkspace .sc-tabs{width:100%;gap:2px;}
  #siteChatWorkspace .sc-tabs button{flex:1;font-size:12px;padding:8px;}
  #siteChatWorkspace .sc-search-tools{padding:0 12px 14px;gap:12px;}
  #siteChatWorkspace .sc-search-tools>input{flex-basis:100%;font-size:16px;}
  #siteChatWorkspace .sc-layout{display:block;min-height:350px;height:auto;}
  #siteChatWorkspace .sc-thread{height:auto;}
  #siteChatWorkspace .sc-list{border-right:0;}
  #siteChatWorkspace .sc-thread-heading{padding:16px;min-height:76px;}
  #siteChatWorkspace .sc-messages{padding:18px 14px;max-height:55dvh;}
  #siteChatWorkspace .sc-message{max-width:94%;font-size:15px;padding:12px 14px;}
  #siteChatWorkspace .sc-compose{padding:14px;}
  #siteChatWorkspace .sc-compose textarea{font-size:16px;}
  #siteChatWorkspace .sc-context{padding:20px;}
  #siteChatWorkspace .sc-stats{gap:10px;}
  #siteChatWorkspace .sc-stat{padding:16px;}
  #siteChatWorkspace .sc-stat strong{font-size:28px;}
  #siteChatWorkspace .sc-overview{padding:14px;}
  .job-chat-section .job-chat-header{padding:14px;}.job-chat-section .job-chat-header h3{font-size:17px;}
  .job-chat-section .job-chat-messages{padding:16px 12px;gap:14px;}
  .job-chat-section .job-chat-messages .bubble{max-width:94%;padding:12px 14px;}
  .job-chat-section .job-chat-composer{padding:12px;}
  .job-chat-section .job-chat-composer textarea,.dashboard-chat-popup .dashboard-chat-popup-form textarea{font-size:16px;}
  .dashboard-chat-popup{width:calc(100vw - 20px);}
  #supportWorkspace .sp-messages{padding:14px 10px;}
  #supportWorkspace :is(.sp-intro,.sp-ticket-heading,.sp-compose){padding:18px;}
}

/* Milestone labels and document metadata stay readable inside Case Chat. */
.job-chat-section .job-chat-messages :is(.milestone-card header div>span,.appointment-card:not(.visit-card) header div>span,.next-step-card>span){color:#285372;}
.job-chat-section .job-chat-messages .milestone-action{color:#285372;}
.job-chat-section .job-chat-messages .milestone-action.google_review{background:#236342;border-color:#236342;color:#fff;}
.job-chat-section .job-chat-messages .quote-card span{color:#475569;}

/* Visitor details: a compact, readable stack that stays stable during live updates. */
@media(min-width:1280px){#siteChatWorkspace .sc-layout{grid-template-columns:270px minmax(320px,1fr) 330px;}}
#siteChatWorkspace #scContext{padding:16px;background:#f1f5fa;display:flex;flex-direction:column;gap:12px;scrollbar-width:thin;scrollbar-color:#a4b4c9 transparent;}
#siteChatWorkspace #scContext .sc-detail-card{flex:none;min-width:0;padding:17px;background:#fff;border:1px solid #d2dce9;border-radius:14px;box-shadow:0 2px 5px #17263c04;margin:0;}
#siteChatWorkspace #scContext .sc-detail-card[hidden]{display:none;}
#siteChatWorkspace #scContext :is(p,h3,dl){margin:0;}
#siteChatWorkspace #scContext .sc-card-title{display:flex;align-items:center;gap:9px;font-size:13px;line-height:1.4;font-weight:750;margin:0 0 14px;color:#263b58;letter-spacing:0;}
#siteChatWorkspace #scContext svg{display:block;flex:none;width:19px;height:19px;color:#536d91;}
#siteChatWorkspace #scContext .sc-profile{display:flex;align-items:center;gap:12px;min-width:0;}
#siteChatWorkspace #scContext .sc-profile>div{min-width:0;}
#siteChatWorkspace #scContext .sc-profile-avatar{display:grid;place-items:center;flex:none;width:44px;height:44px;border:1px solid #c0d3ee;border-radius:14px;background:linear-gradient(145deg,#edf4ff,#dce9fc);color:#285194;font-size:16px;font-weight:750;}
#siteChatWorkspace #scContext .sc-profile h3{font-size:16px;line-height:1.35;letter-spacing:-.2px;margin-top:3px;}
#siteChatWorkspace #scContext .sc-detail-label{display:block;color:#56667d;font-size:11px;font-weight:650;line-height:1.5;letter-spacing:.15px;}
#siteChatWorkspace #scContext .sc-conversation-mode{display:inline-flex;align-items:center;gap:7px;margin-top:15px;border:1px solid #d8e1ed;border-radius:20px;padding:4px 9px;color:#405775;background:#f4f7fb;font-size:11px;line-height:1.5;font-weight:650;}
#siteChatWorkspace #scContext .sc-conversation-mode i{height:6px;width:6px;border-radius:50%;background:#587296;}
#siteChatWorkspace #scContext .sc-conversation-mode.is-ai{color:#196960;background:#eaf6f2;border-color:#afd4c9;}
#siteChatWorkspace #scContext .sc-conversation-mode.is-ai i{background:#23796b;}
#siteChatWorkspace #scContext .sc-detail-muted{font-size:12px;line-height:1.6;color:#53647c;margin-top:12px;}
#siteChatWorkspace #scContext .sc-contact-lines{display:grid;gap:5px;padding-top:12px;}
#siteChatWorkspace #scContext .sc-contact-lines p{color:#293e5c;font-size:13px;line-height:1.5;}
#siteChatWorkspace #scContext .sc-presence-line{display:flex;align-items:center;gap:7px;color:#435772;font-size:12px;font-weight:600;margin-bottom:14px;}
#siteChatWorkspace #scContext .sc-presence-dot{height:7px;width:7px;border-radius:50%;background:#77879c;}
#siteChatWorkspace #scContext .sc-presence-dot.is-online{background:#208055;box-shadow:0 0 0 3px #e1f1e8;}
#siteChatWorkspace #scContext .sc-page-link{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;color:#1b50a3;text-decoration:none;font-size:13px;font-weight:650;line-height:1.55;margin-top:4px;min-width:0;}
#siteChatWorkspace #scContext .sc-page-link>span:first-child{overflow-wrap:anywhere;min-width:0;}
#siteChatWorkspace #scContext .sc-page-link>span:last-child{flex:none;color:#5d7290;}
#siteChatWorkspace #scContext .sc-page-link:hover>span:first-child{text-decoration:underline;text-underline-offset:3px;}
#siteChatWorkspace #scContext .sc-device-label{display:block;color:#5b6b81;font-size:11px;margin-top:10px;}
#siteChatWorkspace #scContext .sc-request-type{display:inline-block;padding:4px 8px;background:#edf3ff;border:1px solid #c8d9f4;border-radius:6px;color:#2b508c;font-size:11px;font-weight:650;margin-bottom:10px;}
#siteChatWorkspace #scContext .sc-request-issue{font-size:14px;line-height:1.6;font-weight:600;color:#263b58;}
#siteChatWorkspace #scContext .sc-appliance-detail{padding:12px;margin-top:12px;border-left:3px solid #91afd5;border-radius:0 8px 8px 0;background:#f3f6fb;}
#siteChatWorkspace #scContext .sc-appliance-detail strong{display:block;font-size:12px;color:#29415f;}
#siteChatWorkspace #scContext .sc-appliance-detail span{display:block;font-size:11px;color:#53647c;margin-top:3px;}
#siteChatWorkspace #scContext .sc-appliance-detail p{font-size:12px;color:#435772;line-height:1.6;margin-top:6px;}
#siteChatWorkspace #scContext .sc-detail-field{margin-top:14px;}
#siteChatWorkspace #scContext .sc-detail-field p{font-size:12px;line-height:1.6;margin-top:3px;color:#344d6c;}
#siteChatWorkspace #scContext .sc-progress-hint{margin-top:14px;padding-top:12px;border-top:1px solid #dde5ef;font-size:12px;line-height:1.6;color:#53647c;}
#siteChatWorkspace #scContext .sc-request-received{margin-top:14px;padding:12px;border:1px solid #a7ceb8;border-radius:10px;background:#eff8f2;}
#siteChatWorkspace #scContext .sc-request-received strong{display:block;color:#20573b;font-size:16px;}
#siteChatWorkspace #scContext .sc-request-received p{font-size:11px;line-height:1.5;color:#426751;margin-top:4px;}
#siteChatWorkspace #scContext .sc-request-received button{display:flex;justify-content:space-between;width:100%;background:#fff;color:#245b40;border-color:#8ab49b;margin-top:12px;min-height:40px;}
#siteChatWorkspace #scContext .sc-detail-rows{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;}
#siteChatWorkspace #scContext .sc-detail-rows>div{display:grid;grid-template-columns:68px minmax(0,1fr);gap:10px;align-items:baseline;}
#siteChatWorkspace #scContext .sc-detail-rows dt{margin:0;font-size:11px;letter-spacing:0;text-transform:none;color:#53647c;font-weight:500;}
#siteChatWorkspace #scContext .sc-detail-rows dd{margin:0;font-size:12px;line-height:1.6;color:#2d4462;font-weight:600;}
#siteChatWorkspace #scContext details{border:0;padding:0;background:transparent;}
#siteChatWorkspace #scContext summary{display:flex;align-items:center;gap:9px;list-style:none;cursor:pointer;color:#263b58;font-size:13px;font-weight:650;line-height:1.5;min-height:36px;}
#siteChatWorkspace #scContext summary::-webkit-details-marker{display:none;}
#siteChatWorkspace #scContext summary>span{flex:1;}
#siteChatWorkspace #scContext summary small{display:block;color:#5b6b81;font-size:11px;font-weight:500;margin-top:2px;}
#siteChatWorkspace #scContext summary b{color:#607795;font-size:16px;transition:transform .16s;}
#siteChatWorkspace #scContext details[open]>summary b{transform:rotate(180deg);}
#siteChatWorkspace #scContext .sc-organization-body{padding-top:14px;}
#siteChatWorkspace #scContext .sc-priority-button{width:100%;text-align:left;min-height:40px;border:1px solid #b8c9de;border-radius:9px;background:#f6f9fd;color:#395779;font:inherit;font-size:12px;padding:8px 10px;cursor:pointer;}
#siteChatWorkspace #scContext .sc-priority-button[aria-pressed=true]{background:#fff5db;border-color:#cbab59;color:#735008;}
#siteChatWorkspace #scContext .sc-tag-label{margin:14px 0 0;font-size:11px;color:#53647c;}
#siteChatWorkspace #scContext .sc-tag-label select{min-height:40px;background:#fff;font-size:12px;border-color:#b8c9de;}
#siteChatWorkspace #scContext .sc-tags{gap:6px;margin-top:10px;}
#siteChatWorkspace #scContext .sc-tags button{min-height:32px;padding:5px 8px;border:1px solid #b8c9de;border-radius:7px;background:#edf3ff;color:#2b508c;font-size:11px;cursor:pointer;}
#siteChatWorkspace #scContext .sc-history-intro{margin-top:15px;padding-top:13px;border-top:1px solid #dde5ef;}
#siteChatWorkspace #scContext .sc-history-intro p{font-size:12px;color:#344d6c;margin:3px 0 12px;}
#siteChatWorkspace #scContext .sc-history{list-style:none;max-height:none;overflow:visible;margin:18px 0 0;padding:0;}
#siteChatWorkspace #scContext .sc-history li{position:relative;padding:0 0 16px 18px;margin:0;border-left:1px solid #cbd8e8;}
#siteChatWorkspace #scContext .sc-history li:before{content:'';position:absolute;left:-4px;top:7px;width:7px;height:7px;background:#7d99be;border-radius:50%;box-shadow:0 0 0 3px #fff;}
#siteChatWorkspace #scContext .sc-history li:last-child{padding-bottom:0;border-color:transparent;}
#siteChatWorkspace #scContext .sc-history time{font-size:11px;color:#607087;margin-top:4px;}
@media(max-width:1279px){#siteChatWorkspace #scContext{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:12px;}#siteChatWorkspace #scContext .sc-detail-card{align-self:start;}}
@media(max-width:767px){#siteChatWorkspace #scContext{display:none;padding:14px;grid-template-columns:minmax(0,1fr);}#siteChatWorkspace .sc-layout[data-selected=true] #scContext{display:grid;}}
@media(prefers-reduced-motion:reduce){#siteChatWorkspace #scContext summary b{transition:none;}}
