        * { margin: 0; padding: 0; box-sizing: border-box; }
        :root {
            --bg: #f8f9fc;
            --surface: #ffffff;
            --surface2: #f0f2f5;
            --border: #e2e5ea;
            --text: #1a1d27;
            --text2: #5a5f72;
            --accent: #4f46e5;
            --accent-light: #eef2ff;
            --green: #16a34a;
            --green-light: #dcfce7;
            --red: #dc2626;
            --red-light: #fee2e2;
            --orange: #d97706;
            --blue: #2563eb;
            --cyan: #0891b2;
            --radius: 12px;
        }
        body {
            font-family: 'Rubik', 'DM Sans', system-ui, sans-serif;
            background: var(--bg);
            color: var(--text);
            padding: 24px 32px;
            line-height: 1.6;
            font-size: 15px;
            max-width: 1400px;
            margin: 0 auto;
        }
        .header-top {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            gap: 12px;
            padding: 12px 24px;
            margin-bottom: 16px;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            font-size: 0.82rem;
            color: var(--text2);
            min-height: 52px;
            box-shadow: 0 1px 3px rgba(0,0,0,.04);
        }
        .page-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: 24px 0 28px;
            padding: 20px 24px;
            background: linear-gradient(135deg, var(--accent) 0%, #6366f1 100%);
            border-radius: var(--radius);
            box-shadow: 0 4px 16px rgba(79,70,229,0.15);
        }
        .page-header h1 {
            font-size: 1.8rem;
            font-weight: 800;
            color: #fff;
            display: flex;
            align-items: center;
            gap: 14px;
        }
        #monthSelect option { color: #333; background: #fff; }
        .header-actions { display: flex; gap: 10px; align-items: center; }
        .header-actions .btn { background: rgba(255,255,255,0.15); color: #fff; border-color: rgba(255,255,255,0.3); }
        .header-actions .btn:hover { background: rgba(255,255,255,0.25); border-color: #fff; color: #fff; }
        .header-actions .badge-loading { background: rgba(255,255,255,0.2); color: #fff; }
        .header-actions .badge-ready { background: rgba(255,255,255,0.2); color: #dcfce7; }
        .header-actions .badge-error { background: rgba(220,38,38,0.3); color: #fca5a5; }
        .badge { padding: 5px 14px; border-radius: 20px; font-size: 0.82rem; font-weight: 600; }
        .badge-loading { background: #fef3c7; color: #92400e; }
        .badge-ready { background: var(--green-light); color: var(--green); }
        .badge-error { background: var(--red-light); color: var(--red); }
        .btn {
            padding: 9px 18px;
            border: 1px solid var(--border);
            background: var(--surface);
            color: var(--text);
            border-radius: 8px;
            cursor: pointer;
            font-size: 0.88rem;
            font-weight: 500;
            font-family: inherit;
            transition: all .15s;
        }
        .btn:hover { border-color: var(--accent); color: var(--accent); }
        .btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
        .btn-primary:hover { background: #4338ca; }
        .btn-sm { padding: 6px 12px; font-size: 0.82rem; }
        .btn-export { background: var(--green-light); border-color: var(--green); color: var(--green); font-weight: 600; }
        .btn-export:hover { background: var(--green); color: #fff; }
        .btn-detail { background: var(--accent-light); border-color: var(--accent); color: var(--accent); font-weight: 600; }
        .btn-detail:hover { background: var(--accent); color: #fff; }
        .section {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 24px;
            margin-bottom: 24px;
            box-shadow: 0 1px 3px rgba(0,0,0,.04);
        }
        .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
        .section-title { font-size: 1.3rem; font-weight: 700; color: var(--text); }
        .section-subtitle { font-size: 0.9rem; color: var(--text2); margin-top: 2px; }
        .section-actions { display: flex; gap: 8px; }
        .summary-row { display: flex; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
        .summary-box { background: var(--surface2); border-radius: 10px; padding: 16px 20px; flex: 1; min-width: 180px; text-align: center; }
        .summary-box .label { font-size: 0.85rem; color: var(--text2); margin-bottom: 4px; }
        .summary-box .value { font-size: 1.6rem; font-weight: 700; }
        .summary-box .sub { font-size: 0.82rem; color: var(--text2); margin-top: 2px; }
        table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
        th, td { padding: 10px 14px; text-align: right; border-bottom: 1px solid var(--border); }
        th { background: var(--surface2); color: var(--text2); font-weight: 600; font-size: 0.82rem; }
        tr:hover { background: rgba(79, 70, 229, 0.03); }
        tr.total-row { background: var(--accent-light); font-weight: 700; }
        tr.total-row td { border-top: 2px solid var(--accent); font-size: 0.95rem; }
        .table-wrap { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
        .mono { font-family: 'DM Sans', monospace; direction: ltr; unicode-bidi: bidi-override; text-align: right; }
        .num-bold { font-weight: 700; }
        .text-green { color: var(--green); }
        .text-red { color: var(--red); }
        .text-muted { color: var(--text2); }
        .fw-bold { font-weight: 700; }
        .loading-overlay {
            position: fixed; inset: 0;
            background: #eeedf5;
            display: flex; justify-content: center; align-items: center;
            z-index: 100;
        }
        .loading-simple {
            text-align: center; max-width: 420px; width: 100%; padding: 40px;
        }
        .loading-title { font-size: 1.8rem; font-weight: 800; color: var(--text); margin-bottom: 8px; }
        .loading-sub { font-size: 1rem; color: var(--text2); margin-bottom: 28px; }
        .progress-bar-wrap {
            width: 100%; height: 14px; background: #ddd8f0;
            border-radius: 7px; overflow: hidden; margin: 0 auto 12px;
        }
        .progress-bar {
            height: 100%; width: 0%; border-radius: 7px;
            background: linear-gradient(90deg, #4f46e5, #06b6d4);
            transition: width 0.4s ease;
        }
        .progress-pct { font-size: 1.3rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
        .loading-realtime { font-size: 0.85rem; color: var(--text2); margin-bottom: 20px; }
        .progress-list { list-style: none; font-size: 0.82rem; text-align: right; max-width: 360px; margin: 0 auto; }
        .progress-list li { padding: 3px 0; display: flex; align-items: center; gap: 8px; }
        .progress-list .done { color: var(--green); }
        .progress-list .loading { color: var(--orange); }
        .progress-list .pending { color: var(--text2); opacity: 0.5; }
        @keyframes spin { to { transform: rotate(360deg); } }
        .note-box { background: #fef3c7; border: 1px solid #fcd34d; border-radius: 8px; padding: 12px 16px; font-size: 0.85rem; color: #92400e; margin-top: 12px; }
