/* Shared app/client visual shell — loaded after each page's legacy styles. */
:root {
    --app-primary: #2f75b5;
    --app-cyan: #4b91c9;
    --app-pink: #d9534f;
    --app-panel: #ffffff;
    --app-line: #d9dee7;
    --app-shadow: 0 2px 8px rgba(31, 48, 68, 0.08);
}

body.app-shell {
    --bg: #f2f4f7;
    --bg-elevated: #ffffff;
    --elevated: #ffffff;
    --surface: #f7f9fb;
    --border: var(--app-line);
    --border-strong: #b8c3d1;
    --text: #263244;
    --text-muted: #5f6d7f;
    --text-dim: #8b96a6;
    --accent: var(--app-primary);
    --accent-soft: #e8f1f8;
    --green: #3c9467;
    --amber: #d58a1f;
    --cyan: #3a85bd;
    background: #f2f4f7;
}

.app-shell .app-header,
.app-shell .sub-header,
.app-shell .user-status-bar {
    background: #ffffff;
    border-color: var(--app-line);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.app-shell .sub-header {
    margin-top: 12px;
    border: 1px solid var(--app-line);
    border-radius: 6px 6px 0 0;
    box-shadow: var(--app-shadow);
}

.app-shell button,
.app-shell .tb-btn,
.app-shell select,
.app-shell input {
    border-radius: 4px;
}

.app-shell .nav-badge {
    background: var(--app-primary) !important;
    box-shadow: none;
}

.app-shell .mobile-avatar,
.app-shell .draw-ball {
    background: var(--app-primary);
    box-shadow: none;
}

.app-shell table {
    background: #ffffff;
}

.app-shell tbody tr {
    transition: background-color .16s ease, transform .16s ease;
}

.app-shell tbody tr:hover {
    background: #f2f7fb !important;
}

.client-bottom-nav {
    display: none;
}

.client-install {
    display: none;
    align-items: center;
    gap: 7px;
    border: 1px solid #a9bfd3;
    background: #edf4fa;
    color: #2f6591;
    padding: 8px 12px;
    border-radius: 999px;
    font: 700 12px/1 system-ui, sans-serif;
    cursor: pointer;
}

.client-install.is-ready {
    display: inline-flex;
}

.section-switcher {
    position: relative;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0;
}

.section-switcher button {
    min-height: 74px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--app-line);
    border-radius: 6px;
    background: #ffffff;
    color: var(--text-muted);
    text-align: left;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.section-switcher button:hover {
    transform: translateY(-2px);
    border-color: #8eb2d1;
}

.section-switcher button.is-active {
    color: #245f91;
    border-color: #7da8cc;
    background: #edf5fb;
    box-shadow: var(--app-shadow);
}

.section-switcher .section-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border-radius: 4px;
    color: #2f75b5;
    background: #e4eff8;
    font-size: 18px;
}

.section-switcher strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}

.section-switcher small {
    display: block;
    color: var(--text-dim);
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.section-view-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border: 1px solid var(--app-line);
    border-bottom: 0;
    border-radius: 6px 6px 0 0;
    background: #ffffff;
}

.section-view-heading h2 {
    margin: 0;
    font-size: 17px;
}

.section-view-heading p {
    margin: 4px 0 0;
    color: var(--text-dim);
    font-size: 11px;
}

.verify-dashboard {
    display: none;
    padding: 14px;
    border: 1px solid var(--app-line);
    border-bottom: 0;
    background: #ffffff;
}

body[data-client-section="verify"] .verify-dashboard {
    display: block;
}

.verify-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.verify-summary-card {
    min-height: 68px;
    padding: 11px 13px;
    border: 1px solid #dce2e9;
    border-radius: 5px;
    background: #f8fafc;
}

.verify-summary-card span {
    display: block;
    margin-bottom: 5px;
    color: #7a8798;
    font-size: 10px;
}

.verify-summary-card strong {
    color: #2d3a4d;
    font-size: 21px;
    line-height: 1;
}

.verify-summary-card.is-hit strong { color: #2f8a5b; }
.verify-summary-card.is-rate strong { color: #2f75b5; }
.verify-summary-card.is-hang strong { color: #c0392b; }
.verify-summary-card.is-pending strong { color: #d88418; }

/* 最长连挂：保留统计逻辑，仅隐藏展示 */
.verify-summary-card.is-hang {
    display: none !important;
}

.verify-tools {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.verify-filter-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.verify-filter-group button {
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid #cfd7e2;
    border-radius: 4px;
    color: #637185;
    background: #ffffff;
    font-size: 11px;
    cursor: pointer;
}

.verify-filter-group button.is-active {
    color: #ffffff;
    border-color: #2f75b5;
    background: #2f75b5;
}

.verify-search {
    width: min(220px, 40vw);
    height: 32px;
    padding: 0 10px;
    border: 1px solid #cfd7e2;
    border-radius: 4px;
    color: #354256;
    background: #ffffff;
    outline: none;
    font-size: 11px;
}

.verify-search:focus {
    border-color: #6e9bc2;
    box-shadow: 0 0 0 2px rgba(47, 117, 181, 0.10);
}

.verify-current-picks {
    margin-top: 10px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 3px solid #d88418;
    color: #667386;
    background: #fff8eb;
    font-size: 11px;
}

.verify-current-picks strong {
    color: #a7620c;
    font-size: 13px;
    letter-spacing: 2px;
}

body[data-client-section="verify"] .hit-prob-track-head {
    padding: 12px 14px;
    background: #f5f7fa;
    border-bottom: 1px solid #d9e0e8;
}

body[data-client-section="verify"] .hit-prob-track-title {
    color: #2d3a4d;
    font-size: 15px;
}

body[data-client-section="verify"] .hit-prob-track-scroll {
    height: 485px;
    max-height: 485px;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
}

body[data-client-section="verify"] .hit-prob-track-table thead th {
    position: sticky;
    z-index: 6;
    top: 0;
}

body[data-client-section="verify"] .hit-prob-track-table tbody tr[data-verify-state="hit"] td {
    background: #f1faf5;
}

body[data-client-section="verify"] .hit-prob-track-table tbody tr[data-verify-state="miss"] td {
    background: #fff7f6;
}

body[data-client-section="verify"] .hit-prob-track-table tbody tr[data-verify-state="pending"] td {
    background: #fff9ea;
}

body[data-client-section="verify"] .hpt-result-tag.hit {
    color: #247348;
    border-color: #9bcdb1;
    background: #e5f4eb;
}

body[data-client-section="verify"] .hpt-result-tag.miss {
    color: #b5423e;
    border-color: #e9b4b1;
    background: #fdeceb;
}

/* Verification table: compact grid matching the number trend table. */
body[data-client-section="verify"] .hit-prob-track-wrap {
    padding: 0;
    border-radius: 0;
}

body[data-client-section="verify"] .hit-prob-track-scroll {
    border: 0;
    border-radius: 0;
    background: #ffffff;
}

body[data-client-section="verify"] .hpt-track-canvas {
    width: 100%;
    min-width: 0;
}

body[data-client-section="verify"] .hit-prob-track-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    color: #596678;
    background: #ffffff;
    font-size: 11px;
}

body[data-client-section="verify"] .hit-prob-track-table th,
body[data-client-section="verify"] .hit-prob-track-table td {
    height: 29px;
    padding: 3px 6px;
    border-right: 1px solid #dfe5ec;
    border-bottom: 1px solid #dfe5ec;
    text-align: center;
}

body[data-client-section="verify"] .hit-prob-track-table th:last-child,
body[data-client-section="verify"] .hit-prob-track-table td:last-child {
    border-right: 0;
}

body[data-client-section="verify"] .hit-prob-track-table thead th {
    height: 48px;
    padding: 5px 6px;
    color: #3b485b;
    background: #edf1f5;
    border-bottom: 2px solid #bcc7d4;
    font-weight: 700;
}

/* Column order: 期号 | 和值 | 号码走势 | 推荐号 | 开奖号 | 验算结果 —— 桌面百分比自适应 */
body[data-client-section="verify"] .hit-prob-track-table th:nth-child(1),
body[data-client-section="verify"] .hit-prob-track-table td:nth-child(1) {
    width: 16%;
    min-width: 0;
}

body[data-client-section="verify"] .hit-prob-track-table th:nth-child(2),
body[data-client-section="verify"] .hit-prob-track-table td:nth-child(2) {
    width: 6%;
    min-width: 0;
}

body[data-client-section="verify"] .hit-prob-track-table th:nth-child(3),
body[data-client-section="verify"] .hit-prob-track-table td:nth-child(3) {
    width: 24%;
    min-width: 0;
    padding: 0;
}

body[data-client-section="verify"] .hit-prob-track-table th:nth-child(4),
body[data-client-section="verify"] .hit-prob-track-table td:nth-child(4),
body[data-client-section="verify"] .hit-prob-track-table th:nth-child(5),
body[data-client-section="verify"] .hit-prob-track-table td:nth-child(5) {
    width: 18%;
    min-width: 0;
}

body[data-client-section="verify"] .hit-prob-track-table th:nth-child(6),
body[data-client-section="verify"] .hit-prob-track-table td:nth-child(6) {
    width: 18%;
    min-width: 0;
}

body[data-client-section="verify"] .hpt-dist-wrap {
    display: block;
    padding: 0;
    width: 100%;
}

body[data-client-section="verify"] .hpt-dist,
body[data-client-section="verify"] .hpt-dist-picks-row {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 0;
    width: 100%;
    margin: 0;
    border-top: 1px solid #dce2e9;
    border-left: 1px solid #dce2e9;
}

body[data-client-section="verify"] .hpt-dist-cell,
body[data-client-section="verify"] .hpt-dist-picks-row .hpt-dist-cell {
    width: auto;
    min-width: 0;
    height: 28px;
    border-right: 1px solid #dce2e9;
    border-bottom: 1px solid #dce2e9;
    color: #a0a9b6;
    font-size: 9px;
    background: #ffffff;
}

.hpt-dist-header-title,
.hpt-dist-header-grid {
    display: none !important;
}

.hpt-main-head {
    display: block;
    margin-bottom: 3px;
}

.hit-prob-track-table thead th > small {
    display: block;
    color: #8b96a6;
    font-size: 9px;
    font-weight: 500;
}

body[data-client-section="verify"] .hpt-dist-cell.miss {
    color: #a8b0bc;
    opacity: 1;
}

body[data-client-section="verify"] .hpt-ball,
body[data-client-section="verify"] .hpt-bubble {
    width: 18px;
    height: 18px;
    min-width: 18px;
    font-size: 10px;
    box-shadow: none;
}

body[data-client-section="verify"] .col-hpt-dist .hpt-ball.hit-red,
body[data-client-section="verify"] .hpt-draw-cell .hpt-bubble.hit-red {
    background: #DD4544;
}

body[data-client-section="verify"] .col-hpt-dist .hpt-ball.hit-green,
body[data-client-section="verify"] .hpt-draw-cell .hpt-bubble.hit-green {
    color: #ffffff;
    background: #41AC42;
}

body[data-client-section="verify"] .hpt-recommend-cell .hpt-bubble {
    color: #55718d;
    border: 1px solid #8ba4bb;
    background: transparent;
}

body[data-client-section="verify"] .hpt-recommend-cell .hpt-bubble.hit-red {
    color: #ffffff;
    border-color: #DD4544;
    background: #DD4544;
    box-shadow: 0 1px 3px rgba(221, 69, 68, 0.24);
}

body[data-client-section="verify"] .hpt-recommend-cell .hpt-bubble.hit-green {
    color: #ffffff;
    border-color: #41AC42;
    background: #41AC42;
    box-shadow: 0 1px 3px rgba(65, 172, 66, 0.24);
}

body[data-client-section="verify"] .hpt-recommend-cell .hpt-bubble.is-match,
body[data-client-section="verify"] .hpt-recommend-cell .hpt-bubble.is-hit {
    box-shadow: 0 0 0 2px rgba(239, 81, 71, 0.18);
}

body[data-client-section="verify"] .hpt-digits {
    gap: 5px;
    flex-wrap: nowrap;
}

body[data-client-section="verify"] .hpt-pending-tag,
body[data-client-section="verify"] .hpt-result-tag {
    border-radius: 3px;
}

body[data-client-section="verify"] .hit-prob-track-table tbody tr:hover td {
    background: #eef5fb !important;
}

body[data-client-section="verify"] .hit-prob-track-table tbody tr:nth-child(5n) td {
    border-bottom-color: #b9c4d1;
}

.number-trend-panel {
    display: none;
    margin-bottom: 14px;
    border: 1px solid var(--app-line);
    border-radius: 0 0 6px 6px;
    overflow: hidden;
    background: rgba(244, 247, 252, 0.98);
    color: #283246;
}

body[data-client-section="trend"] .number-trend-panel {
    display: block;
}

.number-trend-toolbar {
    min-height: 48px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #d7deea;
    background: #fff;
}

.number-trend-toolbar-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.number-trend-toolbar span {
    color: #768197;
    font-size: 11px;
}

.number-trend-scope {
    padding: 5px 8px;
    border: 1px solid #9bb8d1;
    border-radius: 3px;
    color: #245f91;
    background: #eaf3fa;
    font-size: 11px;
    white-space: nowrap;
}

.number-trend-toolbar button {
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid #d4dce9;
    border-radius: 8px;
    background: #f7f9fc;
    color: #536078;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.number-trend-toolbar button.is-active {
    border-color: #6c5ce7;
    background: #6c5ce7;
    color: #fff;
}

.number-trend-scroll {
    position: relative;
    max-height: 620px;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: none;
    cursor: grab;
    scrollbar-color: #b9c3d3 #edf1f6;
    scrollbar-width: thin;
}
.number-trend-scroll.is-dragging,
.number-trend-scroll.is-pinching,
.hit-prob-track-scroll.is-dragging,
.hit-prob-track-scroll.is-pinching {
    cursor: grabbing;
    user-select: none;
    -webkit-user-select: none;
}
.number-trend-scroll .number-trend-table,
.hit-prob-track-scroll table {
    transform-origin: 0 0;
}

.number-trend-table {
    width: max-content !important;
    min-width: 100%;
    border-collapse: separate !important;
    border-spacing: 0;
    table-layout: fixed;
    color: #5f6b7e;
    background: #fff !important;
    font: 10px/1.1 "SF Mono", Consolas, monospace;
}

.number-trend-table th,
.number-trend-table td {
    width: 25px;
    min-width: 25px;
    height: 27px;
    padding: 0 !important;
    border-right: 1px solid #e4e8ef;
    border-bottom: 1px solid #e4e8ef;
    text-align: center;
    white-space: nowrap;
    background: #fff;
}

.number-trend-table thead th {
    position: sticky;
    z-index: 7;
    top: 0;
    height: 30px;
    color: #3c475b;
    background: #f1f4f8;
}

.number-trend-table thead tr:nth-child(2) th {
    top: 30px;
    z-index: 8;
}

.number-trend-table tbody tr:nth-child(5n) td {
    border-bottom-color: #bdc7d6;
}

.number-trend-table tfoot td {
    position: sticky;
    z-index: 9;
    bottom: 0;
    height: 31px;
    color: #647087;
    background: #eef2f7;
    border-top: 2px solid #b9c4d4;
}

.number-trend-table tfoot .nt-label,
.number-trend-table tfoot .nt-draw,
.number-trend-table tfoot .nt-sum {
    z-index: 14;
    background: #e8edf4;
}

.number-trend-table .nt-label {
    width: 72px;
    min-width: 72px;
    left: 0;
    position: sticky;
    z-index: 5;
    color: #344055;
    background: #f7f9fc;
}

.number-trend-table .nt-draw {
    width: 72px;
    min-width: 72px;
    left: 72px;
    position: sticky;
    z-index: 5;
    font-weight: 800;
    letter-spacing: 2px;
    color: #2468b4;
    background: #f7f9fc;
}

.number-trend-table .nt-sum {
    width: 40px;
    min-width: 40px;
    left: 144px;
    position: sticky;
    z-index: 5;
    color: #263247;
    background: #f7f9fc;
}

.number-trend-table thead .nt-label,
.number-trend-table thead .nt-draw,
.number-trend-table thead .nt-sum {
    z-index: 12;
    background: #e9eef5;
}

.number-trend-table .nt-group-start {
    border-left: 2px solid #c4cddd;
}

.number-trend-table .nt-miss {
    color: #a6afbd;
}

.number-trend-table .nt-ball {
    position: relative;
    z-index: 4;
    width: 19px;
    height: 19px;
    margin: auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-weight: 900;
    line-height: 19px;
    background: #DD4544;
    box-shadow: 0 2px 5px rgba(221, 69, 68, 0.24);
}

.number-trend-table .nt-ball.nt-repeat {
    background: #41AC42;
}

.number-trend-table .nt-ball small {
    position: absolute;
    right: -3px;
    top: -4px;
    min-width: 10px;
    height: 10px;
    display: grid;
    place-items: center;
    border-radius: 5px;
    color: #8a5d00;
    background: #fff1b8;
    font: 800 7px/1 sans-serif;
}

.number-trend-table .nt-position-0 { background: #DD4544; }
.number-trend-table .nt-position-1 { background: #DD4544; }
.number-trend-table .nt-position-2 { background: #DD4544; }
.number-trend-table .nt-position-3 { background: #41AC42; }
.number-trend-table .nt-position-4 { background: #41AC42; }

.number-trend-lines {
    position: absolute;
    z-index: 3;
    inset: 0;
    width: auto;
    height: auto;
    pointer-events: none;
    overflow: visible;
    filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.9));
}

.nt-predict-btn {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    margin: auto;
    padding: 0;
    border: 1px solid #d2d9e4;
    border-radius: 50%;
    background: #f8fafc;
    color: #a5adba;
    font: 800 9px/1 Consolas, monospace;
    cursor: pointer;
}

.nt-predict-btn:hover {
    border-color: #7869e8;
    color: #6253d3;
}

.nt-predict-btn.is-selected {
    border-color: #2f75b5;
    color: #fff;
    background: #2f75b5;
    box-shadow: none;
}

.nt-predict-btn[data-predict-group="all"].is-selected {
    border-color: #f0ac19;
    background: #f0ac19;
}

.nt-predict-clear {
    border: 0;
    background: transparent;
    color: #e2535c;
    font-size: 14px;
    cursor: pointer;
}

.nt-predict-label {
    color: #29354a !important;
    font-weight: 900;
    letter-spacing: 1px;
}

.nt-predict-reset {
    border: 0;
    background: transparent;
    color: #8994a6;
    font-size: 10px;
    cursor: pointer;
}

.number-trend-empty {
    padding: 42px 20px;
    color: #7b879c;
    text-align: center;
    background: #fff;
}

.number-trend-legend {
    padding: 8px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    border-top: 1px solid #dce2ec;
    color: #78849a;
    background: #f7f9fc;
    font-size: 10px;
}

.number-trend-legend i {
    width: 8px;
    height: 8px;
    display: inline-block;
    margin-right: 4px;
    border-radius: 50%;
    background: #DD4544;
}

.number-trend-legend i.repeat { background: #41AC42; }

body[data-client-section="stats"] #hitProbMonitor,
body[data-client-section="stats"] #hitProbTrackWrap {
    display: none !important;
}

/* Stats page: keep only the period preset selector above the tables. */
body[data-client-section="stats"] .section-view-heading,
body[data-client-section="stats"] #alertBar > :not(.alert-controls),
body[data-client-section="stats"] #alertBar .alert-controls > :not(.table-query-wrap) {
    display: none !important;
}

body[data-client-section="stats"] #alertBar {
    display: block !important;
    margin: 0 0 8px;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body[data-client-section="stats"] #alertBar .alert-controls {
    display: flex !important;
    justify-content: flex-start;
    padding: 6px 0;
    border: 0;
    background: transparent;
}

body[data-client-section="stats"] #alertBar .table-query-wrap {
    display: flex !important;
    align-items: center;
    gap: 7px;
}

body[data-client-section="verify"] #patternPanel,
body[data-client-section="verify"] #statsHeader,
body[data-client-section="verify"] #statsTableWrap,
body[data-client-section="verify"] #pagination,
body[data-client-section="verify"] #mobilePeriodSelector,
body[data-client-section="verify"] #alertBar > .alert-controls,
body[data-client-section="verify"] #alertBar > .alert-list-wrap,
body[data-client-section="verify"] #alertBar > .chonghao-monitor,
body[data-client-section="verify"] #alertBar > .alert-hint {
    display: none !important;
}

body[data-client-section="verify"] #alertBar {
    display: block !important;
    padding: 0;
    border: 0;
    background: transparent;
}

body[data-client-section="verify"] #hitProbMonitor {
    display: block !important;
    margin-bottom: 12px;
    border: 1px solid var(--app-line);
    border-radius: 0 0 6px 6px;
    background: #ffffff;
}

body[data-client-section="verify"] #hitProbTrackWrap {
    display: block !important;
    border: 1px solid var(--app-line);
    border-radius: 6px;
    overflow: hidden;
}

