/* BHOS Demo CRM — light theme (Round 2). Warm paper, ink navy, amber accent.
 * Brand presets override --brand / --accent / --secondary (and the on-colors)
 * from brands.js via app.js; the default below IS the Summit preset. */
:root{
  --paper:#FAF7F2; --paper2:#F3EEE4;
  --card:#FFFFFF; --line:#E3DBC9; --line-soft:#EDE7D9;
  --ink:#132433; --ink2:#3D4F61; --muted:#67788A; --faint:#9AA7B2;
  --brand:#132433; --on-brand:#FFFFFF;
  --accent:#E8A33D; --on-accent:#132433;
  --secondary:#5B7B93;
  --good:#2F9E68; --rose:#C9504C; --amber-d:#B97A0F; --blue:#3E6FB4; --cyan:#2E8C9E;
  --tint-new:#EDF3F9; --tint-contacted:#FBF2DC; --tint-booked:#EAF4EE;
  --tint-won:#E7F6EC; --tint-lost:#F9ECEB;
  --radius:14px;
  --shadow:0 18px 44px rgba(19,36,51,.10);
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;color:var(--ink);font-family:Manrope,system-ui,sans-serif;-webkit-font-smoothing:antialiased;
  display:flex;flex-direction:column;height:100dvh;overflow:hidden;
  background:
    radial-gradient(1100px 620px at 88% -10%, color-mix(in srgb, var(--accent) 16%, transparent) 0%, transparent 60%),
    radial-gradient(900px 600px at -10% 30%, color-mix(in srgb, var(--secondary) 10%, transparent) 0%, transparent 55%),
    var(--paper)}
h1,h2{font-family:Fraunces,Georgia,serif;letter-spacing:.01em}
a{color:var(--secondary)}
.topbar{display:flex;justify-content:space-between;align-items:center;gap:16px;flex:none;
  padding:12px 28px;border-bottom:1px solid var(--line);
  background:color-mix(in srgb, var(--paper) 88%, transparent);backdrop-filter:blur(8px);z-index:5}
.restart-btn{background:none;border:0;font:inherit;font-size:13.5px;font-weight:700;color:var(--muted);
  cursor:pointer;padding:8px 6px;border-radius:8px}
.restart-btn:hover{color:var(--brand);background:color-mix(in srgb, var(--brand) 7%, transparent)}
.brand{display:flex;align-items:center;gap:11px;font-weight:800;font-size:19px;color:var(--brand)}
.brand .mark-tile{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;
  border-radius:10px;background:var(--brand);color:var(--on-brand);font-family:Fraunces,serif;font-size:19px;font-weight:700}
.brand .brand-logo{height:34px;width:auto;border-radius:8px}
.brand .thin{font-weight:500;color:var(--muted)}
.top-actions{display:flex;align-items:center;gap:10px;font-size:14px;color:var(--muted)}
.call-link{font-weight:700;text-decoration:none;border:1px solid var(--line);color:var(--brand);
  padding:8px 14px;border-radius:999px;background:var(--card)}
.live-dot{width:8px;height:8px;border-radius:50%;background:var(--good);
  box-shadow:0 0 0 0 rgba(47,158,104,.45);animation:pulse 2s infinite;display:inline-block}
@keyframes pulse{70%{box-shadow:0 0 0 7px rgba(47,158,104,0)}100%{box-shadow:0 0 0 0 rgba(47,158,104,0)}}
.hero{display:grid;grid-template-columns:1.15fr .85fr;gap:34px;align-items:start}
.eyebrow{text-transform:uppercase;letter-spacing:.14em;font-size:12px;color:var(--amber-d);font-weight:700}
.hero h1{font-size:clamp(38px,5vw,58px);line-height:1.04;margin:10px 0 14px;color:var(--brand)}
.hero h1 em{color:var(--accent);font-style:normal}
.sub{color:var(--ink2);font-size:17px;line-height:1.55;max-width:52ch}
.ticks{list-style:none;padding:0;margin:20px 0;display:grid;gap:8px;color:var(--ink);font-weight:600}
.ticks li::before{content:"✓";color:var(--good);margin-right:9px}
.stat-row{display:flex;gap:34px;margin-top:24px;border-top:1px solid var(--line);padding-top:18px}
.stat-row strong{display:block;font-family:Fraunces,serif;font-size:24px;color:var(--brand)}
.stat-row span{color:var(--faint);font-size:13px}
/* ---------- three ways in (Round 9) ----------
 * The path picker spans the hero's full width under the copy/form row
 * on desktop (the form stays pinned top-right), and stacks as
 * full-width rows between the copy and the form once the hero goes
 * single-column, so phone visitors meet all three paths first. */
