:root {
  --bg: oklch(0.13 0.025 220);
  --surface: oklch(0.18 0.03 220);
  --surface-2: oklch(0.215 0.032 220);
  --surface-3: oklch(0.245 0.035 220);
  --ink: oklch(0.94 0.018 210);
  --muted: oklch(0.72 0.025 215);
  --quiet: oklch(0.55 0.025 215);
  --line: oklch(0.32 0.03 220);
  --line-soft: oklch(0.25 0.028 220);
  --teal: oklch(0.70 0.12 195);
  --teal-soft: oklch(0.24 0.065 195);
  --green: oklch(0.75 0.14 155);
  --green-soft: oklch(0.24 0.07 155);
  --amber: oklch(0.77 0.14 78);
  --amber-soft: oklch(0.25 0.07 78);
  --red: oklch(0.69 0.16 25);
  --red-soft: oklch(0.25 0.08 25);
  --violet: oklch(0.68 0.12 300);
  --orange: oklch(0.72 0.13 52);
  --radius: 12px;
  --shadow: 0 8px 28px oklch(0.05 0.02 220 / 0.24);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--ink); font-size: 1rem; line-height: 1.45; font-kerning: normal; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.icon { display: block; flex: 0 0 auto; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 248px; flex: 0 0 248px; display: flex; flex-direction: column; background: oklch(0.155 0.028 220); border-right: 1px solid var(--line-soft); padding: 22px 14px 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; padding: 0 10px; }
