
  html, body { margin: 0; background: #f3f2ef; overflow: visible; }
  .cci-ba {
    --paper: #f3f2ef; --ink: #1d1f22; --muted: #6f747b; --line: #d9dbde;
    --body: #121315; --glass: #1a1b1e; --screen-ink: #f4f5f6; --screen-muted: #9aa0a8;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    font-family: var(--sans); color: var(--ink); background: var(--paper);
    max-width: 760px; margin: 0 auto; padding: 48px 24px 56px; box-sizing: border-box;
    display: grid; justify-items: center; text-align: center;
  }
  .cci-ba *, .cci-ba *::before, .cci-ba *::after { box-sizing: border-box; }

  .cci-ba h2 { font-weight: 500; font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -.015em; line-height: 1.15; margin: 0 0 28px; max-width: 22ch; }

  .cci-ba .switch { background:#ffffff; display:inline-flex; border:1px solid var(--line); border-radius:999px; padding:4px; margin:0; transform:none; }
  .cci-ba .switch button { font: inherit; font-size: 15px; border: 0; background: none; color: var(--muted); padding: 10px 20px; border-radius: 999px; cursor: pointer; transition: background .25s, color .25s; }
  .cci-ba .switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
  @media (hover:hover) {
    .cci-ba .switch button:not([aria-pressed="true"]):hover,
    .cci-ba .switch button:not([aria-pressed="true"]):focus-visible {
      background: var(--ink); color: var(--paper);
    }
    .cci-ba .switch button[aria-pressed="true"]:hover,
    .cci-ba .switch button[aria-pressed="true"]:focus-visible {
      background: #ffffff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink);
    }
  }
  .cci-ba .switch button:active { transform:scale(.98); }
  .cci-ba .switch button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
  .cci-ba .control-row { display:flex; align-items:center; justify-content:center; gap:18px; margin:0 0 36px; width:100%; }
  .cci-ba .info-toggle {
    width:52px; height:52px; flex:0 0 52px; border:1px solid var(--ink); border-radius:50%;
    padding:0; display:grid; place-items:center; background:var(--ink); color:#fff; cursor:pointer;
    transition:background .16s ease,color .16s ease,border-color .16s ease,transform .12s ease;
  }
  .cci-ba .info-toggle svg { width:20px; height:20px; display:block; }
  .cci-ba .info-toggle path { fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; }
  @media (hover:hover) {
    .cci-ba .info-toggle:hover,
    .cci-ba .info-toggle:focus-visible { background:#fff; color:var(--ink); }
  }
  .cci-ba .info-toggle:active { background:#fff; color:var(--ink); transform:scale(.97); }
  .cci-ba .info-toggle:focus-visible { outline:2px solid var(--ink); outline-offset:3px; }

  /* Phone */
  .cci-ba .phone { width: 290px; aspect-ratio: 290 / 600; background: var(--body); border-radius: 46px; padding: 12px; position: relative; box-shadow: 0 1px 0 #2a2c30 inset, 0 30px 60px -30px rgba(18,19,21,.45); }
  .cci-ba .screen { position: relative; height: 100%; border-radius: 35px; background: var(--glass); overflow: hidden; color: var(--screen-ink); }
  .cci-ba .island { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 88px; height: 26px; border-radius: 14px; background: #000; z-index: 3; }
  .cci-ba .status { position: absolute; top: 16px; left: 26px; font-size: 13px; font-weight: 600; z-index: 3; }

  .cci-ba .call { position: absolute; inset: 0; display: grid; grid-template-rows: 92px auto 1fr auto; justify-items: center; padding: 0 20px 44px; transition: opacity .5s ease, transform .5s ease; }
  .cci-ba .kind { grid-row: 2; font-size: 14px; color: var(--screen-muted); margin: 0 0 14px; }
  .cci-ba .who { grid-row: 3; align-self: start; display: grid; justify-items: center; gap: 10px; }

  .cci-ba .number { white-space: nowrap; font-size: 26px; font-weight: 400; letter-spacing: .01em; margin: 0; font-variant-numeric: tabular-nums; }
  .cci-ba .sub { font-size: 14px; color: var(--screen-muted); margin: 0; }

  .cci-ba .orb { width: 148px; height: 148px; border-radius: 50%; margin: 6px 0 10px;
    background: #e63e6d; display: grid; place-items: center;
    box-shadow: 0 0 0 3px rgba(255,255,255,.92), 0 14px 34px rgba(40,6,20,.35); }
  .cci-ba .withcci .kind { color: rgba(255,255,255,.82); }
  .cci-ba .orb span { color: #ffffff; font-size: 21px; font-weight: 600; letter-spacing: -.005em; }
  .cci-ba .screen::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease;
    background: linear-gradient(165deg, #d9642b 0%, #c03a31 26%, #a82b52 50%, #6a2046 74%, #221a20 100%); }
  .cci-ba[data-state="cci"] .screen::before { opacity: 1; }
  .cci-ba .name { font-size: 30px; font-weight: 500; letter-spacing: -.01em; margin: 0; }

  .cci-ba .actions { grid-row: 4; display: flex; gap: 88px; }
  .cci-ba .btn { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; }
  .cci-ba .btn.decline { background: #e5484d; }
  .cci-ba .btn.accept { background: #30a46c; }
  .cci-ba .btn svg { width: 26px; height: 26px; fill: #fff; }
  .cci-ba .btn.decline svg { transform: rotate(135deg); }

  .cci-ba .today { opacity: 1; }
  .cci-ba .withcci { opacity: 0; transform: scale(.96); pointer-events: none; }
  .cci-ba[data-state="cci"] .today { opacity: 0; transform: scale(.96); }
  .cci-ba[data-state="cci"] .withcci { opacity: 1; transform: scale(1); }
  .cci-ba .withcci .orb { transform: scale(.6); transition: transform .7s cubic-bezier(.2,.8,.2,1) .1s; }
  .cci-ba[data-state="cci"] .withcci .orb { transform: scale(1); }

  .cci-ba .stage { position: relative; width: 760px; max-width: 100%; display: flex; justify-content: center; align-items: flex-start;
      margin-left:auto; margin-right:auto; transform:scale(.85); transform-origin:top center; margin-bottom:-90px; }
  .cci-ba .phone { flex:0 0 290px; margin-left:auto; margin-right:auto; }
  .cci-ba .callouts { position: absolute; inset: 0; pointer-events: none; }
  .cci-ba .co { opacity: 0; transition: opacity .6s ease; }
  .cci-ba .co.on { opacity: 1; }
  .cci-ba .cues { display: none; margin: 20px 0 0; gap: 22px; font-size: 15px; font-weight: 500; justify-content: center; }
  .cci-ba .cues span { opacity: 0; transition: opacity .6s ease; }
  .cci-ba .cues span.on { opacity: 1; }
  .cci-ba.compact .cues { display: flex; }
  .cci-ba.compact .callouts { display: none; }
  .cci-ba .co { position: absolute; inset: 0; }
  .cci-ba .co .line { position: absolute; height: 0; border-top: 1px solid #9aa0a8; }
  .cci-ba .co .dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px var(--ink); transform: translate(-50%,-50%); }
  .cci-ba .co .lab { position: absolute; font-size: 15px; font-weight: 500; white-space: nowrap; transform: translateY(-50%); }
  .cci-ba .caption { margin: 32px auto 0; width: 100%; max-width: 760px; min-height: 3.2em; }
  .cci-ba .caption p { margin: 0; font-size: 36px; line-height: 1.28; }
  .cci-ba .caption .caption-line { display: block; white-space: nowrap; }
  .cci-ba .caption .cci-caption-second { margin-top: 8px; }
  .cci-ba .caption [hidden] { display: none; }
  @media (max-width: 760px) {
    .cci-ba .caption .caption-line { white-space: normal; }
  }
  .cci-ba .note { margin: 18px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); max-width: 52ch; }

  @media (prefers-reduced-motion: reduce) {
    .cci-ba *, .cci-ba .withcci .orb { transition: none !important; }
  }

  @media (max-width: 760px) {
    html, body { width:100%; overflow-x:hidden; }
    .cci-ba {
      width:100%;
      max-width:none;
      padding:28px 18px 42px;
      overflow:hidden;
    }
    .cci-ba .control-row {
      width:100%;
      max-width:100%;
      gap:10px;
      margin-bottom:30px;
      justify-content:center;
    }
    .cci-ba .switch {
      flex:0 1 auto;
      max-width:calc(100% - 54px);
      min-width:0;
    }
    .cci-ba .switch button {
      font-size:13px;
      padding:10px 13px;
      white-space:nowrap;
    }
    .cci-ba .info-toggle {
      width:44px;
      height:44px;
      flex-basis:44px;
    }
    .cci-ba .stage {
      width:100%;
      max-width:100%;
      transform:none;
      margin:0 auto;
      display:grid;
      place-items:start center;
      overflow:visible;
    }
    .cci-ba .phone {
      width:min(68vw,260px);
      flex:0 0 auto;
      margin:0 auto;
    }
    .cci-ba .caption {
      width:100%;
      max-width:360px;
      margin-top:28px;
      padding:0 6px;
      text-align:center;
    }
    .cci-ba .caption p {
      font-size:24px;
      line-height:1.24;
    }
    .cci-ba .cues {
      font-size:13px;
      gap:14px;
      flex-wrap:wrap;
    }
  }


  /* v0.50.37 — final mobile Emma correction. Desktop values remain untouched. */
  @media (max-width: 760px) {
    .cci-ba {
      padding: 24px 16px 48px !important;
      overflow: visible !important;
    }
    .cci-ba .control-row {
      margin-bottom: 24px !important;
    }
    .cci-ba .stage {
      width: 100% !important;
      max-width: 100% !important;
      transform: none !important;
      transform-origin: top center !important;
      margin: 0 auto !important;
      display: grid !important;
      place-items: start center !important;
      overflow: visible !important;
    }
    .cci-ba .phone {
      width: 236px !important;
      height: 488px !important;
      aspect-ratio: auto !important;
      flex: 0 0 236px !important;
      margin: 0 auto !important;
      border-radius: 38px !important;
      padding: 10px !important;
    }
    .cci-ba .screen {
      border-radius: 29px !important;
    }
    .cci-ba .call {
      padding-bottom: 34px !important;
    }
    .cci-ba .number { font-size: 22px !important; }
    .cci-ba .name { font-size: 26px !important; }
    .cci-ba .orb {
      width: 126px !important;
      height: 126px !important;
    }
    .cci-ba .actions { gap: 66px !important; }
    .cci-ba .btn { width: 54px !important; height: 54px !important; }

    .cci-ba .cues {
      display: flex !important;
      margin-top: 18px !important;
      min-height: 20px;
      gap: 12px !important;
      flex-wrap: wrap !important;
    }
    .cci-ba .cues span {
      opacity: 0;
      transform: translateY(7px);
      transition: opacity .42s ease, transform .42s cubic-bezier(.2,.75,.2,1) !important;
    }
    .cci-ba .cues span.on {
      opacity: 1;
      transform: translateY(0);
    }
    .cci-ba .caption {
      width: 100% !important;
      max-width: 360px !important;
      margin: 24px auto 0 !important;
      padding: 0 8px 8px !important;
      min-height: 0 !important;
    }
    .cci-ba .caption p {
      font-size: 22px !important;
      line-height: 1.25 !important;
    }
  }


  /* v0.50.40 mobile trim — removes unused space below the Emma composition. */
  @media (max-width: 760px) {
    .cci-ba {
      padding-bottom: 24px !important;
    }
    .cci-ba .caption {
      padding-bottom: 0 !important;
    }
  }

