/* GOLIVE-CHAT-0927 — live chat, one stylesheet for both faces (Mission Control host panel, Network watch page).
   Byte-identical on both boxes. Scoped to .lcx; light by default, dark under html.fs-dark (the class both faces use).
   Editorial, not bubbly: rows on hairlines, one accent, type does the hierarchy. */
.lcx{--lcx-bg:#fff;--lcx-ink:#1d1d2e;--lcx-sub:#6a6a8b;--lcx-line:#ececf4;--lcx-soft:#f7f6ff;--lcx-acc:#615dfa;--lcx-acc-ink:#514dfa;
  --lcx-live:#e60023;--lcx-ok:#0b7a5b;--lcx-warn:#a14a07;--lcx-warn-bg:#fff7e8;--lcx-danger:#c2255c;--lcx-fld:#fff;
  /* tip tiers: every band carries WHITE text, so each colour holds >= 4.5:1 against #fff (measured by the plate rig) */
  --lcx-t1:#3d63c9;--lcx-t2:#5550e6;--lcx-t3:#0b7a5b;--lcx-t4:#b45309;--lcx-t5:#c2255c;--lcx-t6:#cc0020;
  background:var(--lcx-bg);border:1px solid var(--lcx-line);border-radius:16px;display:flex;flex-direction:column;
  min-width:0;overflow:hidden;font:500 13.5px/1.45 Inter,system-ui,sans-serif;color:var(--lcx-ink);position:relative}