.brand small { display: block; color: var(--quiet); font-size: .68rem; font-weight: 500; letter-spacing: .04em; margin-top: -2px; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; color: var(--teal); border: 1px solid oklch(0.39 0.07 195); background: var(--teal-soft); border-radius: 9px; }
.workspace-switch { display: flex; align-items: center; gap: 9px; margin: 28px 0 24px; padding: 9px 10px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 9px; }
.workspace-switch .icon { margin-left: auto; color: var(--quiet); }
.workspace-switch b, .account b { display: block; font-size: .84rem; font-weight: 650; }
.workspace-switch small, .account small { display: block; color: var(--quiet); font-size: .72rem; margin-top: 1px; }
.avatar { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); font-size: .72rem; font-weight: 700; background: var(--surface-3); }
.avatar-teal { background: var(--teal-soft); color: var(--teal); }.avatar-purple { background: oklch(0.26 .07 300); color: oklch(.82 .1 300); }.avatar-orange { background: oklch(.27 .07 52); color: var(--orange); }.avatar-v { background: var(--teal-soft); color: var(--teal); }.avatar-1 { background: var(--green-soft); color: var(--green); }.avatar-2 { background: oklch(.26 .07 300); color: oklch(.82 .1 300); }.avatar-0 { background: var(--amber-soft); color: var(--amber); }.avatar-7 { background: var(--red-soft); color: var(--red); }.avatar-8 { background: oklch(.26 .07 52); color: var(--orange); }
.nav-label { padding: 0 12px 9px; color: var(--quiet); font-size: .68rem; font-weight: 700; letter-spacing: .08em; }.nav-label-secondary { margin-top: 24px; }
.nav-item { width: 100%; height: 42px; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 8px; padding: 0 12px; margin-bottom: 3px; color: var(--muted); background: transparent; text-align: left; font-size: .87rem; transition: background .18s ease, color .18s ease; }.nav-item:hover { color: var(--ink); background: var(--surface); }.nav-item.active { color: var(--ink); background: var(--teal-soft); }.nav-item.active .icon { color: var(--teal); }
.sidebar-bottom { margin-top: auto; }.quota-mini { padding: 13px 12px; border: 1px solid var(--line-soft); border-radius: 9px; background: var(--surface); }.quota-mini-head { display: flex; justify-content: space-between; color: var(--muted); font-size: .75rem; }.quota-mini-head b { color: var(--ink); font-variant-numeric: tabular-nums; }.progress { height: 6px; overflow: hidden; margin: 10px 0 8px; border-radius: 999px; background: oklch(.29 .035 220); }.progress span { display: block; height: 100%; border-radius: inherit; background: var(--amber); }.quota-mini small { color: var(--quiet); font-size: .7rem; }.account { display: flex; align-items: center; gap: 9px; margin-top: 14px; padding: 8px 10px; }.account > .icon { margin-left: auto; color: var(--quiet); }
.main { min-width: 0; flex: 1; }.topbar { height: 67px; display: flex; align-items: center; justify-content: space-between; padding: 0 34px; border-bottom: 1px solid var(--line-soft); }.topbar-context, .topbar-actions { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .78rem; }.live-pulse, .status-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }.divider { width: 1px; height: 16px; margin: 0 4px; background: var(--line); }.muted { color: var(--quiet); }.icon-button { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 8px; color: var(--muted); background: transparent; }.icon-button:hover { color: var(--ink); border-color: var(--line); background: var(--surface); }.notification { position: relative; }.notification i { position: absolute; top: 7px; right: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--red); }.top-avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: oklch(.9 .08 300); background: oklch(.27 .07 300); font-weight: 700; }.mobile-menu { display: none; border: 0; color: var(--muted); background: transparent; }
.content { max-width: 1440px; margin: 0 auto; padding: 38px 42px 64px; }.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }.breadcrumb { color: var(--quiet); font-size: .74rem; margin-bottom: 12px; }.breadcrumb span { padding: 0 7px; color: var(--line); }.page-heading h1 { margin: 0; font-size: 1.8rem; line-height: 1.15; letter-spacing: -.035em; text-wrap: balance; }.page-heading p { color: var(--muted); margin: 8px 0 0; font-size: .9rem; }.button { height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; padding: 0 14px; border: 1px solid var(--line); color: var(--ink); background: var(--surface); font-size: .81rem; font-weight: 650; transition: background .18s ease, border-color .18s ease, transform .18s ease; white-space: nowrap; }.button:hover { background: var(--surface-3); border-color: oklch(.4 .04 220); }.button:active { transform: translateY(1px); }.button-primary { border-color: var(--teal); color: oklch(.14 .03 220); background: var(--teal); }.button-primary:hover { border-color: oklch(.78 .12 195); background: oklch(.77 .12 195); }.button-secondary { background: transparent; }.button-danger { border-color: var(--red); background: var(--red); color: oklch(.15 .03 220); }.button-wide { width: 100%; }.text-button { display: inline-flex; align-items: center; gap: 7px; border: 0; color: var(--teal); background: transparent; padding: 4px 0; font-size: .76rem; font-weight: 650; }.text-button:hover { color: var(--ink); }.select-button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 7px; padding: 7px 9px; color: var(--muted); background: var(--surface); font-size: .73rem; }.select-button:hover { color: var(--ink); border-color: oklch(.42 .04 220); }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }.metric { min-height: 136px; padding: 18px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); }.metric-label { color: var(--muted); font-size: .78rem; }.metric strong { display: block; margin-top: 15px; color: var(--ink); font-size: 1.7rem; line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }.metric-note { margin-top: 13px; color: var(--quiet); font-size: .72rem; }.metric-cyan strong { color: var(--teal); }.metric-amber strong { color: var(--amber); }.metric-green strong { color: var(--green); }.metric-violet strong { color: var(--violet); }.panel { min-width: 0; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); }.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 0; }.panel-head h2 { margin: 0; font-size: 1rem; letter-spacing: -.02em; }.panel-sub { display: block; margin-top: 4px; color: var(--quiet); font-size: .72rem; }.chart-legend { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .7rem; }.chart-legend > span { display: inline-flex; align-items: center; gap: 6px; }.legend-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; }.legend-dot.teal { background: var(--teal); }.legend-dot.violet { background: var(--violet); }.legend-dot.green { background: var(--green); }.legend-dot.amber { background: var(--amber); }.chart { position: relative; flex: 1; min-width: 0; }.chart svg { position: absolute; inset: 0 0 24px; width: 100%; height: calc(100% - 24px); overflow: visible; }.line { fill: none; stroke-width: 2.3; vector-effect: non-scaling-stroke; }.line-teal { stroke: var(--teal); }.line-violet { stroke: var(--violet); stroke-width: 1.7; }.alert-panel { flex: 1; }.alert-list { padding: 12px 20px 16px; }.alert-row { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }.alert-row:last-child { border-bottom: 0; }.alert-row b { display: block; color: var(--ink); font-size: .76rem; font-weight: 650; }.alert-row small, .alert-row em { display: block; color: var(--quiet); font-size: .67rem; font-style: normal; }.alert-row small { margin-top: 3px; }.alert-row em { margin-top: 7px; }
.table-row { display: grid; align-items: center; gap: 16px; min-height: 64px; padding: 0 10px; border-bottom: 1px solid var(--line-soft); font-size: .77rem; }.table-row:last-child { border-bottom: 0; }.table-head { min-height: 34px; border-bottom: 1px solid var(--line); color: var(--quiet); font-size: .68rem; }.viewer-name > div { min-width: 0; }.session-table b, .session-table small, .viewer-name b, .viewer-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.session-table small, .viewer-name small { margin-top: 3px; color: var(--quiet); font-size: .67rem; }.status { display: inline-flex; align-items: center; gap: 7px; padding: 5px 8px; border-radius: 6px; font-size: .68rem; white-space: nowrap; }.status-dot { width: 6px; height: 6px; box-shadow: none; }.status-live { color: var(--green); background: var(--green-soft); }.status-ready { color: var(--muted); background: oklch(.26 .025 220); }.status-reconnecting { color: var(--amber); background: var(--amber-soft); }.status-ended { color: var(--quiet); background: oklch(.24 .025 220); }.status-live .status-dot { background: var(--green); }.status-reconnecting .status-dot { background: var(--amber); }.status-ended .status-dot, .status-ready .status-dot { background: var(--quiet); }.more-button { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 6px; color: var(--quiet); background: transparent; }.more-button:hover { color: var(--ink); background: var(--surface-2); }.tabular { font-variant-numeric: tabular-nums; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }.tabs { display: flex; align-items: center; gap: 4px; overflow-x: auto; }.tab { height: 34px; padding: 0 11px; border: 0; border-radius: 6px; color: var(--quiet); background: transparent; font-size: .76rem; white-space: nowrap; }.tab:hover { color: var(--ink); background: var(--surface); }.tab.active { color: var(--ink); background: var(--surface-3); }.tab b { margin-left: 4px; color: var(--quiet); font-size: .65rem; font-weight: 500; }.toolbar-right { display: flex; align-items: center; gap: 8px; }.search-box { height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--quiet); background: var(--surface); }.search-box input { width: 150px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: .76rem; }.search-box input::placeholder { color: var(--quiet); }.search-box kbd { border: 1px solid var(--line); border-radius: 4px; padding: 2px 4px; color: var(--quiet); font-size: .58rem; }
.table-panel { overflow: hidden; }.table-scroll { overflow-x: auto; }.session-table { min-width: 980px; grid-template-columns: 1.65fr .9fr .75fr .85fr 1fr .85fr .8fr 30px; }.session-table > div:first-child b { font-size: .76rem; }.recording { color: var(--amber); }.recording.ready { color: var(--green); }.pagination { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; color: var(--quiet); font-size: .7rem; }.pagination > div { display: flex; gap: 4px; }.viewer-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }.viewer-summary > div { padding: 15px 17px; border: 1px solid var(--line-soft); border-radius: 7px; background: var(--surface); }.viewer-summary span, .viewer-summary small { display: block; color: var(--quiet); font-size: .7rem; }.viewer-summary b { display: block; margin: 7px 0 3px; font-size: 1.25rem; font-variant-numeric: tabular-nums; }.viewer-summary small { color: var(--teal); }.viewer-toolbar { margin-bottom: 12px; }.viewer-table { min-width: 1050px; grid-template-columns: 1.7fr .8fr 1.05fr .65fr .9fr .8fr 1.25fr 30px; }.viewer-name { display: flex; align-items: center; gap: 9px; }.star-button { width: 24px; height: 24px; border: 0; color: var(--quiet); background: transparent; }.star-button.starred { color: var(--amber); }.viewer-status { font-size: .7rem; }.viewer-ok { color: var(--green); }.viewer-muted { color: var(--amber); }.viewer-blocked { color: var(--red); }.tag-list { display: flex; flex-wrap: wrap; gap: 4px; }.tag { padding: 3px 6px; border-radius: 4px; color: var(--teal); background: var(--teal-soft); font-size: .64rem; }
.broadcast-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr); gap: 14px; }.preview-placeholder { position: relative; display: flex; flex-direction: column; align-items: center; color: var(--muted); }.preview-placeholder b { font-size: .86rem; }.preview-placeholder small { margin-top: 5px; color: var(--quiet); font-size: .68rem; }.field { display: block; margin: 22px 20px 0; }.field > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: .74rem; }.field input, .field select, .chat-input input { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 7px; padding: 0 11px; color: var(--ink); outline: 0; background: var(--surface-2); }.field select { appearance: auto; }.preflight-list { margin: 20px; padding: 3px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }.preflight-list > div { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }.preflight-list > div:last-child { border-bottom: 0; }.preflight-list b, .preflight-list small { display: block; }.preflight-list b { font-size: .75rem; }.preflight-list small { margin-top: 2px; color: var(--quiet); font-size: .66rem; }.done, .pending { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: var(--green-soft); font-size: .7rem; }.pending { color: var(--amber); background: var(--amber-soft); }
.watch-page { min-height: calc(100vh - 67px); margin: -38px -42px -64px; padding: 24px 42px 64px; background: oklch(.105 .024 220); }.chat-list { flex: 1; padding: 10px 18px; }.chat-list p { margin: 0; padding: 11px 0; color: var(--muted); border-bottom: 1px solid var(--line-soft); font-size: .76rem; line-height: 1.55; }.chat-list b { color: var(--teal); font-weight: 600; }.chat-input { display: flex; gap: 7px; padding: 14px 18px 8px; }.chat-input input { height: 38px; }.chat-input button { width: 38px; flex: 0 0 38px; display: grid; place-items: center; border: 0; border-radius: 7px; color: oklch(.15 .03 220); background: var(--teal); }
.login-page, .error-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: oklch(.105 .024 220); }.login-card { width: min(100%, 390px); padding: 32px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow); }.brand-center { justify-content: center; padding: 0; }.login-card h1 { margin: 31px 0 7px; text-align: center; font-size: 1.45rem; letter-spacing: -.04em; }.login-card > p { margin: 0 0 27px; color: var(--muted); font-size: .8rem; text-align: center; }.login-card .field { margin: 15px 0; }.error-page { color: var(--muted); text-align: center; }.error-page h1 { color: var(--ink); }
/* 提示信息：屏幕顶部正中，盖在弹窗上面 */
.toast { position: fixed; z-index: 10000; top: calc(18px + env(safe-area-inset-top)); left: 50%; display: flex; align-items: center; gap: 10px; width: max-content; min-width: 220px; max-width: min(92vw, 560px); padding: 14px 20px 14px 16px; border-radius: 14px; color: #fff; background: #1f9d55; box-shadow: 0 12px 40px rgb(0 0 0 / .35); font-size: 1rem; font-weight: 600; line-height: 1.45; opacity: 0; transform: translate(-50%, -14px); pointer-events: none; cursor: pointer; transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast::before { content: "✓"; flex: 0 0 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgb(255 255 255 / .22); font-size: .95rem; font-weight: 800; }
.toast[data-tone="error"] { background: #d93636; }
.toast[data-tone="error"]::before { content: "!"; }
.toast[data-tone="info"] { background: #2563c9; }
.toast[data-tone="info"]::before { content: "i"; }
.app-shell:has(.watch-page) .sidebar, .app-shell:has(.watch-page) .topbar { display: none; }
.app-shell:has(.watch-page) .content { padding: 0; max-width: none; }
.app-shell:has(.watch-page) .watch-page { margin: 0; min-height: 100vh; }
@media (max-width: 1100px) { .app-shell:has(.watch-page) .watch-page { margin: 0; }}
@media (max-width: 760px) { .app-shell:has(.watch-page) .watch-page { margin: 0; }}
.modal-backdrop { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; padding: 20px; background: oklch(.05 .02 220 / .76); }
.modal { position: relative; width: min(100%, 480px); max-height: min(720px, 90vh); overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 24px; color: var(--ink); background: var(--surface); box-shadow: var(--shadow); }
.modal h2 { margin: 0; padding-right: 32px; font-size: 1.05rem; letter-spacing: -.025em; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 7px; color: var(--muted); background: transparent; }.modal-close:hover { color: var(--ink); background: var(--surface-2); }
.modal-body { color: var(--muted); font-size: .78rem; }.modal-copy { margin: 14px 0 -5px; color: var(--muted); line-height: 1.6; }.modal .field { margin: 18px 0 0; }.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 21px; }.detail-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 0; margin-top: 18px; border-top: 1px solid var(--line-soft); }.detail-grid span, .detail-grid b { padding: 11px 0; border-bottom: 1px solid var(--line-soft); }.detail-grid span { color: var(--quiet); }.detail-grid b { color: var(--ink); font-weight: 600; }.empty-state { padding: 48px 20px; color: var(--muted); text-align: center; }.empty-state .text-button { margin-left: 8px; }
@media (max-width: 1100px) { .content { padding: 30px 24px 48px; }.topbar { padding: 0 24px; }.sidebar { width: 220px; flex-basis: 220px; }.broadcast-layout { grid-template-columns: 1fr; }.watch-page { margin: -30px -24px -48px; padding: 20px 24px 48px; }}
@media (max-width: 760px) { body { padding-bottom: env(safe-area-inset-bottom); }.app-shell { display: block; }.sidebar { position: fixed; z-index: 4; inset: 0 auto 0 0; width: min(270px, 84vw); transform: translateX(-105%); transition: transform .2s ease; box-shadow: var(--shadow); }.sidebar.open { transform: translateX(0); }.topbar { height: 60px; padding: 0 16px; }.mobile-menu { display: grid; place-items: center; width: 36px; height: 36px; }.topbar-context { display: none; }.topbar-actions { margin-left: auto; }.content { padding: 25px 16px 40px; }.page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 22px; gap: 16px; }.page-heading h1 { font-size: 1.55rem; }.page-heading .button { align-self: stretch; }.metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }.metric { min-height: 116px; padding: 14px; }.metric strong { margin-top: 12px; font-size: 1.35rem; }.metric-note { margin-top: 10px; }.panel-head { padding: 15px 15px 0; }.chart-legend { flex-wrap: wrap; justify-content: flex-end; gap: 7px 10px; }.chart-legend .select-button { display: none; }.toolbar { align-items: stretch; flex-direction: column; }.toolbar-right { justify-content: space-between; }.search-box { flex: 1; }.search-box input { width: 100%; }.viewer-summary { grid-template-columns: 1fr; }.session-table { min-width: 880px; }.pagination { gap: 12px; flex-direction: column; align-items: flex-start; }.broadcast-layout { grid-template-columns: 1fr; }.watch-page { min-height: calc(100vh - 60px); margin: -25px -16px -40px; padding: 17px 16px 40px; }}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }}
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.settings-panel { padding-bottom: 18px; }
.settings-wide { margin-top: 14px; padding-bottom: 22px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 18px 20px 0; padding-top: 15px; border-top: 1px solid var(--line-soft); }
.setting-row b, .setting-row small { display: block; }
.setting-row b { font-size: .77rem; }
.setting-row small { margin-top: 3px; color: var(--quiet); font-size: .67rem; }
.setting-row input[type="checkbox"] { width: 38px; height: 22px; accent-color: var(--teal); }
.settings-note { margin: 17px 20px 0; padding: 10px 11px; color: var(--amber); border-radius: 7px; background: var(--amber-soft); font-size: .69rem; }
.settings-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.settings-note a:hover { color: var(--teal); }
.config-state { flex: 0 0 auto; padding: 5px 7px; border-radius: 5px; color: var(--amber); background: var(--amber-soft); font-size: .66rem; }
.config-state.ok { color: var(--green); background: var(--green-soft); }
.config-list { margin: 19px 20px 0; border-top: 1px solid var(--line-soft); }
.config-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: .7rem; }
.config-list span { color: var(--quiet); }
.config-list b { color: var(--muted); font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.copy-field { display: flex; align-items: center; gap: 7px; }
.copy-field input { min-width: 0; }
.copy-field .icon-button { flex: 0 0 38px; border-color: var(--line); background: var(--surface-2); }
.domain-list { margin: 16px 20px 0; border-top: 1px solid var(--line-soft); }
.domain-row { min-height: 58px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto 36px; align-items: center; gap: 12px; border-bottom: 1px solid var(--line-soft); }
.domain-row b, .domain-row small { display: block; overflow-wrap: anywhere; }
.domain-row b { font-size: .76rem; }
.domain-row small { margin-top: 3px; color: var(--quiet); font-size: .65rem; }
.domain-status { padding: 4px 7px; border-radius: 5px; color: var(--amber); background: var(--amber-soft); font-size: .65rem; white-space: nowrap; }
.domain-status.verified { color: var(--green); background: var(--green-soft); }
.wechat-domain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.search-result { width: 100%; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line-soft); border-radius: 7px; padding: 12px; color: var(--muted); background: var(--surface-2); text-align: left; }
.search-result:hover { color: var(--ink); border-color: var(--line); background: var(--surface-3); }
.search-result > span { min-width: 0; flex: 1; }
.search-result b, .search-result small { display: block; overflow: hidden; text-overflow: ellipsis; }
.search-result b { color: var(--ink); font-size: .76rem; }
.search-result small { margin-top: 3px; color: var(--quiet); font-size: .66rem; white-space: nowrap; }
.field-flush { margin-right: 0; margin-left: 0; }
.search-results { display: grid; gap: 6px; margin-top: 14px; }
.empty-state.compact { padding: 22px 8px; }
.tag-editor { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tag-editor .tag { display: inline-flex; align-items: center; gap: 5px; }
.tag-editor .tag button { width: 16px; height: 16px; display: grid; place-items: center; border: 0; padding: 0; color: currentColor; background: transparent; }
.inline-form { display: flex; gap: 8px; margin-top: 13px; }
.inline-form input { min-width: 0; flex: 1; height: 40px; border: 1px solid var(--line); border-radius: 7px; padding: 0 11px; color: var(--ink); background: var(--surface-2); }
.modal-section-title { margin: 20px 0 8px; color: var(--ink); font-size: .78rem; }
.audit-list { max-height: 390px; overflow: auto; border-top: 1px solid var(--line-soft); }
.audit-list > div { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.audit-list b { color: var(--ink); font-size: .72rem; }
.audit-list span, .audit-list small { color: var(--quiet); font-size: .65rem; }
.audit-list small { grid-column: 1 / -1; }
.adapter-note { margin: 13px 0 0; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 7px; color: var(--muted); background: var(--surface); font-size: .7rem; line-height: 1.55; }
.adapter-note.active { color: var(--amber); border-color: oklch(.45 .08 78); background: var(--amber-soft); }
.adapter-note.error { color: var(--red); border-color: oklch(.42 .09 25); background: var(--red-soft); }
.adapter-note a { color: inherit; font-weight: 700; }
.button:disabled, .icon-button:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 760px) {
  .settings-grid, .wechat-domain-grid { grid-template-columns: 1fr; }
  .domain-row { grid-template-columns: minmax(0, 1fr) auto 32px; padding: 9px 0; }
  .domain-row .text-button { grid-column: 1 / 2; }}

.field textarea { width: 100%; min-height: 92px; resize: vertical; border: 1px solid var(--line); border-radius: 7px; padding: 10px 11px; color: var(--ink); outline: 0; background: var(--surface-2); font: inherit; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus, .inline-form input:focus { border-color: var(--teal); }
.interaction-layout, .analysis-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 14px; margin-bottom: 14px; }
.interaction-panel { min-height: 360px; padding-bottom: 20px; }
.interaction-tabs { margin: 17px 20px 0; border-bottom: 1px solid var(--line-soft); padding-bottom: 8px; }
.phrase-list { margin: 8px 20px 0; }
.phrase-row { min-height: 54px; display: grid; grid-template-columns: 116px minmax(0, 1fr) 36px; align-items: center; gap: 12px; border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: .76rem; }
.phrase-id { color: var(--quiet); font-size: .65rem; overflow-wrap: anywhere; }
.sensitive-form { margin: 20px; }
.sensitive-word-list { min-height: 112px; display: flex; align-content: flex-start; flex-wrap: wrap; gap: 8px; margin: 8px 20px 0; }
.sensitive-word { height: 32px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid oklch(.4 .08 25); border-radius: 6px; padding: 0 6px 0 10px; color: var(--red); background: var(--red-soft); font-size: .72rem; }
.chip-remove { width: 24px; height: 24px; display: grid; place-items: center; border: 0; color: currentColor; background: transparent; }
.analytics-sample-note { margin: -12px 0 18px; padding: 10px 12px; border: 1px solid var(--amber); border-radius: 7px; color: var(--amber); background: var(--amber-soft); font-size: .72rem; }
.analytics-line-panel { min-height: 334px; }
.line-chart { position: relative; height: 245px; margin: 16px 20px 20px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(25% - 1px), var(--line-soft) 25%); }
.line-chart svg { position: absolute; inset: 0 0 28px; width: 100%; height: calc(100% - 28px); overflow: visible; }
.line-chart .line { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.line-labels { position: absolute; right: 0; bottom: 5px; left: 0; display: flex; justify-content: space-between; color: var(--quiet); font-size: .62rem; }
.rank-panel { min-height: 334px; }
.rank-list { padding: 14px 20px 20px; }
.rank-row { display: grid; grid-template-columns: minmax(76px, .8fr) minmax(100px, 1.5fr) 46px; align-items: center; gap: 10px; min-height: 40px; color: var(--muted); font-size: .72rem; }
.rank-row b { color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.rank-bar { height: 7px; overflow: hidden; border-radius: 99px; background: var(--surface-3); }
.rank-bar i { display: block; height: 100%; border-radius: inherit; background: var(--teal); }
.rank-bar i.green { background: var(--green); }
.rank-bar i.violet { background: var(--violet); }
.modal:has([data-form="presentation"]) { width: min(100%, 700px); }

@media (max-width: 760px) {
  .interaction-layout, .analysis-grid { grid-template-columns: 1fr; }
  .phrase-row { grid-template-columns: 86px minmax(0, 1fr) 36px; }
  .sensitive-form { flex-direction: column; }
  .sensitive-form .button { width: 100%; }
  .line-chart { margin-right: 14px; margin-left: 14px; }}
.account-table > div:first-child b, .account-table > div:first-child small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-table > div:first-child small { margin-top: 3px; color: var(--quiet); font-size: .67rem; }
.row-action { cursor: pointer; transition: background .16s ease; }
.row-action:hover, .row-action:focus-visible { background: var(--surface-2); }
.row-action:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.table-actions, .header-actions { display: flex; align-items: center; gap: 6px; }
.table-actions .icon-button { width: 30px; height: 30px; }
.table-actions .text-button { padding: 4px; }
.account-table-wrap { margin-top: 12px; }
.account-table { min-width: 800px; grid-template-columns: minmax(220px, 1.6fr) .8fr .7fr 1fr 52px; }
.account-table .text-button { white-space: nowrap; }
.replay-player { display: block; width: 100%; max-height: 62vh; margin-top: 18px; border: 1px solid var(--line); border-radius: 8px; background: #101821; }
.replay-segments { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

@media (max-width: 760px) {
  .header-actions { width: 100%; align-items: stretch; flex-direction: column; }
  .header-actions .button { width: 100%; }}

.settings-grid:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
.config-tabs { display: flex; align-items: center; gap: 6px; max-width: 100%; margin: -12px 0 20px; padding: 0 0 8px; overflow-x: auto; border-bottom: 1px solid var(--line-soft); }
.config-tabs .tab { flex: 0 0 auto; min-height: 40px; padding: 0 14px; }
.config-tabs .tab.active { color: var(--teal); background: var(--teal-soft); }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.settings-grid > .settings-panel:only-child { max-width: 820px; }
.broadcast-simple { max-width: 820px; }
.broadcast-simple .settings-panel { min-width: 0; }
.broadcast-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 20px 0; }
.broadcast-actions .button { min-height: 44px; }
.publish-result { min-width: 0; margin: 18px 20px 0; }
.publish-result:empty { display: none; }
.publish-result > b { display: block; font-size: .82rem; }
.publish-result .field { margin: 14px 0 0; }
.publish-result p { color: var(--muted); font-size: .72rem; line-height: 1.55; overflow-wrap: anywhere; }
.phone-preview { display: grid; place-items: center; aspect-ratio: 4 / 3; max-height: 430px; margin: 20px; overflow: hidden; border-radius: 7px; background: #101821; color: var(--muted); font-size: .8rem; }
.phone-preview video { width: 100%; height: 100%; object-fit: cover; }
.phone-preview [hidden] { display: none; }
.help-hint { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-left: 4px; border: 1px solid var(--muted); border-radius: 50%; color: var(--muted); font-size: .65rem; line-height: 1; cursor: help; vertical-align: middle; }
.help-hint:hover, .help-hint:focus-visible { border-color: var(--teal); color: var(--teal); outline-offset: 2px; }
.help-popover { display: block; width: fit-content; max-width: min(320px, 100%); margin: 6px 0 0; padding: 8px 10px; border: 1px solid var(--line-soft); border-radius: 6px; background: var(--surface-2); color: var(--ink); font-size: .75rem; line-height: 1.5; font-weight: 400; }
.help-popover[hidden] { display: none; }
[data-storage-group][hidden] { display: none; }
@media (max-width: 760px) {
  .help-hint { width: 44px; height: 44px; margin: -12px 0 -12px 2px; border: 0; border-radius: 6px; font-size: .8rem; }}
.diagnostic-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: -6px 0 16px; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.diagnostic-bar a { display: inline-block; margin-left: 10px; color: var(--teal); text-decoration: underline; }
.diagnostic-bar > [data-diagnostic-result] { flex: 1 1 360px; min-width: 0; }
.diagnostic-summary { margin: 0 0 8px; }
.diagnostic-list { border-top: 1px solid var(--line-soft); }
.diagnostic-item { display: grid; grid-template-columns: minmax(0, 1fr) 88px minmax(90px, 130px); align-items: center; gap: 12px; min-height: 54px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.diagnostic-item b, .diagnostic-item small { display: block; }
.diagnostic-item b { color: var(--ink); font-size: .78rem; }
.diagnostic-item small { color: var(--muted); font-size: .7rem; }
.diagnostic-item a { margin-left: 0; }
.diagnostic-status.ready { color: var(--green); }
.diagnostic-status.missing { color: var(--amber); }
.diagnostic-status.failed { color: var(--danger); }
.diagnostic-status.manual, .diagnostic-no-link { color: var(--quiet); }
.diagnostic-evidence { margin-top: 3px; color: var(--quiet) !important; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.replay-test-result { margin-top: 12px; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.replay-test-result .diagnostic-list { margin-top: 8px; }
.sidebar-bottom .account { cursor: pointer; border-radius: 7px; }
.sidebar-bottom .account:hover, .sidebar-bottom .account:focus-visible { background: var(--surface-2); outline: 2px solid var(--teal); outline-offset: -2px; }
.top-avatar { border: 0; }
.top-avatar:hover { background: oklch(.34 .08 300); }
.top-avatar:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* The signed watch route is a touch-first H5 surface, separate from the operator console. */
.watch-page:has(.mobile-live-room),
.watch-page.watch-locked {
  position: fixed;
  z-index: 1;
  inset: 0;
  min-height: 100dvh;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  background: #080b0f;
}
/* 未授权观众只看到这一屏：上一场直播的静态图 + 授权入口，没有任何直播内容。 */
/* 分步引导式配置页：一步一张卡，做完打勾 */
.setup-flow { display: flex; flex-direction: column; gap: 14px; max-width: 900px; }
.setup-step { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 16px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.setup-step.is-done { border-color: oklch(.62 .12 165 / .45); }
.setup-step.skip-card.is-skipped { border-color: oklch(.78 .13 85 / .6); background: oklch(.78 .13 85 / .06); }
.setup-step.skip-card.is-skipped .setup-step-mark { color: oklch(.78 .13 85); border-color: oklch(.78 .13 85 / .6); }
.setup-step-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-size: .9rem; font-weight: 700; }
.setup-step.is-done .setup-step-mark { border-color: transparent; color: oklch(.18 .03 200); background: var(--green); }
.text-button.text-danger { color: oklch(.68 .17 25); }
.setup-step-body { min-width: 0; }
.setup-list { margin: 8px 0 0; padding-left: 1.3rem; color: var(--muted); font-size: .8rem; line-height: 1.85; }
.setup-list li { margin-bottom: 6px; }
.setup-list code { padding: 1px 5px; border-radius: 4px; background: oklch(.28 .03 220 / .55); }
.setup-step h3 { margin: 4px 0 0; font-size: 1rem; }
/* 字段下面的灰色小字说明，全站通用 */
.field-note { display: block; margin-top: 5px; color: var(--muted); font-size: .72rem; line-height: 1.65; }
.field-note code { padding: 1px 4px; border-radius: 3px; background: oklch(.28 .03 220 / .55); }
.setup-step-hint { margin: 7px 0 15px; color: var(--muted); font-size: .82rem; line-height: 1.72; }
.setup-step-hint a, .setup-step p a { color: var(--teal); }
.setup-step code { padding: 1px 5px; border-radius: 4px; background: oklch(.28 .03 220 / .55); font-size: .92em; }
.setup-subsection { margin: 14px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: oklch(.24 .02 220 / .45); }
.setup-subsection > b { display: block; margin-bottom: 4px; font-size: .84rem; }
.setup-subsection .setup-list { margin-top: 6px; }
.setup-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.setup-grid.is-hidden { display: none; }
.setup-inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 10px 0; }
.setup-advanced summary { padding: 9px 0; color: var(--teal); font-size: .82rem; cursor: pointer; }
.setup-footer { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; max-width: 900px; margin-top: 16px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: var(--surface); font-size: .8rem; }
.copy-row { display: flex; flex-direction: column; gap: 6px; }
.copy-row > span { font-size: .8rem; }
.copy-row small { color: var(--muted); font-size: .74rem; line-height: 1.6; }
.notice { margin-top: 12px; padding: 11px 14px; border-left: 3px solid var(--line); border-radius: 0 7px 7px 0; color: var(--muted); background: oklch(.24 .02 220 / .5); font-size: .78rem; line-height: 1.72; }
.notice-ok { border-left-color: var(--green); }
.notice-warn { border-left-color: oklch(.78 .13 85); }
/* 画质档位选择 */
.quality-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.quality-card { position: relative; display: flex; flex-direction: column; gap: 7px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.quality-card:hover { border-color: var(--teal); }
.quality-card.is-active { border-color: var(--teal); background: oklch(.7 .12 195 / .08); }
.quality-card input { position: absolute; opacity: 0; pointer-events: none; }
.quality-card-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.quality-card-head b { font-size: .95rem; }
.quality-card-res { color: var(--quiet); font-size: .7rem; }
.quality-card-traffic { color: var(--teal); font-size: .78rem; }
.quality-card small { color: var(--muted); font-size: .73rem; line-height: 1.62; }
.quota-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.quota-summary > div { padding: 13px 15px; border: 1px solid var(--line-soft); border-radius: 9px; }
.quota-summary span { display: block; color: var(--muted); font-size: .73rem; }
.quota-summary b { display: block; margin-top: 4px; font-size: 1.12rem; }
.wechat-dns-table small { display: block; color: var(--quiet); font-size: .7rem; }
/* 入口域名池 + 直播间二维码 */
.entry-active { display: inline-block; margin-left: 8px; padding: 2px 7px; border-radius: 4px; color: oklch(.18 .03 200); background: var(--green); font-size: .66rem; font-weight: 600; }
/* 推流直播页：左边开播，右边开播前检查 */
.broadcast-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 16px; align-items: start; max-width: 1080px; }
@media (max-width: 900px) { .broadcast-layout { grid-template-columns: minmax(0, 1fr); }}
.broadcast-main, .broadcast-side { padding: 20px 22px; }
.button-lg { min-height: 44px; padding: 0 24px; font-size: .92rem; }
.live-badge { display: inline-flex; gap: 7px; align-items: center; padding: 5px 11px; border-radius: 999px; color: var(--muted); background: oklch(.28 .02 220 / .6); font-size: .74rem; }
.live-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--quiet); }
.live-badge.is-live { color: var(--green); background: var(--green-soft); }
.live-badge.is-live i { background: var(--green); animation: live-pulse 1.4s ease-in-out infinite; }
@keyframes live-pulse { 50% { opacity: .35; } }
.publish-steps { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.publish-step { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; }
.publish-step > b { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: oklch(.18 .03 200); background: var(--teal); font-size: .76rem; }
.publish-step span { display: block; margin-bottom: 7px; font-size: .82rem; line-height: 1.7; }
.preflight-list { display: flex; flex-direction: column; gap: 2px; }
.preflight-item { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 11px 2px; border-bottom: 1px solid var(--line-soft); }
.preflight-item:last-child { border-bottom: 0; }
.preflight-item.is-ok > span { color: var(--green); }
.preflight-item.is-bad > span { color: oklch(.68 .17 25); }
.preflight-item b { display: block; font-size: .8rem; }
.preflight-item small { display: block; margin-top: 3px; color: var(--muted); font-size: .72rem; line-height: 1.6; overflow-wrap: anywhere; }
.mobile-broadcast .phone-preview { position: relative; aspect-ratio: 9 / 16; max-height: 52vh; margin: 14px 0; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #080b0f; }
.mobile-broadcast .phone-preview video { width: 100%; height: 100%; object-fit: cover; }
.mobile-broadcast .broadcast-actions { display: flex; gap: 10px; }
.mobile-broadcast .broadcast-actions .button { flex: 1; justify-content: center; }
/* 通知铃铛：只有真有未读才亮红点，数字是真实未读数 */
.icon-button.notification { position: relative; }
.icon-button.notification i { position: absolute; top: 2px; right: 2px; min-width: 15px; height: 15px; padding: 0 3px; display: grid; place-items: center; border-radius: 999px; color: #fff; background: oklch(.62 .2 25); font-size: .58rem; font-style: normal; font-weight: 700; }
.alert-panel { position: absolute; z-index: 40; top: 54px; right: 14px; width: min(360px, calc(100vw - 28px)); border: 1px solid var(--line); border-radius: 11px; background: var(--surface); box-shadow: 0 16px 40px rgb(0 0 0 / .4); }
.alert-panel-head { display: flex; justify-content: space-between; align-items: center; padding: 13px 15px; border-bottom: 1px solid var(--line-soft); font-size: .86rem; }
.alert-panel-body { max-height: 52vh; overflow-y: auto; }
.alert-panel-foot { padding: 10px 15px; border-top: 1px solid var(--line-soft); text-align: right; }
.alert-list { margin: 0; padding: 0; list-style: none; }
.alert-row { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: 11px; padding: 12px 15px; border-bottom: 1px solid var(--line-soft); }
.alert-row:last-child { border-bottom: 0; }
.alert-row.is-unread { background: oklch(.7 .12 195 / .06); }
.alert-row b { display: block; font-size: .82rem; font-weight: 600; }
.alert-row small { display: block; margin-top: 3px; color: var(--muted); font-size: .74rem; line-height: 1.6; }
.alert-row time { display: block; margin-top: 4px; color: var(--quiet); font-size: .68rem; }
/* 官方助手消息要一眼能和普通观众区分开 */
.mobile-live-chat-row.is-assistant .mobile-live-chat-avatar { color: #08252a; background: #38c5bb; }
.chat-badge { display: inline-block; margin-right: 5px; padding: 1px 5px; border-radius: 3px; color: #08252a; background: #38c5bb; font-size: .62rem; font-style: normal; font-weight: 700; vertical-align: 1px; }
.chat-badge.is-host { color: #2a1605; background: oklch(.8 .14 70); }
.chat-badge.is-insider { color: var(--muted); background: transparent; border: 1px dashed var(--line); }
/* 场控台 */
.moderator-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 14px; align-items: start; }
.mod-main, .mod-side { padding-bottom: 18px; }
.mod-chat { height: 420px; margin: 14px 20px 0; padding: 10px 12px; overflow-y: auto; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface-2); }
.mod-chat-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-size: .8rem; line-height: 1.55; }
.mod-chat-row:last-child { border-bottom: 0; }
.mod-chat-row b { color: var(--muted); font-weight: 600; }
.mod-chat-row.is-staff b { color: var(--teal); }
.mod-chat-row span { flex: 1 1 60%; min-width: 0; overflow-wrap: anywhere; color: var(--ink); }
.mod-chat-row small { color: var(--quiet); font-size: .66rem; }
.mod-identities { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 20px 0; }
.mod-identity { display: inline-flex; align-items: center; gap: 2px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: transparent; font-size: .78rem; cursor: pointer; }
.mod-identity.active { color: var(--ink); border-color: var(--teal); background: var(--teal-soft); }
.mod-compose { display: flex; gap: 10px; margin: 12px 20px 0; }
.mod-compose input { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--surface-2); }
.mod-identity-list { display: flex; flex-direction: column; gap: 8px; margin: 14px 20px 0; }
.mod-identity-row { display: grid; grid-template-columns: minmax(0, 1fr) 84px 32px; gap: 8px; align-items: center; }
.mod-identity-row input, .mod-identity-row select { height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: var(--surface-2); }
.mod-side .setup-inline, .mod-side .notice { margin-left: 20px; margin-right: 20px; }
@media (max-width: 900px) { .moderator-layout { grid-template-columns: 1fr; } .mod-chat { height: 320px; }}
/* 域名分组和当前线路示意 */
.domain-group { margin-top: 18px; }
.domain-group h4 { display: flex; gap: 9px; align-items: baseline; margin: 0 0 9px; font-size: .88rem; }
.domain-group h4 small { color: var(--muted); font-size: .72rem; font-weight: 400; }
.route-flow { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.route-step { flex: 1; min-width: 190px; padding: 15px 17px; border: 1px solid var(--line-soft); border-radius: 10px; }
.route-step span { display: block; color: var(--muted); font-size: .73rem; }
.route-step b { display: block; margin: 5px 0 3px; overflow-wrap: anywhere; font-size: .95rem; }
.route-step small { color: var(--teal); font-size: .7rem; }
.route-arrow { color: var(--quiet); }
/* 场次列表里点开的二维码弹窗 */
.qr-modal { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.qr-modal-code { width: 172px; flex: 0 0 172px; min-height: 172px; display: grid; place-items: center; padding: 10px; border-radius: 10px; color: #6b7b80; background: #fff; font-size: .74rem; }
.qr-modal-code svg { width: 100%; height: auto; display: block; }
.qr-modal-side { flex: 1; min-width: 210px; display: flex; flex-direction: column; gap: 14px; }
.qr-modal-side .copy-row small { overflow-wrap: anywhere; line-height: 1.66; }
/* 配置状态体检清单 */
.deployment-list { display: flex; flex-direction: column; gap: 2px; margin: 4px 0 14px; }
.deployment-row { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 14px; align-items: start; padding: 13px 2px; border-bottom: 1px solid var(--line-soft); }
.deployment-row:last-child { border-bottom: 0; }
.deployment-row b { display: block; font-size: .87rem; font-weight: 600; }
.deployment-row small { display: block; margin-top: 4px; color: var(--muted); font-size: .76rem; line-height: 1.6; }
.deployment-state { display: inline-flex; justify-content: center; padding: 4px 9px; border-radius: 5px; font-size: .7rem; font-weight: 600; }
.deployment-state.ok { color: var(--green); background: var(--green-soft); }
.deployment-state.warn { color: oklch(.78 .13 85); background: oklch(.78 .13 85 / .14); }
.deployment-state.bad { color: oklch(.68 .17 25); background: oklch(.68 .17 25 / .14); }
.cert-meta { display: block; margin-top: 5px; color: var(--muted); font-size: .68rem; line-height: 1.5; overflow-wrap: anywhere; }
.file-picker.has-file { color: var(--green); border-color: oklch(.62 .12 165 / .55); }
.deployment-evidence { display: block; margin-top: 6px; overflow-wrap: anywhere; color: var(--quiet); font-size: .68rem; }
.verify-file-list { display: flex; flex-direction: column; gap: 7px; margin: 0 0 10px; padding: 0; list-style: none; }
.verify-file-list li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 9px 11px; border: 1px solid var(--line-soft); border-radius: 7px; font-size: .78rem; }
.verify-file-list a { overflow-wrap: anywhere; color: var(--teal); }
.watch-locked-poster { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; background: #080b0f; }
.watch-locked-poster-empty { display: grid; place-items: center; color: oklch(.62 .04 200); background: radial-gradient(circle at 50% 38%, oklch(.24 .05 205), #080b0f 72%); }
/* 有静态图时让弹窗背景半透明，图能透出来；没有图就保持微信里常见的纯灰底。 */
.viewer-auth-backdrop.has-poster { background: rgb(0 0 0 / .55); }
.watch-locked-reauth { position: absolute; z-index: 21; right: 0; bottom: calc(34px + env(safe-area-inset-bottom)); left: 0; width: fit-content; margin: 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 11px 22px; border: 0; border-radius: 999px; color: #fff; background: rgb(0 0 0 / .62); font-size: .86rem; }
.watch-locked-reauth.is-hidden { display: none; }
.mobile-live-room {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: #080b0f;
}
.mobile-live-browserbar {
  position: absolute;
  z-index: 5;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  min-height: 88px;
  padding: env(safe-area-inset-top) 10px 10px;
  color: #16181b;
  background: #f4f4f5;
}
.mobile-live-browser-title { min-width: 0; text-align: center; line-height: 1.15; }
.mobile-live-browser-title b,
.mobile-live-browser-title span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-live-browser-title b { font-size: .98rem; font-weight: 700; }
.mobile-live-browser-title span { max-width: 65vw; margin: 4px auto 0; color: #777b80; font-size: .67rem; }
.mobile-live-close,
.mobile-live-more {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #16181b;
  background: transparent;
}
.mobile-live-close:hover,
.mobile-live-more:hover,
.mobile-live-close:focus-visible,
.mobile-live-more:focus-visible { background: #e3e4e6; }
.mobile-live-stage { position: absolute; inset: 88px 0 0; background: #080b0f; }
.mobile-live-stage video { width: 100%; height: 100%; display: block; object-fit: cover; background: #080b0f; }
.mobile-live-shade { position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgb(0 0 0 / .18), transparent 27%, transparent 55%, rgb(0 0 0 / .7) 100%); }
.mobile-live-cover { position: absolute; z-index: 3; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 80px 24px 170px; text-align: center; background: rgb(7 10 14 / .72); }
.mobile-live-cover.is-hidden { display: none; }
.mobile-live-cover b { max-width: min(78vw, 460px); font-size: 1.05rem; line-height: 1.4; }
.mobile-live-cover small { max-width: min(82vw, 520px); color: rgb(255 255 255 / .72); font-size: .76rem; line-height: 1.55; }
.mobile-live-host { position: absolute; z-index: 2; top: calc(18px + env(safe-area-inset-top)); left: 30px; display: flex; align-items: center; gap: 8px; max-width: calc(100% - 60px); padding: 5px 7px 5px 5px; border: 1px solid rgb(255 255 255 / .24); border-radius: 28px; background: rgb(0 0 0 / .42); backdrop-filter: blur(8px); }
.mobile-live-avatar { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 38px; overflow: hidden; border: 2px solid rgb(255 255 255 / .86); border-radius: 50%; color: #fff; background: #2c6b70; font-size: .84rem; font-weight: 750; }
.mobile-live-host-copy { min-width: 0; text-shadow: 0 1px 3px rgb(0 0 0 / .55); }
.mobile-live-host-copy b,
.mobile-live-host-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-live-host-copy b { font-size: .84rem; }
.mobile-live-host-copy small { margin-top: 2px; color: rgb(255 255 255 / .74); font-size: .66rem; }
.mobile-live-host-copy i { width: 6px; height: 6px; display: inline-block; margin: 0 5px 1px 0; border-radius: 50%; background: #61e29b; }
.mobile-live-follow { min-width: 52px; min-height: 30px; margin-left: 3px; padding: 0 10px; border: 0; border-radius: 16px; color: #24190d; background: #ffc56e; font-size: .68rem; font-weight: 700; }
.mobile-live-follow.is-following { color: #111; background: #fff; }
.mobile-live-viewers { position: absolute; z-index: 2; top: calc(22px + env(safe-area-inset-top)); right: 14px; display: flex; align-items: center; gap: 5px; min-height: 38px; padding: 0 13px; border: 1px solid rgb(255 255 255 / .28); border-radius: 20px; color: #fff; background: rgb(0 0 0 / .38); text-shadow: 0 1px 3px rgb(0 0 0 / .55); font-size: .76rem; }
.mobile-live-viewers b { font-variant-numeric: tabular-nums; }
.mobile-live-status { position: absolute; z-index: 4; right: 16px; bottom: calc(143px + env(safe-area-inset-bottom)); left: 16px; min-height: 0; color: rgb(255 255 255 / .72); font-size: .7rem; line-height: 1.45; text-align: center; text-shadow: 0 1px 3px #000; pointer-events: none; }
.mobile-live-status:empty { display: none; }
.mobile-live-status.warning { color: #ffe0a3; }
.mobile-live-status.error { color: #ffb6b0; }
.mobile-live-status.active { color: #b9f6d5; }
.mobile-live-chat { position: absolute; z-index: 2; right: 74px; bottom: calc(134px + env(safe-area-inset-bottom)); left: 16px; max-height: min(31vh, 260px); overflow: auto; padding-right: 4px; scrollbar-width: none; }
.mobile-live-chat::-webkit-scrollbar { display: none; }
.mobile-live-chat-row { display: flex; align-items: flex-start; gap: 7px; width: fit-content; max-width: min(100%, 540px); margin-top: 8px; padding: 5px 11px 5px 4px; border-radius: 20px; color: #fff; background: rgb(0 0 0 / .48); font-size: .74rem; line-height: 1.45; text-shadow: 0 1px 3px rgb(0 0 0 / .72); }
.mobile-live-chat-avatar { width: 22px; height: 22px; display: grid; place-items: center; flex: 0 0 22px; border-radius: 50%; color: #d8ffff; background: rgb(24 107 112 / .9); font-size: .62rem; }
.mobile-live-chat-copy { overflow-wrap: anywhere; }
.mobile-live-chat-copy b { color: #b8ffff; font-weight: 650; }
.mobile-live-chat-empty { padding: 8px 0; color: rgb(255 255 255 / .55); font-size: .7rem; text-shadow: 0 1px 3px #000; }
.mobile-live-policy { position: absolute; z-index: 2; right: 30px; bottom: calc(82px + env(safe-area-inset-bottom)); left: 30px; padding: 8px 12px; border-radius: 16px; color: rgb(255 255 255 / .9); background: rgb(0 0 0 / .45); font-size: .67rem; line-height: 1.5; text-shadow: 0 1px 3px #000; }
.mobile-live-bottom { position: absolute; z-index: 4; right: 14px; bottom: env(safe-area-inset-bottom); left: 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; padding: 10px 0 12px; }
.mobile-live-composer { min-width: 0; display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 6px 0 13px; border: 1px solid rgb(255 255 255 / .28); border-radius: 22px; background: rgb(0 0 0 / .32); backdrop-filter: blur(8px); }
.mobile-live-composer input { width: 100%; min-width: 0; height: 40px; border: 0; outline: 0; color: #fff; background: transparent; font-size: .76rem; }
.mobile-live-composer input::placeholder { color: rgb(255 255 255 / .64); }
.mobile-live-composer input:disabled { opacity: .5; }
.mobile-live-composer button { min-width: 42px; height: 32px; border: 0; border-radius: 16px; color: #111; background: #fff; font-size: .7rem; font-weight: 700; }
.mobile-live-composer button:disabled { color: rgb(255 255 255 / .55); background: rgb(255 255 255 / .15); }
.mobile-live-actions { display: flex; align-items: end; gap: 7px; }
.mobile-live-actions button { width: 44px; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: end; gap: 2px; border: 0; color: #fff; background: transparent; text-shadow: 0 1px 3px #000; }
.mobile-live-actions button:hover { color: #b8ffff; }
.mobile-live-actions span { min-height: 24px; display: grid; place-items: center; font-size: 1.5rem; line-height: 1; }
.mobile-live-actions b,
.mobile-live-actions small { font-size: .62rem; font-weight: 500; line-height: 1.2; }
.viewer-auth-backdrop { position: absolute; z-index: 20; inset: 88px 0 0; display: grid; place-items: center; padding: 20px; background: #4b4b4b; }
.viewer-auth-dialog { width: min(100%, 320px); overflow: hidden; border-radius: 8px; color: #27292c; background: #fff; box-shadow: 0 8px 24px rgb(0 0 0 / .12); }
.viewer-auth-dialog h2 { margin: 0; padding: 24px 22px 10px; font-size: 1.16rem; font-weight: 700; text-align: center; }
.viewer-auth-dialog p { margin: 0; padding: 0 22px 24px; color: #62656a; font-size: .94rem; line-height: 1.55; text-align: center; }
.viewer-auth-actions { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #e5e7ea; }
.viewer-auth-actions button { min-height: 56px; border: 0; border-right: 1px solid #e5e7ea; color: #34373a; background: #fff; font-size: .98rem; }
.viewer-auth-actions button:last-child { border-right: 0; color: #4c9de8; font-weight: 700; }
.viewer-auth-actions button:hover { background: #f3f5f6; }
@media (min-width: 761px) {
  .watch-page:has(.mobile-live-room) { display: grid; place-items: center; }
  .mobile-live-room { width: min(100vw, 430px); height: min(100dvh, 860px); min-height: 0; border: 1px solid rgb(255 255 255 / .12); box-shadow: 0 20px 80px rgb(0 0 0 / .4); }}
@media (max-width: 420px) {
  .mobile-live-host { left: 12px; }
  .mobile-live-viewers { right: 12px; }
  .mobile-live-bottom { right: 10px; left: 10px; gap: 6px; }
  .mobile-live-actions { gap: 0; }
  .mobile-live-actions button { width: 40px; }}

/* Compact public-account configuration form. */
.wechat-simple-card { margin-top: 14px; padding-bottom: 22px; }
.wechat-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px 16px; border-bottom: 1px solid var(--line-soft); }
.wechat-card-heading > div:first-child { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wechat-card-heading h2 { margin: 0; font-size: .92rem; }
.wechat-card-heading .panel-sub { display: block; margin-top: 4px; }
.wechat-card-icon { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--teal); border-radius: 50%; color: var(--teal); }
.wechat-domain-section { margin-right: 20px; margin-left: 20px; }
.wechat-domain-section-head small, .file-field > small { color: var(--quiet); font-size: .68rem; }
.wechat-domain-section h3 { margin: 0; font-size: .86rem; }
.wechat-dns-table-wrap { margin-top: 10px; overflow-x: auto; border: 1px solid var(--line-soft); border-radius: 6px; }
.wechat-dns-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .72rem; }
.wechat-dns-table th, .wechat-dns-table td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: middle; }
.wechat-dns-table th { color: var(--muted); background: var(--surface-2); font-weight: 600; }
.wechat-dns-table tr:last-child td { border-bottom: 0; }
.wechat-dns-table td:nth-child(3) { color: var(--muted); overflow-wrap: anywhere; }
.wechat-dns-table .table-actions { justify-content: flex-start; }
.wechat-dns-table .text-button { padding: 4px 0; }
.file-picker { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; margin-top: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: var(--surface-2); cursor: pointer; }
.file-picker:hover { border-color: var(--teal); color: var(--ink); }
.file-picker input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.file-field > small { display: block; margin-top: 7px; line-height: 1.45; }
.file-field > small.error { color: var(--red); }
.wechat-domain-section { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.wechat-domain-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.wechat-domain-input { display: flex; align-items: center; gap: 7px; }
.wechat-domain-input input { min-width: 0; flex: 1; }
.wechat-domain-input .icon-button { flex: 0 0 36px; }
@media (max-width: 760px) {
  .wechat-card-heading { align-items: flex-start; flex-direction: column; }}
@media (max-width: 760px) {
  .sidebar { position: fixed; top: 0; height: 100vh; }
  .config-tabs { margin-top: -6px; }
  .config-tabs .tab { min-height: 44px; }
  .diagnostic-item { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; }
  .diagnostic-item a, .diagnostic-no-link { grid-column: 1 / -1; min-height: 32px; }
  .broadcast-simple, .broadcast-simple .panel { width: 100%; }
  .broadcast-actions { flex-direction: column; }
  .broadcast-actions .button { width: 100%; }
  .publish-result .copy-field { min-width: 0; }}
/* 手机开播：预览画面右上角的翻转摄像头按钮 */
[data-mobile-render] { position: relative; }

/* 总览表格、场次详情 */
.overview-table td small { display: block; margin-top: 2px; color: var(--quiet); font-size: .68rem; }
.overview-table tr.row-action { cursor: pointer; }
.overview-table tr.row-action:hover td { background: var(--surface-2); }
.detail-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.detail-metric { padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface-2); }
.detail-metric span { display: block; color: var(--quiet); font-size: .7rem; }
.detail-metric b { display: block; margin-top: 4px; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.detail-metric small { display: block; margin-top: 2px; color: var(--quiet); font-size: .66rem; }
.live-log { display: flex; flex-direction: column; max-height: 260px; overflow-y: auto; }
.live-log-row { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.live-log-row:last-child { border-bottom: 0; }
.live-log-icon { display: grid; place-items: center; flex: 0 0 24px; width: 24px; height: 24px; border-radius: 6px; color: var(--teal); background: var(--teal-soft); }
.live-log-row b { display: block; font-size: .78rem; font-weight: 600; }
.live-log-row small { display: block; margin-top: 2px; color: var(--quiet); font-size: .68rem; }
@media (max-width: 760px) { .detail-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }}

/* 观众运营：批量操作、标签管理 */
.viewer-check { width: 16px; height: 16px; margin-right: 6px; accent-color: var(--teal); vertical-align: -3px; }
.viewer-status-note { display: block; margin-top: 3px; color: var(--quiet); font-size: .66rem; line-height: 1.4; }
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; padding: 10px 14px; border: 1px solid var(--teal); border-radius: 10px; background: var(--teal-soft); font-size: .8rem; }
.bulk-bar.is-idle { border-color: var(--line-soft); background: transparent; color: var(--muted); }
.bulk-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bulk-actions .button { min-height: 34px; padding: 0 12px; font-size: .78rem; }
.tag-new { display: flex; gap: 8px; margin: 12px 0; }
.tag-new input { flex: 1; min-width: 0; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: var(--surface-2); }
.tag-manager { display: flex; flex-direction: column; gap: 8px; max-height: 340px; overflow-y: auto; }
.tag-manager-row { display: grid; grid-template-columns: minmax(0, 1fr) 54px auto auto; align-items: center; gap: 10px; }
.tag-manager-row input { height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: var(--surface-2); }
.tag-manager-row input:disabled { opacity: .7; }

/* 弹幕上的删除 / 禁言 / 拉黑 */
.chat-mod-actions { display: inline-flex; gap: 2px; margin-left: auto; opacity: .55; }
.mod-chat-row:hover .chat-mod-actions { opacity: 1; }
.chat-mod-actions button { padding: 1px 6px; border: 0; border-radius: 4px; color: var(--muted); background: transparent; font-size: .66rem; cursor: pointer; }
.chat-mod-actions button:hover { color: var(--ink); background: var(--surface); }
.chat-mod-actions button[data-chat-mod="block"]:hover { color: oklch(.68 .17 25); }
.detail-chat { height: auto; max-height: 220px; margin: 0; }
.live-log-all { max-height: 60vh; }
.live-log-all .live-log-icon { flex-basis: 34px; width: 34px; font-size: .64rem; font-weight: 700; }
.live-log-row.row-action { cursor: pointer; }
.live-log-row.row-action:hover { background: var(--surface-2); }
/* 观看页：静音自动播放时的「打开声音」按钮 */
.mobile-live-unmute { position: absolute; z-index: 6; top: 64px; right: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 0; border-radius: 999px; color: #08252a; background: #38c5bb; font-size: .8rem; font-weight: 600; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }

/* 手机开播全屏直播模式：盖住整页（菜单点不到），弹幕叠在画面上 */
html.live-mode-on, html.live-mode-on body { overflow: hidden; overscroll-behavior: none; }
[data-mobile-render].is-live-fullscreen { position: fixed !important; z-index: 90; inset: 0; width: 100vw !important; height: 100dvh !important; max-width: none !important; max-height: none !important; aspect-ratio: auto !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; background: #000; }
[data-mobile-render].is-live-fullscreen video { width: 100% !important; height: 100% !important; object-fit: cover; }
/* 遮罩层自己吃掉点击：就算哪里没盖严，也点不到下面的页面 */
.live-mode { position: fixed; z-index: 91; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: calc(env(safe-area-inset-top) + 12px) 12px calc(env(safe-area-inset-bottom) + 16px); pointer-events: auto; touch-action: none; color: #fff; }
.live-mode button { pointer-events: auto; }
.live-mode-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.live-mode-state, .live-mode-pill { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 999px; background: rgba(0, 0, 0, .45); font-size: .76rem; font-variant-numeric: tabular-nums; backdrop-filter: blur(6px); }
.live-mode-state { background: #e5484d; font-weight: 700; }
.live-mode-state.is-warn { background: #d99a1f; }
.live-mode-flip { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; padding: 7px 12px; border: 0; border-radius: 999px; color: #fff; background: rgba(0, 0, 0, .45); font-size: .76rem; backdrop-filter: blur(6px); }
.live-mode-chat { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; max-width: 78%; max-height: 42vh; margin-top: auto; margin-bottom: 14px; overflow: hidden; }
.live-mode-msg { align-self: flex-start; max-width: 100%; padding: 6px 10px; border-radius: 14px; background: rgba(0, 0, 0, .42); font-size: .82rem; line-height: 1.45; overflow-wrap: anywhere; backdrop-filter: blur(4px); }
.live-mode-msg b { margin-right: 6px; color: #9ee6df; font-weight: 600; }
.live-mode-msg.is-empty { color: rgba(255, 255, 255, .7); }
.live-mode-bottom { display: flex; justify-content: flex-end; }
.live-mode-end { display: inline-flex; align-items: center; gap: 6px; padding: 11px 20px; border: 0; border-radius: 999px; color: #fff; background: #e5484d; font-size: .9rem; font-weight: 700; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
/* 全屏直播时确认框和提示要浮在最上面，否则点「结束直播」看不到确认框 */
html.live-mode-on .modal-backdrop { z-index: 100; }
html.live-mode-on .toast { z-index: 101; }

/* 手机开播首页：一张卡片（名称 + 开始预览），其余设置收进「更多设置」；摄像头画面只在全屏里出现 */
.mobile-broadcast { display: flex; flex-direction: column; gap: 14px; max-width: 560px; margin: 0 auto; }
.mobile-broadcast .phone-preview:not(.is-live-fullscreen) { display: none; }
.mobile-go-card { display: flex; flex-direction: column; gap: 16px; padding: 22px 18px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.mobile-go-head { display: flex; align-items: center; gap: 12px; }
.mobile-go-head h2 { margin: 0; font-size: 1.15rem; }
.mobile-go-head p { margin: 3px 0 0; color: var(--muted); font-size: .8rem; }
.mobile-go-icon { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; border-radius: 13px; color: var(--teal); background: var(--teal-soft); }
.mobile-go-card .field { margin: 0; }
.mobile-go-card .field input { height: 48px; padding: 0 14px; font-size: 1rem; }
.mobile-go-button { width: 100%; justify-content: center; padding: 15px 18px; font-size: 1rem; border-radius: 12px; }
.mobile-go-tip { margin: -6px 0 0; color: var(--quiet); font-size: .74rem; text-align: center; }
.mobile-more { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.mobile-more summary { display: flex; align-items: baseline; gap: 8px; padding: 14px 18px; cursor: pointer; list-style: none; font-weight: 650; }
.mobile-more summary::-webkit-details-marker { display: none; }
.mobile-more summary::after { content: "›"; margin-left: auto; color: var(--quiet); font-size: 1.2rem; transition: transform .15s; }
.mobile-more[open] summary::after { transform: rotate(90deg); }
.mobile-more summary small { color: var(--quiet); font-size: .74rem; font-weight: 400; }
.mobile-more-body { display: flex; flex-direction: column; gap: 12px; padding: 0 14px 14px; }
.mobile-more-body > .field, .mobile-more-body > .setting-row { margin: 0 4px; }
.mobile-more-body > .panel { margin: 0; border-radius: 12px; }

/* 全屏预览：上面退出 / 翻转，下面名称 + 大的「开始直播」 */
.live-mode-back { margin-left: 0; }
.live-mode-hint { align-self: center; margin-top: auto; padding: 6px 14px; border-radius: 999px; background: rgba(0, 0, 0, .45); font-size: .8rem; backdrop-filter: blur(6px); }
.live-mode-start { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 18px; }
.live-mode-title { max-width: 90%; padding: 5px 12px; border-radius: 999px; background: rgba(0, 0, 0, .45); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; backdrop-filter: blur(6px); }
.live-mode-go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: min(320px, 86vw); padding: 16px 20px; border: 0; border-radius: 999px; color: #fff; background: #e5484d; font-size: 1.05rem; font-weight: 700; box-shadow: 0 8px 22px rgba(0, 0, 0, .4); }
.live-mode-go:disabled { opacity: .55; }

/* 观看页诊断（链接加 debug=1 才出现） */
.watch-diag { position: absolute; z-index: 6; top: 8px; left: 8px; right: 8px; padding: 6px 9px; border-radius: 8px; color: #b8fff3; background: rgba(0, 0, 0, .62); font: 12px/1.5 ui-monospace, Menlo, monospace; pointer-events: none; }

/* 手机开播首页：上一场没结束，可以接着播 */
.mobile-resume { display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 1px solid oklch(0.62 0.15 25 / .55); border-radius: 12px; background: oklch(0.62 0.15 25 / .12); }
.mobile-resume b { display: block; font-size: .92rem; }
.mobile-resume small { display: block; margin-top: 4px; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.mobile-resume-actions { display: flex; gap: 10px; }
.mobile-resume-actions .button { flex: 1; justify-content: center; }
.mobile-resume-actions .button-primary { flex: 2; }

/* 观看页：不再画假的「浏览器标题栏」。微信、浏览器自己都有标题栏，画了就会出现两条 */
.mobile-live-browserbar { display: none; }
.mobile-live-stage, .viewer-auth-backdrop { inset: 0; }


/* 观众列表：正在观看 */
.watching-dot { margin-left: 6px; padding: 1px 6px; border-radius: 999px; color: #0b3b2a; background: #61e29b; font-size: .66rem; font-style: normal; font-weight: 700; }

/* 直播间：评论框上方的用户常用语（可左右滑），有常用语时聊天和提示整体上移 */
.mobile-live-phrases { position: absolute; z-index: 4; right: 0; bottom: calc(74px + env(safe-area-inset-bottom)); left: 0; display: flex; gap: 8px; padding: 0 14px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.mobile-live-phrases::-webkit-scrollbar { display: none; }
.mobile-live-phrases button { flex: 0 0 auto; max-width: 70vw; min-height: 34px; padding: 0 14px; overflow: hidden; border: 0; border-radius: 999px; color: #fff; background: rgb(0 0 0 / .5); font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; backdrop-filter: blur(4px); }
.mobile-live-phrases button:active { background: rgb(255 255 255 / .25); }
.has-phrases .mobile-live-chat { bottom: calc(158px + env(safe-area-inset-bottom)); }
.has-phrases .mobile-live-status { bottom: calc(191px + env(safe-area-inset-bottom)); }
.has-phrases .mobile-live-policy { bottom: calc(122px + env(safe-area-inset-bottom)); }

/* 加载 / 等待播放时弹幕也看得见（以前被封面遮住） */
.mobile-live-chat, .mobile-live-policy { z-index: 4; }
/* 状态文字放到画面中间按钮下方，不压弹幕；有常用语时弹幕再上移给免责提示留位置 */
.mobile-live-status, .has-phrases .mobile-live-status { top: calc(50% + 70px); bottom: auto; }
.has-phrases .mobile-live-chat { bottom: calc(178px + env(safe-area-inset-bottom)); max-height: min(28vh, 240px); }

/* 后台：小助手标识、观众详情里的小助手设置、头像库 */
.helper-tag { margin-left: 6px; padding: 1px 6px; border-radius: 4px; color: #fff; background: #ff6a1f; font-size: .64rem; font-style: normal; font-weight: 700; vertical-align: middle; }
.helper-section { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.helper-section h3 { margin: 0 0 6px; font-size: .95rem; }
.helper-bound { margin: 8px 0; padding: 0; list-style: none; }
.helper-bound li { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.avatar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; padding: 16px 20px 20px; }
.avatar-grid figure { position: relative; margin: 0; text-align: center; }
.avatar-grid img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.avatar-grid button { position: absolute; top: -4px; right: 2px; width: 22px; height: 22px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; color: #fff; background: #e5484d; }
.avatar-grid small { display: block; color: var(--quiet); font-size: .66rem; }
.avatar-upload { cursor: pointer; }

/* ===== 直播间：小助手 ===== */
.mobile-live-chat-avatar { object-fit: cover; }
.chat-badge.is-helper { color: #fff; background: #7b2ff7; }
.helper-topbar { position: absolute; z-index: 5; top: calc(18px + env(safe-area-inset-top)); right: 14px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; pointer-events: none; }
.helper-online { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 999px; color: #fff; background: #0a8a3a; font-size: .8rem; font-weight: 700; }
.helper-myname { max-width: 60vw; padding: 3px 10px; overflow: hidden; border-radius: 999px; color: #fff; background: rgb(0 0 0 / .45); font-size: .74rem; text-overflow: ellipsis; white-space: nowrap; }
.helper-side { position: absolute; z-index: 5; right: 10px; bottom: calc(230px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; }
.helper-side button { width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; color: #fff; background: rgb(0 0 0 / .35); }
.helper-sheet-backdrop { position: fixed; z-index: 120; inset: 0; display: flex; align-items: flex-end; background: rgb(0 0 0 / .35); }
.helper-sheet { width: 100%; max-height: 82dvh; display: flex; flex-direction: column; overflow: hidden; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; color: #1c1d1f; background: #fff; }
.helper-sheet-body { flex: 1; overflow-y: auto; padding: 0 16px 10px; -webkit-overflow-scrolling: touch; }
.helper-tabs { display: flex; justify-content: center; gap: 26px; padding: 6px 16px 12px; }
.helper-tabs-left { justify-content: flex-start; gap: 20px; align-items: center; }
.helper-tabs button { position: relative; padding: 4px 0 8px; border: 0; color: #9a9da3; background: none; font-size: 1.02rem; font-weight: 600; }
.helper-tabs button.active { color: #1c1d1f; font-weight: 800; }
.helper-tabs button.active::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 28px; height: 4px; border-radius: 4px; background: #07b36b; transform: translateX(-50%); }
.helper-tabs sup { position: absolute; top: -6px; right: -16px; min-width: 18px; padding: 0 5px; border-radius: 999px; color: #fff; background: #07b36b; font-size: .66rem; line-height: 18px; text-align: center; }
.helper-reload { margin-left: auto; color: #1c1d1f !important; }
.helper-card { margin: 0 0 10px; padding: 12px 14px; border-radius: 12px; background: #f4f5f7; }
.helper-card p { margin: 6px 0 0; color: #9a9da3; font-size: .82rem; line-height: 1.6; }
.helper-card-row { display: flex; align-items: center; justify-content: space-between; }
.helper-card-row b { font-size: .95rem; }
.helper-switch { position: relative; width: 46px; height: 26px; }
.helper-switch input { position: absolute; opacity: 0; }
.helper-switch span { position: absolute; inset: 0; border-radius: 999px; background: #dcdde0; transition: background .15s; }
.helper-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.helper-switch input:checked + span { background: #07b36b; }
.helper-switch input:checked + span::after { transform: translateX(20px); }
.helper-mini { margin: 0 0 0 6px; padding: 4px 9px; border: 1px solid #07b36b; border-radius: 4px; color: #07b36b; background: #fff; font-size: .76rem; white-space: nowrap; }
.helper-mini.is-solid { color: #fff; background: #07b36b; }
.helper-mini.is-orange { border-color: #d9480f; color: #d9480f; }
.helper-mini.is-danger { border-color: #f08c8c; color: #e5484d; }
.helper-list { display: flex; flex-direction: column; }
.helper-comment { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid #f0f1f3; }
.helper-comment > span { min-width: 0; font-size: .95rem; overflow-wrap: anywhere; }
.helper-comment > div { flex: 0 0 auto; }
.helper-candidate { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.helper-candidate b { flex: 1; }
.helper-divider { margin: 6px 0; color: #b6b8bd; font-size: .72rem; text-align: center; }
.helper-identity { display: flex; align-items: center; gap: 10px; padding: 10px 6px; border-radius: 10px; }
.helper-identity b { flex: 1; }
.helper-identity.is-selected { background: linear-gradient(90deg, #e6fbf1, #fff); }
.helper-identity.is-selected .helper-avatar { box-shadow: 0 0 0 2px #07b36b; }
.helper-avatar { flex: 0 0 auto; display: inline-grid; place-items: center; border-radius: 50%; object-fit: cover; }
.helper-avatar-text { color: #fff; background: #4b7bec; font-weight: 700; }
.helper-group-input { display: flex; align-items: flex-start; gap: 8px; }
.helper-group-input textarea { flex: 1; min-height: 56px; border: 0; color: #1c1d1f; background: transparent; font: inherit; resize: none; outline: 0; }
.helper-link { border: 0; color: #07b36b; background: none; font-size: .8rem; white-space: nowrap; }
.helper-hint { margin: 0 0 10px; color: #9a9da3; font-size: .82rem; text-align: right; }
.helper-group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 12px; }
.helper-group-grid button { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; color: #1c1d1f; font-size: .78rem; }
.helper-group-grid button.is-picked .helper-avatar { box-shadow: 0 0 0 3px #07b36b, 0 0 12px #07b36b; }
.helper-send { width: calc(100% - 32px); margin: 14px 16px 0; padding: 14px; border: 0; border-radius: 999px; color: #fff; background: #07b36b; font-size: 1rem; font-weight: 700; }
.helper-empty { padding: 36px 0; color: #9a9da3; font-size: .85rem; text-align: center; }
.helper-notice { position: relative; margin: 0 16px 10px; padding: 10px 34px 10px 12px; border-radius: 10px; color: #e5484d; background: #fdf0ef; font-size: .82rem; }
.helper-notice button { position: absolute; top: 6px; right: 8px; border: 0; color: #e5484d; background: none; font-size: 1rem; }
.helper-chips { display: flex; gap: 8px; padding: 0 16px 10px; overflow-x: auto; scrollbar-width: none; }
.helper-chips::-webkit-scrollbar { display: none; }
.helper-chips button { flex: 0 0 auto; padding: 7px 14px; border: 0; border-radius: 999px; color: #555; background: #f1f2f4; font-size: .82rem; }
.helper-chips button.active { color: #fff; background: #07b36b; }
.helper-viewer { display: block; padding: 12px 0; border-bottom: 1px solid #f0f1f3; }
.helper-viewer-head { display: flex; gap: 10px; }
.helper-viewer-main { flex: 1; min-width: 0; }
.helper-viewer-main b { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: .95rem; }
.helper-viewer-main small { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; color: #9a9da3; font-size: .76rem; }
.helper-viewer-main em { color: #1c1d1f; font-style: normal; font-variant-numeric: tabular-nums; }
.helper-badge { padding: 1px 6px; border-radius: 4px; color: #fff; background: #4c9aff; font-size: .68rem; font-style: normal; font-weight: 700; }
.helper-badge.is-orange { background: #ff5a1f; }
.helper-badge.is-green { background: #2ed8a3; }
.helper-badge.is-gray { color: #8a8d93; background: #eef0f2; }
.helper-badge.is-red { background: #e5484d; }
.helper-viewer-actions { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.helper-viewer-actions button { flex: 1 0 auto; padding: 5px 8px; border: 1px solid #dcdde0; border-radius: 4px; color: #1c1d1f; background: #fff; font-size: .72rem; }
.helper-viewer-actions button.is-primary { border-color: #1e88ff; color: #fff; background: #1e88ff; }
.helper-ask { position: fixed; z-index: 130; inset: 0; display: grid; place-items: center; padding: 20px; background: rgb(0 0 0 / .4); }
.helper-ask-card { width: min(360px, 100%); display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 14px; color: #1c1d1f; background: #fff; }
.helper-ask-card textarea { min-height: 80px; padding: 10px; border: 1px solid #e3e4e7; border-radius: 8px; font: inherit; resize: vertical; }
.helper-ask-actions { display: flex; justify-content: flex-end; gap: 10px; }
.helper-ask-actions button, .helper-choice button { padding: 8px 16px; border: 1px solid #e3e4e7; border-radius: 8px; color: #1c1d1f; background: #fff; }
.helper-ask-actions [data-ask-ok] { border-color: #07b36b; color: #fff; background: #07b36b; }
.helper-choice { display: flex; flex-wrap: wrap; gap: 8px; max-height: 50dvh; overflow-y: auto; }

/* 观众运营「最近看的直播」、数据分析选场次 */
.viewer-last-live b, .viewer-last-live small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-last-live b { font-size: .8rem; font-weight: 600; }
.viewer-last-live small { color: var(--quiet); font-size: .7rem; }
.analytics-live-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 12px; }
.analytics-live-picker select { max-width: 360px; }

/* 后台：小助手随机评论列表、场次勾选 */
.helper-comment-admin { display: flex; flex-direction: column; margin-top: 12px; max-height: 360px; overflow-y: auto; }
.helper-comment-admin > div { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.helper-comment-admin > div > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.danger-text { color: #ff8a8a !important; }
.session-check { margin-right: 8px; vertical-align: middle; }

/* 观看页封面：中间一个大播放按钮 + 「点击观看直播」，整个画面区域都能点 */
.mobile-live-cover { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mobile-live-bigplay { width: 84px; height: 84px; display: grid; place-items: center; padding-left: 6px; border-radius: 50%; color: #111; background: rgb(255 255 255 / .38); }
.mobile-live-bigplay svg { width: 44px; height: 44px; stroke: #111; }
.mobile-live-bigplay svg polygon { fill: #111; }
.mobile-live-cover [data-cover-text] { margin-top: 6px; color: #fff; font-size: .95rem; font-weight: 600; }

/* 固定画面：不能双指 / 双击放大，也顺带去掉点击的 300 毫秒延迟 */
html.no-zoom, html.no-zoom body { touch-action: manipulation; -webkit-text-size-adjust: 100%; }
html.no-zoom .mobile-live-chat, html.no-zoom .mobile-live-phrases, html.no-zoom .helper-sheet-body, html.no-zoom .helper-chips { touch-action: pan-x pan-y; }
/* 观看页和手机开播全屏：不用实时毛玻璃（视频在下面一直播放，每帧重算模糊，低端手机和微信里很卡），换成普通半透明 */
.watch-page *, .live-mode, .live-mode * { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.mobile-live-chat-row { background: rgb(0 0 0 / .42); }

/* 临时静音 */
.live-mode-mute { margin-left: auto; }
.live-mode-mute + .live-mode-flip-cam { margin-left: 6px; }
.live-mode-mute.is-on { background: #e5484d; }
.live-mode-muted { position: absolute; z-index: 3; top: calc(64px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; color: #fff; background: rgba(229, 72, 77, .92); font-size: .8rem; white-space: nowrap; }
.live-mode-muted.is-hidden { display: none; }

/* 表格里的「还没设置」等弱提示 */
.muted-text { color: var(--muted); }

/* 流量与快直播 */

.quota-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 4px 0 16px; }
.quota-actions .field-note { flex: 1 1 320px; }
.quota-mini small + small { display: block; margin-top: 2px; }
.accent-text { color: var(--teal) !important; }

/* 登录有效期 */
.login-ttl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.login-ttl-row select { min-width: 160px; }

/* 观看页改回正常排版（不再 position: fixed 盖满屏幕）：微信「投诉」截图只画页面本身的内容，
   整页都是固定定位的浮层时截出来是全黑的。页面高度正好一屏，不会出现滚动条 */
html:has(.watch-page), html:has(.watch-page) body { height: 100%; margin: 0; padding: 0; background: #080b0f; overscroll-behavior: none; }
.watch-page:has(.mobile-live-room),
.watch-page.watch-locked { position: relative; inset: auto; width: 100%; height: 100vh; height: 100dvh; min-height: 0; }

/* 观看页：右下角「举报」醒目按钮 + 举报原因 */
.mobile-live-actions .mobile-live-report span { width: 38px; height: 38px; min-height: 38px; border: 1px solid rgb(255 196 87 / .75); border-radius: 50%; color: #ffc457; background: rgb(255 196 87 / .16); }
.mobile-live-actions .mobile-live-report small { color: #ffc457; font-weight: 700; }
.report-reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 4px 0 14px; }
.report-reason { min-height: 42px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; color: inherit; background: transparent; font: inherit; }
.report-reason.is-active { border-color: var(--teal); color: var(--teal); background: var(--teal-soft); font-weight: 700; }

/* 微信接口中转 */
.code-block { margin: 10px 0 6px; padding: 12px 14px; overflow-x: auto; border-radius: 10px; background: rgb(0 0 0 / .35); font: .78rem/1.55 ui-monospace, Menlo, Consolas, monospace; white-space: pre; }
.relay-results { display: grid; gap: 6px; margin-top: 10px; }
.relay-results div { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); }
.relay-results .is-ok { border-color: var(--green); }
.relay-results .is-bad { border-color: var(--red); }

/* 安卓 App 里：全屏开播时网页透明，露出原生画的摄像头画面；页面其余部分藏起来，只留开播浮层、弹窗和提示 */
html.native-app.live-mode-on, html.native-app.live-mode-on body { background: transparent !important; }
html.native-app.live-mode-on body * { visibility: hidden; }
html.native-app.live-mode-on .live-mode, html.native-app.live-mode-on .live-mode *, html.native-app.live-mode-on #modal-root, html.native-app.live-mode-on #modal-root *, html.native-app.live-mode-on #toast { visibility: visible; }
html.native-app [data-mobile-render].is-live-fullscreen { background: transparent !important; }
/* 手机开播：点观众弹幕设小助手、双指变焦的倍数提示 */
.live-mode-msg[data-lm-viewer] { cursor: pointer; }
.live-mode-msg[data-lm-viewer]:active { background: rgba(0, 0, 0, .62); }
.chat-badge.lm-helper-tag { background: #07b36b; color: #fff; }
.live-mode-zoom { position: fixed; z-index: 93; top: 42%; left: 50%; padding: 6px 16px; border-radius: 999px; color: #fff; background: rgba(0, 0, 0, .5); font-size: 1.1rem; font-weight: 700; transform: translate(-50%, -50%); pointer-events: none; transition: opacity .25s; }
.live-mode-zoom.is-hidden { opacity: 0; }
/* 小助手：分享直播间 */
.helper-share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 6px 16px 14px; }
.helper-share-grid button { display: grid; justify-items: center; gap: 8px; padding: 8px 0; border: 0; color: #1c1d1f; background: none; font-size: .86rem; }
.helper-share-grid button span { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; color: #07b36b; background: #eef8f3; }
.helper-share-grid button:disabled { opacity: .5; }
.helper-share-guide { position: fixed; z-index: 130; inset: 0; display: flex; flex-direction: column; align-items: flex-end; padding: 10px 22px; color: #fff; background: rgba(0, 0, 0, .72); text-align: right; }
.helper-share-arrow { font-size: 64px; line-height: 1; }
.helper-share-guide p { margin: 8px 0 18px; font-size: 1.05rem; line-height: 1.7; }
.helper-share-guide button, .helper-poster-layer button { padding: 8px 26px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 999px; color: #fff; background: none; }
.helper-poster-layer { position: fixed; z-index: 130; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; background: rgba(0, 0, 0, .82); color: #fff; }
.helper-poster-layer img { max-width: 82vw; max-height: 72dvh; border-radius: 12px; -webkit-touch-callout: default; }
.helper-poster-layer p { margin: 0; font-size: .92rem; }
/* 置顶公告（小助手发，所有观众可见） */
.mobile-live-notice { position: absolute; z-index: 3; top: calc(84px + env(safe-area-inset-top)); left: 12px; right: 74px; display: flex; align-items: flex-start; gap: 6px; padding: 7px 10px; border-radius: 12px; color: #fff; background: rgb(0 0 0 / .45); font-size: .8rem; line-height: 1.45; overflow-wrap: anywhere; }
.mobile-live-notice i { flex: none; padding: 0 6px; border-radius: 6px; background: #f5a623; color: #fff; font-style: normal; font-size: .7rem; line-height: 1.6; }
.mobile-live-notice.is-hidden { display: none; }
.helper-notice-bar { display: flex; align-items: center; gap: 8px; margin: 0 16px 10px; padding: 8px 10px; border-radius: 10px; background: #fff7e6; color: #8a5a00; font-size: .82rem; }
.helper-notice-bar span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-live-chat-row[data-chat-id] { cursor: pointer; }
/* 观看人数只在右上角；小助手那边换成带真实人数的绿色按钮 */
.is-helper-room .mobile-live-viewers { display: none; }
.helper-topbar .helper-online { pointer-events: auto; border: 0; cursor: pointer; }
.helper-online small { margin-left: 6px; font-weight: 500; opacity: .85; font-size: .7rem; }
/* 小助手面板：标签、筛选条不被压扁（以前「全部(5)」那一排字被切掉一半） */
.helper-sheet > :not(.helper-sheet-body) { flex-shrink: 0; }
.helper-chips button { line-height: 1.3; white-space: nowrap; }
/* 主播头像 */
.mobile-live-avatar img { width: 100%; height: 100%; object-fit: cover; }
/* 头像和分享卡片 */
.host-profile-row { display: flex; gap: 14px; align-items: center; margin: 6px 0 14px; }
.host-profile-row small { display: block; margin: 2px 0 8px; color: var(--muted, #6b7280); }
.host-profile-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.host-profile-pic { width: 64px; height: 64px; flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 10px; color: #fff; background: #2c6b70; font-weight: 700; font-size: 1.3rem; }
.host-profile-pic.is-round { border-radius: 50%; }
.host-profile-pic img { width: 100%; height: 100%; object-fit: cover; }
.host-profile-entry { width: 100%; display: flex; align-items: center; gap: 12px; margin: 4px 0 12px; padding: 10px 12px; border: 1px solid var(--line, #e5e7eb); border-radius: 12px; color: inherit; background: var(--surface, #fff); text-align: left; cursor: pointer; }
.host-profile-entry .host-profile-pic { width: 44px; height: 44px; font-size: 1rem; }
.host-profile-entry-copy { flex: 1; min-width: 0; }
.host-profile-entry-copy b { display: block; }
.host-profile-entry-copy small { display: block; color: var(--muted, #6b7280); font-size: .76rem; }
.share-card-preview { max-width: 320px; margin: 8px auto 12px; padding: 12px 14px 8px; border-radius: 10px; background: #f3f3f5; color: #111; }
.share-card-preview > b { display: block; font-size: .98rem; line-height: 1.4; overflow-wrap: anywhere; }
.share-card-body { display: flex; gap: 10px; justify-content: space-between; margin-top: 6px; }
.share-card-body span { color: #8a8a8f; font-size: .82rem; line-height: 1.45; overflow-wrap: anywhere; }
.share-card-body img, .share-card-noimg { width: 52px; height: 52px; flex: none; border-radius: 4px; object-fit: cover; }
.share-card-noimg { display: grid; place-items: center; color: #aaa; background: #e4e4e8; font-style: normal; font-size: .72rem; }
.share-card-preview > small { display: block; margin-top: 8px; padding-top: 6px; border-top: 1px solid #e3e3e6; color: #a0a0a5; font-size: .7rem; }
.share-steps { margin: 0 0 12px; padding-left: 20px; line-height: 1.8; }
.share-qr { display: grid; place-items: center; margin-bottom: 12px; }
.share-qr svg { width: 180px; height: 180px; }
.live-mode-share { margin-right: auto; }
.mobile-live-host { max-width: calc(100% - 130px); }
/* 小助手自己的常用语（绿色）和「＋我的常用语」 */
.mobile-live-phrases button.is-mine { background: rgb(7 179 107 / .75); }
.mobile-live-phrases button.is-manage { border: 1px dashed rgb(255 255 255 / .6); background: rgb(0 0 0 / .35); }
/* 直播结束后的链接页（超管设置了隐藏） */
.ended-link-page { min-height: 100vh; display: grid; place-items: center; background: #fff; color: #888; font-size: 17px; }
/* 直播间列表：最后一列放「二维码 / 详情 / 回放」三个按钮，以前只留了 30px，按钮挤成竖排、整张表横向滚动 */
.session-table { min-width: 1080px; grid-template-columns: minmax(180px, 1.65fr) .8fr .8fr .7fr .8fr .7fr minmax(96px, .9fr) 168px; }
.session-table .table-actions { flex-wrap: nowrap; white-space: nowrap; }
.session-table > div:first-child { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; min-width: 0; }
.session-table > div:first-child .session-check { grid-row: span 2; margin: 0; }
.session-table > div:first-child b, .session-table > div:first-child small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session-table .recording { white-space: nowrap; }
.session-table { min-width: 940px; }
.viewer-table { min-width: 980px; }
.share-qr img { width: 180px; height: 180px; }
.share-mp { margin-top: 6px; }
.share-mp .setup-inline { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.mp-app-table .copy-field { min-width: 260px; }
.mp-app-table td small { display: block; color: var(--quiet); }
/* 主播端人数：观众看到的人数 + 真实在线人数 */
.live-mode-real { margin-left: 6px; font-size: .7rem; font-weight: 500; opacity: .8; }
/* 公屏往上翻时的「有新消息」 */
.chat-new-pill { position: absolute; z-index: 5; left: 16px; bottom: calc(140px + env(safe-area-inset-bottom)); padding: 4px 12px; border: 0; border-radius: 999px; color: #fff; background: #07b36b; font-size: .76rem; box-shadow: 0 2px 8px rgb(0 0 0 / .3); }
.has-phrases .chat-new-pill { bottom: calc(184px + env(safe-area-inset-bottom)); }
.chat-new-pill.is-hidden { display: none; }
.mobile-live-chat { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
/* 主播端公屏能往上翻 */
.live-mode-chat { display: block; overflow-y: auto; pointer-events: auto; touch-action: pan-y; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; max-height: 38vh; scrollbar-width: none; }
.live-mode-chat::-webkit-scrollbar { display: none; }
.live-mode-chat .live-mode-msg { width: fit-content; margin-top: 6px; }
.live-mode-helper { margin-right: 8px; }
/* 主播端的小助手工具（右侧「评论 / 观众 / 人数」），直接叠在开播画面上 */
.host-helper-layer { position: fixed; z-index: 93; inset: 0; pointer-events: none; }
.host-helper-layer .helper-side { pointer-events: auto; right: 10px; bottom: calc(140px + env(safe-area-inset-bottom)); gap: 12px; }
.host-helper-layer .helper-side button { width: 48px; height: 48px; flex-direction: column; gap: 1px; background: rgb(0 0 0 / .42); }
.host-helper-layer .helper-side small { font-size: .62rem; line-height: 1; }
.live-mode-msg .chat-badge.is-helper { background: #f59e0b; color: #fff; }

/* 主播 / 小助手看到的进出动态：画面左侧中间，6 秒后自动消失 */
.helper-presence { position: absolute; z-index: 5; left: 12px; top: 34%; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; max-width: 70%; pointer-events: none; }
.helper-presence-line { max-width: 100%; padding: 4px 10px; overflow: hidden; border-radius: 999px; color: #fff; background: rgb(0 0 0 / .5); font-size: .74rem; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; animation: helper-presence-in .25s ease-out; }
.helper-presence-line b { margin-right: 4px; font-weight: 700; }
.helper-presence-line.is-enter b { color: #7ee2a8; }
.helper-presence-line.is-leave { color: rgb(255 255 255 / .78); }
.helper-presence-line.is-leave b { color: #ffc56e; }
@keyframes helper-presence-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
/* 小助手的「你的昵称」别伸到左边主播卡片底下 */
.helper-myname { max-width: 46vw; }

/* ===== 小程序专用布局（小程序 web-view 里打开时 html 上有 is-mp）=====
   小程序自带顶栏和胶囊按钮，画面本来就矮一截：顶部的主播卡片、人数、小助手信息都做小、贴边，不挡画面 */
.is-mp .mobile-live-host { top: 8px; left: 8px; gap: 5px; max-width: 50vw; padding: 2px 3px 2px 2px; border: 0; border-radius: 16px; background: rgb(0 0 0 / .32); backdrop-filter: none; }
.is-mp .mobile-live-avatar { width: 26px; height: 26px; flex: 0 0 26px; border-width: 1px; font-size: .66rem; }
.is-mp .mobile-live-host-copy b { font-size: .7rem; line-height: 1.25; }
.is-mp .mobile-live-host-copy small { margin-top: 0; font-size: .56rem; line-height: 1.25; }
.is-mp .mobile-live-host-copy i { width: 5px; height: 5px; margin-right: 3px; }
.is-mp .mobile-live-follow { min-width: 0; min-height: 22px; margin-left: 2px; padding: 0 8px; border-radius: 11px; font-size: .6rem; }
.is-mp .mobile-live-viewers { top: 8px; right: 8px; gap: 3px; min-height: 26px; padding: 0 9px; border: 0; font-size: .66rem; }
.is-mp .mobile-live-viewers svg { width: 13px; height: 13px; }
.is-mp .mobile-live-notice { top: 44px; left: 8px; right: 60px; padding: 5px 8px; font-size: .72rem; }
.is-mp .helper-topbar { top: 8px; right: 8px; gap: 4px; }
.is-mp .helper-online { gap: 3px; padding: 3px 9px; font-size: .68rem; }
.is-mp .helper-online svg { width: 12px; height: 12px; }
.is-mp .helper-online small { margin-left: 4px; font-size: .6rem; }
.is-mp .helper-myname { max-width: 42vw; padding: 2px 8px; font-size: .62rem; }
.is-mp .helper-side { right: 6px; gap: 10px; }
.is-mp .helper-side button { width: 36px; height: 36px; }
.is-mp .helper-side svg { width: 19px; height: 19px; }
.is-mp .helper-presence { left: 8px; }
.is-mp .helper-presence-line { padding: 3px 8px; font-size: .66rem; }
