/* 小王控制台 · 实时房间机器人 + 玩家小卡片（2026-11-20） */
.s6-person.s6-bot { display: inline-flex; align-items: center; gap: 4px; cursor: default; border-style: dashed; background: color-mix(in srgb, var(--a-muted) 8%, var(--a-panel)); color: var(--a-ink2, inherit); }
.s6-person.s6-bot:hover { border-color: var(--a-line); }
.s6-bot-ic { font-size: 14px; line-height: 1; }
.s6-bot-tag { font-size: 11px; padding: 1px 6px; border-radius: 999px; background: color-mix(in srgb, var(--a-muted) 18%, transparent); color: var(--a-muted); }

/* 默认色（控制台 .adm 的变量拿不到时用；打开时 JS 会把控制台当前颜色抄到 .pc-root 上覆盖） */
.pc-root { --a-bg: #f4f2ee; --a-panel: #ffffff; --a-ink: #1d1b29; --a-muted: #827d8b; --a-line: #e7e3dc; --a-brand: #4c3fd3; color: var(--a-ink); font-family: system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif; font-size: 14px; line-height: 1.45; }
.pc-root { position: fixed; inset: 0; z-index: 100050; display: flex; align-items: center; justify-content: center; }
.pc-mask { position: absolute; inset: 0; background: rgba(20, 20, 30, .42); animation: pcFade .18s ease; }
.pc-sheet { position: relative; width: min(760px, calc(100vw - 32px)); max-height: min(86vh, 900px); display: flex; flex-direction: column; background: var(--a-panel); color: var(--a-ink, inherit);
  border: 1px solid var(--a-line); border-radius: 16px; box-shadow: 0 18px 50px rgba(0, 0, 0, .22); animation: pcIn .2s cubic-bezier(.2, .8, .3, 1); transition: transform .22s ease; }
.pc-root.pc-out .pc-mask { opacity: 0; transition: opacity .18s; }
.pc-root.pc-out .pc-sheet { opacity: 0; transform: translateY(12px); transition: opacity .18s, transform .18s; }
@keyframes pcFade { from { opacity: 0; } }
@keyframes pcIn { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.pc-grip { display: none; }
.pc-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 12px; border-bottom: 1px solid var(--a-line); }
.pc-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pc-avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 17px;
  background: color-mix(in srgb, var(--a-brand, var(--a-accent, #4c3fd3)) 16%, var(--a-panel)); color: var(--a-brand, var(--a-accent, #4c3fd3)); }
.pc-name { display: flex; flex-direction: column; min-width: 0; }
.pc-name b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-name small { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-flag { margin-left: 6px; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: var(--a-gold, #d4a017); color: #fff; vertical-align: 2px; }
.pc-grow { flex: 1; }
.pc-x { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--a-line); background: transparent; color: inherit; font-size: 15px; cursor: pointer; }
.pc-x:hover, .pc-x:focus-visible { border-color: var(--a-brand, var(--a-accent, #4c3fd3)); outline: none; }
.pc-body { overflow: auto; padding: 14px 16px 18px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--a-brand, #4c3fd3) 40%, transparent) transparent; }
.pc-body::-webkit-scrollbar { width: 6px; }
.pc-body::-webkit-scrollbar-track { background: transparent; }
.pc-body::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--a-brand, #4c3fd3) 40%, transparent); border-radius: 3px; }
.pc-loading { padding: 40px 0; text-align: center; color: var(--a-muted); }

.pc-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.pc-kpi { border: 1px solid var(--a-line); border-radius: 10px; padding: 8px 10px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pc-kpi small { color: var(--a-muted); font-size: 11.5px; }
.pc-kpi b { font-size: 14px; font-variant-numeric: tabular-nums; }
.pc-kpi em { font-style: normal; color: var(--a-muted); font-size: 11.5px; }

.pc-sec { margin-top: 14px; }
.pc-sec h4 { margin: 0 0 8px; font-size: 13.5px; display: flex; align-items: baseline; gap: 8px; }
.pc-sec h4 small { font-weight: 400; color: var(--a-muted); font-size: 11.5px; }
.pc-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pc-lab { display: block; color: var(--a-muted); font-size: 11.5px; margin-bottom: 4px; }
.pc-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.pc-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--a-line); background: color-mix(in srgb, var(--a-muted) 5%, transparent); }
.pc-chip em { font-style: normal; color: var(--a-muted); font-size: 11.5px; }

.pc-bars { display: grid; gap: 6px; }
.pc-bar { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 12.5px; }
.pc-bar-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.pc-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.pc-bar-track { height: 10px; border-radius: 5px; background: color-mix(in srgb, var(--a-muted) 14%, transparent); overflow: hidden; }
.pc-bar-fill { display: block; height: 100%; border-radius: 5px; }
.pc-bar-val { color: var(--a-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* 渠道分组颜色：App 内（绿）/ 站外（蓝）/ 分享·直接（橙）/ 站内（品牌色）/ 未记录（灰） */
.pc-dot.pc-app, .pc-bar-fill.pc-app { background: #2aae67; }
.pc-dot.pc-out, .pc-bar-fill.pc-out { background: #3a7bd5; }
.pc-dot.pc-direct, .pc-bar-fill.pc-direct { background: #e08a2e; }
.pc-dot.pc-in, .pc-bar-fill.pc-in { background: var(--a-brand, var(--a-accent, #4c3fd3)); }
.pc-dot.pc-none, .pc-bar-fill.pc-none { background: color-mix(in srgb, var(--a-muted) 55%, transparent); }
.pc-ch { font-size: 11.5px; padding: 1px 8px; border-radius: 999px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.pc-ch.pc-app { background: color-mix(in srgb, #2aae67 15%, transparent); color: #1d7f4a; }
.pc-ch.pc-out { background: color-mix(in srgb, #3a7bd5 15%, transparent); color: #2a5ea8; }
.pc-ch.pc-direct { background: color-mix(in srgb, #e08a2e 16%, transparent); color: #a45f15; }
.pc-ch.pc-in { background: color-mix(in srgb, var(--a-brand, #4c3fd3) 13%, transparent); color: var(--a-brand, #4c3fd3); }
.pc-ch.pc-none { background: color-mix(in srgb, var(--a-muted) 14%, transparent); color: var(--a-muted); }

.pc-visits { list-style: none; margin: 0; padding: 0; }
.pc-day { font-size: 11.5px; font-weight: 700; color: var(--a-muted); padding: 8px 0 4px; position: sticky; top: -14px; background: var(--a-panel); z-index: 1; }
.pc-v { display: grid; grid-template-columns: 3.2em minmax(0, 1fr); gap: 8px; padding: 7px 0; border-top: 1px solid color-mix(in srgb, var(--a-line) 70%, transparent); }
.pc-v-time { font-variant-numeric: tabular-nums; color: var(--a-muted); font-size: 12.5px; padding-top: 1px; }
.pc-v-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; }
.pc-v-game { font-weight: 600; }
.pc-v-np { color: var(--a-muted); font-size: 11px; }
.pc-v-meta { margin-top: 2px; font-size: 12px; color: var(--a-muted); line-height: 1.5; }
.pc-more { font-size: 12px; margin-top: 6px; }
.pc-note { margin: 16px 0 0; font-size: 11.5px; line-height: 1.6; color: var(--a-muted); }

@media (max-width: 720px) {
  .pc-root { align-items: flex-end; }
  .pc-sheet { width: 100vw; max-height: 88vh; border-radius: 16px 16px 0 0; border-bottom: 0; animation: pcUp .24s cubic-bezier(.2, .8, .3, 1); }
  @keyframes pcUp { from { transform: translateY(40%); opacity: .4; } }
  .pc-root.pc-out .pc-sheet { transform: translateY(40%); }
  .pc-grip { display: block; width: 40px; height: 5px; border-radius: 3px; margin: 8px auto 0; background: color-mix(in srgb, var(--a-muted) 40%, transparent); }
  .pc-head { padding: 8px 16px 10px; touch-action: none; }
  .pc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pc-grid3 { grid-template-columns: minmax(0, 1fr); }
  .pc-bar { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'name val' 'track track'; row-gap: 3px; }
  .pc-bar-name { grid-area: name; white-space: normal; }
  .pc-bar-val { grid-area: val; }
  .pc-bar-track { grid-area: track; height: 8px; }
}
@media (prefers-color-scheme: dark) {
  .pc-ch.pc-app { color: #6bd69c; } .pc-ch.pc-out { color: #8db6f0; } .pc-ch.pc-direct { color: #f0b06a; }
}
@media (prefers-reduced-motion: reduce) { .pc-mask, .pc-sheet { animation: none; } .pc-sheet { transition: none; } }