html.fs-dark .lcx{--lcx-bg:#1d1e2b;--lcx-ink:#eef0fb;--lcx-sub:#a5a6bd;--lcx-line:#2e2f44;--lcx-soft:#23243a;--lcx-acc:#8b87ff;
  --lcx-acc-ink:#a9a6ff;--lcx-ok:#5eead4;--lcx-live:#ff7a8f;--lcx-warn:#fbbf24;--lcx-warn-bg:#2b2412;--lcx-danger:#ff8fb4;--lcx-fld:#14161f}
.lcx *{box-sizing:border-box}
.lcx [hidden]{display:none!important}
.lcx button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
.lcx button:focus-visible,.lcx input:focus-visible,.lcx textarea:focus-visible,.lcx select:focus-visible,.lcx a:focus-visible{outline:2px solid var(--lcx-acc);outline-offset:2px;border-radius:6px}
.lcx svg{width:16px;height:16px;flex:none;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* head */
.lcx-h{display:flex;align-items:center;gap:10px;padding:13px 14px 12px 16px;border-bottom:1px solid var(--lcx-line)}
.lcx-t{font:800 11px/1 Inter,sans-serif;letter-spacing:.07em;text-transform:uppercase;color:var(--lcx-sub);display:flex;align-items:center;gap:8px}
.lcx-dot{width:7px;height:7px;border-radius:50%;background:var(--lcx-sub);opacity:.5}
.lcx[data-lcx-live="1"] .lcx-dot{background:var(--lcx-live);opacity:1;animation:lcxP 1.4s infinite}
@keyframes lcxP{50%{opacity:.35}}
@media (prefers-reduced-motion:reduce){.lcx[data-lcx-live="1"] .lcx-dot{animation:none}}
.lcx-state{font:700 11px/1 Inter,sans-serif;color:var(--lcx-sub);padding:5px 8px;border:1px solid var(--lcx-line);border-radius:999px;white-space:nowrap}
.lcx-state.on{color:var(--lcx-live);border-color:currentColor}
.lcx-tabs{margin-left:auto;display:flex;gap:2px;background:var(--lcx-soft);border-radius:9px;padding:2px}
.lcx-tabs button{font:700 11.5px/1 Inter,sans-serif;padding:7px 10px;border-radius:7px;color:var(--lcx-sub);min-height:32px}
.lcx-tabs button[aria-pressed="true"]{background:var(--lcx-bg);color:var(--lcx-ink);box-shadow:0 1px 2px rgba(20,20,40,.08)}
.lcx-tabs b{font-weight:800;color:var(--lcx-warn);margin-left:3px}
.lcx-ib{width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;border-radius:9px;color:var(--lcx-sub)}
.lcx-ib:hover,.lcx-ib[aria-expanded="true"]{background:var(--lcx-soft);color:var(--lcx-ink)}

/* tip tickers (the tips package fills these; empty = hidden) */
.lcx-tick{display:flex;gap:6px;overflow-x:auto;padding:8px 12px;border-bottom:1px solid var(--lcx-line);scrollbar-width:none}
.lcx-tick::-webkit-scrollbar{display:none}
.lcx-tk{flex:none;display:inline-flex;align-items:center;gap:6px;font:700 11.5px/1 Inter,sans-serif;color:#fff;padding:6px 10px 6px 6px;border-radius:999px;background:var(--lcx-tc,var(--lcx-t2));max-width:220px}
.lcx-tk .i{width:20px;height:20px;border-radius:50%;background:rgba(255,255,255,.25);display:inline-flex;align-items:center;justify-content:center;font-size:10px}
.lcx-tk .n{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* pinned */
.lcx-pin{display:flex;gap:10px;align-items:flex-start;padding:10px 14px;border-bottom:1px solid var(--lcx-line);background:var(--lcx-soft)}
.lcx-pin .k{font:800 10px/1 Inter,sans-serif;letter-spacing:.07em;text-transform:uppercase;color:var(--lcx-acc-ink);display:flex;align-items:center;gap:5px;margin-bottom:5px}
.lcx-pin .k svg{width:12px;height:12px}
.lcx-pin .w{min-width:0;flex:1}
.lcx-pin .x{font-weight:600;overflow-wrap:anywhere}
.lcx-pin .by{font-weight:800;margin-right:6px}

/* settings drawer (host) */
.lcx-set{padding:14px 16px;border-bottom:1px solid var(--lcx-line);display:grid;gap:12px;background:var(--lcx-bg)}
.lcx-set label{display:block;font:800 10.5px/1 Inter,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:var(--lcx-sub);margin-bottom:6px}
.lcx-set select,.lcx-set textarea{width:100%;font:500 13px/1.4 Inter,sans-serif;color:var(--lcx-ink);background:var(--lcx-fld);border:1px solid var(--lcx-line);border-radius:9px;padding:9px 10px}
.lcx-set textarea{min-height:64px;resize:vertical}
.lcx-set .hint{font-size:11.5px;color:var(--lcx-sub);margin-top:5px}
.lcx-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.lcx .lcx-btn{font:700 12.5px/1 Inter,sans-serif;padding:10px 14px;border-radius:10px;border:1px solid var(--lcx-line)!important;background:var(--lcx-bg)!important;min-height:38px}
.lcx .lcx-btn.pri{background:var(--lcx-acc)!important;border-color:transparent!important;color:#fff}
html.fs-dark .lcx .lcx-btn.pri{color:#14151f}
.lcx .lcx-btn.warn{color:var(--lcx-danger)}
.lcx-bans{display:grid;gap:6px;max-height:160px;overflow:auto}
.lcx-ban{display:flex;align-items:center;gap:8px;font-size:12.5px}
.lcx-ban .nm{font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lcx-ban .k{color:var(--lcx-sub);font-size:11.5px}
.lcx-ban button{margin-left:auto;font-weight:700;color:var(--lcx-acc-ink);font-size:12px}

/* list */
.lcx-list{list-style:none;margin:0;padding:6px 0;overflow-y:auto;height:440px;overscroll-behavior:contain;scroll-behavior:auto}
.lcx[data-lcx-tab="held"] .lcx-m:not(.held){display:none}
.lcx-m{display:flex;gap:10px;padding:7px 14px 7px 16px;position:relative;align-items:flex-start}
.lcx-m:hover,.lcx-m:focus-within{background:var(--lcx-soft)}
.lcx-av{width:24px;height:24px;border-radius:7px;flex:none;display:inline-flex;align-items:center;justify-content:center;
  font:800 10.5px/1 Inter,sans-serif;color:#fff;background:var(--lcx-avc,#8a8aa6);margin-top:1px}
.lcx-bd{min-width:0;flex:1}
.lcx-mt{display:flex;align-items:center;gap:6px;flex-wrap:wrap;line-height:1.2}
.lcx-nm{font-weight:800;font-size:12.5px;max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lcx-m.host .lcx-nm{color:var(--lcx-acc-ink)}
.lcx-bg{font:800 9.5px/1 Inter,sans-serif;letter-spacing:.05em;text-transform:uppercase;padding:3px 5px;border-radius:4px;
  border:1px solid currentColor;color:var(--lcx-sub)}
.lcx-bg.host{color:#fff;background:var(--lcx-acc);border-color:transparent}
html.fs-dark .lcx-bg.host{color:#14151f}
.lcx-bg.member{color:var(--lcx-ok)}
.lcx-bg.ex{color:var(--lcx-sub);border-style:dashed}
.lcx-bg.src{color:var(--lcx-sub)}
.lcx-tm{font-size:11px;color:var(--lcx-sub);margin-left:2px}
.lcx-tx{margin:2px 0 0;overflow-wrap:anywhere;word-break:break-word;white-space:pre-wrap}
.lcx-m.held .lcx-tx{color:var(--lcx-sub)}
.lcx-hl{font:800 9.5px/1 Inter,sans-serif;letter-spacing:.05em;text-transform:uppercase;color:var(--lcx-warn);background:var(--lcx-warn-bg);padding:3px 5px;border-radius:4px}
.lcx-m.sys{justify-content:center}.lcx-m.sys .lcx-tx{font-size:12px;color:var(--lcx-sub);text-align:center}

/* a tip row: the amount band leads, in its tier colour */
.lcx-m.tip{margin:6px 12px;padding:0;border-radius:12px;overflow:hidden;display:block;background:transparent;border:1px solid var(--lcx-tc,var(--lcx-t2))}
.lcx-m.tip:hover{background:transparent}
.lcx-m.tip .lcx-tb{display:flex;align-items:center;gap:8px;padding:8px 12px;background:var(--lcx-tc,var(--lcx-t2));color:#fff}
.lcx-m.tip .lcx-tb .lcx-nm{color:#fff}
.lcx-m.tip .lcx-tb .lcx-bg{color:#fff;background:transparent;border-color:rgba(255,255,255,.75)}
.lcx-m.tip .lcx-tb .amt{margin-left:auto;font:800 13px/1 Inter,sans-serif}
.lcx-m.tip .lcx-tx{padding:8px 12px 10px;margin:0}
.lcx-m.tip .lcx-tx:empty{display:none}
.lcx .t1{--lcx-tc:var(--lcx-t1)}.lcx .t2{--lcx-tc:var(--lcx-t2)}.lcx .t3{--lcx-tc:var(--lcx-t3)}
.lcx .t4{--lcx-tc:var(--lcx-t4)}.lcx .t5{--lcx-tc:var(--lcx-t5)}.lcx .t6{--lcx-tc:var(--lcx-t6)}

/* host row actions — visible on hover/focus, always on touch */
.lcx-act{display:flex;gap:2px;opacity:0;transition:opacity .12s;position:absolute;right:10px;top:4px;background:var(--lcx-bg);
  border:1px solid var(--lcx-line);border-radius:9px;padding:2px;box-shadow:0 4px 14px -6px rgba(10,10,30,.25)}
.lcx-m.tip .lcx-act{top:40px}
.lcx-m:hover .lcx-act,.lcx-m:focus-within .lcx-act{opacity:1}
@media (hover:none){.lcx-act{opacity:1;position:static;border:0;box-shadow:none;background:transparent;padding:0;align-self:center}}
.lcx-act button{width:32px;height:32px;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;color:var(--lcx-sub)}
.lcx-act button:hover{background:var(--lcx-bg);color:var(--lcx-ink)}
.lcx-act button.dl:hover{color:var(--lcx-danger)}
.lcx-act button.ok{width:auto;padding:0 8px;font:800 11px/1 Inter,sans-serif;color:var(--lcx-ok)}
.lcx-menu{position:absolute;right:12px;top:34px;z-index:5;background:var(--lcx-bg);border:1px solid var(--lcx-line);border-radius:11px;
  box-shadow:0 14px 40px -14px rgba(10,10,30,.35);padding:5px;min-width:188px}
.lcx-menu button{display:block;width:100%;text-align:left;padding:9px 10px;border-radius:7px;font-weight:600;font-size:12.5px}
.lcx-menu button:hover{background:var(--lcx-soft)}
.lcx-menu .sep{height:1px;background:var(--lcx-line);margin:4px 2px}
.lcx-menu .ban{color:var(--lcx-danger)}
.lcx-menu .cap{font:800 10px/1 Inter,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:var(--lcx-sub);padding:8px 10px 4px}

.lcx-empty{padding:28px 20px;text-align:center;color:var(--lcx-sub);font-size:13px;line-height:1.55}
.lcx-empty b{display:block;color:var(--lcx-ink);font-size:14px;margin-bottom:4px}
.lcx-new{position:absolute;left:50%;transform:translateX(-50%);bottom:74px;background:var(--lcx-ink);color:var(--lcx-bg);
  font:700 12px/1 Inter,sans-serif;padding:9px 13px;border-radius:999px;box-shadow:0 8px 24px -8px rgba(0,0,0,.4)}
.lcx .lcx-new{color:var(--lcx-bg)}

/* composer */
.lcx-note{padding:9px 14px;font-size:12.5px;color:var(--lcx-warn);background:var(--lcx-warn-bg);border-top:1px solid var(--lcx-line)}
.lcx-f{display:flex;gap:8px;align-items:center;padding:10px 12px;border-top:1px solid var(--lcx-line)}
.lcx-in{flex:1;min-width:0;font:500 14px/1.3 Inter,sans-serif;color:var(--lcx-ink);background:var(--lcx-fld);border:1px solid var(--lcx-line);
  border-radius:11px;padding:11px 12px;min-height:44px}
.lcx-in:focus{border-color:var(--lcx-acc);outline:0}
.lcx-n{font:600 11px/1 Inter,sans-serif;color:var(--lcx-sub);min-width:44px;text-align:right}
.lcx-n.over{color:var(--lcx-danger)}
.lcx-send{min-width:44px;height:44px;border-radius:11px;background:var(--lcx-acc)!important;color:#fff!important;display:inline-flex;align-items:center;justify-content:center;padding:0 14px!important;font:700 13px/1 Inter,sans-serif}
html.fs-dark .lcx-send{color:#14151f!important}
.lcx-send:disabled{opacity:.5;cursor:default}
.lcx-gate{padding:13px 14px;border-top:1px solid var(--lcx-line);font-size:13px;color:var(--lcx-sub);display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.lcx-gate a{font-weight:800;color:#fff;background:var(--lcx-acc);text-decoration:none;display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;padding:0 16px;border-radius:11px}
html.fs-dark .lcx-gate a{color:#14151f}
.lcx-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* touch: every control reaches 44 px (WCAG 2.5.5 target size on the phone) */
@media (hover:none),(max-width:640px){
  .lcx-act button,.lcx-ib{width:44px;height:44px}.lcx-act button.ok{height:44px}
  .lcx-tabs button,.lcx-btn{min-height:44px;min-width:44px}.lcx-menu button{min-height:44px}.lcx-pin button{width:44px;height:44px}
  .lcx-ban button{min-height:44px;padding:0 10px}
}
@media (max-width:640px){
  .lcx-list{height:min(56vh,420px)}
  .lcx-h{padding:11px 10px 10px 12px;gap:8px}
  .lcx-m{padding:7px 10px 7px 12px}
}
