: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;
        }
.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 .record-required select,
        .readonly-mode .quick-edit-row-container select,
        .readonly-mode .profit-input,
        .readonly-mode .remove-btn,
        .readonly-mode .badge-streak,
        .readonly-mode .mobile-quick-add,
        .fixed-quick-bar.readonly-mode .bubble {
            pointer-events: none;
            opacity: 0.7;
            cursor: not-allowed;
        }
        /* 只读查看仍需允许悬停查看爆点/压制提示；记录本身的编辑事件已由模板条件拦截。 */
        .readonly-mode .marker-item {
            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-breakdown {
            display: grid;
            grid-template-columns: repeat(3, 64px);
            gap: 4px;
            align-items: center;
        }
        .profit-breakdown .profit-input {
            width: 64px;
            box-sizing: border-box;
            border-radius: 8px;
        }
        .profit-breakdown .profit-net {
            border-color: #b8842f;
            color: #ffe4a3;
        }
        .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; }
        .remove-btn:not(.remove-btn-latest) {
            background: rgba(74, 58, 58, 0.72);
            color: #ffcccc;
            outline: 1px solid rgba(255, 138, 138, 0.18);
        }
        .remove-btn:not(.remove-btn-latest):hover {
            background: #7a4242;
            color: #fff;
        }

        .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: border-color 0.16s ease;
            border: 1px solid rgba(180,150,100,0.1);
            box-shadow: none;
            letter-spacing: 0.5px;
            font-size: 0.95rem;
        }
        .bubble:hover { border-color: #ffd966; box-shadow: 0 0 8px rgba(255,217,102,0.3); }
        .main-bubble { background: linear-gradient(135deg, #315f86, #264968); }
        .sub-bubble { background: linear-gradient(135deg, #4d804e, #385e3a); }
        .other-bubble { background: linear-gradient(135deg, #a66e3f, #754b2f); }
        .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(7,14,22,0.46);
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
            border-radius: 60px;
            padding: 10px 28px;
            display: flex;
            align-items: center;
            gap: 20px;
            flex-wrap: wrap;
            border: 1px solid rgba(204,229,255,0.12);
            pointer-events: auto;
            box-shadow: none;
            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; }
        .sync-conflict-indicator {
            min-height: 38px;
            padding: 8px 12px;
            border: 1px solid rgba(240, 170, 82, 0.72);
            border-radius: 9px;
            background: rgba(111, 60, 24, 0.92);
            color: #ffe2b0;
            font-weight: 800;
            cursor: pointer;
        }
        .sync-conflict-indicator:hover,
        .sync-conflict-indicator:focus-visible {
            background: rgba(142, 76, 28, 0.98);
        }
        .sync-conflict-modal {
            position: fixed;
            inset: 0;
            z-index: 1400;
            display: grid;
            place-items: center;
            padding: 20px;
            background: rgba(3, 8, 14, 0.82);
            backdrop-filter: blur(8px);
        }
        .sync-conflict-panel {
            width: min(780px, 100%);
            max-height: min(780px, calc(100vh - 40px));
            overflow: auto;
            padding: 24px;
            border: 1px solid rgba(229, 177, 94, 0.48);
            border-radius: 16px;
            background: linear-gradient(180deg, #172536, #0e1825);
            box-shadow: 0 24px 70px rgba(0, 0, 0, 0.58);
            color: #edf3fa;
        }
        .sync-conflict-header,
        .sync-conflict-footer,
        .sync-conflict-actions {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }
        .sync-conflict-eyebrow {
            margin-bottom: 5px;
            color: #d9b76f;
            font-size: 0.68rem;
            font-weight: 800;
            letter-spacing: 0.18em;
        }
        .sync-conflict-header h3 {
            margin: 0;
            color: #f5d899;
            font-size: 1.28rem;
        }
        .sync-conflict-help {
            margin: 14px 0 18px;
            color: #c7d3df;
            line-height: 1.65;
        }
        .sync-conflict-error {
            margin-bottom: 14px;
            padding: 10px 12px;
            border: 1px solid rgba(221, 101, 101, 0.5);
            border-radius: 9px;
            background: rgba(111, 37, 37, 0.54);
            color: #ffd2cc;
        }
        .sync-conflict-list {
            display: grid;
            gap: 12px;
        }
        .sync-conflict-card {
            padding: 16px;
            border: 1px solid rgba(166, 190, 216, 0.2);
            border-radius: 12px;
            background: rgba(7, 15, 24, 0.66);
        }
        .sync-conflict-card-title {
            margin-bottom: 12px;
            color: #f2d59a;
            font-weight: 800;
        }
        .sync-conflict-compare {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
            margin-bottom: 14px;
        }
        .sync-conflict-version {
            display: grid;
            gap: 6px;
            min-width: 0;
            padding: 11px;
            border-radius: 9px;
            background: rgba(44, 69, 95, 0.44);
        }
        .sync-conflict-version.local { border-left: 3px solid #e1ad59; }
        .sync-conflict-version.server { border-left: 3px solid #66a5d9; }
        .sync-conflict-version strong { color: #f2f6fa; }
        .sync-conflict-version span {
            color: #b9c8d7;
            font-size: 0.8rem;
            line-height: 1.55;
            overflow-wrap: anywhere;
        }
        .sync-conflict-close,
        .sync-use-server,
        .sync-use-local,
        .sync-use-all-server {
            min-height: 44px;
            padding: 9px 15px;
            border-radius: 9px;
            border: 1px solid rgba(188, 208, 228, 0.24);
            color: #edf4fb;
            font-weight: 750;
            cursor: pointer;
        }
        .sync-conflict-close { background: #293b4d; }
        .sync-use-server,
        .sync-use-all-server { background: #255a7d; }
        .sync-use-local { background: #8a5728; }
        .sync-conflict-close:disabled,
        .sync-use-server:disabled,
        .sync-use-local:disabled,
        .sync-use-all-server:disabled {
            opacity: 0.55;
            cursor: wait;
        }
        .sync-conflict-footer {
            margin-top: 16px;
            color: #91a6b9;
            font-size: 0.76rem;
        }
        @media (max-width: 600px) {
            .sync-conflict-modal { padding: 10px; }
            .sync-conflict-panel {
                max-height: calc(100vh - 20px);
                padding: 16px;
                border-radius: 12px;
            }
            .sync-conflict-header,
            .sync-conflict-footer { align-items: stretch; flex-direction: column; }
            .sync-conflict-compare { grid-template-columns: 1fr; }
            .sync-conflict-actions { align-items: stretch; flex-direction: column; }
            .sync-conflict-actions button,
            .sync-use-all-server,
            .sync-conflict-close { width: 100%; }
        }
        .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);
    font-variant-numeric: tabular-nums;
}
.history-analysis-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 8px;
    padding: 10px 14px;
    border: 1px solid rgba(103, 171, 219, 0.3);
    border-radius: 12px;
    color: #d9edff;
    background: rgba(28, 55, 78, 0.72);
    font-size: 0.8rem;
    line-height: 1.45;
}
.history-analysis-notice strong,
.history-analysis-notice small {
    display: block;
}
.history-analysis-notice small {
    margin-top: 2px;
    color: #aebfd1;
    font-size: 0.72rem;
}
.history-analysis-notice.is-error {
    border-color: rgba(222, 157, 92, 0.38);
    background: rgba(77, 53, 35, 0.72);
}
.history-analysis-icon {
    flex: 0 0 auto;
    font-size: 1rem;
}
.local-prediction-details {
    font-size: inherit;
}
.intelligent-warning-card {
    margin-top: 10px;
    padding: 14px 16px;
    border: 1px solid rgba(232, 177, 80, 0.42);
    border-left: 4px solid #e6ad45;
    border-radius: 10px;
    color: #f7e7c2;
    background: linear-gradient(135deg, rgba(105, 66, 25, 0.48), rgba(51, 36, 24, 0.5));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    font-size: 0.82rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
}
.prediction-quality-line {
    display: block;
    margin: 8px 0 4px;
    padding: 8px 10px;
    border: 1px solid rgba(214, 181, 111, 0.26);
    border-radius: 9px;
    background: rgba(8, 16, 27, 0.42);
    color: #f2e2b2;
    font-weight: 700;
}
.prediction-quality-badge {
    display: inline-block;
    margin-left: 7px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.94em;
    line-height: 1.35;
    font-weight: 800;
}
.prediction-quality-good {
    color: #d9ffdf;
    background: rgba(54, 143, 84, 0.72);
    border: 1px solid rgba(133, 236, 151, 0.72);
}
.prediction-quality-normal {
    color: #fff0bd;
    background: rgba(157, 119, 43, 0.76);
    border: 1px solid rgba(255, 213, 105, 0.72);
}
.prediction-quality-bad {
    color: #ffd7d4;
    background: rgba(160, 62, 65, 0.78);
    border: 1px solid rgba(255, 143, 137, 0.72);
}
.prediction-quality-insufficient {
    color: #d7e1ec;
    background: rgba(83, 103, 125, 0.78);
    border: 1px solid rgba(181, 202, 224, 0.48);
}
.prediction-side-summary {
    flex: 0 0 238px;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}
.prediction-side-summary .profit-total {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}
.current-group-quality-card {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 13px;
    border: 1px solid rgba(214, 181, 111, 0.32);
    border-radius: 12px;
    background: rgba(8, 16, 27, 0.78);
    color: #cbd8e6;
    text-align: left;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}
.current-group-quality-card.quality-tone-good {
    border-color: rgba(133, 236, 151, 0.48);
}
.current-group-quality-card.quality-tone-normal {
    border-color: rgba(255, 213, 105, 0.48);
}
.current-group-quality-card.quality-tone-bad {
    border-color: rgba(255, 143, 137, 0.52);
}
.current-group-quality-title {
    margin-bottom: 8px;
    color: #f0d28e;
    font-size: 0.82rem;
    font-weight: 800;
}
.current-group-quality-status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 9px;
    color: #dbe6f2;
    font-size: 0.78rem;
    font-weight: 700;
}
.current-group-quality-status small {
    margin-left: auto;
    color: #9fb0c2;
    font-size: 0.68rem;
    font-weight: 600;
}
.current-group-quality-line,
.current-group-quality-note {
    margin-top: 5px;
    color: #aebfd0;
    font-size: 0.7rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.current-group-quality-note {
    color: #d6b56f;
}
@media (max-width: 900px) {
    .prediction-side-summary {
        flex: 1 1 100%;
        min-width: 0;
        width: 100%;
    }
    .current-group-quality-card {
        max-width: none;
    }
}
.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-burst-rate {
    display: inline-block;
    padding: 1px 7px;
    border: 1px solid rgba(232, 188, 103, 0.48);
    border-radius: 8px;
    color: #ffd88a;
    background: rgba(143, 101, 34, 0.2);
    box-shadow: 0 0 10px rgba(232, 177, 78, 0.08);
    font-size: 1.08em;
    font-weight: 900;
    line-height: 1.4;
}
.prediction-burst-rate-high {
    border-color: rgba(255, 123, 116, 0.48);
    color: #ff9a8f;
    background: rgba(164, 55, 55, 0.2);
    box-shadow: 0 0 12px rgba(255, 92, 84, 0.1);
}
.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-orange {
    background: rgba(92, 52, 24, 0.92);
    border-color: rgba(251, 146, 60, 0.68);
}
.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-group-portrait {
    margin: 10px 0;
    border: 1px solid #476078;
    border-radius: 10px;
    background: #132131;
    color: #e6eef7;
}
.v18-group-portrait > summary {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 10px 12px;
    cursor: pointer;
    font-size: 0.8rem;
    line-height: 1.5;
    list-style: none;
}
.v18-group-portrait > summary::-webkit-details-marker { display: none; }
.v18-group-portrait > summary strong,
.v18-group-portrait-next,
.v18-group-portrait-toggle { flex: 0 0 auto; }
.v18-group-portrait > summary strong { color: #c8e0f4; }
.v18-group-portrait-next { color: #c0cad5; font-size: 0.74rem; }
.v18-group-portrait-preview {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #c7d2df;
}
.v18-group-portrait-toggle { color: #9cc9ee; }
.v18-group-portrait-toggle::after { content: '展开 ▾'; }
.v18-group-portrait[open] .v18-group-portrait-toggle::after { content: '收起 ▴'; }
.v18-group-portrait-body {
    padding: 0 12px 14px;
    border-top: 1px solid #32495e;
    font-size: 0.8rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
}
.v18-group-portrait-body h3 { margin: 12px 0 6px; color: #d8e9f6; font-size: 0.9rem; }
.v18-group-portrait-body p { margin: 8px 0; white-space: pre-wrap; }
.v18-group-portrait-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 8px;
    margin: 12px 0;
}
.v18-group-portrait-metrics > div { padding: 8px 10px; border: 1px solid #345068; border-radius: 6px; background: #0d1b29; }
.v18-group-portrait-metrics dt { color: #a9bdcf; font-size: 0.74rem; }
.v18-group-portrait-metrics dd { margin: 3px 0 0; color: #edf5fc; }
.v18-group-portrait-decision { padding: 8px 10px; border-left: 3px solid #6e9cbe; background: #1a2c3d; }
.v18-group-portrait-evidence { padding: 0 10px; border: 1px solid #365066; border-radius: 6px; }
.v18-group-portrait-note { color: #aabccc; font-size: 0.75rem; }
.v18-group-portrait-body a,
.v18-group-portrait-guide a { color: #a8d7ff; }
@media (max-width: 600px) {
    .v18-group-portrait > summary { gap: 6px; padding: 10px; }
    .v18-group-portrait-next { font-size: 0.7rem; }
    .v18-group-portrait-body { padding: 0 10px 12px; }
}
.v18-candidate-bar {
    margin-top: 12px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    border: 1px solid rgba(214, 181, 111, 0.28);
    border-radius: 10px;
    background: rgba(21, 33, 47, 0.9);
    color: #dbe7f4;
    font-size: 0.78rem;
}
.v18-candidate-bar label,
.v18-candidate-bar strong {
    color: #f0d9a0;
}
.v18-candidate-bar input {
    width: 64px;
    padding: 5px 8px;
    border: 1px solid rgba(214, 181, 111, 0.48);
    border-radius: 8px;
    background: #122033;
    color: #fff;
}
.v18-candidate-bar span {
    color: #9fb1c5;
}
.v18-shadow-status {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 10px;
    background: rgba(39, 46, 56, 0.72);
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.v18-shadow-status.is-active {
    border-color: rgba(148, 163, 184, 0.48);
    background: linear-gradient(135deg, rgba(51, 65, 85, 0.9), rgba(30, 41, 59, 0.9));
}
.v18-shadow-status.is-active.direction-up,
.v18-shadow-status.is-active.direction-window {
    border-color: rgba(74, 222, 128, 0.46);
    background: linear-gradient(135deg, rgba(20, 83, 45, 0.42), rgba(30, 41, 59, 0.92));
}
.v18-shadow-status.is-active.direction-down {
    border-color: rgba(251, 146, 60, 0.46);
}
.v18-shadow-status.is-active.direction-cap {
    border-color: rgba(96, 165, 250, 0.46);
}
.v18-shadow-status-main {
    min-width: 0;
    display: grid;
    gap: 3px;
}
.v18-shadow-status-main strong {
    color: #f8fafc;
    font-size: 0.82rem;
    line-height: 1.35;
}
.v18-shadow-status-kicker {
    color: #aeb9c8;
    font-size: 0.68rem;
    font-weight: 800;
}
.v18-shadow-status-count,
.v18-shadow-status-note {
    flex: 0 0 auto;
    font-size: 0.68rem;
    color: #aeb9c8;
}
.v18-shadow-status-count {
    padding: 3px 8px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.35);
    color: #e2e8f0;
    font-weight: 800;
}
.v18-shadow-panel {
    margin-top: 10px;
    padding: 11px 13px;
    border-radius: 10px;
    border: 1px solid rgba(160, 174, 192, 0.34);
    background: rgba(42, 49, 59, 0.72);
    color: #cbd5e1;
}
.v18-shadow-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.v18-shadow-title {
    color: #e2e8f0;
    font-size: 0.8rem;
    font-weight: 800;
}
.v18-shadow-count {
    flex: 0 0 auto;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.14);
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #cbd5e1;
    font-size: 0.7rem;
    font-weight: 700;
}
.v18-shadow-group {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}
.v18-shadow-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #aab6c5;
    font-size: 0.7rem;
    font-weight: 700;
}
.v18-shadow-chips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 6px;
    margin-top: 8px;
}
.v18-shadow-chip.grade {
    border-style: dashed;
    color: #d3d9e2;
}
.v18-shadow-chip.enhancer {
    border-style: dashed;
    border-color: rgba(148, 163, 184, 0.38);
    background: rgba(71, 85, 105, 0.24);
    color: #e2e8f0;
}
.v18-shadow-chip {
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(100, 116, 139, 0.18);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #d8e0ea;
    font-size: 0.7rem;
    line-height: 1.35;
}
.v18-shadow-direction-row {
    display: block;
}
.v18-shadow-direction-row strong {
    color: #f8fafc;
    font-size: 0.78rem;
    line-height: 1.3;
}
.v18-shadow-item-label {
    margin-top: 4px;
    color: #cbd5e1;
    font-weight: 700;
}
.v18-shadow-evidence {
    margin-top: 3px;
    color: #9eacbc;
    font-size: 0.66rem;
}
.v18-shadow-chip.direction-up,
.v18-shadow-chip.direction-window {
    border-color: rgba(74, 222, 128, 0.35);
    background: rgba(22, 101, 52, 0.16);
}
.v18-shadow-chip.direction-down {
    border-color: rgba(251, 146, 60, 0.35);
    background: rgba(154, 52, 18, 0.14);
}
.v18-shadow-chip.direction-cap {
    border-color: rgba(96, 165, 250, 0.34);
    background: rgba(30, 64, 175, 0.12);
}
.v18-shadow-summary,
.v18-shadow-boundary {
    margin-top: 7px;
    font-size: 0.7rem;
    line-height: 1.45;
}
.v18-shadow-summary { color: #b8c4d2; }
.v18-shadow-boundary { color: #94a3b8; }
.v18-forward-audit {
    margin-top: 12px;
    padding: 14px;
    border: 1px solid rgba(92, 194, 180, 0.32);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(15, 40, 46, 0.92), rgba(17, 29, 43, 0.94));
    color: #e4f1f2;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.v18-forward-guide-section > .v18-forward-audit {
    margin: 0 10px 10px;
    box-shadow: none;
}
.v18-forward-guide-section > .v18-forward-audit-unavailable {
    margin: 0 10px 10px;
}
.v18-forward-audit.is-stale {
    border-color: rgba(226, 174, 87, 0.42);
}
.v18-forward-audit-header,
.v18-forward-audit-section-title,
.v18-forward-audit-meta,
.v18-forward-audit-badges {
    display: flex;
    align-items: center;
}
.v18-forward-audit-header {
    justify-content: space-between;
    gap: 12px;
}
.v18-forward-audit-kicker {
    color: #79c9bf;
    font-size: 0.64rem;
    font-weight: 850;
    letter-spacing: 0.08em;
}
.v18-forward-audit-title {
    margin-top: 3px;
    color: #f2fcfc;
    font-size: 0.96rem;
    font-weight: 850;
}
.v18-forward-audit-badges {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
}
.v18-forward-audit-badge {
    padding: 3px 8px;
    border: 1px solid rgba(121, 201, 191, 0.25);
    border-radius: 999px;
    background: rgba(68, 148, 139, 0.13);
    color: #bce9e3;
    font-size: 0.64rem;
    font-weight: 750;
    white-space: nowrap;
}
.v18-forward-audit-badge.warning {
    border-color: rgba(226, 174, 87, 0.34);
    background: rgba(154, 104, 31, 0.17);
    color: #f4d397;
}
.v18-forward-audit-meta {
    flex-wrap: wrap;
    gap: 5px 14px;
    margin-top: 9px;
    padding: 8px 10px;
    border: 1px solid rgba(168, 202, 213, 0.11);
    border-radius: 8px;
    background: rgba(5, 15, 24, 0.22);
    color: #9fb8c3;
    font-size: 0.67rem;
    line-height: 1.4;
}
.v18-forward-audit-section {
    min-width: 0;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid rgba(168, 202, 213, 0.12);
    border-radius: 9px;
    background: rgba(7, 18, 29, 0.3);
}
.v18-forward-audit-section.production {
    border-color: rgba(92, 194, 180, 0.24);
    background: rgba(33, 91, 85, 0.17);
}
.v18-forward-audit-section.muted {
    background: rgba(29, 37, 48, 0.43);
    border-color: rgba(155, 169, 188, 0.14);
}
.v18-forward-audit-section-title {
    justify-content: space-between;
    gap: 10px;
    color: #d9f2ef;
    font-size: 0.75rem;
    font-weight: 800;
}
.v18-forward-audit-section-title small {
    color: #91aab5;
    font-size: 0.62rem;
    font-weight: 600;
    text-align: right;
}
.v18-forward-audit-featured {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 9px;
}
.v18-forward-audit-featured > div {
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid rgba(121, 201, 191, 0.15);
    border-radius: 8px;
    background: rgba(5, 16, 25, 0.31);
}
.v18-forward-audit-featured span,
.v18-forward-audit-featured strong,
.v18-forward-audit-featured small {
    display: block;
}
.v18-forward-audit-featured span {
    color: #91aaa9;
    font-size: 0.63rem;
}
.v18-forward-audit-featured strong {
    margin-top: 4px;
    color: #b8f0e8;
    font-size: 0.91rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.v18-forward-audit-featured small {
    margin-top: 3px;
    color: #8fa7b3;
    font-size: 0.61rem;
    line-height: 1.4;
}
.v18-forward-audit-table {
    margin-top: 8px;
    overflow: hidden;
    border: 1px solid rgba(168, 202, 213, 0.1);
    border-radius: 8px;
}
.v18-forward-audit-row {
    display: grid;
    grid-template-columns: minmax(105px, 0.9fr) repeat(2, minmax(116px, 1fr));
    align-items: stretch;
    border-top: 1px solid rgba(168, 202, 213, 0.09);
}
.v18-forward-audit-row:first-child { border-top: 0; }
.v18-forward-audit-row.observation { background: rgba(90, 97, 155, 0.09); }
.v18-forward-audit-row > span {
    min-width: 0;
    padding: 7px 8px;
    border-left: 1px solid rgba(168, 202, 213, 0.08);
}
.v18-forward-audit-row > span:first-child { border-left: 0; }
.v18-forward-audit-row.head {
    background: rgba(255, 255, 255, 0.025);
    color: #8fa8b5;
    font-size: 0.61rem;
    font-weight: 750;
}
.v18-forward-audit-rule strong,
.v18-forward-audit-rule small,
.v18-forward-audit-cell strong,
.v18-forward-audit-cell small {
    display: block;
}
.v18-forward-audit-rule strong {
    color: #d9eceb;
    font-size: 0.72rem;
}
.v18-forward-audit-rule small,
.v18-forward-audit-cell small {
    margin-top: 2px;
    color: #829aa6;
    font-size: 0.57rem;
    line-height: 1.35;
}
.v18-forward-audit-cell strong {
    color: #c5dadf;
    font-size: 0.69rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.v18-forward-audit-overviews {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.v18-forward-audit-mini-list { margin-top: 7px; }
.v18-forward-audit-mini-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 9px;
    padding: 6px 0;
    border-top: 1px solid rgba(155, 169, 188, 0.09);
    color: #c3ced9;
    font-size: 0.65rem;
    line-height: 1.35;
}
.v18-forward-audit-mini-row:first-child { border-top: 0; }
.v18-forward-audit-mini-row > span:last-child {
    flex: 0 0 auto;
    color: #d8e3e8;
    font-weight: 750;
    text-align: right;
}
.v18-forward-audit-mini-row > span.severity-metrics {
    flex: 1 1 70%;
    max-width: 72%;
    overflow-wrap: anywhere;
}
.v18-forward-audit-mini-row .severity-metrics > strong {
    color: #d7e8e7;
    font-size: 0.62rem;
    font-weight: 750;
}
.v18-forward-audit-mini-row .severity-metrics > small {
    color: #879ba7;
    font-size: 0.56rem;
    font-weight: 600;
}
.v18-forward-audit-mini-row strong,
.v18-forward-audit-mini-row small { display: block; }
.v18-forward-audit-mini-row small {
    margin-top: 1px;
    color: #8499a5;
    font-size: 0.57rem;
}
.v18-forward-audit-empty {
    margin-top: 7px;
    color: #8295a1;
    font-size: 0.64rem;
}
.v18-forward-audit-boundary {
    margin-top: 10px;
    padding: 8px 10px;
    border-left: 3px solid rgba(226, 174, 87, 0.46);
    border-radius: 4px;
    background: rgba(91, 62, 25, 0.15);
    color: #b9b8ae;
    font-size: 0.65rem;
    line-height: 1.5;
}
@media (max-width: 680px) {
    .v18-forward-audit-header,
    .v18-forward-audit-section-title {
        align-items: flex-start;
        flex-direction: column;
    }
    .v18-forward-audit-badges { justify-content: flex-start; }
    .v18-forward-audit-section-title small { text-align: left; }
    .v18-forward-audit-featured,
    .v18-forward-audit-overviews { grid-template-columns: 1fr; }
    .v18-forward-audit-row {
        grid-template-columns: minmax(86px, 0.72fr) repeat(2, minmax(100px, 1fr));
    }
    .v18-forward-audit-table {
        overflow-x: auto;
    }
    .v18-forward-audit-row { min-width: 350px; }
}
.v18-evidence-item {
    min-width: 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(8, 17, 28, 0.38);
    border: 1px solid rgba(150,175,205,0.13);
}
.v18-evidence-item span {
    display: block;
    color: #9fb3c8;
    font-size: 0.69rem;
    margin-bottom: 3px;
}
.v18-evidence-item strong {
    display: block;
    color: #e9f2fb;
    font-size: 0.77rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.v18-evidence-item.trend-up,
.v18-evidence-item.trend-watch-up {
    border-color: rgba(74, 222, 128, 0.36);
    background: rgba(22, 101, 52, 0.16);
}
.v18-evidence-item.trend-up strong,
.v18-evidence-item.trend-watch-up strong {
    color: #86efac;
}
.v18-evidence-item.trend-small-high,
.v18-evidence-item.trend-pressure {
    border-color: rgba(250, 204, 21, 0.34);
    background: rgba(133, 77, 14, 0.16);
}
.v18-evidence-item.trend-small-high strong,
.v18-evidence-item.trend-pressure strong {
    color: #fde68a;
}
.v18-evidence-item.trend-down {
    border-color: rgba(248, 113, 113, 0.4);
    background: rgba(127, 29, 29, 0.18);
}
.v18-evidence-item.trend-down strong {
    color: #fca5a5;
}
.v18-evidence-item.inherit-up strong,
.v18-evidence-item.inherit-strong-up strong {
    color: #86efac;
}
.v18-evidence-item.inherit-down strong,
.v18-evidence-item.inherit-strong-down strong {
    color: #fca5a5;
}
.v18-evidence-modifier,
.v18-evidence-note {
    margin-top: 8px;
    padding: 7px 9px;
    border-radius: 8px;
    font-size: 0.74rem;
    line-height: 1.55;
}
.v18-evidence-modifier {
    color: #ffe3a8;
    background: rgba(214,181,111,0.1);
    border: 1px solid rgba(214,181,111,0.2);
}
.v18-evidence-note {
    color: #91a8be;
    background: rgba(8, 17, 28, 0.25);
}
.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);
    font-variant-numeric: tabular-nums;
}
.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-hand-index {
    display: none;
}
.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-number.marker-number-type { font-size: 1.45rem; }
        .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-orange {
    color: #fb923c !important;
    text-shadow: 0 0 6px rgba(249, 115, 22, 0.64);
}
.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-wild-word {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 22px;
    padding: 0 5px;
    border: 1px solid rgba(140, 255, 140, 0.58);
    border-radius: 7px;
    color: #8cff8c;
    background: rgba(50, 120, 65, 0.3);
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1;
}
.marker-time .marker-type-name {
    min-width: 38px;
    font-weight: 900;
}
.marker-time .marker-type-name-main { color: #9bc9ff; }
.marker-time .marker-type-name-sub { color: #a6f0ad; }
.marker-time .marker-type-name-turtle,
.marker-time .marker-type-name-bubble { color: #ffd08a; }
        .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); }
        /* 默认UI - 顶级精致，长时间观看舒适 */
        .marker-main {
            background:
                radial-gradient(ellipse at top left, rgba(80, 140, 200, 0.08), transparent 55%),
                linear-gradient(145deg, #2a4055 0%, #1c2d40 100%);
            border: 1px solid transparent;
            background-clip: padding-box, padding-box;
            position: relative;
            box-shadow:
                0 6px 20px rgba(40, 90, 160, 0.15),
                0 2px 6px rgba(0, 0, 0, 0.35),
                inset 0 1px 0 rgba(130, 170, 220, 0.12),
                inset 0 -1px 1px rgba(0, 0, 0, 0.25);
        }
        .marker-main::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            border-radius: inherit;
            padding: 1px;
            background: linear-gradient(145deg, rgba(90, 150, 220, 0.45), rgba(60, 110, 180, 0.22));
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            pointer-events: none;
            z-index: -1;
        }
        .marker-sub {
            background:
                radial-gradient(ellipse at top left, rgba(60, 200, 140, 0.08), transparent 55%),
                linear-gradient(145deg, #264a3c 0%, #1a3329 100%);
            border: 1px solid transparent;
            background-clip: padding-box, padding-box;
            position: relative;
            box-shadow:
                0 6px 20px rgba(40, 160, 110, 0.15),
                0 2px 6px rgba(0, 0, 0, 0.35),
                inset 0 1px 0 rgba(100, 210, 160, 0.12),
                inset 0 -1px 1px rgba(0, 0, 0, 0.25);
        }
        .marker-sub::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            border-radius: inherit;
            padding: 1px;
            background: linear-gradient(145deg, rgba(70, 200, 150, 0.45), rgba(45, 160, 115, 0.22));
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            pointer-events: none;
            z-index: -1;
        }
        .marker-other {
            background:
                radial-gradient(ellipse at top left, rgba(220, 170, 80, 0.08), transparent 55%),
                linear-gradient(145deg, #4a3d2c 0%, #342b1e 100%);
            border: 1px solid transparent;
            background-clip: padding-box, padding-box;
            position: relative;
            box-shadow:
                0 6px 20px rgba(180, 140, 60, 0.15),
                0 2px 6px rgba(0, 0, 0, 0.35),
                inset 0 1px 0 rgba(230, 190, 110, 0.12),
                inset 0 -1px 1px rgba(0, 0, 0, 0.25);
        }
        .marker-other::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            border-radius: inherit;
            padding: 1px;
            background: linear-gradient(145deg, rgba(220, 170, 90, 0.45), rgba(180, 140, 65, 0.22));
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            pointer-events: none;
            z-index: -1;
        }
        .marker-number-main {
            color: #b8d8ff;
            font-weight: 800;
            text-shadow:
                0 2px 4px rgba(0, 0, 0, 0.6),
                0 0 20px rgba(100, 160, 240, 0.25),
                0 1px 1px rgba(0, 0, 0, 0.4);
        }
        .marker-number-sub {
            color: #a8f0c0;
            font-weight: 800;
            text-shadow:
                0 2px 4px rgba(0, 0, 0, 0.6),
                0 0 20px rgba(80, 220, 150, 0.25),
                0 1px 1px rgba(0, 0, 0, 0.4);
        }
        .marker-number-other {
            color: #ffc880;
            font-weight: 800;
            text-shadow:
                0 2px 4px rgba(0, 0, 0, 0.6),
                0 0 20px rgba(230, 180, 90, 0.25),
                0 1px 1px rgba(0, 0, 0, 0.4);
        }
/* 默认UI - 顶级爆点，醒目但不刺眼 */
.marker-special-red {
    background:
        radial-gradient(ellipse at center, rgba(240, 80, 100, 0.22), transparent 65%),
        linear-gradient(145deg, rgba(140, 30, 50, 0.45) 0%, rgba(90, 20, 35, 0.38) 100%) !important;
    border: 2px solid transparent !important;
    position: relative;
    box-shadow:
        0 0 28px rgba(240, 60, 85, 0.4),
        0 0 14px rgba(255, 80, 105, 0.28),
        0 4px 14px rgba(0, 0, 0, 0.45),
        inset 0 1px 1px rgba(255, 130, 150, 0.18),
        inset 0 -1px 2px rgba(0, 0, 0, 0.35) !important;
}
.marker-special-red::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(145deg, rgba(255, 85, 115, 0.7), rgba(240, 50, 80, 0.45));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
}
.marker-special-red .marker-number {
    color: #ffb0c0 !important;
    font-weight: 900;
    text-shadow:
        0 2px 5px rgba(0, 0, 0, 0.65),
        0 0 24px rgba(255, 80, 110, 0.35),
        0 1px 2px rgba(0, 0, 0, 0.5);
}
/* 默认UI - 顶级野生，清新醒目 */
.marker-wild {
    background:
        radial-gradient(ellipse at center, rgba(70, 230, 150, 0.2), transparent 65%),
        linear-gradient(145deg, rgba(35, 150, 100, 0.42) 0%, rgba(20, 100, 70, 0.35) 100%) !important;
    border: 2px solid transparent !important;
    position: relative;
    box-shadow:
        0 0 24px rgba(60, 220, 140, 0.35),
        0 0 12px rgba(80, 240, 160, 0.25),
        0 4px 14px rgba(0, 0, 0, 0.45),
        inset 0 1px 1px rgba(110, 255, 180, 0.15),
        inset 0 -1px 2px rgba(0, 0, 0, 0.35) !important;
}
.marker-wild::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(145deg, rgba(75, 240, 165, 0.65), rgba(50, 200, 135, 0.42));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
}
.marker-wild .marker-number {
    color: #a0ffc8 !important;
    font-weight: 900;
    text-shadow:
        0 2px 5px rgba(0, 0, 0, 0.65),
        0 0 22px rgba(70, 240, 150, 0.32),
        0 1px 2px rgba(0, 0, 0, 0.5);
}
        .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; position: relative; z-index: 4; }
        .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;
        }
        .user-list li.admin-user-row.admin-menu-open {
            z-index: 40;
        }
        .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;
            z-index: 60;
            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-menu-opens-up .admin-action-menu {
            top: auto;
            bottom: 40px;
        }
        .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.warning {
            color: #ffd966;
        }
        .admin-action-menu-item.warning:hover {
            background: rgba(212, 175, 55, 0.22);
            color: #fff1b8;
        }
        .admin-action-menu-item.global-match {
            color: #8ed8ff;
        }
        .admin-action-menu-item.global-match:hover {
            background: rgba(62, 145, 190, 0.24);
            color: #d9f4ff;
        }
        .admin-action-menu-item.danger:hover {
            background: rgba(170, 74, 74, 0.35);
            color: #ffffff;
        }
        .user-status.global-match-excluded-status {
            background: #315b73;
            color: #d9f4ff;
        }
        .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;
}
.profit-range-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
    color: #c0d0f0;
    font-size: 0.75rem;
    font-weight: 500;
}
.profit-range-select,
.profit-range-date {
    min-height: 30px;
    border: 1px solid #5a7a9a;
    border-radius: 7px;
    padding: 4px 8px;
    background: #18283a;
    color: #e6edf7;
    font: inherit;
}
.profit-range-select { cursor: pointer; }
.profit-range-date { color-scheme: dark; }
.profit-range-separator { color: #9fb2ca; }
.profit-range-display { white-space: nowrap; }
.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;
}

.mobile-chart-scroll-hint {
    display: none;
}

#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;
    }
    .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: 12px;
        align-items: stretch;
        justify-content: center;
        flex-wrap: wrap;
        width: min(100%, 520px);
        margin: -10px auto 22px;
        padding: 8px 10px;
        border: 1px solid rgba(204, 229, 255, 0.12);
        border-radius: 16px;
        background: rgba(7, 14, 22, 0.46);
        box-shadow: none;
        box-sizing: border-box;
    }
    .mobile-empty-quick-actions .mobile-quick-add {
        min-height: 52px;
        padding: 12px 20px;
        border: 1px solid rgba(180, 150, 100, 0.1);
        border-radius: 12px;
        font-size: 1rem;
        font-weight: 900;
        letter-spacing: 0.04em;
        box-shadow: none;
        transition: border-color 0.16s ease;
    }
    .mobile-empty-quick-actions .mobile-quick-add:hover {
        border-color: #ffd966;
        box-shadow: 0 0 8px rgba(255, 217, 102, 0.3);
    }
    .mobile-empty-quick-actions .main-bubble,
    .mobile-empty-quick-actions .sub-bubble {
        flex: 1 1 150px;
        min-width: 132px;
        min-height: 58px;
        font-size: 1.08rem;
    }
    .mobile-empty-quick-actions .other-bubble {
        flex: 0 1 126px;
        min-width: 112px;
    }
}

@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;
    }
    .mobile-empty-quick-actions .main-bubble,
    .mobile-empty-quick-actions .sub-bubble {
        flex: 1 1 calc(50% - 6px);
        min-width: 0;
    }
    .mobile-empty-quick-actions .other-bubble {
        flex: 1 1 100%;
        min-width: 0;
    }
}

/* ===== 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: 50px;
    box-shadow: none;
    border: 1px solid rgba(180,150,100,0.1);
    transition: border-color 0.16s ease;
}
.bubble:hover {
    border-color: #ffd966;
    box-shadow: 0 0 8px rgba(255,217,102,0.3);
}
.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(7, 14, 22, 0.46);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 60px;
    border: 1px solid rgba(204, 229, 255, 0.12);
    box-shadow: none;
}
.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-orange {
    background: rgba(96, 54, 26, 0.9);
    border-color: rgba(244, 145, 72, 0.7);
}
.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;
}
/* U6: 玻璃拟态按钮 */
.u6-interface-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.95);
    padding: 6px 14px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.u6-interface-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.12));
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}
.u6-interface-btn.active {
    background: linear-gradient(135deg, rgba(100, 150, 255, 0.3), rgba(150, 100, 255, 0.25));
    border-color: rgba(150, 150, 255, 0.5);
    box-shadow: 0 0 20px rgba(120, 120, 255, 0.3);
}
.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界面 - 顶级数据面板，清晰易读 */
.u1-interface .marker-item {
    background:
        radial-gradient(ellipse at top left, rgba(100, 150, 210, 0.09), transparent 60%),
        linear-gradient(145deg, rgba(35, 55, 85, 0.92) 0%, rgba(22, 38, 60, 0.9) 100%);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    position: relative;
    box-shadow:
        0 5px 18px rgba(25, 55, 110, 0.18),
        0 2px 7px rgba(0, 0, 0, 0.38),
        inset 0 1px 1px rgba(160, 200, 245, 0.1),
        inset 0 -1px 1px rgba(0, 0, 0, 0.22);
}
.u1-interface .marker-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(145deg, rgba(110, 160, 230, 0.42), rgba(75, 120, 190, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 0;
}
.u1-interface .marker-item:hover {
    border-color: transparent;
    box-shadow:
        0 7px 26px rgba(200, 170, 100, 0.22),
        0 3px 10px rgba(0, 0, 0, 0.42),
        inset 0 1px 1px rgba(240, 220, 180, 0.12);
    transform: translateY(-1.5px);
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.u1-interface .marker-item:hover::before {
    background: linear-gradient(145deg, rgba(210, 175, 105, 0.6), rgba(170, 140, 80, 0.32));
}
.u1-interface .marker-item.marker-special-red {
    background:
        radial-gradient(ellipse at top left, rgba(100, 150, 210, 0.09), transparent 60%),
        linear-gradient(145deg, rgba(35, 55, 85, 0.92) 0%, rgba(22, 38, 60, 0.9) 100%);
    border: 1px solid transparent !important;
    box-shadow:
        0 5px 18px rgba(25, 55, 110, 0.18),
        0 2px 7px rgba(0, 0, 0, 0.38),
        inset 0 1px 1px rgba(160, 200, 245, 0.1),
        inset 0 -1px 1px rgba(0, 0, 0, 0.22);
}
.u1-interface .marker-item.marker-special-red::before {
    background: linear-gradient(145deg, rgba(110, 160, 230, 0.42), rgba(75, 120, 190, 0.2));
}
.u1-interface .marker-item.marker-burst-hot {
    background:
        radial-gradient(ellipse at center, rgba(240, 90, 115, 0.24), transparent 68%),
        linear-gradient(145deg, rgba(130, 32, 55, 0.5) 0%, rgba(85, 18, 38, 0.42) 100%) !important;
    border: 2px solid transparent !important;
    box-shadow:
        0 0 26px rgba(240, 65, 95, 0.42),
        0 0 13px rgba(255, 85, 115, 0.3),
        0 4px 14px rgba(0, 0, 0, 0.45),
        inset 0 1px 1px rgba(255, 140, 165, 0.2),
        inset 0 -1px 2px rgba(0, 0, 0, 0.35) !important;
}
.u1-interface .marker-item.marker-burst-hot::before {
    padding: 2px;
    background: linear-gradient(145deg, rgba(255, 95, 125, 0.75), rgba(240, 55, 90, 0.5));
}
.u1-interface .marker-item.marker-special-red.marker-burst-hot {
    background:
        radial-gradient(ellipse at center, rgba(240, 90, 115, 0.24), transparent 68%),
        linear-gradient(145deg, rgba(130, 32, 55, 0.5) 0%, rgba(85, 18, 38, 0.42) 100%) !important;
    border: 2px solid transparent !important;
}
.u1-interface .marker-item.marker-special-red.marker-burst-hot::before {
    background: linear-gradient(145deg, rgba(255, 95, 125, 0.75), rgba(240, 55, 90, 0.5));
}
.u1-interface .marker-item.marker-wild {
    background:
        radial-gradient(ellipse at center, rgba(70, 225, 155, 0.22), transparent 68%),
        linear-gradient(145deg, rgba(30, 140, 95, 0.48) 0%, rgba(18, 90, 65, 0.4) 100%) !important;
    border: 2px solid transparent !important;
    box-shadow:
        0 0 22px rgba(55, 220, 145, 0.38),
        0 0 11px rgba(75, 240, 165, 0.28),
        0 4px 14px rgba(0, 0, 0, 0.45),
        inset 0 1px 1px rgba(120, 255, 190, 0.18),
        inset 0 -1px 2px rgba(0, 0, 0, 0.35) !important;
}
.u1-interface .marker-item.marker-wild::before {
    padding: 2px;
    background: linear-gradient(145deg, rgba(80, 245, 175, 0.7), rgba(50, 205, 140, 0.48));
}
.u1-interface .marker-item.marker-wild.marker-burst-hot {
    background:
        radial-gradient(ellipse at center, rgba(240, 90, 115, 0.24), transparent 68%),
        linear-gradient(145deg, rgba(130, 32, 55, 0.5) 0%, rgba(85, 18, 38, 0.42) 100%) !important;
    border: 2px solid transparent !important;
}
.u1-interface .marker-item.marker-wild.marker-burst-hot::before {
    background: linear-gradient(145deg, rgba(255, 95, 125, 0.75), rgba(240, 55, 90, 0.5));
}
.u1-interface .marker-item.oval-shape {
    border-radius: 999px !important;
    border-style: dashed;
    border-width: 2px;
    border-color: rgba(210, 175, 100, 0.65) !important;
    background: rgba(55, 70, 92, 0.85);
    box-shadow:
        0 0 16px rgba(210, 175, 100, 0.2),
        inset 0 0 0 1px rgba(245, 225, 170, 0.2),
        0 0 0 2px rgba(210, 175, 100, 0.14);
}
.u1-interface .marker-item.oval-shape::before {
    display: none;
}
.u1-interface .marker-item.oval-shape:hover {
    border-color: rgba(245, 225, 170, 0.85) !important;
    box-shadow:
        0 0 22px rgba(210, 175, 100, 0.3),
        inset 0 0 0 1px rgba(245, 225, 170, 0.28),
        0 0 0 3px rgba(210, 175, 100, 0.2);
}
.u1-interface .marker-item.oval-shape.marker-burst-hot,
.u1-interface .marker-item.oval-shape.marker-special-red.marker-burst-hot {
    background: rgba(240, 75, 75, 0.2);
}
.u1-interface .marker-item.oval-shape.marker-wild:not(.marker-burst-hot) {
    background: rgba(75, 145, 90, 0.18);
}
.u1-interface .marker-number {
    font-weight: 900;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 0 1px rgba(0, 0, 0, 0.3);
    color: #d8e8ff !important;
    font-weight: 900;
    text-shadow:
        0 2px 5px rgba(0, 0, 0, 0.7),
        0 0 18px rgba(140, 190, 250, 0.22),
        0 1px 2px rgba(0, 0, 0, 0.45);
}
.u1-interface .marker-special-red .marker-number {
    color: #ffc0d0 !important;
    font-weight: 900;
    text-shadow:
        0 2px 5px rgba(0, 0, 0, 0.7),
        0 0 20px rgba(255, 120, 145, 0.28),
        0 1px 2px rgba(0, 0, 0, 0.45);
}
.u1-interface .marker-wild .marker-number {
    color: #b0ffd0 !important;
    font-weight: 900;
    text-shadow:
        0 2px 5px rgba(0, 0, 0, 0.7),
        0 0 18px rgba(100, 240, 165, 0.26),
        0 1px 2px rgba(0, 0, 0, 0.45);
}
.u1-interface .marker-u1-main-sub-skill-hot .marker-number-main,
.u1-interface .marker-u1-main-sub-skill-hot .marker-number-sub {
    color: #d8e8ff !important;
    font-weight: 900;
    text-shadow:
        0 2px 5px rgba(0, 0, 0, 0.7),
        0 0 18px rgba(140, 190, 250, 0.22),
        0 1px 2px rgba(0, 0, 0, 0.45);
}
.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: #ffc0d0 !important;
    font-weight: 900;
    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.75),
        0 0 22px rgba(255, 100, 130, 0.32),
        0 1px 2px rgba(0, 0, 0, 0.5);
}
.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;
    text-shadow: 0 0 5px rgba(255, 88, 88, 0.68);
}
.u1-interface .marker-burst-hint-blue {
    color: #62b7ff !important;
    text-shadow: 0 0 5px rgba(72, 150, 255, 0.62);
}
.u1-interface .marker-burst-hint-yellow {
    color: #ffd966 !important;
    text-shadow: 0 0 5px rgba(255, 217, 102, 0.56);
}
.u1-interface .marker-burst-hint-orange {
    color: #fb923c !important;
    text-shadow: 0 0 6px rgba(249, 115, 22, 0.64);
}
.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);
    text-shadow: 0 0 5px rgba(214, 167, 255, 0.58);
}
.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;
}
.v18-strategy-caption {
    margin-top: 3px;
    color: var(--text-soft);
    font-size: 0.68rem;
    line-height: 1.35;
}
.v18-strategy-actions,
.v18-strategy-picker {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.v18-strategy-picker {
    color: var(--text-soft);
    font-size: 0.7rem;
}
.v18-strategy-picker select {
    max-width: 250px;
    border: 1px solid rgba(214, 181, 111, 0.38);
    border-radius: 7px;
    background: #17283a;
    color: #ffe0a3;
    padding: 5px 7px;
    font-size: 0.7rem;
}
.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-modal.burst-analysis-modal {
    background: rgba(2, 7, 13, 0.86) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.burst-guide-panel.burst-analysis-panel {
    background: linear-gradient(135deg, #142131, #08121e) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.burst-guide-panel {
    max-width: 1320px;
    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;
}
.v18-review-summary p {
    margin: 8px 0;
    overflow-wrap: anywhere;
}
.v18-review-summary a { color: #a8d7ff; }
.burst-guide-section-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--text-soft);
    font-size: 0.8rem;
    line-height: 1.5;
}
.burst-guide-section-actions span { margin-right: auto; }
.burst-guide-section-actions button {
    background: #22364b;
    border: 1px solid #56708d;
    border-radius: 6px;
    color: #eaf2ff;
    padding: 6px 10px;
    cursor: pointer;
    min-height: 38px;
}
.burst-guide-section-actions button:first-of-type {
    background: #e5c071;
    border-color: #efd294;
    color: #142131;
    font-weight: 700;
}
.burst-guide-section > summary span::before { content: '▸ '; }
.burst-guide-section[open] > summary span::before { content: '▾ '; }
.v18-complete-rule-note {
    margin: 12px 0;
}
.burst-guide-condition-list {
    margin: 4px 0 0;
    padding-left: 1.25rem;
}
.burst-guide-condition-list li {
    margin: 0 0 3px;
    color: inherit;
    line-height: 1.55;
}
.burst-guide-condition-list li:last-child {
    margin-bottom: 0;
}
.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;
}
.v18-rule-ranking-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    padding: 4px 13px 12px;
    color: var(--text-soft);
    font-size: 0.78rem;
    line-height: 1.6;
}
.v18-rule-ranking-table {
    table-layout: fixed;
    min-width: 760px;
}
.v18-rule-ranking-table th:first-child {
    width: 58px;
}
.v18-rule-ranking-table th:last-child {
    width: 210px;
}
.v18-rule-ranking-table td {
    font-size: 0.82rem;
}
.v18-rule-ranking-name {
    display: block;
    color: var(--text);
    font-size: 0.88rem;
}
.v18-rule-ranking-status {
    display: block;
    color: var(--muted);
    margin: 4px 0 9px;
    font-size: 0.76rem;
}
.v18-rule-ranking-table .v18-rule-ranking-rank {
    color: var(--gold-bright);
    font-variant-numeric: tabular-nums;
}
.v18-rule-ranking-metric strong,
.v18-rule-ranking-metric span {
    display: block;
    font-variant-numeric: tabular-nums;
}
.v18-rule-ranking-metric strong {
    color: var(--gold-bright);
    font-size: 1.45rem;
    white-space: nowrap;
}
.v18-rule-ranking-counts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 12px 0 0;
    font-variant-numeric: tabular-nums;
}
.v18-rule-ranking-counts dt {
    color: var(--muted);
    font-size: 0.76rem;
}
.v18-rule-ranking-counts dd {
    margin: 3px 0 0;
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.v18-rule-ranking-evidence {
    margin-top: 12px;
    border-top: 1px solid var(--line);
}
.v18-rule-ranking-evidence > summary {
    padding: 8px 0;
    color: var(--text-soft);
    font-size: 0.78rem;
    cursor: pointer;
}
.v18-rule-ranking-evidence p {
    margin: 0 0 8px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}
.v18-rule-ranking-definitions > ul {
    margin: 0 16px 14px 28px;
    color: var(--text-soft);
    font-size: 0.8rem;
}
.v18-guide-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.v18-guide-jump button { padding: 7px 12px; font-size: 0.78rem; }
.v18-guide-light { display: inline-block; margin: 6px 10px 2px 0; font-size: 0.84rem; font-weight: 700; }
.v18-guide-light.light-red { color: #ff9d9d; }
.v18-guide-light.light-blue { color: #9edbff; }
.v18-guide-light.light-yellow { color: #ffe28c; }
.v18-guide-light.light-orange { color: #ffc08a; }
.v18-guide-light.light-purple { color: #d6b2ff; }
.v18-guide-light.light-gray { color: var(--text-soft); }
.v18-guide-mode { display: inline-block; color: var(--text-soft); font-size: 0.78rem; }
.v18-guide-light-table { table-layout: fixed; min-width: 680px; }
.v18-guide-light-table th:first-child { width: 220px; }
.v18-guide-light-table th:nth-child(2) { width: 210px; }
.v18-guide-light-table td > strong { display: block; }
.v18-legacy-guide-row { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; padding: 18px; border-top: 1px solid var(--line); }
.v18-legacy-guide-name strong { display: block; color: var(--text); font-size: 0.94rem; overflow-wrap: anywhere; }
.v18-legacy-guide-name span { display: block; margin-top: 8px; color: var(--gold-bright); font-size: 0.8rem; }
.v18-legacy-guide-detail { color: var(--text-soft); font-size: 0.84rem; line-height: 1.7; }
.v18-legacy-guide-detail p { margin: 10px 0; }
.v18-legacy-guide-detail .burst-guide-condition-list { margin-top: 0; }
@media (max-width: 768px) {
    .v18-legacy-guide-row { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 14px; }
}
.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;
}

.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;
}

.admin-badge.has-pending-review {
    gap: 7px;
    padding-right: 7px;
    border-color: rgba(255, 235, 160, 0.86);
    box-shadow: 0 0 0 2px rgba(240, 210, 142, 0.14);
}

.admin-review-envelope {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 31px;
    height: 24px;
    padding: 0 7px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    color: #ffffff;
    background: #a7373f;
    box-shadow: 0 0 12px rgba(255, 80, 92, 0.58);
    line-height: 1;
    animation: adminReviewEnvelopeBlink 1s ease-in-out infinite;
}

.admin-review-envelope b {
    font-size: 0.68rem;
    font-variant-numeric: tabular-nums;
}

@keyframes adminReviewEnvelopeBlink {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 12px rgba(255, 80, 92, 0.62);
    }
    50% {
        opacity: 0.38;
        transform: scale(1.1);
        box-shadow: 0 0 2px rgba(255, 80, 92, 0.18);
    }
}

@media (prefers-reduced-motion: reduce) {
    .admin-review-envelope {
        animation: none;
    }
}

.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,
.u6-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,
.u6-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,
.growth-calc-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);
}

.growth-calc-btn {
    text-decoration: none;
}

.global-match-tool.active {
    border-color: rgba(82, 199, 179, 0.58);
    color: #041713;
    background: linear-gradient(180deg, #8ce1cf, #4ebca8);
}

.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-stat-note {
    margin: -2px 0 10px;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.55;
}

.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):not(.oval-shape),
.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;
}

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("assets/game/lianyao-dual-guardians-main-bg.jpg") center center / cover no-repeat;
    filter: saturate(1.12) brightness(0.98);
    transform: translate3d(0, 0, 0) scale(1.025);
    animation: mainBackdropBreathe 13s ease-in-out infinite;
    contain: paint;
    backface-visibility: hidden;
}