.paths{grid-column:1/-1}
@media (min-width:961px){
  .hero .form-card{grid-column:2;grid-row:1}
}
.paths-lead{margin:0 0 14px;font-size:15.5px;line-height:1.55;color:var(--ink2);max-width:78ch;font-weight:600}
.path-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
@media (max-width:960px){ .path-grid{grid-template-columns:1fr} }
.path-card{display:flex;gap:13px;align-items:flex-start;text-align:left;width:100%;
  background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  padding:16px 18px;cursor:pointer;text-decoration:none;color:var(--ink);font:inherit;
  transition:border-color .15s ease,box-shadow .15s ease}
.path-card:hover,.path-card:focus-visible{border-color:var(--accent);box-shadow:0 10px 26px rgba(19,36,51,.09)}
.path-card:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.path-tile{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;flex:none;
  background:var(--accent);color:var(--on-accent)}
.path-text{min-width:0}
.path-title{display:block;font-family:Fraunces,serif;font-size:18.5px;font-weight:700;color:var(--brand)}
.path-cap{display:block;color:var(--muted);font-size:13.5px;line-height:1.45;margin-top:3px;font-weight:500}
.path-cap strong{color:var(--ink);font-weight:800;font-variant-numeric:tabular-nums}
.form-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  padding:26px 24px;box-shadow:var(--shadow)}
.form-card h2{margin:0 0 4px;font-size:26px;color:var(--brand)}
.form-sub{color:var(--muted);margin:0 0 16px;font-size:14px}
form{display:grid;gap:13px}
label{display:grid;gap:6px;font-size:13.5px;font-weight:600;color:var(--ink2)}
input,select{background:#FFFDF9;border:1px solid var(--line);color:var(--ink);
  border-radius:10px;padding:12px 13px;font:inherit;font-size:15px;width:100%}
input:focus,select:focus{outline:2px solid var(--accent);outline-offset:1px}
.hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.consent{display:flex;gap:10px;align-items:flex-start;font-weight:500;font-size:12.5px;line-height:1.45;color:var(--muted)}
.consent input{width:auto;margin-top:2px}
button[type=submit]{background:var(--accent);color:var(--on-accent);border:0;border-radius:999px;
  padding:14px 18px;font:inherit;font-weight:800;font-size:16px;cursor:pointer}
button[type=submit]:disabled{opacity:.55;cursor:wait}
.form-msg{min-height:20px;margin:2px 0 0;font-size:14px;color:var(--good)}
.form-msg.err{color:var(--rose)}
.board-meta{color:var(--faint);font-size:13.5px;white-space:nowrap;display:flex;align-items:center;gap:8px}
.board{display:grid;grid-template-columns:repeat(5,1fr);gap:13px;align-items:start}
.col{border:1px solid var(--line-soft);border-radius:var(--radius);padding:12px;min-height:180px;background:var(--paper2)}
.col[data-k="new"]{background:var(--tint-new)} .col[data-k="contacted"]{background:var(--tint-contacted)}
.col[data-k="booked"]{background:var(--tint-booked)} .col[data-k="won"]{background:var(--tint-won)}
.col[data-k="lost"]{background:var(--tint-lost)}
.col h3{margin:2px 2px 12px;font-size:13px;text-transform:uppercase;letter-spacing:.12em;color:var(--ink2);
  display:flex;justify-content:space-between;align-items:center}
