/* Radix Colors, MIT (see /radix-colors-LICENSE.txt). Color-only overlay; no layout or behavior rules. */
html:not([data-contrast="high"]){--cf-bg:#f8faf8;--cf-surface:#ffffff;--cf-surface2:#eff1ef;--cf-line:#d7dad7;--cf-border:#cccfcc;--cf-text:#1d211c;--cf-muted:#60655f;--cf-accent:#2a7e3b;--cf-onAccent:#ffffff;--cf-accentText:#2a7e3b;--cf-accentSoft:#e9f6e9;--cf-accentHover:#daf1db;--cf-accentBorder:#94ce9a;--cf-rowHover:#f5fbf5;--canvas:var(--cf-bg)!important;--paper:var(--cf-bg)!important;--page:var(--cf-bg)!important;--bg:var(--cf-bg)!important;--surface:var(--cf-surface)!important;--paper-2:var(--cf-surface)!important;--surface-strong:var(--cf-surface)!important;--surface-sky:var(--cf-surface)!important;--surface-orange:var(--cf-surface)!important;--surface-green:var(--cf-surface)!important;--surface-navy:var(--cf-surface)!important;--surface-2:var(--cf-surface2)!important;--surface-soft:var(--cf-surface2)!important;--surface-blue:var(--cf-surface2)!important;--ink:var(--cf-text)!important;--text:var(--cf-text)!important;--muted:var(--cf-muted)!important;--ink-soft:var(--cf-muted)!important;--line:var(--cf-line)!important;--line-strong:var(--cf-border)!important;--cobalt:var(--cf-accent)!important;--teal:var(--cf-accent)!important;--teal-2:var(--cf-accent)!important;--gold:var(--cf-accent)!important;--true-gold:var(--cf-accent)!important;--sun-gold:var(--cf-accent)!important;--purple:var(--cf-accent)!important;--magenta:var(--cf-accent)!important;--blue:var(--cf-accent)!important;--green:var(--cf-accent)!important;--brand:var(--cf-accent)!important;--accent:var(--cf-accent)!important;--emerald:var(--cf-accent)!important;--emerald-500:var(--cf-accent)!important;--emerald-700:var(--cf-accent)!important;--purple-dark:var(--cf-accentText)!important;--magenta-dark:var(--cf-accentText)!important;--blue-dark:var(--cf-accentText)!important;--blue-deep:var(--cf-accentText)!important;--navy:var(--cf-accentText)!important;--deep:var(--cf-accentText)!important;--emerald-800:var(--cf-accentText)!important;--emerald-900:var(--cf-accentText)!important;--emerald-950:var(--cf-accentText)!important;--cobalt-soft:var(--cf-accentSoft)!important;--gold-soft:var(--cf-accentSoft)!important;--amber-soft:var(--cf-accentSoft)!important;--mint:var(--cf-accentSoft)!important;--emerald-100:var(--cf-accentSoft)!important;--amber:var(--cf-accentBorder)!important;--shadow:0 8px 24px rgb(16 24 40 / 7%)!important}
html:not([data-contrast="high"])[data-theme="dark"]{--cf-bg:#181917;--cf-surface:#111210;--cf-surface2:#212220;--cf-line:#383a36;--cf-border:#454843;--cf-text:#eceeec;--cf-muted:#afb5ad;--cf-accent:#46a758;--cf-onAccent:#111111;--cf-accentText:#71d083;--cf-accentSoft:#1b2a1e;--cf-accentHover:#1d3a24;--cf-accentBorder:#366740;--cf-rowHover:#141a15;--canvas:var(--cf-bg)!important;--paper:var(--cf-bg)!important;--page:var(--cf-bg)!important;--bg:var(--cf-bg)!important;--surface:var(--cf-surface)!important;--paper-2:var(--cf-surface)!important;--surface-strong:var(--cf-surface)!important;--surface-sky:var(--cf-surface)!important;--surface-orange:var(--cf-surface)!important;--surface-green:var(--cf-surface)!important;--surface-navy:var(--cf-surface)!important;--surface-2:var(--cf-surface2)!important;--surface-soft:var(--cf-surface2)!important;--surface-blue:var(--cf-surface2)!important;--ink:var(--cf-text)!important;--text:var(--cf-text)!important;--muted:var(--cf-muted)!important;--ink-soft:var(--cf-muted)!important;--line:var(--cf-line)!important;--line-strong:var(--cf-border)!important;--cobalt:var(--cf-accent)!important;--teal:var(--cf-accent)!important;--teal-2:var(--cf-accent)!important;--gold:var(--cf-accent)!important;--true-gold:var(--cf-accent)!important;--sun-gold:var(--cf-accent)!important;--purple:var(--cf-accent)!important;--magenta:var(--cf-accent)!important;--blue:var(--cf-accent)!important;--green:var(--cf-accent)!important;--brand:var(--cf-accent)!important;--accent:var(--cf-accent)!important;--emerald:var(--cf-accent)!important;--emerald-500:var(--cf-accent)!important;--emerald-700:var(--cf-accent)!important;--purple-dark:var(--cf-accentText)!important;--magenta-dark:var(--cf-accentText)!important;--blue-dark:var(--cf-accentText)!important;--blue-deep:var(--cf-accentText)!important;--navy:var(--cf-accentText)!important;--deep:var(--cf-accentText)!important;--emerald-800:var(--cf-accentText)!important;--emerald-900:var(--cf-accentText)!important;--emerald-950:var(--cf-accentText)!important;--cobalt-soft:var(--cf-accentSoft)!important;--gold-soft:var(--cf-accentSoft)!important;--amber-soft:var(--cf-accentSoft)!important;--mint:var(--cf-accentSoft)!important;--emerald-100:var(--cf-accentSoft)!important;--amber:var(--cf-accentBorder)!important;--shadow:0 8px 24px rgb(0 0 0 / 22%)!important}
html:not([data-contrast="high"]){background-color:var(--cf-bg)!important;color:var(--cf-text)!important}
html:not([data-contrast="high"]) body{background-color:var(--cf-bg)!important;background-image:none!important;color:var(--cf-text)!important}
html:not([data-contrast="high"]) body::before,
html:not([data-contrast="high"]) body::after{background:none!important;box-shadow:none!important}
html:not([data-contrast="high"]) .site-header,
html:not([data-contrast="high"]) .site-footer,
html:not([data-contrast="high"]) .panel,
html:not([data-contrast="high"]) .live-strip,
html:not([data-contrast="high"]) .result-panel,
html:not([data-contrast="high"]) .history-panel,
html:not([data-contrast="high"]) .control-panel,
html:not([data-contrast="high"]) .extra-panel,
html:not([data-contrast="high"]) .inline-scratch,
html:not([data-contrast="high"]) .mini-scratch,
html:not([data-contrast="high"]) .practice-panel,
html:not([data-contrast="high"]) .shape-summary,
html:not([data-contrast="high"]) .tic-game,
html:not([data-contrast="high"]) .question-card,
html:not([data-contrast="high"]) .scratch-board,
html:not([data-contrast="high"]) .scratch-window,
html:not([data-contrast="high"]) .info-card,
html:not([data-contrast="high"]) .info-panel,
html:not([data-contrast="high"]) .subpage-card,
html:not([data-contrast="high"]) .subpage-panel,
html:not([data-contrast="high"]) .content-card,
html:not([data-contrast="high"]) .article-card,
html:not([data-contrast="high"]) .page-card,
html:not([data-contrast="high"]) .page-panel,
html:not([data-contrast="high"]) .guide-card,
html:not([data-contrast="high"]) .help-card,
html:not([data-contrast="high"]) .rule-card,
html:not([data-contrast="high"]) .privacy-card{background-color:var(--cf-surface)!important;background-image:none!important;border-color:var(--cf-line)!important;color:var(--cf-text)!important;box-shadow:var(--shadow)!important}
html:not([data-contrast="high"]) .site-header::before,
html:not([data-contrast="high"]) .site-header::after,
html:not([data-contrast="high"]) .live-strip::before,
html:not([data-contrast="high"]) .live-strip::after,
html:not([data-contrast="high"]) .result-panel::before,
html:not([data-contrast="high"]) .result-panel::after{background:none!important;box-shadow:none!important}
html:not([data-contrast="high"]) .main-nav,
html:not([data-contrast="high"]) .nav-card,
html:not([data-contrast="high"]) .nav-group,
html:not([data-contrast="high"]) .nav-cluster,
html:not([data-contrast="high"]) .nav-cluster__links,
html:not([data-contrast="high"]) .quick-link,
html:not([data-contrast="high"]) .mobile-tabs,
html:not([data-contrast="high"]) .status-strip,
html:not([data-contrast="high"]) .live-details,
html:not([data-contrast="high"]) .issue-block,
html:not([data-contrast="high"]) .classifications,
html:not([data-contrast="high"]) .countdown-block,
html:not([data-contrast="high"]) .countdown-box,
html:not([data-contrast="high"]) .live-countdown,
html:not([data-contrast="high"]) .result-meta,
html:not([data-contrast="high"]) .question-source,
html:not([data-contrast="high"]) .explanation,
html:not([data-contrast="high"]) .scratch-actions,
html:not([data-contrast="high"]) .folder-list,
html:not([data-contrast="high"]) .history-summary,
html:not([data-contrast="high"]) .history-integrity,
html:not([data-contrast="high"]) .history-toolbar,
html:not([data-contrast="high"]) .history-archive__header,
html:not([data-contrast="high"]) .progress-mini{background-color:var(--cf-surface2)!important;background-image:none!important;border-color:var(--cf-line)!important;color:var(--cf-text)!important;box-shadow:none!important}
html:not([data-contrast="high"]) .brand,
html:not([data-contrast="high"]) .brand strong,
html:not([data-contrast="high"]) .brand small,
html:not([data-contrast="high"]) .brand span,
html:not([data-contrast="high"]) .live-heading,
html:not([data-contrast="high"]) .live-title,
html:not([data-contrast="high"]) .live-purpose,
html:not([data-contrast="high"]) .live-issue-line,
html:not([data-contrast="high"]) .live-meta,
html:not([data-contrast="high"]) .live-strip h1,
html:not([data-contrast="high"]) .live-strip h2,
html:not([data-contrast="high"]) .result-panel h1,
html:not([data-contrast="high"]) .result-panel h2,
html:not([data-contrast="high"]) main h1,
html:not([data-contrast="high"]) main h2,
html:not([data-contrast="high"]) main h3{background-image:none!important;color:var(--cf-text)!important;-webkit-text-fill-color:var(--cf-text)!important;text-shadow:none!important}
html:not([data-contrast="high"]) .eyebrow,
html:not([data-contrast="high"]) .kicker,
html:not([data-contrast="high"]) .sample-count,
html:not([data-contrast="high"]) .trust-note,
html:not([data-contrast="high"]) .control-help,
html:not([data-contrast="high"]) .history-summary,
html:not([data-contrast="high"]) .live-meta small,
html:not([data-contrast="high"]) .live-heading small,
html:not([data-contrast="high"]) .panel-title-row p,
html:not([data-contrast="high"]) .section-heading p{color:var(--cf-muted)!important}
html:not([data-contrast="high"]) a,
html:not([data-contrast="high"]) .nav-card strong,
html:not([data-contrast="high"]) .nav-cluster a,
html:not([data-contrast="high"]) .nav-group a,
html:not([data-contrast="high"]) .main-nav a,
html:not([data-contrast="high"]) .footer-links a{color:var(--cf-accentText)!important;text-shadow:none!important}
html:not([data-contrast="high"]) button,
html:not([data-contrast="high"]) .button,
html:not([data-contrast="high"]) .file-button,
html:not([data-contrast="high"]) .ux-jumps a,
html:not([data-contrast="high"]) .segmented button,
html:not([data-contrast="high"]) .nav-card{background-color:var(--cf-surface2)!important;background-image:none!important;color:var(--cf-text)!important;border-color:var(--cf-border)!important;box-shadow:none!important;text-shadow:none!important}
html:not([data-contrast="high"]) button:hover,
html:not([data-contrast="high"]) .button:hover,
html:not([data-contrast="high"]) .ux-jumps a:hover,
html:not([data-contrast="high"]) .nav-card:hover{background-color:var(--cf-accentSoft)!important;color:var(--cf-accentText)!important;border-color:var(--cf-accentBorder)!important}
html:not([data-contrast="high"]) .primary-button,
html:not([data-contrast="high"]) .button.primary,
html:not([data-contrast="high"]) .primary-control,
html:not([data-contrast="high"]) button[aria-pressed="true"],
html:not([data-contrast="high"]) button[aria-selected="true"],
html:not([data-contrast="high"]) button.is-active,
html:not([data-contrast="high"]) button.active,
html:not([data-contrast="high"]) .page-buttons button.active,
html:not([data-contrast="high"]) .history-page-numbers button.is-current{background-color:var(--cf-accent)!important;color:var(--cf-onAccent)!important;border-color:var(--cf-accent)!important}
html:not([data-contrast="high"]) button:disabled,
html:not([data-contrast="high"]) .button[aria-disabled="true"]{background-color:var(--cf-surface2)!important;color:var(--cf-muted)!important;border-color:var(--cf-line)!important}
html:not([data-contrast="high"]) input,
html:not([data-contrast="high"]) select,
html:not([data-contrast="high"]) textarea{background-color:var(--cf-surface)!important;color:var(--cf-text)!important;border-color:var(--cf-border)!important;accent-color:var(--cf-accent)}
html:not([data-contrast="high"]) :focus-visible{outline-color:var(--cf-accentText)!important}
html:not([data-contrast="high"]) table,
html:not([data-contrast="high"]) thead,
html:not([data-contrast="high"]) tbody,
html:not([data-contrast="high"]) tr,
html:not([data-contrast="high"]) td,
html:not([data-contrast="high"]) th,
html:not([data-contrast="high"]) .history-list li,
html:not([data-contrast="high"]) .record-list li,
html:not([data-contrast="high"]) .query-list li{border-color:var(--cf-line)!important}
html:not([data-contrast="high"]) thead,
html:not([data-contrast="high"]) th,
html:not([data-contrast="high"]) .history-columns{background-color:var(--cf-surface2)!important;color:var(--cf-muted)!important}
html:not([data-contrast="high"]) tbody tr,
html:not([data-contrast="high"]) .history-list li,
html:not([data-contrast="high"]) .record-list li,
html:not([data-contrast="high"]) .query-list li{background-color:var(--cf-surface)!important;color:var(--cf-text)!important}
html:not([data-contrast="high"]) tbody tr:hover,
html:not([data-contrast="high"]) .history-list li:hover,
html:not([data-contrast="high"]) .record-list li:hover{background-color:var(--cf-rowHover)!important}
html:not([data-contrast="high"]) .equation span,
html:not([data-contrast="high"]) .equation strong,
html:not([data-contrast="high"]) .equation em,
html:not([data-contrast="high"]) .live-equation span,
html:not([data-contrast="high"]) .live-equation strong,
html:not([data-contrast="high"]) .live-equation b,
html:not([data-contrast="high"]) .number-ball,
html:not([data-contrast="high"]) .sum-ball,
html:not([data-contrast="high"]) .question-digits strong,
html:not([data-contrast="high"]) .fixed-sample strong,
html:not([data-contrast="high"]) .history-result,
html:not([data-contrast="high"]) .history-number,
html:not([data-contrast="high"]) .history-equation{background-color:var(--cf-accentSoft)!important;background-image:none!important;color:var(--cf-accentText)!important;border-color:var(--cf-accentBorder)!important;box-shadow:none!important;text-shadow:none!important}
html:not([data-contrast="high"]) .equation i,
html:not([data-contrast="high"]) .live-equation i,
html:not([data-contrast="high"]) .draw-equation i{color:var(--cf-muted)!important;text-shadow:none!important}
html:not([data-contrast="high"]) .status-pill,
html:not([data-contrast="high"]) .sample-badge,
html:not([data-contrast="high"]) .privacy-mark,
html:not([data-contrast="high"]) .live-status,
html:not([data-contrast="high"]) .feed-status,
html:not([data-contrast="high"]) .nav-icon{background-color:var(--cf-accentSoft)!important;color:var(--cf-accentText)!important;border-color:var(--cf-accentBorder)!important}
html:not([data-contrast="high"]) footer,
html:not([data-contrast="high"]) .reading-page,
html:not([data-contrast="high"]) .record-card,
html:not([data-contrast="high"]) .interval-card,
html:not([data-contrast="high"]) .progress-card,
html:not([data-contrast="high"]) .boundary-table,
html:not([data-contrast="high"]) .history-panel>.section-heading,
html:not([data-contrast="high"]) .result-meta p,
html:not([data-contrast="high"]) .stats-grid>div,
html:not([data-contrast="high"]) .missing-grid span,
html:not([data-contrast="high"]) .inline-scratch-result,
html:not([data-contrast="high"]) .scratch-equation,
html:not([data-contrast="high"]) .mini-equation b{background-color:var(--cf-surface2)!important;background-image:none!important;color:var(--cf-text)!important;border-color:var(--cf-line)!important;box-shadow:none!important;text-shadow:none!important}
html:not([data-contrast="high"]) .live-issue-line b,
html:not([data-contrast="high"]) .live-details p,
html:not([data-contrast="high"]) .countdown-box span,
html:not([data-contrast="high"]) .history-page-status,
html:not([data-contrast="high"]) .interval-select,
html:not([data-contrast="high"]) .interval-count,
html:not([data-contrast="high"]) .history-meta b,
html:not([data-contrast="high"]) .history-filter-form label,
html:not([data-contrast="high"]) .record-card p,
html:not([data-contrast="high"]) .records-pane .empty-state,
html:not([data-contrast="high"]) .records-pane .muted,
html:not([data-contrast="high"]) .history-panel>.section-heading .continuity,
html:not([data-contrast="high"]) .result-meta p span,
html:not([data-contrast="high"]) .scratch-equation b,
html:not([data-contrast="high"]) .scratch-equation strong,
html:not([data-contrast="high"]) .inline-scratch-result span,
html:not([data-contrast="high"]) .inline-scratch-result strong{color:var(--cf-text)!important;text-shadow:none!important}
html:not([data-contrast="high"]) [data-result-label="大"]{--result-label-bg:#fff7c2!important;--result-label-fg:#4f3422!important;--result-label-border:#e9c162!important}
html:not([data-contrast="high"]) [data-result-label="小"]{--result-label-bg:#def7f9!important;--result-label-fg:#0d3c48!important;--result-label-border:#7dcedc!important}
html:not([data-contrast="high"]) [data-result-label="单"]{--result-label-bg:#ffe9f0!important;--result-label-fg:#cb1d63!important;--result-label-border:#eaacc3!important}
html:not([data-contrast="high"]) [data-result-label="双"]{--result-label-bg:#f4f0fe!important;--result-label-fg:#6550b9!important;--result-label-border:#c2b5f5!important}
html:not([data-contrast="high"]) [data-result-label="大单"]{--result-label-bg:#feebec!important;--result-label-fg:#ce2c31!important;--result-label-border:#f4a9aa!important}
html:not([data-contrast="high"]) [data-result-label="大双"]{--result-label-bg:#ffefd6!important;--result-label-fg:#582d1d!important;--result-label-border:#f5ae73!important}
html:not([data-contrast="high"]) [data-result-label="小单"]{--result-label-bg:#e0f8f3!important;--result-label-fg:#0d3d38!important;--result-label-border:#83cdc1!important}
html:not([data-contrast="high"]) [data-result-label="小双"]{--result-label-bg:#e6f4fe!important;--result-label-fg:#113264!important;--result-label-border:#8ec8f6!important}
html:not([data-contrast="high"]) [data-result-label="红波"]{--result-label-bg:#feebec!important;--result-label-fg:#ce2c31!important;--result-label-border:#f4a9aa!important}
html:not([data-contrast="high"]) [data-result-label="蓝波"]{--result-label-bg:#e6f4fe!important;--result-label-fg:#113264!important;--result-label-border:#8ec8f6!important}
html:not([data-contrast="high"]) [data-result-label="绿波"]{--result-label-bg:#e6f6eb!important;--result-label-fg:#193b2d!important;--result-label-border:#8eceaa!important}
html:not([data-contrast="high"]) [data-result-label="豹子"]{--result-label-bg:#feeaed!important;--result-label-fg:#ca244d!important;--result-label-border:#efacb8!important}
html:not([data-contrast="high"]) [data-result-label="对子"]{--result-label-bg:#f4f0fe!important;--result-label-fg:#6550b9!important;--result-label-border:#c2b5f5!important}
html:not([data-contrast="high"]) [data-result-label="顺子"]{--result-label-bg:#e6f6eb!important;--result-label-fg:#193b2d!important;--result-label-border:#8eceaa!important}
html:not([data-contrast="high"]) [data-result-label="半顺"]{--result-label-bg:#fff7c2!important;--result-label-fg:#4f3422!important;--result-label-border:#e9c162!important}
html:not([data-contrast="high"]) [data-result-label="杂六"]{--result-label-bg:#f0f0f3!important;--result-label-fg:#60646c!important;--result-label-border:#cdced6!important}
html:not([data-contrast="high"]) [data-result-label="龙"]{--result-label-bg:#ffefd6!important;--result-label-fg:#582d1d!important;--result-label-border:#f5ae73!important}
html:not([data-contrast="high"]) [data-result-label="虎"]{--result-label-bg:#e6f4fe!important;--result-label-fg:#113264!important;--result-label-border:#8ec8f6!important}
html:not([data-contrast="high"]) [data-result-label="和"]{--result-label-bg:#fbebfb!important;--result-label-fg:#953ea3!important;--result-label-border:#deade3!important}
html:not([data-contrast="high"]) [data-result-label="极大"]{--result-label-bg:#feebec!important;--result-label-fg:#ce2c31!important;--result-label-border:#f4a9aa!important}
html:not([data-contrast="high"]) [data-result-label="极小"]{--result-label-bg:#e6f4fe!important;--result-label-fg:#113264!important;--result-label-border:#8ec8f6!important}
html:not([data-contrast="high"]) [data-result-label="大边"]{--result-label-bg:#ffefd6!important;--result-label-fg:#582d1d!important;--result-label-border:#f5ae73!important}
html:not([data-contrast="high"]) [data-result-label="小边"]{--result-label-bg:#def7f9!important;--result-label-fg:#0d3c48!important;--result-label-border:#7dcedc!important}
html:not([data-contrast="high"]) [data-result-label="中"]{--result-label-bg:#f0f0f3!important;--result-label-fg:#60646c!important;--result-label-border:#cdced6!important}
html:not([data-contrast="high"])[data-theme="dark"] [data-result-label="大"]{--result-label-bg:#302008!important;--result-label-fg:#ffca16!important;--result-label-border:#714f19!important}
html:not([data-contrast="high"])[data-theme="dark"] [data-result-label="小"]{--result-label-bg:#082c36!important;--result-label-fg:#4ccce6!important;--result-label-border:#12677e!important}
html:not([data-contrast="high"])[data-theme="dark"] [data-result-label="单"]{--result-label-bg:#381525!important;--result-label-fg:#ff92ad!important;--result-label-border:#873356!important}
html:not([data-contrast="high"])[data-theme="dark"] [data-result-label="双"]{--result-label-bg:#291f43!important;--result-label-fg:#baa7ff!important;--result-label-border:#56468b!important}
html:not([data-contrast="high"])[data-theme="dark"] [data-result-label="大单"]{--result-label-bg:#3b1219!important;--result-label-fg:#ff9592!important;--result-label-border:#8c333a!important}
html:not([data-contrast="high"])[data-theme="dark"] [data-result-label="大双"]{--result-label-bg:#331e0b!important;--result-label-fg:#ffa057!important;--result-label-border:#7e451d!important}
html:not([data-contrast="high"])[data-theme="dark"] [data-result-label="小单"]{--result-label-bg:#0d2d2a!important;--result-label-fg:#0bd8b6!important;--result-label-border:#1c6961!important}
html:not([data-contrast="high"])[data-theme="dark"] [data-result-label="小双"]{--result-label-bg:#0d2847!important;--result-label-fg:#70b8ff!important;--result-label-border:#205d9e!important}
html:not([data-contrast="high"])[data-theme="dark"] [data-result-label="红波"]{--result-label-bg:#3b1219!important;--result-label-fg:#ff9592!important;--result-label-border:#8c333a!important}
html:not([data-contrast="high"])[data-theme="dark"] [data-result-label="蓝波"]{--result-label-bg:#0d2847!important;--result-label-fg:#70b8ff!important;--result-label-border:#205d9e!important}
html:not([data-contrast="high"])[data-theme="dark"] [data-result-label="绿波"]{--result-label-bg:#132d21!important;--result-label-fg:#3dd68c!important;--result-label-border:#28684a!important}
html:not([data-contrast="high"])[data-theme="dark"] [data-result-label="豹子"]{--result-label-bg:#3a141e!important;--result-label-fg:#ff949d!important;--result-label-border:#883447!important}
html:not([data-contrast="high"])[data-theme="dark"] [data-result-label="对子"]{--result-label-bg:#291f43!important;--result-label-fg:#baa7ff!important;--result-label-border:#56468b!important}
html:not([data-contrast="high"])[data-theme="dark"] [data-result-label="顺子"]{--result-label-bg:#132d21!important;--result-label-fg:#3dd68c!important;--result-label-border:#28684a!important}
html:not([data-contrast="high"])[data-theme="dark"] [data-result-label="半顺"]{--result-label-bg:#302008!important;--result-label-fg:#ffca16!important;--result-label-border:#714f19!important}
html:not([data-contrast="high"])[data-theme="dark"] [data-result-label="杂六"]{--result-label-bg:#212225!important;--result-label-fg:#b0b4ba!important;--result-label-border:#43484e!important}
html:not([data-contrast="high"])[data-theme="dark"] [data-result-label="龙"]{--result-label-bg:#331e0b!important;--result-label-fg:#ffa057!important;--result-label-border:#7e451d!important}
html:not([data-contrast="high"])[data-theme="dark"] [data-result-label="虎"]{--result-label-bg:#0d2847!important;--result-label-fg:#70b8ff!important;--result-label-border:#205d9e!important}
html:not([data-contrast="high"])[data-theme="dark"] [data-result-label="和"]{--result-label-bg:#351a35!important;--result-label-fg:#e796f3!important;--result-label-border:#734079!important}
html:not([data-contrast="high"])[data-theme="dark"] [data-result-label="极大"]{--result-label-bg:#3b1219!important;--result-label-fg:#ff9592!important;--result-label-border:#8c333a!important}
html:not([data-contrast="high"])[data-theme="dark"] [data-result-label="极小"]{--result-label-bg:#0d2847!important;--result-label-fg:#70b8ff!important;--result-label-border:#205d9e!important}
html:not([data-contrast="high"])[data-theme="dark"] [data-result-label="大边"]{--result-label-bg:#331e0b!important;--result-label-fg:#ffa057!important;--result-label-border:#7e451d!important}
html:not([data-contrast="high"])[data-theme="dark"] [data-result-label="小边"]{--result-label-bg:#082c36!important;--result-label-fg:#4ccce6!important;--result-label-border:#12677e!important}
html:not([data-contrast="high"])[data-theme="dark"] [data-result-label="中"]{--result-label-bg:#212225!important;--result-label-fg:#b0b4ba!important;--result-label-border:#43484e!important}
html:not([data-contrast="high"]) [data-result-label]{background-color:var(--result-label-bg)!important;background-image:none!important;color:var(--result-label-fg)!important;border-color:var(--result-label-border)!important;-webkit-text-fill-color:var(--result-label-fg)!important;text-shadow:none!important}

/* v2: exact visible-element repairs from root browser failure evidence, no geometry changes. */
html:not([data-contrast="high"]) .site-header nav a,
html:not([data-contrast="high"]) .main-nav a,
html:not([data-contrast="high"]) .nav-deck a,
html:not([data-contrast="high"]) .nav-card{background-color:var(--cf-surface2)!important;background-image:none!important;color:var(--cf-text)!important;border-color:var(--cf-line)!important;box-shadow:none!important;text-shadow:none!important}
html:not([data-contrast="high"]) .site-header nav a strong,
html:not([data-contrast="high"]) .site-header nav a span,
html:not([data-contrast="high"]) .main-nav a strong,
html:not([data-contrast="high"]) .main-nav a span,
html:not([data-contrast="high"]) .nav-deck a strong,
html:not([data-contrast="high"]) .nav-deck a span,
html:not([data-contrast="high"]) .nav-card strong,
html:not([data-contrast="high"]) .nav-card span{color:var(--cf-text)!important;-webkit-text-fill-color:var(--cf-text)!important;text-shadow:none!important}
html:not([data-contrast="high"]) .site-header nav a[aria-current="page"],
html:not([data-contrast="high"]) .main-nav a[aria-current="page"],
html:not([data-contrast="high"]) .nav-deck a[aria-current="page"],
html:not([data-contrast="high"]) .nav-card[aria-current="page"]{background-color:var(--cf-accent)!important;background-image:none!important;border-color:var(--cf-accent)!important;color:var(--cf-onAccent)!important;-webkit-text-fill-color:var(--cf-onAccent)!important;box-shadow:none!important;text-shadow:none!important}
html:not([data-contrast="high"]) .site-header nav a[aria-current="page"] *,
html:not([data-contrast="high"]) .main-nav a[aria-current="page"] *,
html:not([data-contrast="high"]) .nav-deck a[aria-current="page"] *,
html:not([data-contrast="high"]) .nav-card[aria-current="page"] *{color:var(--cf-onAccent)!important;-webkit-text-fill-color:var(--cf-onAccent)!important;background-color:transparent!important;text-shadow:none!important}
html:not([data-contrast="high"]) .live-strip .live-meta time,
html:not([data-contrast="high"]) .live-strip .live-countdown span{color:var(--cf-muted)!important;-webkit-text-fill-color:var(--cf-muted)!important;text-shadow:none!important}
html:not([data-contrast="high"]) .live-strip .live-countdown strong,
html:not([data-contrast="high"]) .history-panel .history-summary strong{color:var(--cf-text)!important;-webkit-text-fill-color:var(--cf-text)!important;text-shadow:none!important}
html:not([data-contrast="high"]) .live-strip .equation b,
html:not([data-contrast="high"]) .live-strip .equation em,
html:not([data-contrast="high"]) .question-digits span,
html:not([data-contrast="high"]) .question-digits strong,
html:not([data-contrast="high"]) .fixed-sample span,
html:not([data-contrast="high"]) .fixed-sample strong{background-color:var(--cf-accentSoft)!important;background-image:none!important;color:var(--cf-accentText)!important;-webkit-text-fill-color:var(--cf-accentText)!important;border-color:var(--cf-accentBorder)!important;box-shadow:none!important;text-shadow:none!important}
html:not([data-contrast="high"]) .live-strip::after{border-color:transparent!important;box-shadow:none!important}
html:not([data-contrast="high"]) .live-strip .live-status{background-color:transparent!important;background-image:none!important;border-color:transparent!important;box-shadow:none!important;color:var(--cf-text)!important}
html:not([data-contrast="high"]) .site-header .theme-toggle span{background-color:var(--cf-text)!important}
