:root { --bg:#0f1115; --panel:#171a21; --line:#2a2f3a; --text:#e8eaed; --muted:#9aa0a6; --accent:#3b82f6; --ok:#22c55e; --warn:#f59e0b; }
* { box-sizing: border-box; }
body { margin:0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif; background: var(--bg); color: var(--text); }
.hidden { display:none !important; }
.login { max-width: 360px; margin: 10vh auto; padding: 24px; background: var(--panel); border-radius: 12px; border:1px solid var(--line); display:flex; flex-direction:column; gap:12px; }
.login label { display:flex; flex-direction:column; gap:6px; font-size:14px; color:var(--muted); }
.login input, .composer textarea, select { background:#0d0f14; border:1px solid var(--line); color:var(--text); border-radius:8px; padding:10px; font:inherit; }
.login button, .actions button, .composer button { background: var(--accent); color:#fff; border:0; border-radius:8px; padding:10px 14px; cursor:pointer; font:inherit; }
.ghost { background: transparent !important; border:1px solid var(--line) !important; color: var(--text) !important; }
.err { color:#f87171; min-height: 1.2em; }
.hint { color: var(--muted); margin-top:-8px; }
.desk { display:grid; grid-template-columns: 320px 1fr; height:100vh; }
.sidebar { border-right:1px solid var(--line); background: var(--panel); display:flex; flex-direction:column; }
.side-top { display:flex; justify-content:space-between; align-items:center; padding:12px; border-bottom:1px solid var(--line); }
.muted { color:var(--muted); font-size:12px; }
.tabs { display:flex; gap:4px; padding:8px; }
.tab { flex:1; background:#12151c; border:1px solid var(--line); color:var(--text); border-radius:8px; padding:8px; cursor:pointer; }
.tab.active { border-color: var(--accent); }
.conv-list { overflow:auto; flex:1; }
.conv { padding:12px; border-bottom:1px solid var(--line); cursor:pointer; }
.conv:hover, .conv.active { background:#12151c; }
.conv .top { display:flex; justify-content:space-between; gap:8px; }
.badge { background: #ef4444; color:#fff; border-radius:999px; padding:0 7px; font-size:12px; }
.chat { display:flex; flex-direction:column; min-width:0; }
.chat-top { display:flex; justify-content:space-between; gap:12px; align-items:center; padding:12px 16px; border-bottom:1px solid var(--line); background: var(--panel); }
.actions { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.msgs { flex:1; overflow:auto; padding:16px; display:flex; flex-direction:column; gap:10px; }
.bubble { max-width: 70%; padding:8px 12px; border-radius:10px; background:#1d2330; white-space:pre-wrap; word-break:break-word; }
.bubble.mine { align-self:flex-end; background:#1e3a5f; }
.bubble.system { align-self:center; background:transparent; color:var(--muted); font-size:12px; }
.bubble img, .bubble video { max-width:100%; display:block; border-radius:6px; margin-top:6px; }
.meta { font-size:11px; color:var(--muted); margin-bottom:4px; }
.quick { display:flex; gap:8px; flex-wrap:wrap; padding:8px 12px; border-top:1px solid var(--line); background:#12151c; }
.quick button { background:#1d2330; border:1px solid var(--line); color:var(--text); border-radius:999px; padding:6px 10px; cursor:pointer; font-size:13px; }
.composer { display:flex; gap:8px; padding:12px; border-top:1px solid var(--line); background: var(--panel); }
.composer textarea { flex:1; }
.file { display:inline-flex; align-items:center; padding:10px 12px; border-radius:8px; cursor:pointer; }
@media (max-width: 860px) {
  .desk { grid-template-columns: 1fr; }
  .sidebar { max-height: 40vh; }
}


/* 如何发截图 · 对齐 visitor，适配 desk 深色 */
.shot-bar {
  background: #12151c;
  border-top: 1px solid var(--line);
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.shot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.shot-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.shot-fold {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
}
.shot-fold:hover { background: #1d2330; color: var(--text); }
.shot-body { display: flex; flex-direction: column; gap: 6px; }
.shot-bar.is-collapsed { gap: 0; padding: 6px 12px; }
.shot-bar.is-collapsed .shot-body { display: none; }
.shot-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.shot-os {
  font-weight: 600;
  color: var(--text);
  min-width: 7.5em;
  flex-shrink: 0;
}
.shot-keys { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.shot-keys .plus { color: #6b7280; font-size: 11px; }
.shot-desc { color: var(--muted); }
.shot-desc kbd {
  display: inline-block;
  padding: 1px 5px;
  border: 1px solid #3a4150;
  border-bottom-width: 2px;
  border-radius: 4px;
  background: #1d2330;
  font-size: 11px;
  font-family: inherit;
  color: var(--text);
  min-height: auto;
}
.shot-bar kbd {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px;
  border: 1px solid #3a4150;
  border-bottom-width: 2px;
  border-radius: 5px;
  background: linear-gradient(#2a3140, #1d2330);
  font-size: 11px;
  font-family: inherit;
  color: var(--text);
  min-height: 22px;
}
.shot-bar .win-key {
  background: linear-gradient(#3a3f4a, #111827);
  color: #fff;
  border-color: #4b5563;
  font-weight: 600;
}
.shot-bar .win-key .win-svg { display: block; flex-shrink: 0; }
.shot-mobile { display: none; }
@media (max-width: 860px) {
  .shot-desktop { display: none; }
  .shot-mobile { display: flex; }
}

/* payment bubble */
.pay-bubble .pay-head { font-weight: 600; margin-bottom: 4px; }
.pay-bubble .pay-desc { font-size: 12px; color: #666; margin-bottom: 6px; }
.pay-bubble .pay-qr { max-width: 200px !important; margin: 6px 0; background: #fff; padding: 6px; border-radius: 8px; }
.pay-bubble .pay-tip { font-size: 12px; color: #888; }
.pay-bubble .pay-paid {
  display: inline-block; margin-top: 6px; padding: 4px 10px; border-radius: 999px;
  background: #dcfce7; color: #166534; font-weight: 600; font-size: 13px;
}