.col h3 .count{background:var(--card);border:1px solid var(--line);border-radius:999px;padding:1px 9px;font-size:12px;color:var(--ink2)}
.col[data-k="new"] h3{color:var(--blue)} .col[data-k="contacted"] h3{color:var(--amber-d)}
.col[data-k="booked"] h3{color:var(--cyan)} .col[data-k="won"] h3{color:var(--good)}
.col[data-k="lost"] h3{color:var(--rose)}
.card{background:var(--card);border:1px solid var(--line-soft);border-radius:10px;padding:11px 12px;margin-bottom:10px;
  box-shadow:0 2px 8px rgba(19,36,51,.05)}
.card .nm{font-weight:700;font-size:14.5px}
.card .sv{color:var(--muted);font-size:13px;margin-top:2px}
.card .ph{color:var(--faint);font-size:12px;margin-top:5px;font-variant-numeric:tabular-nums}
.card.mine{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent),0 10px 24px rgba(19,36,51,.12)}
.card.mine .nm::after{content:"· you";color:var(--amber-d);font-weight:800;margin-left:6px;font-size:12px}
.empty{color:var(--faint);font-size:13px;padding:8px 4px}
/* ---------- staged journey (Round 5) ---------- */
.journeybar{display:flex;justify-content:space-between;align-items:center;gap:14px 22px;flex:none;flex-wrap:wrap;
  padding:9px 28px;border-bottom:1px solid var(--line-soft);
  background:color-mix(in srgb, var(--paper) 92%, transparent)}
body[data-stage="0"] .journeybar{display:none}
.stage-viewport{flex:1;min-height:0;overflow:hidden}
.stage-track{display:flex;height:100%;transition:transform .85s cubic-bezier(.22,.9,.28,1)}
.stage{flex:0 0 100%;width:100%;height:100%;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable}
.stage-inner{max-width:1240px;margin:0 auto;padding:30px 28px 96px;
  opacity:.3;transform:translateY(16px);transition:opacity .6s ease .18s,transform .6s ease .18s}
.stage.is-active .stage-inner{opacity:1;transform:none}
.stage-landing .stage-inner{padding-top:38px}
.stage-head{margin-bottom:22px}
.stage-head h2{font-size:clamp(30px,3.4vw,40px);margin:6px 0 8px;color:var(--brand);line-height:1.1}
.stage-sub{color:var(--muted);margin:0;max-width:64ch;line-height:1.55;font-size:15.5px}
.stage-hint{margin:34px 0 0;text-align:center;color:var(--faint);font-size:13.5px;font-weight:600}
.stage-landing footer{max-width:none;margin:34px 0 0;padding:18px 0 2px}
/* presenter stage nav */
.stage-nav{position:fixed;left:50%;bottom:18px;transform:translateX(-50%);z-index:55;
  display:flex;align-items:center;gap:8px;padding:7px 10px;border-radius:999px;
  background:color-mix(in srgb, var(--card) 92%, transparent);backdrop-filter:blur(10px);
  border:1px solid var(--line);box-shadow:0 14px 34px rgba(19,36,51,.16)}
.stage-arrow{width:34px;height:34px;border-radius:50%;border:1px solid var(--line);background:var(--card);
  font-size:20px;line-height:1;color:var(--ink2);cursor:pointer;flex:none}
.stage-arrow:hover:not(:disabled){border-color:var(--accent);color:var(--brand)}
.stage-arrow:disabled{opacity:.35;cursor:default}
.stage-dots{display:flex;gap:4px}
.stage-dot{position:relative;overflow:hidden;display:flex;align-items:center;gap:8px;border:0;cursor:pointer;
  background:transparent;color:var(--muted);font:inherit;font-size:13.5px;font-weight:700;
  padding:8px 13px;border-radius:999px}
.stage-dot .dn{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;
  border:1.5px solid var(--line);font-size:11.5px;font-weight:800;color:var(--faint);background:var(--card)}