.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;
    contain: paint;
}

.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;
    contain: strict;
}

.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;
    contain: paint;
}

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%);
}

/* Long content surfaces must not continuously re-blur the fixed cinematic
   background while the native scrollbar thumb is being dragged. */
.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 {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

@keyframes mainBackdropBreathe {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1.025);
        filter: saturate(1.12) brightness(0.96);
    }
    50% {
        transform: translate3d(-0.25%, -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%); }
}

/* Native scrollbar dragging can starve Edge's compositor when several fixed,
   filtered layers animate at once. Pause decorative work during movement and
   resume shortly after scrolling stops. */
.is-scrolling .main-backdrop,
.is-scrolling .main-backdrop::before,
.is-scrolling .main-light-beam {
    animation-play-state: paused !important;
}

.is-scrolling .main-pointer-glow {
    transition: none;
}

/* Edge uses a cheaper composition path while retaining the animated image. */
.edge-browser .main-backdrop {
    filter: saturate(1.06) brightness(0.98);
    animation-name: mainBackdropBreatheEdge;
}

.edge-browser .main-backdrop::before,
.edge-browser .main-light-beam {
    mix-blend-mode: normal;
}

.edge-browser .main-light-beam {
    filter: blur(10px);
    opacity: 0.52;
}

.edge-browser body::after {
    mix-blend-mode: normal;
}