body[data-client-section="trend"] #alertBar,
body[data-client-section="trend"] #hitProbTrackWrap,
body[data-client-section="trend"] #patternPanel,
body[data-client-section="trend"] #statsHeader,
body[data-client-section="trend"] #statsTableWrap,
body[data-client-section="trend"] #pagination,
body[data-client-section="trend"] #mobilePeriodSelector {
    display: none !important;
}

/* Simple portal palette inspired by traditional data sites. */
.app-shell .page-bg {
    display: none !important;
}

.app-shell .nav-level,
.app-shell .hit-hint-row,
.app-shell .alert-bar,
.app-shell .stats-header,
.app-shell .table-container,
.app-shell .hit-prob-track-wrap,
.app-shell .pattern-hero,
.app-shell .pattern-table-wrap,
.app-shell .footer {
    background: #ffffff;
    border-color: var(--app-line);
    box-shadow: none;
}

.app-shell .tab-nav,
.app-shell .lottery-dropdown,
.app-shell .play-guide-panel,
.app-shell .trend-container {
    background: #ffffff;
    border-color: var(--app-line);
    box-shadow: var(--app-shadow);
}

.app-shell .tab-item {
    color: #5f6d7f;
}

.app-shell .tab-item:hover {
    color: #2f75b5;
    background: #f1f6fa;
}

.app-shell .tab-item.active {
    color: #ffffff;
    background: #2f75b5;
    border-color: #2f75b5;
    box-shadow: none;
}

.app-shell .lottery-current,
.app-shell .lottery-option,
.app-shell .table-query-select,
.app-shell .threshold-input {
    color: #364357;
    background: #ffffff;
    border-color: #cfd7e2;
}

.app-shell .lottery-option:hover,
.app-shell .lottery-option.active {
    color: #245f91;
    background: #edf5fb;
}

.app-shell #statsTable,
.app-shell #patternTable,
.app-shell .hit-prob-track-table {
    color: #4d5a6d;
    background: #ffffff;
}

.app-shell #statsTable thead th,
.app-shell #patternTable thead th,
.app-shell .hit-prob-track-table thead th {
    color: #374459;
    background: #eef2f6;
    border-color: #d7dee8;
}

.app-shell #statsTable tbody td,
.app-shell #patternTable tbody td,
.app-shell .hit-prob-track-table tbody td {
    border-color: #e1e6ed;
}

.app-shell .tb-btn,
.app-shell .font-size-btn,
.app-shell .play-guide-btn,
.app-shell .page-btn {
    color: #536176;
    background: #ffffff;
    border-color: #cfd7e2;
    box-shadow: none;
}

.app-shell .tb-btn:hover,
.app-shell .font-size-btn:hover,
.app-shell .play-guide-btn:hover,
.app-shell .page-btn:hover {
    color: #2f75b5;
    border-color: #8eb2d1;
    background: #f2f7fb;
}

.app-shell .toast {
    color: #ffffff;
    background: #34465a;
}

/* Compact density for data-heavy desktop and mobile screens. */
.app-shell .page-wrapper {
    max-width: 1480px;
    padding-inline: 14px;
}

.app-shell .sub-header {
    min-height: 42px;
    margin-top: 6px;
    padding: 4px 10px;
}

.app-shell .nav-level {
    padding: 4px 8px;
}

.app-shell .nav-level-title {
    margin-bottom: 3px;
    font-size: 10px;
}

.app-shell .tab-nav {
    gap: 4px;
    padding: 4px 6px;
}

.app-shell .tab-item {
    min-height: 27px;
    padding: 4px 9px;
    font-size: 11px;
}

.app-shell .hit-hint-row {
    min-height: 34px;
    padding: 5px 9px;
}

.app-shell .alert-bar {
    padding: 7px 9px;
}

.app-shell .alert-controls {
    gap: 5px;
}

.app-shell .stats-header {
    min-height: 32px;
    padding: 5px 9px;
}

.app-shell #statsTable thead th,
.app-shell #statsTable tbody td {
    padding: 4px 3px;
}

.section-switcher {
    gap: 6px;
    margin: 7px 0;
}

.section-switcher button {
    min-height: 56px;
    padding: 8px 11px;
    gap: 8px;
}

.section-switcher .section-icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    font-size: 15px;
}

.section-switcher strong {
    margin-bottom: 2px;
    font-size: 12px;
}

.section-view-heading {
    padding: 9px 12px;
}

.section-view-heading h2 {
    font-size: 14px;
}

.verify-dashboard {
    padding: 8px;
}

.verify-summary-grid {
    gap: 5px;
}

.verify-summary-card {
    min-height: 52px;
    padding: 8px 10px;
}

.verify-summary-card span {
    margin-bottom: 3px;
}

.verify-summary-card strong {
    font-size: 17px;
}

.verify-tools,
.verify-current-picks {
    margin-top: 7px;
}

.number-trend-panel {
    margin-bottom: 8px;
}

.number-trend-toolbar {
    min-height: 40px;
    padding: 5px 8px;
}

/* Strong visual hierarchy for the verification workspace. */
body[data-client-section="verify"] .verify-dashboard {
    padding: 8px;
    border: 1px solid #cfd9e4;
    border-bottom: 0;
    background: #eef3f7;
}

body[data-client-section="verify"] .verify-recommendation-card {
    margin: 0 0 8px;
    padding: 0;
    overflow: hidden;
    border: 2px solid #2f75b5;
    border-radius: 7px;
    background: #ffffff;
}

body[data-client-section="verify"] .verify-recommendation-card .hit-prob-monitor-head {
    min-height: 40px;
    margin: 0;
    padding: 7px 10px;
    color: #ffffff;
    background: #2f75b5;
}

body[data-client-section="verify"] .verify-recommendation-card .alert-label,
body[data-client-section="verify"] .verify-recommendation-card .chonghao-monitor-tip {
    color: #ffffff !important;
}

body[data-client-section="verify"] .verify-recommendation-card .hit-prob-picks {
    color: #fff1a8;
    font-size: 14px;
    font-weight: 900;
}

body[data-client-section="verify"] .verify-recommendation-card .play-guide-btn {
    color: #245f91;
    border-color: rgba(255,255,255,.72);
    background: #ffffff;
}

body[data-client-section="verify"] .verify-recommendation-card .hit-prob-list-wrap {
    max-height: 76px;
    padding: 8px 10px;
    background: #f8fbfd;
}

body[data-client-section="verify"] .verify-recommendation-card .alert-item {
    border-color: #cbd8e4;
    color: #425166;
    background: #ffffff;
}

body[data-client-section="verify"] .verify-summary-card {
    position: relative;
    overflow: hidden;
    border-color: #d3dde7;
    background: #ffffff;
}

body[data-client-section="verify"] .verify-summary-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #6f8599;
}