.stage-dot:hover{background:color-mix(in srgb, var(--brand) 7%, transparent)}
.stage-dot.active{background:var(--brand);color:var(--on-brand)}
.stage-dot.active .dn{border-color:transparent;background:var(--accent);color:var(--on-accent)}
/* Contact stage: view toggle + the big record */
.seg{display:inline-flex;gap:3px;padding:3px;border:1px solid var(--line);border-radius:999px;background:var(--paper2);margin-bottom:20px}
.seg-btn{border:0;background:transparent;font:inherit;font-size:14px;font-weight:700;color:var(--muted);
  padding:8px 18px;border-radius:999px;cursor:pointer}
.seg-btn.active{background:var(--brand);color:var(--on-brand)}
.seg-btn:disabled{opacity:.45;cursor:default}
.stage[data-stage="3"] #contactCard{max-width:700px;background:var(--card);border:1px solid var(--line);
  border-radius:18px;padding:28px 30px;box-shadow:var(--shadow)}
.stage[data-stage="3"] .cc-name{font-family:Fraunces,serif;font-size:29px}
.stage[data-stage="3"] .cc-head{margin-bottom:14px}
.stage[data-stage="3"] .cc-row{font-size:16px;padding:11px 0}
.stage[data-stage="3"] .cc-appt{margin-top:18px;padding:16px 18px}
.stage[data-stage="3"] .cc-appt .v{font-size:22px}
.stage[data-stage="3"] .back-link{padding-bottom:14px}
/* Calendar stage breathes at full width */
.stage[data-stage="2"] .mday{min-height:96px}
.steps{list-style:none;display:flex;flex-wrap:wrap;gap:6px 18px;margin:0;padding:0}
.steps li{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:var(--faint)}
.steps li .n{display:inline-flex;align-items:center;justify-content:center;width:21px;height:21px;border-radius:50%;
  border:1.5px solid var(--line);background:var(--card);font-size:12px;font-weight:800;color:var(--faint)}
.steps li.done{color:var(--ink2)}
.steps li.done .n{background:var(--brand);border-color:var(--brand);color:var(--on-brand)}
.steps li.active{color:var(--brand)}
.steps li.active .n{border-color:var(--accent);color:var(--amber-d);box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent)}
/* column flash when the visitor's card lands in a new stage */
.col.flash{animation:colflash 1.8s ease-out}
@keyframes colflash{0%{box-shadow:0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent)}
  18%{box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 75%, transparent)}
  100%{box-shadow:0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent)}}
.card.mine.pulse{animation:cardpulse 1.8s ease-out}
@keyframes cardpulse{0%{transform:scale(1)}25%{transform:scale(1.045)}100%{transform:scale(1)}}
/* ---------- contacts ---------- */
.tbl-scroll{overflow-x:auto}
.ctable{width:100%;border-collapse:collapse;font-size:14.5px;min-width:560px}
.ctable th{text-align:left;font-size:11.5px;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);
  padding:6px 10px;border-bottom:1px solid var(--line)}
