        :root {
            color-scheme: dark;
            --bg: #0b0f14;
            --bg-2: #10151d;
            --panel: rgba(19, 25, 32, 0.9);
            --panel-solid: #151b24;
            --panel-soft: #1b2430;
            --tool: rgba(23, 31, 40, 0.82);
            --text: #f3f6f8;
            --muted: #a3afbd;
            --muted-2: #758395;
            --line: rgba(163, 175, 189, 0.16);
            --line-strong: rgba(163, 175, 189, 0.3);
            --accent: #54d6c2;
            --accent-2: #8fb3ff;
            --success: #45c486;
            --warning: #e5b650;
            --danger: #ef6f73;
            --shadow: rgba(0, 0, 0, 0.38);
            --type-green: #45c486;
            --type-green-soft: rgba(69, 196, 134, 0.13);
            --type-green-border: rgba(69, 196, 134, 0.34);
            --type-beginner: #6fb7ff;
            --type-beginner-soft: rgba(111, 183, 255, 0.13);
            --type-beginner-border: rgba(111, 183, 255, 0.34);
            --type-veteran: #d6a86a;
            --type-veteran-soft: rgba(214, 168, 106, 0.13);
            --type-veteran-border: rgba(214, 168, 106, 0.36);
        }

        * { box-sizing: border-box; }
        body {
            margin: 0;
            min-height: 100vh;
            color: var(--text);
            font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            background:
                linear-gradient(180deg, rgba(84, 214, 194, 0.08), transparent 260px),
                linear-gradient(115deg, rgba(229, 182, 80, 0.06), transparent 46%),
                linear-gradient(245deg, rgba(143, 179, 255, 0.07), transparent 48%),
                var(--bg);
            letter-spacing: 0;
        }

        body::before {
            content: "";
            position: fixed;
            inset: 0;
            pointer-events: none;
            opacity: 0.16;
            background-image:
                linear-gradient(rgba(163, 175, 189, 0.12) 1px, transparent 1px),
                linear-gradient(90deg, rgba(163, 175, 189, 0.12) 1px, transparent 1px);
            background-size: 48px 48px;
            mask-image: linear-gradient(180deg, black, transparent 75%);
        }

        #app-container {
            position: relative;
            z-index: 1;
            width: min(100%, 1280px);
            margin: 0 auto;
            padding: 104px 28px 48px;
        }

        header {
            position: fixed;
            top: 18px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 50;
            width: min(calc(100% - 36px), 1280px);
            min-height: 66px;
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto auto;
            align-items: center;
            gap: 16px;
            padding: 11px 12px 11px 16px;
            border: 1px solid var(--line);
            border-radius: 8px;
            background: rgba(13, 17, 23, 0.86);
            box-shadow: 0 18px 54px var(--shadow);
            backdrop-filter: blur(18px) saturate(150%);
        }

        .nav-left {
            display: flex;
            align-items: center;
            gap: 8px;
            min-width: 0;
            overflow-x: auto;
            scrollbar-width: none;
        }
        .nav-left::-webkit-scrollbar { display: none; }
        .nav-left::before {
            content: "MATRIX";
            flex: 0 0 auto;
            display: inline-flex;
            align-items: center;
            min-height: 40px;
            padding: 0 14px;
            margin-right: 8px;
            border-radius: 8px;
            color: #07110f;
            background: linear-gradient(135deg, var(--accent), #b7e07a);
            font-weight: 950;
            font-size: 13px;
            letter-spacing: 0.02em;
        }

        .nav-tab {
            appearance: none;
            flex: 0 0 auto;
            min-height: 40px;
            padding: 0 13px;
            border-radius: 8px;
            border: 1px solid transparent;
            background: transparent;
            color: var(--muted);
            font-size: 14px;
            font-weight: 850;
            cursor: pointer;
            transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
        }
        .nav-tab:hover { color: var(--text); background: rgba(148, 163, 184, 0.1); }
        .nav-tab.active {
            color: var(--text);
            background: rgba(84, 214, 194, 0.14);
            border-color: rgba(84, 214, 194, 0.3);
        }

        .security-timer-bar {
            display: flex;
            align-items: center;
            gap: 9px;
            min-height: 40px;
            padding: 0 12px;
            border-radius: 8px;
            border: 1px solid var(--line);
            background: rgba(23, 31, 40, 0.72);
            white-space: nowrap;
        }
        .security-timer-label { color: var(--muted); font-size: 12px; font-weight: 850; }
        .security-timer-meta { display: none; }
        .security-timer-value { color: var(--success); font-size: 13px; font-weight: 950; }
        .nav-right { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
        .site-language-switch {
            display: inline-flex;
            gap: 4px;
            padding: 4px;
            border-radius: 8px;
            border: 1px solid var(--line);
            background: rgba(9, 13, 22, 0.62);
        }
        .site-lang-btn {
            min-height: 30px;
            padding: 0 10px;
            border: 0;
            border-radius: 6px;
            background: transparent;
            color: var(--muted);
            font-size: 12px;
            font-weight: 900;
            cursor: pointer;
        }
        .site-lang-btn.active {
            background: rgba(84, 214, 194, 0.16);
            color: var(--text);
        }

        button.btn {
            appearance: none;
            min-height: 38px;
            padding: 0 16px;
            border-radius: 8px;
            border: 1px solid transparent;
            background: linear-gradient(135deg, #2bb8a7, #527ee8);
            color: #ffffff;
            font-size: 14px;
            font-weight: 900;
            cursor: pointer;
            transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
        }
        button.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(43, 184, 167, 0.24); }
        button.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
        button.btn-danger, button.btn.btn-site-logout { background: linear-gradient(135deg, #d84b55, #ef6f73); }
        button.btn-success { background: linear-gradient(135deg, #35b978, #83c55a); color: #04110c; }
        button.btn-disabled, button.btn-disabled:hover {
            background: rgba(148, 163, 184, 0.12);
            color: var(--muted);
            border-color: var(--line);
            box-shadow: none;
            transform: none;
        }
        button.btn-sync, .btn-sync {
            background: rgba(84, 214, 194, 0.1);
            color: var(--accent);
            border-color: rgba(84, 214, 194, 0.24);
        }
        button.btn-sync:hover, .btn-sync:hover { background: rgba(84, 214, 194, 0.18); color: var(--text); box-shadow: 0 12px 30px rgba(84, 214, 194, 0.14); }
        button.btn-ghost {
            background: transparent;
            color: var(--muted);
            border-color: var(--line);
        }
        button.btn-ghost:hover {
            color: var(--text);
            background: rgba(163, 175, 189, 0.1);
            box-shadow: none;
        }

        .dashboard-controls {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            margin: 2px 0 16px;
        }
        .dashboard-controls.sort-right-only { justify-content: flex-end; }
        #account-list { min-width: 0; }
        .filter-group { display: flex; gap: 10px; flex-wrap: wrap; }
        .filter-btn {
            min-height: 38px;
            padding: 0 16px;
            border-radius: 8px;
            border: 1px solid var(--line);
            background: rgba(19, 25, 32, 0.72);
            color: var(--muted);
            font-size: 14px;
            font-weight: 900;
            cursor: pointer;
            transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
        }
        .filter-btn:hover { color: var(--text); border-color: var(--line-strong); }
        .filter-btn.active { color: var(--accent); background: rgba(125, 211, 252, 0.12); border-color: rgba(125, 211, 252, 0.28); }
        .filter-btn.filter-green.active { color: var(--type-green); background: var(--type-green-soft); border-color: var(--type-green-border); }
        .filter-btn.filter-beginner.active { color: var(--type-beginner); background: var(--type-beginner-soft); border-color: var(--type-beginner-border); }
        .filter-btn.filter-veteran.active { color: var(--type-veteran); background: var(--type-veteran-soft); border-color: var(--type-veteran-border); }

        .sort-control {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            color: var(--muted);
            font-size: 13px;
            font-weight: 900;
            white-space: nowrap;
        }

        .perfect-lookup-panel {
            margin: 0 0 18px;
            padding: 16px;
            border: 1px solid var(--line);
            border-radius: 8px;
            background: rgba(19, 25, 32, 0.78);
            box-shadow: 0 14px 42px rgba(0, 0, 0, 0.16);
        }
        .perfect-lookup-row {
            display: grid;
            grid-template-columns: 140px minmax(220px, 1fr) auto;
            gap: 12px;
            align-items: center;
        }
        .perfect-lookup-title {
            color: var(--text);
            font-size: 14px;
            font-weight: 950;
            white-space: nowrap;
        }
        .perfect-lookup-row input {
            height: 38px;
            padding: 0 12px;
            min-width: 0;
        }
        .perfect-lookup-result {
            margin-top: 12px;
            min-height: 0;
        }
        .lookup-result-title {
            color: var(--accent);
            font-size: 13px;
            font-weight: 950;
            margin-bottom: 10px;
        }
        .lookup-note {
            margin-bottom: 10px;
            color: var(--muted);
            font-size: 12px;
            line-height: 1.5;
        }
        .lookup-result-grid {
            display: grid;
            grid-template-columns: repeat(5, minmax(110px, 1fr));
            gap: 12px;
            padding: 14px;
            border: 1px solid var(--line);
            border-radius: 8px;
            background: rgba(9, 13, 22, 0.38);
        }
        .lookup-error {
            display: inline-flex;
            min-height: 30px;
            align-items: center;
            color: var(--danger);
            font-size: 13px;
            font-weight: 900;
        }

        select, input, textarea, .manage-input, .modal input {
            color: var(--text);
            background: rgba(8, 12, 17, 0.72);
            border: 1px solid var(--line);
            border-radius: 8px;
            outline: none;
        }
        select {
            height: 38px;
            padding: 0 34px 0 12px;
            font-weight: 850;
            cursor: pointer;
        }
        input:focus, textarea:focus, select:focus { border-color: var(--accent); }

        .card, .admin-log-panel, table {
            background: var(--panel);
            border: 1px solid var(--line);
            border-radius: 8px;
            box-shadow: 0 20px 58px var(--shadow);
            backdrop-filter: blur(14px) saturate(145%);
        }
        .card {
            position: relative;
            overflow: hidden;
            padding: 20px;
            margin-bottom: 16px;
        }
        .card::after {
            content: "";
            position: absolute;
            inset: 0;
            pointer-events: none;
            border-left: 3px solid rgba(84, 214, 194, 0.7);
        }
        .card h3 { color: var(--text) !important; }

        .section-card {
            margin-top: 20px;
        }

        .data-card {
            padding: 0;
            margin-top: 20px;
            border: 0;
            background: transparent;
            box-shadow: none;
            backdrop-filter: none;
        }

        .data-card::after {
            display: none;
        }

        .section-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            padding: 20px;
            border-bottom: 1px solid var(--line);
        }

        .section-card .section-head {
            padding: 0 0 18px;
            margin-bottom: 16px;
        }

        .data-card .section-head {
            padding: 0 0 16px;
            border-bottom: 0;
        }

        .section-title {
            margin: 0;
            font-size: 20px;
            line-height: 1.2;
        }

        .section-subtitle {
            margin: 7px 0 0;
            color: var(--muted);
            font-size: 13px;
            line-height: 1.55;
        }

        .toolbar-actions {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 10px;
            flex-wrap: wrap;
        }

        .card-header {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(260px, auto);
            align-items: start;
            gap: 18px;
            margin-bottom: 14px;
        }
        .card-header-left { min-width: 0; }
        .card-header-right {
            display: grid;
            justify-items: end;
            align-content: start;
            gap: 8px;
            min-width: 260px;
        }
        .card-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 30px; }
        .steam-status-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; min-height: 30px; }

        .rank-tag, .data-chip, .status-badge, .platform-read {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 28px;
            padding: 0 10px;
            border-radius: 8px;
            border: 1px solid var(--line);
            background: rgba(148, 163, 184, 0.1);
            color: var(--muted);
            font-size: 12px;
            font-weight: 900;
            line-height: 1;
            white-space: nowrap;
        }
        .data-chip { color: var(--accent); background: rgba(84, 214, 194, 0.1); border-color: rgba(84, 214, 194, 0.24); cursor: pointer; }
        .data-chip:hover { color: var(--text); background: rgba(84, 214, 194, 0.18); }
        .status-refresh-btn {
            min-height: 28px;
            padding: 0 10px;
            border-radius: 8px;
            border: 1px solid rgba(84, 214, 194, 0.24);
            background: rgba(84, 214, 194, 0.08);
            color: var(--accent);
            font-size: 12px;
            font-weight: 900;
            cursor: pointer;
            white-space: nowrap;
        }
        .status-refresh-btn:hover { color: var(--text); background: rgba(84, 214, 194, 0.16); }
        .status-refresh-btn:disabled { cursor: wait; opacity: 0.62; }
        .rank-tag.platform-green, .platform-read.platform-green { color: var(--type-green); background: var(--type-green-soft); border-color: var(--type-green-border); }
        .rank-tag.platform-beginner, .platform-read.platform-beginner { color: var(--type-beginner); background: var(--type-beginner-soft); border-color: var(--type-beginner-border); }
        .rank-tag.platform-veteran, .platform-read.platform-veteran { color: var(--type-veteran); background: var(--type-veteran-soft); border-color: var(--type-veteran-border); }
        .rank-tag.platform-5e, .platform-read.platform-5e { color: var(--warning); background: rgba(251, 191, 36, 0.12); border-color: rgba(251, 191, 36, 0.28); }
        .platform-read.platform-uncategorized { color: var(--muted); background: rgba(148, 163, 184, 0.1); }
        .status-online, .status-available { color: var(--success); background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.3); }
        .status-busy { color: var(--danger); background: rgba(251, 113, 133, 0.12); border-color: rgba(251, 113, 133, 0.32); }
        .status-active, .status-error { color: var(--warning); background: rgba(251, 191, 36, 0.12); border-color: rgba(251, 191, 36, 0.28); }
        .status-ingame { color: var(--accent); background: rgba(84, 214, 194, 0.12); border-color: rgba(84, 214, 194, 0.3); }
        .status-offline, .status-unknown { color: var(--muted); background: rgba(148, 163, 184, 0.1); border-color: var(--line); }
        @keyframes status-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

        .auto-kick-toggle { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 900; cursor: pointer; white-space: nowrap; }
        .auto-kick-toggle input { width: 14px; height: 14px; margin: 0; accent-color: var(--success); }

        .info-group {
            background: rgba(8, 12, 17, 0.38);
            border: 1px solid var(--line);
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 14px;
        }
        .account-info {
            display: grid;
            grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
            align-items: stretch;
            gap: 20px;
        }
        .account-credentials {
            min-width: 0;
            display: grid;
            align-content: center;
            gap: 8px;
        }
        .account-info-fivee {
            display: grid;
            grid-template-columns: minmax(240px, 0.8fr) minmax(240px, 0.8fr) minmax(520px, 1.4fr);
            align-items: stretch;
            gap: 18px;
        }
        .account-info-fivee .account-credentials { min-width: 0; }
        .fivee-credentials {
            min-width: 0;
            display: grid;
            align-content: center;
            gap: 8px;
            padding: 0 14px;
            border-left: 1px solid var(--line);
            border-right: 1px solid var(--line);
        }
        .fivee-credentials .info-label { width: 62px; }
        .fivee-credentials .info-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .info-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; min-height: 31px; gap: 8px; margin-bottom: 0; }
        .info-row:last-child { margin-bottom: 0; }
        .info-label, .perfect-info-label { color: var(--muted); font-size: 12px; font-weight: 900; }
        .info-label { width: auto; min-width: 0; flex-shrink: 0; }
        .info-value { color: var(--text); font-size: 16px; font-weight: 950; margin-right: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .info-value.mono, .mono { color: var(--accent); font-family: "SF Mono", "Cascadia Mono", Consolas, monospace; font-weight: 900; }
        .copy-btn {
            min-height: 26px;
            padding: 0 10px;
            border-radius: 8px;
            border: 1px solid var(--line);
            background: rgba(148, 163, 184, 0.1);
            color: var(--muted);
            font-size: 12px;
            font-weight: 900;
            cursor: pointer;
        }
        .copy-btn:hover { color: var(--text); border-color: var(--line-strong); }
        .hover-secret { filter: blur(4px); transition: filter 0.2s ease; }
        .hover-secret:hover { filter: none; }

        .perfect-info { min-width: 0; display: grid; align-content: center; }
        .perfect-info-title { color: var(--text); font-size: 14px; font-weight: 950; margin-bottom: 12px; }
        .perfect-info-grid { display: grid; grid-template-columns: repeat(5, minmax(112px, 1fr)); gap: 14px; align-items: start; }
        .perfect-info-grid-season { grid-template-columns: repeat(8, minmax(0, 1fr)); }
        .perfect-info-item { min-width: 0; }
        .perfect-info-label { margin-bottom: 5px; min-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .perfect-info-value { color: var(--text); font-size: 14px; font-weight: 950; word-break: break-word; min-height: 26px; display: flex; align-items: center; }
        .perfect-info-value-multiline { align-items: flex-start; line-height: 1.35; }
        .perfect-info-extra {
            margin-top: 14px;
            padding-top: 12px;
            border-top: 1px solid var(--line);
            min-width: 0;
        }
        .account-info-fivee .perfect-info-grid { grid-template-columns: minmax(120px, 1fr) minmax(90px, 0.7fr) minmax(170px, 1.1fr) minmax(120px, 0.9fr) minmax(110px, 0.8fr); }
        .account-info-fivee .perfect-info-value { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .reputation-badge {
            display: inline-flex;
            align-items: center;
            min-height: 26px;
            padding: 0 10px;
            border-radius: 8px;
            border: 1px solid var(--line);
            background: rgba(148, 163, 184, 0.1);
            color: var(--muted);
            font-size: 12px;
            font-weight: 950;
            white-space: nowrap;
        }
        .reputation-excellent { color: var(--success); background: rgba(52, 211, 153, 0.13); border-color: rgba(52, 211, 153, 0.34); }
        .reputation-good { color: var(--accent); background: rgba(84, 214, 194, 0.12); border-color: rgba(84, 214, 194, 0.3); }
        .reputation-watch { color: var(--warning); background: rgba(251, 191, 36, 0.12); border-color: rgba(251, 191, 36, 0.28); }
        .reputation-low { color: var(--danger); background: rgba(251, 113, 133, 0.12); border-color: rgba(251, 113, 133, 0.32); }
        .reputation-muted { color: var(--muted); background: rgba(148, 163, 184, 0.1); border-color: var(--line); }

        .token-zone {
            min-height: 92px;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 14px;
            border-radius: 8px;
            border: 1px solid rgba(84, 214, 194, 0.18);
            background: #050814;
        }
        .token-text { display: none; width: min(360px, 100%); text-align: center; }
        .token-actions { display: flex; gap: 10px; }
        .token-code { display: inline-block; color: #73eadb; font-size: 42px; font-weight: 950; letter-spacing: 8px; user-select: text; }
        .token-progress-wrap { margin-top: 10px; }
        .token-progress { height: 6px; background: rgba(255,255,255,0.16); border-radius: 6px; overflow: hidden; }
        .token-progress-fill { height: 100%; width: 100%; background: var(--success); border-radius: 6px; transition: width 0.2s linear, background-color 0.2s linear; }
        .token-expire-text { margin-top: 6px; font-size: 12px; color: #cbd5e1; }

        .forge-format-tool, .forge-quick-add {
            margin: 14px 0;
            padding: 16px;
            background: rgba(8, 12, 17, 0.38);
            border: 1px solid var(--line);
            border-radius: 8px;
        }
        .forge-quick-title { color: var(--text); font-size: 14px; font-weight: 950; margin-bottom: 7px; }
        .forge-quick-note { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0 0 10px; }
        .forge-format-grid { display: grid; grid-template-columns: 150px 150px 140px minmax(132px, auto); gap: 10px; align-items: center; margin-bottom: 10px; }
        .forge-quick-row { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) 140px auto; gap: 10px; align-items: center; }
        .forge-quick-row input, .manage-input, .modal input { height: 38px; padding: 0 12px; }
        #smart-forge-line, #web-raw-data { width: 100%; padding: 12px !important; resize: vertical; font-family: "SF Mono", "Cascadia Mono", Consolas, monospace !important; line-height: 1.45; }
        #smart-forge-line { min-height: 70px; }
        #web-raw-data {
            min-height: 112px;
            margin-top: 2px;
            color: #b7f7de;
            background: #07100f;
            border-color: rgba(84, 214, 194, 0.24);
        }
        .forge-smart-result { min-height: 18px; margin-top: 8px; color: var(--success); font-size: 13px; line-height: 1.45; }
        .forge-smart-result.is-error { color: var(--danger); }
        .forge-run-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
        .forge-run-actions .btn { width: 100%; }
        .forge-input-row { display: none; align-items: center; gap: 10px; margin-top: 10px; }
        .forge-input-row input { flex: 1; min-width: 0; padding: 10px 12px; }

        .forge-terminal, .admin-log-output {
            background: #060b0d;
            color: #e5edf8;
            border: 1px solid rgba(84, 214, 194, 0.18);
            border-radius: 8px;
            font-family: "SF Mono", "Cascadia Mono", Consolas, monospace;
            line-height: 1.58;
            white-space: pre-wrap;
            word-break: break-word;
        }
        .forge-terminal { display: none; margin-top: 15px; padding: 16px; min-height: 180px; max-height: 380px; overflow: auto; font-size: 13px; }
        .admin-log-output { margin: 0; min-height: 420px; max-height: 62vh; overflow: auto; padding: 16px 18px; font-size: 13px; }

        table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; }
        th, td { padding: 14px 15px; text-align: left; border-bottom: 1px solid var(--line); }
        th { color: var(--muted); background: rgba(8, 12, 17, 0.38); font-size: 13px; font-weight: 950; }
        tr:last-child td { border-bottom: 0; }
        .manage-table { table-layout: fixed; }
        .manage-col-steam { width: 18%; }
        .manage-col-password { width: 18%; }
        .manage-col-fivee { width: 18%; }
        .manage-col-fivee-password { width: 18%; }
        .manage-col-type { width: 14%; }
        .manage-col-actions { width: 14%; }
        .manage-table th, .manage-table td { height: 54px; vertical-align: middle; }
        .manage-table td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .manage-edit { display: none; }
        tr.is-editing .manage-read { display: none; }
        tr.is-editing .manage-edit { display: inline-flex; }
        .manage-actions-row { display: flex; align-items: center; gap: 8px; }
        .manage-actions .btn { min-width: 48px; padding: 0 12px; font-size: 12px; }
        .btn-edit { background: rgba(84, 214, 194, 0.1); color: var(--accent); border-color: rgba(84, 214, 194, 0.24); }
        .btn-save { background: var(--success); color: #04110c; border-color: var(--success); }
        .btn-backup { background: rgba(52, 211, 153, 0.1); color: var(--success); border-color: rgba(52, 211, 153, 0.28); }
        .btn-backup:hover { background: rgba(52, 211, 153, 0.18); color: var(--text); }

        .admin-log-panel { overflow: hidden; margin-top: 20px; }
        .admin-log-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
        .admin-log-head h3 { margin: 0 0 6px; }
        .admin-log-head p { margin: 0; color: var(--muted); font-size: 13px; }
        .admin-log-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
        .user-admin-body { padding: 18px 20px 24px; overflow-x: auto; }
        .user-create-row { display: grid; grid-template-columns: 1fr 1fr 1fr 150px auto; gap: 10px; margin-bottom: 18px; align-items: center; }
        .user-create-row input, .user-create-row select { height: 38px; min-width: 0; }
        .audit-title { margin: 24px 0 12px; }
        .muted-small { color: var(--muted); font-size: 12px; }

        .empty-state {
            display: grid;
            place-items: center;
            min-height: 156px;
            padding: 34px 22px;
            border: 1px solid var(--line);
            border-radius: 8px;
            background: rgba(19, 25, 32, 0.78);
            color: var(--muted);
            text-align: center;
            box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
        }

        .empty-state strong {
            display: block;
            margin-bottom: 6px;
            color: var(--text);
            font-size: 15px;
        }

        .empty-state.is-error {
            color: #f5b5b8;
            border-color: rgba(239, 111, 115, 0.34);
            background: rgba(74, 22, 27, 0.34);
        }

        .modal-overlay { display: none; position: fixed; inset: 0; z-index: 1000; justify-content: center; align-items: center; padding: 18px; background: rgba(0,0,0,0.62); backdrop-filter: blur(10px); }
        .modal { width: min(90vw, 420px); padding: 28px; border-radius: 8px; background: var(--panel-solid); border: 1px solid var(--line); box-shadow: 0 24px 70px var(--shadow); }
        .modal input, .modal select { width: 100%; margin: 10px 0; }
        .modal-title { margin: 0 0 14px; }
        .modal-primary, .modal-secondary { width: 100%; }
        .modal-primary { margin-top: 15px; }
        .modal-secondary { margin-top: 10px; }
        .token-backup-modal { width: min(92vw, 620px); max-height: 86vh; overflow: auto; }
        .token-backup-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
        .token-backup-head h3 { margin: 0; font-size: 20px; }
        .modal-close-btn { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: rgba(148, 163, 184, 0.1); color: var(--text); font-size: 22px; font-weight: 900; cursor: pointer; }
        .modal-close-btn:hover { border-color: var(--line-strong); background: rgba(148, 163, 184, 0.18); }
        .token-backup-body { min-height: 120px; }
        .backup-loading, .backup-empty { padding: 24px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: rgba(8, 12, 17, 0.38); }
        .backup-token-code { text-align: center; color: #73eadb; font-size: 44px; font-weight: 950; letter-spacing: 8px; padding: 18px 12px; border-radius: 8px; background: #060b0d; border: 1px solid rgba(84, 214, 194, 0.2); }
        .backup-token-meta { margin: 12px 0 16px; color: var(--muted); font-size: 13px; line-height: 1.6; }
        .backup-grid { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
        .backup-label, .backup-value { min-height: 42px; padding: 11px 12px; border-bottom: 1px solid var(--line); }
        .backup-label { color: var(--muted); font-size: 12px; font-weight: 950; background: rgba(8, 12, 17, 0.38); }
        .backup-value { color: var(--text); word-break: break-all; background: rgba(15, 23, 42, 0.38); }
        .backup-label:nth-last-child(2), .backup-value:last-child { border-bottom: 0; }
        .backup-secret { color: var(--success); }
        .backup-raw { max-height: 190px; overflow: auto; margin: 16px 0 0; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #060b0d; color: #cbd5e1; font-size: 12px; line-height: 1.55; white-space: pre-wrap; word-break: break-all; }
        .token-backup-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 18px; }

        @media (max-width: 1080px) {
            header { top: 10px; width: calc(100% - 20px); grid-template-columns: 1fr; gap: 10px; }
            .nav-right { position: absolute; top: 11px; right: 12px; }
            .security-timer-bar { width: fit-content; }
            #app-container { padding: 162px 18px 32px; }
        }
        @media (max-width: 980px) {
            .dashboard-controls { flex-direction: column; align-items: stretch; }
            .sort-control { justify-content: space-between; }
            .card-header { grid-template-columns: 1fr; }
            .card-header-right { justify-items: start; min-width: 0; }
            .account-info, .account-info-fivee { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: stretch; }
            .account-credentials, .perfect-info { min-width: 0; }
            .fivee-credentials { border-left: 0; border-right: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; }
            .account-info-fivee .perfect-info-grid, .perfect-info-grid-season, .lookup-result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .perfect-lookup-row { grid-template-columns: 1fr; }
            .forge-format-grid, .forge-quick-row, .forge-run-actions { grid-template-columns: 1fr; }
            .admin-log-head { flex-direction: column; align-items: stretch; }
            .section-head { flex-direction: column; align-items: stretch; }
            .toolbar-actions { justify-content: flex-start; }
            .user-create-row { grid-template-columns: 1fr; }
        }
        @media (max-width: 640px) {
            #app-container { padding-left: 12px; padding-right: 12px; }
            .nav-left::before { display: none; }
            .perfect-info-grid, .account-info-fivee .perfect-info-grid, .perfect-info-grid-season, .lookup-result-grid { grid-template-columns: 1fr; }
            .info-row { grid-template-columns: 1fr; gap: 6px; align-items: start; }
            .info-value { max-width: 100%; overflow-wrap: anywhere; white-space: normal; }
            .token-code { font-size: 34px; letter-spacing: 6px; }
            table { display: block; overflow-x: auto; }
        }
