* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0e0b10;
  --panel: #17131c;
  --panel-2: #221c29;
  --border: #332a3d;
  --text: #f0eaf4;
  --muted: #94899f;
  --accent: #ef5b3f;
  --accent-hover: #d94a30;
  --red: #ef4444;
  --gold: #f0b429;
  --green: #22c55e;
  --shadow: rgba(0, 0, 0, 0.45);
}

:root[data-theme="light"] {
  --bg: #f7f5f8;
  --panel: #ffffff;
  --panel-2: #efecf2;
  --border: #ddd6e2;
  --text: #241d2b;
  --muted: #6f6579;
  --accent: #e04b2f;
  --accent-hover: #c33d24;
  --red: #dc2626;
  --gold: #b57f0a;
  --green: #15803d;
  --shadow: rgba(36, 29, 43, 0.12);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  transition: background 0.2s, color 0.2s;
}

.wordmark {
  background: linear-gradient(100deg, #f59e0b, #ef4444);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  padding: 0;
  font-size: 0.95rem;
  line-height: 1;
  flex-shrink: 0;
}
.theme-toggle:hover { background: var(--panel-2); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

.screen { display: none; }
.screen.active { display: block; }
.hidden { display: none !important; }
.muted { color: var(--muted); }

input {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 10px 12px;
  font-size: 1rem;
  width: 100%;
}
input:focus { outline: 2px solid var(--accent); border-color: transparent; }

button {
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.15s;
}
button.primary { background: var(--accent); color: white; }
button.primary:hover { background: var(--accent-hover); }
button.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
button.ghost:hover { background: var(--panel-2); }
button.danger { background: var(--red); color: white; }
button.small { padding: 6px 12px; font-size: 0.85rem; }
button.live-btn { background: var(--red); color: white; }
button.live-btn:hover { filter: brightness(1.1); }

.error { margin-top: 16px; color: var(--red); font-weight: 600; }

/* ---------- Age gate & go-live forms ---------- */
#age-gate.active, #golive.active {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}
.gate-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px;
  max-width: 460px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.gate-box.wide { max-width: 560px; text-align: left; }
.gate-box h1 { font-size: 2rem; }
.gate-box p { color: var(--muted); line-height: 1.5; }
.gate-box label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  font-size: 0.95rem;
}
.gate-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.goal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .goal-row { grid-template-columns: 1fr; } }

/* ---------- Directory ---------- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 22px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { font-size: 1.3rem; }
.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.header-actions input { width: 200px; }

.dir-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 22px 0;
}
.tag-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-chip {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.82rem;
  cursor: pointer;
}
.tag-chip.on { background: var(--accent); color: white; border-color: transparent; }

.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  padding: 18px 22px 40px;
}
.room-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.12s, border-color 0.12s, box-shadow 0.12s;
}
.room-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px var(--shadow);
}

button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000 url() center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 2rem;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-live {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--red);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 1px;
}
.card-viewers {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.7);
  color: white;
  font-size: 0.78rem;
  padding: 2px 8px;
  border-radius: 6px;
}
.card-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.card-host { font-weight: 700; }
.card-title {
  color: var(--muted);
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.card-tags span {
  background: var(--panel-2);
  color: var(--muted);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 999px;
}
.dir-empty { text-align: center; padding: 80px 20px; font-size: 1.15rem; }
.dir-empty .muted { margin-top: 8px; font-size: 0.95rem; }

/* ---------- Room ---------- */
.room-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 20px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}
.room-info, .room-stats { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.badge {
  background: var(--red);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 1px;
}
#viewer-count { color: var(--muted); font-size: 0.9rem; }
.tokens { color: var(--gold); font-weight: 700; font-size: 0.9rem; }

.goal-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}
.goal-track {
  flex: 1;
  height: 10px;
  background: var(--panel-2);
  border-radius: 999px;
  overflow: hidden;
}
.goal-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--green));
  border-radius: 999px;
  transition: width 0.4s;
}
.goal-label { font-size: 0.85rem; color: var(--muted); white-space: nowrap; }

.room-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
  padding: 16px 20px;
  height: calc(100vh - 61px);
}
@media (max-width: 800px) {
  .room-body { grid-template-columns: 1fr; height: auto; }
  .chat { height: 320px; }
}

.video-col { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.video-wrap {
  position: relative;
  background: black;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 260px;
}
video { width: 100%; height: 100%; object-fit: contain; }

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 17, 23, 0.85);
  color: var(--muted);
  font-size: 1.2rem;
  text-align: center;
  padding: 20px;
}

.controls {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  background: rgba(13, 17, 23, 0.7);
  padding: 8px;
  border-radius: 10px;
  backdrop-filter: blur(6px);
}