body[data-client-section="verify"] .verify-summary-card.is-hit::before { background: #35a36c; }
body[data-client-section="verify"] .verify-summary-card.is-rate::before { background: #2f75b5; }
body[data-client-section="verify"] .verify-summary-card.is-hang::before { background: #c0392b; }
body[data-client-section="verify"] .verify-summary-card.is-pending::before { background: #e29a2c; }

body[data-client-section="verify"] .verify-tools {
    padding: 7px;
    border: 1px solid #d5dee8;
    border-radius: 5px;
    background: #ffffff;
}

body[data-client-section="verify"] .verify-current-picks {
    margin-bottom: 8px;
    border: 1px solid #ecd5a9;
    border-left: 3px solid #e09a2d;
    border-radius: 4px;
}

body[data-client-section="verify"] .hit-prob-track-wrap {
    margin-top: 0;
    border: 1px solid #bfcbd8;
    box-shadow: 0 2px 8px rgba(35, 55, 76, 0.08);
}

body[data-client-section="verify"] .hit-prob-track-head {
    min-height: 42px;
    padding: 8px 10px;
    color: #ffffff;
    background: #3f5870;
    border-bottom: 0;
}

body[data-client-section="verify"] .hit-prob-track-title,
body[data-client-section="verify"] .hit-prob-track-meta {
    color: #ffffff;
}

body[data-client-section="verify"] .hit-prob-track-meta {
    color: #ffffff;
    opacity: 1;
    font-weight: 650;
}

body[data-client-section="verify"] .hit-prob-track-table thead th {
    color: #2f3d51;
    background: #e4eaf0;
    border-right-color: #c4ced9;
    border-bottom-color: #aebbc9;
}

body[data-client-section="verify"] .hit-prob-track-table tbody tr:nth-child(odd) td {
    background-color: #ffffff;
}

body[data-client-section="verify"] .hit-prob-track-table tbody tr:nth-child(even) td {
    background-color: #f7f9fb;
}

body[data-client-section="verify"] .hit-prob-track-table tbody tr[data-verify-state="hit"] td:first-child {
    box-shadow: inset 4px 0 #35a36c;
}

body[data-client-section="verify"] .hit-prob-track-table tbody tr[data-verify-state="miss"] td:first-child {
    box-shadow: inset 4px 0 #df625c;
}

body[data-client-section="verify"] .hit-prob-track-table tbody tr[data-verify-state="pending"] td:first-child {
    box-shadow: inset 4px 0 #e09a2d;
}

body[data-client-section="verify"] .hit-prob-track-table tbody tr[data-verify-state="pending"] td {
    background-color: #fff8e8;
}

body[data-client-section="verify"] .hpt-result-tag {
    min-width: 46px;
    padding: 3px 7px;
    font-size: 10px;
    text-align: center;
}

@media (min-width: 769px) {
    .app-shell .page-wrapper {
        max-width: 1480px;
        padding-inline: 14px;
    }

    .app-shell .app-header {
        border-radius: 0;
    }
}

@media (max-width: 768px) {
    body.app-shell {
        padding-bottom: calc(76px + env(safe-area-inset-bottom));
    }

    .app-shell .page-wrapper {
        padding-inline: 8px;
    }

    .app-shell .app-header {
        top: 0;
        margin: 0 -8px;
        padding: env(safe-area-inset-top) 12px 0;
        z-index: 900;
        border-radius: 0;
        box-shadow: 0 2px 6px rgba(31, 48, 68, 0.10);
    }

    /* 走势/验算/统计：手机隐藏重复顶栏，只留 sub-header 彩种+账号 */
    .app-shell #mobileAppHeader,
    .app-shell .app-header.mobile-only {
        display: none !important;
    }

    .app-shell .app-header .main-nav {
        display: none !important;
    }

    .app-shell .sub-header {
        margin-top: 10px;
        border-radius: 6px 6px 0 0;
    }

    .app-shell .fixed-digit-dist,
    .app-shell .fdd-toggle {
        display: none !important;
    }

    .section-switcher {
        gap: 6px;
        margin: 10px 0;
    }

    .section-switcher button {
        min-height: 58px;
        padding: 8px 4px;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        text-align: center;
        border-radius: 5px;
    }

    .section-switcher .section-icon {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
        border-radius: 3px;
        font-size: 13px;
    }

    .section-switcher strong {
        margin: 0;
        font-size: 11px;
    }

    .section-switcher small {
        display: none;
    }

    .section-view-heading {
        padding: 12px;
        border-radius: 6px 6px 0 0;
    }

    .section-view-heading h2 {
        font-size: 14px;
    }

    .verify-dashboard {
        padding: 10px;
    }

    .verify-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .verify-summary-card {
        min-height: 60px;
        padding: 9px 10px;
    }

    .verify-summary-card strong {
        font-size: 18px;
    }

    .verify-tools {
        align-items: stretch;
        flex-direction: column;
    }

    .verify-search {
        width: 100%;
    }

    body[data-client-section="verify"] .hit-prob-track-scroll {
        height: 485px;
        max-height: 485px;
    }

    .number-trend-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .number-trend-scroll {
        max-height: 68vh;
    }

    .number-trend-table th,
    .number-trend-table td {
        width: 23px;
        min-width: 23px;
        height: 25px;
        font-size: 9px;
    }

    .number-trend-table .nt-label {
        width: 62px;
        min-width: 62px;
    }

    .number-trend-table .nt-draw {
        width: 62px;
        min-width: 62px;
        left: 62px;
    }

    .number-trend-table .nt-sum {
        width: 34px;
        min-width: 34px;
        left: 124px;
    }

    .client-bottom-nav {
        position: fixed;
        z-index: 9999;
        left: 10px;
        right: 10px;
        bottom: calc(8px + env(safe-area-inset-bottom));
        min-height: 60px;
        padding: 7px;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
        border: 1px solid #d2d9e2;
        border-radius: 8px;
        background: #ffffff;
        box-shadow: 0 3px 12px rgba(31, 48, 68, 0.16);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .client-bottom-nav a,
    .client-bottom-nav button {
        min-width: 0;
        min-height: 46px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        border: 0;
        border-radius: 5px;
        background: transparent;
        color: #778496;
        text-decoration: none;
        font: 600 10px/1 system-ui, sans-serif;
    }

    .client-bottom-nav svg {
        width: 20px;
        height: 20px;
    }

    .client-bottom-nav .is-active {
        color: #ffffff !important;
        background: #176b67;
        box-shadow: none;
    }

    .client-bottom-nav .is-active svg {
        stroke: currentColor;
        color: #ffffff;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-shell *,
    .app-shell *::before,
    .app-shell *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}

/* ===== FINAL COLOR HARMONY: warm paper + teal + navy + coral ===== */
:root {
    --app-primary: #176b67;
    --app-cyan: #2f7f92;
    --app-pink: #e76f51;
    --app-panel: #fffdfa;
    --app-line: #d9d5cc;
    --app-shadow: 0 2px 9px rgba(31, 45, 52, 0.09);
}

body.app-shell {
    --bg: #f3f1ec;
    --bg-elevated: #fffdfa;
    --elevated: #ffffff;
    --surface: #f8f6f1;
    --border: #d9d5cc;
    --border-strong: #b9b4aa;
    --text: #25343c;
    --text-muted: #596a71;
    --text-dim: #8a9698;
    --accent: #176b67;
    --accent-soft: #e4f0ee;
    --green: #2a9d78;
    --amber: #e9a23b;
    --cyan: #2f7f92;
    background: #f3f1ec;
}

.app-shell .app-header,
.app-shell .sub-header,
.app-shell .user-status-bar,
.app-shell .nav-level,
.app-shell .hit-hint-row,
.app-shell .alert-bar,
.app-shell .stats-header,
.app-shell .table-container,
.app-shell .hit-prob-track-wrap,
.app-shell .pattern-hero,
.app-shell .pattern-table-wrap,
.app-shell .footer,
.section-switcher button,
.section-view-heading {
    background: #fffdfa;
    border-color: #d9d5cc;
}

.section-switcher button:hover {
    border-color: #77aaa6;
}

.section-switcher button.is-active {
    color: #105c58;
    border-color: #5e9a95;
    background: #e5f1ef;
}

.section-switcher .section-icon {
    color: #176b67;
    background: #dcece9;
}

.app-shell .tab-item:hover {
    color: #176b67;
    background: #edf5f3;
}

.app-shell .tab-item.active,
.number-trend-toolbar button.is-active,
.verify-filter-group button.is-active,
.client-bottom-nav .is-active,
.client-bottom-nav a.is-active {
    color: #ffffff !important;
    border-color: #176b67;
    background: #176b67;
}

.app-shell .nav-badge {
    background: #e76f51 !important;
}

.app-shell .mobile-avatar,
.app-shell .draw-ball {
    background: #274c77;
}

.verify-dashboard,
body[data-client-section="verify"] .verify-dashboard {
    background: #eeece6;
    border-color: #d4d0c7;
}

body[data-client-section="verify"] .verify-recommendation-card {
    border-color: #176b67;
}

body[data-client-section="verify"] .verify-recommendation-card .hit-prob-monitor-head {
    background: linear-gradient(90deg, #176b67, #274c77);
}

body[data-client-section="verify"] .verify-recommendation-card .hit-prob-picks {
    color: #ffe3a3;
}

body[data-client-section="verify"] .verify-summary-card.is-hit::before { background: #2a9d78; }
body[data-client-section="verify"] .verify-summary-card.is-rate::before { background: #274c77; }
body[data-client-section="verify"] .verify-summary-card.is-hang::before { background: #c0392b; }
body[data-client-section="verify"] .verify-summary-card.is-pending::before { background: #e9a23b; }

body[data-client-section="verify"] .hit-prob-track-head {
    background: #274c77;
}

body[data-client-section="verify"] .hit-prob-track-table thead th {
    color: #30424d;
    background: #e9ece8;
}

body[data-client-section="verify"] .col-hpt-dist .hpt-ball.hit-red,
body[data-client-section="verify"] td:nth-child(4) .hpt-bubble.hit-red {
    background: #DD4544;
}

body[data-client-section="verify"] .col-hpt-dist .hpt-ball.hit-green,
body[data-client-section="verify"] td:nth-child(4) .hpt-bubble.hit-green {
    background: #41AC42;
}

body[data-client-section="verify"] td:nth-child(3) .hpt-bubble.hit-red {
    border-color: #DD4544;
    background: #DD4544;
}

body[data-client-section="verify"] td:nth-child(3) .hpt-bubble.hit-green {
    border-color: #41AC42;
    background: #41AC42;
}

.number-trend-table .nt-ball { background: #DD4544; }
.number-trend-table .nt-ball.nt-repeat { background: #41AC42; }
.number-trend-table .nt-position-0 { background: #DD4544; }
.number-trend-table .nt-position-1 { background: #DD4544; }
.number-trend-table .nt-position-2 { background: #DD4544; }
.number-trend-table .nt-position-3 { background: #41AC42; }
.number-trend-table .nt-position-4 { background: #41AC42; }

.number-trend-scope {
    color: #105c58;
    border-color: #87b5b0;
    background: #e5f1ef;
}

.nt-predict-btn.is-selected {
    border-color: #176b67;
    background: #176b67;
}

.nt-predict-btn[data-predict-group="all"].is-selected {
    border-color: #e9a23b;
    background: #e9a23b;
}

.app-shell .home {
    color: #25343c;
}

.app-shell .hero,
.app-shell .module {
    color: #25343c;
    border-color: #d9d5cc;
    background: #fffdfa;
    box-shadow: var(--app-shadow);
}

.app-shell .hero::after {
    background: #dcece9;
}

.app-shell .eyebrow,
.app-shell .gradient,
.app-shell .module-icon {
    color: #176b67;
}

.app-shell .module-icon {
    background: #e5f1ef;
}

.app-shell .primary {
    background: #176b67;
}

.app-shell .secondary {
    color: #53636a;
    border-color: #cec9bf;
    background: #fffdfa;
}

.app-shell select,
.app-shell select option {
    color-scheme: light;
    color: #2f4149 !important;
    background: #fffdfa !important;
}

.app-shell select {
    border-color: #bfc8c4 !important;
    box-shadow: none;
}

.app-shell select:focus {
    border-color: #176b67 !important;
    box-shadow: 0 0 0 2px rgba(23, 107, 103, 0.12);
}

.app-shell .table-query-label,
.app-shell .lottery-selector-label {
    color: #176b67;
    font-weight: 700;
}

.app-shell .alert-mode-badge {
    color: #9a4c35;
    border-color: #e8b4a5;
    background: #fbece7;
}

.app-shell .alert-item {
    color: #43615d;
    border-color: #c6d9d4;
    background: #edf5f3;
}

.app-shell #thresholdSaveBtn {
    color: #b64f3a !important;
    border-color: #e7b4aa !important;
    background: #fcece8 !important;
}

.app-shell .table-query-select {
    color: #25343c !important;
    border-color: #9fb6b1 !important;
    background: #fffdfa !important;
}

@media (max-width: 768px) {
    .client-bottom-nav {
        border-color: #d4d0c7;
        background: #fffdfa;
    }
}

/* Sticky: 期号 + 和值 left; 验算结果 right. 桌面跟百分比列宽 */
body[data-client-section="verify"] .hpt-track-canvas,
body[data-client-section="verify"] .hit-prob-track-table {
    min-width: 0;
    width: 100%;
}

body[data-client-section="verify"] .hit-prob-track-table .hpt-fixed-issue {
    position: sticky;
    left: 0;
    z-index: 7;
    width: 16%;
    min-width: 0;
    color: #344850;
    background: #f5f7f6;
    border-right: 1px solid #c7d0d2;
    box-shadow: 2px 0 4px rgba(45, 61, 66, 0.04);
}

body[data-client-section="verify"] .hit-prob-track-table .hpt-fixed-sum {
    position: sticky;
    left: 16%;
    z-index: 7;
    width: 6%;
    min-width: 0;
    color: #274c77;
    font-weight: 700;
    text-align: center;
    background: #f5f7f6;
    border-right: 2px solid #aebbbd;
    box-shadow: 2px 0 4px rgba(45, 61, 66, 0.05);
}

body[data-client-section="verify"] .hit-prob-track-table thead .hpt-fixed-issue,
body[data-client-section="verify"] .hit-prob-track-table thead .hpt-fixed-sum {
    z-index: 12;
    background: #dde5e4;
}

body[data-client-section="verify"] .hit-prob-track-table .col-hpt-dist {
    width: 24%;
    min-width: 0;
    padding: 0;
    border-right: 2px solid #aebbbd;
}

body[data-client-section="verify"] .hit-prob-track-table .hpt-recommend-cell {
    width: 18%;
    min-width: 0;
    border-right: 1px solid #d5dcd9;
}

body[data-client-section="verify"] .hit-prob-track-table .hpt-draw-cell {
    width: 18%;
    min-width: 0;
    border-right: 1px solid #d5dcd9;
}

body[data-client-section="verify"] .hit-prob-track-table .hpt-fixed-result {
    position: sticky;
    right: 0;
    z-index: 8;
    width: 18%;
    min-width: 0;
    background: #f5f7f6;
    border-left: 2px solid #aebbbd;
    box-shadow: -3px 0 5px rgba(45, 61, 66, 0.07);
}

body[data-client-section="verify"] .hit-prob-track-table thead .hpt-fixed-result {
    z-index: 12;
    background: #dde5e4;
}

body[data-client-section="verify"] .hpt-recommend-cell .hpt-bubble {
    color: #55718d;
    border: 1px solid #8ba4bb;
    background: transparent;
}

body[data-client-section="verify"] .hpt-recommend-cell .hpt-bubble.hit-red {
    color: #ffffff;
    border-color: #DD4544;
    background: #DD4544;
    box-shadow: 0 1px 3px rgba(221, 69, 68, 0.22);
}

body[data-client-section="verify"] .hpt-recommend-cell .hpt-bubble.hit-green {
    color: #ffffff;
    border-color: #41AC42;
    background: #41AC42;
    box-shadow: 0 1px 3px rgba(65, 172, 66, 0.22);
}

body[data-client-section="verify"] .hpt-draw-cell .hpt-bubble.hit-red {
    color: #ffffff;
    background: #DD4544;
}

body[data-client-section="verify"] .hpt-draw-cell .hpt-bubble.hit-green {
    color: #ffffff;
    background: #41AC42;
}

body[data-client-section="verify"] .hit-prob-track-table tbody tr[data-verify-state="pending"] .hpt-fixed-issue,
body[data-client-section="verify"] .hit-prob-track-table tbody tr[data-verify-state="pending"] .hpt-fixed-sum,
body[data-client-section="verify"] .hit-prob-track-table tbody tr[data-verify-state="pending"] .hpt-fixed-result {
    background: #fff8e8;
}

@media (max-width: 768px) {
    /* 手机端不再压缩列宽，保持整表可拖动查看 */
    body[data-client-section="verify"] .hit-prob-track-table .hpt-fixed-issue {
        width: 100px !important;
        min-width: 100px !important;
    }

    body[data-client-section="verify"] .hit-prob-track-table .hpt-fixed-sum {
        display: none !important;
    }

    body[data-client-section="verify"] .hit-prob-track-table .hpt-recommend-cell,
    body[data-client-section="verify"] .hit-prob-track-table .hpt-draw-cell {
        width: 148px !important;
        min-width: 148px !important;
    }
}

/* Reference palette: pale yellow headers, soft chart zones, vivid result balls. */
.app-shell {
    --ref-paper: #fffdf7;
    --ref-cream: #faf5e8;
    --ref-yellow: #fbeca1;
    --ref-blue: #f2f5f9;
    --ref-pink: #f5eced;
    --ref-green-soft: #eaf8d9;
    --ref-grid: #d5dde3;
    --ref-text: #4c5560;
    --ref-muted: #a4a4a3;
    --ref-purple: #7373a5;
    --ref-red: #DD4544;
    --ref-green: #41AC42;
    --ref-cyan: #489ab8;
    background: #f7f4ed !important;
}

.app-shell .page-wrapper {
    background: transparent;
}

.section-switcher,
.section-view-heading,
.app-shell .panel,
.app-shell .card,
.app-shell .stats-header,
.app-shell .hit-prob-track-wrap,
.number-trend-panel {
    border-color: var(--ref-grid) !important;
    background: var(--ref-paper) !important;
}

.section-switcher button {
    color: var(--ref-text);
    background: transparent;
}

.section-switcher button:hover {
    background: var(--ref-blue);
}

.section-switcher button.is-active {
    color: #50507c;
    border-color: #ded084;
    background: var(--ref-yellow);
}

.section-switcher button.is-active .section-icon {
    color: #fff;
    background: var(--ref-purple);
}

.app-shell .table-query-select,
.app-shell select,
.app-shell input {
    color: #555d66 !important;
    border-color: var(--ref-grid) !important;
    background: var(--ref-paper) !important;
}

/* Statistics tables */
.app-shell #statsTable,
.app-shell #patternTable {
    color: var(--ref-text) !important;
    background: var(--ref-paper) !important;
}

.app-shell #statsTable thead th,
.app-shell #patternTable thead th {
    color: #665f4d !important;
    border-color: #e0d594 !important;
    background: var(--ref-yellow) !important;
}

.app-shell #statsTable tbody td,
.app-shell #patternTable tbody td {
    border-color: var(--ref-grid) !important;
    background: var(--ref-paper) !important;
}

.app-shell #statsTable tbody tr:nth-child(even) td,
.app-shell #patternTable tbody tr:nth-child(even) td {
    background: #fbf7ee !important;
}

.app-shell #statsTable tbody tr:hover td,
.app-shell #patternTable tbody tr:hover td {
    background: var(--ref-blue) !important;
}

/* Number trend zones */
.number-trend-toolbar,
.number-trend-legend {
    border-color: var(--ref-grid);
    background: var(--ref-paper);
}

.number-trend-toolbar button.is-active,
.verify-filter-group button.is-active {
    color: #fff !important;
    border-color: var(--ref-cyan) !important;
    background: var(--ref-cyan) !important;
}

.number-trend-table,
.number-trend-table th,
.number-trend-table td {
    color: var(--ref-text);
    border-color: var(--ref-grid) !important;
}

.number-trend-table thead th {
    color: #655f50 !important;
    background: var(--ref-yellow) !important;
}

.number-trend-table tbody td {
    background: var(--ref-paper);
}

.number-trend-table tbody tr:nth-child(even) td {
    background: var(--ref-cream);
}

.number-trend-table .nt-label,
.number-trend-table .nt-draw,
.number-trend-table .nt-sum {
    border-color: var(--ref-grid) !important;
    background: var(--ref-blue) !important;
}

.number-trend-table .nt-miss {
    color: var(--ref-muted);
}

.number-trend-table .nt-ball,
.number-trend-table .nt-position-0,
.number-trend-table .nt-position-1,
.number-trend-table .nt-position-2 {
    background: var(--ref-red);
    box-shadow: none;
}

.number-trend-table .nt-position-3,
.number-trend-table .nt-position-4 {
    background: var(--ref-green);
}

.number-trend-table .nt-ball.nt-repeat {
    background: var(--ref-green);
}

/* Verification table */
body[data-client-section="verify"] .hit-prob-track-table {
    color: var(--ref-text);
    background: var(--ref-paper);
}

body[data-client-section="verify"] .hit-prob-track-table thead th,
body[data-client-section="verify"] .hit-prob-track-table thead .hpt-fixed-issue,
body[data-client-section="verify"] .hit-prob-track-table thead .hpt-fixed-sum,
body[data-client-section="verify"] .hit-prob-track-table thead .hpt-fixed-result {
    color: #655f50;
    border-color: #e0d594;
    background: var(--ref-yellow);
}

body[data-client-section="verify"] .hit-prob-track-table tbody td {
    border-color: var(--ref-grid) !important;
}

body[data-client-section="verify"] .hit-prob-track-table tbody td {
    background: var(--ref-paper);
}

body[data-client-section="verify"] .hit-prob-track-table tbody tr:nth-child(even) td {
    background: var(--ref-cream);
}

body[data-client-section="verify"] .hit-prob-track-table tbody .hpt-fixed-issue,
body[data-client-section="verify"] .hit-prob-track-table tbody .hpt-fixed-sum {
    background: var(--ref-blue) !important;
}

/* Balls follow number-trend colors: red = single hit, green = repeat. */
body[data-client-section="verify"] .col-hpt-dist .hpt-ball.hit-red,
body[data-client-section="verify"] .hpt-draw-cell .hpt-bubble.hit-red,
body[data-client-section="verify"] .hpt-recommend-cell .hpt-bubble.hit-red {
    color: #fff !important;
    border-color: var(--ref-red) !important;
    background: var(--ref-red) !important;
    box-shadow: none;
}

body[data-client-section="verify"] .col-hpt-dist .hpt-ball.hit-green,
body[data-client-section="verify"] .hpt-draw-cell .hpt-bubble.hit-green,
body[data-client-section="verify"] .hpt-recommend-cell .hpt-bubble.hit-green {
    color: #fff !important;
    border-color: var(--ref-green) !important;
    background: var(--ref-green) !important;
    box-shadow: none;
}

body[data-client-section="verify"] .hpt-result-tag.hit {
    color: #287b3a;
    border-color: #a4d097;
    background: var(--ref-green-soft);
}

body[data-client-section="verify"] .hpt-result-tag.miss {
    color: #b94343;
    border-color: #e6a197;
    background: var(--ref-pink);
}

body[data-client-section="verify"] .verify-summary-card {
    border-color: var(--ref-grid);
    background: var(--ref-paper);
}

.client-bottom-nav {
    border-color: var(--ref-grid);
    background: rgba(255, 253, 247, 0.96);
}

.client-bottom-nav a.is-active {
    color: #ffffff;
    background: #176b67;
}

/* 与 trend 一致：保留板块标题；仅藏验算筛选条/本期待荐文案 */
body[data-client-section="verify"] .verify-tools,
body[data-client-section="verify"] .verify-current-picks {
    display: none !important;
}

body[data-client-section="verify"] .section-view-heading {
    display: flex !important;
}

/* Compact mini live draw shown in the hit-hint-row */
.app-shell .hit-hint-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 14px;
    background: var(--ref-paper) !important;
    border-top: 1px solid var(--ref-grid);
    border-bottom: 1px solid var(--ref-grid);
}

.app-shell .hit-hint {
    flex: 0 1 auto;
    min-width: 0;
    color: var(--ref-text);
}

.mini-live-draw {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--ref-yellow);
    border: 1px solid #e5d17c;
    color: #6b5a1f;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(160, 130, 40, 0.12);
}

.mini-live-label {
    color: #8a7228;
    font-weight: 700;
    letter-spacing: 1px;
}

.mini-live-issue {
    color: #4a4025;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.mini-live-balls {
    display: inline-flex;
    gap: 4px;
}

.mini-live-ball {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-weight: 800;
    font-size: 12px;
    background: var(--ref-red);
    box-shadow: 0 1px 2px rgba(160, 60, 60, 0.28);
}

.mini-live-ball:nth-child(even) {
    background: var(--ref-purple);
}

.mini-live-cd {
    color: var(--ref-cyan);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* 推荐验算表：桌面端自适应铺满，走势区优先，结果区保持可读。 */
body[data-client-section="verify"] .hit-prob-track-wrap {
    overflow: visible;
    border: 1px solid #ccd6df;
    background: #fffdf8;
    box-shadow: 0 2px 8px rgba(36, 67, 94, 0.08);
}

body[data-client-section="verify"] .hit-prob-track-head {
    min-height: 42px;
    padding: 9px 14px;
    border-bottom: 0;
}

body[data-client-section="verify"] .hit-prob-track-title {
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1px;
}

body[data-client-section="verify"] .hit-prob-track-meta {
    color: #ffffff;
    font-size: 12px;
    font-weight: 650;
}

body[data-client-section="verify"] .hit-prob-track-scroll {
    height: 515px;
    max-height: 515px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
}
body[data-client-section="verify"] .hit-prob-track-scroll.is-dragging {
    cursor: grabbing;
    user-select: none;
    -webkit-user-select: none;
}

body[data-client-section="verify"] .hit-prob-track-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    font-size: 12px;
}

body[data-client-section="verify"] .hit-prob-track-table thead th {
    height: 42px;
    padding: 5px 7px;
    color: #5b5547;
    border-right: 1px solid #dfd18a;
    border-bottom: 2px solid #d1bd61;
    background: #fff0a6;
    font-size: 13px;
    font-weight: 800;
}

body[data-client-section="verify"] .hit-prob-track-table thead th > small {
    margin-top: 1px;
    color: #9a8b52;
    font-size: 9px;
    line-height: 1;
}

/* 桌面：百分比列宽自适应铺满 */
body[data-client-section="verify"] .hit-prob-track-table th:nth-child(1),
body[data-client-section="verify"] .hit-prob-track-table td:nth-child(1),
body[data-client-section="verify"] .hit-prob-track-table .hpt-fixed-issue {
    width: 16% !important;
    min-width: 0;
}

body[data-client-section="verify"] .hit-prob-track-table th:nth-child(2),
body[data-client-section="verify"] .hit-prob-track-table td:nth-child(2),
body[data-client-section="verify"] .hit-prob-track-table .hpt-fixed-sum {
    left: 16%;
    width: 6% !important;
    min-width: 0;
}

body[data-client-section="verify"] .hit-prob-track-table th:nth-child(3),
body[data-client-section="verify"] .hit-prob-track-table td:nth-child(3),
body[data-client-section="verify"] .hit-prob-track-table .col-hpt-dist {
    width: 24% !important;
    min-width: 0;
}

body[data-client-section="verify"] .hit-prob-track-table th:nth-child(4),
body[data-client-section="verify"] .hit-prob-track-table td:nth-child(4),
body[data-client-section="verify"] .hit-prob-track-table .hpt-recommend-cell {
    width: 21% !important;
    min-width: 0;
}

body[data-client-section="verify"] .hit-prob-track-table th:nth-child(5),
body[data-client-section="verify"] .hit-prob-track-table td:nth-child(5),
body[data-client-section="verify"] .hit-prob-track-table .hpt-draw-cell {
    width: 15% !important;
    min-width: 0;
}

body[data-client-section="verify"] .hit-prob-track-table th:nth-child(6),
body[data-client-section="verify"] .hit-prob-track-table td:nth-child(6),
body[data-client-section="verify"] .hit-prob-track-table .hpt-fixed-result {
    width: 18% !important;
    min-width: 0;
}

body[data-client-section="verify"] .hit-prob-track-table tbody td {
    height: 31px;
    padding: 3px 6px;
    color: #53616d;
    border-color: #d7dfe5 !important;
    background: #fffdf8;
}

body[data-client-section="verify"] .hit-prob-track-table tbody tr:nth-child(even) td {
    background: #f5f8fb;
}

body[data-client-section="verify"] .hit-prob-track-table tbody tr:hover td {
    background: #fff8d8 !important;
}

body[data-client-section="verify"] .hit-prob-track-table tbody .hpt-fixed-issue,
body[data-client-section="verify"] .hit-prob-track-table tbody .hpt-fixed-sum,
body[data-client-section="verify"] .hit-prob-track-table tbody .hpt-fixed-result {
    background: #fffdf8 !important;
}

body[data-client-section="verify"] .hit-prob-track-table tbody tr:nth-child(even) .hpt-fixed-issue,
body[data-client-section="verify"] .hit-prob-track-table tbody tr:nth-child(even) .hpt-fixed-sum,
body[data-client-section="verify"] .hit-prob-track-table tbody tr:nth-child(even) .hpt-fixed-result {
    background: #f5f8fb !important;
}

body[data-client-section="verify"] .hpt-fixed-issue {
    overflow: hidden;
    color: #405568;
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body[data-client-section="verify"] .hpt-fixed-sum {
    color: #315f86;
    font-size: 13px;
    font-weight: 800;
}

body[data-client-section="verify"] .hpt-dist,
body[data-client-section="verify"] .hpt-dist-picks-row {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 0;
}

body[data-client-section="verify"] .hpt-dist-cell,
body[data-client-section="verify"] .hpt-dist-picks-row .hpt-dist-cell {
    width: auto !important;
    min-width: 0;
    height: 30px;
    padding: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    font-size: 10px;
}

body[data-client-section="verify"] .hpt-ball,
body[data-client-section="verify"] .hpt-bubble {
    width: 20px;
    height: 20px;
    min-width: 20px;
    max-width: 20px;
    border-radius: 50% !important;
    font-size: 10px;
    line-height: 20px;
}

/* 待开奖虚拟预选号：强制正圆，避免格子变宽后变成圆角方块 */
body[data-client-section="verify"] .hpt-ball.hpt-virtual,
body[data-client-section="verify"] .hpt-ball.is-pick,
body[data-client-section="verify"] .hpt-dist-cell .hpt-ball {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    border-radius: 50% !important;
    flex: 0 0 20px;
}

body[data-client-section="verify"] .hpt-recommend-cell,
body[data-client-section="verify"] .hpt-draw-cell {
    white-space: nowrap;
}

body[data-client-section="verify"] .hpt-result {
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
}

body[data-client-section="verify"] .hpt-result-tag {
    min-width: 42px;
    padding: 3px 7px;
    font-weight: 800;
}

body[data-client-section="verify"] .hit-prob-track-table tbody tr[data-verify-state="pending"] td {
    background: #fff8e5 !important;
}

@media (max-width: 900px) {
    /* 手机验算表：放大字号/球/行高，右侧滑动杆加粗易拖 */
    body[data-client-section="verify"] .hit-prob-track-scroll {
        height: auto !important;
        max-height: none !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x pan-y;
        overscroll-behavior: auto;
        cursor: default;
        padding-right: 8px;
    }

    body[data-client-section="verify"] .hpt-track-canvas,
    body[data-client-section="verify"] .hit-prob-track-table {
        width: max-content !important;
        min-width: 760px !important;
        table-layout: fixed !important;
    }

    body[data-client-section="verify"] .hit-prob-track-table .hpt-fixed-issue,
    body[data-client-section="verify"] .hit-prob-track-table th:nth-child(1),
    body[data-client-section="verify"] .hit-prob-track-table td:nth-child(1) {
        width: 88px !important;
        min-width: 88px !important;
        font-size: 12px !important;
    }

    body[data-client-section="verify"] .hit-prob-track-table .hpt-fixed-sum,
    body[data-client-section="verify"] .hit-prob-track-table th:nth-child(2),
    body[data-client-section="verify"] .hit-prob-track-table td:nth-child(2) {
        display: none !important;
        width: 0 !important;
        min-width: 0 !important;
        padding: 0 !important;
        border: none !important;
    }

    body[data-client-section="verify"] .hit-prob-track-table .col-hpt-dist,
    body[data-client-section="verify"] .hit-prob-track-table th:nth-child(3),
    body[data-client-section="verify"] .hit-prob-track-table td:nth-child(3) {
        width: 230px !important;
        min-width: 230px !important;
    }

    body[data-client-section="verify"] .hit-prob-track-table .hpt-recommend-cell,
    body[data-client-section="verify"] .hit-prob-track-table th:nth-child(4),
    body[data-client-section="verify"] .hit-prob-track-table td:nth-child(4) {
        width: 140px !important;
        min-width: 140px !important;
    }

    body[data-client-section="verify"] .hit-prob-track-table .hpt-draw-cell,
    body[data-client-section="verify"] .hit-prob-track-table th:nth-child(5),
    body[data-client-section="verify"] .hit-prob-track-table td:nth-child(5) {
        width: 112px !important;
        min-width: 112px !important;
    }

    body[data-client-section="verify"] .hit-prob-track-table .hpt-fixed-result,
    body[data-client-section="verify"] .hit-prob-track-table th:nth-child(6),
    body[data-client-section="verify"] .hit-prob-track-table td:nth-child(6) {
        position: sticky !important;
        right: 0 !important;
        z-index: 12 !important;
        width: 118px !important;
        min-width: 118px !important;
        background: #fffdf8 !important;
        box-shadow: -4px 0 8px rgba(45, 61, 66, 0.12) !important;
    }

    body[data-client-section="verify"] .hit-prob-track-table thead .hpt-fixed-result,
    body[data-client-section="verify"] .hit-prob-track-table thead th:nth-child(6) {
        z-index: 14 !important;
        background: #dde5e4 !important;
    }

    body[data-client-section="verify"] .hit-prob-track-table tbody tr:nth-child(even) .hpt-fixed-result {
        background: #f5f8fb !important;
    }

    body[data-client-section="verify"] .hit-prob-track-table tbody td {
        height: 38px !important;
        padding: 5px 6px !important;
        font-size: 12px !important;
    }

    body[data-client-section="verify"] .hit-prob-track-table thead th {
        height: 34px !important;
        font-size: 12px !important;
    }

    body[data-client-section="verify"] .hpt-dist-wrap {
        width: max-content !important;
    }

    body[data-client-section="verify"] .hpt-dist,
    body[data-client-section="verify"] .hpt-dist-picks-row {
        width: max-content !important;
        grid-template-columns: repeat(10, 22px) !important;
        gap: 1px !important;
    }

    body[data-client-section="verify"] .hpt-dist-cell,
    body[data-client-section="verify"] .hpt-dist-picks-row .hpt-dist-cell {
        width: 22px !important;
        min-width: 22px !important;
    }

    body[data-client-section="verify"] .hpt-ball,
    body[data-client-section="verify"] .hpt-bubble {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
        max-width: 22px !important;
        border-radius: 50% !important;
        font-size: 12px !important;
        font-weight: 800 !important;
    }

    body[data-client-section="verify"] .hpt-result-tag {
        min-width: 52px !important;
        padding: 5px 8px !important;
        font-size: 12px !important;
        font-weight: 800 !important;
        border-radius: 4px !important;
    }
}

.app-shell .play-guide-btn {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .app-shell .hit-hint-row {
        flex-wrap: wrap;
        row-gap: 6px;
    }
    .mini-live-draw {
        order: 3;
        width: 100%;
        justify-content: flex-start;
    }
    .mini-live-ball {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }
}

/* Lottery Stats Lab：独立科技风主题，不影响正式版。 */
body.lab-tech-theme.app-shell {
    --tech-bg: #06111f;
    --tech-panel: rgba(10, 28, 47, 0.94);
    --tech-panel-soft: rgba(15, 39, 62, 0.9);
    --tech-line: rgba(74, 200, 255, 0.28);
    --tech-line-strong: rgba(74, 213, 255, 0.62);
    --tech-cyan: #42d9ff;
    --tech-blue: #318bff;
    --tech-text: #dcefff;
    --tech-muted: #83a4bd;
    --tech-grid: #1d3c56;
    --bg: var(--tech-bg);
    --bg-elevated: #0b1c2e;
    --elevated: #10283e;
    --surface: #0d2237;
    --border: var(--tech-line);
    --border-strong: var(--tech-line-strong);
    --text: var(--tech-text);
    --text-muted: #9eb8cc;
    --text-dim: var(--tech-muted);
    --accent: var(--tech-cyan);
    --accent-soft: rgba(66, 217, 255, 0.12);
    color: var(--tech-text);
    background:
        radial-gradient(circle at 12% 0%, rgba(36, 132, 255, 0.20), transparent 32%),
        radial-gradient(circle at 92% 12%, rgba(0, 229, 255, 0.12), transparent 28%),
        linear-gradient(135deg, #050d18 0%, #081827 52%, #06111f 100%) !important;
}

body.lab-tech-theme .page-bg {
    opacity: 0.2;
    filter: hue-rotate(145deg) saturate(1.4);
}

body.lab-tech-theme .page-wrapper {
    position: relative;
}

body.lab-tech-theme .app-header,
body.lab-tech-theme .sub-header,
body.lab-tech-theme .user-status-bar,
body.lab-tech-theme .nav-level,
body.lab-tech-theme .hit-hint-row,
body.lab-tech-theme .alert-bar,
body.lab-tech-theme .stats-header,
body.lab-tech-theme .table-container,
body.lab-tech-theme .hit-prob-track-wrap,
body.lab-tech-theme .pattern-hero,
body.lab-tech-theme .pattern-table-wrap,
body.lab-tech-theme .footer,
body.lab-tech-theme .section-view-heading,
body.lab-tech-theme .section-switcher button {
    color: var(--tech-text);
    border-color: var(--tech-line) !important;
    background: var(--tech-panel) !important;
    box-shadow: inset 0 1px 0 rgba(150, 225, 255, 0.04);
}

body.lab-tech-theme .app-header {
    background:
        linear-gradient(90deg, rgba(7, 26, 45, 0.98), rgba(13, 52, 79, 0.96), rgba(7, 26, 45, 0.98)) !important;
    border-bottom: 1px solid var(--tech-line-strong) !important;
    box-shadow: 0 5px 24px rgba(0, 8, 18, 0.45), 0 1px 0 rgba(66, 217, 255, 0.18);
}

body.lab-tech-theme .section-switcher button:hover,
body.lab-tech-theme .tab-item:hover {
    color: #fff;
    border-color: var(--tech-cyan) !important;
    background: rgba(31, 116, 161, 0.24) !important;
}

body.lab-tech-theme .section-switcher button.is-active,
body.lab-tech-theme .tab-item.active,
body.lab-tech-theme .number-trend-toolbar button.is-active,
body.lab-tech-theme .verify-filter-group button.is-active {
    color: #03101a;
    border-color: #7ce8ff !important;
    background: linear-gradient(135deg, #42d9ff, #48a5ff) !important;
    box-shadow: 0 0 16px rgba(66, 217, 255, 0.28);
}

body.lab-tech-theme .section-switcher .section-icon {
    color: var(--tech-cyan);
    background: rgba(66, 217, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(66, 217, 255, 0.20);
}

body.lab-tech-theme .hit-hint-row {
    border-top: 1px solid var(--tech-line) !important;
    border-bottom: 1px solid var(--tech-line) !important;
}

body.lab-tech-theme .hit-hint,
body.lab-tech-theme .hit-hint span,
body.lab-tech-theme .table-query-label,
body.lab-tech-theme .lottery-selector-label {
    color: #a9c8dc !important;
}

body.lab-tech-theme .mini-live-draw {
    color: #bdeeff;
    border-color: rgba(66, 217, 255, 0.36);
    background: linear-gradient(90deg, rgba(31, 103, 147, 0.26), rgba(19, 57, 86, 0.72));
    box-shadow: inset 0 0 12px rgba(66, 217, 255, 0.06), 0 0 12px rgba(25, 157, 219, 0.08);
}

body.lab-tech-theme .mini-live-label,
body.lab-tech-theme .mini-live-issue,
body.lab-tech-theme .mini-live-cd {
    color: var(--tech-cyan);
}

body.lab-tech-theme[data-client-section="verify"] .verify-dashboard {
    border: 1px solid var(--tech-line);
    background: rgba(5, 17, 30, 0.72) !important;
}

body.lab-tech-theme[data-client-section="verify"] .verify-summary-card,
body.lab-tech-theme[data-client-section="verify"] .verify-recommendation-card {
    color: var(--tech-text);
    border-color: var(--tech-line);
    background:
        linear-gradient(145deg, rgba(15, 43, 66, 0.95), rgba(8, 27, 44, 0.96)) !important;
    box-shadow: inset 0 1px 0 rgba(142, 225, 255, 0.05), 0 8px 20px rgba(0, 8, 18, 0.16);
}

body.lab-tech-theme[data-client-section="verify"] .verify-summary-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 35%, rgba(77, 216, 255, 0.05), transparent 65%);
}

body.lab-tech-theme[data-client-section="verify"] .verify-summary-label,
body.lab-tech-theme[data-client-section="verify"] .verify-summary-sub {
    color: var(--tech-muted);
}

body.lab-tech-theme[data-client-section="verify"] .verify-summary-value {
    color: #ecf9ff;
    text-shadow: 0 0 12px rgba(66, 217, 255, 0.22);
}

body.lab-tech-theme[data-client-section="verify"] .verify-recommendation-card .hit-prob-monitor-head {
    background: linear-gradient(100deg, #0e4263, #145d82 55%, #123a5a) !important;
}

body.lab-tech-theme[data-client-section="verify"] .hit-prob-track-wrap {
    border: 1px solid var(--tech-line-strong);
    background: #081827 !important;
    box-shadow:
        0 0 0 1px rgba(31, 102, 142, 0.16),
        0 10px 30px rgba(0, 7, 15, 0.34),
        0 0 24px rgba(38, 174, 234, 0.08);
}

body.lab-tech-theme[data-client-section="verify"] .hit-prob-track-head {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(79, 219, 255, 0.5);
    background:
        linear-gradient(90deg, #0b3150 0%, #0f5276 42%, #123f61 72%, #092943 100%) !important;
}

body.lab-tech-theme[data-client-section="verify"] .hit-prob-track-head::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -20%;
    width: 30%;
    pointer-events: none;
    transform: skewX(-24deg);
    background: linear-gradient(90deg, transparent, rgba(119, 228, 255, 0.10), transparent);
}

body.lab-tech-theme[data-client-section="verify"] .hit-prob-track-title {
    color: #effbff;
    text-shadow: 0 0 10px rgba(69, 220, 255, 0.42);
}

body.lab-tech-theme[data-client-section="verify"] .hit-prob-track-meta {
    color: #9bc7dc;
}

body.lab-tech-theme[data-client-section="verify"] .hit-prob-track-scroll {
    background: #081725;
    scrollbar-color: #26799c #0a1c2b;
}

body.lab-tech-theme[data-client-section="verify"] .hit-prob-track-table {
    color: #bdd2e1;
    background: #081725;
}

body.lab-tech-theme[data-client-section="verify"] .hit-prob-track-table thead th,
body.lab-tech-theme[data-client-section="verify"] .hit-prob-track-table thead .hpt-fixed-issue,
body.lab-tech-theme[data-client-section="verify"] .hit-prob-track-table thead .hpt-fixed-sum,
body.lab-tech-theme[data-client-section="verify"] .hit-prob-track-table thead .hpt-fixed-result {
    color: #dff8ff;
    border-color: #286783 !important;
    border-bottom-color: #3fc7eb !important;
    background: linear-gradient(180deg, #123b58, #0d2c45) !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

body.lab-tech-theme[data-client-section="verify"] .hit-prob-track-table thead th > small {
    color: #7db3cb;
}

body.lab-tech-theme[data-client-section="verify"] .hit-prob-track-table tbody td,
body.lab-tech-theme[data-client-section="verify"] .hit-prob-track-table tbody .hpt-fixed-issue,
body.lab-tech-theme[data-client-section="verify"] .hit-prob-track-table tbody .hpt-fixed-sum,
body.lab-tech-theme[data-client-section="verify"] .hit-prob-track-table tbody .hpt-fixed-result {
    color: #b9cfdd;
    border-color: var(--tech-grid) !important;
    background: #0b1d2d !important;
}

body.lab-tech-theme[data-client-section="verify"] .hit-prob-track-table tbody tr:nth-child(even) td,
body.lab-tech-theme[data-client-section="verify"] .hit-prob-track-table tbody tr:nth-child(even) .hpt-fixed-issue,
body.lab-tech-theme[data-client-section="verify"] .hit-prob-track-table tbody tr:nth-child(even) .hpt-fixed-sum,
body.lab-tech-theme[data-client-section="verify"] .hit-prob-track-table tbody tr:nth-child(even) .hpt-fixed-result {
    background: #0e2538 !important;
}

body.lab-tech-theme[data-client-section="verify"] .hit-prob-track-table tbody tr:hover td {
    background: #123b52 !important;
    box-shadow: inset 0 1px 0 rgba(75, 211, 255, 0.12), inset 0 -1px 0 rgba(75, 211, 255, 0.12);
}

body.lab-tech-theme[data-client-section="verify"] .hpt-fixed-issue {
    color: #bcecff !important;
}

body.lab-tech-theme[data-client-section="verify"] .hpt-fixed-sum {
    color: #67dfff !important;
}

body.lab-tech-theme[data-client-section="verify"] .hpt-dist-cell,
body.lab-tech-theme[data-client-section="verify"] .hpt-dist-picks-row .hpt-dist-cell {
    color: #587a92;
    border-color: #1b3b51;
    background: transparent;
}

body.lab-tech-theme[data-client-section="verify"] .hpt-dist-cell.miss {
    color: #55758b;
}

body.lab-tech-theme[data-client-section="verify"] .hpt-recommend-cell .hpt-bubble:not(.hit-red):not(.hit-green),
body.lab-tech-theme[data-client-section="verify"] .hpt-draw-cell .hpt-bubble:not(.hit-red):not(.hit-green) {
    color: #b8d2e3;
    border-color: #47748d;
    background: rgba(23, 58, 82, 0.75);
}

body.lab-tech-theme[data-client-section="verify"] .col-hpt-dist .hpt-ball.hit-red,
body.lab-tech-theme[data-client-section="verify"] .hpt-draw-cell .hpt-bubble.hit-red,
body.lab-tech-theme[data-client-section="verify"] .hpt-recommend-cell .hpt-bubble.hit-red {
    box-shadow: 0 0 8px rgba(221, 69, 68, 0.45);
}

body.lab-tech-theme[data-client-section="verify"] .col-hpt-dist .hpt-ball.hit-green,
body.lab-tech-theme[data-client-section="verify"] .hpt-draw-cell .hpt-bubble.hit-green,
body.lab-tech-theme[data-client-section="verify"] .hpt-recommend-cell .hpt-bubble.hit-green {
    box-shadow: 0 0 8px rgba(65, 172, 66, 0.45);
}

body.lab-tech-theme[data-client-section="verify"] .hpt-result-tag.hit {
    color: #8df5b0;
    border-color: rgba(92, 230, 140, 0.48);
    background: rgba(27, 111, 69, 0.34);
    box-shadow: inset 0 0 8px rgba(71, 232, 132, 0.08);
}

body.lab-tech-theme[data-client-section="verify"] .hpt-result-tag.miss {
    color: #ff9c9d;
    border-color: rgba(255, 108, 110, 0.46);
    background: rgba(120, 39, 48, 0.35);
}

body.lab-tech-theme[data-client-section="verify"] .hit-prob-track-table tbody tr[data-verify-state="pending"] td {
    color: #ffe39a;
    background: #302b1b !important;
}

body.lab-tech-theme .footer {
    color: #66869c;
    background: rgba(5, 15, 26, 0.88) !important;
}

/* ===== Lab Features Theme · 对齐 software-features 下载区纸感青绿 ===== */
body.lab-features-theme.app-shell {
    --ink: #102c2a;
    --ink-soft: #47615f;
    --paper: #f4f1e8;
    --paper-deep: #eae5d8;
    --white: #fffdf8;
    --teal: #176b67;
    --teal-dark: #0d4d4a;
    --teal-pale: #dceae5;
    --lime: #cbe56d;
    --coral: #ec765f;
    --blue: #407da3;
    --line: rgba(16, 44, 42, .14);
    --bg: var(--paper);
    --bg-elevated: var(--white);
    --elevated: var(--white);
    --surface: var(--paper-deep);
    --border: var(--line);
    --border-strong: rgba(16, 44, 42, .22);
    --text: var(--ink);
    --text-muted: var(--ink-soft);
    --text-dim: rgba(71, 97, 95, 0.72);
    --accent: var(--teal);
    --accent-soft: rgba(23, 107, 103, 0.12);
    --nav-path-active: var(--teal);
    --green: #2a9d78;
    --amber: #b8963f;
    --cyan: var(--blue);
    --ref-paper: var(--white);
    --ref-cream: #f7f4eb;
    --ref-yellow: var(--teal-pale);
    --ref-blue: #e8f1ef;
    --ref-pink: #f8ebe8;
    --ref-green-soft: #e5f3eb;
    --ref-grid: rgba(16, 44, 42, .12);
    --ref-text: var(--ink);
    --ref-muted: var(--ink-soft);
    --ref-purple: var(--teal);
    --ref-red: #DD4544;
    --ref-green: #41AC42;
    --ref-cyan: var(--teal);
    color: var(--ink);
    background: var(--paper) !important;
}

body.lab-features-theme,
body.lab-features-theme .page-wrapper {
    background: var(--paper) !important;
}

body.lab-features-theme .page-bg {
    opacity: 0.42;
    background:
        radial-gradient(circle at 82% 12%, rgba(23, 107, 103, 0.08) 0%, transparent 34%),
        radial-gradient(circle at 12% 78%, rgba(203, 229, 109, 0.10) 0%, transparent 30%),
        var(--paper) !important;
}

body.lab-features-theme .page-bg,
body.lab-features-theme .bg-grid,
body.lab-features-theme .bg-orbit {
    opacity: 0.42;
}

body.lab-features-theme .pattern-hero,
body.lab-features-theme .pattern-table-wrap,
body.lab-features-theme .footer,
body.lab-features-theme .section-view-heading {
    color: var(--ink);
    border-color: var(--line) !important;
    background: var(--white) !important;
    box-shadow: none;
}

body.lab-features-theme .app-header {
    background: rgba(244, 241, 232, 0.96) !important;
    border-bottom: 1px solid var(--line) !important;
    backdrop-filter: blur(14px);
}

/* 全局背景统一：纸感底 + 白卡片内容 */
body.lab-features-theme .main-nav,
body.lab-features-theme .sub-header,
body.lab-features-theme .nav-level,
body.lab-features-theme .tab-nav,
body.lab-features-theme .hit-hint-row,
body.lab-features-theme .user-status-bar,
body.lab-features-theme .alert-bar,
body.lab-features-theme .verify-dashboard,
body.lab-features-theme .mobile-period-selector,
body.lab-features-theme .mobile-search-panel,
body.lab-features-theme .chonghao-body,
body.lab-features-theme #patternPanel {
    background: var(--paper) !important;
    border-color: var(--line) !important;
    box-shadow: none;
}

body.lab-features-theme .section-switcher {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.lab-features-theme .section-switcher button {
    background: var(--white) !important;
}

body.lab-features-theme .tab-item {
    background: transparent;
}

body.lab-features-theme #starNav .tab-item.active,
body.lab-features-theme #positionSubNav .tab-item.active,
body.lab-features-theme #groupTypeNav .tab-item.active,
body.lab-features-theme #codeNav .tab-item.active,
body.lab-features-theme .tab-item.active {
    color: var(--teal-dark);
}

body.lab-features-theme #starNav .tab-item.active::after,
body.lab-features-theme #positionSubNav .tab-item.active::after,
body.lab-features-theme .tab-item.active::after {
    background: var(--teal);
}

body.lab-features-theme #codeNav .tab-item.active {
    color: #fff !important;
    background: var(--teal) !important;
    border-color: var(--teal) !important;
}

body.lab-features-theme .lottery-current,
body.lab-features-theme .lottery-dropdown,
body.lab-features-theme .lottery-option:hover,
body.lab-features-theme .lottery-option.active {
    background: var(--white) !important;
}

body.lab-features-theme .play-guide-btn {
    color: var(--teal-dark);
    border-color: rgba(23, 107, 103, 0.28);
    background: var(--teal-pale);
}

body.lab-features-theme .play-guide-btn:hover {
    border-color: var(--teal);
    background: #edf6c8;
}

body.lab-features-theme[data-client-section="verify"] #alertBar,
body.lab-features-theme[data-client-section="verify"] .verify-dashboard {
    background: var(--paper) !important;
}

body.lab-features-theme[data-client-section="verify"] #hitProbMonitor {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white) !important;
    box-shadow: 0 10px 28px rgba(34, 61, 57, 0.06);
}

body.lab-features-theme[data-client-section="verify"] .hit-prob-list-wrap,
body.lab-features-theme[data-client-section="verify"] .alert-list-wrap {
    background: transparent;
}

body.lab-features-theme.app-shell .section-switcher button.is-active {
    color: #fff !important;
    border-color: var(--teal) !important;
    background: var(--teal) !important;
}

body.lab-features-theme.app-shell .section-switcher button.is-active .section-icon {
    color: var(--teal-dark) !important;
    background: var(--lime) !important;
}

body.lab-features-theme.app-shell .section-switcher button:hover {
    border-color: rgba(23, 107, 103, 0.28) !important;
    background: var(--teal-pale) !important;
}

body.lab-features-theme.app-shell #statsTable thead th,
body.lab-features-theme.app-shell #patternTable thead th {
    color: var(--teal-dark) !important;
    border-color: rgba(16, 44, 42, 0.10) !important;
    background: var(--teal-pale) !important;
}

body.lab-features-theme.app-shell #statsTable tbody tr:hover td,
body.lab-features-theme.app-shell #patternTable tbody tr:hover td {
    background: #edf6c8 !important;
}

body.lab-features-theme .section-switcher button:hover,
body.lab-features-theme .tab-item:hover {
    color: var(--teal-dark);
    border-color: rgba(23, 107, 103, 0.28) !important;
    background: var(--teal-pale) !important;
}

body.lab-features-theme .section-switcher button.is-active,
body.lab-features-theme .tab-item.active,
body.lab-features-theme .number-trend-toolbar button.is-active,
body.lab-features-theme .verify-filter-group button.is-active {
    color: #fff !important;
    border-color: var(--teal) !important;
    background: var(--teal) !important;
    box-shadow: none;
}

body.lab-features-theme .section-switcher .section-icon {
    color: var(--teal);
    background: var(--teal-pale);
}

body.lab-features-theme .hit-hint,
body.lab-features-theme .hit-hint span,
body.lab-features-theme .table-query-label,
body.lab-features-theme .lottery-selector-label {
    color: var(--ink-soft) !important;
}

body.lab-features-theme .mini-live-draw {
    color: var(--ink);
    border-color: rgba(23, 107, 103, 0.18);
    background: linear-gradient(90deg, #edf6c8, #fffdf8);
    box-shadow: none;
}

body.lab-features-theme .mini-live-label,
body.lab-features-theme .mini-live-issue,
body.lab-features-theme .mini-live-cd {
    color: var(--teal-dark);
}

body.lab-features-theme .mini-live-ball {
    background: var(--coral);
    box-shadow: none;
}

body.lab-features-theme .mini-live-ball:nth-child(even) {
    background: var(--teal);
}

body.lab-features-theme[data-client-section="verify"] .verify-dashboard {
    border: 1px solid var(--line);
    background: rgba(234, 229, 216, 0.55) !important;
}

body.lab-features-theme[data-client-section="verify"] .verify-summary-card,
body.lab-features-theme[data-client-section="verify"] .verify-recommendation-card {
    color: var(--ink);
    border-color: var(--line);
    background: var(--white) !important;
    box-shadow: 0 10px 28px rgba(34, 61, 57, 0.06);
}

body.lab-features-theme[data-client-section="verify"] .verify-summary-label,
body.lab-features-theme[data-client-section="verify"] .verify-summary-sub {
    color: var(--ink-soft);
}

body.lab-features-theme[data-client-section="verify"] .verify-summary-value {
    color: var(--ink);
    text-shadow: none;
}

body.lab-features-theme[data-client-section="verify"] .verify-summary-card.is-hit::before { background: #2a9d78; }
body.lab-features-theme[data-client-section="verify"] .verify-summary-card.is-rate::before { background: var(--teal); }
body.lab-features-theme[data-client-section="verify"] .verify-summary-card.is-pending::before { background: var(--amber); }

body.lab-features-theme[data-client-section="verify"] .verify-recommendation-card .hit-prob-monitor-head {
    color: #fff;
    background: linear-gradient(100deg, #176b67, #0d4d4a) !important;
}

body.lab-features-theme[data-client-section="verify"] .verify-recommendation-card .hit-prob-picks {
    color: #edf6c8;
}

body.lab-features-theme[data-client-section="verify"] .hit-prob-track-wrap {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white) !important;
    box-shadow: 0 18px 48px rgba(34, 61, 57, 0.08);
}

body.lab-features-theme[data-client-section="verify"] .hit-prob-track-head {
    color: #fff;
    border-bottom: 0;
    background: var(--teal) !important;
}

body.lab-features-theme[data-client-section="verify"] .hit-prob-track-title {
    color: #fff;
    text-shadow: none;
}

body.lab-features-theme[data-client-section="verify"] .hit-prob-track-meta {
    color: #ffffff;
    opacity: 1;
    font-weight: 650;
}

body.lab-features-theme[data-client-section="verify"] .hit-prob-track-scroll {
    background: var(--white);
}

body.lab-features-theme[data-client-section="verify"] .hit-prob-track-table {
    color: var(--ink-soft);
    background: var(--white);
}

body.lab-features-theme[data-client-section="verify"] .hit-prob-track-table thead th,
body.lab-features-theme[data-client-section="verify"] .hit-prob-track-table thead .hpt-fixed-issue,
body.lab-features-theme[data-client-section="verify"] .hit-prob-track-table thead .hpt-fixed-sum,
body.lab-features-theme[data-client-section="verify"] .hit-prob-track-table thead .hpt-fixed-result {
    color: var(--teal-dark) !important;
    border-color: rgba(23, 107, 103, 0.16) !important;
    border-bottom: 2px solid rgba(23, 107, 103, 0.28) !important;
    background: var(--teal-pale) !important;
    text-shadow: none;
}

body.lab-features-theme[data-client-section="verify"] .hit-prob-track-table thead th > small {
    color: rgba(13, 77, 74, 0.62);
}

body.lab-features-theme[data-client-section="verify"] .hit-prob-track-table tbody td,
body.lab-features-theme[data-client-section="verify"] .hit-prob-track-table tbody .hpt-fixed-issue,
body.lab-features-theme[data-client-section="verify"] .hit-prob-track-table tbody .hpt-fixed-sum,
body.lab-features-theme[data-client-section="verify"] .hit-prob-track-table tbody .hpt-fixed-result {
    color: var(--ink-soft);
    border-color: rgba(16, 44, 42, 0.10) !important;
    background: var(--white) !important;
}

body.lab-features-theme[data-client-section="verify"] .hit-prob-track-table tbody tr:nth-child(even) td,
body.lab-features-theme[data-client-section="verify"] .hit-prob-track-table tbody tr:nth-child(even) .hpt-fixed-issue,
body.lab-features-theme[data-client-section="verify"] .hit-prob-track-table tbody tr:nth-child(even) .hpt-fixed-sum,
body.lab-features-theme[data-client-section="verify"] .hit-prob-track-table tbody tr:nth-child(even) .hpt-fixed-result {
    background: #f7f4eb !important;
}

body.lab-features-theme[data-client-section="verify"] .hit-prob-track-table tbody tr:hover td {
    background: #edf6c8 !important;
    box-shadow: none;
}

body.lab-features-theme[data-client-section="verify"] .hpt-fixed-issue {
    color: var(--ink) !important;
}

body.lab-features-theme[data-client-section="verify"] .hpt-fixed-sum {
    color: var(--teal) !important;
}

body.lab-features-theme[data-client-section="verify"] .hpt-dist-cell,
body.lab-features-theme[data-client-section="verify"] .hpt-dist-picks-row .hpt-dist-cell {
    color: rgba(71, 97, 95, 0.55);
    border-color: rgba(16, 44, 42, 0.10);
    background: transparent;
}

body.lab-features-theme[data-client-section="verify"] .hpt-recommend-cell .hpt-bubble:not(.hit-red):not(.hit-green) {
    color: var(--teal-dark);
    border-color: rgba(23, 107, 103, 0.35);
    background: transparent;
}

body.lab-features-theme[data-client-section="verify"] .col-hpt-dist .hpt-ball.hit-red,
body.lab-features-theme[data-client-section="verify"] .hpt-draw-cell .hpt-bubble.hit-red,
body.lab-features-theme[data-client-section="verify"] .hpt-recommend-cell .hpt-bubble.hit-red {
    color: #fff !important;
    border-color: #DD4544 !important;
    background: #DD4544 !important;
    box-shadow: none;
}

body.lab-features-theme[data-client-section="verify"] .col-hpt-dist .hpt-ball.hit-green,
body.lab-features-theme[data-client-section="verify"] .hpt-draw-cell .hpt-bubble.hit-green,
body.lab-features-theme[data-client-section="verify"] .hpt-recommend-cell .hpt-bubble.hit-green {
    color: #fff !important;
    border-color: #41AC42 !important;
    background: #41AC42 !important;
    box-shadow: none;
}

body.lab-features-theme[data-client-section="verify"] .hpt-ball.hpt-virtual.is-pick,
body.lab-features-theme[data-client-section="verify"] .hpt-ball.is-pick {
    color: #fff !important;
    border: none !important;
    background: #DD4544 !important;
    box-shadow: none;
}

body.lab-features-theme[data-client-section="verify"] .hpt-result-tag.hit {
    color: #1f7a4d;
    border-color: rgba(42, 157, 120, 0.35);
    background: #e5f3eb;
}

body.lab-features-theme[data-client-section="verify"] .hpt-result-tag.miss {
    color: #b24b3c;
    border-color: rgba(236, 118, 95, 0.35);
    background: #f8ebe8;
}

body.lab-features-theme[data-client-section="verify"] .hit-prob-track-table tbody tr[data-verify-state="pending"] td {
    color: var(--ink);
    background: #f4f7e8 !important;
}

body.lab-features-theme .footer {
    color: var(--ink-soft);
    background: rgba(244, 241, 232, 0.9) !important;
}

body.lab-features-theme .client-bottom-nav {
    border-color: var(--line);
    background: rgba(255, 253, 248, 0.96);
}

body.lab-features-theme .client-bottom-nav a.is-active,
body.lab-features-theme .client-bottom-nav .is-active {
    color: #ffffff !important;
    background: var(--teal) !important;
}

body.lab-features-theme .client-bottom-nav a.is-active svg,
body.lab-features-theme .client-bottom-nav .is-active svg {
    stroke: currentColor;
    color: #ffffff;
}

/* 号码走势图 · 与推荐验算表统一纸感青绿 */
body.lab-features-theme[data-client-section="trend"] .number-trend-panel {
    overflow: hidden;
    margin-bottom: 14px;
    border: 1px solid var(--line) !important;
    border-radius: 14px;
    color: var(--ink-soft);
    background: var(--white) !important;
    box-shadow: none;
}

@media (min-width: 901px) {
    body.lab-features-theme[data-client-section="trend"] .number-trend-panel {
        box-shadow: 0 18px 48px rgba(34, 61, 57, 0.08);
    }
}

body.lab-features-theme[data-client-section="trend"] .number-trend-toolbar {
    min-height: 42px;
    padding: 9px 14px;
    border-bottom: 0;
    color: #fff;
    background: var(--teal) !important;
}

body.lab-features-theme[data-client-section="trend"] .number-trend-toolbar span {
    color: rgba(255, 255, 255, 0.78);
}

body.lab-features-theme[data-client-section="trend"] .number-trend-scope {
    color: var(--teal-dark);
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.88);
}

body.lab-features-theme[data-client-section="trend"] .number-trend-toolbar button {
    color: rgba(255, 255, 255, 0.88);
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
}

body.lab-features-theme[data-client-section="trend"] .number-trend-toolbar button:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.14);
}

body.lab-features-theme[data-client-section="trend"] .number-trend-toolbar button.is-active {
    color: var(--ink);
    border-color: var(--lime);
    background: var(--lime) !important;
    box-shadow: none;
}

body.lab-features-theme[data-client-section="trend"] .number-trend-scroll {
    background: var(--white);
    scrollbar-color: #8fb8b0 #f4f1e8;
}

body.lab-features-theme[data-client-section="trend"] .number-trend-table {
    color: var(--ink-soft);
    background: var(--white) !important;
}

body.lab-features-theme[data-client-section="trend"] .number-trend-table th,
body.lab-features-theme[data-client-section="trend"] .number-trend-table td {
    border-color: rgba(16, 44, 42, 0.10) !important;
    background: var(--white);
}

body.lab-features-theme[data-client-section="trend"] .number-trend-table thead th {
    color: var(--teal-dark) !important;
    border-bottom: 2px solid rgba(23, 107, 103, 0.28) !important;
    background: var(--teal-pale) !important;
}

body.lab-features-theme[data-client-section="trend"] .number-trend-table tbody tr:nth-child(even) td {
    background: #fbfaf5;
}

body.lab-features-theme[data-client-section="trend"] .number-trend-scroll,
body.lab-features-theme[data-client-section="trend"] .number-trend-table,
body.lab-features-theme[data-client-section="trend"] .number-trend-table tbody tr td {
    background-color: var(--white);
}

body.lab-features-theme[data-client-section="trend"] .number-trend-table tbody tr:nth-child(even) td {
    background-color: #fbfaf5 !important;
}

body.lab-features-theme[data-client-section="trend"] .number-trend-lines {
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.9));
}

body.lab-features-theme[data-client-section="trend"] .number-trend-table tbody tr:hover td {
    background: #edf6c8 !important;
}

body.lab-features-theme[data-client-section="trend"] .number-trend-table .nt-label,
body.lab-features-theme[data-client-section="trend"] .number-trend-table .nt-draw,
body.lab-features-theme[data-client-section="trend"] .number-trend-table .nt-sum,
body.lab-features-theme[data-client-section="trend"] .number-trend-table thead .nt-label,
body.lab-features-theme[data-client-section="trend"] .number-trend-table thead .nt-draw,
body.lab-features-theme[data-client-section="trend"] .number-trend-table thead .nt-sum {
    color: var(--ink);
    border-color: rgba(16, 44, 42, 0.10) !important;
    background: #e8f1ef !important;
}

body.lab-features-theme[data-client-section="trend"] .number-trend-table .nt-draw {
    color: var(--teal);
}

body.lab-features-theme[data-client-section="trend"] .number-trend-table .nt-sum {
    color: var(--teal-dark);
    font-weight: 800;
}

body.lab-features-theme[data-client-section="trend"] .number-trend-table .nt-miss {
    color: rgba(71, 97, 95, 0.45);
}

body.lab-features-theme[data-client-section="trend"] .number-trend-table .nt-ball,
body.lab-features-theme[data-client-section="trend"] .number-trend-table .nt-position-0,
body.lab-features-theme[data-client-section="trend"] .number-trend-table .nt-position-1,
body.lab-features-theme[data-client-section="trend"] .number-trend-table .nt-position-2,
body.lab-features-theme[data-client-section="trend"] .number-trend-table .nt-position-3,
body.lab-features-theme[data-client-section="trend"] .number-trend-table .nt-position-4 {
    color: #fff;
    background: #DD4544 !important;
    box-shadow: none;
}

body.lab-features-theme[data-client-section="trend"] .number-trend-table .nt-ball.nt-repeat {
    background: #41AC42 !important;
}

body.lab-features-theme[data-client-section="trend"] .number-trend-table tfoot td,
body.lab-features-theme[data-client-section="trend"] .number-trend-table tfoot .nt-label,
body.lab-features-theme[data-client-section="trend"] .number-trend-table tfoot .nt-draw,
body.lab-features-theme[data-client-section="trend"] .number-trend-table tfoot .nt-sum {
    color: var(--ink-soft);
    border-top: 2px solid rgba(23, 107, 103, 0.20);
    background: var(--teal-pale) !important;
}

body.lab-features-theme[data-client-section="trend"] .number-trend-legend {
    padding: 8px 14px;
    color: var(--ink-soft);
    border-top: 1px solid var(--line);
    background: #f7f4eb !important;
}

body.lab-features-theme[data-client-section="trend"] .number-trend-legend i {
    background: var(--coral);
    box-shadow: none;
}

body.lab-features-theme[data-client-section="trend"] .number-trend-legend i.repeat {
    background: #2a9d78;
}

body.lab-features-theme[data-client-section="trend"] .number-trend-empty {
    color: var(--ink-soft);
    background: var(--white);
}

/* 统计表格 · 与推荐验算表统一纸感青绿 */
body.lab-features-theme[data-client-section="stats"] #alertBar {
    margin: 0 0 10px;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

body.lab-features-theme[data-client-section="stats"] #alertBar .alert-controls {
    padding: 0;
    background: transparent;
}

body.lab-features-theme[data-client-section="stats"] #alertBar .table-query-wrap {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 253, 248, 0.92);
}

body.lab-features-theme[data-client-section="stats"] .table-query-label {
    color: var(--teal-dark) !important;
}

body.lab-features-theme[data-client-section="stats"] .table-query-select {
    color: var(--ink) !important;
    border-color: rgba(23, 107, 103, 0.22) !important;
    background: var(--white) !important;
}

body.lab-features-theme[data-client-section="stats"] .table-query-select option {
    color: var(--ink);
    background: var(--white);
}

body.lab-features-theme[data-client-section="stats"] .stats-header {
    margin: 0;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
    color: #fff;
    background: var(--teal) !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 12px;
}

body.lab-features-theme[data-client-section="stats"] .stats-info {
    color: rgba(255, 255, 255, 0.82);
}

body.lab-features-theme[data-client-section="stats"] .stats-info strong {
    color: #fff;
}

body.lab-features-theme[data-client-section="stats"] .stats-chart-type-label {
    color: rgba(255, 255, 255, 0.78);
}

body.lab-features-theme[data-client-section="stats"] .stats-chart-type-btn,
body.lab-features-theme[data-client-section="stats"] .trend-toggle-btn {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.88);
}

body.lab-features-theme[data-client-section="stats"] .stats-chart-type-btn:hover,
body.lab-features-theme[data-client-section="stats"] .trend-toggle-btn:hover {
    border-color: var(--lime);
    color: #fff;
    background: rgba(203, 229, 109, 0.22);
}

body.lab-features-theme[data-client-section="stats"] .stats-chart-type-btn.active,
body.lab-features-theme[data-client-section="stats"] .trend-toggle-btn.active {
    border-color: var(--lime);
    background: var(--lime);
    color: var(--ink);
}

body.lab-features-theme[data-client-section="stats"] .trend-header .trend-toggle-btn {
    border-color: rgba(23, 107, 103, 0.28);
    background: var(--teal-pale);
    color: var(--teal-dark);
}

body.lab-features-theme[data-client-section="stats"] .trend-header .trend-toggle-btn:hover {
    border-color: var(--teal);
    color: var(--teal-dark);
    background: #d7ebe6;
}

body.lab-features-theme[data-client-section="stats"] .trend-header .trend-toggle-btn.active {
    border-color: var(--teal);
    background: var(--teal);
    color: #fff;
}

body.lab-features-theme[data-client-section="stats"] .table-container {
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 14px 14px;
    background: var(--white) !important;
    box-shadow: 0 18px 48px rgba(34, 61, 57, 0.08);
    scrollbar-color: #8fb8b0 #f4f1e8;
}

body.lab-features-theme[data-client-section="stats"] #statsTable {
    color: var(--ink-soft);
    background: var(--white) !important;
}

body.lab-features-theme[data-client-section="stats"] #statsTable thead th {
    color: var(--teal-dark) !important;
    border-color: rgba(16, 44, 42, 0.10) !important;
    border-bottom: 2px solid rgba(23, 107, 103, 0.28) !important;
    background: var(--teal-pale) !important;
}

body.lab-features-theme[data-client-section="stats"] #statsTable thead th.sortable:hover {
    color: var(--teal) !important;
}

body.lab-features-theme[data-client-section="stats"] #statsTable tbody td {
    border-color: rgba(16, 44, 42, 0.10) !important;
    background: var(--white);
}

body.lab-features-theme[data-client-section="stats"] #statsTable tbody tr:nth-child(even) td {
    background: #f7f4eb;
}

