/* ============================================================================
   Sonidly AI — "Business dashboard" skin, opt-in via the `biz` body class.
   Now skins: guide + company cabinets, /account, /admin, /help, /onboarding,
   AND the live tour screens (guide.html broadcast + listener.html tourist).
   Pages WITHOUT the `biz` class are untouched. Loaded AFTER brand.css + app.css.
   Brief (founder 2026-10-01): lighter + crisper blue-neutral dashboard.
   - clean grotesque UI (Inter) + Fraunces serif only on the page headline
   - 8px buttons (solid #1D79E9 → hover #135FBC; secondary = white + #D5D8DF)
   - inputs #F7F8FA / #E6E8EC / 8px / blue focus
   - white cards, #E6E8EC border, soft thin shadow; tidy list w/ #E6E8EC dividers
   - accent blue ONLY on actions / active nav / key numbers; no gradient flood
   Everything is a visual OVERRIDE — no markup/JS/wiring changed.
   ============================================================================ */

/* ---- typography: clean grotesque + serif headline accent ---------------- */
body.sx.biz{
  font-family:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
  --mono:'Inter',system-ui,sans-serif;        /* kill monospace (standing rule) */
  letter-spacing:0;
}
.sx.biz h1,.sx.biz h2,.sx.biz h3{letter-spacing:-.011em;font-weight:600}
/* the big greeting = the "nice text" style from the landing (Fraunces serif) */
.sx.biz .topbar .tt h1{
  font-family:'Fraunces',Georgia,serif;font-weight:600;letter-spacing:-.005em;
}
.sx.biz .rec-time,.sx.biz .ctxsel .bal,.sx.biz .ctxmenu .bal{
  font-variant-numeric:tabular-nums;
}

