        @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&family=Noto+Sans+SC:wght@400;500;700&display=swap');

        :root {
            --neon-cyan: #00e7ff;
            --neon-red: #ff335f;
            --bg-dark: #02060d;
            --panel-bg: rgba(8, 14, 26, 0.76);
            --panel-border: rgba(0, 231, 255, 0.32);
        }

        * {
            box-sizing: border-box;
        }

        body {
            min-height: 100vh;
            margin: 0;
            color: var(--neon-cyan);
            font-family: 'Noto Sans SC', sans-serif;
            background:
                radial-gradient(circle at top, rgba(0, 231, 255, 0.14), transparent 34%),
                radial-gradient(circle at bottom right, rgba(255, 51, 95, 0.12), transparent 28%),
                linear-gradient(180deg, #07101e 0%, var(--bg-dark) 58%, #010308 100%);
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        .orbitron {
            font-family: 'Orbitron', sans-serif;
        }

        .shell {
            width: min(1180px, calc(100vw - 1.5rem));
            margin: 0 auto;
            padding: 1rem 0 2rem;
        }

        .auth-body {
            height: 100vh;
            overflow: hidden;
        }

        .auth-shell {
            height: 100vh;
            padding: 0.75rem 0;
        }

        .auth-frame {
            height: calc(100vh - 1.5rem);
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .panel {
            background: var(--panel-bg);
            border: 1px solid var(--panel-border);
            box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02) inset, 0 16px 60px rgba(0, 0, 0, 0.28);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
        }

        .neon-border {
            box-shadow: 0 0 18px rgba(0, 231, 255, 0.14), inset 0 0 12px rgba(0, 231, 255, 0.05);
        }

        .danger-border {
            border-color: rgba(255, 51, 95, 0.45);
            box-shadow: 0 0 22px rgba(255, 51, 95, 0.2), inset 0 0 14px rgba(255, 51, 95, 0.08);
        }

        .panel-grid {
            display: grid;
            grid-template-columns: minmax(0, 1fr);
            gap: 1rem;
        }

        .auth-layout {
            flex: 1;
            min-height: 0;
            display: grid;
            gap: 1rem;
        }

        .sidebar-panel,
        .content-panel {
            display: flex;
            flex-direction: column;
            min-height: 0;
            overflow: hidden;
        }

        .sidebar-scroll,
        .content-scroll {
            flex: 1;
            min-height: 0;
            overflow-y: auto;
            scrollbar-width: thin;
            scrollbar-color: rgba(0, 231, 255, 0.28) transparent;
        }

        .sidebar-scroll::-webkit-scrollbar,
        .content-scroll::-webkit-scrollbar {
            width: 8px;
        }

        .sidebar-scroll::-webkit-scrollbar-thumb,
        .content-scroll::-webkit-scrollbar-thumb {
            background: rgba(0, 231, 255, 0.22);
            border-radius: 999px;
        }

        .field,
        .select-field,
        .file-field,
        .textarea-field {
            width: 100%;
            border-radius: 0.9rem;
            border: 1px solid rgba(0, 231, 255, 0.26);
            background: rgba(0, 231, 255, 0.05);
            color: var(--neon-cyan);
            padding: 0.9rem 1rem;
            outline: none;
            transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
        }

        .field,
        .select-field,
        .file-field {
            min-height: 48px;
        }

        .textarea-field {
            min-height: 340px;
            resize: vertical;
            line-height: 1.7;
        }

        .field:focus,
        .select-field:focus,
        .file-field:focus,
        .textarea-field:focus,
        .download-password-field:focus {
            border-color: rgba(0, 231, 255, 0.7);
            box-shadow: 0 0 0 3px rgba(0, 231, 255, 0.14);
        }

        .select-field option {
            background: #08111f;
            color: #dffcff;
        }

        .file-field {
            padding: 0.55rem 0.75rem;
        }

        .file-field::file-selector-button {
            border: 0;
            border-radius: 0.75rem;
            background: rgba(0, 231, 255, 0.14);
            color: var(--neon-cyan);
            padding: 0.75rem 0.95rem;
            margin-right: 0.85rem;
            cursor: pointer;
        }

        .secure-entry {
            -webkit-text-security: disc;
        }

        .btn-neon,
        .btn-danger,
        .btn-muted,
        .btn-ghost {
            min-height: 48px;
            border-radius: 0.95rem;
            padding: 0.85rem 1rem;
            border: 1px solid transparent;
            cursor: pointer;
            transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
            font-weight: 700;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .btn-neon {
            background: rgba(0, 231, 255, 0.11);
            border-color: rgba(0, 231, 255, 0.6);
            color: var(--neon-cyan);
        }

        .btn-neon:hover,
        .btn-danger:hover,
        .btn-muted:hover,
        .btn-ghost:hover {
            transform: translateY(-1px);
        }

        .btn-neon:hover {
            background: rgba(0, 231, 255, 0.2);
            box-shadow: 0 10px 24px rgba(0, 231, 255, 0.14);
        }

        .btn-danger {
            background: rgba(255, 51, 95, 0.12);
            border-color: rgba(255, 51, 95, 0.55);
            color: #ff8aa2;
        }

        .btn-danger:hover {
            background: rgba(255, 51, 95, 0.18);
            box-shadow: 0 10px 24px rgba(255, 51, 95, 0.14);
        }

        .btn-muted {
            background: rgba(255, 255, 255, 0.03);
            border-color: rgba(0, 231, 255, 0.14);
            color: #9bc9ce;
        }

        .btn-muted:hover,
        .btn-ghost:hover {
            background: rgba(255, 255, 255, 0.06);
        }

        .btn-ghost {
            background: rgba(255, 255, 255, 0.02);
            border-color: rgba(0, 231, 255, 0.18);
            color: #9be8ef;
        }

        .metric,
        .info-card,
        .note-card,
        .attachment-card,
        .log-card {
            border-radius: 1rem;
            border: 1px solid rgba(0, 231, 255, 0.16);
            background: linear-gradient(180deg, rgba(0, 231, 255, 0.06), rgba(0, 231, 255, 0.02));
            padding: 1rem;
        }

        .countdown {
            font-size: clamp(1.65rem, 6vw, 4.9rem);
            line-height: 1;
            letter-spacing: 0.03em;
            word-break: keep-all;
            white-space: nowrap;
        }

        .section-title {
            font-size: 0.72rem;
            text-transform: uppercase;
            letter-spacing: 0.22em;
            color: rgba(138, 224, 233, 0.76);
        }

        .status-pill {
            display: inline-flex;
            align-items: center;
            gap: 0.45rem;
            border-radius: 999px;
            padding: 0.45rem 0.75rem;
            border: 1px solid rgba(0, 231, 255, 0.16);
            background: rgba(0, 231, 255, 0.06);
            font-size: 0.78rem;
        }

        .idle-pill {
            min-width: 84px;
            justify-content: center;
            font-family: 'Orbitron', sans-serif;
            color: #9ff7ff;
        }

        .idle-pill.is-warning {
            border-color: rgba(255, 51, 95, 0.45);
            background: rgba(255, 51, 95, 0.12);
            color: #ff94ab;
        }

        .nav-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 0.6rem;
        }

        .nav-link {
            min-height: 44px;
            border-radius: 0.85rem;
            border: 1px solid rgba(0, 231, 255, 0.16);
            background: rgba(255, 255, 255, 0.02);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: #9be8ef;
            text-decoration: none;
            font-size: 0.84rem;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .nav-link.active {
            border-color: rgba(0, 231, 255, 0.56);
            background: rgba(0, 231, 255, 0.12);
            color: var(--neon-cyan);
            box-shadow: inset 0 0 14px rgba(0, 231, 255, 0.08);
        }

        .admin-dropdown {
            border-radius: 1rem;
            border: 1px solid rgba(0, 231, 255, 0.18);
            background: rgba(255, 255, 255, 0.02);
        }

        .admin-dropdown summary {
            list-style: none;
        }

        .admin-dropdown summary::-webkit-details-marker {
            display: none;
        }

        .admin-toggle {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            padding: 1rem 1rem 0.95rem;
            background: transparent;
            border: 0;
            color: inherit;
            cursor: pointer;
        }

        .admin-toggle-icon {
            transition: transform 0.2s ease;
        }

        .admin-dropdown[open] .admin-toggle-icon {
            transform: rotate(180deg);
        }

        .admin-content {
            border-top: 1px solid rgba(0, 231, 255, 0.12);
            padding: 1rem;
        }

        .file-card,
        .note-menu-card {
            border-radius: 1rem;
            border: 1px solid rgba(0, 231, 255, 0.12);
            background: rgba(0, 231, 255, 0.04);
            padding: 0.95rem;
        }

        .note-menu-card.is-active {
            border-color: rgba(0, 231, 255, 0.5);
            box-shadow: inset 0 0 0 1px rgba(0, 231, 255, 0.12);
            background: rgba(0, 231, 255, 0.09);
        }

        .file-name-text,
        .note-title-text {
            display: block;
            max-width: 100%;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .download-form,
        .stack-form,
        .dense-form {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .download-inline-form,
        .inline-actions,
        .attachment-actions {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            flex-wrap: wrap;
        }

        .download-password-field {
            min-height: 42px;
            width: min(220px, 100%);
            border-radius: 0.8rem;
            border: 1px solid rgba(0, 231, 255, 0.26);
            background: rgba(0, 231, 255, 0.05);
            color: var(--neon-cyan);
            padding: 0.75rem 0.9rem;
            outline: none;
        }

        .mobile-stack {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .desktop-table {
            display: none;
        }

        .files-table,
        .log-table {
            table-layout: fixed;
        }

        .file-name-cell {
            width: 100%;
            min-width: 0;
        }

        .notes-shell {
            display: grid;
            grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
            gap: 1rem;
            min-height: 0;
            flex: 1;
        }

        .note-list-panel,
        .note-editor-panel {
            display: flex;
            flex-direction: column;
            min-height: 0;
            overflow: hidden;
        }

        .history-list {
            max-height: 170px;
            overflow-y: auto;
            margin: 0;
            padding-left: 1.1rem;
            color: rgba(224, 252, 255, 0.8);
            font-size: 0.86rem;
            line-height: 1.7;
        }

        .attachment-grid {
            display: grid;
            gap: 0.75rem;
        }

        .empty-state {
            border-radius: 1rem;
            border: 1px dashed rgba(0, 231, 255, 0.18);
            padding: 1.2rem;
            text-align: center;
            color: rgba(224, 252, 255, 0.62);
        }

        .code-blockish {
            border-radius: 0.9rem;
            border: 1px solid rgba(0, 231, 255, 0.14);
            background: rgba(1, 10, 18, 0.74);
            color: rgba(220, 252, 255, 0.82);
            font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
            font-size: 0.8rem;
            line-height: 1.6;
            padding: 0.85rem 0.95rem;
            overflow-x: auto;
            white-space: pre-wrap;
            word-break: break-word;
        }

        .footer-meta {
            margin-top: 1rem;
            text-align: center;
            font-size: 0.78rem;
            line-height: 1.8;
            color: rgba(181, 241, 247, 0.72);
        }

        .footer-meta a {
            color: var(--neon-cyan);
            text-decoration: none;
            border-bottom: 1px solid rgba(0, 231, 255, 0.26);
        }

        .footer-meta a:hover {
            border-bottom-color: rgba(0, 231, 255, 0.8);
        }

        .danger-mode {
            background:
                radial-gradient(circle at top, rgba(255, 51, 95, 0.14), transparent 30%),
                linear-gradient(180deg, #14070d 0%, #050203 60%, #020103 100%);
        }

        @media (min-width: 768px) {
            .panel-grid {
                grid-template-columns: repeat(12, minmax(0, 1fr));
            }

            .desktop-table {
                display: table;
            }

            .mobile-stack {
                display: none;
            }

            .auth-layout {
                grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
            }
        }

        @media (max-width: 767px) {
            .auth-body {
                height: auto;
                overflow: auto;
            }

            .auth-shell {
                height: auto;
                padding: 1rem 0 2rem;
            }

            .auth-frame {
                height: auto;
                display: block;
                overflow: visible;
            }

            .shell {
                width: min(100vw - 0.85rem, 100%);
            }

            .sidebar-panel,
            .content-panel,
            .note-list-panel,
            .note-editor-panel,
            .sidebar-scroll,
            .content-scroll {
                display: block;
                overflow: visible;
            }

            .download-inline-form,
            .inline-actions,
            .attachment-actions,
            .nav-grid {
                grid-template-columns: 1fr;
                flex-direction: column;
                align-items: stretch;
            }

            .download-password-field {
                width: 100%;
            }

            .countdown {
                font-size: clamp(1.4rem, 10vw, 3.1rem);
                letter-spacing: 0.015em;
            }

            .notes-shell {
                grid-template-columns: minmax(0, 1fr);
            }

/* Edge Vault 扩展：JS 视图切换 */
.hidden { display: none !important; }
