* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif; background: #f5f6fa; color: #0f172a; }
.container { max-width: 1360px; margin: 0 auto; padding-bottom: 40px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 16px; }
.notice { display: none; }
.notice-dot { display: none; }
.filter-panel { background: #fff; border: 1px solid #e7eaf1; border-radius: 14px; box-shadow: 0 1px 2px rgba(15,23,42,.05); padding: 14px; margin-bottom: 16px; }
.toolbar { display: grid; grid-template-columns: minmax(220px, 1.2fr) minmax(128px, .7fr) auto minmax(128px, .7fr); gap: 10px; align-items: center; }
.input, .select { height: 38px; border: 1px solid #d6dce8; border-radius: 10px; padding: 0 12px; background: #fff; color: #1e293b; outline: none; font-size: 14px; }
.anchor-dropdown { position: relative; }
.anchor-input-wrap { position: relative; }
.anchor-search { height: 38px; border: 1px solid #d6dce8; border-radius: 10px; padding: 0 12px; background: #fff; color: #1e293b; outline: none; font-size: 14px; width: 100%; }
.anchor-search:focus { border-color: #7f56d9; box-shadow: 0 0 0 3px rgba(127,86,217,.16); }
.anchor-menu { position: absolute; top: 42px; left: 0; right: 0; z-index: 200; max-height: 260px; overflow-y: auto; display: none; }
.anchor-menu.open { display: block; }
.anchor-option { display: flex; align-items: center; gap: 8px; padding: 8px 12px; cursor: pointer; font-size: 14px; color: #1e293b; }
.anchor-option:hover { background: #f6f8fc; }
.anchor-option.selected { background: #f0e9ff; }
.anchor-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background: #f0e9ff; color: #7f56d9; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; overflow: hidden; }
.input { width: 100%; }
/* 起止日期合并为一个视觉框：透明原生日期输入覆盖左右半区兜底，可见文案置于其上并直接唤起对应选择器。
   外观（高度/边框/圆角/颜色/字重/聚焦）由 ops-classic.css 统一控件规范接管，这里只保留布局；
   最小宽度 160px 让框体饱满、和旁边 128px 基准的控件视觉协调，又不会像固定 240px 那样留大段空白。 */
.date-range-field { position: relative; display: flex; align-items: center; gap: 8px; width: fit-content; min-width: 160px; padding: 0 12px; }
.date-input { position: absolute; top: 0; bottom: 0; width: 50%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; border: 0; padding: 0; }
.date-input-start { left: 0; }
.date-input-end { right: 0; }
.date-range-text { position: relative; z-index: 3; pointer-events: auto; cursor: pointer; white-space: nowrap; }
.date-range-sep { color: #94a3b8; pointer-events: none; }
/* 日历图标画法保持描边方块加顶部细线，避免实心黑块的沉重感；fit-content 容器内 margin auto 失效，固定间距即可。 */
.date-range-field::after { content: ""; width: 14px; height: 14px; margin-left: 12px; flex: 0 0 auto; border: 1.8px solid #0f172a; border-radius: 3px; background: linear-gradient(#0f172a, #0f172a) 2px 3px / 10px 1.8px no-repeat; opacity: .9; }
.filter-error { margin-top: 10px; padding: 9px 12px; border: 1px solid #f4bdb7; border-radius: 9px; background: #fff1f0; color: #b42318; font-size: 12px; font-weight: 700; }
.filter-error[hidden] { display: none; }
.input:focus, .select:focus { border-color: #7f56d9; box-shadow: 0 0 0 3px rgba(127,86,217,.16); }
.btn { height: 36px; border: 0; border-radius: 10px; padding: 0 14px; background: #eef0f7; color: #1e293b; cursor: pointer; font-weight: 600; }
.btn:hover { background: #e2d8fa; }
.btn-primary { background: #7f56d9; color: #fff; box-shadow: 0 1px 2px rgba(105,65,198,.22), 0 6px 14px -6px rgba(105,65,198,.38); }
.btn-primary:hover { background: #53389e; }
.panel { background: #fff; border: 1px solid #e7eaf1; border-radius: 14px; box-shadow: 0 1px 2px rgba(15,23,42,.05); overflow: hidden; }
table { width: 100%; min-width: 1120px; border-collapse: collapse; table-layout: fixed; }
.table-wrap { overflow-x: auto; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid #e7eaf1; vertical-align: middle; white-space: nowrap; }
th { background: #f6f8fc; font-weight: 600; color: #64748b; font-size: 12px; }
td { color: #1e293b; font-size: 14px; }
tr:hover td { background: #f6f8fc; }
.room-line { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.room-name { width: 100%; min-width: 0; flex: 0 1 auto; font-weight: 600; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-meta { display: inline-flex; align-items: center; gap: 6px; width: 100%; flex: 0 0 auto; color: #94a3b8; font-size: 12px; white-space: nowrap; }
/* 隐私标占固定宽度槽位（无徽章时留空），保证所有行的平台标右缘对齐成一条竖线。 */
.privacy-slot { display: inline-flex; justify-content: flex-end; align-items: center; width: 84px; flex: 0 0 auto; }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-info { background: #f0e9ff; color: #7f56d9; border: 1px solid #e2d8fa; }
.badge-success { background: #ecfdf3; color: #067647; }
.badge-muted { background: #eef0f7; color: #64748b; }
.badge-warn { background: #fffaf2; color: #b54708; }
.review-badge { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0; border: 0; background: transparent; font-size: 12px; line-height: 1; font-weight: 600; white-space: nowrap; }
.review-badge::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 14%, transparent); flex: 0 0 auto; }
.review-badge.none { color: #64748b; }
.review-badge.comment-analyzed { color: #067647; }
.review-badge.done { color: #067647; }
.privacy-badge { display: inline-flex; align-items: center; gap: 4px; min-height: 22px; padding: 0 7px; border: 1px solid #fecdca; border-radius: 999px; background: #fff1f0; color: #b42318; font-size: 11px; line-height: 1; font-weight: 600; white-space: nowrap; }
.privacy-badge svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.platform-badge .pill-icon { width: 14px; height: 14px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.platform-badge .pill-icon svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
/* 表格字重层级：房间名是唯一的行锚点用 600，其余信息 400-500，避免整表都在加粗、没有重点。 */
.live-time { color: #475467; font-weight: 400; white-space: nowrap; }
.session-time { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.session-duration { color: #94a3b8; font-size: 12px; line-height: 1.2; white-space: nowrap; }
.metric-line { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.metric-stack { display: grid; gap: 4px; }
.metric-detail { display: flex; align-items: baseline; gap: 10px; color: #94a3b8; font-size: 12px; line-height: 1.2; white-space: nowrap; }
.metric-line > span, .metric-detail > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.metric-main { color: #0f172a; font-weight: 500; }
.metric-sub { color: #94a3b8; font-size: 12px; }
.action-link { color: #7f56d9; text-decoration: none; font-weight: 500; }
.action-link:hover { text-decoration: underline; }
.empty { text-align: center; padding: 54px 20px; color: #94a3b8; }
.pagination { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; gap: 14px; flex-wrap: wrap; }
.page-actions { display: flex; align-items: center; gap: 8px; }
.page-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.page-text { color: #64748b; font-size: 13px; }
.loading { opacity: .62; pointer-events: none; }

/* 表头是筛选区后的第一个内容锚点，单独建立轻微层次，避免删除面板标题后列表顶部失去边界。 */
body.ops-page.ops-analytics .sessions-table thead th {
  height: 50px !important;
  padding: 0 16px !important;
  background: linear-gradient(180deg, #fbfcfe 0%, #f5f7fb 100%) !important;
  color: #475467 !important;
  border-bottom: 1px solid #e4e7ec !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .02em;
  vertical-align: middle !important;
}
body.ops-page.ops-analytics .sessions-table thead th:first-child,
body.ops-page.ops-analytics .sessions-table tbody td:first-child:not([colspan]) {
  padding-left: 22px !important;
}
body.ops-page.ops-analytics .sessions-table thead th:last-child,
body.ops-page.ops-analytics .sessions-table tbody td:last-child:not([colspan]) {
  padding-right: 22px !important;
  text-align: right !important;
}
@media (max-width: 1100px) {
  .page-head { align-items: stretch; flex-direction: column; }
  .toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .container { padding: 18px 16px 32px; }
  .toolbar { grid-template-columns: 1fr; }
  .page-title { font-size: 24px; }
}
