/* ===========================================================================
   richard-stage.css — the Richard two-column stage
   ---------------------------------------------------------------------------
   Loaded by BOTH index.html (the live funnel) and widget-test.html (the
   no-scan harness), AFTER each page's own <style> block so these rules win.

   It lives in its own file for one reason: widget-test.html exists to prove
   the live page works. If the two carried separate copies of this CSS they
   would drift, and a green test would stop meaning anything.

   The --el-* custom properties are the ElevenLabs widget's own theme tokens.
   Rules set here on the host element beat the shadow tree's :host
   declarations, which is why this works at all. The dashboard's bg_color
   field is NOT wired to them in this widget version — do not try it again.
   =========================================================================== */

/* ---------- THE STAGE: widget left, card or placeholder right ---------- */
.stage{display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:stretch;max-width:1180px}
.stage-right{display:flex;flex-direction:column}

.convo{display:flex;min-height:560px;max-width:none}
.convo elevenlabs-convai{
  position:relative !important;
  inset:auto !important;
  top:auto !important; right:auto !important; bottom:auto !important; left:auto !important;
  width:100% !important;
  height:560px !important;
  display:block !important;
  border:1px solid rgba(127,163,232,.38);
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 30px 80px -40px rgba(31,63,134,.75);

  /* The widget's own theme tokens, mapped to this page. Rules in the outer
     page beat the shadow tree's :host declarations, so these take effect —
     and unlike its internal class names, these survive upstream refactors.
     The dashboard's bg_color field is not wired to these in this version. */
  --el-base:#11151c;
  --el-base-primary:#e8eef8;
  --el-base-subtle:#8893a7;
  --el-base-hover:#161c27;
  --el-base-active:#1b2230;
  --el-base-border:#1b2230;
  --el-accent:#1f3f86;
  --el-accent-primary:#ffffff;
  --el-accent-hover:#2a4fa0;
  --el-accent-active:#5a82d2;
  --el-accent-border:#7fa3e8;
  --el-accent-subtle:#7fa3e8;
  --el-sheet-radius:18px;
  --el-overlay-padding:0px;
}

/* ---------- CALCULATING PLACEHOLDER ---------- */
.calc{order:-1;background:var(--grad);border-radius:18px;min-height:560px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;
  box-shadow:0 30px 80px -40px rgba(31,63,134,.75)}
.cardwrap.on ~ .calc{display:none}
.spinner{width:58px;height:58px;border-radius:50%;
  border:3px solid rgba(255,255,255,.22);border-top-color:#fff;animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.calc p{font-family:'Sora',sans-serif;font-weight:400;font-size:1.02rem;color:rgba(255,255,255,.92)}
.calc small{font-size:.85rem;color:rgba(255,255,255,.62);font-weight:300;
  max-width:280px;text-align:center;line-height:1.6}


@media(max-width:820px){
  .stage{grid-template-columns:1fr;gap:20px}
  .convo,.calc{min-height:470px}
  .convo elevenlabs-convai{height:470px !important}
}
.cardwrap{display:none}
.cardwrap.on{display:flex;flex-direction:column;flex:1}
.reccard{background:var(--panel);border:1px solid rgba(127,163,232,.38);border-radius:18px;overflow:hidden;box-shadow:0 30px 80px -40px rgba(31,63,134,.75);display:flex;flex-direction:column;flex:1}
.reccard .body{padding:28px 32px 32px;display:flex;flex-direction:column;flex:1}
.reccard .btn{width:100%;justify-content:center;margin-top:auto}