body.lab-features-theme[data-client-section="stats"] #statsTable tbody tr:hover td {
    background: #edf6c8 !important;
}

body.lab-features-theme[data-client-section="stats"] #statsTable .combo-cell {
    color: var(--ink);
}

body.lab-features-theme[data-client-section="stats"] #statsTable .combo-cell.expanded {
    color: var(--teal-dark);
    background: var(--teal-pale) !important;
}

body.lab-features-theme[data-client-section="stats"] #statsTable .count {
    color: var(--teal);
}

body.lab-features-theme[data-client-section="stats"] #statsTable td.diff.hot-strong,
body.lab-features-theme[data-client-section="stats"] #statsTable .miss.current.hot {
    color: var(--coral) !important;
}

body.lab-features-theme[data-client-section="stats"] #statsTable td.diff.hot-mild,
body.lab-features-theme[data-client-section="stats"] #statsTable td.diff.warm,
body.lab-features-theme[data-client-section="stats"] #statsTable .miss.current.warm {
    color: var(--amber) !important;
}

body.lab-features-theme[data-client-section="stats"] #statsTable td.diff.neutral {
    color: var(--ink-soft) !important;
}

body.lab-features-theme[data-client-section="stats"] #statsTable td.diff.cold-mild,
body.lab-features-theme[data-client-section="stats"] #statsTable td.diff.cold-strong {
    color: var(--blue) !important;
}