.tip-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
}
.tip-label { font-weight: 700; color: var(--gold); }
.tip-btn {
  background: var(--panel-2);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 6px 14px;
  font-size: 0.9rem;
}
.tip-btn:hover { background: var(--gold); color: #000; }
#tip-custom { width: 90px; padding: 6px 10px; font-size: 0.9rem; }

textarea {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 10px 12px;
  font-size: 0.95rem;
  font-family: inherit;
  width: 100%;
  resize: vertical;
}
textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }

.badge.private { background: #8b5cf6; }

.private-btn {
  background: transparent;
  border: 1px solid #8b5cf6;
  color: #a78bfa;
  padding: 6px 14px;
  font-size: 0.9rem;
}
.private-btn:hover { background: #8b5cf6; color: white; }

.tip-menu {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
}
.tip-menu-items { display: flex; gap: 8px; flex-wrap: wrap; }
.tip-menu-item {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 5px 12px;
  font-size: 0.85rem;
  font-weight: 500;
}
.tip-menu-item:hover { border-color: var(--gold); color: var(--gold); }
.tip-menu-item b { color: var(--gold); }

.private-prompt {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.private-prompt span { color: #a78bfa; font-weight: 600; }

/* Sidebar: optional viewer panel above chat */
.side-col { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.side-col .chat { flex: 1; min-height: 0; }
.viewer-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  max-height: 180px;
  overflow-y: auto;
}
.panel-title { font-weight: 700; font-size: 0.9rem; margin-bottom: 8px; }
.viewer-list { display: flex; flex-direction: column; gap: 6px; }
.viewer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
}
.viewer-row .kick {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 2px 10px;
  font-size: 0.75rem;
}
.viewer-row .kick:hover { border-color: var(--red); color: var(--red); }
.viewer-row .mod-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 2px 10px;
  font-size: 0.75rem;
}
.viewer-row .mod-toggle:hover { border-color: var(--green); color: var(--green); }
.viewer-row .actions { display: flex; gap: 6px; }

/* Auth modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.modal .gate-box { width: 100%; max-width: 380px; }

.user-chip {
  color: var(--text);
  font-size: 0.95rem;
  white-space: nowrap;
}
.user-chip b { color: var(--accent); }

.chat-msg .who.mod { color: var(--green); }

.card-followers { color: var(--muted); font-size: 0.8rem; }
.card-followers.following { color: var(--gold); }
.card-host .host-link { cursor: pointer; }
.card-host .host-link:hover { color: var(--accent); text-decoration: underline; }

/* Directory toolbar extras */
.dir-search {
  width: 260px;
  padding: 8px 12px;
  font-size: 0.92rem;
}
.dir-sort {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 8px 10px;
  font-size: 0.9rem;
}

/* Buttons */
button.gold-btn {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.9rem;
  padding: 8px 14px;
}
button.gold-btn:hover { background: var(--gold); color: #000; }

.pkg-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 18px;
  text-align: left;
}
.pkg-btn:hover { border-color: var(--gold); }
.pkg-btn b { color: var(--gold); }
.pkg-bonus { color: var(--green); font-size: 0.8rem; font-weight: 700; }

/* Profile page */
.profile-box {
  max-width: 760px;
  margin: 32px auto;
  padding: 0 22px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.profile-head {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--panel-2);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  flex-shrink: 0;
}
.profile-id { flex: 1; min-width: 180px; }
.profile-id h2 { font-size: 1.6rem; }
.profile-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pf-live-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}
.pf-live-card:hover { border-color: var(--accent); }
.pf-live-card img { width: 100%; max-height: 320px; object-fit: cover; display: block; }
.pf-live-card > div { padding: 12px 16px; }
.pf-bio { line-height: 1.6; white-space: pre-wrap; color: var(--text); }
.pf-links { display: flex; flex-direction: column; gap: 6px; }
.pf-links a { color: var(--accent); word-break: break-all; }

/* Chat tabs (public + PM conversations) */
.chat-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 8px 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  flex-shrink: 0;
}
.chat-tab {
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  color: var(--muted);
  padding: 6px 12px;
  font-size: 0.82rem;
  border-radius: 8px 8px 0 0;
  white-space: nowrap;
}
.chat-tab.on {
  background: var(--panel-2);
  border-color: var(--border);
  color: var(--text);
}
.chat-tab .unread {
  display: inline-block;
  background: var(--red);
  color: white;
  border-radius: 999px;
  font-size: 0.68rem;
  padding: 0 6px;
  margin-left: 5px;
}
.chat-msg .who.pmable { cursor: pointer; }
.chat-msg .who.pmable:hover { text-decoration: underline; }

/* Recording */
#btn-record.recording {
  background: var(--red);
  color: white;
  border-color: var(--red);
}

/* Stats page */
.stats-box {
  max-width: 860px;
  margin: 32px auto;
  padding: 0 22px 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.stat-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}
