/* Bee King chat — shared client styles (v3, Dec 2, 2026; v5
   delight + seal layer appended Dec 3, 2026 — chat wave 2).
   Both doors (the /backup-bee page and the Bee King page's secret
   door) mount the same client (bk-chat.js); Dream's theme choice
   restyles it through the variables below. Scoped under .bkc so it
   never fights the host page. Light: no frameworks, no webfonts. */

.bkc{ --bkc-accent:#e8c97a; --bkc-text:#f3e9d2; --bkc-muted:#b8a67e;
  --bkc-line:rgba(232,201,122,.28); --bkc-user:#2b2010;
  --bkc-bee:rgba(24,18,8,.88); --bkc-input:#120d05; --bkc-err:#f0c4ae;
  color:var(--bkc-text); font-size:16px; line-height:1.55; text-align:left; }
.bkc[data-bkc-theme="midnight"]{ --bkc-accent:#d9b45c; --bkc-text:#e9edf7;
  --bkc-muted:#9aa7c4; --bkc-line:rgba(140,170,255,.28); --bkc-user:rgba(28,48,96,.55);
  --bkc-bee:rgba(8,14,34,.88); --bkc-input:#060b1e; }
.bkc[data-bkc-theme="forest"]{ --bkc-accent:#cfe08a; --bkc-text:#eef5e2;
  --bkc-muted:#a9bd93; --bkc-line:rgba(168,217,122,.30); --bkc-user:rgba(20,60,38,.55);
  --bkc-bee:rgba(6,26,16,.88); --bkc-input:#04140b; }
.bkc[data-bkc-theme="ember"]{ --bkc-accent:#eda4b8; --bkc-text:#f9ecef;
  --bkc-muted:#c49aa8; --bkc-line:rgba(237,164,184,.30); --bkc-user:rgba(74,26,44,.55);
  --bkc-bee:rgba(30,8,18,.88); --bkc-input:#180410; }
.bkc[data-bkc-theme="paper"]{ --bkc-accent:#9a7f45; --bkc-text:#2a2013;
  --bkc-muted:#7a6a4d; --bkc-line:rgba(120,90,30,.35); --bkc-user:#f3e3bb;
  --bkc-bee:#fffaf0; --bkc-input:#fffdf6; --bkc-err:#8a3b1e; }

.bkc *{ box-sizing:border-box; }
.bkc-bar{ display:flex; align-items:center; gap:10px; margin:0 0 10px; flex-wrap:wrap; }
.bkc-whobox{ display:flex; flex-direction:column; gap:1px; min-width:0; flex:1 1 auto; }
.bkc-bar .bkc-who{ font-size:13px; letter-spacing:.14em; text-transform:uppercase; color:var(--bkc-muted); white-space:nowrap; }
.bkc-presence{ display:flex; align-items:center; gap:5px; font-size:11px; color:var(--bkc-muted); letter-spacing:.03em; }
.bkc-presence i{ width:7px; height:7px; border-radius:50%; background:#9fd08a; flex:none;
  box-shadow:0 0 6px rgba(159,208,138,.75); animation:bkcpulse 2.6s ease-in-out infinite; }

/* --- the living mask -------------------------------------------------------
   The mask asset stays the real file; the life is a light layer over
   it: a warm sweep travels crown -> face -> nose on a slow loop, the
   head sways gently at idle, and while Bee King composes or speaks
   the sweep quickens and the mask makes a soft talk pulse — its
   mouth moving, in the only way a still mask can. */
.bkc-ava{ position:relative; display:inline-block; border-radius:50%; overflow:hidden; flex:none;
  box-shadow:0 0 0 1px var(--bkc-line), 0 2px 10px rgba(0,0,0,.35); }
.bkc-ava img{ width:100%; height:100%; object-fit:cover; display:block; }
.bkc-ava-light{ position:absolute; left:-12%; right:-12%; top:-55%; height:190%; pointer-events:none;
  background:linear-gradient(180deg, transparent 26%, rgba(255,240,196,.85) 47%, rgba(255,216,130,.35) 55%, transparent 74%);
  mix-blend-mode:soft-light; transform:translateY(-58%); animation:bkcsweep 7.5s ease-in-out infinite; }
@keyframes bkcsweep{ 0%,16%{ transform:translateY(-58%) } 58%,100%{ transform:translateY(58%) } }
.bkc-ava-head{ width:38px; height:38px; animation:bkcsway 9s ease-in-out infinite alternate; }
@keyframes bkcsway{ from{ transform:rotate(-1.1deg) } to{ transform:rotate(1.1deg) translateY(.6px) } }
.bkc-ava-msg{ width:26px; height:26px; margin-top:4px; }
.bkc.speaking .bkc-ava-head{ animation:bkctalk .92s ease-in-out infinite; }
.bkc.speaking .bkc-ava-light{ animation-duration:2.4s; }
.bkc-msgwrap.live .bkc-ava{ animation:bkctalk .92s ease-in-out infinite; }
.bkc-msgwrap.live .bkc-ava-light{ animation-duration:2.4s; }
@keyframes bkctalk{ 0%,100%{ transform:scale(1) } 32%{ transform:scale(1.055) translateY(-.6px) } 62%{ transform:scale(.992) } }
.bkc-bar .bkc-brain{ font-size:11px; color:var(--bkc-accent); border:1px solid var(--bkc-line);
  border-radius:20px; padding:2px 9px; letter-spacing:.06em; }
.bkc-bar .bkc-gear{ margin-left:auto; }
.bkc-btn{ background:transparent; color:var(--bkc-muted); border:1px solid var(--bkc-line);
  border-radius:8px; padding:6px 11px; font-size:12px; font-family:inherit; cursor:pointer;
  letter-spacing:.08em; text-transform:uppercase;
  display:inline-flex; align-items:center; gap:6px; }
.bkc-btn:hover{ color:var(--bkc-accent); }
.bkc-btn.on{ color:var(--bkc-accent); border-color:var(--bkc-accent); }
.bkc-btn:disabled{ opacity:.45; cursor:default; }
.bkc-ic{ display:inline-flex; flex:none; }
.bkc-ic svg{ width:14px; height:14px; stroke:currentColor; fill:none;
  stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.bkc-mic.live{ color:#f0a58c; border-color:rgba(240,165,140,.6); }
.bkc-mic.live .bkc-ic{ animation:bkcpulse 1s ease-in-out infinite; }

.bkc-panel{ display:none; border:1px solid var(--bkc-line); border-radius:12px;
  padding:12px 14px; margin:0 0 14px; background:var(--bkc-bee); }
.bkc-panel.open{ display:block; }
.bkc-panel .bkc-rowset{ display:flex; flex-wrap:wrap; gap:6px 14px; align-items:center; margin:0 0 10px; }
.bkc-panel .bkc-rowset:last-child{ margin-bottom:2px; }
.bkc-panel label{ font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--bkc-muted); min-width:64px; }
.bkc-panel select{ background:var(--bkc-input); color:var(--bkc-text); border:1px solid var(--bkc-line);
  border-radius:8px; padding:6px 8px; font-size:14px; font-family:inherit; max-width:210px; }
.bkc-swatches{ display:flex; gap:7px; }
.bkc-swatch{ width:24px; height:24px; border-radius:50%; border:2px solid transparent; cursor:pointer; padding:0; }
.bkc-swatch.sel{ border-color:var(--bkc-accent); }
.bkc-note{ font-size:12px; color:var(--bkc-muted); margin:2px 0 0; }

.bkc-log{ display:flex; flex-direction:column; gap:10px; margin:0 0 14px; }
.bkc-msgwrap{ display:flex; gap:8px; align-items:flex-start; max-width:94%;
  animation:bkcin .26s ease-out both; }
.bkc-msgwrap.instant{ animation:none; }
@keyframes bkcin{ from{ opacity:0; transform:translateY(8px) scale(.985) } to{ opacity:1; transform:none } }
.bkc-msgwrap.user{ align-self:flex-end; flex-direction:row-reverse; }
.bkc-msgwrap.bee{ align-self:flex-start; }
.bkc-msg{ padding:11px 14px; border-radius:12px; line-height:1.55; font-size:16px;
  word-wrap:break-word; overflow-wrap:anywhere; min-width:0; }
.bkc-msg.user{ background:var(--bkc-user); border:1px solid var(--bkc-line); color:var(--bkc-text); white-space:pre-wrap; }
.bkc-msg.bee{ background:var(--bkc-bee); border:1px solid var(--bkc-line); color:var(--bkc-text); }
.bkc-msg.err{ background:rgba(42,15,10,.55); border:1px solid rgba(255,140,90,.35); color:var(--bkc-err); white-space:pre-wrap; }
.bkc-msg img{ max-width:180px; border-radius:8px; display:block; margin:0 0 6px; }
.bkc-msg p{ margin:0 0 9px; } .bkc-msg p:last-child{ margin-bottom:0; }
.bkc-msg ul,.bkc-msg ol{ margin:2px 0 9px; padding-left:20px; }
.bkc-msg li{ margin:0 0 3px; }
.bkc-msg h3,.bkc-msg h4{ margin:10px 0 5px; font-size:16px; color:var(--bkc-accent); font-weight:600; }
.bkc-msg h3:first-child,.bkc-msg h4:first-child{ margin-top:0; }
.bkc-msg code{ background:rgba(127,127,127,.18); border-radius:4px; padding:1px 5px; font-size:.92em; }
.bkc-msg pre{ background:rgba(0,0,0,.35); border:1px solid var(--bkc-line); border-radius:8px;
  padding:10px 12px; overflow-x:auto; margin:0 0 9px; }
.bkc-msg pre code{ background:none; padding:0; }
.bkc-msg a{ color:var(--bkc-accent); }
.bkc-brainline{ font-size:11px; color:var(--bkc-muted); margin-top:7px; letter-spacing:.05em; }

/* Honey typing drops (idea 7): while he thinks, three honey
   drops pulse and swell inside a little frosted pill — even
   his thinking feels alive. */
.bkc-think{ display:inline-flex; gap:5px; align-items:center; padding:5px 9px;
  background:var(--bkc-glass,rgba(24,17,6,.45)); border:1px solid var(--bkc-glass-line,rgba(232,201,122,.18));
  border-radius:999px; backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); }
.bkc-think i{ width:8px; height:11px; border-radius:50% 50% 50% 50%/62% 62% 38% 38%;
  background:radial-gradient(circle at 35% 30%, #ffe9a8, var(--bkc-accent) 68%, #a8742a);
  box-shadow:inset 0 -2px 3px rgba(90,50,0,.45);
  animation:bkcpulse 1.15s ease-in-out infinite; transform-origin:50% 85%; }
.bkc-think i:nth-child(2){ animation-delay:.19s } .bkc-think i:nth-child(3){ animation-delay:.38s }
@keyframes bkcpulse{ 0%,100%{ opacity:.45; transform:scale(.78) } 50%{ opacity:1; transform:scale(1.12) } }
@media (prefers-reduced-motion: reduce){ .bkc-think i{ animation:none; opacity:.7 }
  .bkc-ava-light, .bkc-ava-head, .bkc.speaking .bkc-ava-head, .bkc-msgwrap.live .bkc-ava,
  .bkc-msgwrap, .bkc-presence i, .bkc-mic.live .bkc-ic{ animation:none } }
.bkc-status{ font-size:12px; color:var(--bkc-muted); margin-left:9px; letter-spacing:.04em; }

.bkc-imgprev{ display:none; margin:0 0 8px; }
.bkc-imgprev img{ max-width:140px; border-radius:10px; border:1px solid var(--bkc-line); vertical-align:middle; margin-right:8px; }
.bkc-inputrow{ display:flex; gap:8px; }
.bkc-inputrow input{ flex:1; min-width:0; padding:12px 14px; background:var(--bkc-input);
  border:1px solid var(--bkc-line); border-radius:10px; color:var(--bkc-text); font-size:16px; font-family:inherit; }
.bkc-inputrow input:focus{ outline:none; border-color:var(--bkc-accent); }
.bkc-send{ background:var(--bkc-accent); color:#1c1404; border:0; border-radius:10px;
  padding:11px 20px; font-size:15px; font-family:inherit; cursor:pointer; white-space:nowrap;
  display:inline-flex; align-items:center; gap:7px; }
.bkc-send .bkc-ic svg{ width:15px; height:15px; }
.bkc-send:disabled{ opacity:.45; cursor:default; }
.bkc-tools{ display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }
.bkc-media img{ max-width:100%; border-radius:10px; display:block; }
.bkc-media{ color:var(--bkc-muted); font-size:13px; margin:6px 0; }
.bkc-doc{ margin:6px 0; }
.bkc-doc a{ display:inline-block; border:1px solid var(--bkc-accent); color:var(--bkc-accent);
  border-radius:8px; padding:7px 13px; text-decoration:none; font-size:14px; }
.bkc-f-eleven{ background:var(--bkc-input); color:var(--bkc-text); border:1px solid var(--bkc-line);
  border-radius:8px; padding:6px 8px; font-size:14px; font-family:inherit; flex:1; min-width:180px; }
.bkc-err{ color:var(--bkc-err); font-size:14px; min-height:18px; margin:6px 0 0; }

/* --- in-thread cards (money-in chart / balances / case status) --------------
   Rendered by the client from Bee King's ```card blocks — the visual
   answer that replaces a paragraph of figures. */
.bkc-card{ border:1px solid var(--bkc-line); background:rgba(127,110,60,.10);
  border-radius:12px; padding:12px 14px; margin:8px 0; }
.bkc-card:first-child{ margin-top:0; } .bkc-card:last-child{ margin-bottom:0; }
.bkc-card-t{ font-size:11.5px; letter-spacing:.11em; text-transform:uppercase; color:var(--bkc-muted); }
.bkc-card-total{ font-size:23px; line-height:1.25; color:var(--bkc-accent); margin:3px 0 7px; }
.bkc-card-row{ display:flex; justify-content:space-between; align-items:baseline; gap:14px; padding:3px 0; }
.bkc-card-l{ color:var(--bkc-text); min-width:0; }
.bkc-card-v{ color:var(--bkc-accent); white-space:nowrap; font-variant-numeric:tabular-nums; }
.bkc-card-bar{ height:5px; border-radius:3px; background:rgba(127,127,127,.22); margin:1px 0 7px; overflow:hidden; }
.bkc-card-bar i{ display:block; height:100%; background:var(--bkc-accent); border-radius:3px; }
.bkc-card-note{ font-size:12.5px; color:var(--bkc-muted); margin-top:7px; line-height:1.45; }

/* --- v5 (chat wave 2, Dec 3, 2026): the delight + seal layer -----------------
   Reactions, card celebrations, the shimmering work line, and the
   vault seal chip. Pure CSS over the v4 sheet — no new assets. */
.bkc-msgwrap{ position:relative; }
.bkc-card{ position:relative; overflow:hidden; }
.bkc-card-bar i{ transition:width .9s cubic-bezier(.22,.8,.3,1) .15s; }

/* reactions (full spec): the pinned emoji at the bubble's corner,
   and the floating bar — emoji row, fuller picker, action menu —
   that a long-press or right-click raises. */
.bkc-pinned{ position:absolute; bottom:-9px; z-index:2; font-size:13px; line-height:1.3;
  background:var(--bkc-input); border:1px solid var(--bkc-line); border-radius:11px;
  padding:1px 7px; box-shadow:0 2px 8px rgba(0,0,0,.35); animation:bkcin .22s ease-out both; }
.bkc-msgwrap.bee .bkc-pinned{ right:4px; }
.bkc-msgwrap.user .bkc-pinned{ left:4px; }
.bkc-msg{ -webkit-touch-callout:none; }
.bkc-rbar{ position:fixed; z-index:80; background:var(--bkc-bee); border:1px solid var(--bkc-line);
  border-radius:14px; padding:8px; box-shadow:0 12px 36px rgba(0,0,0,.55);
  display:flex; flex-direction:column; gap:6px; animation:bkcin .18s ease-out both;
  max-width:calc(100vw - 12px); }
.bkc-rbar[hidden]{ display:none; }
.bkc-remojis{ display:flex; gap:1px; }
.bkc-remojis button, .bkc-rpick button{ background:transparent; border:0; cursor:pointer;
  font-size:21px; line-height:1; padding:5px 6px; border-radius:9px; font-family:inherit; }
.bkc-remojis button:hover, .bkc-rpick button:hover{ background:rgba(127,127,127,.20); }
.bkc-remojis button.sel, .bkc-rpick button.sel{ background:rgba(232,201,122,.25); }
.bkc-remojis .bkc-rplus{ color:var(--bkc-muted); font-size:19px; }
.bkc-rpick{ display:grid; grid-template-columns:repeat(7,1fr); gap:1px;
  border-top:1px dashed var(--bkc-line); padding-top:6px; }
.bkc-rpick[hidden]{ display:none; }
.bkc-rmenu{ display:flex; gap:2px; border-top:1px dashed var(--bkc-line); padding-top:6px; }
.bkc-rmenu button{ flex:1; background:transparent; border:0; color:var(--bkc-text); cursor:pointer;
  font-size:11px; letter-spacing:.09em; text-transform:uppercase; padding:6px 4px;
  border-radius:8px; font-family:inherit; }
.bkc-rmenu button:hover{ background:rgba(127,127,127,.18); color:var(--bkc-accent); }

/* a reply quote riding at the head of a user bubble */
.bkc-quote{ border-left:3px solid var(--bkc-accent); background:rgba(127,127,127,.15);
  border-radius:6px; padding:5px 9px; font-size:13.5px; color:var(--bkc-muted); margin:0 0 7px; }
.bkc-replybar{ display:flex; align-items:center; gap:8px; border:1px solid var(--bkc-line);
  border-left:3px solid var(--bkc-accent); border-radius:8px; padding:7px 10px; margin:0 0 8px;
  font-size:13px; color:var(--bkc-muted); background:var(--bkc-bee); }
.bkc-replybar[hidden]{ display:none; }
.bkc-replybar .bkc-replytx{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bkc-replyx{ background:transparent; border:0; color:var(--bkc-muted); cursor:pointer; font-size:13px; padding:2px 5px; }

/* --- presence split: the full figure on Dream's own surfaces -------- */
.bkc-ava.bkc-ava-fig{ border-radius:14px; }
.bkc-presence-figure .bkc-ava-head{ width:106px; height:91px; border-radius:14px; }
.bkc-ava-msg.bkc-ava-fig{ width:40px; height:34px; border-radius:9px; margin-top:4px; }
.bkc-presence-figure .bkc-bar{ position:relative; }
.bkc-presence-figure .bkc-bar::before{ content:""; position:absolute; inset:-16px -10px;
  pointer-events:none;
  background:
    radial-gradient(130px 74px at 16% 38%, rgba(232,106,160,.20), transparent 70%),
    radial-gradient(150px 84px at 30% 95%, rgba(96,96,255,.16), transparent 70%),
    radial-gradient(110px 64px at 6% 0%, rgba(255,216,130,.15), transparent 70%); }
.bkc-presence-figure .bkc-bar > *{ position:relative; }

/* --- the voice call ---------------------------------------------------- */
.bkc-callbtn.on{ background:#c22f2f; border-color:#c22f2f; color:#fff; }
.bkc-call{ border:1px solid var(--bkc-line); border-radius:14px; padding:16px 14px 12px;
  margin:0 0 12px; background:var(--bkc-bee); text-align:center; animation:bkcin .25s ease-out both; }
.bkc-call[hidden]{ display:none; }
.bkc-call .bkc-ava{ width:104px; height:104px; }
.bkc-call .bkc-ava.bkc-ava-fig{ width:148px; height:127px; border-radius:16px; }
.bkc-call-status{ font-size:14.5px; color:var(--bkc-accent); letter-spacing:.05em; margin:10px 0 2px; }
.bkc-call-heard{ font-size:13.5px; font-style:italic; color:var(--bkc-muted); min-height:19px; margin:2px 0 4px; }
.bkc-call .bkc-ava{ cursor:pointer; }
.bkc-endcall{ background:#c22f2f; color:#fff; border:0; border-radius:10px; padding:9px 20px;
  font-size:14px; font-family:inherit; cursor:pointer; margin-top:8px; }
.bkc-call-note{ font-size:12px; color:var(--bkc-muted); margin:9px 0 0; }
.bkc-call-warn{ font-size:12.5px; color:#e8a13a; margin:9px 0 0; }
.bkc-call-warn[hidden]{ display:none; }

/* sparkles: burst points for reactions and money-in celebrations */
.bkc-spark{ position:absolute; left:50%; top:50%; width:5px; height:5px; border-radius:50%;
  background:var(--bkc-accent); pointer-events:none; z-index:3;
  box-shadow:0 0 6px rgba(255,216,130,.8); animation:bkcspark .7s ease-out both; }
@keyframes bkcspark{ from{ opacity:1; transform:translate(-50%,-50%) scale(1) }
  to{ opacity:0; transform:translate(calc(-50% + var(--sx,0px)), calc(-50% + var(--sy,-14px))) scale(.35) } }

/* a fresh card lands: one light sweep across it */
.bkc-card.fresh::after{ content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(115deg, transparent 30%, rgba(255,240,196,.20) 48%, rgba(255,216,130,.08) 55%, transparent 72%);
  transform:translateX(-110%); animation:bkcshine 1.15s ease-out .1s both; }
@keyframes bkcshine{ to{ transform:translateX(110%) } }

/* money moved: the mask wakes briefly — light runs fast, head alive */
.bkc.celebrate .bkc-ava-head{ animation-duration:.55s; }
.bkc.celebrate .bkc-ava-light{ animation-duration:.9s; }

/* the working line shimmers while Bee King is on it */
.bkc-msgwrap.live .bkc-status{
  background:linear-gradient(90deg, var(--bkc-muted) 30%, var(--bkc-accent) 50%, var(--bkc-muted) 70%);
  background-size:220% 100%; -webkit-background-clip:text; background-clip:text; color:transparent;
  animation:bkcshimmer 1.6s linear infinite; }
@keyframes bkcshimmer{ from{ background-position:120% 0 } to{ background-position:-120% 0 } }

/* the seal chip: proof on the sender's own bubble that a secret
   went to the vault and stayed out of the chat record */
.bkc-sealchip{ display:flex; align-items:center; gap:6px; margin-top:8px; padding-top:7px;
  border-top:1px dashed var(--bkc-line); font-size:12px; color:var(--bkc-muted);
  letter-spacing:.02em; animation:bkcin .3s ease-out both; }
.bkc-sealchip .bkc-ic svg{ width:13px; height:13px; }

@media (prefers-reduced-motion: reduce){
  .bkc-card.fresh::after, .bkc-spark, .bkc-msgwrap.live .bkc-status,
  .bkc-rbar, .bkc-call, .bkc-pinned{ animation:none }
  .bkc-card-bar i{ transition:none }
  .bkc-msgwrap.live .bkc-status{ color:var(--bkc-muted) }
}

/* --- v6 (Dec 3, 2026): no black box — Bee King stands transparent,
   the light shines down the character himself, and the chat
   background is starry space (Dream's ruling, Dec 3, 2026).
   The avatar art now ships with a real alpha channel keyed from the
   master art (the same pixels, background lifted — the
   bee-king-*-alpha.webp files). The light layer is clipped to the
   character's silhouette by that same alpha, so the sweep travels
   down HIM — crown, face, nose — never down a rectangle. The
   starfield is pure CSS: two seeded star layers over a deep-space
   gradient, no image assets, bubbles keep their solid fills so the
   words stay perfectly readable over the stars. */

/* the starfield behind the whole conversation */
.bkc{ position:relative; isolation:isolate; }
.bkc::before, .bkc::after{ content:""; position:absolute; inset:0; z-index:-1; pointer-events:none; }
.bkc:not([data-bkc-theme="paper"])::before{
  background:
      radial-gradient(0.8px 0.8px at 108px 189px, rgba(255,244,214,0.62) 50%, transparent 54%),
      radial-gradient(1.0px 1.0px at 290px 217px, rgba(255,244,214,0.55) 50%, transparent 54%),
      radial-gradient(0.8px 0.8px at 287px 142px, rgba(255,255,255,0.65) 50%, transparent 54%),
      radial-gradient(0.8px 0.8px at 119px 248px, rgba(255,255,255,0.9) 50%, transparent 54%),
      radial-gradient(1.0px 1.0px at 144px 125px, rgba(255,255,255,0.74) 50%, transparent 54%),
      radial-gradient(1.2px 1.2px at 191px 263px, rgba(255,244,214,0.7) 50%, transparent 54%),
      radial-gradient(0.9px 0.9px at 224px 153px, rgba(255,255,255,0.63) 50%, transparent 54%),
      radial-gradient(1.0px 1.0px at 66px 171px, rgba(255,244,214,0.84) 50%, transparent 54%),
      radial-gradient(1.1px 1.1px at 240px 222px, rgba(255,255,255,0.65) 50%, transparent 54%),
      radial-gradient(0.9px 0.9px at 115px 32px, rgba(255,244,214,0.91) 50%, transparent 54%),
      radial-gradient(1.2px 1.2px at 220px 101px, rgba(255,255,255,0.58) 50%, transparent 54%),
      radial-gradient(1.3px 1.3px at 253px 239px, rgba(255,255,255,0.62) 50%, transparent 54%),
      radial-gradient(1.0px 1.0px at 53px 75px, rgba(255,255,255,0.67) 50%, transparent 54%),
      radial-gradient(1.2px 1.2px at 24px 221px, rgba(255,244,214,0.67) 50%, transparent 54%),
      radial-gradient(1.2px 1.2px at 167px 285px, rgba(214,228,255,0.81) 50%, transparent 54%),
      linear-gradient(180deg, #030612 0%, #060a1c 52%, #0a0805 100%);
  background-size:300px 300px, 300px 300px, 300px 300px, 300px 300px, 300px 300px, 300px 300px, 300px 300px, 300px 300px, 300px 300px, 300px 300px, 300px 300px, 300px 300px, 300px 300px, 300px 300px, 300px 300px, 100% 100%;
  animation:bkctwinkle2 7.5s ease-in-out infinite alternate; }
@keyframes bkctwinkle2{ from{ opacity:.72 } to{ opacity:1 } }
.bkc:not([data-bkc-theme="paper"])::after{
  background:
      radial-gradient(1.2px 1.2px at 54px 291px, rgba(214,228,255,0.86) 50%, transparent 54%),
      radial-gradient(1.2px 1.2px at 400px 72px, rgba(255,255,255,0.57) 50%, transparent 54%),
      radial-gradient(1.5px 1.5px at 162px 188px, rgba(255,255,255,0.69) 50%, transparent 54%),
      radial-gradient(1.4px 1.4px at 111px 111px, rgba(255,255,255,0.79) 50%, transparent 54%),
      radial-gradient(1.5px 1.5px at 19px 207px, rgba(214,228,255,0.85) 50%, transparent 54%),
      radial-gradient(1.1px 1.1px at 128px 239px, rgba(255,255,255,0.5) 50%, transparent 54%),
      radial-gradient(1.5px 1.5px at 33px 55px, rgba(255,255,255,0.67) 50%, transparent 54%),
      radial-gradient(1.1px 1.1px at 164px 187px, rgba(255,255,255,0.72) 50%, transparent 54%),
      radial-gradient(1.1px 1.1px at 294px 292px, rgba(214,228,255,0.54) 50%, transparent 54%),
      radial-gradient(1.5px 1.5px at 343px 7px, rgba(214,228,255,0.89) 50%, transparent 54%),
      radial-gradient(1.6px 1.6px at 152px 83px, rgba(255,255,255,0.79) 50%, transparent 54%);
  background-size:460px 460px, 460px 460px, 460px 460px, 460px 460px, 460px 460px, 460px 460px, 460px 460px, 460px 460px, 460px 460px, 460px 460px, 460px 460px;
  animation:bkctwinkle 5.5s ease-in-out infinite alternate, bkcdrift 150s linear infinite alternate; }
@keyframes bkctwinkle{ from{ opacity:.5 } to{ opacity:1 } }
/* the living sky: individual stars, each on its own clock */
.bkc-stars{ position:absolute; inset:0; z-index:-1; pointer-events:none; overflow:hidden; }
.bkc-stars i{ position:absolute; border-radius:50%; background:#fff6da; opacity:.25;
  animation:bkcstar ease-in-out infinite alternate; }
@keyframes bkcstar{ from{ opacity:.12; transform:scale(.8) } to{ opacity:.95; transform:scale(1.15) } }
.bkc[data-bkc-theme="paper"] .bkc-stars{ display:none }
@keyframes bkcdrift{ from{ background-position:0px 0px } to{ background-position:120px 60px } }

/* the avatar: no box, no ring, no clipped circle — the character
   himself, with a silhouette glow where the box shadow used to be */
.bkc .bkc-ava{ border-radius:0; overflow:visible; box-shadow:none;
  filter:drop-shadow(0 0 9px rgba(232,201,122,.30)) drop-shadow(0 2px 7px rgba(0,0,0,.45)); }
.bkc .bkc-ava.bkc-ava-fig{ border-radius:0; }
.bkc-ava img{ object-fit:contain; }

/* the light, clipped to the silhouette: the sweep layer now covers
   exactly the avatar's box and wears the character's own alpha as
   its mask; the travelling gradient rides a ::before inside it */
.bkc-ava-light{ left:0; right:0; top:0; height:100%; transform:none; animation:none;
  background:none; mix-blend-mode:normal; overflow:hidden;
  -webkit-mask-image:url(/images/bee-king-mask-alpha.webp); mask-image:url(/images/bee-king-mask-alpha.webp);
  -webkit-mask-size:100% 100%; mask-size:100% 100%;
  -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat; }
.bkc-ava.bkc-ava-fig .bkc-ava-light{
  -webkit-mask-image:url(/images/bee-king-figure-alpha.webp); mask-image:url(/images/bee-king-figure-alpha.webp); }
.bkc-ava-light::before{ content:""; position:absolute; left:-12%; right:-12%; top:-55%; height:190%;
  background:linear-gradient(180deg, transparent 26%, rgba(255,240,196,.85) 47%, rgba(255,216,130,.35) 55%, transparent 74%);
  mix-blend-mode:soft-light; transform:translateY(-58%); animation:bkcsweep 7.5s ease-in-out infinite; }
.bkc.speaking .bkc-ava-light::before{ animation-duration:2.4s; }
.bkc-msgwrap.live .bkc-ava-light::before{ animation-duration:2.4s; }
.bkc.celebrate .bkc-ava-light::before{ animation-duration:.9s; }

@media (prefers-reduced-motion: reduce){
  .bkc-ava-light::before, .bkc::before, .bkc::after, .bkc-stars i{ animation:none }
}

/* v6.1 (Dec 3, 2026): the figure bar's colour aura used to end at
   its box edge — invisible on black, a straight cut on the
   starfield. Fade the aura out radially so it melts into space. */
.bkc-presence-figure .bkc-bar::before{
  -webkit-mask-image:radial-gradient(115% 130% at 28% 42%, #000 52%, transparent 76%);
  mask-image:radial-gradient(115% 130% at 28% 42%, #000 52%, transparent 76%); }

/* Scroll manners (Dream's order, Dec 3, 2026): the "New messages ↓"
   pill — offered, never forced. It floats over the thread's lower
   edge while the reader is up reading and something has landed
   below; one tap glides back to the bottom. Plain words, no
   mystery icon; the chat's own gold on its own dark. */
.bkc-newpill{ position:fixed; left:50%; bottom:22px; transform:translateX(-50%); z-index:60;
  background:var(--bkc-bee); color:var(--bkc-accent); border:1px solid var(--bkc-accent);
  border-radius:999px; padding:8px 16px; font-family:inherit; font-size:13px;
  letter-spacing:.04em; cursor:pointer; box-shadow:0 4px 18px rgba(0,0,0,.45);
  animation:bkcin .26s ease-out both; }
.bkc-newpill:hover{ color:var(--bkc-text); }
.bkc-newpill[hidden]{ display:none; }

/* --- v8 (chat wave 3, Dec 3, 2026): the Muse-chat shape --------------
   Full-bleed thread, floating frosted-glass chrome, the drawer,
   his home sheet, the compose pill + voice-note recorder, the
   attach sheet with its Library strip, the emoji panel, the big
   two-piece long-press, gold numbers, and the mood light. The
   glass is a soft dark tint + blur: the thread glows faintly
   through every pill while the words on it stay readable. */
.bkc{ --bkc-glass:rgba(18,12,4,.55); --bkc-glass2:rgba(18,12,4,.78);
  --bkc-glass-line:rgba(232,201,122,.22); --bkc-topclear:120px; }
.bkc[data-bkc-theme="midnight"]{ --bkc-glass:rgba(6,10,24,.55); --bkc-glass2:rgba(6,10,24,.8); }
.bkc[data-bkc-theme="forest"]{ --bkc-glass:rgba(4,18,10,.55); --bkc-glass2:rgba(4,18,10,.8); }
.bkc[data-bkc-theme="ember"]{ --bkc-glass:rgba(22,6,14,.55); --bkc-glass2:rgba(22,6,14,.8); }
.bkc[data-bkc-theme="paper"]{ --bkc-glass:rgba(255,250,240,.7); --bkc-glass2:rgba(255,250,240,.88);
  --bkc-glass-line:rgba(120,90,30,.3); }
.bkc-presence-figure{ --bkc-topclear:150px; }
.bkc-log{ padding:var(--bkc-topclear) 12px 0; }
.bkc.incall .bkc-log{ padding-top:6px; }
.bkc-call{ margin-top:var(--bkc-topclear); }
.bkc-newpill{ bottom:78px; }

/* the mood light: a tint layer over the stars, under everything */
.bkc-mood{ position:absolute; inset:0; z-index:-1; pointer-events:none;
  opacity:0; transition:opacity 4s ease; }
.bkc-mood.gold{ opacity:1;
  background:radial-gradient(120% 90% at 50% 0%, rgba(232,180,80,.20), rgba(232,180,80,.05) 55%, transparent 75%); }
.bkc-mood.calm{ opacity:1;
  background:radial-gradient(120% 100% at 50% 0%, rgba(50,90,180,.22), rgba(30,50,120,.08) 55%, transparent 78%); }

/* the starfield, alive (Dream, Dec 3, 2026): two layers twinkle
   at different rates and drift at different speeds — parallax
   depth, calm enough to read over, visibly moving between two
   frames seconds apart. */
.bkc:not([data-bkc-theme="paper"])::before{
  animation:bkctwinkle2 3.8s ease-in-out infinite alternate, bkcdrift1 170s ease-in-out infinite alternate; }
.bkc:not([data-bkc-theme="paper"])::after{
  animation:bkctwinkle 4.9s ease-in-out infinite alternate, bkcdrift 120s linear infinite alternate; }
@keyframes bkctwinkle2{ from{ opacity:.68 } to{ opacity:1 } }
@keyframes bkcdrift1{ from{ transform:translate3d(0,0,0) scale(1.03) } to{ transform:translate3d(-16px,10px,0) scale(1.03) } }

/* --- the floating top bar --- */
.bkc-topbar{ position:absolute; top:calc(6px + env(safe-area-inset-top,0px));
  left:10px; right:10px; z-index:40; display:flex; align-items:flex-start;
  justify-content:space-between; pointer-events:none; }
.bkc-topbar > *{ pointer-events:auto; }
.bkc-menubtn, .bkc-topbar .bkc-callbtn{ width:44px; height:44px; border-radius:50%;
  padding:0; justify-content:center; background:var(--bkc-glass);
  -webkit-backdrop-filter:blur(14px) saturate(1.25); backdrop-filter:blur(14px) saturate(1.25);
  border:1px solid var(--bkc-glass-line); color:var(--bkc-text); }
.bkc-menubtn .bkc-ic svg{ width:20px; height:20px; }
.bkc-topbar .bkc-callbtn .bkc-ic svg{ width:19px; height:19px; }
.bkc-topbar .bkc-callbtn.on{ background:#c22f2f; border-color:#c22f2f; color:#fff; }
.bkc-presence-wrap{ position:absolute; left:50%; transform:translateX(-50%); top:0;
  background:none; border:0; padding:0; cursor:pointer; font-family:inherit;
  display:flex; flex-direction:column; align-items:center; gap:3px; }
.bkc-presence-ava{ display:inline-block; animation:bkcbob 6.5s ease-in-out infinite alternate; }
@keyframes bkcbob{ from{ transform:translateY(0) } to{ transform:translateY(-2.5px) } }
.bkc-topbar .bkc-ava-head{ width:56px; height:56px; }
.bkc-presence-figure .bkc-topbar .bkc-ava-head{ width:96px; height:82px; }
.bkc-topbar .bkc-ava img{ animation:bkcbreathe 4.6s ease-in-out infinite alternate; }
@keyframes bkcbreathe{ from{ transform:scale(1) } to{ transform:scale(1.035) } }
.bkc-namepill{ background:var(--bkc-glass);
  -webkit-backdrop-filter:blur(14px) saturate(1.25); backdrop-filter:blur(14px) saturate(1.25);
  border:1px solid var(--bkc-glass-line); border-radius:999px; padding:4px 13px 5px;
  display:flex; flex-direction:column; align-items:center; max-width:62vw; }
.bkc-namepill .bkc-who{ font-size:12.5px; letter-spacing:.1em; text-transform:uppercase;
  color:var(--bkc-text); white-space:nowrap; }
.bkc-namepill .bkc-presence{ justify-content:center; }
.bkc-namepill .bkc-brain{ font-size:10.5px; color:var(--bkc-accent); letter-spacing:.05em; }

/* --- the drawer --- */
.bkc-scrim{ position:fixed; inset:0; z-index:64; background:rgba(2,2,6,.45);
  -webkit-backdrop-filter:blur(2px); backdrop-filter:blur(2px); }
.bkc-scrim[hidden]{ display:none; }
.bkc-drawer{ position:fixed; top:0; left:0; bottom:0; z-index:65;
  width:min(322px,86vw); transform:translateX(-106%);
  transition:transform .32s cubic-bezier(.22,.8,.3,1);
  background:var(--bkc-glass2);
  -webkit-backdrop-filter:blur(18px) saturate(1.2); backdrop-filter:blur(18px) saturate(1.2);
  border-right:1px solid var(--bkc-glass-line);
  padding:calc(14px + env(safe-area-inset-top,0px)) 14px calc(12px + env(safe-area-inset-bottom,0px));
  display:flex; flex-direction:column; overflow-y:auto; }
.bkc-drawer.open{ transform:none; }
.bkc-drawer-head{ font-size:22px; color:var(--bkc-text); margin:2px 2px 4px; }
.bkc-dsec{ font-size:11px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--bkc-muted); margin:15px 2px 6px; }
.bkc-drow{ display:flex; align-items:center; gap:12px; width:100%;
  padding:10px; border-radius:12px; background:transparent; border:0;
  color:var(--bkc-text); font-size:15.5px; font-family:inherit;
  text-decoration:none; cursor:pointer; text-align:left; }
.bkc-drow:hover{ background:rgba(127,127,127,.14); }
.bkc-drow .bkc-ic svg{ width:19px; height:19px; color:var(--bkc-accent); }
.bkc-drow.on{ color:var(--bkc-accent); }
.bkc-dsearch{ margin-top:auto; position:sticky; bottom:0; display:flex;
  align-items:center; gap:8px; background:var(--bkc-glass);
  -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px);
  border:1px solid var(--bkc-glass-line); border-radius:999px; padding:9px 14px; }
.bkc-dsearch input{ flex:1; min-width:0; background:none; border:0;
  color:var(--bkc-text); font-size:15px; font-family:inherit; }
.bkc-dsearch input:focus{ outline:none; }
.bkc-dsearch .bkc-ic svg{ width:16px; height:16px; color:var(--bkc-muted); }
.bkc-dsearch-n{ font-size:12px; color:var(--bkc-muted); white-space:nowrap; }
.bkc-found{ outline:2px solid var(--bkc-accent); outline-offset:2px; border-radius:14px; }

/* --- his home sheet --- */
.bkc-home{ position:fixed; inset:0; z-index:66; overflow-y:auto;
  background:var(--bkc-glass2);
  -webkit-backdrop-filter:blur(20px) saturate(1.2); backdrop-filter:blur(20px) saturate(1.2);
  padding:calc(16px + env(safe-area-inset-top,0px)) 18px calc(16px + env(safe-area-inset-bottom,0px));
  animation:bkcin .25s ease-out both; }
.bkc-home[hidden]{ display:none; }
.bkc-home-x{ position:absolute; top:calc(12px + env(safe-area-inset-top,0px)); left:14px;
  width:40px; height:40px; border-radius:50%; background:var(--bkc-glass);
  border:1px solid var(--bkc-glass-line); color:var(--bkc-text);
  display:flex; align-items:center; justify-content:center; cursor:pointer; }
.bkc-home-x .bkc-ic svg{ width:17px; height:17px; }
.bkc-home-ava{ display:flex; justify-content:center; margin-top:8px; }
.bkc-ava-home{ width:118px; height:118px; animation:bkcsway 9s ease-in-out infinite alternate; }
.bkc-presence-figure .bkc-ava-home{ width:172px; height:147px; }
.bkc.speaking .bkc-ava-home{ animation:bkctalk .92s ease-in-out infinite; }
.bkc-home-name{ text-align:center; font-size:24px; margin-top:9px; color:var(--bkc-text); }
.bkc-home-status{ text-align:center; color:var(--bkc-accent); font-size:14.5px; margin-top:2px; }
.bkc-home-tabs{ display:flex; gap:4px; margin:16px auto 12px; max-width:440px;
  background:var(--bkc-glass); border:1px solid var(--bkc-glass-line);
  border-radius:999px; padding:4px; }
.bkc-htab{ flex:1; display:flex; flex-direction:column; align-items:center; gap:2px;
  padding:7px 2px; border:0; border-radius:999px; background:transparent;
  color:var(--bkc-muted); font-family:inherit; font-size:11px; cursor:pointer; }
.bkc-htab.sel{ background:rgba(232,201,122,.16); color:var(--bkc-accent); }
.bkc-htab .bkc-ic svg{ width:18px; height:18px; }
.bkc-hpane{ max-width:560px; margin:0 auto; }
.bkc-hpane[hidden]{ display:none; }
.bkc-home .bkc-panel{ display:block; border:0; background:transparent; padding:0; margin:0; }
.bkc-tasks-n{ font-size:17px; color:var(--bkc-text); margin:4px 0 2px; }
.bkc-feedrow{ display:flex; gap:11px; padding:9px 2px; border-bottom:1px solid rgba(127,127,127,.12); }
.bkc-feed-ic{ width:34px; height:34px; border-radius:50%; flex:none;
  background:var(--bkc-glass); border:1px solid var(--bkc-glass-line);
  display:flex; align-items:center; justify-content:center; color:var(--bkc-accent); }
.bkc-feed-ic .bkc-ic svg{ width:16px; height:16px; }
.bkc-feed-main{ display:flex; flex-direction:column; min-width:0; }
.bkc-feed-t{ color:var(--bkc-text); font-size:15px; }
.bkc-feed-s{ color:var(--bkc-muted); font-size:13px; overflow-wrap:anywhere; }
.bkc-feed-w{ color:var(--bkc-muted); font-size:12px; }

/* --- the compose pill + recorder + tray --- */
.bkc-compose{ display:flex; align-items:flex-end; gap:2px;
  background:var(--bkc-glass2);
  -webkit-backdrop-filter:blur(14px) saturate(1.25); backdrop-filter:blur(14px) saturate(1.25);
  border:1px solid var(--bkc-glass-line); border-radius:26px; padding:5px;
  margin:8px 10px 0; }
.bkc-compose textarea{ flex:1; min-width:0; background:transparent; border:0;
  resize:none; color:var(--bkc-text); font-size:16px; font-family:inherit;
  line-height:1.4; padding:8px 4px; max-height:140px;
  caret-color:var(--bkc-accent); -webkit-text-fill-color:var(--bkc-text); opacity:1; }
.bkc-compose textarea:focus{ outline:none; }
.bkc-cbtn{ width:38px; height:38px; border-radius:50%; border:0; background:transparent;
  color:var(--bkc-muted); display:flex; align-items:center; justify-content:center;
  cursor:pointer; flex:none; font-family:inherit; padding:0; }
.bkc-cbtn:hover{ color:var(--bkc-accent); }
.bkc-cbtn .bkc-ic svg{ width:20px; height:20px; }
.bkc-cbtn.live{ color:#f0a58c; }
.bkc-cbtn.live .bkc-ic{ animation:bkcpulse 1s ease-in-out infinite; }
.bkc-compose .bkc-send, .bkc-recbar .bkc-send{ width:38px; height:38px;
  border-radius:50%; padding:0; justify-content:center; flex:none; }
.bkc-send .bkc-ic svg{ width:17px; height:17px; }
.bkc-recbar{ display:flex; align-items:center; gap:4px;
  background:var(--bkc-glass);
  -webkit-backdrop-filter:blur(14px) saturate(1.25); backdrop-filter:blur(14px) saturate(1.25);
  border:1px solid var(--bkc-glass-line); border-radius:26px; padding:5px;
  margin:8px 10px 0; }
.bkc-recbar[hidden]{ display:none; }
.bkc-compose[hidden]{ display:none !important; }
.bkc-rec-time{ font-variant-numeric:tabular-nums; color:var(--bkc-text);
  font-size:14.5px; min-width:37px; text-align:center; }
.bkc-rec-wave{ flex:1; min-width:0; height:36px; width:100%; }
.bkc-tray{ display:flex; gap:8px; flex-wrap:wrap; margin:8px 10px 0; }
.bkc-tray[hidden]{ display:none; }
.bkc-chip{ display:inline-flex; align-items:center; gap:7px;
  background:var(--bkc-glass); border:1px solid var(--bkc-glass-line);
  border-radius:12px; padding:5px 8px; font-size:13px; color:var(--bkc-text); }
.bkc-chip img{ width:34px; height:34px; object-fit:cover; border-radius:8px; }
.bkc-chip button{ background:none; border:0; color:var(--bkc-muted);
  cursor:pointer; display:flex; padding:2px; }
.bkc-chip .bkc-ic svg{ width:15px; height:15px; }
.bkc-replybar{ margin:8px 10px 0; }
.bkc-err{ padding:0 12px; }

/* --- the attach sheet + emoji panel --- */
.bkc-attach, .bkc-emoji{ position:fixed; left:0; right:0; bottom:0; z-index:66;
  background:var(--bkc-glass2);
  -webkit-backdrop-filter:blur(20px) saturate(1.2); backdrop-filter:blur(20px) saturate(1.2);
  border-top:1px solid var(--bkc-glass-line); border-radius:22px 22px 0 0;
  padding:14px 14px calc(12px + env(safe-area-inset-bottom,0px));
  animation:bkcrise .28s ease-out both; max-height:74dvh; overflow-y:auto; }
@keyframes bkcrise{ from{ transform:translateY(24px); opacity:.4 } to{ transform:none; opacity:1 } }
.bkc-attach[hidden], .bkc-emoji[hidden]{ display:none; }
.bkc-attach-head{ display:flex; justify-content:space-between; align-items:baseline;
  font-size:17px; color:var(--bkc-text); margin:0 2px 10px; }
.bkc-seeall{ background:none; border:0; color:#7db4f0; font-size:15px;
  font-family:inherit; cursor:pointer; }
.bkc-libstrip{ display:flex; gap:9px; overflow-x:auto; padding-bottom:8px; }
.bkc-librecent{ display:contents; }
.bkc-libtile{ position:relative; width:76px; height:76px; border-radius:14px;
  overflow:hidden; border:1px solid var(--bkc-glass-line);
  background:rgba(127,127,127,.15); flex:none; cursor:pointer; padding:0;
  color:var(--bkc-muted); display:flex; align-items:center; justify-content:center; }
.bkc-libtile img, .bkc-libtile video{ width:100%; height:100%; object-fit:cover; display:block; }
.bkc-camtile{ flex-direction:column; gap:4px; font-size:11px; font-family:inherit; }
.bkc-camtile .bkc-ic svg{ width:24px; height:24px; }
.bkc-libsel{ position:absolute; top:5px; right:5px; width:19px; height:19px;
  border-radius:50%; border:2px solid rgba(255,255,255,.85); background:rgba(0,0,0,.25); }
.bkc-libtile.picked .bkc-libsel{ background:var(--bkc-accent); border-color:var(--bkc-accent); }
.bkc-libbadge{ position:absolute; left:5px; bottom:5px; width:18px; height:18px; color:#fff; }
.bkc-libbadge .bkc-ic svg{ width:14px; height:14px; }
.bkc-arow{ display:flex; align-items:center; gap:13px; width:100%;
  padding:15px 10px; background:transparent; border:0;
  border-bottom:1px solid rgba(127,127,127,.14); color:var(--bkc-text);
  font-size:16.5px; font-family:inherit; cursor:pointer; text-align:left; }
.bkc-arow .bkc-ic svg{ width:21px; height:21px; color:var(--bkc-accent); }
.bkc-emoji-search{ display:flex; align-items:center; gap:8px;
  background:rgba(127,127,127,.16); border-radius:999px; padding:9px 14px; margin-bottom:10px; }
.bkc-emoji-search input{ flex:1; min-width:0; background:none; border:0;
  color:var(--bkc-text); font-size:15.5px; font-family:inherit; }
.bkc-emoji-search input:focus{ outline:none; }
.bkc-emoji-search .bkc-ic svg{ width:16px; height:16px; color:var(--bkc-muted); }
.bkc-emoji-grid{ display:grid; grid-template-columns:repeat(7,1fr); gap:2px;
  max-height:38dvh; overflow-y:auto; }
.bkc-emoji-grid button{ background:none; border:0; font-size:26px; padding:7px 0;
  cursor:pointer; border-radius:10px; font-family:inherit; }
.bkc-emoji-grid button:hover{ background:rgba(127,127,127,.16); }
.bkc-emoji-cats{ display:flex; justify-content:space-between; padding-top:9px;
  border-top:1px solid rgba(127,127,127,.14); }
.bkc-emoji-cats button{ background:none; border:0; font-size:19px; padding:6px 8px;
  cursor:pointer; border-radius:9px; font-family:inherit; opacity:.75; }
.bkc-emoji-cats button.sel{ background:rgba(232,201,122,.18); opacity:1; }

/* --- voice notes + shared media in his bubbles --- */
.bkc-voice{ display:flex; align-items:center; gap:9px; min-width:200px; }
.bkc-voice-btn{ width:38px; height:38px; border-radius:50%; border:0;
  background:var(--bkc-accent); color:#1c1404; display:flex; align-items:center;
  justify-content:center; cursor:pointer; flex:none; }
.bkc-voice-btn .bkc-ic svg{ width:16px; height:16px; }
.bkc-voice-btn.loading{ opacity:.55; }
.bkc-voice-wave{ flex:1; min-width:0; height:32px; width:100%; }
.bkc-voice-dur{ font-size:12.5px; color:var(--bkc-muted); font-variant-numeric:tabular-nums; }
.bkc-voice-tx{ font-size:13px; color:var(--bkc-muted); margin-top:6px; }
.bkc-umedia{ margin-top:7px; color:var(--bkc-muted); font-size:13px; }
.bkc-umedia video{ max-width:100%; border-radius:10px; display:block; }
.bkc-umedia img{ max-width:180px; border-radius:10px; display:block; }
.bkc-umedia a{ color:var(--bkc-accent); }

/* --- numbers in their own color (per-surface contrast) --- */
.bkc-num{ font-weight:600; color:var(--bkc-numc,#f2d488); }
.bkc-msg.user{ --bkc-numc:var(--bkc-num-user,#f2d488); }
.bkc[data-bkc-theme="paper"] .bkc-msg.user{ --bkc-num-user:#8a5a10; }

/* --- the long-press, in two big pieces --- */
.bkc-rpop[hidden]{ display:none; }
.bkc-rpill{ position:fixed; z-index:81; display:flex; gap:2px; align-items:center;
  background:var(--bkc-glass2);
  -webkit-backdrop-filter:blur(18px) saturate(1.2); backdrop-filter:blur(18px) saturate(1.2);
  border:1px solid var(--bkc-glass-line); border-radius:999px; padding:7px 9px;
  box-shadow:0 12px 36px rgba(0,0,0,.5); animation:bkcin .18s ease-out both; }
.bkc-rpill > button{ background:none; border:0; font-size:27px; line-height:1;
  padding:5px 6px; cursor:pointer; border-radius:999px; font-family:inherit; }
.bkc-rpill > button.sel{ background:rgba(232,201,122,.25); }
.bkc-rpill .bkc-rplus{ width:34px; height:34px; border-radius:50%;
  background:rgba(127,127,127,.25); color:var(--bkc-text); font-size:20px;
  display:flex; align-items:center; justify-content:center; padding:0; }
.bkc-rpick{ position:absolute; top:calc(100% + 8px); left:0; display:grid;
  grid-template-columns:repeat(7,1fr); gap:1px; background:var(--bkc-glass2);
  -webkit-backdrop-filter:blur(18px); backdrop-filter:blur(18px);
  border:1px solid var(--bkc-glass-line); border-radius:16px; padding:7px; min-width:272px; }
.bkc-rpick[hidden]{ display:none; }
.bkc-rpick button{ background:none; border:0; font-size:21px; padding:5px 4px;
  cursor:pointer; border-radius:9px; font-family:inherit; }
.bkc-rpick button.sel{ background:rgba(232,201,122,.25); }
.bkc-ract{ position:fixed; z-index:81; background:var(--bkc-glass2);
  -webkit-backdrop-filter:blur(18px) saturate(1.2); backdrop-filter:blur(18px) saturate(1.2);
  border:1px solid var(--bkc-glass-line); border-radius:18px; padding:6px;
  box-shadow:0 12px 36px rgba(0,0,0,.5); min-width:232px; animation:bkcin .18s ease-out both; }
.bkc-ract button{ display:flex; align-items:center; gap:13px; width:100%;
  min-height:52px; padding:10px 12px; background:none; border:0;
  color:var(--bkc-text); font-size:16.5px; font-family:inherit; cursor:pointer;
  border-radius:12px; text-align:left; }
.bkc-ract button:hover{ background:rgba(127,127,127,.15); }
.bkc-ract .bkc-ic svg{ width:20px; height:20px; color:var(--bkc-accent); }

@media (prefers-reduced-motion: reduce){
  .bkc-presence-ava, .bkc-topbar .bkc-ava img, .bkc-ava-home,
  .bkc-attach, .bkc-emoji, .bkc-home, .bkc-rpill, .bkc-ract{ animation:none }
  .bkc-drawer{ transition:none }
  .bkc:not([data-bkc-theme="paper"])::before{ animation:none }
  .bkc-mood{ transition:none }
}

/* --- wave 5 FEEL: honey read receipts + sound themes ---------- */
/* The receipt drop sits on its own row under Dream's bubble,
   right-aligned; its fill is the state: sent (empty), reading
   (half), got (full gold). */
.bkc-msgwrap.user{ flex-wrap:wrap; }
.bkc-receipt{ flex:0 0 100%; display:flex; justify-content:flex-end; padding:3px 6px 0 0; }
.bkc-receipt i{ display:block; width:9px; height:12px; position:relative; overflow:hidden;
  border-radius:50% 50% 50% 50%/62% 62% 38% 38%;
  border:1.5px solid rgba(232,201,122,.75); background:rgba(20,14,4,.35); }
.bkc-receipt i::after{ content:""; position:absolute; left:0; right:0; bottom:0; height:0%;
  background:linear-gradient(180deg,#ffe9a8,#e8a33d); transition:height .6s ease; }
.bkc-receipt[data-state="reading"] i::after{ height:50%; }
.bkc-receipt[data-state="got"] i::after{ height:100%; }
.bkc-receipt[data-state="got"] i{ border-color:#f2d488; box-shadow:0 0 6px rgba(242,212,136,.55); }
.bkc-themepick{ display:inline-flex; gap:6px; flex-wrap:wrap; }
.bkc-themebtn{ display:inline-flex; align-items:center; gap:7px; padding:6px 10px; border-radius:999px;
  background:var(--bkc-glass,rgba(24,17,6,.45)); color:var(--bkc-text); cursor:pointer;
  border:1px solid var(--bkc-glass-line,rgba(232,201,122,.25)); font:inherit; font-size:13px; }
.bkc-themebtn.sel{ border-color:var(--bkc-accent); color:var(--bkc-accent); }
.bkc-themeprev{ display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px;
  border-radius:50%; background:rgba(232,201,122,.16); font-size:9px; color:var(--bkc-accent); }

/* --- wave 6 ACTIONS: chips, scheduled send, swipe ------------- */
.bkc-chips{ display:flex; flex-wrap:wrap; gap:7px; margin-top:9px; }
.bkc-chips .bkc-chip{ padding:8px 13px; border-radius:999px; cursor:pointer; font:inherit; font-size:13.5px;
  color:var(--bkc-accent); background:rgba(232,201,122,.1);
  border:1px solid rgba(232,201,122,.45); }
.bkc-chips .bkc-chip:active{ background:rgba(232,201,122,.22); }
.bkc-schedmenu{ margin:8px 10px 0; padding:12px; border-radius:20px; z-index:5;
  background:var(--bkc-glass2,rgba(16,11,3,.78)); border:1px solid var(--bkc-glass-line,rgba(232,201,122,.22));
  backdrop-filter:blur(16px) saturate(1.25); -webkit-backdrop-filter:blur(16px) saturate(1.25);
  box-shadow:0 10px 30px rgba(0,0,0,.35); animation:bkcrise .22s ease; }
.bkc-schedmenu[hidden]{ display:none !important; }
.bkc-sched-title{ font-size:12px; letter-spacing:.14em; color:var(--bkc-muted); margin-bottom:8px; }
.bkc-schedopt{ display:flex; align-items:center; gap:10px; width:100%; padding:11px 10px; border:0;
  border-radius:12px; background:transparent; color:var(--bkc-text); font:inherit; font-size:15px;
  cursor:pointer; text-align:left; }
.bkc-schedopt:active{ background:rgba(232,201,122,.12); }
.bkc-schedopt .bkc-ic{ color:var(--bkc-accent); }
.bkc-pendmeta{ display:flex; align-items:center; gap:6px; margin-top:7px; font-size:12px;
  color:var(--bkc-num-user,#f2d488); }
.bkc-pendmeta .bkc-ic svg{ width:14px; height:14px; }
.bkc-pendx{ margin-left:6px; padding:3px 9px; border-radius:999px; cursor:pointer; font:inherit;
  font-size:12px; color:var(--bkc-text); background:rgba(255,255,255,.08);
  border:1px solid rgba(232,201,122,.3); }
.bkc-msg{ transition:transform .18s ease; }
.bkc-msg.swiping{ transition:none; }
.bkc-msgwrap{ position:relative; }
.bkc-msgwrap[data-swipe="reply"]::before{ content:"↩"; position:absolute; left:2px; top:50%;
  transform:translateY(-50%); color:var(--bkc-accent); font-size:19px; }
.bkc-msgwrap[data-swipe="heart"]::after{ content:"❤️"; position:absolute; right:2px; top:50%;
  transform:translateY(-50%); font-size:16px; }

/* --- wave 7 MEDIA: voice player+, photo markup, canvas ------- */
.bkc-voice-speed{ margin-left:2px; padding:3px 8px; border-radius:999px; cursor:pointer;
  font:inherit; font-size:12px; color:var(--bkc-accent); background:rgba(232,201,122,.12);
  border:1px solid rgba(232,201,122,.35); }
.bkc-voice-tx .bkc-w{ transition:color .2s ease; }
.bkc-voice-tx .bkc-w.on{ color:#f2d488; }
.bkc-markup,.bkc-canvas-sheet{ position:fixed; inset:0; z-index:70; display:flex; flex-direction:column;
  gap:10px; padding:calc(10px + env(safe-area-inset-top)) 12px calc(10px + env(safe-area-inset-bottom));
  background:var(--bkc-glass2,rgba(14,10,3,.88));
  backdrop-filter:blur(18px) saturate(1.2); -webkit-backdrop-filter:blur(18px) saturate(1.2); }
.bkc-markup[hidden],.bkc-canvas-sheet[hidden]{ display:none !important; }
.bkc-sheet-head{ display:flex; align-items:center; justify-content:space-between; gap:10px;
  color:var(--bkc-text); font-size:16px; }
.bkc-mark-tools{ display:inline-flex; gap:6px; }
.bkc-chipbtn{ padding:6px 11px; border-radius:999px; cursor:pointer; font:inherit; font-size:13px;
  color:var(--bkc-text); background:rgba(255,255,255,.07); border:1px solid rgba(232,201,122,.3); }
.bkc-mark-done,.bkc-canvas-show{ color:#1c1005; background:var(--bkc-accent); border-color:var(--bkc-accent);
  font-weight:600; }
.bkc-mark-blur.sel{ color:#1c1005; background:var(--bkc-accent); border-color:var(--bkc-accent); font-weight:600; }
.bkc-mark-canvas{ flex:1; width:100%; min-height:0; object-fit:contain; border-radius:14px;
  background:#0a0d14; touch-action:none; }
.bkc-canvas-board{ flex:1; width:100%; min-height:0; border-radius:14px; background:#101623;
  border:1px solid rgba(232,201,122,.25); touch-action:none; }
.bkc-tray .bkc-drawbtn{ color:var(--bkc-accent); }

/* --- wave 8 MEMORY: honeycomb wall + catch me up -------------- */
.bkc-wallmark{ position:absolute; right:8px; bottom:-9px; display:inline-flex; align-items:center;
  gap:4px; padding:2px 8px; border-radius:999px; font-size:10.5px; color:#1c1005;
  background:linear-gradient(180deg,#ffe9a8,#e8a33d); box-shadow:0 2px 8px rgba(0,0,0,.35); }
.bkc-wallmark .bkc-ic svg{ width:11px; height:11px; }
.bkc-hive{ display:flex; flex-wrap:wrap; gap:8px; padding:6px 2px; }
.bkc-cell{ flex:0 0 calc(50% - 4px); min-height:118px; padding:16px 14px; cursor:pointer;
  text-align:left; color:var(--bkc-text); font:inherit;
  background:linear-gradient(160deg, rgba(232,201,122,.22), rgba(24,17,6,.65) 55%);
  border:1px solid rgba(232,201,122,.4);
  clip-path:polygon(50% 0, 100% 12%, 100% 88%, 50% 100%, 0 88%, 0 12%); }
.bkc-cell-who{ display:block; font-size:10.5px; letter-spacing:.12em; color:var(--bkc-accent);
  margin-bottom:5px; text-transform:uppercase; }
.bkc-cell-tx{ display:block; font-size:12.5px; line-height:1.45;
  display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden; }
.bkc-catchup{ padding:2px 0; }
.bkc-catchup-h{ font-size:11px; letter-spacing:.16em; color:var(--bkc-accent); margin-bottom:7px;
  text-transform:uppercase; }
.bkc-catchup-l{ padding:6px 0 6px 12px; border-left:2px solid rgba(232,201,122,.5);
  margin-top:5px; line-height:1.5; }

/* --- wave 9 REACH: customer view, offline queue, translation -- */
.bkc-custview{ position:fixed; inset:0; z-index:70; display:flex; flex-direction:column; gap:10px;
  padding:calc(10px + env(safe-area-inset-top)) 12px calc(10px + env(safe-area-inset-bottom));
  background:var(--bkc-glass2,rgba(14,10,3,.92));
  backdrop-filter:blur(18px) saturate(1.2); -webkit-backdrop-filter:blur(18px) saturate(1.2); }
.bkc-custview[hidden]{ display:none !important; }
.bkc-custframe{ flex:1; width:100%; border:1px solid rgba(232,201,122,.3); border-radius:14px;
  background:#0a0d14; }
.bkc-queuechip{ flex:0 0 100%; display:flex; justify-content:flex-end; align-items:center; gap:5px;
  padding:3px 6px 0 0; font-size:12px; color:var(--bkc-muted); }
.bkc-translation{ margin-top:9px; padding:8px 10px; border-radius:12px;
  background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.12);
  font-size:.94em; line-height:1.5; }
.bkc-translation-h{ display:block; font-size:10px; letter-spacing:.14em; color:var(--bkc-accent);
  margin-bottom:3px; }

/* --- wave 13 LARK: shelf, urgent, decisions, tidy -------------- */
.bkc-shelf{ display:flex; gap:8px; padding:8px 12px 0; overflow-x:auto; flex:none; }
.bkc-shelf[hidden]{ display:none !important; }
.bkc-tile{ flex:1 0 auto; display:flex; flex-direction:column; align-items:flex-start; gap:1px;
  padding:8px 12px; border-radius:14px; cursor:pointer; font:inherit; text-align:left;
  color:var(--bkc-text); background:var(--bkc-glass,rgba(18,12,4,.55));
  backdrop-filter:blur(14px) saturate(1.25); -webkit-backdrop-filter:blur(14px) saturate(1.25);
  border:1px solid rgba(232,201,122,.22); }
.bkc-tile-l{ font-size:10.5px; letter-spacing:.1em; color:var(--bkc-muted); text-transform:uppercase; }
.bkc-tile-v{ font-size:16.5px; font-weight:700; color:var(--bkc-accent); }
.bkc-urgentbar{ flex:none; display:flex; align-items:center; gap:8px; margin:8px 12px 0;
  padding:9px 13px; border-radius:13px; cursor:pointer; font-size:13.5px; color:#ffe9a8;
  background:rgba(58,38,4,.55); border:1px solid rgba(255,217,138,.55); }
.bkc-urgentbar[hidden]{ display:none !important; }
.bkc-urgentdot{ width:9px; height:9px; border-radius:50%; background:#ffd98a; flex:none;
  animation:bkcUrgentPulse 1.6s ease-in-out infinite; }
.bkc-msgwrap.bkc-urgent .bkc-msg{ border:1px solid rgba(255,217,138,.75);
  animation:bkcUrgentPulse 1.6s ease-in-out infinite; }
.bkc-msgwrap.bkc-urgentseen .bkc-msg{ animation:none; border-color:rgba(255,217,138,.3); }
@keyframes bkcUrgentPulse{ 0%,100%{ box-shadow:0 0 0 0 rgba(255,217,138,.0); }
  50%{ box-shadow:0 0 14px 2px rgba(255,217,138,.35); } }
@media (prefers-reduced-motion: reduce){
  .bkc-msgwrap.bkc-urgent .bkc-msg, .bkc-urgentdot{ animation:none; } }
.bkc-decision{ margin-top:10px; padding:13px 13px 11px; border-radius:15px;
  background:linear-gradient(160deg, rgba(255,233,168,.14), rgba(24,17,6,.5));
  border:1px solid rgba(255,217,138,.5); }
.bkc-dec-t{ font-size:15.5px; font-weight:600; line-height:1.45; }
.bkc-dec-d{ font-size:13.5px; color:var(--bkc-muted); margin-top:3px; line-height:1.45; }
.bkc-dec-row{ display:flex; gap:9px; margin-top:11px; }
.bkc-dec-yes{ flex:1; padding:12px; border-radius:12px; border:0; cursor:pointer; font:inherit;
  font-weight:700; font-size:15.5px; color:#1c1005; background:var(--bkc-accent); }
.bkc-dec-no{ padding:12px 16px; border-radius:12px; cursor:pointer; font:inherit; font-size:15px;
  color:var(--bkc-muted); background:transparent; border:1px solid rgba(232,201,122,.3); }
.bkc-decision.stamped .bkc-dec-row{ opacity:.45; }
.bkc-decision.declined{ opacity:.72; }
.bkc-dec-stamp{ margin-top:9px; font-size:13px; color:var(--bkc-accent); }
.bkc-compose{ position:relative; }
.bkc-undochip{ position:absolute; right:12px; top:-38px; padding:6px 12px; border-radius:999px;
  font:inherit; font-size:12.5px; cursor:pointer; color:#1c1005; background:var(--bkc-accent);
  border:0; box-shadow:0 4px 14px rgba(0,0,0,.4); z-index:5; }

/* --- wave 12 THREADS: reply threads + ambient mode ------------- */
.bkc-quote{ cursor:pointer; }
.bkc-thread{ position:fixed; left:0; right:0; bottom:0; z-index:66; max-height:84dvh; overflow:auto;
  padding:10px 16px calc(14px + env(safe-area-inset-bottom)); border-radius:22px 22px 0 0;
  background:var(--bkc-glass2,rgba(14,10,3,.88));
  backdrop-filter:blur(18px) saturate(1.2); -webkit-backdrop-filter:blur(18px) saturate(1.2);
  border-top:1px solid rgba(232,201,122,.25); }
.bkc-thread[hidden]{ display:none !important; }
.bkc-thread-row{ display:block; width:100%; text-align:left; font:inherit; cursor:pointer;
  padding:11px 12px; margin-top:8px; border-radius:14px; color:var(--bkc-text);
  background:rgba(255,255,255,.05); border:1px solid rgba(232,201,122,.18); }
.bkc-thread-row.bee{ background:rgba(232,201,122,.08); }
.bkc-thread-who{ display:block; font-size:10.5px; letter-spacing:.13em; color:var(--bkc-accent);
  margin-bottom:3px; text-transform:uppercase; }
.bkc-thread-tx{ display:block; font-size:14px; line-height:1.5; }
.bkc-ambient{ position:fixed; inset:0; z-index:80; display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:18px; cursor:pointer;
  background:radial-gradient(120% 90% at 50% 30%, rgba(10,14,30,.90), rgba(3,4,9,.97));
  backdrop-filter:blur(7px) brightness(.8); -webkit-backdrop-filter:blur(7px) brightness(.8); }
.bkc-ambient[hidden]{ display:none !important; }
.bkc-ava-ambient{ width:184px; height:184px; animation:bkcBreathe 5.2s ease-in-out infinite; }
@keyframes bkcBreathe{ 0%,100%{ transform:scale(1); } 50%{ transform:scale(1.035); } }
.bkc-ambient-status{ font-size:16.5px; color:var(--bkc-text); opacity:.92; text-align:center;
  padding:0 30px; }
.bkc-ambient-hint{ font-size:12.5px; color:var(--bkc-muted); letter-spacing:.06em; }
@media (prefers-reduced-motion: reduce){ .bkc-ava-ambient{ animation:none; } }

/* --- wave 11 CALL: captions + call out + notes rail ------------ */
.bkc-captions{ max-width:92%; text-align:center; font-size:17px; line-height:1.55;
  color:var(--bkc-text); min-height:26px; }
.bkc-capw{ opacity:.62; transition:opacity .18s, color .18s; }
.bkc-capw.on{ opacity:1; color:var(--bkc-accent); }
.bkc-callout{ position:fixed; left:0; right:0; bottom:0; z-index:66; max-height:82dvh; overflow:auto;
  padding:10px 16px calc(14px + env(safe-area-inset-bottom)); border-radius:22px 22px 0 0;
  background:var(--bkc-glass2,rgba(14,10,3,.88));
  backdrop-filter:blur(18px) saturate(1.2); -webkit-backdrop-filter:blur(18px) saturate(1.2);
  border-top:1px solid rgba(232,201,122,.25); }
.bkc-callout[hidden]{ display:none !important; }
.bkc-callout-link label{ display:block; font-size:11px; letter-spacing:.14em; color:var(--bkc-accent);
  margin:12px 0 6px; }
.bkc-linkrow{ display:flex; gap:8px; }
.bkc-callout-url{ flex:1; font:inherit; font-size:13.5px; padding:10px 12px; border-radius:12px;
  border:1px solid rgba(232,201,122,.35); background:rgba(0,0,0,.35); color:var(--bkc-text); }
.bkc-pcall{ position:fixed; inset:0; z-index:72; background:#05070c; display:flex; flex-direction:column; }
.bkc-pcall[hidden]{ display:none !important; }
.bkc-pcall-remote{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.bkc-pcall-local{ position:absolute; top:calc(64px + env(safe-area-inset-top)); right:12px; width:96px;
  height:128px; object-fit:cover; border-radius:12px; border:1px solid rgba(232,201,122,.5); background:#000; z-index:2; }
.bkc-pcall-top{ position:relative; z-index:2; display:flex; justify-content:space-between; align-items:flex-start;
  gap:10px; padding:calc(12px + env(safe-area-inset-top)) 12px 8px; }
.bkc-pcall-state{ padding:7px 12px; border-radius:999px; font-size:13.5px;
  background:rgba(10,8,3,.55); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); }
.bkc-pcall-bee{ display:inline-flex; align-items:center; gap:7px; padding:5px 11px 5px 5px;
  border-radius:999px; font-size:12.5px; color:var(--bkc-accent);
  background:rgba(10,8,3,.55); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); }
.bkc-pcall-bee .bkc-ava{ width:26px; height:26px; }
.bkc-notesrail{ position:relative; z-index:2; margin-top:auto; max-height:38%; overflow:auto;
  display:flex; flex-direction:column; gap:6px; padding:10px 12px;
  background:linear-gradient(180deg, transparent, rgba(5,7,12,.82) 30%); }
.bkc-nr-numbers{ display:flex; flex-wrap:wrap; gap:6px; }
.bkc-nr-num{ font-size:21px; font-weight:700; color:#ffe9a8; padding:3px 10px; border-radius:10px;
  background:rgba(232,201,122,.16); border:1px solid rgba(232,201,122,.45); }
.bkc-nr-lines{ display:flex; flex-direction:column; gap:3px; overflow:auto; }
.bkc-nr-line{ font-size:14.5px; line-height:1.45; color:#f3ead2; }
.bkc-nr-live{ opacity:.65; }
.bkc-nr-note{ font-size:13.5px; color:var(--bkc-accent); padding-left:10px;
  border-left:2px solid rgba(232,201,122,.5); }
.bkc-nr-dec{ color:#ffe9a8; }
.bkc-pcall-hand{ padding:7px 12px; border-radius:999px; font-size:13px; font-weight:600;
  color:#1c1005; background:#e8c97a; }
.bkc-pcall-hand[hidden]{ display:none !important; }
.bkc-pcall-bursts{ position:absolute; inset:0; pointer-events:none; z-index:3; overflow:hidden; }
.bkc-burst{ position:absolute; bottom:18%; font-size:38px; animation:bkcBurstUp 2.4s ease-out forwards; }
@keyframes bkcBurstUp{ 0%{ transform:translateY(0) scale(.6); opacity:0; }
  12%{ opacity:1; transform:translateY(-16px) scale(1.1); }
  100%{ transform:translateY(-170px) scale(1); opacity:0; } }
.bkc-pcall-bar{ position:relative; z-index:2; display:flex; gap:8px; justify-content:center;
  padding:10px 12px calc(12px + env(safe-area-inset-bottom)); background:rgba(5,7,12,.82); }
.bkc-pcall-end{ border-color:#e0655f !important; color:#ffb3ae !important; }

/* --- wave 10 MOMENTS: the big-moment card ---------------------- */
.bkc-card.bkcard-big{ text-align:center; padding:20px 14px 16px;
  background:linear-gradient(165deg, rgba(255,233,168,.20), rgba(24,17,6,.55) 60%);
  border-color:rgba(255,217,138,.65); }
.bkc-big-t{ font-size:15px; font-weight:700; letter-spacing:.42em; text-indent:.42em;
  color:var(--bkc-accent); }
.bkc-big-amt{ font-size:44px; font-weight:800; line-height:1.15; color:#ffe9a8;
  text-shadow:0 0 22px rgba(255,217,138,.45); }
.bkc-big-sub{ font-size:13.5px; color:var(--bkc-text); opacity:.92; }

/* ================================================================
   v9 (Dec 4, 2026) — FEEL: the house Feedback Stack, the living
   presence, the Bee King's own room, glass-bubble panels, and
   OUR bottom toolbar. Appended last on purpose: these rules win.
   ================================================================ */

/* --- the room: honeycomb walls, warm pools of light ------------
   The generic starfield becomes the hive: a faint gold comb
   woven into the dark, honey light pooled low, the old stars
   pushed far back to dust. Reading text still sits on the dark
   calm surfaces above it — bright stays rim/glow/signage only. */
.bkc:not([data-bkc-theme="paper"])::before{
  background:
    radial-gradient(circle at 1.5px 1.5px, rgba(232,201,122,.13) 1.5px, transparent 2.3px),
    radial-gradient(circle at 13px 8.5px, rgba(232,201,122,.09) 1.5px, transparent 2.3px),
    radial-gradient(ellipse 90% 46% at 50% 108%, rgba(255,176,66,.15), transparent 62%),
    radial-gradient(ellipse 55% 30% at 82% -4%, rgba(255,214,120,.07), transparent 60%),
    linear-gradient(180deg, #05060e 0%, #0a0714 46%, #17100a 78%, #120b06 100%);
  background-size:26px 15px, 26px 15px, 100% 100%, 100% 100%, 100% 100%;
  animation:bkcdrift 170s linear infinite alternate;
}
.bkc:not([data-bkc-theme="paper"])::after{ opacity:.32; }
.bkc .bkc-stars{ opacity:.4; }

/* --- glass bubbles: panels float, the room shows faintly through */
.bkc{ --bkc-glass:rgba(18,12,4,.60); --bkc-glass2:rgba(18,12,4,.82); --bkc-bee:rgba(24,18,8,.84); }
.bkc[data-bkc-theme="midnight"]{ --bkc-glass:rgba(6,10,24,.60); --bkc-glass2:rgba(6,10,24,.84); }
.bkc[data-bkc-theme="forest"]{ --bkc-glass:rgba(4,18,10,.60); --bkc-glass2:rgba(4,18,10,.84); }
.bkc[data-bkc-theme="ember"]{ --bkc-glass:rgba(22,6,14,.60); --bkc-glass2:rgba(22,6,14,.84); }
.bkc .bkc-box{ backdrop-filter:blur(3px) saturate(1.05); -webkit-backdrop-filter:blur(3px) saturate(1.05); }

/* --- the press: every tappable surface answers the finger ------
   97% scale the same frame the finger lands, rim glow, settle
   inside ~120ms. The .bkc-pressing class is driven from JS on
   pointerdown (capture), so it fires for every surface, not just
   :active-friendly ones. */
.bkc-btn,.bkc-cbtn,.bkc-tbtn,.bkc-drow,.bkc-htab,.bkc-arow,.bkc-libtile,.bkc-camtile,.bkc-seeall,.bkc-menubtn,.bkc-chip,.bkc-tool,.bkc-send,.bkc-plus,.bkc-emojibtn,.bkc-mic,.bkc-libimg,.bkc-imgopen,.bkc-copybtn{
  transition:transform .12s ease, box-shadow .12s ease, filter .12s ease; }
.bkc-pressing{ transform:scale(.97) !important; filter:brightness(1.22);
  box-shadow:0 0 0 1.5px rgba(255,217,138,.55), 0 0 14px rgba(255,190,80,.28) !important; }
.bkc-send.bkc-pressing{ transform:scale(.92) !important; }
.bkc-emoji span.bkc-pressing{ transform:scale(.82) !important; }

/* --- send + receive light ---------------------------------------
   Send: the composer rim flashes once and the bubble departs
   (a small rise-and-settle). Receive: the reply's bubble glows
   softly as it lands, then rests. */
.bkc-compose.bkc-sentflash{ animation:bkcsentflash .42s ease-out; }
@keyframes bkcsentflash{ 0%{ box-shadow:0 0 0 2px rgba(255,217,138,.75), 0 0 22px rgba(255,190,80,.4); }
  100%{ box-shadow:0 0 0 0 rgba(255,217,138,0), 0 0 0 rgba(255,190,80,0); } }
.bkc-justsent .bkc-box{ animation:bkcdepart .38s ease-out; }
@keyframes bkcdepart{ 0%{ transform:translateY(9px) scale(.965); opacity:.55; }
  60%{ transform:translateY(-1.5px) scale(1.004); opacity:1; } 100%{ transform:translateY(0) scale(1); } }
.bkc-arrive .bkc-box{ animation:bkcarrive .55s ease-out; }
@keyframes bkcarrive{ 0%{ box-shadow:0 0 0 1.5px rgba(255,217,138,.5), 0 0 20px rgba(255,196,90,.30); }
  100%{ box-shadow:0 0 0 0 rgba(255,217,138,0), 0 0 0 rgba(255,196,90,0); } }

/* --- the calm error: one soft nudge, never a shake ------------- */
.bkc-msg.err.bkc-nudge, .bkc-nudge{ animation:bkcnudge .3s ease-out; }
@keyframes bkcnudge{ 0%{ transform:translateX(0); } 35%{ transform:translateX(6px); } 100%{ transform:translateX(0); } }

/* --- the living presence ----------------------------------------
   Overlay layers inside every avatar (mask + figure art):
   glints that look, lids that blink, a mouth light that moves
   when he speaks. Positions are per-art CSS vars, measured off
   the art itself (spiral centers / face eyes). */
.bkc-ava{ --elx:38.6%; --erx:53.6%; --ey:59.3%; --egw:8%; --egh:8.5%; --my:79%; }
.bkc-ava-fig{ --elx:37.3%; --erx:55.3%; --ey:48.7%; --egw:7%; --egh:9.5%; --my:60.5%; }
.bkc-ava-eyes,.bkc-ava-lids{ position:absolute; inset:0; pointer-events:none; }
.bkc-ava-eyes{ transition:transform .45s ease; }
.bkc-gl{ position:absolute; top:var(--ey); width:var(--egw); height:var(--egh);
  transform:translate(-50%,-50%); border-radius:50%;
  background:radial-gradient(circle, rgba(255,252,238,.95) 0%, rgba(255,226,150,.55) 42%, transparent 72%);
  mix-blend-mode:screen; filter:blur(.4px); }
.bkc-gl-l{ left:var(--elx); } .bkc-gl-r{ left:var(--erx); }
.bkc-lid{ position:absolute; top:var(--ey); width:calc(var(--egw) * 1.5); height:calc(var(--egh) * 1.35);
  transform:translate(-50%,-50%) scaleY(0); transform-origin:center; border-radius:50%;
  background:radial-gradient(ellipse at center, rgba(30,19,5,.96) 55%, rgba(30,19,5,0) 78%);
  transition:transform .07s ease-in; }
.bkc-lid-l{ left:var(--elx); } .bkc-lid-r{ left:var(--erx); }
.bkc.bkc-blink .bkc-lid{ transform:translate(-50%,-50%) scaleY(1); }
.bkc-ava-mouth{ position:absolute; left:50%; top:var(--my); width:15%; height:4.5%;
  transform:translate(-50%,-50%) scaleY(.35); border-radius:50%; pointer-events:none;
  background:radial-gradient(ellipse at center, rgba(255,214,130,.85) 30%, transparent 72%);
  mix-blend-mode:screen; opacity:.55; }
.bkc.speaking .bkc-ava-mouth{ animation:bkcmouth .36s ease-in-out infinite alternate; opacity:.95; }
@keyframes bkcmouth{ from{ transform:translate(-50%,-50%) scaleY(.3); } to{ transform:translate(-50%,-50%) scaleY(1.05); } }
/* the gaze: glances ride the eyes layer; working drops it to the work */
.bkc[data-gaze="left"] .bkc-ava-eyes{ transform:translateX(-9%); }
.bkc[data-gaze="right"] .bkc-ava-eyes{ transform:translateX(9%); }
.bkc.bkc-working .bkc-ava-eyes{ transform:translateY(11%) scale(.94); transition:transform .3s ease; }
.bkc.bkc-working .bkc-ava-head{ animation:bkcwork 2.8s ease-in-out infinite; }
@keyframes bkcwork{ 0%,100%{ transform:translateY(1.6px) rotate(.7deg); }
  50%{ transform:translateY(2.6px) rotate(-.5deg); } }
.bkc.bkc-working .bkc-msgwrap.live .bkc-ava{ filter:brightness(1.07); }

/* --- OUR bottom toolbar ------------------------------------------
   A slim glass row at the very bottom, in the slot Messenger
   keeps theirs. Every tool is a real door into this chat. */
.bkc-toolbar{ display:flex; align-items:stretch; justify-content:space-around; gap:2px;
  margin-top:6px; padding:5px 6px calc(5px + env(safe-area-inset-bottom, 0px));
  background:var(--bkc-glass); border:1px solid var(--bkc-glass-line); border-radius:18px;
  backdrop-filter:blur(16px) saturate(1.1); -webkit-backdrop-filter:blur(16px) saturate(1.1); }
.bkc-tool{ flex:1 1 0; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:1px; padding:5px 2px 3px; border:0; border-radius:13px; background:transparent;
  color:var(--bkc-muted); font:inherit; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.bkc-tool .bkc-ic{ width:21px; height:21px; }
.bkc-tool .bkc-ic svg{ width:21px; height:21px; }
.bkc-tool span{ font-size:9.5px; letter-spacing:.04em; line-height:1.1; }
.bkc-tool-meet{ color:var(--bkc-accent); }

@media (prefers-reduced-motion: reduce){
  .bkc-gl,.bkc-lid,.bkc-ava-mouth{ display:none; }
  .bkc-justsent .bkc-box,.bkc-arrive .bkc-box,.bkc-compose.bkc-sentflash,.bkc-nudge{ animation:none; }
  .bkc-pressing{ transform:none !important; }
  .bkc:not([data-bkc-theme="paper"])::before{ animation:none; }
}

/* --- v10 (Dec 4, 2026): REAL 3D PRESENCE ---------------------------
   Dream's ruling: a flat picture that moves is not a being — depth
   is the bar. The avatar (bk-chat.js avaInner) is now a layered
   stack of the SAME cleaned-master art inside a preserve-3d stage:
   shadow plate and a darkened rim copy behind, the full art as the
   base plate, then clipped copies of that same art — wings, body,
   crown, the eye band (carrying the v9 glints + lids), each
   antenna, the nose — at staggered translateZ depths. The head
   turns with rotateY and bows with rotateX; features shift at
   different rates, so the turn reads in space. The gaze leads
   (eyes .45s), the head follows behind (1.15s + delay). Breathing
   is a depth swell (translateZ). Working leans IN toward the
   viewer with the gaze down. One slow ambient sway; juice stays
   medium-high, never extreme; reduced-motion parks him front. */

/* the stage: perspective on the avatar box, a preserve-3d chain
   inside it (idle sway -> state head -> breathing stage -> layers) */
.bkc .bkc-ava{ perspective:480px; }
.bkc-3dsway,.bkc-3d,.bkc-3dstage{ display:block; position:absolute; inset:0;
  transform-style:preserve-3d; }
.bkc-3dsway{ animation:bkc3dsway 13s ease-in-out infinite alternate; }
@keyframes bkc3dsway{ from{ transform:rotateY(-5.5deg) rotateX(1.6deg) }
  to{ transform:rotateY(5.5deg) rotateX(-1.3deg) } }
.bkc-3d{ --ryu:0; --rxu:0; --lean:0; will-change:transform;
  transform:rotateY(calc(var(--ryu)*1deg)) rotateX(calc(var(--rxu)*1deg))
    translateZ(calc(var(--lean)*1px));
  transition:transform 1.15s cubic-bezier(.25,.8,.3,1) .07s; }
.bkc-3dstage{ animation:bkc3dbreath 4.6s ease-in-out infinite alternate; }
@keyframes bkc3dbreath{ from{ transform:translateZ(-1px) } to{ transform:translateZ(2.5px) } }

/* head states — the gaze engine's hooks, now in space */
.bkc[data-gaze="left"] .bkc-3d{ --ryu:15; --rxu:1; }
.bkc[data-gaze="right"] .bkc-3d{ --ryu:-15; --rxu:1; }
.bkc.bkc-working .bkc-3d{ --ryu:0; --rxu:-13; --lean:8; }
.bkc.speaking .bkc-3d{ --lean:3; }
.bkc.celebrate .bkc-3d{ --lean:5; --rxu:3; }
/* speaking: a small nod rides the breathing stage */
.bkc.speaking .bkc-3dstage, .bkc-msgwrap.live .bkc-3dstage{
  animation:bkc3dnod .92s ease-in-out infinite; }
@keyframes bkc3dnod{ 0%,100%{ transform:translateZ(2px) rotateX(0deg) }
  50%{ transform:translateZ(3px) rotateX(-2.6deg) } }

/* the layers: every one is the same art, clipped to its feature
   (figure values; the mask variant overrides below) */
.bkc-L{ position:absolute; inset:0; pointer-events:none; }
.bkc-L img{ position:absolute; inset:0; }
.bkc-L-shadow{ inset:-7%; transform:translateZ(-26px) scale(1.04);
  background:radial-gradient(50% 50% at 50% 52%, rgba(0,0,0,.62) 0%,
    rgba(0,0,0,.30) 55%, rgba(0,0,0,0) 72%); }
.bkc-L-rim{ transform:translateZ(-10px) scale(1.045); filter:brightness(.55) saturate(.9); }
.bkc-L-base{ transform:translateZ(0px); }
.bkc-L-wingl{ transform:translateZ(3px); clip-path:inset(25% 56% 12% 2%); }
.bkc-L-wingr{ transform:translateZ(3px); clip-path:inset(25% 2% 12% 56%); }
.bkc-L-body{ transform:translateZ(4px); clip-path:inset(55% 39% 5% 35%); }
.bkc-L-crown{ transform:translateZ(6px); clip-path:inset(18% 40% 54% 36%); }
.bkc-L-eyes{ transform:translateZ(9px); clip-path:inset(38% 34% 39% 30%); }
.bkc-L-antl,.bkc-L-antr{ transform-origin:50% 44%;
  animation:bkc3dcurl 7s ease-in-out infinite alternate; }
.bkc-L-antr{ animation-delay:-3.5s; }
@keyframes bkc3dcurl{ from{ transform:translateZ(13px) rotate(-.7deg) }
  to{ transform:translateZ(13.5px) rotate(.9deg) } }
.bkc-L-nose{ transform:translateZ(15px); clip-path:inset(42% 44% 34% 42%); }
/* the required light + the mouth ride in front of the face */
.bkc .bkc-ava-light{ transform:translateZ(19px); }
.bkc .bkc-ava-mouth{ transform:translate(-50%,-50%) translateZ(11px) scaleY(.35); }
@keyframes bkcmouth{ from{ transform:translate(-50%,-50%) translateZ(11px) scaleY(.3); }
  to{ transform:translate(-50%,-50%) translateZ(11px) scaleY(1.05); } }

/* the mask variant: no wings (it is the mask alone); its own bands */
.bkc-ava:not(.bkc-ava-fig) .bkc-L-wingl,
.bkc-ava:not(.bkc-ava-fig) .bkc-L-wingr{ display:none; }
.bkc-ava:not(.bkc-ava-fig) .bkc-L-body{ clip-path:inset(66% 38% 10% 36%); }
.bkc-ava:not(.bkc-ava-fig) .bkc-L-crown{ clip-path:inset(15% 35% 55% 31%); }
.bkc-ava:not(.bkc-ava-fig) .bkc-L-eyes{ clip-path:inset(44% 31% 27% 27%); }
.bkc-ava:not(.bkc-ava-fig) .bkc-L-antl{ clip-path:inset(24% 64% 57% 18%); }
.bkc-ava:not(.bkc-ava-fig) .bkc-L-antr{ clip-path:inset(24% 24% 57% 58%); }
.bkc-ava:not(.bkc-ava-fig) .bkc-L-nose{ clip-path:inset(43% 43% 18% 41%); }
.bkc-ava.bkc-ava-fig .bkc-L-antl{ clip-path:inset(19% 59% 59% 27%); }
.bkc-ava.bkc-ava-fig .bkc-L-antr{ clip-path:inset(19% 32% 59% 54%); }

/* the small message avatars keep a lighter stack (base + eyes +
   nose + shadow still turn in space; the fine layers rest) */
.bkc-ava-msg .bkc-L-wingl,.bkc-ava-msg .bkc-L-wingr,.bkc-ava-msg .bkc-L-crown,
.bkc-ava-msg .bkc-L-antl,.bkc-ava-msg .bkc-L-antr,.bkc-ava-msg .bkc-L-rim{ display:none; }

/* the old flat life retires: no sway/talk/work wiggles on the box,
   no scale-breathe on the art — the 3D stage carries the motion */
.bkc .bkc-ava img{ animation:none; }
.bkc-ava-head{ animation:none; }
.bkc-ava-home{ animation:none; }
.bkc.speaking .bkc-ava-head{ animation:none; }
.bkc.speaking .bkc-ava-home{ animation:none; }
.bkc-msgwrap.live .bkc-ava{ animation:none; }
.bkc.bkc-working .bkc-ava-head{ animation:none; }

@media (prefers-reduced-motion: reduce){
  .bkc-3dsway,.bkc-3dstage,.bkc-L-antl,.bkc-L-antr{ animation:none; }
  .bkc-3d{ transition:none; transform:rotateY(0deg) rotateX(0deg); }
}

/* --- v11 (Dec 4, 2026): REAL 3D BEING (WebGL) ----------------------
   The canvas hosts the volumetric Bee King (bk-bee3d.js). It fades
   in over the layered stack only after its first real frame, and
   the stack stays as poster + fallback underneath. Black stage:
   the honeycomb openings show the black through. */
.bkc-3dcv{ position:absolute; inset:0; width:100%; height:100%; z-index:6;
  opacity:0; transition:opacity .7s ease; pointer-events:none; }
.bkc-ava.bkc-3d-live{ background:#000; }
.bkc-ava.bkc-3d-live .bkc-3dcv{ opacity:1; }
.bkc-ava.bkc-3d-live .bkc-3dsway{ visibility:hidden; }
