/* Match — Support launcher + slide-up support panel (partials/support_widget.html, js/support-widget.js).
   Design system v2: a clean 48px round button; the "Support" label appears on hover/focus on desktop only; no idle glow. */

/* ---------- launcher ---------------------------------------------------- */
.support-fab {
  position: fixed; z-index: 44; right: 12px; bottom: calc(var(--nav-h) + var(--safe-b) + 12px);
  display: inline-flex; align-items: center; gap: 0; height: 48px; min-width: 48px; padding: 0; border-radius: 24px;
  background: var(--primary); color: #fff; border: 0; box-shadow: 0 2px 8px rgba(16, 12, 30, .18);
  font-weight: 600; font-size: 14px; text-decoration: none; -webkit-tap-highlight-color: transparent;
  transform: translate3d(0, var(--fab-dodge, 0px), 0);
  transition: background var(--dur-1) var(--ease), transform var(--dur-3) var(--ease-out), opacity var(--dur-2) var(--ease), visibility 0s, bottom var(--dur-3) var(--ease);
}
.support-fab:hover, .support-fab:focus-visible { color: #fff; background: var(--primary-hover); }
.support-fab:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.sf-orb { position: relative; display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; }
.sf-orb .icon { width: 22px; height: 22px; stroke-width: 1.9; }
.sf-orb::before { content: none; }
.sf-label {
  display: inline-block; max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; padding-right: 0;
  transition: max-width var(--dur-3) var(--ease-out), opacity var(--dur-2) var(--ease), padding var(--dur-3) var(--ease-out);
}
.sf-badge {
  position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--live); color: #fff; font-size: 11px; font-weight: 600; line-height: 20px; text-align: center;
  box-shadow: 0 0 0 2px var(--surface);
}
.sf-badge[hidden] { display: none !important; }
@media (hover: hover) and (min-width: 768px) {
  .support-fab:hover .sf-label, .support-fab:focus-visible .sf-label { max-width: 100px; opacity: 1; padding-right: 18px; }
  .support-fab:hover .sf-orb, .support-fab:focus-visible .sf-orb { margin-right: -6px; }
}
/* from 768px the header Support icon opens the same panel, so the floating launcher is phones-only (never covers content) */
/* v4: the header headset button opens the panel on desktop; the round launcher shows below 1100px (see theme.css) */
/* hide while the bet slip sheet, a drawer, a header menu, the palette or the panel itself is open */
body.sheet-open .support-fab, body.acc-drawer-open .support-fab, body.sw-open .support-fab, body.cmdk-open .support-fab,
body:has(details[data-menu][open]) .support-fab {
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity var(--dur-1) var(--ease), visibility 0s linear var(--dur-1);
}
body.has-sticky-actions .support-fab { bottom: calc(var(--sticky-h, 84px) + var(--nav-h) + var(--safe-b) + 12px); }
@media (min-width: 768px) { body.has-sticky-actions .support-fab { bottom: calc(var(--sticky-h, 84px) + 20px); } }

/* ---------- panel -------------------------------------------------------- */
.sw-backdrop {
  position: fixed; inset: 0 0 calc(var(--nav-h) + var(--safe-b)) 0; z-index: 69; background: var(--overlay);
  opacity: 0; transition: opacity var(--dur-3) var(--ease);
}
@media (min-width: 768px) { .sw-backdrop { inset: 0; background: color-mix(in srgb, var(--overlay) 40%, transparent); } }
body.sw-open .sw-backdrop { opacity: 1; }
.sw-panel {
  position: fixed; z-index: 70; left: 0; right: 0; top: 0; bottom: calc(var(--nav-h) + var(--safe-b));
  display: flex; flex-direction: column; min-height: 0;
  background: var(--surface); color: var(--text); border-bottom: 1px solid var(--border);
  overflow: hidden; overscroll-behavior: contain;
  transform: translate3d(0, 12px, 0); opacity: 0;
  transition: transform var(--dur-3) var(--ease-out), opacity var(--dur-2) var(--ease);
}
body.sw-open .sw-panel { transform: none; opacity: 1; }
@media (min-width: 768px) {
  .sw-panel {
    left: auto; top: auto; right: 20px; bottom: 80px; width: 400px; height: min(640px, calc(100vh - var(--header-h) - 110px));
    border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow-pop);
  }
}
@media (min-width: 1100px) { .sw-panel { right: calc(var(--slip-w) + 20px); } }
.sw-panel:focus { outline: none; }

