﻿:root {
    --bg: #070b12;
    --bg-deep: #05080d;
    --surface: #101824;
    --surface-raised: #152131;
    --surface-soft: #1a293a;
    --surface-field: #0d1622;
    --line: rgba(166, 187, 211, 0.16);
    --line-strong: rgba(166, 187, 211, 0.28);
    --line-gold: rgba(214, 181, 111, 0.34);
    --text: #edf3fa;
    --text-soft: #c5d2df;
    --muted: #96a8ba;
    --gold: #d6b56f;
    --gold-bright: #f0d28e;
    --blue: #6897c8;
    --green: #78a978;
    --orange: #c78a55;
    --danger: #d66f6f;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-soft: 0 6px 10px rgba(0, 0, 0, 0.24);
}
[v-cloak] {
    display: none !important;
}
.main-boot-screen {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: grid;
    place-items: center;
    padding: 24px;
    pointer-events: none;
}
#app:not([v-cloak]) + .main-boot-screen {
    display: none;
}
.main-boot-card {
    min-width: min(340px, calc(100vw - 40px));
    padding: 22px 26px;
    border: 1px solid rgba(204, 229, 255, 0.16);
    border-radius: 14px;
    background: rgba(7, 14, 22, 0.78);
    color: var(--text);
    text-align: center;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32);
}
.main-boot-title {
    color: var(--gold-bright);
    font-weight: 850;
    margin-bottom: 6px;
}
.main-boot-subtitle {
    color: var(--text-soft);
    font-size: 0.84rem;
}
* {
    box-sizing: border-box;
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
    font-size: 17px;
}
button,
input,
select,
summary,
[role="button"] {
    -webkit-tap-highlight-color: rgba(214, 181, 111, 0.18);
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible {
    outline: 2px solid rgba(240, 210, 142, 0.72);
    outline-offset: 2px;
}
button:disabled,
select:disabled,
input:disabled,
.mobile-quick-add:disabled,
.delete-batch-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    background-image:
        radial-gradient(ellipse at 50% -10%, rgba(155, 105, 45, 0.18) 0%, transparent 48%),
        radial-gradient(ellipse at 85% 100%, rgba(32, 68, 108, 0.2) 0%, transparent 46%),
        linear-gradient(180deg, #070b12 0%, #0a111a 56%, #0d1520 100%);
    transition: background-color 0.3s;
    padding-top: 52px;
    color: var(--text);
}

/* ===== TOP STATS BAR ===== */
.top-stats-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: linear-gradient(180deg, rgba(16,22,35,0.97) 0%, rgba(16,22,35,0.92) 100%);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    padding: 8px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 200;
    border-bottom: 1px solid rgba(180,150,100,0.15);
    box-shadow: 0 1px 20px rgba(0,0,0,0.4);
}
.top-stat-item {
    color: #b8a88a;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.top-stat-icon { font-size: 0.9rem; }
.top-stat-pulse {
    color: #f59e0b;
    font-weight: 600;
    font-size: 0.85rem;
    animation: none;
    background: rgba(245,158,11,0.1);
    padding: 3px 12px;
    border-radius: 20px;
    border: 1px solid rgba(245,158,11,0.25);
}
@keyframes topPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ===== BOARD ===== */
.board {
    max-width: 1300px;
    width: 100%;
    background: linear-gradient(180deg, #141c2a 0%, #121a26 50%, #111822 100%);
    border-radius: 24px;
    padding: 28px 28px 110px;
    margin: 0 auto;
    box-shadow: 0 4px 40px rgba(0,0,0,0.5), 0 1px 0 rgba(200,170,120,0.08) inset, 0 -1px 0 rgba(0,0,0,0.3) inset;
    border: 1px solid rgba(180,150,100,0.08);
}
        .title-section h1 {
            color: #f0e0c0;
            font-size: 1.7rem;
            font-weight: 700;
            margin: 0 0 4px 0;
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
            letter-spacing: 1px;
        }
        .title-section h1 span {
            background: linear-gradient(135deg, #2a3040, #3a4050);
            padding: 3px 16px;
            border-radius: 20px;
            font-size: 0.82rem;
            color: #d4c090;
            font-weight: 500;
            border: 1px solid rgba(180,150,100,0.2);
        }
        .description {
            color: #8899aa;
            font-size: 0.82rem;
            letter-spacing: 0.5px;
        }
.storage-warning {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: -4px 0 16px;
    padding: 11px 14px;
    color: #ffd5d5;
    background: rgba(120, 28, 38, 0.38);
    border: 1px solid rgba(255, 100, 112, 0.62);
    border-radius: 12px;
    font-size: 0.84rem;
    line-height: 1.55;
}
.storage-warning strong {
    flex: 0 0 auto;
    color: #ff929c;
}
.tr-main-bg { background-color: #2a4a6a !important; }
.tr-sub-bg { background-color: #3a6a3a !important; }
.tr-other-bg { background-color: #8a5a3a !important; }
.records-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 18px;
    background: rgba(20,28,40,0.6);
    border-radius: 16px;
    border: 1px solid rgba(180,150,100,0.08);
}
 .records-table th {
    background: linear-gradient(180deg, rgba(30,40,55,0.9), rgba(25,35,50,0.9));
    color: #d4c090;
    padding: 11px 14px;
    text-align: left;
    border-bottom: 2px solid rgba(180,150,100,0.2);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: static;
    top: auto;
    z-index: auto;
}
        .records-table td {
            padding: 7px 14px;
            border-bottom: 1px solid rgba(180,150,100,0.06);
            color: #ccddee;
            font-size: 0.85rem;
        }
        .records-table tbody tr { transition: background 0.15s ease; }
        .records-table tbody tr:hover { background: rgba(180,150,100,0.07); }
        .records-table tbody tr:last-child td { border-bottom: none; }
        .type-selector, .status-selector { display: flex; gap: 4px; flex-wrap: wrap; }
        .type-option, .status-option {
            background: #2a3a4a;
            padding: 4px 10px;
            border-radius: 40px;
            font-size: 0.75rem;
            cursor: pointer;
            border: 1px solid #5a7a9a;
            color: #f0f4ff;
        }
        .type-option.selected, .status-option.selected {
            background: rgba(78, 108, 138, 0.92);
            border: 2px solid #f0d28e;
            color: #ffffff;
            padding: 3px 9px;
        }
        .readonly-mode .type-option,
        .readonly-mode .status-option,
        .readonly-mode .fraction-input input,
        .readonly-mode .profit-input,
        .readonly-mode .remove-btn,
        .readonly-mode .badge-streak {
            pointer-events: none;
            opacity: 0.7;
            cursor: not-allowed;
        }
        .readonly-mode .fraction-input button {
            pointer-events: none;
            opacity: 0.5;
        }
        .fraction-input { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
        .fraction-input input {
            width: 50px;
            background: #1e2c3c;
            border: 1px solid #5a7a9a;
            color: #ffffff;
            padding: 4px 6px;
            border-radius: 30px;
            text-align: center;
        }
        .fraction-input input::-webkit-outer-spin-button,
        .fraction-input input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }
        .fraction-input input[type=number] {
            -moz-appearance: textfield;
            appearance: textfield;
        }
        .fraction-input input:focus {
            border-color: #ffd966;
            outline: none;
        }
        .fraction-input span { color: #ffecb3; }
        .profit-input {
            width: 70px;
            background: #1e2c3c;
            border: 1px solid #5a7a9a;
            border-radius: 30px;
            padding: 4px 6px;
            color: white;
        }
        .profit-input::-webkit-outer-spin-button,
        .profit-input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }
        .profit-input[type=number] {
            -moz-appearance: textfield;
            appearance: textfield;
        }
        .profit-input:focus {
            border-color: #f59e0b;
            outline: none;
            box-shadow: 0 0 0 2px rgba(245,158,11,0.15);
        }
        .remove-btn {
            background: #4a3a3a;
            border: none;
            color: #ffb5b5;
            border-radius: 30px;
            cursor: pointer;
            width: 24px;
            height: 24px;
            font-size: 1rem;
        }
        .remove-btn:hover { background: #6a4a4a; }
        
        .stats-area {
            background: rgba(25,35,50,0.7);
            border-radius: 16px;
            padding: 14px 24px;
            margin-top: 20px;
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            border: 1px solid rgba(180,150,100,0.1);
            gap: 12px;
        }
        .stats-left {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            font-size: 0.82rem;
            color: #ccd8e8;
        }
        .stats-left span {
            background: rgba(40,55,75,0.6);
            padding: 5px 16px;
            border-radius: 20px;
            color: #d4c090;
            font-weight: 500;
            border: 1px solid rgba(180,150,100,0.1);
        }
        .stats-right {
            font-weight: 600;
            color: #d4c090;
            background: rgba(40,55,75,0.6);
            padding: 5px 20px;
            border-radius: 20px;
            border: 1px solid rgba(180,150,100,0.1);
        }
        .bubble {
            padding: 15px 44px;
            border-radius: 50px;
            font-weight: 700;
            color: white;
            cursor: pointer;
            text-align: center;
            min-width: 140px;
            transition: all 0.2s ease;
            border: none;
            box-shadow: 0 4px 15px rgba(0,0,0,0.3);
            letter-spacing: 0.5px;
            font-size: 0.95rem;
        }
        .bubble:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.4); filter: brightness(1.1); }
        .main-bubble { background: linear-gradient(135deg, #2a5578, #3a6a90); }
        .sub-bubble { background: linear-gradient(135deg, #3a6a3a, #4a8545); }
        .other-bubble { background: linear-gradient(135deg, #7a5030, #9a6840); }
        .fixed-quick-bar {
            position: fixed;
            bottom: 24px;
            left: 0;
            right: 0;
            display: flex;
            justify-content: center;
            z-index: 250;
            pointer-events: none;
        }
        .quick-bar-content {
            background: rgba(25,35,50,0.95);
            backdrop-filter: blur(20px) saturate(130%);
            -webkit-backdrop-filter: blur(20px) saturate(130%);
            border-radius: 60px;
            padding: 10px 28px;
            display: flex;
            align-items: center;
            gap: 20px;
            flex-wrap: wrap;
            border: 1px solid rgba(180,150,100,0.15);
            pointer-events: auto;
            box-shadow: 0 8px 30px rgba(0,0,0,0.5);
            transition: padding 0.2s ease, gap 0.2s ease;
        }
        .quick-bar-content.compact {
            padding: 7px 14px;
            gap: 10px;
        }
        .quick-label {
            color: #d4c090;
            font-size: 0.9rem;
            font-weight: 600;
            background: rgba(40,55,75,0.5);
            padding: 8px 18px;
            border-radius: 40px;
            letter-spacing: 0.5px;
        }
        .quick-toggle {
            border: 1px solid rgba(180,150,100,0.18);
            cursor: pointer;
        }
        .undo-btn {
            border: 1px solid rgba(214,181,111,0.32);
            cursor: pointer;
            color: #f0d28e;
        }
        .undo-btn:disabled {
            cursor: not-allowed;
            opacity: 0.45;
        }
        .type-bubbles { display: flex; gap: 16px; flex-wrap: wrap; }
        .mobile-sequence-quick-actions {
            display: none;
        }
        .mobile-empty-quick-actions {
            display: none;
        }
        .mobile-quick-add {
            border: none;
            color: #fff;
            border-radius: 8px;
            padding: 7px 12px;
            font-size: 0.78rem;
            font-weight: 700;
            line-height: 1;
            cursor: pointer;
            white-space: nowrap;
            transition: filter 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
        }
        .mobile-quick-add:hover:not(:disabled) {
            filter: brightness(1.08);
            transform: translateY(-1px);
        }
        .mobile-quick-add:disabled {
            opacity: 0.52;
            cursor: not-allowed;
        }
        .toast {
            position: fixed;
            bottom: 130px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(30,40,55,0.95);
            backdrop-filter: blur(10px);
            color: #f0e0c0;
            padding: 10px 28px;
            border-radius: 40px;
            border: 1px solid rgba(180,150,100,0.2);
            z-index: 300;
            opacity: 0;
            transition: opacity 0.3s;
            pointer-events: none;
            font-weight: 500;
            box-shadow: 0 4px 20px rgba(0,0,0,0.4);
        }
        .toast.show { opacity: 1; }
        .user-header-info {
            display: flex;
            align-items: center;
            gap: 12px;
            background: rgba(30,40,55,0.7);
            padding: 5px 16px;
            border-radius: 24px;
            color: #d4c090;
            border: 1px solid rgba(180,150,100,0.1);
        }
        .user-buttons {
            display: flex;
            gap: 8px;
        }
        .change-pwd-btn {
            background: rgba(60,80,110,0.5);
            border: 1px solid rgba(180,150,100,0.15);
            padding: 5px 14px;
            border-radius: 20px;
            color: #ccd8e8;
            cursor: pointer;
            font-size: 0.78rem;
            transition: all 0.2s;
        }
        .change-pwd-btn:hover {
            background: rgba(80,110,150,0.6);
            color: #f0e0c0;
        }
        .logout-btn {
            background: rgba(130,60,60,0.5);
            border: 1px solid rgba(200,100,100,0.2);
            padding: 5px 16px;
            border-radius: 20px;
            color: #eecccc;
            cursor: pointer;
            font-size: 0.78rem;
            transition: all 0.2s;
        }
        .logout-btn:hover { background: rgba(160,70,70,0.6); }
        .badge-streak {
            padding: 2px 8px;
            border-radius: 20px;
            font-weight: 700;
            font-size: 0.78rem;
            cursor: pointer;
            display: inline-block;
            background: #8899aa;
            color: #1a1f27;
        }
        .badge-streak.big-burst { background: #e05555; color: white; }
        .badge-streak.giant-burst { background: #b91c1c; color: white; }
        .badge-streak.small-burst { background: #e09050; color: white; }
        .badge-streak.burst { background: #d85d4f; color: white; }
        .badge-streak.recover { background: #7c5fc7; color: white; }
        .badge-streak.wave { background: #4f7fa8; color: white; }
        .badge-streak.eat { background: #7479c9; color: white; }
        .badge-streak.deep-eat { background: #4b557f; color: white; }
        .badge-streak.loss { background: #6a8fd4; color: white; }
        .badge-streak.turtle { background: #8a5a3a; color: white; }
        .badge-streak.normal { background: #8899aa; }
        
        .prediction-container {
            background: rgba(25,35,50,0.7);
            border-radius: 16px;
            padding: 16px 24px;
            border: 1px solid rgba(180,150,100,0.1);
            flex: 1;
        }
        .prediction-label {
            color: #d4c090;
            font-weight: 600;
            background: rgba(40,55,75,0.5);
            padding: 5px 16px;
            border-radius: 16px;
            font-size: 0.82rem;
            letter-spacing: 0.5px;
            display: inline-block;
            margin-bottom: 10px;
        }
        .ai-predict-btn {
            background: #5a6a4a;
            border: none;
            color: white;
            padding: 6px 20px;
            border-radius: 40px;
            cursor: pointer;
            font-size: 0.85rem;
            transition: background 0.2s, transform 0.15s;
        }
        .ai-predict-btn:hover {
            background: #7a8a6a;
            transform: translateY(-1px);
        }
        .ai-predict-btn:disabled {
            background: #3a4a3a;
            cursor: not-allowed;
            transform: none;
        }
        .predict-count {
            background: #2a3e56;
            padding: 4px 12px;
            border-radius: 40px;
            font-size: 0.75rem;
            color: #ffecb3;
        }
        .predict-count-admin {
            background: #d4af37;
            padding: 4px 12px;
            border-radius: 40px;
            font-size: 0.75rem;
            color: #1f2a3a;
            font-weight: bold;
        }
.prediction-text {
    background: rgba(30,42,58,0.6);
    padding: 16px 20px;
    border-radius: 14px;
    font-weight: 400;
    color: #ddeeff;
    white-space: pre-wrap !important;
    font-size: 0.83rem;
    line-height: 1.8 !important;
    margin-top: 12px;
    word-wrap: break-word;
    max-height: none;
    overflow-y: visible;
    border: 1px solid rgba(180,150,100,0.06);
}
        .prediction-controls {
            display: flex;
            gap: 10px;
            margin-top: 8px;
            justify-content: flex-end;
        }
        .control-btn {
            background: #3a5068;
            border: none;
            color: white;
            padding: 4px 12px;
            border-radius: 30px;
            font-size: 0.7rem;
            cursor: pointer;
            transition: background 0.15s;
        }
        .control-btn:hover {
            background: #4a6a8a;
        }
        .burst-panel-toggle {
            background: #7a5830;
            border: 1px solid rgba(255, 219, 143, 0.28);
            color: #fff2c8;
            font-weight: 700;
        }
        .burst-panel-toggle.active {
            background: #8a5a4a;
            border-color: rgba(255, 180, 120, 0.42);
        }
        .prediction-compact-summary {
            max-width: min(520px, 100%);
            color: #d7e6f6;
            background: rgba(32, 49, 70, 0.72);
            border: 1px solid rgba(150,175,205,0.16);
            border-radius: 999px;
            padding: 5px 12px;
            font-size: 0.76rem;
            line-height: 1.35;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .v18-collapsible-panel {
            margin-top: 8px;
        }
        .clear-btn {
            background: #8a5a5a;
        }
        .clear-btn:hover {
            background: #aa6a6a;
        }
.local-prediction {
    background: rgba(28,43,60,0.76);
    padding: 12px 20px;
    border-radius: 16px;
    color: #cad7e6;
    font-size: 0.82rem;
    line-height: 1.85;
    margin-top: 10px;
    white-space: pre-wrap !important;
    max-height: none !important;
    overflow: visible !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    border: 1px solid rgba(150,175,205,0.12);
}
.prediction-bias {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 8px;
    font-weight: 800;
    line-height: 1.35;
}
.prediction-bias-main {
    color: #9ed0ff;
    background: rgba(104, 151, 200, 0.18);
    border: 1px solid rgba(104, 151, 200, 0.36);
}
.prediction-bias-sub {
    color: #9fe19f;
    background: rgba(120, 169, 120, 0.18);
    border: 1px solid rgba(120, 169, 120, 0.38);
}
.prediction-bias-even {
    color: #f0d28e;
    background: rgba(214, 181, 111, 0.16);
    border: 1px solid rgba(214, 181, 111, 0.34);
}
.prediction-decision-card {
    margin-top: 10px;
    padding: 12px 14px;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    background: rgba(20, 32, 48, 0.9);
    border: 1px solid rgba(150,175,205,0.18);
    border-radius: 10px;
}
.prediction-decision-main {
    flex: 1 1 270px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}
.prediction-decision-kicker {
    color: #d6b56f;
    font-size: 0.72rem;
    font-weight: 700;
}
.prediction-decision-main strong {
    color: #f0d28e;
    font-size: 1rem;
    line-height: 1.25;
}
.prediction-decision-main span:last-child {
    color: #b8c7d8;
    font-size: 0.78rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.prediction-decision-metrics {
    flex: 2 1 430px;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.prediction-decision-metrics div {
    min-width: 0;
    padding: 8px 10px;
    background: rgba(7, 12, 20, 0.28);
    border: 1px solid rgba(150,175,205,0.12);
    border-radius: 8px;
}
.prediction-decision-metrics span {
    display: block;
    margin-bottom: 4px;
    color: #8fa2b8;
    font-size: 0.68rem;
}
.prediction-decision-metrics strong {
    display: block;
    color: #dbe6f2;
    font-size: 0.82rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.prediction-decision-card.tone-main .prediction-decision-main strong {
    color: #9ed0ff;
}
.prediction-decision-card.tone-sub .prediction-decision-main strong {
    color: #9fe19f;
}
.prediction-decision-card.tone-even .prediction-decision-main strong {
    color: #f0d28e;
}
.prediction-decision-card.tone-wait .prediction-decision-main strong {
    color: #cad7e6;
}
@media (max-width: 768px) {
    .prediction-decision-card {
        padding: 10px;
        gap: 10px;
    }
    .prediction-decision-main {
        flex-basis: 100%;
    }
    .prediction-decision-metrics {
        flex-basis: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }
}
@media (max-width: 380px) {
    .prediction-decision-metrics {
        grid-template-columns: 1fr;
    }
}
.v17-summary-card {
    margin-top: 12px;
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(34,49,68,0.92);
    border: 1px solid rgba(150,175,205,0.18);
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}
.v17-summary-card.signal-high {
    background: rgba(92,45,38,0.92);
    border-color: rgba(255,130,90,0.58);
}
.v17-summary-card.signal-good {
    background: rgba(82,68,28,0.92);
    border-color: rgba(245,190,70,0.55);
}
.v17-summary-card.signal-blue {
    background: rgba(34, 58, 86, 0.92);
    border-color: rgba(105, 160, 220, 0.62);
}
.v17-summary-card.signal-purple {
    background: rgba(58, 43, 91, 0.92);
    border-color: rgba(175, 128, 255, 0.62);
}
.v17-summary-title {
    color: #f0d9a0;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.v17-summary-text {
    color: #edf3fb;
    white-space: pre-wrap;
    line-height: 1.65;
    font-size: 0.82rem;
}
.v18-action-card {
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(16, 27, 40, 0.94);
    border: 1px solid rgba(150,175,205,0.18);
    color: #edf3fb;
}
.v18-action-card.tone-strong,
.v18-action-card.tone-high {
    border-color: rgba(255,130,90,0.62);
    background: rgba(58, 34, 32, 0.94);
}
.v18-action-card.tone-watch,
.v18-action-card.tone-good {
    border-color: rgba(245,190,70,0.5);
    background: rgba(48, 41, 24, 0.94);
}
.v18-action-card.tone-blue {
    border-color: rgba(105, 160, 220, 0.58);
    background: rgba(24, 43, 62, 0.94);
}
.v18-action-card.tone-purple {
    border-color: rgba(175, 128, 255, 0.58);
    background: rgba(42, 32, 64, 0.94);
}
.v18-action-card.tone-suppressed {
    border-color: rgba(245,158,11,0.56);
    background: rgba(54, 40, 24, 0.94);
}
.v18-action-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.v18-action-kicker {
    color: #aebfd1;
    font-size: 0.72rem;
    margin-bottom: 4px;
}
.v18-action-title {
    color: #fff3c7;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.3;
}
.v18-action-signal {
    flex: 0 0 auto;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(214,181,111,0.14);
    border: 1px solid rgba(214,181,111,0.28);
    color: #ffe29d;
    font-size: 0.74rem;
    font-weight: 700;
}
.v18-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 8px;
    margin-top: 12px;
}
.v18-action-metric {
    min-width: 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.06);
}
.v18-action-metric span {
    display: block;
    color: #aebfd1;
    font-size: 0.7rem;
    margin-bottom: 3px;
}
.v18-action-metric strong {
    display: block;
    color: #f7fbff;
    font-size: 0.78rem;
    line-height: 1.35;
    font-weight: 700;
    overflow-wrap: anywhere;
}
.v18-action-reason,
.v18-action-next,
.v18-action-warning {
    margin-top: 10px;
    line-height: 1.65;
    font-size: 0.8rem;
}
.v18-action-reason {
    color: #dbe8f6;
}
.v18-action-next {
    color: #b9d2ef;
    padding-top: 9px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.v18-action-warning {
    color: #ffe0a3;
    background: rgba(245,158,11,0.12);
    border: 1px solid rgba(245,158,11,0.24);
    border-radius: 8px;
    padding: 7px 9px;
}
.prediction-detail-toggle {
    margin-top: 10px;
    border: 1px solid rgba(150,175,205,0.2);
    background: rgba(42,62,86,0.8);
    color: #d5e2f0;
    border-radius: 20px;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 0.76rem;
}
.prediction-detail-toggle:hover {
    background: rgba(62,82,106,0.95);
}
.prediction-popup-body {
    min-height: 100vh;
    margin: 0;
    padding: 22px;
    background: #101923;
    color: #f1f5f9;
}
.prediction-popup-body .prediction-header {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 14px 16px;
    margin: -22px -22px 16px;
    background: #1d2b3a;
    border-bottom: 1px solid rgba(185,205,225,0.22);
    box-shadow: 0 4px 14px rgba(0,0,0,0.28);
}
.prediction-popup-body .prediction-title {
    color: #ffe09a;
    font-size: 1rem;
    font-weight: 700;
}
.prediction-popup-body .prediction-content {
    color: #f1f5f9;
    background: #1a2938;
    border: 1px solid rgba(185,205,225,0.22);
    border-radius: 14px;
    padding: 16px 18px;
    font-size: 0.9rem;
    line-height: 1.9;
    overflow-wrap: break-word;
    word-break: normal;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.prediction-popup-body .update-time {
    color: #b7c8da;
    margin-top: 12px;
    font-size: 0.76rem;
    text-align: right;
}
.profit-total {
    font-size: 1.1rem;
    font-weight: 700;
    color: #d4c090;
    background: rgba(40,55,75,0.5);
    padding: 8px 22px;
    border-radius: 20px;
    border: 1px solid rgba(180,150,100,0.1);
}
        .empty-message { text-align: center; color: #8899aa; padding: 36px 20px; font-style: italic; }
        .control-bar {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            background: rgba(25,35,50,0.6);
            padding: 10px 18px;
            border-radius: 16px;
            margin-bottom: 20px;
            align-items: center;
            border: 1px solid rgba(180,150,100,0.08);
        }
        .date-input {
            background: rgba(30,42,55,0.7);
            border: 1px solid rgba(180,150,100,0.15);
            color: #ccd8e8;
            padding: 6px 12px;
            border-radius: 14px;
            font-size: 0.85rem;
            transition: border-color 0.2s, box-shadow 0.2s;
        }
        .date-input:focus {
            border-color: #f59e0b;
            outline: none;
            box-shadow: 0 0 0 2px rgba(245,158,11,0.15);
        }
        .today-btn, .new-batch-btn, .delete-batch-btn, .export-btn {
            background: rgba(50,65,85,0.6);
            border: 1px solid rgba(180,150,100,0.12);
            color: #ccd8e8;
            padding: 6px 16px;
            border-radius: 14px;
            cursor: pointer;
            font-size: 0.82rem;
            transition: all 0.2s;
        }
        .today-btn:hover, .new-batch-btn:hover, .delete-batch-btn:hover, .export-btn:hover {
            background: rgba(70,90,120,0.7);
            color: #f0e0c0;
        }
        .new-batch-btn { background: rgba(60,90,50,0.6); }
        .new-batch-btn:hover { background: rgba(80,120,70,0.7); }
        .delete-batch-btn { background: rgba(120,50,50,0.5); }
        .delete-batch-btn:hover { background: rgba(150,60,60,0.6); }
        .export-btn { background: rgba(80,60,120,0.5); }
        .export-btn:hover { background: rgba(110,80,150,0.6); }
        .danger-menu {
            position: relative;
        }
        .danger-menu summary {
            list-style: none;
            background: rgba(50,65,85,0.6);
            border: 1px solid rgba(180,150,100,0.12);
            color: #ccd8e8;
            padding: 6px 16px;
            border-radius: 14px;
            cursor: pointer;
            font-size: 0.82rem;
            transition: all 0.2s;
            user-select: none;
        }
        .danger-menu summary::-webkit-details-marker {
            display: none;
        }
        .danger-menu summary::after {
            content: " ▾";
            color: #9fb0c2;
            font-size: 0.72rem;
        }
        .danger-menu[open] summary {
            background: rgba(70,90,120,0.7);
            color: #f0e0c0;
        }
        .danger-menu[open] summary::after {
            content: " ▴";
        }
        .danger-menu .danger-action {
            position: absolute;
            right: 0;
            top: calc(100% + 6px);
            z-index: 40;
            min-width: 140px;
            border-color: rgba(214,111,111,0.38);
            box-shadow: 0 8px 18px rgba(0,0,0,0.36);
        }
        .batch-selector {
            display: flex;
            align-items: center;
            gap: 8px;
            background: rgba(30,42,55,0.5);
            padding: 4px 12px;
            border-radius: 14px;
        }
        .batch-selector span {
            color: #ffecb3;
            font-size: 0.82rem;
            font-weight: 600;
        }
        .batch-selector select {
            background: rgba(50,65,85,0.6);
            color: #ccd8e8;
            border: 1px solid rgba(180,150,100,0.12);
            padding: 4px 8px;
            border-radius: 10px;
            outline: none;
            font-size: 0.82rem;
        }
        .date-label { color: #d4c090; font-size: 0.82rem; }
        .bottom-action { display: flex; justify-content: space-between; margin-top: 20px; flex-wrap: wrap; gap: 15px; }
        .footer-bar { display: flex; justify-content: space-between; margin-top: 24px; flex-wrap: wrap; gap: 15px; color: #8899aa; font-size: 0.8rem; }
        .legend { display: flex; gap: 20px; flex-wrap: wrap; }
        .legend-item { display: flex; align-items: center; gap: 5px; font-size: 0.78rem; }
        .color-dot { width: 14px; height: 14px; border-radius: 3px; }
        .dot-main { background: #2a4a6a; }
        .dot-sub { background: #3a6a3a; }
        .dot-other { background: #8a5a3a; }
        .dot-lock { background: #b28bdc; }
        .dot-wild { background: #b1cf7a; }
        .auto-save-note { font-size: 0.72rem; color: #8899aa; background: rgba(40,55,75,0.4); padding: 3px 14px; border-radius: 12px; }
        .record-visual-panel {
            background: rgba(25,35,50,0.6);
            border-radius: 16px;
            padding: 20px 24px;
            margin: 20px 0 0 0;
            border: 1px solid rgba(180,150,100,0.08);
        }
        .visual-title {
            color: #d4c090;
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 14px;
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }
        .visual-title span {
            font-size: 0.8rem;
            color: #8899aa;
            font-weight: normal;
        }
        .marker-container {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            align-items: center;
            justify-content: flex-start;
        }
.marker-item {
    box-sizing: border-box;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 80px;
    width: 80px;
    min-width: 80px;
    max-width: 80px;
    height: 132px;
    min-height: 132px;
    max-height: 132px;
    padding: 10px 4px;
    background: rgba(30,42,55,0.6);
    border-radius: 8px;
    border: 1px solid rgba(180,150,100,0.1);
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    user-select: none;
    position: relative;
    overflow: hidden;
}
.marker-item:hover {
    border-color: #ffd966;
    box-shadow: 0 0 8px rgba(255,217,102,0.3);
}
.marker-item.oval-shape {
    border-radius: 50px;
    border-style: dashed;
    border-color: #f59e0b;
    background: rgba(255,255,255,0.05);
    box-shadow: 0 0 12px rgba(245,158,11,0.2);
}
.marker-item.oval-shape:hover {
    border-color: #ffd966;
    border-style: dashed;
    box-shadow: 0 0 16px rgba(255,217,102,0.4);
}
        .marker-number { font-size: 2rem; font-weight: 800; line-height: 1.2; }
        .marker-icon-top {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            width: 100%;
            font-size: 1rem;
            margin-bottom: 4px;
            min-height: 24px;
        }
.marker-burst-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    border-radius: 50%;
    background: rgba(7, 12, 20, 0.62);
    border: 1px solid rgba(255, 236, 179, 0.24);
    font-size: 0.82rem;
    line-height: 1;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.28);
}
.marker-burst-hint-red {
    color: #ff6a6a !important;
    text-shadow: 0 0 5px rgba(255, 88, 88, 0.68);
}
.marker-burst-hint-blue {
    color: #62b7ff !important;
    text-shadow: 0 0 5px rgba(72, 150, 255, 0.62);
}
.marker-burst-hint-yellow {
    color: #ffd966 !important;
    text-shadow: 0 0 5px rgba(255, 217, 102, 0.56);
}
.marker-burst-hint-purple {
    color: #d8a7ff !important;
    text-shadow: 0 0 6px rgba(170, 110, 255, 0.68);
}
.marker-record-burst-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 22px;
    font-size: 0.95rem;
    line-height: 1;
}
.marker-record-burst-small {
    color: #ffd966;
    text-shadow: 0 0 6px rgba(255, 217, 102, 0.58);
}
.marker-record-burst-big {
    color: #ff6a6a;
    text-shadow: 0 0 7px rgba(255, 90, 90, 0.7);
}
.marker-rush-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: auto;
    height: 20px;
    padding: 0 1px;
    color: #ff9278 !important;
    font-size: 0.86rem;
    font-weight: 900;
    line-height: 1;
}
.marker-rush-solo {
    min-width: auto;
}
.marker-inherit-hint {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: rgba(23, 12, 35, 0.76);
    border: 1px solid rgba(206, 150, 255, 0.55);
    color: #d8a7ff !important;
    font-size: 0.8rem;
    line-height: 1;
    box-shadow: 0 0 7px rgba(162, 88, 255, 0.34);
    text-shadow: 0 0 5px rgba(214, 167, 255, 0.58);
}
.marker-burst-hint-suppressed {
    border-color: rgba(255, 217, 102, 0.56);
    box-shadow: 0 0 0 1px rgba(255, 217, 102, 0.16), 0 0 7px rgba(255, 217, 102, 0.24);
}
.marker-suppression-dot {
    position: absolute;
    top: -8px;
    right: -8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: rgba(23, 18, 11, 0.94);
    border: 1px solid rgba(255, 217, 102, 0.88);
    color: #ffd966 !important;
    font-size: 0.58rem;
    line-height: 1;
    box-shadow: 0 0 7px rgba(255, 177, 77, 0.42);
    z-index: 2;
}
.marker-suppression-dot-red {
    border-color: rgba(255, 106, 106, 0.88);
    box-shadow: 0 0 7px rgba(255, 106, 106, 0.42);
}
.marker-suppression-dot-blue {
    border-color: rgba(98, 183, 255, 0.86);
    box-shadow: 0 0 7px rgba(98, 183, 255, 0.38);
}
.marker-item.marker-hint-red:not(.marker-burst-hot) {
    box-shadow: inset 0 0 0 1px rgba(255, 106, 106, 0.28);
}
.marker-item.marker-hint-blue:not(.marker-burst-hot) {
    box-shadow: inset 0 0 0 1px rgba(98, 183, 255, 0.26);
}
.marker-item.marker-hint-yellow:not(.marker-burst-hot):not(.marker-hint-inherit) {
    box-shadow: inset 0 0 0 1px rgba(255, 217, 102, 0.22);
}
.marker-item.marker-hint-purple:not(.marker-burst-hot):not(.marker-hint-red):not(.marker-hint-blue) {
    box-shadow:
        inset 0 0 0 1px rgba(194, 137, 255, 0.3),
        0 0 10px rgba(138, 92, 246, 0.18);
}
.marker-item.marker-hint-inherit:not(.marker-burst-hot):not(.marker-hint-red):not(.marker-hint-blue) {
    box-shadow: inset 0 0 0 1px rgba(196, 137, 255, 0.24);
}
.marker-item.marker-hint-yellow.marker-hint-inherit:not(.marker-burst-hot) {
    box-shadow:
        inset 0 0 0 1px rgba(255, 217, 102, 0.2),
        inset 0 -3px 0 rgba(196, 137, 255, 0.28);
}
.marker-yesterday-ghost {
    opacity: 0.72;
    filter: grayscale(0.08) saturate(0.92);
    border-style: dashed;
    border-color: rgba(214, 181, 111, 0.46);
    cursor: default;
    box-shadow: inset 0 0 0 1px rgba(214, 181, 111, 0.24);
}
.marker-yesterday-ghost:hover {
    transform: none;
    border-color: rgba(214, 181, 111, 0.58);
    box-shadow: inset 0 0 0 1px rgba(214, 181, 111, 0.3);
}
.marker-time {
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    margin-top: 8px;
    min-width: 45px;
}
.marker-time span {
    font-size: 1rem;
    font-weight: 600;
    display: inline-block;
    padding: 3px 8px;
    border-radius: 20px;
    background: rgba(0,0,0,0.3);
}
        .marker-time span[style*="color: #8cff8c"] { background: rgba(100,200,100,0.2); }
        .marker-time span[style*="color: #ff6a6a"] { background: rgba(255,100,100,0.2); }
        .marker-time span[style*="color: #ffaa66"] { background: rgba(255,170,100,0.2); }
        .marker-main { background: #2a4a6a; border-color: #6f9fda; }
        .marker-sub { background: #3a6a3a; border-color: #9fb087; }
        .marker-other { background: #8a5a3a; border-color: #f59e0b; }
        .marker-number-main { color: #7fb4ff; }
        .marker-number-sub { color: #8cff8c; }
        .marker-number-other { color: #ffb347; }
.marker-special-red {
    background: rgba(255,80,80,0.2);
    border-color: #ff6a6a !important;
    border-width: 2px;
    box-shadow: 0 0 5px rgba(255,106,106,0.3);
}
.marker-special-red .marker-number { 
    color: #ff6a6a !important; 
}
.marker-wild {
    background: rgba(100,200,100,0.15);
    border-color: #8cff8c !important;
    border-width: 2px;
}
.marker-wild .marker-number { 
    color: #6ad46a !important; 
}
        .quick-edit-hint {
            display: none;
        }
        .sequence-help-menu {
            position: relative;
        }
        .sequence-help-menu summary {
            width: 32px;
            height: 32px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            list-style: none;
            border-radius: 50%;
            border: 1px solid rgba(180,150,100,0.22);
            background: rgba(32, 49, 70, 0.72);
            color: #f0d28e;
            font-weight: 800;
            cursor: pointer;
            user-select: none;
        }
        .sequence-help-menu summary::-webkit-details-marker {
            display: none;
        }
        .sequence-help-content {
            position: absolute;
            right: 0;
            top: calc(100% + 8px);
            z-index: 45;
            width: min(320px, 88vw);
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 7px;
            padding: 10px;
            background: rgba(16, 26, 40, 0.98);
            border: 1px solid rgba(166, 187, 211, 0.22);
            border-radius: 10px;
            box-shadow: 0 10px 22px rgba(0,0,0,0.38);
        }
        .sequence-help-content span {
            color: #c5d2df;
            font-size: 0.74rem;
            line-height: 1.35;
            background: rgba(7, 12, 20, 0.28);
            border: 1px solid rgba(166, 187, 211, 0.1);
            border-radius: 8px;
            padding: 6px 7px;
        }
        .visual-legend {
            display: flex;
            gap: 20px;
            margin-top: 16px;
            padding-top: 14px;
            border-top: 1px solid #4a6a8a;
            font-size: 0.75rem;
            flex-wrap: wrap;
            color: #c0d0f0;
        }
        .visual-legend-item { display: flex; align-items: center; gap: 5px; color: #c0d0f0; }
        .admin-entry {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background: #d4af37;
            color: #1f2a3a;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 1.4rem;
            cursor: pointer;
            box-shadow: 0 8px 20px black;
            z-index: 400;
            border: 2px solid #ffecb3;
        }
        .admin-entry:hover { transform: scale(1.08); background: #ffd966; }
        .admin-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.8);
            z-index: 1100;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .admin-panel {
            background: #2a3748;
            width: 90%;
            max-width: 800px;
            max-height: 85vh;
            border-radius: 36px;
            padding: 24px;
            overflow-y: auto;
            border: 2px solid #ffd966;
        }
        .admin-panel h3 { color: #ffd966; margin-top: 0; margin-bottom: 20px; }
        .user-list { list-style: none; padding: 0; margin: 0; }
        .user-list li {
            background: #1f2e3e;
            margin: 10px 0;
            padding: 15px 20px;
            border-radius: 60px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 12px;
            cursor: pointer;
            transition: all 0.2s;
            position: relative;
        }
        .user-list li:hover { background: #2a3e56; }
        .user-info { font-weight: 500; color: #ffffff; }
        .user-status { font-size: 0.75rem; padding: 4px 12px; border-radius: 40px; background: #3a5068; }
        .user-list li.admin-user-row {
            padding-right: 54px;
        }
        .admin-row-actions {
            padding-right: 12px;
        }
        .admin-safe-actions {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            flex-wrap: wrap;
            gap: 8px;
        }
        .admin-user-menu {
            position: absolute;
            top: 10px;
            right: 12px;
            z-index: 3;
        }
        .admin-menu-trigger {
            width: 34px;
            height: 34px;
            border: 1px solid rgba(255, 217, 102, 0.35);
            border-radius: 50%;
            background: rgba(20, 30, 42, 0.92);
            color: #ffd966;
            cursor: pointer;
            font-size: 1.35rem;
            line-height: 1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        .admin-menu-trigger:hover {
            background: #344960;
            border-color: #ffd966;
        }
        .admin-action-menu {
            position: absolute;
            top: 40px;
            right: 0;
            width: 150px;
            padding: 6px;
            border-radius: 14px;
            border: 1px solid rgba(255, 217, 102, 0.28);
            background: #162433;
            box-shadow: 0 8px 18px rgba(0, 0, 0, 0.34);
        }
        .admin-action-menu-item {
            width: 100%;
            border: 0;
            border-radius: 10px;
            background: transparent;
            color: #e8f1ff;
            padding: 9px 10px;
            text-align: left;
            cursor: pointer;
            font-size: 0.82rem;
        }
        .admin-action-menu-item:hover {
            background: rgba(74, 106, 138, 0.38);
        }
        .admin-action-menu-item.danger {
            color: #ffb8b8;
        }
        .admin-action-menu-item.danger:hover {
            background: rgba(170, 74, 74, 0.35);
            color: #ffffff;
        }
        .view-data-btn {
            background: #4a6a8a;
            border: none;
            padding: 6px 16px;
            border-radius: 40px;
            color: white;
            cursor: pointer;
            font-size: 0.8rem;
        }
        .view-data-btn:hover { background: #6a8aaa; }
        .approve-btn {
            background: #5a8a5a;
            border: none;
            padding: 6px 14px;
            border-radius: 40px;
            color: white;
            cursor: pointer;
        }
        .reject-btn {
            background: #8a5a5a;
            margin-left: 8px;
        }
        .close-admin {
            background: #8a6a4a;
            margin-top: 20px;
            width: 100%;
            padding: 12px;
            border-radius: 40px;
        }
        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.7);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2000;
            flex-direction: column;
            gap: 20px;
        }
        .spinner {
            width: 50px;
            height: 50px;
            border: 4px solid #ffd966;
            border-top-color: transparent;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        @keyframes spin { to { transform: rotate(360deg); } }
        .loading-text { color: #ffd966; font-size: 14px; }
        .admin-badge {
            background: #d4af37;
            color: #1f2a3a;
            padding: 2px 10px;
            border-radius: 20px;
            font-size: 0.7rem;
            font-weight: bold;
            margin-left: 10px;
            cursor: pointer;
        }
        .admin-badge:hover { background: #ffd966; transform: scale(1.05); }
        .viewing-badge {
            background: #ffaa66;
            color: #1f2a3a;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.75rem;
            margin-left: 10px;
        }
        .readonly-notice {
            background: #4a6a8a;
            padding: 10px 20px;
            border-radius: 40px;
            margin-bottom: 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .ai-section {
            margin-top: 10px;
            padding-top: 10px;
            border-top: 1px solid #5a7a9a;
        }
        .change-pwd-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.8);
            z-index: 1200;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .change-pwd-panel {
            background: #2a3748;
            width: 90%;
            max-width: 450px;
            border-radius: 36px;
            padding: 30px;
            border: 2px solid #ffd966;
        }
        .change-pwd-panel h3 {
            color: #ffd966;
            margin-top: 0;
            margin-bottom: 20px;
            text-align: center;
        }
        .change-pwd-panel input {
            width: 100%;
            padding: 12px 16px;
            margin: 10px 0;
            background: #1e2c3c;
            border: 1px solid #5a7a9a;
            border-radius: 40px;
            color: white;
            font-size: 1rem;
            outline: none;
        }
        .change-pwd-panel input:focus {
            border-color: #ffd966;
        }
        .change-pwd-buttons {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }
        .change-pwd-buttons button {
            flex: 1;
            padding: 10px;
            border-radius: 40px;
            cursor: pointer;
            font-size: 0.9rem;
        }
        .confirm-btn {
            background: #5a6a4a;
            border: none;
            color: white;
        }
        .cancel-btn {
            background: #6a4a4a;
            border: none;
            color: white;
        }
        .pwd-error {
            color: #ffaa88;
            font-size: 0.8rem;
            margin-top: 5px;
            text-align: center;
        }
        .pwd-success {
            color: #8cff8c;
            font-size: 0.8rem;
            margin-top: 5px;
            text-align: center;
        }
        .game-account-panel {
            max-width: 560px;
            border-radius: 18px;
        }
        .game-account-help {
            margin: -6px 0 16px;
            color: #c7d3e0;
            font-size: 0.85rem;
            line-height: 1.55;
        }
        .game-account-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
            max-height: 48vh;
            overflow: auto;
            padding-right: 4px;
        }
        .game-account-row {
            display: grid;
            grid-template-columns: max-content minmax(150px, 1fr) auto;
            align-items: center;
            gap: 10px;
            padding: 9px 10px;
            background: rgba(30,42,55,0.62);
            border: 1px solid rgba(180,150,100,0.16);
            border-radius: 12px;
        }
        .game-account-batch {
            color: #ffd966;
            font-size: 0.86rem;
            font-weight: 700;
            white-space: nowrap;
        }
        .game-account-row input {
            margin: 0;
            min-width: 0;
        }
        .game-account-remove,
        .game-account-add {
            background: rgba(80,60,120,0.55);
            border: 1px solid rgba(180,150,100,0.14);
            color: #f0e0c0;
            border-radius: 12px;
            cursor: pointer;
            padding: 8px 12px;
            font-size: 0.82rem;
        }
        .game-account-remove {
            background: rgba(120,50,50,0.45);
            color: #ffd0d0;
        }
        .game-account-add {
            width: 100%;
            margin-top: 12px;
        }
        .game-account-remove:hover,
        .game-account-add:hover {
            filter: brightness(1.1);
        }
        @media (max-width: 560px) {
            .game-account-row {
                grid-template-columns: 1fr;
                align-items: stretch;
            }
            .game-account-remove {
                width: 100%;
            }
        }
       .export-sequence-btn {
    background: #6a4a8a;
    border: none;
    color: white;
    padding: 6px 16px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: 0.1s;
}
.export-sequence-btn:hover {
    background: #8a6aaa;
    transform: translateY(-1px);
}
.theory-inherit-btn {
    background: #4a6a8a;
    border: none;
    color: white;
    padding: 6px 16px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.15s, transform 0.15s, filter 0.15s;
}
.theory-inherit-btn:hover {
    background: #5b7fa3;
    transform: translateY(-1px);
}
.theory-inherit-btn.active {
    background: #9a6840;
    color: #fff4df;
}
.yesterday-context-btn {
    background: rgba(74, 106, 138, 0.88);
    border: 1px solid rgba(180, 150, 100, 0.18);
    color: #f2f7ff;
    padding: 6px 16px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.15s, transform 0.15s, border-color 0.15s, filter 0.15s;
}
.yesterday-context-btn:hover:not(:disabled) {
    background: rgba(91, 127, 163, 0.94);
    transform: translateY(-1px);
}
.yesterday-context-btn.active {
    background: rgba(214, 181, 111, 0.28);
    border-color: rgba(214, 181, 111, 0.62);
    color: #ffe8a8;
}
.yesterday-context-btn:disabled {
    opacity: 0.46;
    cursor: not-allowed;
}
.yesterday-context-note {
    margin: 10px 0 12px;
    padding: 8px 12px;
    border: 1px solid rgba(214, 181, 111, 0.24);
    border-radius: 12px;
    background: rgba(214, 181, 111, 0.1);
    color: #dcc891;
    font-size: 0.82rem;
}
.theory-delta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 20px;
    padding: 1px 6px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.26);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
}
.theory-negative { color: #8cff8c; }
.theory-positive { color: #ff6a6a; }
.theory-even { color: #ffecb3; }
.toggle-skill-btn {
    background: #4a6a8a;
    border: none;
    color: white;
    padding: 6px 16px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: 0.1s;
}
.toggle-skill-btn:hover {
    background: #6a8aaa;
}

/* 🆕 添加这个样式（从这里开始） */
.collapse-toggle-btn {
    background: #3a5068;
    border: none;
    color: #ffecb3;
    padding: 4px 12px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s;
    border: 1px solid #5a7a9a;
}

.collapse-toggle-btn:hover {
    background: #4a6a8a;
    transform: scale(1.02);
    border-color: #ffd966;
}
/* 🆕 添加结束 */
.date-input.has-record {
    background: #4a6a8a;
    border-color: #ffd966;
    color: white;
}
.date-input.no-record {
    background: #2a3a4a;
    border-color: #5a7a9a;
    color: #c0d0f0;
}

/* 本月盈利统计样式 */
.month-profit-module {
    background: #1f2e3e;
    border-radius: 20px;
    padding: 12px 16px;
    margin: 20px 0 20px 0;
    border: 1px solid #5a7a9a;
}
.month-profit-title {
    color: #ffecb3;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.month-profit-content {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}
.profit-card {
    background: #2a3a4a;
    border-radius: 16px;
    padding: 12px 24px;
    text-align: center;
    min-width: 140px;
}
.profit-card.profit-positive {
    border: 1px solid rgba(120, 169, 120, 0.46);
}
.profit-card.profit-negative {
    border: 1px solid rgba(214, 111, 111, 0.46);
}
.profit-label {
    color: #c0d0f0;
    font-size: 0.75rem;
    margin-bottom: 8px;
}
.profit-value {
    font-size: 1.8rem;
    font-weight: 700;
}
.profit-card.profit-positive .profit-value {
    color: #4caf50;
}
.profit-card.profit-negative .profit-value {
    color: #f44336;
}
.profit-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.stat-item {
    background: #2a3a4a;
    border-radius: 12px;
    padding: 8px 16px;
    text-align: center;
    min-width: 80px;
}
.stat-label {
    color: #c0d0f0;
    font-size: 0.7rem;
    display: block;
    margin-bottom: 4px;
}
.stat-value {
    color: #ffecb3;
    font-size: 1.1rem;
    font-weight: 600;
}

/* 日历选择器样式 - 可折叠版 */
.calendar-module {
    background: #1f2e3e;
    border-radius: 16px;
    padding: 8px 12px;
    margin-top: 16px;
    border: 1px solid #5a7a9a;
    transition: all 0.3s ease;
}

.calendar-module.collapsed {
    padding: 8px 12px;
}

.calendar-module.collapsed .calendar-header,
.calendar-module.collapsed .weekdays,
.calendar-module.collapsed .calendar-grid,
.calendar-module.collapsed .calendar-info,
.calendar-module.collapsed .legend-mini {
    display: none;
}

.calendar-module.collapsed .calendar-title {
    margin-bottom: 0;
}

.calendar-toggle-icon {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.calendar-module.collapsed .calendar-toggle-icon {
    transform: rotate(-90deg);
}

.calendar-title {
    color: #ffecb3;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: wrap;
    cursor: pointer;
}

.calendar-title-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.calendar-title .collapse-hint {
    font-size: 0.75rem;
    color: #ffecb3;
    background: #3a5068;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.calendar-module .calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 0 2px;
}
.calendar-module .calendar-header button {
    background: #3a5068;
    border: none;
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.7rem;
}
.calendar-module .calendar-header button:hover {
    background: #4a6a8a;
}
.calendar-module .calendar-header span {
    color: #ffecb3;
    font-size: 0.85rem;
    font-weight: 600;
}
.calendar-module .weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
    margin-bottom: 4px;
}
.calendar-module .weekday {
    padding: 2px;
    background: #2a3a4a;
    border-radius: 4px;
    color: #ffecb3;
    font-weight: 500;
    font-size: 0.65rem;
}
.calendar-module .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.calendar-module .calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    font-weight: 500;
}
.calendar-module .calendar-day.has-record {
    background-color: #3b82f6;
    color: white;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(59,130,246,0.3);
}
.calendar-module .calendar-day.no-record {
    background-color: #2a3a4a;
    color: #c0d0f0;
}
.calendar-module .calendar-day.today {
    border: 1.5px solid #ef4444;
}
.calendar-module .calendar-day.selected {
    border: 1.5px solid #ff6a6a;
    box-shadow: 0 0 4px rgba(255,106,106,0.5);
}
.calendar-module .calendar-day.has-record.selected {
    background-color: #3b82f6;
    border: 1.5px solid #ff6a6a;
    color: white;
}
.calendar-module .calendar-day.no-record.selected {
    background-color: #2a3a4a;
    border: 1.5px solid #ff6a6a;
    color: #c0d0f0;
}
.calendar-module .calendar-day.today.selected {
    border: 1.5px solid #ff6a6a;
    box-shadow: 0 0 4px rgba(255,106,106,0.5);
}
.calendar-module .calendar-day.empty {
    background-color: transparent;
    cursor: default;
    box-shadow: none;
}
.calendar-module .calendar-day:hover:not(.empty) {
    transform: scale(1.02);
    filter: brightness(1.1);
}
.calendar-module .calendar-info {
    margin-top: 8px;
    padding: 6px 8px;
    background: #2a3a4a;
    border-radius: 8px;
    text-align: center;
}
.calendar-module .calendar-info .selected-date {
    color: #ffecb3;
    font-size: 0.7rem;
    margin-bottom: 4px;
}
.calendar-module .calendar-info .record-status {
    padding: 3px 6px;
    border-radius: 20px;
    font-size: 0.65rem;
}
.calendar-module .calendar-info .has-record-info {
    background-color: #3b82f6;
    color: white;
}
.calendar-module .calendar-info .no-record-info {
    background-color: #4a6a8a;
    color: #e8f0fc;
}
.calendar-module .legend-mini {
    display: flex;
    gap: 8px;
    margin-top: 6px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.55rem;
    color: #c0d0f0;
}
.calendar-module .legend-mini span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.calendar-module .legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.calendar-module .legend-dot.has-record {
    background: #3b82f6;
}
.calendar-module .legend-dot.no-record {
    background: #2a3a4a;
}

/* 底部图片样式 - 横向排列带图标 */
.bottom-images {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 25px;
    padding: 15px 20px;
    background: #1f2e3e;
    border-radius: 20px;
    border: 1px solid #5a7a9a;
    flex-wrap: wrap;
}

.bottom-images .image-card {
    text-align: center;
    width: 200px;
    transition: all 0.3s ease;
}

.bottom-images .image-card:hover {
    transform: translateY(-5px);
}

.bottom-images img {
    width: 100%;
    max-width: 180px;
    height: auto;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #5a7a9a;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.bottom-images img:hover {
    transform: scale(1.05);
    border-color: #ffd966;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.bottom-images .image-title {
    margin-top: 8px;
    color: #ffecb3;
    font-size: 0.85rem;
    font-weight: 600;
}

.bottom-images .image-desc {
    color: #c0d0f0;
    font-size: 0.7rem;
    margin-top: 4px;
}

/* 图片放大弹窗样式 */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 16px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    border: 2px solid #ffd966;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.image-modal-close:hover {
    background: rgba(255,0,0,0.5);
    transform: scale(1.1);
}

/* AI 对话区域样式 */
.ai-chat-area {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #5a7a9a;
}

.chat-divider {
    text-align: center;
    margin-bottom: 12px;
    position: relative;
}

.chat-divider span {
    background: #2a3e56;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #ffecb3;
}

.chat-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.chat-input {
    flex: 1;
    background: #2a3a4a;
    border: 1px solid #5a7a9a;
    border-radius: 40px;
    padding: 10px 16px;
    color: #ffffff;
    font-size: 0.85rem;
    outline: none;
}

.chat-input:focus {
    border-color: #ffd966;
}

.chat-send-btn {
    background: #4a6a8a;
    border: none;
    border-radius: 40px;
    padding: 8px 20px;
    color: white;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.chat-send-btn:hover {
    background: #6a8aaa;
    transform: translateY(-1px);
}

.chat-send-btn:disabled {
    background: #3a5068;
    cursor: not-allowed;
    transform: none;
}

.chat-response {
    background: #2a3a4a;
    border-radius: 16px;
    padding: 12px 16px;
    margin-top: 8px;
}

.chat-response-title {
    color: #ffecb3;
    font-size: 0.75rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.chat-response-content {
    color: #ffffff;
    font-size: 0.85rem;
    line-height: 1.5;
    white-space: pre-wrap;
}
/* API Key 验证样式 */
.api-key-state {
    padding: 8px 12px;
    border-radius: 10px;
    margin-bottom: 14px;
    font-size: 0.8rem;
    border: 1px solid rgba(166, 187, 211, 0.16);
}
.api-key-state-ready {
    background: rgba(51, 105, 62, 0.56);
    color: #b7e8bf;
}
.api-key-state-empty {
    background: rgba(42, 72, 104, 0.56);
    color: #c8def5;
}
.api-key-benefits {
    margin-bottom: 10px;
}
.api-key-privacy-note,
.api-key-link {
    color: #9fb2c6;
    font-size: 0.72rem;
    line-height: 1.55;
}
.api-key-privacy-note {
    margin: 0 0 14px;
    padding: 8px 10px;
    background: rgba(13, 22, 34, 0.58);
    border: 1px solid rgba(166, 187, 211, 0.12);
    border-radius: 8px;
}
.api-key-link {
    margin-top: 5px;
}
.api-key-link a {
    color: #f0d28e;
}
.api-key-success {
    background: #2a4a2a;
    color: #8cff8c;
    border: 1px solid rgba(140, 255, 140, 0.32);
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.75rem;
}

.api-key-error {
    background: #4a2a2a;
    color: #ffaa88;
    border: 1px solid rgba(255, 106, 106, 0.32);
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.75rem;
}
.clear-api-key-btn {
    background: #8a5a5a;
    border: none;
    color: white;
    padding: 10px;
    border-radius: 12px;
    cursor: pointer;
}
.sync-btn {
  background: #4a6a8a !important;
  transition: all 0.2s ease;
}
.sync-btn:hover:not(:disabled) {
  background: #5b8bb8 !important;
  transform: scale(1.03);
  cursor: pointer;
}
.sync-btn:disabled {
  background: #3a4a5a !important;
  cursor: not-allowed;
  opacity: 0.7;
}
/* 技能百分比曲线图样式 */
.skill-chart-container {
    background: #1f2e3e;
    border-radius: 20px;
    padding: 16px 20px;
    margin: 20px 0 0 0;
    border: 1px solid #5a7a9a;
}

.skill-chart-title {
    color: #ffecb3;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-chart-title span {
    font-size: 0.75rem;
    color: #c0d0f0;
    font-weight: normal;
}

.skill-chart-canvas-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    background: #2a3a4a;
    border-radius: 12px;
    padding: 10px;
}

#skillChart {
    width: 100%;
    height: 100%;
    display: block;
}

.skill-chart-legend {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #4a6a8a;
    font-size: 0.75rem;
    flex-wrap: wrap;
    color: #c0d0f0;
}

.skill-chart-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-line {
    width: 20px;
    height: 3px;
    border-radius: 2px;
}

.legend-line.burst-line { background: #ff6a6a; }
.legend-line.small-burst-line { background: #ffaa66; }
.legend-line.percent-line { background: #4a9eff; }

.chart-toggle-btn {
    background: #3a5068;
    border: none;
    color: white;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s;
}

.chart-toggle-btn:hover {
    background: #4a6a8a;
}

.chart-collapsed .skill-chart-canvas-wrapper {
    display: none;
}

.chart-collapsed .skill-chart-legend {
    display: none;
}
.calculator-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.calculator-modal-content {
    background: #1f2e3e;
    width: 100%;
    max-width: 1400px;
    height: 90vh;
    border-radius: 24px;
    border: 2px solid #5a7a9a;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.calculator-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: linear-gradient(135deg, #2a4a6a 0%, #1a3a5a 100%);
    color: #ffecb3;
    font-size: 1.2rem;
    font-weight: 600;
    border-bottom: 2px solid #ffd966;
    flex-shrink: 0;
}

.modal-close-btn {
    background: #8a5a5a;
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.modal-close-btn:hover {
    background: #aa6a6a;
    transform: scale(1.02);
}

.calculator-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #1a2535;
}
/* 🆕 爆率分析弹窗样式 */
.burst-analysis-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.burst-analysis-panel {
    background: #1f2e3e;
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    border-radius: 24px;
    border: 2px solid #ffd966;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.burst-analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: linear-gradient(135deg, #8a5a4a 0%, #6a4a3a 100%);
    color: #ffecb3;
    font-size: 1.2rem;
    font-weight: 600;
    border-bottom: 2px solid #ffd966;
    flex-shrink: 0;
}
/* 🆕 阈值调节栏样式 */
.burst-threshold-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: #1a2535;
    border-bottom: 1px solid #4a6a8a;
    flex-wrap: wrap;
    gap: 12px;
}

.threshold-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.threshold-control span {
    color: #c0d0f0;
    font-size: 0.8rem;
}

.threshold-select-inline {
    background: #2a3a4a;
    border: 1px solid #5a7a9a;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    outline: none;
    cursor: pointer;
}

.threshold-select-inline:hover {
    border-color: #ffd966;
}

.refresh-threshold-btn {
    background: #4a6a8a;
    border: none;
    color: white;
    padding: 6px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.refresh-threshold-btn:hover:not(:disabled) {
    background: #6a8aaa;
    transform: scale(1.02);
}

.refresh-threshold-btn:disabled {
    background: #3a5068;
    cursor: not-allowed;
    opacity: 0.7;
}
.burst-analysis-content {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
    background: #1a2535;
}

.burst-analysis-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #ffecb3;
    gap: 20px;
}

.burst-analysis-result {
    margin: 0;
    padding: 16px;
    background: #2a3a4a;
    border-radius: 16px;
    color: #ffffff;
    font-size: 0.85rem;
    line-height: 1.7;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Inter', monospace;
    border: 1px solid #5a7a9a;
}

.burst-analysis-footer {
    padding: 16px 24px;
    background: #1f2e3e;
    border-top: 1px solid #5a7a9a;
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}

.burst-analysis-footer .confirm-btn {
    padding: 8px 32px;
    background: #5a6a4a;
    border: none;
    color: white;
    border-radius: 40px;
    cursor: pointer;
    font-size: 0.9rem;
}

.burst-analysis-footer .confirm-btn:hover {
    background: #7a8a6a;
}
.badge-streak.small-loss { 
    background: #9b9eff; 
    color: white; 
}
/* 🆕 快速编辑行 - 复用表格样式 */
.quick-edit-row-container {
    background: #1f2e3e;
    border-radius: 16px;
    padding: 12px 16px;
    margin: 16px 0;
    border: 1px solid #5a7a9a;
}

.quick-edit-title {
    color: #ffecb3;
    font-size: 0.85rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-edit-title span {
    background: #ff6a6a;
    color: white;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
}

.quick-edit-table {
    width: 100%;
    border-collapse: collapse;
}

.quick-edit-table td {
    padding: 8px 12px;
    border-bottom: none;
    color: #ffffff;
}
/* 大爆信号指示灯 */
.big-burst-indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4a6a8a;
    transition: all 0.3s;
    margin-left: 8px;
    box-shadow: 0 0 0 rgba(255,106,106,0);
}
.big-burst-indicator.high {
    background: #ff4444;
    animation: burstBlink 0.8s infinite;
    box-shadow: 0 0 12px rgba(255,68,68,0.8);
}
.big-burst-indicator.suppressed {
    background: #f59e0b;
    animation: none;
    box-shadow: 0 0 8px rgba(245,158,11,0.6);
}
@keyframes burstBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.admin-panel,
.change-pwd-panel,
.burst-analysis-panel,
.calculator-modal-content { animation: modalFadeIn 0.25s ease; }
/* 移动端适配 */
@media (max-width: 768px) {
    .calculator-modal {
        padding: 10px;
    }
    
    .calculator-modal-content {
        height: 95vh;
        border-radius: 16px;
    }
    
    .calculator-modal-header {
        padding: 12px 16px;
        font-size: 1rem;
    }
    .v18-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .v18-action-header {
        flex-direction: column;
        align-items: stretch;
    }
    .v18-action-signal {
        align-self: flex-start;
    }
    .board {
        padding-bottom: 32px;
    }
    .fixed-quick-bar {
        display: none;
    }
    .visual-title {
        align-items: flex-start !important;
        gap: 8px;
    }
    .mobile-sequence-quick-actions {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-wrap: nowrap;
    }
    .mobile-empty-quick-actions {
        display: flex;
        gap: 8px;
        align-items: stretch;
        justify-content: center;
        margin: -16px 0 18px;
        padding: 0 6px;
    }
    .mobile-quick-add {
        min-height: 32px;
    }
}

@media (max-width: 430px) {
    .mobile-sequence-quick-actions,
    .mobile-empty-quick-actions {
        width: 100%;
    }
    .mobile-quick-add {
        flex: 1 1 0;
        padding: 8px 6px;
        text-align: center;
    }
}

/* ===== V18 PREMIUM DATA DESK ===== */
.top-stats-bar {
    background: rgba(8, 13, 21, 0.92);
    border-bottom-color: var(--line-gold);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.24);
}
.top-stat-item { color: var(--text-soft); }
.top-stat-pulse {
    color: var(--gold-bright);
    background: rgba(214, 181, 111, 0.1);
    border-color: rgba(214, 181, 111, 0.32);
    animation: topPulse 1.5s ease-in-out infinite;
}
.board {
    max-width: 1380px;
    background: rgba(15, 24, 36, 0.96);
    border: 1px solid var(--line-gold);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}
.title-section h1 {
    color: var(--gold-bright);
    font-size: 1.55rem;
    letter-spacing: 0.04em;
}
.title-section h1 span,
.admin-badge,
.viewing-badge {
    border-radius: 999px;
}
.description,
.footer-bar,
.empty-message { color: var(--muted); }
.user-header-info,
.control-bar,
.prediction-container,
.stats-area,
.month-profit-module,
.calendar-module,
.bottom-images,
.skill-chart-container,
.quick-edit-row-container {
    background: rgba(19, 30, 45, 0.9);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}
.user-header-info {
    padding: 7px 10px 7px 14px;
    color: var(--gold);
}
.control-bar {
    padding: 12px 14px;
    gap: 8px;
}
.date-input,
.batch-selector,
.batch-selector select,
.chat-input,
.threshold-select-inline,
.change-pwd-panel input {
    background: var(--surface-field);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--text);
}
.date-input:focus,
.chat-input:focus,
.threshold-select-inline:focus,
.change-pwd-panel input:focus {
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(214, 181, 111, 0.14);
}
.today-btn,
.new-batch-btn,
.delete-batch-btn,
.export-btn,
.change-pwd-btn,
.logout-btn,
.control-btn,
.ai-predict-btn,
.chart-toggle-btn,
.chat-send-btn,
.refresh-threshold-btn,
.modal-close-btn,
.view-data-btn,
.approve-btn,
.close-admin,
.change-pwd-buttons button,
.clear-api-key-btn {
    border-radius: var(--radius-sm) !important;
    transition: transform 0.18s, filter 0.18s, background 0.18s, border-color 0.18s;
}
.today-btn:hover,
.new-batch-btn:hover,
.delete-batch-btn:hover,
.export-btn:hover,
.change-pwd-btn:hover,
.logout-btn:hover,
.control-btn:hover,
.ai-predict-btn:hover,
.chart-toggle-btn:hover,
.chat-send-btn:hover,
.refresh-threshold-btn:hover,
.modal-close-btn:hover,
.view-data-btn:hover,
.approve-btn:hover,
.close-admin:hover,
.change-pwd-buttons button:hover,
.clear-api-key-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}
.batch-selector {
    padding: 4px 8px;
}
.bubble {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.24);
}
.bubble:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 10px rgba(0, 0, 0, 0.28);
}
.main-bubble { background: linear-gradient(135deg, #315f86, #264968); }
.sub-bubble { background: linear-gradient(135deg, #4d804e, #385e3a); }
.other-bubble { background: linear-gradient(135deg, #a66e3f, #754b2f); }
.quick-bar-content {
    background: rgba(12, 20, 31, 0.94);
    backdrop-filter: blur(12px) saturate(116%);
    -webkit-backdrop-filter: blur(12px) saturate(116%);
    border-radius: var(--radius-lg);
    border-color: var(--line-gold);
    box-shadow: 0 7px 10px rgba(0, 0, 0, 0.34);
}
.quick-label,
.prediction-label,
.stats-left span,
.stats-right,
.profit-total,
.auto-save-note {
    background: rgba(32, 49, 70, 0.82);
    border: 1px solid var(--line);
    color: var(--gold-bright);
    border-radius: 999px;
}
.prediction-container { padding: 18px 20px; }
.prediction-text,
.local-prediction,
.v17-summary-card,
.chat-response,
.burst-analysis-result {
    background: rgba(20, 32, 48, 0.92);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text-soft);
    box-shadow: none;
}
.v17-summary-card.signal-good {
    background: rgba(88, 71, 32, 0.9);
    border-color: rgba(229, 190, 95, 0.58);
}
.v17-summary-card.signal-blue {
    background: rgba(31, 55, 82, 0.9);
    border-color: rgba(104, 151, 200, 0.66);
}
.v17-summary-card.signal-purple {
    background: rgba(51, 39, 82, 0.9);
    border-color: rgba(172, 126, 255, 0.68);
}
.v17-summary-card.signal-high {
    background: rgba(111, 50, 43, 0.9);
    border-color: rgba(235, 120, 93, 0.62);
}
.v17-summary-title,
.month-profit-title,
.skill-chart-title,
.date-label { color: var(--gold-bright); }
.prediction-detail-toggle {
    border-radius: var(--radius-sm);
    background: #253b54;
    border-color: var(--line-strong);
    color: var(--text-soft);
}
.month-profit-module,
.skill-chart-container,
.bottom-images { padding: 16px; }
.profit-card,
.stat-item,
.skill-chart-canvas-wrapper,
.calendar-module .calendar-info {
    background: rgba(25, 40, 58, 0.9);
    border-radius: 9px;
}
.profit-card { border: 1px solid var(--line); }
.calendar-module .weekday,
.calendar-module .calendar-day.no-record {
    background: #1a293a;
}
.bottom-images img {
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow-soft);
}
.bottom-images img:hover {
    border-color: var(--gold);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
}
.admin-panel,
.change-pwd-panel,
.burst-analysis-panel,
.calculator-modal-content {
    background: #142131;
    border: 1px solid var(--line-gold);
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.42);
}
.user-list li {
    background: #101b29;
    border: 1px solid var(--line);
    border-radius: 10px;
}
.burst-analysis-header,
.calculator-modal-header {
    background: #1d3045;
    border-bottom: 1px solid var(--line-gold);
}
.burst-threshold-bar,
.burst-analysis-content { background: #101a28; }
.burst-analysis-footer {
    background: #142131;
    border-top-color: var(--line);
}
.api-key-success,
.api-key-error {
    border-radius: var(--radius-sm) !important;
}
.readonly-notice {
    border-radius: var(--radius-sm);
    background: #2b4b68;
}
.toast { border-radius: 999px; }
.admin-entry {
    background: var(--gold);
    border: 1px solid var(--gold-bright);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.28);
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
.type-option:focus-visible,
.status-option:focus-visible {
    outline: 2px solid var(--gold-bright);
    outline-offset: 2px;
}

/* 高频实战模式：隐藏新手说明，把注意力留给数字序列和录入操作。 */
.description,
.auto-save-note,
.visual-legend,
.record-visual-panel .visual-title > .prediction-label,
.skill-chart-title span,
.skill-chart-legend,
.footer-bar {
    display: none !important;
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== OPTIONAL U1 RECORDING VIEW ===== */
.u1-interface-btn {
    background: #654b86;
    border: 1px solid rgba(214, 181, 111, 0.22);
    color: #f4e7ff;
    padding: 6px 14px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: transform 0.18s, filter 0.18s, background 0.18s, border-color 0.18s;
}
.u1-interface-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.12);
    border-color: var(--gold);
}
.u1-interface-btn.active {
    background: #916536;
    border-color: var(--gold-bright);
    color: #fff5d9;
}
.u1-interface .record-visual-panel {
    background: rgba(19, 30, 45, 0.9);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}
.u1-interface .records-table {
    background: rgba(12, 19, 29, 0.74);
    border-color: var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.u1-interface .records-table th {
    background: #172333;
    color: var(--gold-bright);
    border-bottom: 1px solid var(--line-gold);
    position: static;
    top: auto;
    z-index: 1;
}
.u1-interface .records-table td {
    border-bottom-color: rgba(166, 187, 211, 0.08);
    color: var(--text-soft);
}
.u1-interface .records-table tbody tr:hover { filter: brightness(1.12); }
.u1-interface .tr-main-bg { background-color: rgba(39, 76, 112, 0.72) !important; }
.u1-interface .tr-sub-bg { background-color: rgba(52, 101, 65, 0.68) !important; }
.u1-interface .tr-other-bg { background-color: rgba(126, 82, 45, 0.68) !important; }
.u1-interface .type-option,
.u1-interface .status-option,
.u1-interface .fraction-input input,
.u1-interface .profit-input {
    background: var(--surface-field);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--text);
}
.u1-interface .type-option,
.u1-interface .status-option {
    padding: 4px 9px;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.u1-interface .type-option:hover,
.u1-interface .status-option:hover {
    background: var(--surface-soft);
    border-color: var(--gold);
}
.u1-interface .type-option.selected,
.u1-interface .status-option.selected {
    background: #385874;
    border: 1px solid var(--gold);
    color: #fff4d4;
    padding: 4px 9px;
}
.u1-interface .fraction-input input,
.u1-interface .profit-input { border-radius: 7px; }
.u1-interface .records-table select,
.u1-interface .quick-edit-table select {
    background: var(--surface-field) !important;
    border: 1px solid var(--line-strong) !important;
    border-radius: var(--radius-sm) !important;
    color: var(--text) !important;
}
.u1-interface .fraction-input input:focus,
.u1-interface .profit-input:focus {
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(214, 181, 111, 0.14);
}
.u1-interface .export-sequence-btn,
.u1-interface .theory-inherit-btn,
.u1-interface .yesterday-context-btn,
.u1-interface .toggle-skill-btn,
.u1-interface .collapse-toggle-btn {
    border-radius: var(--radius-sm) !important;
    transition: transform 0.18s, filter 0.18s, background 0.18s, border-color 0.18s;
}
.u1-interface .export-sequence-btn:hover,
.u1-interface .theory-inherit-btn:hover,
.u1-interface .yesterday-context-btn:hover:not(:disabled),
.u1-interface .toggle-skill-btn:hover,
.u1-interface .collapse-toggle-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}
.u1-interface .visual-title { color: var(--gold-bright); }
.u1-interface .marker-item {
    background: rgba(42, 62, 86, 0.78);
    border-color: rgba(150, 177, 204, 0.42);
    border-radius: var(--radius-sm);
    border-width: 1px;
    box-shadow: none;
}
.u1-interface .marker-item:hover {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(214, 181, 111, 0.18);
}
.u1-interface .marker-item.marker-special-red {
    background: rgba(42, 62, 86, 0.78);
    border-color: rgba(150, 177, 204, 0.42) !important;
    border-width: 1px;
    box-shadow: none;
}
.u1-interface .marker-item.marker-burst-hot {
    background: rgba(255, 80, 80, 0.2);
    border-color: #ff6a6a !important;
    border-width: 2px;
    box-shadow: 0 0 5px rgba(255, 106, 106, 0.3);
}
.u1-interface .marker-item.marker-special-red.marker-burst-hot {
    background: rgba(255, 80, 80, 0.2);
    border-color: #ff6a6a !important;
    border-width: 2px;
}
.u1-interface .marker-item.marker-wild {
    background: rgba(100, 200, 100, 0.15);
    border-color: #8cff8c !important;
    border-width: 2px;
}
.u1-interface .marker-item.marker-wild.marker-burst-hot {
    background: rgba(255, 80, 80, 0.2);
    border-color: #ff6a6a !important;
}
.u1-interface .marker-item.oval-shape {
    border-radius: 999px !important;
    border-style: dashed;
    border-width: 2px;
    border-color: #d6b56f !important;
    background: rgba(58, 72, 94, 0.82);
    box-shadow:
        inset 0 0 0 1px rgba(255, 236, 179, 0.24),
        0 0 0 2px rgba(214, 181, 111, 0.16);
}
.u1-interface .marker-item.oval-shape:hover {
    border-color: #ffecb3 !important;
    box-shadow:
        inset 0 0 0 1px rgba(255, 236, 179, 0.34),
        0 0 0 3px rgba(214, 181, 111, 0.22);
}
.u1-interface .marker-item.oval-shape.marker-burst-hot,
.u1-interface .marker-item.oval-shape.marker-special-red.marker-burst-hot {
    background: rgba(255, 80, 80, 0.22);
}
.u1-interface .marker-item.oval-shape.marker-wild:not(.marker-burst-hot) {
    background: rgba(80, 150, 90, 0.2);
}
.u1-interface .marker-number {
    font-weight: 900;
    text-shadow: 0 1px 2px rgba(3, 8, 14, 0.46);
    color: #e8f0f8 !important;
}
.u1-interface .marker-special-red .marker-number {
    color: #ffaa66 !important;
}
.u1-interface .marker-wild .marker-number {
    color: #6ad46a !important;
}
.u1-interface .marker-u1-main-sub-skill-hot .marker-number-main,
.u1-interface .marker-u1-main-sub-skill-hot .marker-number-sub {
    color: #e8f0f8 !important;
    text-shadow: 0 1px 2px rgba(3, 8, 14, 0.46);
}
.u1-interface .marker-burst-hot .marker-number,
.u1-interface .marker-burst-hot .marker-number-main,
.u1-interface .marker-burst-hot .marker-number-sub,
.u1-interface .marker-burst-hot .marker-number-other,
.u1-interface .marker-burst-hot .marker-time span {
    color: #ff6a6a !important;
}
.u1-interface .marker-burst-hot .marker-icon-top {
    color: #ff6a6a;
}
.u1-interface .marker-icon-top {
    color: inherit;
}
.u1-interface .marker-burst-hint {
    background: rgba(8, 14, 24, 0.72);
    border-color: rgba(255, 236, 179, 0.3);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}
.u1-interface .marker-burst-hint-red {
    color: #ff6a6a !important;
}
.u1-interface .marker-burst-hint-blue {
    color: #62b7ff !important;
}
.u1-interface .marker-burst-hint-yellow {
    color: #ffd966 !important;
}
.u1-interface .marker-burst-hint-purple {
    color: #d9adff !important;
    text-shadow: 0 0 6px rgba(184, 132, 255, 0.66);
}
.u1-interface .marker-record-burst-icon {
    background: transparent;
    border: 0;
    box-shadow: none;
}
.u1-interface .marker-record-burst-small {
    color: #ffe08a;
    text-shadow: 0 0 5px rgba(255, 217, 102, 0.5);
}
.u1-interface .marker-record-burst-big {
    color: #ff7474;
    text-shadow: 0 0 6px rgba(255, 90, 90, 0.58);
}
.u1-interface .marker-rush-text {
    background: transparent;
    border: 0;
    color: #ff9d82 !important;
    box-shadow: none;
}
.u1-interface .marker-inherit-hint {
    background: rgba(28, 16, 42, 0.82);
    border-color: rgba(216, 167, 255, 0.62);
    color: #d9adff !important;
    box-shadow: 0 0 7px rgba(170, 110, 255, 0.35);
}
.u1-interface .marker-burst-hint-suppressed {
    border-color: rgba(255, 217, 102, 0.62);
    box-shadow: 0 0 0 1px rgba(255, 217, 102, 0.18), 0 0 8px rgba(255, 217, 102, 0.26);
}
.u1-interface .marker-suppression-dot {
    background: rgba(18, 16, 11, 0.96);
    color: #ffe08a !important;
    border-color: rgba(255, 224, 138, 0.9);
}
.u1-interface .marker-item.marker-hint-red:not(.marker-burst-hot) {
    box-shadow: inset 0 0 0 1px rgba(255, 106, 106, 0.28);
}
.u1-interface .marker-item.marker-hint-blue:not(.marker-burst-hot) {
    box-shadow: inset 0 0 0 1px rgba(98, 183, 255, 0.26);
}
.u1-interface .marker-item.marker-hint-yellow:not(.marker-burst-hot):not(.marker-hint-inherit) {
    box-shadow: inset 0 0 0 1px rgba(255, 217, 102, 0.24);
}
.u1-interface .marker-item.marker-hint-purple:not(.marker-burst-hot):not(.marker-hint-red):not(.marker-hint-blue) {
    box-shadow:
        inset 0 0 0 1px rgba(216, 167, 255, 0.32),
        0 0 10px rgba(159, 112, 255, 0.2);
}
.u1-interface .marker-item.marker-hint-inherit:not(.marker-burst-hot):not(.marker-hint-red):not(.marker-hint-blue) {
    box-shadow: inset 0 0 0 1px rgba(216, 167, 255, 0.28);
}
.u1-interface .marker-item.marker-hint-yellow.marker-hint-inherit:not(.marker-burst-hot) {
    box-shadow:
        inset 0 0 0 1px rgba(255, 217, 102, 0.2),
        inset 0 -3px 0 rgba(216, 167, 255, 0.28);
}
.u1-interface .marker-item.marker-yesterday-ghost {
    opacity: 0.74;
    filter: grayscale(0.08) saturate(0.9);
    border-style: dashed;
    border-color: rgba(214, 181, 111, 0.54) !important;
    background: rgba(52, 75, 102, 0.7);
    box-shadow: inset 0 0 0 1px rgba(214, 181, 111, 0.24);
}
.u1-interface .marker-item.marker-yesterday-ghost:hover {
    border-color: rgba(255, 236, 179, 0.68) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 236, 179, 0.28);
}
.u1-interface .yesterday-context-note {
    border-radius: var(--radius-sm);
    background: rgba(42, 62, 86, 0.72);
    border-color: rgba(214, 181, 111, 0.26);
    color: var(--gold-bright);
}
.u1-interface .theory-delta {
    min-width: 58px;
    height: 22px;
    background: rgba(0, 0, 0, 0.36);
    border: none;
    color: #e5eef7;
    font-size: 0.82rem;
    font-weight: 900;
    box-shadow: none;
}
.u1-interface .marker-time span {
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: #d6e2ee !important;
    font-weight: 600;
    box-shadow: none;
}
.u1-interface .marker-time span[style*="color: #8cff8c"] {
    background: rgba(100, 200, 100, 0.2);
    color: #8cff8c !important;
}
.u1-interface .marker-time span[style*="color: #ff6a6a"] {
    background: rgba(255, 100, 100, 0.2);
    color: #ff6a6a !important;
}
.u1-interface .marker-time span[style*="color: #ffaa66"] {
    background: rgba(255, 170, 100, 0.2);
    color: #ffaa66 !important;
}
.u1-interface .marker-time span[style*="color: #c084fc"] {
    background: rgba(192, 132, 252, 0.18);
    color: #d9adff !important;
    font-weight: 700;
}
.u1-interface .marker-time span[style*="color: #bac3d1"] {
    background: rgba(186, 195, 209, 0.16);
    color: #bac3d1 !important;
    font-weight: 800;
}
.u1-interface .theory-negative { color: #8cff8c; }
.u1-interface .theory-positive { color: #ff6a6a; }
.u1-interface .theory-even { color: #ffecb3; }

/* ===== V18 RULE GUIDE ===== */
.v17-summary-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.burst-guide-open-btn {
    border: 1px solid rgba(214, 181, 111, 0.42);
    border-radius: var(--radius-sm);
    background: #22364b;
    color: var(--gold-bright);
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.72rem;
    transition: background 0.18s, border-color 0.18s, transform 0.18s;
}
.burst-guide-open-btn:hover {
    background: #2c455f;
    border-color: var(--gold);
    transform: translateY(-1px);
}
.burst-guide-open-btn:focus-visible {
    outline: 2px solid var(--gold-bright);
    outline-offset: 2px;
}
.burst-guide-panel {
    max-width: 980px;
    max-height: min(90vh, 900px);
}
.burst-guide-header {
    gap: 18px;
}
.burst-guide-subtitle {
    margin-top: 5px;
    color: var(--text-soft);
    font-size: 0.72rem;
    font-weight: 400;
}
.burst-guide-content {
    flex: 1;
    overflow-y: auto;
    padding: 18px 20px 22px;
    background: #101a28;
}
.burst-guide-note {
    padding: 12px 14px;
    border: 1px solid rgba(214, 181, 111, 0.28);
    border-radius: var(--radius-sm);
    background: rgba(214, 181, 111, 0.08);
    color: var(--text-soft);
    font-size: 0.8rem;
    line-height: 1.7;
}
.burst-guide-note strong {
    color: var(--gold-bright);
    font-size: inherit;
}
.burst-guide-flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 12px 0;
}
.burst-guide-flow-item {
    border: 1px solid rgba(166, 187, 211, 0.16);
    border-radius: var(--radius-sm);
    background: rgba(18, 31, 46, 0.78);
    padding: 9px 10px;
}
.burst-guide-flow-item b {
    display: block;
    color: var(--gold-bright);
    font-size: 0.74rem;
    line-height: 1.35;
    margin-bottom: 3px;
}
.burst-guide-flow-item span {
    display: block;
    color: var(--text-soft);
    font-size: 0.68rem;
    line-height: 1.55;
}
.burst-guide-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 12px 0;
}
.burst-guide-legend span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #1a2a3c;
    color: var(--text-soft);
    font-size: 0.72rem;
}
.burst-guide-legend b {
    color: var(--gold-bright);
    font-size: inherit;
}
.burst-guide-section {
    margin-top: 9px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #152233;
    overflow: hidden;
}
.burst-guide-section[open] {
    border-color: rgba(214, 181, 111, 0.4);
}
.burst-guide-section summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 13px;
    cursor: pointer;
    color: var(--text);
    list-style-position: inside;
}
.burst-guide-section summary:hover {
    background: rgba(214, 181, 111, 0.07);
}
.burst-guide-section summary span {
    color: var(--gold-bright);
    font-size: 0.88rem;
    font-weight: 600;
}
.burst-guide-section summary small {
    color: var(--muted);
    font-size: 0.7rem;
    text-align: right;
}
.burst-guide-table-wrap {
    overflow-x: auto;
    border-top: 1px solid var(--line);
}
.burst-guide-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
}
.burst-guide-table th,
.burst-guide-table td {
    padding: 9px 11px;
    border-bottom: 1px solid rgba(166, 187, 211, 0.1);
    color: var(--text-soft);
    font-size: 0.75rem;
    line-height: 1.55;
    text-align: left;
    vertical-align: top;
}
.burst-guide-table th {
    color: var(--gold-bright);
    background: #1a2a3c;
    font-weight: 600;
    white-space: nowrap;
}
.burst-guide-table tr:last-child td {
    border-bottom: none;
}
.burst-guide-ledger {
    display: grid;
    gap: 10px;
    padding: 10px;
    border-top: 1px solid var(--line);
}
.burst-guide-rule-group {
    border: 1px solid rgba(166, 187, 211, 0.12);
    border-radius: var(--radius-sm);
    background: rgba(11, 20, 31, 0.42);
    overflow: hidden;
}
.burst-guide-group-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 11px;
    background: rgba(26, 42, 60, 0.8);
}
.burst-guide-group-heading strong {
    color: var(--gold-bright);
    font-size: 0.78rem;
}
.burst-guide-group-heading small {
    color: var(--muted);
    font-size: 0.68rem;
    text-align: right;
}
.burst-guide-table-wrap-compact {
    max-height: none;
    overflow-x: auto;
    overflow-y: visible;
}
.burst-guide-table-compact {
    min-width: 760px;
}
.burst-guide-table-compact th,
.burst-guide-table-compact td {
    padding: 7px 9px;
    font-size: 0.71rem;
}
.guide-level {
    display: inline-flex;
    min-width: 44px;
    justify-content: center;
    padding: 2px 6px;
    border-radius: 999px;
    color: #fff;
    font-size: 0.68rem;
    white-space: nowrap;
}
.guide-level.red { background: #a94848; }
.guide-level.blue { background: #315f91; color: #e6f2ff; }
.guide-level.purple { background: #6d4bb0; color: #f2ebff; }
.guide-level.yellow { background: #846429; color: #fff3cb; }
.guide-level.watch { background: #365a78; color: #e4f2ff; }
.guide-level.turtle { background: #2f7567; color: #e4fff8; }
.guide-level.inherit { background: #6b568a; color: #f2ebff; }
.guide-rank {
    display: inline-flex;
    min-width: 36px;
    justify-content: center;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(214, 181, 111, 0.12);
    border: 1px solid rgba(214, 181, 111, 0.28);
    color: var(--gold-bright);
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
}
.guide-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 2px 6px;
    border-radius: 999px;
    border: 1px solid rgba(214, 181, 111, 0.25);
    background: rgba(214, 181, 111, 0.08);
    color: var(--text-soft);
    font-size: 0.68rem;
    white-space: nowrap;
}
.burst-guide-copy {
    padding: 12px 14px 14px;
    border-top: 1px solid var(--line);
    color: var(--text-soft);
    font-size: 0.78rem;
    line-height: 1.75;
}
@media (max-width: 768px) {
    .burst-guide-modal { padding: 8px; }
    .burst-guide-panel { max-height: 94vh; }
    .burst-guide-header { padding: 12px 14px; }
    .burst-guide-subtitle { display: none; }
    .burst-guide-content { padding: 12px; }
    .burst-guide-flow { grid-template-columns: 1fr; }
    .burst-guide-section summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }
    .burst-guide-section summary small { text-align: left; }
    .burst-guide-group-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }
    .burst-guide-group-heading small { text-align: left; }
}

/* ===== Focused button polish ===== */
.app-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(184, 202, 224, 0.12);
}

.app-eyebrow {
    margin-bottom: 5px;
    color: var(--gold-bright);
    font-size: 0.66rem;
    font-weight: 850;
    letter-spacing: 0.12em;
}

.title-section h1 {
    margin: 0;
    color: var(--text);
    font-size: 2.22rem;
    line-height: 1.1;
}

.title-section h1 span {
    display: inline-flex;
    align-items: center;
    margin-left: 12px;
    padding: 4px 13px;
    border: 1px solid rgba(184, 202, 224, 0.18);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.055);
    font-size: 0.78rem;
    font-weight: 800;
    vertical-align: middle;
}

.description {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.82rem;
}

.user-header-info {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid rgba(184, 202, 224, 0.13);
    border-radius: 12px;
    color: var(--text-soft);
    background: rgba(7, 14, 22, 0.58);
}

.user-name,
.admin-badge,
.viewing-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 850;
    white-space: nowrap;
}

.cloud-version-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 13px;
    border: 1px solid rgba(105, 187, 255, 0.52);
    border-radius: 999px;
    color: #e6f7ff;
    background: linear-gradient(180deg, rgba(48, 142, 220, 0.54), rgba(27, 86, 148, 0.42));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 18px rgba(75, 169, 242, 0.14);
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1.1;
    text-decoration: none;
    white-space: nowrap;
    transition:
        transform 0.16s ease,
        border-color 0.16s ease,
        background 0.16s ease,
        box-shadow 0.16s ease;
}

.cloud-version-link:hover {
    transform: translateY(-1px);
    border-color: rgba(152, 216, 255, 0.9);
    color: #ffffff;
    background: linear-gradient(180deg, rgba(62, 164, 242, 0.68), rgba(34, 104, 172, 0.56));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 0 22px rgba(75, 169, 242, 0.24);
}

.cloud-version-link:focus-visible {
    outline: 2px solid rgba(153, 220, 255, 0.95);
    outline-offset: 2px;
}

.user-name {
    border: 1px solid rgba(184, 202, 224, 0.16);
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.045);
}

.admin-badge {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #071018;
    background: var(--gold-bright);
    cursor: pointer;
}

.viewing-badge {
    border: 1px solid rgba(111, 164, 216, 0.34);
    color: #dff4ff;
    background: rgba(111, 164, 216, 0.18);
}

.user-buttons,
.control-primary,
.control-secondary,
.prediction-toolbar,
.visual-tools {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.change-pwd-btn,
.logout-btn,
.today-btn,
.new-batch-btn,
.delete-batch-btn,
.export-btn,
.control-btn,
.theory-inherit-btn,
.export-sequence-btn,
.u1-interface-btn,
.toggle-skill-btn,
.yesterday-context-btn,
.sequence-help-menu summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border: 1px solid rgba(184, 202, 224, 0.17);
    border-radius: 8px;
    padding: 8px 13px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.045);
    box-shadow: none;
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1.1;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.change-pwd-btn:hover,
.logout-btn:hover,
.today-btn:hover,
.new-batch-btn:hover,
.delete-batch-btn:hover,
.export-btn:hover,
.control-btn:hover,
.theory-inherit-btn:hover,
.export-sequence-btn:hover,
.u1-interface-btn:hover,
.toggle-skill-btn:hover,
.yesterday-context-btn:hover:not(:disabled),
.sequence-help-menu summary:hover {
    transform: translateY(-1px);
    border-color: rgba(216, 179, 106, 0.38);
    background: rgba(216, 179, 106, 0.12);
    color: var(--text);
}

.today-btn,
.new-batch-btn,
.sync-btn,
.export-sequence-btn,
.yesterday-context-btn.active,
.u1-interface-btn.active,
.alert-tool.active {
    border-color: rgba(216, 179, 106, 0.52);
    color: #071018;
    background: linear-gradient(180deg, #f0cf82, #c9964d);
}

.export-sequence-btn {
    border-color: rgba(120, 181, 145, 0.34);
    color: #ecfff5;
    background: rgba(55, 112, 79, 0.46);
}

.logout-btn,
.delete-batch-btn,
.danger-action,
.danger-tool {
    border-color: rgba(223, 116, 116, 0.34);
    color: #ffe8e8;
    background: rgba(113, 35, 40, 0.42);
}

.warning-tool {
    border-color: rgba(210, 141, 88, 0.34);
    color: #fff2df;
    background: rgba(114, 68, 31, 0.42);
}

.control-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding: 12px;
    border: 1px solid rgba(184, 202, 224, 0.12);
    border-radius: 12px;
    background: rgba(7, 14, 22, 0.58);
}

.control-primary {
    min-width: min(100%, 560px);
}

.field-shell,
.batch-selector {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 5px 8px 5px 11px;
    border: 1px solid rgba(184, 202, 224, 0.16);
    border-radius: 9px;
    background: rgba(4, 9, 15, 0.68);
}

.field-label,
.batch-selector span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 850;
}

.date-input,
.batch-selector select {
    min-height: 32px;
    border: 0;
    color: var(--text);
    background: transparent;
    font-size: 0.8rem;
    font-weight: 750;
}

.batch-selector select {
    min-width: 210px;
}

.auto-save-note {
    color: var(--muted);
    font-size: 0.72rem;
}

.utility-menu,
.danger-menu,
.sequence-help-menu {
    position: relative;
}

.utility-menu summary,
.danger-menu summary,
.sequence-help-menu summary {
    list-style: none;
}

.utility-menu summary::-webkit-details-marker,
.danger-menu summary::-webkit-details-marker,
.sequence-help-menu summary::-webkit-details-marker {
    display: none;
}

.utility-menu summary::after,
.danger-menu summary::after {
    content: "";
    width: 6px;
    height: 6px;
    margin-left: 8px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}

.utility-menu-panel,
.danger-menu .danger-action {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 40;
}

.utility-menu-panel {
    display: grid;
    gap: 6px;
    min-width: 188px;
    padding: 8px;
    border: 1px solid rgba(184, 202, 224, 0.16);
    border-radius: 10px;
    background: rgba(8, 15, 24, 0.98);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.26);
}

.utility-menu:not([open]) .utility-menu-panel,
.danger-menu:not([open]) .danger-action {
    display: none;
}

.utility-menu-panel .export-btn {
    width: 100%;
    justify-content: flex-start;
}

.visual-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.visual-tools {
    justify-content: flex-end;
}

.sequence-help-menu summary {
    width: 36px;
    padding: 0;
}

.prediction-toolbar {
    margin-bottom: 10px;
}

.prediction-toolbar .prediction-label,
.analysis-range-row .prediction-label,
.ai-action-row .prediction-label {
    min-height: 34px;
    border: 1px solid rgba(216, 179, 106, 0.22);
    border-radius: 999px;
    padding: 7px 11px;
    color: var(--gold-bright);
    background: rgba(216, 179, 106, 0.08);
    font-size: 0.78rem;
    font-weight: 850;
}

.analysis-range-row,
.ai-action-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.analysis-range-row {
    margin-bottom: 12px;
}

.data-range-select {
    min-height: 36px;
    border: 1px solid rgba(184, 202, 224, 0.17);
    border-radius: 8px;
    padding: 7px 34px 7px 12px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.045);
    font-size: 0.78rem;
    font-weight: 850;
}

.ai-helper-text {
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.45;
}

.ai-predict-btn,
.predict-count,
.predict-count-admin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border: 1px solid rgba(184, 202, 224, 0.17);
    border-radius: 8px;
    padding: 8px 13px;
    box-shadow: none;
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1.1;
    white-space: nowrap;
}

.ai-predict-btn {
    color: #071018;
    background: rgba(120, 181, 145, 0.78);
    cursor: pointer;
    transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.ai-predict-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: rgba(216, 179, 106, 0.38);
    background: rgba(216, 179, 106, 0.82);
}

.ai-predict-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.ai-predict-btn.danger-tool {
    border-color: rgba(223, 116, 116, 0.34);
    color: #ffe8e8;
    background: rgba(113, 35, 40, 0.42);
}

.predict-count,
.predict-count-admin {
    color: var(--gold-bright);
    border-color: rgba(216, 179, 106, 0.3);
    background: rgba(216, 179, 106, 0.1);
}

.utility-menu summary,
.danger-menu summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border: 1px solid rgba(184, 202, 224, 0.17);
    border-radius: 8px;
    padding: 8px 13px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.045);
    box-shadow: none;
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1.1;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.utility-menu summary:hover,
.danger-menu summary:hover {
    transform: translateY(-1px);
    border-color: rgba(216, 179, 106, 0.38);
    background: rgba(216, 179, 106, 0.12);
}

@media (max-width: 900px) {
    .app-header,
    .control-bar {
        display: grid;
        grid-template-columns: 1fr;
    }

    .user-header-info,
    .control-secondary,
    .visual-tools {
        justify-content: flex-start;
    }

    .batch-selector select {
        min-width: 150px;
    }
}

/* ===== U1 MODERN DATA VIEW ===== */
.u1-interface .records-table {
    overflow: hidden;
    border: 1px solid rgba(184, 202, 224, 0.12);
    border-radius: 12px;
    background: rgba(7, 14, 22, 0.66);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.u1-interface .records-table th {
    position: static;
    top: auto;
    z-index: 1;
    padding: 11px 14px;
    border-bottom: 1px solid rgba(216, 179, 106, 0.24);
    color: var(--gold-bright);
    background: rgba(16, 28, 42, 0.96);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0;
}

.u1-interface .records-table td {
    padding: 8px 14px;
    border-bottom-color: rgba(184, 202, 224, 0.08);
    color: var(--text-soft);
    font-size: 0.8rem;
}

.u1-interface .records-table tbody tr {
    transition: background 0.16s ease, filter 0.16s ease;
}

.u1-interface .records-table tbody tr:hover {
    background: rgba(216, 179, 106, 0.08) !important;
    filter: none;
}

.u1-interface .tr-main-bg {
    background-color: rgba(33, 70, 111, 0.58) !important;
}

.u1-interface .tr-sub-bg {
    background-color: rgba(38, 87, 59, 0.54) !important;
}

.u1-interface .tr-other-bg {
    background-color: rgba(104, 74, 36, 0.54) !important;
}

.u1-interface .type-option,
.u1-interface .status-option,
.u1-interface .fraction-input input,
.u1-interface .profit-input,
.u1-interface .records-table select,
.u1-interface .quick-edit-table select {
    border: 1px solid rgba(184, 202, 224, 0.17) !important;
    border-radius: 8px !important;
    color: var(--text) !important;
    background: rgba(255, 255, 255, 0.045) !important;
    box-shadow: none !important;
}

.u1-interface .type-option,
.u1-interface .status-option {
    min-height: 28px;
    padding: 5px 9px !important;
    font-weight: 800;
}

.u1-interface .type-option:hover,
.u1-interface .status-option:hover {
    border-color: rgba(216, 179, 106, 0.38) !important;
    background: rgba(216, 179, 106, 0.12) !important;
}

.u1-interface .type-option.selected,
.u1-interface .status-option.selected {
    border-color: rgba(216, 179, 106, 0.52) !important;
    color: #071018 !important;
    background: linear-gradient(180deg, #f0cf82, #c9964d) !important;
}

.u1-interface .fraction-input span {
    color: var(--gold-bright);
}

.u1-interface .record-visual-panel {
    border: 1px solid rgba(184, 202, 224, 0.12);
    border-radius: 12px;
    background: rgba(7, 14, 22, 0.68);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.u1-interface .visual-title {
    color: var(--gold-bright);
}

.u1-interface .marker-container {
    gap: 9px;
}

.u1-interface .marker-item,
.u1-interface .marker-item.marker-special-red:not(.marker-burst-hot),
.u1-interface .marker-main,
.u1-interface .marker-sub,
.u1-interface .marker-other {
    box-sizing: border-box !important;
    flex: 0 0 80px !important;
    width: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
    height: 132px !important;
    min-height: 132px !important;
    max-height: 132px !important;
    border: 1px solid rgba(150, 177, 204, 0.42) !important;
    border-radius: 8px !important;
    background: rgba(42, 62, 86, 0.78) !important;
    box-shadow: none !important;
    transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease !important;
}

.u1-interface .marker-item:hover {
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 2px rgba(214, 181, 111, 0.18) !important;
}

.u1-interface .marker-item.oval-shape {
    border-radius: 999px !important;
    border-style: dashed !important;
    border-width: 2px !important;
    border-color: rgba(216, 181, 111, 0.86) !important;
    background: rgba(58, 72, 94, 0.82) !important;
    box-shadow:
        inset 0 0 0 1px rgba(255, 236, 179, 0.24),
        0 0 0 2px rgba(214, 181, 111, 0.16) !important;
}

.u1-interface .marker-item.marker-burst-hot,
.u1-interface .marker-item.marker-special-red.marker-burst-hot,
.u1-interface .marker-item.oval-shape.marker-burst-hot {
    border-color: #ff6a6a !important;
    border-width: 2px !important;
    background: rgba(255, 80, 80, 0.2) !important;
    box-shadow: 0 0 5px rgba(255, 106, 106, 0.3) !important;
}

.u1-interface .marker-item.marker-wild:not(.marker-burst-hot) {
    border-color: rgba(140, 255, 140, 0.7) !important;
    border-width: 2px !important;
    background: rgba(80, 150, 90, 0.18) !important;
}

.u1-interface .marker-number,
.u1-interface .marker-number-main,
.u1-interface .marker-number-sub,
.u1-interface .marker-number-other,
.u1-interface .marker-u1-main-sub-skill-hot .marker-number-main,
.u1-interface .marker-u1-main-sub-skill-hot .marker-number-sub {
    color: #e8f0f8 !important;
    font-weight: 900;
    text-shadow: 0 1px 2px rgba(3, 8, 14, 0.46);
}

.u1-interface .marker-special-red:not(.marker-burst-hot) .marker-number {
    color: #ffaa66 !important;
}

.u1-interface .marker-wild:not(.marker-burst-hot) .marker-number {
    color: #8cff8c !important;
}

.u1-interface .marker-burst-hot .marker-number,
.u1-interface .marker-burst-hot .marker-number-main,
.u1-interface .marker-burst-hot .marker-number-sub,
.u1-interface .marker-burst-hot .marker-number-other,
.u1-interface .marker-burst-hot .marker-time span {
    color: #ff6a6a !important;
}

.u1-interface .marker-time span {
    border: 0 !important;
    color: #d6e2ee !important;
    background: rgba(5, 12, 20, 0.44) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045) !important;
}

.u1-interface .marker-number-main,
.u1-interface .marker-u1-main-sub-skill-hot .marker-number-main,
.u1-interface .marker-special-red .marker-number-main,
.u1-interface .marker-burst-hot .marker-number-main {
    color: #86c8ff !important;
    text-shadow: 0 1px 2px rgba(3, 8, 14, 0.55), 0 0 14px rgba(76, 164, 255, 0.28);
}

.u1-interface .marker-number-sub,
.u1-interface .marker-u1-main-sub-skill-hot .marker-number-sub,
.u1-interface .marker-special-red .marker-number-sub,
.u1-interface .marker-burst-hot .marker-number-sub {
    color: #91eba2 !important;
    text-shadow: 0 1px 2px rgba(3, 8, 14, 0.55), 0 0 14px rgba(91, 215, 119, 0.26);
}

.u1-interface .marker-number-other,
.u1-interface .marker-special-red .marker-number-other,
.u1-interface .marker-wild .marker-number-other,
.u1-interface .marker-burst-hot .marker-number-other {
    color: #f6c768 !important;
    text-shadow: 0 1px 2px rgba(3, 8, 14, 0.55), 0 0 14px rgba(246, 199, 104, 0.24);
}

/* ===== MODERN RECORD TABLE STYLE ===== */
.records-table {
    overflow: hidden;
    border: 1px solid rgba(184, 202, 224, 0.12);
    border-radius: 12px;
    background: rgba(7, 14, 22, 0.66);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.records-table th {
    position: static;
    top: auto;
    z-index: 1;
    padding: 11px 14px;
    border-bottom: 1px solid rgba(216, 179, 106, 0.24);
    color: var(--gold-bright);
    background: rgba(16, 28, 42, 0.96);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0;
}

.records-table td {
    padding: 8px 14px;
    border-bottom-color: rgba(184, 202, 224, 0.08);
    color: var(--text-soft);
    font-size: 0.8rem;
}

.records-table tbody tr {
    transition: background 0.16s ease, filter 0.16s ease;
}

.records-table tbody tr:hover {
    background: rgba(216, 179, 106, 0.08) !important;
    filter: none;
}

.tr-main-bg {
    background-color: rgba(33, 70, 111, 0.58) !important;
}

.tr-sub-bg {
    background-color: rgba(38, 87, 59, 0.54) !important;
}

.tr-other-bg {
    background-color: rgba(104, 74, 36, 0.54) !important;
}

.type-option,
.status-option,
.fraction-input input,
.profit-input,
.records-table select,
.quick-edit-table select {
    border: 1px solid rgba(184, 202, 224, 0.17) !important;
    border-radius: 8px !important;
    color: var(--text) !important;
    background: rgba(255, 255, 255, 0.045) !important;
    box-shadow: none !important;
}

.type-option,
.status-option {
    min-height: 28px;
    padding: 5px 9px !important;
    font-weight: 800;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.type-option:hover,
.status-option:hover {
    border-color: rgba(216, 179, 106, 0.38) !important;
    background: rgba(216, 179, 106, 0.12) !important;
}

.type-option.selected,
.status-option.selected {
    border-color: rgba(216, 179, 106, 0.52) !important;
    color: #071018 !important;
    background: linear-gradient(180deg, #f0cf82, #c9964d) !important;
}

.fraction-input span {
    color: var(--gold-bright);
}

.fraction-input input:focus,
.profit-input:focus {
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(214, 181, 111, 0.14) !important;
}

/* ===== MAIN PAGE CINEMATIC BACKDROP ===== */
:root {
    --mx: 50vw;
    --my: 42vh;
    --scroll-y: 0px;
}

html {
    background: #05070d;
}

body {
    min-height: 100dvh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 80% 10%, rgba(159, 220, 255, 0.16), transparent 30vw),
        radial-gradient(circle at 12% 45%, rgba(230, 169, 197, 0.12), transparent 24vw),
        linear-gradient(180deg, #05070d 0%, #09111c 48%, #05070d 100%);
}

.main-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 16% 34%, rgba(159, 220, 255, 0.18), transparent 26%),
        radial-gradient(circle at 84% 32%, rgba(255, 232, 172, 0.2), transparent 26%),
        url("lianyao-dual-guardians-main-bg.jpg") center center / cover no-repeat;
    filter: saturate(1.12) brightness(0.98);
    transform: translate3d(0, calc(var(--scroll-y) * -0.035), 0) scale(1.025);
    animation: mainBackdropBreathe 13s ease-in-out infinite;
}

.main-backdrop::before {
    content: "";
    position: absolute;
    inset: -12%;
    background:
        radial-gradient(circle at 18% 30%, rgba(159, 220, 255, 0.22), transparent 28%),
        radial-gradient(circle at 74% 18%, rgba(255, 232, 172, 0.18), transparent 24%),
        conic-gradient(from 120deg at 56% 48%, transparent 0deg, rgba(159, 220, 255, 0.14) 54deg, transparent 110deg, rgba(230, 169, 197, 0.1) 168deg, transparent 250deg);
    mix-blend-mode: screen;
    opacity: 0.86;
    animation: mainLightDrift 18s ease-in-out infinite alternate;
}

.main-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 7, 13, 0.16) 0%, rgba(5, 7, 13, 0.28) 24%, rgba(5, 7, 13, 0.38) 50%, rgba(5, 7, 13, 0.24) 76%, rgba(5, 7, 13, 0.14) 100%),
        linear-gradient(180deg, rgba(5, 7, 13, 0.04) 0%, rgba(5, 7, 13, 0.52) 100%);
}

.main-light-beam {
    position: fixed;
    z-index: 1;
    pointer-events: none;
    width: 76vw;
    height: 34vh;
    border-radius: 50%;
    filter: blur(18px);
    mix-blend-mode: screen;
}

.main-light-beam-a {
    inset: auto -14vw 7vh auto;
    background: linear-gradient(90deg, transparent, rgba(159, 220, 255, 0.2), transparent);
    transform: rotate(-13deg);
    animation: mainBeamSweepA 9s ease-in-out infinite;
}

.main-light-beam-b {
    inset: 7vh auto auto -16vw;
    background: linear-gradient(90deg, transparent, rgba(255, 232, 172, 0.12), rgba(230, 169, 197, 0.08), transparent);
    transform: rotate(16deg);
    animation: mainBeamSweepB 12s ease-in-out infinite;
}

.main-particle-canvas {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0.78;
}

.main-pointer-glow {
    position: fixed;
    left: 0;
    top: 0;
    width: 34rem;
    height: 34rem;
    z-index: 3;
    pointer-events: none;
    transform: translate3d(calc(var(--mx) - 17rem), calc(var(--my) - 17rem), 0);
    background: radial-gradient(circle, rgba(159, 220, 255, 0.22) 0%, rgba(230, 169, 197, 0.11) 28%, transparent 64%);
    filter: blur(8px);
    mix-blend-mode: screen;
    transition: transform 0.16s ease-out;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 86px 86px;
    mask-image: linear-gradient(to bottom, transparent, black 12%, black 72%, transparent);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    opacity: 0.08;
    background-image: linear-gradient(0deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 100% 4px;
    mix-blend-mode: overlay;
}

#app {
    position: relative;
    z-index: 10;
}

.top-stats-bar {
    background: linear-gradient(180deg, rgba(7, 13, 23, 0.78) 0%, rgba(7, 13, 23, 0.58) 100%);
    border-bottom-color: rgba(204, 229, 255, 0.12);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(18px) saturate(122%);
    -webkit-backdrop-filter: blur(18px) saturate(122%);
}

.board {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.062), rgba(255, 255, 255, 0.012)),
        linear-gradient(180deg, rgba(20, 28, 42, 0.68) 0%, rgba(13, 21, 32, 0.58) 52%, rgba(10, 17, 26, 0.64) 100%);
    border-color: rgba(204, 229, 255, 0.16);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.36),
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        inset 0 -1px 0 rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(16px) saturate(126%);
    -webkit-backdrop-filter: blur(16px) saturate(126%);
}

.app-header,
.user-header-info,
.control-bar,
.records-table,
.stats-area,
.prediction-container,
.record-visual-panel,
.month-profit-module,
.calendar-module,
.bottom-images,
.skill-chart-container,
.quick-edit-row-container,
.local-prediction {
    background: rgba(7, 14, 22, 0.46);
    border-color: rgba(204, 229, 255, 0.12);
    backdrop-filter: blur(12px) saturate(118%);
    -webkit-backdrop-filter: blur(12px) saturate(118%);
}

@keyframes mainBackdropBreathe {
    0%, 100% {
        transform: translate3d(0, calc(var(--scroll-y) * -0.035), 0) scale(1.025);
        filter: saturate(1.12) brightness(0.96);
    }
    50% {
        transform: translate3d(-0.25%, calc((var(--scroll-y) * -0.035) - 0.3%), 0) scale(1.045);
        filter: saturate(1.18) brightness(1.02);
    }
}

@keyframes mainLightDrift {
    0% { transform: translate3d(-1.5%, 0, 0) rotate(0deg); opacity: 0.66; }
    100% { transform: translate3d(2%, -1.5%, 0) rotate(5deg); opacity: 0.92; }
}

@keyframes mainBeamSweepA {
    0%, 100% { opacity: 0.28; transform: rotate(-13deg) translateX(-7%); }
    50% { opacity: 0.76; transform: rotate(-13deg) translateX(8%); }
}

@keyframes mainBeamSweepB {
    0%, 100% { opacity: 0.18; transform: rotate(16deg) translateX(6%); }
    50% { opacity: 0.52; transform: rotate(16deg) translateX(-5%); }
}

@media (max-width: 900px) {
    .main-backdrop {
        background-position: center top;
        background-size: cover;
        transform: translate3d(0, calc(var(--scroll-y) * -0.02), 0) scale(1.02);
    }

    .main-particle-canvas,
    .main-pointer-glow,
    .main-light-beam {
        display: none;
    }

    .board {
        background:
            linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
            rgba(10, 17, 26, 0.74);
    }
}

@media (prefers-reduced-motion: reduce) {
    .main-backdrop,
    .main-backdrop::before,
    .main-light-beam {
        animation: none !important;
    }

    .main-particle-canvas,
    .main-pointer-glow {
        display: none;
    }
}

/* ===== DARK SELECT MENUS ===== */
.batch-selector select,
.data-range-select,
.threshold-select-inline,
.records-table select,
.quick-edit-table select {
    color-scheme: dark;
}

.batch-selector select {
    background-color: rgba(4, 9, 15, 0.34);
}

.batch-selector:focus-within {
    border-color: rgba(240, 210, 142, 0.74);
    box-shadow: 0 0 0 2px rgba(240, 210, 142, 0.16);
}

.batch-selector select option,
.data-range-select option,
.threshold-select-inline option,
.records-table select option,
.quick-edit-table select option {
    color: #edf6ff;
    background-color: #07111d;
    font-weight: 750;
}

.batch-selector select option:checked,
.data-range-select option:checked,
.threshold-select-inline option:checked,
.records-table select option:checked,
.quick-edit-table select option:checked {
    color: #ffffff;
    background-color: #1773d1;
}

/* ===== OVERLAY LAYER FIXES ===== */
.board {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.control-bar {
    position: relative;
    z-index: 120;
    overflow: visible;
}

.control-bar:has(.utility-menu[open]),
.control-bar:has(.danger-menu[open]) {
    z-index: 900;
}

.utility-menu[open],
.danger-menu[open] {
    z-index: 910;
}

.record-visual-panel:has(.sequence-help-menu[open]) {
    position: relative;
    z-index: 940;
    overflow: visible;
}

.visual-tools:has(.sequence-help-menu[open]),
.sequence-help-menu[open] {
    position: relative;
    z-index: 950;
}

.sequence-help-menu[open] .sequence-help-content {
    top: calc(100% + 8px);
    bottom: auto;
    right: 0;
    z-index: 960;
    width: min(320px, calc(100vw - 32px));
    max-height: min(260px, 46vh);
    overflow-y: auto;
    border-color: rgba(216, 179, 106, 0.28);
    background: rgba(7, 14, 22, 0.98);
    box-shadow:
        0 18px 34px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.utility-menu-panel,
.danger-menu .danger-action {
    z-index: 920;
    background: rgba(7, 13, 22, 0.99);
    border-color: rgba(240, 210, 142, 0.28);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.48),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.records-table {
    position: relative;
    z-index: 1;
}

.admin-modal,
.change-pwd-modal {
    align-items: flex-start;
    justify-content: center;
    box-sizing: border-box;
    padding: clamp(28px, 7vh, 72px) 16px 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.admin-panel,
.change-pwd-panel {
    max-height: calc(100vh - 56px);
    overflow-y: auto;
}

@media (max-width: 640px) {
    .admin-modal,
    .change-pwd-modal {
        padding: 18px 10px;
    }

    .admin-panel,
    .change-pwd-panel {
        width: min(94vw, 560px);
        max-height: calc(100vh - 36px);
    }
}

/* ===== BRAND TITLE LOCKUP ===== */
.title-section {
    position: relative;
    min-width: 0;
}

.app-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    margin: 0 0 6px;
    padding: 4px 8px;
    border: 1px solid rgba(240, 210, 142, 0.24);
    border-radius: 6px;
    color: #f3cf7a;
    background: rgba(9, 17, 28, 0.62);
    font-family: "Bahnschrift", "Segoe UI Variable Text", "Segoe UI", sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
}

.app-eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #62ddff;
    box-shadow: 0 0 10px rgba(98, 221, 255, 0.72);
}

.brand-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;
    margin: 0;
    line-height: 1;
}

.title-section h1 .brand-title-main {
    position: relative;
    display: inline-block;
    margin: 0;
    padding: 0 0 7px;
    border: 0;
    border-radius: 0;
    color: #fbf6e8;
    background: transparent;
    font-family: "Microsoft YaHei UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 2.34rem;
    font-weight: 950;
    letter-spacing: 0;
    line-height: 0.98;
    text-shadow:
        0 1px 0 rgba(255, 236, 179, 0.18),
        0 12px 24px rgba(0, 0, 0, 0.34),
        0 0 24px rgba(98, 221, 255, 0.14);
}

.title-section h1 .brand-title-main::after {
    content: "";
    position: absolute;
    left: 3px;
    right: 10px;
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f2c96d 0%, #62ddff 58%, transparent 100%);
    opacity: 0.9;
}

.title-section h1 .brand-user-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin: 1px 0 0;
    padding: 5px 12px;
    border: 1px solid rgba(184, 202, 224, 0.2);
    border-radius: 999px;
    color: #aebdd0;
    background: rgba(255, 255, 255, 0.055);
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1;
    vertical-align: middle;
}

@media (max-width: 640px) {
    .brand-title {
        gap: 9px;
    }

    .title-section h1 .brand-title-main {
        font-size: 1.72rem;
    }

    .title-section h1 .brand-user-chip {
        min-height: 28px;
        padding: 5px 10px;
        font-size: 0.72rem;
    }
}

/* ===== GLASS MODAL SYSTEM ===== */
.admin-modal,
.change-pwd-modal,
.calculator-modal,
.burst-analysis-modal {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 18% 16%, rgba(98, 221, 255, 0.07), transparent 28%),
        radial-gradient(circle at 82% 18%, rgba(240, 210, 142, 0.08), transparent 26%),
        rgba(2, 7, 13, 0.24) !important;
    backdrop-filter: blur(4px) saturate(108%);
    -webkit-backdrop-filter: blur(4px) saturate(108%);
    align-items: flex-start;
    justify-content: center;
    box-sizing: border-box;
    padding: clamp(26px, 6vh, 64px) 18px 26px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.calculator-modal,
.burst-analysis-modal {
    z-index: 1800;
}

.admin-modal,
.change-pwd-modal {
    z-index: 1900;
}

.image-modal {
    background:
        radial-gradient(circle at 50% 18%, rgba(98, 221, 255, 0.08), transparent 30%),
        rgba(2, 7, 13, 0.34) !important;
    backdrop-filter: blur(5px) saturate(110%);
    -webkit-backdrop-filter: blur(5px) saturate(110%);
}

.admin-panel,
.change-pwd-panel,
.calculator-modal-content,
.burst-analysis-panel {
    position: relative;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018)),
        rgba(8, 15, 24, 0.66) !important;
    border: 1px solid rgba(204, 229, 255, 0.18) !important;
    border-radius: 18px !important;
    color: var(--text);
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.44),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.22) !important;
    backdrop-filter: blur(18px) saturate(128%);
    -webkit-backdrop-filter: blur(18px) saturate(128%);
}

.admin-panel,
.change-pwd-panel {
    max-height: calc(100vh - 56px);
    overflow-y: auto;
}

.calculator-modal-content,
.burst-analysis-panel {
    overflow: hidden;
}

.admin-panel::before,
.change-pwd-panel::before,
.calculator-modal-content::before,
.burst-analysis-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background:
        linear-gradient(90deg, rgba(240, 210, 142, 0.2), transparent 22%, transparent 78%, rgba(98, 221, 255, 0.18)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 18%);
    opacity: 0.68;
}

.admin-panel > *,
.change-pwd-panel > *,
.calculator-modal-content > *,
.burst-analysis-panel > * {
    position: relative;
    z-index: 1;
}

.admin-panel h3,
.change-pwd-panel h3 {
    color: var(--gold-bright) !important;
    text-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.burst-analysis-header,
.calculator-modal-header {
    background:
        linear-gradient(135deg, rgba(30, 49, 72, 0.72), rgba(11, 22, 36, 0.58)) !important;
    border-bottom: 1px solid rgba(240, 210, 142, 0.28) !important;
    color: var(--gold-bright) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.burst-threshold-bar,
.burst-analysis-content,
.burst-guide-content,
.burst-analysis-footer {
    background: rgba(7, 14, 22, 0.42) !important;
    border-color: rgba(204, 229, 255, 0.12) !important;
}

.burst-analysis-result,
.burst-guide-note,
.burst-guide-section,
.burst-guide-flow-item,
.burst-guide-rule-group,
.burst-guide-copy,
.api-key-privacy-note,
.chat-response,
.game-account-row,
.user-list li,
.admin-action-menu {
    background: rgba(10, 20, 32, 0.54) !important;
    border: 1px solid rgba(204, 229, 255, 0.14) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.burst-guide-section[open],
.burst-guide-rule-group {
    border-color: rgba(240, 210, 142, 0.24) !important;
}

.burst-guide-section summary:hover,
.admin-action-menu-item:hover,
.user-list li:hover {
    background: rgba(98, 221, 255, 0.08) !important;
}

.burst-guide-table th,
.burst-guide-group-heading,
.burst-guide-legend span {
    background: rgba(18, 34, 52, 0.62) !important;
    border-color: rgba(204, 229, 255, 0.12) !important;
}

.burst-guide-table td,
.burst-guide-table th {
    border-color: rgba(204, 229, 255, 0.1) !important;
}

.burst-analysis-content [style*="background: #2a3a4a"],
.burst-analysis-content [style*="background:#2a3a4a"],
.burst-analysis-content [style*="background: #1a2535"],
.burst-analysis-content [style*="background:#1a2535"] {
    background: rgba(10, 20, 32, 0.54) !important;
    border: 1px solid rgba(204, 229, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.change-pwd-panel input,
.game-account-row input,
.threshold-select-inline,
.chat-input,
.input-field {
    background: rgba(5, 12, 20, 0.62) !important;
    border: 1px solid rgba(204, 229, 255, 0.18) !important;
    color: var(--text) !important;
}

.change-pwd-panel input:focus,
.game-account-row input:focus,
.threshold-select-inline:focus,
.chat-input:focus,
.input-field:focus {
    border-color: rgba(240, 210, 142, 0.72) !important;
    box-shadow: 0 0 0 3px rgba(240, 210, 142, 0.13) !important;
    outline: none;
}

.modal-close-btn,
.image-modal-close,
.close-admin,
.burst-analysis-footer .confirm-btn,
.change-pwd-buttons button {
    border: 1px solid rgba(204, 229, 255, 0.16) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.modal-close-btn,
.image-modal-close,
.cancel-btn,
.close-admin {
    background: rgba(113, 35, 40, 0.58) !important;
    color: #ffe8e8 !important;
}

.confirm-btn,
.burst-analysis-footer .confirm-btn {
    background: rgba(62, 108, 77, 0.58) !important;
    color: #ecfff5 !important;
}

.clear-api-key-btn {
    background: rgba(113, 35, 40, 0.58) !important;
    border: 1px solid rgba(223, 116, 116, 0.28) !important;
}

.image-modal img {
    border: 1px solid rgba(240, 210, 142, 0.42) !important;
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.48),
        0 0 42px rgba(98, 221, 255, 0.12) !important;
}

.calculator-iframe {
    background: transparent !important;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .admin-panel,
    .change-pwd-panel,
    .calculator-modal-content,
    .burst-analysis-panel {
        background: rgba(8, 15, 24, 0.92) !important;
    }
}

@media (max-width: 768px) {
    .admin-modal,
    .change-pwd-modal,
    .calculator-modal,
    .burst-analysis-modal {
        padding: 14px 10px;
    }

    .admin-panel,
    .change-pwd-panel,
    .burst-analysis-panel {
        width: min(94vw, 980px);
        max-height: calc(100vh - 28px);
    }

    .calculator-modal-content {
        height: calc(100vh - 28px);
        border-radius: 14px !important;
    }
}

/* ===== 底部快捷栏最终修复：去掉大黑色长方形，只保留按钮本身 ===== */
/* 外层 fixed-quick-bar：只负责定位，不显示任何背景、阴影、边框 */
.fixed-quick-bar {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: 24px !important;
    transform: translateX(-50%) !important;

    width: max-content !important;
    max-width: calc(100vw - 24px) !important;
    min-width: 0 !important;

    padding: 0 !important;
    margin: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    z-index: 250 !important;
    pointer-events: none !important;

    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-top: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* 防止伪元素产生隐藏底板或阴影 */
.fixed-quick-bar::before,
.fixed-quick-bar::after,
.quick-bar-content::before,
.quick-bar-content::after {
    content: none !important;
    display: none !important;
}

/* 内层 quick-bar-content：也不显示大底板，只负责排列按钮 */
.quick-bar-content {
    width: max-content !important;
    max-width: calc(100vw - 24px) !important;
    min-width: 0 !important;

    padding: 0 !important;
    margin: 0 auto !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 20px !important;
    flex-wrap: wrap !important;

    pointer-events: auto !important;

    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* 收起状态也去掉外层底板 */
.quick-bar-content.compact {
    padding: 0 !important;
    gap: 10px !important;

    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* 保留里面按钮本身的样式和点击 */
.quick-bar-content > *,
.quick-label,
.quick-toggle,
.undo-btn,
.type-bubbles,
.bubble {
    pointer-events: auto !important;
}

/* 手机端：仍然只显示按钮，不出现横向黑底 */
@media (max-width: 768px) {
    .fixed-quick-bar {
        left: 50% !important;
        right: auto !important;
        bottom: 14px !important;
        transform: translateX(-50%) !important;
        width: max-content !important;
        max-width: calc(100vw - 12px) !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .quick-bar-content {
        max-width: calc(100vw - 12px) !important;
        padding: 0 !important;
        gap: 10px !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .type-bubbles {
        gap: 8px !important;
    }
}

/* ===== 2026-08-30 单机版手机布局 =====
   只改变窄屏展示；记录仍由 index.html 中原有的 localStorage 逻辑保存。 */
.records-mobile-toolbar {
    display: none;
}

@media (max-width: 768px) {
    /* 手机使用页面内快捷按钮，避免固定底栏遮挡表单和系统键盘。 */
    .fixed-quick-bar {
        display: none !important;
    }

    .mobile-sequence-quick-actions-bottom {
        position: relative;
        top: auto;
        z-index: 5;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: stretch;
        width: 100%;
        gap: 8px;
        margin: 14px 0 8px;
        padding: 8px;
        overflow: visible;
        border: 1px solid rgba(184, 202, 224, 0.2);
        border-radius: 11px;
        background: rgba(8, 16, 26, 0.96);
        box-shadow: 0 5px 16px rgba(0, 0, 0, 0.3);
        box-sizing: border-box;
    }

    .mobile-sequence-quick-actions-bottom .mobile-quick-add {
        min-width: 0;
        min-height: 46px;
        padding: 9px 6px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 9px;
        font-size: 0.82rem;
        font-weight: 850;
        line-height: 1.1;
        text-align: center;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
        touch-action: manipulation;
    }

    .mobile-sequence-quick-actions-bottom .mobile-sequence-undo,
    .mobile-sequence-quick-actions-bottom .mobile-sequence-undo:disabled {
        border-color: rgba(214, 181, 111, 0.34) !important;
        color: #f0d28e !important;
        -webkit-text-fill-color: #f0d28e;
        background: linear-gradient(180deg, rgba(62, 72, 87, 0.98), rgba(42, 51, 64, 0.98)) !important;
    }

    .mobile-sequence-quick-actions-bottom .mobile-sequence-undo:disabled {
        opacity: 0.58 !important;
    }
}

@media (max-width: 480px) {
    .board {
        display: flex;
        flex-direction: column;
        width: calc(100% - 12px);
        padding-right: 14px;
        padding-left: 14px;
        padding-bottom: 32px;
    }

    /* 日期/游戏号之后先显示序列，再显示当前组的编辑卡片。 */
    .board > * { order: 20; }
    .board > .app-header { order: 0; }
    .board > .control-bar { order: 1; }
    .board > .storage-warning { order: 2; }
    .board > .record-visual-panel { order: 3; }
    .board > .mobile-sequence-quick-actions-bottom { order: 4; }
    .board > .records-table,
    .board > .empty-message,
    .board > .mobile-empty-quick-actions { order: 5; }
    .board > .quick-edit-row-container { order: 6; }
    .board > .skill-chart-container { order: 7; }
    .board > .stats-area { order: 8; }
    .board > .month-profit-module { order: 9; }
    .board > .calendar-module { order: 10; }
    .board > .bottom-images { order: 11; }

    /* 空记录时快捷按钮单独成条，不再压在提示框边线上。 */
    .board > .empty-message {
        margin-bottom: 10px;
    }

    .board > .mobile-empty-quick-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: stretch;
        width: 100%;
        gap: 8px;
        margin: 0 0 14px;
        padding: 8px;
        border: 1px solid rgba(184, 202, 224, 0.2);
        border-radius: 11px;
        background: rgba(8, 16, 26, 0.96);
        box-shadow: 0 5px 16px rgba(0, 0, 0, 0.3);
        box-sizing: border-box;
    }

    .board > .mobile-empty-quick-actions .mobile-quick-add {
        min-width: 0;
        min-height: 46px;
        padding: 9px 5px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 9px;
        font-size: 0.82rem;
        font-weight: 850;
        line-height: 1.1;
        text-align: center;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
        touch-action: manipulation;
    }

    .records-table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        white-space: normal;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .records-mobile-toolbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        margin: 0 0 9px;
        padding: 0;
        color: var(--text-soft);
        font-size: 0.76rem;
        font-weight: 850;
        text-align: left;
    }

    .records-mobile-toolbar .collapse-toggle-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 112px;
        min-height: 44px;
        padding: 8px 12px;
        font-size: 0.75rem;
    }

    .records-table thead {
        display: none;
    }

    .records-table tbody {
        display: grid;
        width: 100%;
        gap: 12px;
    }

    .records-table tbody tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas:
            "time actions"
            "type type"
            "status status"
            "skills required"
            "marker profit";
        width: 100%;
        min-width: 0;
        gap: 11px 12px;
        padding: 12px;
        overflow: visible;
        border: 1px solid rgba(184, 202, 224, 0.16);
        border-radius: 12px;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
        box-sizing: border-box;
    }

    .records-table tbody tr:hover {
        filter: none;
    }

    .records-table tbody td {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        min-width: 0;
        padding: 0;
        border: 0;
        font-size: 0.8rem;
        white-space: normal;
    }

    .records-table tbody td::before {
        content: attr(data-label);
        display: block;
        margin: 0 0 5px;
        color: var(--muted);
        font-size: 0.68rem;
        font-weight: 800;
        line-height: 1.2;
    }

    .records-table .record-time {
        grid-area: time;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        min-height: 44px;
        white-space: nowrap;
        color: var(--text);
        font-weight: 850;
    }

    .records-table .record-time::before {
        display: inline;
        margin: 0;
    }

    .records-table .record-type { grid-area: type; }
    .records-table .record-status { grid-area: status; }
    .records-table .record-skills { grid-area: skills; }
    .records-table .record-required { grid-area: required; }
    .records-table .record-marker { grid-area: marker; }
    .records-table .record-profit { grid-area: profit; }
    .records-table .record-actions {
        grid-area: actions;
        align-items: flex-end;
        justify-content: center;
        min-height: 44px;
    }

    .records-table .record-actions::before {
        display: none;
    }

    .records-table .type-selector,
    .records-table .status-selector {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
        gap: 6px;
    }

    .records-table .type-option,
    .records-table .status-option {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        min-height: 44px;
        padding: 8px 4px !important;
        line-height: 1.15;
        text-align: center;
        white-space: nowrap;
        touch-action: manipulation;
    }

    .records-table .fraction-input {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
        width: 100%;
        gap: 5px;
        flex-wrap: nowrap;
    }

    .records-table .fraction-input input,
    .records-table .profit-input,
    .records-table select {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 44px;
        padding: 8px 7px !important;
        font-size: 16px !important;
        box-sizing: border-box;
    }

    .records-table .fraction-input span {
        min-width: 8px;
        text-align: center;
    }

    .records-table .badge-streak {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        min-height: 44px;
        padding: 8px 6px;
        line-height: 1.15;
        text-align: center;
        touch-action: manipulation;
        box-sizing: border-box;
    }

    .records-table .remove-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        min-width: 44px;
        height: 44px;
        min-height: 44px;
        padding: 0;
        border: 1px solid rgba(223, 116, 116, 0.34);
        border-radius: 10px;
        font-size: 1rem;
        touch-action: manipulation;
    }

    /* 卡片已经包含完整编辑项，手机端不再重复显示快速编辑表。 */
    .quick-edit-row-container {
        display: none;
    }

    .record-visual-panel {
        width: 100%;
        margin: 10px 0 12px;
        padding: 9px 8px 10px;
        border-radius: 11px;
        scroll-margin-top: 48px;
        box-sizing: border-box;
    }

    .record-visual-panel .visual-title {
        display: block;
        width: 100%;
        margin: 0 0 7px;
    }

    .record-visual-panel .visual-tools {
        display: flex;
        width: 100%;
        flex-wrap: nowrap;
        gap: 6px;
        overflow-x: auto;
        padding: 0 0 3px;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .record-visual-panel .visual-tools::-webkit-scrollbar {
        display: none;
    }

    .record-visual-panel .visual-tools > button {
        flex: 0 0 auto;
        min-height: 32px;
        padding: 6px 9px;
        font-size: 0.7rem;
    }

    .marker-container {
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        width: 100%;
        gap: 5px !important;
        align-items: stretch;
    }

    .marker-container .marker-item {
        flex: none !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: 92px !important;
        min-height: 92px !important;
        max-height: 92px !important;
        padding: 6px 2px 4px !important;
        border-radius: 7px !important;
        box-sizing: border-box;
    }

    .marker-container .marker-item.oval-shape {
        border-radius: 999px !important;
    }

    .marker-container .marker-icon-top {
        min-height: 17px;
        margin-bottom: 1px;
        gap: 2px;
        font-size: 0.7rem;
    }

    .marker-container .marker-number {
        font-size: 1.38rem;
        line-height: 1.05;
    }

    .marker-container .marker-time {
        min-width: 0;
        width: 100%;
        margin-top: 5px;
        font-size: 0.67rem;
        line-height: 1;
    }

    .marker-container .marker-time span {
        max-width: calc(100% - 4px);
        padding: 3px 4px;
        overflow: hidden;
        font-size: 0.68rem;
        line-height: 1;
        text-overflow: clip;
        white-space: nowrap;
        box-sizing: border-box;
    }

    .skill-chart-canvas-wrapper {
        height: 190px;
        overflow-x: auto;
        overflow-y: hidden;
    }
}

@media (max-width: 360px) {
    .mobile-sequence-quick-actions-bottom {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 340px) {
    .records-table tbody tr {
        grid-template-areas:
            "time actions"
            "type type"
            "status status"
            "skills skills"
            "required marker"
            "profit profit";
    }
}

/* ===== 底部快捷栏小长方形背景最终版 ===== */
/* 外层仍然透明，只负责居中定位 */
.fixed-quick-bar {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: 24px !important;
    transform: translateX(-50%) !important;

    width: max-content !important;
    max-width: calc(100vw - 24px) !important;
    min-width: 0 !important;

    padding: 0 !important;
    margin: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    z-index: 250 !important;
    pointer-events: none !important;

    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-top: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* 中间小长方形背景，只包住按钮，不连到浏览器左右两边 */
.quick-bar-content {
    width: max-content !important;
    max-width: calc(100vw - 24px) !important;
    min-width: 0 !important;

    padding: 8px 14px !important;
    margin: 0 auto !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
    flex-wrap: wrap !important;

    pointer-events: auto !important;

    background: rgba(12, 20, 31, 0.88) !important;
    background-color: rgba(12, 20, 31, 0.88) !important;
    background-image: none !important;

    border: 1px solid rgba(214, 181, 111, 0.28) !important;
    border-radius: 16px !important;

    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32) !important;
    backdrop-filter: blur(10px) saturate(116%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(116%) !important;
}

/* 防止伪元素额外生成大底板 */
.fixed-quick-bar::before,
.fixed-quick-bar::after,
.quick-bar-content::before,
.quick-bar-content::after {
    content: none !important;
    display: none !important;
}

/* 收起状态的小背景 */
.quick-bar-content.compact {
    padding: 6px 10px !important;
    gap: 10px !important;

    background: rgba(12, 20, 31, 0.88) !important;
    border: 1px solid rgba(214, 181, 111, 0.28) !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28) !important;
    backdrop-filter: blur(10px) saturate(116%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(116%) !important;
}

/* 保留里面按钮本身的样式和点击 */
.quick-bar-content > *,
.quick-label,
.quick-toggle,
.undo-btn,
.type-bubbles,
.bubble {
    pointer-events: auto !important;
}

/* 手机端：背景仍然只包住按钮 */
@media (max-width: 768px) {
    .fixed-quick-bar {
        display: none !important;
        left: 50% !important;
        right: auto !important;
        bottom: 14px !important;
        transform: translateX(-50%) !important;
        width: max-content !important;
        max-width: calc(100vw - 12px) !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .quick-bar-content {
        max-width: calc(100vw - 12px) !important;
        padding: 6px 8px !important;
        gap: 8px !important;
        background: rgba(12, 20, 31, 0.88) !important;
        border: 1px solid rgba(214, 181, 111, 0.28) !important;
        border-radius: 14px !important;
        box-shadow: 0 7px 14px rgba(0, 0, 0, 0.28) !important;
    }

    .type-bubbles {
        gap: 8px !important;
    }
}