.ctable td{padding:11px 10px;border-bottom:1px solid var(--line-soft);vertical-align:middle}
.ctable tbody tr{cursor:pointer}
.ctable tbody tr:hover{background:var(--paper)}
.ctable tbody tr.mine{background:color-mix(in srgb, var(--accent) 9%, var(--card))}
.ctable .cname{font-weight:700}
.ctable .cname .you{color:var(--amber-d);font-weight:800;font-size:12px;margin-left:6px}
.ctable .cphone{color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.ctable .cdate{color:var(--muted);white-space:nowrap}
.tab-note{color:var(--faint);font-size:13px;margin:10px 2px 0}
.back-link{background:none;border:0;font:inherit;font-weight:800;font-size:14.5px;color:var(--secondary);cursor:pointer;padding:2px 0 12px}
/* ---------- calendar tab ---------- */
.cal-layout{display:grid;grid-template-columns:1.25fr .85fr;gap:20px;align-items:start}
.month-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.month-head h3{margin:0;font-family:Fraunces,serif;font-size:20px;color:var(--brand)}
.month-nav{width:32px;height:32px;border-radius:50%;border:1px solid var(--line);background:var(--card);
  font-size:19px;line-height:1;color:var(--ink2);cursor:pointer}
.month-nav:hover{border-color:var(--accent);color:var(--brand)}
.month-grid .dow,.month-grid .wk{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}
.month-grid .dow{margin-bottom:4px}
.month-grid .dow span{text-align:center;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:var(--faint);padding:3px 0}
.mday{min-height:74px;border:1px solid var(--line-soft);border-radius:9px;padding:5px 6px;background:var(--card);margin-bottom:4px}
.mday.dim{background:transparent;border-color:transparent}
.mday.today{border-color:var(--secondary)}
.mday .dnum{font-size:12.5px;font-weight:800;color:var(--ink2)}
.mday.today .dnum{color:var(--secondary)}
.mday.has{cursor:pointer}
.mday.has:hover{border-color:var(--accent)}
.mday.selected{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.chip{display:block;margin-top:4px;padding:2.5px 6px;border-radius:6px;font-size:11px;font-weight:700;line-height:1.3;
  background:color-mix(in srgb, var(--secondary) 14%, var(--card));color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chip.mine{background:color-mix(in srgb, var(--accent) 32%, var(--card));box-shadow:inset 0 0 0 1px var(--accent)}
.chip.more{background:transparent;color:var(--muted);font-weight:600}
.agenda .cal-day h4{display:flex;justify-content:space-between;align-items:center}
.agenda .clear-filter{background:none;border:0;font:inherit;font-size:11.5px;font-weight:800;color:var(--secondary);
  cursor:pointer;text-transform:none;letter-spacing:0}
.cc-empty{color:var(--muted);line-height:1.55;margin:0;font-size:14.5px}
.cc-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}
.cc-name{font-weight:800;font-size:17px}
.badge{font-size:11.5px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;
  padding:3px 10px;border-radius:999px;border:1px solid var(--line);color:var(--ink2);background:var(--paper)}
.badge.st-new{background:var(--tint-new);color:var(--blue)}
.badge.st-contacted{background:var(--tint-contacted);color:var(--amber-d)}
.badge.st-booked{background:var(--tint-booked);color:var(--cyan)}
.badge.st-won{background:var(--tint-won);color:var(--good)}
.badge.st-lost{background:var(--tint-lost);color:var(--rose)}
.cc-row{display:flex;justify-content:space-between;gap:14px;padding:7px 0;border-top:1px solid var(--line-soft);font-size:14.5px}
.cc-row span{color:var(--muted)}
.cc-row b{font-weight:700;text-align:right}
.cc-row .waiting{color:var(--faint);font-weight:500}
.cc-appt{margin-top:12px;border:1px solid color-mix(in srgb, var(--accent) 55%, var(--line));
  background:color-mix(in srgb, var(--accent) 12%, var(--card));border-radius:10px;padding:12px 14px}
.cc-appt .k{font-size:11.5px;font-weight:800;text-transform:uppercase;letter-spacing:.1em;color:var(--amber-d)}
.cc-appt .v{font-family:Fraunces,serif;font-size:18px;margin-top:3px;color:var(--brand)}
.cal-day{margin-bottom:14px}
.cal-day:last-child{margin-bottom:0}
.cal-day h4{margin:0 0 8px;font-size:12px;text-transform:uppercase;letter-spacing:.12em;color:var(--muted);font-family:Manrope,sans-serif}
.cal-entry{display:flex;gap:12px;align-items:baseline;padding:8px 10px;border-radius:10px;border:1px solid transparent}
.cal-entry + .cal-entry{margin-top:4px}
.cal-entry .tm{font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap;min-width:74px;color:var(--brand)}
.cal-entry .who{min-width:0}
.cal-entry .who .n{font-weight:700;font-size:14.5px}
.cal-entry .who .t{color:var(--muted);font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cal-entry.mine{border-color:var(--accent);background:color-mix(in srgb, var(--accent) 10%, var(--card))}
.cal-entry.mine .n::after{content:"· you";color:var(--amber-d);font-weight:800;margin-left:6px;font-size:12px}
.how{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:46px 0 30px}
.how>div{border:1px solid var(--line);border-radius:var(--radius);padding:18px;background:var(--card)}
.how h3{margin:0 0 6px;font-family:Fraunces,serif;font-size:19px;color:var(--brand)}
.how p{margin:0;color:var(--muted);line-height:1.5;font-size:14.5px}
footer{border-top:1px solid var(--line);padding:18px 28px 26px;color:var(--faint);font-size:13px;
  display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;max-width:1180px;margin:0 auto}
@media (max-width:960px){
  .hero{grid-template-columns:1fr}
  .board{grid-template-columns:repeat(2,1fr)}
  .how{grid-template-columns:1fr}
  .live-label{display:none}
  .cal-layout{grid-template-columns:1fr}
}
@media (max-width:900px){
  .mday{min-height:58px}
  .stage[data-stage="2"] .mday{min-height:64px}
  .stage-inner{padding:22px 16px 96px}
  .journeybar{padding:8px 16px}
  .topbar{padding:10px 16px}
}
@media (max-width:700px){
  /* the orb launcher owns the bottom-right corner; the stage nav rides above it */
  .stage-nav{bottom:92px}
  .stage-inner{padding-bottom:168px}
  /* header Text/Call pills wrap together onto their own row, side by side */
  .topbar{flex-wrap:wrap}
  .top-actions{flex-wrap:wrap;justify-content:flex-end}
}
@media (max-width:560px){
  .stage-dot .dl{display:none}
  .stage-dot{padding:8px 10px}
  .restart-btn{display:none}
  .stage[data-stage="3"] #contactCard{padding:20px 18px}
}
@media (max-width:560px){ .board{grid-template-columns:1fr} .stat-row{gap:20px} .chip{font-size:10px} }
/* ---------- journey animations (Round 4, anim-*) ----------
 * Card glides are driven inline by app.js (FLIP: transform + transition);
 * the classes below are one-shot accents — glow ring, enter slide, column
 * header flash, calendar pop, day flash, tab sweep, step fill. Nothing
 * loops; everything settles within ~2s. Reduced motion collapses it all
 * to an instant state change + the static .anim-static highlight. */
.card.anim-glow{animation:animGlow 2s ease-out}
@keyframes animGlow{
  0%{box-shadow:0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent),0 2px 8px rgba(19,36,51,.05)}
  70%{box-shadow:0 0 0 12px color-mix(in srgb, var(--accent) 0%, transparent),0 2px 8px rgba(19,36,51,.05)}
  100%{box-shadow:0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent),0 2px 8px rgba(19,36,51,.05)}}
.card.anim-enter{animation:animEnter .6s cubic-bezier(.22,.9,.28,1) both}
@keyframes animEnter{from{opacity:0;transform:translateY(-12px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
.card.anim-static{box-shadow:0 0 0 2px var(--accent),0 2px 8px rgba(19,36,51,.05)}
.col.anim-colflash{animation:animColRing 1.8s ease-out}
@keyframes animColRing{0%{box-shadow:0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent)}
  18%{box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 75%, transparent)}
  100%{box-shadow:0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent)}}
.col.anim-colflash h3{animation:animHeadFlash 1.8s ease-out;border-radius:6px}
@keyframes animHeadFlash{0%,55%{background:color-mix(in srgb, var(--accent) 30%, transparent)}100%{background:transparent}}
.cal-entry.anim-pop,.chip.anim-pop{animation:animPop 1.6s ease-out;transform-origin:left center}
@keyframes animPop{0%{transform:scale(.96);box-shadow:0 0 0 0 color-mix(in srgb, var(--accent) 65%, transparent)}
  35%{transform:scale(1)}
  100%{transform:scale(1);box-shadow:0 0 0 12px color-mix(in srgb, var(--accent) 0%, transparent)}}
.mday.anim-dayflash{animation:animDayFlash 1.6s ease-out}
@keyframes animDayFlash{0%{background:color-mix(in srgb, var(--accent) 22%, var(--card))}
  100%{background:var(--card)}}
.stage-dot.anim-sweep::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(105deg, transparent 25%, color-mix(in srgb, var(--accent) 55%, transparent) 50%, transparent 75%);
  transform:translateX(-130%);animation:animSweepMove 1.05s ease-out forwards}