.sw-head { position: relative; flex: none; padding: 14px 14px 16px 18px; color: #fff; background: linear-gradient(135deg, var(--hero-1) 0%, var(--hero-2) 100%); }
.sw-head::after { content: none; }
.sw-head-row { position: relative; display: flex; align-items: center; gap: 12px; }
.sw-agent { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .14); flex: none; }
.sw-agent .icon { width: 20px; height: 20px; }
.sw-head h2 { color: #fff; font-size: 16px; line-height: 22px; font-weight: 600; }
.sw-head p { position: relative; margin: 8px 0 0; color: rgba(255, 255, 255, .86); font-size: 13px; line-height: 19px; max-width: 36ch; }
.sw-close {
  margin-left: auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; border: 0; flex: none;
  background: transparent; color: #fff; cursor: pointer; transition: background var(--dur-1) var(--ease);
}
.sw-close:hover { background: rgba(255, 255, 255, .14); }
.sw-close .icon { width: 20px; height: 20px; }
.sw-online { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .82); }

.sw-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 16px; display: grid; gap: 16px; align-content: start; scrollbar-width: thin; }
.sw-section-title { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.sw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sw-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px 0 8px; border-radius: var(--r-control);
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
  transition: background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
@media (max-width: 767px) { .sw-chip { min-height: 44px; } }
.sw-chip .sw-chip-ico { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: var(--hover); color: var(--text-2); }
.sw-chip .icon { width: 16px; height: 16px; }
.sw-chip:hover { border-color: var(--border-strong); background: var(--surface-2); }
.sw-chip[aria-expanded="true"] { background: var(--primary-soft); color: var(--primary-text); border-color: color-mix(in srgb, var(--primary) 35%, transparent); }
.sw-chip[aria-expanded="true"] .sw-chip-ico { background: var(--accent); color: var(--on-accent); }

.sw-answer { border-radius: var(--r-card); padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--border); }
.sw-answer h3 { font-size: 14px; line-height: 20px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.sw-answer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.sw-answer li { position: relative; padding-left: 16px; font-size: 13px; line-height: 20px; color: var(--text-2); }
.sw-answer li::before { content: ""; position: absolute; left: 3px; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--primary); }
.sw-answer-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.sw-help { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-card); border: 1px solid var(--border); background: var(--surface); }
.sw-help strong { display: block; font-size: 14px; font-weight: 600; }
.sw-help span { font-size: 12px; color: var(--muted); }
.sw-help .btn { margin-left: auto; flex: none; }

.sw-cases { display: grid; border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; }
.sw-case {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 10px 12px; min-height: 44px;
  background: var(--surface); border-top: 1px solid var(--border); color: var(--text); text-decoration: none;
  transition: background var(--dur-1) var(--ease);
}
.sw-case:first-child { border-top: 0; }
.sw-case:hover { color: var(--text); background: var(--surface-2); }
.sw-case strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; }
.sw-case small { grid-column: 1; color: var(--muted); font-size: 12px; }
.sw-case .sw-pill { grid-row: 1 / span 2; grid-column: 2; display: inline-flex; align-items: center; gap: 6px; }
.sw-case.has-unread { background: var(--accent-soft); }
.sw-pill-st { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.sw-pill-st.is-open { background: var(--accent-soft); color: var(--accent-text); }
.sw-pill-st.is-waiting { background: var(--primary-soft); color: var(--primary-text); }
.sw-pill-st.is-resolved { background: var(--hover); color: var(--muted); }
.sw-unread { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--live); color: #fff; font-size: 11px; font-weight: 600; line-height: 20px; text-align: center; }
.sw-all { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; font-weight: 500; font-size: 13px; text-decoration: none; }

.sw-contact { display: grid; gap: 4px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 13px; }
.sw-contact a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; font-weight: 500; text-decoration: none; }
.sw-guest { padding: 16px; border-radius: var(--r-card); background: var(--surface-2); border: 1px solid var(--border); display: grid; gap: 10px; text-align: center; }
.sw-guest p { margin: 0; color: var(--text-2); font-size: 13px; }