@keyframes mainBackdropBreatheEdge {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1.025); }
    50% { transform: translate3d(-0.2%, -0.2%, 0) scale(1.035); }
}

@media (max-width: 900px) {
    .main-backdrop {
        background-position: center top;
        background-size: cover;
        transform: translate3d(0, 0, 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;
    }
}

/* ===== MOBILE RECORD CARDS =====
   Keep the desktop table intact, but give every record field its own labelled,
   touch-friendly place on narrow screens. */
.records-mobile-toolbar {
    display: none;
}

@media (max-width: 480px) {
    .board {
        padding-right: 14px;
        padding-left: 14px;
    }

    .records-table,
    .u1-interface .records-table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        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,
    .u1-interface .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);
    }

    .records-table tbody tr:hover,
    .u1-interface .records-table tbody tr:hover {
        filter: none;
    }

    .records-table tbody td,
    .u1-interface .records-table tbody td {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        min-width: 0;
        padding: 0;
        border: 0;
        font-size: 0.8rem;
    }

    .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;
    }

    .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;
    }

    .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;
    }

    .readonly-mode .records-table input[readonly] {
        user-select: none;
    }

    /* The card above already provides the complete latest-record editor. */
    .quick-edit-row-container {
        display: none;
    }
}

@media (max-width: 340px) {
    .records-table tbody tr,
    .u1-interface .records-table tbody tr {
        grid-template-areas:
            "time actions"
            "type type"
            "status status"
            "skills skills"
            "required marker"
            "profit profit";
    }
}

