/* Presentation only. Original support content and routing are unchanged. */
.customer-mode{--chat-bg:#12161c;--chat-raised:#1d232c;--chat-line:#ffffff10;--chat-text:#e8edf3;--chat-muted:#97a5b7;--chat-accent:#ff9a61;background:radial-gradient(ellipse at 20% 0%,#492c191f,transparent 48%),#0b0e12}
.customer-mode:not(.widget-mode) #customer-view{padding:22px 20px 12px}
.customer-mode .support-shell{max-width:880px;min-height:0;height:calc(100dvh - 126px);max-height:940px;border-radius:18px;background:var(--chat-bg);border:1px solid var(--chat-line);box-shadow:0 28px 80px #0004}
.customer-mode .conversation-header{padding:16px 22px;min-height:74px;background:linear-gradient(110deg,#ffffff04,transparent);gap:12px}
.customer-mode .support-avatar{width:36px;height:36px;font-size:24px;border-radius:11px}
.customer-mode .support-heading strong{font-size:15px}.customer-mode .support-heading>span{font-size:11px;margin-top:4px}
.customer-mode .support-heading{min-width:0}.customer-mode .support-heading strong{display:block;max-width:min(220px,40vw);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.customer-mode .conversation-tools{gap:6px}.customer-mode .utility-button{min-height:34px;padding:8px 10px;font-size:11px;border-radius:9px;background:transparent;border-color:var(--chat-line);color:var(--chat-muted)}
.customer-mode .utility-button svg{width:15px;height:15px}
.customer-mode .conversation-status{padding:9px 22px;font-size:10px;background:transparent;color:var(--chat-muted);border-color:var(--chat-line)}
.customer-mode .conversation-feed,.customer-mode:not(.widget-mode) .welcome-mode .conversation-feed{padding:24px 22px}
.customer-mode .turn-content{max-width:none;flex:1;min-width:0}
.customer-mode .welcome-intro{max-width:620px;text-align:left;margin:8px 0 26px;padding:0}
.customer-mode .welcome-intro .eyebrow{border:0;background:none;padding:0;color:var(--chat-accent);letter-spacing:1.7px;font-size:9px}
.customer-mode .welcome-intro h1{font-size:32px;line-height:1.2;letter-spacing:-1.1px;margin:12px 0 8px;color:var(--chat-text)}
.customer-mode .welcome-intro p{font-size:13px;margin:0;color:var(--chat-muted)}
.customer-mode .options-label{font-size:9px;letter-spacing:1.4px;margin:19px 0 10px;color:var(--chat-muted)}
.customer-mode #chat-actions.tile-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-width:650px}
.customer-mode #chat-actions.tile-choices .flow-choice,.customer-mode .welcome-mode #chat-actions.tile-choices .flow-choice:first-child{display:flex;flex-direction:row;grid-column:auto;align-items:center;justify-content:flex-start;text-align:left;min-height:62px;padding:12px 14px;gap:12px;border-radius:11px;background:var(--chat-raised);border:1px solid var(--chat-line);box-shadow:none}
.customer-mode #chat-actions.tile-choices .flow-choice::after{display:none}
.customer-mode #chat-actions.tile-choices .choice-icon,.customer-mode .welcome-mode #chat-actions.tile-choices .flow-choice:first-child .choice-icon{box-sizing:border-box;width:32px;height:32px;padding:6px;flex:none;grid-row:auto;margin:0;border-radius:9px;background:#ffffff04;color:var(--chat-muted);border-color:var(--chat-line)}
.customer-mode #chat-actions.tile-choices .choice-label,.customer-mode .welcome-mode #chat-actions.tile-choices .flow-choice:first-child .choice-label{max-width:none;font-size:12px;font-weight:600;letter-spacing:0;color:var(--chat-text)}
.customer-mode #chat-actions.tile-choices .choice-description{display:none}
.customer-mode .flow-choice{transition:background .18s,border-color .18s,transform .18s;animation:none}
.customer-mode .flow-choice:hover:not(:disabled){background:#ff995c0b!important;border-color:#ff995c55!important;transform:translateY(-2px);box-shadow:0 4px 14px #0001}
.customer-mode .flow-choice:focus-visible,.customer-mode .utility-button:focus-visible{outline:2px solid var(--chat-accent);outline-offset:3px}
.customer-mode #chat-actions:not(.tile-choices){gap:7px;max-width:690px}
.customer-mode #chat-actions:not(.tile-choices)>.flow-choice{min-height:36px;padding:8px 12px;font-size:12px;border-radius:9px;background:var(--chat-raised);border-color:var(--chat-line);color:var(--chat-text)}
.customer-mode #current-step{width:fit-content;max-width:min(100%,690px);padding:16px 18px;border-radius:4px 14px 14px;background:var(--chat-raised);border:1px solid var(--chat-line);color:var(--chat-text)}
.customer-mode #current-step[data-kind="form"]{width:380px;max-width:100%;padding:14px 16px}
.customer-mode #current-step[data-kind="form"] .step-copy{font-size:12px;line-height:1.5}
.customer-mode #current-step[data-kind="form"] .rich-copy p{font-size:12px;line-height:1.5;margin-bottom:6px}
.customer-mode #current-step[data-kind="form"] .rich-copy :is(h1,h2,h3,h4,h5,h6){font-size:14px;line-height:1.4;margin-bottom:5px}
.customer-mode #current-step[data-kind="form"] .source-form{gap:10px;margin-top:10px}
.customer-mode #current-step[data-kind="form"] .identity-fields{gap:10px}
.customer-mode #current-step[data-kind="form"] .source-field input{min-height:36px;margin-top:4px;padding:8px 10px}
.customer-mode #current-step[data-kind="form"] .field-help{margin-top:4px}
.customer-mode #current-step[data-kind="form"] .source-send{min-width:68px;min-height:32px;padding:6px 14px}
.customer-mode #current-step[data-kind="status"]{width:100%;max-width:760px}
.customer-mode .step-copy{font-size:13px;line-height:1.65}
.customer-mode .rich-copy p{font-size:13px;line-height:1.7;color:var(--chat-text);margin:0 0 13px}
.customer-mode .rich-copy h1,.customer-mode .rich-copy h2,.customer-mode .rich-copy h3,.customer-mode .rich-copy h4,.customer-mode .rich-copy h5,.customer-mode .rich-copy h6{font-size:16px;line-height:1.5;color:var(--chat-text);margin:0 0 8px;letter-spacing:-.2px}
.customer-mode .rich-copy strong,.customer-mode .rich-copy b{color:var(--chat-text)}
.customer-mode .rich-copy ul,.customer-mode .rich-copy ol{line-height:1.7;margin:10px 0 14px;padding-left:20px}.customer-mode .rich-copy li{margin-bottom:4px}
.customer-mode .rich-copy a{color:var(--chat-accent)}
.customer-mode .source-form{gap:14px;margin-top:18px}
.customer-mode .identity-fields{gap:12px}.customer-mode .source-field{font-size:11px;color:var(--chat-muted)}
.customer-mode .source-field input{min-height:40px;margin-top:6px;padding:10px 11px;font-size:13px;border-radius:8px;background:var(--chat-bg);border-color:var(--chat-line);color:var(--chat-text)}
.customer-mode .source-field textarea{min-height:94px;max-height:220px;margin-top:6px;padding:11px;font-size:13px;resize:vertical;background:var(--chat-bg);border-color:var(--chat-line);color:var(--chat-text)}
.customer-mode .field-help{font-size:10px;line-height:1.5;color:var(--chat-muted);margin-top:6px}
.customer-mode .source-send{min-width:82px;min-height:36px;padding:8px 18px;font-size:12px;border-radius:8px}
.customer-mode .bubble-row{gap:10px;margin-bottom:18px}
.customer-mode .turn-avatar{width:26px;height:26px;font-size:18px;border-radius:8px}
.customer-mode .message-content{width:fit-content;max-width:min(88%,690px)}
.customer-mode .bubble-meta{font-size:10px;margin-bottom:6px;color:var(--chat-muted)}
.customer-mode .bubble{width:fit-content;max-width:100%;padding:11px 14px;line-height:1.65;font-size:13px;background:var(--chat-raised);border-color:var(--chat-line);color:var(--chat-text);border-radius:4px 13px 13px}
.customer-mode .user .message-content{max-width:78%}.customer-mode .user .bubble{margin-left:auto;background:#ff995c0e;border-color:#ff995c29;color:#ffbc94;border-radius:13px 4px 13px 13px}
.customer-mode .system .bubble{background:none;border:0;padding:3px 0;color:var(--chat-muted);font-size:10px}
.customer-mode .queue-event .message-content{flex:none;margin-left:36px}.customer-mode .queue-event .bubble{padding:0;background:#ff995c06}
.customer-mode .queue-details summary{padding:10px 13px}
.customer-mode .queue-event .bubble.queue-receipt,.admin-mode .queue-event .bubble.queue-receipt{padding:12px 14px;max-width:560px;background:#ffffff03;border:1px solid #ffffff0c;border-radius:9px;white-space:normal}
.customer-mode .queue-receipt.rich-copy p,.admin-mode .queue-receipt.rich-copy p{margin:0 0 6px;font-size:12px;line-height:1.55}
.queue-receipt.rich-copy p:last-child{margin-bottom:0}
.customer-mode .chat-footnote{padding:11px 22px;font-size:10px;background:#ffffff01;border-color:var(--chat-line);color:var(--chat-muted)}
.customer-mode .composer{padding:12px 22px;background:var(--chat-bg);border-color:var(--chat-line)}
.customer-mode .composer textarea{min-height:60px;max-height:150px;padding:11px 13px;font-size:13px;border-radius:10px;background:var(--chat-raised);color:var(--chat-text);border-color:var(--chat-line)}
.customer-mode .composer button{min-height:34px;padding:8px 12px;font-size:11px}
.customer-mode .customer-completion{padding:30px 20px;max-width:500px;margin:0 auto}
.customer-mode .step-top{font-size:10px;color:var(--chat-muted)}
/* Classic: compact icon tiles and charcoal conversation surfaces. */
[data-support-design="classic"] .customer-mode{--chat-bg:#202122;--chat-raised:#2d2e30;--chat-text:#f1f1f2;--chat-muted:#a6a7ac;--chat-accent:#ffad76;background:#171819}
[data-support-design="classic"] .customer-mode .support-shell{max-width:800px;border-radius:12px;box-shadow:0 18px 60px #0003}
[data-support-design="classic"] .customer-mode .welcome-intro{margin-bottom:22px;text-align:center;max-width:100%}
[data-support-design="classic"] .customer-mode .welcome-intro h1{font-size:28px}
[data-support-design="classic"] .customer-mode #chat-actions.tile-choices{grid-template-columns:repeat(4,minmax(0,1fr));max-width:none}
[data-support-design="classic"] .customer-mode #chat-actions.tile-choices .flow-choice{flex-direction:column;text-align:center;justify-content:center;min-height:88px;gap:7px;padding:10px;border-radius:6px}
[data-support-design="classic"] .customer-mode #chat-actions.tile-choices .choice-icon{width:25px;height:25px;padding:2px;border:0;background:none}
[data-support-design="classic"] .customer-mode #chat-actions.tile-choices .choice-label{font-size:11px;font-weight:500}
[data-support-design="classic"] .customer-mode .bubble,[data-support-design="classic"] .customer-mode #current-step{border-radius:5px}
[data-support-design="classic"] .customer-mode .user .bubble{border-radius:5px}
/* Paper: the same support flow, with a warm light palette. */
[data-support-design="paper"] .customer-mode{color-scheme:light;--chat-bg:#fff;--chat-raised:#f5f6f8;--chat-text:#242c39;--chat-muted:#687587;--chat-line:#26364c14;--chat-accent:#ba521f;background:radial-gradient(ellipse at 10% 0%,#ffe5d24d,transparent 55%),#f0f2f5;color:var(--chat-text)}
[data-support-design="paper"] .customer-mode .support-shell{box-shadow:0 20px 70px #3443580b}
[data-support-design="paper"] .customer-mode .page-header{background:#ffffffb3;border-color:var(--chat-line)}
[data-support-design="paper"] .customer-mode .brand{color:#222c3c}
[data-support-design="paper"] .customer-mode .brand-label,[data-support-design="paper"] .customer-mode .header-note{color:var(--chat-muted)}
[data-support-design="paper"] .customer-mode #demo-views{background:#f1f3f6;border-color:var(--chat-line)}
[data-support-design="paper"] .customer-mode #demo-views button{color:var(--chat-muted)}
[data-support-design="paper"] .customer-mode #demo-views button.active{color:#242c39;background:white}
[data-support-design="paper"] .customer-mode .support-heading strong{color:var(--chat-text)}
[data-support-design="paper"] .customer-mode .user .bubble{background:#fff0e5;border-color:#ead9ca;color:#864621}
[data-support-design="paper"] .customer-mode .turn-avatar{background:#fff1e7;border-color:#ead9ca;color:#a95829}
[data-support-design="paper"] .customer-mode .preview-footer{color:var(--chat-muted)}
[data-support-design="paper"] .customer-mode .service-notice{color:#316347;background:#eaf5ed}
[data-support-design="paper"] .customer-mode .customer-completion h2,[data-support-design="paper"] .customer-mode .customer-completion p{color:var(--chat-text)}
[data-support-design="paper"] .customer-mode .status-board{background:#f7f8fa;color:#242c39}
[data-support-design="paper"] .customer-mode .status-name{color:#242c39}
[data-support-design="paper"] .customer-mode .status-row{border-color:var(--chat-line)}
/* Compact shared treatment in the inbox. */
.admin-mode .bubble{padding:12px 16px;font-size:13px;line-height:1.7}
.admin-mode .bubble-row{margin-bottom:18px}
.admin-mode .rich-copy h1,.admin-mode .rich-copy h2,.admin-mode .rich-copy h3,.admin-mode .rich-copy h4{font-size:16px}
.admin-mode .rich-copy p{line-height:1.7;margin-bottom:13px}
.admin-mode .turn-avatar{width:28px;height:28px;font-size:19px}
@media(max-width:600px){
 .customer-mode:not(.widget-mode) #customer-view{padding:10px 10px 8px}
 .customer-mode .support-shell{height:calc(100dvh - 100px);border-radius:13px}
 .customer-mode .conversation-header{padding:12px 14px;min-height:64px}
 .customer-mode .conversation-status{padding:8px 14px}
 .customer-mode .conversation-feed,.customer-mode:not(.widget-mode) .welcome-mode .conversation-feed{padding:18px 14px}
 .customer-mode .conversation-tools{width:auto;margin-left:auto}
 .customer-mode .conversation-tools .utility-button{width:32px;height:32px;min-height:32px;padding:8px}
 .customer-mode .conversation-tools .utility-button span{display:none}
 .customer-mode .support-avatar{width:32px;height:32px;font-size:22px}
 .customer-mode .support-heading strong{font-size:13px}
 .customer-mode .welcome-intro{margin:4px 0 22px}
 .customer-mode .welcome-intro h1{font-size:27px;margin:9px 0 7px}
 .customer-mode #chat-actions.tile-choices .flow-choice{min-height:57px;padding:10px;gap:9px}
 .customer-mode #chat-actions.tile-choices .choice-icon{width:25px;height:25px;padding:4px}
 .customer-mode #chat-actions.tile-choices .choice-label{font-size:11px}
 .customer-mode #current-step[data-kind="form"]{padding:14px}
 .customer-mode .active-turn{gap:8px}
 .customer-mode .bubble-row{gap:8px}
 .customer-mode .chat-footnote,.customer-mode .composer{padding:10px 14px}
 [data-support-design="classic"] .customer-mode #chat-actions.tile-choices{grid-template-columns:repeat(2,minmax(0,1fr))}
 [data-support-design="classic"] .customer-mode #chat-actions.tile-choices .flow-choice{flex-direction:row;text-align:left;justify-content:flex-start;min-height:57px}
}
.customer-mode.widget-mode .support-shell{height:100dvh;max-height:none;border:0;border-radius:0;box-shadow:none}
.customer-mode.widget-mode .conversation-header{padding:12px 16px;min-height:65px}
.customer-mode.widget-mode .conversation-feed,.customer-mode.widget-mode .welcome-mode .conversation-feed{padding:18px 16px}
.customer-mode.widget-mode .conversation-status{padding:8px 16px}
.customer-mode.widget-mode .welcome-intro{margin:0 0 19px}
.customer-mode.widget-mode .welcome-intro h1{font-size:26px}
.customer-mode.widget-mode #chat-actions.tile-choices .flow-choice{min-height:55px}
.customer-mode.widget-mode .chat-footnote{padding:10px 16px}
@media(max-width:360px){.customer-mode .identity-fields{grid-template-columns:1fr}.customer-mode .support-heading>span{font-size:10px}.customer-mode .support-heading strong{font-size:12px}}
@media(prefers-reduced-motion:reduce){.customer-mode .flow-choice{transition:none}.customer-mode .flow-choice:hover:not(:disabled){transform:none}}

/* Keep the initial menu compact instead of leaving a large empty conversation. */
.customer-mode:not(.widget-mode) .support-shell{height:min(780px,calc(100dvh - 126px))}
.customer-mode:not(.widget-mode) .support-shell.welcome-mode{height:min(650px,calc(100dvh - 126px))}
[data-support-design="classic"] .customer-mode:not(.widget-mode) .support-shell.welcome-mode{height:min(550px,calc(100dvh - 126px))}
@media(max-width:600px){.customer-mode:not(.widget-mode) .support-shell,.customer-mode:not(.widget-mode) .support-shell.welcome-mode{height:calc(100dvh - 100px)}}
@media(prefers-reduced-motion:no-preference){.customer-mode .message-enter{animation:compact-message .22s ease-out both}@keyframes compact-message{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}}

[data-support-design="classic"] .customer-mode .welcome-mode #chat-actions.tile-choices .flow-choice:first-child{flex-direction:column;justify-content:center;text-align:center;min-height:88px;padding:10px;gap:7px}
[data-support-design="classic"] .customer-mode .welcome-mode #chat-actions.tile-choices .flow-choice:first-child .choice-icon{width:25px;height:25px;padding:2px;background:none;border:0}
@media(max-width:600px){[data-support-design="classic"] .customer-mode .welcome-mode #chat-actions.tile-choices .flow-choice:first-child{flex-direction:row;justify-content:flex-start;text-align:left;min-height:57px}}

.customer-mode:not(.widget-mode) #customer-view .support-shell{height:min(780px,calc(100dvh - 126px));flex:none;align-self:flex-start}
.customer-mode:not(.widget-mode) #customer-view .support-shell.welcome-mode{height:min(650px,calc(100dvh - 126px))}
[data-support-design="classic"] .customer-mode:not(.widget-mode) #customer-view .support-shell.welcome-mode{height:min(550px,calc(100dvh - 126px))}
.customer-mode.widget-mode #customer-view .support-shell{height:100dvh;flex:1}
@media(max-width:600px){.customer-mode:not(.widget-mode) #customer-view .support-shell,.customer-mode:not(.widget-mode) #customer-view .support-shell.welcome-mode{height:calc(100dvh - 100px)}}

.customer-mode .status-message .message-content{width:100%;max-width:calc(100% - 36px)}
.customer-mode .bubble.status-bubble{width:100%;max-width:100%!important}
.customer-mode.widget-mode .status-message .message-content{max-width:100%}
[data-support-design="paper"] .customer-mode .bubble.status-bubble{background:#f7f8fa!important}
[data-support-design="paper"] .customer-mode .status-board-head{background:#f1f3f6;border-color:var(--chat-line)}
[data-support-design="paper"] .customer-mode .status-board-head h2{color:var(--chat-text)}
[data-support-design="paper"] .customer-mode .status-table thead th{background:#edf0f4;color:#5c6b7f}
[data-support-design="paper"] .customer-mode .status-table tbody th{color:var(--chat-text)}
[data-support-design="paper"] .customer-mode .status-table td,[data-support-design="paper"] .customer-mode .status-table th,[data-support-design="paper"] .customer-mode .status-summary{border-color:var(--chat-line)}
[data-support-design="paper"] .customer-mode .service-badge[data-status="good"]{color:#197446;background:#e6f4eb;border-color:#c2e3cd}
[data-support-design="paper"] .customer-mode .service-badge[data-status="testing"]{color:#88620e;background:#fff5d8;border-color:#eaddb2}
[data-support-design="paper"] .customer-mode .service-badge[data-status="degraded"]{color:#a85221;background:#fff0e4;border-color:#f3d9c1}
[data-support-design="paper"] .customer-mode .service-badge[data-status="maintenance"]{color:#5366a1;background:#edf0ff;border-color:#d9dff7}
[data-support-design="paper"] .customer-mode .service-badge[data-status="offline"]{color:#b33450;background:#ffeaf0;border-color:#f3cbd5}

[data-support-design="paper"] .customer-mode .queue-details summary{color:#87512c}
[data-support-design="paper"] .customer-mode .resolve-button{color:#26734f;border-color:#b9dcc7;background:#edf7f0}
[data-support-design="paper"] .customer-mode .conversation-status.awaiting-customer,[data-support-design="paper"] .customer-mode .conversation-status.resolved-status{color:#26734f}
[data-support-design="paper"] .customer-mode .conversation-status.support-request{color:#87512c}
[data-support-design="paper"] .customer-mode .service-status-board .status-board-head .eyebrow{color:#a95427}

[data-support-design="studio"] .customer-mode .welcome-mode #chat-actions .flow-choice:first-child{background:linear-gradient(115deg,#ff965e0e,var(--chat-raised));border-color:#ffab6b2b}
[data-support-design="studio"] .customer-mode .welcome-mode #chat-actions .flow-choice:first-child .choice-icon{color:#ffc092;background:#ff965e09;border-color:#ffab6b20}
[data-support-design="paper"] .customer-mode .ticket-state{color:#66768a;border-color:var(--chat-line)}
[data-support-design="paper"] .customer-mode dialog{background:#fff;color:var(--chat-text);border-color:#dbe1e9;box-shadow:0 20px 70px #34435822}
[data-support-design="paper"] .customer-mode dialog p{color:var(--chat-muted)}
[data-support-design="paper"] .customer-mode dialog button:not(.primary){background:#f1f3f6;color:#35445b;border-color:#dbe1e9}
[data-support-design="paper"] .customer-mode .chat-restricted{background:#fff;border-color:#dbe1e9}
[data-support-design="paper"] .customer-mode .chat-restricted h1{color:var(--chat-text)}

.customer-mode #current-step[data-kind="question"]{max-width:min(100%,560px)}

.admin-mode .queue-event .message-content{flex:none;max-width:calc(100% - 44px)}
.admin-mode .queue-event .bubble{padding:0;max-width:600px}
.admin-mode .queue-details summary{padding:11px 14px}

/* Classic layout with Studio's palette; geometry and support flow stay the same. */
[data-support-design="classic"][data-support-palette="studio"] .customer-mode{--chat-bg:#12161c;--chat-raised:#1d232c;--chat-line:#ffffff10;--chat-text:#e8edf3;--chat-muted:#97a5b7;--chat-accent:#ff9a61;background:radial-gradient(ellipse at 20% 0%,#492c191f,transparent 48%),#0b0e12}

/* Live typing stays outside the transcript and scrolls with neither message list. */
.typing-indicator{display:flex;align-items:center;gap:9px;flex:none;min-width:0;padding:7px 22px;font-size:11px;line-height:1.4;color:#9baabd}.typing-indicator .typing-copy{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.typing-dots{display:flex;gap:3px;align-items:center;flex:none;padding:5px 7px;border-radius:20px;background:#ffffff05}.typing-dots i{width:4px;height:4px;border-radius:50%;background:#ffaf7b;animation:typing-pulse 1.2s ease-in-out infinite}.typing-dots i:nth-child(2){animation-delay:.15s}.typing-dots i:nth-child(3){animation-delay:.3s}.admin-composer .typing-indicator{padding:0 0 9px}.customer-mode .typing-indicator{color:var(--chat-muted)}@keyframes typing-pulse{0%,60%,100%{opacity:.4;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}@media(max-width:600px){.customer-mode .typing-indicator{padding:6px 14px;font-size:10px}}@media(prefers-reduced-motion:reduce){.typing-dots i{animation:none;opacity:.7}}