.stat-tile {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
}
.stat-num { font-size: 1.8rem; font-weight: 800; color: var(--gold); }
.stat-label { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }
.tippers { display: flex; flex-direction: column; gap: 6px; }
.tipper-row {
  display: flex;
  justify-content: space-between;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.92rem;
}
.tipper-row b { color: var(--gold); }
.tx-scroll { overflow-x: auto; }
.tx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.tx-table th, .tx-table td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.tx-table th { color: var(--muted); font-weight: 600; }
.tx-in { color: var(--green); font-weight: 700; }
.tx-out { color: var(--red); font-weight: 700; }

/* Profile announcement */
.pf-announcement {
  background: rgba(240, 180, 41, 0.1);
  border: 1px solid var(--gold);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--gold);
  font-weight: 600;
}

/* Admin panel */
.ad-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
.ad-badge.ok { background: rgba(34, 197, 94, 0.15); color: var(--green); }
.ad-badge.banned { background: rgba(239, 68, 68, 0.15); color: var(--red); }
.ad-badge.admin { background: rgba(59, 130, 246, 0.15); color: var(--accent); }
.ad-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.ad-actions button { padding: 3px 10px; font-size: 0.75rem; }

/* Admin charts — single-series bar charts */
.chart-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}
.chart-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
}
.chart-card h3 { font-size: 0.95rem; margin-bottom: 12px; }
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 120px;
  border-bottom: 1px solid var(--border);
}
.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  position: relative;
  min-width: 0;
}
.bar-col .bar {
  width: 70%;
  max-width: 22px;
  background: var(--accent);
  border-radius: 4px 4px 0 0;
  min-height: 2px;
  transition: filter 0.1s;
}
.bar-col:hover .bar { filter: brightness(1.25); }
.bar-col .bar-value {
  position: absolute;
  top: -2px;
  font-size: 0.68rem;
  color: var(--muted);
  white-space: nowrap;
}
.bar-col:hover .bar-value { color: var(--text); }
.bar-x {
  display: flex;
  gap: 3px;
  margin-top: 4px;
}
.bar-x span {
  flex: 1;
  text-align: center;
  font-size: 0.65rem;
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
}
.chart-empty { color: var(--muted); font-size: 0.85rem; padding: 40px 0; text-align: center; }

/* Admin settings & broadcast rows */
.settings-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
}
.settings-row label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
}
.settings-row input { width: 170px; }
#ad-broadcast-text { flex: 1; min-width: 220px; }

/* Admin extras */
.range-chips { display: flex; gap: 8px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.export-link {
  display: inline-block;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}
.export-link:hover { background: var(--panel-2); }

/* Direct messages */
#btn-messages { position: relative; }
#btn-messages .unread {
  display: inline-block;
  background: var(--red);
  color: white;
  border-radius: 999px;
  font-size: 0.68rem;
  padding: 0 6px;
  margin-left: 5px;
  font-weight: 700;
}
.messages-box {
  max-width: 720px;
  margin: 32px auto;
  padding: 0 22px 48px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.convo-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  cursor: pointer;
}
.convo-row:hover { border-color: var(--accent); }
.convo-who { font-weight: 700; }
.convo-last {
  color: var(--muted);
  font-size: 0.88rem;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.convo-when { color: var(--muted); font-size: 0.78rem; white-space: nowrap; }
.thread-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.thread-log {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  min-height: 240px;
  max-height: 55vh;
  overflow-y: auto;
  margin-bottom: 12px;
}
.bubble {
  max-width: 75%;
  padding: 8px 14px;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.4;
  word-wrap: break-word;
}
.bubble.mine {
  align-self: flex-end;
  background: var(--accent);
  color: white;
  border-bottom-right-radius: 4px;
}
.bubble.theirs {
  align-self: flex-start;
  background: var(--panel-2);
  border-bottom-left-radius: 4px;
}
.bubble time { display: block; font-size: 0.68rem; opacity: 0.7; margin-top: 3px; }

/* Site-wide toast */
.site-toast {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--panel);
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 10px;
  padding: 12px 20px;
  font-weight: 600;
  z-index: 200;
  box-shadow: 0 8px 24px var(--shadow);
  max-width: min(90vw, 560px);
  text-align: center;
}

/* ---------- Chat ---------- */
.chat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-msg { font-size: 0.92rem; line-height: 1.4; word-wrap: break-word; }
.chat-msg .who { font-weight: 700; color: var(--accent); margin-right: 6px; }
.chat-msg .who.host { color: var(--red); }
.chat-msg.system { color: var(--muted); font-style: italic; }
.chat-msg.tip {
  background: rgba(240, 180, 41, 0.12);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  padding: 6px 10px;
  color: var(--gold);
  font-weight: 700;
}
.chat-form {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--border);
}
.chat-form input { flex: 1; }