.sw-form { display: grid; gap: 0; }
.sw-form .field { margin-bottom: 12px; }
.sw-form .field textarea { min-height: 110px; }
.sw-form-actions { display: flex; gap: 8px; align-items: center; }
.sw-form-actions .btn-primary { flex: 1 1 auto; }
.sw-back { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; border: 0; background: none; padding: 0; color: var(--primary-text); font: inherit; font-weight: 500; font-size: 13px; cursor: pointer; }
.sw-back .icon { transform: rotate(180deg); width: 16px; height: 16px; }
.sw-err { color: var(--danger); font-weight: 500; font-size: 13px; margin: 0 0 10px; }
.sw-err:empty { display: none; }

.sw-done { text-align: center; display: grid; gap: 8px; justify-items: center; padding: 16px 4px; }
.sw-done h3 { font-size: 16px; }
.sw-done .ref { font-family: ui-monospace, Consolas, monospace; font-weight: 600; letter-spacing: .03em; font-size: 15px; color: var(--text); }
.sw-check { width: 56px; height: 56px; }
.sw-check circle { fill: var(--success-soft); stroke: var(--success); stroke-width: 3; }
.sw-check path { fill: none; stroke: var(--success); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }

.sw-skel { display: grid; gap: 10px; }
.sw-skel i { display: block; height: 40px; border-radius: 8px; background: var(--hover); position: relative; overflow: hidden; }
.sw-skel i:nth-child(2) { width: 82%; } .sw-skel i:nth-child(3) { width: 64%; }

/* reduced motion: instant states */
html[data-motion="reduced"] .support-fab, html[data-motion="reduced"] .sw-panel { transition: none; }
html[data-motion="reduced"] .sw-panel { transform: none; }
@media (prefers-reduced-motion: reduce) { html[data-motion="system"] .sw-panel { transform: none; transition: none; } }
@media print { .support-fab, .sw-panel, .sw-backdrop { display: none !important; } }

/* ==========================================================================
   v4 support panel (reference 12): right-side panel, 1px mint border, radius 18, dark navy
   ========================================================================== */