/* ---- more lightness: drop the ambient glow & gradient decoration -------- */
.sx.biz .aura{display:none}
.sx.biz .panel.glow::before{display:none}           /* no gradient border */
.sx.biz .hero,.sx.biz .panel.hero{background:#fff}   /* plain white card */
/* balance = a key number, but solid dark (not gradient) for a calm, light read */
.sx.biz .hero .bal.gradtext{
  background:none;-webkit-background-clip:border-box;background-clip:border-box;
  -webkit-text-fill-color:var(--ink);color:var(--ink);
}

/* ---- sidebar: solid white, crisp divider (was translucent + blur) ------- */
.sx.biz .sidebar{background:#fff;backdrop-filter:none;-webkit-backdrop-filter:none}

/* ---- cards: white, thin #E6E8EC border, soft shadow, no hover-lift ------ */
.sx.biz .panel{
  border-color:#E6E8EC;border-radius:12px;
  box-shadow:0 1px 2px rgba(16,24,40,.05);
}
.sx.biz .panel.lift:hover{
  transform:none;box-shadow:0 1px 2px rgba(16,24,40,.05);border-color:#E6E8EC;
}
.sx.biz .panel .phead h2{font-size:1.02rem;color:var(--ink)}

/* ---- avatar: soft tinted (was gradient fill) ---------------------------- */
.sx.biz .avatar{background:var(--p-tint);color:var(--p-strong);box-shadow:none}

/* ---- buttons: 8px, solid, calm (no pill, no heavy shadow, no bounce) ----- */
.sx.biz .btn{border-radius:8px;box-shadow:none;padding:11px 18px;font-weight:600}
.sx.biz .btn.lg{border-radius:8px;padding:14px 22px;font-size:1rem}
.sx.biz .btn.sm{border-radius:7px;padding:8px 13px}
.sx.biz .btn:hover{transform:none;box-shadow:none;filter:none}
.sx.biz .btn:active{transform:none}
/* primary (solid blue) → hover darker; neutral variants excluded */
.sx.biz .btn:not(.ghost):not(.soft):not(.secondary):not(.danger):hover{background:var(--p-strong)}
/* secondary / ghost / soft = white + #D5D8DF outline, light blue hover */
.sx.biz .btn.ghost,.sx.biz .btn.soft,.sx.biz .btn.secondary{border-color:#D5D8DF}
.sx.biz .btn.ghost:hover,.sx.biz .btn.soft:hover,.sx.biz .btn.secondary:hover{
  background:#F1F6FD;border-color:#D5D8DF;box-shadow:none;transform:none;color:var(--ink);
}
.sx.biz .btn.ghost:disabled,.sx.biz .btn.soft:disabled,
.sx.biz .btn.secondary:disabled,.sx.biz .btn:disabled{opacity:.45;background:var(--p)}
.sx.biz .btn.ghost:disabled,.sx.biz .btn.soft:disabled,.sx.biz .btn.secondary:disabled{background:var(--surface)}

/* ---- inputs: #F7F8FA / #E6E8EC / 8px / blue focus ring ------------------- */
.sx.biz input,.sx.biz select,.sx.biz textarea{
  background:#F7F8FA;border:1px solid #E6E8EC;border-radius:8px;padding:11px 13px;
}
.sx.biz input:focus,.sx.biz select:focus,.sx.biz textarea:focus{
  background:#fff;border-color:#1D79E9;box-shadow:0 0 0 3px rgba(29,121,233,.18);
}

/* ---- context pill + icon buttons: crisp #E6E8EC, 8px -------------------- */
.sx.biz .ctxsel{border-radius:8px;border-color:#E6E8EC}
.sx.biz .iconbtn{border-color:#E6E8EC}

/* ---- floating support "Help" button: clear the mobile bottom nav bar ---- */
@media (max-width:880px){
  body.sx #sn-help-btn{bottom:84px!important}
}

/* ---- list of tours → tidy "table" feel --------------------------------- */
.sx.biz .row-item{border-radius:8px}
.sx.biz .row-item+.row-item{border-top:1px solid #E6E8EC}
.sx.biz .row-item:hover{background:#F1F6FD}

/* ---- hint / soft info box: keep light ---------------------------------- */
.sx.biz .hint{background:#F7F8FA;border-color:#E6E8EC}


/* ===========================================================================
   BRAND-CSS PAGES (account / onboarding / help / change-password / admin)
   These do NOT use the .sx premium system — they're plain brand.css .wrap/.card
   pages. `:not(.sx)` keeps every rule here away from the .sx cabinets above.
   =========================================================================== */
body.biz:not(.sx){
  font-family:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
  --mono:'Inter',system-ui,sans-serif;
}
body.biz:not(.sx) h1{font-family:'Fraunces',Georgia,serif;font-weight:600;letter-spacing:-.01em}
body.biz:not(.sx) h2,body.biz:not(.sx) h3{font-weight:600}
/* drop the old fixed background layers (ambient glow + tech grid) — the "сетка" */
body.biz:not(.sx) > .glow,
body.biz:not(.sx) > .techgrid,
body.biz:not(.sx) .techgrid{display:none}

/* cards: thin #E6E8EC border, soft shadow, crisper radius */
body.biz:not(.sx) .card{
  border-color:#E6E8EC;border-radius:12px;box-shadow:0 1px 2px rgba(16,24,40,.05);
}

/* inputs: #F7F8FA / #E6E8EC / 8px / blue focus ring */
body.biz:not(.sx) input,body.biz:not(.sx) select,body.biz:not(.sx) textarea{
  border-radius:8px;border-color:#E6E8EC;background:#F7F8FA;padding:11px 13px;
}
body.biz:not(.sx) input:focus,body.biz:not(.sx) select:focus,body.biz:not(.sx) textarea:focus{
  border-color:#1D79E9;background:#fff;box-shadow:0 0 0 3px rgba(29,121,233,.18);
}

/* buttons: 8px, solid, calm (brand .btn is width:100% pill + heavy blue shadow) */
body.biz:not(.sx) .btn{
  border-radius:8px;box-shadow:none;font-size:1rem;font-weight:600;padding:13px 18px;
}
body.biz:not(.sx) .btn:hover{filter:none;background:var(--primary-strong)}
body.biz:not(.sx) .btn:active{transform:none}
body.biz:not(.sx) .btn.secondary,body.biz:not(.sx) .btn.ghost{
  background:#fff;color:var(--ink);border:1px solid #D5D8DF;box-shadow:none;
}
body.biz:not(.sx) .btn.secondary:hover,body.biz:not(.sx) .btn.ghost:hover{
  background:#F1F6FD;border-color:#D5D8DF;filter:none;color:var(--ink);
}
body.biz:not(.sx) .btn.danger{background:var(--error)}
body.biz:not(.sx) .btn.danger:hover{background:#C93A3F}
body.biz:not(.sx) .btn:disabled{opacity:.45}

/* pills / toggles stay rounded but crisp */
body.biz:not(.sx) .pill,body.biz:not(.sx) .toggle{border-color:#E6E8EC}
body.biz:not(.sx) .toggle button.active{background:var(--primary)}

/* list rows: #E6E8EC dividers */
body.biz:not(.sx) .list-item{border-color:#E6E8EC}

/* help page: FAQ accordion + section labels — clean, de-mono, matches cabinet cards */
body.biz:not(.sx) .faq-h{
  font-family:'Inter',system-ui,sans-serif;text-transform:none;letter-spacing:0;
  font-size:.82rem;font-weight:600;color:var(--ink2);margin:20px 0 8px;
}
body.biz:not(.sx) details.faq{border-color:#E6E8EC;border-radius:10px}
/* centered utility pages (account/help/change-password): a touch more breathing room */
body.biz:not(.sx) .wrap{padding-top:8px}
body.biz:not(.sx) p.sub{color:var(--ink2)}

/* ---- V4.1 billing price cards (rich / selling; Sprint V4.1 Stage 4) ---- */
.sx .pricegrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(212px,1fr));gap:14px;align-items:stretch}
.sx .pricegrid .price{position:relative;display:flex;flex-direction:column;background:#fff;border:1px solid #E6E8EC;border-radius:14px;padding:20px 18px;box-shadow:0 1px 2px rgba(16,24,40,.04)}
.sx .pricegrid .price.feat{border-color:var(--primary);box-shadow:0 10px 26px rgba(29,121,233,.13)}
.sx .pricegrid .pc-badge{position:absolute;top:-10px;left:16px;background:var(--primary);color:#fff;font-size:.66rem;font-weight:700;letter-spacing:.04em;padding:3px 10px;border-radius:999px;text-transform:uppercase}
.sx .pricegrid .p-name{font-weight:700;font-size:1.02rem;color:var(--ink)}
.sx .pricegrid .p-price{font-size:1.8rem;font-weight:700;letter-spacing:-.02em;color:var(--ink);margin:8px 0 2px}
.sx .pricegrid .p-price span{font-size:.8rem;font-weight:500;color:var(--ink3)}
.sx .pricegrid .p-unit{font-size:.84rem;color:var(--ink2);margin-bottom:14px}
.sx .pricegrid ul{list-style:none;padding:0;margin:0 0 16px;display:flex;flex-direction:column;gap:8px;flex:1}
.sx .pricegrid li{display:flex;gap:8px;align-items:flex-start;font-size:.86rem;color:var(--ink);line-height:1.35}
.sx .pricegrid li svg{width:16px;height:16px;color:#1B7F3B;flex:none;margin-top:2px}
.sx .pricegrid .price>.btn{margin-top:auto}
@media(max-width:900px){
  .sx .pricegrid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:12px;padding:6px 0 10px;scrollbar-width:thin}
  .sx .pricegrid .price{flex:0 0 76%;max-width:300px;scroll-snap-align:start}
}

/* group headers: Standard voice vs Voice clone */
.sx .pc-group{font-size:.72rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--ink3);margin:18px 0 10px}
.sx .pc-group:first-child{margin-top:4px}
.sx .pc-group.clone{color:var(--primary)}

/* Enterprise banner (company billing — 500h+ by invoice + volume calculator) */
.sx .ent-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:22px;padding:16px 20px;border:1px solid var(--primary);border-radius:14px;background:#F1F6FD}
.sx .ent-banner .eb-txt{display:flex;flex-direction:column;gap:3px;min-width:0}
.sx .ent-banner .eb-txt b{font-size:1rem;color:var(--ink)}
.sx .ent-banner .eb-txt span{font-size:.85rem;color:var(--ink2)}
.sx .ent-banner .eb-cta{display:flex;gap:10px;flex-wrap:wrap}
.sx .ent-banner .btn{width:auto;padding:9px 16px;font-size:.88rem}
@media(max-width:560px){.sx .ent-banner .eb-cta{width:100%}.sx .ent-banner .eb-cta .btn{flex:1}}

/* voice segment options (e.g. calculator modal) — keep each label on one line */
.sx .segset{flex-wrap:wrap}
.sx .segset .seg{white-space:nowrap}
