.live-detection-status { margin-top: 14px; padding: 17px; border: 1px solid #d5e3ef; border-radius: 12px; background: #fff; }
.live-detection-status > header p, .live-detection-note { margin: 7px 0 0; color: #8091a1; font-size: 11px; line-height: 1.6; }
.live-detection-counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
.live-detection-counts > div { padding: 10px 12px; border-radius: 8px; background: #f3f7fb; }
.live-detection-counts span { color: #75899b; font-size: 11px; }
.live-detection-counts strong { display: block; margin-top: 5px; color: #335c7b; font-size: 23px; font-variant-numeric: tabular-nums; }
.live-detection-accounts { max-height: 420px; overflow: auto; overscroll-behavior: contain; border: 1px solid #e2eaf2; border-radius: 9px; }
.live-detection-accounts table { width: 100%; min-width: 820px; table-layout: fixed; border-spacing: 0; text-align: left; font-size: 11px; }
.live-detection-accounts th, .live-detection-accounts td { box-sizing: border-box; height: 32px; padding: 4px 6px; line-height: 21px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom: 1px solid #e7edf4; color: #526f86; }
.live-detection-accounts th { position: sticky; top: 0; z-index: 1; height: 29px; padding-block: 4px; background: #f4f7fb; color: #8091a1; font-size: 10px; font-weight: 500; }
.live-detection-accounts tr:last-child td { border-bottom: 0; }
.live-detection-accounts tr.is-warning { background: #fffbf3; }
.live-detection-accounts tbody tr:hover { background: #f3f8fc; }
.live-detection-accounts time { color: #405d75; font-size: 10px; font-variant-numeric: tabular-nums; }
.live-detection-accounts table .live-detection-account-name { display: block; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #294d69; font-weight: 600; font-size: 11px; line-height: 21px; }
.live-detection-accounts .system-status-badge { display: inline-block; max-width: calc(100% - 12px); padding: 2px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 17px; vertical-align: middle; font-size: 10px; }
.live-detection-accounts td:last-child button { padding: 2px 4px; line-height: 17px; }
.live-detection-row-warning { display: inline-block; margin-left: 3px; color: #a77a2f; font-size: 11px; font-weight: 700; }
.live-detection-message { margin: 0; color: #a77a2f; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.live-detection-message { margin: 0; color: #a77a2f; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.live-detection-error { grid-column: 1 / -1; padding: 8px 10px; border-radius: 6px; background: #fff4df; }
.live-detection-message { margin-bottom: 10px; }
.live-detection-note { margin-top: 12px; }
.live-detection-accounts:focus-visible { outline: 2px solid #458bcc; outline-offset: 2px; }
.live-detection-history { margin-top: 12px; font-size: 11px; color: #526f86; }
.live-detection-history > header { display: flex; align-items: center; gap: 10px; min-width: 0; margin-bottom: 10px; }
.live-detection-history > header strong { min-width: 0; margin-left: auto; color: #335570; overflow-wrap: anywhere; }
.live-detection-history > header > span { flex: none; color: #8b9baa; font-size: 10px; }
.live-detection-history p { margin: 8px 0; line-height: 1.7; overflow-wrap: anywhere; }
.live-detection-history-list { max-height: 320px; overflow: auto; overscroll-behavior: contain; border: 1px solid #e1e8ef; border-radius: 7px; }
.live-detection-history-list:focus-visible { outline: 2px solid #458bcc; outline-offset: 2px; }
.live-detection-history table { width: 100%; table-layout: fixed; border-spacing: 0; font-size: 11px; text-align: left; }
.live-detection-history th { position: sticky; top: 0; z-index: 1; background: #f4f7fa; color: #8092a3; font-size: 10px; font-weight: 500; }
.live-detection-history th, .live-detection-history td { box-sizing: border-box; height: 27px; padding: 4px 10px; line-height: 18px; white-space: nowrap; border-bottom: 1px solid #edf1f5; }
.live-detection-history th:first-child { width: 43%; }
.live-detection-history th:nth-child(2) { width: 25%; }
.live-detection-history th:last-child { width: 32%; }
.live-detection-history tr:last-child td { border-bottom: 0; }
.live-detection-history tbody tr:hover { background: #f8fafc; }
.live-detection-history time { color: #657d90; font-variant-numeric: tabular-nums; }
.live-detection-result { font-size: 10px; font-weight: 500; }
.live-detection-result.is-success { color: #32937a; }
.live-detection-result.is-failed { color: #cf6670; }
.live-detection-result.is-pending { color: #a28b54; }
.live-detection-history .live-detection-history-empty { padding: 18px 8px; text-align: center; color: #8b9baa; }
.live-detection-history > footer { display: flex; min-height: 28px; align-items: center; justify-content: space-between; gap: 8px; margin-top: 7px; color: #8b9baa; font-size: 10px; }
.live-detection-status button { cursor: pointer; border: 1px solid #d3dfeb; border-radius: 5px; background: #fff; color: #436b8c; padding: 5px 8px; font-size: 10px; }
.live-detection-status .live-detection-account-name { border: 0; padding: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; color: inherit; font: inherit; text-align: left; background: transparent; }
.live-detection-account-name:hover { text-decoration: underline; }
.live-detection-status .live-detection-back { flex: none; border: 0; padding: 3px 0; background: transparent; }
.live-detection-statistics-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 0 8px; }
.live-detection-statistics-toolbar strong { color: #335570; font-size: 11px; }
.live-detection-statistics-toolbar label { flex: none; color: #8091a1; font-size: 10px; }
.live-detection-statistics-toolbar select { padding: 3px 5px; border: 1px solid #d3dfeb; border-radius: 5px; background: #fff; color: #436b8c; font-size: 10px; }
.live-detection-source-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.live-detection-source-stats > div { padding: 10px 12px; min-width: 0; border: 1px solid #e1e8ef; border-radius: 7px; background: #f8fafc; }
.live-detection-source-stats > div.is-leading { border-color: #b8dacc; background: #f4faf7; }
.live-detection-source-stats > div > span { display: block; color: #436680; }
.live-detection-source-stats strong { display: inline-block; margin: 6px 6px 6px 0; color: #335c7b; font-size: 22px; font-variant-numeric: tabular-nums; }
.live-detection-source-stats small { display: inline-block; color: #8091a1; font-size: 10px; }
.live-detection-source-stats dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 10px; margin: 0; font-size: 10px; }
.live-detection-source-stats dl > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px; min-width: 0; }
.live-detection-source-stats dt { color: #8091a1; }
.live-detection-source-stats dd { margin: 0 0 0 auto; color: #436680; font-variant-numeric: tabular-nums; }
.live-detection-comparison { margin: 7px 0 3px; color: #436680; font-size: 10px; }
.live-detection-statistics-note { margin: 3px 0 10px; color: #8091a1; font-size: 10px; }
@media (max-width: 767px) {
  .live-detection-status { padding: 12px; }
  .live-detection-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live-detection-source-stats { grid-template-columns: 1fr; }
  .live-detection-status h3 { flex-wrap: wrap; }
  .live-detection-history table { font-size: 10px; }
  .live-detection-history th, .live-detection-history td { padding: 4px 5px; }
}

.live-detection-accounts [data-detection-stage="自动监测中"] { color: #18715b; background: #e8f6ef; }
.live-detection-accounts [data-detection-stage="检测排队中"] { color: #4c6382; background: #edf1f7; }
.live-detection-accounts [data-detection-stage="正在检测"] { color: #235eaf; background: #eaf1ff; }
.live-detection-accounts [data-detection-stage="下播二次确认"] { color: #7942a3; background: #f4edfc; }
.live-detection-accounts [data-detection-stage="限频重试中"] { color: #a15b15; background: #fff1df; }
.live-detection-accounts [data-detection-stage="检测失败 · 等待重试"] { color: #ad3949; background: #ffedf0; }
.live-detection-accounts [data-detection-stage="检测延迟"] { color: #84630a; background: #fff7cf; }
.live-detection-accounts [data-detection-stage="连接待恢复"] { color: #687384; background: #f0f1f3; outline: 1px dashed #b9c2cc; outline-offset: -1px; }
.live-detection-accounts [data-detection-stage="模拟运行 · 不查真实开播"] { color: #7a604c; background: #f5eee7; }
.live-detection-intervals { margin-top: 12px; border: 1px solid #e1e8ef; border-radius: 7px; background: #f8fafc; font-size: 11px; }
.live-detection-intervals summary { padding: 9px 10px; color: #436680; cursor: pointer; }
.live-detection-intervals summary span { margin-left: 8px; color: #708399; font-size: 10px; }
.live-detection-intervals form { padding: 0 10px 10px; }
.live-detection-intervals form > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.live-detection-intervals label { display: inline-flex; align-items: center; gap: 5px; color: #526f86; }
.live-detection-intervals input { width: 66px; min-width: 0; padding: 5px; border: 1px solid #cbdbe8; border-radius: 5px; color: #335570; font: inherit; background: #fff; }
.live-detection-intervals input:disabled { color: #708399; background: #f2f5f8; }
.live-detection-intervals p { margin: 8px 0 0; color: #708399; font-size: 10px; line-height: 1.6; }
.live-detection-intervals button:disabled { opacity: .55; cursor: default; }

.live-detection-source-stats > div[role="button"] { cursor: pointer; }
.live-detection-source-stats > div[role="button"]:hover { border-color: #8fb8d8; }
.live-detection-source-stats > div[role="button"]:focus-visible { outline: 2px solid #4887c5; outline-offset: 2px; }
.live-detection-source-stats small.live-detection-source-hint { display: block; margin-top: 8px; color: #5b7e9e; }
.live-detection-source-details { margin-top: 10px; padding: 12px; border: 1px solid #cbddeb; border-radius: 7px; background: #f8fbfe; min-width: 0; }
.live-detection-source-details header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.live-detection-source-details p { color: #526f86; font-size: 11px; line-height: 1.65; overflow-wrap: anywhere; }
.live-detection-source-details details { margin-top: 10px; }
.live-detection-source-details summary { cursor: pointer; color: #436680; font-size: 12px; }
.live-detection-source-details h4 { margin: 10px 0 6px; font-size: 11px; color: #526f86; }
.live-detection-source-details pre { margin: 5px 0; max-height: 260px; padding: 10px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 10px; color: #335570; background: #fff; border: 1px solid #e1e8ef; border-radius: 5px; user-select: text; -webkit-user-select: text; }