@media (min-width: 768px) {
  .sw-panel {
    top: calc(var(--header-h) + 16px); bottom: 16px; right: 16px; left: auto; width: min(580px, calc(100vw - 32px)); height: auto;
    border-radius: 18px; border: 1px solid var(--accent); background: var(--surface); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .7);
    transform: translate3d(16px, 0, 0);
  }
}
@media (min-width: 1100px) { .sw-panel { right: 16px; } }
@media (max-width: 767px) { .sw-panel { border-radius: 0 0 16px 16px; border-bottom: 1px solid var(--accent); } }  /* full-width sheet that never covers the bottom nav */
.sw-head { padding: 22px 24px 6px 26px; background: transparent; color: var(--text); }
.sw-agent { width: 48px; height: 48px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.sw-agent .icon { width: 26px; height: 26px; }
.sw-head h2 { color: var(--text); font-size: 26px; line-height: 32px; font-weight: 700; }
.sw-close { color: var(--text); }
.sw-close:hover { background: var(--hover); }
.sw-close .icon { width: 26px; height: 26px; }
.sw-intro { flex: none; padding: 14px 26px 4px; }
.sw-hello { margin: 0; font-size: 28px; line-height: 34px; font-weight: 700; color: var(--text); }
.sw-sub { margin: 6px 0 0; font-size: 17px; line-height: 24px; color: var(--text-2); }
.sw-body { padding: 14px 26px 24px; gap: 18px; }
.sw-section-title { font-size: 15px; font-weight: 600; letter-spacing: .03em; color: var(--text); margin: 0 0 12px; }
.sw-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sw-chip {
  display: grid; grid-template-columns: 30px minmax(0, 1fr) 18px; gap: 12px; align-items: center; min-height: 60px; padding: 8px 14px 8px 18px;
  border-radius: 10px; border: 1px solid var(--border-strong); background: transparent; color: var(--text); font-size: 17px; font-weight: 600; text-align: left;
}
.sw-chip .sw-chip-ico { width: 30px; height: 30px; background: none; color: var(--text); border-radius: 0; }
.sw-chip .sw-chip-ico .icon { width: 24px; height: 24px; }
.sw-chip-chev { width: 18px !important; height: 18px !important; color: var(--text-2); }
.sw-chip:hover { border-color: var(--accent); background: var(--surface-2); }
.sw-chip[aria-expanded="true"] { background: var(--accent-soft); color: var(--text); border-color: var(--accent); }
.sw-chip[aria-expanded="true"] .sw-chip-ico { background: none; color: var(--accent-text); }
.sw-chip[aria-expanded="true"] .sw-chip-chev { transform: rotate(90deg); color: var(--accent-text); }
.sw-else { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; min-height: 40px; padding: 0; border: 0; background: none; color: var(--accent-text); font: inherit; font-size: 19px; font-weight: 600; cursor: pointer; }
.sw-else[aria-expanded="true"] { text-decoration: underline; }
#sw-answer:not(:empty) { margin-top: 12px; }
.sw-answer { background: var(--surface-2); border-color: var(--border-strong); }
.sw-answer li::before { background: var(--accent); }
.sw-help { padding: 18px 0 0; border: 0; border-top: 1px solid var(--border-strong); border-radius: 0; background: transparent; }
.sw-help strong { font-size: 22px; line-height: 28px; font-weight: 700; }
.sw-help span { font-size: 16px; color: var(--text-2); }
.sw-help .btn { min-height: 48px; padding: 0 20px; font-size: 18px; border-radius: 10px; }
.sw-cases-title { margin: 0 0 12px; font-size: 22px; line-height: 28px; font-weight: 700; }
.sw-cases { gap: 10px; border: 0; border-radius: 0; overflow: visible; }
.sw-case, .sw-case:first-child { border: 1px solid var(--border-strong); border-radius: 10px; padding: 12px 18px; background: var(--surface); min-height: 70px; }
.sw-case.has-unread { background: var(--surface); }
.sw-case:hover { background: var(--surface-2); border-color: var(--muted); }
.sw-case strong { font-size: 18px; line-height: 24px; font-weight: 600; }
.sw-case small { font-size: 15px; color: var(--text-2); }
.sw-case .sw-pill { gap: 22px; }
.sw-unread { display: inline-block; min-width: 0; width: 10px; height: 10px; padding: 0; border-radius: 50%; background: var(--accent); font-size: 0; }
.sw-pill-st { height: 32px; padding: 0 14px; font-size: 16px; font-weight: 500; }
.sw-pill-st.is-open { background: var(--accent-soft); color: var(--accent-text); }
.sw-pill-st.is-waiting { background: color-mix(in srgb, var(--warning) 22%, var(--surface)); color: var(--warning-text); }
.sw-pill-st.is-resolved { background: var(--surface-3); color: var(--text-2); }
.sw-all { color: var(--accent-text); }
.sw-guest { background: var(--surface-2); border-color: var(--border-strong); }
.sw-back { color: var(--accent-text); }
@media (max-width: 767px) {
  .sw-head { padding: 14px 14px 4px 16px; }
  .sw-intro { padding: 10px 16px 0; }
  .sw-hello { font-size: 22px; line-height: 28px; }
  .sw-sub { font-size: 15px; }
  .sw-body { padding: 12px 16px 20px; }
  .sw-chips { grid-template-columns: minmax(0, 1fr); }
  .sw-help { flex-wrap: wrap; }
  .sw-help .btn { margin-left: 0; }
}
.sw-panel.is-form .sw-intro { display: none; }

/* ==========================================================================
   Private conversations: widget thread, withdrawal chat cards (user + staff), header badge
   ========================================================================== */
.hdr-support { position: relative; }
.hdr-sup-badge { top: 2px; right: 2px; min-width: 18px; height: 18px; line-height: 18px; font-size: 10px; padding: 0 4px; background: var(--live); }
.sw-case-ico { width: 16px !important; height: 16px !important; margin-right: 6px; vertical-align: -2px; color: var(--accent-text); }
.sw-new { color: var(--accent-text); font-weight: 600; }
.sw-body.is-conv { display: flex; flex-direction: column; overflow: hidden; padding-bottom: 12px; }
.sw-conv { display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; min-height: 0; }
.sw-conv-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sw-conv-title { margin: 0; font-size: 20px; line-height: 26px; font-weight: 700; overflow-wrap: anywhere; }
.sw-conv-sub { margin: 0; font-size: 13px; color: var(--text-2); }
.sw-conv-sub a { color: var(--accent-text); font-weight: 500; }
.sw-conv .vchat-list { flex: 1 1 auto; max-height: none; min-height: 120px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface-2); }
.sw-conv .vchat-form { padding: 0; border: 0; }