body.lab-features-theme[data-client-section="stats"] .pagination {
    padding: 12px 0 4px;
    color: var(--ink-soft);
}

body.lab-features-theme[data-client-section="stats"] .page-btn {
    color: var(--teal-dark);
    border-color: rgba(23, 107, 103, 0.22);
    background: var(--white);
}

body.lab-features-theme[data-client-section="stats"] .page-btn:hover:not([disabled]) {
    color: var(--teal-dark);
    border-color: var(--teal);
    background: var(--teal-pale);
}

/* 隐藏右上角：字号切换 / 主题切换 / 刷新 */
body.lab-features-theme .sub-header-right .font-size-switcher,
body.lab-features-theme .sub-header-right .theme-switcher,
body.lab-features-theme .sub-header-right #refreshBtn,
body.lab-features-theme .app-header .header-actions #mobileRefreshBtn {
    display: none !important;
}

/* =========================================================
 * section=verify 对齐 trend：同顶栏/玩法条/板块头，主区=推荐+验算表
 * ========================================================= */
body[data-client-section="verify"] .fdd-toggle,
body[data-client-section="verify"] #fddPanel,
body[data-client-section="verify"] #numberTrendPanel,
body[data-client-section="verify"] .client-install {
    display: none !important;
}

body[data-client-section="verify"] .hit-hint-row {
    display: flex !important;
}