/* ===== MOBILE SEQUENCE-FIRST WORKSPACE ===== */
@media (max-width: 480px) {
    /* 手机录入以数字序列为主：日期/游戏号之后先展示序列，再展示明细卡。 */
    .board {
        display: flex;
        flex-direction: column;
    }

    .board > * { order: 10; }
    .board > .app-header { order: 0; }
    .board > .readonly-notice { order: 1; }
    .board > .control-bar { order: 2; }
    .board > .record-visual-panel { order: 3; }
    .board > .records-table,
    .board > .empty-message,
    .board > .mobile-empty-quick-actions { order: 4; }

    .record-visual-panel,
    .u1-interface .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,
    .record-visual-panel .visual-tools > .sequence-help-menu {
        flex: 0 0 auto;
    }

    .record-visual-panel .visual-tools button,
    .record-visual-panel .sequence-help-menu summary {
        min-height: 32px;
        padding: 6px 9px;
        font-size: 0.7rem;
    }

    /* 录入条在长序列中吸顶，主/副/龟泡一键添加并提供撤回。 */
    .record-visual-panel .mobile-sequence-quick-actions {
        position: sticky;
        top: 38px;
        z-index: 80;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: 100%;
        gap: 5px;
        margin: 0 0 7px;
        padding: 6px;
        border: 1px solid rgba(184, 202, 224, 0.2);
        border-radius: 10px;
        background: rgba(8, 16, 26, 0.94);
        box-shadow: 0 5px 16px rgba(0, 0, 0, 0.34);
        box-sizing: border-box;
    }

    .record-visual-panel .mobile-quick-add {
        min-width: 0;
        min-height: 42px;
        padding: 7px 3px;
        font-size: 0.72rem;
        line-height: 1.1;
        touch-action: manipulation;
    }

    .mobile-sequence-undo {
        border: 1px solid rgba(214, 181, 111, 0.32);
        color: #f0d28e;
        background: rgba(55, 65, 80, 0.94);
    }

    .mobile-sequence-undo:disabled {
        opacity: 0.42;
    }

    /* 固定五列，从左到右、从上到下保持手数顺序。 */
    .marker-container,
    .u1-interface .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,
    .u1-interface .marker-container .marker-item,
    .u1-interface .marker-container .marker-main,
    .u1-interface .marker-container .marker-sub,
    .u1-interface .marker-container .marker-other {
        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;
    }

    .marker-container .marker-item.oval-shape,
    .u1-interface .marker-container .marker-item.oval-shape {
        border-radius: 999px !important;
    }

    .marker-item.marker-latest {
        box-shadow: 0 0 0 2px rgba(98, 221, 255, 0.92), 0 0 12px rgba(98, 221, 255, 0.28) !important;
    }

    .marker-hand-index {
        position: absolute;
        top: 2px;
        left: 3px;
        z-index: 5;
        display: block;
        color: rgba(223, 234, 245, 0.66);
        font-size: 0.54rem;
        font-weight: 850;
        line-height: 1;
        pointer-events: none;
    }

    .marker-latest .marker-hand-index {
        color: #8fe8ff;
    }

    .marker-container .marker-icon-top {
        min-height: 17px;
        margin-bottom: 1px;
        gap: 2px;
        font-size: 0.7rem;
    }

    .marker-container .marker-number,
    .u1-interface .marker-container .marker-number {
        font-size: 1.38rem;
        line-height: 1.05;
    }

    .marker-container .marker-number.marker-number-type,
    .u1-interface .marker-container .marker-number.marker-number-type {
        font-size: 1.05rem;
    }

    .marker-container .marker-time,
    .u1-interface .marker-container .marker-time {
        min-width: 0;
        width: 100%;
        margin-top: 5px;
        font-size: 0.67rem;
        line-height: 1;
    }

    .marker-container .marker-time span,
    .u1-interface .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;
    }

    .marker-container .marker-burst-hint {
        width: 15px;
        height: 15px;
        flex-basis: 15px;
        font-size: 0.66rem;
    }

    .marker-container .marker-record-burst-icon {
        height: 16px;
        font-size: 0.72rem;
    }

    .marker-container .marker-rush-text {
        height: 15px;
        font-size: 0.66rem;
    }

    .marker-container .marker-inherit-hint,
    .u1-interface .marker-container .marker-inherit-hint {
        top: 2px;
        right: 2px;
        width: 14px;
        height: 14px;
        font-size: 0.58rem;
    }

    .marker-container .theory-delta,
    .u1-interface .marker-container .theory-delta {
        min-width: 0;
        max-width: calc(100% - 4px);
        height: 16px;
        padding: 1px 3px;
        font-size: 0.58rem;
    }

    .skill-chart-container {
        padding: 11px 9px;
        border-radius: 12px;
    }

    .skill-chart-title {
        margin-bottom: 7px;
    }

    .mobile-chart-scroll-hint {
        display: block;
        margin: 0 0 7px;
        color: #9fb7cf;
        font-size: 0.68rem;
        line-height: 1.35;
        text-align: center;
    }

    .skill-chart-canvas-wrapper {
        height: 190px;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    #skillChart {
        max-width: none;
    }
}

