
  #buddyPanel{ position:fixed; z-index:9400; left:8px; right:8px; bottom:calc(96px + env(safe-area-inset-bottom));
    max-width:520px; margin:0 auto; max-height:60dvh; display:none; flex-direction:column;
    background:var(--card,#fff); color:var(--ink,#062822); border-radius:22px; box-shadow:0 16px 44px rgba(0,0,0,.38);
    font-family:var(--font,system-ui); overflow:hidden; }
  #buddyPanel.show{ display:flex; }
  body.in-live-room #buddyPanel{ bottom:calc(128px + env(safe-area-inset-bottom)); }
  body.in-solo-call #buddyPanel{ bottom:calc(96px + env(safe-area-inset-bottom)); max-height:56dvh; }
  body.in-solo-call.ctl-tall-open #buddyPanel{ bottom:calc(142px + env(safe-area-inset-bottom)); }
  body.in-solo-call.ctl-minimized #buddyPanel{ bottom:calc(52px + env(safe-area-inset-bottom)); }
  @media (min-width:900px){
    #buddyPanel{ left:auto; right:18px; top:84px; bottom:120px; width:430px; max-height:none; margin:0; }
    body.in-live-room #buddyPanel{ bottom:140px; }
  }
  .bd-head{ display:flex; align-items:center; gap:8px; padding:12px 14px 10px; border-bottom:1px solid var(--line,#e3dac1); }
  .bd-head b{ font-size:15px; flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .bd-head button{ border:none; background:var(--paper-dark,#f1ead6); color:var(--ink,#062822); border-radius:10px; min-width:34px; height:34px; font:800 14px var(--font,system-ui); cursor:pointer; }
  .bd-body{ padding:12px 14px 14px; overflow:auto; flex:1; -webkit-overflow-scrolling:touch; zoom:var(--bdz,1); }
  .bd-head button.bd-fz{ min-width:30px; padding:0 4px; font-size:12.5px; }
  .bd-head button:disabled{ opacity:.4; cursor:default; }
  .bd-steps{ display:flex; gap:4px; margin:0 0 10px; }
  .bd-steps i{ flex:1; height:5px; border-radius:99px; background:var(--paper-dark,#eee); }
  .bd-steps i.on{ background:var(--cover,#1d9178); }
  .bd-kicker{ font-size:11.5px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; color:var(--cover,#1d9178); margin-bottom:4px; }
  .bd-role{ background:var(--gold,#fbf0d3); border-radius:14px; padding:10px 12px; font-size:14px; font-weight:700; line-height:1.4; margin-bottom:10px; }
  .bd-big{ font-size:clamp(24px,7vw,32px); font-weight:800; text-align:center; line-height:1.2; margin:10px 0 2px; }
  .bd-mean{ text-align:center; font-size:14px; opacity:.72; margin-bottom:10px; }
  .bd-note{ font-size:12.5px; opacity:.75; line-height:1.4; margin:6px 0; }
  .bd-row{ display:flex; gap:8px; margin-top:10px; }
  .bd-btn{ flex:1; min-height:48px; border:none; border-radius:14px; font:800 15px var(--font,system-ui); cursor:pointer; background:var(--paper-dark,#f1ead6); color:var(--ink,#062822); }
  .bd-btn.go{ background:var(--cover,#1d9178); color:#fff; }
  .bd-btn.sm{ min-height:38px; font-size:13px; flex:0 0 auto; padding:0 12px; }
  .bd-btn:disabled{ opacity:.5; cursor:default; }
  .bd-say{ border:none; background:var(--paper-dark,#f1ead6); border-radius:999px; padding:6px 12px; font:700 13px var(--font,system-ui); cursor:pointer; color:var(--ink,#062822); }
  .bd-center{ text-align:center; }
  .bd-dots{ text-align:center; font-size:12px; opacity:.65; margin-top:8px; }
  .bd-line{ border-radius:14px; padding:9px 11px; margin:6px 0; background:var(--paper,#fff9e7); border:2px solid transparent; }
  .bd-line.cur{ border-color:var(--cover,#1d9178); background:var(--card,#fff); box-shadow:0 4px 12px rgba(0,0,0,.08); }
  .bd-line.past{ opacity:.55; }
  .bd-line .who{ font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; opacity:.7; }
  .bd-line .who.me{ color:var(--cover,#1d9178); opacity:1; }
  .bd-line .t{ font-size:17px; font-weight:800; margin-top:2px; }
  .bd-line .m{ font-size:13px; opacity:.7; }
  .bd-frame{ background:var(--mint,#dff7ef); border-radius:12px; padding:9px 11px; font-size:16px; font-weight:800; text-align:center; margin-top:6px; }
  .bd-sess{ display:flex; align-items:center; gap:10px; width:100%; text-align:left; border:2px solid var(--line,#e3dac1); background:var(--card,#fff); color:var(--ink,#062822); border-radius:14px; padding:10px 12px; margin:6px 0; cursor:pointer; font-family:var(--font,system-ui); }
  .bd-sess.next{ border-color:var(--cover,#1d9178); }
  .bd-sess .ic{ font-size:22px; width:30px; text-align:center; flex-shrink:0; }
  .bd-sess .tt{ flex:1; min-width:0; }
  .bd-sess .tt b{ display:block; font-size:14.5px; }
  .bd-sess .tt small{ display:block; font-size:12px; opacity:.7; }
  .bd-sess .st{ font-size:12px; font-weight:800; color:var(--cover,#1d9178); flex-shrink:0; }
  .bd-first{ display:flex; align-items:center; gap:6px; margin:0 0 6px; font:700 12px var(--font,system-ui); }
  .bd-first > span{ opacity:.65; white-space:nowrap; }
  .bd-first-opt{ flex:1; border:1.5px solid var(--line,#e3dac1); background:var(--card,#fff); color:var(--ink,#062822); border-radius:999px; padding:7px 8px; font:800 12.5px var(--font,system-ui); cursor:pointer; white-space:nowrap; }
  .bd-first-opt.on{ background:#6d5fe0; border-color:#6d5fe0; color:#fff; }
  .bd-partner{ display:flex; gap:8px; align-items:center; background:var(--paper,#fff9e7); border-radius:12px; padding:8px 10px; font-size:13px; margin-bottom:10px; }
  .bd-chips{ display:flex; flex-wrap:wrap; gap:6px; justify-content:center; margin:8px 0; }
  .bd-chips span{ background:var(--paper,#fff9e7); border-radius:999px; padding:5px 10px; font-size:13px; font-weight:700; }
  .bd-flash{ animation:bdFlash 1.2s ease; }
  @keyframes bdFlash{ 0%,100%{ background:var(--gold,#fbf0d3); } 30%{ background:#ffd98a; } }
  #buddyToggle{ background:#6d5fe0; }
  .study-front-row{ display:flex; align-items:center; gap:6px; margin:0 0 8px; font:700 12px var(--font,system-ui); }
  .study-front-row > span{ opacity:.65; }
  .study-front-opt{ flex:1; border:1.5px solid var(--line,#e3dac1); background:var(--card,#fff); color:var(--ink,#062822); border-radius:999px; padding:7px 8px; font:800 12.5px var(--font,system-ui); cursor:pointer; white-space:nowrap; }
  .study-front-opt.on{ background:#6d5fe0; border-color:#6d5fe0; color:#fff; }
  .bd-head{ cursor:grab; touch-action:none; user-select:none; -webkit-user-select:none; }
  .bd-head.dragging{ cursor:grabbing; }
  .bd-grip{ opacity:.45; font-size:16px; }
  .bd-resize{ position:absolute; right:0; bottom:0; width:26px; height:26px; cursor:nwse-resize; touch-action:none;
    background:linear-gradient(135deg, transparent 50%, rgba(0,0,0,.18) 50%, rgba(0,0,0,.18) 58%, transparent 58%, transparent 68%, rgba(0,0,0,.18) 68%, rgba(0,0,0,.18) 76%, transparent 76%); border-bottom-right-radius:22px; }
  #buddyPanel.moved{ margin:0 !important; max-width:none !important; max-height:none !important; right:auto !important; bottom:auto !important; }
  #buddyToggle.live::after, #soloBuddyBtn.live::after{ content:''; width:8px; height:8px; border-radius:50%; background:#ffd24a; display:inline-block; margin-left:4px; }
  /* 🔤 alphabet board (v140) */
  .bd-abc-h{ font:800 12px var(--font,system-ui); opacity:.65; margin:2px 0 6px; }
  .bd-abc{ display:grid; grid-template-columns:repeat(6, minmax(0,1fr)); gap:6px; margin-bottom:10px; }
  @media (max-width:420px){ .bd-abc{ grid-template-columns:repeat(3, minmax(0,1fr)); } }
  .bd-abc-t{ border:2px solid var(--line,#e3dac1); background:var(--card,#fff); color:var(--ink,#062822); border-radius:12px; padding:6px 2px; cursor:pointer; display:flex; flex-direction:column; align-items:center; gap:1px; font-family:var(--font,system-ui); }
  .bd-abc-t b{ font-size:22px; line-height:1.1; }
  .bd-abc-t small{ font-size:11px; opacity:.7; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
  .bd-abc-t.cur{ border-color:var(--cover,#1d9178); background:color-mix(in srgb, var(--cover,#1d9178) 12%, var(--card,#fff)); box-shadow:0 3px 10px rgba(0,0,0,.08); }
  .bd-abc-t.done{ opacity:.55; }
  .bd-abc-n{ font-size:.6em; font-weight:700; opacity:.7; }
  /* 🎙️ record · compare · send */
  .bd-rec{ display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:6px; margin:10px 0 2px; }
  .bd-rec.in{ background:var(--mint,#dff7ef); border-radius:12px; padding:8px 10px; font:700 13.5px var(--font,system-ui); }
  .bd-say.go{ background:var(--cover,#1d9178); color:#fff; }
  .bd-say.sent{ opacity:.7; }
  .bd-rec-on{ background:#dc2626 !important; color:#fff !important; animation:bdPulse 1s ease-in-out infinite; }
  @keyframes bdPulse{ 50%{ opacity:.65; } }
  .bd-rec-hint{ font:700 12.5px var(--font,system-ui); opacity:.7; }
  .bd-rec-fb{ text-align:center; font:800 13.5px var(--font,system-ui); margin-top:6px; }