body[data-client-section="verify"] .verify-dashboard {
    display: block !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
    border: 1px solid var(--app-line) !important;
    border-radius: 0 0 6px 6px !important;
    background: rgba(244, 247, 252, 0.98) !important;
    box-shadow: none !important;
    overflow: hidden;
}

body[data-client-section="verify"] .verify-recommendation-card,
body[data-client-section="verify"] #hitProbMonitor {
    display: block !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    border-bottom: 1px solid #d7deea !important;
    background: #fff !important;
}

body[data-client-section="verify"] .verify-summary-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 10px 12px 12px;
}

body[data-client-section="verify"] #hitProbTrackWrap,
body[data-client-section="verify"] .hit-prob-track-wrap {
    display: block !important;
    margin: 0 0 14px !important;
    border: 1px solid #b7ccc5 !important;
    border-radius: 6px !important;
    background: #fff !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

/* 验算表头：深绿底 + 高对比白字，左侧标题旁显示彩种 */
body[data-client-section="verify"] .hit-prob-track-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 10px 14px !important;
    color: #fff !important;
    background: #176b67 !important;
    border-bottom: 0 !important;
}

body[data-client-section="verify"] .hit-prob-track-title-wrap {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

body[data-client-section="verify"] .hit-prob-track-title {
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
    white-space: nowrap;
}

body[data-client-section="verify"] .hit-prob-track-lottery {
    display: inline-flex;
    align-items: center;
    max-width: 42vw;
    padding: 3px 10px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.18);
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: 0.3px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

body[data-client-section="verify"] .hit-prob-track-meta {
    color: #ffffff !important;
    opacity: 1 !important;
    font-size: 12px !important;
    font-weight: 650 !important;
    line-height: 1.45;
    text-align: right;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
    -webkit-font-smoothing: antialiased;
}

body[data-client-section="verify"] .hit-prob-track-scroll {
    height: auto !important;
    max-height: 620px !important;
    min-height: 0 !important;
    overflow: auto !important;
    background: #fff;
    -webkit-overflow-scrolling: touch;
}

body[data-client-section="verify"] .hit-prob-track-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    color: #536078 !important;
    background: #f7f9fc !important;
    border-bottom: 1px solid #d7deea !important;
}