.vchat { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.vchat-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.vchat-ico { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.vchat-ico .icon { width: 20px; height: 20px; }
.vchat-titles { min-width: 0; flex: 1 1 auto; }
.vchat-titles h2 { margin: 0; font-size: 17px; line-height: 24px; }
.vchat-titles p { margin: 2px 0 0; font-size: 13px; color: var(--text-2); }
.vchat-head .sw-pill-st { height: 26px; padding: 0 10px; font-size: 13px; }
.vchat-list { list-style: none; margin: 0; padding: 16px; display: flex; flex-direction: column; gap: 12px; max-height: 460px; min-height: 160px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.vchat-msg { display: grid; gap: 4px; max-width: min(85%, 60ch); justify-items: start; }
.vchat-msg.is-mine { align-self: flex-end; justify-items: end; }
.vchat-msg.is-system { align-self: center; max-width: min(94%, 70ch); justify-items: center; text-align: center; }
.vchat-meta { font-size: 12px; line-height: 16px; color: var(--muted); }
.vchat-meta strong { color: var(--text); font-weight: 600; }
.vchat-bubble { padding: 10px 14px; border-radius: 12px; border-bottom-left-radius: 4px; background: var(--surface); border: 1px solid var(--border-strong); color: var(--text); font-size: 14px; line-height: 21px; overflow-wrap: anywhere; white-space: normal; }
.vchat-msg.is-staff .vchat-bubble { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 32%, var(--border)); }
.vchat-msg.is-mine .vchat-bubble { border-bottom-left-radius: 12px; border-bottom-right-radius: 4px; }
.vchat-msg.is-user.is-mine .vchat-bubble { background: var(--surface-3, var(--surface-2)); }
.vchat-msg.is-system .vchat-bubble { border-radius: 10px; border-style: dashed; background: transparent; color: var(--text-2); font-size: 13px; line-height: 19px; }
.vchat-empty { align-self: center; color: var(--muted); font-size: 14px; padding: 24px 0; }
.vchat-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; padding: 12px 16px 14px; border-top: 1px solid var(--border); }
.vchat-form textarea { width: 100%; min-height: 48px; max-height: 160px; resize: vertical; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); font: inherit; font-size: 15px; line-height: 22px; }
.vchat-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.vchat-form .btn { min-height: 48px; }
.vchat-form .sw-err { grid-column: 1 / -1; margin: 0; }
@media (max-width: 767px) {
  .vchat-list { max-height: 60vh; padding: 12px; }
  .vchat-msg { max-width: 92%; }
  .vchat-form { padding: 10px 12px 12px; gap: 8px; }
  .vchat-form .btn { min-width: 48px; padding: 0 14px; }
  .sw-conv .vchat-form .btn span { display: none; }
  .vchat-head { padding: 14px; }
}
/* lifecycle lines in the full-page conversation */
.acc-msg.is-system { justify-content: center; }
.acc-sys { max-width: min(94%, 70ch); text-align: center; padding: 10px 14px; border: 1px dashed var(--border-strong); border-radius: 10px; color: var(--text-2); font-size: 14px; line-height: 21px; }
.acc-sys p { margin: 0; overflow-wrap: anywhere; }
.acc-sys .acc-bubble-meta { margin-bottom: 4px; }
.acc-sys .icon { width: 14px; height: 14px; vertical-align: -2px; }

/* withdraw page: eligible credits vs the minimum */
.wd-progress { display: grid; gap: 8px; margin: 0 0 18px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface-2); }
.wd-progress-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.wd-progress-top strong { font-size: 16px; line-height: 22px; }
.wd-progress-top span { font-size: 13px; color: var(--text-2); }
.wd-bar { position: relative; height: 10px; border-radius: 999px; background: var(--surface-3, var(--hover)); overflow: hidden; }
.wd-bar i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--accent); transition: width .6s var(--ease-out, ease-out); }
.wd-progress p { margin: 0; font-size: 13px; line-height: 19px; color: var(--text-2); }
.wd-progress.is-ready { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.wd-why { margin: 8px 0 0; font-size: 13px; line-height: 19px; color: var(--text-2); text-align: center; }
.wd-chat-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 16px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border)); background: var(--accent-soft); }
.wd-chat-cta p { margin: 0; flex: 1 1 220px; font-size: 14px; line-height: 20px; color: var(--text); }
.wd-chat-cta .btn { min-height: 44px; }
.badge-unread { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--live); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; vertical-align: middle; }

/* theme.css paints .sw-head with the hero background; the v4 panel head is plain surface so the title stays readable in light mode */
.sw-panel .sw-head { background: transparent; }