/* ===== NARROW VIEWPORT QUICK-ENTRY BAR =====
   Keep every add action visible, separate the controls from the sequence,
   and preserve the undo button's dark appearance while disabled. */
@media (max-width: 768px) {
    .record-visual-panel .mobile-sequence-quick-actions-top {
        display: none;
    }

    .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(7, 14, 22, 0.46);
        box-shadow: none;
        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(180, 150, 100, 0.1);
        border-radius: 9px;
        font-size: 0.82rem;
        font-weight: 850;
        line-height: 1.1;
        text-align: center;
        box-shadow: none;
        touch-action: manipulation;
        transition: border-color 0.16s ease;
    }

    .mobile-sequence-quick-actions-bottom .mobile-quick-add:hover {
        border-color: #ffd966;
        box-shadow: 0 0 8px rgba(255, 217, 102, 0.3);
    }

    .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: 360px) {
    .mobile-sequence-quick-actions-bottom {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .board > .mobile-sequence-quick-actions-bottom {
        order: 4;
    }

    .board > .records-table {
        order: 5;
    }
}
/* Independent three-hand shadow windows; contain long evidence on mobile. */
.v18-window-shadow{margin:12px 0;padding:14px;border:1px solid #607086;border-radius:12px;background:#202a36;color:#dce3ec;overflow-wrap:anywhere}
.v18-window-shadow *{box-sizing:border-box;min-width:0}
.v18-window-shadow-heading,.v18-window-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.v18-window-shadow-heading h3{font-size:1rem;margin:0 0 5px;color:#edf1f6}
.v18-window-shadow-heading p,.v18-window-shadow-scope{margin:0;font-size:.76rem;color:#aebdcd}
.v18-window-shadow-scope{margin-top:10px}
.v18-window-policy-picker{display:flex;flex-direction:column;gap:4px;font-size:.72rem;color:#b5c3d4;flex-shrink:0}
.v18-window-policy-picker select{border:1px solid #6e8196;border-radius:6px;background:#18222e;color:#edf3fa;padding:7px 9px;font-size:.8rem}
.v18-window-shadow-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
.v18-window-card{padding:12px;border:1px solid #526173;border-radius:8px;background:#1a2430;font-size:.8rem;line-height:1.6}
.v18-window-card-heading strong{font-size:.84rem}
.v18-window-state{padding:1px 7px;border:1px solid #697b8f;border-radius:12px;font-size:.7rem;white-space:nowrap;background:#303c4b}
.v18-window-card.window-active{border-color:#8e9fb2}
.v18-window-condition{margin:10px 0;color:#c8d3df}
.v18-window-progress{display:flex;flex-direction:column;gap:4px;padding:9px;background:#2a3544;border-radius:6px}
.v18-window-progress p{margin:0;font-size:.75rem;color:#c9d5e4}
.v18-window-empty{color:#9fadc0;font-size:.76rem}
.v18-window-tags{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin-top:9px}
.v18-window-tags>span{padding:1px 6px;background:#354150;border:1px solid #708097;border-radius:5px}
.v18-window-tags small{color:#aebacd}
.v18-window-evidence{margin-top:10px;border-top:1px solid #48576a;padding-top:8px}
.v18-window-evidence summary{cursor:pointer;color:#cedceb;font-size:.76rem;min-height:30px;line-height:30px}
.v18-window-evidence p{margin:8px 0}
.v18-window-evidence-note,.v18-window-shadow-boundary{font-size:.72rem;line-height:1.65;color:#a9b7c8}
.v18-window-shadow-boundary{margin:10px 0 0}
.v18-window-shadow-links{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:10px;font-size:.75rem}
.v18-window-shadow-links button{padding:6px 8px;color:#d9e5f3;border:1px solid #6b7c91;border-radius:5px;background:#2a3544;cursor:pointer;font-size:inherit}
.v18-window-shadow a{color:#b8d8fa}
.v18-window-guide .burst-guide-note p{margin:9px 0;overflow-wrap:anywhere}
@media(max-width:600px){.v18-window-shadow{padding:10px}.v18-window-shadow-grid{grid-template-columns:minmax(0,1fr)}.v18-window-shadow-heading{gap:8px}.v18-window-shadow-heading h3{font-size:.94rem}.v18-window-policy-picker{max-width:43%}.v18-window-card{padding:10px}.v18-window-card-heading{gap:7px}}

/* Active H3 signals share the existing shadow area. */
.v18-window-active{min-width:0;overflow-wrap:anywhere}
.v18-window-next{margin:5px 0;font-size:.8rem;color:#e2e8f0}
.v18-window-active .v18-window-evidence{font-size:.73rem}
.v18-window-active .v18-window-evidence p{margin:6px 0;line-height:1.6}

/* Compact theme controls: consistent left edge and spacing. */
.board .record-visual-panel .visual-title {
    width:100%; justify-content:flex-start; margin-bottom:12px;
}
.board .record-visual-panel .visual-tools {
    width:100%; justify-content:flex-start; align-items:center; gap:8px;
}
.board .record-visual-panel .visual-tools > button,
.board .record-visual-panel .sequence-help-menu summary {
    box-sizing:border-box; min-height:36px;
}
@media(max-width:480px) {
    .board .record-visual-panel .visual-tools { gap:6px; }
}
