/* parentchat.css - Grok Bot 2026-10-26 (Chris 15:16): parent chat panel on Lia's dashboard (parentchat.js).
   EVERY rule is scoped under .gbpc (the chips box and the panel both carry it) - no global selectors, so nothing here can
   change the dashboard's own fonts or layout. Tablet landscape first (1280x800). */
.gbpc { box-sizing: border-box; font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif; color: #e8eaed; }
.gbpc *, .gbpc *::before, .gbpc *::after { box-sizing: border-box; }
.gbpc button { font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* --- the Sophia / Lia chips (in the header, after the title) --- */
.gbpc.gbpc-chips { display: inline-flex; gap: 10px; height: 22px; align-items: center; flex: none; margin: 0 0 0 14px; vertical-align: middle; }
.gbpc .gbpc-chip { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 22px; margin: -2px 0; padding: 0 12px 0 8px;
  border-radius: 11px; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.22); color: #fff; font-size: 13px; font-weight: 700; line-height: 1; white-space: nowrap; }
.gbpc .gbpc-chip:hover { background: rgba(0,0,0,.35); }
.gbpc .gbpc-chip.sel { background: #fff; color: #185c37; border-color: #fff; }
.gbpc .gbpc-dot { width: 10px; height: 10px; border-radius: 50%; background: #8a9099; box-shadow: 0 0 0 2px rgba(0,0,0,.25); flex: none; }
.gbpc .gbpc-on .gbpc-dot, .gbpc .gbpc-dot.on { background: #3ddc84; }
.gbpc .gbpc-badge { position: absolute; top: -7px; right: -7px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: #e03131; color: #fff; font-size: 11.5px; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px #185c37; }
.gbpc .gbpc-badge[hidden] { display: none; }

/* --- the panel: left side, a quarter of the screen wide --- */
.gbpc.gbpc-panel { position: fixed; left: 0; top: 60px; width: 25vw; min-width: 300px; height: 600px; z-index: 60;
  display: flex; flex-direction: column; background: #1f2226; border: 1px solid #3b3f45; border-left: 0; border-radius: 0 12px 12px 0;
  box-shadow: 6px 0 24px rgba(0,0,0,.45); font-size: 14px; line-height: 1.35; overflow: hidden; }
.gbpc.gbpc-panel[hidden] { display: none; }
.gbpc .gbpc-head { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 10px 6px 14px; background: #185c37; color: #fff; }
.gbpc .gbpc-title { flex: 1; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gbpc .gbpc-sub { font-size: 12px; font-weight: 400; color: #cfeedd; }
.gbpc .gbpc-x { width: 36px; height: 36px; border: 0; border-radius: 18px; background: rgba(0,0,0,.25); color: #fff; font-size: 22px; line-height: 1; }

/* top row: Push to talk + Keyboard */
.gbpc .gbpc-acts { flex: none; display: flex; gap: 8px; padding: 10px; border-bottom: 1px solid #33373c; }
.gbpc .gbpc-ptt { flex: 1 1 auto; min-height: 64px; border: 0; border-radius: 14px; background: #2eaa6a; color: #fff; font-size: 16px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; gap: 8px; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.gbpc .gbpc-ptt .gbpc-mic { font-size: 24px; }
.gbpc .gbpc-ptt.rec { background: #e03131; animation: gbpcPulse 1s infinite; }
.gbpc .gbpc-ptt:disabled { opacity: .5; }
@keyframes gbpcPulse { 50% { box-shadow: 0 0 0 6px rgba(224,49,49,.35); } }
.gbpc .gbpc-kbd { flex: 0 0 74px; min-height: 64px; border: 1px solid #4a4f56; border-radius: 14px; background: #2c3035; color: #fff; font-size: 26px; }
.gbpc .gbpc-kbd.on { background: #6b5bd2; border-color: #6b5bd2; }
.gbpc .gbpc-compose { flex: none; display: flex; gap: 6px; padding: 8px 10px; border-bottom: 1px solid #33373c; background: #23262a; }
.gbpc .gbpc-compose[hidden] { display: none; }
.gbpc .gbpc-input { flex: 1; min-width: 0; resize: none; height: 46px; padding: 8px 10px; border: 1px solid #4a4f56; border-radius: 10px;
  background: #15171a; color: #fff; font: 15px/1.3 "Segoe UI", system-ui, sans-serif; }
.gbpc .gbpc-send { flex: none; padding: 0 16px; border: 0; border-radius: 10px; background: #2eaa6a; color: #fff; font-size: 15px; font-weight: 800; }
.gbpc .gbpc-note { flex: none; min-height: 0; padding: 0 12px; font-size: 12.5px; color: #9da3ab; }
.gbpc .gbpc-note:not(:empty) { padding: 5px 12px; }
.gbpc .gbpc-note.ok { color: #5fd39a; } .gbpc .gbpc-note.warn { color: #f2c14e; }

/* the chat list: one row per child */
.gbpc .gbpc-list { flex: 0 1 auto; min-height: 0; overflow-y: auto; border-bottom: 1px solid #33373c; }
.gbpc .gbpc-row { display: flex; width: 100%; align-items: center; gap: 10px; padding: 8px 12px; border: 0; border-bottom: 1px solid #2a2d31; background: transparent; color: inherit; text-align: left; }
.gbpc .gbpc-row:last-child { border-bottom: 0; }
.gbpc .gbpc-row:hover { background: #262a2f; }
.gbpc .gbpc-row.sel { background: #1d3b2c; }
.gbpc .gbpc-av { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; background: #6b5bd2; color: #fff; font-size: 18px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; }
.gbpc .gbpc-av .gbpc-dot { position: absolute; right: -1px; bottom: -1px; box-shadow: 0 0 0 2px #1f2226; }
.gbpc .gbpc-rbody { flex: 1; min-width: 0; }
.gbpc .gbpc-rtop { display: flex; gap: 6px; align-items: baseline; }
.gbpc .gbpc-rname { flex: 1; font-weight: 700; font-size: 15px; color: #fff; }
.gbpc .gbpc-rtime { font-size: 11.5px; color: #9da3ab; }
.gbpc .gbpc-rprev { font-size: 12.5px; color: #9da3ab; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gbpc .gbpc-row .gbpc-badge { position: static; box-shadow: none; flex: none; }

/* the open thread */
.gbpc .gbpc-thread { flex: 1 1 0; min-height: 0; overflow-y: auto; padding: 10px 10px 14px; display: flex; flex-direction: column; gap: 6px; background: #181a1d; }
.gbpc .gbpc-empty { margin: auto; color: #7d838b; font-size: 13px; text-align: center; }
.gbpc .gbpc-msg { max-width: 86%; padding: 7px 10px 5px; border-radius: 14px 14px 14px 4px; background: #2f3338; color: #f1f3f5; align-self: flex-start; word-wrap: break-word; }
.gbpc .gbpc-msg.mine { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: #1f6e44; }
.gbpc .gbpc-msg.unread { box-shadow: 0 0 0 2px #e03131; }
.gbpc .gbpc-txt { font-size: 14.5px; }
.gbpc .gbpc-meta { display: flex; gap: 6px; justify-content: flex-end; font-size: 11px; color: rgba(255,255,255,.6); margin-top: 3px; }
.gbpc .gbpc-meta .w { color: #f2c14e; } .gbpc .gbpc-meta .d { color: #b7f0cf; }
.gbpc .gbpc-play { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 18px; background: #6b5bd2; color: #fff; font-size: 14px; font-weight: 700; }
.gbpc .gbpc-play.playing { background: #e67700; }
.gbpc .gbpc-new { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 8px; background: #e03131; color: #fff; font-size: 10.5px; font-weight: 800; vertical-align: 1px; }
.gbpc .gbpc-test { margin-left: 4px; font-size: 10px; color: #f2c14e; }

/* drag handle on the bottom edge: hold and slide up / down */
.gbpc .gbpc-grip { flex: none; height: 18px; display: flex; align-items: center; justify-content: center; background: #2c3035; border-top: 1px solid #3b3f45;
  cursor: ns-resize; touch-action: none; user-select: none; -webkit-user-select: none; }
.gbpc .gbpc-grip i { display: block; width: 46px; height: 5px; border-radius: 3px; background: #7d838b; }
.gbpc .gbpc-grip:hover i, .gbpc.gbpc-drag .gbpc-grip i { background: #33c481; }
/* Grok Bot 2026-10-26 (Chris 18:22 "the chat list should be less large, the L or S etc."): compact chat list - smaller letter
   circles and tighter rows; each row stays at least 44 px tall so it is still easy to tap on a tablet. */
.gbpc .gbpc-row { gap: 8px; padding: 4px 10px; min-height: 44px; }
.gbpc .gbpc-av { width: 28px; height: 28px; font-size: 13px; }
.gbpc .gbpc-av .gbpc-dot { width: 8px; height: 8px; right: -2px; bottom: -2px; }
.gbpc .gbpc-rname { font-size: 13.5px; }
.gbpc .gbpc-rtop { line-height: 1.2; }
.gbpc .gbpc-rprev { font-size: 12px; line-height: 1.2; }
.gbpc .gbpc-row .gbpc-badge { min-width: 16px; height: 16px; line-height: 16px; font-size: 10.5px; }

/* Grok Bot 2026-10-26 18:51 (Chris: "row height not too tall, they need to see more message rows"): the group chat, compact rows */
.gbpc .gbpc-thread:has(.grp) { gap: 2px; padding: 6px 8px 10px; }
.gbpc .gbpc-msg.grp { max-width: 92%; padding: 2px 8px 3px; border-radius: 10px 10px 10px 3px; line-height: 1.25; }
.gbpc .gbpc-msg.grp.mine { border-radius: 10px 10px 3px 10px; }
.gbpc .gbpc-msg.grp .gbpc-txt { font-size: 15px; line-height: 1.25; }
.gbpc .gbpc-gl { display: flex; gap: 6px; align-items: baseline; font-size: 11px; line-height: 1.2; color: rgba(255,255,255,.62); }
.gbpc .gbpc-gl b { color: #ffd166; font-weight: 800; } .gbpc .gbpc-msg.grp.mine .gbpc-gl b { color: #c3fae8; }
.gbpc .gbpc-msg.grp .gbpc-play { min-height: 24px; padding: 0 10px; border-radius: 12px; font-size: 13px; margin: 1px 0; }
.gbpc .gbpc-msg.grp .gbpc-new { font-size: 9.5px; }