@media (max-width: 900px) {
    body[data-client-section="verify"] .verify-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    body[data-client-section="verify"] .hit-prob-track-scroll {
        max-height: none !important;
        height: auto !important;
    }
}

/* =========================================================
 * 手机端：整页可上下滑动；表区域随内容增高，仅保留横向滑动
 * ========================================================= */
@media (max-width: 900px) {
    body.chart-page-scroll,
    body.chart-fullscreen {
        overflow: auto !important;
        height: auto !important;
        overscroll-behavior: auto;
        padding-bottom: var(--chart-bottom-gap, calc(76px + env(safe-area-inset-bottom))) !important;
    }

    body.chart-page-scroll .page-wrapper,
    body.chart-fullscreen .page-wrapper {
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
        padding-bottom: 12px !important;
    }

    /* 底栏已有板块切换，收起重复大卡片 */
    body.chart-page-scroll #sectionSwitcher,
    body.chart-page-scroll .section-view-heading,
    body.chart-fullscreen #sectionSwitcher,
    body.chart-fullscreen .section-view-heading {
        display: none !important;
    }

    body.chart-page-scroll .footer,
    body.chart-page-scroll .client-install,
    body.chart-fullscreen .footer,
    body.chart-fullscreen .client-install {
        display: none !important;
    }

    body.chart-page-scroll[data-client-section="verify"] .verify-summary-grid,
    body.chart-fullscreen[data-client-section="verify"] .verify-summary-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 4px !important;
    }
    body.chart-page-scroll[data-client-section="verify"] .verify-summary-card,
    body.chart-fullscreen[data-client-section="verify"] .verify-summary-card {
        padding: 6px 4px !important;
        min-height: 0 !important;
    }
    body.chart-page-scroll[data-client-section="verify"] .verify-summary-card strong,
    body.chart-fullscreen[data-client-section="verify"] .verify-summary-card strong {
        font-size: 14px !important;
    }
    body.chart-page-scroll[data-client-section="verify"] .verify-recommendation-card,
    body.chart-fullscreen[data-client-section="verify"] .verify-recommendation-card {
        margin-bottom: 6px !important;
        padding: 6px 8px !important;
    }

    /* 走势/验算面板：高度跟内容走，整页滑 */
    body.chart-page-scroll[data-client-section="trend"] .number-trend-panel,
    body.chart-fullscreen[data-client-section="trend"] .number-trend-panel,
    body.chart-page-scroll[data-client-section="verify"] #hitProbTrackWrap,
    body.chart-fullscreen[data-client-section="verify"] #hitProbTrackWrap {
        display: block !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        margin: 0 0 16px !important;
        border-radius: 10px !important;
        background: #ffffff !important;
        box-shadow: none !important;
    }

    body.chart-page-scroll[data-client-section="trend"] .number-trend-toolbar,
    body.chart-fullscreen[data-client-section="trend"] .number-trend-toolbar {
        position: sticky;
        top: 0;
        z-index: 46;
        min-height: 36px;
        padding: 4px 6px;
        gap: 6px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        background: #fff;
        border-bottom: 1px solid var(--app-line);
    }

    body.chart-page-scroll[data-client-section="trend"] .number-trend-toolbar button,
    body.chart-fullscreen[data-client-section="trend"] .number-trend-toolbar button {
        min-height: 28px;
        padding: 0 8px;
        font-size: 10px;
    }

    /* 走势表：内部可上下滑，表头 sticky，与表体列宽对齐 */
    body.chart-page-scroll[data-client-section="trend"] .number-trend-scroll,
    body.chart-fullscreen[data-client-section="trend"] .number-trend-scroll {
        height: auto !important;
        min-height: 0 !important;
        overflow: auto !important;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x pan-y !important;
        overscroll-behavior: contain;
        cursor: default;
        background: #ffffff;
        padding-right: 8px !important;
    }

    body.chart-page-scroll[data-client-section="verify"] .hit-prob-track-scroll,
    body.chart-fullscreen[data-client-section="verify"] .hit-prob-track-scroll,
    body[data-client-section="verify"] .hit-prob-track-scroll {
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x pan-y !important;
        overscroll-behavior: auto;
        cursor: default;
        background: #fffdf7;
        padding-right: 8px !important;
    }

    body.chart-page-scroll[data-client-section="trend"] .number-trend-legend,
    body.chart-fullscreen[data-client-section="trend"] .number-trend-legend {
        padding: 3px 6px;
        font-size: 9px;
        border-top: 1px solid var(--app-line);
        background: #fff;
    }

    body.chart-page-scroll[data-client-section="trend"] .number-trend-table,
    body.chart-fullscreen[data-client-section="trend"] .number-trend-table {
        width: max-content !important;
        min-width: max-content !important;
        table-layout: fixed !important;
    }

    body.chart-page-scroll[data-client-section="trend"] .number-trend-table th,
    body.chart-page-scroll[data-client-section="trend"] .number-trend-table td,
    body.chart-fullscreen[data-client-section="trend"] .number-trend-table th,
    body.chart-fullscreen[data-client-section="trend"] .number-trend-table td {
        width: 26px !important;
        min-width: 26px !important;
        height: 28px !important;
        font-size: 12px !important;
        box-sizing: border-box !important;
    }

    /* 两行表头：分组名 + 0-9，高度与 sticky top 对齐，避免和表体错位 */
    body.chart-page-scroll[data-client-section="trend"] .number-trend-table thead th,
    body.chart-fullscreen[data-client-section="trend"] .number-trend-table thead th {
        position: sticky !important;
        z-index: 10;
        top: 0 !important;
        background: #f1f4f8 !important;
        box-shadow: 0 1px 0 #d7deea;
    }

    body.chart-page-scroll[data-client-section="trend"] .number-trend-table thead .nt-group-title,
    body.chart-fullscreen[data-client-section="trend"] .number-trend-table thead .nt-group-title {
        top: 0 !important;
        height: 28px !important;
        z-index: 11;
        font-size: 11px !important;
        font-weight: 800;
        letter-spacing: 0;
        white-space: nowrap;
    }

    body.chart-page-scroll[data-client-section="trend"] .number-trend-table thead .nt-digit-head,
    body.chart-fullscreen[data-client-section="trend"] .number-trend-table thead .nt-digit-head {
        top: 28px !important;
        height: 28px !important;
        z-index: 11;
    }

    body.chart-page-scroll[data-client-section="trend"] .number-trend-table thead .nt-label,
    body.chart-page-scroll[data-client-section="trend"] .number-trend-table thead .nt-draw,
    body.chart-page-scroll[data-client-section="trend"] .number-trend-table thead .nt-sum,
    body.chart-fullscreen[data-client-section="trend"] .number-trend-table thead .nt-label,
    body.chart-fullscreen[data-client-section="trend"] .number-trend-table thead .nt-draw,
    body.chart-fullscreen[data-client-section="trend"] .number-trend-table thead .nt-sum {
        top: 0 !important;
        height: 56px !important;
        z-index: 14 !important;
        background: #e9eef5 !important;
        vertical-align: middle;
    }

    body.chart-page-scroll[data-client-section="trend"] .number-trend-table tbody .nt-label,
    body.chart-page-scroll[data-client-section="trend"] .number-trend-table tbody .nt-draw,
    body.chart-page-scroll[data-client-section="trend"] .number-trend-table tbody .nt-sum,
    body.chart-page-scroll[data-client-section="trend"] .number-trend-table tfoot .nt-label,
    body.chart-page-scroll[data-client-section="trend"] .number-trend-table tfoot .nt-draw,
    body.chart-page-scroll[data-client-section="trend"] .number-trend-table tfoot .nt-sum {
        z-index: 6;
    }

    body.chart-page-scroll[data-client-section="trend"] .number-trend-table .nt-label,
    body.chart-page-scroll[data-client-section="trend"] .number-trend-table .nt-draw,
    body.chart-fullscreen[data-client-section="trend"] .number-trend-table .nt-label,
    body.chart-fullscreen[data-client-section="trend"] .number-trend-table .nt-draw {
        width: 64px !important;
        min-width: 64px !important;
        font-size: 12px !important;
    }

    body.chart-page-scroll[data-client-section="trend"] .number-trend-table .nt-draw,
    body.chart-fullscreen[data-client-section="trend"] .number-trend-table .nt-draw {
        left: 64px !important;
    }

    body.chart-page-scroll[data-client-section="trend"] .number-trend-table .nt-sum,
    body.chart-fullscreen[data-client-section="trend"] .number-trend-table .nt-sum {
        width: 34px !important;
        min-width: 34px !important;
        left: 128px !important;
    }

    body.chart-page-scroll[data-client-section="trend"] .number-trend-table .nt-ball,
    body.chart-fullscreen[data-client-section="trend"] .number-trend-table .nt-ball {
        width: 22px !important;
        height: 22px !important;
        font-size: 12px !important;
    }

    body.chart-page-scroll[data-client-section="verify"] .verify-dashboard,
    body.chart-fullscreen[data-client-section="verify"] .verify-dashboard {
        margin-bottom: 6px !important;
    }

    body.chart-page-scroll[data-client-section="verify"] .hit-prob-track-head,
    body.chart-fullscreen[data-client-section="verify"] .hit-prob-track-head {
        padding: 6px 8px !important;
    }

    body.chart-page-scroll[data-client-section="verify"] .hpt-track-canvas,
    body.chart-page-scroll[data-client-section="verify"] .hit-prob-track-table,
    body.chart-fullscreen[data-client-section="verify"] .hpt-track-canvas,
    body.chart-fullscreen[data-client-section="verify"] .hit-prob-track-table {
        width: max-content !important;
        min-width: 700px !important;
        table-layout: fixed !important;
    }

    /* 手机端验算表：去掉和值列，腾出横向空间 */
    body[data-client-section="verify"] .hit-prob-track-table .hpt-fixed-sum {
        display: none !important;
        width: 0 !important;
        min-width: 0 !important;
        padding: 0 !important;
        border: none !important;
        visibility: hidden !important;
    }

    /* 验算结果固定贴在表格可视区右侧，横向滑动时始终对齐 */
    body[data-client-section="verify"] .hit-prob-track-table .hpt-fixed-result {
        position: sticky !important;
        right: 0 !important;
        z-index: 12 !important;
        background: #fffdf8 !important;
        border-left: 2px solid #aebbbd !important;
        box-shadow: -4px 0 8px rgba(45, 61, 66, 0.14) !important;
    }

    body[data-client-section="verify"] .hit-prob-track-table thead .hpt-fixed-result {
        z-index: 14 !important;
        background: #dde5e4 !important;
    }

    body[data-client-section="verify"] .hit-prob-track-table tbody tr:nth-child(even) .hpt-fixed-result {
        background: #f5f8fb !important;
    }

    body[data-client-section="verify"] .hit-prob-track-table tbody tr[data-verify-state="pending"] .hpt-fixed-result {
        background: #fff8e8 !important;
    }

    body.chart-page-scroll[data-client-section="verify"] .hit-prob-track-scroll,
    body.chart-fullscreen[data-client-section="verify"] .hit-prob-track-scroll,
    body[data-client-section="verify"] .hit-prob-track-scroll {
        padding-right: 0 !important;
        scroll-padding-right: 0;
    }

    /* 隐藏旧竖向滑轨：整页已可上下滑 */
    body.chart-page-scroll .chart-v-rail,
    body.chart-fullscreen .chart-v-rail {
        display: none !important;
    }
}

