        :root {
            --gold-pro: #f59e0b;
            --bg-base: #020617;
            --text-main: #f8fafc;
            --text-sub: #94a3b8;
            --accent-blue: #475569;
            
            --bg-image: radial-gradient(circle at 50% 0%, #0f172a 0%, transparent 70%), linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
            --bg-size: 100% 100%, 40px 40px, 40px 40px;
            
            --panel-bg: rgba(15, 23, 42, 0.6);
            --panel-blur: blur(24px);
            --border-color: rgba(71, 85, 105, 0.5);
            --border-light: rgba(255, 255, 255, 0.1);
            --shadow-panel: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.05);
            
            --modal-overlay: rgba(2, 6, 23, 0.85);
            --modal-blur: blur(8px);
            --modal-box: rgba(15, 23, 42, 0.9);
            --modal-box-blur: blur(16px);
            --modal-shadow: 0 25px 50px -12px rgba(0,0,0,0.8);
            --modal-title: #f8fafc;
            --modal-desc: #cbd5e1;
            --modal-cancel-text: #94a3b8;
            --modal-cancel-hover-text: #f8fafc;
            --modal-cancel-bg: transparent;
            --modal-cancel-hover-bg: rgba(255,255,255,0.05);
            --modal-cancel-border: 1px solid rgba(255,255,255,0.1);
            --modal-icon-bg: rgba(59, 130, 246, 0.1);
            --modal-icon-border: 1px solid rgba(59, 130, 246, 0.2);
            --pwd-input-bg: rgba(0,0,0,0.3);
            --pwd-input-border: 1px solid #475569;
            --pwd-input-text: #fff;
            
            --header-bg: radial-gradient(circle at 50% -20%, #1e293b 0%, #020617 100%);
            --header-shadow: 0 20px 40px rgba(0,0,0,0.8);
            --header-panel-bg: linear-gradient(145deg, rgba(30,41,59,0.9), rgba(15,23,42,0.95));
            --header-panel-shadow: 0 10px 20px rgba(0,0,0,0.4), inset 0 1px 1px rgba(255,255,255,0.05);
            
            --lang-box-bg: rgba(0,0,0,0.5);
            --lang-btn-en-bg: linear-gradient(135deg, #fde68a, #f59e0b);
            --lang-btn-en-text: #000;
            --lang-btn-cn-bg: transparent;
            --lang-btn-cn-text: #909eb3;

            --toolbar-bottom-bg: rgba(15,23,42,0.5);
            --btn-glass-bg: rgba(255,255,255,0.05);
            --btn-glass-border: 1px solid var(--border-color);
            --btn-glass-text: #94a3b8;
            --btn-glass-hover-bg: rgba(255,255,255,0.1);
            --date-input-bg: rgba(15,23,42,0.8);
            --date-input-text: #f8fafc;
            --date-input-border: 1px solid var(--border-color);
            --search-input-bg: rgba(15, 23, 42, 0.8);
            --search-drop-bg: rgba(15, 23, 42, 0.95);
            --search-item-hover: rgba(255,255,255,0.05);
            --search-item-text-hover: #60a5fa;
            
            --ann-marquee-bg: var(--panel-bg);
            
            --upd-bg: rgba(255,255,255,0.1);
            --upd-text: #94a3b8;
            --upd-time-text: #cbd5e1;
            --upd-border: 1px solid rgba(255,255,255,0.05);
            --upd-shadow: none;
            --view-box-bg: rgba(15, 23, 42, 0.8);
            --view-btn-text: #94a3b8;
            
            --card-shadow-main: 0 20px 40px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.05);
            --card-header-bg: rgba(30, 41, 59, 0.5);
            --card-score-shadow: 0 2px 4px rgba(0,0,0,0.8);
            --card-status-color: #34d399;
            
            --odds-bg: rgba(2, 6, 23, 0.4);
            --odds-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
            --odds-val: #e2e8f0;
            
            --mo-toolbar-border: 1px solid var(--border-light);
            --mo-toolbar-bg: var(--panel-bg);
            --mo-toolbar-shadow: none;
        }

        body.theme-light {
            --bg-base: #cfd5db;
            --text-main: #000000;
            --text-sub: #1f2937;
            --accent-blue: #475569;
            
            --bg-image: url('bj_vip.png');
            --bg-size: cover;
            
            --panel-bg: #ffffff;
            --panel-blur: none;
            --border-color: #4b5563;
            --border-light: #cbd5e1;
            --shadow-panel: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
            
            --modal-overlay: rgba(15, 23, 42, 0.5);
            --modal-blur: blur(4px);
            --modal-box: #ffffff;
            --modal-box-blur: none;
            --modal-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
            --modal-title: #0f172a;
            --modal-desc: #475569;
            --modal-cancel-text: #94a3b8;
            --modal-cancel-hover-text: #64748b;
            --modal-cancel-bg: #f1f5f9;
            --modal-cancel-hover-bg: #e2e8f0;
            --modal-cancel-border: none;
            --modal-icon-bg: #eff6ff;
            --modal-icon-border: none;
            --pwd-input-bg: #fff;
            --pwd-input-border: 2px solid #e2e8f0;
            --pwd-input-text: #1e293b;
            
            --header-bg: radial-gradient(circle at 50% -20%, #2d3a4f 0%, #0f172a 100%);
            --header-shadow: 0 20px 40px rgba(0,0,0,0.5);
            
            --lang-box-bg: rgba(0,0,0,0.5);
            --lang-btn-en-bg: linear-gradient(135deg, #fde68a, #f59e0b);
            --lang-btn-en-text: #000;
            --lang-btn-cn-bg: transparent;
            --lang-btn-cn-text: #909eb3;

            --toolbar-bottom-bg: #f8fafc;
            --btn-glass-bg: #f1f5f9;
            --btn-glass-border: 1px solid #cbd5e1;

            --btn-glass-text: #475569;
            --btn-glass-hover-bg: #e2e8f0;
            --date-input-bg: #ffffff;
            --date-input-text: #1e293b;
            --date-input-border: 2px solid #cbd5e1;
            --search-input-bg: #ffffff;
            --search-drop-bg: #ffffff;
            --search-item-hover: #f3f4f6;
            --search-item-text-hover: #2563eb;
            
            --ann-marquee-bg: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
            
            --upd-bg: #d1d5db;
            --upd-text: #374151;
            --upd-time-text: #374151;
            --upd-border: none;
            --upd-shadow: inset 0 1px 1px rgba(0,0,0,0.1);
            --view-box-bg: #e2e8f0;
            --view-btn-text: #64748b;
            
            --card-shadow-main: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
            --card-header-bg: #f1f5f9;
            --card-score-shadow: none;
            --card-status-color: #065f46;
            
            --odds-bg: #f8fafc;
            --odds-shadow: none;
            --odds-val: #334155;
            
            --mo-toolbar-border: 2px solid var(--border-color);
            --mo-toolbar-bg: #ffffff;
            --mo-toolbar-shadow: none;
        }

        html { box-sizing: border-box; }
        body, div, span, h1, h2, h3, p, a, button, input, form { box-sizing: inherit; }
        
        html, body { overflow-x: hidden; width: 100%; max-width: 100vw; overflow-anchor: none; }

        body { 
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
            background-color: var(--bg-base);
            background-image: var(--bg-image);
            background-size: var(--bg-size);
            background-attachment: fixed;
            background-position: center top, center center, center center;
            color: var(--text-main); 
            margin: 0; padding: 20px 10px; line-height: 1.5; 
        }
        
        .master-container { width: 100%; max-width: 900px; margin: 0 auto; box-sizing: border-box; overflow-x: clip; }
        .page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 3px solid var(--border-color); padding-bottom: 10px; }
        
        .filter-btn { 
            display: inline-flex; align-items: center; justify-content: center; height: 36px; min-width: 88px;
            padding: 0 10px; border-radius: 50px; font-size: 13px; font-weight: 800; cursor: pointer; 
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); opacity: 1; color: #ffffff; text-shadow: 0 1px 2px rgba(0,0,0,0.4); 
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 4px 6px rgba(0,0,0,0.4), inset 0 1px 2px rgba(255, 255, 255, 0.2), inset 0 -2px 3px rgba(0, 0, 0, 0.4);
            position: relative; overflow: visible;
        }
        body.theme-light .filter-btn { border: 1px solid transparent; box-shadow: none; text-shadow: none; }
        .filter-btn::after {
            content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 50%;
            background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.02) 100%);
            border-radius: 50px 50px 0 0; pointer-events: none;
        }
        body.theme-light .filter-btn::after { display: none; }
        
        .filter-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0,0,0,0.5), inset 0 1px 2px rgba(255, 255, 255, 0.3), inset 0 -2px 3px rgba(0, 0, 0, 0.3); filter: brightness(1.1); }
        body.theme-light .filter-btn:hover { box-shadow: 0 4px 8px rgba(0,0,0,0.15); filter: brightness(0.95); }
        .filter-btn:active { transform: translateY(1px); box-shadow: 0 2px 3px rgba(0,0,0,0.4), inset 0 2px 4px rgba(0, 0, 0, 0.5); }
        body.theme-light .filter-btn:active { box-shadow: inset 0 2px 4px rgba(0,0,0,0.2); }
        .filter-btn.active { opacity: 1; font-weight: 900; transform: scale(1.03); }
        body.theme-light .filter-btn.active { transform: scale(1); box-shadow: 0 4px 8px rgba(0,0,0,0.2); }
        
        .filter-btn.active::before {
            content: ''; position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%);
            width: 30px; height: 3px; border-radius: 4px; z-index: 10; transition: all 0.3s ease;
            animation: lightPulse 2s infinite ease-in-out;
        }
        
        @keyframes lightPulse {
            0%, 100% { opacity: 0.5; transform: translateX(-50%) scaleX(0.8); filter: blur(0.5px); }
            50% { opacity: 1; transform: translateX(-50%) scaleX(1.1); filter: blur(0px); }
        }
        
        .btn-finished { background: linear-gradient(180deg, #475569 0%, #334155 100%); }
        body.theme-light .btn-finished { background: linear-gradient(180deg, #64748b 0%, #475569 100%); }
        .btn-finished.active { background: linear-gradient(180deg, #334155 0%, #1e293b 100%); }
        body.theme-light .btn-finished.active { background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%); }
        .btn-finished.active::before { background: #94a3b8; box-shadow: 0 0 10px #f8fafc, 0 0 5px #fff; }

        .btn-inprogress { background: linear-gradient(180deg, #10b981 0%, #059669 100%); }
        .btn-inprogress.active { background: linear-gradient(180deg, #059669 0%, #047857 100%); }
        body.theme-light .btn-inprogress.active { background: linear-gradient(180deg, #065f46 0%, #064e3b 100%); }
        .btn-inprogress.active::before { background: #34d399; box-shadow: 0 0 12px #10b981, 0 0 5px #34d399; }

        .btn-upcoming { background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%); }
        .btn-upcoming.active { background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%); }
        body.theme-light .btn-upcoming.active { background: linear-gradient(180deg, #1e3a8a 0%, #172554 100%); }
        .btn-upcoming.active::before { background: #60a5fa; box-shadow: 0 0 12px #3b82f6, 0 0 5px #60a5fa; }

        .cyber-header {
            --header-user-col: 198px;
            width: 100%;
            display: grid;
            grid-template-columns: auto minmax(0, 1fr) var(--header-user-col);
            gap: 10px 14px;
            align-items: center;
            padding: 10px 12px 14px;
            background: var(--header-bg);
            box-sizing: border-box; border: 1px solid var(--border-light); border-bottom: none;
            position: relative; z-index: 50; box-shadow: var(--header-shadow); border-radius: 12px 12px 0 0; margin-bottom: 0;
            min-height: 128px;
            overflow: visible;
        }
        .cyber-header::before {
            content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
            background: linear-gradient(90deg, transparent, #f59e0b, #8b5cf6, #f59e0b, transparent);
            border-radius: 12px 12px 0 0;
        }

        .logo-wrapper {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            flex-shrink: 0;
            min-width: 0;
        }
        .brand-logo-link { display: flex; align-items: center; justify-content: flex-start; text-decoration: none; line-height: 0; }
        .brand-logo-img {
            height: 42px;
            width: auto;
            max-width: 148px;
            max-height: none;
            object-fit: contain;
            object-position: left center;
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
            display: block;
            transition: all 0.3s ease;
        }

        .banner-center-area,
        .banner-mobile-area {
            position: relative;
        }
        .banner-carousel-viewport {
            position: relative;
            width: 100%;
            height: 100%;
            overflow: hidden;
        }
        .banner-carousel-slide {
            position: absolute;
            inset: 0;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.55s ease, visibility 0.55s ease;
            z-index: 0;
        }
        .banner-carousel-slide.is-active {
            opacity: 1;
            visibility: visible;
            z-index: 1;
        }
        .banner-carousel-link,
        .banner-carousel-link--static {
            display: block;
            width: 100%;
            height: 100%;
            line-height: 0;
            text-decoration: none;
        }
        .banner-carousel-link:hover {
            filter: brightness(1.05);
        }
        .banner-carousel-link--static {
            cursor: default;
        }
        .banner-carousel-slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
            display: block;
        }
        .banner-carousel-dots {
            position: absolute;
            left: 50%;
            bottom: 6px;
            transform: translateX(-50%);
            z-index: 3;
            display: flex;
            gap: 6px;
            align-items: center;
        }
        .banner-carousel-dot {
            width: 7px;
            height: 7px;
            border: none;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.45);
            cursor: pointer;
            padding: 0;
            transition: transform 0.2s ease, background 0.2s ease;
        }
        .banner-carousel-dot.is-active {
            background: #38bdf8;
            transform: scale(1.25);
        }
        .banner-carousel--mobile .banner-carousel-dots { bottom: 4px; }
        .banner-carousel--mobile .banner-carousel-dot {
            width: 6px;
            height: 6px;
        }

        .banner-center-area {
            display: block;
            justify-self: stretch;
            align-self: center;
            width: 100%;
            max-width: none;
            min-width: 0;
            min-height: 112px;
            max-height: 112px;
            height: 112px;
            background: transparent;
            border: none;
            border-radius: 10px;
            position: relative;
            overflow: hidden;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.32);
        }
        .banner-center-area.banner-carousel--pc .banner-carousel-viewport {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            min-height: 0;
        }
        .banner-carousel--pc .banner-carousel-dots {
            bottom: 6px;
        }
        body.theme-light .banner-center-area {
            background: transparent;
            border: none;
            box-shadow: 0 3px 12px rgba(15, 23, 42, 0.1);
        }

        .banner-carousel--mobile .banner-carousel-slide img {
            object-fit: cover;
            object-position: center;
        }

        .banner-mobile-area {
            display: none;
            width: 100%;
            aspect-ratio: 6 / 1;
            height: auto;
            min-height: 0;
            border-radius: 4px;
            overflow: hidden;
            background: #0b1120;
            border: none;
            box-shadow: none;
        }
        body.theme-light .banner-mobile-area {
            background: #0f172a;
            border: none;
            box-shadow: none;
        }

        .header-user-line--id {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 8px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            padding-bottom: 5px;
        }
        body.theme-light .header-user-line--id {
            border-bottom-color: rgba(148, 163, 184, 0.25);
        }
        .header-user-line--id .header-user-id {
            font-size: 10px;
            color: #94a3b8;
            font-weight: 800;
            font-family: Verdana, sans-serif;
            display: flex;
            align-items: center;
            gap: 4px;
            min-width: 0;
            flex: 1;
        }
        .header-user-line--id .header-user-id #userEmailDisplay {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            min-width: 0;
            flex: 1 1 auto;
        }
        .header-user-line--actions {
            display: flex;
            gap: 5px;
            align-items: center;
            flex-shrink: 0;
        }
        .header-user-line--actions a {
            color: #94a3b8;
            font-size: 10px;
            font-weight: 700;
            text-decoration: none;
        }
        .header-user-line--actions a:hover {
            color: #e2e8f0;
        }
        body.theme-light .header-user-line--actions a:hover {
            color: #475569;
        }

        .header-guest-line {
            flex-wrap: wrap;
            align-items: center;
            gap: 3px 6px;
            min-width: 0;
            width: 100%;
            box-sizing: border-box;
        }
        body.theme-light .header-guest-line {
            border-bottom-color: rgba(148, 163, 184, 0.25);
        }
        .header-guest-status {
            font-size: 10px;
            color: #94a3b8;
            font-weight: 800;
            font-family: Verdana, sans-serif;
            letter-spacing: 0.02em;
            white-space: nowrap;
            flex: 1 1 auto;
            min-width: 0;
        }
        body.theme-light .header-guest-status {
            color: #64748b;
        }
        .header-guest-actions {
            display: inline-flex;
            align-items: center;
            justify-content: flex-end;
            gap: 6px !important;
            flex: 0 1 auto;
            min-width: 0;
            max-width: 100%;
            flex-wrap: wrap;
        }
        .control-panel-integrated .header-user-line--actions .header-guest-login-btn,
        .control-panel-integrated .header-user-line--actions .header-guest-register-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-sizing: border-box;
            min-height: 24px;
            padding: 4px 10px;
            border-radius: 6px;
            font-size: 10px;
            font-family: Verdana, sans-serif;
            line-height: 1.15;
            text-decoration: none !important;
            white-space: nowrap;
            cursor: pointer;
            transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease, transform 0.12s ease;
        }
        .control-panel-integrated .header-user-line--actions .header-guest-login-btn {
            font-weight: 700;
            color: #cbd5e1 !important;
            border: 1px solid rgba(148, 163, 184, 0.38);
            background: rgba(255, 255, 255, 0.05);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
        }
        .control-panel-integrated .header-user-line--actions .header-guest-login-btn:hover {
            color: #f8fafc !important;
            border-color: rgba(148, 163, 184, 0.55);
            background: rgba(255, 255, 255, 0.1);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }
        .control-panel-integrated .header-user-line--actions .header-guest-login-btn:active {
            transform: translateY(1px);
        }
        body.theme-light .control-panel-integrated .header-user-line--actions .header-guest-login-btn {
            color: #475569 !important;
            border-color: #cbd5e1;
            background: #f8fafc;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
        }
        body.theme-light .control-panel-integrated .header-user-line--actions .header-guest-login-btn:hover {
            color: #1e293b !important;
            border-color: #94a3b8;
            background: #f1f5f9;
        }
        .control-panel-integrated .header-user-line--actions .header-guest-register-btn {
            font-weight: 800;
            color: #0f172a !important;
            border: 1px solid rgba(251, 191, 36, 0.65);
            background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 48%, #d97706 100%);
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
            padding-left: 11px;
            padding-right: 11px;
        }
        .control-panel-integrated .header-user-line--actions .header-guest-register-btn:hover {
            color: #020617 !important;
            filter: brightness(1.06);
            box-shadow: 0 2px 8px rgba(245, 158, 11, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.42);
        }
        .control-panel-integrated .header-user-line--actions .header-guest-register-btn:active {
            transform: translateY(1px);
            filter: brightness(0.98);
        }
        body.theme-light .control-panel-integrated .header-user-line--actions .header-guest-register-btn {
            color: #0f172a !important;
            border-color: #f59e0b;
            background: linear-gradient(135deg, #fde68a 0%, #fbbf24 45%, #f59e0b 100%);
            box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.55);
        }
        body.theme-light .control-panel-integrated .header-user-line--actions .header-guest-register-btn:hover {
            color: #020617 !important;
            box-shadow: 0 2px 6px rgba(245, 158, 11, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.6);
        }

        .header-inbox-link--pc {
            display: none;
        }
        .header-inbox-link--toolbar {
            position: relative;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            gap: 3px;
            min-width: 28px;
            height: 28px;
            padding: 0 5px;
            border: none;
            border-radius: 6px;
            background: transparent;
            color: #cbd5e1;
            font-size: 10px;
            font-weight: 800;
            text-decoration: none;
            white-space: nowrap;
            transition: color 0.2s, background 0.2s;
        }
        .header-inbox-link__icon {
            width: 15px;
            height: 15px;
            display: block;
            flex-shrink: 0;
        }
        .header-inbox-link__label {
            line-height: 1;
        }
        .header-inbox-link--toolbar:hover {
            color: #f8fafc;
            background: rgba(255, 255, 255, 0.1);
        }
        .header-inbox-link--toolbar.has-unread {
            color: #f1f5f9;
        }
        body.theme-light .header-inbox-link--toolbar {
            color: #475569;
        }
        body.theme-light .header-inbox-link--toolbar:hover {
            color: #0f172a;
            background: rgba(15, 23, 42, 0.06);
        }
        body.theme-light .header-inbox-link--toolbar.has-unread {
            color: #0f172a;
        }
        .header-inbox-link--toolbar .header-inbox-dot {
            top: -2px;
            right: -4px;
            min-width: 16px;
            height: 16px;
            padding: 0 4px;
            font-size: 10px;
        }
        .terminal-lang-switch__start,
        .terminal-lang-switch__end {
            display: inline-flex;
            align-items: center;
            gap: 2px;
            flex-shrink: 0;
        }
        .terminal-lang-switch__end {
            margin-left: auto;
        }
        .header-inbox-btn--mo {
            display: none !important;
        }
        .header-inbox-dot {
            position: absolute;
            top: 2px;
            right: 2px;
            min-width: 16px;
            height: 16px;
            padding: 0 4px;
            border-radius: 999px;
            background: #ef4444;
            color: #fff;
            font-size: 10px;
            font-weight: 800;
            line-height: 1;
            letter-spacing: -0.02em;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-sizing: border-box;
            box-shadow: 0 0 0 2px #0f172a, 0 0 8px rgba(239, 68, 68, 0.55);
            pointer-events: none;
            transform-origin: center;
        }
        .header-inbox-dot[hidden] {
            display: none !important;
        }
        .header-inbox-link--toolbar.has-unread .header-inbox-dot:not([hidden]) {
            animation: header-inbox-dot-breathe 1.6s ease-in-out infinite;
        }
        body.theme-light .header-inbox-dot {
            box-shadow: 0 0 0 2px #f8fafc, 0 0 6px rgba(239, 68, 68, 0.45);
        }
        body.theme-light .header-inbox-link--toolbar.has-unread .header-inbox-dot:not([hidden]) {
            animation: header-inbox-dot-breathe-light 1.6s ease-in-out infinite;
        }
        @keyframes header-inbox-dot-breathe-light {
            0%, 100% {
                opacity: 1;
                transform: scale(1);
                box-shadow: 0 0 0 2px #f8fafc, 0 0 4px rgba(239, 68, 68, 0.35);
            }
            50% {
                opacity: 0.88;
                transform: scale(1.2);
                box-shadow: 0 0 0 2px #f8fafc, 0 0 10px rgba(239, 68, 68, 0.85);
            }
        }
        .header-inbox-link--pc .header-inbox-dot {
            top: -1px;
            right: -5px;
        }

        .header-right-column {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            width: var(--header-user-col);
            max-width: var(--header-user-col);
            flex-shrink: 0;
            min-width: 0;
            justify-self: end;
            position: relative;
            z-index: 60;
            overflow: visible;
        }

        .control-panel-integrated {
            width: 100%;
            max-width: var(--header-user-col);
            background: var(--header-panel-bg);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            padding: 8px 10px;
            display: flex;
            flex-direction: column;
            gap: 6px;
            box-sizing: border-box;
            box-shadow: var(--header-panel-shadow);
            overflow: visible;
        }
        .status-dot { width: 8px; height: 8px; background: #10b981; border-radius: 50%; box-shadow: 0 0 10px #10b981; display: inline-block; flex-shrink: 0; }
        .header-vip-row {
            display: flex;
            flex-wrap: nowrap;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            width: 100%;
            min-width: 0;
        }
        .header-vip-row__start {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            min-width: 0;
            flex: 1 1 auto;
        }
        .control-panel-integrated .header-vip-remain-label,
        .control-panel-integrated .header-vip-remain-days,
        body.theme-light .control-panel-integrated .header-vip-remain-label,
        body.theme-light .control-panel-integrated .header-vip-remain-days {
            color: #10b981 !important;
        }
        .header-vip-remain-label {
            font-size: 11px;
            color: #10b981 !important;
            font-weight: 900;
            white-space: nowrap;
            flex-shrink: 0;
        }
        body.terminal-data-en .header-vip-remain-label {
            font-size: 10px;
            letter-spacing: 0;
        }
        .header-vip-remain-days {
            color: #10b981 !important;
            font-size: 13px;
            font-family: Verdana, sans-serif;
            font-weight: 900;
            white-space: nowrap;
            flex-shrink: 0;
        }
        .control-panel-integrated .header-vip-renew-link,
        body.theme-light .control-panel-integrated .header-vip-renew-link {
            color: #f59e0b !important;
            border-bottom-color: #f59e0b !important;
        }
        .header-vip-renew-link {
            font-size: 10px;
            color: #f59e0b !important;
            text-decoration: none;
            border-bottom: 1px dashed #f59e0b;
            font-weight: 900;
            flex-shrink: 0;
            white-space: nowrap;
        }
        .header-toolbar-row {
            display: flex;
            width: 100%;
            box-sizing: border-box;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
        }
        .header-vip-renew-link:hover {
            color: #fbbf24 !important;
            border-bottom-color: #fbbf24 !important;
        }
        @keyframes header-vip-zero-cta {
            0%, 49% { opacity: 1; }
            50%, 100% { opacity: 0.15; }
        }
        .header-vip-renew-link.is-zero-cta {
            animation: header-vip-zero-cta 0.38s linear infinite;
        }
        .header-vip-renew-link.is-zero-cta:hover,
        .header-vip-renew-link.is-zero-cta:focus-visible {
            animation-play-state: paused;
            opacity: 1;
        }
        @media (prefers-reduced-motion: reduce) {
            .header-vip-renew-link.is-zero-cta { animation: none; }
        }
        .header-vip-row__end {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
        }
        .header-invite-copy {
            margin: 0;
            padding: 0;
            border: none;
            background: none;
            font: inherit;
            font-size: 11px;
            font-weight: 900;
            color: #38bdf8;
            text-decoration: none;
            border-bottom: 1px dashed #38bdf8;
            cursor: pointer;
            white-space: nowrap;
            flex-shrink: 0;
        }
        body.theme-light .header-invite-copy {
            color: #0284c7;
            border-bottom-color: #0284c7;
        }
        .header-invite-copy:hover {
            color: #cbd5e1;
            border-bottom-color: #cbd5e1;
        }
        body.theme-light .header-invite-copy:hover {
            color: #334155;
            border-bottom-color: #334155;
        }
        .header-invite-copy.is-copied {
            color: #10b981;
            border-bottom-color: #10b981;
        }
        .btn-hover-effect { border: none; cursor: pointer; transition: 0.2s; }
        .btn-hover-effect:active { transform: translateY(2px); box-shadow: none !important; }
        
        @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
        @keyframes ann-tag-breathe {
            0%, 100% { opacity: 1; box-shadow: 0 0 0 rgba(239, 68, 68, 0); }
            50% { opacity: 0.82; box-shadow: 0 0 10px rgba(239, 68, 68, 0.45); }
        }
        @keyframes header-inbox-dot-breathe {
            0%, 100% {
                opacity: 1;
                transform: scale(1);
                box-shadow: 0 0 0 2px #0f172a, 0 0 4px rgba(239, 68, 68, 0.35);
            }
            50% {
                opacity: 0.88;
                transform: scale(1.2);
                box-shadow: 0 0 0 2px #0f172a, 0 0 10px rgba(239, 68, 68, 0.9);
            }
        }

        .league-search-container { position: relative; display: inline-block; margin-left: 5px; vertical-align: middle; }
        .league-search-field {
            position: relative;
            display: inline-flex;
            align-items: center;
        }
        .league-search-input { background: var(--search-input-bg); color: var(--text-main); border: 1px solid var(--border-light); padding: 7px 28px 7px 12px; border-radius: 6px; width: 140px; font-size: 13px; font-weight: 600; outline: none; transition: all 0.3s; box-sizing: border-box; }
        .league-search-input:focus { border-color: var(--accent-blue); box-shadow: 0 0 0 2px rgba(71,85,105,0.5); }
        .league-search-clear {
            position: absolute;
            right: 4px;
            top: 50%;
            transform: translateY(-50%);
            width: 20px;
            height: 20px;
            padding: 0;
            border: none;
            border-radius: 999px;
            background: transparent;
            color: #94a3b8;
            font-size: 16px;
            line-height: 1;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        .league-search-clear:hover { background: rgba(148, 163, 184, 0.18); color: #e2e8f0; }
        body.theme-light .league-search-clear:hover { color: #475569; background: rgba(100, 116, 139, 0.12); }
        .league-search-clear[hidden] { display: none !important; }
        .pc-hot-more-btn.is-league-active,
        .mo-league-more-btn.is-league-active {
            font-weight: 900;
            color: #ffffff;
            border-color: rgba(59, 130, 246, 0.55);
            background: rgba(59, 130, 246, 0.22);
            box-shadow: 0 1px 4px rgba(59, 130, 246, 0.25);
        }
        body.theme-light .pc-hot-more-btn.is-league-active,
        body.theme-light .mo-league-more-btn.is-league-active {
            color: #1d4ed8;
            background: rgba(59, 130, 246, 0.12);
            border-color: rgba(37, 99, 235, 0.35);
        }
        .league-search-container.is-open {
            overflow: visible;
        }
        .league-search-dropdown {
            position: fixed;
            z-index: 100050;
            width: 220px;
            min-width: 180px;
            max-width: min(220px, 92vw);
            background: var(--search-drop-bg);
            border: 1px solid var(--border-light);
            border-radius: 6px;
            display: none;
            box-shadow: 0 10px 25px rgba(0,0,0,0.3);
            max-height: 250px;
            overflow-y: auto;
            box-sizing: border-box;
            margin: 0;
        }
        .dropdown-item { padding: 12px 15px; border-bottom: 1px solid rgba(255,255,255,0.05); cursor: pointer; color: var(--text-main); font-weight: 700; font-size: 13px; }
        body.theme-light .dropdown-item { border-bottom: 1px solid #e5e7eb; }
        .dropdown-item:hover { background: var(--search-item-hover); color: var(--search-item-text-hover); }
        .dropdown-item--empty {
            cursor: default;
            opacity: 0.65;
            font-weight: 600;
        }
        .dropdown-item--empty:hover {
            background: transparent;
            color: var(--text-main);
        }
        .search-history-box { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-left: 10px; border-left: 2px solid var(--border-color); padding-left: 10px; }

        .toolbar.pc-only { 
            background: var(--panel-bg); backdrop-filter: var(--panel-blur); -webkit-backdrop-filter: var(--panel-blur);
            border: 1px solid var(--border-light); border-top: 1px solid var(--border-light); border-bottom: none;
            border-radius: 0; padding: 0; margin-bottom: 0; position: relative; z-index: 10;
        }

        .ann-marquee-bar {
            display: flex;
            align-items: center;
            gap: 0;
            min-height: 40px;
            padding: 0;
            background: #121b2e;
            border: 1px solid var(--border-light);
            border-top: 1px solid rgba(255, 255, 255, 0.07);
            border-bottom: none;
            border-radius: 0;
            margin-bottom: 0;
            overflow: hidden;
            position: relative;
            z-index: 11;
        }
        body.theme-light .ann-marquee-bar {
            background: #121b2e;
            border-top-color: rgba(255, 255, 255, 0.07);
        }
        .ann-marquee-label {
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            align-self: stretch;
            width: auto;
            min-width: 52px;
            padding: 0 10px;
            border-right: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(0, 0, 0, 0.22);
        }
        .ann-marquee-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #f59e0b;
            box-shadow: 0 0 6px rgba(245, 158, 11, 0.5);
            animation: ann-dot-pulse 4s ease-in-out infinite;
        }
        @keyframes ann-dot-pulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.55; transform: scale(0.88); }
        }
        .ann-marquee-label-text {
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 0.12em;
            color: #94a3b8;
            line-height: 1;
        }
        .ann-marquee-viewport {
            flex: 1;
            min-width: 0;
            position: relative;
            overflow: hidden;
            overflow-x: hidden;
            background: #121b2e;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }
        .ann-marquee-viewport::-webkit-scrollbar {
            display: none;
            width: 0;
            height: 0;
        }
        .ann-marquee-track {
            display: flex;
            width: max-content;
            height: 100%;
            align-items: center;
            will-change: transform;
        }
        .ann-marquee-track.is-intro {
            animation: none !important;
            transform: translate3d(var(--ann-marquee-center, 0px), 0, 0);
        }
        .ann-marquee-track.is-playing {
            animation: ann-marquee-scroll var(--ann-marquee-duration, 52s) linear infinite;
        }
        .ann-marquee-set {
            display: inline-flex;
            align-items: center;
            flex-shrink: 0;
            white-space: nowrap;
            padding: 10px 0;
            box-sizing: border-box;
        }
        .ann-marquee-item {
            font-size: 13px;
            font-weight: 600;
            letter-spacing: 0.02em;
            line-height: 1.35;
        }
        @keyframes ann-marquee-scroll {
            0% { transform: translate3d(var(--ann-marquee-start, 100%), 0, 0); }
            100% { transform: translate3d(var(--ann-marquee-end, -100%), 0, 0); }
        }
        @media (prefers-reduced-motion: reduce) {
            .ann-marquee-track.is-intro,
            .ann-marquee-track.is-playing { animation: none !important; }
            .ann-marquee-track.is-intro { transform: translate3d(var(--ann-marquee-center, 0px), 0, 0); }
            .ann-marquee-set { padding-left: 14px !important; padding-right: 14px !important; }
            .ann-marquee-set[aria-hidden="true"] { display: none !important; }
            .ann-marquee-track { width: 100%; max-width: 100%; }
            .ann-marquee-viewport { overflow: hidden; overflow-x: hidden; }
            .ann-marquee-item {
                display: block;
                max-width: 100%;
                overflow: hidden;
                text-overflow: ellipsis;
            }
            .ann-marquee-dot { animation: none; }
        }

        .last-update-bar {
            display: flex;
            flex-direction: column;
            border: 1px solid var(--border-light); border-top: 1px solid rgba(255,255,255,0.05);
            border-radius: 0; padding: 12px 20px; margin-bottom: 0;
            box-shadow: var(--card-shadow-main); position: relative; z-index: 100;
            overflow: visible !important;
        }
        .last-update-bar::before {
            content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
            background: var(--panel-bg); backdrop-filter: var(--panel-blur); -webkit-backdrop-filter: var(--panel-blur);
            border-radius: inherit; z-index: -1; pointer-events: none;
        }
        
        body.theme-light .cyber-header { 
            border: 1px solid #CBD5E1 !important; 
            border-bottom: none !important; 
            border-top-left-radius: 12px !important;
            border-top-right-radius: 12px !important;
            background-clip: padding-box !important;
        }
        body.theme-light .toolbar.pc-only { border-left: 1px solid #CBD5E1 !important; border-right: 1px solid #CBD5E1 !important; border-top: 1px solid #E2E8F0 !important; border-bottom: none !important; }
        body.theme-light .ann-marquee-bar { border-left: 1px solid #CBD5E1 !important; border-right: 1px solid #CBD5E1 !important; border-top: 1px solid #E2E8F0 !important; border-bottom: none !important; }
        body.theme-light .last-update-bar { border-left: 1px solid #CBD5E1 !important; border-right: 1px solid #CBD5E1 !important; border-bottom: 1px solid #CBD5E1 !important; border-top: 1px solid #E2E8F0 !important; box-shadow: var(--shadow-panel); }

        @media (max-width: 640px) {
            body.theme-light .mobile-toolbar { border-left: 1px solid #CBD5E1 !important; border-right: 1px solid #CBD5E1 !important; border-top: 1px solid #E2E8F0 !important; border-bottom: none !important; }
            body.theme-light .ann-marquee-bar { border-left: 1px solid #CBD5E1 !important; border-right: 1px solid #CBD5E1 !important; }

            body.theme-light .last-update-bar { border-left: 1px solid #CBD5E1 !important; border-right: 1px solid #CBD5E1 !important; border-bottom: 1px solid #CBD5E1 !important; }
        }

        .match-item { 
            background: var(--panel-bg); backdrop-filter: var(--panel-blur); -webkit-backdrop-filter: var(--panel-blur);
            border: 1px solid var(--border-light); border-radius: 12px; margin-bottom: 20px; overflow: hidden; 
            box-shadow: var(--card-shadow-main);
        }
        .match-data-wrap {
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
            border: 1px solid var(--border-light);
            border-top: none;
            border-bottom: none;
            border-radius: 0;
            overflow: visible;
            margin-bottom: 0;
            background: var(--panel-bg);
        }
        body.theme-light .match-data-wrap {
            border-left: 1px solid #CBD5E1 !important;
            border-right: 1px solid #CBD5E1 !important;
            border-bottom: none !important;
            box-shadow: none;
            background: #f1f5f9;
        }
        .match-data-wrap #matchList {
            display: flex;
            flex-direction: column;
            gap: 10px;
            padding: 10px 12px 14px;
            max-width: 100%;
            overflow-x: hidden;
            box-sizing: border-box;
        }
        .match-data-wrap .match-item {
            border-radius: 10px;
            margin-bottom: 0;
            border: 1px solid var(--border-light);
            box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
            max-width: 100%;
            overflow: hidden;
            background: var(--panel-bg);
            backdrop-filter: var(--panel-blur);
            -webkit-backdrop-filter: var(--panel-blur);
        }
        body.theme-light .match-data-wrap .match-item {
            border: 1px solid #E2E8F0;
            background: #ffffff;
            box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
        }
        @media (min-width: 641px) {
            .match-data-wrap .match-item {
                transition: none;
            }
        }
        .match-data-wrap .match-item:last-child {
            border-bottom: 1px solid var(--border-light);
        }
        body.theme-light .match-data-wrap .match-item:last-child {
            border-bottom: 1px solid #E2E8F0;
        }
        body.show-handicap-only .match-data-wrap .hc-flow-table > .hc-match-head-row,
        body.show-total-only .match-data-wrap .hc-flow-table > .hc-match-head-row {
            background: rgba(148, 163, 184, 0.08);
        }
        body.theme-light.show-handicap-only .match-data-wrap .hc-flow-table > .hc-match-head-row,
        body.theme-light.show-total-only .match-data-wrap .hc-flow-table > .hc-match-head-row {
            background: #f8fafc;
        }
        body.show-handicap-only .match-data-wrap .hc-column-head,
        body.show-total-only .match-data-wrap .hc-column-head {
            border-top: 1px solid var(--border-light);
            margin-bottom: 0;
            max-width: 100%;
            z-index: 45;
        }
        body.show-handicap-only .match-data-wrap .hc-column-head.is-fixed,
        body.show-total-only .match-data-wrap .hc-column-head.is-fixed {
            position: fixed;
            top: 0;
            margin: 0;
            z-index: 110;
            box-sizing: border-box;
        }
        body.show-handicap-only .match-data-wrap .hc-column-head {
            background: #2f3a4d;
            border-bottom-color: rgba(148, 163, 184, 0.28);
            box-shadow: inset 0 3px 0 0 rgba(148, 163, 184, 0.45);
        }
        body.show-total-only .match-data-wrap .hc-column-head {
            background: #2e1a47;
            border-bottom-color: rgba(167, 139, 250, 0.32);
            box-shadow: inset 0 3px 0 0 rgba(139, 92, 246, 0.62);
        }
        body.show-handicap-only .match-data-wrap .hc-column-head.is-stuck {
            box-shadow: inset 0 3px 0 0 rgba(148, 163, 184, 0.45), 0 4px 12px rgba(15, 23, 42, 0.22);
        }
        body.show-total-only .match-data-wrap .hc-column-head.is-stuck {
            box-shadow: inset 0 3px 0 0 rgba(139, 92, 246, 0.62), 0 4px 12px rgba(15, 23, 42, 0.22);
        }
        body.theme-light.show-handicap-only .match-data-wrap .hc-column-head,
        body.theme-light.show-total-only .match-data-wrap .hc-column-head {
            border-top-color: #E2E8F0;
        }
        body.theme-light.show-handicap-only .match-data-wrap .hc-column-head {
            background: #f1f5f9;
            border-bottom-color: #cbd5e1;
            box-shadow: inset 0 3px 0 0 rgba(100, 116, 139, 0.38);
        }
        body.theme-light.show-total-only .match-data-wrap .hc-column-head {
            background: #f5f3ff;
            border-bottom-color: rgba(124, 58, 237, 0.28);
            box-shadow: inset 0 3px 0 0 rgba(124, 58, 237, 0.52);
        }
        body.theme-light.show-handicap-only .match-data-wrap .hc-column-head.is-stuck {
            box-shadow: inset 0 3px 0 0 rgba(100, 116, 139, 0.38), 0 3px 10px rgba(15, 23, 42, 0.1);
        }
        body.theme-light.show-total-only .match-data-wrap .hc-column-head.is-stuck {
            box-shadow: inset 0 3px 0 0 rgba(124, 58, 237, 0.52), 0 3px 10px rgba(15, 23, 42, 0.1);
        }
        .hc-column-head-sentinel {
            height: 1px;
            width: 100%;
            margin: 0;
            padding: 0;
            border: 0;
            pointer-events: none;
            visibility: hidden;
        }
        .hc-column-head-placeholder {
            height: 0;
            margin: 0;
            padding: 0;
            border: 0;
            pointer-events: none;
        }
        body:not(.show-handicap-only):not(.show-total-only) .hc-column-head-sentinel {
            display: none;
        }
        body.show-handicap-only .match-data-wrap .hc-flow-table,
        body.show-handicap-only .match-data-wrap .hc-match-head-row,
        body.show-handicap-only .match-data-wrap .hc-flow-row,
        body.show-total-only .match-data-wrap .hc-flow-table,
        body.show-total-only .match-data-wrap .hc-match-head-row,
        body.show-total-only .match-data-wrap .hc-flow-row {
            min-width: 0;
            max-width: 100%;
        }

        .site-footer {
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
            margin: 0 0 20px;
            padding: 14px 16px 12px;
            border: 1px solid var(--border-light);
            border-top: 1px dashed var(--border-light);
            border-radius: 0 0 12px 12px;
            font-size: 11px;
            line-height: 1.6;
            color: var(--text-sub);
            text-align: center;
            background: rgba(15, 23, 42, 0.35);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
        }
        .terminal-data-guide + .site-footer {
            border-top: none;
            padding-top: 10px;
        }
        .terminal-sharp-guide + .site-footer {
            border-top: none;
            padding-top: 10px;
        }
        .terminal-sharp-guide {
            --sg-ink: #e8eef7;
            --sg-muted: #a8b6c9;
            --sg-line: rgba(125, 155, 190, 0.22);
            --sg-panel: rgba(12, 22, 40, 0.55);
            --sg-brand: #d4a017;
            --sg-teal: #2dd4bf;
            --sg-sky: #60a5fa;
            --sg-amber: #fbbf24;
            width: 100%;
            box-sizing: border-box;
            margin: 0;
            padding: 22px 20px 18px;
            border: 1px solid var(--sg-line);
            border-bottom: none;
            border-radius: 0;
            text-align: left;
            background:
                radial-gradient(120% 80% at 0% 0%, rgba(45, 212, 191, 0.08), transparent 52%),
                radial-gradient(90% 70% at 100% 0%, rgba(212, 160, 23, 0.07), transparent 48%),
                linear-gradient(180deg, rgba(18, 32, 56, 0.72) 0%, rgba(10, 18, 34, 0.42) 100%);
        }
        body.theme-light .terminal-sharp-guide {
            --sg-ink: #0f1b2d;
            --sg-muted: #4b5d73;
            --sg-line: #d7e0ea;
            --sg-panel: #ffffff;
            --sg-brand: #9a7209;
            --sg-teal: #0f766e;
            --sg-sky: #1d4ed8;
            --sg-amber: #b45309;
            background:
                radial-gradient(120% 80% at 0% 0%, rgba(15, 118, 110, 0.06), transparent 55%),
                radial-gradient(90% 70% at 100% 0%, rgba(212, 160, 23, 0.08), transparent 50%),
                linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
            border-color: #c9d5e3;
        }
        .terminal-sharp-guide__head {
            padding-bottom: 14px;
            margin-bottom: 14px;
            border-bottom: 1px solid var(--sg-line);
        }
        .terminal-sharp-guide__kicker {
            margin: 0 0 7px;
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0.16em;
            text-transform: uppercase;
            color: var(--sg-brand);
        }
        .terminal-sharp-guide__title {
            margin: 0 0 8px;
            font-size: 16px;
            font-weight: 800;
            letter-spacing: -0.015em;
            color: var(--sg-ink);
            line-height: 1.3;
        }
        .terminal-sharp-guide__lead {
            margin: 0;
            max-width: 54em;
            font-size: 12.5px;
            line-height: 1.7;
            color: var(--sg-muted);
        }
        .terminal-sharp-guide__grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 0;
            margin: 0;
            border: 1px solid var(--sg-line);
            border-radius: 8px;
            overflow: hidden;
            background: var(--sg-panel);
            box-shadow: 0 10px 28px rgba(2, 8, 20, 0.12);
            margin-bottom: 10px;
        }
        body.theme-light .terminal-sharp-guide__grid {
            box-shadow: 0 8px 22px rgba(15, 27, 45, 0.05);
        }
        .terminal-sharp-guide__card {
            box-sizing: border-box;
            padding: 15px 16px 16px;
            border: none;
            border-radius: 0;
            background: transparent;
        }
        .terminal-sharp-guide__card + .terminal-sharp-guide__card {
            border-left: 1px solid var(--sg-line);
            background: linear-gradient(180deg, rgba(45, 212, 191, 0.04), transparent 70%);
        }
        body.theme-light .terminal-sharp-guide__card + .terminal-sharp-guide__card {
            background: linear-gradient(180deg, rgba(15, 118, 110, 0.035), transparent 70%);
        }
        .terminal-sharp-guide__card-title {
            margin: 0 0 11px;
            padding-bottom: 7px;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--sg-brand);
            border-bottom: 1px solid var(--sg-line);
        }
        .terminal-sharp-guide__defs {
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .terminal-sharp-guide__def {
            display: grid;
            grid-template-columns: 4.6em minmax(0, 1fr);
            gap: 10px;
            align-items: start;
            padding: 9px 10px;
            border: 1px solid transparent;
            border-radius: 6px;
            background: rgba(148, 163, 184, 0.06);
        }
        body.theme-light .terminal-sharp-guide__def {
            background: rgba(15, 27, 45, 0.03);
        }
        .terminal-sharp-guide__tag {
            margin: 0;
            padding: 2px 0 0;
            border: none;
            border-radius: 0;
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 0.02em;
            background: transparent;
            font-variant-numeric: tabular-nums;
            line-height: 1.35;
        }
        .terminal-sharp-guide__tag--bet { color: var(--sg-sky); }
        .terminal-sharp-guide__tag--money { color: var(--sg-teal); }
        .terminal-sharp-guide__tag--diff { color: var(--sg-amber); }
        .terminal-sharp-guide__def dd {
            margin: 0;
            font-size: 12px;
            line-height: 1.62;
            color: var(--sg-muted);
        }
        .terminal-sharp-guide__examples {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .terminal-sharp-guide__example {
            padding: 10px 12px 11px;
            border-radius: 6px;
            border: 1px solid rgba(45, 212, 191, 0.18);
            border-left: 3px solid var(--sg-teal);
            background: rgba(45, 212, 191, 0.06);
        }
        body.theme-light .terminal-sharp-guide__example {
            border-color: rgba(15, 118, 110, 0.16);
            border-left-color: var(--sg-teal);
            background: rgba(15, 118, 110, 0.04);
        }
        .terminal-sharp-guide__example-label {
            display: block;
            margin-bottom: 4px;
            font-size: 10px;
            font-weight: 800;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--sg-teal);
        }
        .terminal-sharp-guide__example p {
            margin: 0;
            font-size: 12px;
            line-height: 1.65;
            color: var(--sg-muted);
        }
        .terminal-sharp-guide__hot {
            margin: 0 0 12px;
            padding: 11px 14px;
            border: 1px solid var(--sg-line);
            border-radius: 8px;
            background: rgba(96, 165, 250, 0.06);
        }
        body.theme-light .terminal-sharp-guide__hot {
            background: rgba(29, 78, 216, 0.04);
        }
        .terminal-sharp-guide__formula {
            margin: 0 0 6px;
            font-size: 12px;
            font-weight: 700;
            color: var(--sg-ink);
            font-variant-numeric: tabular-nums;
        }
        .terminal-sharp-guide__hot-list {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        .terminal-sharp-guide__hot-item {
            font-size: 11.5px;
            line-height: 1.5;
            color: var(--sg-muted);
        }
        .terminal-sharp-guide__hot-item--double strong { color: #fb7185; }
        .terminal-sharp-guide__hot-item--single strong { color: #34d399; }
        body.theme-light .terminal-sharp-guide__hot-item--double strong { color: #e11d48; }
        body.theme-light .terminal-sharp-guide__hot-item--single strong { color: #059669; }
        .terminal-sharp-guide__note {
            margin: 0 0 12px;
            padding: 10px 14px;
            border-radius: 8px;
            border: 1px solid var(--sg-line);
            background: linear-gradient(90deg, rgba(212, 160, 23, 0.1), rgba(45, 212, 191, 0.05));
            font-size: 12px;
            line-height: 1.6;
            color: var(--sg-muted);
        }
        body.theme-light .terminal-sharp-guide__note {
            background: linear-gradient(90deg, rgba(212, 160, 23, 0.08), rgba(15, 118, 110, 0.04));
        }
        .terminal-sharp-guide__foot {
            display: flex;
            flex-direction: column;
            gap: 8px;
            width: 100%;
        }
        .terminal-sharp-guide__foot .terminal-export-wrap {
            display: block;
            width: 100%;
        }
        .terminal-sharp-guide__foot .terminal-guide-more-btn,
        .terminal-sharp-guide__foot .terminal-export-btn {
            width: 100%;
        }
        @media (max-width: 720px) {
            .terminal-sharp-guide {
                padding: 16px 12px 12px;
            }
            .terminal-sharp-guide__grid {
                grid-template-columns: 1fr;
                border-radius: 8px;
            }
            .terminal-sharp-guide__card + .terminal-sharp-guide__card {
                border-left: none;
                border-top: 1px solid var(--sg-line);
            }
            .terminal-sharp-guide__title {
                font-size: 15px;
            }
            .terminal-sharp-guide__def {
                grid-template-columns: 4em minmax(0, 1fr);
                gap: 8px;
            }
        }
        .terminal-data-guide {
            width: 100%;
            box-sizing: border-box;
            margin: 0;
            padding: 14px 16px 12px;
            border: 1px solid var(--border-light);
            border-top: 1px dashed var(--border-light);
            border-bottom: none;
            text-align: left;
            background: rgba(15, 23, 42, 0.28);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
        }
        body.theme-light .terminal-data-guide {
            background: #f1f5f9;
            border-color: #CBD5E1;
            border-top-color: #e2e8f0;
        }
        .terminal-data-guide__title {
            margin: 0 0 8px;
            font-size: 12px;
            font-weight: 900;
            letter-spacing: 0.02em;
            color: var(--text-main);
        }
        body.theme-light .terminal-data-guide__title {
            color: #334155;
        }
        .terminal-data-guide__formula {
            margin: 0 0 8px;
            font-size: 11px;
            font-weight: 700;
            color: var(--text-sub);
            font-family: Verdana, sans-serif;
            text-align: left;
        }
        .terminal-data-guide__rules {
            list-style: none;
            margin: 0 0 6px;
            padding: 0;
            max-width: none;
            display: flex;
            flex-direction: column;
            gap: 4px;
            align-items: flex-start;
            text-align: left;
        }
        .terminal-data-guide__scope {
            margin: 0;
            max-width: none;
            font-size: 10px;
            line-height: 1.55;
            color: var(--text-sub);
            opacity: 0.88;
            font-family: Verdana, sans-serif;
            text-align: left;
        }
        .terminal-export-wrap {
            margin: 0;
            display: contents;
        }
        .terminal-data-guide__foot {
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px dashed rgba(148, 163, 184, 0.28);
            display: flex;
            flex-direction: column;
            align-items: stretch;
            gap: 8px;
            width: 100%;
        }
        body.theme-light .terminal-data-guide__foot {
            border-top-color: rgba(148, 163, 184, 0.38);
        }
        .terminal-guide-more-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            box-sizing: border-box;
            width: 100%;
            min-height: 38px;
            padding: 0 16px;
            border-radius: 10px;
            border: 1px solid rgba(148, 163, 184, 0.32);
            background: rgba(30, 41, 59, 0.55);
            color: #e2e8f0 !important;
            font-size: 12px;
            font-weight: 800;
            font-family: Verdana, "Microsoft YaHei", "PingFang SC", sans-serif;
            letter-spacing: 0.02em;
            line-height: 1.2;
            text-decoration: none;
            white-space: nowrap;
            cursor: pointer;
            transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
            box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
        }
        .terminal-guide-more-btn__icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            width: 14px;
            height: 14px;
            color: #fbbf24;
            opacity: 0.95;
        }
        .terminal-guide-more-btn__label {
            flex: 1 1 auto;
            text-align: center;
        }
        .terminal-guide-more-btn__chev {
            flex-shrink: 0;
            font-size: 11px;
            font-weight: 700;
            opacity: 0.72;
            line-height: 1;
        }
        .terminal-guide-more-btn:hover {
            border-color: rgba(251, 191, 36, 0.45);
            background: rgba(51, 65, 85, 0.72);
            color: #f8fafc !important;
            box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
        }
        .terminal-guide-more-btn:hover .terminal-guide-more-btn__icon {
            color: #fcd34d;
        }
        .terminal-guide-more-btn:active {
            transform: translateY(1px);
        }
        body.theme-light .terminal-guide-more-btn {
            border-color: rgba(148, 163, 184, 0.45);
            background: #ffffff;
            color: #334155 !important;
            box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
        }
        body.theme-light .terminal-guide-more-btn__icon {
            color: #d97706;
        }
        body.theme-light .terminal-guide-more-btn:hover {
            border-color: rgba(217, 119, 6, 0.38);
            background: #fffbeb;
            color: #1e293b !important;
        }
        .terminal-export-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            align-self: flex-start;
            min-height: 0;
            padding: 2px 0;
            border: none;
            border-radius: 0;
            background: transparent;
            color: var(--text-sub) !important;
            font-size: 10px;
            font-weight: 600;
            font-family: Verdana, sans-serif;
            opacity: 0.72;
            cursor: pointer;
            transition: opacity 0.15s ease, color 0.15s ease;
        }
        .terminal-export-btn:hover {
            opacity: 1;
            color: var(--text-main) !important;
            text-decoration: underline;
            text-underline-offset: 2px;
        }
        .terminal-export-btn:active {
            transform: none;
        }
        body.theme-light .terminal-export-btn {
            color: #64748b !important;
        }
        body.theme-light .terminal-export-btn:hover {
            color: #334155 !important;
        }
        .terminal-data-guide__rule {
            margin: 0;
            font-size: 11px;
            line-height: 1.55;
            color: var(--text-sub);
            text-align: left;
        }
        .terminal-data-guide__rule strong {
            font-weight: 900;
        }
        .terminal-data-guide__rule--double strong {
            color: #fb923c;
        }
        .terminal-data-guide__rule--single strong {
            color: #4ade80;
        }
        body.theme-light .terminal-data-guide__rule--double strong {
            color: #ea580c;
        }
        body.theme-light         .terminal-data-guide__rule--single strong {
            color: #16a34a;
        }
        @media (min-width: 520px) {
            .terminal-data-guide__foot {
                flex-direction: row;
                align-items: center;
                justify-content: space-between;
                gap: 12px;
            }
            .terminal-guide-more-btn {
                width: auto;
                min-width: min(100%, 240px);
                flex: 0 1 auto;
            }
            .terminal-export-btn {
                align-self: center;
                flex: 0 0 auto;
                margin-left: auto;
            }
        }
        @media (max-width: 768px) {
            .terminal-data-guide {
                padding: 12px 10px 10px;
            }
            .terminal-data-guide__title {
                font-size: 11px;
            }
            .terminal-data-guide__formula,
            .terminal-data-guide__rule {
                font-size: 10px;
                line-height: 1.5;
            }
            .terminal-data-guide__rules {
                max-width: 100%;
            }
        }
        body.theme-light .site-footer {
            color: #64748b;
            background: #f8fafc;
            border-color: #CBD5E1;
            border-top-color: #e2e8f0;
            box-shadow: var(--shadow-panel);
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
        }
        .site-footer p {
            margin: 0 0 6px;
        }
        .site-footer p:last-of-type:not(.site-footer-copy) {
            margin-bottom: 0;
        }
        .site-footer .site-footer-lead {
            font-weight: 800;
            color: var(--text-main);
            letter-spacing: 0.2px;
        }
        body.theme-light .site-footer .site-footer-lead {
            color: #475569;
        }
        .site-footer .site-footer-legal {
            opacity: 0.92;
        }
        .site-footer-links {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: center;
            gap: 10px 18px;
            margin: 12px 0 0;
        }
        .site-footer-links a,
        .site-footer-links .site-footer-feedback-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
            margin: 0;
            padding: 0;
            border: none;
            background: none;
            color: #38bdf8;
            font-size: 12px;
            font-weight: 800;
            text-decoration: none;
            border-bottom: 1px dashed #38bdf8;
            cursor: pointer;
            font-family: inherit;
            line-height: 1.2;
        }
        body.theme-light .site-footer-links a,
        body.theme-light .site-footer-links .site-footer-feedback-btn {
            color: #0284c7;
            border-bottom-color: #0284c7;
        }
        .site-footer-links a:hover,
        .site-footer-links .site-footer-feedback-btn:hover {
            color: #7dd3fc;
            border-bottom-color: #7dd3fc;
        }
        .site-footer-feedback-btn svg {
            width: 14px;
            height: 14px;
            flex-shrink: 0;
        }
        .site-footer-brand {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-top: 11px;
            padding-top: 10px;
            border-top: 1px solid var(--border-light);
        }
        body.theme-light .site-footer-brand {
            border-top-color: #e2e8f0;
        }
        .site-footer-logo {
            height: 17px;
            width: auto;
            max-width: 120px;
            object-fit: contain;
            opacity: 0.88;
            filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.15));
        }
        body.theme-light .site-footer-logo {
            opacity: 0.82;
            filter: none;
        }
        .site-footer-copy {
            margin: 0;
            font-size: 10px;
            font-weight: 700;
            font-family: Verdana, sans-serif;
            color: var(--text-sub);
        }
        body.theme-light .site-footer-copy {
            color: #94a3b8;
        }
        @media (max-width: 640px) {
            .site-footer {
                margin: 0 0 16px;
                padding: 12px 10px 10px;
                font-size: 10px;
                line-height: 1.55;
            }
            .site-footer-links {
                gap: 8px 14px;
            }
            .site-footer-logo { height: 15px; }
            .site-footer-copy { font-size: 9px; }
            .site-footer-brand { margin-top: 9px; padding-top: 8px; gap: 6px; }
        }
        
        /* 比赛卡片：hover 不位移，避免干扰阅读 */
        body.theme-light .match-item { 
            border: 1px solid #E2E8F0; 
            box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.01); 
        }

        .match-header { display: flex; align-items: center; padding: 12px 16px; background: var(--card-header-bg); border-bottom: 1px solid var(--border-light); position: relative; z-index: 10; overflow: visible !important; }
        body.theme-light .match-header { border-bottom: 2px solid #f1f5f9; }
        .league-tag { font-size: 11px; font-weight: 900; padding: 4px 10px; border-radius: 4px; margin-right: 12px; color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,0.8); text-decoration: none; }
        a.league-tag.league-tag--link,
        a.league-tag.league-tag--link:visited,
        a.league-tag.league-tag--link:hover,
        a.league-tag.league-tag--link:focus,
        a.league-tag.league-tag--link:active,
        .hc-match-meta a.league-tag.league-tag--link,
        .hc-match-meta a.league-tag.league-tag--link:hover,
        .hc-match-meta a.league-tag.league-tag--link:focus,
        .hc-match-meta a.league-tag.league-tag--link:active {
            color: #fff;
            text-decoration: none !important;
            border-bottom: none;
            box-shadow: none;
        }
        .match-score { font-size: 20px; font-weight: 900; margin: 0 15px; color: var(--gold-pro); letter-spacing: 1px; text-shadow: var(--card-score-shadow); }
        body.theme-light .match-score { color: #000; }
        .match-status { margin-left: auto; font-size: 13px; color: var(--card-status-color); font-weight: 800; text-shadow: var(--card-score-shadow); }

        /* ⏱️ 时空预设微型胶囊 */
        .time-zoom-capsule {
            position: relative;
            display: inline-flex;
            align-items: center;
            background: rgba(0,0,0,0.3);
            border: 1px solid var(--border-light);
            border-radius: 22px;
            padding: 3px;
            gap: 3px;
            isolation: isolate;
            --tz-fill-left: 3px;
            --tz-fill-width: 0px;
        }
        .time-zoom-capsule::before {
            content: '';
            position: absolute;
            top: 3px;
            bottom: 3px;
            left: var(--tz-fill-left);
            width: var(--tz-fill-width);
            border-radius: 18px;
            background: var(--gold-pro);
            box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
            transition: left 0.34s cubic-bezier(0.22, 1, 0.36, 1), width 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
            opacity: 0;
            pointer-events: none;
            z-index: 0;
        }
        .time-zoom-capsule.has-range-fill::before {
            opacity: 1;
        }
        body.theme-light .time-zoom-capsule { background: rgba(0,0,0,0.05); }
        body:not(.theme-light) .time-zoom-capsule {
            background: rgba(15, 23, 42, 0.72);
            border-color: rgba(148, 163, 184, 0.32);
        }
        .time-zoom-btn {
            position: relative;
            z-index: 1;
            background: transparent;
            border: none;
            color: var(--text-sub);
            font-size: 12px;
            font-weight: 800;
            padding: 6px 14px;
            border-radius: 18px;
            cursor: pointer;
            transition: color 0.2s ease;
            letter-spacing: 0.4px;
            font-family: 'Verdana', sans-serif;
            min-width: 44px;
        }
        .time-zoom-btn--kickoff {
            min-width: 48px;
            letter-spacing: 0.02em;
        }
        .time-zoom-btn:hover { color: var(--text-main); }
        body:not(.theme-light) .time-zoom-btn:not(.is-range-on) {
            color: #e2e8f0;
        }
        body:not(.theme-light) .time-zoom-btn:hover:not(.is-range-on) {
            color: #fff;
        }
        .time-zoom-btn.is-range-on,
        .time-zoom-btn.active {
            background: transparent;
            color: #0f172a;
            font-weight: 900;
            text-shadow: none;
            box-shadow: none;
        }
        body.theme-light .time-zoom-btn.is-range-on,
        body.theme-light .time-zoom-btn.active {
            color: #000;
        }
        body:not(.theme-light) .time-zoom-btn.is-range-on,
        body:not(.theme-light) .time-zoom-btn.active {
            color: #0f172a;
        }
        .chart-playback-btn {
            flex-shrink: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            height: 28px;
            min-width: 52px;
            padding: 0 12px;
            border-radius: 8px;
            border: 1px solid rgba(148, 163, 184, 0.45);
            background: rgba(15, 23, 42, 0.55);
            color: var(--text-main);
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.03em;
            cursor: pointer;
            white-space: nowrap;
            box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
            transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, opacity 0.15s;
        }
        .chart-playback-btn:hover:not(:disabled) {
            background: rgba(245, 158, 11, 0.24);
            border-color: var(--gold-pro);
            color: #fff;
            box-shadow: 0 2px 8px rgba(245, 158, 11, 0.28);
        }
        .chart-playback-btn.is-playing {
            background: var(--gold-pro);
            border-color: var(--gold-pro);
            color: #fff;
            box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
        }
        .chart-playback-btn.is-paused {
            background: #475569;
            border-color: #64748b;
            color: #fff;
            box-shadow: 0 2px 8px rgba(71, 85, 105, 0.28);
        }
        .chart-playback-btn:disabled {
            opacity: 0.45;
            cursor: not-allowed;
            box-shadow: none;
        }
        body.theme-light .chart-playback-btn {
            background: #ffffff;
            color: #334155;
            border-color: #cbd5e1;
            box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
        }
        body.theme-light .chart-playback-btn:hover:not(:disabled) {
            background: rgba(245, 158, 11, 0.14);
            border-color: #d97706;
            color: #92400e;
            box-shadow: 0 2px 8px rgba(245, 158, 11, 0.18);
        }
        body.theme-light .chart-playback-btn.is-playing {
            background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
            border-color: #d97706;
            color: #451a03;
            box-shadow: 0 2px 8px rgba(245, 158, 11, 0.28);
        }
        body.theme-light .chart-playback-btn.is-paused {
            background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%);
            border-color: #64748b;
            color: #fff;
            box-shadow: 0 2px 8px rgba(71, 85, 105, 0.18);
        }
        .chart-pinned-card-wrap {
            position: absolute;
            z-index: 23;
            pointer-events: none;
            transform: translate(calc(-100% - 5px), calc(-100% - 10px));
            max-width: min(240px, calc(100vw - 40px));
        }
        .chart-pinned-card-wrap.is-edge-left {
            transform: translate(5px, calc(-100% - 10px));
        }
        .chart-pinned-card-wrap.is-edge-right {
            transform: translate(calc(-100% - 5px), calc(-100% - 10px));
        }
        .chart-pinned-card-wrap.is-flip-below {
            transform: translate(calc(-100% - 5px), 10px);
        }
        .chart-pinned-card-wrap.is-edge-left.is-flip-below {
            transform: translate(5px, 10px);
        }
        .chart-pinned-card-wrap.is-edge-right.is-flip-below {
            transform: translate(calc(-100% - 5px), 10px);
        }
        .chart-pinned-card-wrap[hidden] {
            display: none !important;
        }
        .chart-pinned-card-wrap .chart-tip-wrap {
            box-shadow: 0 8px 24px rgba(15, 23, 42, 0.28);
            opacity: 1;
            background: #ffffff;
        }
        body:not(.theme-light) .chart-pinned-card-wrap .chart-tip-wrap {
            background: #0f172a;
        }
        body:not(.theme-light) .chart-pinned-card-wrap .chart-tip-wrap--home {
            background: #1a120c;
        }
        body:not(.theme-light) .chart-pinned-card-wrap .chart-tip-wrap--away {
            background: #0c1528;
        }
        body:not(.theme-light) .chart-pinned-card-wrap .chart-tip-wrap--over {
            background: #160f24;
        }
        body:not(.theme-light) .chart-pinned-card-wrap .chart-tip-wrap--under {
            background: #0a1a14;
        }
        body.theme-light .chart-pinned-card-wrap .chart-tip-wrap--home {
            background: #fff7ed;
        }
        body.theme-light .chart-pinned-card-wrap .chart-tip-wrap--away {
            background: #eff6ff;
        }
        body.theme-light .chart-pinned-card-wrap .chart-tip-wrap--over {
            background: #f5f3ff;
        }
        body.theme-light .chart-pinned-card-wrap .chart-tip-wrap--under {
            background: #ecfdf5;
        }
        .chart-pinned-card-wrap.is-playing {
            transition: none;
        }
        .chart-pinned-card-wrap.is-playing .chart-tip-wrap {
            width: min(220px, calc(100vw - 40px));
            min-width: min(220px, calc(100vw - 40px));
            box-sizing: border-box;
            overflow: hidden;
        }
        body.theme-light .chart-pinned-card-wrap .chart-tip-wrap {
            box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
        }
        .chart-pinned-card-wrap.is-paused {
            transition: none;
        }
        .chart-pinned-card-wrap.is-paused .chart-tip-wrap {
            width: min(220px, calc(100vw - 40px));
            min-width: min(220px, calc(100vw - 40px));
            box-sizing: border-box;
            overflow: hidden;
            box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22);
        }
        body.theme-light .chart-pinned-card-wrap.is-paused .chart-tip-wrap {
            box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
        }
        .chart-hover-card-wrap {
            z-index: 22;
            pointer-events: none;
        }
        .chart-hover-card-wrap .chart-tip-wrap {
            opacity: 1;
            background: #ffffff;
        }
        body:not(.theme-light) .chart-hover-card-wrap .chart-tip-wrap {
            background: #0f172a;
        }
        body:not(.theme-light) .chart-hover-card-wrap .chart-tip-wrap--home {
            background: #1a120c;
        }
        body:not(.theme-light) .chart-hover-card-wrap .chart-tip-wrap--away {
            background: #0c1528;
        }
        body:not(.theme-light) .chart-hover-card-wrap .chart-tip-wrap--over {
            background: #160f24;
        }
        body:not(.theme-light) .chart-hover-card-wrap .chart-tip-wrap--under {
            background: #0a1a14;
        }
        body.theme-light .chart-hover-card-wrap .chart-tip-wrap--home {
            background: #fff7ed;
        }
        body.theme-light .chart-hover-card-wrap .chart-tip-wrap--away {
            background: #eff6ff;
        }
        body.theme-light .chart-hover-card-wrap .chart-tip-wrap--over {
            background: #f5f3ff;
        }
        body.theme-light .chart-hover-card-wrap .chart-tip-wrap--under {
            background: #ecfdf5;
        }
        .chart-column-guide-line {
            position: absolute;
            width: 0;
            border-left: 1.5px dashed rgba(148, 163, 184, 0.72);
            pointer-events: none;
            z-index: 16;
            transform: translateX(-50%);
            box-sizing: border-box;
        }
        .chart-column-guide-line::before,
        .chart-column-guide-line::after {
            content: '';
            position: absolute;
            left: -3px;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: rgba(148, 163, 184, 0.85);
            box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.18);
        }
        .chart-column-guide-line::before {
            top: -3px;
        }
        .chart-column-guide-line::after {
            bottom: -3px;
        }
        .chart-column-guide-line.is-hover {
            border-left-color: rgba(100, 116, 139, 0.78);
        }
        .chart-column-guide-line.is-pinned {
            border-left-color: rgba(245, 158, 11, 0.88);
            border-left-width: 2px;
        }
        .chart-column-guide-line.is-pinned::before,
        .chart-column-guide-line.is-pinned::after {
            background: rgba(245, 158, 11, 0.92);
            box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.22);
        }
        .chart-pinned-card-wrap::after,
        .chart-hover-card-wrap::after {
            display: none;
        }
        .chart-column-guide-line[hidden] {
            display: none !important;
        }
        body.theme-light .chart-column-guide-line {
            border-left-color: rgba(100, 116, 139, 0.62);
        }
        body.theme-light .chart-column-guide-line.is-pinned {
            border-left-color: rgba(71, 85, 105, 0.72);
        }
        .chart-pinned-card-wrap {
            z-index: 23;
        }
        .chart-playback-dock {
            position: absolute;
            bottom: calc(100% + 12px);
            left: 50%;
            transform: translateX(-50%);
            z-index: 20;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-end;
            gap: 8px;
            width: max-content;
            max-width: min(240px, calc(100vw - 40px));
            margin: 0;
            pointer-events: none;
        }
        .chart-playback-anchor {
            position: relative;
            display: inline-flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-end;
            flex: 0 0 auto;
            min-width: 0;
            z-index: 21;
        }
        .chart-playback-anchor .chart-playback-btn--foot {
            position: relative;
            z-index: 22;
        }
        .chart-playback-dock[hidden] {
            display: none !important;
        }
        .chart-playback-dock-pane {
            width: 220px;
            max-width: min(220px, calc(50vw - 24px));
            height: auto;
            overflow: visible;
            margin: 0;
            padding: 0;
            border: none;
            border-radius: 0;
            box-shadow: none;
            background: transparent;
            flex: 0 0 auto;
        }
        .chart-tip-wrap--dock,
        .chart-playback-dock-pane .chart-tip-wrap {
            display: block;
            width: 100%;
            min-width: 188px;
            max-width: 220px;
            height: auto;
            box-sizing: border-box;
            overflow: visible;
            border-radius: 8px;
            padding: 9px 11px 8px;
            box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16);
        }
        body.theme-light .chart-tip-wrap--dock,
        body.theme-light .chart-playback-dock-pane .chart-tip-wrap {
            box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
        }
        .chart-tip-wrap--dock .chart-tip-head,
        .chart-playback-dock-pane .chart-tip-head {
            margin-bottom: 6px;
            gap: 8px;
        }
        .chart-tip-wrap--dock .chart-tip-team,
        .chart-playback-dock-pane .chart-tip-team {
            font-size: 12px;
            gap: 6px;
        }
        .chart-tip-wrap--dock .chart-tip-team-dot,
        .chart-playback-dock-pane .chart-tip-team-dot {
            width: 8px;
            height: 8px;
        }
        .chart-tip-wrap--dock .chart-tip-time,
        .chart-playback-dock-pane .chart-tip-time {
            font-size: 10px;
        }
        .chart-tip-wrap--dock .chart-tip-hero-row,
        .chart-playback-dock-pane .chart-tip-hero-row {
            margin-bottom: 5px;
            gap: 8px;
        }
        .chart-tip-wrap--dock .chart-tip-hero-label,
        .chart-playback-dock-pane .chart-tip-hero-label {
            font-size: 10px;
        }
        .chart-tip-wrap--dock .chart-tip-hero-val,
        .chart-playback-dock-pane .chart-tip-hero-val {
            font-size: 15px;
        }
        .chart-tip-wrap--dock .chart-tip-index,
        .chart-playback-dock-pane .chart-tip-index {
            display: inline-block;
            width: fit-content;
            max-width: 100%;
            margin-bottom: 6px;
            padding: 2px 7px;
            font-size: 10px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .chart-tip-wrap--dock .chart-tip-stats,
        .chart-playback-dock-pane .chart-tip-stats {
            gap: 6px;
            padding-top: 4px;
        }
        .chart-tip-wrap--dock .chart-tip-stats--inline .chart-tip-pct-v,
        .chart-playback-dock-pane .chart-tip-stats--inline .chart-tip-pct-v {
            font-size: 11px;
        }
        .chart-tip-wrap--dock .chart-tip-hero-people,
        .chart-playback-dock-pane .chart-tip-hero-people {
            font-size: 12px;
        }
        .chart-tip-wrap--dock .chart-tip-foot,
        .chart-playback-dock-pane .chart-tip-foot {
            margin-top: 4px;
            padding-top: 4px;
            font-size: 9px;
        }
        @media (max-width: 640px) {
            .chart-playback-dock {
                max-width: min(220px, calc(100vw - 24px));
                bottom: calc(100% + 10px);
            }
            .chart-tip-wrap--dock,
            .chart-playback-dock-pane .chart-tip-wrap {
                min-width: 168px;
                max-width: 196px;
                padding: 8px 10px 7px;
            }
        }

        .chart-workspace {
            display: flex;
            flex-direction: column;
            flex: 1 1 auto;
            min-width: 0;
            min-height: 0;
            width: 100%;
            box-sizing: border-box;
        }
        .chart-toolbar {
            display: none;
            flex-shrink: 0;
            width: 100%;
            box-sizing: border-box;
            padding: 4px 0 4px;
        }
        .chart-toolbar-row {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
            align-items: center;
            column-gap: 12px;
            row-gap: 0;
            width: 100%;
            max-width: 100%;
            margin: 0 auto;
            padding: 0 12px;
            box-sizing: border-box;
        }
        .chart-toolbar-legend {
            display: none !important;
        }
        .chart-toolbar-zoom-slot {
            grid-column: 2;
            justify-self: center;
            flex-shrink: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            min-width: 0;
        }
        .chart-ai-export-btn {
            flex-shrink: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            height: 28px;
            padding: 0 12px;
            border-radius: 8px;
            border: 1px solid #64748b;
            background: linear-gradient(180deg, #475569 0%, #334155 100%);
            color: #f8fafc;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.03em;
            cursor: pointer;
            white-space: nowrap;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
            transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, opacity 0.15s;
        }
        body:not(.theme-light) .chart-ai-export-btn {
            background: linear-gradient(180deg, #475569 0%, #334155 100%);
            color: #ffffff;
            border-color: #cbd5e1;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.14);
        }
        body:not(.theme-light) .chart-ai-export-btn:hover:not(:disabled) {
            background: linear-gradient(180deg, #64748b 0%, #475569 100%);
            border-color: #e2e8f0;
            color: #ffffff;
        }
        body.theme-light .chart-ai-export-btn {
            background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
            color: #1e293b;
            border-color: #94a3b8;
            box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95);
        }
        .chart-ai-export-btn:hover:not(:disabled) {
            background: linear-gradient(180deg, #64748b 0%, #475569 100%);
            border-color: #94a3b8;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }
        body.theme-light .chart-ai-export-btn:hover:not(:disabled) {
            background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
            border-color: #64748b;
            color: #0f172a;
            box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1), inset 0 1px 0 rgba(255, 255, 255, 1);
        }
        .chart-ai-export-btn:active:not(:disabled) {
            transform: translateY(1px);
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), inset 0 1px 2px rgba(0, 0, 0, 0.15);
        }
        .chart-ai-export-btn:disabled {
            opacity: 0.42;
            cursor: not-allowed;
            background: #334155;
            border-color: #475569;
            color: #94a3b8;
            box-shadow: none;
        }
        body.theme-light .chart-ai-export-btn:disabled {
            background: #e2e8f0;
            border-color: #cbd5e1;
            color: #94a3b8;
        }
        .chart-modal-export-row {
            display: none;
        }
        .chart-modal-header-main {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 8px;
            min-width: 0;
        }
        .chart-modal-header-main .chart-modal-match-head {
            flex: 1 1 auto;
            min-width: 0;
        }
        .chart-modal-header-sub {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            margin-top: 6px;
            min-width: 0;
        }
        .chart-modal-header-sub .chart-toggle-group {
            flex: 0 1 auto;
            min-width: 0;
            margin: 0;
            max-width: min(100%, 360px);
        }
        .chart-modal-header-sub .chart-modal-header-rule {
            flex: 1 1 auto;
            min-width: 0;
            max-width: none;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 4px;
            background: none;
            border: none;
            box-shadow: none;
        }
        .chart-modal-header-rule__line {
            display: block;
            width: min(100%, 440px);
            height: 1px;
            border: 0;
            background: linear-gradient(
                90deg,
                transparent 0%,
                rgba(148, 163, 184, 0.12) 14%,
                rgba(148, 163, 184, 0.42) 50%,
                rgba(148, 163, 184, 0.12) 86%,
                transparent 100%
            );
        }
        body.theme-light .chart-modal-header-rule__line {
            background: linear-gradient(
                90deg,
                transparent 0%,
                rgba(148, 163, 184, 0.18) 14%,
                rgba(100, 116, 139, 0.36) 50%,
                rgba(148, 163, 184, 0.18) 86%,
                transparent 100%
            );
        }
        .chart-modal-header-sub .chart-divergence-summary {
            flex: 1 1 auto;
            min-width: 0;
            max-width: none;
        }
        .chart-ai-export-btn--inline {
            flex-shrink: 0;
            align-self: center;
            margin-top: 0;
        }
        .chart-modal-export-actions {
            display: inline-flex;
            align-items: center;
            justify-content: flex-end;
            flex-wrap: wrap;
            gap: 8px;
            max-width: 100%;
        }
        .chart-divergence-summary {
            flex: 0 1 auto;
            max-width: min(100%, 520px);
            font-size: 11px;
            font-weight: 800;
            line-height: 1.35;
            color: #fde68a;
            padding: 5px 10px;
            border-radius: 6px;
            background: rgba(251, 191, 36, 0.12);
            border: 1px solid rgba(251, 191, 36, 0.42);
            box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
        }
        .chart-divergence-summary.is-muted {
            color: #94a3b8;
            font-weight: 600;
            background: rgba(148, 163, 184, 0.08);
            border-color: rgba(148, 163, 184, 0.28);
        }
        .chart-divergence-summary.is-warn {
            color: #fde68a;
            border-color: rgba(251, 191, 36, 0.55);
        }
        .chart-divergence-summary.is-severe {
            color: #fca5a5;
            background: rgba(239, 68, 68, 0.14);
            border-color: rgba(239, 68, 68, 0.55);
        }
        body.theme-light .chart-divergence-summary {
            color: #92400e;
            background: rgba(251, 191, 36, 0.14);
            border-color: rgba(217, 119, 6, 0.38);
        }
        body.theme-light .chart-divergence-summary.is-muted {
            color: #64748b;
            background: rgba(148, 163, 184, 0.1);
            border-color: rgba(148, 163, 184, 0.28);
        }
        body.theme-light .chart-divergence-summary.is-severe {
            color: #dc2626;
            background: rgba(239, 68, 68, 0.1);
            border-color: rgba(220, 38, 38, 0.42);
        }
        .chart-divergence-summary__text {
            display: block;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .match-divergence-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            max-width: 100%;
            min-width: 58px;
            padding: 2px 9px;
            border: none;
            border-radius: 0;
            font-size: 10px;
            font-weight: 700;
            line-height: 1.2;
            letter-spacing: 0.02em;
            font-variant-numeric: tabular-nums;
            color: var(--text-sub);
            background: color-mix(in srgb, var(--text-sub) 5%, transparent);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            cursor: pointer;
            transition: color 0.18s, background 0.18s;
        }
        .match-divergence-btn:hover:not(:disabled) {
            color: var(--text-main);
            background: color-mix(in srgb, var(--text-sub) 11%, transparent);
        }
        .match-divergence-btn:focus-visible {
            outline: 2px solid rgba(59, 130, 246, 0.45);
            outline-offset: 1px;
        }
        .match-divergence-btn:not(.is-muted) {
            color: #a16207;
            background: color-mix(in srgb, #ca8a04 10%, transparent);
        }
        body:not(.theme-light) .match-divergence-btn:not(.is-muted) {
            color: #fcd34d;
            background: color-mix(in srgb, #eab308 12%, transparent);
        }
        .match-divergence-btn.is-severe:not(.is-muted) {
            color: #fca5a5;
            background: color-mix(in srgb, #ef4444 16%, transparent);
        }
        body.theme-light .match-divergence-btn.is-severe:not(.is-muted) {
            color: #dc2626;
            background: color-mix(in srgb, #ef4444 12%, transparent);
        }
        .match-divergence-btn.is-muted {
            color: var(--text-sub);
            opacity: 0.82;
        }
        .match-divergence-btn.is-loading,
        .match-divergence-btn:disabled {
            opacity: 0.5;
            cursor: wait;
        }
        .div-modal-overlay {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 10002;
            background: rgba(2, 6, 23, 0.62);
            backdrop-filter: blur(6px);
            align-items: center;
            justify-content: center;
            padding: 20px 16px;
            box-sizing: border-box;
        }
        body.theme-light .div-modal-overlay {
            background: rgba(15, 23, 42, 0.28);
        }
        .div-modal-overlay.open {
            display: flex;
        }
        .div-modal-card {
            position: relative;
            width: 100%;
            max-width: min(480px, 96vw);
            background: #0f172a;
            border-radius: 12px;
            box-shadow: 0 24px 48px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(148, 163, 184, 0.12);
            overflow: hidden;
        }
        body.theme-light .div-modal-card {
            background: #ffffff;
            box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(148, 163, 184, 0.22);
        }
        .div-modal-close {
            position: absolute;
            top: 12px;
            right: 12px;
            width: 28px;
            height: 28px;
            border: none;
            border-radius: 6px;
            background: transparent;
            color: #94a3b8;
            font-size: 20px;
            line-height: 1;
            cursor: pointer;
            transition: background 0.18s, color 0.18s;
            z-index: 2;
        }
        .div-modal-close:hover {
            background: rgba(148, 163, 184, 0.14);
            color: #e2e8f0;
        }
        body.theme-light .div-modal-close {
            color: #64748b;
        }
        body.theme-light .div-modal-close:hover {
            background: #f1f5f9;
            color: #0f172a;
        }
        .div-modal-head {
            padding: 20px 36px 16px;
            border-bottom: 1px solid rgba(148, 163, 184, 0.14);
            text-align: center;
        }
        body.theme-light .div-modal-head {
            border-bottom-color: #e2e8f0;
        }
        .div-modal-kicker {
            display: block;
            font-size: 9px;
            font-weight: 600;
            letter-spacing: 0.16em;
            text-transform: uppercase;
            color: #64748b;
            margin-bottom: 10px;
        }
        body.theme-light .div-modal-kicker {
            color: #94a3b8;
        }
        .div-modal-title {
            margin: 0;
            font-size: 16px;
            font-weight: 700;
            line-height: 1.35;
            color: #f1f5f9;
            letter-spacing: -0.02em;
        }
        body.theme-light .div-modal-title {
            color: #0f172a;
        }
        .div-modal-meta {
            margin-top: 6px;
            font-size: 11px;
            font-weight: 500;
            color: #64748b;
        }
        body.theme-light .div-modal-meta {
            color: #64748b;
        }
        .div-modal-body {
            padding: 16px 20px 20px;
        }
        .div-modal-content {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .div-modal-data-hero {
            display: flex;
            flex-direction: column;
            gap: 10px;
            width: 100%;
        }
        .div-modal-glossary {
            border-top: 1px solid rgba(148, 163, 184, 0.12);
            padding-top: 10px;
            margin-top: 4px;
        }
        body.theme-light .div-modal-glossary {
            border-top-color: #e2e8f0;
        }
        .div-modal-glossary-head {
            margin: 0 0 6px;
            font-size: 10px;
            font-weight: 700;
            color: #64748b;
            text-align: center;
            letter-spacing: 0.04em;
        }
        body.theme-light .div-modal-glossary-head {
            color: #94a3b8;
        }
        .div-modal-glossary-line {
            margin: 0;
            font-size: 9px;
            line-height: 1.55;
            font-weight: 400;
            color: #64748b;
            text-align: center;
        }
        .div-modal-glossary-line + .div-modal-glossary-line {
            margin-top: 5px;
        }
        body.theme-light .div-modal-glossary-line {
            color: #64748b;
        }
        .div-modal-glossary-line--note {
            margin-top: 6px;
            color: #94a3b8;
        }
        body.theme-light .div-modal-glossary-line--note {
            color: #94a3b8;
        }
        .div-modal-glossary-line--warn {
            color: #ca8a04;
        }
        body.theme-light .div-modal-glossary-line--warn {
            color: #a16207;
        }
        .div-modal-ratio-bar {
            display: flex;
            flex-direction: column;
            gap: 8px;
            width: 100%;
        }
        .div-modal-ratio-nums {
            display: flex;
            align-items: baseline;
            justify-content: center;
            gap: 12px;
            font-size: 32px;
            font-weight: 800;
            font-variant-numeric: tabular-nums;
            letter-spacing: -0.03em;
        }
        .div-modal-ratio-nums .div-val-high {
            color: #fdba74;
        }
        body.theme-light .div-modal-ratio-nums .div-val-high {
            color: #9a3412;
        }
        .div-modal-ratio-nums .div-val-low {
            color: #93c5fd;
        }
        body.theme-light .div-modal-ratio-nums .div-val-low {
            color: #1d4ed8;
        }
        .div-modal-ratio-nums .div-val-tie {
            color: #94a3b8;
        }
        .div-modal-ratio-sep {
            font-size: 22px;
            font-weight: 700;
            color: #64748b;
        }
        .div-modal-share-track {
            display: flex;
            height: 6px;
            border-radius: 999px;
            overflow: hidden;
            background: rgba(148, 163, 184, 0.14);
        }
        .div-modal-share-high {
            background: linear-gradient(90deg, #c2410c, #fb923c);
            min-width: 0;
        }
        body.theme-light .div-modal-share-high {
            background: linear-gradient(90deg, #9a3412, #ea580c);
        }
        .div-modal-share-low {
            background: linear-gradient(90deg, #1e40af, #3b82f6);
            min-width: 0;
        }
        body.theme-light .div-modal-share-low {
            background: linear-gradient(90deg, #1d4ed8, #2563eb);
        }
        .div-modal-share-tie {
            background: rgba(148, 163, 184, 0.35);
            min-width: 0;
        }
        .div-modal-sheet {
            border: 1px solid rgba(148, 163, 184, 0.16);
            border-radius: 10px;
            overflow: hidden;
            background: rgba(15, 23, 42, 0.35);
            width: 100%;
        }
        body.theme-light .div-modal-sheet {
            background: #ffffff;
            border-color: #e2e8f0;
        }
        .div-modal-sheet-row {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
            align-items: center;
            min-height: 46px;
            border-bottom: 1px solid rgba(148, 163, 184, 0.1);
            column-gap: 0;
        }
        body.theme-light .div-modal-sheet-row {
            border-bottom-color: #f1f5f9;
        }
        .div-modal-sheet-row:last-child {
            border-bottom: none;
        }
        .div-modal-sheet-row--head {
            min-height: 30px;
            background: rgba(148, 163, 184, 0.08);
        }
        body.theme-light .div-modal-sheet-row--head {
            background: #f8fafc;
        }
        .div-modal-sheet-row--l60 {
            background: rgba(234, 179, 8, 0.05);
        }
        body.theme-light .div-modal-sheet-row--l60 {
            background: #fffbeb;
        }
        .div-modal-sheet-row--total {
            min-height: 50px;
        }
        .div-modal-cell {
            padding: 8px 12px;
            font-size: 13px;
            font-weight: 600;
            font-variant-numeric: tabular-nums;
        }
        .div-modal-cell--side {
            font-weight: 800;
            font-size: 15px;
        }
        .div-modal-cell--home-col {
            text-align: right;
            padding-right: 10px;
            padding-left: 8px;
        }
        .div-modal-cell--away-col {
            text-align: left;
            padding-left: 10px;
            padding-right: 8px;
        }
        .div-modal-sheet-row--total .div-modal-cell--side {
            font-size: 22px;
            font-weight: 900;
        }
        .div-modal-cell--mid {
            text-align: center;
            font-size: 14px;
            font-weight: 700;
            color: #64748b;
            border-left: 1px solid rgba(148, 163, 184, 0.12);
            border-right: 1px solid rgba(148, 163, 184, 0.12);
            padding: 8px 10px;
            line-height: 1.45;
            min-width: 92px;
            max-width: 120px;
            white-space: nowrap;
        }
        body.theme-light .div-modal-cell--mid {
            color: #334155;
            border-left-color: #f1f5f9;
            border-right-color: #f1f5f9;
        }
        .div-modal-sheet-row--head .div-modal-cell--side {
            font-size: 10px;
            font-weight: 700;
            color: #94a3b8;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        body.theme-light .div-modal-sheet-row--head .div-modal-cell--side {
            color: #64748b;
        }
        .div-modal-sheet-row--head .div-modal-cell--home-col {
            color: #fdba74;
        }
        body.theme-light .div-modal-sheet-row--head .div-modal-cell--home-col {
            color: #9a3412;
        }
        .div-modal-sheet-row--head .div-modal-cell--away-col {
            color: #93c5fd;
        }
        body.theme-light .div-modal-sheet-row--head .div-modal-cell--away-col {
            color: #1d4ed8;
        }
        .div-modal-sheet-row--head .div-modal-cell--mid {
            font-size: 14px;
            font-weight: 700;
            letter-spacing: 0;
            text-transform: none;
            color: #64748b;
        }
        .div-modal-cell--high {
            color: #fdba74;
        }
        body.theme-light .div-modal-cell--high {
            color: #9a3412;
        }
        .div-modal-cell--low {
            color: #93c5fd;
        }
        body.theme-light .div-modal-cell--low {
            color: #1d4ed8;
        }
        .div-modal-cell--tie {
            color: #94a3b8;
        }
        body.theme-light .div-modal-cell--tie {
            color: #64748b;
        }
        .div-modal-note {
            margin: 0;
            padding-top: 0;
            font-size: 9px;
            line-height: 1.4;
            font-weight: 400;
            color: #64748b;
            text-align: center;
        }
        body.theme-light .div-modal-note {
            color: #94a3b8;
        }
        .div-modal-note.is-warn {
            color: #ca8a04;
        }
        body.theme-light .div-modal-note.is-warn {
            color: #a16207;
        }
        @media (max-width: 640px) {
            .chart-modal-header-rule {
                flex-basis: auto;
                max-width: none;
            }
        }
        .chart-ai-export-btn--header {
            height: 30px;
            padding: 0 12px;
            font-size: 11px;
            min-width: 0;
        }
        @media (max-width: 640px) {
            .chart-ai-export-btn--header.chart-ai-export-btn--inline {
                height: 26px;
                padding: 0 8px;
                font-size: 10px;
                letter-spacing: 0;
            }
        }
        .chart-ai-export-toast {
            position: fixed;
            inset: 0;
            z-index: 100050;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 16px;
            background: rgba(2, 6, 23, 0.58);
            backdrop-filter: blur(4px);
            box-sizing: border-box;
        }
        .chart-ai-export-toast[hidden] {
            display: none !important;
        }
        .chart-ai-export-toast-box {
            width: min(92vw, 420px);
            padding: 20px 18px 16px;
            border-radius: 14px;
            border: 1px solid rgba(148, 163, 184, 0.22);
            background: var(--panel-bg, rgba(15, 23, 42, 0.98));
            box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
            text-align: center;
            box-sizing: border-box;
        }
        body.theme-light .chart-ai-export-toast-box {
            background: #ffffff;
            border-color: #cbd5e1;
            box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
        }
        .chart-ai-export-toast-icon {
            width: 44px;
            height: 44px;
            margin: 0 auto 12px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
            font-weight: 900;
            color: #34d399;
            background: rgba(16, 185, 129, 0.14);
            border: 1px solid rgba(52, 211, 153, 0.45);
            line-height: 1;
        }
        body.theme-light .chart-ai-export-toast-icon {
            color: #059669;
            background: rgba(16, 185, 129, 0.1);
        }
        .chart-ai-export-toast-title {
            margin: 0 0 14px;
            font-size: 14px;
            font-weight: 800;
            letter-spacing: 0.01em;
            line-height: 1.5;
            color: var(--text-main, #f1f5f9);
        }
        body.theme-light .chart-ai-export-toast-title { color: #0f172a; }
        .chart-ai-export-toast-lead {
            display: none;
        }
        .chart-ai-export-toast-links {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 8px;
            margin-bottom: 16px;
        }
        .chart-ai-export-toast-link {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 32px;
            padding: 0 12px;
            border-radius: 999px;
            border: 1px solid rgba(148, 163, 184, 0.28);
            background: rgba(148, 163, 184, 0.08);
            color: #cbd5e1;
            font-size: 11px;
            font-weight: 800;
            text-decoration: none;
            letter-spacing: 0.02em;
            transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.12s;
        }
        body.theme-light .chart-ai-export-toast-link {
            color: #334155;
            background: #f8fafc;
            border-color: #e2e8f0;
        }
        .chart-ai-export-toast-link:hover {
            background: rgba(59, 130, 246, 0.18);
            border-color: rgba(96, 165, 250, 0.55);
            color: #93c5fd;
            transform: translateY(-1px);
        }
        body.theme-light .chart-ai-export-toast-link:hover {
            color: #1d4ed8;
            background: rgba(59, 130, 246, 0.1);
        }
        .chart-ai-export-toast-link--intl {
            opacity: 0.88;
            font-weight: 700;
        }
        .chart-ai-export-toast-divider {
            flex: 1 1 100%;
            margin: 2px 0 0;
            font-size: 10px;
            font-weight: 700;
            color: #64748b;
            letter-spacing: 0.04em;
        }
        .chart-ai-export-toast-divider--primary {
            margin-top: 10px;
        }
        .chart-ai-export-toast-msg {
            display: none;
        }
        .chart-ai-export-toast-ok {
            min-width: 88px;
            height: 32px;
            padding: 0 18px;
            border-radius: 999px;
            border: 1px solid rgba(59, 130, 246, 0.55);
            background: rgba(59, 130, 246, 0.18);
            color: #93c5fd;
            font-size: 12px;
            font-weight: 800;
            cursor: pointer;
        }
        body.theme-light .chart-ai-export-toast-ok {
            color: #1d4ed8;
            background: rgba(59, 130, 246, 0.12);
            border-color: rgba(37, 99, 235, 0.35);
        }
        .chart-ai-export-toast-ok:hover {
            background: rgba(59, 130, 246, 0.28);
        }
        .chart-export-dialog {
            position: fixed;
            inset: 0;
            z-index: 100060;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 12px;
            background: rgba(2, 6, 23, 0.72);
            backdrop-filter: blur(6px);
            box-sizing: border-box;
        }
        .chart-export-dialog[hidden] { display: none !important; }
        .chart-export-dialog__panel {
            width: min(96vw, 520px);
            max-height: min(88vh, 720px);
            display: flex;
            flex-direction: column;
            border-radius: 14px;
            border: 1px solid rgba(148, 163, 184, 0.22);
            background: rgba(15, 23, 42, 0.98);
            box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
            overflow: hidden;
        }
        body.theme-light .chart-export-dialog__panel {
            background: #fff;
            border-color: #cbd5e1;
        }
        .chart-export-dialog__head {
            padding: 14px 16px 10px;
            border-bottom: 1px solid rgba(148, 163, 184, 0.14);
        }
        .chart-export-dialog__head-row {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 10px;
        }
        .chart-export-dialog__title {
            margin: 0;
            font-size: 15px;
            font-weight: 900;
            color: var(--text-main, #f1f5f9);
            letter-spacing: 0.02em;
        }
        body.theme-light .chart-export-dialog__title { color: #0f172a; }
        .chart-export-dialog__ctx {
            margin: 6px 0 0;
            font-size: 11px;
            line-height: 1.45;
            color: var(--text-sub, #94a3b8);
            font-weight: 600;
        }
        .chart-export-dialog__close {
            flex-shrink: 0;
            width: 28px;
            height: 28px;
            border: none;
            border-radius: 8px;
            background: rgba(148, 163, 184, 0.12);
            color: #94a3b8;
            font-size: 18px;
            line-height: 1;
            cursor: pointer;
        }
        .chart-export-dialog__source {
            display: flex;
            gap: 14px;
            padding: 10px 16px 0;
            font-size: 12px;
            font-weight: 700;
            color: #cbd5e1;
        }
        body.theme-light .chart-export-dialog__source { color: #475569; }
        .chart-export-dialog__source label {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
        }
        .chart-export-dialog__tabs {
            display: flex;
            gap: 6px;
            padding: 10px 16px 0;
        }
        .chart-export-dialog__tab {
            flex: 1;
            height: 30px;
            border-radius: 8px;
            border: 1px solid rgba(148, 163, 184, 0.2);
            background: transparent;
            color: #94a3b8;
            font-size: 11px;
            font-weight: 800;
            cursor: pointer;
        }
        .chart-export-dialog__tab.is-active {
            border-color: rgba(59, 130, 246, 0.55);
            background: rgba(59, 130, 246, 0.16);
            color: #93c5fd;
        }
        body.theme-light .chart-export-dialog__tab.is-active {
            color: #1d4ed8;
            background: rgba(59, 130, 246, 0.1);
        }
        .chart-export-dialog__body {
            flex: 1;
            min-height: 0;
            padding: 10px 16px;
        }
        .chart-export-dialog__pane {
            display: none;
            height: min(36vh, 280px);
        }
        .chart-export-dialog__pane.is-active { display: block; }
        .chart-export-dialog__readonly,
        .chart-export-dialog__textarea {
            width: 100%;
            height: 100%;
            box-sizing: border-box;
            margin: 0;
            padding: 10px 11px;
            border-radius: 10px;
            border: 1px solid rgba(148, 163, 184, 0.18);
            background: rgba(2, 6, 23, 0.35);
            color: #e2e8f0;
            font-size: 11px;
            line-height: 1.5;
            font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
            overflow: auto;
            white-space: pre-wrap;
            word-break: break-word;
            resize: none;
        }
        body.theme-light .chart-export-dialog__readonly,
        body.theme-light .chart-export-dialog__textarea {
            background: #f8fafc;
            color: #334155;
            border-color: #e2e8f0;
        }
        .chart-export-dialog__textarea.is-readonly {
            opacity: 1;
            cursor: default;
            color: #94a3b8;
        }
        body.theme-light .chart-export-dialog__textarea.is-readonly {
            color: #64748b;
        }
        .chart-export-dialog__textarea::placeholder {
            color: #64748b;
            opacity: 1;
            white-space: pre-line;
        }
        body.theme-light .chart-export-dialog__textarea::placeholder {
            color: #94a3b8;
        }
        .chart-export-dialog__textarea:disabled {
            opacity: 0.55;
            cursor: not-allowed;
        }
        .chart-export-dialog__textarea:not(.is-readonly):disabled {
            opacity: 0.55;
        }
        .chart-export-dialog__foot {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            justify-content: flex-end;
            padding: 10px 16px 14px;
            border-top: 1px solid rgba(148, 163, 184, 0.14);
        }
        .chart-export-dialog__btn {
            height: 32px;
            padding: 0 14px;
            border-radius: 999px;
            border: 1px solid rgba(148, 163, 184, 0.28);
            background: rgba(148, 163, 184, 0.1);
            color: #cbd5e1;
            font-size: 11px;
            font-weight: 800;
            cursor: pointer;
        }
        body.theme-light .chart-export-dialog__btn { color: #475569; }
        .chart-export-dialog__btn--primary {
            border-color: #fbbf24;
            background: linear-gradient(180deg, #b45309 0%, #92400e 100%);
            color: #fffbeb;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
        }
        body:not(.theme-light) .chart-export-dialog__btn--primary:hover:not(:disabled) {
            background: linear-gradient(180deg, #d97706 0%, #b45309 100%);
            border-color: #fde68a;
            color: #ffffff;
        }
        body.theme-light .chart-export-dialog__btn--primary {
            color: #ffffff;
            background: linear-gradient(180deg, #d97706 0%, #b45309 100%);
            border-color: #f59e0b;
        }
        body.theme-light .chart-export-dialog__btn--primary:hover:not(:disabled) {
            background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
        }
        .chart-export-dialog__btn:disabled { opacity: 0.45; cursor: not-allowed; }
        .chart-export-dialog__hint {
            flex: 1 1 100%;
            margin: 0;
            font-size: 10px;
            line-height: 1.45;
            color: #64748b;
            text-align: left;
        }
        .chart-toolbar-meta-slot {
            grid-column: 3;
            justify-self: end;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            min-width: 0;
            max-width: 100%;
        }
        @media (min-width: 641px) {
            .chart-toolbar-row {
                padding: 0 28px;
                column-gap: 16px;
            }
        }
        #chartSampleOkWrap.is-visible {
            display: inline-flex;
            align-items: center;
        }
        #chartSampleOkWrap {
            display: none;
        }
        .chart-sample-notice-bar {
            display: none;
            width: auto;
            max-width: 100%;
            box-sizing: border-box;
            margin: 0;
        }
        .chart-sample-notice-bar.is-visible {
            display: inline-flex;
            align-items: center;
        }
        .chart-sample-notice {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 0;
            border: none;
            border-radius: 0;
            background: none;
            box-shadow: none;
            font-size: 12px;
            font-weight: 700;
            line-height: 1.3;
            letter-spacing: 0;
            text-align: left;
            color: var(--text-sub);
            white-space: nowrap;
        }
        .chart-sample-notice__icon {
            flex-shrink: 0;
            font-size: 13px;
            line-height: 1;
        }
        .chart-sample-notice__main {
            font-size: 12.5px;
            font-weight: 900;
            letter-spacing: 0.03em;
        }
        .chart-sample-notice__sub {
            font-size: 11px;
            font-weight: 700;
            opacity: 0.92;
        }
        .chart-sample-notice--ok {
            color: var(--text-sub);
            opacity: 0.88;
        }
        body.theme-light .chart-sample-notice--ok { color: #64748b; }
        body:not(.theme-light) .chart-sample-notice--ok { color: #94a3b8; }
        .chart-sample-notice--warn {
            gap: 0;
            width: auto;
            max-width: 100%;
            box-sizing: border-box;
            justify-content: flex-start;
            padding: 3px 8px;
            border-radius: 6px;
            font-size: 10.5px;
            font-weight: 800;
            letter-spacing: 0;
            line-height: 1.25;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            text-align: left;
            flex-wrap: nowrap;
            border: 1px solid rgba(245, 158, 11, 0.52);
            border-left: 3px solid #dc2626;
            box-shadow: 0 1px 6px rgba(180, 83, 9, 0.14);
        }
        body.theme-light .chart-sample-notice--warn {
            background: linear-gradient(180deg, rgba(255, 251, 235, 0.98), rgba(254, 243, 199, 0.94));
            border-color: rgba(245, 158, 11, 0.55);
            border-left-color: #dc2626;
        }
        body:not(.theme-light) .chart-sample-notice--warn {
            background: rgba(146, 64, 14, 0.32);
            border-color: rgba(251, 191, 36, 0.48);
            border-left-color: #ef4444;
        }
        .chart-sample-notice--warn .chart-sample-notice__icon,
        .chart-sample-notice--warn .chart-sample-notice__main {
            color: #dc2626;
        }
        body:not(.theme-light) .chart-sample-notice--warn .chart-sample-notice__icon,
        body:not(.theme-light) .chart-sample-notice--warn .chart-sample-notice__main {
            color: #f87171;
        }
        .chart-sample-notice__detail {
            font-size: 12px;
            font-weight: 700;
            color: #92400e;
        }
        body:not(.theme-light) .chart-sample-notice__detail {
            color: #fcd34d;
        }
        .chart-sample-notice--warn .chart-sample-notice__icon {
            margin-right: 4px;
            text-shadow: none;
        }
        @keyframes chart-notice-warn-nudge {
            0%, 100% {
                transform: scale(1);
                box-shadow: 0 1px 6px rgba(180, 83, 9, 0.14);
                border-color: rgba(245, 158, 11, 0.52);
            }
            50% {
                transform: scale(1.018);
                box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.22), 0 2px 12px rgba(180, 83, 9, 0.22);
                border-left-color: #ef4444;
            }
        }
        .chart-sample-notice--warn.is-nudging {
            animation: chart-notice-warn-nudge 0.85s ease-in-out 1;
        }
        @media (prefers-reduced-motion: reduce) {
            .chart-sample-notice--warn.is-nudging {
                animation: none;
                transform: none;
            }
        }
        .chart-legend-line {
            display: inline-block;
            width: 24px;
            height: 4px;
            background: #3b82f6;
            border-radius: 2px;
            flex-shrink: 0;
            vertical-align: middle;
        }
        .chart-legend-swatch-gold {
            width: 16px;
            height: 10px;
            border-radius: 2px;
            flex-shrink: 0;
            background: linear-gradient(180deg, rgba(234, 179, 8, 0.65) 0%, rgba(254, 249, 195, 0.25) 100%);
            border: 1px solid rgba(202, 138, 4, 0.55);
        }
        .chart-legend-swatch-bar {
            width: 6px;
            height: 12px;
            border-radius: 1px;
            flex-shrink: 0;
            background: #e1b504;
            border: 1px solid #c9a004;
        }
        .chart-money-view-toggle {
            display: inline-flex;
            align-items: stretch;
            border: 1px solid rgba(202, 138, 4, 0.35);
            border-radius: 6px;
            overflow: hidden;
            flex-shrink: 0;
        }
        .chart-panel-controls {
            display: inline-flex;
            align-items: stretch;
            flex-shrink: 0;
            gap: 5px;
            margin-left: 4px;
            pointer-events: auto;
        }
        .chart-panel-main-toggle {
            border-color: rgba(202, 138, 4, 0.45);
        }
        .chart-panel-overlay-toggle {
            display: inline-flex;
            align-items: stretch;
            border: 1px solid rgba(100, 116, 139, 0.38);
            border-radius: 6px;
            overflow: hidden;
            flex-shrink: 0;
            background: rgba(148, 163, 184, 0.06);
        }
        body:not(.theme-light) .chart-panel-overlay-toggle {
            border-color: rgba(148, 163, 184, 0.32);
            background: rgba(15, 23, 42, 0.35);
        }
        .chart-money-view-btn {
            border: none;
            background: transparent;
            color: var(--text-sub);
            font-size: 10px;
            font-weight: 800;
            padding: 2px 7px;
            cursor: pointer;
            letter-spacing: 0.02em;
            transition: background 0.2s, color 0.2s;
        }
        .chart-money-view-btn.is-active {
            background: rgba(234, 179, 8, 0.22);
            color: #ca8a04;
        }
        body:not(.theme-light) .chart-money-view-btn.is-active {
            background: rgba(234, 179, 8, 0.28);
            color: #fde68a;
        }
        .chart-money-view-btn:hover:not(.is-active) {
            background: rgba(148, 163, 184, 0.12);
        }
        .chart-odds-view-btn {
            border: none;
            border-left: 1px solid rgba(100, 116, 139, 0.38);
            background: transparent;
            color: var(--text-sub);
            font-size: 10px;
            font-weight: 800;
            padding: 2px 7px;
            cursor: pointer;
            letter-spacing: 0.02em;
            transition: background 0.2s, color 0.2s;
            pointer-events: auto;
        }
        body:not(.theme-light) .chart-odds-view-btn {
            border-left-color: rgba(148, 163, 184, 0.32);
        }
        .chart-odds-view-btn.is-active {
            background: rgba(20, 184, 166, 0.22);
            color: #0d9488;
        }
        body:not(.theme-light) .chart-odds-view-btn.is-active {
            background: rgba(20, 184, 166, 0.28);
            color: #5eead4;
        }
        .chart-odds-view-btn:hover:not(.is-active) {
            background: rgba(148, 163, 184, 0.12);
        }
        .chart-kelly-view-btn {
            border: none;
            border-left: 1px solid rgba(100, 116, 139, 0.38);
            background: transparent;
            color: var(--text-sub);
            font-size: 10px;
            font-weight: 800;
            padding: 2px 7px;
            cursor: pointer;
            letter-spacing: 0.02em;
            transition: background 0.2s, color 0.2s;
            pointer-events: auto;
        }
        body:not(.theme-light) .chart-kelly-view-btn {
            border-left-color: rgba(148, 163, 184, 0.32);
        }
        .chart-kelly-view-btn.is-active {
            background: rgba(168, 85, 247, 0.22);
            color: #7c3aed;
        }
        body:not(.theme-light) .chart-kelly-view-btn.is-active {
            background: rgba(168, 85, 247, 0.28);
            color: #c084fc;
        }
        .chart-kelly-view-btn:hover:not(.is-active) {
            background: rgba(148, 163, 184, 0.12);
        }
        .chart-kelly-help-btn {
            border: none;
            border-left: 1px solid rgba(100, 116, 139, 0.38);
            background: transparent;
            color: var(--text-sub);
            font-size: 10px;
            font-weight: 800;
            padding: 2px 6px;
            cursor: pointer;
            line-height: 1;
            pointer-events: auto;
        }
        body:not(.theme-light) .chart-kelly-help-btn {
            border-left-color: rgba(148, 163, 184, 0.32);
        }
        .chart-kelly-help-btn:hover,
        .chart-kelly-help-btn[aria-expanded="true"] {
            background: rgba(148, 163, 184, 0.16);
            color: var(--text-main);
        }
        .chart-kelly-help-pop {
            position: fixed;
            z-index: 12050;
            width: min(260px, calc(100vw - 16px));
            padding: 7px 10px;
            border-radius: 6px;
            font-size: 12px;
            font-weight: 500;
            line-height: 1.5;
            color: #5b4a1f;
            background: #fff4c2;
            border: 1px solid #ead58a;
            box-shadow: 0 4px 12px rgba(92, 74, 31, 0.14);
        }
        body.theme-light .chart-kelly-help-pop {
            color: #5b4a1f;
            background: #fff4c2;
            border-color: #ead58a;
            box-shadow: 0 4px 12px rgba(92, 74, 31, 0.12);
        }
        .chart-people-view-btn {
            border: none;
            background: transparent;
            color: #6366f1;
            font-size: 10px;
            font-weight: 800;
            padding: 2px 7px;
            cursor: pointer;
            letter-spacing: 0.02em;
            transition: background 0.2s, color 0.2s;
            pointer-events: auto;
        }
        .chart-people-view-btn.is-active {
            background: rgba(99, 102, 241, 0.2);
            color: #4338ca;
        }
        body:not(.theme-light) .chart-people-view-btn.is-active {
            background: rgba(99, 102, 241, 0.28);
            color: #c7d2fe;
        }
        .chart-people-view-btn:hover:not(.is-active) {
            background: rgba(99, 102, 241, 0.1);
        }
        .chart-panel-head {
            position: absolute;
            left: 0;
            right: 0;
            display: none;
            align-items: center;
            justify-content: center;
            flex-wrap: nowrap;
            gap: 4px;
            z-index: 11;
            pointer-events: none;
            padding: 0 10px;
            line-height: 1.15;
            white-space: nowrap;
        }
        .chart-panel-head-row--title,
        .chart-panel-head-row--controls {
            display: contents;
        }
        .chart-panel-legend {
            display: inline-flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 6px;
            margin-left: 2px;
            font-size: 9px;
            font-weight: 700;
            color: var(--text-sub);
            pointer-events: none;
        }
        .chart-panel-legend-sep {
            width: 1px;
            height: 10px;
            background: rgba(148, 163, 184, 0.35);
            flex-shrink: 0;
        }
        .chart-panel-legend-item {
            display: inline-flex;
            align-items: center;
            gap: 3px;
            opacity: 1;
            transition: opacity 0.15s;
        }
        .chart-panel-legend-item--line {
            pointer-events: auto;
            cursor: default;
        }
        .chart-panel-legend:not(.is-people-on) .chart-panel-legend-item--people {
            opacity: 0.38;
        }
        .chart-panel-legend.is-people-on:not(.is-people-live) .chart-panel-legend-item--people {
            opacity: 0.72;
        }
        .chart-panel-legend.is-people-live .chart-panel-legend-item--people {
            opacity: 1;
        }
        .chart-panel-legend:not(.is-odds-on) .chart-panel-legend-item--odds {
            opacity: 0.38;
        }
        .chart-panel-legend-swatch {
            flex-shrink: 0;
        }
        .chart-panel-legend-swatch--inflow {
            width: 5px;
            height: 10px;
            border-radius: 1px;
            background: #e1b504;
            border: 1px solid #c9a004;
        }
        .chart-panel-legend-swatch--pct {
            width: 12px;
            height: 7px;
            border-radius: 2px;
            background: linear-gradient(180deg, rgba(234, 179, 8, 0.65) 0%, rgba(254, 249, 195, 0.25) 100%);
            border: 1px solid rgba(202, 138, 4, 0.55);
        }
        .chart-panel-legend-swatch--people {
            width: 4px;
            height: 9px;
            border-radius: 1px;
            background: #6366f1;
            border: 1px solid rgba(79, 70, 229, 0.45);
        }
        .chart-panel-legend-swatch--odds {
            width: 12px;
            height: 0;
            border-top: 2px solid #14b8a6;
        }
        .chart-panel-legend-swatch--line {
            width: 6px;
            height: 6px;
            background: #db2777;
            transform: rotate(45deg);
            box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
        }
        .chart-panel-legend-swatch--kelly {
            width: 12px;
            height: 0;
            border-top: 1.5px solid #a855f7;
        }
        .chart-panel-legend-item--kelly {
            cursor: pointer;
            user-select: none;
        }
        .chart-panel-legend-item--kelly.is-active .chart-panel-legend-swatch--kelly {
            border-top-color: #c084fc;
            box-shadow: 0 0 6px rgba(168, 85, 247, 0.45);
        }
        .chart-panel-legend.is-kelly-on .chart-panel-legend-item--kelly {
            color: var(--text-main);
        }
        .chart-panel-legend:not(.is-inflow-on) .chart-panel-legend-label--inflow,
        .chart-panel-legend:not(.is-inflow-on) .chart-panel-legend-swatch--inflow {
            display: none;
        }
        .chart-panel-legend:not(.is-pct-on) .chart-panel-legend-label--pct,
        .chart-panel-legend:not(.is-pct-on) .chart-panel-legend-swatch--pct {
            display: none;
        }
        .chart-panel-head-mark {
            font-size: 12px;
            font-weight: 900;
            color: var(--text-main);
            flex-shrink: 0;
        }
        .chart-panel-head-name {
            font-size: 12px;
            font-weight: 900;
            font-family: Verdana, sans-serif;
            color: var(--text-main);
            max-width: 42vw;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .chart-panel-head-hc {
            font-size: 11px;
            font-weight: 700;
            font-family: 'Roboto Mono', 'SF Mono', 'Cascadia Mono', 'Consolas', monospace;
            color: var(--text-main);
            flex-shrink: 0;
        }
        .chart-panel-head-hc:empty {
            display: none;
        }
        .chart-panel-head--top .chart-panel-head-mark,
        .chart-panel-head--top .chart-panel-head-name,
        .chart-panel-head--top .chart-panel-head-hc {
            color: #c2410c;
        }
        body:not(.theme-light) .chart-panel-head--top .chart-panel-head-mark,
        body:not(.theme-light) .chart-panel-head--top .chart-panel-head-name,
        body:not(.theme-light) .chart-panel-head--top .chart-panel-head-hc {
            color: #fdba74;
        }
        body.theme-light .chart-panel-head--top .chart-panel-head-mark,
        body.theme-light .chart-panel-head--top .chart-panel-head-name,
        body.theme-light .chart-panel-head--top .chart-panel-head-hc {
            color: #9a3412;
        }
        .chart-panel-head--bottom .chart-panel-head-mark,
        .chart-panel-head--bottom .chart-panel-head-name,
        .chart-panel-head--bottom .chart-panel-head-hc {
            color: #1e40af;
        }
        body:not(.theme-light) .chart-panel-head--bottom .chart-panel-head-mark,
        body:not(.theme-light) .chart-panel-head--bottom .chart-panel-head-name,
        body:not(.theme-light) .chart-panel-head--bottom .chart-panel-head-hc {
            color: #93c5fd;
        }
        body.theme-light .chart-panel-head--bottom .chart-panel-head-mark,
        body.theme-light .chart-panel-head--bottom .chart-panel-head-name,
        body.theme-light .chart-panel-head--bottom .chart-panel-head-hc {
            color: #1d4ed8;
        }
        /* 大小球：上图大球 / 下图小球，与 Top5 成套（大球紫 · 小球绿） */
        #chartModalOverlay.chart-modal-mode-total .chart-panel-head--top .chart-panel-head-mark,
        #chartModalOverlay.chart-modal-mode-total .chart-panel-head--top .chart-panel-head-name,
        #chartModalOverlay.chart-modal-mode-total .chart-panel-head--top .chart-panel-head-hc {
            color: #7c3aed;
        }
        body:not(.theme-light) #chartModalOverlay.chart-modal-mode-total .chart-panel-head--top .chart-panel-head-mark,
        body:not(.theme-light) #chartModalOverlay.chart-modal-mode-total .chart-panel-head--top .chart-panel-head-name,
        body:not(.theme-light) #chartModalOverlay.chart-modal-mode-total .chart-panel-head--top .chart-panel-head-hc {
            color: #c4b5fd;
        }
        body.theme-light #chartModalOverlay.chart-modal-mode-total .chart-panel-head--top .chart-panel-head-mark,
        body.theme-light #chartModalOverlay.chart-modal-mode-total .chart-panel-head--top .chart-panel-head-name,
        body.theme-light #chartModalOverlay.chart-modal-mode-total .chart-panel-head--top .chart-panel-head-hc {
            color: #5b21b6;
        }
        #chartModalOverlay.chart-modal-mode-total .chart-panel-head--bottom .chart-panel-head-mark,
        #chartModalOverlay.chart-modal-mode-total .chart-panel-head--bottom .chart-panel-head-name,
        #chartModalOverlay.chart-modal-mode-total .chart-panel-head--bottom .chart-panel-head-hc {
            color: #059669;
        }
        body:not(.theme-light) #chartModalOverlay.chart-modal-mode-total .chart-panel-head--bottom .chart-panel-head-mark,
        body:not(.theme-light) #chartModalOverlay.chart-modal-mode-total .chart-panel-head--bottom .chart-panel-head-name,
        body:not(.theme-light) #chartModalOverlay.chart-modal-mode-total .chart-panel-head--bottom .chart-panel-head-hc {
            color: #6ee7b7;
        }
        body.theme-light #chartModalOverlay.chart-modal-mode-total .chart-panel-head--bottom .chart-panel-head-mark,
        body.theme-light #chartModalOverlay.chart-modal-mode-total .chart-panel-head--bottom .chart-panel-head-name,
        body.theme-light #chartModalOverlay.chart-modal-mode-total .chart-panel-head--bottom .chart-panel-head-hc {
            color: #047857;
        }
        .chart-panel-money-toggle {
            pointer-events: auto;
        }
        .chart-panel-overlay-toggle {
            pointer-events: auto;
        }
        .chart-panel-plot-hint {
            display: none;
            position: absolute;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 12;
            max-width: min(360px, 72%);
            padding: 6px 12px;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 700;
            line-height: 1.4;
            text-align: center;
            color: var(--text-sub);
            background: rgba(15, 23, 42, 0.92);
            border: 1px solid rgba(148, 163, 184, 0.28);
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
            pointer-events: none;
            user-select: none;
        }
        body.theme-light .chart-panel-plot-hint {
            color: #64748b;
            background: rgba(255, 255, 255, 0.94);
            border-color: rgba(148, 163, 184, 0.35);
        }
        body:not(.theme-light) .chart-panel-plot-hint {
            color: #94a3b8;
        }
        .chart-panel-inflow-total {
            display: none;
            position: absolute;
            left: 0;
            right: auto;
            z-index: 17;
            pointer-events: none;
            user-select: none;
            text-align: left;
            line-height: 1.2;
            width: max-content;
            max-width: min(360px, 78vw);
            padding: 2px 6px;
            border-radius: 4px;
            background: #ffffff;
            border: 1px solid rgba(148, 163, 184, 0.28);
            box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
            opacity: 1;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            white-space: nowrap;
        }
        body:not(.theme-light) .chart-panel-inflow-total {
            background: #0f172a;
            border-color: rgba(148, 163, 184, 0.28);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
        }
        .chart-panel-inflow-total.is-visible {
            display: block;
        }
        .chart-panel-inflow-total__label {
            display: inline;
            font-size: 10px;
            font-weight: 800;
            font-family: Verdana, "Microsoft YaHei", "PingFang SC", sans-serif;
            letter-spacing: 0.01em;
        }
        .chart-panel-inflow-total__amt {
            display: inline;
            font-size: 12px;
            font-weight: 900;
            font-family: 'Roboto Mono', 'SF Mono', 'Cascadia Mono', 'Consolas', monospace;
            letter-spacing: 0;
            white-space: nowrap;
        }
        .chart-panel-inflow-total__share {
            display: inline;
            margin: 0;
            padding: 0;
            font-size: inherit;
            font-weight: inherit;
            font-family: inherit;
            letter-spacing: 0;
            white-space: nowrap;
        }
        .chart-panel-inflow-total--top {
            border-left: 2px solid #ea580c;
        }
        .chart-panel-inflow-total--top .chart-panel-inflow-total__label {
            color: #9a3412;
        }
        .chart-panel-inflow-total--top .chart-panel-inflow-total__amt {
            color: #c2410c;
        }
        body:not(.theme-light) .chart-panel-inflow-total--top .chart-panel-inflow-total__label {
            color: #fdba74;
        }
        body:not(.theme-light) .chart-panel-inflow-total--top .chart-panel-inflow-total__amt {
            color: #fb923c;
        }
        .chart-panel-inflow-total--bottom {
            border-left: 2px solid #2563eb;
        }
        .chart-panel-inflow-total--bottom .chart-panel-inflow-total__label {
            color: #1e3a8a;
        }
        .chart-panel-inflow-total--bottom .chart-panel-inflow-total__amt {
            color: #1e40af;
        }
        body:not(.theme-light) .chart-panel-inflow-total--bottom .chart-panel-inflow-total__label {
            color: #93c5fd;
        }
        body:not(.theme-light) .chart-panel-inflow-total--bottom .chart-panel-inflow-total__amt {
            color: #60a5fa;
        }
        .chart-panel-inflow-total--head-badge {
            z-index: 12;
            border-radius: 6px;
            box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
        }
        body:not(.theme-light) .chart-panel-inflow-total--head-badge {
            box-shadow: 0 3px 12px rgba(0, 0, 0, 0.32);
        }
        .chart-panel-inflow-total--head-badge .chart-panel-inflow-total__label {
            font-size: 9px;
        }
        .chart-panel-inflow-total--head-badge .chart-panel-inflow-total__amt {
            font-size: 12px;
        }
        .chart-legend-line--odds {
            width: 20px;
            height: 0;
            background: none;
            border-top: 2px solid #14b8a6;
            border-radius: 0;
        }
        .chart-legend-diamond--line {
            width: 7px;
            height: 7px;
            flex-shrink: 0;
            background: #db2777;
            transform: rotate(45deg);
            box-shadow: 0 0 0 1px rgba(255,255,255,0.25);
        }
        .chart-legend-item--bet {
            opacity: 1;
            cursor: pointer;
            user-select: none;
        }
        .chart-legend-item--bet:hover {
            color: var(--text-main);
        }
        .chart-legend-item--bet.is-hidden {
            opacity: 0.38;
            text-decoration: line-through;
        }
        .chart-legend-item--odds {
            opacity: 1;
            cursor: pointer;
            user-select: none;
        }
        .chart-legend-item--odds:hover {
            color: var(--text-main);
        }
        .chart-legend-item--odds.is-hidden {
            opacity: 0.38;
            text-decoration: line-through;
        }
        .chart-legend-item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
        .chart-signal-strip {
            display: none !important;
            margin: 0;
            padding: 0;
            border: none;
            background: transparent;
            overflow: hidden;
        }
        body.theme-light .chart-signal-strip {
            background: transparent;
            border-color: transparent;
        }
        .chart-signal-strip.is-visible { display: none !important; }
        .chart-signal-scroll {
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 12px;
            overflow-x: auto;
            overflow-y: hidden;
            white-space: nowrap;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: thin;
            padding-bottom: 2px;
        }
        .chart-signal-scroll::-webkit-scrollbar { height: 4px; }
        .chart-signal-scroll::-webkit-scrollbar-thumb {
            background: rgba(148, 163, 184, 0.45);
            border-radius: 999px;
        }
        .chart-signal-chip {
            flex-shrink: 0;
            font-size: 12px;
            font-weight: 700;
            line-height: 1.45;
            color: #be185d;
        }
        body:not(.theme-light) .chart-signal-chip { color: #f9a8d4; }
        .chart-signal-sep {
            flex-shrink: 0;
            width: 7px;
            height: 7px;
            background: #db2777;
            transform: rotate(45deg);
            box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
        }
        #chartWorkspace > .chart-top-inflow-strip {
            flex-shrink: 0;
            margin-left: var(--chart-rail-pad-l, 0);
            margin-right: var(--chart-rail-pad-r, 0);
            width: auto;
        }
        .chart-top-inflow-strip {
            display: none;
            flex-direction: column;
            gap: 3px;
            margin: 0 0 5px;
            padding: 4px 6px 5px;
            border-radius: 6px;
            border: 1px solid rgba(148, 163, 184, 0.14);
            background: rgba(248, 250, 252, 0.45);
            box-sizing: border-box;
        }
        body.theme-light .chart-top-inflow-strip {
            background: #fffbeb;
            border-color: rgba(217, 119, 6, 0.12);
        }
        body:not(.theme-light) .chart-top-inflow-strip {
            background: rgba(15, 23, 42, 0.28);
            border-color: rgba(148, 163, 184, 0.12);
        }
        .chart-top-inflow-strip.is-visible { display: flex; }
        .chart-top-inflow-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 8px;
            min-width: 0;
        }
        .chart-top-inflow-head-text {
            display: flex;
            flex-direction: column;
            gap: 2px;
            min-width: 0;
            flex: 1 1 auto;
        }
        .chart-top-inflow-title {
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 0.03em;
            color: #b45309;
            min-width: 0;
        }
        body:not(.theme-light) .chart-top-inflow-title { color: #fbbf24; }
        .chart-top-inflow-note {
            font-size: 9px;
            font-weight: 600;
            line-height: 1.35;
            color: #92400e;
            opacity: 0.82;
        }
        body:not(.theme-light) .chart-top-inflow-note { color: #fde68a; opacity: 0.72; }
        .chart-top-inflow-hint {
            display: block;
            flex-shrink: 0;
            font-size: 9px;
            font-weight: 600;
            letter-spacing: 0.02em;
            color: #92400e;
            opacity: 0.72;
            white-space: nowrap;
        }
        body:not(.theme-light) .chart-top-inflow-hint { color: #fcd34d; opacity: 0.65; }
        .chart-top-inflow-scroll-wrap {
            position: relative;
            min-width: 0;
        }
        .chart-top-inflow-scroll {
            min-width: 0;
        }
        .chart-top-inflow-cards {
            display: grid;
            grid-template-columns: repeat(5, minmax(0, 1fr));
            gap: 6px;
        }
        .chart-top-inflow-card {
            position: relative;
            display: grid;
            grid-template-rows: auto auto auto auto auto;
            gap: 8px;
            min-width: 0;
            padding: 8px 8px 8px 9px;
            border-radius: 8px;
            background: #ffffff;
            border: 1px solid rgba(217, 119, 6, 0.1);
            box-shadow: inset 3px 0 0 rgba(148, 163, 184, 0.45);
            overflow: visible;
            isolation: isolate;
            cursor: pointer;
            transition: box-shadow 0.15s ease, border-color 0.15s ease;
            opacity: 1;
        }
        .chart-top-inflow-card:hover {
            box-shadow: inset 3px 0 0 rgba(148, 163, 184, 0.45), 0 2px 10px rgba(15, 23, 42, 0.08);
        }
        .chart-top-inflow-card.is-chart-linked {
            border-color: rgba(245, 158, 11, 0.55);
            box-shadow: inset 3px 0 0 rgba(245, 158, 11, 0.85), 0 0 0 1px rgba(245, 158, 11, 0.35);
        }
        .chart-top-inflow-card--home.is-chart-linked {
            box-shadow: inset 3px 0 0 rgba(234, 88, 12, 0.9), 0 0 0 1px rgba(234, 88, 12, 0.35);
        }
        .chart-top-inflow-card--away.is-chart-linked,
        .chart-top-inflow-card--over.is-chart-linked,
        .chart-top-inflow-card--under.is-chart-linked {
            box-shadow: inset 3px 0 0 rgba(59, 130, 246, 0.85), 0 0 0 1px rgba(59, 130, 246, 0.32);
        }
        @media (min-width: 769px) {
            .chart-top-inflow-card:not(.chart-top-inflow-card--compact) {
                gap: 3px;
                padding: 5px 7px 4px 8px;
                border-radius: 7px;
            }
        }
        .chart-top-inflow-card--compact {
            display: grid;
            grid-auto-rows: auto;
            row-gap: 2px;
            column-gap: 0;
            padding: 3px 2px 3px 3px;
            border: 1px solid rgba(148, 163, 184, 0.1);
            background: #ffffff;
            align-content: start;
        }
        body:not(.theme-light) .chart-top-inflow-card--compact {
            background: #0f172a;
            border-color: rgba(148, 163, 184, 0.08);
        }
        .chart-top-inflow-card-peak-anchor {
            position: absolute;
            top: 5px;
            left: 7px;
            z-index: 3;
            pointer-events: none;
        }
        .chart-top-inflow-card-time-anchor {
            position: absolute;
            top: 6px;
            right: 8px;
            z-index: 3;
            pointer-events: none;
        }
        .chart-top-inflow-time--corner {
            font-size: 11px;
            font-weight: 700;
            font-variant-numeric: tabular-nums;
            color: var(--text-sub);
            opacity: 1;
            white-space: nowrap;
            line-height: 1.2;
        }
        body:not(.theme-light) .chart-top-inflow-time--corner {
            color: #e2e8f0;
            opacity: 0.96;
        }
        .chart-top-inflow-peak-tag--corner {
            margin-left: 0;
            font-size: 8px;
            line-height: 11px;
            padding: 0 3px;
            letter-spacing: 0.01em;
        }
        .chart-top-inflow-card--compact:has(.chart-top-inflow-card-peak-anchor) .chart-top-inflow-card-tier--head .chart-top-inflow-card-head-line,
        .chart-top-inflow-card--compact:has(.chart-top-inflow-card-peak-anchor) .chart-top-inflow-cell-meta {
            padding-left: 46px;
        }
        .chart-top-inflow-card:not(.chart-top-inflow-card--compact) .chart-top-inflow-card-tier--head .chart-top-inflow-card-head-line {
            padding-right: 48px;
        }
        .chart-top-inflow-card-tier--head {
            min-width: 0;
            min-height: 18px;
        }
        @media (min-width: 769px) {
            .chart-top-inflow-card:not(.chart-top-inflow-card--compact) .chart-top-inflow-card-tier--head {
                min-height: 14px;
            }
        }
        .chart-top-inflow-card-tier--odds {
            min-width: 0;
            min-height: 0;
        }
        .chart-top-inflow-card:not(.chart-top-inflow-card--compact) .chart-top-inflow-card-tier--odds .chart-top-inflow-line-odds {
            margin-top: 0;
            line-height: 1.2;
            font-size: 11px;
            opacity: 0.88;
        }
        .chart-top-inflow-card-tier--amount {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 32px;
            height: auto;
            min-width: 0;
            width: 100%;
        }
        .chart-top-inflow-card:not(.chart-top-inflow-card--compact) .chart-top-inflow-card-tier--amount {
            min-height: 38px;
            padding: 6px 4px 4px;
        }
        .chart-top-inflow-card:not(.chart-top-inflow-card--compact) .chart-top-inflow-card-tier--amount .chart-top-inflow-money:not(.chart-top-inflow-money--sub) {
            display: block;
            width: 100%;
            text-align: center;
            font-size: clamp(18px, 1.35vw, 24px);
            font-weight: 900;
            line-height: 1.1;
            letter-spacing: 0.02em;
        }
        .chart-top-inflow-card:not(.chart-top-inflow-card--compact) .chart-top-inflow-card-tier--amount .chart-top-inflow-money--sub {
            display: block;
            width: 100%;
            text-align: center;
            font-size: clamp(16px, 1.12vw, 20px);
            font-weight: 800;
            line-height: 1.12;
            letter-spacing: 0;
            color: #57534e;
            opacity: 1;
        }
        @media (min-width: 769px) {
            .chart-top-inflow-card:not(.chart-top-inflow-card--compact) .chart-top-inflow-card-tier--amount {
                min-height: 24px;
                padding: 1px 2px 0;
            }
            .chart-top-inflow-card:not(.chart-top-inflow-card--compact) .chart-top-inflow-card-tier--amount .chart-top-inflow-money:not(.chart-top-inflow-money--sub) {
                font-size: clamp(15px, 1.05vw, 19px);
                line-height: 1;
            }
            .chart-top-inflow-card:not(.chart-top-inflow-card--compact) .chart-top-inflow-card-tier--amount .chart-top-inflow-money--sub {
                font-size: clamp(13px, 0.92vw, 16px);
                line-height: 1.05;
                font-weight: 800;
            }
            .chart-top-inflow-card:not(.chart-top-inflow-card--compact) .chart-top-inflow-card-tier--odds .chart-top-inflow-line-odds {
                font-size: 10px;
                line-height: 1.15;
            }
            .chart-top-inflow-card:not(.chart-top-inflow-card--compact) .chart-top-inflow-card-tier--meta {
                gap: 1px;
            }
            .chart-top-inflow-card:not(.chart-top-inflow-card--compact) .chart-top-inflow-card-meta-bar {
                gap: 1px 5px;
                line-height: 1.2;
            }
            .chart-top-inflow-card:not(.chart-top-inflow-card--compact) .chart-top-inflow-card-meta-bar .chart-top-inflow-people {
                font-size: 9px;
            }
            .chart-top-inflow-card:not(.chart-top-inflow-card--compact) .chart-top-inflow-card-meta-bar .chart-top-inflow-share,
            .chart-top-inflow-card:not(.chart-top-inflow-card--compact) .chart-top-inflow-card-meta-bar .chart-top-inflow-avg-flat {
                font-size: 10px;
            }
            .chart-top-inflow-card:not(.chart-top-inflow-card--compact) .chart-top-inflow-card-tier--foot {
                min-height: 11px;
            }
            .chart-top-inflow-card:not(.chart-top-inflow-card--compact) .chart-top-inflow-peak-tag--foot {
                font-size: 11px;
                line-height: 16px;
                padding: 3px 8px;
            }
            .chart-top-inflow-card:not(.chart-top-inflow-card--compact) .chart-top-inflow-time--corner {
                font-size: 10px;
            }
            .chart-top-inflow-card:not(.chart-top-inflow-card--compact) .chart-top-inflow-card-head-line .chart-top-inflow-pick {
                font-size: 10px;
            }
        }
        .chart-top-inflow-card-tier--meta {
            display: flex;
            flex-direction: column;
            gap: 4px;
            min-width: 0;
        }
        .chart-top-inflow-card-meta-bar {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 4px 8px;
            min-width: 0;
            line-height: 1.3;
        }
        .chart-top-inflow-card-meta-bar .chart-top-inflow-people {
            font-size: 10px;
            font-weight: 800;
            line-height: 1.3;
        }
        .chart-top-inflow-card-meta-bar .chart-top-inflow-share {
            font-size: 11px;
            font-weight: 700;
            opacity: 0.78;
        }
        .chart-top-inflow-card-meta-bar .chart-top-inflow-avg-flat {
            font-size: 11px;
            font-weight: 800;
            line-height: 1.3;
        }
        .chart-top-inflow-avg-flat {
            font-size: 11px;
            font-weight: 800;
            font-variant-numeric: tabular-nums;
            color: var(--text-sub);
            white-space: nowrap;
            line-height: 1.3;
        }
        .chart-top-inflow-avg-unit {
            font-size: 1em;
            font-weight: inherit;
        }
        .chart-top-inflow-avg-flat--peak {
            color: #dc2626 !important;
            font-weight: 900;
            letter-spacing: 0.01em;
            animation: chartTopInflowAvgFlatPulse 1.15s ease-in-out infinite;
        }
        .chart-top-inflow-avg-flat--peak .chart-top-inflow-avg-unit {
            font-size: 1.28em;
            font-weight: 900;
            line-height: 1;
        }
        body:not(.theme-light) .chart-top-inflow-avg-flat--peak {
            color: #fb7185 !important;
            font-weight: 900;
            text-shadow: 0 0 10px rgba(248, 113, 113, 0.45);
            animation: chartTopInflowAvgFlatPulse 1.15s ease-in-out infinite;
        }
        @keyframes chartTopInflowAvgFlatPulse {
            0%, 100% {
                opacity: 1;
                filter: brightness(1);
                text-shadow: 0 0 0 transparent;
            }
            50% {
                opacity: 0.72;
                filter: brightness(1.28);
                text-shadow: 0 0 10px rgba(220, 38, 38, 0.45);
            }
        }
        body:not(.theme-light) .chart-top-inflow-avg-flat {
            color: #94a3b8;
        }
        .chart-top-inflow-avg-flat--tier-30000 {
            color: #c2410c;
        }
        .chart-top-inflow-avg-flat--tier-50000 {
            color: #b91c1c;
            font-weight: 800;
        }
        body:not(.theme-light) .chart-top-inflow-avg-flat--tier-30000 {
            color: #fdba74;
        }
        body:not(.theme-light) .chart-top-inflow-avg-flat--tier-50000 {
            color: #fca5a5;
        }
        body:not(.theme-light) .chart-top-inflow-card-meta-bar .chart-top-inflow-share {
            color: #94a3b8;
            opacity: 0.7;
        }
        .chart-top-inflow-card-aux-badges {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 3px 4px;
            min-width: 0;
        }
        .chart-top-inflow-card-tier--foot {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-end;
            gap: 2px;
            width: 100%;
            min-width: 0;
            min-height: 14px;
            text-align: center;
        }
        .chart-top-inflow-foot-rank {
            font-size: 10px;
            font-weight: 800;
            font-variant-numeric: tabular-nums;
            letter-spacing: 0.05em;
            color: #64748b;
            line-height: 1.2;
            white-space: nowrap;
        }
        body:not(.theme-light) .chart-top-inflow-foot-rank {
            color: #cbd5e1;
        }
        .chart-top-inflow-peak-tag--foot {
            margin-left: 0;
            font-size: 11px;
            line-height: 16px;
            padding: 3px 8px;
            border-radius: 5px;
        }
        .chart-top-inflow-avg-peak-tag {
            display: inline-flex;
            align-items: center;
            padding: 0 5px;
            margin-left: 0;
            border-radius: 4px;
            font-size: 9px;
            font-weight: 900;
            line-height: 14px;
            letter-spacing: 0.02em;
            color: #c2410c;
            background: rgba(234, 88, 12, 0.16);
            border: 1px solid rgba(234, 88, 12, 0.45);
            vertical-align: middle;
            white-space: nowrap;
            flex-shrink: 0;
        }
        .chart-top-inflow-avg-peak-tag--foot {
            margin-left: 0;
            font-size: 9px;
            line-height: 14px;
        }
        body:not(.theme-light) .chart-top-inflow-avg-peak-tag {
            color: #fdba74;
            background: rgba(234, 88, 12, 0.22);
            border-color: rgba(251, 146, 60, 0.55);
        }
        .chart-top-inflow-card:not(.chart-top-inflow-card--compact) .chart-top-inflow-avg-stamp {
            display: none;
        }
        .chart-top-inflow-card--wc-watch {
            box-shadow: inset 4px 0 0 #f59e0b !important;
            border-color: rgba(245, 158, 11, 0.28) !important;
        }
        .chart-top-inflow-card--wc-alert {
            box-shadow: inset 4px 0 0 #ea580c !important;
            border-color: rgba(234, 88, 12, 0.32) !important;
        }
        .chart-top-inflow-card--wc-critical {
            z-index: 1;
        }
        .chart-top-inflow-card--wc-critical::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: inherit;
            background: rgba(239, 68, 68, 0.14);
            animation: chartTopInflowCardBgBreath 0.85s ease-in-out 6 forwards;
            pointer-events: none;
            z-index: 0;
        }
        .chart-top-inflow-card--wc-critical::after {
            content: '';
            position: absolute;
            inset: -2px;
            border-radius: 10px;
            border: 2px solid rgba(239, 68, 68, 0.72);
            box-shadow: 0 0 10px rgba(239, 68, 68, 0.35);
            animation: chartTopInflowCardRingBreath 0.85s ease-in-out 6 forwards;
            pointer-events: none;
            z-index: 2;
        }
        .chart-top-inflow-card--wc-critical > * {
            position: relative;
            z-index: 1;
        }
        .chart-top-inflow-wc-tier-tag {
            display: inline-flex;
            align-items: center;
            padding: 0 5px;
            margin-left: 2px;
            border-radius: 4px;
            font-size: 9px;
            font-weight: 900;
            line-height: 14px;
            letter-spacing: 0.02em;
            color: #9a3412;
            background: rgba(234, 88, 12, 0.14);
            border: 1px solid rgba(234, 88, 12, 0.28);
            vertical-align: middle;
            white-space: nowrap;
            flex-shrink: 0;
        }
        .chart-top-inflow-peak-tag {
            display: inline-flex;
            align-items: center;
            padding: 0 5px;
            margin-left: 2px;
            border-radius: 4px;
            font-size: 9px;
            font-weight: 900;
            line-height: 14px;
            letter-spacing: 0.02em;
            color: #991b1b;
            background: rgba(239, 68, 68, 0.16);
            border: 1px solid rgba(239, 68, 68, 0.45);
            vertical-align: middle;
            white-space: nowrap;
            flex-shrink: 0;
            animation: chartTopInflowPeakTagPulse 0.85s ease-in-out infinite;
        }
        .chart-top-inflow-card-top-badges {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: flex-start;
            gap: 3px;
            margin: 0;
            min-height: 0;
        }
        .chart-top-inflow-card-top-badges .chart-top-inflow-peak-tag {
            margin-left: 0;
        }
        .chart-top-inflow-avg-tier-tag {
            display: inline-flex;
            align-items: center;
            padding: 0 5px;
            border-radius: 4px;
            font-size: 9px;
            font-weight: 800;
            line-height: 14px;
            letter-spacing: 0.02em;
            white-space: nowrap;
            flex-shrink: 0;
            color: #92400e;
            background: rgba(251, 191, 36, 0.18);
            border: 1px solid rgba(251, 191, 36, 0.42);
        }
        .chart-top-inflow-avg-tier-tag--30000 {
            color: #9a3412;
            background: rgba(251, 146, 60, 0.18);
            border-color: rgba(251, 146, 60, 0.45);
        }
        .chart-top-inflow-avg-tier-tag--50000 {
            color: #991b1b;
            background: rgba(248, 113, 113, 0.16);
            border-color: rgba(248, 113, 113, 0.5);
        }
        @keyframes chartTopInflowPeakTagPulse {
            0%, 100% {
                opacity: 0.45;
                transform: scale(1);
                box-shadow: 0 0 4px rgba(239, 68, 68, 0.25);
                border-color: rgba(239, 68, 68, 0.35);
            }
            50% {
                opacity: 1;
                transform: scale(1.08);
                box-shadow: 0 0 12px rgba(239, 68, 68, 0.65), 0 0 20px rgba(239, 68, 68, 0.35);
                border-color: rgba(248, 113, 113, 0.95);
            }
        }
        .chart-top-inflow-wc-tier-tag--critical {
            color: #991b1b;
            background: rgba(239, 68, 68, 0.16);
            border-color: rgba(239, 68, 68, 0.35);
        }
        .chart-top-inflow-money--wc-watch:not(.chart-top-inflow-money--sub) {
            color: #b45309 !important;
            font-weight: 800;
        }
        .chart-top-inflow-money--wc-alert:not(.chart-top-inflow-money--sub) {
            color: #c2410c !important;
            font-weight: 900;
        }
        .chart-top-inflow-money--wc-critical:not(.chart-top-inflow-money--sub) {
            color: #dc2626 !important;
            font-weight: 900;
        }
        body:not(.theme-light) .chart-top-inflow-money--wc-watch:not(.chart-top-inflow-money--sub) { color: #fbbf24 !important; }
        body:not(.theme-light) .chart-top-inflow-money--wc-alert:not(.chart-top-inflow-money--sub) { color: #fb923c !important; }
        body:not(.theme-light) .chart-top-inflow-money--wc-critical:not(.chart-top-inflow-money--sub) { color: #f87171 !important; }
        @keyframes chartTopInflowCardBgBreath {
            0%, 100% { opacity: 0.28; }
            50% { opacity: 1; }
        }
        @keyframes chartTopInflowCardRingBreath {
            0%, 100% {
                opacity: 0.42;
                transform: scale(1);
                box-shadow: 0 0 6px rgba(239, 68, 68, 0.22);
                border-color: rgba(239, 68, 68, 0.45);
            }
            50% {
                opacity: 1;
                transform: scale(1.025);
                box-shadow: 0 0 18px rgba(239, 68, 68, 0.78), 0 0 32px rgba(239, 68, 68, 0.42);
                border-color: rgba(248, 113, 113, 1);
            }
        }
        body:not(.theme-light) .chart-top-inflow-card--wc-critical::before {
            background: rgba(248, 113, 113, 0.18);
        }
        body:not(.theme-light) .chart-top-inflow-card--wc-critical::after {
            border-color: rgba(252, 165, 165, 0.82);
            box-shadow: 0 0 12px rgba(248, 113, 113, 0.45);
        }
        body:not(.theme-light) .chart-top-inflow-card--wc-watch {
            border-color: rgba(251, 191, 36, 0.22) !important;
            box-shadow: inset 4px 0 0 #fbbf24 !important;
        }
        body:not(.theme-light) .chart-top-inflow-card--wc-alert {
            border-color: rgba(251, 146, 60, 0.28) !important;
            box-shadow: inset 4px 0 0 #f97316 !important;
        }
        body:not(.theme-light) .chart-top-inflow-wc-tier-tag {
            color: #fdba74;
            background: rgba(234, 88, 12, 0.2);
            border-color: rgba(251, 146, 60, 0.35);
        }
        body:not(.theme-light) .chart-top-inflow-wc-tier-tag--critical {
            color: #fca5a5;
            background: rgba(239, 68, 68, 0.22);
            border-color: rgba(248, 113, 113, 0.4);
        }
        body:not(.theme-light) .chart-top-inflow-peak-tag {
            color: #fecaca;
            background: rgba(239, 68, 68, 0.22);
            border-color: rgba(248, 113, 113, 0.55);
        }
        .chart-top-inflow-card--home {
            border-color: rgba(234, 88, 12, 0.22);
            background: #fff7ed;
            box-shadow: inset 3px 0 0 #ea580c;
        }
        .chart-top-inflow-card--away {
            border-color: rgba(37, 99, 235, 0.22);
            background: #eff6ff;
            box-shadow: inset 3px 0 0 #2563eb;
        }
        .chart-top-inflow-card--over {
            border-color: rgba(124, 58, 237, 0.22);
            background: #f5f3ff;
            box-shadow: inset 3px 0 0 #7c3aed;
        }
        .chart-top-inflow-card--under {
            border-color: rgba(5, 150, 105, 0.22);
            background: #ecfdf5;
            box-shadow: inset 3px 0 0 #059669;
        }
        body:not(.theme-light) .chart-top-inflow-card {
            background: #0f172a;
            border-color: rgba(251, 191, 36, 0.12);
            box-shadow: inset 3px 0 0 rgba(148, 163, 184, 0.35);
        }
        body:not(.theme-light) .chart-top-inflow-card--home {
            background: #1a120c;
            border-color: rgba(251, 146, 60, 0.24);
            box-shadow: inset 3px 0 0 #f97316;
        }
        body:not(.theme-light) .chart-top-inflow-card--away {
            background: #0c1528;
            border-color: rgba(96, 165, 250, 0.24);
            box-shadow: inset 3px 0 0 #3b82f6;
        }
        body:not(.theme-light) .chart-top-inflow-card--over {
            background: rgba(124, 58, 237, 0.14);
            border-color: rgba(167, 139, 250, 0.22);
            box-shadow: inset 3px 0 0 #8b5cf6;
        }
        body:not(.theme-light) .chart-top-inflow-card--under {
            background: rgba(5, 150, 105, 0.14);
            border-color: rgba(52, 211, 153, 0.22);
            box-shadow: inset 3px 0 0 #10b981;
        }
        body.theme-light .chart-top-inflow-card {
            background: #ffffff;
        }
        body.theme-light .chart-top-inflow-card--home {
            background: #fff7ed;
            border-color: rgba(234, 88, 12, 0.24);
        }
        body.theme-light .chart-top-inflow-card--away {
            background: #eff6ff;
            border-color: rgba(37, 99, 235, 0.24);
        }
        body.theme-light .chart-top-inflow-card--over {
            background: #f5f3ff;
            border-color: rgba(124, 58, 237, 0.24);
        }
        body.theme-light .chart-top-inflow-card--under {
            background: #ecfdf5;
            border-color: rgba(5, 150, 105, 0.24);
        }
        .chart-top-inflow-card-head {
            display: flex;
            flex-direction: column;
            align-items: stretch;
            gap: 3px;
            min-width: 0;
        }
        .chart-top-inflow-card-head-line {
            display: flex;
            align-items: center;
            gap: 0;
            min-width: 0;
        }
        .chart-top-inflow-card:not(.chart-top-inflow-card--compact) .chart-top-inflow-card-tier--head .chart-top-inflow-side-tag::after {
            content: ' - ';
            font-size: 10px;
            font-weight: 700;
            color: var(--text-sub);
            opacity: 0.55;
            padding: 0 2px;
        }
        .chart-top-inflow-card-head-line .chart-top-inflow-side-tag {
            flex-shrink: 0;
        }
        .chart-top-inflow-card-head-line .chart-top-inflow-pick {
            flex: 1 1 auto;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            font-size: 12px;
            font-weight: 800;
            line-height: 1.25;
            margin-right: 4px;
        }
        .chart-top-inflow-card-head-line .chart-top-inflow-time {
            margin-left: auto;
            flex-shrink: 0;
        }
        .chart-top-inflow-card-head-badges {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 3px 4px;
            min-width: 0;
        }
        .chart-top-inflow-card-head-badges > :first-child {
            margin-left: 0;
        }
        .chart-top-inflow-rank {
            flex-shrink: 0;
            width: 18px;
            height: 18px;
            border-radius: 4px;
            background: rgba(217, 119, 6, 0.16);
            color: #b45309;
            font-size: 10px;
            font-weight: 900;
            line-height: 18px;
            text-align: center;
        }
        body:not(.theme-light) .chart-top-inflow-rank {
            background: rgba(251, 191, 36, 0.14);
            color: #fbbf24;
        }
        .chart-top-inflow-card--home .chart-top-inflow-rank {
            background: rgba(234, 88, 12, 0.14);
            color: #ea580c;
        }
        .chart-top-inflow-card--away .chart-top-inflow-rank {
            background: rgba(37, 99, 235, 0.14);
            color: #2563eb;
        }
        .chart-top-inflow-card--over .chart-top-inflow-rank {
            background: rgba(124, 58, 237, 0.14);
            color: #7c3aed;
        }
        .chart-top-inflow-card--under .chart-top-inflow-rank {
            background: rgba(5, 150, 105, 0.14);
            color: #059669;
        }
        body:not(.theme-light) .chart-top-inflow-card--home .chart-top-inflow-rank {
            background: rgba(249, 115, 22, 0.2);
            color: #fdba74;
        }
        body:not(.theme-light) .chart-top-inflow-card--away .chart-top-inflow-rank {
            background: rgba(59, 130, 246, 0.2);
            color: #93c5fd;
        }
        body:not(.theme-light) .chart-top-inflow-card--over .chart-top-inflow-rank {
            background: rgba(139, 92, 246, 0.2);
            color: #c4b5fd;
        }
        body:not(.theme-light) .chart-top-inflow-card--under .chart-top-inflow-rank {
            background: rgba(16, 185, 129, 0.2);
            color: #6ee7b7;
        }
        .chart-top-inflow-side-tag {
            flex-shrink: 0;
            min-width: 18px;
            padding: 0 4px;
            border-radius: 4px;
            font-size: 9px;
            font-weight: 900;
            line-height: 16px;
            text-align: center;
            letter-spacing: 0.04em;
        }
        .chart-top-inflow-card--home .chart-top-inflow-side-tag {
            color: #c2410c;
            background: rgba(234, 88, 12, 0.12);
        }
        .chart-top-inflow-card--away .chart-top-inflow-side-tag {
            color: #1d4ed8;
            background: rgba(37, 99, 235, 0.12);
        }
        .chart-top-inflow-card--over .chart-top-inflow-side-tag {
            color: #6d28d9;
            background: rgba(124, 58, 237, 0.12);
        }
        .chart-top-inflow-card--under .chart-top-inflow-side-tag {
            color: #047857;
            background: rgba(5, 150, 105, 0.12);
        }
        body:not(.theme-light) .chart-top-inflow-card--home .chart-top-inflow-side-tag {
            color: #fed7aa;
            background: rgba(249, 115, 22, 0.22);
        }
        body:not(.theme-light) .chart-top-inflow-card--away .chart-top-inflow-side-tag {
            color: #bfdbfe;
            background: rgba(59, 130, 246, 0.22);
        }
        body:not(.theme-light) .chart-top-inflow-card--over .chart-top-inflow-side-tag {
            color: #ddd6fe;
            background: rgba(139, 92, 246, 0.22);
        }
        body:not(.theme-light) .chart-top-inflow-card--under .chart-top-inflow-side-tag {
            color: #a7f3d0;
            background: rgba(16, 185, 129, 0.22);
        }
        .chart-top-inflow-reset-tag {
            flex-shrink: 0;
            font-size: 9px;
            font-weight: 700;
            line-height: 1.2;
            padding: 1px 4px;
            border-radius: 3px;
            color: #92400e;
            background: rgba(245, 158, 11, 0.18);
            white-space: nowrap;
        }
        body:not(.theme-light) .chart-top-inflow-reset-tag {
            color: #fde68a;
            background: rgba(245, 158, 11, 0.28);
        }
        .chart-top-inflow-gap-tag {
            flex-shrink: 0;
            font-size: 9px;
            font-weight: 700;
            line-height: 1.2;
            padding: 1px 4px;
            border-radius: 3px;
            color: #475569;
            background: rgba(100, 116, 139, 0.16);
            white-space: nowrap;
        }
        body:not(.theme-light) .chart-top-inflow-gap-tag {
            color: #cbd5e1;
            background: rgba(148, 163, 184, 0.22);
        }
        .chart-top-inflow-time {
            font-size: 11px;
            font-weight: 700;
            color: var(--text-sub);
            font-variant-numeric: tabular-nums;
            white-space: nowrap;
            flex-shrink: 0;
        }
        .chart-top-inflow-pick {
            font-size: 12px;
            font-weight: 800;
            line-height: 1.35;
            color: var(--text-main, var(--text-sub));
            word-break: break-word;
        }
        .chart-top-inflow-card--home .chart-top-inflow-pick { color: #9a3412; }
        .chart-top-inflow-card--away .chart-top-inflow-pick { color: #1e3a8a; }
        .chart-top-inflow-card--over .chart-top-inflow-pick { color: #5b21b6; }
        .chart-top-inflow-card--under .chart-top-inflow-pick { color: #065f46; }
        body:not(.theme-light) .chart-top-inflow-card--home .chart-top-inflow-pick { color: #ffedd5; }
        body:not(.theme-light) .chart-top-inflow-card--away .chart-top-inflow-pick { color: #dbeafe; }
        body:not(.theme-light) .chart-top-inflow-card--over .chart-top-inflow-pick { color: #ede9fe; }
        body:not(.theme-light) .chart-top-inflow-card--under .chart-top-inflow-pick { color: #d1fae5; }
        .chart-top-inflow-line {
            display: inline;
            margin-left: 5px;
            font-weight: 700;
            font-variant-numeric: tabular-nums;
            color: var(--text-sub);
        }
        .chart-top-inflow-card-foot {
            display: inline-flex;
            align-items: baseline;
            flex-wrap: wrap;
            gap: 6px;
            margin-top: 0;
        }
        .chart-top-inflow-money {
            font-size: 13px;
            font-weight: 900;
            font-variant-numeric: tabular-nums;
            color: #b45309;
            white-space: nowrap;
            line-height: 1.25;
        }
        .chart-top-inflow-money--sub {
            font-weight: 800;
            color: #57534e;
            opacity: 1;
        }
        .chart-top-inflow-share {
            font-size: 0.68em;
            font-weight: 700;
            color: #111827;
            opacity: 1;
            letter-spacing: 0;
        }
        .chart-top-inflow-people {
            font-size: 11px;
            font-weight: 800;
            font-variant-numeric: tabular-nums;
            color: #475569;
            white-space: nowrap;
            line-height: 1.35;
        }
        body:not(.theme-light) .chart-top-inflow-people {
            color: #94a3b8;
        }
        .chart-top-inflow-people--zero {
            opacity: 0.72;
        }
        .chart-top-inflow-people--missing {
            opacity: 0.55;
        }
        /* 人均/笔 · 印章（桌面大卡浮层；紧凑卡与时间同行 inline） */
        .chart-top-inflow-time-row {
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;
            gap: 3px;
            width: 100%;
            min-width: 0;
            box-sizing: border-box;
        }
        .chart-top-inflow-time-row .chart-top-inflow-time {
            flex: 0 1 auto;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            text-align: center;
        }
        .chart-top-inflow-time-row .chart-top-inflow-avg-stamp {
            position: static;
            top: auto;
            right: auto;
            z-index: auto;
            flex: 0 0 auto;
            margin: 0;
            transform: rotate(6deg);
            transform-origin: center center;
        }
        .chart-top-inflow-avg-stamp {
            position: absolute;
            top: 28px;
            right: 2px;
            z-index: 4;
            pointer-events: none;
            transform: rotate(10deg);
            transform-origin: center center;
        }
        .chart-top-inflow-avg-stamp-inner {
            display: inline-block;
            padding: 1px 5px 2px;
            border: 2px solid rgba(185, 28, 28, 0.52);
            border-radius: 3px;
            font-size: 9px;
            font-weight: 900;
            font-variant-numeric: tabular-nums;
            line-height: 1.15;
            letter-spacing: -0.02em;
            white-space: nowrap;
            color: rgba(153, 27, 27, 0.9);
            background: rgba(254, 242, 242, 0.72);
            box-shadow: inset 0 0 0 1px rgba(185, 28, 28, 0.16);
            opacity: 0.92;
        }
        .chart-top-inflow-avg-stamp--peak .chart-top-inflow-avg-stamp-inner {
            border-width: 2.5px;
            border-color: rgba(220, 38, 38, 0.9);
            font-size: 10px;
            font-weight: 900;
            color: #b91c1c;
            background: rgba(254, 202, 202, 0.82);
            box-shadow:
                0 0 8px rgba(239, 68, 68, 0.32),
                inset 0 0 0 1px rgba(220, 38, 38, 0.3);
            opacity: 1;
            animation: chartTopInflowAvgStampPulse 1.35s ease-in-out infinite;
        }
        .chart-top-inflow-avg-stamp--peak .chart-top-inflow-avg-unit {
            font-size: 1.28em;
            font-weight: 900;
        }
        .chart-top-inflow-avg-stamp--tier-10000 .chart-top-inflow-avg-stamp-inner {
            border-color: rgba(217, 119, 6, 0.62);
            color: #b45309;
            background: rgba(254, 243, 199, 0.82);
        }
        .chart-top-inflow-avg-stamp--tier-30000 .chart-top-inflow-avg-stamp-inner {
            border-color: rgba(234, 88, 12, 0.72);
            color: #c2410c;
            background: rgba(255, 237, 213, 0.88);
        }
        .chart-top-inflow-avg-stamp--tier-50000 .chart-top-inflow-avg-stamp-inner {
            border-width: 2.5px;
            border-color: rgba(220, 38, 38, 0.88);
            color: #b91c1c;
            background: rgba(254, 202, 202, 0.88);
        }
        @keyframes chartTopInflowAvgStampPulse {
            0%, 100% {
                transform: scale(1);
                filter: saturate(1);
            }
            50% {
                transform: scale(1.06);
                filter: saturate(1.15);
            }
        }
        body:not(.theme-light) .chart-top-inflow-avg-stamp-inner {
            color: #fecaca;
            border-color: rgba(248, 113, 113, 0.62);
            background: rgba(127, 29, 29, 0.42);
            box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.22);
        }
        body:not(.theme-light) .chart-top-inflow-avg-stamp--peak .chart-top-inflow-avg-stamp-inner {
            color: #fff1f2;
            border-color: rgba(252, 165, 165, 0.95);
            background: rgba(153, 27, 27, 0.72);
            box-shadow:
                0 0 14px rgba(239, 68, 68, 0.5),
                inset 0 0 0 1px rgba(254, 202, 202, 0.35);
        }
        .chart-top-inflow-card-foot--compact {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 2px;
            margin-top: 2px;
        }
        body:not(.theme-light) .chart-top-inflow-money:not(.chart-top-inflow-money--sub) { color: #fcd34d; }
        body:not(.theme-light) .chart-top-inflow-money--sub { color: #d6d3d1; opacity: 1; }
        /* 千级：冷灰（与万级暖金区分）；万级 #fcd34d 不动 */
        body:not(.theme-light) .chart-top-inflow-card:not(.chart-top-inflow-card--compact) .chart-top-inflow-card-tier--amount .chart-top-inflow-money--sub,
        body:not(.theme-light) .chart-top-inflow-card--compact .chart-top-inflow-money--sub {
            color: #94a3b8;
            opacity: 1;
        }
        body:not(.theme-light) .chart-top-inflow-share {
            color: #e5e7eb;
            font-weight: 700;
            opacity: 0.92;
        }
        .chart-top-inflow-odds {
            display: inline-flex;
            align-items: center;
            font-size: 12px;
            font-weight: 900;
            font-variant-numeric: tabular-nums;
            letter-spacing: 0.02em;
            white-space: nowrap;
            padding: 1px 6px;
            border-radius: 4px;
            color: #5eead4;
            background: rgba(20, 184, 166, 0.24);
            border: 1px solid rgba(45, 212, 191, 0.48);
            box-shadow: 0 0 10px rgba(20, 184, 166, 0.18);
        }
        body:not(.theme-light) .chart-top-inflow-odds {
            color: #99f6e4;
            background: rgba(20, 184, 166, 0.3);
            border-color: rgba(94, 234, 212, 0.55);
        }
        body.theme-light .chart-top-inflow-odds {
            color: #0f766e;
            background: rgba(20, 184, 166, 0.14);
            border-color: rgba(15, 118, 110, 0.38);
            box-shadow: none;
        }
        .chart-top-inflow-kelly {
            display: inline-flex;
            align-items: center;
            font-size: 11px;
            font-weight: 800;
            font-variant-numeric: tabular-nums;
            letter-spacing: 0.02em;
            white-space: nowrap;
            padding: 1px 5px;
            border-radius: 4px;
            color: #6d28d9;
            background: rgba(124, 58, 237, 0.12);
            border: 1px solid rgba(124, 58, 237, 0.28);
        }
        body:not(.theme-light) .chart-top-inflow-kelly {
            color: #c4b5fd;
            background: rgba(124, 58, 237, 0.22);
            border-color: rgba(167, 139, 250, 0.42);
        }
        body.theme-light .chart-top-inflow-kelly {
            color: #5b21b6;
            background: rgba(124, 58, 237, 0.1);
            border-color: rgba(91, 33, 182, 0.28);
        }
        .chart-top-inflow-line-odds {
            display: flex;
            flex-direction: row;
            flex-wrap: nowrap;
            align-items: center;
            gap: 6px;
            margin-top: 0;
            line-height: 1.2;
            min-width: 0;
        }
        .chart-top-inflow-line-odds .chart-top-inflow-line {
            font-weight: 800;
            font-size: 12px;
            opacity: 1;
            margin-left: 0;
        }
        body.theme-light .chart-top-inflow-line-odds .chart-top-inflow-line {
            color: #334155;
        }
        body:not(.theme-light) .chart-top-inflow-line-odds .chart-top-inflow-line {
            color: #e2e8f0;
        }
        .chart-top-inflow-line-odds .chart-top-inflow-odds {
            font-size: 11px;
            font-weight: 800;
            padding: 1px 5px;
            box-shadow: none;
        }
        .chart-top-inflow-line-odds .chart-top-inflow-kelly {
            font-size: 10px;
            font-weight: 800;
            padding: 1px 4px;
        }
        @media (max-width: 768px) {
            .chart-top-inflow-strip {
                gap: 3px;
                margin-bottom: 5px;
                padding: 3px 4px 4px;
            }
            .chart-top-inflow-head {
                gap: 4px;
                align-items: center;
            }
            .chart-top-inflow-title {
                font-size: 9px;
                font-weight: 800;
                letter-spacing: 0.02em;
            }
            .chart-top-inflow-hint {
                display: block;
                font-size: 7px;
                opacity: 0.62;
            }
            .chart-top-inflow-scroll-wrap::after {
                display: none;
            }
            .chart-top-inflow-scroll {
                overflow: visible;
            }
            .chart-top-inflow-cards.is-compact {
                display: grid;
                grid-template-columns: repeat(5, minmax(0, 1fr));
                gap: 2px;
                width: 100%;
                min-width: 0;
                padding-bottom: 0;
            }
            .chart-top-inflow-card--compact {
                min-width: 0;
                width: auto;
                max-width: none;
                flex: none;
                padding: 3px 2px 3px 3px;
                row-gap: 2px;
                align-items: stretch;
                text-align: center;
                border-radius: 4px;
                overflow: visible;
                box-shadow: inset 2px 0 0 rgba(148, 163, 184, 0.38);
            }
            .chart-top-inflow-card--compact.chart-top-inflow-card--home {
                box-shadow: inset 2px 0 0 rgba(234, 88, 12, 0.62);
            }
            .chart-top-inflow-card--compact.chart-top-inflow-card--away {
                box-shadow: inset 2px 0 0 rgba(37, 99, 235, 0.62);
            }
            .chart-top-inflow-card--compact.chart-top-inflow-card--over {
                box-shadow: inset 2px 0 0 rgba(22, 163, 74, 0.62);
            }
            .chart-top-inflow-card--compact.chart-top-inflow-card--under {
                box-shadow: inset 2px 0 0 rgba(124, 58, 237, 0.62);
            }
            .chart-top-inflow-card-row--head,
            .chart-top-inflow-card-row--amount,
            .chart-top-inflow-card-row--people,
            .chart-top-inflow-card-row--stamp,
            .chart-top-inflow-card-row--foot,
            .chart-top-inflow-card--compact .chart-top-inflow-line-odds {
                min-height: 0;
                line-height: 1.12;
            }
            .chart-top-inflow-card-row--head {
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 3px;
                min-width: 0;
                padding-bottom: 1px;
            }
            .chart-top-inflow-card-row--amount {
                display: flex;
                align-items: center;
                justify-content: center;
                min-width: 0;
                padding: 1px 0;
            }
            .chart-top-inflow-card-row--people {
                display: flex;
                align-items: center;
                justify-content: center;
                min-width: 0;
            }
            .chart-top-inflow-card-row--stamp {
                display: flex;
                align-items: center;
                justify-content: center;
                min-width: 0;
                min-height: 14px;
                margin-top: -1px;
            }
            .chart-top-inflow-card-row--stamp .chart-top-inflow-avg-stamp {
                position: static;
                top: auto;
                right: auto;
                transform: none;
            }
            .chart-top-inflow-card-row--foot {
                display: flex;
                flex-wrap: wrap;
                align-items: center;
                justify-content: center;
                gap: 1px;
                min-width: 0;
            }
            .chart-top-inflow-card-row--foot .chart-top-inflow-peak-tag--foot {
                font-size: 8px;
                line-height: 1.15;
                padding: 2px 5px;
                white-space: nowrap;
                opacity: 0.92;
            }
            .chart-top-inflow-card--compact .chart-top-inflow-time {
                font-size: 7px;
                font-weight: 700;
                line-height: 1.05;
                flex: 0 1 auto;
                min-width: 0;
                text-align: center;
                font-variant-numeric: tabular-nums;
                color: var(--text-sub);
            }
            .chart-top-inflow-card--compact .chart-top-inflow-avg-stamp-inner {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                min-height: 12px;
                padding: 2px 4px 2px;
                font-size: 7px;
                border-width: 1px;
                line-height: 1.2;
                border-radius: 3px;
            }
            .chart-top-inflow-card--compact .chart-top-inflow-side-tag {
                flex: 0 0 auto;
                min-width: 12px;
                padding: 0 2px;
                font-size: 7px;
                line-height: 1.15;
                border-radius: 2px;
                letter-spacing: 0;
            }
            .chart-top-inflow-card--compact .chart-top-inflow-line-odds {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                gap: 1px;
                width: 100%;
                padding: 0 1px 1px;
                box-sizing: border-box;
                overflow: visible;
                white-space: normal;
            }
            .chart-top-inflow-card--compact .chart-top-inflow-line-odds .chart-top-inflow-line {
                font-size: 7px;
                font-weight: 700;
                line-height: 1.12;
                width: 100%;
                max-width: 100%;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
                text-align: center;
                opacity: 0.88;
            }
            .chart-top-inflow-card--compact .chart-top-inflow-line-odds .chart-top-inflow-odds {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                font-size: 7px;
                font-weight: 800;
                line-height: 1.15;
                padding: 0 3px;
                border-radius: 2px;
                flex: 0 0 auto;
                max-width: 100%;
                width: auto;
                overflow: visible;
                text-overflow: clip;
                white-space: nowrap;
                box-shadow: none;
            }
            .chart-top-inflow-card--compact .chart-top-inflow-money:not(.chart-top-inflow-money--sub) {
                font-size: 11px;
                font-weight: 900;
                line-height: 1.12;
                white-space: nowrap;
                letter-spacing: -0.01em;
            }
            .chart-top-inflow-card--compact .chart-top-inflow-money--sub {
                font-size: 8px;
                font-weight: 800;
                line-height: 1.05;
                color: #57534e;
            }
            .chart-top-inflow-card--compact .chart-top-inflow-people {
                font-size: 7px;
                font-weight: 700;
                line-height: 1.05;
                white-space: nowrap;
                opacity: 0.82;
            }
        }
        @keyframes fangan-gold-shimmer {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }
        /* 切换盘口模式时，同步隐藏无关的走势按钮 */
        body.show-handicap-only .match-trend-action-group--total { display: none !important; }
        body.show-total-only .match-trend-action-group--handicap { display: none !important; }
        /* AI 精选：让球模式只高亮让球命中；大小模式只高亮大小命中（禁止跨模式露出） */
        body.show-handicap-only .match-item.fangan-hit-mode-hc {
            position: relative;
            border-color: rgba(251, 191, 36, 0.55) !important;
            background:
                radial-gradient(ellipse 120% 80% at 0% 0%, rgba(251, 191, 36, 0.22) 0%, transparent 58%),
                linear-gradient(165deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.03) 42%, transparent 78%);
            box-shadow:
                inset 0 0 0 1px rgba(251, 191, 36, 0.28),
                0 10px 32px -10px rgba(245, 158, 11, 0.42),
                0 0 0 1px rgba(180, 83, 9, 0.12);
        }
        body.show-total-only .match-item.fangan-hit-mode-ou {
            position: relative;
            border-color: rgba(251, 191, 36, 0.55) !important;
            background:
                radial-gradient(ellipse 120% 80% at 0% 0%, rgba(251, 191, 36, 0.22) 0%, transparent 58%),
                linear-gradient(165deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.03) 42%, transparent 78%);
            box-shadow:
                inset 0 0 0 1px rgba(251, 191, 36, 0.28),
                0 10px 32px -10px rgba(245, 158, 11, 0.42),
                0 0 0 1px rgba(180, 83, 9, 0.12);
        }
        body.show-handicap-only .match-item.fangan-hit-mode-hc::before,
        body.show-total-only .match-item.fangan-hit-mode-ou::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, #b45309, #fbbf24, #fde68a, #fbbf24, #b45309);
            background-size: 220% 100%;
            animation: fangan-gold-shimmer 4.5s ease-in-out infinite;
            z-index: 3;
            pointer-events: none;
        }
        body.theme-light.show-handicap-only .match-item.fangan-hit-mode-hc,
        body.theme-light.show-total-only .match-item.fangan-hit-mode-ou {
            background:
                radial-gradient(ellipse 120% 80% at 0% 0%, rgba(251, 191, 36, 0.28) 0%, transparent 58%),
                linear-gradient(165deg, rgba(255, 251, 235, 0.95) 0%, rgba(254, 243, 199, 0.45) 38%, #fff 78%);
            box-shadow:
                inset 0 0 0 1px rgba(217, 119, 6, 0.22),
                0 12px 28px -12px rgba(217, 119, 6, 0.28),
                0 0 0 1px rgba(251, 191, 36, 0.35);
        }
        .fangan-hit-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            flex-shrink: 0;
            padding: 3px 10px 3px 7px;
            border-radius: 999px;
            font-size: 10px;
            font-weight: 900;
            letter-spacing: 0.05em;
            color: #422006;
            background: linear-gradient(135deg, #fde68a 0%, #fbbf24 46%, #f59e0b 100%);
            border: 1px solid rgba(180, 83, 9, 0.38);
            box-shadow: 0 1px 5px rgba(245, 158, 11, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.55);
            text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
        }
        .fangan-hit-badge-icon {
            width: 12px;
            height: 12px;
            flex-shrink: 0;
            color: #92400e;
        }
        .fangan-hit-badge-text {
            line-height: 1;
            white-space: nowrap;
        }
        body:not(.theme-light) .fangan-hit-badge {
            color: #422006;
            background: linear-gradient(135deg, #fde68a 0%, #fbbf24 46%, #f59e0b 100%);
            border-color: rgba(251, 191, 36, 0.55);
            box-shadow: 0 0 10px rgba(251, 191, 36, 0.35), 0 1px 5px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.45);
        }
        .hc-flow-row.fangan-row-hit {
            position: relative;
            margin: 2px 0;
            border-radius: 8px;
            background: linear-gradient(90deg, rgba(251, 191, 36, 0.32) 0%, rgba(245, 158, 11, 0.14) 52%, transparent 100%);
            box-shadow: inset 4px 0 0 #f59e0b, 0 0 14px rgba(245, 158, 11, 0.14);
        }
        body.theme-light .hc-flow-row.fangan-row-hit {
            background: linear-gradient(90deg, rgba(254, 243, 199, 0.95) 0%, rgba(251, 191, 36, 0.22) 55%, transparent 100%);
            box-shadow: inset 4px 0 0 #d97706, 0 0 10px rgba(217, 119, 6, 0.12);
        }
        .hc-flow-row.fangan-row-hit .hc-col-team {
            position: relative;
            padding-left: 22px;
        }
        .hc-flow-row.fangan-row-hit .hc-col-team::before {
            content: '▸';
            position: absolute;
            left: 4px;
            top: 50%;
            transform: translateY(-50%);
            color: #d97706;
            font-size: 14px;
            font-weight: 900;
            line-height: 1;
            text-shadow: 0 0 8px rgba(251, 191, 36, 0.75);
        }
        body:not(.theme-light) .hc-flow-row.fangan-row-hit .hc-col-team::before {
            color: #fbbf24;
        }
        .hc-flow-row.fangan-row-hit .hc-col-team .hc-team-l1,
        .hc-flow-row.fangan-row-hit .hc-col-team .hc-team-l2 {
            font-weight: 900;
            color: #92400e;
        }
        body:not(.theme-light) .hc-flow-row.fangan-row-hit .hc-col-team .hc-team-l1,
        body:not(.theme-light) .hc-flow-row.fangan-row-hit .hc-col-team .hc-team-l2 {
            color: #fde68a;
            text-shadow: 0 0 12px rgba(251, 191, 36, 0.35);
        }
        .hc-flow-row.fangan-row-hit .hc-col-line {
            background: rgba(251, 191, 36, 0.16);
            border-radius: 6px;
            font-weight: 900;
        }
        body:not(.theme-light) .hc-flow-row.fangan-row-hit .hc-col-line {
            background: rgba(251, 191, 36, 0.12);
            color: #fde68a;
        }
        .last-update-left {
            display: flex;
            align-items: center;
            gap: 10px;
            flex: 1 1 auto;
            min-width: 0;
        }
        .last-update-tools {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-wrap: nowrap;
            justify-content: flex-end;
            flex-shrink: 0;
        }
        .last-update-tools .view-toggle button {
            padding: 5px 14px;
            font-size: 13px;
        }
        .last-update-tools .list-tools-seg-btn {
            padding: 6px 14px;
            font-size: 13px;
        }
        .last-update-tools .list-tools-seg-btn--alert {
            padding: 6px 11px;
        }
        .last-update-tools .coin-alert-icon {
            width: 17px;
            height: 17px;
        }
        .last-update-tools .list-inbox-notice {
            min-width: 32px;
            height: 32px;
            color: var(--text-sub);
        }
        .last-update-tools .list-inbox-notice .header-inbox-link__icon {
            width: 18px;
            height: 18px;
        }
        body.theme-light .last-update-tools .list-inbox-notice {
            color: #475569;
        }
        .last-update-tools .list-inbox-notice.has-unread {
            color: #0f172a;
        }
        body:not(.theme-light) .last-update-tools .list-inbox-notice.has-unread {
            color: #f8fafc;
        }
        .last-update-tools .list-inbox-notice .header-inbox-dot {
            box-shadow: 0 0 0 2px var(--panel-bg, #fff), 0 0 6px rgba(239, 68, 68, 0.5);
        }
        .inflow-alert-strip {
            margin-top: 10px;
            padding-top: 10px;
            border-top: 1px solid var(--border-light);
        }
        .inflow-alert-strip-inner {
            min-width: 0;
        }
        .inflow-alert-track {
            display: flex;
            flex-wrap: nowrap;
            gap: 8px;
            overflow-x: auto;
            overflow-y: hidden;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: thin;
            padding-bottom: 2px;
        }
        .inflow-alert-card {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            flex: 0 0 auto;
            max-width: min(560px, 92vw);
            padding: 5px 8px 5px 10px;
            border-radius: 8px;
            border: 1px solid rgba(245, 158, 11, 0.35);
            background: rgba(245, 158, 11, 0.1);
            box-shadow: inset 2px 0 0 #f59e0b;
        }
        .inflow-alert-card--hc {
            border-color: rgba(234, 88, 12, 0.32);
            background: rgba(234, 88, 12, 0.08);
            box-shadow: inset 2px 0 0 #ea580c;
        }
        .inflow-alert-card--ou {
            border-color: rgba(124, 58, 237, 0.32);
            background: rgba(124, 58, 237, 0.08);
            box-shadow: inset 2px 0 0 #7c3aed;
        }
        body:not(.theme-light) .inflow-alert-card--hc {
            border-color: rgba(251, 146, 60, 0.28);
            background: rgba(234, 88, 12, 0.12);
            box-shadow: inset 2px 0 0 #f97316;
        }
        body:not(.theme-light) .inflow-alert-card--ou {
            border-color: rgba(167, 139, 250, 0.28);
            background: rgba(124, 58, 237, 0.14);
            box-shadow: inset 2px 0 0 #a78bfa;
        }
        .inflow-alert-mode-tag {
            flex-shrink: 0;
            font-size: 9px;
            font-weight: 900;
            letter-spacing: 0.02em;
            line-height: 1;
            padding: 3px 5px;
            border-radius: 4px;
            color: #9a3412;
            background: rgba(234, 88, 12, 0.16);
        }
        .inflow-alert-card--ou .inflow-alert-mode-tag {
            color: #5b21b6;
            background: rgba(124, 58, 237, 0.14);
        }
        body:not(.theme-light) .inflow-alert-mode-tag {
            color: #ffedd5;
            background: rgba(249, 115, 22, 0.28);
        }
        body:not(.theme-light) .inflow-alert-card--ou .inflow-alert-mode-tag {
            color: #ede9fe;
            background: rgba(139, 92, 246, 0.28);
        }
        body:not(.theme-light) .inflow-alert-card {
            border-color: rgba(251, 191, 36, 0.28);
            background: rgba(245, 158, 11, 0.12);
            box-shadow: inset 2px 0 0 #fbbf24;
        }
        .inflow-alert-icon {
            flex-shrink: 0;
            font-size: 12px;
            line-height: 1;
            color: #d97706;
        }
        body:not(.theme-light) .inflow-alert-icon {
            color: #fbbf24;
        }
        .inflow-alert-body {
            flex: 1 1 auto;
            min-width: 0;
            border: 0;
            background: transparent;
            padding: 0;
            margin: 0;
            text-align: left;
            cursor: pointer;
            font-size: 11px;
            font-weight: 700;
            line-height: 1.35;
            color: var(--text-main, #0f172a);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        body:not(.theme-light) .inflow-alert-body {
            color: #fde68a;
        }
        .inflow-alert-body:hover {
            text-decoration: underline;
        }
        .inflow-alert-close {
            flex-shrink: 0;
            width: 22px;
            height: 22px;
            border: 0;
            border-radius: 6px;
            background: rgba(0, 0, 0, 0.06);
            color: var(--text-sub);
            font-size: 16px;
            line-height: 1;
            cursor: pointer;
            padding: 0;
        }
        body:not(.theme-light) .inflow-alert-close {
            background: rgba(255, 255, 255, 0.08);
            color: #cbd5e1;
        }
        .inflow-alert-close:hover {
            background: rgba(239, 68, 68, 0.12);
            color: #dc2626;
        }
        .match-item.inflow-alert-highlight {
            outline: 2px solid rgba(245, 158, 11, 0.75);
            outline-offset: 0;
            box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
        }
        .hc-col-moneypct.has-wc-inflow-dot {
            overflow: visible !important;
        }
        .hc-moneypct-head {
            display: inline-flex;
            align-items: center;
            gap: 2px;
            max-width: 100%;
            margin-bottom: 3px;
            line-height: 1;
        }
        .hc-moneypct-head .hc-pct-val {
            margin-bottom: 0;
            display: inline-block;
        }
        .hc-moneypct-head .wc-inflow-dot {
            position: relative;
            flex: 0 0 auto;
            width: 22px;
            height: 22px;
            margin-left: 1px;
            padding: 0;
            border: 0;
            background: transparent;
            cursor: pointer;
            line-height: 0;
            vertical-align: middle;
            -webkit-tap-highlight-color: transparent;
        }
        .hc-moneypct-head .wc-inflow-dot--watch .wc-inflow-dot-core {
            inset: 7px;
        }
        .hc-moneypct-head .wc-inflow-dot--alert .wc-inflow-dot-core {
            inset: 6px;
        }
        .hc-moneypct-head .wc-inflow-dot--critical .wc-inflow-dot-core {
            inset: 5px;
        }
        .wc-inflow-dot-core {
            position: absolute;
            inset: 7px;
            border-radius: 50%;
            background: #f59e0b;
            box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.88), 0 0 8px rgba(245, 158, 11, 0.55);
        }
        .wc-inflow-dot--watch .wc-inflow-dot-core {
            inset: 7px;
            background: #f59e0b;
            box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.88), 0 0 8px rgba(245, 158, 11, 0.55);
        }
        .wc-inflow-dot--alert .wc-inflow-dot-core {
            inset: 6px;
            background: #ea580c;
            box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.88), 0 0 10px rgba(234, 88, 12, 0.65);
        }
        .wc-inflow-dot--critical .wc-inflow-dot-core {
            inset: 5px;
            background: #dc2626;
            box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9), 0 0 0 2px rgba(239, 68, 68, 0.35), 0 0 14px rgba(239, 68, 68, 0.85);
        }
        body:not(.theme-light) .wc-inflow-dot-core {
            box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.85), 0 0 10px rgba(251, 191, 36, 0.65);
        }
        body:not(.theme-light) .wc-inflow-dot--watch .wc-inflow-dot-core {
            box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.85), 0 0 10px rgba(251, 191, 36, 0.65);
        }
        body:not(.theme-light) .wc-inflow-dot--alert .wc-inflow-dot-core {
            box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.85), 0 0 12px rgba(251, 146, 60, 0.75);
        }
        body:not(.theme-light) .wc-inflow-dot--critical .wc-inflow-dot-core {
            box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9), 0 0 0 2px rgba(248, 113, 113, 0.4), 0 0 16px rgba(248, 113, 113, 0.95);
        }
        .wc-inflow-dot-pulse {
            position: absolute;
            inset: 0;
            border-radius: 50%;
            border: 3px solid rgba(245, 158, 11, 0.45);
            display: none;
        }
        .wc-inflow-dot--watch .wc-inflow-dot-pulse {
            display: none;
        }
        .wc-inflow-dot--alert .wc-inflow-dot-pulse {
            border-color: rgba(234, 88, 12, 0.55);
            animation: wcInflowDotPulse 1.8s ease-out 3 forwards;
        }
        .wc-inflow-dot--critical .wc-inflow-dot-pulse {
            border-color: rgba(239, 68, 68, 0.65);
            animation: wcInflowDotPulseCritical 0.85s ease-in-out 6 forwards;
        }
        .wc-inflow-dot.is-tip-open .wc-inflow-dot-core {
            background: #dc2626;
            transform: scale(1.08);
        }
        .wc-inflow-dot--watch.is-tip-open .wc-inflow-dot-core {
            background: #d97706;
        }
        .wc-inflow-dot--alert.is-tip-open .wc-inflow-dot-core {
            background: #c2410c;
        }
        @keyframes wcInflowDotPulse {
            0% { transform: scale(0.72); opacity: 0.95; }
            70% { transform: scale(1.45); opacity: 0; }
            100% { transform: scale(1.45); opacity: 0; }
        }
        @keyframes wcInflowDotPulseCritical {
            0%, 100% { transform: scale(0.85); opacity: 0.35; }
            50% { transform: scale(1.35); opacity: 0.95; }
        }
        .wc-inflow-dot-tip {
            position: fixed;
            z-index: 12050;
            max-width: min(320px, calc(100vw - 24px));
            padding: 10px 12px;
            border-radius: 10px;
            border: 1px solid rgba(239, 68, 68, 0.35);
            background: rgba(254, 242, 242, 0.98);
            color: #7f1d1d;
            font-size: 11px;
            font-weight: 700;
            line-height: 1.45;
            box-shadow: 0 10px 28px rgba(127, 29, 29, 0.18);
            pointer-events: none;
        }
        .wc-inflow-dot-tip--watch {
            border-color: rgba(245, 158, 11, 0.35);
            background: rgba(255, 251, 235, 0.98);
            color: #92400e;
            box-shadow: 0 10px 28px rgba(146, 64, 14, 0.14);
        }
        .wc-inflow-dot-tip--alert {
            border-color: rgba(234, 88, 12, 0.38);
            background: rgba(255, 247, 237, 0.98);
            color: #9a3412;
            box-shadow: 0 10px 28px rgba(154, 52, 18, 0.16);
        }
        body:not(.theme-light) .wc-inflow-dot-tip {
            background: rgba(69, 10, 10, 0.96);
            border-color: rgba(248, 113, 113, 0.42);
            color: #fecaca;
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
        }
        body:not(.theme-light) .wc-inflow-dot-tip--watch {
            background: rgba(69, 45, 10, 0.96);
            border-color: rgba(251, 191, 36, 0.38);
            color: #fde68a;
        }
        body:not(.theme-light) .wc-inflow-dot-tip--alert {
            background: rgba(76, 29, 10, 0.96);
            border-color: rgba(251, 146, 60, 0.4);
            color: #fed7aa;
        }
        .last-update-ts {
            display: flex;
            align-items: center;
            gap: 4px;
            flex-shrink: 0;
        }
        .ai-pick-chip {
            position: relative;
            flex: 0 0 auto;
            display: inline-flex;
            align-items: stretch;
            max-width: min(280px, 50vw);
            min-height: 28px;
            border-radius: 6px;
            overflow: hidden;
            background: var(--view-box-bg);
            border: 1px solid var(--border-light);
            box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
        }
        body.theme-light .ai-pick-chip {
            background: #f8fafc;
            border-color: #dbe3ee;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
        }
        .ai-pick-chip::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 3px;
            background: #cbd5e1;
            pointer-events: none;
        }
        .ai-pick-chip.is-active::before {
            background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
        }
        .ai-pick-brand {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 0 10px;
            font-size: 12px;
            font-weight: 800;
            letter-spacing: 0.04em;
            color: var(--text-sub);
            border-right: 1px solid var(--border-light);
            white-space: nowrap;
        }
        body.theme-light .ai-pick-brand {
            color: #92400e;
        }
        body:not(.theme-light) .ai-pick-brand {
            color: #fcd34d;
        }
        .ai-pick-mark {
            font-size: 10px;
            line-height: 1;
            opacity: 0.9;
        }
        .ai-pick-stat {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex: 1 1 auto;
            min-width: 72px;
            padding: 0 10px;
            font-size: 12px;
            font-weight: 700;
            line-height: 1.2;
            letter-spacing: 0.01em;
            color: var(--text-main);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            border-right: 1px solid var(--border-light);
        }
        body.theme-light .ai-pick-stat {
            color: #334155;
        }
        .ai-pick-stat .ai-pick-stat-num {
            font-size: 14px;
            font-weight: 900;
            color: #b45309;
            margin: 0 1px;
        }
        body:not(.theme-light) .ai-pick-stat .ai-pick-stat-num {
            color: #fbbf24;
        }
        .ai-pick-chip.is-empty .ai-pick-stat {
            font-size: 11px;
            font-weight: 700;
            color: var(--text-sub);
        }
        body.theme-light .ai-pick-chip.is-empty .ai-pick-stat {
            color: #64748b;
        }
        .ai-pick-go {
            display: inline-flex;
            align-items: center;
            padding: 0 10px;
            font-size: 12px;
            font-weight: 800;
            letter-spacing: 0.02em;
            color: var(--accent-blue);
            text-decoration: none;
            white-space: nowrap;
            background: transparent;
            transition: background 0.15s ease, color 0.15s ease;
        }
        body.theme-light .ai-pick-go {
            color: #2563eb;
        }
        .ai-pick-go:hover {
            background: rgba(59, 130, 246, 0.08);
            color: #1d4ed8;
        }
        body:not(.theme-light) .ai-pick-go:hover {
            background: rgba(96, 165, 250, 0.12);
            color: #93c5fd;
        }
        .ai-pick-go-guest {
            display: inline-flex;
            align-items: center;
            margin-left: 4px;
        }
        .terminal-ai-picks-entry {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            min-width: 0;
            flex-shrink: 1;
        }
        .terminal-ai-picks-entry.pc-only {
            flex: 0 0 auto;
            justify-content: flex-start;
            padding: 0;
        }
        .terminal-ai-picks-stat {
            color: #dc2626;
            font-size: 13px;
            font-weight: 800;
            letter-spacing: 0.01em;
            line-height: 1.2;
            white-space: nowrap;
        }
        body:not(.theme-light) .terminal-ai-picks-stat {
            color: #f87171;
        }
        .terminal-ai-picks-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-left: 0;
            padding: 6px 12px;
            min-height: 28px;
            border-radius: 6px;
            font-size: 13px;
            font-weight: 800;
            letter-spacing: 0.04em;
            text-decoration: none;
            white-space: nowrap;
            color: #422006;
            background: linear-gradient(135deg, #fde68a 0%, #fbbf24 52%, #f59e0b 100%);
            border: 1px solid rgba(217, 119, 6, 0.45);
            box-shadow:
                0 0 22px rgba(251, 191, 36, 0.28),
                inset 0 1px 0 rgba(255, 255, 255, 0.42);
            transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
            flex-shrink: 0;
            max-width: min(100%, 320px);
        }
        .terminal-ai-picks-btn:hover {
            transform: translateY(-1px);
            border-color: rgba(245, 158, 11, 0.75);
            box-shadow:
                0 0 32px rgba(251, 191, 36, 0.42),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
        }
        .terminal-ai-picks-btn:active {
            transform: translateY(0);
        }
        .terminal-ai-picks-btn__mark {
            font-size: 0.92em;
            line-height: 1;
            color: #b45309;
        }
        .terminal-ai-picks-btn__label {
            line-height: 1.1;
        }
        .terminal-ai-picks-btn__hint {
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0.02em;
            padding: 2px 6px;
            border-radius: 999px;
            color: #78350f;
            background: rgba(255, 255, 255, 0.38);
            border: 1px solid rgba(255, 255, 255, 0.35);
        }
        .terminal-ai-picks-btn__arrow {
            font-size: 12px;
            line-height: 1;
            opacity: 0.85;
        }
        body:not(.theme-light) .terminal-ai-picks-btn {
            color: #fef3c7;
            background: linear-gradient(135deg, rgba(251, 191, 36, 0.35) 0%, rgba(245, 158, 11, 0.28) 100%);
            border-color: rgba(251, 191, 36, 0.55);
            box-shadow:
                0 0 24px rgba(251, 191, 36, 0.18),
                inset 0 1px 0 rgba(255, 255, 255, 0.12);
        }
        body:not(.theme-light) .terminal-ai-picks-btn:hover {
            border-color: rgba(252, 211, 77, 0.75);
            box-shadow:
                0 0 34px rgba(251, 191, 36, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.16);
        }
        body:not(.theme-light) .terminal-ai-picks-btn__mark {
            color: #fcd34d;
        }
        body:not(.theme-light) .terminal-ai-picks-btn__hint {
            color: #fde68a;
            background: rgba(0, 0, 0, 0.22);
            border-color: rgba(251, 191, 36, 0.25);
        }
        .ai-marquee-static {
            font-size: 11px;
            font-weight: 700;
            color: var(--text-sub);
            white-space: nowrap;
        }
        .ai-marquee-static .ai-marquee-sep {
            opacity: 0.42;
            padding: 0 4px;
        }
        .ai-marquee-static a {
            color: #fde68a;
            text-decoration: underline;
        }
        body.theme-light .ai-marquee-static a {
            color: #b45309;
        }
        @media (max-width: 640px) {
            .match-data-wrap > .terminal-ai-picks-entry.mobile-only {
                width: 100%;
                box-sizing: border-box;
                padding: 8px 12px;
                gap: 8px;
                border-bottom: 1px solid var(--border-light);
                background: var(--panel-bg);
            }
            .match-data-wrap > .terminal-ai-picks-entry.mobile-only .terminal-ai-picks-stat {
                font-size: 12px;
            }
            .terminal-ai-picks-btn {
                padding: 6px 10px 6px 9px;
                font-size: 12px;
                gap: 5px;
                max-width: min(100%, 220px);
            }
            .terminal-ai-picks-btn__hint {
                display: none;
            }
            .ai-pick-chip {
                max-width: min(248px, 58vw);
                min-height: 26px;
            }
            .ai-pick-brand,
            .ai-pick-stat,
            .ai-pick-go {
                font-size: 11px;
                padding-left: 8px;
                padding-right: 8px;
            }
            .ai-pick-stat .ai-pick-stat-num {
                font-size: 13px;
            }
            .ai-pick-chip.is-empty .ai-pick-stat {
                font-size: 10px;
            }
        }
        .chart-legend-sep {
            width: 1px;
            height: 14px;
            background: rgba(148, 163, 184, 0.35);
            flex-shrink: 0;
        }
        body.chart-modal-scroll-lock {
            overflow: hidden !important;
            position: fixed;
            width: 100%;
            left: 0;
            right: 0;
        }

        #chartModalOverlay { align-items: center; justify-content: center; }
        .chart-modal-box {
            background: var(--modal-box);
            backdrop-filter: var(--modal-box-blur);
            width: 99%;
            max-width: 1060px;
            height: auto;
            max-height: 92vh;
            border-radius: 12px;
            padding: 12px 14px 10px;
            box-shadow: var(--modal-shadow);
            border: 1px solid var(--border-color);
            position: relative;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            cursor: default;
            box-sizing: border-box;
        }
        .chart-modal-header {
            text-align: left;
            border-bottom: 1px solid rgba(148, 163, 184, 0.12);
            padding: 8px 36px 8px 2px;
            margin-bottom: 0;
            position: relative;
            flex-shrink: 0;
            background: linear-gradient(180deg, rgba(15, 23, 42, 0.28) 0%, transparent 100%);
        }
        body.theme-light .chart-modal-header {
            background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, transparent 100%);
        }
        #chartModalOverlay.chart-modal-mode-total .chart-modal-header {
            background: linear-gradient(180deg, rgba(124, 58, 237, 0.16) 0%, transparent 100%);
            border-bottom-color: rgba(167, 139, 250, 0.32);
            box-shadow: inset 0 3px 0 0 rgba(139, 92, 246, 0.62);
        }
        body.theme-light #chartModalOverlay.chart-modal-mode-total .chart-modal-header {
            background: linear-gradient(180deg, #ede9fe 0%, #ffffff 78%);
            border-bottom-color: rgba(124, 58, 237, 0.28);
            box-shadow: inset 0 3px 0 0 rgba(124, 58, 237, 0.52);
        }
        .chart-modal-close {
            position: absolute;
            right: 0;
            top: 0;
            cursor: pointer;
            color: var(--text-sub);
            font-size: 26px;
            line-height: 1;
            font-weight: bold;
            z-index: 10;
        }
        .chart-modal-topline {
            display: flex;
            align-items: baseline;
            justify-content: flex-start;
            flex-wrap: wrap;
            gap: 4px 14px;
            margin-bottom: 8px;
            min-width: 0;
            line-height: 1.25;
        }
        .chart-modal-match-head { width: 100%; text-align: center; }
        .chart-modal-side-score {
            font-family: 'Roboto Mono', 'SF Mono', 'Cascadia Mono', 'Consolas', monospace;
            font-variant-numeric: tabular-nums;
            font-size: 16px;
            font-weight: 900;
            color: #ef4444;
            letter-spacing: 0.04em;
            flex-shrink: 0;
            line-height: 1.1;
        }
        body.theme-light .chart-modal-side-score { color: #dc2626; }
        .chart-modal-brand {
            font-size: 17px;
            font-weight: 800;
            color: #3b82f6;
            letter-spacing: 0.02em;
            white-space: nowrap;
            flex-shrink: 0;
        }
        body.theme-light .chart-modal-brand {
            color: #2563eb;
        }
        .chart-modal-center-title {
            font-size: 17px;
            font-weight: 900;
            color: var(--text-main);
            letter-spacing: 0.3px;
            white-space: nowrap;
            flex-shrink: 0;
        }
        .chart-modal-meta-item {
            font-size: 15px;
            color: var(--text-sub);
            font-weight: 700;
            white-space: nowrap;
            flex-shrink: 0;
        }
        .chart-modal-meta-item:empty {
            display: none;
        }
        .chart-modal-teams {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
            align-items: center;
            column-gap: 10px;
            width: 100%;
            max-width: 100%;
            margin: 0 auto;
            padding: 0 8px;
            box-sizing: border-box;
        }
        .chart-modal-side {
            display: inline-flex;
            align-items: baseline;
            gap: 4px;
            min-width: 0;
            max-width: 100%;
            font-size: 15px;
            font-weight: 900;
            color: var(--text-main);
            white-space: nowrap;
        }
        .chart-modal-side-l {
            grid-column: 1;
            justify-self: end;
            justify-content: flex-end;
            text-align: right;
        }
        .chart-modal-side-r {
            grid-column: 3;
            justify-self: start;
            justify-content: flex-start;
            text-align: left;
        }
        .chart-modal-side .chart-modal-team-name {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            flex: 0 1 auto;
        }
        .chart-modal-side-l .chart-modal-team-name {
            flex: 0 1 auto;
        }
        .chart-modal-side-r .chart-modal-team-name {
            flex: 0 1 auto;
        }
        .chart-modal-team-name {
            cursor: pointer;
            transition: 0.2s;
        }
        .chart-modal-team-name:hover {
            text-decoration: underline;
            color: var(--gold-pro);
        }
        .chart-modal-hc {
            cursor: default;
            user-select: none;
            flex-shrink: 0;
        }
        .chart-modal-side .hc-line-handicap {
            font-family: 'Roboto Mono', 'SF Mono', 'Cascadia Mono', 'Consolas', monospace;
            font-variant-numeric: tabular-nums;
            font-size: 11px;
            font-weight: 700;
            color: var(--text-main);
            letter-spacing: -0.03em;
        }
        body.theme-light .chart-modal-side .hc-line-handicap {
            color: var(--text-main);
        }
        @media (min-width: 641px) {
            .chart-modal-side .hc-line-handicap {
                font-size: 12px;
                font-weight: 900;
            }
        }
        .chart-modal-mid {
            grid-column: 2;
            justify-self: center;
            align-self: center;
            display: inline-flex;
            align-items: baseline;
            justify-content: center;
            gap: 6px;
            flex-shrink: 0;
            white-space: nowrap;
        }
        .chart-modal-vs {
            color: var(--text-sub);
            font-size: 13px;
            font-weight: 900;
            letter-spacing: 0.04em;
            line-height: 1;
            flex-shrink: 0;
        }
        .chart-toggle-group {
            display: none;
            width: 100%;
            max-width: 360px;
            margin: 0;
            align-items: stretch;
        }
        .chart-toggle-group.mode-handicap,
        .chart-toggle-group.mode-total {
            display: flex;
            flex-direction: column;
            gap: 0;
        }
        .chart-toggle-section {
            display: none;
            flex-direction: column;
            align-items: stretch;
            gap: 6px;
            min-width: 0;
            width: 100%;
        }
        .chart-toggle-group.mode-handicap .chart-toggle-section--handicap,
        .chart-toggle-group.mode-total .chart-toggle-section--total {
            display: flex;
        }
        .chart-toggle-section-label {
            font-size: 10px;
            font-weight: 800;
            color: var(--text-sub);
            letter-spacing: 0.6px;
            text-align: center;
            opacity: 0.85;
        }
        .chart-side-switch {
            display: flex;
            width: 100%;
            gap: 4px;
            padding: 4px;
            background: rgba(15, 23, 42, 0.45);
            border: none;
            border-radius: 14px;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 6px 20px rgba(0, 0, 0, 0.22);
        }
        body.theme-light .chart-side-switch {
            background: rgba(241, 245, 249, 0.95);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 4px 14px rgba(15, 23, 42, 0.08);
        }
        .chart-side-switch .chart-toggle-btn {
            flex: 1 1 0;
            min-width: 0;
            border: none;
            border-radius: 11px;
            padding: 9px 12px;
            font-size: 12px;
            font-weight: 800;
            letter-spacing: 0.4px;
            background: transparent;
            color: var(--text-sub);
            transition: background 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
        }
        .chart-side-switch .chart-toggle-btn:hover:not(.active):not(.active-home):not(.active-away) {
            color: var(--text-main);
            background: rgba(255, 255, 255, 0.04);
        }
        body.theme-light .chart-side-switch .chart-toggle-btn:hover:not(.active):not(.active-home):not(.active-away) {
            background: rgba(255, 255, 255, 0.85);
        }
        .chart-side-switch .chart-toggle-btn.active,
        .chart-side-switch .chart-toggle-btn.active-home {
            background: linear-gradient(145deg, #f97316 0%, #ea580c 100%);
            color: #fff;
            box-shadow: 0 4px 16px rgba(234, 88, 12, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.2);
        }
        .chart-side-switch .chart-toggle-btn.active-away {
            background: linear-gradient(145deg, #3b82f6 0%, #2563eb 100%);
            color: #fff;
            box-shadow: 0 4px 16px rgba(37, 99, 235, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.22);
        }
        body.theme-light .chart-side-switch .chart-toggle-btn.active,
        body.theme-light .chart-side-switch .chart-toggle-btn.active-home {
            box-shadow: 0 4px 14px rgba(234, 88, 12, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.22);
        }
        body.theme-light .chart-side-switch .chart-toggle-btn.active-away {
            box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
        }
        .chart-side-switch .chart-toggle-btn.active-over {
            background: linear-gradient(145deg, #8b5cf6 0%, #7c3aed 100%);
            color: #fff;
            box-shadow: 0 4px 16px rgba(124, 58, 237, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.2);
        }
        .chart-side-switch .chart-toggle-btn.active-under {
            background: linear-gradient(145deg, #10b981 0%, #059669 100%);
            color: #fff;
            box-shadow: 0 4px 16px rgba(5, 150, 105, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.2);
        }
        body.theme-light .chart-side-switch .chart-toggle-btn.active-over {
            box-shadow: 0 4px 14px rgba(124, 58, 237, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.22);
        }
        body.theme-light .chart-side-switch .chart-toggle-btn.active-under {
            box-shadow: 0 4px 14px rgba(5, 150, 105, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.22);
        }
        .chart-toggle-col {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            flex-wrap: wrap;
        }
        .chart-modal-body {
            display: flex;
            flex-direction: column;
            flex: 1 1 auto;
            min-height: 0;
            overflow: hidden;
            gap: 0;
        }
        .chart-stage {
            flex: 1 1 auto;
            min-width: 0;
            min-height: 0;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            position: relative;
        }
        .chart-load-overlay {
            display: none;
            position: absolute;
            inset: 0;
            z-index: 30;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background: rgba(15, 23, 42, 0.9);
            backdrop-filter: blur(3px);
        }
        body.theme-light .chart-load-overlay {
            background: rgba(248, 250, 252, 0.94);
        }
        .chart-load-overlay.is-visible { display: flex; }
        .chart-load-gif {
            position: absolute;
            top: 12%;
            left: 50%;
            transform: translateX(-50%);
            z-index: 2;
            width: 46px;
            height: 46px;
            object-fit: contain;
            pointer-events: none;
        }
        .chart-load-watermark {
            position: absolute;
            inset: 0;
            z-index: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 12px;
            color: rgba(59, 130, 246, 0.34);
            pointer-events: none;
            user-select: none;
        }
        .chart-load-watermark-inner {
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;
            gap: 0.42em;
            white-space: nowrap;
            font-size: clamp(44px, 10vw, 88px);
            font-weight: 900;
            line-height: 1;
            letter-spacing: 0.08em;
            max-width: 100%;
        }
        body.theme-light .chart-load-watermark {
            color: rgba(37, 99, 235, 0.28);
        }
        .chart-stage.is-loading .chart-toolbar,
        .chart-stage.is-loading .chart-top-inflow-strip,
        .chart-stage.is-loading .chart-chart-host {
            visibility: hidden;
        }
        .chart-chart-host {
            position: relative;
            flex: 1 1 auto;
            min-width: 0;
            min-height: 0;
            display: flex;
            flex-direction: column;
        }
        .chart-modal-chart-row {
            display: flex;
            flex: 1 1 auto;
            align-items: stretch;
            min-height: 0;
            min-width: 0;
            gap: 2px;
        }
        .chart-modal-chart-wrap {
            position: relative;
            flex: 1 1 auto;
            min-width: 0;
            min-height: 0;
            max-height: 50vh;
            overflow: visible;
            display: block;
            box-sizing: border-box;
        }
        .chart-panel-foot-actions,
        .chart-action-bar.chart-panel-foot-actions {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            flex: 0 0 auto;
            display: flex;
            align-items: flex-end;
            justify-content: flex-end;
            gap: 12px;
            width: 100%;
            box-sizing: border-box;
            margin-top: 0;
            padding: 8px 72px 12px 58px;
            z-index: 16;
            pointer-events: none;
            background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.72) 38%, rgba(255, 255, 255, 0.94) 100%);
        }
        body:not(.theme-light) .chart-panel-foot-actions,
        body:not(.theme-light) .chart-action-bar.chart-panel-foot-actions {
            background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.72) 38%, rgba(15, 23, 42, 0.94) 100%);
        }
        .chart-panel-foot-actions .chart-playback-btn,
        .chart-panel-foot-actions .chart-ai-export-btn,
        .chart-action-bar.chart-panel-foot-actions .chart-playback-btn,
        .chart-action-bar.chart-panel-foot-actions .chart-ai-export-btn {
            pointer-events: auto;
            height: 38px;
            min-width: 76px;
            padding: 0 20px;
            font-size: 13px;
            border-radius: 8px;
        }
        .chart-playback-btn--foot,
        .chart-ai-export-btn--foot {
            flex: 0 0 auto;
        }
        .chart-nav-rail {
            flex: 0 0 auto;
            display: none;
            flex-direction: column;
            justify-content: center;
            align-items: stretch;
            gap: 10px;
            padding: 4px 0 4px 4px;
            z-index: 12;
            min-width: 44px;
        }
        .chart-nav-rail.is-visible {
            display: flex;
        }
        .chart-nav-btn {
            border: 1px solid var(--border-light);
            background: var(--odds-bg);
            color: var(--text-main);
            border-radius: 10px;
            padding: 12px 8px;
            font-size: 13px;
            font-weight: 800;
            line-height: 1.25;
            cursor: pointer;
            transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
            writing-mode: vertical-rl;
            text-orientation: mixed;
            letter-spacing: 2px;
            min-height: 92px;
            min-width: 40px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
            font-family: inherit;
        }
        body.theme-light .chart-nav-btn {
            box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
        }
        .chart-nav-btn:hover:not(:disabled) {
            border-color: var(--gold-pro);
            color: var(--gold-pro);
            background: rgba(234, 179, 8, 0.08);
            box-shadow: 0 3px 12px rgba(234, 179, 8, 0.18);
        }
        .chart-nav-btn:disabled {
            opacity: 0.35;
            cursor: not-allowed;
        }
        .chart-nav-pos {
            font-size: 10px;
            font-weight: 800;
            color: var(--text-sub);
            text-align: center;
            writing-mode: vertical-rl;
            opacity: 0.85;
            line-height: 1.2;
            letter-spacing: 1px;
        }
        .chart-nav-meta {
            display: none !important;
        }
        .chart-echarts-box {
            width: 100%;
            height: 300px;
            max-height: min(68vh, 720px);
            visibility: hidden;
            position: relative;
            z-index: 5;
            overflow: hidden;
            display: block;
        }
        /* 图表交互提示牌 — 与 Top5 主/客配色成套（主队暖色 / 客队冷色） */
        .chart-tip-wrap {
            min-width: 152px;
            max-width: 214px;
            padding: 8px 11px 7px 10px;
            font-family: Verdana, "Segoe UI", sans-serif;
            -webkit-font-smoothing: antialiased;
            border-left: 3px solid #ea580c;
            box-sizing: border-box;
            opacity: 1;
        }
        body:not(.theme-light) .chart-tip-wrap { background: #0f172a; }
        body.theme-light .chart-tip-wrap { background: #ffffff; }
        .chart-tip-wrap--home {
            border-left-color: #ea580c;
        }
        body:not(.theme-light) .chart-tip-wrap--home {
            background: #1a120c;
        }
        body.theme-light .chart-tip-wrap--home {
            background: #fff7ed;
            border-left-color: rgba(234, 88, 12, 0.55);
        }
        .chart-tip-wrap--away {
            border-left-color: #2563eb;
        }
        body:not(.theme-light) .chart-tip-wrap--away {
            background: #0c1528;
        }
        body.theme-light .chart-tip-wrap--away {
            background: #eff6ff;
            border-left-color: rgba(37, 99, 235, 0.55);
        }
        .chart-tip-wrap--over {
            border-left-color: #7c3aed;
        }
        body:not(.theme-light) .chart-tip-wrap--over {
            background: #160f24;
        }
        body.theme-light .chart-tip-wrap--over {
            background: #f5f3ff;
            border-left-color: rgba(124, 58, 237, 0.55);
        }
        .chart-tip-wrap--under {
            border-left-color: #059669;
        }
        body:not(.theme-light) .chart-tip-wrap--under {
            background: #0a1a14;
        }
        body.theme-light .chart-tip-wrap--under {
            background: #ecfdf5;
            border-left-color: rgba(5, 150, 105, 0.55);
        }
        body.theme-light .chart-top-inflow-card,
        body.theme-light .chart-top-inflow-card--home,
        body.theme-light .chart-top-inflow-card--away,
        body.theme-light .chart-top-inflow-card--over,
        body.theme-light .chart-top-inflow-card--under,
        body.theme-light .chart-top-inflow-card--compact,
        body.theme-light .chart-pinned-card-wrap .chart-tip-wrap,
        body.theme-light .chart-hover-card-wrap .chart-tip-wrap,
        body.theme-light .chart-tip-wrap--dock,
        body.theme-light .chart-playback-dock-pane .chart-tip-wrap {
            opacity: 1;
        }
        .chart-tip-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            margin-bottom: 6px;
        }
        .chart-tip-team {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 12px;
            font-weight: 800;
            letter-spacing: 0.01em;
            line-height: 1.2;
            min-width: 0;
        }
        body:not(.theme-light) .chart-tip-team { color: #f1f5f9; }
        body.theme-light .chart-tip-team { color: #0f172a; }
        .chart-tip-wrap--home .chart-tip-team { color: #c2410c; }
        .chart-tip-wrap--away .chart-tip-team { color: #1e40af; }
        body:not(.theme-light) .chart-tip-wrap--home .chart-tip-team { color: #ffedd5; }
        body:not(.theme-light) .chart-tip-wrap--away .chart-tip-team { color: #dbeafe; }
        .chart-tip-wrap--over .chart-tip-team { color: #6d28d9; }
        .chart-tip-wrap--under .chart-tip-team { color: #047857; }
        body:not(.theme-light) .chart-tip-wrap--over .chart-tip-team { color: #ede9fe; }
        body:not(.theme-light) .chart-tip-wrap--under .chart-tip-team { color: #d1fae5; }
        .chart-tip-team-dot {
            flex-shrink: 0;
            width: 7px;
            height: 7px;
            border-radius: 50%;
        }
        .chart-tip-team-dot--home {
            background: #ea580c;
            box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.22);
        }
        .chart-tip-team-dot--away {
            background: #2563eb;
            box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
        }
        .chart-tip-team-dot--over {
            background: #7c3aed;
            box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.22);
        }
        .chart-tip-team-dot--under {
            background: #059669;
            box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.22);
        }
        .chart-tip-time {
            flex-shrink: 0;
            font-size: 10px;
            font-weight: 600;
            letter-spacing: 0.02em;
            white-space: nowrap;
        }
        body:not(.theme-light) .chart-tip-time { color: #94a3b8; }
        body.theme-light .chart-tip-time { color: #64748b; }
        .chart-tip-flag {
            margin: 0 0 6px;
            padding: 3px 6px;
            border-radius: 5px;
            font-size: 9px;
            font-weight: 700;
            line-height: 1.3;
            text-align: center;
            color: #db2777;
            background: rgba(219, 39, 119, 0.1);
            border: 1px solid rgba(219, 39, 119, 0.18);
        }
        body.theme-light .chart-tip-flag {
            background: rgba(219, 39, 119, 0.06);
        }
        .chart-tip-hero-row {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 8px;
            margin-bottom: 5px;
        }
        .chart-tip-hero-row--inline {
            justify-content: flex-start;
            flex-wrap: nowrap;
            gap: 0;
        }
        .chart-tip-hero-row--inline .chart-tip-hero-val {
            margin-right: 8px;
            text-align: left;
        }
        .chart-tip-hero-people {
            font-size: 13px;
            font-weight: 800;
            font-variant-numeric: tabular-nums;
            letter-spacing: -0.02em;
            line-height: 1;
            color: #6366f1;
        }
        body:not(.theme-light) .chart-tip-hero-people {
            color: #a5b4fc;
        }
        .chart-tip-hero-label {
            font-size: 10px;
            font-weight: 600;
            letter-spacing: 0.02em;
            flex-shrink: 0;
        }
        body:not(.theme-light) .chart-tip-hero-label { color: #94a3b8; }
        body.theme-light .chart-tip-hero-label { color: #64748b; }
        .chart-tip-hero-val {
            font-size: 15px;
            font-weight: 800;
            letter-spacing: -0.02em;
            line-height: 1;
            font-variant-numeric: tabular-nums;
            color: #ca8a04;
            text-align: right;
        }
        body:not(.theme-light) .chart-tip-hero-val { color: #eab308; }
        .chart-tip-index {
            display: inline-block;
            margin-bottom: 6px;
            padding: 2px 7px;
            border-radius: 5px;
            font-size: 10px;
            font-weight: 700;
            font-variant-numeric: tabular-nums;
            letter-spacing: 0.01em;
            color: #0d9488;
            background: rgba(20, 184, 166, 0.1);
            border: 1px solid rgba(20, 184, 166, 0.22);
        }
        body:not(.theme-light) .chart-tip-index {
            color: #2dd4bf;
            background: rgba(20, 184, 166, 0.12);
            border-color: rgba(45, 212, 191, 0.2);
        }
        .chart-tip-kelly {
            font-weight: 600;
            opacity: 0.92;
            white-space: nowrap;
        }
        body:not(.theme-light) .chart-tip-kelly {
            color: #c4b5fd;
        }
        body.theme-light .chart-tip-kelly {
            color: #6d28d9;
        }
        .chart-tip-stats {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 6px;
            padding-top: 6px;
            border-top: 1px solid rgba(148, 163, 184, 0.18);
        }
        .chart-tip-stats--inline {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 6px;
            flex-wrap: nowrap;
            overflow: visible;
        }
        .chart-tip-pct {
            display: inline-flex;
            align-items: baseline;
            gap: 0;
            flex-shrink: 0;
            white-space: nowrap;
        }
        .chart-tip-pct-k {
            font-size: 10px;
            font-weight: 600;
            letter-spacing: 0.01em;
        }
        body:not(.theme-light) .chart-tip-pct-k { color: #64748b; }
        body.theme-light .chart-tip-pct-k { color: #94a3b8; }
        .chart-tip-pct-v {
            font-size: 12px;
            font-weight: 800;
            font-variant-numeric: tabular-nums;
            line-height: 1;
        }
        body:not(.theme-light) .chart-tip-pct-v { color: #e2e8f0; }
        body.theme-light .chart-tip-pct-v { color: #1e293b; }
        .chart-tip-avg-stamp {
            display: inline-block;
            flex-shrink: 0;
            transform: rotate(-10deg);
            transform-origin: center center;
            margin-left: auto;
        }
        .chart-tip-avg-stamp-inner {
            display: inline-block;
            padding: 1px 5px 2px;
            border: 2px solid rgba(185, 28, 28, 0.52);
            border-radius: 3px;
            font-size: 9px;
            font-weight: 900;
            font-variant-numeric: tabular-nums;
            line-height: 1.15;
            letter-spacing: -0.02em;
            white-space: nowrap;
            color: rgba(153, 27, 27, 0.9);
            background: rgba(254, 242, 242, 0.72);
            box-shadow: inset 0 0 0 1px rgba(185, 28, 28, 0.16);
            opacity: 0.92;
        }
        .chart-tip-avg-stamp--tier-10000 .chart-tip-avg-stamp-inner {
            border-color: rgba(217, 119, 6, 0.62);
            color: #b45309;
            background: rgba(254, 243, 199, 0.82);
        }
        .chart-tip-avg-stamp--tier-30000 .chart-tip-avg-stamp-inner {
            border-color: rgba(234, 88, 12, 0.72);
            color: #c2410c;
            background: rgba(255, 237, 213, 0.88);
        }
        .chart-tip-avg-stamp--tier-50000 .chart-tip-avg-stamp-inner {
            border-width: 2.5px;
            border-color: rgba(220, 38, 38, 0.88);
            color: #b91c1c;
            background: rgba(254, 202, 202, 0.88);
        }
        body:not(.theme-light) .chart-tip-avg-stamp-inner {
            color: #fecaca;
            border-color: rgba(248, 113, 113, 0.62);
            background: rgba(127, 29, 29, 0.42);
            box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.22);
        }
        .chart-tip-stat-val .chart-top-inflow-people {
            font: inherit;
            font-weight: inherit;
            font-size: inherit;
            line-height: inherit;
            color: inherit;
        }
        body.theme-light .chart-tip-stats {
            border-top-color: rgba(148, 163, 184, 0.22);
        }
        .chart-tip-stat {
            text-align: center;
        }
        .chart-tip-stat-label {
            font-size: 9px;
            font-weight: 600;
            letter-spacing: 0.02em;
            margin-bottom: 2px;
        }
        body:not(.theme-light) .chart-tip-stat-label { color: #64748b; }
        body.theme-light .chart-tip-stat-label { color: #94a3b8; }
        .chart-tip-stat-val {
            font-size: 13px;
            font-weight: 700;
            font-variant-numeric: tabular-nums;
            line-height: 1;
        }
        body:not(.theme-light) .chart-tip-stat-val { color: #e2e8f0; }
        body.theme-light .chart-tip-stat-val { color: #1e293b; }
        .chart-tip-foot {
            margin-top: 8px;
            padding-top: 7px;
            border-top: 1px dashed rgba(148, 163, 184, 0.2);
            font-size: 10px;
            line-height: 1.45;
        }
        body:not(.theme-light) .chart-tip-foot { color: #94a3b8; }
        body.theme-light .chart-tip-foot { color: #64748b; }
        div.chart-axis-tooltip {
            z-index: 99999 !important;
            pointer-events: none;
            opacity: 1 !important;
        }
        body:not(.theme-light) div.chart-axis-tooltip {
            background: #0f172a !important;
            border-color: rgba(51, 65, 85, 0.65) !important;
        }
        body.theme-light div.chart-axis-tooltip {
            background: #ffffff !important;
            border-color: rgba(226, 232, 240, 0.95) !important;
        }
        @media (max-width: 640px) {
            .chart-tip-wrap {
                min-width: 148px;
                max-width: 202px;
                padding: 7px 10px 6px 9px;
            }
            .chart-tip-hero-val { font-size: 14px; }
            .chart-tip-hero-people { font-size: 12px; }
            .chart-tip-pct-v { font-size: 11px; }
            .chart-tip-avg-stamp-inner { font-size: 8px; }
            .chart-tip-stat-val { font-size: 12px; }
        }
        @media (max-width: 640px) {
            #chartModalOverlay {
                padding: 0;
                align-items: center;
                justify-content: center;
            }
            .chart-modal-box {
                width: min(96vw, 440px);
                max-width: 96vw;
                height: auto;
                max-height: 92dvh;
                border-radius: 12px;
                padding: 8px 5px 6px;
                box-shadow: var(--modal-shadow);
                border-color: rgba(148, 163, 184, 0.14);
                overflow: hidden;
            }
            .chart-modal-body {
                flex: 0 1 auto;
                min-height: 0;
                display: flex;
                flex-direction: column;
                overflow: hidden;
            }
            .chart-modal-chart-row {
                flex: 0 1 auto;
                flex-direction: column;
                min-height: 0;
                gap: 0;
            }
            .chart-stage {
                order: 1;
                flex: 0 1 auto;
                min-height: 0;
            }
            .chart-workspace {
                flex: 0 1 auto;
                min-height: 0;
            }
            .chart-chart-host {
                flex: 0 1 auto;
                min-height: 0;
            }
            .chart-modal-chart-wrap {
                flex: 0 0 auto;
                min-height: 0;
                max-height: none;
                overflow: visible;
            }
            .chart-action-bar.chart-panel-foot-actions,
            .chart-panel-foot-actions {
                position: relative;
                flex: 0 0 auto;
                justify-content: flex-end;
                gap: 8px;
                margin-top: 0;
                padding: 4px 6px 3px;
                border-top: none;
                background: transparent;
                pointer-events: auto;
                padding-bottom: max(3px, env(safe-area-inset-bottom, 0px));
            }
            body:not(.theme-light) .chart-action-bar.chart-panel-foot-actions,
            body:not(.theme-light) .chart-panel-foot-actions {
                background: transparent;
            }
            .chart-action-bar.chart-panel-foot-actions .chart-playback-btn,
            .chart-action-bar.chart-panel-foot-actions .chart-ai-export-btn,
            .chart-panel-foot-actions .chart-playback-btn,
            .chart-panel-foot-actions .chart-ai-export-btn {
                height: 26px;
                min-width: 42px;
                padding: 0 9px;
                font-size: 11px;
                border-radius: 6px;
                box-shadow: none;
            }
            .chart-action-bar.chart-panel-foot-actions .chart-ai-export-btn,
            .chart-panel-foot-actions .chart-ai-export-btn {
                min-width: 54px;
            }
            .chart-nav-rail {
                order: 2;
                flex: 0 0 auto;
                flex-direction: row;
                align-items: center;
                justify-content: center;
                gap: 8px;
                padding: 4px 4px 2px;
                min-width: 0;
                width: 100%;
                border-top: 1px solid rgba(148, 163, 184, 0.1);
                margin-top: 3px;
                z-index: 12;
            }
            body.theme-light .chart-nav-rail {
                border-top-color: rgba(148, 163, 184, 0.22);
            }
            .chart-nav-btn {
                writing-mode: horizontal-tb;
                text-orientation: mixed;
                min-height: 0;
                min-width: 0;
                padding: 7px 16px;
                font-size: 12px;
                letter-spacing: 0.5px;
                border-radius: 8px;
            }
            .chart-nav-pos {
                writing-mode: horizontal-tb;
                text-orientation: mixed;
                letter-spacing: 0;
                font-size: 11px;
                padding: 0 4px;
            }
            .chart-modal-header { padding: 5px 30px 4px 2px; margin-bottom: 0; border-bottom-color: rgba(148, 163, 184, 0.08); }
            .chart-modal-close { font-size: 26px; right: 2px; top: -2px; }
            .chart-modal-topline {
                display: flex;
                align-items: baseline;
                flex-wrap: wrap;
                gap: 2px 5px;
                margin-bottom: 2px;
                line-height: 1.15;
            }
            .chart-modal-brand {
                font-size: 13px;
                font-weight: 800;
            }
            .chart-modal-center-title {
                font-size: 12px;
                font-weight: 800;
            }
            .chart-modal-meta-item {
                font-size: 9px;
                font-weight: 600;
                opacity: 0.72;
            }
            .chart-modal-header-main {
                gap: 6px;
                padding-right: 0;
                align-items: center;
            }
            .chart-modal-header-sub {
                margin-top: 4px;
                gap: 6px;
                align-items: center;
            }
            .chart-modal-header-sub .chart-toggle-group {
                flex: 0 1 48%;
                max-width: 48%;
            }
            .chart-modal-header-sub .chart-modal-header-rule {
                flex: 1 1 0;
                min-width: 0;
                padding: 0 2px;
            }
            .chart-modal-header-sub .chart-modal-header-rule__line {
                width: 100%;
            }
            .chart-modal-header-sub .chart-divergence-summary {
                flex: 1 1 0;
                font-size: 9px;
                line-height: 1.3;
                padding: 4px 6px;
                border-radius: 5px;
            }
            .chart-modal-header-sub .chart-divergence-summary__text {
                white-space: normal;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                overflow: hidden;
            }
            .chart-side-switch {
                padding: 3px;
                border-radius: 10px;
            }
            .chart-side-switch .chart-toggle-btn {
                padding: 5px 6px;
                font-size: 10px;
                border-radius: 8px;
            }
            .chart-modal-teams {
                grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
                column-gap: 5px;
                padding: 0 1px;
            }
            .chart-modal-side { font-size: 13px; font-weight: 800; gap: 2px; }
            .chart-modal-side-l .chart-modal-team-name {
                overflow: visible;
                text-overflow: clip;
            }
            .chart-modal-side-r .chart-modal-team-name {
                overflow: hidden;
                text-overflow: ellipsis;
            }
            .chart-modal-mid { gap: 4px; }
            .chart-modal-vs {
                font-size: 9px;
                padding: 0 1px;
                opacity: 0.75;
            }
            .chart-modal-side-score { font-size: 15px; font-weight: 900; }
            .chart-toolbar {
                padding: 1px 0 3px;
            }
            .chart-toolbar-row {
                display: grid;
                grid-template-columns: 1fr auto 1fr;
                grid-template-rows: auto;
                align-items: center;
                column-gap: 6px;
                row-gap: 0;
                padding: 0 4px;
                overflow: visible;
            }
            .chart-toolbar-row::-webkit-scrollbar {
                display: none;
            }
            .chart-toolbar-zoom-slot {
                grid-column: 2;
                grid-row: 1;
                justify-self: center;
                width: auto;
                min-height: 0;
            }
            .chart-toolbar-meta-slot {
                grid-column: 3;
                grid-row: 1;
                justify-self: end;
                align-self: center;
                min-width: 0;
                display: inline-flex;
                align-items: center;
                justify-content: flex-end;
                gap: 4px;
            }
            .chart-sample-notice-bar.is-visible {
                width: auto;
                max-width: 100%;
                min-width: 0;
                flex: 1 1 auto;
            }
            .chart-sample-notice {
                min-width: 0;
                overflow: hidden;
                text-overflow: ellipsis;
            }
            .chart-sample-notice--warn {
                font-size: 8px;
                padding: 2px 6px;
                line-height: 1.2;
                white-space: nowrap;
                text-align: left;
                justify-content: flex-start;
                margin: 0;
                max-width: 100%;
            }
            #chartSampleOkWrap.is-visible {
                width: auto;
                flex: 0 0 auto;
            }
            .chart-sample-notice--ok {
                font-size: 8px;
                white-space: nowrap;
            }
            .chart-sample-notice__detail {
                font-size: 10px;
            }
            .chart-panel-plot-hint {
                font-size: 12px;
                max-width: 84%;
            }
            .chart-legend-line { width: 12px; height: 3px; }
            .chart-legend-swatch-gold { width: 10px; height: 6px; }
            .chart-legend-diamond--line {
                width: 7px;
                height: 7px;
            }
            .chart-panel-head-row--title,
            .chart-panel-head-row--controls {
                display: contents;
            }
            .chart-panel-head {
                flex-direction: row;
                align-items: center;
                flex-wrap: nowrap;
                justify-content: center;
                gap: 4px;
                padding: 0 3px;
                min-height: 24px;
                white-space: nowrap;
                z-index: 11;
                overflow-x: auto;
                scrollbar-width: none;
                -webkit-overflow-scrolling: touch;
            }
            .chart-panel-head::-webkit-scrollbar {
                display: none;
            }
            .chart-panel-controls {
                margin-left: 0;
            }
            .chart-panel-head-name {
                font-size: 10px;
                max-width: 26vw;
                overflow: hidden;
                text-overflow: ellipsis;
            }
            .chart-panel-head-hc { font-size: 9px; }
            .chart-panel-head-mark { font-size: 10px; }
            .chart-panel-head .chart-money-view-btn,
            .chart-panel-head .chart-people-view-btn,
            .chart-panel-head .chart-odds-view-btn,
            .chart-panel-head .chart-kelly-view-btn,
            .chart-panel-head .chart-kelly-help-btn {
                font-size: 7.5px;
                padding: 1px 3px;
            }
            .chart-panel-legend {
                display: none !important;
            }
            .chart-panel-inflow-total {
                display: inline-flex;
                flex-direction: row;
                flex-wrap: nowrap;
                align-items: baseline;
                justify-content: flex-start;
                gap: 0;
                width: max-content;
                max-width: none;
                padding: 1px 5px;
                white-space: nowrap;
                line-height: 1.15;
            }
            .chart-panel-inflow-total--top {
                max-height: none;
                overflow: visible;
            }
            .chart-panel-inflow-total__label {
                font-size: 8px;
                font-weight: 700;
                flex: 0 0 auto;
            }
            .chart-panel-inflow-total__amt {
                font-size: 11px;
                font-weight: 900;
                flex: 0 0 auto;
                letter-spacing: 0;
            }
            .chart-panel-inflow-total__share {
                letter-spacing: 0;
            }
            .time-zoom-capsule {
                padding: 1px;
                gap: 2px;
                border-radius: 14px;
                border-color: rgba(148, 163, 184, 0.18);
            }
            .time-zoom-capsule::before {
                top: 1px;
                bottom: 1px;
                border-radius: 12px;
            }
            .time-zoom-btn {
                font-size: 11px;
                padding: 3px 8px;
                min-width: 30px;
                border-radius: 12px;
            }
            .time-zoom-btn--kickoff {
                min-width: 36px;
            }
            .chart-echarts-box {
                flex: none;
                min-height: 0;
                height: auto !important;
                max-height: none;
            }
        }

        .match-body {
            padding: 0 var(--hc-inset-x, 16px) 14px;
            box-sizing: border-box;
        }

        .toast { position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%); background: var(--accent-blue); color: #fff; padding: 12px 25px; border-radius: 50px; font-weight: 800; display: none; z-index: 1000; box-shadow: 0 10px 20px rgba(0,0,0,0.8); }

        .mobile-only { display: none; }

        .list-filter-wrap {
            position: relative; flex-shrink: 0;
        }
        .list-tools-seg {
            display: inline-flex;
            align-items: stretch;
            border: 1px solid var(--border-light);
            border-radius: 8px;
            overflow: hidden;
            background: var(--view-box-bg);
            box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
        }
        body.theme-light .list-tools-seg {
            background: rgba(248, 250, 252, 0.95);
            box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
        }
        .list-tools-seg-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
            border: none;
            border-right: 1px solid var(--border-light);
            padding: 5px 12px;
            font-size: 11px;
            font-weight: 800;
            cursor: pointer;
            background: transparent;
            color: var(--view-btn-text);
            letter-spacing: 0.3px;
            white-space: nowrap;
            transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
        }
        .list-tools-seg-btn:last-child { border-right: none; }
        .list-tools-seg-btn--filter[aria-expanded="true"]:not(.is-active) {
            background: rgba(71, 85, 105, 0.45);
            color: #e2e8f0;
        }
        body.theme-light .list-tools-seg-btn--filter[aria-expanded="true"]:not(.is-active) {
            background: rgba(148, 163, 184, 0.28);
            color: #334155;
        }
        .list-tools-seg-btn--filter.is-active {
            background: var(--accent-blue);
            color: #ffffff;
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
        }
        body.theme-light .list-tools-seg-btn--filter.is-active {
            box-shadow: none;
        }
        .list-tools-seg-btn--review {
            color: #94a3b8;
        }
        body.theme-light .list-tools-seg-btn--review { color: #64748b; }
        .list-tools-seg-btn--review:hover {
            background: rgba(20, 184, 166, 0.22);
            color: #5eead4;
        }
        body.theme-light .list-tools-seg-btn--review:hover {
            background: rgba(20, 184, 166, 0.14);
            color: #0d9488;
        }
        .list-tools-seg-btn--review:active {
            background: #14b8a6;
            color: #fff;
        }
        .list-tools-seg-btn--alert {
            padding: 5px 9px;
            color: #94a3b8;
        }
        body.theme-light .list-tools-seg-btn--alert { color: #64748b; }
        .list-tools-seg-btn--alert:hover {
            background: rgba(245, 158, 11, 0.16);
            color: #fbbf24;
        }
        body.theme-light .list-tools-seg-btn--alert:hover {
            background: rgba(245, 158, 11, 0.12);
            color: #d97706;
        }
        .list-tools-seg-btn--alert.is-on {
            color: #f59e0b;
        }
        body.theme-light .list-tools-seg-btn--alert.is-on { color: #d97706; }
        .list-tools-seg-btn--alert[aria-expanded="true"] {
            background: rgba(245, 158, 11, 0.18);
        }
        .list-tools-seg-btn--alert:not(.is-on) .coin-alert-waves {
            opacity: 0.28;
        }
        .coin-alert-icon { display: block; }
        .coin-alert-panel {
            position: absolute;
            top: calc(100% + 8px);
            right: 0;
            z-index: 510;
            width: min(220px, calc(100vw - 24px));
            padding: 10px 12px;
            border-radius: 12px;
            border: 1px solid var(--border-light);
            background: var(--card-bg, #0f172a);
            box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
            color: var(--text-main);
        }
        body.theme-light .coin-alert-panel {
            background: #fff;
            box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
        }
        .coin-alert-picks {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .coin-alert-picks label {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
        }
        .coin-alert-picks input { margin: 0; }
        .coin-alert-pick--cheer { color: #f59e0b; }
        .coin-alert-pick--cheer input { accent-color: #f59e0b; }
        .coin-alert-pick--coins { color: #14b8a6; }
        .coin-alert-pick--coins input { accent-color: #14b8a6; }
        .coin-alert-pick--settle { color: #3b82f6; }
        .coin-alert-pick--settle input { accent-color: #3b82f6; }
        .coin-alert-pick--mute { color: #94a3b8; }
        .coin-alert-pick--mute input { accent-color: #94a3b8; }
        body.theme-light .coin-alert-pick--cheer { color: #d97706; }
        body.theme-light .coin-alert-pick--coins { color: #0f766e; }
        body.theme-light .coin-alert-pick--settle { color: #2563eb; }
        body.theme-light .coin-alert-pick--mute { color: #64748b; }
        .coin-alert-hint {
            margin: 0 0 8px;
            font-size: 12px;
            font-weight: 500;
            color: #94a3b8;
            line-height: 1.45;
        }
        .list-filter-badge {
            min-width: 15px; height: 15px; padding: 0 4px; border-radius: 999px;
            background: rgba(255, 255, 255, 0.18); color: #fff;
            border: 1px solid rgba(255, 255, 255, 0.28);
            font-size: 9px; font-weight: 900; line-height: 13px; text-align: center;
        }
        body.theme-light .list-tools-seg-btn--filter.is-active .list-filter-badge {
            background: rgba(255, 255, 255, 0.92);
            color: #334155;
            border-color: rgba(255, 255, 255, 0.92);
        }
        .list-filter-panel {
            position: absolute; top: calc(100% + 8px); right: 0; z-index: 500;
            width: min(352px, calc(100vw - 24px));
            max-height: min(calc(100vh - 100px), 540px);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            padding: 0;
            border-radius: 14px; border: 1px solid rgba(100, 116, 139, 0.32);
            background: var(--modal-box); backdrop-filter: var(--modal-box-blur);
            box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.04);
        }
        @media (min-width: 641px) {
            body > #listFilterPanel.list-filter-panel {
                position: fixed;
                z-index: 9035;
            }
        }
        body.theme-light .list-filter-panel {
            background: #ffffff;
            border-color: #cbd5e1;
            box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(15, 23, 42, 0.03);
        }
        .list-filter-panel[hidden] { display: none !important; }

        .list-filter-backdrop {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 9000;
            background: rgba(2, 6, 23, 0.36);
            opacity: 0;
            transition: opacity 0.32s cubic-bezier(0.32, 0.72, 0, 1);
        }
        .list-filter-backdrop:not([hidden]) { display: block; }
        .list-filter-backdrop.is-visible { opacity: 1; }
        body.list-filter-open {
            overflow: hidden;
            overscroll-behavior: none;
        }

        .date-picker-trigger {
            width: 100%;
            max-width: 120px;
            border: var(--date-input-border);
            border-radius: 8px;
            padding: 8px 5px;
            font-weight: 500;
            font-family: Verdana, sans-serif;
            font-size: 12px;
            color: #7891a8;
            cursor: pointer;
            text-align: center;
            background: var(--date-input-bg);
            outline: none;
            transition: background 0.2s, color 0.2s, border-color 0.2s;
            white-space: nowrap;
        }
        .date-picker-trigger:not(.is-active) {
            font-weight: 500;
        }
        body.theme-light .date-picker-trigger:not(.is-active) {
            color: #5c7088;
            background: var(--btn-glass-bg);
            border: var(--btn-glass-border);
        }
        .date-picker-trigger.is-active {
            background: rgba(59, 130, 246, 0.1);
            color: #60a5fa;
            border-color: rgba(96, 165, 250, 0.35);
        }
        body.theme-light .date-picker-trigger.is-active {
            background: #f0f9ff;
            color: #2563eb;
            border-color: #bae6fd;
        }
        .mo-date-btn.date-picker-trigger {
            width: auto;
            max-width: none;
            font-family: inherit;
            font-size: 10px;
            font-weight: 600;
            padding: 1px 6px;
            border-radius: 4px;
            line-height: 1.3;
        }
        .mo-date-btn.date-picker-trigger.is-active {
            background: rgba(59, 130, 246, 0.1);
            color: #60a5fa;
            border-color: rgba(96, 165, 250, 0.35);
        }
        body.theme-light .mo-date-btn.date-picker-trigger.is-active {
            background: #f0f9ff;
            color: #2563eb;
            border-color: #bae6fd;
        }

        .date-picker-backdrop {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 9090;
            background: rgba(15, 23, 42, 0.14);
            backdrop-filter: blur(2px);
            opacity: 0;
            transition: opacity 0.22s ease;
        }
        body.theme-light .date-picker-backdrop {
            background: rgba(148, 163, 184, 0.18);
        }
        .date-picker-backdrop:not([hidden]) { display: block; }
        .date-picker-backdrop.is-visible { opacity: 1; }
        body.date-picker-open {
            overflow: hidden;
            overscroll-behavior: none;
        }

        .date-picker-panel {
            position: fixed;
            z-index: 9100;
            top: 0;
            left: 0;
            opacity: 0;
            transform: translateY(-6px);
            width: min(300px, calc(100vw - 24px));
            max-height: min(420px, calc(100vh - 24px));
            overflow-y: auto;
            padding: 16px 16px 14px;
            border-radius: 16px;
            border: 1px solid rgba(148, 163, 184, 0.22);
            background: rgba(255, 255, 255, 0.97);
            box-shadow: 0 10px 36px rgba(15, 23, 42, 0.1);
            transition: opacity 0.2s ease, transform 0.2s ease;
        }
        body:not(.theme-light) .date-picker-panel {
            background: rgba(30, 41, 59, 0.94);
            border-color: rgba(148, 163, 184, 0.18);
            box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
        }
        .date-picker-panel[hidden] { display: none !important; }
        .date-picker-panel.is-open {
            opacity: 1;
            transform: translateY(0);
        }

        .date-picker-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            margin-bottom: 12px;
        }
        .date-picker-nav {
            width: 28px;
            height: 28px;
            border: none;
            border-radius: 999px;
            background: rgba(148, 163, 184, 0.12);
            color: var(--text-sub);
            font-size: 15px;
            line-height: 1;
            cursor: pointer;
            flex-shrink: 0;
            transition: background 0.15s, color 0.15s;
        }
        .date-picker-nav:hover {
            background: rgba(59, 130, 246, 0.12);
            color: #60a5fa;
        }
        body.theme-light .date-picker-nav:hover {
            background: #eff6ff;
            color: #2563eb;
        }
        .date-picker-month {
            flex: 1;
            text-align: center;
            font-size: 14px;
            font-weight: 600;
            color: var(--text-main);
            letter-spacing: 0.01em;
        }
        .date-picker-weekdays,
        .date-picker-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 2px;
        }
        .date-picker-weekdays {
            margin-bottom: 4px;
        }
        .date-picker-weekday {
            text-align: center;
            font-size: 10px;
            font-weight: 500;
            color: var(--text-sub);
            padding: 2px 0;
            opacity: 0.85;
        }
        .date-picker-day {
            aspect-ratio: 1;
            min-height: 30px;
            border: none;
            border-radius: 999px;
            background: transparent;
            color: var(--text-main);
            font-size: 12px;
            font-weight: 500;
            font-family: Verdana, sans-serif;
            cursor: pointer;
            transition: background 0.15s, color 0.15s, box-shadow 0.15s;
        }
        .date-picker-day.is-empty {
            pointer-events: none;
        }
        .date-picker-day:hover:not(.is-empty):not(.is-selected) {
            background: rgba(59, 130, 246, 0.08);
        }
        body.theme-light .date-picker-day:hover:not(.is-empty):not(.is-selected) {
            background: #f8fafc;
        }
        .date-picker-day.is-selected {
            background: rgba(59, 130, 246, 0.14);
            color: #60a5fa;
            box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.55);
            font-weight: 600;
        }
        body.theme-light .date-picker-day.is-selected {
            background: #eff6ff;
            color: #2563eb;
            box-shadow: inset 0 0 0 1px #93c5fd;
        }
        .date-picker-day.is-today:not(.is-selected) {
            box-shadow: inset 0 0 0 1.5px rgba(148, 163, 184, 0.65);
            font-weight: 600;
        }
        body.theme-light .date-picker-day.is-today:not(.is-selected) {
            box-shadow: inset 0 0 0 1.5px #94a3b8;
            color: #334155;
        }
        .date-picker-day.is-today.is-selected {
            box-shadow: inset 0 0 0 1.5px rgba(96, 165, 250, 0.85);
        }
        .date-picker-preview {
            margin-top: 10px;
            padding: 0 2px;
            background: none;
            font-size: 11px;
            font-weight: 500;
            color: var(--text-sub);
            text-align: center;
            min-height: 16px;
            opacity: 0.88;
        }
        .date-picker-preview.has-pick {
            color: var(--text-sub);
            opacity: 1;
        }
        body.theme-light .date-picker-preview.has-pick {
            color: #64748b;
        }
        .date-picker-actions {
            display: flex;
            gap: 10px;
            margin-top: 14px;
        }
        .date-picker-btn {
            flex: 1;
            border: 1px solid rgba(148, 163, 184, 0.28);
            border-radius: 999px;
            padding: 8px 10px;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            background: transparent;
            color: var(--text-sub);
            transition: background 0.15s, border-color 0.15s, color 0.15s;
        }
        .date-picker-btn:hover {
            background: rgba(148, 163, 184, 0.08);
        }
        .date-picker-btn--primary {
            border-color: rgba(96, 165, 250, 0.45);
            background: rgba(59, 130, 246, 0.12);
            color: #60a5fa;
        }
        body.theme-light .date-picker-btn--primary {
            border-color: #bfdbfe;
            background: #eff6ff;
            color: #2563eb;
        }
        .date-picker-btn--primary:not(:disabled):hover {
            background: rgba(59, 130, 246, 0.2);
            border-color: rgba(96, 165, 250, 0.6);
        }
        body.theme-light .date-picker-btn--primary:not(:disabled):hover {
            background: #dbeafe;
            border-color: #93c5fd;
        }
        .date-picker-btn--primary:disabled {
            opacity: 0.38;
            cursor: not-allowed;
        }

        .list-filter-sheet-top {
            display: none;
            flex-shrink: 0;
        }
        .list-filter-sheet-handle {
            width: 36px;
            height: 4px;
            margin: 0 auto 6px;
            border-radius: 999px;
            background: rgba(148, 163, 184, 0.55);
        }
        body.theme-light .list-filter-sheet-handle {
            background: rgba(100, 116, 139, 0.35);
        }

        .list-filter-sheet-head {
            display: none;
            grid-template-columns: 32px 1fr 32px;
            align-items: center;
            gap: 0;
            margin: 0;
            padding: 0 0 6px;
            border-bottom: 1px solid rgba(100, 116, 139, 0.32);
            flex-shrink: 0;
        }
        body.theme-light .list-filter-sheet-head {
            border-bottom-color: #e2e8f0;
        }
        .list-filter-sheet-side {
            width: 32px;
            height: 32px;
            flex-shrink: 0;
        }
        .list-filter-sheet-title {
            font-size: 14px;
            font-weight: 700;
            color: var(--text-main);
            letter-spacing: 0.01em;
            text-align: center;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .list-filter-sheet-close {
            width: 32px;
            height: 32px;
            border: none;
            border-radius: 999px;
            background: transparent;
            color: var(--text-sub);
            font-size: 20px;
            line-height: 32px;
            cursor: pointer;
            padding: 0;
            justify-self: end;
        }
        body.theme-light .list-filter-sheet-close {
            background: transparent;
        }
        .list-filter-sheet-close:hover { color: var(--text-main); }

        .list-filter-panel-head-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            margin: 0;
            padding: 14px 16px 10px;
            border-bottom: 1px solid rgba(100, 116, 139, 0.22);
            flex-shrink: 0;
        }
        body.theme-light .list-filter-panel-head-bar {
            border-bottom-color: #e2e8f0;
        }
        .list-filter-panel-head-title {
            font-size: 14px;
            font-weight: 800;
            color: var(--text-main);
            letter-spacing: 0.01em;
        }
        .list-filter-panel-close {
            flex-shrink: 0;
            width: 24px;
            height: 24px;
            border: none;
            border-radius: 6px;
            background: transparent;
            color: var(--text-sub);
            font-size: 18px;
            line-height: 24px;
            cursor: pointer;
            padding: 0;
            transition: color 0.15s ease, background 0.15s ease;
        }
        body.theme-light .list-filter-panel-close {
            background: transparent;
        }
        .list-filter-panel-close:hover {
            color: var(--text-main);
            background: rgba(148, 163, 184, 0.12);
        }
        body.theme-light .list-filter-panel-close:hover {
            background: rgba(148, 163, 184, 0.14);
        }

        .list-filter-panel-body {
            flex: 1 1 auto;
            min-height: 0;
            overflow-x: hidden;
            overflow-y: auto;
            overscroll-behavior: contain;
            padding: 14px 16px 10px;
        }

        .list-filter-tip {
            display: flex;
            align-items: flex-start;
            gap: 8px;
            margin: 0 0 14px;
            padding: 0 0 12px;
            border-bottom: 1px solid rgba(100, 116, 139, 0.22);
            font-size: 13px;
            font-weight: 500;
            line-height: 1.5;
            color: var(--text-sub);
        }
        .list-filter-tip-icon {
            flex-shrink: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 16px;
            height: 16px;
            margin-top: 1px;
            border-radius: 50%;
            font-size: 10px;
            font-weight: 900;
            font-style: italic;
            font-family: Georgia, "Times New Roman", serif;
            line-height: 1;
            color: #0f172a;
            background: var(--accent-gold, #d4af37);
        }
        .list-filter-tip-text {
            flex: 1;
            min-width: 0;
        }
        body.theme-light .list-filter-tip {
            border-bottom-color: #e2e8f0;
            color: #64748b;
        }

        .list-filter-zone {
            margin-bottom: 18px;
        }
        .list-filter-zone:last-child {
            margin-bottom: 4px;
        }
        .list-filter-zone-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            margin-bottom: 8px;
        }
        .list-filter-zone-title {
            margin: 0 0 8px;
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: #94a3b8;
        }
        .list-filter-zone-head .list-filter-zone-title {
            margin-bottom: 0;
        }
        body.theme-light .list-filter-zone-title {
            color: #64748b;
        }
        .list-filter-zone-hint {
            font-size: 10px;
            font-weight: 500;
            color: var(--text-sub);
            opacity: 0.75;
            white-space: nowrap;
        }

        .list-filter-sub { margin: 0; font-size: 11px; font-weight: 500; color: var(--text-sub); line-height: 1.45; }

        .list-filter-scope {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        .list-filter-scope-row {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        .list-filter-scope-row--leagues {
            flex-direction: row;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px 10px;
        }
        .list-filter-scope-head-inline {
            display: inline-flex;
            align-items: baseline;
            gap: 8px;
            flex-shrink: 0;
            white-space: nowrap;
        }
        .list-filter-scope-head-inline .list-filter-zone-title {
            margin-bottom: 0;
        }
        .list-filter-scope-head-inline .list-filter-scope-label {
            font-size: 11px;
            font-weight: 700;
            color: var(--text-sub);
        }
        body.theme-light .list-filter-scope-head-inline .list-filter-scope-label {
            color: #64748b;
        }
        .list-filter-scope-row--leagues .list-filter-leagues {
            flex: 1 1 120px;
            min-width: 0;
        }
        .list-filter-scope-label {
            font-size: 12px;
            font-weight: 700;
            color: var(--text-main);
        }
        body.theme-light .list-filter-scope-label {
            color: #334155;
        }

        .list-filter-side-switch {
            display: flex;
            gap: 3px;
            padding: 3px;
            border-radius: 10px;
            background: rgba(15, 23, 42, 0.35);
            border: 1px solid rgba(100, 116, 139, 0.24);
        }
        body.theme-light .list-filter-side-switch {
            background: #f1f5f9;
            border-color: #e2e8f0;
        }
        .list-filter-side-section--hc,
        .list-filter-side-section--ou {
            margin-bottom: 0;
        }
        body.show-handicap-only .list-filter-side-section--ou,
        body.show-total-only .list-filter-side-section--hc {
            display: none !important;
        }
        body:not(.show-handicap-only):not(.show-total-only) .list-filter-side-section--ou {
            display: none !important;
        }
        .list-filter-side-btn {
            flex: 1 1 0;
            min-height: 34px;
            padding: 6px 8px;
            border-radius: 8px;
            border: none;
            background: transparent;
            color: var(--text-sub);
            font-size: 12px;
            font-weight: 700;
            line-height: 1.2;
            cursor: pointer;
            transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
        }
        body.theme-light .list-filter-side-btn {
            color: #64748b;
        }
        .list-filter-side-btn.is-active {
            background: rgba(59, 130, 246, 0.18);
            color: #93c5fd;
            box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.35);
        }
        .list-filter-scope-row--control {
            display: grid;
            grid-template-columns: 42px minmax(0, 1fr);
            align-items: center;
            column-gap: 8px;
            row-gap: 6px;
            min-width: 0;
        }
        .list-filter-scope-row--control > .list-filter-scope-label {
            grid-column: 1;
            min-width: 0;
            white-space: nowrap;
        }
        .list-filter-scope-row--control > .list-filter-side-switch,
        .list-filter-scope-row--control > .list-filter-line-toggle {
            grid-column: 2;
            min-width: 0;
            width: 100%;
            box-sizing: border-box;
        }
        .list-filter-coin-row {
            grid-column: 1 / -1;
            display: flex;
            align-items: center;
            gap: 10px;
            margin: 2px 0 0;
            padding: 8px 12px 10px;
            border-top: 1px dashed rgba(148, 163, 184, 0.22);
        }
        body.theme-light .list-filter-coin-row {
            border-top-color: #e2e8f0;
        }
        .list-filter-coin-row-label {
            flex: 0 0 auto;
            font-size: 12px;
            font-weight: 700;
            color: var(--text-main);
        }
        body.theme-light .list-filter-coin-row-label {
            color: #334155;
        }
        .list-filter-coin-switch {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 16px;
            padding: 0;
            background: none;
            border: none;
        }
        .list-filter-coin-opt {
            flex: 0 0 auto;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            min-height: 0;
            padding: 0;
            border-radius: 0;
            cursor: pointer;
            font-size: 12px;
            font-weight: 700;
            line-height: 1.2;
            color: var(--text-main);
            user-select: none;
            opacity: 1;
        }
        body.theme-light .list-filter-coin-opt {
            color: #334155;
        }
        .list-filter-coin-opt input {
            position: static;
            opacity: 1;
            width: 15px;
            height: 15px;
            margin: 0;
            pointer-events: auto;
            accent-color: #64748b;
        }
        .list-filter-coin-opt img {
            width: 20px;
            height: 20px;
            object-fit: contain;
        }
        .list-filter-coin-opt:has(input:checked) {
            background: none;
            box-shadow: none;
            color: var(--text-main);
        }
        body.theme-light .list-filter-coin-opt:has(input:checked) {
            background: none;
            box-shadow: none;
            color: #334155;
        }
        .list-filter-line-toggle {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            min-height: 34px;
            padding: 0 10px;
            border-radius: 10px;
            border: 1px solid rgba(100, 116, 139, 0.24);
            background: rgba(15, 23, 42, 0.35);
            color: var(--text-main);
            cursor: pointer;
            font: inherit;
            box-sizing: border-box;
        }
        .list-filter-line-toggle::after {
            content: '';
            flex: 0 0 auto;
            width: 0;
            height: 0;
            border-left: 4px solid transparent;
            border-right: 4px solid transparent;
            border-top: 5px solid currentColor;
            opacity: 0.55;
            transform: translateY(1px);
        }
        .list-filter-line-toggle.is-open::after {
            transform: translateY(-1px) rotate(180deg);
        }
        body.theme-light .list-filter-line-toggle {
            background: #f1f5f9;
            border-color: #e2e8f0;
            color: #334155;
        }
        .list-filter-line-toggle.is-open,
        .list-filter-line-toggle.is-active {
            border-color: rgba(59, 130, 246, 0.45);
        }
        .list-filter-line-summary {
            flex: 1 1 auto;
            font-size: 12px;
            font-weight: 700;
            color: var(--text-sub);
            font-variant-numeric: tabular-nums;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            text-align: left;
        }
        .list-filter-line-toggle.is-active .list-filter-line-summary {
            color: #93c5fd;
        }
        body.theme-light .list-filter-line-toggle.is-active .list-filter-line-summary {
            color: #2563eb;
        }
        .list-filter-line-drawer {
            grid-column: 1 / -1;
            min-width: 0;
            overflow: visible;
            box-sizing: border-box;
            padding: 6px;
            border-radius: 10px;
            border: 1px solid rgba(100, 116, 139, 0.22);
            background: rgba(148, 163, 184, 0.06);
        }
        body.theme-light .list-filter-line-drawer {
            background: #f8fafc;
            border-color: #e2e8f0;
        }
        .list-filter-line-picks {
            display: flex;
            flex-direction: column;
            gap: 6px;
            min-width: 0;
        }
        .list-filter-line-zone {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
            align-items: center;
            min-width: 0;
            width: 100%;
            box-sizing: border-box;
        }
        .list-filter-line-pick {
            display: inline-flex;
            align-items: center;
            margin: 0;
            padding: 3px 6px;
            border: 1px solid rgba(100, 116, 139, 0.28);
            border-radius: 6px;
            cursor: pointer;
            user-select: none;
            font-size: 10px;
            font-weight: 800;
            color: var(--text-sub);
            background: transparent;
            line-height: 1.2;
            font-family: inherit;
            box-sizing: border-box;
        }
        .list-filter-line-pick input {
            position: absolute;
            opacity: 0;
            pointer-events: none;
            width: 0;
            height: 0;
        }
        .list-filter-line-pick.is-checked {
            border-color: #60a5fa;
            color: #93c5fd;
            background: rgba(59, 130, 246, 0.14);
        }
        body.theme-light .list-filter-line-pick.is-checked {
            color: #2563eb;
            background: #eff6ff;
        }

        body.theme-light .list-filter-side-btn.is-active {
            background: #ffffff;
            color: #2563eb;
            box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), inset 0 0 0 1px rgba(37, 99, 235, 0.12);
        }

        .list-filter-leagues {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }
        .list-filter-league-opt {
            display: inline-flex;
            align-items: center;
            padding: 6px 12px;
            border-radius: 999px;
            border: 1px solid rgba(100, 116, 139, 0.32);
            background: rgba(15, 23, 42, 0.2);
            font-size: 12px;
            font-weight: 600;
            color: var(--text-sub);
            cursor: pointer;
            user-select: none;
            transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
        }
        body.theme-light .list-filter-league-opt {
            background: #ffffff;
            border-color: #e2e8f0;
            color: #475569;
        }
        .list-filter-league-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
        .list-filter-league-opt.is-checked {
            background: var(--accent-blue);
            border-color: var(--accent-blue);
            color: #ffffff;
            box-shadow: 0 2px 8px rgba(51, 65, 85, 0.2);
        }
        body.theme-light .list-filter-league-opt.is-checked {
            background: var(--accent-blue);
            border-color: var(--accent-blue);
            color: #ffffff;
            box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
        }
        .list-filter-league-opt.is-checked span {
            color: inherit;
        }
        .list-filter-league-more {
            display: inline-flex;
            align-items: center;
            padding: 6px 12px;
            border-radius: 999px;
            border: 1px dashed #3b82f6;
            background: rgba(59, 130, 246, 0.08);
            font-size: 12px;
            font-weight: 700;
            color: #2563eb;
            cursor: pointer;
            user-select: none;
            font-family: inherit;
        }
        body:not(.theme-light) .list-filter-league-more {
            border-color: rgba(96, 165, 250, 0.55);
            background: rgba(59, 130, 246, 0.12);
            color: #93c5fd;
        }
        .list-filter-league-more:hover {
            background: rgba(59, 130, 246, 0.16);
        }

        .list-filter-metric-sheet {
            border-radius: 12px;
            border: 1px solid rgba(100, 116, 139, 0.28);
            background: rgba(148, 163, 184, 0.06);
            overflow: hidden;
        }
        body.theme-light .list-filter-metric-sheet {
            border-color: #e2e8f0;
            background: #f8fafc;
        }
        .list-filter-metric-group-label {
            margin: 0;
            padding: 8px 12px 4px;
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: #94a3b8;
        }
        .list-filter-metric-group-label--split {
            padding-top: 10px;
            border-top: 1px solid rgba(100, 116, 139, 0.18);
        }
        body.theme-light .list-filter-metric-group-label--split {
            border-top-color: #e2e8f0;
        }

        .list-filter-field--cond {
            display: flex;
            align-items: center;
            gap: 10px;
            margin: 0;
            padding: 7px 12px;
            border-top: 1px solid rgba(100, 116, 139, 0.14);
        }
        .list-filter-metric-group-label + .list-filter-field--cond {
            border-top: none;
        }
        body.theme-light .list-filter-field--cond {
            border-top-color: #eef2f7;
        }
        .list-filter-field--cond .list-filter-label {
            flex: 0 0 58px;
            margin: 0;
            font-size: 12px;
            font-weight: 700;
            color: var(--text-main);
        }
        .list-filter-field--cond .list-filter-label--stack {
            flex: 0 0 72px;
            display: flex;
            flex-direction: column;
            gap: 2px;
            line-height: 1.2;
        }
        .list-filter-label-sub {
            font-size: 9px;
            font-weight: 600;
            color: var(--text-sub);
            letter-spacing: 0;
        }
        body.theme-light .list-filter-label-sub {
            color: #94a3b8;
        }
        body.theme-light .list-filter-field--cond .list-filter-label {
            color: #334155;
        }
        .list-filter-cond-row {
            flex: 1 1 auto;
            min-width: 0;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .list-filter-cond-row.list-filter-range {
            flex: 0 0 auto;
        }
        .list-filter-op-btn {
            flex: 0 0 36px;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            border-radius: 9px;
            border: 1px solid rgba(100, 116, 139, 0.32);
            background: rgba(15, 23, 42, 0.28);
            cursor: pointer;
            transition: background 0.18s ease, border-color 0.18s ease;
        }
        body.theme-light .list-filter-op-btn {
            background: #ffffff;
            border-color: #e2e8f0;
        }
        .list-filter-op-btn:not(.is-lt):not(.is-eq) {
            background: rgba(59, 130, 246, 0.14);
            border-color: rgba(96, 165, 250, 0.42);
        }
        body.theme-light .list-filter-op-btn:not(.is-lt):not(.is-eq) {
            background: #eff6ff;
            border-color: #bfdbfe;
        }
        .list-filter-op-btn.is-lt {
            background: rgba(251, 146, 60, 0.12);
            border-color: rgba(251, 146, 60, 0.38);
        }
        body.theme-light .list-filter-op-btn.is-lt {
            background: #fff7ed;
            border-color: #fed7aa;
        }
        .list-filter-op-btn.is-eq {
            background: rgba(16, 185, 129, 0.12);
            border-color: rgba(16, 185, 129, 0.38);
        }
        body.theme-light .list-filter-op-btn.is-eq {
            background: #ecfdf5;
            border-color: #a7f3d0;
        }
        .list-filter-op-sign {
            font-size: 15px;
            font-weight: 900;
            line-height: 1;
            color: #93c5fd;
        }
        body.theme-light .list-filter-op-btn:not(.is-lt):not(.is-eq) .list-filter-op-sign {
            color: #2563eb;
        }
        .list-filter-op-btn.is-lt .list-filter-op-sign {
            color: #fdba74;
        }
        body.theme-light .list-filter-op-btn.is-lt .list-filter-op-sign {
            color: #ea580c;
        }
        .list-filter-op-btn.is-eq .list-filter-op-sign {
            color: #34d399;
        }
        body.theme-light .list-filter-op-btn.is-eq .list-filter-op-sign {
            color: #059669;
        }

        .list-filter-panel input[type="number"] {
            -moz-appearance: textfield;
            appearance: textfield;
        }
        .list-filter-panel input[type="number"]::-webkit-outer-spin-button,
        .list-filter-panel input[type="number"]::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }
        .list-filter-cond-row input {
            flex: 1 1 auto;
            min-width: 0;
            height: 36px;
            padding: 0 10px;
            border-radius: 9px;
            border: 1px solid rgba(100, 116, 139, 0.32);
            background: rgba(15, 23, 42, 0.22);
            color: var(--text-main);
            font-size: 13px;
            font-weight: 600;
            font-family: inherit;
            outline: none;
            transition: border-color 0.18s ease, box-shadow 0.18s ease;
        }
        body.theme-light .list-filter-cond-row input {
            background: #ffffff;
            border-color: #e2e8f0;
            color: #0f172a;
        }
        .list-filter-cond-row input::placeholder {
            color: var(--text-sub);
            opacity: 0.55;
            font-weight: 500;
        }
        .list-filter-cond-row input:focus {
            border-color: rgba(96, 165, 250, 0.65);
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
        }

        .list-filter-range {
            flex: 0 0 auto;
            min-width: 0;
            display: flex;
            align-items: center;
            gap: 4px;
            width: auto;
        }
        .list-filter-range-sep {
            flex: 0 0 auto;
            color: var(--text-sub);
            font-size: 12px;
            font-weight: 800;
            line-height: 1;
            opacity: 0.75;
        }
        .list-filter-range input {
            flex: 0 0 auto;
            width: calc(4ch + 16px);
            min-width: calc(4ch + 16px);
            max-width: calc(4ch + 16px);
            padding-left: 6px;
            padding-right: 6px;
            text-align: center;
        }

        .list-filter-tail-row {
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 0;
            padding: 7px 12px;
            border-top: 1px solid rgba(100, 116, 139, 0.14);
            grid-column: 1 / -1;
        }
        body.theme-light .list-filter-tail-row {
            border-top-color: #eef2f7;
        }
        .list-filter-tail-row .list-filter-field--tail {
            flex: 1 1 0;
            min-width: 0;
            margin: 0;
            padding: 0;
            border-top: none;
            gap: 8px;
            justify-content: flex-start;
        }
        .list-filter-tail-row .list-filter-label--diff {
            flex: 0 0 auto;
            white-space: nowrap;
            max-width: none;
        }
        .list-filter-label-hint {
            margin-left: 2px;
            font-size: 0.78em;
            font-weight: 500;
            letter-spacing: 0;
            color: #94a3b8;
        }
        body.theme-light .list-filter-label-hint {
            color: #94a3b8;
        }
        .list-filter-tail-row .list-filter-label--stack {
            flex: 0 0 92px;
        }
        .list-filter-tail-row .list-filter-field--line {
            padding-left: 8px;
            border-left: 1px solid rgba(100, 116, 139, 0.14);
        }
        body.theme-light .list-filter-tail-row .list-filter-field--line {
            border-left-color: #eef2f7;
        }
        .list-filter-tail-row .list-filter-label--line {
            flex: 0 0 auto;
            max-width: 6.5em;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-size: 11px;
            line-height: 1.2;
        }
        .list-filter-tail-row .list-filter-line-input {
            flex: 1 1 auto;
            min-width: 0;
            width: auto;
            height: 36px;
            padding: 0 8px;
            border-radius: 9px;
            border: 1px solid rgba(100, 116, 139, 0.32);
            background: rgba(15, 23, 42, 0.22);
            color: var(--text-main);
            font-size: 13px;
            font-weight: 600;
            font-family: inherit;
            outline: none;
            box-sizing: border-box;
        }
        body.theme-light .list-filter-tail-row .list-filter-line-input {
            background: #ffffff;
            border-color: #e2e8f0;
            color: #0f172a;
        }
        .list-filter-tail-row .list-filter-line-input:focus {
            border-color: rgba(96, 165, 250, 0.65);
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
        }

        .list-filter-line-input {
            width: 100%;
            box-sizing: border-box;
            height: 38px;
            padding: 0 12px;
            border-radius: 10px;
            border: 1px solid rgba(100, 116, 139, 0.32);
            background: rgba(15, 23, 42, 0.22);
            color: var(--text-main);
            font-size: 13px;
            font-weight: 600;
            font-family: inherit;
            outline: none;
        }
        body.theme-light .list-filter-line-input {
            background: #ffffff;
            border-color: #e2e8f0;
            color: #0f172a;
        }
        .list-filter-line-input:focus {
            border-color: rgba(96, 165, 250, 0.65);
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
        }

        .list-filter-foot {
            flex-shrink: 0;
            display: flex;
            flex-direction: column;
            gap: 10px;
            padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
            border-top: 1px solid rgba(100, 116, 139, 0.28);
            background: rgba(15, 23, 42, 0.35);
        }
        body.theme-light .list-filter-foot {
            background: #ffffff;
            border-top-color: #e2e8f0;
        }
        .list-filter-count {
            text-align: center;
            font-size: 12px;
            font-weight: 700;
            color: var(--text-sub);
            padding: 8px 10px;
            border-radius: 9px;
            background: rgba(148, 163, 184, 0.08);
            line-height: 1.35;
        }
        body.theme-light .list-filter-count {
            background: #f8fafc;
            color: #64748b;
        }
        .list-filter-count:empty {
            display: none;
        }
        .list-filter-actions {
            display: grid;
            grid-template-columns: 1fr 1.35fr;
            gap: 8px;
        }
        .list-filter-btn {
            min-height: 38px;
            padding: 0 14px;
            border-radius: 10px;
            border: 1px solid rgba(100, 116, 139, 0.35);
            background: rgba(15, 23, 42, 0.25);
            color: var(--text-main);
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
            transition: background 0.18s ease, border-color 0.18s ease;
        }
        body.theme-light .list-filter-btn {
            background: #ffffff;
            border-color: #e2e8f0;
            color: #475569;
        }
        .list-filter-btn--ghost:hover {
            background: rgba(148, 163, 184, 0.12);
        }
        body.theme-light .list-filter-btn--ghost:hover {
            background: #f8fafc;
        }
        .list-filter-btn.list-filter-btn--primary {
            border-color: transparent;
            background: var(--accent-blue);
            color: #ffffff !important;
            box-shadow: 0 4px 14px rgba(51, 65, 85, 0.22);
        }
        body.theme-light .list-filter-btn.list-filter-btn--primary {
            background: #2563eb;
            border-color: #2563eb;
            color: #ffffff !important;
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
        }
        .list-filter-btn.list-filter-btn--primary:hover {
            filter: brightness(1.06);
        }
        .list-filter-empty {
            display: none;
            margin: 0 0 16px;
            padding: 18px 14px 16px;
            text-align: center;
            border-radius: 14px;
            border: 1px dashed rgba(100, 116, 139, 0.45);
            background: rgba(15, 23, 42, 0.22);
        }
        body.theme-light .list-filter-empty {
            background: rgba(248, 250, 252, 0.92);
            border-color: #cbd5e1;
        }
        .list-filter-empty.is-visible { display: block; }
        .match-data-wrap .list-filter-empty.is-visible {
            margin: 4px 12px 18px;
            cursor: pointer;
        }
        .match-data-wrap .list-filter-empty.is-visible .list-filter-empty-actions {
            cursor: default;
        }
        .list-filter-empty-msg {
            margin: 0 0 6px;
            font-size: 13px;
            font-weight: 800;
            color: var(--text-main);
            letter-spacing: 0.02em;
        }
        .list-filter-empty-hint {
            margin: 0 0 14px;
            font-size: 11px;
            font-weight: 600;
            color: var(--text-sub);
            line-height: 1.45;
        }
        .list-filter-empty-actions {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        .list-filter-empty-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 32px;
            padding: 0 16px;
            border-radius: 999px;
            border: 1px solid rgba(100, 116, 139, 0.42);
            background: rgba(255, 255, 255, 0.04);
            color: var(--text-main);
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 0.03em;
            cursor: pointer;
            transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
        }
        body.theme-light .list-filter-empty-btn {
            background: #fff;
            border-color: #cbd5e1;
            color: #334155;
        }
        .list-filter-empty-btn:hover {
            transform: translateY(-1px);
            border-color: rgba(148, 163, 184, 0.75);
        }
        .list-filter-empty-btn--primary {
            border-color: rgba(59, 130, 246, 0.55);
            background: rgba(59, 130, 246, 0.16);
            color: #93c5fd;
        }
        body.theme-light .list-filter-empty-btn--primary {
            background: #eff6ff;
            border-color: #bfdbfe;
            color: #2563eb;
        }
        body.theme-light .list-filter-empty-btn--primary:hover {
            background: #dbeafe;
        }
        @media (min-width: 641px) {
            .list-filter-panel {
                width: min(392px, calc(100vw - 32px));
                max-height: none !important;
                overflow-x: hidden;
                overflow-y: visible;
            }
            .list-filter-panel.is-popover-constrained {
                overflow: hidden;
            }
            .list-filter-panel-head-bar {
                padding: 10px 12px 8px;
            }
            .list-filter-panel-body {
                flex: 0 0 auto;
                min-height: 0;
                overflow-x: hidden !important;
                overflow-y: visible !important;
                padding: 8px 12px 4px;
            }
            .list-filter-panel.is-popover-constrained .list-filter-panel-body {
                flex: 1 1 auto;
                overflow-x: hidden !important;
                overflow-y: auto !important;
            }
            .list-filter-tip {
                margin: 0 0 8px;
                padding: 0 0 8px;
                gap: 6px;
                font-size: 12px;
            }
            .list-filter-zone {
                margin-bottom: 10px;
            }
            .list-filter-zone:last-child {
                margin-bottom: 2px;
            }
            .list-filter-zone-title {
                margin: 0 0 5px;
                font-size: 10px;
            }
            .list-filter-zone-head {
                margin-bottom: 5px;
            }
            .list-filter-zone-hint {
                font-size: 9px;
            }
            .list-filter-scope {
                gap: 8px;
            }
            .list-filter-scope-row {
                gap: 4px;
            }
            .list-filter-scope-row--control {
                grid-template-columns: 42px minmax(0, 1fr);
            }
            .list-filter-line-toggle {
                min-height: 28px;
            }
            .list-filter-side-btn {
                min-height: 28px;
                padding: 4px 6px;
                font-size: 11px;
            }
            .list-filter-league-opt {
                padding: 4px 10px;
                font-size: 11px;
            }
            .list-filter-metric-sheet {
                display: grid;
                grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
                column-gap: 0;
                overflow: visible;
            }
            .list-filter-metric-group-label,
            .list-filter-metric-group-label--split {
                grid-column: 1 / -1;
            }
            .list-filter-metric-group-label {
                padding: 5px 8px 2px;
                font-size: 9px;
            }
            .list-filter-metric-group-label--split {
                padding-top: 5px;
            }
            .list-filter-tail-row {
                padding: 4px 8px;
                gap: 6px;
            }
            .list-filter-tail-row .list-filter-field--line {
                padding-left: 6px;
            }
            .list-filter-tail-row .list-filter-label--line {
                max-width: 5.2em;
                font-size: 10px;
            }
            .list-filter-tail-row .list-filter-line-input {
                height: 28px;
                padding: 0 7px;
                font-size: 12px;
                border-radius: 7px;
            }
            .list-filter-field--cond {
                padding: 4px 8px;
                gap: 5px;
            }
            .list-filter-field--cond .list-filter-label {
                flex: 0 0 46px;
                font-size: 11px;
            }
            .list-filter-field--cond .list-filter-label--stack {
                flex: 0 0 58px;
            }
            .list-filter-tail-row .list-filter-label--stack {
                flex: 0 0 84px;
            }
            .list-filter-tail-row .list-filter-label--diff {
                font-size: 11px;
            }
            .list-filter-range input {
                width: calc(4ch + 14px);
                min-width: calc(4ch + 14px);
                max-width: calc(4ch + 14px);
            }
            .list-filter-cond-row {
                gap: 4px;
            }
            .list-filter-range {
                gap: 4px;
            }
            .list-filter-range-sep {
                font-size: 11px;
            }
            .list-filter-op-btn {
                flex: 0 0 28px;
                width: 28px;
                height: 28px;
                border-radius: 7px;
            }
            .list-filter-op-sign {
                font-size: 13px;
            }
            .list-filter-cond-row input {
                height: 28px;
                min-width: 0;
                padding: 0 7px;
                font-size: 12px;
                border-radius: 7px;
            }
            .list-filter-foot {
                padding: 8px 12px 10px;
                gap: 6px;
            }
            .list-filter-count {
                padding: 5px 8px;
                font-size: 11px;
            }
            .list-filter-btn {
                min-height: 32px;
                padding: 0 10px;
                font-size: 12px;
                border-radius: 8px;
            }
        }
        @media (max-width: 640px) {
            .list-filter-sheet-top {
                display: block;
            }

            .list-filter-sheet-head {
                display: grid;
            }

            .list-filter-sheet-handle {
                width: 32px;
                margin: 0 auto 4px;
            }

            .list-filter-sheet-title {
                font-size: 13px;
            }

            .list-filter-panel {
                position: fixed;
                left: 50%;
                right: auto;
                bottom: 0;
                top: auto;
                width: min(360px, calc(100vw - 20px));
                max-width: none;
                height: auto;
                max-height: min(88dvh, 560px);
                margin: 0;
                padding: 4px 0 calc(6px + env(safe-area-inset-bottom, 0px));
                border-radius: 16px 16px 0 0;
                border-left: none;
                border-right: none;
                border-bottom: none;
                z-index: 9010;
                box-shadow: 0 -10px 32px rgba(0, 0, 0, 0.22);
                display: flex;
                flex-direction: column;
                overflow: hidden;
                overscroll-behavior: contain;
                transform: translateX(-50%) translateY(105%);
                transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
                will-change: transform;
            }

            .list-filter-panel.is-sheet-open {
                transform: translateX(-50%) translateY(0);
            }

            body.theme-light .list-filter-panel {
                box-shadow: 0 -10px 36px rgba(15, 23, 42, 0.14);
            }

            .list-filter-panel-body {
                flex: 1 1 auto;
                min-height: 0;
                overflow-x: hidden;
                overflow-y: auto;
                overscroll-behavior: contain;
                -webkit-overflow-scrolling: touch;
                touch-action: pan-y;
                padding: 10px 14px 6px;
                max-height: none;
            }

            .list-filter-cond-row input {
                font-size: 16px;
            }

            .list-filter-line-input {
                font-size: 16px;
            }

            .list-filter-tail-row {
                flex-direction: column;
                align-items: stretch;
                gap: 0;
                padding: 0;
            }
            .list-filter-tail-row .list-filter-field--tail {
                flex: 1 1 auto;
                width: 100%;
                padding: 7px 12px;
                border-top: 1px solid rgba(100, 116, 139, 0.14);
            }
            body.theme-light .list-filter-tail-row .list-filter-field--tail {
                border-top-color: #eef2f7;
            }
            .list-filter-tail-row .list-filter-field--tail:first-child {
                border-top: none;
            }
            .list-filter-tail-row .list-filter-field--line {
                padding-left: 12px;
                border-left: none;
            }
            .list-filter-tail-row .list-filter-label--line {
                flex: 0 0 72px;
                max-width: none;
                white-space: nowrap;
                overflow: visible;
                text-overflow: clip;
                font-size: 12px;
            }
            .list-filter-tail-row .list-filter-line-input {
                height: 36px;
                font-size: 16px;
            }

            .list-filter-foot {
                padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
            }

            .list-filter-btn:not(.list-filter-btn--primary) {
                border: 1px solid rgba(100, 116, 139, 0.32);
                background: transparent;
                color: var(--text-sub);
                min-height: 34px;
                font-size: 11px;
            }

            .list-tools-seg-btn { padding: 4px 9px; font-size: 10px; }
        }
        .view-toggle { display: flex; border-radius: 20px; padding: 2px; gap: 0; background: var(--view-box-bg); border: 1px solid var(--border-light); box-shadow: inset 0 2px 4px rgba(0,0,0,0.5); position: relative; overflow: visible !important; }
        body.theme-light .view-toggle { box-shadow: inset 0 1px 2px rgba(0,0,0,0.05); }
        .view-toggle button { position: relative; border: none; padding: 3px 12px; font-size: 11px; font-weight: 800; cursor: pointer; border-radius: 18px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); background: transparent; letter-spacing: 0.5px; color: var(--view-btn-text); }
        .view-toggle button.active { background: var(--accent-blue); color: #ffffff; box-shadow: 0 2px 4px rgba(0,0,0,0.5); }
        .trade-mode-badge {
            position: absolute;
            top: -7px;
            right: -5px;
            min-width: 15px;
            height: 15px;
            padding: 0 4px;
            border-radius: 999px;
            background: #fff;
            border: 1px solid rgba(239, 68, 68, 0.45);
            color: #dc2626;
            font-size: 10px;
            font-weight: 900;
            line-height: 13px;
            text-align: center;
            pointer-events: none;
            box-shadow: 0 1px 4px rgba(220, 38, 38, 0.25);
            z-index: 2;
        }
        body:not(.theme-light) .trade-mode-badge {
            background: #0f172a;
            border-color: rgba(248, 113, 113, 0.55);
            color: #f87171;
        }
        .view-toggle button.active .trade-mode-badge {
            background: #fff;
            color: #dc2626;
            border-color: rgba(239, 68, 68, 0.5);
        }
        body:not(.theme-light) .view-toggle button.active .trade-mode-badge {
            background: #1e293b;
            color: #fca5a5;
        }
        .trade-mode-badge--watch {
            border-color: rgba(245, 158, 11, 0.55) !important;
            color: #f59e0b !important;
            box-shadow: 0 1px 4px rgba(245, 158, 11, 0.25);
        }
        .trade-mode-badge--alert {
            border-color: rgba(234, 88, 12, 0.55) !important;
            color: #ea580c !important;
            box-shadow: 0 1px 4px rgba(234, 88, 12, 0.28);
        }
        .trade-mode-badge--critical {
            border-color: rgba(239, 68, 68, 0.55) !important;
            color: #dc2626 !important;
            box-shadow: 0 1px 4px rgba(220, 38, 38, 0.28);
        }
        body:not(.theme-light) .trade-mode-badge--watch {
            color: #fbbf24 !important;
            border-color: rgba(251, 191, 36, 0.55) !important;
        }
        body:not(.theme-light) .trade-mode-badge--alert {
            color: #fb923c !important;
            border-color: rgba(251, 146, 60, 0.55) !important;
        }
        body:not(.theme-light) .trade-mode-badge--critical {
            color: #f87171 !important;
            border-color: rgba(248, 113, 113, 0.55) !important;
        }
        body.show-total-only .view-toggle #btnTradeTotal.active {
            background: #7c3aed;
            box-shadow: 0 2px 6px rgba(124, 58, 237, 0.45);
        }
        body.theme-light.show-total-only .view-toggle #btnTradeTotal.active {
            background: #6d28d9;
            box-shadow: 0 2px 6px rgba(109, 40, 217, 0.35);
        }

        input[type="date"]::-webkit-datetime-edit-text, input[type="date"]::-webkit-datetime-edit-year-field, input[type="date"]::-webkit-datetime-edit-month-field, input[type="date"]::-webkit-datetime-edit-day-field { display: none; }
        input[type="date"].has-value::-webkit-datetime-edit-text, input[type="date"].has-value::-webkit-datetime-edit-year-field, input[type="date"].has-value::-webkit-datetime-edit-month-field, input[type="date"].has-value::-webkit-datetime-edit-day-field { display: inline-block; }
        
        /* 严格隔离：让球页绝不露出大小块，大小页绝不露出让球块 */
        body.show-handicap-only .match-item .total-block,
        body.show-handicap-only .total-block { display: none !important; }
        body.show-total-only .match-item .handicap-block,
        body.show-total-only .handicap-block { display: none !important; }
        body.show-handicap-only,
        body.show-total-only {
            --hc-inset-x: 16px;
            --hc-list-gutter: 12px;
        }
        body.show-handicap-only .hc-flow-table,
        body.show-total-only .hc-flow-table { padding: 0; }
        body.show-handicap-only .hc-flow-row-footer,
        body.show-total-only .hc-flow-row-footer {
            padding: 8px 0 4px;
            margin-top: 2px;
            border-top: 1px dashed var(--border-light);
            border-bottom: none;
        }
        body.theme-light.show-handicap-only .hc-flow-row-footer,
        body.theme-light.show-total-only .hc-flow-row-footer {
            border-top-color: #e2e8f0;
        }
        body.show-handicap-only .match-trend-actions,
        body.show-total-only .match-trend-actions {
            padding: 10px 8px 6px;
            margin-top: 4px;
            border-top: 1px dashed var(--border-light);
        }
        body.theme-light.show-handicap-only .match-trend-actions,
        body.theme-light.show-total-only .match-trend-actions {
            border-top-color: #e2e8f0;
        }
        body.show-handicap-only .hc-column-head,
        body.show-total-only .hc-column-head {
            display: grid;
            align-items: center;
        }
        body.show-handicap-only .match-data-wrap .hc-column-head,
        body.show-total-only .match-data-wrap .hc-column-head {
            padding-left: calc(var(--hc-inset-x) + var(--hc-list-gutter, 0px));
            padding-right: calc(var(--hc-inset-x) + var(--hc-list-gutter, 0px));
        }
        body.show-handicap-only .match-data-wrap .hc-column-head.is-fixed,
        body.show-total-only .match-data-wrap .hc-column-head.is-fixed {
            padding-left: calc(var(--hc-inset-x) + var(--hc-list-gutter, 0px)) !important;
            padding-right: calc(var(--hc-inset-x) + var(--hc-list-gutter, 0px)) !important;
        }

        .hc-match-head-row,
        .hc-flow-row {
            display: grid;
            grid-template-columns: minmax(72px, 1.23fr) minmax(48px, 0.72fr) minmax(48px, 0.72fr) minmax(58px, 0.95fr) minmax(58px, 0.95fr) minmax(56px, 0.52fr) minmax(56px, 0.65fr) minmax(58px, 0.85fr);
            align-items: center;
            column-gap: 6px;
        }
        .hc-column-head {
            grid-template-columns: minmax(72px, 1.23fr) minmax(48px, 0.72fr) minmax(48px, 0.72fr) minmax(58px, 0.95fr) minmax(58px, 0.95fr) minmax(56px, 0.52fr) minmax(56px, 0.65fr) minmax(58px, 0.85fr);
            column-gap: 6px;
        }
        .hc-match-head-row { align-items: end; }
        .hc-flow-table > .hc-match-head-row {
            padding: 8px 0 6px;
            border-bottom: 1px dashed var(--border-light);
            background: transparent;
            margin: 0 0 2px;
        }
        body.theme-light .hc-flow-table > .hc-match-head-row { border-bottom-color: #e2e8f0; }
        .hc-hdr-gap { display: none; min-height: 0; }
        .hc-match-head-row .hc-match-meta { grid-column: 1 / 7; }
        .hc-match-sum-bets { grid-column: 7; }
        .hc-match-sum-money { grid-column: 8; }
        .hc-match-meta {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 5px 6px;
            min-width: 0;
        }
        .hc-match-meta .league-tag { margin-right: 0; }
        .hc-match-finished {
            color: #ef4444;
            font-weight: 900;
            font-size: 11px;
            letter-spacing: 0.5px;
        }
        .hc-match-time {
            display: inline-flex;
            align-items: center;
            gap: 3px;
            font-family: Verdana, sans-serif;
            font-weight: 800;
            font-size: 11px;
            color: var(--text-sub);
            white-space: nowrap;
        }
        .hc-live-min { color: #ef4444; font-weight: 900; }
        .hc-live-ht { color: #2563eb; font-weight: 900; }
        .hc-match-score-cluster {
            display: inline-flex;
            align-items: baseline;
            flex-wrap: nowrap;
            gap: 10px;
            flex: 0 1 auto;
            min-width: 0;
            max-width: 100%;
            white-space: nowrap;
            margin-right: 2px;
            padding-right: 12px;
            border-right: 1px solid rgba(148, 163, 184, 0.35);
        }
        body.theme-light .hc-match-score-cluster {
            border-right-color: #cbd5e1;
        }
        .hc-match-score {
            font-size: 14px;
            font-weight: 900;
            color: #ef4444;
            letter-spacing: 0.5px;
            white-space: nowrap;
        }
        body.theme-light .hc-match-score { color: #dc2626; }
        .hc-match-score-extra {
            display: inline-flex;
            align-items: baseline;
            gap: 10px;
            margin-left: 0;
            white-space: nowrap;
            flex-shrink: 0;
        }
        .hc-match-score-total {
            font-size: 14px;
            font-weight: 900;
            color: #ef4444;
            letter-spacing: 0.5px;
            white-space: nowrap;
        }
        .hc-match-score-total-lbl {
            color: #0f172a;
            font-weight: 800;
        }
        body:not(.theme-light) .hc-match-score-total-lbl {
            color: #e2e8f0;
        }
        .hc-match-settle {
            font-size: 14px;
            font-weight: 900;
            letter-spacing: 0.5px;
        }
        .hc-match-settle--over { color: #7c3aed; }
        .hc-match-settle--under { color: #0f766e; }
        .hc-match-settle--home { color: #1d4ed8; }
        .hc-match-settle--away { color: #b45309; }
        .hc-match-settle--push { color: #64748b; }
        body:not(.theme-light) .hc-match-settle--over { color: #c4b5fd; }
        body:not(.theme-light) .hc-match-settle--under { color: #5eead4; }
        body:not(.theme-light) .hc-match-settle--home { color: #93c5fd; }
        body:not(.theme-light) .hc-match-settle--away { color: #fbbf24; }
        body:not(.theme-light) .hc-match-settle--push { color: #94a3b8; }
        .hc-match-pin-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            appearance: none;
            height: 22px;
            padding: 0 9px;
            margin-left: 4px;
            border: 1px solid rgba(16, 185, 129, 0.45);
            border-radius: 999px;
            background: rgba(16, 185, 129, 0.12);
            color: #059669;
            font-size: 10px;
            font-weight: 800;
            line-height: 1;
            cursor: pointer;
            white-space: nowrap;
            letter-spacing: 0.01em;
        }
        .hc-match-pin-btn:hover {
            border-color: rgba(16, 185, 129, 0.7);
            background: rgba(16, 185, 129, 0.2);
            color: #047857;
        }
        .hc-match-pin-btn.is-pinned {
            border-color: rgba(239, 68, 68, 0.45);
            background: rgba(239, 68, 68, 0.1);
            color: #dc2626;
        }
        .hc-match-pin-btn.is-pinned:hover {
            border-color: rgba(239, 68, 68, 0.7);
            background: rgba(239, 68, 68, 0.18);
            color: #b91c1c;
        }
        .hc-match-pin-badge {
            display: inline-flex;
            align-items: center;
            border-radius: 999px;
            padding: 1px 7px;
            font-size: 10px;
            font-weight: 800;
            letter-spacing: 0.02em;
            color: #047857;
            background: rgba(16, 185, 129, 0.14);
            border: 1px solid rgba(52, 211, 153, 0.55);
        }
        .match-item--pinned {
            box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.28), 0 8px 22px rgba(16, 185, 129, 0.1);
        }
        .hc-match-admin {
            display: inline-flex;
            align-items: center;
            gap: 0;
            margin-left: 6px;
            flex-shrink: 0;
            flex-wrap: wrap;
            vertical-align: middle;
        }
        /* 默认只在让球行显示管理区；切到「大小」视图时改在大小行显示（让球块会被隐藏） */
        .total-block .hc-match-admin { display: none !important; }
        body.show-total-only .handicap-block .hc-match-admin { display: none !important; }
        body.show-total-only .total-block .hc-match-admin { display: inline-flex !important; }
        .hc-match-visibility-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            height: 22px;
            padding: 0 8px;
            margin-right: 4px;
            border: 1px solid rgba(148, 163, 184, 0.45);
            border-radius: 999px;
            background: rgba(148, 163, 184, 0.12);
            color: var(--text-sub);
            font-size: 10px;
            font-weight: 800;
            line-height: 1;
            cursor: pointer;
            white-space: nowrap;
        }
        .hc-match-visibility-btn:hover {
            border-color: rgba(96, 165, 250, 0.55);
            color: #93c5fd;
            background: rgba(59, 130, 246, 0.12);
        }
        .hc-match-visibility-btn.is-list-hidden {
            border-color: rgba(245, 158, 11, 0.55);
            color: #fbbf24;
            background: rgba(245, 158, 11, 0.12);
        }
        body.theme-light .hc-match-visibility-btn {
            border-color: #cbd5e1;
            background: #f8fafc;
            color: #64748b;
        }
        body.theme-light .hc-match-visibility-btn.is-list-hidden {
            border-color: #f59e0b;
            color: #d97706;
            background: #fffbeb;
        }
        .hc-match-list-hidden-badge {
            display: inline-flex;
            align-items: center;
            height: 18px;
            padding: 0 6px;
            border-radius: 999px;
            background: rgba(245, 158, 11, 0.16);
            color: #fbbf24;
            font-size: 10px;
            font-weight: 800;
            line-height: 1;
            white-space: nowrap;
        }
        body.theme-light .hc-match-list-hidden-badge {
            background: #fef3c7;
            color: #d97706;
        }
        body.is-score-editor .match-item--list-hidden {
            opacity: 0.62;
        }
        body.is-score-editor .match-item--list-hidden .match-body {
            border-left: 2px dashed rgba(245, 158, 11, 0.45);
        }
        .hc-score-import-wrap {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            gap: 10px;
            margin: 0 0 10px;
        }
        .hc-score-import-wrap.mobile-only {
            margin: 8px 0 0;
            flex-direction: column;
        }
        .hc-score-import-wrap.mobile-only .hc-btn-name-tool,
        .hc-score-import-wrap.mobile-only .hc-btn-pin-auto,
        .hc-score-import-wrap.mobile-only .hc-btn-import-scores,
        .hc-score-import-wrap.mobile-only .hc-btn-fangan,
        .hc-score-import-wrap.mobile-only .hc-btn-ai-center,
        .hc-score-import-wrap.mobile-only .hc-btn-wc-scan,
        .hc-score-import-wrap.mobile-only .hc-btn-renewal-alert {
            width: 100%;
            justify-content: center;
        }
        .hc-btn-pin-auto {
            display: inline-flex;
            align-items: center;
            padding: 8px 14px;
            border-radius: 8px;
            font-size: 12px;
            font-weight: 800;
            border: 1.5px solid transparent;
            cursor: pointer;
            white-space: nowrap;
            transition: background 0.15s, color 0.15s, border-color 0.15s;
        }
        .hc-btn-pin-auto.is-on {
            color: #065f46;
            background: #ecfdf5;
            border-color: #34d399;
        }
        .hc-btn-pin-auto.is-on:hover {
            background: #d1fae5;
            color: #064e3b;
        }
        .hc-btn-pin-auto.is-off {
            color: #64748b;
            background: #f8fafc;
            border-color: #cbd5e1;
        }
        .hc-btn-pin-auto.is-off:hover {
            background: #f1f5f9;
            color: #475569;
        }
        .hc-btn-pin-auto:disabled {
            opacity: 0.6;
            cursor: wait;
        }
        .hc-btn-name-tool {
            display: inline-flex;
            align-items: center;
            padding: 8px 14px;
            border-radius: 8px;
            font-size: 12px;
            font-weight: 800;
            color: #7e22ce;
            background: #faf5ff;
            border: 1.5px solid #c084fc;
            text-decoration: none;
            white-space: nowrap;
        }
        .hc-btn-name-tool:hover { background: #f3e8ff; color: #6b21a8; }
        .hc-btn-import-scores {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 10px 22px;
            border: none;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 900;
            color: #fff;
            cursor: pointer;
            background: linear-gradient(135deg, #059669, #047857);
            box-shadow: 0 2px 10px rgba(5, 150, 105, 0.35);
            transition: transform 0.15s, box-shadow 0.15s;
            white-space: nowrap;
        }
        .hc-btn-import-scores:hover:not(:disabled) {
            transform: translateY(-1px);
            box-shadow: 0 4px 14px rgba(5, 150, 105, 0.45);
        }
        .hc-btn-import-scores:disabled {
            opacity: 0.55;
            cursor: not-allowed;
        }
        .hc-btn-import-ranks {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 10px 22px;
            border: none;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 900;
            color: #fff;
            cursor: pointer;
            background: linear-gradient(135deg, #4f46e5, #3730a3);
            box-shadow: 0 2px 10px rgba(79, 70, 229, 0.35);
            transition: transform 0.15s, box-shadow 0.15s;
            white-space: nowrap;
        }
        .hc-btn-import-ranks:hover:not(:disabled) {
            transform: translateY(-1px);
            box-shadow: 0 4px 14px rgba(79, 70, 229, 0.45);
        }
        .hc-btn-purge-leagues {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 10px 22px;
            border: none;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 900;
            color: #fff;
            cursor: pointer;
            background: linear-gradient(135deg, #e11d48, #9f1239);
            box-shadow: 0 2px 10px rgba(225, 29, 72, 0.35);
            transition: transform 0.15s, box-shadow 0.15s;
            white-space: nowrap;
        }
        .hc-btn-purge-leagues:hover:not(:disabled) {
            transform: translateY(-1px);
            box-shadow: 0 4px 14px rgba(225, 29, 72, 0.45);
        }
        .hc-btn-renewal-alert {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 14px;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 900;
            color: #7c2d12;
            text-decoration: none;
            cursor: pointer;
            background: linear-gradient(135deg, #fdba74, #fb923c);
            border: 1.5px solid #ea580c;
            box-shadow: 0 2px 10px rgba(234, 88, 12, 0.28);
            transition: transform 0.15s, box-shadow 0.15s;
            white-space: nowrap;
            box-sizing: border-box;
        }
        .hc-btn-renewal-alert:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 14px rgba(234, 88, 12, 0.4);
            color: #7c2d12;
        }
        .hc-renewal-alert-num {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 22px;
            height: 22px;
            padding: 0 6px;
            border-radius: 999px;
            background: #9f1239;
            color: #fff;
            font-size: 12px;
            font-weight: 900;
            line-height: 1;
            font-variant-numeric: tabular-nums;
        }
        .alp-overlay {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 12050;
            align-items: center;
            justify-content: center;
            padding: 16px;
            background: rgba(15, 23, 42, 0.45);
        }
        .alp-card {
            width: min(560px, 100%);
            max-height: min(82vh, 720px);
            display: flex;
            flex-direction: column;
            background: #fff;
            border-radius: 14px;
            box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28);
            overflow: hidden;
        }
        body.theme-dark .alp-card { background: #1e293b; color: #e2e8f0; }
        .alp-head { padding: 16px 18px 8px; }
        .alp-head h3 { margin: 0 0 6px; font-size: 16px; }
        .alp-head p { margin: 0; font-size: 12px; color: #64748b; line-height: 1.5; }
        .alp-search {
            display: flex;
            gap: 8px;
            padding: 8px 18px 12px;
        }
        .alp-search input {
            flex: 1;
            min-width: 0;
            height: 36px;
            border: 1px solid #cbd5e1;
            border-radius: 8px;
            padding: 0 10px;
            font-size: 14px;
        }
        .alp-search button {
            height: 36px;
            padding: 0 14px;
            border: none;
            border-radius: 8px;
            font-weight: 800;
            cursor: pointer;
            background: #334155;
            color: #fff;
        }
        .alp-people {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 0 18px 10px;
            font-size: 13px;
            color: #334155;
        }
        body.theme-dark .alp-people { color: #e2e8f0; }
        .alp-people-label { font-weight: 800; white-space: nowrap; }
        .alp-people input {
            width: 72px;
            height: 36px;
            border: 1px solid #cbd5e1;
            border-radius: 8px;
            padding: 0 8px;
            font-size: 14px;
        }
        .alp-people-hint { font-size: 12px; color: #94a3b8; }
        .alp-tools {
            display: flex;
            gap: 8px;
            padding: 0 18px 8px;
        }
        .alp-tools button {
            height: 30px;
            padding: 0 10px;
            border: 1px solid #cbd5e1;
            border-radius: 7px;
            background: #f8fafc;
            color: #334155;
            font-size: 12px;
            font-weight: 800;
            cursor: pointer;
        }
        body.theme-dark .alp-tools button {
            background: #334155;
            color: #e2e8f0;
            border-color: #475569;
        }
        .alp-meta {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
        }
        .alp-peak {
            color: #64748b;
            white-space: nowrap;
            font-variant-numeric: tabular-nums;
        }
        .alp-status {
            padding: 0 18px 8px;
            font-size: 12px;
            color: #64748b;
        }
        .alp-list {
            flex: 1;
            overflow: auto;
            padding: 0 12px 8px;
            min-height: 180px;
        }
        .alp-row {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 8px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 13px;
        }
        .alp-row:hover { background: #f1f5f9; }
        body.theme-dark .alp-row:hover { background: #334155; }
        .alp-name { flex: 1; min-width: 0; }
        .alp-hot {
            margin-left: 6px;
            font-size: 10px;
            font-weight: 800;
            color: #e11d48;
        }
        .alp-n { color: #64748b; white-space: nowrap; font-variant-numeric: tabular-nums; }
        .alp-empty { text-align: center; color: #94a3b8; padding: 24px 0; }
        .alp-foot {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding: 12px 18px 16px;
            border-top: 1px solid #e2e8f0;
        }
        body.theme-dark .alp-foot { border-top-color: #334155; }
        .alp-count { font-size: 12px; color: #475569; }
        .alp-foot-btns { display: flex; gap: 8px; }
        .alp-cancel, .alp-delete {
            height: 36px;
            padding: 0 14px;
            border: none;
            border-radius: 8px;
            font-weight: 800;
            cursor: pointer;
        }
        .alp-cancel { background: #e2e8f0; color: #334155; }
        .alp-delete { background: #e11d48; color: #fff; }
        .alp-delete:disabled { opacity: 0.45; cursor: not-allowed; }
        .hc-team-rank {
            display: block;
            margin-left: 0;
            margin-top: 1px;
            font-size: 10px;
            font-weight: 800;
            color: #64748b;
            letter-spacing: 0;
            white-space: nowrap;
        }
        body.theme-light .hc-team-rank { color: #64748b; }
        .hc-col-team.team-rank-high .hc-team-l1,
        .hc-col-team.team-rank-high .hc-team-l2 {
            text-decoration: none;
        }
        .hc-col-team.team-rank-high .hc-team-rank {
            text-decoration: underline;
            text-underline-offset: 2px;
            text-decoration-thickness: 2px;
        }
        .hc-rank-paste-submit {
            background: linear-gradient(135deg, #4f46e5, #3730a3) !important;
        }
        .hc-btn-fangan {
            display: inline-flex;
            align-items: center;
            padding: 10px 20px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 900;
            color: #fff;
            text-decoration: none;
            white-space: nowrap;
            background: linear-gradient(135deg, #f59e0b, #d97706);
            border: 1.5px solid #b45309;
            box-shadow: 0 2px 10px rgba(245, 158, 11, 0.38);
            transition: transform 0.15s, box-shadow 0.15s;
        }
        .hc-btn-fangan:hover {
            color: #fff;
            transform: translateY(-1px);
            box-shadow: 0 4px 14px rgba(245, 158, 11, 0.48);
        }
        .hc-btn-ai-center {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 10px 20px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 900;
            color: #fff;
            text-decoration: none;
            white-space: nowrap;
            background: linear-gradient(135deg, #6366f1, #4f46e5);
            border: 1.5px solid #4338ca;
            box-shadow: 0 2px 10px rgba(99, 102, 241, 0.38);
            transition: transform 0.15s, box-shadow 0.15s;
        }
        .hc-btn-ai-center:hover {
            color: #fff;
            transform: translateY(-1px);
            box-shadow: 0 4px 14px rgba(99, 102, 241, 0.48);
        }
        body.theme-light .hc-btn-ai-center {
            color: #fff;
        }
        .hc-score-import-wrap .hc-btn-ai-center,
        .hc-score-import-wrap .hc-btn-wc-scan,
        .hc-score-import-wrap .hc-btn-fangan {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 8px 14px;
            border-radius: 8px;
            font-size: 12px;
            font-weight: 800;
            line-height: 1.2;
            color: #334155;
            text-decoration: none;
            white-space: nowrap;
            background: #fff;
            border: 1px solid #cbd5e1;
            box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
            transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
        }
        body.theme-light .hc-score-import-wrap .hc-btn-ai-center,
        body.theme-light .hc-score-import-wrap .hc-btn-wc-scan,
        body.theme-light .hc-score-import-wrap .hc-btn-fangan {
            color: #334155;
            background: #fff;
            border-color: #cbd5e1;
        }
        .hc-score-import-wrap .hc-btn-ai-center:hover {
            color: #4338ca;
            background: #eef2ff;
            border-color: #818cf8;
            box-shadow: 0 2px 8px rgba(99, 102, 241, 0.12);
        }
        .hc-score-import-wrap .hc-btn-wc-scan:hover {
            color: #115e59;
            background: #f0fdfa;
            border-color: #5eead4;
            box-shadow: 0 2px 8px rgba(15, 118, 110, 0.12);
        }
        .hc-score-import-wrap .hc-btn-fangan:hover {
            color: #b45309;
            background: #fffbeb;
            border-color: #fcd34d;
            box-shadow: 0 2px 8px rgba(245, 158, 11, 0.12);
        }
        .hc-score-paste-overlay {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 10001;
            background: var(--modal-overlay);
            backdrop-filter: var(--modal-blur);
            align-items: center;
            justify-content: center;
            padding: 16px;
            box-sizing: border-box;
        }
        .hc-score-paste-overlay.open { display: flex; }
        .hc-score-paste-card {
            width: 100%;
            max-width: min(1120px, 96vw);
            max-height: min(90vh, 860px);
            display: flex;
            flex-direction: column;
            background: var(--modal-box);
            backdrop-filter: var(--modal-box-blur);
            border-radius: 16px;
            box-shadow: var(--modal-shadow);
            border: var(--modal-cancel-border);
            overflow: hidden;
        }
        .hc-score-paste-head {
            padding: 18px 20px 12px;
            border-bottom: 1px solid rgba(148, 163, 184, 0.25);
        }
        .hc-score-paste-head h3 {
            margin: 0 0 6px;
            font-size: 18px;
            font-weight: 900;
            color: var(--modal-title);
        }
        .hc-score-paste-head p {
            margin: 0;
            font-size: 12px;
            line-height: 1.5;
            color: var(--modal-desc);
        }
        .hc-score-paste-head code {
            font-size: 11px;
            background: rgba(148, 163, 184, 0.15);
            padding: 1px 5px;
            border-radius: 4px;
        }
        .hc-score-paste-tip {
            margin: 10px 0 0;
            padding: 10px 12px;
            border-radius: 8px;
            font-size: 12px;
            font-weight: 700;
            line-height: 1.45;
            color: #047857;
            background: rgba(16, 185, 129, 0.12);
            border: 1px solid rgba(16, 185, 129, 0.35);
        }
        body.theme-light .hc-score-paste-tip {
            color: #065f46;
            background: #ecfdf5;
            border-color: #6ee7b7;
        }
        .hc-score-paste-body {
            flex: 1 1 auto;
            min-height: 0;
            padding: 12px 20px;
        }
        .hc-score-paste-split {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 14px;
            min-height: 0;
            height: 100%;
        }
        .hc-score-paste-pane {
            display: flex;
            flex-direction: column;
            min-width: 0;
            min-height: 0;
        }
        .hc-score-paste-pane-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            margin-bottom: 8px;
        }
        .hc-score-paste-pane-title {
            margin: 0;
            font-size: 13px;
            font-weight: 900;
            color: var(--modal-title);
            line-height: 1.35;
        }
        .hc-score-paste-pane-desc {
            margin: 0 0 8px;
            font-size: 11px;
            line-height: 1.45;
            color: var(--modal-desc);
        }
        .hc-score-paste-pane--qt .hc-score-paste-pane-title {
            color: #047857;
        }
        body.theme-light .hc-score-paste-pane--qt .hc-score-paste-pane-title {
            color: #059669;
        }
        .hc-score-paste-pane-actions {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            margin-top: 8px;
            flex-wrap: wrap;
        }
        .hc-score-paste-pane-status {
            font-size: 11px;
            font-weight: 700;
            color: var(--modal-desc);
            min-width: 0;
        }
        .hc-score-paste-pane-status.is-ok { color: #059669; }
        .hc-score-paste-pane-btns {
            display: flex;
            gap: 8px;
            flex-shrink: 0;
        }
        .hc-score-paste-mini-btn {
            padding: 6px 10px;
            border-radius: 7px;
            border: 1px solid rgba(148, 163, 184, 0.35);
            background: var(--modal-cancel-bg);
            color: var(--modal-cancel-text);
            font-size: 11px;
            font-weight: 800;
            cursor: pointer;
        }
        .hc-score-paste-mini-btn:hover { background: var(--modal-cancel-hover-bg); }
        .hc-score-paste-mini-btn--primary {
            border-color: rgba(16, 185, 129, 0.45);
            background: rgba(16, 185, 129, 0.14);
            color: #047857;
        }
        body:not(.theme-light) .hc-score-paste-mini-btn--primary {
            color: #6ee7b7;
            background: rgba(16, 185, 129, 0.18);
        }
        .hc-score-paste-mini-btn--primary:hover:not(:disabled) { filter: brightness(1.05); }
        .hc-score-paste-mini-btn:disabled { opacity: 0.5; cursor: not-allowed; }
        .hc-score-paste-textarea {
            width: 100%;
            flex: 1 1 auto;
            min-height: 220px;
            height: min(48vh, 380px);
            box-sizing: border-box;
            padding: 12px;
            border-radius: 10px;
            border: 1px solid rgba(148, 163, 184, 0.35);
            background: var(--pwd-input-bg, #0f172a);
            color: var(--pwd-input-text, #e2e8f0);
            font-family: Consolas, 'Courier New', monospace;
            font-size: 12px;
            line-height: 1.45;
            resize: vertical;
            outline: none;
        }
        .hc-score-paste-pane--qt .hc-score-paste-textarea:focus {
            border-color: #10b981;
            box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
        }
        .hc-score-paste-pane--import .hc-score-paste-textarea:focus {
            border-color: #10b981;
            box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
        }
        @media (max-width: 860px) {
            .hc-score-paste-split {
                grid-template-columns: 1fr;
            }
            .hc-score-paste-textarea {
                min-height: 160px;
                height: 200px;
            }
        }
        @media (max-width: 640px) {
            .hc-score-paste-overlay {
                align-items: flex-end;
                padding: 0;
            }
            .hc-score-paste-card {
                max-width: 100%;
                max-height: min(94vh, 100dvh);
                border-radius: 16px 16px 0 0;
            }
            .hc-score-paste-body {
                overflow-y: auto;
                -webkit-overflow-scrolling: touch;
            }
            .hc-score-paste-foot {
                flex-shrink: 0;
                position: sticky;
                bottom: 0;
                z-index: 3;
                background: var(--modal-box);
                padding-bottom: max(18px, env(safe-area-inset-bottom, 0px));
                box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.35);
            }
            body.theme-light .hc-score-paste-foot {
                box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.08);
            }
        }
        .hc-score-paste-foot {
            display: flex;
            gap: 12px;
            padding: 14px 20px 18px;
            border-top: 1px solid rgba(148, 163, 184, 0.25);
        }
        .hc-score-paste-foot button {
            flex: 1;
            padding: 11px 16px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 800;
            cursor: pointer;
        }
        .hc-score-paste-cancel {
            border: var(--modal-cancel-border);
            background: var(--modal-cancel-bg);
            color: var(--modal-cancel-text);
        }
        .hc-score-paste-cancel:hover { background: var(--modal-cancel-hover-bg); }
        .hc-score-paste-submit {
            border: none;
            background: linear-gradient(135deg, #059669, #047857);
            color: #fff;
        }
        .hc-score-paste-submit:hover:not(:disabled) { filter: brightness(1.05); }
        .hc-score-paste-submit:disabled { opacity: 0.55; cursor: not-allowed; }
        .hc-match-admin-score {
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }
        .hc-score-editor-input {
            width: 32px;
            padding: 3px 6px;
            border: 1px solid rgba(148, 163, 184, 0.55);
            border-radius: 4px;
            background: #ffffff;
            color: #1e293b;
            -webkit-text-fill-color: #1e293b;
            caret-color: #334155;
            font-size: 11px;
            font-weight: 700;
            font-family: Verdana, sans-serif;
            text-align: center;
            box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.04);
        }
        .hc-score-editor-input::placeholder {
            color: #94a3b8;
            -webkit-text-fill-color: #94a3b8;
            font-weight: 600;
        }
        .hc-score-editor-input:focus {
            outline: none;
            border-color: #64748b;
            box-shadow: 0 0 0 2px rgba(100, 116, 139, 0.18);
        }
        body.theme-light .hc-score-editor-input {
            background: #ffffff;
            color: #0f172a;
            -webkit-text-fill-color: #0f172a;
            border-color: #cbd5e1;
        }
        .hc-score-editor-save {
            padding: 2px 8px;
            border: 1px solid rgba(148, 163, 184, 0.45);
            border-radius: 4px;
            background: rgba(148, 163, 184, 0.12);
            color: var(--text-sub);
            font-size: 10px;
            font-weight: 700;
            cursor: pointer;
            line-height: 1.35;
        }
        body.theme-light .hc-score-editor-save {
            background: rgba(71, 85, 105, 0.08);
            color: #475569;
            border-color: #cbd5e1;
        }
        .hc-score-editor-save:hover {
            background: rgba(148, 163, 184, 0.22);
            color: var(--text-main);
        }
        body.theme-light .hc-score-editor-save:hover {
            background: rgba(71, 85, 105, 0.14);
            color: #1e293b;
        }
        .hc-score-editor-save:disabled { opacity: 0.55; cursor: wait; }
        .hc-match-delete-btn {
            padding: 1px 4px;
            border: none;
            border-radius: 3px;
            background: transparent;
            color: #64748b;
            font-size: 10px;
            font-weight: 600;
            cursor: pointer;
            line-height: 1.35;
            opacity: 0.72;
        }
        .hc-match-delete-btn--sep {
            margin-left: 12px;
            padding-left: 10px;
            border-left: 1px solid rgba(148, 163, 184, 0.35);
        }
        body.theme-light .hc-match-delete-btn { color: #64748b; }
        .hc-match-delete-btn:hover {
            opacity: 1;
            color: var(--text-sub);
            text-decoration: underline;
            text-underline-offset: 2px;
        }
        body.theme-light .hc-match-delete-btn:hover { color: #475569; }
        .hc-match-delete-btn:disabled { opacity: 0.45; cursor: wait; text-decoration: none; }
        .hc-league-link-btn {
            appearance: none;
            -webkit-appearance: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: auto;
            height: auto;
            min-width: 0;
            min-height: 0;
            padding: 0 3px;
            margin-left: 1px;
            border: 0;
            outline: none;
            box-shadow: none;
            border-radius: 0;
            background: none;
            color: #94a3b8;
            font-size: 11px;
            line-height: 1;
            cursor: pointer;
            opacity: 0.7;
            vertical-align: middle;
        }
        .hc-league-link-btn svg {
            display: block;
            width: 11px;
            height: 11px;
        }
        .hc-league-link-btn:hover,
        .hc-league-link-btn:focus {
            opacity: 1;
            color: #64748b;
            outline: none;
            box-shadow: none;
            border: 0;
        }
        body.theme-light .hc-league-link-btn { color: #94a3b8; }
        body.theme-light .hc-league-link-btn:hover { color: #64748b; }
        #leagueLinkModalOverlay.hc-league-link-overlay,
        .hc-league-link-overlay {
            display: none;
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            right: 0 !important;
            bottom: 0 !important;
            width: 100vw !important;
            height: 100vh !important;
            height: 100dvh !important;
            margin: 0 !important;
            z-index: 20000 !important;
            align-items: center;
            justify-content: center;
            padding: 20px;
            box-sizing: border-box;
            background: rgba(15, 23, 42, 0.48);
            backdrop-filter: blur(8px);
        }
        #leagueLinkModalOverlay.hc-league-link-overlay.open,
        .hc-league-link-overlay.open {
            display: flex !important;
        }
        .hc-league-link-modal {
            width: min(420px, 100%);
            max-width: 100%;
            margin: 0;
            padding: 18px 18px 16px;
            box-sizing: border-box;
            overflow: hidden;
            border-radius: 14px;
            background: #fff;
            color: #0f172a;
            box-shadow: 0 18px 48px rgba(15, 23, 42, 0.28);
        }
        .hc-league-link-modal h3 {
            margin: 0 0 8px;
            font-size: 16px;
            font-weight: 800;
            line-height: 1.3;
            color: #0f172a;
        }
        .hc-league-link-modal .hc-league-link-name {
            margin: 0 0 12px;
            font-size: 13px;
            font-weight: 700;
            color: #64748b;
            word-break: break-all;
        }
        .hc-league-link-modal input[type="url"] {
            display: block;
            width: 100%;
            max-width: 100%;
            min-width: 0;
            box-sizing: border-box;
            margin: 0;
            padding: 10px 12px;
            border: 1px solid #cbd5e1;
            border-radius: 10px;
            background: #f8fafc;
            color: #0f172a;
            font-size: 13px;
            line-height: 1.4;
            font-family: inherit;
        }
        .hc-league-link-modal input[type="url"]:focus {
            outline: none;
            border-color: #059669;
            box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.18);
            background: #fff;
        }
        .hc-league-link-actions {
            display: flex;
            gap: 10px;
            margin-top: 14px;
        }
        .hc-league-link-actions button {
            flex: 1 1 0;
            min-width: 0;
            padding: 10px 12px;
            border-radius: 10px;
            font-size: 14px;
            font-weight: 800;
            cursor: pointer;
        }
        .hc-league-link-cancel {
            border: 1px solid #cbd5e1;
            background: #f1f5f9;
            color: #334155;
        }
        .hc-league-link-save {
            border: none;
            background: linear-gradient(135deg, #059669, #047857);
            color: #fff;
        }
        .hc-league-link-save:disabled { opacity: 0.55; cursor: wait; }
        .hc-match-sum-bets,
        .hc-match-sum-money {
            font-weight: 800;
            text-align: center;
        }
        .hc-match-sum-money {
            display: flex;
            align-items: center;
            justify-content: center;
            white-space: nowrap;
        }
        .hc-match-sum-money .hc-money-mode-prefix,
        .hc-match-sum-money .hc-val-money {
            flex: 0 0 auto;
        }
        .hc-match-sum-bets .hc-val-count,
        .hc-match-sum-money .hc-val-money,
        .hc-match-sum-money .hc-money-mode-prefix {
            font-size: 12px;
            font-weight: 800;
        }
        .hc-head-lbl-mo { display: none; }
        .hc-amt-short { display: none; }
        .hc-amt-full { display: inline; }
        .hc-column-head {
            display: none;
            padding: 8px var(--hc-inset-x, 16px) 6px;
            margin-bottom: 4px;
            font-size: 12px;
            font-weight: 800;
            color: var(--text-sub);
            letter-spacing: 0.2px;
            border-bottom: 1px solid var(--border-light);
        }
        .hc-column-head span { line-height: 1.2; }
        .hc-head-sort {
            display: flex;
            justify-content: center;
            align-items: center;
            text-align: center;
        }
        .hc-head-sort--left {
            justify-content: flex-start;
        }
        .hc-head-sort--left .hc-sort-btn {
            justify-content: flex-start;
            text-align: left;
            padding-left: 0;
            width: 100%;
        }
        .hc-sort-btn {
            cursor: pointer;
            user-select: none;
            border: 1px solid transparent;
            background: transparent;
            padding: 2px 6px;
            font: inherit;
            color: inherit;
            text-align: center;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 3px;
            border-radius: 4px;
            line-height: 1.25;
            font-size: inherit;
            transition: background 0.15s, border-color 0.15s;
        }
        .hc-sort-label { font: inherit; color: inherit; }
        .hc-column-head .hc-sort-btn[data-sort-key="bets"],
        .hc-column-head .hc-sort-btn[data-sort-key="diff"] {
            flex-wrap: nowrap;
            white-space: nowrap;
        }
        .hc-column-head .hc-sort-btn[data-sort-key="bets"] .hc-col-toggle-hit,
        .hc-column-head .hc-sort-btn[data-sort-key="bets"] .hc-sort-label,
        .hc-column-head .hc-sort-btn[data-sort-key="diff"] .hc-sort-label {
            white-space: nowrap;
            flex-wrap: nowrap;
        }
        .hc-head-sort--money {
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 0;
            overflow: hidden;
        }
        .hc-sort-btn--money {
            gap: 2px;
            padding: 1px 4px;
            flex-wrap: nowrap;
            max-width: 100%;
            min-width: 0;
        }
        .hc-sort-btn--money .hc-sort-label,
        .hc-sort-btn--money .hc-sort-icon,
        .hc-sort-btn--money .hc-sort-hint {
            flex: 0 0 auto;
        }
        .hc-money-mode-toggle {
            flex: 0 0 auto;
            flex-shrink: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 1.15em;
            min-height: 1.15em;
            height: auto;
            padding: 0 3px;
            margin: 0 0 0 1px;
            border: 1px solid rgba(147, 197, 253, 0.52);
            border-radius: 4px;
            background: rgba(59, 130, 246, 0.22);
            color: #93c5fd;
            font: inherit;
            font-weight: 900;
            line-height: 1.15;
            cursor: pointer;
            user-select: none;
            transition: background 0.15s, border-color 0.15s, color 0.15s;
        }
        body.theme-light .hc-money-mode-toggle {
            border-color: #1e40af;
            background: #eff6ff;
            color: #1e3a8a;
        }
        .hc-money-mode-toggle:hover {
            filter: brightness(1.06);
        }
        body.hc-money-diff-mode .hc-money-mode-toggle {
            border-color: rgba(203, 213, 225, 0.42);
            background: rgba(148, 163, 184, 0.18);
            color: #cbd5e1;
        }
        body.theme-light.hc-money-diff-mode .hc-money-mode-toggle {
            border-color: #cbd5e1;
            background: #f1f5f9;
            color: #64748b;
        }
        body.hc-money-avg-mode .hc-money-mode-toggle {
            border-color: rgba(45, 212, 191, 0.55);
            background: rgba(20, 184, 166, 0.22);
            color: #5eead4;
        }
        body.theme-light.hc-money-avg-mode .hc-money-mode-toggle {
            border-color: #0f766e;
            background: #ccfbf1;
            color: #0f766e;
        }
        .hc-match-sum-money .hc-money-mode-prefix {
            display: inline;
            margin-right: 0;
            line-height: 1;
            color: #93c5fd;
            vertical-align: baseline;
        }
        body.theme-light .hc-match-sum-money .hc-money-mode-prefix {
            color: #1e3a8a;
        }
        body.hc-money-diff-mode .hc-match-sum-money .hc-money-mode-prefix {
            color: #cbd5e1;
        }
        body.theme-light.hc-money-diff-mode .hc-match-sum-money .hc-money-mode-prefix {
            color: #64748b;
        }
        body.hc-money-avg-mode .hc-match-sum-money .hc-money-mode-prefix {
            color: #5eead4;
        }
        body.theme-light.hc-money-avg-mode .hc-match-sum-money .hc-money-mode-prefix {
            color: #0f766e;
        }
        .hc-sort-btn:hover:not(.is-sort-desc):not(.is-sort-asc) {
            border-color: var(--border-light);
            background: rgba(148, 163, 184, 0.08);
        }
        .hc-sort-btn:hover:not(.is-sort-desc):not(.is-sort-asc) .hc-sort-icon {
            opacity: 0.62;
        }
        body.theme-light .hc-sort-btn:hover:not(.is-sort-desc):not(.is-sort-asc) { background: rgba(148, 163, 184, 0.12); }
        .hc-sort-btn.is-sort-desc {
            color: #f97316;
            border-color: rgba(249, 115, 22, 0.35);
            background: rgba(249, 115, 22, 0.1);
        }
        .hc-sort-btn.is-sort-desc .hc-sort-label,
        .hc-sort-btn.is-sort-desc .hc-sort-hint { color: #f97316; }
        .hc-sort-btn.is-sort-asc {
            color: #22c55e;
            border-color: rgba(34, 197, 94, 0.35);
            background: rgba(34, 197, 94, 0.1);
        }
        .hc-sort-btn.is-sort-asc .hc-sort-label,
        .hc-sort-btn.is-sort-asc .hc-sort-hint { color: #22c55e; }
        body.theme-light .hc-sort-btn.is-sort-desc { color: #ea580c; }
        body.theme-light .hc-sort-btn.is-sort-desc .hc-sort-label,
        body.theme-light .hc-sort-btn.is-sort-desc .hc-sort-hint { color: #ea580c; }
        body.theme-light .hc-sort-btn.is-sort-asc { color: #16a34a; }
        body.theme-light .hc-sort-btn.is-sort-asc .hc-sort-label,
        body.theme-light .hc-sort-btn.is-sort-asc .hc-sort-hint { color: #16a34a; }
        .hc-sort-icon {
            font-size: 10px;
            font-weight: 700;
            opacity: 0.42;
            font-family: Verdana, sans-serif;
            line-height: 1;
            flex-shrink: 0;
        }
        .hc-sort-btn.is-sort-desc .hc-sort-icon,
        .hc-sort-btn.is-sort-asc .hc-sort-icon { display: none; }
        .hc-sort-hint {
            font-size: 9px;
            font-weight: 800;
            opacity: 1;
            font-family: Verdana, sans-serif;
            line-height: 1;
            min-width: 0.6em;
        }
        .hc-flow-table {
            width: 100%;
            padding: 0;
        }
        .hc-flow-row {
            padding: 8px 0;
            border-bottom: 1px solid var(--border-light);
        }
        .hc-flow-row:last-child { border-bottom: none; }
        .hc-flow-row-home { padding-top: 4px; }
        .hc-col-team {
            font-size: 13px;
            font-weight: 800;
            color: var(--text-main);
            line-height: 1.2;
            min-width: 4em;
            white-space: normal;
            overflow: visible;
            text-overflow: clip;
            cursor: pointer;
        }
        body.is-score-editor .hc-col-team {
            display: flex;
            align-items: flex-start;
            gap: 3px;
            cursor: default;
        }
        body.is-score-editor .hc-col-team .hc-team-name {
            cursor: pointer;
            min-width: 0;
        }
        .hc-team-rename-btn {
            flex: 0 0 auto;
            margin: 0;
            padding: 0 4px;
            height: 16px;
            border: 1px solid rgba(56, 189, 248, 0.45);
            border-radius: 3px;
            background: rgba(14, 165, 233, 0.16);
            color: #7dd3fc;
            font-size: 10px;
            font-weight: 800;
            line-height: 14px;
            cursor: pointer;
        }
        body.theme-light .hc-team-rename-btn {
            border-color: #93c5fd;
            background: #eff6ff;
            color: #1d4ed8;
        }
        .hc-team-rename-btn:hover {
            filter: brightness(1.12);
        }
        .hc-col-team.is-renaming .hc-team-name,
        .hc-col-team.is-renaming .hc-team-rename-btn {
            display: none;
        }
        .hc-team-rename-input {
            flex: 1 1 auto;
            min-width: 0;
            width: 7.2em;
            max-width: 9em;
            height: 22px;
            padding: 0 6px;
            border: 1px solid #38bdf8;
            border-radius: 4px;
            background: var(--panel-bg, #0b1120);
            color: var(--text-main);
            font-size: 12px;
            font-weight: 800;
        }
        body.theme-light .hc-team-rename-input {
            background: #fff;
            border-color: #2563eb;
        }
        .hc-flow-table .hc-col-team.team-bold {
            font-weight: 900;
            text-decoration: none;
        }
        .hc-col-team .hc-team-l1,
        .hc-col-team .hc-team-l2 {
            text-decoration: none;
        }
        @media (min-width: 641px) {
            .hc-col-team {
                white-space: nowrap;
            }
            .hc-col-team .hc-team-l1,
            .hc-col-team .hc-team-l2 {
                display: inline;
                margin-top: 0;
            }
            body.show-handicap-only .hc-column-head .hc-head-sort.hc-head-sort--money,
            body.show-total-only .hc-column-head .hc-head-sort.hc-head-sort--money {
                justify-content: center;
            }
            body.show-handicap-only .hc-match-head-row > .hc-match-sum-money,
            body.show-total-only .hc-match-head-row > .hc-match-sum-money,
            body.show-handicap-only .hc-flow-row > .hc-col-num:last-child,
            body.show-total-only .hc-flow-row > .hc-col-num:last-child {
                justify-self: center;
                width: 100%;
            }
        }
        .hc-team-l1,
        .hc-team-l2 {
            display: block;
        }
        .hc-team-l2 {
            margin-top: 1px;
        }
        .hc-col-line {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0;
            text-align: center;
            white-space: nowrap;
            font-family: 'Roboto Mono', 'SF Mono', 'Cascadia Mono', 'Consolas', monospace;
            font-variant-numeric: tabular-nums;
        }
        .hc-col-line.hc-col-opening,
        .hc-col-line.hc-col-live {
            justify-content: flex-start;
            align-items: flex-start;
            text-align: left;
        }
        .hc-col-opening,
        .hc-col-live {
            justify-content: flex-start;
            align-items: stretch;
            text-align: left;
        }
        .hc-col-opening .hc-line-stack,
        .hc-col-live .hc-line-stack {
            display: grid;
            grid-template-columns: max-content;
            justify-items: start;
            gap: 2px;
            width: auto;
            max-width: 100%;
        }
        .hc-col-opening .hc-line-stack .hc-line-handicap,
        .hc-col-live .hc-line-stack .hc-line-handicap {
            justify-self: start;
            align-self: auto;
            text-align: left;
            width: auto;
        }
        .hc-col-opening .hc-line-stack .hc-line-odds--stack,
        .hc-col-live .hc-line-stack .hc-line-odds--stack {
            justify-self: start;
            align-self: auto;
        }
        .hc-col-opening .hc-line-stack--ou .hc-line-ou-core,
        .hc-col-live .hc-line-stack--ou .hc-line-ou-core {
            justify-self: start;
            width: auto;
            display: inline-flex;
            justify-content: flex-start;
            align-items: baseline;
            align-self: auto;
        }
        .hc-line-stack {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            justify-content: center;
            gap: 2px;
            min-width: 0;
            line-height: 1.15;
        }
        .hc-line-stack--ou .hc-line-ou-core {
            display: inline-flex;
            align-items: baseline;
            align-self: flex-start;
            gap: 2px;
            white-space: nowrap;
        }
        .hc-line-stack .hc-line-handicap {
            align-self: flex-start;
            text-align: left;
            font-size: 11px;
            font-weight: 600;
            letter-spacing: -0.02em;
        }
        .hc-line-stack .hc-line-handicap.hc-line-tone-up,
        .hc-line-stack .hc-line-handicap.hc-line-tone-down {
            font-weight: 700;
        }
        .hc-line-stack .hc-line-odds--stack {
            align-self: flex-start;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 2.25em;
            padding: 0 4px;
            border-radius: 999px;
            font-size: 10px;
            font-weight: 600;
            font-family: 'Roboto Mono', 'SF Mono', 'Cascadia Mono', 'Consolas', monospace;
            font-variant-numeric: tabular-nums;
            letter-spacing: 0;
            color: var(--text-sub);
            background: rgba(148, 163, 184, 0.1);
            border: 1px solid rgba(148, 163, 184, 0.16);
            opacity: 1;
            box-sizing: border-box;
            box-shadow: none;
        }
        body.theme-light .hc-line-stack .hc-line-odds--stack {
            background: #f1f5f9;
            border-color: #e2e8f0;
            color: #64748b;
        }
        body:not(.theme-light) .hc-line-stack .hc-line-odds--stack {
            background: rgba(15, 23, 42, 0.35);
            border-color: rgba(148, 163, 184, 0.14);
        }
        .hc-line-stack .hc-line-odds--stack.hc-line-tone-up {
            background: rgba(239, 68, 68, 0.1);
            border-color: rgba(239, 68, 68, 0.22);
        }
        .hc-line-stack .hc-line-odds--stack.hc-line-tone-down {
            background: rgba(22, 163, 74, 0.1);
            border-color: rgba(34, 197, 94, 0.22);
        }
        body:not(.theme-light) .hc-line-stack .hc-line-odds--stack.hc-line-tone-up {
            background: rgba(248, 113, 113, 0.12);
            border-color: rgba(248, 113, 113, 0.24);
        }
        body:not(.theme-light) .hc-line-stack .hc-line-odds--stack.hc-line-tone-down {
            background: rgba(74, 222, 128, 0.1);
            border-color: rgba(74, 222, 128, 0.22);
        }
        body.theme-light .hc-line-stack .hc-line-odds--stack.hc-line-tone-up {
            background: rgba(254, 226, 226, 0.95);
            border-color: rgba(252, 165, 165, 0.85);
        }
        body.theme-light .hc-line-stack .hc-line-odds--stack.hc-line-tone-down {
            background: rgba(220, 252, 231, 0.95);
            border-color: rgba(134, 239, 172, 0.85);
        }
        .hc-line-stack .hc-line-ou-tag {
            font-size: 10px;
            font-weight: 700;
        }
        .hc-line-stack .hc-line-odds--stack::before,
        .hc-line-stack .hc-line-odds--stack::after {
            content: none;
        }
        .hc-line-tone-up {
            color: #ef4444 !important;
            font-weight: 800;
        }
        .hc-line-tone-down {
            color: #16a34a !important;
            font-weight: 800;
        }
        body:not(.theme-light) .hc-line-tone-up {
            color: #f87171 !important;
        }
        body:not(.theme-light) .hc-line-tone-down {
            color: #4ade80 !important;
        }
        body.theme-light .hc-line-tone-up {
            color: #dc2626 !important;
        }
        body.theme-light .hc-line-tone-down {
            color: #15803d !important;
        }
        .hc-line-handicap {
            font-size: 11px;
            font-weight: 700;
            color: var(--text-main);
            letter-spacing: -0.03em;
        }
        .hc-line-ou-core {
            display: inline-flex;
            align-items: baseline;
            gap: 2px;
            white-space: nowrap;
        }
        .hc-line-ou-tag {
            font-size: 10px;
            font-weight: 800;
            color: var(--text-sub);
            letter-spacing: 0;
        }
        body.show-total-only .hc-flow-row-ou-over .hc-line-ou-tag {
            color: #7c3aed;
        }
        body.show-total-only .hc-flow-row-ou-under .hc-line-ou-tag {
            color: #059669;
        }
        body:not(.theme-light).show-total-only .hc-flow-row-ou-over .hc-line-ou-tag {
            color: #c4b5fd;
        }
        body:not(.theme-light).show-total-only .hc-flow-row-ou-under .hc-line-ou-tag {
            color: #6ee7b7;
        }
        body.theme-light .hc-line-ou-tag {
            color: #64748b;
        }
        .hc-line-odds {
            font-size: 10px;
            font-weight: 500;
            color: var(--text-sub);
            letter-spacing: 0;
            opacity: 0.9;
        }
        .hc-line-odds::before {
            content: '[';
        }
        .hc-line-odds::after {
            content: ']';
        }
        .hc-column-head .hc-head-line,
        .hc-column-head .hc-head-opening,
        .hc-column-head .hc-line-col-toggle,
        .hc-column-head .hc-opening-col-toggle {
            text-align: left;
            justify-content: flex-start;
        }
        .hc-column-head .hc-head-line .hc-head-lbl,
        .hc-column-head .hc-head-opening .hc-head-lbl {
            text-align: left;
        }
        .hc-line-col-toggle,
        .hc-opening-col-toggle {
            display: inline-flex;
            align-items: center;
            justify-content: flex-start;
            gap: 3px;
            width: auto;
            max-width: 100%;
            min-height: 28px;
            margin: 0;
            padding: 0;
            border: 1px dashed transparent;
            border-radius: 6px;
            background: transparent;
            color: inherit;
            font: inherit;
            font-weight: 800;
            letter-spacing: inherit;
            cursor: pointer;
            transition: border-color 0.15s, background 0.15s, color 0.15s;
        }
        body.theme-light .hc-line-col-toggle:hover,
        body.theme-light .hc-opening-col-toggle:hover {
            border-color: #93c5fd;
            background: #eff6ff;
            color: #2563eb;
        }
        body:not(.theme-light) .hc-line-col-toggle:hover,
        body:not(.theme-light) .hc-opening-col-toggle:hover {
            border-color: rgba(96, 165, 250, 0.45);
            background: rgba(59, 130, 246, 0.1);
            color: #93c5fd;
        }
        .hc-line-col-toggle-icon,
        .hc-opening-col-toggle-icon {
            font-size: 9px;
            line-height: 1;
            opacity: 0.72;
        }
        .hc-line-col-toggle-expand,
        .hc-opening-col-toggle-expand {
            display: none;
            font-size: 11px;
            line-height: 1;
            font-weight: 900;
        }
        body.hc-line-col-collapsed .hc-line-col-toggle {
            border-style: solid;
            border-color: rgba(96, 165, 250, 0.38);
            background: rgba(59, 130, 246, 0.12);
        }
        body.hc-opening-col-collapsed .hc-opening-col-toggle {
            border-style: solid;
            border-color: rgba(96, 165, 250, 0.38);
            background: rgba(59, 130, 246, 0.12);
        }
        body.theme-light.hc-line-col-collapsed .hc-line-col-toggle,
        body.theme-light.hc-opening-col-collapsed .hc-opening-col-toggle {
            border-color: #93c5fd;
            background: #eff6ff;
        }
        body.hc-line-col-collapsed .hc-line-col-toggle .hc-head-lbl,
        body.hc-line-col-collapsed .hc-line-col-toggle .hc-line-col-toggle-icon {
            display: none !important;
        }
        body.hc-opening-col-collapsed .hc-opening-col-toggle .hc-head-lbl,
        body.hc-opening-col-collapsed .hc-opening-col-toggle .hc-opening-col-toggle-icon {
            display: none !important;
        }
        body.hc-line-col-collapsed .hc-line-col-toggle .hc-line-col-toggle-expand {
            display: inline;
            color: #60a5fa;
        }
        body.hc-opening-col-collapsed .hc-opening-col-toggle .hc-opening-col-toggle-expand {
            display: inline;
            color: #60a5fa;
        }
        body.theme-light.hc-line-col-collapsed .hc-line-col-toggle .hc-line-col-toggle-expand,
        body.theme-light.hc-opening-col-collapsed .hc-opening-col-toggle .hc-opening-col-toggle-expand {
            color: #2563eb;
        }
        body.hc-line-col-collapsed .hc-col-live {
            visibility: hidden;
            pointer-events: none;
        }
        body.hc-opening-col-collapsed .hc-col-opening {
            visibility: hidden;
            pointer-events: none;
        }
        .hc-line-empty {
            font-size: 11px;
            font-weight: 700;
            color: var(--text-sub);
            opacity: 0.55;
        }
        .hc-col-toggle-hit {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 3px;
            min-width: 0;
            border: 1px dashed transparent;
            border-radius: 6px;
            padding: 1px 2px;
            transition: border-color 0.15s, background 0.15s, color 0.15s;
        }
        body.theme-light .hc-pct-col-toggle .hc-col-toggle-hit:hover {
            border-color: #93c5fd;
            background: #eff6ff;
            color: #2563eb;
        }
        body:not(.theme-light) .hc-pct-col-toggle .hc-col-toggle-hit:hover {
            border-color: rgba(96, 165, 250, 0.45);
            background: rgba(59, 130, 246, 0.1);
            color: #93c5fd;
        }
        .hc-col-toggle-icon {
            font-size: 9px;
            line-height: 1;
            opacity: 0.72;
        }
        .hc-col-toggle-expand {
            display: none;
            font-size: 11px;
            line-height: 1;
            font-weight: 900;
        }
        body.hc-betpct-col-collapsed .hc-col-betpct,
        body.hc-moneypct-col-collapsed .hc-col-moneypct,
        body.hc-bets-col-collapsed .hc-col-bets,
        body.hc-money-col-collapsed .hc-col-money {
            visibility: hidden;
            pointer-events: none;
        }
        body.hc-betpct-col-collapsed .hc-pct-col-toggle[data-col-toggle="betpct"] .hc-col-toggle-hit {
            border-style: solid;
            border-color: rgba(96, 165, 250, 0.38);
            background: rgba(59, 130, 246, 0.12);
        }
        body.theme-light.hc-betpct-col-collapsed .hc-pct-col-toggle[data-col-toggle="betpct"] .hc-col-toggle-hit {
            border-color: #93c5fd;
            background: #eff6ff;
        }
        body.hc-moneypct-col-collapsed .hc-pct-col-toggle[data-col-toggle="moneypct"] .hc-col-toggle-hit {
            border-style: solid;
            border-color: rgba(96, 165, 250, 0.38);
            background: rgba(59, 130, 246, 0.12);
        }
        body.theme-light.hc-moneypct-col-collapsed .hc-pct-col-toggle[data-col-toggle="moneypct"] .hc-col-toggle-hit {
            border-color: #93c5fd;
            background: #eff6ff;
        }
        body.hc-betpct-col-collapsed .hc-pct-col-toggle[data-col-toggle="betpct"] .hc-col-toggle-hit .hc-sort-label,
        body.hc-betpct-col-collapsed .hc-pct-col-toggle[data-col-toggle="betpct"] .hc-col-toggle-hit .hc-col-toggle-icon,
        body.hc-betpct-col-collapsed .hc-pct-col-toggle[data-col-toggle="betpct"] .hc-sort-icon,
        body.hc-betpct-col-collapsed .hc-pct-col-toggle[data-col-toggle="betpct"] .hc-sort-hint,
        body.hc-moneypct-col-collapsed .hc-pct-col-toggle[data-col-toggle="moneypct"] .hc-col-toggle-hit .hc-sort-label,
        body.hc-moneypct-col-collapsed .hc-pct-col-toggle[data-col-toggle="moneypct"] .hc-col-toggle-hit .hc-col-toggle-icon,
        body.hc-moneypct-col-collapsed .hc-pct-col-toggle[data-col-toggle="moneypct"] .hc-sort-icon,
        body.hc-moneypct-col-collapsed .hc-pct-col-toggle[data-col-toggle="moneypct"] .hc-sort-hint {
            display: none !important;
        }
        body.hc-betpct-col-collapsed .hc-pct-col-toggle[data-col-toggle="betpct"] .hc-col-toggle-hit .hc-col-toggle-expand,
        body.hc-moneypct-col-collapsed .hc-pct-col-toggle[data-col-toggle="moneypct"] .hc-col-toggle-hit .hc-col-toggle-expand {
            display: inline;
            color: #60a5fa;
        }
        body.theme-light.hc-betpct-col-collapsed .hc-pct-col-toggle[data-col-toggle="betpct"] .hc-col-toggle-hit .hc-col-toggle-expand,
        body.theme-light.hc-moneypct-col-collapsed .hc-pct-col-toggle[data-col-toggle="moneypct"] .hc-col-toggle-hit .hc-col-toggle-expand {
            color: #2563eb;
        }
        body.hc-bets-col-collapsed .hc-pct-col-toggle[data-col-toggle="bets"] .hc-col-toggle-hit,
        body.hc-money-col-collapsed .hc-pct-col-toggle[data-col-toggle="money"] .hc-col-toggle-hit {
            border-style: solid;
            border-color: rgba(96, 165, 250, 0.38);
            background: rgba(59, 130, 246, 0.12);
        }
        body.theme-light.hc-bets-col-collapsed .hc-pct-col-toggle[data-col-toggle="bets"] .hc-col-toggle-hit,
        body.theme-light.hc-money-col-collapsed .hc-pct-col-toggle[data-col-toggle="money"] .hc-col-toggle-hit {
            border-color: #93c5fd;
            background: #eff6ff;
        }
        body.hc-bets-col-collapsed .hc-pct-col-toggle[data-col-toggle="bets"] .hc-col-toggle-hit .hc-sort-label,
        body.hc-bets-col-collapsed .hc-pct-col-toggle[data-col-toggle="bets"] .hc-col-toggle-hit .hc-col-toggle-icon,
        body.hc-bets-col-collapsed .hc-pct-col-toggle[data-col-toggle="bets"] .hc-sort-icon,
        body.hc-bets-col-collapsed .hc-pct-col-toggle[data-col-toggle="bets"] .hc-sort-hint,
        body.hc-money-col-collapsed .hc-pct-col-toggle[data-col-toggle="money"] .hc-col-toggle-hit .hc-sort-label,
        body.hc-money-col-collapsed .hc-pct-col-toggle[data-col-toggle="money"] .hc-col-toggle-hit .hc-col-toggle-icon,
        body.hc-money-col-collapsed .hc-pct-col-toggle[data-col-toggle="money"] .hc-sort-icon,
        body.hc-money-col-collapsed .hc-pct-col-toggle[data-col-toggle="money"] .hc-sort-hint,
        body.hc-money-col-collapsed .hc-pct-col-toggle[data-col-toggle="money"] .hc-money-mode-toggle {
            display: none !important;
        }
        body.hc-bets-col-collapsed .hc-pct-col-toggle[data-col-toggle="bets"] .hc-col-toggle-hit .hc-col-toggle-expand,
        body.hc-money-col-collapsed .hc-pct-col-toggle[data-col-toggle="money"] .hc-col-toggle-hit .hc-col-toggle-expand {
            display: inline;
            color: #60a5fa;
        }
        body.theme-light.hc-bets-col-collapsed .hc-pct-col-toggle[data-col-toggle="bets"] .hc-col-toggle-hit .hc-col-toggle-expand,
        body.theme-light.hc-money-col-collapsed .hc-pct-col-toggle[data-col-toggle="money"] .hc-col-toggle-hit .hc-col-toggle-expand {
            color: #2563eb;
        }
        .hc-col-pct { min-width: 0; }
        .hc-pct-val {
            display: block;
            font-size: 12px;
            font-weight: 900;
            font-family: Verdana, sans-serif;
            color: var(--odds-val);
            margin-bottom: 3px;
        }
        @media (min-width: 641px) {
            .hc-col-line .hc-line-handicap {
                font-size: 11px;
                font-weight: 600;
            }
            .hc-col-line .hc-line-odds--stack {
                font-size: 10px;
                padding: 0 5px;
            }
            .hc-col-line .hc-line-ou-tag {
                font-size: 10px;
            }
        }
        .hc-mini-bar {
            display: flex;
            height: 7px;
            max-width: 100%;
            background: rgba(148, 163, 184, 0.14);
            border-radius: 0;
            overflow: hidden;
            border: none;
        }
        body.theme-light .hc-mini-bar { background: #eef1f4; }
        .hc-mini-bar .hc-bar-fill {
            height: 100%;
            border-radius: 0;
            background: #84cc16;
            min-width: 0;
        }
        .hc-mini-bar .hc-bar-fill[style*="width:"]:not([style*="width:0"]):not([style*="width:0%"]) {
            min-width: 8px;
        }
        body.theme-light .hc-mini-bar .hc-bar-fill { background: #65a30d; }
        .hc-mini-bar > div:not(.hc-bar-fill) { height: 100%; border-radius: 0; }
        .hc-col-diff {
            font-size: 11px;
            font-weight: 900;
            font-family: Verdana, sans-serif;
            color: #22c55e;
            text-align: center;
        }
        .hc-diff-val { cursor: help; }
        .hc-diff-strong { color: #16a34a; font-weight: 900; }
        body.theme-light .hc-diff-strong { color: #15803d; }
        .hc-diff-val.hc-diff-true-hot { color: #f97316; }
        .hc-diff-val.hc-diff-true-hot.hc-diff-strong { color: #ea580c; font-weight: 900; }
        body.theme-light .hc-diff-val.hc-diff-true-hot { color: #ea580c; }
        body.theme-light .hc-diff-val.hc-diff-true-hot.hc-diff-strong { color: #c2410c; }
        .hc-col-num {
            font-size: 12px;
            font-weight: 600;
            text-align: center;
        }
        .hc-val-count,
        .hc-val-money {
            font-family: 'Roboto Mono', 'SF Mono', 'Cascadia Mono', 'Consolas', monospace;
            font-variant-numeric: tabular-nums;
            letter-spacing: -0.02em;
            color: var(--text-main);
            font-weight: 600;
        }
        .hc-col-num .hc-val-count,
        .hc-col-num .hc-val-money {
            font-size: 12px;
        }
        body.theme-light .hc-col-diff { color: #16a34a; }

        .hc-vip-lock-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            min-height: 22px;
            padding: 2px 0;
            margin: 0;
            border: none;
            background: transparent;
            cursor: pointer;
            color: rgba(148, 163, 184, 0.58);
            transition: color 0.15s ease, transform 0.15s ease;
        }
        body.theme-light .hc-vip-lock-btn { color: rgba(100, 116, 139, 0.62); }
        .hc-vip-lock-btn:hover,
        .hc-vip-lock-btn:focus-visible {
            color: #f59e0b;
            outline: none;
            transform: scale(1.08);
        }
        .hc-vip-lock-icon { display: block; flex-shrink: 0; }
        body.non-vip-mode .hc-col-pct.hc-vip-locked,
        body.non-vip-mode .hc-col-diff.hc-vip-locked,
        body.non-vip-mode .hc-col-num.hc-vip-locked {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 24px;
        }
        body.non-vip-mode .hc-head-sort .hc-sort-btn[data-sort-key="moneypct"],
        body.non-vip-mode .hc-head-sort .hc-sort-btn[data-sort-key="diff"],
        body.non-vip-mode .hc-head-sort .hc-sort-btn[data-sort-key="bets"],
        body.non-vip-mode .hc-head-sort .hc-sort-btn[data-sort-key="money"] {
            cursor: pointer;
        }
        body.is-guest-terminal .league-btn-raw,
        body.is-guest-terminal .pc-hot-more-btn,
        body.is-guest-terminal .mo-league-more-btn,
        body.is-guest-terminal .date-picker-trigger,
        body[data-logged-in="0"] .league-btn-raw,
        body[data-logged-in="0"] .pc-hot-more-btn,
        body[data-logged-in="0"] .mo-league-more-btn,
        body[data-logged-in="0"] .date-picker-trigger,
        body.non-vip-mode:not(.is-score-editor) .league-btn-raw,
        body.non-vip-mode:not(.is-score-editor) .pc-hot-more-btn,
        body.non-vip-mode:not(.is-score-editor) .mo-league-more-btn,
        body.non-vip-mode:not(.is-score-editor) .date-picker-trigger,
        body[data-real-vip="0"]:not(.is-score-editor) .league-btn-raw,
        body[data-real-vip="0"]:not(.is-score-editor) .pc-hot-more-btn,
        body[data-real-vip="0"]:not(.is-score-editor) .mo-league-more-btn,
        body[data-real-vip="0"]:not(.is-score-editor) .date-picker-trigger,
        body[data-real-vip="0"]:not(.is-score-editor) .toolbar.pc-only .pc-hot-more-btn,
        body[data-real-vip="0"]:not(.is-score-editor) .toolbar.pc-only .pc-hot-cell-date .date-picker-trigger,
        body[data-real-vip="0"]:not(.is-score-editor) .mobile-hot-board .mo-league-more-btn,
        body[data-real-vip="0"]:not(.is-score-editor) .mobile-hot-board .mo-date-btn,
        .hot-zone-locked .league-btn-raw,
        .hot-zone-locked .pc-hot-more-btn,
        .hot-zone-locked .mo-league-more-btn,
        .hot-zone-locked .date-picker-trigger {
            opacity: 0.58 !important;
            cursor: not-allowed !important;
        }
        body[data-real-vip="0"]:not(.is-score-editor) .toolbar.pc-only .pc-hot-more-btn:hover,
        .hot-zone-locked .pc-hot-more-btn:hover,
        .hot-zone-locked .mo-league-more-btn:hover {
            background: var(--btn-glass-bg);
        }
        body.is-guest-terminal .league-search-input,
        body[data-logged-in="0"] .league-search-input,
        body.non-vip-mode:not(.is-score-editor) .league-search-input {
            pointer-events: none;
            user-select: none;
        }
        .z-val-k {
            color: #0ea5e9;
            font-weight: 700;
            font-family: inherit;
            margin-left: 2px;
        }
        .z-val-w {
            color: #f59e0b;
            font-weight: 700;
            font-family: inherit;
            margin-left: 2px;
        }
        body.theme-light .z-val-k { color: #0284c7; }
        body.theme-light .z-val-w { color: #d97706; }
        .z-val-unit {
            font-size: 10px; font-weight: 700; color: var(--text-sub); margin-left: 1px;
        }
        
        body.show-handicap-only .match-trend-action-group--total { display: none !important; }
        body.show-total-only .match-trend-action-group--handicap { display: none !important; }

        .league-btn-raw {
            filter: brightness(1.2);
            text-shadow: 0 1px 3px rgba(0,0,0,0.8);
            font-size: 11px;
            line-height: 1.25;
            --hot-league-color: #64748b;
            box-sizing: border-box;
            border: 1px solid var(--hot-league-color);
            background: transparent;
            color: var(--hot-league-color);
            font-weight: 700;
            box-shadow: none;
            transition: none;
        }
        body.theme-light .league-btn-raw {
            filter: none;
            text-shadow: none;
        }
        .league-btn-raw.is-hot-active {
            background: var(--hot-league-color);
            color: #ffffff !important;
            font-weight: 900;
            border-color: var(--hot-league-color);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
            text-shadow: none;
        }
        body.theme-light .league-btn-raw.is-hot-active {
            color: #ffffff !important;
            text-shadow: none;
        }

        .toolbar.pc-only .toolbar-bottom {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 18px 0 22px 14px;
            background: var(--toolbar-bottom-bg);
            min-height: 82px;
            overflow: visible;
            box-sizing: border-box;
        }
        .toolbar.pc-only .toolbar-left-col {
            width: 378px;
            max-width: 378px;
            flex: 0 0 378px;
            display: flex;
            gap: 11px;
            align-items: center;
            justify-content: center;
            padding: 0 20px 4px 8px;
            box-sizing: border-box;
            flex-shrink: 0;
            overflow: visible;
            position: relative;
            z-index: 2;
        }
        .toolbar.pc-only .toolbar-left-col .filter-btn {
            flex: 1 1 0;
            min-width: 0;
            max-width: 120px;
            width: auto;
            height: 36px;
            min-height: 36px;
            max-height: 36px;
            padding: 0 5px;
            font-size: 13px;
            box-sizing: border-box;
            overflow: visible;
        }
        .toolbar.pc-only .toolbar-left-col .filter-btn.active::before {
            z-index: 20;
        }
        .toolbar.pc-only .toolbar-left-col .date-picker-trigger {
            flex: 0 0 auto;
            width: auto;
            min-width: 72px;
            max-width: 92px;
            height: 36px;
            min-height: 36px;
            max-height: 36px;
            padding: 0 8px;
            font-size: 11px;
            line-height: 1.2;
            border-radius: 6px;
            font-weight: 500;
            white-space: nowrap;
            box-sizing: border-box;
        }
        .toolbar.pc-only .pc-hot-cell-date {
            flex: 0 0 auto;
            display: flex;
            align-items: center;
        }
        .toolbar.pc-only .pc-hot-cell-date .date-picker-trigger {
            flex: 0 0 auto;
            width: auto;
            min-width: 72px;
            max-width: 92px;
            height: auto;
            min-height: 0;
            max-height: none;
            padding: 4px 8px;
            font-size: 11px;
            line-height: 1.35;
            border-radius: 6px;
            font-weight: 500;
            white-space: nowrap;
        }
        .toolbar.pc-only .toolbar-middle-col {
            flex: 1 1 auto;
            width: auto;
            min-width: 0;
            display: flex;
            gap: 12px;
            align-items: center;
            justify-content: center;
            padding: 0 8px;
            box-sizing: border-box;
            overflow: visible;
        }
        .toolbar.pc-only .toolbar-divider-v {
            width: 1px;
            height: 44px;
            background: var(--border-color);
            flex-shrink: 0;
            align-self: center;
            margin: 0 2px;
        }
        .toolbar.pc-only .toolbar-divider-v--before-hot {
            margin-right: 0;
        }
        .toolbar.pc-only .toolbar-right-col {
            flex: 0 0 72px;
            width: 72px;
            max-width: 72px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 8px;
            box-sizing: border-box;
            flex-shrink: 0;
            align-self: stretch;
        }
        .toolbar.pc-only .toolbar-basketball-entry {
            display: inline-flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
            width: 56px;
            height: 56px;
            min-width: 56px;
            min-height: 56px;
            max-width: 56px;
            max-height: 56px;
            padding: 4px 2px;
            margin: 0;
            border-radius: 10px;
            border: 1px solid rgba(249, 115, 22, 0.5);
            background: linear-gradient(145deg, rgba(252, 155, 10, 0.28) 0%, rgba(234, 88, 12, 0.14) 100%);
            color: #fdba74;
            font-size: 11px;
            font-weight: 900;
            letter-spacing: 0.02em;
            text-decoration: none;
            text-align: center;
            line-height: 1;
            white-space: nowrap;
            transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
            box-sizing: border-box;
            overflow: hidden;
        }
        .toolbar.pc-only .toolbar-basketball-entry:hover {
            border-color: rgba(251, 146, 60, 0.8);
            background: linear-gradient(145deg, rgba(252, 155, 10, 0.4) 0%, rgba(234, 88, 12, 0.22) 100%);
            color: #ffedd5;
            box-shadow: 0 4px 14px rgba(234, 88, 12, 0.28);
        }
        .toolbar.pc-only .toolbar-basketball-entry:active {
            transform: translateY(1px);
        }
        body.theme-light .toolbar.pc-only .toolbar-basketball-entry {
            color: #c2410c;
            background: linear-gradient(145deg, rgba(255, 247, 237, 0.98) 0%, rgba(254, 215, 170, 0.55) 100%);
            border-color: rgba(234, 88, 12, 0.48);
        }
        body.theme-light .toolbar.pc-only .toolbar-basketball-entry:hover {
            color: #9a3412;
            border-color: rgba(234, 88, 12, 0.62);
        }
        .toolbar.pc-only .toolbar-basketball-entry__icon {
            width: 26px;
            height: 26px;
            display: block;
            flex: 0 0 auto;
            object-fit: contain;
            image-rendering: -webkit-optimize-contrast;
        }
        .toolbar.pc-only .pc-hot-label {
            font-size: 11px;
            font-weight: 800;
            color: #94a3b8;
            letter-spacing: 0.08em;
            flex-shrink: 0;
            line-height: 1;
            align-self: center;
        }
        .toolbar.pc-only .pc-hot-stack {
            display: flex;
            flex-direction: column;
            gap: 8px;
            flex: 0 1 auto;
            width: max-content;
            max-width: 100%;
            min-width: 0;
            align-items: stretch;
        }
        .toolbar.pc-only .pc-hot-row {
            display: flex;
            flex-wrap: nowrap;
            align-items: center;
            justify-content: flex-start;
            column-gap: 10px;
            row-gap: 8px;
            width: 100%;
            box-sizing: border-box;
        }
        body.terminal-data-en .toolbar.pc-only .pc-hot-row {
            column-gap: 6px;
            row-gap: 6px;
        }
        .toolbar.pc-only .pc-hot-stack {
            max-width: 100%;
            overflow: hidden;
        }
        @media (max-width: 1180px) {
            body.terminal-data-en .toolbar.pc-only .pc-hot-cell .league-btn-raw {
                padding: 2px 5px !important;
                font-size: 9px !important;
            }
            body.terminal-data-en .toolbar.pc-only .pc-hot-row {
                column-gap: 5px;
                row-gap: 5px;
            }
            body.terminal-data-en .toolbar.pc-only .pc-hot-more-btn {
                padding: 2px 5px;
                font-size: 9px;
            }
            body.terminal-data-en .toolbar.pc-only .pc-hot-cell-date .date-picker-trigger {
                min-width: 58px;
                max-width: 70px;
                padding: 3px 5px;
                font-size: 9px;
            }
            body.terminal-data-en .toolbar.pc-only .toolbar-middle-col {
                gap: 8px;
                padding: 0 4px;
            }
            body.terminal-data-en .toolbar.pc-only .pc-hot-label {
                display: none;
            }
            body.terminal-data-en .toolbar.pc-only .toolbar-middle-col {
                gap: 6px;
            }
        }
        .toolbar.pc-only .pc-hot-cell {
            display: flex;
            flex: 0 0 auto;
            align-items: center;
            justify-content: flex-start;
        }
        .toolbar.pc-only .pc-hot-cell .league-btn-raw,
        .toolbar.pc-only .pc-hot-cell .pc-hot-more-btn {
            width: auto;
            max-width: none;
            min-width: 0;
            flex-shrink: 0;
        }
        .toolbar.pc-only .pc-hot-cell .league-btn-raw {
            padding: 4px 9px !important;
            border-radius: 10px !important;
            font-size: 11px !important;
            line-height: 1.35 !important;
            white-space: nowrap;
        }
        body.terminal-data-en .toolbar.pc-only .pc-hot-cell .league-btn-raw {
            padding: 3px 6px !important;
            font-size: 10px !important;
            letter-spacing: -0.02em;
        }
        body.terminal-data-en .toolbar.pc-only .pc-hot-more-btn {
            padding: 3px 7px;
            font-size: 10px;
            letter-spacing: -0.02em;
        }
        body.theme-light .toolbar.pc-only .pc-hot-cell-date .date-picker-trigger:not(.is-active),
        body.theme-light .toolbar.pc-only .toolbar-left-col .date-picker-trigger:not(.is-active) {
            color: #2563eb;
            background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
            border: 1px solid #93c5fd;
            font-weight: 600;
            box-shadow: 0 1px 3px rgba(37, 99, 235, 0.12);
        }
        body.terminal-data-en body.theme-light .toolbar.pc-only .pc-hot-cell-date .date-picker-trigger:not(.is-active),
        body.terminal-data-en body.theme-light .toolbar.pc-only .toolbar-left-col .date-picker-trigger:not(.is-active) {
            color: #1d4ed8;
            background: linear-gradient(180deg, #eff6ff 0%, #bfdbfe 100%);
            border: 1px solid #60a5fa;
            font-weight: 700;
            box-shadow: 0 1px 4px rgba(37, 99, 235, 0.18);
        }
        body:not(.theme-light) .toolbar.pc-only .pc-hot-cell-date .date-picker-trigger:not(.is-active),
        body:not(.theme-light) .toolbar.pc-only .toolbar-left-col .date-picker-trigger:not(.is-active) {
            color: #93c5fd;
            background: rgba(59, 130, 246, 0.12);
            border: 1px solid rgba(96, 165, 250, 0.45);
            font-weight: 600;
        }
        .toolbar.pc-only .pc-hot-more-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 4px 9px;
            background: var(--btn-glass-bg);
            border: var(--btn-glass-border);
            border-radius: 6px;
            cursor: pointer;
            transition: 0.2s;
            font-size: 11px;
            font-weight: 700;
            color: var(--btn-glass-text);
            white-space: nowrap;
            flex-shrink: 0;
            line-height: 1.35;
            font-family: inherit;
            appearance: none;
            -webkit-appearance: none;
        }
        .toolbar.pc-only .pc-hot-more-btn:hover {
            background: var(--btn-glass-hover-bg);
        }
        .toolbar.pc-only .pc-hot-cell-more {
            flex: 0 0 auto;
            max-width: none;
            position: relative;
            z-index: 30;
            overflow: visible;
        }
        .toolbar.pc-only .pc-hot-cell-more .league-search-container {
            margin-left: 0;
            width: auto;
            display: inline-block;
            vertical-align: middle;
        }
        .toolbar.pc-only .pc-hot-cell-more .league-search-input {
            width: 96px;
            min-width: 72px;
            max-width: 108px;
            padding: 4px 8px;
            font-size: 11px;
            border-radius: 6px;
            box-sizing: border-box;
        }

        @media (max-width: 640px) {
            body { padding: 10px 10px !important; }
            .master-container { width: 100% !important; overflow: visible !important; }
            
            .cyber-header {
                display: grid !important;
                grid-template-columns: auto minmax(0, 1fr);
                grid-template-rows: auto auto auto auto;
                column-gap: 10px !important;
                row-gap: 2px !important;
                padding: 8px 10px 8px !important;
                border-radius: 8px 8px 0 0 !important;
                width: 100% !important;
                min-height: 0 !important;
                height: auto !important;
                overflow: visible !important;
                border-bottom: none !important;
                align-items: stretch !important;
            }
            .logo-wrapper {
                grid-row: 1 / 4;
                grid-column: 1;
                flex: none !important;
                width: auto !important;
                max-width: none !important;
                justify-content: flex-start !important;
                align-self: center !important;
                justify-self: start !important;
                display: flex;
                align-items: center;
            }
            .brand-logo-link {
                justify-content: flex-start !important;
                align-items: center !important;
                max-width: 100%;
            }
            .brand-logo-img {
                height: auto !important;
                width: auto !important;
                max-height: 54px !important;
                max-width: 118px !important;
                object-fit: contain !important;
                object-position: left center !important;
            }
            .header-right-column {
                display: flex !important;
                grid-row: 1 / 4;
                grid-column: 2;
                width: 100% !important;
                max-width: none !important;
                min-width: 0 !important;
                justify-content: stretch !important;
                align-items: stretch !important;
            }
            .control-panel-integrated {
                display: flex !important;
                flex-direction: column !important;
                gap: 2px !important;
                width: 100% !important;
                max-width: none !important;
                background: transparent !important;
                border: none !important;
                box-shadow: none !important;
                padding: 0 !important;
            }
            .header-user-line--id {
                width: 100%;
                min-width: 0;
                min-height: 0 !important;
                padding-bottom: 2px !important;
                gap: 4px !important;
                line-height: 1.15 !important;
            }
            .header-user-line--id .header-user-id {
                flex: 1 1 auto !important;
                min-width: 0 !important;
                font-size: 9px !important;
                gap: 3px !important;
            }
            .header-user-line--id #userEmailDisplay {
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
                min-width: 0;
                flex: 1 1 auto;
            }
            .header-user-line--id .header-user-line--actions a {
                font-size: 9px !important;
            }
            body.is-guest-terminal .header-guest-line {
                flex-wrap: wrap;
                align-items: center;
                gap: 2px 5px !important;
                padding-bottom: 2px !important;
            }
            body.is-guest-terminal .header-guest-status {
                flex: 1 1 auto;
                font-size: 10px !important;
                padding: 0 !important;
            }
            body.is-guest-terminal .header-user-line--id .header-user-line--actions.header-guest-actions {
                flex: 1 1 auto;
                justify-content: flex-end;
                gap: 5px !important;
                max-width: 100%;
            }
            body.is-guest-terminal .header-user-line--id .header-user-line--actions .header-guest-login-btn,
            body.is-guest-terminal .header-user-line--id .header-user-line--actions .header-guest-register-btn {
                font-size: 9px !important;
                min-height: 22px !important;
                padding: 3px 8px !important;
            }
            body.is-guest-terminal .header-user-line--id .header-user-line--actions .header-guest-register-btn {
                padding-left: 9px !important;
                padding-right: 9px !important;
            }
            .header-user-line--id #emailToggleBtn {
                padding: 0 !important;
            }
            .header-user-line--id #emailToggleBtn svg {
                width: 11px !important;
                height: 11px !important;
            }
            .header-inbox-link--pc {
                display: none !important;
            }
            .header-inbox-btn--mo {
                display: none !important;
            }
            .header-inbox-link--toolbar {
                min-width: 22px !important;
                width: 22px !important;
                height: 22px !important;
                padding: 0 !important;
            }
            .header-inbox-link__icon {
                width: 13px !important;
                height: 13px !important;
            }
            .header-inbox-link--toolbar .header-inbox-dot {
                top: -3px !important;
                right: -5px !important;
                min-width: 14px !important;
                width: auto !important;
                height: 14px !important;
                padding: 0 3px !important;
                font-size: 9px !important;
            }
            .header-inbox-link__label {
                display: none !important;
            }
            .mo-header-tools {
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 4px;
                width: 100%;
                min-width: 0;
                min-height: 22px;
            }
            .mo-header-tools__lang {
                flex: 0 1 auto;
                min-width: 0;
                margin-left: auto;
                display: flex;
                justify-content: flex-end;
            }
            .mo-header-tools__actions {
                display: inline-flex;
                align-items: center;
                gap: 2px;
                flex: 0 0 auto;
                margin-right: 4px;
            }
            .mo-header-tools__lang .terminal-lang-switch {
                width: auto;
                justify-content: flex-end;
            }
            .mo-header-tools__lang .terminal-lang-switch__trigger {
                height: 22px;
                font-size: 9px;
                max-width: 100%;
            }
            .mo-header-tools__lang .terminal-lang-switch__current {
                max-width: 58px;
            }
            .mo-header-tools__actions .terminal-lang-switch__theme {
                width: 22px;
                height: 22px;
            }
            .mo-header-tools__actions .header-inbox-link--toolbar {
                order: 2;
            }
            .mo-header-tools__actions .terminal-lang-switch__theme {
                order: 1;
            }
            .mo-header-row {
                width: 100%;
                min-width: 0;
            }
            .mo-vip-row {
                width: 100%;
                min-width: 0;
                min-height: 20px;
                gap: 4px !important;
            }
            .mo-vip-row .status-dot {
                display: inline-block !important;
                width: 6px !important;
                height: 6px !important;
            }
            .mo-vip-row .header-vip-remain-label {
                font-size: 9px !important;
            }
            .mo-vip-row .header-vip-remain-days {
                font-size: 11px !important;
            }
            .mo-vip-row .header-vip-renew-link,
            .mo-vip-row .header-invite-copy {
                font-size: 9px !important;
            }
            .mo-vip-row .header-vip-row__end {
                gap: 6px !important;
            }
            .mo-vip-row .header-vip-row__start {
                gap: 2px !important;
            }
            .mo-lang-switch-btn {
                display: inline-flex !important;
                align-items: center !important;
                justify-content: center !important;
                min-width: 24px !important;
                min-height: 24px !important;
                padding: 2px 4px !important;
                border: none !important;
                border-radius: 6px !important;
                background: transparent !important;
                font-size: 11px !important;
                font-weight: 900 !important;
                line-height: 1 !important;
                cursor: pointer !important;
                color: #64748b !important;
                -webkit-tap-highlight-color: rgba(255, 255, 255, 0.12);
                touch-action: manipulation;
            }
            .mo-lang-switch-btn.is-active {
                background: rgba(255, 255, 255, 0.12) !important;
                color: #ffffff !important;
            }
            body.theme-light .mo-only-block .mo-lang-switch-btn {
                color: #64748b !important;
            }
            body.theme-light .mo-only-block .mo-lang-switch-btn.is-active {
                background: rgba(255, 255, 255, 0.12) !important;
                color: #ffffff !important;
            }
            .mo-lang-switch-sep {
                color: #334155;
                font-size: 10px;
                line-height: 1;
                user-select: none;
                pointer-events: none;
            }
            body.theme-light .mo-lang-switch-sep {
                color: #94a3b8;
            }
            .mo-theme-toggle-btn {
                display: inline-flex !important;
                align-items: center !important;
                justify-content: center !important;
                min-width: 0 !important;
                min-height: 24px !important;
                padding: 2px 4px !important;
                border: none !important;
                background: transparent !important;
                color: #94a3b8 !important;
                font-size: 11px !important;
                font-weight: 900 !important;
                line-height: 1 !important;
                cursor: pointer !important;
                touch-action: manipulation;
                white-space: nowrap !important;
            }
            body.theme-light .mo-only-block .mo-theme-toggle-btn {
                color: #94a3b8 !important;
            }
            .mo-hot-row-tail {
                display: inline-flex;
                flex-wrap: nowrap;
                align-items: center;
                gap: 4px;
                flex: 0 0 auto;
                flex-shrink: 0;
            }
            .mobile-hot-board .league-btn-raw,
            .mobile-hot-board .mo-league-more-btn,
            .mobile-hot-board .mo-date-btn {
                flex-shrink: 0;
            }
            body.terminal-data-en .mo-hot-row {
                gap: 3px;
            }
            body.terminal-data-en .mobile-hot-board .league-btn-raw {
                padding: 2px 5px !important;
                font-size: 9px !important;
            }
            body.terminal-data-en .mo-league-more-btn,
            body.terminal-data-en .mo-date-btn.date-picker-trigger:not(.is-active) {
                padding: 2px 5px !important;
                font-size: 9px !important;
            }
            body.terminal-data-en .mobile-basketball-entry {
                min-width: 44px;
                max-width: 48px;
                padding: 4px 2px;
            }
            body.terminal-data-en .mobile-basketball-entry__label {
                font-size: 8px;
            }
            .mobile-hot-board {
                overflow: visible;
            }
            .banner-carousel--mobile .banner-carousel-viewport {
                width: 100%;
                height: 100%;
                min-height: 0;
            }
            .banner-mobile-area,
            .banner-carousel.banner-carousel--mobile {
                grid-row: 4;
                grid-column: 1 / -1;
                display: flex !important;
                align-items: center;
                justify-content: center;
                align-self: start;
                width: calc(100% + 6px) !important;
                max-width: none !important;
                margin-left: -3px !important;
                margin-right: -3px !important;
                margin-top: 2px !important;
                margin-bottom: 12px !important;
                aspect-ratio: 5 / 1 !important;
                height: auto !important;
                min-height: 0 !important;
                border-radius: 5px !important;
                box-shadow: none !important;
            }
            .banner-carousel--mobile .banner-carousel-dots {
                bottom: 3px;
            }
            .banner-carousel--mobile .banner-carousel-dot {
                width: 5px;
                height: 5px;
                background: rgba(255, 255, 255, 0.35);
            }
            
            .mobile-toolbar { flex-direction: column; padding: 0; gap: 0; margin-top: 6px; margin-bottom: 0; border-radius: 0; border: var(--mo-toolbar-border); border-top: 1px solid var(--border-light); border-bottom: none; background: var(--mo-toolbar-bg); box-shadow: var(--mo-toolbar-shadow); backdrop-filter: var(--panel-blur); overflow: visible !important; position: relative; z-index: 12; }
            .ann-marquee-bar { min-height: 32px; }
            .ann-marquee-label { min-width: 48px; padding: 0 8px; }
            .ann-marquee-label-text { font-size: 9px; }
            .ann-marquee-item { font-size: 10px; font-weight: 500; letter-spacing: 0.01em; line-height: 1.25; }
            .ann-marquee-set { padding: 5px 0; }
            .last-update-bar { border-radius: 0 0 12px 12px !important; border-top: 1px solid var(--border-light) !important; margin-bottom: 20px !important; }
            
            body.theme-light .mobile-toolbar { border-left: 1px solid #CBD5E1 !important; border-right: 1px solid #CBD5E1 !important; border-top: 1px solid #E2E8F0 !important; border-bottom: none !important; }
            body.theme-light .ann-marquee-bar { border-left: 1px solid #CBD5E1 !important; border-right: 1px solid #CBD5E1 !important; border-top: 1px solid #E2E8F0 !important; border-bottom: none !important; box-shadow: none; }
            body.theme-light .last-update-bar { border-left: 1px solid #CBD5E1 !important; border-right: 1px solid #CBD5E1 !important; border-bottom: 1px solid #CBD5E1 !important; border-top: 1px solid #E2E8F0 !important; box-shadow: var(--shadow-panel); }

            #lastUpdate { flex-wrap: nowrap !important; justify-content: space-between !important; gap: 2px !important; overflow: visible !important; width: 100%; }
            #lastUpdate > div { gap: 2px !important; flex-wrap: nowrap !important; }
            .last-update-tools {
                display: flex;
                align-items: center;
                gap: 6px;
                flex-wrap: nowrap;
                justify-content: flex-end;
                flex-shrink: 0;
            }
            .last-update-tools .view-toggle {
                height: 26px;
                box-sizing: border-box;
                align-self: center;
            }
            .last-update-tools .view-toggle button {
                height: 22px;
                box-sizing: border-box;
                display: inline-flex;
                align-items: center;
            }
            .last-update-tools .list-tools-seg {
                height: 26px;
                align-items: center;
                align-self: center;
                box-sizing: border-box;
                padding: 1px;
                border-radius: 4px;
            }
            .last-update-tools .list-tools-seg-btn {
                height: 22px;
                display: inline-flex;
                align-items: center;
                box-sizing: border-box;
                padding: 2px 4px;
                font-size: 10px;
                font-weight: 800;
                letter-spacing: 0;
                line-height: 1;
                border-radius: 4px;
                min-width: 26px;
            }
            .last-update-tools .list-tools-seg-btn--alert {
                padding: 2px 4px;
                min-width: 26px;
            }
            .last-update-tools .coin-alert-icon {
                width: 12px;
                height: 12px;
            }
            .view-toggle { padding: 1px !important; gap: 0 !important; flex-shrink: 1; border-radius: 4px; overflow: visible !important; }
            .view-toggle button { padding: 2px 4px !important; font-size: 10px !important; white-space: nowrap; min-width: 26px; border-radius: 4px; letter-spacing: 0 !important; }

            .mobile-hide { display: none !important; }
            .pc-only { display: none !important; }
            .mobile-only { display: flex !important; }

            /* 列表 8 列栅格：见文件末尾「手机列表 v15」 */
            .hc-column-head > span,
            .hc-column-head > .hc-head-line,
            .hc-column-head > .hc-head-opening {
                min-width: 0;
                max-width: 100%;
            }
            .hc-column-head .hc-head-sort .hc-sort-btn {
                flex-direction: row;
                flex-wrap: nowrap;
                white-space: nowrap;
                writing-mode: horizontal-tb;
                padding: 1px 0;
                gap: 1px;
                font-size: 9px;
                line-height: 1.15;
                max-width: 100%;
                min-width: 0;
            }
            .hc-column-head .hc-head-sort .hc-sort-btn[data-sort-key="betpct"],
            .hc-column-head .hc-head-sort .hc-sort-btn[data-sort-key="moneypct"],
            .hc-column-head .hc-head-sort .hc-sort-btn[data-sort-key="diff"] {
                justify-content: flex-start;
                text-align: left;
            }
            .hc-column-head .hc-head-sort .hc-sort-btn[data-sort-key="bets"],
            .hc-column-head .hc-head-sort .hc-sort-btn[data-sort-key="money"] {
                justify-content: center;
                text-align: center;
            }
            .hc-column-head .hc-head-sort .hc-sort-btn#hcSortBets,
            body.show-handicap-only .hc-column-head > span.hc-head-sort:nth-child(7) .hc-sort-btn,
            body.show-total-only .hc-column-head > span.hc-head-sort:nth-child(7) .hc-sort-btn {
                flex-wrap: nowrap !important;
                white-space: nowrap !important;
                gap: 0;
                padding-left: 1px;
                padding-right: 1px;
            }
            .hc-column-head .hc-head-sort .hc-sort-btn#hcSortBets .hc-sort-label,
            body.show-handicap-only .hc-column-head > span.hc-head-sort:nth-child(7) .hc-sort-label,
            body.show-total-only .hc-column-head > span.hc-head-sort:nth-child(7) .hc-sort-label,
            .hc-column-head .hc-head-sort .hc-sort-btn#hcSortBets .hc-sort-icon,
            body.show-handicap-only .hc-column-head > span.hc-head-sort:nth-child(7) .hc-sort-icon,
            body.show-total-only .hc-column-head > span.hc-head-sort:nth-child(7) .hc-sort-icon {
                flex-shrink: 0;
            }
            .hc-column-head .hc-head-sort .hc-sort-label {
                white-space: nowrap;
                writing-mode: horizontal-tb;
            }
            .hc-column-head .hc-head-sort .hc-sort-icon {
                font-size: 8px;
            }
            .hc-column-head .hc-head-line,
            .hc-column-head .hc-line-col-toggle,
            .hc-column-head .hc-head-opening,
            .hc-column-head .hc-opening-col-toggle {
                font-size: 9px;
                white-space: nowrap;
                text-align: left;
                flex-wrap: wrap;
                justify-content: flex-start;
                gap: 1px;
                min-width: 0;
                max-width: 100%;
                padding: 1px 0;
            }
            .hc-column-head .hc-head-line .hc-head-lbl,
            .hc-column-head .hc-head-opening .hc-head-lbl {
                text-align: left;
            }
            .hc-column-head .hc-head-sort.hc-head-sort--money {
                justify-content: center;
                overflow: visible;
            }
            .hc-column-head .hc-head-sort.hc-head-sort--money .hc-sort-btn,
            .hc-column-head .hc-head-sort.hc-head-sort--money .hc-sort-btn--money {
                flex-wrap: nowrap !important;
                white-space: nowrap;
            }
            .hc-column-head .hc-head-sort .hc-sort-btn.hc-pct-col-toggle {
                flex-wrap: nowrap !important;
                white-space: nowrap;
            }
            .hc-column-head .hc-pct-col-toggle .hc-col-toggle-hit {
                flex-wrap: nowrap;
                flex-shrink: 1;
                min-width: 0;
            }
            .hc-column-head .hc-pct-col-toggle .hc-sort-icon,
            .hc-column-head .hc-pct-col-toggle .hc-col-toggle-icon {
                flex-shrink: 0;
            }
            .hc-column-head .hc-head-sort.hc-head-sort--money .hc-sort-btn--money {
                padding: 1px 2px;
                gap: 1px;
                font-size: 10px;
                max-width: none;
                overflow: visible;
            }
            .hc-column-head .hc-head-sort.hc-head-sort--money .hc-sort-hint {
                display: none;
            }
            .hc-column-head .hc-head-sort.hc-head-sort--money .hc-money-mode-toggle {
                min-width: 1.15em;
                min-height: 1.15em;
                height: auto;
                font: inherit;
                font-weight: 900;
                padding: 0 3px;
                flex-shrink: 0;
            }
            body.show-handicap-only .match-data-wrap #matchList,
            body.show-total-only .match-data-wrap #matchList {
                gap: 8px;
                padding: 8px 0 12px;
                overflow-x: hidden;
            }
            body.show-handicap-only,
            body.show-total-only { --hc-inset-x: 6px; --hc-list-gutter: 0px; }
            body.show-handicap-only .match-data-wrap .match-item,
            body.show-total-only .match-data-wrap .match-item {
                overflow: visible;
            }
            body.show-handicap-only .hc-match-head-row > .hc-match-sum-bets,
            body.show-total-only .hc-match-head-row > .hc-match-sum-bets,
            body.show-handicap-only .hc-match-head-row > .hc-match-sum-money,
            body.show-total-only .hc-match-head-row > .hc-match-sum-money,
            body.show-handicap-only .hc-flow-row > .hc-col-num:last-child,
            body.show-total-only .hc-flow-row > .hc-col-num:last-child {
                justify-self: center;
                text-align: center;
                overflow: visible;
                white-space: nowrap;
            }
            body.show-handicap-only .hc-match-sum-money,
            body.show-total-only .hc-match-sum-money {
                display: inline-flex;
                flex-wrap: nowrap;
                align-items: baseline;
                justify-content: center;
                gap: 0;
                white-space: nowrap;
                width: 100%;
            }
            body.show-handicap-only .hc-match-sum-bets,
            body.show-total-only .hc-match-sum-bets {
                display: inline-flex;
                flex-wrap: nowrap;
                align-items: baseline;
                justify-content: center;
                gap: 0;
                white-space: nowrap;
                width: 100%;
            }
            body.show-handicap-only .hc-match-sum-bets .hc-val-count,
            body.show-total-only .hc-match-sum-bets .hc-val-count,
            body.show-handicap-only .hc-match-sum-money .hc-money-mode-prefix,
            body.show-total-only .hc-match-sum-money .hc-money-mode-prefix,
            body.show-handicap-only .hc-match-sum-money .hc-val-money,
            body.show-total-only .hc-match-sum-money .hc-val-money,
            body.show-handicap-only .hc-flow-row > .hc-col-num:last-child .hc-val-money,
            body.show-total-only .hc-flow-row > .hc-col-num:last-child .hc-val-money {
                white-space: nowrap;
            }
            .hc-flow-table > .hc-match-head-row { padding: 6px 0 5px; }
            .hc-column-head { padding: 6px var(--hc-inset-x) 5px; font-size: 11px; }
            body.show-handicap-only .hc-column-head > span:nth-child(-n+2),
            body.show-total-only .hc-column-head > span:nth-child(-n+2) {
                text-align: left;
            }
            body.show-handicap-only .hc-column-head > span:first-child,
            body.show-total-only .hc-column-head > span:first-child {
                text-align: center;
            }
            body.show-handicap-only .hc-column-head > span.hc-head-sort:nth-child(6),
            body.show-total-only .hc-column-head > span.hc-head-sort:nth-child(6) {
                justify-content: flex-start;
            }
            body.show-handicap-only .hc-column-head > span.hc-head-sort:nth-child(7),
            body.show-total-only .hc-column-head > span.hc-head-sort:nth-child(7) {
                justify-content: center;
            }
            body.show-handicap-only .hc-column-head > span.hc-head-sort:nth-child(6) .hc-sort-btn,
            body.show-total-only .hc-column-head > span.hc-head-sort:nth-child(6) .hc-sort-btn,
            body.show-handicap-only .hc-column-head > span.hc-head-sort:nth-child(7) .hc-sort-btn,
            body.show-total-only .hc-column-head > span.hc-head-sort:nth-child(7) .hc-sort-btn {
                padding-left: 0;
                padding-right: 0;
            }
            body.show-handicap-only .hc-column-head > span.hc-head-sort:nth-child(6) .hc-sort-btn,
            body.show-total-only .hc-column-head > span.hc-head-sort:nth-child(6) .hc-sort-btn {
                justify-content: flex-start;
                text-align: left;
            }
            body.show-handicap-only .hc-column-head > span.hc-head-sort:nth-child(7) .hc-sort-btn,
            body.show-total-only .hc-column-head > span.hc-head-sort:nth-child(7) .hc-sort-btn {
                justify-content: center;
                text-align: center;
            }
            body.show-handicap-only .hc-column-head > span.hc-head-sort.hc-head-sort--money .hc-sort-btn,
            body.show-total-only .hc-column-head > span.hc-head-sort.hc-head-sort--money .hc-sort-btn {
                justify-content: center;
            }
            body.show-handicap-only .hc-flow-row > .hc-col-num:last-child,
            body.show-total-only .hc-flow-row > .hc-col-num:last-child {
                text-align: center;
            }
            body.show-handicap-only .hc-flow-row > .hc-col-line,
            body.show-total-only .hc-flow-row > .hc-col-line {
                justify-self: start;
                align-items: flex-start;
                justify-content: flex-start;
                text-align: left;
                width: auto;
                min-width: 0;
                max-width: 100%;
                flex-shrink: 1;
                padding: 0;
                margin: 0;
                box-sizing: border-box;
                overflow: hidden;
            }
            body.show-handicap-only .hc-flow-row > .hc-col-team,
            body.show-total-only .hc-flow-row > .hc-col-team {
                width: auto;
                min-width: 0;
                max-width: 4em;
                overflow: visible;
                text-overflow: clip;
                white-space: normal;
                word-break: break-all;
                justify-self: start;
                padding: 0;
                line-height: 1.2;
            }
            body.show-handicap-only .hc-flow-row > .hc-col-team .hc-team-l1,
            body.show-total-only .hc-flow-row > .hc-col-team .hc-team-l1,
            body.show-handicap-only .hc-flow-row > .hc-col-team .hc-team-l2,
            body.show-total-only .hc-flow-row > .hc-col-team .hc-team-l2 {
                display: block;
                white-space: normal;
                word-break: break-all;
            }
            body.show-handicap-only .hc-column-head > span.hc-head-sort:nth-child(4),
            body.show-total-only .hc-column-head > span.hc-head-sort:nth-child(4),
            body.show-handicap-only .hc-column-head > span.hc-head-sort:nth-child(5),
            body.show-total-only .hc-column-head > span.hc-head-sort:nth-child(5) {
                justify-content: flex-start;
                text-align: left;
            }
            body.show-handicap-only .hc-column-head > span.hc-head-sort:nth-child(4) .hc-sort-btn,
            body.show-total-only .hc-column-head > span.hc-head-sort:nth-child(4) .hc-sort-btn,
            body.show-handicap-only .hc-column-head > span.hc-head-sort:nth-child(5) .hc-sort-btn,
            body.show-total-only .hc-column-head > span.hc-head-sort:nth-child(5) .hc-sort-btn {
                justify-content: flex-start;
                text-align: left;
                padding-left: 0;
                padding-right: 0;
            }
            body.show-handicap-only .hc-flow-row > .hc-col-betpct,
            body.show-total-only .hc-flow-row > .hc-col-betpct,
            body.show-handicap-only .hc-flow-row > .hc-col-moneypct,
            body.show-total-only .hc-flow-row > .hc-col-moneypct {
                justify-self: start;
                text-align: left;
                padding-left: 0;
                padding-right: 0;
            }
            body.show-handicap-only .hc-flow-row > .hc-col-moneypct,
            body.show-total-only .hc-flow-row > .hc-col-moneypct {
                margin-right: 0;
                margin-left: -1px;
            }
            body.show-handicap-only .hc-flow-row > .hc-col-betpct,
            body.show-total-only .hc-flow-row > .hc-col-betpct,
            body.show-handicap-only .hc-flow-row > .hc-col-moneypct,
            body.show-total-only .hc-flow-row > .hc-col-moneypct {
                min-width: 0;
                overflow: hidden;
            }
            body.show-handicap-only .hc-flow-row > .hc-col-moneypct.has-wc-inflow-dot,
            body.show-total-only .hc-flow-row > .hc-col-moneypct.has-wc-inflow-dot {
                overflow: visible !important;
            }
            body.show-handicap-only .hc-flow-row .hc-col-betpct .hc-pct-val,
            body.show-total-only .hc-flow-row .hc-col-betpct .hc-pct-val,
            body.show-handicap-only .hc-flow-row .hc-col-moneypct .hc-pct-val,
            body.show-total-only .hc-flow-row .hc-col-moneypct .hc-pct-val {
                text-align: left;
            }
            body.show-handicap-only .hc-flow-row .hc-col-betpct .hc-mini-bar,
            body.show-total-only .hc-flow-row .hc-col-betpct .hc-mini-bar,
            body.show-handicap-only .hc-flow-row .hc-col-moneypct .hc-mini-bar,
            body.show-total-only .hc-flow-row .hc-col-moneypct .hc-mini-bar {
                margin-left: 0;
                background: transparent !important;
            }
            body.show-handicap-only .hc-flow-row > .hc-col-pct,
            body.show-total-only .hc-flow-row > .hc-col-pct,
            body.show-handicap-only .hc-flow-row > .hc-col-diff,
            body.show-total-only .hc-flow-row > .hc-col-diff {
                justify-self: stretch;
                min-width: 0;
                max-width: 100%;
                box-sizing: border-box;
            }
            body.show-handicap-only .hc-flow-row > .hc-col-diff,
            body.show-total-only .hc-flow-row > .hc-col-diff {
                text-align: left;
                overflow: visible;
            }
            body.show-handicap-only .hc-flow-row > .hc-col-diff .hc-diff-val,
            body.show-total-only .hc-flow-row > .hc-col-diff .hc-diff-val {
                display: block;
                overflow: visible;
                text-overflow: clip;
                white-space: nowrap;
                font-size: 10px;
            }
            body.show-handicap-only .hc-flow-row > .hc-col-num:nth-child(7),
            body.show-total-only .hc-flow-row > .hc-col-num:nth-child(7) {
                justify-self: center;
                text-align: center;
                min-width: 0;
                overflow: hidden;
            }
            body.terminal-data-en body.show-handicap-only .hc-column-head .hc-head-lbl-full,
            body.terminal-data-en body.show-total-only .hc-column-head .hc-head-lbl-full {
                display: none !important;
            }
            body.terminal-data-en body.show-handicap-only .hc-column-head .hc-head-lbl-mo,
            body.terminal-data-en body.show-total-only .hc-column-head .hc-head-lbl-mo {
                display: inline !important;
            }
            .hc-match-meta {
                flex-wrap: wrap;
                align-items: center;
                overflow: visible;
                gap: 6px 10px;
                row-gap: 6px;
            }
            .hc-match-meta .league-tag {
                margin-right: 0;
                flex-shrink: 0;
                padding: 2px 5px;
                font-size: 10px;
            }
            .hc-match-meta .hc-match-time {
                min-width: 0;
                max-width: 100%;
                word-spacing: 0.45em;
            }
            .hc-match-admin {
                flex-shrink: 0;
                margin-left: 0;
                max-width: 100%;
            }
            .hc-match-admin-score {
                gap: 6px;
            }
            .hc-score-editor-input {
                width: 36px;
                min-height: 30px;
                font-size: 12px;
                padding: 4px 6px;
                box-sizing: border-box;
            }
            .hc-score-editor-save {
                min-height: 30px;
                min-width: 46px;
                font-size: 11px;
                padding: 4px 10px;
                touch-action: manipulation;
                -webkit-tap-highlight-color: transparent;
            }
            .hc-match-delete-btn {
                font-size: 10px;
                min-height: 30px;
                padding: 4px 8px;
                touch-action: manipulation;
            }
            .hc-match-delete-btn--sep { margin-left: 8px; padding-left: 8px; }
            #leagueLinkModalOverlay.hc-league-link-overlay,
            .hc-league-link-overlay {
                padding: 16px;
                align-items: center;
                justify-content: center;
            }
            .hc-league-link-modal {
                padding: 16px 14px 14px;
            }
            .hc-league-link-btn {
                min-height: 0;
                padding: 2px 4px;
                touch-action: manipulation;
            }
            .hc-league-link-btn svg {
                width: 12px;
                height: 12px;
            }
            body.is-score-editor .match-data-wrap .match-item {
                overflow: visible;
            }
            body.is-score-editor .match-data-wrap .hc-flow-table > .hc-match-head-row {
                overflow: visible;
            }
            body.is-score-editor .hc-match-meta .hc-match-admin {
                flex: 1 1 100%;
                width: 100%;
                justify-content: flex-start;
                padding-top: 2px;
            }
            .hc-match-finished {
                flex-shrink: 0;
                font-size: 10px;
                letter-spacing: 0;
            }
            .hc-match-time {
                flex-shrink: 0;
                font-size: 10px;
                gap: 4px;
                word-spacing: 0.45em;
            }
            .hc-match-time svg { display: none; }
            .hc-match-score-cluster {
                display: inline-flex;
                flex: 0 1 auto;
                width: auto;
                max-width: none;
                min-width: 0;
                gap: 8px;
                flex-wrap: nowrap;
                white-space: nowrap;
                margin-right: 0;
                padding-right: 0;
                border-right: none;
            }
            .hc-match-score {
                flex-shrink: 0;
                font-size: 11px;
                letter-spacing: 0;
            }
            .hc-match-score-extra {
                display: inline-flex;
                flex-shrink: 0;
                align-items: baseline;
                gap: 3px;
                margin-left: 0;
                white-space: nowrap;
            }
            .hc-match-score-total,
            .hc-match-settle {
                font-size: 11px;
                letter-spacing: 0;
            }
            .hc-head-lbl-full { display: none; }
            .hc-head-lbl-mo { display: inline; }
            .hc-amt-full { display: none; }
            .hc-amt-short { display: inline; }
            body.show-handicap-only .hc-flow-row .hc-col-line,
            body.show-total-only .hc-flow-row .hc-col-line {
                align-items: flex-start;
                line-height: 1.15;
            }
            body.show-handicap-only .hc-flow-row .hc-line-stack,
            body.show-total-only .hc-flow-row .hc-line-stack {
                align-items: flex-start;
            }
            body.show-handicap-only .hc-flow-row .hc-col-opening .hc-line-stack,
            body.show-handicap-only .hc-flow-row .hc-col-live .hc-line-stack,
            body.show-total-only .hc-flow-row .hc-col-opening .hc-line-stack,
            body.show-total-only .hc-flow-row .hc-col-live .hc-line-stack {
                display: grid;
                justify-items: start;
                align-items: unset;
            }
            body.show-handicap-only .hc-flow-row .hc-col-opening .hc-line-stack .hc-line-handicap,
            body.show-handicap-only .hc-flow-row .hc-col-live .hc-line-stack .hc-line-handicap,
            body.show-total-only .hc-flow-row .hc-col-opening .hc-line-stack .hc-line-handicap,
            body.show-total-only .hc-flow-row .hc-col-live .hc-line-stack .hc-line-handicap {
                justify-self: start !important;
                align-self: flex-start !important;
                text-align: left !important;
                width: auto !important;
            }
            body.show-handicap-only .hc-flow-row .hc-line-ou-core,
            body.show-total-only .hc-flow-row .hc-line-ou-core {
                align-self: flex-start;
                justify-content: flex-start;
            }
            body.show-handicap-only .hc-flow-row .hc-line-odds:not(.hc-line-odds--stack),
            body.show-total-only .hc-flow-row .hc-line-odds:not(.hc-line-odds--stack) {
                display: block;
                align-self: flex-start;
                text-align: left;
                font-size: 9px;
            }
            body.show-handicap-only .hc-flow-row .hc-line-odds:not(.hc-line-odds--stack)::before,
            body.show-total-only .hc-flow-row .hc-line-odds:not(.hc-line-odds--stack)::before,
            body.show-handicap-only .hc-flow-row .hc-line-odds:not(.hc-line-odds--stack)::after,
            body.show-total-only .hc-flow-row .hc-line-odds:not(.hc-line-odds--stack)::after {
                content: none;
            }
            body.show-handicap-only .hc-flow-row .hc-line-handicap,
            body.show-total-only .hc-flow-row .hc-line-handicap {
                text-align: left;
                white-space: nowrap;
            }
            body.show-handicap-only .hc-flow-row .hc-col-opening .hc-line-stack .hc-line-handicap,
            body.show-handicap-only .hc-flow-row .hc-col-live .hc-line-stack .hc-line-handicap,
            body.show-total-only .hc-flow-row .hc-col-opening .hc-line-stack .hc-line-handicap,
            body.show-total-only .hc-flow-row .hc-col-live .hc-line-stack .hc-line-handicap {
                font-size: 11px;
            }
            body.show-handicap-only .hc-flow-row .hc-col-opening .hc-line-stack .hc-line-odds--stack,
            body.show-handicap-only .hc-flow-row .hc-col-live .hc-line-stack .hc-line-odds--stack,
            body.show-total-only .hc-flow-row .hc-col-opening .hc-line-stack .hc-line-odds--stack,
            body.show-total-only .hc-flow-row .hc-col-live .hc-line-stack .hc-line-odds--stack {
                font-size: 10px;
            }
            body.show-handicap-only .hc-flow-row .hc-line-odds,
            body.show-total-only .hc-flow-row .hc-line-odds {
                white-space: nowrap;
            }
            .hc-col-team { font-size: 11px; min-width: 0; padding: 0; }
            .hc-mini-bar,
            .hc-mini-bar .hc-bar-fill {
                border-radius: 0 !important;
            }
            .hc-team-l2 { font-size: 10px; }
            .hc-pct-val { font-size: 11px; }
            .hc-match-sum-bets .hc-val-count,
            .hc-match-sum-money .hc-val-money,
            .hc-match-sum-money .hc-money-mode-prefix {
                font-size: 11px;
                font-weight: 800;
            }
            .hc-flow-row .hc-col-num .hc-val-count,
            .hc-flow-row .hc-col-num .hc-val-money {
                font-size: 9px;
                font-weight: 700;
                letter-spacing: -0.03em;
            }
            .hc-flow-row .hc-col-num { font-size: 9px; }
            
            .mobile-status-btn-group { display: flex; width: 100%; gap: 8px; justify-content: center; padding: 0 4px 10px; overflow: visible; position: relative; z-index: 2; box-sizing: border-box; }
            .mobile-status-btn-group button.filter-btn {
                flex: 1 1 0 !important;
                max-width: none !important;
                height: 32px !important;
                min-width: 0 !important;
                padding: 0 12px !important;
                font-size: 11px !important;
                font-weight: 800 !important;
                border-radius: 999px !important;
                letter-spacing: 0.02em;
            }
            .mobile-status-btn-group button.filter-btn::after {
                border-radius: 999px 999px 0 0 !important;
            }
            .mobile-status-btn-group .filter-btn.active::before { z-index: 20; bottom: -9px; width: 24px; height: 2px; border-radius: 999px; }
            .mobile-hot-board {
                display: grid;
                grid-template-columns: minmax(0, 1fr) auto;
                grid-template-rows: auto auto;
                column-gap: 0;
                row-gap: 6px;
                align-items: stretch;
                width: 100%;
                border-bottom: 1px solid var(--border-color);
                padding-bottom: 6px;
                margin-bottom: 5px;
                box-sizing: border-box;
            }
            .mo-hot-row--1 {
                grid-column: 1;
                grid-row: 1;
            }
            .mo-hot-row--2 {
                grid-column: 1;
                grid-row: 2;
            }
            .mobile-basketball-entry {
                grid-column: 2;
                grid-row: 1 / span 2;
            }
            .mo-hot-row {
                display: flex;
                flex-wrap: nowrap;
                align-items: center;
                gap: 4px;
                width: 100%;
                min-width: 0;
                overflow-x: auto;
                overflow-y: visible;
                scrollbar-width: none;
                -ms-overflow-style: none;
                -webkit-overflow-scrolling: touch;
            }
            .mo-hot-row::-webkit-scrollbar {
                display: none;
            }
            .mobile-hot-board .league-btn-raw {
                padding: 2px 6px !important;
                font-size: 10px !important;
                border-radius: 9px !important;
                line-height: 1.2 !important;
                flex: 0 0 auto;
            }
            .mobile-basketball-entry {
                flex: 0 0 auto;
                min-width: 48px;
                max-width: 54px;
                display: inline-flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                gap: 2px;
                margin: 0;
                padding: 4px 3px;
                border-left: 1px solid var(--border-color);
                border-radius: 0;
                background: linear-gradient(145deg, rgba(249, 115, 22, 0.18) 0%, rgba(234, 88, 12, 0.08) 100%);
                border-top: none;
                border-right: none;
                border-bottom: none;
                color: #fdba74;
                font-size: 10px;
                font-weight: 800;
                line-height: 1.1;
                text-decoration: none;
                text-align: center;
                white-space: nowrap;
                box-sizing: border-box;
                align-self: stretch;
            }
            body.theme-light .mobile-basketball-entry {
                color: #c2410c;
                background: linear-gradient(145deg, rgba(255, 247, 237, 0.98) 0%, rgba(254, 215, 170, 0.4) 100%);
            }
            .mobile-basketball-entry__icon {
                width: 18px;
                height: 18px;
                display: block;
                flex: 0 0 auto;
                object-fit: contain;
            }
            .mobile-basketball-entry__label {
                font-size: 10px;
                font-weight: 800;
                letter-spacing: 0.02em;
            }
            body.terminal-data-en .mobile-basketball-entry__label {
                font-size: 9px;
            }
            .mobile-toolbar #filterFormMobile {
                padding: 6px 10px !important;
                gap: 5px !important;
                overflow: visible !important;
            }
            .mo-toolbar-actions {
                display: inline-flex;
                flex-wrap: nowrap;
                align-items: center;
                gap: 4px;
                margin-top: 0;
                vertical-align: middle;
                flex-shrink: 0;
            }
            .mo-league-more-btn {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                padding: 2px 6px;
                background: var(--btn-glass-bg);
                border: var(--btn-glass-border);
                border-radius: 4px;
                cursor: pointer;
                transition: 0.2s;
                font-size: 10px;
                font-weight: 700;
                color: var(--btn-glass-text);
                white-space: nowrap;
                flex: 0 0 auto;
                line-height: 1.3;
                font-family: inherit;
                appearance: none;
                -webkit-appearance: none;
            }
            .mo-date-btn {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                padding: 2px 6px;
                background: var(--mo-target-bg);
                color: var(--mo-target-color);
                border: var(--mo-toolbar-border);
                border-radius: 4px;
                cursor: pointer;
                transition: 0.2s;
                font-size: 10px;
                font-weight: 700;
                white-space: nowrap;
                flex: 0 0 auto;
                line-height: 1.3;
                position: relative;
            }
            .mo-date-btn.date-picker-trigger:not(.is-active) {
                color: #2563eb;
                background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
                border: 1px solid #93c5fd;
                font-weight: 700;
            }
            body.terminal-data-en .mo-date-btn.date-picker-trigger:not(.is-active) {
                color: #1d4ed8;
                background: linear-gradient(180deg, #eff6ff 0%, #bfdbfe 100%);
                border: 1px solid #60a5fa;
            }
            .mo-league-search-wrap {
                flex: 0 0 auto;
                min-width: 0;
                max-width: 108px;
                margin-left: 0;
                position: relative;
                z-index: 40;
                overflow: visible;
            }
            .mo-league-search-wrap .league-search-input {
                width: 100% !important;
                box-sizing: border-box !important;
                padding: 1px 22px 1px 6px !important;
                font-size: 10px !important;
                font-weight: 700 !important;
                border-radius: 4px !important;
                line-height: 1.3;
            }
        }
        
        body:not(.theme-light) .league-btn-raw[value="世界杯2026"] {
            border: none !important;
            background: transparent !important;
            color: #f59e0b !important; 
            font-weight: 900 !important; 
            -webkit-text-stroke: 0 !important; 
            text-shadow: 0 2px 4px rgba(245, 158, 11, 0.3) !important; 
        }
        
        .mo-only-block { display: none; }
        @media (max-width: 640px) {
            .pc-only-block { display: none !important; }
            .mo-only-block,
            .mo-header-row.mo-only-block {
                display: block !important;
            }
        }

        .hc-col-num .hc-val-money {
            font-size: 11px;
        }
        @media (max-width: 640px) {
            .hc-flow-row .hc-col-num .hc-val-money { font-size: 9px; letter-spacing: -0.03em; }
            .hc-match-sum-money .hc-val-money { font-size: 11px; letter-spacing: 0; }
        }
        .hc-flow-row-footer {
            padding: 8px 0 4px;
            border-bottom: none;
        }
        .hc-flow-row-footer .match-trend-actions-start {
            grid-column: 1 / -1;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
            min-width: 0;
        }
        .match-trend-actions {
            width: 100%;
            padding-top: 12px;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }
        .match-trend-actions-start {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }
        .match-trend-action-group {
            display: inline-flex;
            align-items: stretch;
            border: 1px solid var(--border-light);
            border-radius: 12px;
            overflow: hidden;
            background: transparent;
            transition: border-color 0.2s, box-shadow 0.2s;
            flex-shrink: 0;
        }
        .match-trend-action-group:hover {
            border-color: color-mix(in srgb, #2563eb 32%, var(--border-light));
            box-shadow: 0 1px 6px color-mix(in srgb, #2563eb 10%, transparent);
        }
        .trend-btn-handicap,
        .trend-btn-total,
        .trend-btn-export {
            background: transparent;
            border: none;
            color: var(--text-sub);
            border-radius: 0;
            padding: 2px 10px;
            font-size: 10px;
            font-weight: 700;
            cursor: pointer;
            transition: color 0.2s, background 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            letter-spacing: 0.5px;
            white-space: nowrap;
        }
        .trend-btn-export {
            border-left: 1px solid var(--border-light);
            color: #1e3a8a;
            background: color-mix(in srgb, #1e3a8a 5%, transparent);
            padding-left: 9px;
            padding-right: 11px;
        }
        body:not(.theme-light) .trend-btn-export {
            color: #f1f5f9;
            background: color-mix(in srgb, #64748b 22%, transparent);
            border-left-color: rgba(148, 163, 184, 0.35);
        }
        body.theme-dark .trend-btn-export {
            color: #f1f5f9;
            background: color-mix(in srgb, #64748b 22%, transparent);
            border-left-color: rgba(148, 163, 184, 0.35);
        }
        .match-trend-action-group .match-divergence-btn {
            border-left: 1px solid var(--border-light);
            border-radius: 0;
            align-self: stretch;
            padding: 2px 9px;
            max-width: 72px;
            min-width: 58px;
        }
        .match-share-group {
            display: inline-flex;
            align-items: stretch;
            flex-shrink: 0;
            margin-left: 2px;
            border: 1px solid var(--border-light);
            border-radius: 12px;
            overflow: hidden;
            background: transparent;
            transition: border-color 0.2s, box-shadow 0.2s;
        }
        .match-share-group:hover {
            border-color: color-mix(in srgb, #2563eb 32%, var(--border-light));
            box-shadow: 0 1px 6px color-mix(in srgb, #2563eb 10%, transparent);
        }
        .match-share-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            flex-shrink: 0;
            padding: 2px 10px;
            border: none;
            border-radius: 0;
            background: transparent;
            color: var(--text-sub);
            font-size: 10px;
            font-weight: 700;
            line-height: 1.2;
            letter-spacing: 0.5px;
            white-space: nowrap;
            cursor: pointer;
            transition: color 0.2s, background 0.2s;
        }
        .match-share-btn svg {
            flex-shrink: 0;
        }
        .match-share-btn:hover {
            color: var(--text-main);
            background: color-mix(in srgb, var(--text-sub) 7%, transparent);
        }
        /* 手机：完场信息挤时只留分享图标，避免「分享」换行占一整行 */
        @media (max-width: 640px) {
            .match-share-btn {
                padding: 3px 7px;
                gap: 0;
            }
            .match-share-btn .match-share-btn-label {
                display: none;
            }
        }
        .trend-btn-handicap:hover,
        .trend-btn-total:hover {
            color: var(--text-main);
            background: color-mix(in srgb, var(--text-sub) 7%, transparent);
        }
        .trend-btn-export:hover:not(:disabled) {
            color: #1d4ed8;
            background: color-mix(in srgb, #2563eb 14%, transparent);
        }
        body:not(.theme-light) .trend-btn-export:hover:not(:disabled) {
            color: #ffffff;
            background: color-mix(in srgb, #94a3b8 30%, transparent);
        }
        body.theme-dark .trend-btn-export:hover:not(:disabled) {
            color: #ffffff;
            background: color-mix(in srgb, #94a3b8 30%, transparent);
        }
        .trend-btn-export:disabled {
            opacity: 0.55;
            cursor: wait;
        }
        @media (max-width: 640px) {
            .match-trend-actions {
                gap: 8px 10px;
            }
            .match-trend-actions-start {
                gap: 10px;
            }
            .match-trend-action-group {
                flex: 0 0 auto;
                max-width: none;
            }
            .trend-btn-handicap,
            .trend-btn-total,
            .trend-btn-export {
                flex: 0 0 auto;
                min-width: 0;
                justify-content: center;
                padding-top: 4px;
                padding-bottom: 4px;
            }
            .trend-btn-export {
                padding-left: 8px;
                padding-right: 8px;
            }
        }
        .chart-toggle-btn { background: transparent; border: 1px solid var(--border-color); color: var(--text-sub); padding: 5px 16px; border-radius: 20px; font-size: 13px; font-weight: 700; cursor: pointer; transition: 0.2s; white-space: nowrap; }
        .chart-toggle-btn.active { background: #3b82f6; color: #ffffff; border-color: #3b82f6; box-shadow: 0 0 12px rgba(59, 130, 246, 0.6); font-weight: 900; }
        body.theme-light .chart-toggle-btn.active { background: #2563eb; color: #ffffff; border-color: #2563eb; box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4); }

        #scrollNavFab {
            position: fixed;
            top: 66.66%;
            bottom: auto;
            left: calc((100vw + min(900px, 100vw - 20px)) / 2 + 10px);
            right: auto;
            z-index: 998;
            width: 44px;
            height: 44px;
            padding: 0;
            border: none;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.94);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            color: #475569;
            box-shadow:
                0 4px 16px rgba(15, 23, 42, 0.12),
                0 0 0 1px rgba(15, 23, 42, 0.07);
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transform: translateY(-50%) scale(0.88);
            transition:
                opacity 0.26s ease,
                visibility 0.26s ease,
                transform 0.26s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.15s ease,
                color 0.15s ease;
            -webkit-tap-highlight-color: transparent;
        }
        body:not(.theme-light) #scrollNavFab {
            background: rgba(30, 41, 59, 0.92);
            color: #e2e8f0;
            box-shadow:
                0 6px 20px rgba(0, 0, 0, 0.35),
                0 0 0 1px rgba(148, 163, 184, 0.2);
        }
        #scrollNavFab.is-visible {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
            transform: translateY(-50%) scale(1);
        }
        #scrollNavFab:hover,
        #scrollNavFab:focus-visible {
            background: rgba(248, 250, 252, 0.98);
            color: #1e293b;
        }
        body:not(.theme-light) #scrollNavFab:hover,
        body:not(.theme-light) #scrollNavFab:focus-visible {
            background: rgba(51, 65, 85, 0.96);
            color: #f8fafc;
        }
        #scrollNavFab:active {
            transform: translateY(-50%) scale(0.92);
        }
        #scrollNavFab svg {
            width: 20px;
            height: 20px;
            stroke-width: 2.25;
            transition: opacity 0.18s ease, transform 0.18s ease;
        }
        #scrollNavFab[data-mode="top"] .scroll-nav-fab__icon--bottom,
        #scrollNavFab[data-mode="bottom"] .scroll-nav-fab__icon--top {
            display: none;
        }
        @media (max-width: 640px) {
            #scrollNavFab {
                top: 77.77%;
                left: auto;
                right: 14px;
                width: 42px;
                height: 42px;
            }
        }

        .vip-pro-overlay {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 9999;
            justify-content: center;
            align-items: center;
            padding: 24px;
            background: var(--modal-overlay);
            backdrop-filter: var(--modal-blur);
        }
        .vip-pro-card {
            position: relative;
            width: min(92vw, 380px);
            padding: 36px 28px 24px;
            text-align: center;
            background: var(--modal-box);
            backdrop-filter: var(--modal-box-blur);
            border-radius: 20px;
            border: 1px solid rgba(245, 158, 11, 0.28);
            box-shadow: var(--modal-shadow), 0 0 0 1px rgba(245, 158, 11, 0.08), 0 18px 40px rgba(37, 99, 235, 0.18);
            overflow: hidden;
        }
        .vip-pro-card.is-offer::after {
            content: '';
            position: absolute;
            top: -80px;
            left: 50%;
            width: 220px;
            height: 220px;
            margin-left: -110px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(251, 191, 36, 0.22) 0%, transparent 70%);
            pointer-events: none;
        }
        .vip-pro-headline {
            margin: 0 0 14px;
            font-size: clamp(20px, 5vw, 26px);
            font-weight: 900;
            line-height: 1.25;
            letter-spacing: -0.02em;
            color: var(--modal-title);
        }
        .vip-pro-sub {
            margin: 0 0 18px;
            font-size: 13px;
            line-height: 1.5;
            font-weight: 500;
            color: var(--modal-desc);
        }
        .vip-pro-deal {
            margin: 0 0 14px;
        }
        .vip-pro-deal-tag {
            display: inline-flex;
            align-items: center;
            padding: 4px 10px;
            border-radius: 999px;
            background: linear-gradient(135deg, #fde68a, #f59e0b);
            color: #7c2d12;
            font-size: 11px;
            font-weight: 900;
            letter-spacing: 0.06em;
            box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
        }
        .vip-pro-price {
            display: flex;
            align-items: baseline;
            justify-content: center;
            gap: 4px;
            margin-top: 6px;
            line-height: 1;
        }
        .vip-pro-price-num {
            font-size: 56px;
            font-weight: 900;
            letter-spacing: -0.04em;
            color: #ea580c;
            text-shadow: 0 6px 18px rgba(234, 88, 12, 0.22);
        }
        body:not(.theme-light) .vip-pro-price-num {
            color: #fb923c;
        }
        .vip-pro-price-unit {
            font-size: 16px;
            font-weight: 800;
            color: #c2410c;
            white-space: nowrap;
            letter-spacing: 0.02em;
        }
        body:not(.theme-light) .vip-pro-price-unit {
            color: #fdba74;
        }
        .vip-pro-perks {
            list-style: none;
            margin: 0 0 18px;
            padding: 10px 12px;
            text-align: left;
            background: rgba(37, 99, 235, 0.06);
            border: 1px solid rgba(59, 130, 246, 0.14);
            border-radius: 12px;
        }
        body:not(.theme-light) .vip-pro-perks {
            background: rgba(59, 130, 246, 0.12);
            border-color: rgba(96, 165, 250, 0.18);
        }
        .vip-pro-perks li {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 5px 2px;
            color: var(--modal-title);
            font-size: 13px;
            font-weight: 700;
        }
        .vip-pro-perks li::before {
            content: '';
            width: 16px;
            height: 16px;
            flex-shrink: 0;
            border-radius: 50%;
            background: #22c55e url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / 10px 10px no-repeat;
        }
        .vip-pro-cta {
            width: 100%;
            padding: 16px 20px;
            border: none;
            border-radius: 999px;
            background: linear-gradient(135deg, #f59e0b 0%, #ea580c 55%, #c2410c 100%);
            color: #fff;
            font-size: 16px;
            font-weight: 900;
            letter-spacing: 0.02em;
            cursor: pointer;
            box-shadow: 0 10px 26px rgba(234, 88, 12, 0.42);
            animation: vipProCtaPulse 1.8s ease-in-out infinite;
            transition: transform 0.2s, box-shadow 0.2s;
        }
        .vip-pro-cta:hover {
            transform: translateY(-1px) scale(1.02);
            box-shadow: 0 14px 32px rgba(234, 88, 12, 0.5);
        }
        @keyframes vipProCtaPulse {
            0%, 100% { box-shadow: 0 10px 26px rgba(234, 88, 12, 0.42); }
            50% { box-shadow: 0 12px 34px rgba(245, 158, 11, 0.62); }
        }
        .vip-pro-hint {
            margin: 10px 0 0;
            font-size: 12px;
            font-weight: 700;
            color: #ea580c;
        }
        body:not(.theme-light) .vip-pro-hint {
            color: #fdba74;
        }
        .vip-pro-dismiss {
            margin-top: 8px;
            padding: 8px;
            border: none;
            background: transparent;
            color: var(--modal-cancel-text);
            font-size: 12px;
            font-weight: 600;
            letter-spacing: 0.02em;
            cursor: pointer;
            transition: color 0.2s;
        }
        .vip-pro-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, transparent, var(--gold-pro), #3b82f6, var(--gold-pro), transparent);
        }
        .vip-pro-close {
            position: absolute;
            top: 14px;
            right: 14px;
            width: 32px;
            height: 32px;
            border: none;
            border-radius: 50%;
            background: transparent;
            color: var(--modal-cancel-text);
            font-size: 22px;
            line-height: 1;
            cursor: pointer;
            transition: color 0.2s, background 0.2s;
        }
        .vip-pro-close:hover {
            color: var(--modal-title);
            background: rgba(148, 163, 184, 0.12);
        }
        .vip-pro-brand {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-bottom: 12px;
        }
        .vip-pro-brand-name {
            font-size: 15px;
            font-weight: 800;
            letter-spacing: 0.04em;
            color: #3b82f6;
        }
        body.theme-light .vip-pro-brand-name {
            color: #2563eb;
        }
        .vip-pro-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 36px;
            padding: 3px 8px;
            border-radius: 6px;
            background: linear-gradient(135deg, #fde68a, var(--gold-pro));
            color: #1e293b;
            font-size: 10px;
            font-weight: 900;
            letter-spacing: 0.12em;
            line-height: 1;
            box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
        }
        .vip-pro-dismiss:hover {
            color: var(--modal-title);
        }
        

        #inboxModalOverlay.ah-fb-overlay {
            display: none !important;
            position: fixed;
            inset: 0;
            z-index: 10050;
            align-items: center;
            justify-content: center;
            padding: 16px;
            background: var(--modal-overlay, rgba(2, 6, 23, 0.72));
            backdrop-filter: var(--modal-blur, blur(8px));
            -webkit-backdrop-filter: var(--modal-blur, blur(8px));
        }
        #inboxModalOverlay.ah-fb-overlay.is-open {
            display: flex !important;
        }
        body.inbox-modal-open { overflow: hidden; }

        /* 手机列表 v16 — 表头浮动 + 底部回弹 */
        @media (max-width: 768px) {
            html,
            body {
                overscroll-behavior-y: none;
            }

            body {
                background-attachment: scroll !important;
            }

            body.show-handicap-only,
            body.show-total-only {
                --hc-inset-x: 6px;
                --hc-list-gutter: 0px;
                --hc-card-border-x: 1px;
                /* 手机：赛事/初盘/即盘略宽；两比略收；差值保 +19% 底线；笔数/资金适度收 */
                --mo-hc-grid-cols: minmax(0, 1.22fr) minmax(0, 0.74fr) minmax(0, 0.74fr) minmax(0, 0.64fr) minmax(0, 0.64fr) minmax(36px, 0.52fr) minmax(28px, 0.42fr) minmax(34px, 0.50fr);
                --mo-hc-team-sticky-bg: var(--panel-bg);
            }

            /* 资金：仅 w 缩写（勿对 .hc-val-money 统一 display:block，会盖掉 hidden） */
            body.show-handicap-only .match-data-wrap .hc-amt-full,
            body.show-total-only .match-data-wrap .hc-amt-full {
                display: none !important;
            }

            body.show-handicap-only .match-data-wrap .hc-amt-short,
            body.show-total-only .match-data-wrap .hc-amt-short {
                display: inline !important;
            }

            body.theme-light.show-handicap-only,
            body.theme-light.show-total-only {
                --mo-hc-team-sticky-bg: #ffffff;
            }

            body.show-handicap-only .match-data-wrap,
            body.show-total-only .match-data-wrap {
                overflow-x: hidden !important;
                overflow-y: visible;
                width: 100%;
                max-width: 100%;
                overscroll-behavior-x: none;
                touch-action: pan-y;
            }

            body.show-handicap-only .match-data-wrap #hcColumnHead:not(.is-fixed),
            body.show-total-only .match-data-wrap #hcColumnHead:not(.is-fixed) {
                width: 100% !important;
                min-width: 0 !important;
                max-width: 100% !important;
                box-sizing: border-box;
            }

            body.show-handicap-only .match-data-wrap #hcColumnHead.is-fixed,
            body.show-total-only .match-data-wrap #hcColumnHead.is-fixed {
                min-width: 0 !important;
                max-width: none !important;
                box-sizing: border-box !important;
            }

            body.show-handicap-only .match-data-wrap .hc-column-head.is-fixed,
            body.show-total-only .match-data-wrap .hc-column-head.is-fixed {
                position: fixed !important;
                top: 0 !important;
                z-index: 110 !important;
                box-sizing: border-box !important;
            }

            body.show-handicap-only .match-data-wrap .hc-column-head.is-stuck,
            body.show-total-only .match-data-wrap .hc-column-head.is-stuck {
                box-sizing: border-box !important;
            }

            body.show-handicap-only .match-data-wrap #matchList,
            body.show-total-only .match-data-wrap #matchList {
                overflow-x: visible !important;
                padding: 4px 0 8px;
                gap: 5px;
            }

            body.show-handicap-only .match-data-wrap .match-item,
            body.show-total-only .match-data-wrap .match-item {
                width: 100%;
                min-width: 0;
                max-width: 100%;
                box-sizing: border-box;
                border-radius: 8px;
                overflow: hidden;
                box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
            }

            /* 数据行已有 .hc-flow-row 左右 inset，勿再叠 match-body 横 padding（否则比表头多缩进一截） */
            body.show-handicap-only .match-data-wrap .match-body,
            body.show-total-only .match-data-wrap .match-body {
                padding-left: 0 !important;
                padding-right: 0 !important;
            }

            body.theme-light.show-handicap-only .match-data-wrap .match-item,
            body.theme-light.show-total-only .match-data-wrap .match-item {
                box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 0 0 1px rgba(226, 232, 240, 0.85);
            }

            body.show-handicap-only .match-data-wrap .hc-flow-table,
            body.show-total-only .match-data-wrap .hc-flow-table {
                width: 100%;
                min-width: 0;
                max-width: 100%;
                box-sizing: border-box;
            }

            body.show-handicap-only .hc-flow-row-footer,
            body.show-total-only .hc-flow-row-footer,
            body.show-handicap-only .hc-match-head-row,
            body.show-handicap-only .hc-flow-row,
            body.show-total-only .hc-match-head-row,
            body.show-total-only .hc-flow-row,
            body.show-handicap-only .match-trend-actions,
            body.show-total-only .match-trend-actions,
            body.show-handicap-only .match-data-wrap .hc-column-head,
            body.show-total-only .match-data-wrap .hc-column-head {
                grid-template-columns: var(--mo-hc-grid-cols) !important;
                column-gap: 3px !important;
            }

            body.show-handicap-only .match-data-wrap .hc-column-head,
            body.show-total-only .match-data-wrap .hc-column-head {
                max-width: 100% !important;
                width: 100% !important;
                min-width: 0 !important;
                box-sizing: border-box !important;
            }

            body.show-handicap-only .match-data-wrap .hc-column-head > span,
            body.show-handicap-only .match-data-wrap .hc-column-head > .hc-head-opening,
            body.show-handicap-only .match-data-wrap .hc-column-head > .hc-head-line,
            body.show-handicap-only .match-data-wrap .hc-column-head > .hc-head-sort,
            body.show-total-only .match-data-wrap .hc-column-head > span,
            body.show-total-only .match-data-wrap .hc-column-head > .hc-head-opening,
            body.show-total-only .match-data-wrap .hc-column-head > .hc-head-line,
            body.show-total-only .match-data-wrap .hc-column-head > .hc-head-sort {
                min-width: 0 !important;
                max-width: 100% !important;
                overflow: hidden !important;
                box-sizing: border-box !important;
            }

            body.show-handicap-only .match-data-wrap .hc-column-head .hc-head-lbl-full,
            body.show-total-only .match-data-wrap .hc-column-head .hc-head-lbl-full {
                display: none !important;
            }

            body.show-handicap-only .match-data-wrap .hc-column-head .hc-head-lbl-mo,
            body.show-total-only .match-data-wrap .hc-column-head .hc-head-lbl-mo {
                display: inline !important;
            }

            body.show-handicap-only .match-data-wrap .hc-column-head .hc-col-toggle-icon,
            body.show-handicap-only .match-data-wrap .hc-column-head .hc-col-toggle-expand,
            body.show-handicap-only .match-data-wrap .hc-column-head .hc-opening-col-toggle-icon,
            body.show-handicap-only .match-data-wrap .hc-column-head .hc-opening-col-toggle-expand,
            body.show-handicap-only .match-data-wrap .hc-column-head .hc-line-col-toggle-icon,
            body.show-handicap-only .match-data-wrap .hc-column-head .hc-line-col-toggle-expand,
            body.show-total-only .match-data-wrap .hc-column-head .hc-col-toggle-icon,
            body.show-total-only .match-data-wrap .hc-column-head .hc-col-toggle-expand,
            body.show-total-only .match-data-wrap .hc-column-head .hc-opening-col-toggle-icon,
            body.show-total-only .match-data-wrap .hc-column-head .hc-opening-col-toggle-expand,
            body.show-total-only .match-data-wrap .hc-column-head .hc-line-col-toggle-icon,
            body.show-total-only .match-data-wrap .hc-column-head .hc-line-col-toggle-expand {
                display: none !important;
            }

            body.show-handicap-only .match-data-wrap .hc-column-head .hc-head-sort .hc-sort-btn,
            body.show-total-only .match-data-wrap .hc-column-head .hc-head-sort .hc-sort-btn {
                width: 100% !important;
                max-width: 100% !important;
                min-width: 0 !important;
                box-sizing: border-box !important;
                padding: 0 !important;
                gap: 0 !important;
                font-size: 9px !important;
                line-height: 1.1 !important;
                flex-wrap: nowrap !important;
                white-space: nowrap !important;
            }

            body.show-handicap-only .match-data-wrap .hc-column-head .hc-sort-hint,
            body.show-total-only .match-data-wrap .hc-column-head .hc-sort-hint {
                display: none !important;
            }

            body.show-handicap-only .match-data-wrap .hc-column-head .hc-head-opening,
            body.show-handicap-only .match-data-wrap .hc-column-head .hc-head-line,
            body.show-handicap-only .match-data-wrap .hc-column-head .hc-opening-col-toggle,
            body.show-handicap-only .match-data-wrap .hc-column-head .hc-line-col-toggle,
            body.show-total-only .match-data-wrap .hc-column-head .hc-head-opening,
            body.show-total-only .match-data-wrap .hc-column-head .hc-head-line,
            body.show-total-only .match-data-wrap .hc-column-head .hc-opening-col-toggle,
            body.show-total-only .match-data-wrap .hc-column-head .hc-line-col-toggle {
                flex-wrap: nowrap !important;
                white-space: nowrap !important;
            }

            body.show-handicap-only .match-data-wrap .hc-column-head .hc-head-sort .hc-sort-icon,
            body.show-total-only .match-data-wrap .hc-column-head .hc-head-sort .hc-sort-icon {
                font-size: 7px !important;
                flex-shrink: 0 !important;
            }

            body.show-handicap-only .match-data-wrap .hc-column-head .hc-head-sort.hc-head-sort--money .hc-money-mode-toggle,
            body.show-total-only .match-data-wrap .hc-column-head .hc-head-sort.hc-head-sort--money .hc-money-mode-toggle {
                min-width: 0 !important;
                padding: 0 1px !important;
                font-size: 8px !important;
            }

            body.show-handicap-only .hc-column-head,
            body.show-total-only .hc-column-head {
                padding: 4px var(--hc-inset-x) 3px !important;
                font-size: 9px !important;
                line-height: 1.15 !important;
            }

            body.show-handicap-only .match-data-wrap .hc-flow-row,
            body.show-total-only .match-data-wrap .hc-flow-row {
                padding: 2px var(--hc-inset-x) !important;
                box-sizing: border-box;
                min-height: 0;
            }

            body.show-handicap-only .match-data-wrap .hc-flow-row-home,
            body.show-total-only .match-data-wrap .hc-flow-row-home {
                padding-top: 3px !important;
            }

            body.show-handicap-only .match-data-wrap .hc-flow-table > .hc-match-head-row,
            body.show-total-only .match-data-wrap .hc-flow-table > .hc-match-head-row {
                padding: 4px var(--hc-inset-x) 3px !important;
                margin-bottom: 1px !important;
            }

            body.show-handicap-only .hc-flow-table > .hc-match-head-row,
            body.show-total-only .hc-flow-table > .hc-match-head-row {
                display: grid !important;
                grid-template-columns: var(--mo-hc-grid-cols) !important;
                column-gap: 3px !important;
                row-gap: 0 !important;
                align-items: end !important;
            }

            body.show-handicap-only .hc-match-head-row .hc-match-meta,
            body.show-total-only .hc-match-head-row .hc-match-meta {
                grid-column: 1 / 7 !important;
                grid-row: 1 !important;
                gap: 6px 10px !important;
                row-gap: 6px !important;
                font-size: 10px !important;
                justify-self: start !important;
                text-align: left !important;
            }
            body.show-handicap-only .hc-match-head-row .hc-match-meta .hc-match-time,
            body.show-total-only .hc-match-head-row .hc-match-meta .hc-match-time {
                word-spacing: 0.45em !important;
            }
            body.show-handicap-only .hc-match-head-row .hc-match-meta .hc-match-pin-btn,
            body.show-total-only .hc-match-head-row .hc-match-meta .hc-match-pin-btn {
                margin-left: 2px !important;
            }

            body.show-handicap-only .hc-match-head-row .hc-match-sum-bets,
            body.show-total-only .hc-match-head-row .hc-match-sum-bets {
                grid-column: 7 !important;
                grid-row: 1 !important;
                justify-self: center !important;
                align-self: end !important;
                text-align: center !important;
                display: flex !important;
                justify-content: center !important;
                width: 100% !important;
            }

            body.show-handicap-only .hc-match-head-row .hc-match-sum-money,
            body.show-total-only .hc-match-head-row .hc-match-sum-money {
                grid-column: 8 !important;
                grid-row: 1 !important;
                justify-self: center !important;
                align-self: end !important;
                text-align: center !important;
                display: flex !important;
                justify-content: center !important;
                width: 100% !important;
            }

            body.show-handicap-only .hc-flow-row > .hc-col-team,
            body.show-total-only .hc-flow-row > .hc-col-team {
                width: auto !important;
                min-width: 0 !important;
                max-width: 100% !important;
                word-break: keep-all !important;
                overflow: visible !important;
                white-space: normal !important;
                line-height: 1.18 !important;
                font-size: 11px !important;
                position: static !important;
                left: auto !important;
                z-index: auto !important;
                background: transparent !important;
                box-shadow: none !important;
                padding-right: 0 !important;
                justify-self: start !important;
                text-align: left !important;
            }

            body.show-handicap-only .match-data-wrap .hc-column-head .hc-head-sort:nth-child(-n+5) .hc-sort-btn,
            body.show-handicap-only .match-data-wrap .hc-column-head .hc-head-line,
            body.show-handicap-only .match-data-wrap .hc-column-head .hc-head-opening,
            body.show-total-only .match-data-wrap .hc-column-head .hc-head-sort:nth-child(-n+5) .hc-sort-btn,
            body.show-total-only .match-data-wrap .hc-column-head .hc-head-line,
            body.show-total-only .match-data-wrap .hc-column-head .hc-head-opening {
                justify-content: flex-start !important;
            }

            body.show-handicap-only .hc-flow-row > .hc-col-opening .hc-line-stack,
            body.show-handicap-only .hc-flow-row > .hc-col-live .hc-line-stack,
            body.show-total-only .hc-flow-row > .hc-col-opening .hc-line-stack,
            body.show-total-only .hc-flow-row > .hc-col-live .hc-line-stack {
                gap: 1px !important;
                line-height: 1.1 !important;
            }

            body.show-handicap-only .hc-flow-row .hc-line-stack .hc-line-handicap,
            body.show-total-only .hc-flow-row .hc-line-stack .hc-line-handicap {
                font-size: 10px !important;
            }

            body.show-handicap-only .hc-flow-row .hc-line-stack .hc-line-odds--stack,
            body.show-total-only .hc-flow-row .hc-line-stack .hc-line-odds--stack {
                min-width: 2em !important;
                padding: 0 3px !important;
                font-size: 9px !important;
                line-height: 1.2 !important;
            }

            body.show-handicap-only .hc-flow-row .hc-col-pct,
            body.show-total-only .hc-flow-row .hc-col-pct {
                gap: 1px !important;
            }

            body.show-handicap-only .hc-flow-row .hc-mini-bar,
            body.show-total-only .hc-flow-row .hc-mini-bar {
                height: 4px !important;
                margin-top: 0 !important;
            }

            body.show-handicap-only .hc-pct-val,
            body.show-total-only .hc-pct-val {
                font-size: 10px !important;
                line-height: 1.1 !important;
            }

            body.show-handicap-only .hc-flow-row .hc-col-num .hc-val-count,
            body.show-total-only .hc-flow-row .hc-col-num .hc-val-count,
            body.show-handicap-only .hc-flow-row .hc-col-num .hc-val-money,
            body.show-total-only .hc-flow-row .hc-col-num .hc-val-money {
                font-size: 9px !important;
                letter-spacing: -0.02em !important;
            }

            body.show-handicap-only .hc-match-sum-bets .hc-val-count,
            body.show-handicap-only .hc-match-sum-money .hc-val-money,
            body.show-total-only .hc-match-sum-bets .hc-val-count,
            body.show-total-only .hc-match-sum-money .hc-val-money {
                font-size: 10px !important;
            }

            body.show-handicap-only .hc-flow-row > .hc-col-team .hc-team-l1,
            body.show-total-only .hc-flow-row > .hc-col-team .hc-team-l1,
            body.show-handicap-only .hc-flow-row > .hc-col-team .hc-team-l2,
            body.show-total-only .hc-flow-row > .hc-col-team .hc-team-l2 {
                word-break: keep-all !important;
                white-space: normal !important;
            }

            body.show-handicap-only .hc-flow-row > .hc-col-line,
            body.show-total-only .hc-flow-row > .hc-col-line,
            body.show-handicap-only .hc-flow-row > .hc-col-opening,
            body.show-total-only .hc-flow-row > .hc-col-opening,
            body.show-handicap-only .hc-flow-row > .hc-col-live,
            body.show-total-only .hc-flow-row > .hc-col-live {
                width: auto !important;
                min-width: 0 !important;
                max-width: none !important;
                overflow: visible !important;
            }

            body.show-handicap-only .hc-flow-row > .hc-col-betpct,
            body.show-total-only .hc-flow-row > .hc-col-betpct,
            body.show-handicap-only .hc-flow-row > .hc-col-moneypct,
            body.show-total-only .hc-flow-row > .hc-col-moneypct {
                overflow: visible !important;
            }

            body.show-handicap-only .hc-flow-row > .hc-col-moneypct,
            body.show-total-only .hc-flow-row > .hc-col-moneypct {
                margin-left: 0 !important;
            }

            body.show-handicap-only .hc-column-head .hc-head-line,
            body.show-handicap-only .hc-column-head .hc-head-opening,
            body.show-total-only .hc-column-head .hc-head-line,
            body.show-total-only .hc-column-head .hc-head-opening {
                font-size: 9px !important;
            }

            /* 手机列对齐：表头「赛事」居中；初始/即时/人%/资% 靠左；差值靠左；人数/资金居中 */
            body.show-handicap-only .match-data-wrap .hc-column-head > span:first-child,
            body.show-total-only .match-data-wrap .hc-column-head > span:first-child {
                justify-self: center !important;
                text-align: center !important;
            }

            body.show-handicap-only .match-data-wrap .hc-column-head > .hc-head-opening,
            body.show-handicap-only .match-data-wrap .hc-column-head > .hc-head-line,
            body.show-total-only .match-data-wrap .hc-column-head > .hc-head-opening,
            body.show-total-only .match-data-wrap .hc-column-head > .hc-head-line {
                justify-self: start !important;
                justify-content: flex-start !important;
                align-self: center !important;
                text-align: left !important;
                width: auto !important;
                max-width: 100% !important;
                min-height: 0 !important;
                padding: 0 !important;
                box-sizing: border-box !important;
            }

            body.show-handicap-only .match-data-wrap .hc-column-head > .hc-head-opening .hc-head-lbl,
            body.show-handicap-only .match-data-wrap .hc-column-head > .hc-head-line .hc-head-lbl,
            body.show-total-only .match-data-wrap .hc-column-head > .hc-head-opening .hc-head-lbl,
            body.show-total-only .match-data-wrap .hc-column-head > .hc-head-line .hc-head-lbl {
                text-align: left !important;
            }

            body.show-handicap-only .match-data-wrap .hc-column-head > .hc-head-sort:nth-child(4),
            body.show-handicap-only .match-data-wrap .hc-column-head > .hc-head-sort:nth-child(5),
            body.show-total-only .match-data-wrap .hc-column-head > .hc-head-sort:nth-child(4),
            body.show-total-only .match-data-wrap .hc-column-head > .hc-head-sort:nth-child(5) {
                justify-self: start !important;
                justify-content: flex-start !important;
                text-align: left !important;
            }

            body.show-handicap-only .match-data-wrap .hc-column-head > .hc-head-sort:nth-child(4) .hc-sort-btn,
            body.show-handicap-only .match-data-wrap .hc-column-head > .hc-head-sort:nth-child(5) .hc-sort-btn,
            body.show-total-only .match-data-wrap .hc-column-head > .hc-head-sort:nth-child(4) .hc-sort-btn,
            body.show-total-only .match-data-wrap .hc-column-head > .hc-head-sort:nth-child(5) .hc-sort-btn {
                justify-content: flex-start !important;
                text-align: left !important;
            }

            body.show-handicap-only .match-data-wrap .hc-column-head > .hc-head-sort:nth-child(6),
            body.show-total-only .match-data-wrap .hc-column-head > .hc-head-sort:nth-child(6) {
                display: flex !important;
                align-items: center !important;
                justify-content: flex-start !important;
                justify-self: start !important;
                text-align: left !important;
                overflow: visible !important;
            }

            body.show-handicap-only .match-data-wrap .hc-column-head > .hc-head-sort:nth-child(7),
            body.show-handicap-only .match-data-wrap .hc-column-head > .hc-head-sort:nth-child(8),
            body.show-total-only .match-data-wrap .hc-column-head > .hc-head-sort:nth-child(7),
            body.show-total-only .match-data-wrap .hc-column-head > .hc-head-sort:nth-child(8) {
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                justify-self: center !important;
                text-align: center !important;
                overflow: visible !important;
            }

            body.show-handicap-only .match-data-wrap .hc-column-head > .hc-head-sort:nth-child(6) .hc-sort-btn,
            body.show-total-only .match-data-wrap .hc-column-head > .hc-head-sort:nth-child(6) .hc-sort-btn {
                justify-content: flex-start !important;
                text-align: left !important;
                width: 100% !important;
            }

            body.show-handicap-only .match-data-wrap .hc-column-head > .hc-head-sort:nth-child(7) .hc-sort-btn,
            body.show-total-only .match-data-wrap .hc-column-head > .hc-head-sort:nth-child(7) .hc-sort-btn {
                position: relative !important;
                justify-content: center !important;
                text-align: center !important;
                width: 100% !important;
                padding-right: 8px !important;
                box-sizing: border-box !important;
            }

            body.show-handicap-only .match-data-wrap .hc-column-head > .hc-head-sort:nth-child(7) .hc-sort-label,
            body.show-total-only .match-data-wrap .hc-column-head > .hc-head-sort:nth-child(7) .hc-sort-label {
                flex: 1 1 auto !important;
                text-align: center !important;
                justify-content: center !important;
            }

            body.show-handicap-only .match-data-wrap .hc-column-head > .hc-head-sort:nth-child(7) .hc-sort-icon,
            body.show-total-only .match-data-wrap .hc-column-head > .hc-head-sort:nth-child(7) .hc-sort-icon {
                position: absolute !important;
                right: 0 !important;
                top: 50% !important;
                transform: translateY(-50%) !important;
                margin: 0 !important;
            }

            body.show-handicap-only .match-data-wrap .hc-column-head > .hc-head-sort.hc-head-sort--money .hc-sort-btn,
            body.show-total-only .match-data-wrap .hc-column-head > .hc-head-sort.hc-head-sort--money .hc-sort-btn {
                justify-content: center !important;
                text-align: center !important;
                width: 100% !important;
            }

            body.show-handicap-only .hc-flow-row > .hc-col-team,
            body.show-total-only .hc-flow-row > .hc-col-team,
            body.show-handicap-only .hc-flow-row > .hc-col-opening,
            body.show-total-only .hc-flow-row > .hc-col-opening,
            body.show-handicap-only .hc-flow-row > .hc-col-live,
            body.show-total-only .hc-flow-row > .hc-col-live,
            body.show-handicap-only .hc-flow-row > .hc-col-betpct,
            body.show-total-only .hc-flow-row > .hc-col-betpct,
            body.show-handicap-only .hc-flow-row > .hc-col-moneypct,
            body.show-total-only .hc-flow-row > .hc-col-moneypct {
                justify-self: start !important;
                text-align: left !important;
            }

            body.show-handicap-only .hc-flow-row > .hc-col-line.hc-col-opening,
            body.show-total-only .hc-flow-row > .hc-col-line.hc-col-opening,
            body.show-handicap-only .hc-flow-row > .hc-col-line.hc-col-live,
            body.show-total-only .hc-flow-row > .hc-col-line.hc-col-live {
                display: flex !important;
                flex-direction: column !important;
                justify-content: flex-start !important;
                align-items: flex-start !important;
                align-self: start !important;
                text-align: left !important;
                width: 100% !important;
                max-width: none !important;
                min-width: 0 !important;
                box-sizing: border-box !important;
            }

            body.show-handicap-only .hc-col-opening .hc-line-stack .hc-line-handicap,
            body.show-handicap-only .hc-col-live .hc-line-stack .hc-line-handicap,
            body.show-total-only .hc-col-opening .hc-line-stack .hc-line-handicap,
            body.show-total-only .hc-col-live .hc-line-stack .hc-line-handicap {
                text-align: left !important;
                justify-self: start !important;
                width: auto !important;
            }

            body.show-handicap-only .hc-flow-row > .hc-col-opening .hc-line-stack,
            body.show-handicap-only .hc-flow-row > .hc-col-live .hc-line-stack,
            body.show-total-only .hc-flow-row > .hc-col-opening .hc-line-stack,
            body.show-total-only .hc-flow-row > .hc-col-live .hc-line-stack {
                display: grid !important;
                width: auto !important;
                max-width: 100% !important;
                justify-items: start !important;
                align-items: flex-start !important;
            }

            body.show-handicap-only .hc-flow-row > .hc-col-opening .hc-line-stack .hc-line-handicap,
            body.show-handicap-only .hc-flow-row > .hc-col-live .hc-line-stack .hc-line-handicap,
            body.show-handicap-only .hc-flow-row > .hc-col-opening .hc-line-stack .hc-line-odds,
            body.show-handicap-only .hc-flow-row > .hc-col-live .hc-line-stack .hc-line-odds,
            body.show-handicap-only .hc-flow-row > .hc-col-opening .hc-line-stack .hc-line-odds--stack,
            body.show-handicap-only .hc-flow-row > .hc-col-live .hc-line-stack .hc-line-odds--stack,
            body.show-total-only .hc-flow-row > .hc-col-opening .hc-line-stack .hc-line-handicap,
            body.show-total-only .hc-flow-row > .hc-col-live .hc-line-stack .hc-line-handicap,
            body.show-total-only .hc-flow-row > .hc-col-opening .hc-line-stack .hc-line-odds,
            body.show-total-only .hc-flow-row > .hc-col-live .hc-line-stack .hc-line-odds,
            body.show-total-only .hc-flow-row > .hc-col-opening .hc-line-stack .hc-line-odds--stack,
            body.show-total-only .hc-flow-row > .hc-col-live .hc-line-stack .hc-line-odds--stack,
            body.show-handicap-only .hc-flow-row > .hc-col-opening .hc-line-handicap,
            body.show-handicap-only .hc-flow-row > .hc-col-live .hc-line-handicap,
            body.show-handicap-only .hc-flow-row > .hc-col-opening .hc-line-odds,
            body.show-handicap-only .hc-flow-row > .hc-col-live .hc-line-odds,
            body.show-total-only .hc-flow-row > .hc-col-opening .hc-line-handicap,
            body.show-total-only .hc-flow-row > .hc-col-live .hc-line-handicap,
            body.show-total-only .hc-flow-row > .hc-col-opening .hc-line-odds,
            body.show-total-only .hc-flow-row > .hc-col-live .hc-line-odds {
                justify-self: start !important;
                align-self: flex-start !important;
                justify-content: flex-start !important;
                text-align: left !important;
                width: auto !important;
            }

            body.show-handicap-only .hc-flow-row > .hc-col-pct,
            body.show-total-only .hc-flow-row > .hc-col-pct {
                justify-self: start !important;
                width: 100% !important;
                min-width: 0 !important;
                box-sizing: border-box !important;
            }

            body.show-handicap-only .hc-flow-row > .hc-col-diff,
            body.show-total-only .hc-flow-row > .hc-col-diff {
                display: flex !important;
                flex-direction: column !important;
                align-items: flex-start !important;
                justify-content: center !important;
                justify-self: start !important;
                text-align: left !important;
                width: 100% !important;
                max-width: none !important;
                min-width: 0 !important;
                box-sizing: border-box !important;
            }

            body.show-handicap-only .hc-flow-row > .hc-col-num:nth-child(7),
            body.show-total-only .hc-flow-row > .hc-col-num:nth-child(7),
            body.show-handicap-only .hc-flow-row > .hc-col-num:nth-child(8),
            body.show-total-only .hc-flow-row > .hc-col-num:nth-child(8),
            body.show-handicap-only .hc-flow-row > .hc-col-num:last-child,
            body.show-total-only .hc-flow-row > .hc-col-num:last-child {
                display: block !important;
                justify-self: center !important;
                text-align: center !important;
                width: 100% !important;
                max-width: 100% !important;
                min-width: 0 !important;
                overflow: hidden !important;
                box-sizing: border-box !important;
            }

            body.show-handicap-only .hc-flow-row > .hc-col-diff .hc-diff-val,
            body.show-total-only .hc-flow-row > .hc-col-diff .hc-diff-val {
                display: block !important;
                width: auto !important;
                max-width: 100% !important;
                text-align: left !important;
                margin: 0 !important;
            }

            body.show-handicap-only .hc-flow-row > .hc-col-num:nth-child(7) .hc-val-count,
            body.show-total-only .hc-flow-row > .hc-col-num:nth-child(7) .hc-val-count,
            body.show-handicap-only .hc-flow-row > .hc-col-num:nth-child(8) .hc-amt-short,
            body.show-total-only .hc-flow-row > .hc-col-num:nth-child(8) .hc-amt-short,
            body.show-handicap-only .hc-flow-row > .hc-col-num:last-child .hc-amt-short,
            body.show-total-only .hc-flow-row > .hc-col-num:last-child .hc-amt-short {
                display: inline !important;
                max-width: 100% !important;
                text-align: center !important;
                white-space: nowrap !important;
                overflow: hidden !important;
                text-overflow: ellipsis !important;
            }

            body.show-handicap-only .hc-flow-row > .hc-col-opening .hc-line-stack--ou .hc-line-ou-core,
            body.show-handicap-only .hc-flow-row > .hc-col-live .hc-line-stack--ou .hc-line-ou-core,
            body.show-total-only .hc-flow-row > .hc-col-opening .hc-line-stack--ou .hc-line-ou-core,
            body.show-total-only .hc-flow-row > .hc-col-live .hc-line-stack--ou .hc-line-ou-core {
                justify-content: flex-start !important;
                justify-self: start !important;
                width: auto !important;
            }

            body.show-handicap-only .hc-flow-row .hc-col-betpct .hc-pct-val,
            body.show-handicap-only .hc-flow-row .hc-col-moneypct .hc-pct-val,
            body.show-total-only .hc-flow-row .hc-col-betpct .hc-pct-val,
            body.show-total-only .hc-flow-row .hc-col-moneypct .hc-pct-val {
                text-align: left !important;
            }

            body.show-handicap-only .hc-flow-row .hc-col-betpct .hc-mini-bar,
            body.show-handicap-only .hc-flow-row .hc-col-moneypct .hc-mini-bar,
            body.show-total-only .hc-flow-row .hc-col-betpct .hc-mini-bar,
            body.show-total-only .hc-flow-row .hc-col-moneypct .hc-mini-bar {
                margin-left: 0 !important;
            }

            body.show-handicap-only .hc-flow-row > .hc-col-diff .hc-diff-val,
            body.show-total-only .hc-flow-row > .hc-col-diff .hc-diff-val {
                text-align: left !important;
            }

            body.show-handicap-only .hc-flow-row > .hc-col-num:nth-child(7) .hc-val-count,
            body.show-handicap-only .hc-flow-row > .hc-col-num:nth-child(8) .hc-amt-short,
            body.show-handicap-only .hc-flow-row > .hc-col-num:last-child .hc-amt-short,
            body.show-total-only .hc-flow-row > .hc-col-num:nth-child(7) .hc-val-count,
            body.show-total-only .hc-flow-row > .hc-col-num:nth-child(8) .hc-amt-short,
            body.show-total-only .hc-flow-row > .hc-col-num:last-child .hc-amt-short {
                text-align: center !important;
            }

            body.show-handicap-only .hc-flow-row-footer,
            body.show-total-only .hc-flow-row-footer {
                padding-top: 6px !important;
                padding-bottom: 2px !important;
                border-top: none !important;
            }

            body.show-handicap-only .match-trend-actions,
            body.show-total-only .match-trend-actions {
                padding-top: 8px !important;
                gap: 8px 10px !important;
                border-top: none !important;
                background: transparent !important;
            }

            body.theme-light.show-handicap-only .match-trend-actions,
            body.theme-light.show-total-only .match-trend-actions {
                background: transparent !important;
                border-top: none !important;
            }

            body.show-handicap-only .match-trend-action-group,
            body.show-total-only .match-trend-action-group {
                flex: 0 0 auto !important;
                min-width: 0;
                max-width: none;
            }

            body.show-handicap-only .match-trend-action-group .trend-btn-handicap,
            body.show-handicap-only .match-trend-action-group .trend-btn-total,
            body.show-handicap-only .match-trend-action-group .trend-btn-export,
            body.show-total-only .match-trend-action-group .trend-btn-handicap,
            body.show-total-only .match-trend-action-group .trend-btn-total,
            body.show-total-only .match-trend-action-group .trend-btn-export {
                flex: 0 0 auto !important;
                min-width: 0;
                padding: 2px 10px !important;
                font-size: 10px !important;
                border-radius: 0 !important;
            }

            /* 覆盖 640px stretch：差值靠左；人数/资金居中 */
            body.show-handicap-only .hc-flow-row > .hc-col-diff,
            body.show-total-only .hc-flow-row > .hc-col-diff {
                justify-self: start !important;
            }

            body.show-handicap-only .hc-flow-row > .hc-col-num:nth-child(7),
            body.show-total-only .hc-flow-row > .hc-col-num:nth-child(7),
            body.show-handicap-only .hc-flow-row > .hc-col-num:nth-child(8),
            body.show-total-only .hc-flow-row > .hc-col-num:nth-child(8),
            body.show-handicap-only .hc-flow-row > .hc-col-num:last-child,
            body.show-total-only .hc-flow-row > .hc-col-num:last-child {
                justify-self: center !important;
            }

            body.show-handicap-only .hc-flow-row > .hc-col-pct,
            body.show-total-only .hc-flow-row > .hc-col-pct {
                justify-self: start !important;
            }

            body.show-handicap-only .match-data-wrap .hc-column-head .hc-opening-col-toggle,
            body.show-handicap-only .match-data-wrap .hc-column-head .hc-line-col-toggle,
            body.show-total-only .match-data-wrap .hc-column-head .hc-opening-col-toggle,
            body.show-total-only .match-data-wrap .hc-column-head .hc-line-col-toggle {
                min-height: 0 !important;
                width: auto !important;
                max-width: 100% !important;
                justify-self: start !important;
                justify-content: flex-start !important;
                text-align: left !important;
                padding-left: 0 !important;
                padding-right: 0 !important;
                box-sizing: border-box !important;
            }

            /* 覆盖全局 center 规则，初盘/即盘数据必须贴左 */
            body.show-handicap-only .hc-col-opening .hc-line-stack .hc-line-handicap,
            body.show-handicap-only .hc-col-live .hc-line-stack .hc-line-handicap,
            body.show-total-only .hc-col-opening .hc-line-stack .hc-line-handicap,
            body.show-total-only .hc-col-live .hc-line-stack .hc-line-handicap {
                text-align: left !important;
                justify-self: start !important;
                width: auto !important;
            }

            body.show-handicap-only .hc-col-opening .hc-line-stack .hc-line-odds--stack,
            body.show-handicap-only .hc-col-live .hc-line-stack .hc-line-odds--stack,
            body.show-total-only .hc-col-opening .hc-line-stack .hc-line-odds--stack,
            body.show-total-only .hc-col-live .hc-line-stack .hc-line-odds--stack {
                justify-content: flex-start !important;
                text-align: left !important;
            }
        }

/* 16-language switcher (renshuceshi.php) */
.terminal-lang-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    min-width: 0;
    position: relative;
    z-index: 70;
    overflow: visible;
}
.terminal-lang-switch__start {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}
.terminal-lang-switch__trigger {
    flex: 0 1 auto;
    min-width: 0;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}
.terminal-lang-switch__trigger:hover,
.terminal-lang-switch__trigger[aria-expanded="true"] {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}
.terminal-lang-switch__globe { font-size: 12px; filter: grayscale(100%); }
.terminal-lang-switch__current {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 72px;
}
.terminal-lang-switch__caret { font-size: 9px; opacity: 0.7; }
.terminal-lang-switch__menu {
    position: fixed;
    z-index: 100000;
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
    padding: 6px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(51, 65, 85, 0.95) rgba(2, 6, 23, 0.55);
}
.terminal-lang-switch__menu::-webkit-scrollbar {
    width: 6px;
}
.terminal-lang-switch__menu::-webkit-scrollbar-track {
    background: transparent;
    margin: 6px 0;
    border-radius: 999px;
}
.terminal-lang-switch__menu::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(71, 85, 105, 0.95) 0%, rgba(30, 41, 59, 0.98) 100%);
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.terminal-lang-switch__menu::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(100, 116, 139, 0.98) 0%, rgba(51, 65, 85, 0.98) 100%);
}
.terminal-lang-switch__menu::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.85) 0%, rgba(71, 85, 105, 0.95) 100%);
}
.terminal-lang-switch__menu::-webkit-scrollbar-button,
.terminal-lang-switch__menu::-webkit-scrollbar-corner {
    display: none;
    width: 0;
    height: 0;
}
.terminal-lang-switch__item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 7px 12px;
    border: none;
    background: transparent;
    color: #e2e8f0;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}
.terminal-lang-switch__item:hover { background: rgba(255, 255, 255, 0.08); color: #d4af37; }
.terminal-lang-switch__item.is-active { color: #d4af37; font-weight: 800; }
.terminal-lang-switch__theme {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}
.terminal-lang-switch__theme .theme-toggle__icon {
    width: 16px;
    height: 16px;
    display: block;
}
.terminal-lang-switch__theme:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}
body.theme-light .terminal-lang-switch__theme {
    color: #64748b;
}
body.theme-light .terminal-lang-switch__theme:hover {
    color: #0f172a;
    background: rgba(15, 23, 42, 0.06);
}
.mo-lang-switch-group--full { width: 100% !important; justify-content: stretch !important; }
.mo-lang-switch-group--full .terminal-lang-switch { width: 100%; }
@media (max-width: 640px) {
    .mo-only-block .mo-lang-switch-group--full {
        width: auto !important;
        justify-content: flex-end !important;
    }
    .mo-only-block .mo-lang-switch-group--full .terminal-lang-switch {
        width: auto !important;
        justify-content: flex-end !important;
    }
}

/* Match share modal (VIP) */
.poster-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(6px);
}
.poster-modal-overlay.open {
    display: flex;
}
body.poster-modal-open {
    overflow: hidden;
}
.poster-modal-card {
    width: min(420px, 100%);
    max-height: calc(100vh - 32px);
    overflow: auto;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: #0f172a;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
    position: relative;
}
body.theme-light .poster-modal-card {
    background: #ffffff;
    border-color: #e2e8f0;
}
.poster-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.poster-modal-head {
    padding: 18px 20px 8px;
}
.poster-modal-kicker {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}
.poster-modal-title {
    margin: 6px 0 0;
    font-size: 18px;
    font-weight: 800;
    color: #f8fafc;
}
body.theme-light .poster-modal-title {
    color: #0f172a;
}
.poster-modal-meta {
    margin-top: 6px;
    font-size: 12px;
    color: #94a3b8;
}
.poster-modal-body {
    padding: 8px 20px 20px;
}
.poster-modal-lang {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.poster-modal-lang-btn {
    flex: 1;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(148, 163, 184, 0.08);
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.poster-modal-lang-btn.is-active {
    color: #fde68a;
    border-color: rgba(251, 191, 36, 0.45);
    background: rgba(251, 191, 36, 0.14);
}
body.theme-light .poster-modal-lang-btn {
    color: #475569;
    background: #f8fafc;
}
body.theme-light .poster-modal-lang-btn.is-active {
    color: #92400e;
    background: #fef3c7;
}
.poster-modal-preview-wrap {
    display: flex;
    justify-content: center;
    padding: 8px 0 10px;
    background: rgba(2, 6, 23, 0.35);
    border-radius: 10px;
}
body.theme-light .poster-modal-preview-wrap {
    background: #f1f5f9;
}
.poster-preview-canvas {
    width: min(270px, 100%);
    height: auto;
    aspect-ratio: 9 / 16;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.poster-modal-status {
    min-height: 18px;
    margin: 6px 0 10px;
    font-size: 11px;
    color: #94a3b8;
    text-align: center;
}
.poster-modal-status.is-error {
    color: #f87171;
}
.poster-modal-download {
    width: 100%;
    padding: 11px 14px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(180deg, #d4af37 0%, #b8941f 100%);
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}
.poster-modal-download:disabled {
    opacity: 0.5;
    cursor: wait;
}
.poster-modal-download:hover:not(:disabled) {
    filter: brightness(1.05);
}

/* 手机表头对齐 v17 — 人%/资%/差值靠左；人数/资金居中（仅表头） */
@media (max-width: 768px) {
    body.show-handicap-only .match-data-wrap .hc-column-head > .hc-head-sort:nth-child(4),
    body.show-handicap-only .match-data-wrap .hc-column-head > .hc-head-sort:nth-child(5),
    body.show-handicap-only .match-data-wrap .hc-column-head > .hc-head-sort:nth-child(6),
    body.show-total-only .match-data-wrap .hc-column-head > .hc-head-sort:nth-child(4),
    body.show-total-only .match-data-wrap .hc-column-head > .hc-head-sort:nth-child(5),
    body.show-total-only .match-data-wrap .hc-column-head > .hc-head-sort:nth-child(6) {
        display: flex !important;
        justify-content: flex-start !important;
        justify-self: start !important;
        align-items: center !important;
        text-align: left !important;
    }

    body.show-handicap-only .match-data-wrap .hc-column-head .hc-sort-btn[data-sort-key="betpct"],
    body.show-handicap-only .match-data-wrap .hc-column-head .hc-sort-btn[data-sort-key="moneypct"],
    body.show-handicap-only .match-data-wrap .hc-column-head .hc-sort-btn[data-sort-key="diff"],
    body.show-total-only .match-data-wrap .hc-column-head .hc-sort-btn[data-sort-key="betpct"],
    body.show-total-only .match-data-wrap .hc-column-head .hc-sort-btn[data-sort-key="moneypct"],
    body.show-total-only .match-data-wrap .hc-column-head .hc-sort-btn[data-sort-key="diff"] {
        justify-content: flex-start !important;
        text-align: left !important;
    }

    body.show-handicap-only .match-data-wrap .hc-column-head .hc-sort-btn[data-sort-key="betpct"] .hc-col-toggle-hit,
    body.show-handicap-only .match-data-wrap .hc-column-head .hc-sort-btn[data-sort-key="moneypct"] .hc-col-toggle-hit,
    body.show-total-only .match-data-wrap .hc-column-head .hc-sort-btn[data-sort-key="betpct"] .hc-col-toggle-hit,
    body.show-total-only .match-data-wrap .hc-column-head .hc-sort-btn[data-sort-key="moneypct"] .hc-col-toggle-hit {
        justify-content: flex-start !important;
        text-align: left !important;
    }

    body.show-handicap-only .match-data-wrap .hc-column-head .hc-sort-btn[data-sort-key="betpct"] .hc-sort-label,
    body.show-handicap-only .match-data-wrap .hc-column-head .hc-sort-btn[data-sort-key="moneypct"] .hc-sort-label,
    body.show-handicap-only .match-data-wrap .hc-column-head .hc-sort-btn[data-sort-key="diff"] .hc-sort-label,
    body.show-total-only .match-data-wrap .hc-column-head .hc-sort-btn[data-sort-key="betpct"] .hc-sort-label,
    body.show-total-only .match-data-wrap .hc-column-head .hc-sort-btn[data-sort-key="moneypct"] .hc-sort-label,
    body.show-total-only .match-data-wrap .hc-column-head .hc-sort-btn[data-sort-key="diff"] .hc-sort-label {
        text-align: left !important;
    }

    body.show-handicap-only .match-data-wrap .hc-column-head > .hc-head-sort:nth-child(7),
    body.show-handicap-only .match-data-wrap .hc-column-head > .hc-head-sort:nth-child(8),
    body.show-handicap-only .match-data-wrap .hc-column-head > .hc-head-sort.hc-head-sort--money,
    body.show-total-only .match-data-wrap .hc-column-head > .hc-head-sort:nth-child(7),
    body.show-total-only .match-data-wrap .hc-column-head > .hc-head-sort:nth-child(8),
    body.show-total-only .match-data-wrap .hc-column-head > .hc-head-sort.hc-head-sort--money {
        display: flex !important;
        justify-content: center !important;
        justify-self: center !important;
        align-items: center !important;
        text-align: center !important;
    }

    body.show-handicap-only .match-data-wrap .hc-column-head .hc-sort-btn[data-sort-key="bets"],
    body.show-handicap-only .match-data-wrap .hc-column-head .hc-sort-btn[data-sort-key="money"],
    body.show-total-only .match-data-wrap .hc-column-head .hc-sort-btn[data-sort-key="bets"],
    body.show-total-only .match-data-wrap .hc-column-head .hc-sort-btn[data-sort-key="money"] {
        justify-content: center !important;
        text-align: center !important;
    }

    body.show-handicap-only .match-data-wrap .hc-column-head .hc-sort-btn[data-sort-key="bets"] .hc-sort-label,
    body.show-handicap-only .match-data-wrap .hc-column-head .hc-sort-btn[data-sort-key="money"] .hc-sort-label,
    body.show-total-only .match-data-wrap .hc-column-head .hc-sort-btn[data-sort-key="bets"] .hc-sort-label,
    body.show-total-only .match-data-wrap .hc-column-head .hc-sort-btn[data-sort-key="money"] .hc-sort-label {
        text-align: center !important;
    }
}

/* 表头「赛事」靠左，文字前留 2 字空 */
body.show-handicap-only .match-data-wrap .hc-column-head > span:first-child,
body.show-total-only .match-data-wrap .hc-column-head > span:first-child {
    justify-self: start !important;
    text-align: left !important;
    padding-left: 2ch !important;
    box-sizing: border-box !important;
}

/* 手机：初盘/即盘/人数%/资金% 折叠后满格 ▸ 展开（统一样式） */
@media (max-width: 768px) {
    body.show-handicap-only.hc-opening-col-collapsed .match-data-wrap .hc-column-head .hc-opening-col-toggle,
    body.show-total-only.hc-opening-col-collapsed .match-data-wrap .hc-column-head .hc-opening-col-toggle,
    body.show-handicap-only.hc-line-col-collapsed .match-data-wrap .hc-column-head .hc-line-col-toggle,
    body.show-total-only.hc-line-col-collapsed .match-data-wrap .hc-column-head .hc-line-col-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        min-height: 28px !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    body.show-handicap-only.hc-opening-col-collapsed .match-data-wrap .hc-column-head .hc-opening-col-toggle .hc-head-lbl,
    body.show-total-only.hc-opening-col-collapsed .match-data-wrap .hc-column-head .hc-opening-col-toggle .hc-head-lbl,
    body.show-handicap-only.hc-line-col-collapsed .match-data-wrap .hc-column-head .hc-line-col-toggle .hc-head-lbl,
    body.show-total-only.hc-line-col-collapsed .match-data-wrap .hc-column-head .hc-line-col-toggle .hc-head-lbl {
        display: none !important;
    }

    body.show-handicap-only.hc-opening-col-collapsed .match-data-wrap .hc-column-head .hc-opening-col-toggle-expand,
    body.show-total-only.hc-opening-col-collapsed .match-data-wrap .hc-column-head .hc-opening-col-toggle-expand,
    body.show-handicap-only.hc-line-col-collapsed .match-data-wrap .hc-column-head .hc-line-col-toggle-expand,
    body.show-total-only.hc-line-col-collapsed .match-data-wrap .hc-column-head .hc-line-col-toggle-expand {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        min-height: 26px !important;
        font-size: 14px !important;
        line-height: 1 !important;
    }

    body.show-handicap-only.hc-betpct-col-collapsed .match-data-wrap .hc-column-head > .hc-head-sort:has(.hc-pct-col-toggle[data-col-toggle="betpct"]),
    body.show-total-only.hc-betpct-col-collapsed .match-data-wrap .hc-column-head > .hc-head-sort:has(.hc-pct-col-toggle[data-col-toggle="betpct"]),
    body.show-handicap-only.hc-moneypct-col-collapsed .match-data-wrap .hc-column-head > .hc-head-sort:has(.hc-pct-col-toggle[data-col-toggle="moneypct"]),
    body.show-total-only.hc-moneypct-col-collapsed .match-data-wrap .hc-column-head > .hc-head-sort:has(.hc-pct-col-toggle[data-col-toggle="moneypct"]) {
        display: flex !important;
        align-items: stretch !important;
        justify-content: stretch !important;
        width: 100% !important;
        min-height: 28px !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    body.show-handicap-only.hc-betpct-col-collapsed .match-data-wrap .hc-column-head .hc-pct-col-toggle[data-col-toggle="betpct"],
    body.show-total-only.hc-betpct-col-collapsed .match-data-wrap .hc-column-head .hc-pct-col-toggle[data-col-toggle="betpct"],
    body.show-handicap-only.hc-moneypct-col-collapsed .match-data-wrap .hc-column-head .hc-pct-col-toggle[data-col-toggle="moneypct"],
    body.show-total-only.hc-moneypct-col-collapsed .match-data-wrap .hc-column-head .hc-pct-col-toggle[data-col-toggle="moneypct"] {
        display: flex !important;
        align-items: stretch !important;
        justify-content: center !important;
        width: 100% !important;
        min-height: 28px !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    body.show-handicap-only.hc-betpct-col-collapsed .match-data-wrap .hc-column-head .hc-pct-col-toggle[data-col-toggle="betpct"] .hc-col-toggle-hit,
    body.show-total-only.hc-betpct-col-collapsed .match-data-wrap .hc-column-head .hc-pct-col-toggle[data-col-toggle="betpct"] .hc-col-toggle-hit,
    body.show-handicap-only.hc-moneypct-col-collapsed .match-data-wrap .hc-column-head .hc-pct-col-toggle[data-col-toggle="moneypct"] .hc-col-toggle-hit,
    body.show-total-only.hc-moneypct-col-collapsed .match-data-wrap .hc-column-head .hc-pct-col-toggle[data-col-toggle="moneypct"] .hc-col-toggle-hit {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 1 1 auto !important;
        width: 100% !important;
        min-height: 26px !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        border-style: solid !important;
        border-color: rgba(96, 165, 250, 0.38) !important;
        background: rgba(59, 130, 246, 0.12) !important;
        border-radius: 6px !important;
    }

    body.theme-light.show-handicap-only.hc-betpct-col-collapsed .match-data-wrap .hc-column-head .hc-pct-col-toggle[data-col-toggle="betpct"] .hc-col-toggle-hit,
    body.theme-light.show-total-only.hc-betpct-col-collapsed .match-data-wrap .hc-column-head .hc-pct-col-toggle[data-col-toggle="betpct"] .hc-col-toggle-hit,
    body.theme-light.show-handicap-only.hc-moneypct-col-collapsed .match-data-wrap .hc-column-head .hc-pct-col-toggle[data-col-toggle="moneypct"] .hc-col-toggle-hit,
    body.theme-light.show-total-only.hc-moneypct-col-collapsed .match-data-wrap .hc-column-head .hc-pct-col-toggle[data-col-toggle="moneypct"] .hc-col-toggle-hit {
        border-color: #93c5fd !important;
        background: #eff6ff !important;
    }

    body.show-handicap-only.hc-betpct-col-collapsed .match-data-wrap .hc-column-head .hc-pct-col-toggle[data-col-toggle="betpct"] .hc-col-toggle-expand,
    body.show-total-only.hc-betpct-col-collapsed .match-data-wrap .hc-column-head .hc-pct-col-toggle[data-col-toggle="betpct"] .hc-col-toggle-expand,
    body.show-handicap-only.hc-moneypct-col-collapsed .match-data-wrap .hc-column-head .hc-pct-col-toggle[data-col-toggle="moneypct"] .hc-col-toggle-expand,
    body.show-total-only.hc-moneypct-col-collapsed .match-data-wrap .hc-column-head .hc-pct-col-toggle[data-col-toggle="moneypct"] .hc-col-toggle-expand {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        min-height: 26px !important;
        font-size: 14px !important;
        line-height: 1 !important;
        color: #60a5fa !important;
    }

    body.theme-light.show-handicap-only.hc-betpct-col-collapsed .match-data-wrap .hc-column-head .hc-pct-col-toggle[data-col-toggle="betpct"] .hc-col-toggle-expand,
    body.theme-light.show-total-only.hc-betpct-col-collapsed .match-data-wrap .hc-column-head .hc-pct-col-toggle[data-col-toggle="betpct"] .hc-col-toggle-expand,
    body.theme-light.show-handicap-only.hc-moneypct-col-collapsed .match-data-wrap .hc-column-head .hc-pct-col-toggle[data-col-toggle="moneypct"] .hc-col-toggle-expand,
    body.theme-light.show-total-only.hc-moneypct-col-collapsed .match-data-wrap .hc-column-head .hc-pct-col-toggle[data-col-toggle="moneypct"] .hc-col-toggle-expand {
        color: #2563eb !important;
    }
}

/* 手机：人数/资金 折叠后满格 ▸ 展开 */
@media (max-width: 768px) {
    body.show-handicap-only.hc-bets-col-collapsed .match-data-wrap .hc-column-head > .hc-head-sort:has(.hc-pct-col-toggle[data-col-toggle="bets"]),
    body.show-total-only.hc-bets-col-collapsed .match-data-wrap .hc-column-head > .hc-head-sort:has(.hc-pct-col-toggle[data-col-toggle="bets"]),
    body.show-handicap-only.hc-money-col-collapsed .match-data-wrap .hc-column-head > .hc-head-sort:has(.hc-pct-col-toggle[data-col-toggle="money"]),
    body.show-total-only.hc-money-col-collapsed .match-data-wrap .hc-column-head > .hc-head-sort:has(.hc-pct-col-toggle[data-col-toggle="money"]) {
        display: flex !important;
        align-items: stretch !important;
        justify-content: stretch !important;
        width: 100% !important;
        min-height: 28px !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    body.show-handicap-only.hc-bets-col-collapsed .match-data-wrap .hc-column-head .hc-pct-col-toggle[data-col-toggle="bets"],
    body.show-total-only.hc-bets-col-collapsed .match-data-wrap .hc-column-head .hc-pct-col-toggle[data-col-toggle="bets"],
    body.show-handicap-only.hc-money-col-collapsed .match-data-wrap .hc-column-head .hc-pct-col-toggle[data-col-toggle="money"],
    body.show-total-only.hc-money-col-collapsed .match-data-wrap .hc-column-head .hc-pct-col-toggle[data-col-toggle="money"] {
        display: flex !important;
        align-items: stretch !important;
        justify-content: center !important;
        width: 100% !important;
        min-height: 28px !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    body.show-handicap-only.hc-bets-col-collapsed .match-data-wrap .hc-column-head .hc-pct-col-toggle[data-col-toggle="bets"] .hc-col-toggle-hit,
    body.show-total-only.hc-bets-col-collapsed .match-data-wrap .hc-column-head .hc-pct-col-toggle[data-col-toggle="bets"] .hc-col-toggle-hit,
    body.show-handicap-only.hc-money-col-collapsed .match-data-wrap .hc-column-head .hc-pct-col-toggle[data-col-toggle="money"] .hc-col-toggle-hit,
    body.show-total-only.hc-money-col-collapsed .match-data-wrap .hc-column-head .hc-pct-col-toggle[data-col-toggle="money"] .hc-col-toggle-hit {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 1 1 auto !important;
        width: 100% !important;
        min-height: 26px !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        border-style: solid !important;
        border-color: rgba(96, 165, 250, 0.38) !important;
        background: rgba(59, 130, 246, 0.12) !important;
        border-radius: 6px !important;
    }
    body.theme-light.show-handicap-only.hc-bets-col-collapsed .match-data-wrap .hc-column-head .hc-pct-col-toggle[data-col-toggle="bets"] .hc-col-toggle-hit,
    body.theme-light.show-total-only.hc-bets-col-collapsed .match-data-wrap .hc-column-head .hc-pct-col-toggle[data-col-toggle="bets"] .hc-col-toggle-hit,
    body.theme-light.show-handicap-only.hc-money-col-collapsed .match-data-wrap .hc-column-head .hc-pct-col-toggle[data-col-toggle="money"] .hc-col-toggle-hit,
    body.theme-light.show-total-only.hc-money-col-collapsed .match-data-wrap .hc-column-head .hc-pct-col-toggle[data-col-toggle="money"] .hc-col-toggle-hit {
        border-color: #93c5fd !important;
        background: #eff6ff !important;
    }
    body.show-handicap-only.hc-bets-col-collapsed .match-data-wrap .hc-column-head .hc-pct-col-toggle[data-col-toggle="bets"] .hc-col-toggle-expand,
    body.show-total-only.hc-bets-col-collapsed .match-data-wrap .hc-column-head .hc-pct-col-toggle[data-col-toggle="bets"] .hc-col-toggle-expand,
    body.show-handicap-only.hc-money-col-collapsed .match-data-wrap .hc-column-head .hc-pct-col-toggle[data-col-toggle="money"] .hc-col-toggle-expand,
    body.show-total-only.hc-money-col-collapsed .match-data-wrap .hc-column-head .hc-pct-col-toggle[data-col-toggle="money"] .hc-col-toggle-expand {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        min-height: 26px !important;
        font-size: 14px !important;
        line-height: 1 !important;
        color: #60a5fa !important;
    }
    body.theme-light.show-handicap-only.hc-bets-col-collapsed .match-data-wrap .hc-column-head .hc-pct-col-toggle[data-col-toggle="bets"] .hc-col-toggle-expand,
    body.theme-light.show-total-only.hc-bets-col-collapsed .match-data-wrap .hc-column-head .hc-pct-col-toggle[data-col-toggle="bets"] .hc-col-toggle-expand,
    body.theme-light.show-handicap-only.hc-money-col-collapsed .match-data-wrap .hc-column-head .hc-pct-col-toggle[data-col-toggle="money"] .hc-col-toggle-expand,
    body.theme-light.show-total-only.hc-money-col-collapsed .match-data-wrap .hc-column-head .hc-pct-col-toggle[data-col-toggle="money"] .hc-col-toggle-expand {
        color: #2563eb !important;
    }
}

/* 表头「初始」「即时」与下方盘口列左缘对齐（全端最终覆盖） */
body.show-handicap-only .match-data-wrap .hc-column-head > .hc-head-opening,
body.show-handicap-only .match-data-wrap .hc-column-head > .hc-head-line,
body.show-total-only .match-data-wrap .hc-column-head > .hc-head-opening,
body.show-total-only .match-data-wrap .hc-column-head > .hc-head-line,
body.show-handicap-only .match-data-wrap .hc-column-head .hc-opening-col-toggle,
body.show-handicap-only .match-data-wrap .hc-column-head .hc-line-col-toggle,
body.show-total-only .match-data-wrap .hc-column-head .hc-opening-col-toggle,
body.show-total-only .match-data-wrap .hc-column-head .hc-line-col-toggle {
    justify-self: start !important;
    justify-content: flex-start !important;
    align-items: center !important;
    text-align: left !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.show-handicap-only .match-data-wrap .hc-column-head .hc-opening-col-toggle .hc-head-lbl,
body.show-handicap-only .match-data-wrap .hc-column-head .hc-line-col-toggle .hc-head-lbl,
body.show-total-only .match-data-wrap .hc-column-head .hc-opening-col-toggle .hc-head-lbl,
body.show-total-only .match-data-wrap .hc-column-head .hc-line-col-toggle .hc-head-lbl {
    text-align: left !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 初始/即时：仅一份文案（手机端勿隐藏 full） */
body.show-handicap-only .match-data-wrap .hc-column-head .hc-opening-col-toggle .hc-head-lbl-full,
body.show-handicap-only .match-data-wrap .hc-column-head .hc-line-col-toggle .hc-head-lbl-full,
body.show-total-only .match-data-wrap .hc-column-head .hc-opening-col-toggle .hc-head-lbl-full,
body.show-total-only .match-data-wrap .hc-column-head .hc-line-col-toggle .hc-head-lbl-full {
    display: inline !important;
}

/* 公告栏：隐藏横向滚动条 */
.ann-marquee-bar {
    align-items: center !important;
    overflow: hidden !important;
}
.ann-marquee-viewport {
    overflow: hidden !important;
    overflow-x: hidden !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}
.ann-marquee-viewport::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}
.ann-marquee-bar .ann-marquee-label {
    gap: 6px !important;
    min-width: 52px !important;
    padding: 0 10px !important;
}

/* 手机：初始/即时 — 表头与卡片内数据行同一栅格宽度（仅让盘路列对齐，其他列不动） */
@media (max-width: 768px) {
    body.show-handicap-only .match-data-wrap .hc-column-head,
    body.show-total-only .match-data-wrap .hc-column-head {
        box-sizing: border-box !important;
        width: calc(100% - 2 * var(--hc-card-border-x, 1px)) !important;
        max-width: calc(100% - 2 * var(--hc-card-border-x, 1px)) !important;
        margin-left: var(--hc-card-border-x, 1px) !important;
        margin-right: var(--hc-card-border-x, 1px) !important;
        padding-left: var(--hc-inset-x) !important;
        padding-right: var(--hc-inset-x) !important;
    }

    body.show-handicap-only .match-data-wrap .hc-column-head.is-fixed,
    body.show-total-only .match-data-wrap .hc-column-head.is-fixed {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.show-handicap-only .hc-flow-row > .hc-col-line.hc-col-opening,
    body.show-handicap-only .hc-flow-row > .hc-col-line.hc-col-live,
    body.show-total-only .hc-flow-row > .hc-col-line.hc-col-opening,
    body.show-total-only .hc-flow-row > .hc-col-line.hc-col-live {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        justify-self: start !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        align-self: start !important;
        text-align: left !important;
    }

    body.show-handicap-only .hc-flow-row > .hc-col-opening .hc-line-stack,
    body.show-handicap-only .hc-flow-row > .hc-col-live .hc-line-stack,
    body.show-total-only .hc-flow-row > .hc-col-opening .hc-line-stack,
    body.show-total-only .hc-flow-row > .hc-col-live .hc-line-stack {
        display: grid !important;
        width: 100% !important;
        max-width: 100% !important;
        justify-items: start !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
    }

    body.show-handicap-only .hc-flow-row > .hc-col-opening .hc-line-stack .hc-line-handicap,
    body.show-handicap-only .hc-flow-row > .hc-col-live .hc-line-stack .hc-line-handicap,
    body.show-total-only .hc-flow-row > .hc-col-opening .hc-line-stack .hc-line-handicap,
    body.show-total-only .hc-flow-row > .hc-col-live .hc-line-stack .hc-line-handicap,
    body.show-handicap-only .hc-flow-row > .hc-col-opening .hc-line-stack .hc-line-odds--stack,
    body.show-handicap-only .hc-flow-row > .hc-col-live .hc-line-stack .hc-line-odds--stack,
    body.show-total-only .hc-flow-row > .hc-col-opening .hc-line-stack .hc-line-odds--stack,
    body.show-total-only .hc-flow-row > .hc-col-live .hc-line-stack .hc-line-odds--stack,
    body.show-handicap-only .hc-flow-row > .hc-col-opening .hc-line-odds,
    body.show-handicap-only .hc-flow-row > .hc-col-live .hc-line-odds,
    body.show-total-only .hc-flow-row > .hc-col-opening .hc-line-odds,
    body.show-total-only .hc-flow-row > .hc-col-live .hc-line-odds {
        justify-self: start !important;
        align-self: flex-start !important;
        justify-content: flex-start !important;
        text-align: left !important;
        margin-left: 0 !important;
        margin-right: auto !important;
    }
}

        .league-picker-backdrop {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 9190;
            background: rgba(15, 23, 42, 0.28);
            backdrop-filter: blur(2px);
            opacity: 0;
            transition: opacity 0.2s ease;
        }
        .league-picker-backdrop:not([hidden]) { display: block; }
        .league-picker-backdrop.is-visible { opacity: 1; }
        body.league-picker-open {
            overflow: hidden;
            overscroll-behavior: none;
        }
        .league-picker-panel {
            position: fixed;
            z-index: 9200;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%) scale(0.98);
            width: min(920px, calc(100vw - 28px));
            height: min(640px, calc(100vh - 36px));
            display: flex;
            flex-direction: column;
            background: #fff;
            border-radius: 14px;
            box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
            opacity: 0;
            overflow: hidden;
            transition: opacity 0.18s ease, transform 0.18s ease;
        }
        .league-picker-panel[hidden] { display: none !important; }
        .league-picker-panel.is-open {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
        }
        body:not(.theme-light) .league-picker-panel {
            background: #0f172a;
            border: 1px solid rgba(148, 163, 184, 0.28);
            box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
        }
        .league-picker-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 16px 8px;
            border-bottom: 1px solid rgba(148, 163, 184, 0.22);
            flex-shrink: 0;
        }
        .league-picker-title {
            font-size: 14px;
            font-weight: 700;
            color: var(--text-main);
        }
        .league-picker-close {
            width: 28px;
            height: 28px;
            border: none;
            border-radius: 999px;
            background: transparent;
            color: var(--text-sub);
            font-size: 22px;
            line-height: 1;
            cursor: pointer;
        }
        .league-picker-body {
            display: flex;
            flex: 1;
            min-height: 0;
        }
        .league-picker-scroll {
            flex: 1;
            overflow-y: auto;
            padding: 10px 14px 16px;
        }
        .league-picker-sec {
            margin-bottom: 14px;
        }
        .league-picker-sec-title {
            font-size: 13px;
            font-weight: 700;
            color: #334155;
            margin: 4px 0 8px;
        }
        body:not(.theme-light) .league-picker-sec-title { color: #f1f5f9; }
        .league-picker-grid {
            display: grid;
            grid-template-columns: repeat(5, minmax(0, 1fr));
            gap: 8px 10px;
        }
        .league-picker-chip {
            position: relative;
            display: flex;
            align-items: center;
            gap: 6px;
            min-height: 34px;
            padding: 4px 10px 4px 8px;
            border-radius: 999px;
            background: #eef2f6;
            border: 1px solid transparent;
            cursor: pointer;
            user-select: none;
        }
        body:not(.theme-light) .league-picker-chip {
            background: #e8eef5;
            border-color: #cbd5e1;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
        }
        .league-picker-chip.is-checked {
            background: #e2e8f0;
            box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.28);
        }
        body:not(.theme-light) .league-picker-chip.is-checked {
            background: #ffffff;
            border-color: #60a5fa;
            box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.35);
        }
        .league-picker-chip input {
            position: absolute;
            opacity: 0;
            pointer-events: none;
        }
        .league-picker-radio {
            width: 14px;
            height: 14px;
            border-radius: 999px;
            border: 1.5px solid #94a3b8;
            background: #fff;
            flex-shrink: 0;
            box-sizing: border-box;
        }
        body:not(.theme-light) .league-picker-radio {
            border-color: #64748b;
            background: #fff;
        }
        .league-picker-chip.is-checked .league-picker-radio {
            border-color: #2563eb;
            background: #2563eb;
            box-shadow: inset 0 0 0 2px #fff;
        }
        .league-picker-name {
            font-size: 12px;
            font-weight: 700;
            color: #64748b;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            min-width: 0;
        }
        .league-picker-n {
            font-size: 12px;
            font-weight: 700;
            color: inherit;
            flex-shrink: 0;
        }
        .league-picker-live {
            margin-left: auto;
            flex-shrink: 0;
            font-size: 9px;
            font-weight: 800;
            letter-spacing: 0.04em;
            color: #fff;
            padding: 1px 6px 2px;
            border-radius: 4px 4px 4px 0;
            background: linear-gradient(90deg, #22d3ee 0%, #a78bfa 100%);
        }
        .league-picker-index {
            width: 28px;
            flex-shrink: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            padding: 10px 0 12px;
            gap: 1px;
            overflow-y: auto;
            background: #e8edf2;
        }
        body:not(.theme-light) .league-picker-index {
            background: #1e293b;
            border-left: 1px solid rgba(148, 163, 184, 0.22);
        }
        .league-picker-index button {
            border: none;
            background: transparent;
            color: #94a3b8;
            font-size: 11px;
            font-weight: 700;
            line-height: 1.25;
            padding: 1px 0;
            cursor: pointer;
            width: 100%;
        }
        body:not(.theme-light) .league-picker-index button {
            color: #cbd5e1;
        }
        .league-picker-index button.is-active {
            color: #2563eb;
        }
        body:not(.theme-light) .league-picker-index button.is-active {
            color: #93c5fd;
        }
        .league-picker-foot {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding: 10px 14px 12px;
            border-top: 1px solid rgba(148, 163, 184, 0.22);
            flex-shrink: 0;
            flex-wrap: wrap;
        }
        body:not(.theme-light) .league-picker-foot {
            border-top-color: rgba(148, 163, 184, 0.32);
            background: #0b1220;
        }
        body:not(.theme-light) .league-picker-head {
            border-bottom-color: rgba(148, 163, 184, 0.32);
        }
        body:not(.theme-light) .league-picker-close {
            color: #e2e8f0;
        }
        .league-picker-count {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-main);
        }
        .league-picker-actions {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }
        .league-picker-btn {
            min-width: 64px;
            height: 32px;
            padding: 0 12px;
            border-radius: 6px;
            border: 1px solid #dbe3ec;
            background: #f8fafc;
            color: #334155;
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
        }
        body:not(.theme-light) .league-picker-btn {
            background: #334155;
            border-color: #64748b;
            color: #f8fafc;
        }
        .league-picker-btn--primary {
            background: #2563eb;
            border-color: #2563eb;
            color: #fff;
        }
        body:not(.theme-light) .league-picker-btn--primary {
            background: #2563eb;
            color: #fff;
        }
        @media (max-width: 720px) {
            .league-picker-panel {
                width: 100%;
                left: 0;
                top: 0;
                right: 0;
                height: 100vh;
                max-height: 100vh;
                height: 100dvh;
                max-height: 100dvh;
                height: 100svh;
                max-height: 100svh;
                border-radius: 0;
                transform: none;
            }
            .league-picker-panel.is-open {
                transform: none;
            }
            .league-picker-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
            .league-picker-foot {
                flex-direction: column;
                align-items: stretch;
                gap: 8px;
                padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px) + 48px);
            }
            .league-picker-actions {
                width: 100%;
                flex-wrap: nowrap;
                justify-content: stretch;
            }
            .league-picker-btn {
                flex: 1;
                min-width: 0;
                padding: 0 8px;
            }
        }
        @media (min-width: 721px) and (max-width: 980px) {
            .league-picker-grid {
                grid-template-columns: repeat(3, minmax(0, 1fr));
            }
        }

        body.terminal-list-booting #listFilterEmpty {
            display: none !important;
        }
        .terminal-list-boot-overlay {
            position: fixed;
            inset: 0;
            z-index: 18000;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(2, 6, 23, 0.55);
            backdrop-filter: blur(8px);
            transition: opacity 0.2s ease;
        }
        body.theme-light .terminal-list-boot-overlay {
            background: rgba(248, 250, 252, 0.62);
        }
        .terminal-list-boot-overlay.is-popup-only,
        body.theme-light .terminal-list-boot-overlay.is-popup-only {
            background: transparent;
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
        }
        .terminal-list-boot-overlay.is-refresh {
            background: rgba(2, 6, 23, 0.4);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }
        body.theme-light .terminal-list-boot-overlay.is-refresh {
            background: rgba(248, 250, 252, 0.48);
        }
        .terminal-list-boot-card {
            width: min(336px, calc(100vw - 40px));
            padding: 0;
            overflow: hidden;
            border-radius: 16px;
            text-align: center;
            background: rgba(15, 23, 42, 0.96);
            border: 1px solid rgba(148, 163, 184, 0.28);
            box-shadow: 0 22px 50px rgba(0, 0, 0, 0.38);
            color: #f8fafc;
        }
        body.theme-light .terminal-list-boot-card {
            background: #fff;
            border-color: #e2e8f0;
            color: #0f172a;
            box-shadow: 0 22px 50px rgba(15, 23, 42, 0.14);
        }
        .terminal-list-boot-brand {
            background: #070b16;
            padding: 18px 24px 16px;
            border-bottom: 1px solid rgba(234, 179, 8, 0.18);
        }
        .terminal-list-boot-logo {
            display: block;
            height: 32px;
            width: auto;
            max-width: 220px;
            margin: 0 auto;
            object-fit: contain;
        }
        .terminal-list-boot-body {
            padding: 18px 24px 20px;
        }
        .terminal-list-boot-title {
            font-size: 13px;
            font-weight: 600;
            letter-spacing: 0.02em;
            margin: 0 0 14px;
            color: #94a3b8;
        }
        body.theme-light .terminal-list-boot-title {
            color: #64748b;
        }
        .terminal-list-boot-bar {
            height: 5px;
            border-radius: 999px;
            background: rgba(148, 163, 184, 0.22);
            overflow: hidden;
        }
        body.theme-light .terminal-list-boot-bar {
            background: #e2e8f0;
        }
        .terminal-list-boot-bar-fill {
            display: block;
            height: 100%;
            width: 0%;
            border-radius: 999px;
            background: linear-gradient(90deg, #60a5fa, #2563eb);
            transition: width 0.18s ease;
        }
        .terminal-list-boot-pct {
            margin-top: 8px;
            font-size: 12px;
            font-weight: 700;
            font-variant-numeric: tabular-nums;
            color: #93c5fd;
        }
        body.theme-light .terminal-list-boot-pct { color: #2563eb; }
        .terminal-list-boot-cancel {
            display: none;
            margin: 16px auto 0;
            min-width: 88px;
            padding: 7px 18px;
            border: 1px solid rgba(148, 163, 184, 0.28);
            border-radius: 8px;
            background: rgba(148, 163, 184, 0.08);
            color: #94a3b8;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
        }
        .terminal-list-boot-overlay.is-refresh .terminal-list-boot-cancel {
            display: inline-block;
        }
        body.theme-light .terminal-list-boot-cancel {
            border-color: #e2e8f0;
            background: #f8fafc;
            color: #64748b;
        }
        .terminal-list-boot-cancel:hover {
            border-color: #cbd5e1;
            color: #475569;
        }
        body.theme-light .terminal-list-boot-cancel:hover {
            background: #f1f5f9;
            color: #475569;
        }
        .hc-col-moneypct {
            position: relative;
            overflow: visible;
        }
        .scan-preset-star {
            position: absolute;
            right: -2px;
            top: 50%;
            transform: translateY(-50%);
            width: 24px;
            height: 24px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
            pointer-events: auto;
            cursor: default;
            z-index: 3;
        }
        .scan-preset-star .scan-preset-coin {
            display: block;
            width: 24px;
            height: 24px;
            object-fit: contain;
        }
        .scan-preset-star-tip {
            position: fixed;
            z-index: 9999;
            pointer-events: none;
            white-space: pre;
            font-size: 12px;
            line-height: 1.45;
            padding: 6px 10px;
            border-radius: 6px;
            background: rgba(15, 23, 42, 0.92);
            color: #f8fafc;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
        }
        .scan-preset-star--green {
            color: #22c55e;
        }
        .scan-preset-star--red {
            color: #ef4444;
        }
