/* Shared customer support dialog. Scope keeps theme and business bundles independent. */
#xbs-support {
  --xbs-font: "Xboard Sans SC", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  --xbs-surface:#fff; --xbs-soft:#f4f7fc; --xbs-canvas:#f7f9fd; --xbs-line:#dbe4ef; --xbs-ink:#172b45; --xbs-text:#334761; --xbs-muted:#50627a; --xbs-primary:#007aff; --xbs-primary-hover:#0066dc; --xbs-primary-soft:#eaf3ff; --xbs-bubble:#007aff; --xbs-bubble-ink:#fff;
  position:relative;z-index:2147480000;font:600 14px/1.5 var(--xbs-font);color:var(--xbs-text);isolation:isolate;
}
#xbs-support[data-theme="dark"] {--xbs-surface:#192230;--xbs-soft:#233145;--xbs-canvas:#141d2a;--xbs-line:#394b64;--xbs-ink:#f2f6ff;--xbs-text:#e0e8f7;--xbs-muted:#bdcbe0;--xbs-primary:#85b8ff;--xbs-primary-hover:#a8cdff;--xbs-primary-soft:#263d5e;--xbs-bubble:#286ccc;--xbs-bubble-ink:#fff;color-scheme:dark;}
#xbs-support[hidden],#xbs-support [hidden]{display:none!important;}
#xbs-support *,#xbs-support *::before,#xbs-support *::after{box-sizing:border-box;}
#xbs-support button,#xbs-support select,#xbs-support textarea,#xbs-support a{font:inherit;letter-spacing:normal;text-transform:none;}
#xbs-support button,#xbs-support a{-webkit-tap-highlight-color:transparent;}
#xbs-support h2,#xbs-support h3,#xbs-support h4,#xbs-support p{margin:0;}
#xbs-support svg{width:18px;height:18px;flex:0 0 auto;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
#xbs-support :focus-visible{outline:3px solid var(--xbs-primary);outline-offset:3px;}
#xbs-support .xbs-button{appearance:none;display:inline-flex;justify-content:center;align-items:center;gap:6px;min-height:40px;padding:7px 11px;border:1px solid var(--xbs-line);border-radius:10px;background:var(--xbs-surface);color:var(--xbs-ink);font-size:13px;font-weight:700;line-height:20px;cursor:pointer;text-decoration:none;white-space:nowrap;box-shadow:none;}
#xbs-support .xbs-button:hover:not(:disabled){border-color:var(--xbs-primary);background:var(--xbs-primary-soft);}
#xbs-support .xbs-button:disabled{cursor:default;opacity:.55;}
#xbs-support .xbs-primary{border-color:var(--xbs-primary);background:var(--xbs-primary);color:#fff;}
#xbs-support[data-theme="dark"] .xbs-primary{color:#10223c;}
#xbs-support .xbs-primary:hover:not(:disabled){background:var(--xbs-primary-hover);}
#xbs-support .xbs-launcher{position:fixed;right:max(22px,env(safe-area-inset-right));bottom:calc(22px + env(safe-area-inset-bottom));z-index:2147480000;height:46px;padding-inline:15px;border-radius:15px;background:var(--xbs-primary);border-color:var(--xbs-primary);color:#fff;box-shadow:0 5px 20px #152d5533;font-size:14px;font-weight:750;}
#xbs-support[data-theme="dark"] .xbs-launcher{color:#10223c;}
#xbs-support .xbs-launcher:hover{background:var(--xbs-primary-hover);}
#xbs-support .xbs-dialog{position:fixed;inset:0;width:min(840px,calc(100vw - 48px));height:min(680px,calc(100dvh - 48px));max-height:calc(100dvh - 24px);max-width:calc(100vw - 16px);margin:auto;padding:0;border:1px solid var(--xbs-line);border-radius:20px;background:var(--xbs-surface);color:var(--xbs-text);box-shadow:0 20px 80px #1224403d;font:600 14px/1.5 var(--xbs-font);overflow:hidden;}
#xbs-support .xbs-dialog[open]{display:flex;flex-direction:column;}
#xbs-support .xbs-dialog::backdrop{background:rgb(12 24 44 / 28%);}
#xbs-support .xbs-header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px 12px 20px;border-bottom:1px solid var(--xbs-line);flex:0 0 auto;}
#xbs-support .xbs-header-brand{display:flex;align-items:center;gap:11px;min-width:0;}
#xbs-support .xbs-service-icon{width:38px;height:38px;display:grid;place-items:center;background:var(--xbs-primary-soft);color:var(--xbs-primary);border-radius:12px;flex-shrink:0;}
#xbs-support .xbs-service-icon svg{width:22px;height:22px;}
#xbs-support .xbs-header h2{color:var(--xbs-ink);font-size:18px;line-height:26px;font-weight:800;overflow-wrap:anywhere;}
#xbs-support .xbs-header-caption{color:var(--xbs-muted);font-size:12px;font-weight:600;line-height:19px;}
#xbs-support .xbs-icon-button{flex-shrink:0;padding:10px;width:44px;height:44px;border-color:transparent;}
#xbs-support .xbs-icon-button span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;}
#xbs-support .xbs-workspace{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:0;flex:1;}
#xbs-support .xbs-rail{display:flex;flex-direction:column;gap:18px;min-width:0;padding:18px 14px;background:var(--xbs-soft);border-right:1px solid var(--xbs-line);overflow-y:auto;overscroll-behavior:contain;}
#xbs-support .xbs-customer{display:flex;flex-direction:column;gap:8px;min-width:0;}
#xbs-support .xbs-customer-top{display:flex;align-items:center;gap:8px;min-width:0;}
#xbs-support .xbs-customer-avatar{width:34px;height:34px;display:grid;place-items:center;background:var(--xbs-surface);border:1px solid var(--xbs-line);border-radius:11px;color:var(--xbs-primary);flex-shrink:0;}
#xbs-support .xbs-customer-identity{min-width:0;display:flex;flex-direction:column;gap:1px;}
#xbs-support .xbs-eyebrow{font-size:11px;font-weight:650;color:var(--xbs-muted);}
#xbs-support .xbs-customer-email{color:var(--xbs-ink);font-size:12px;line-height:19px;font-weight:800;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
#xbs-support .xbs-customer-state{align-self:flex-start;color:#1e7655;font-size:11px;line-height:18px;font-weight:750;}
#xbs-support[data-theme="dark"] .xbs-customer-state{color:#a8e6c7;}
#xbs-support .xbs-customer-state[data-state="expired"],#xbs-support .xbs-customer-state[data-state="traffic_exhausted"]{color:#a91d34;}
#xbs-support[data-theme="dark"] .xbs-customer-state[data-state="expired"],#xbs-support[data-theme="dark"] .xbs-customer-state[data-state="traffic_exhausted"]{color:#ffbec8;}
#xbs-support .xbs-customer-plan{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:10px 0;border-top:1px solid var(--xbs-line);border-bottom:1px solid var(--xbs-line);min-width:0;}
#xbs-support .xbs-customer-plan>div{display:flex;flex-direction:column;gap:3px;min-width:0;}
#xbs-support .xbs-customer-plan small,#xbs-support .xbs-customer-expiry{color:var(--xbs-muted);font-size:11px;line-height:17px;font-weight:650;}
#xbs-support .xbs-customer-plan strong{color:var(--xbs-ink);font-size:12px;line-height:19px;font-weight:750;overflow-wrap:anywhere;}
#xbs-support .xbs-customer-details{flex-shrink:0;min-height:36px;padding:4px 0 4px 5px;font-size:11px;}
#xbs-support .xbs-customer-network{display:flex;flex-direction:column;gap:6px;margin:0;font-size:11px;line-height:17px;}
#xbs-support .xbs-customer-network>div{display:flex;flex-direction:column;gap:1px;}
#xbs-support .xbs-customer-network dt{color:var(--xbs-muted);font-weight:650;}
#xbs-support .xbs-customer-network dd{margin:0;color:var(--xbs-ink);font-weight:750;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;}
#xbs-support .xbs-navigation{display:flex;flex-direction:column;gap:5px;}
#xbs-support .xbs-nav-button{justify-content:flex-start;border-color:transparent;background:transparent;min-height:42px;padding:9px 11px;}
#xbs-support .xbs-nav-button svg{color:var(--xbs-primary);}
#xbs-support .xbs-nav-button[aria-current="page"]{background:var(--xbs-primary-soft);color:var(--xbs-primary);}
#xbs-support .xbs-private-note{display:flex;gap:6px;margin-top:auto;font-size:11px;font-weight:600;line-height:19px;color:var(--xbs-muted);}
#xbs-support .xbs-private-note svg{width:15px;height:15px;margin-top:2px;color:var(--xbs-primary);}
#xbs-support .xbs-content{display:flex;flex-direction:column;min-width:0;min-height:0;}
#xbs-support .xbs-notice{flex:0 0 auto;margin:10px 16px 0;padding:7px 10px;border-radius:8px;color:var(--xbs-text);background:var(--xbs-soft);font-size:12px;font-weight:650;overflow-wrap:anywhere;}
#xbs-support .xbs-notice[data-tone="error"]{color:#a91d34;background:#fff0f2;}
#xbs-support .xbs-notice[data-tone="success"]{color:#116346;background:#eaf8f0;}
#xbs-support[data-theme="dark"] .xbs-notice[data-tone="error"]{color:#ffbec8;background:#4a2632;}
#xbs-support[data-theme="dark"] .xbs-notice[data-tone="success"]{color:#a8e6c7;background:#1f4437;}
#xbs-support .xbs-body{display:flex;flex-direction:column;flex:1;min-height:0;padding:12px 16px;gap:10px;overflow:hidden;}
#xbs-support .xbs-view-heading h3{font-size:16px;font-weight:800;color:var(--xbs-ink);}
#xbs-support .xbs-view-heading p,#xbs-support .xbs-greeting{font-size:13px;line-height:21px;font-weight:600;color:var(--xbs-text);}
#xbs-support .xbs-actions{display:flex;gap:6px;flex-wrap:wrap;flex:0 0 auto;}
#xbs-support .xbs-ticket-list{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:7px;padding:2px;}
#xbs-support .xbs-ticket{display:flex;flex-direction:column;gap:4px;text-align:left;width:100%;flex-shrink:0;appearance:none;background:var(--xbs-soft);border:1px solid transparent;border-radius:11px;padding:11px 12px;color:var(--xbs-text);cursor:pointer;}
#xbs-support .xbs-ticket:hover{border-color:var(--xbs-primary);}
#xbs-support .xbs-ticket-top{display:flex;align-items:center;justify-content:space-between;gap:7px;}
#xbs-support .xbs-ticket-top strong{font-size:13px;color:var(--xbs-ink);font-weight:800;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
#xbs-support .xbs-status{flex-shrink:0;display:inline-flex;align-items:center;font-size:11px;font-weight:750;line-height:18px;color:#885314;background:#fff2d8;padding:2px 6px;border-radius:6px;white-space:nowrap;}
#xbs-support .xbs-status[data-status="replied"]{color:#126345;background:#e3f6eb;}
#xbs-support .xbs-status[data-status="closed"]{color:var(--xbs-muted);background:var(--xbs-soft);}
#xbs-support[data-theme="dark"] .xbs-status[data-status="waiting"]{color:#f2cf94;background:#483a27;}
#xbs-support[data-theme="dark"] .xbs-status[data-status="replied"]{color:#a8e6c7;background:#1f4437;}
#xbs-support .xbs-preview{font-size:12px;line-height:19px;font-weight:600;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--xbs-text);}
#xbs-support .xbs-ticket-meta{font-size:11px;line-height:17px;font-weight:600;color:var(--xbs-muted);overflow-wrap:anywhere;}
#xbs-support .xbs-pagination{display:flex;flex-direction:column;flex:0 0 auto;gap:6px;padding-top:8px;border-top:1px solid var(--xbs-line);font-size:12px;}
#xbs-support .xbs-page-summary,#xbs-support .xbs-page-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;}
#xbs-support .xbs-page-controls .xbs-button{padding:6px 12px;min-width:70px;}
#xbs-support select{appearance:auto;min-height:36px;padding:5px 7px;border:1px solid var(--xbs-line);border-radius:8px;color:var(--xbs-ink);background:var(--xbs-surface);font-size:12px;font-weight:650;max-width:100%;}
#xbs-support .xbs-thread-toolbar{display:flex;align-items:center;gap:8px;flex:0 0 auto;min-height:44px;padding-bottom:9px;border-bottom:1px solid var(--xbs-line);}
#xbs-support .xbs-conversation-title{min-width:0;flex:1;display:flex;flex-direction:column;gap:2px;}
#xbs-support .xbs-conversation-title strong{font-size:14px;font-weight:800;color:var(--xbs-ink);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}
#xbs-support .xbs-conversation-title small{font-size:11px;color:var(--xbs-muted);font-weight:650;}
#xbs-support .xbs-text-button{background:transparent;border-color:transparent;padding:4px 6px;color:var(--xbs-primary);}
#xbs-support .xbs-new-label{color:var(--xbs-muted);font-size:12px;font-weight:650;}
#xbs-support .xbs-messages{flex:1;min-height:64px;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:12px;padding:8px 2px;background:var(--xbs-surface);}
#xbs-support .xbs-conversation-meta{display:none;}
#xbs-support .xbs-day-divider{color:var(--xbs-muted);font-size:11px;line-height:19px;font-weight:650;align-self:center;padding:1px 9px;background:var(--xbs-soft);border-radius:6px;}
#xbs-support .xbs-new-help{padding:0 8px;color:var(--xbs-muted);font-size:11px;line-height:19px;font-weight:600;}
#xbs-support .xbs-earlier{min-height:40px;align-self:center;flex-shrink:0;}
#xbs-support .xbs-message{display:flex;align-items:flex-start;gap:7px;max-width:92%;min-width:0;flex-shrink:0;}
#xbs-support .xbs-message-admin{align-self:flex-start;}
#xbs-support .xbs-message-user{align-self:flex-end;flex-direction:row-reverse;}
#xbs-support .xbs-message-avatar{width:28px;height:28px;display:grid;place-items:center;background:var(--xbs-primary-soft);color:var(--xbs-primary);border-radius:9px;flex-shrink:0;}
#xbs-support .xbs-message-avatar svg{width:16px;height:16px;}
#xbs-support .xbs-message-user .xbs-message-avatar{background:var(--xbs-soft);color:var(--xbs-text);}
#xbs-support .xbs-message-stack{min-width:0;display:flex;flex-direction:column;gap:4px;}
#xbs-support .xbs-message-meta{display:flex;gap:8px;align-items:baseline;color:var(--xbs-muted);font-size:11px;line-height:18px;font-weight:600;}
#xbs-support .xbs-message-user .xbs-message-meta{justify-content:flex-end;}
#xbs-support .xbs-message-meta strong{color:var(--xbs-text);font-weight:750;}
#xbs-support .xbs-message-content{white-space:pre-wrap;overflow-wrap:anywhere;border-radius:0 13px 13px 13px;padding:9px 12px;background:var(--xbs-soft);color:var(--xbs-ink);font-size:14px;line-height:23px;font-weight:600;}
#xbs-support .xbs-message-user .xbs-message-content{border-radius:13px 0 13px 13px;background:var(--xbs-bubble);color:var(--xbs-bubble-ink);}
#xbs-support .xbs-message-delivery,#xbs-support .xbs-pending-state{display:flex;gap:4px;align-items:center;justify-content:flex-end;font-size:11px;font-weight:650;color:var(--xbs-muted);}
#xbs-support .xbs-message-delivery svg,#xbs-support .xbs-pending-state>svg{width:13px;height:13px;}
#xbs-support .xbs-pending-state{flex-wrap:wrap;}
#xbs-support .xbs-message-failed .xbs-pending-state{color:#bd243c;}
#xbs-support[data-theme="dark"] .xbs-message-failed .xbs-pending-state{color:#ffbec8;}
#xbs-support .xbs-pending-state .xbs-button{font-size:11px;min-height:32px;}
#xbs-support .xbs-quick-questions{display:flex;flex-wrap:wrap;gap:6px;margin-left:35px;}
#xbs-support .xbs-question-button{background:var(--xbs-surface);color:var(--xbs-primary);font-size:12px;white-space:normal;text-align:left;justify-content:flex-start;min-height:36px;padding:7px 10px;}
#xbs-support .xbs-question-button svg{width:15px;height:15px;}
#xbs-support .xbs-composer{flex:0 0 auto;display:flex;flex-direction:column;gap:7px;margin:0;padding-top:10px;border-top:1px solid var(--xbs-line);}
#xbs-support .xbs-composer-title{display:flex;justify-content:space-between;align-items:center;gap:8px;}
#xbs-support .xbs-composer-title label{font-size:12px;font-weight:750;color:var(--xbs-ink);}
#xbs-support textarea{display:block;width:100%;resize:none;appearance:none;min-height:60px;height:64px;padding:8px 11px;border:1px solid var(--xbs-line);border-radius:11px;background:var(--xbs-surface);color:var(--xbs-ink);font-size:14px;line-height:22px;font-weight:600;}
#xbs-support textarea::placeholder{color:var(--xbs-muted);opacity:1;font-weight:600;}
#xbs-support .xbs-composer-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;}
#xbs-support .xbs-send-help{display:flex;align-items:center;gap:9px;color:var(--xbs-muted);font-size:11px;line-height:18px;font-weight:600;}
#xbs-support .xbs-send-help small{font-size:11px;}
#xbs-support .xbs-attach-actions{display:flex;flex-wrap:wrap;gap:6px;}
#xbs-support .xbs-attach-actions .xbs-button{min-height:34px;padding:3px 8px;background:var(--xbs-soft);color:var(--xbs-text);font-size:12px;}
#xbs-support .xbs-attach-actions svg{width:15px;height:15px;color:var(--xbs-primary);}
#xbs-support .xbs-product-card{flex-shrink:0;padding:11px 12px;background:var(--xbs-soft);border:1px solid var(--xbs-line);border-radius:12px;display:flex;flex-direction:column;gap:4px;min-width:0;}
#xbs-support .xbs-card-label{font-size:11px;font-weight:700;color:var(--xbs-muted);}
#xbs-support .xbs-card-name{font-size:14px;line-height:21px;font-weight:800;color:var(--xbs-ink);overflow-wrap:anywhere;}
#xbs-support .xbs-card-price{font-size:14px;line-height:21px;font-weight:750;color:var(--xbs-primary);}
#xbs-support .xbs-card-meta{font-size:12px;line-height:19px;font-weight:600;color:var(--xbs-text);overflow-wrap:anywhere;}
#xbs-support .xbs-card-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-top:4px;}
#xbs-support .xbs-card-link,#xbs-support .xbs-card-actions .xbs-button{min-height:36px;font-size:12px;padding:4px 8px;}
#xbs-support .xbs-draft-card{position:relative;min-height:50px;max-height:60px;overflow:hidden;padding:5px 62px 5px 10px;gap:2px;}
#xbs-support .xbs-draft-card .xbs-card-label,#xbs-support .xbs-draft-card .xbs-card-meta,#xbs-support .xbs-draft-card .xbs-card-link{display:none;}
#xbs-support .xbs-draft-card .xbs-card-name{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}
#xbs-support .xbs-draft-card .xbs-card-actions{position:absolute;right:5px;top:5px;margin:0;}
#xbs-support .xbs-draft-card .xbs-card-actions .xbs-button{min-height:44px;}
#xbs-support .xbs-picker,#xbs-support .xbs-overlay{position:absolute;inset:0;z-index:3;display:flex;flex-direction:column;gap:12px;padding:20px;background:var(--xbs-surface);}
#xbs-support .xbs-info-content{display:flex;flex-direction:column;gap:10px;min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;padding:2px;}
#xbs-support .xbs-faq{flex-shrink:0;border:1px solid var(--xbs-line);border-radius:11px;background:var(--xbs-soft);}
#xbs-support .xbs-faq summary{cursor:pointer;padding:12px 13px;color:var(--xbs-ink);font-size:14px;font-weight:750;line-height:22px;min-height:44px;overflow-wrap:anywhere;}
#xbs-support .xbs-faq-answer{display:flex;flex-direction:column;gap:6px;padding:0 13px 11px;}
#xbs-support .xbs-faq-answer p{color:var(--xbs-text);font-size:13px;line-height:22px;font-weight:600;white-space:pre-wrap;overflow-wrap:anywhere;}
#xbs-support .xbs-faq-answer .xbs-button{align-self:flex-start;min-height:40px;}
#xbs-support .xbs-plan-content h4,#xbs-support .xbs-info-subtitle{margin:0 0 6px;color:var(--xbs-ink);font-size:14px;line-height:22px;font-weight:800;}
#xbs-support .xbs-plan-content p,#xbs-support .xbs-customer-traffic{color:var(--xbs-text);font-size:13px;line-height:22px;font-weight:600;white-space:pre-wrap;overflow-wrap:anywhere;}
#xbs-support .xbs-picker-header{display:flex;justify-content:space-between;align-items:center;flex-shrink:0;gap:8px;}
#xbs-support .xbs-picker-header h3{font-size:17px;line-height:25px;font-weight:800;color:var(--xbs-ink);}
#xbs-support .xbs-picker-tabs{display:flex;gap:7px;flex-shrink:0;}
#xbs-support .xbs-picker-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:10px;overflow-y:auto;min-height:0;flex:1;overscroll-behavior:contain;padding:2px;}
#xbs-support .xbs-picker-list>.xbs-empty,#xbs-support .xbs-picker-list>.xbs-loading{grid-column:1/-1;}
#xbs-support .xbs-picker-list .xbs-card-actions{justify-content:space-between;}
#xbs-support .xbs-picker-list .xbs-card-actions .xbs-primary{min-height:40px;}
#xbs-support .xbs-count{color:var(--xbs-muted);font-size:11px;font-weight:650;}
#xbs-support .xbs-send{min-width:82px;}
#xbs-support .xbs-end{flex-shrink:0;font-size:11px;min-height:32px;padding:4px 5px;}
#xbs-support .xbs-end svg{width:14px;height:14px;}
#xbs-support .xbs-closed{display:flex;align-items:center;flex-direction:column;gap:10px;padding:12px 0 2px;flex-shrink:0;text-align:center;font-size:12px;color:var(--xbs-muted);}
#xbs-support .xbs-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:20px 8px;text-align:center;flex:1 0 auto;min-width:0;}
#xbs-support .xbs-empty>svg{width:27px;height:27px;color:var(--xbs-primary);}
#xbs-support .xbs-empty h3{color:var(--xbs-ink);font-size:15px;font-weight:800;}
#xbs-support .xbs-empty p{max-width:40ch;color:var(--xbs-text);font-size:13px;line-height:22px;font-weight:600;}
#xbs-support .xbs-loading{flex:1;display:flex;justify-content:center;align-items:center;font-weight:650;color:var(--xbs-muted);}
#xbs-support .xbs-confirm{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;gap:14px;padding:32px;background:var(--xbs-surface);z-index:3;}
#xbs-support .xbs-confirm h3{color:var(--xbs-ink);font-size:19px;font-weight:800;}
#xbs-support .xbs-confirm p{color:var(--xbs-text);font-size:14px;line-height:24px;}
#xbs-support .xbs-confirm-actions{display:flex;justify-content:flex-end;gap:8px;}
@media(max-width:700px){
  #xbs-support .xbs-launcher{right:max(14px,env(safe-area-inset-right));bottom:calc(78px + env(safe-area-inset-bottom));height:44px;padding-inline:12px;font-size:13px;}
  #xbs-support .xbs-dialog{width:calc(100vw - 16px);height:min(760px,calc(100dvh - 16px - env(safe-area-inset-bottom)));border-radius:16px;}
  #xbs-support .xbs-header{padding:9px 10px 9px 14px;}
  #xbs-support .xbs-header h2{font-size:17px;}
  #xbs-support .xbs-header-caption{font-size:11px;}
  #xbs-support .xbs-workspace{display:flex;flex-direction:column;}
  #xbs-support .xbs-rail{overflow:visible;flex:0 0 auto;padding:8px 12px 5px;gap:6px;border-right:0;border-bottom:1px solid var(--xbs-line);}
  #xbs-support .xbs-customer{position:relative;gap:4px;}
  #xbs-support .xbs-customer-top{padding-right:76px;}
  #xbs-support .xbs-customer-avatar{width:27px;height:27px;border-radius:8px;}
  #xbs-support .xbs-customer-avatar svg{width:15px;height:15px;}
  #xbs-support .xbs-eyebrow{display:none;}
  #xbs-support .xbs-customer-state{position:absolute;right:0;top:4px;}
  #xbs-support .xbs-customer-plan{border:0;padding:0;gap:6px;}
  #xbs-support .xbs-customer-plan>div{display:flex;flex-direction:row;align-items:center;gap:6px;min-width:0;}
  #xbs-support .xbs-customer-plan small,#xbs-support .xbs-customer-expiry{display:none;}
  #xbs-support .xbs-customer-plan strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px;}
  #xbs-support .xbs-customer-details{min-height:26px;padding:2px 0;font-size:11px;}
  #xbs-support .xbs-customer-network{display:none;}
  #xbs-support .xbs-navigation{flex-direction:row;gap:3px;}
  #xbs-support .xbs-nav-button{flex:1;min-width:0;justify-content:center;min-height:40px;padding:6px 4px;font-size:12px;gap:5px;}
  #xbs-support .xbs-nav-button svg{width:16px;height:16px;}
  #xbs-support .xbs-private-note{display:none;}
  #xbs-support .xbs-content{flex:1;}
  #xbs-support .xbs-body{padding:10px 12px;gap:8px;}
  #xbs-support .xbs-availability .xbs-availability-details{align-items:flex-start;flex-direction:column;gap:0;}
  #xbs-support .xbs-notice{margin:8px 12px 0;font-size:11px;line-height:18px;}
  #xbs-support .xbs-thread-toolbar{gap:5px;padding-bottom:7px;flex-wrap:wrap;}
  #xbs-support .xbs-conversation-title strong{font-size:13px;}
  #xbs-support .xbs-conversation-title small{font-size:10px;}
  #xbs-support .xbs-end{min-height:30px;font-size:10px;}
  #xbs-support .xbs-message{max-width:98%;gap:5px;}
  #xbs-support .xbs-message-avatar{width:24px;height:24px;border-radius:8px;}
  #xbs-support .xbs-message-content{font-size:13px;line-height:22px;padding:8px 10px;}
  #xbs-support .xbs-quick-questions{margin-left:29px;}
  #xbs-support .xbs-question-button{min-height:40px;}
  #xbs-support textarea{font-size:16px;height:60px;}
  #xbs-support .xbs-attach-actions .xbs-button{min-height:40px;font-size:11px;padding:4px 6px;}
  #xbs-support .xbs-composer-title label{font-size:11px;}
  #xbs-support .xbs-send-help small{display:none;}
  #xbs-support .xbs-send{min-height:44px;}
  #xbs-support .xbs-picker,#xbs-support .xbs-overlay{padding:12px;gap:9px;}
  #xbs-support .xbs-picker-header h3{font-size:15px;}
  #xbs-support .xbs-picker-tabs{gap:5px;}
  #xbs-support .xbs-picker-tabs .xbs-button{flex:1;font-size:12px;padding:6px;min-height:44px;}
  #xbs-support .xbs-picker-list{grid-template-columns:minmax(0,1fr);}
  #xbs-support .xbs-button{min-height:44px;}
}
@media(max-width:700px) and (max-height:620px){
  #xbs-support .xbs-header-caption{display:none;}
  #xbs-support .xbs-header{padding-block:6px;}
  #xbs-support .xbs-rail{padding-block:6px;gap:3px;}
  #xbs-support .xbs-customer{gap:1px;}
  #xbs-support .xbs-body{padding-block:8px;gap:6px;}
  #xbs-support .xbs-composer{padding-top:6px;gap:5px;}
  #xbs-support .xbs-messages{min-height:0;}
  #xbs-support .xbs-notice{margin-top:4px;padding:4px 8px;}
}
@media(max-height:540px){
  #xbs-support .xbs-dialog{height:calc(100dvh - 16px);width:calc(100vw - 16px);}
  #xbs-support .xbs-header{padding-block:6px;}
  #xbs-support .xbs-header-caption{display:none;}
  #xbs-support .xbs-customer-plan,#xbs-support .xbs-customer-network{display:none;}
  #xbs-support .xbs-body{padding-top:7px;gap:6px;}
  #xbs-support .xbs-composer{gap:5px;padding-top:6px;}
  #xbs-support .xbs-composer-title{display:none;}
  #xbs-support textarea{min-height:48px;height:48px;}
}
@media(prefers-reduced-motion:no-preference){#xbs-support .xbs-dialog[open]{animation:xbs-open .18s ease-out;}@keyframes xbs-open{from{opacity:0;transform:translateY(8px);}to{opacity:1;transform:translateY(0);}}}
#xbs-support .xbs-account-detail{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0;padding:12px;border:1px solid var(--xbs-line);border-radius:11px;background:var(--xbs-soft);}
#xbs-support .xbs-account-detail>div{min-width:0;display:flex;flex-direction:column;gap:3px;}
#xbs-support .xbs-account-detail dt{font-size:11px;font-weight:650;color:var(--xbs-muted);}
#xbs-support .xbs-account-detail dd{margin:0;font-size:13px;font-weight:750;color:var(--xbs-ink);overflow-wrap:anywhere;}
#xbs-support .xbs-account-note{color:var(--xbs-muted);font-size:12px;font-weight:600;line-height:20px;}
@media(max-width:700px){#xbs-support .xbs-account-detail{grid-template-columns:minmax(0,1fr);}}
#xbs-support .xbs-availability{flex:0 0 auto;margin:0;padding:7px 10px;border:1px solid var(--xbs-line);border-left-width:3px;border-radius:8px;background:var(--xbs-surface);}
#xbs-support .xbs-availability.is-open{border-left-color:#16a36a;}
#xbs-support .xbs-availability.is-closed{border-left-color:#d39419;}
#xbs-support[data-theme="dark"] .xbs-availability.is-open{border-left-color:#45c486;}
#xbs-support[data-theme="dark"] .xbs-availability.is-closed{border-left-color:#e3b54f;}
#xbs-support .xbs-availability-status{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;}
#xbs-support .xbs-availability-status strong{color:var(--xbs-ink);font-size:12px;line-height:17px;font-weight:800;}
#xbs-support .xbs-availability-status span{color:var(--xbs-primary);font-size:11px;line-height:17px;font-weight:750;}
#xbs-support .xbs-availability-details{display:flex;align-items:baseline;gap:8px;min-width:0;margin-top:1px;}
#xbs-support .xbs-availability p{flex:1 1 280px;min-width:0;margin:0;color:var(--xbs-text);font-size:11px;line-height:16px;font-weight:600;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;}
#xbs-support .xbs-availability small{display:block;flex:0 1 auto;margin:0;color:var(--xbs-muted);font-size:10px;line-height:15px;font-weight:600;overflow-wrap:anywhere;}
#xbs-support .xbs-order-required{margin:0;color:#8b5b12;font-size:12px;font-weight:700;line-height:19px;}
#xbs-support[data-theme="dark"] .xbs-order-required{color:#f2cf94;}
#xbs-support .xbs-order-required-button{color:#8b5b12;border-color:#d8ae5e;}
#xbs-support[data-theme="dark"] .xbs-order-required-button{color:#f2cf94;border-color:#8f7040;}
#xbs-support .xbs-order-field{display:flex;flex-direction:column;gap:4px;margin:0;color:var(--xbs-text);font-size:12px;font-weight:700;}
#xbs-support .xbs-order-field input{width:100%;min-height:38px;padding:8px 10px;border:1px solid var(--xbs-line);border-radius:8px;background:var(--xbs-surface);color:var(--xbs-ink);font:inherit;font-weight:600;outline:none;}
#xbs-support .xbs-order-field input:focus{border-color:var(--xbs-primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--xbs-primary) 18%,transparent);}
#xbs-support .xbs-order-field small{color:var(--xbs-muted);font-size:11px;line-height:17px;font-weight:600;overflow-wrap:anywhere;}