/* 手机验算/走势：保持完整表格宽度，整表横向滑动，不固定拆列。 */
@media (max-width: 900px) {
    body[data-client-section="verify"] .hit-prob-track-scroll,
    body[data-client-section="trend"] .number-trend-scroll {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x pan-y !important;
    }

    body.app-shell[data-client-section="verify"] .hpt-track-canvas,
    body.app-shell[data-client-section="verify"] .hit-prob-track-table {
        width: max-content !important;
        min-width: max-content !important;
        table-layout: auto !important;
    }

    body.app-shell[data-client-section="trend"] .number-trend-table {
        width: max-content !important;
        min-width: max-content !important;
        table-layout: fixed !important;
    }

    body.app-shell[data-client-section="verify"] .hit-prob-track-table th,
    body.app-shell[data-client-section="verify"] .hit-prob-track-table td,
    body.app-shell[data-client-section="trend"] .number-trend-table th,
    body.app-shell[data-client-section="trend"] .number-trend-table td {
        white-space: nowrap !important;
    }

    body[data-client-section="verify"] .hpt-digits {
        flex-wrap: nowrap !important;
    }

    body.app-shell[data-client-section="verify"] .hit-prob-track-table .hpt-fixed-issue,
    body.app-shell[data-client-section="verify"] .hit-prob-track-table .hpt-fixed-sum,
    body.app-shell[data-client-section="verify"] .hit-prob-track-table .hpt-fixed-result {
        position: static !important;
        left: auto !important;
        right: auto !important;
        display: table-cell !important;
        visibility: visible !important;
        padding: 5px 8px !important;
        border-left: 0 !important;
        box-shadow: none !important;
    }

    body.app-shell[data-client-section="verify"] .hit-prob-track-table thead .hpt-fixed-issue,
    body.app-shell[data-client-section="verify"] .hit-prob-track-table thead .hpt-fixed-sum,
    body.app-shell[data-client-section="verify"] .hit-prob-track-table thead .hpt-fixed-result {
        position: sticky !important;
        top: 0 !important;
        z-index: 10 !important;
    }

    body[data-client-section="verify"] .hit-prob-track-table .hpt-fixed-issue {
        width: 110px !important;
        min-width: 110px !important;
    }

    body[data-client-section="verify"] .hit-prob-track-table .hpt-fixed-sum {
        width: 64px !important;
        min-width: 64px !important;
    }

    body[data-client-section="verify"] .hit-prob-track-table .col-hpt-dist {
        width: 304px !important;
        min-width: 304px !important;
    }

    body[data-client-section="verify"] .hit-prob-track-table .hpt-recommend-cell {
        width: 180px !important;
        min-width: 180px !important;
    }

    body[data-client-section="verify"] .hit-prob-track-table .hpt-draw-cell {
        width: 160px !important;
        min-width: 160px !important;
    }

    body[data-client-section="verify"] .hit-prob-track-table .hpt-fixed-result {
        width: 140px !important;
        min-width: 140px !important;
    }

    body[data-client-section="verify"] .hpt-dist,
    body[data-client-section="verify"] .hpt-dist-picks-row {
        grid-template-columns: repeat(10, 22px) !important;
        gap: 4px !important;
    }

    body.app-shell[data-client-section="trend"] .number-trend-table th,
    body.app-shell[data-client-section="trend"] .number-trend-table td {
        width: 25px !important;
        min-width: 25px !important;
        height: 27px !important;
        box-sizing: border-box !important;
    }

    body.app-shell[data-client-section="trend"] .number-trend-table .nt-group-title {
        width: 250px !important;
        min-width: 250px !important;
        box-sizing: border-box !important;
    }

    body.app-shell[data-client-section="trend"] .number-trend-table .nt-label,
    body.app-shell[data-client-section="trend"] .number-trend-table .nt-draw,
    body.app-shell[data-client-section="trend"] .number-trend-table .nt-sum {
        position: static !important;
        left: auto !important;
        right: auto !important;
    }

    body.app-shell[data-client-section="trend"] .number-trend-table .nt-label,
    body.app-shell[data-client-section="trend"] .number-trend-table .nt-draw {
        width: 72px !important;
        min-width: 72px !important;
    }

    body.app-shell[data-client-section="trend"] .number-trend-table .nt-sum {
        width: 40px !important;
        min-width: 40px !important;
    }

    body.app-shell[data-client-section="trend"] .number-trend-table thead .nt-label,
    body.app-shell[data-client-section="trend"] .number-trend-table thead .nt-draw,
    body.app-shell[data-client-section="trend"] .number-trend-table thead .nt-sum {
        position: sticky !important;
        top: 0 !important;
    }

    .app-shell .page-btn {
        min-height: 28px !important;
        padding: 3px 8px !important;
        font-size: 11px !important;
    }
}