@keyframes animSweepMove{to{transform:translateX(130%)}}
.steps li.anim-stepfill .n{animation:animStepFill .8s cubic-bezier(.22,.9,.28,1)}
@keyframes animStepFill{0%{transform:scale(.55);box-shadow:0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent)}
  55%{transform:scale(1.28)}
  100%{transform:scale(1);box-shadow:0 0 0 9px color-mix(in srgb, var(--accent) 0%, transparent)}}
@media (prefers-reduced-motion: reduce){
  .card.anim-glow,.card.anim-enter,.cal-entry.anim-pop,.chip.anim-pop,.mday.anim-dayflash,
  .col.anim-colflash,.col.anim-colflash h3,.steps li.anim-stepfill .n{animation:none!important}
  .stage-dot.anim-sweep::after{animation:none!important;display:none}
  .stage-track{transition:none}
  .stage-inner{transition:none}
}

/* ---------- Voice orb (Round 4) ---------- */
.orb-launcher{
  position:fixed; right:22px; bottom:22px; z-index:60;
  display:flex; align-items:center; gap:10px;
  padding:10px 18px 10px 10px; border-radius:999px;
  background:var(--brand); color:var(--on-brand);
  border:1px solid rgba(19,36,51,.25);
  box-shadow:0 12px 32px rgba(19,36,51,.35);
  font:600 15px Manrope,system-ui,sans-serif; cursor:pointer;
}
.orb-launcher:hover{ filter:brightness(1.07); }
.orb-puck{
  position:relative; display:grid; place-items:center;
  width:40px; height:40px; border-radius:50%;
  background:var(--accent); color:var(--on-accent); flex:none;
}
.orb-puck::after{
  content:""; position:absolute; inset:-6px; border-radius:50%;
  border:2px solid var(--accent); opacity:.55;
  animation:orbPulse 2.2s ease-out infinite;
}
@keyframes orbPulse{
  0%{ transform:scale(.8); opacity:.6 }
  70%{ transform:scale(1.15); opacity:0 }
  100%{ transform:scale(1.15); opacity:0 }
}
.orb-panel{
  position:fixed; right:22px; bottom:88px; z-index:61;
  width:min(360px, calc(100vw - 32px));
  background:#fff; border:1px solid rgba(19,36,51,.12); border-radius:18px;
  box-shadow:0 24px 60px rgba(19,36,51,.28);
  padding:16px 18px 14px; font-family:Manrope,system-ui,sans-serif; color:#132433;
}
.orb-panel[hidden]{ display:none; }
.orb-head{ display:flex; align-items:flex-start; gap:10px; }
.orb-head-text{ flex:1; min-width:0; }
.orb-title{ font-weight:800; font-size:15px; line-height:1.25; }
.voice-status{ font-size:12.5px; color:#5B7B93; margin-top:2px; }
.voice-status-dot{
  width:10px; height:10px; border-radius:50%; background:#B9C4CC; flex:none; margin-top:5px;
}
.voice-status-dot.is-live{ background:#2E9E5B; }
.voice-status-dot.is-speaking{ background:var(--accent); }
.voice-status-dot.is-error{ background:#C0392B; }
.orb-close{
  background:none; border:none; font-size:22px; line-height:1; cursor:pointer;
  color:#5B7B93; padding:0 2px;
}
.orb-captions{
  margin:12px 0 4px; min-height:64px; max-height:150px; overflow-y:auto;
  border-top:1px solid rgba(19,36,51,.08); padding-top:10px;
}
.orb-cap{ margin:0 0 6px; font-size:14px; line-height:1.45; }
.orb-cap-user{ color:#5B7B93; }
.orb-cap:empty{ display:none; }
.orb-error{
  margin:8px 0 0; font-size:13px; color:#C0392B;
  background:rgba(192,57,43,.07); border-radius:8px; padding:8px 10px;
}
.orb-actions{ display:flex; gap:8px; margin-top:12px; }
.orb-btn{
  border-radius:999px; padding:9px 16px; font:600 13.5px Manrope,system-ui,sans-serif;
  cursor:pointer; border:1px solid rgba(19,36,51,.18); background:#fff; color:#132433;
}
.orb-btn:disabled{ opacity:.45; cursor:default; }
.orb-btn-end{ background:var(--brand); color:var(--on-brand); border-color:transparent; }
.orb-btn-retry{ background:var(--accent); color:var(--on-accent); border-color:transparent; }
.orb-note{ margin:10px 0 0; font-size:11.5px; line-height:1.45; color:#8AA0B0; }
@media (max-width:560px){
  .orb-launcher{ right:16px; bottom:16px; }
  .orb-panel{ right:16px; left:16px; width:auto; bottom:84px; }
}
@media (prefers-reduced-motion: reduce){
  .orb-puck::after{ animation:none; display:none }
}
.orb-min{
  background:none; border:none; cursor:pointer; color:#5B7B93;
  padding:2px; display:grid; place-items:center; flex:none;
}
.orb-min:hover{ color:#132433; }

/* ---------- Compact voice bar (Round 7) ----------
 * While a call is connected the panel collapses into this slim bar so
 * the CRM stages stay visible — on phones the full panel covered the
 * show (Anton's mobile test). The bar carries only the live line:
 * status/level dot, one-line caption, Mute + End. */
.orb-bar{
  position:fixed; left:12px; right:12px;
  bottom:calc(12px + env(safe-area-inset-bottom, 0px));
  height:60px; z-index:62;
  display:flex; align-items:center; gap:10px;
  padding:0 8px 0 14px; border-radius:999px;
  background:rgba(19,36,51,.93); color:#fff;
  box-shadow:0 16px 40px rgba(19,36,51,.4);
  backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
  font-family:Manrope,system-ui,sans-serif;
}
.orb-bar[hidden]{ display:none; }
/* The bar replaces the launcher for the duration of a call. */
body.voice-bar-on .orb-launcher{ display:none; }
.orb-bar-dot{ width:10px; height:10px; border-radius:50%; background:#B9C4CC; flex:none; }
.orb-bar-dot.is-live{ background:#2E9E5B; }
.orb-bar-dot.is-speaking{
  background:var(--accent);
  animation:orbBarPulse 1s ease-in-out infinite;
}
.orb-bar-dot.is-error{ background:#E0655A; }
@keyframes orbBarPulse{
  0%,100%{ box-shadow:0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent) }
  50%{ box-shadow:0 0 0 6px color-mix(in srgb, var(--accent) 0%, transparent) }
}
.orb-bar-main{
  flex:1; min-width:0; display:flex; align-items:center; gap:6px;
  background:none; border:0; color:inherit; font:inherit; cursor:pointer;
  padding:6px 2px; text-align:left;
}
.orb-bar-cap{
  flex:1; min-width:0; white-space:nowrap; overflow:hidden;
  text-overflow:ellipsis; font-size:13.5px; font-weight:600;
}
.orb-bar-cap.from-user{ color:#A9C6D8; font-weight:500; }
.orb-bar-chev{ flex:none; opacity:.65; }
.orb-bar-btn{
  width:40px; height:40px; border-radius:50%; flex:none;
  display:grid; place-items:center; cursor:pointer;
  background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.28); color:#fff;
}
.orb-bar-btn:active{ transform:scale(.96); }
.orb-bar-btn .mic-off-icon{ display:none; }
.orb-bar-btn.is-muted{ background:var(--accent); color:var(--on-accent); border-color:transparent; }
.orb-bar-btn.is-muted .mic-icon{ display:none; }
.orb-bar-btn.is-muted .mic-off-icon{ display:block; }
.orb-bar-btn-end{ background:#C0392B; border-color:transparent; }
/* Desktop: the minimized bar docks where the launcher sits. */
@media (min-width:701px){
  .orb-bar{ left:auto; right:22px; width:min(380px, calc(100vw - 44px)); bottom:22px; }
}
/* Mobile coexistence: with the bar up, the stage-nav pill rides
 * directly above it instead of at the launcher-clearance height. */
@media (max-width:700px){
  body.voice-bar-on .stage-nav{ bottom:calc(84px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce){
  .orb-bar-dot.is-speaking{ animation:none }
}
