/* The Duo page — Stage A (ticket og-duo-page-ticket-2026-10-23).
   A SWITCHED screen, never a layer: while body.og-duo-on is set,
   the Duo page is the only screen — the app is hidden around the
   ancestor chain (the fix-round-2 showcase rule), never stacked
   under or over the page. Both talking pictures present in
   seamless circles — no square edges — still until a call
   starts; the clips are muted on purpose, the live voices come
   from the voice stack. The reconnect chip rides at z-9600;
   this page rides at 9900 like the call showcase, so the chip
   can never sit on the call buttons. */

/* --- screen switch (mirrors body.og-showcase-on) --- */
body.og-duo-on{overflow:hidden}
body.og-duo-on > :not(.chat-wrapper):not(script):not(style):not(link){display:none!important}
body.og-duo-on .chat-container > :not(#ogDuoPage){display:none!important}

#ogDuoPage{position:fixed;inset:0;z-index:9900;background:#000;color:#ececec;display:flex;flex-direction:column;font-family:inherit}
#ogDuoPage[hidden]{display:none}

/* --- header: title left, call cluster top-right (owner
   placement law 2026-11-01: the phone buttons live at the top,
   on the right, labeled with who's being called) --- */
.og-duo-head{flex:0 0 auto;display:flex;align-items:center;gap:10px;padding:10px 12px calc(6px + env(safe-area-inset-top));padding-top:calc(10px + env(safe-area-inset-top))}
.og-duo-x{width:42px;height:42px;flex:0 0 auto;border-radius:50%;border:1px solid #333;background:#1b1b1b;color:#e8e8e8;display:grid;place-items:center;cursor:pointer;padding:0}
.og-duo-x svg{width:20px;height:20px}
.og-duo-x:hover{border-color:rgba(255,193,7,.7);color:#ffc107}
.og-duo-title{font-size:1.25rem;font-weight:700;color:#f5f5f5;letter-spacing:.3px;display:flex;align-items:center;gap:8px;margin-right:auto}
/* the site's own badge language (styles.css .age-badge: gold
   pill, near-black text) — sized up a touch for the header */
.og-duo-title .age-badge{font-size:.68rem;margin-left:0}
.og-duo-calls{flex:0 0 auto;display:flex;gap:8px}
.og-duo-call{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:9px 15px;border-radius:999px;border:1.5px solid rgba(255,193,7,.65);background:#141414;color:#ffc107;font-family:inherit;font-size:.95rem;font-weight:700;cursor:pointer}
.og-duo-call svg{width:17px;height:17px;flex:0 0 auto}
.og-duo-call:hover{box-shadow:0 0 0 3px rgba(255,193,7,.22)}
.og-duo-call.on{background:linear-gradient(135deg,#ffc107,#ff8f00);color:#111;border-color:transparent;box-shadow:0 0 16px rgba(255,193,7,.45)}
.og-duo-state{flex:0 0 auto;text-align:center;color:#a8a8a8;font-size:.82rem;min-height:1.1em;padding:0 16px 2px}
/* three call buttons share the cluster now (the Both button,
   amendment 2026-11-01): below 460px the cluster compacts so
   X + title + all three buttons stay on one line. Tightened
   again 2026-11-16: at 390px it fit, but on a 375px phone
   the row still needed ~385px and the Both button clipped
   off the right edge (owner's drill) — smaller title,
   tighter buttons and gaps bring the row under 375px. */
@media (max-width:460px){
  .og-duo-head{gap:6px;padding-left:10px;padding-right:10px}
  .og-duo-title{font-size:1.08rem}
  .og-duo-calls{gap:6px}
  .og-duo-call{padding:8px 9px;font-size:.88rem;gap:5px}
  .og-duo-call svg{width:16px;height:16px}
}

/* --- stage: the two circles, facing each other --- */
.og-duo-stage{flex:0 0 auto;display:flex;align-items:flex-start;justify-content:center;gap:18px;padding:10px 16px 2px}
.og-duo-seat{margin:0;display:flex;flex-direction:column;align-items:center;gap:7px}
.og-duo-seat figcaption{font-weight:700;font-size:.95rem;color:#f2f2f2;letter-spacing:.3px}
.og-duo-circle{display:block;border-radius:50%;overflow:hidden;background:#000;box-shadow:inset 0 0 0 3px #ffc107,inset 0 0 18px rgba(255,193,7,.22),0 0 24px rgba(255,193,7,.30)}
.og-duo-circle video{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 12%;background:#000}
/* solo: Allie holds the stage alone — as a MEDALLION the
   same size OG wears on his first page (owner's drill
   2026-11-16: the 164px circle was "way too big" and did
   not look like OG's first page). OG's first page presents
   him at rest as the 63px round medallion in
   #ogTopAvatarBar (.og-top-ava, og_chat_board.css), name
   underneath, centered — so her circle is that medallion:
   63px, name underneath (figcaption), centered on stage.
   The 2026-11-15 round capped her at 164px off #ogShowcase,
   but that card is hidden at rest (it is the call PiP) —
   the wrong reference; 63px is the size Brent sees. */
.og-duo-solo .og-duo-seat-allie .og-duo-circle{width:63px;height:63px}
/* duo: both up, medallions side by side. Fix round
   2026-11-01 (defect 3 — the drill: the in-call pill sat ON
   OG's portrait): with both seats up the stage reserves a
   right RAIL for the pill (padding-right) and the seats
   flex to share what is left, so the stage's top-right
   corner — where og_callstage parks the pill — is clear
   of both portraits by construction, at any width.
   2026-11-16 (owner's drill): the pair are 63px medallions
   — OG's first-page size (#ogTopAvatarBar .og-top-ava) —
   not the 164px circles the 2026-11-15 round shipped off
   the hidden call card. The left padding mirrors the rail
   so the pair sits centered as a group, the way OG's
   medallion sits centered on his page. */
.og-duo-duo .og-duo-stage{padding-right:84px;padding-left:84px}
.og-duo-duo .og-duo-seat{flex:1 1 0;min-width:0}
.og-duo-duo .og-duo-circle{width:100%;max-width:63px;height:auto;aspect-ratio:1/1}
/* Her/his OWN status line, under their OWN name (defect 4):
   og_callstage.js fills these per seat from that seat's
   real state; the shared line above the stage carries only
   call-level news (muted, a dead mic in this browser). */
.og-cs-seat-status{min-height:1.15em;font-size:.8rem;font-weight:600;color:#ffc107;text-align:center;letter-spacing:.2px}
/* Attention (aliveness standard): when a turn lands and she
   is not the one working, the listener visibly attends —
   the ring warms and the portrait leans in a touch while
   her idle clip keeps moving underneath. */
.og-duo-seat[data-cs="attentive"] .og-duo-circle{filter:brightness(1.1);transform:scale(1.03);transition:transform .25s ease,filter .25s ease;box-shadow:inset 0 0 0 3px #ffc107,inset 0 0 18px rgba(255,193,7,.30),0 0 34px rgba(255,193,7,.55)}
.og-duo-seat .og-duo-circle{transition:transform .25s ease,filter .25s ease}
/* OG sits on the right and his picture is mirrored, so the two
   of them face each other across the stage */
#ogDuoOgVideo{transform:scaleX(-1)}
/* OG's entrance: he walks into the room, he doesn't pop */
.og-duo-seat-og{transition:opacity .45s ease,transform .45s ease}
.og-duo-seat-og:not(.in){opacity:0;transform:translateX(26px) scale(.92)}
@media (prefers-reduced-motion: reduce){
  .og-duo-seat-og{transition:none}
}

.og-duo-greet{flex:0 0 auto;margin:8px auto 0;max-width:520px;padding:0 22px;text-align:center;color:#bcbcbc;line-height:1.5;font-size:.98rem}

/* --- her voice pick --- */
.og-duo-voicebar{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;padding:8px 16px 0}
#ogDuoVoiceBtn{border:1px solid #2b2b2b;background:#141414;color:#e8e8e8;border-radius:999px;padding:8px 16px;font-family:inherit;font-size:.9rem;cursor:pointer;min-height:40px}
#ogDuoVoiceBtn:hover{border-color:rgba(255,193,7,.7);color:#ffc107}
#ogDuoVoiceList{width:100%;max-width:520px;margin-top:8px;background:#101010;border:1px solid #262626;border-radius:16px;padding:6px 10px;max-height:38vh;overflow-y:auto}
#ogDuoVoiceList[hidden]{display:none}
.og-duo-voice-row{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:transparent;border:none;border-top:1px solid #1e1e1e;padding:11px 2px;font-family:inherit;color:#ececec;cursor:pointer;min-height:44px}
.og-duo-voice-row:first-child{border-top:none}
.og-duo-voice-row.cur{background:rgba(255,214,10,.07)}
.og-duo-voice-row.off{opacity:.55}
.og-duo-voice-name{flex:1;font-weight:700}
.og-duo-voice-tag{font-size:.75rem;font-weight:700;color:#ffc107;border:1px solid rgba(255,193,7,.55);border-radius:999px;padding:2px 8px}
.og-duo-voice-note{color:#999;font-size:.88em;line-height:1.5;padding:6px 0;margin:0}

/* --- the Duo thread (text only, like chat) --- */
/* box-sizing on the thread + composer below is load-bearing:
   these classes are reused by allie.html, which does NOT load
   styles.css and its global *{box-sizing:border-box} — with
   content-box sizing, width:100% + side padding rendered the
   thread and composer 24px wider than the phone and pushed
   the send button off the right edge (owner's drill
   2026-11-16). The components carry their own sizing now. */
.og-duo-thread{flex:1 1 auto;overflow-y:auto;min-height:0;width:100%;max-width:640px;margin:0 auto;padding:12px 16px;display:flex;flex-direction:column;gap:10px;box-sizing:border-box}
.og-duo-msg{max-width:86%;padding:9px 13px;border-radius:16px;background:#171717;border:1px solid #262626;line-height:1.45}
.og-duo-msg-name{font-size:.72rem;font-weight:700;letter-spacing:1.1px;text-transform:uppercase;margin-bottom:3px}
.og-duo-msg-user{align-self:flex-end;background:rgba(255,193,7,.10);border-color:rgba(255,193,7,.35)}
.og-duo-msg-user .og-duo-msg-name{color:#ffc107}
.og-duo-msg-og{align-self:flex-start}
.og-duo-msg-og .og-duo-msg-name{color:#ffc107}
.og-duo-msg-allie{align-self:flex-start;border-color:rgba(255,143,171,.35)}
.og-duo-msg-allie .og-duo-msg-name{color:#ff8fab}
.og-duo-msg-sys{align-self:center;background:transparent;border:none;color:#999;font-size:.88rem;text-align:center}
.og-duo-msg-text{white-space:pre-wrap;word-break:break-word}

/* --- composer --- */
.og-duo-composer{flex:0 0 auto;display:flex;align-items:center;gap:8px;width:100%;max-width:640px;margin:0 auto;padding:10px 14px calc(12px + env(safe-area-inset-bottom));box-sizing:border-box}
#ogDuoInput{flex:1 1 auto;min-width:0;background:#171717;border:1px solid #333;border-radius:999px;color:#ececec;font-family:inherit;font-size:1rem;padding:12px 18px;min-height:46px}
#ogDuoInput:focus{outline:none;border-color:rgba(255,193,7,.7)}
#ogDuoSend{width:46px;height:46px;flex:0 0 auto;border-radius:50%;border:none;background:linear-gradient(135deg,#ffc107,#ff8f00);color:#111;display:grid;place-items:center;cursor:pointer;padding:0}
#ogDuoSend svg{width:20px;height:20px}
#ogDuoSend:disabled{opacity:.5;cursor:default}


/* Muse-style live-call picture-in-picture: keep the Duo thread and composer
   in view, with the speaking portraits and shared controls in a compact
   midnight-blue card at the lower right. */
.og-duo-calling .og-duo-greet,
.og-duo-calling .og-duo-voicebar{display:none}
/* Call bump (owner's law 2026-11-15): .og-duo-calling is set
   by og_callstage.js only while a call is live on this page,
   so these sizes ARE the call-state sizes — the card (and
   both figures in it, flex-equal as always) stands +12%
   bigger than OG's normal 164px showcase box, the same bump
   og_talking.css gives his solo call showcase under
   body.og-showcase-on. */
.og-duo-calling .og-duo-stage{
  position:fixed;left:auto;top:auto;right:clamp(12px,2.6vw,24px);
  bottom:calc(136px + env(safe-area-inset-bottom));z-index:10000;
  display:flex;align-items:stretch;justify-content:center;gap:5px;
  box-sizing:border-box;width:min(202px,49vw);height:min(280px,40vh);
  min-height:235px;padding:8px 8px 56px;margin:0;overflow:visible;
  border:1px solid rgba(141,184,255,.58);border-radius:22px;
  background:linear-gradient(155deg,#1b315b 0%,#101d39 64%,#0a142b 100%);
  box-shadow:0 18px 42px rgba(0,7,24,.55),0 0 22px rgba(69,145,255,.2)
}
.og-duo-calling .og-duo-seat{
  display:flex;flex:1 1 0;align-self:stretch;align-items:stretch;
  justify-content:flex-start;min-width:0;min-height:0;height:100%;
  gap:4px;overflow:hidden
}
.og-duo-calling .og-duo-seat:not([data-cs]){display:none}
.og-duo-calling .og-duo-seat figcaption{
  flex:0 0 auto;font-size:.68rem;line-height:1.15;color:#f3f7ff;
  text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
.og-duo-calling .og-duo-seat .og-duo-circle{
  flex:1 1 auto;width:100%;height:auto;max-width:none;min-height:0;
  aspect-ratio:auto;border-radius:14px;overflow:hidden;
  background:#132342;box-shadow:inset 0 0 0 1px rgba(141,184,255,.35)
}
.og-duo-calling .og-duo-circle video,
.og-duo-calling .og-cs-still,
.og-duo-calling .og-cs-act,
.og-duo-calling .og-duo-circle video.og-cs-clip{border-radius:13px!important}
.og-duo-calling .og-duo-seat[data-cs="speaking"] .og-duo-circle{
  box-shadow:inset 0 0 0 2px #8db8ff,0 0 18px rgba(69,145,255,.4)
}
.og-duo-calling .og-cs-seat-status{
  flex:0 0 auto;min-height:1.05em;font-size:.62rem;color:#d4e5ff;
  line-height:1.1;text-align:center;white-space:nowrap
}
.og-duo-calling #ogCsDuoStatus{
  position:fixed;right:clamp(12px,2.6vw,24px);
  bottom:calc(136px + env(safe-area-inset-bottom) + 49px);
  z-index:10001;width:min(202px,49vw);min-height:1.05em;
  box-sizing:border-box;padding:0 6px;text-align:center;
  color:#d4e5ff;font-size:.62rem;line-height:1.05;pointer-events:none
}
.og-duo-calling .og-duo-calls{position:relative;z-index:1}
@media(max-width:540px){
  .og-duo-calling .og-duo-stage{
    right:10px;bottom:calc(126px + env(safe-area-inset-bottom));
    width:min(184px,52vw);height:min(260px,38vh);min-height:228px;
    padding:7px 7px 52px
  }
  .og-duo-calling #ogCsDuoStatus{
    right:10px;bottom:calc(126px + env(safe-area-inset-bottom) + 45px);
    width:min(184px,52vw)
  }
}


/* Matching text-chat treatment for OG Duo: centered transcript, clear
   speaker labels, and the same midnight-blue composer used by the main chat. */
#ogDuoPage{background:linear-gradient(180deg,#0c1930 0%,#091426 58%,#081224 100%);color:#edf4ff}
#ogDuoPage .og-duo-head{background:linear-gradient(180deg,rgba(10,24,46,.96),rgba(10,24,46,.72));border-bottom:1px solid rgba(141,184,255,.16)}
#ogDuoPage .og-duo-x{
  border-color:rgba(141,184,255,.32);background:#142846;color:#dce9fb
}
#ogDuoPage .og-duo-x:hover{border-color:#8db8ff;color:#fff}
#ogDuoPage .og-duo-title{color:#f3f7ff}
#ogDuoPage .og-duo-call{
  border-color:rgba(141,184,255,.42);background:#142846;color:#cfe2ff
}
#ogDuoPage .og-duo-call:hover{box-shadow:0 0 0 3px rgba(141,184,255,.15)}
#ogDuoPage .og-duo-call.on{
  border-color:transparent;background:linear-gradient(135deg,#9ac4ff,#5f93d7);
  color:#0b1b33;box-shadow:0 0 16px rgba(95,147,215,.28)
}
#ogDuoPage .og-duo-state{color:#a9bfdc}
#ogDuoPage:not(.og-duo-calling) .og-duo-stage{background:transparent}
#ogDuoPage:not(.og-duo-calling) .og-duo-circle{
  background:#142846;border-radius:50%;
  box-shadow:inset 0 0 0 1px rgba(141,184,255,.38),0 12px 30px rgba(0,7,24,.28)
}
#ogDuoPage:not(.og-duo-calling) .og-duo-circle video{border-radius:50%}
#ogDuoPage .og-duo-seat figcaption{color:#edf4ff}
#ogDuoPage .og-duo-seat[data-cs="speaking"] figcaption{color:#a9ceff}
#ogDuoPage .og-cs-seat-status{color:#b8d4fa}
#ogDuoPage .og-duo-greet{color:#bdcde4}
#ogDuoPage .og-duo-voicebar{background:transparent}
#ogDuoPage #ogDuoVoiceBtn{
  border-color:rgba(141,184,255,.28);background:#122541;color:#d9e9ff
}
#ogDuoPage #ogDuoVoiceBtn:hover{border-color:#8db8ff;color:#fff}
#ogDuoPage #ogDuoVoiceList{
  background:#12213b;border-color:rgba(141,184,255,.24)
}
#ogDuoPage .og-duo-voice-row{color:#e6efff;border-color:rgba(141,184,255,.14)}
#ogDuoPage .og-duo-voice-row.cur{background:rgba(96,151,220,.12)}
#ogDuoPage .og-duo-voice-tag{color:#c4dcff;border-color:rgba(141,184,255,.42)}
#ogDuoPage .og-duo-thread{
  max-width:720px;padding:16px clamp(14px,3vw,26px);gap:14px;
  scrollbar-color:#385b8b transparent
}
#ogDuoPage .og-duo-msg{
  max-width:min(86%,680px);padding:11px 15px;border-radius:18px 18px 18px 5px;
  background:#172b49;border:1px solid rgba(141,184,255,.2);
  color:#edf4ff;line-height:1.6;box-shadow:0 6px 18px rgba(0,7,24,.16)
}
#ogDuoPage .og-duo-msg-user{
  align-self:flex-end;border-color:rgba(141,184,255,.34);
  border-radius:18px 5px 18px 18px;background:linear-gradient(145deg,#285489,#1c416f)
}
#ogDuoPage .og-duo-msg-user .og-duo-msg-name,
#ogDuoPage .og-duo-msg-og .og-duo-msg-name{color:#c8ddff}
#ogDuoPage .og-duo-msg-allie{border-color:rgba(170,158,255,.3)}
#ogDuoPage .og-duo-msg-allie .og-duo-msg-name{color:#c5baff}
#ogDuoPage .og-duo-msg-sys{color:#9fb4d2}
#ogDuoPage .og-duo-composer{
  max-width:720px;padding:10px 14px calc(12px + env(safe-area-inset-bottom))
}
#ogDuoPage #ogDuoInput{
  border-color:rgba(141,184,255,.34);background:linear-gradient(135deg,#142847,#10203b);
  color:#f1f6ff;box-shadow:none
}
#ogDuoPage #ogDuoInput:focus{border-color:#8db8ff}
#ogDuoPage #ogDuoInput::placeholder{color:#9db3d2;opacity:1}
#ogDuoPage #ogDuoSend{background:linear-gradient(135deg,#9ac4ff,#5f93d7);color:#0b1b33}
#ogDuoPage #ogDuoSend:hover{background:linear-gradient(135deg,#b4d3ff,#78a8e7)}
@media(max-width:640px){
  #ogDuoPage .og-duo-thread{padding-left:12px;padding-right:12px}
  #ogDuoPage .og-duo-msg{max-width:92%}
  #ogDuoPage .og-duo-composer{padding-left:12px;padding-right:12px}
}
