@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=Geist+Mono:wght@400;500;600&family=Instrument+Sans:ital,wght@0,400;0,500;0,600;0,700&display=swap');

/*
 * DESIGN: NOX Atelier — 2026 product dark
 * Instrument Sans display, DM Sans UI, Geist Mono data.
 * Ink surface, restrained violet, hairline grid + film grain.
 */

:root {
    --font-display: 'Instrument Sans', 'DM Sans', system-ui, sans-serif;
    --font-sans: 'DM Sans', system-ui, sans-serif;
    --font-mono: 'Geist Mono', ui-monospace, monospace;

    --color-bg: #07070b;
    --color-bg-elevated: #0c0c12;
    --color-bg-card: #111118;
    --color-bg-input: rgba(255, 255, 255, 0.035);
    --color-bg-hover: rgba(167, 139, 250, 0.08);

    --color-fg: #f3f0ea;
    --color-fg-muted: #a39e92;
    --color-fg-subtle: #6d6978;

    --color-primary: #b794f6;
    --color-primary-hover: #cbb2ff;
    --color-primary-soft: rgba(183, 148, 246, 0.14);
    --color-primary-glow: rgba(167, 139, 250, 0.28);
    --color-accent: #8b7cf7;
    --color-accent-soft: rgba(139, 124, 247, 0.12);

    --color-border: rgba(255, 255, 255, 0.07);
    --color-border-strong: rgba(183, 148, 246, 0.22);

    --rail-width: 16rem;
    --sidebar-width: var(--rail-width);
    --topbar-height: 3.5rem;

    /* Monochrome palette (log detail, dashboard) */
    --gray-950: #090909;
    --gray-900: #111111;
    --gray-850: #161616;
    --gray-800: #1c1c1c;
    --gray-750: #222222;
    --gray-700: #2a2a2a;
    --gray-600: #404040;
    --gray-500: #737373;
    --gray-400: #a3a3a3;
    --gray-300: #d4d4d4;
    --gray-200: #e5e5e5;

    --color-success: #34d399;
    --color-success-soft: rgba(52, 211, 153, 0.12);
    --color-warning: #fbbf24;
    --color-warning-soft: rgba(251, 191, 36, 0.12);
    --color-danger: #f87171;
    --color-danger-soft: rgba(248, 113, 113, 0.12);

    --radius-sm: 0.5rem;
    --radius-md: 0.7rem;
    --radius-lg: 0.95rem;
    --radius-xl: 1.25rem;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px -6px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 20px 48px -12px rgba(0, 0, 0, 0.65);
    --shadow-glow: 0 0 24px -4px var(--color-primary-glow);
    --shadow-card: 0 0 0 1px var(--color-border) inset;

    --space-page: 1.5rem;
    --space-section: 1.5rem;
    --topnav-row-height: 3.25rem;
    --topnav-subrow-height: 2.5rem;

    /* Legacy aliases (style.css compatibility) */
    --bg-dark: var(--color-bg);
    --bg-card: var(--color-bg-card);
    --bg-input: #141820;
    --text-primary: var(--color-fg);
    --text-secondary: var(--color-fg-muted);
    --text-muted: var(--color-fg-subtle);
    --accent: var(--color-primary);
    --accent-light: var(--color-primary-hover);
    --accent-glow: var(--color-primary-glow);
    --border: var(--color-border);
    --border-light: var(--color-border-strong);
    --success: var(--color-success);
    --error: var(--color-danger);
    --radius-md-legacy: var(--radius-md);
    --gradient-primary: linear-gradient(135deg, #7c6af2 0%, #b794f6 52%, #d4b8ff 100%);
    --focus-ring: 0 0 0 3px rgba(183, 148, 246, 0.28);
}

*, *::before, *::after { box-sizing: border-box; }

html {
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-fg);
    line-height: 1.55;
    overflow-x: hidden;
    max-width: 100%;
}

body.panel-nav-open { overflow: hidden; }

.font-mono,
code, pre, kbd, samp {
    font-family: var(--font-mono) !important;
    font-variant-numeric: tabular-nums;
}

.panel-bg {
    background-color: var(--color-bg);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        radial-gradient(ellipse 80% 50% at 0% -10%, rgba(139, 124, 247, 0.09), transparent 52%),
        radial-gradient(ellipse 55% 40% at 100% 110%, rgba(183, 148, 246, 0.05), transparent 48%);
    background-size: 64px 64px, 64px 64px, auto, auto;
    background-attachment: fixed;
}

.panel-bg::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 160px 160px;
}

.glass-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-strong);
    box-shadow: var(--shadow-card);
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.glass-card:hover {
    border-color: rgba(168, 85, 247, 0.35);
    box-shadow: var(--shadow-card), 0 8px 28px -10px var(--color-primary-glow);
}

.glass-card-interactive:hover {
    border-color: rgba(168, 85, 247, 0.45);
    box-shadow: var(--shadow-glow), var(--shadow-card);
    transform: translateY(-2px);
}

.card-solid {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 2px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    border-left: 3px solid var(--color-primary);
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.card-solid::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 40%);
    pointer-events: none;
}

.stat-card,
#dashStatCards > .card-solid {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-card);
    transition: border-color 0.2s ease, transform 0.2s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::after,
#dashStatCards > .card-solid::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-primary);
    opacity: 0.65;
}

.stat-card:hover,
#dashStatCards > .card-solid:hover {
    border-color: rgba(168, 85, 247, 0.4);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow), var(--shadow-card);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-fg);
    letter-spacing: -0.035em;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.panel-sidebar {
    display: none;
}

.panel-sidebar-footer {
    display: none;
}

.nav-item-active {
    color: var(--color-primary);
}

.nav-item-active::before {
    display: none;
}

.nav-item-inactive {
    color: var(--color-fg-muted);
}

.nav-item-inactive:hover {
    color: var(--color-fg);
    background: var(--color-bg-hover);
}

.panel-mobile-header {
    display: none;
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
}

.badge-live {
    background: var(--color-success-soft);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.25);
}

.badge-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-success);
    animation: panel-pulse-dot 1.5s ease-in-out infinite;
}

@keyframes panel-pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.filter-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-strong);
    background: var(--color-bg-hover);
    color: var(--color-fg-muted);
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.filter-btn-active {
    background: var(--color-primary-soft);
    border-color: rgba(168, 85, 247, 0.4);
    color: var(--color-primary);
}

.logs-toolbar {
    padding: 1rem 1.125rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.logs-toolbar-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.625rem;
}

.logs-toolbar-search {
    position: relative;
    flex: 1 1 12rem;
    min-width: 0;
}

.logs-toolbar-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    color: var(--color-fg-subtle);
    pointer-events: none;
}

.logs-toolbar-input {
    width: 100%;
    padding: 0.625rem 0.875rem 0.625rem 2.375rem;
    font-size: 0.8125rem;
    color: #fff;
    background: var(--color-bg-hover);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.logs-toolbar-input:focus {
    outline: none;
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.12);
}

.logs-download-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    padding: 0.625rem 1rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #fff;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.22), rgba(16, 185, 129, 0.14));
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.logs-download-all-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.32), rgba(16, 185, 129, 0.22));
    border-color: rgba(34, 197, 94, 0.5);
}

.logs-download-all-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.logs-toolbar-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
    padding-top: 0.125rem;
    border-top: 1px solid var(--color-border);
}

.logs-toolbar-filters-label {
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-fg-subtle);
    margin-right: 0.25rem;
}

.logs-table-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem 1rem;
    border-top: 1px solid var(--color-border);
}

.logs-result-info {
    font-size: 0.75rem;
    color: var(--color-fg-subtle);
}

.logs-load-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--color-fg-muted);
}

.logs-load-more[hidden] {
    display: none !important;
}

.logs-load-more-spinner {
    width: 0.875rem;
    height: 0.875rem;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: panel-pulse-dot 0.8s linear infinite;
}

.logs-scroll-sentinel {
    width: 100%;
    height: 1px;
    pointer-events: none;
}

.text-gradient {
    background: linear-gradient(to right, #60a5fa, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.btn-primary,
.panel-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: 0 8px 24px -6px var(--color-primary-glow);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn-primary:hover:not(:disabled),
.panel-btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px -6px var(--color-primary-glow);
}

.btn-primary:disabled,
.panel-btn-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.panel-btn-secondary {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-fg-muted);
    background: var(--color-bg-hover);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all 0.15s ease;
}

.panel-btn-secondary:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-border-strong);
}

.panel-btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-sans);
    border-radius: var(--radius-md);
    cursor: pointer;
    background: var(--color-danger);
    color: #fff;
    border: 1px solid rgba(239, 68, 68, 0.35);
    transition: background 0.15s ease, opacity 0.15s ease;
}

.panel-btn-danger:hover {
    background: #dc2626;
    color: #fff;
}

.panel-input,
.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--color-bg-input);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    color: var(--color-fg);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.panel-input:focus,
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

select, select option {
    background-color: var(--color-bg-card) !important;
    color: var(--color-fg) !important;
    font-family: var(--font-sans);
}

.panel-field,
.panel-field select,
select.panel-field,
input.panel-field {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
}
.panel-field option {
    background-color: #0f172a !important;
    color: #f8fafc !important;
}
select.panel-field {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.65rem center;
    padding-right: 2rem !important;
}

.panel-table {
    width: 100%;
    border-collapse: collapse;
}

.panel-table thead {
    background: linear-gradient(180deg, rgba(14, 20, 36, 0.95) 0%, rgba(10, 14, 26, 0.9) 100%);
}

.panel-table th {
    padding: 0.85rem 1rem;
    text-align: left;
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--color-fg-subtle);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--color-border-strong);
}

.panel-table td {
    padding: 0.85rem 1rem;
    font-size: 0.8125rem;
    color: #dbe4f0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.025);
}

.panel-table tbody tr {
    transition: background 0.18s ease, box-shadow 0.18s ease;
}

.panel-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.012);
}

.panel-table tbody tr:hover {
    background: rgba(0, 206, 209, 0.06);
    box-shadow: inset 3px 0 0 var(--color-primary);
}

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table thead { background: rgba(15, 23, 42, 0.8); }
.admin-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--color-fg-subtle);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--color-border);
}
.admin-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.8125rem;
    color: #e2e8f0;
}
.admin-table tbody tr:hover { background: rgba(239, 68, 68, 0.03); }

.custom-scrollbar::-webkit-scrollbar { width: 6px; height: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.18); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }

.sidebar-collapsed .sidebar-label { display: none; }

@media (max-width: 1023px) {
    .panel-overlay:not(.hidden) {
        display: block;
        z-index: 93;
    }
}

.panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    z-index: 80;
    display: none;
}

.panel-shell {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
    padding-top: var(--topbar-height);
    padding-bottom: 2rem;
    min-height: 100dvh;
    box-sizing: border-box;
    overflow-x: clip;
}

@media (min-width: 1024px) {
    body.panel-has-sidebar .panel-shell {
        margin-left: var(--sidebar-width);
        width: calc(100% - var(--sidebar-width));
        max-width: calc(100% - var(--sidebar-width));
        padding-top: var(--topbar-height);
    }
}

.panel-shell__content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    box-sizing: border-box;
    overflow-x: clip;
}

.panel-shell__inner {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: var(--space-page);
    box-sizing: border-box;
}

@media (max-width: 1023px) {
    .panel-shell {
        padding-bottom: 1.25rem;
    }
}

/* ── Left rail (desktop) ── */
.panel-rail {
    display: none;
}

@media (min-width: 1024px) {
    .panel-rail {
        display: flex;
        flex-direction: column;
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        height: 100vh;
        height: 100dvh;
        width: var(--sidebar-width);
        z-index: 92;
        background: rgba(6, 4, 10, 0.96);
        backdrop-filter: blur(16px) saturate(150%);
        border-right: 1px solid var(--color-border);
        box-sizing: border-box;
        overflow: hidden;
    }
}

.panel-rail__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1rem;
    text-decoration: none;
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}

.panel-rail__brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.panel-rail__brand-name {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: var(--color-fg);
}

.panel-rail__brand-tag {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-top: 0.125rem;
}

.panel-rail__nav {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.panel-rail__section {
    padding: 0.875rem 0.625rem;
    flex-shrink: 0;
    max-height: none;
    overflow: visible;
}

.panel-rail__section--grow {
    flex: 1 0 auto;
    min-height: auto;
    max-height: none;
    overflow: visible;
}

.panel-rail__section--admin {
    border-top: 1px solid var(--color-border);
    flex-shrink: 0;
    max-height: none;
    overflow: visible;
}

.panel-rail__label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.5625rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-fg-subtle);
    padding: 0 0.5rem 0.5rem;
}

.panel-rail__links {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.panel-nav__link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5625rem 0.625rem;
    border-radius: 2px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-fg-muted);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.panel-nav__link:hover {
    color: var(--color-fg);
    background: var(--color-bg-hover);
    border-left-color: rgba(168, 85, 247, 0.35);
}

.panel-nav__link--active {
    color: var(--color-primary);
    background: var(--color-primary-soft);
    border-left-color: var(--color-primary);
    font-weight: 600;
}

.panel-nav__link--sub {
    font-size: 0.78125rem;
}

.panel-nav__link--hot { color: #fbbf24; }
.panel-nav__link--trial { color: var(--color-success); }
.panel-nav__link--admin { color: #f472b6; }

.panel-nav__icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    opacity: 0.85;
}

.panel-nav__badge {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.1rem 0.35rem;
    border-radius: 2px;
    background: var(--color-primary-soft);
    color: var(--color-primary);
}

/* ── Compact top bar ── */
.panel-topbar {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 91;
    height: var(--topbar-height);
    background: rgba(3, 3, 8, 0.88);
    backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--color-border);
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    body.panel-has-sidebar .panel-topbar {
        left: var(--sidebar-width);
    }
}

.panel-topbar__inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 100%;
    padding: 0 1rem;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.panel-topbar__menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    min-width: 44px;
    min-height: 44px;
    border: 1px solid var(--color-border);
    border-radius: 2px;
    background: transparent;
    color: var(--color-fg-muted);
    cursor: pointer;
    flex-shrink: 0;
}

.panel-topbar__menu-btn:hover {
    border-color: var(--color-border-strong);
    color: var(--color-primary);
}

@media (min-width: 1024px) {
    .panel-topbar__menu-btn { display: none; }
}

.panel-topbar__brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-fg-muted);
}

@media (min-width: 1024px) {
    .panel-topbar__brand { display: none; }
}

.panel-topbar__actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.panel-topbar__online-users {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.55rem;
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.08);
    font-size: 0.6875rem;
    font-weight: 700;
    color: #34d399;
    letter-spacing: 0.02em;
}

.panel-topbar__online-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.75);
    animation: panel-online-pulse 2s ease-in-out infinite;
}

.panel-topbar__online-count {
    font-family: var(--font-mono, ui-monospace, monospace);
    min-width: 1ch;
}

@keyframes panel-online-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

.panel-topbar__license {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    max-width: 16.5rem;
    padding: 0.3rem 0.5rem 0.3rem 0.55rem;
    border: 1px solid var(--color-border);
    border-radius: 2px;
    background: var(--color-bg-card);
    color: var(--color-fg-muted);
    cursor: pointer;
    flex-shrink: 1;
    min-width: 0;
}

.panel-topbar__license:hover {
    border-color: var(--color-border-strong);
    color: var(--color-fg);
}

.panel-topbar__license.is-copied {
    border-color: rgba(183, 148, 246, 0.45);
    color: var(--color-primary);
}

.panel-topbar__license-label {
    flex-shrink: 0;
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-fg-subtle);
}

.panel-topbar__license-key {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.04em;
    color: var(--color-fg);
}

.panel-topbar__license-icon {
    width: 0.85rem;
    height: 0.85rem;
    flex-shrink: 0;
    stroke-width: 1.75;
    opacity: 0.7;
}

.panel-topbar__license:hover .panel-topbar__license-icon,
.panel-topbar__license.is-copied .panel-topbar__license-icon {
    opacity: 1;
    color: var(--color-primary);
}

.panel-topbar__user { position: relative; }

.panel-topbar__user-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.625rem;
    border: 1px solid var(--color-border);
    border-radius: 2px;
    background: var(--color-bg-card);
    color: var(--color-fg-muted);
    font-size: 0.8125rem;
    cursor: pointer;
}

.panel-topbar__user-btn:hover {
    border-color: var(--color-border-strong);
    color: var(--color-fg);
}

.panel-topbar__avatar {
    width: 1.625rem;
    height: 1.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    font-weight: 800;
    color: var(--color-bg);
    background: var(--gradient-primary);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.panel-topbar__username {
    max-width: 8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 479px) {
    .panel-topbar__username { display: none; }
}

/* Legacy topnav aliases — hidden, replaced by rail + topbar */
.panel-topnav { display: none !important; }

.panel-topnav__icon { width: 1rem; height: 1rem; }

.panel-topnav__link--hot { color: var(--color-warning); }
.panel-topnav__link--trial { color: var(--color-success); }
.panel-topnav__link--admin { color: var(--color-danger); }

.panel-topnav__icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    stroke-width: 1.75;
}

.panel-topnav__badge {
    font-family: var(--font-mono);
    font-size: 0.5625rem;
    font-weight: 700;
    padding: 0.1rem 0.35rem;
    border-radius: 999px;
    background: var(--color-primary-soft);
    color: var(--color-primary);
}

.panel-topnav__subrow {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    height: var(--topnav-subrow-height);
    padding: 0 1rem;
    border-top: 1px solid var(--color-border);
    background: rgba(0, 0, 0, 0.2);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.panel-topnav__subrow::-webkit-scrollbar { display: none; }

.panel-topnav__sublink {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3125rem 0.625rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-fg-subtle);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.panel-topnav__sublink:hover {
    color: var(--color-fg);
    background: var(--color-bg-hover);
    box-shadow: 0 0 12px -6px var(--color-primary-glow);
}

.panel-topnav__sublink--active {
    color: var(--color-primary);
    background: var(--color-primary-soft);
}

.panel-topnav__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-left: auto;
}

.panel-topnav__pill {
    display: none;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3125rem 0.625rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
}

@media (min-width: 640px) {
    .panel-topnav__pill { display: inline-flex; }
}

.panel-topnav__pill-label { color: var(--color-fg-subtle); }
.panel-topnav__pill-value { color: var(--color-fg); font-weight: 600; }

.panel-topnav__menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg-input);
    color: var(--color-fg-muted);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.panel-topnav__menu-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

@media (min-width: 1024px) {
    .panel-topnav__menu-btn { display: none; }
}

.panel-topnav__user { position: relative; }

.panel-topnav__user-btn {
    display: none;
    align-items: center;
    gap: 0.375rem;
    padding: 0.3125rem 0.5rem 0.3125rem 0.3125rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-bg-input);
    color: var(--color-fg);
    cursor: pointer;
    font-size: 0.8125rem;
    transition: border-color 0.15s;
}

.panel-topnav__user-btn:hover { border-color: var(--color-border-strong); }

@media (min-width: 768px) {
    .panel-topnav__user-btn { display: inline-flex; }
}

.panel-topnav__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.625rem;
    height: 1.625rem;
    border-radius: 50%;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    font-size: 0.6875rem;
    font-weight: 700;
}

.panel-topnav__username {
    max-width: 6rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.panel-topnav__logout {
    display: none;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-fg-muted);
    text-decoration: none;
    padding: 0.375rem 0.5rem;
    transition: color 0.15s;
}

.panel-topnav__logout:hover { color: var(--color-fg); }

@media (min-width: 1024px) {
    .panel-topnav__logout { display: inline-block; }
}

.panel-user-flyout {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 14rem;
    padding: 0.5rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 100;
}

.panel-user-flyout.hidden { display: none; }

.panel-user-flyout__license {
    padding: 0.5rem 0.625rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 0.25rem;
}

.panel-user-flyout__license-label {
    display: block;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-fg-subtle);
    margin-bottom: 0.375rem;
}

.panel-user-flyout__license-row {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.panel-user-flyout__license-key {
    flex: 1;
    min-width: 0;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--color-fg-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.panel-user-flyout__copy {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-fg-muted);
    cursor: pointer;
}

.panel-user-flyout__copy:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.panel-user-flyout__balance {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0.625rem;
    font-size: 0.8125rem;
    color: var(--color-fg-muted);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 0.25rem;
}

.panel-user-flyout__balance strong { color: var(--color-primary); }

.panel-user-flyout__link,
.panel-user-flyout__logout {
    display: block;
    padding: 0.5rem 0.625rem;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    text-decoration: none;
    color: var(--color-fg-muted);
    transition: background 0.15s, color 0.15s;
}

.panel-user-flyout__link:hover {
    background: var(--color-bg-hover);
    color: var(--color-fg);
}

.panel-user-flyout__logout {
    color: var(--color-danger);
    margin-top: 0.125rem;
}

.panel-user-flyout__logout:hover {
    background: var(--color-danger-soft);
}

/* ── Mobile nav drawer ── */
.panel-mobile-nav,
#mainSidebar.panel-mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: auto;
    z-index: 95;
    display: flex;
    flex-direction: column;
    background: var(--color-bg);
    width: min(20.5rem, 88vw);
    max-width: 88vw;
    height: 100vh;
    height: 100dvh;
    transform: translateX(0);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    overflow: hidden;
    border-right: 1px solid var(--color-border);
    box-shadow: 16px 0 48px -12px rgba(0, 0, 0, 0.72);
}

.panel-mobile-nav.sidebar-mobile-hidden,
#mainSidebar.panel-mobile-nav.sidebar-mobile-hidden {
    transform: translateX(-100%);
    pointer-events: none;
}

@media (min-width: 1024px) {
    .panel-mobile-nav { display: none !important; }
}

.panel-mobile-nav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}

.panel-mobile-nav__brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.875rem;
}

.panel-mobile-nav__logo {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.panel-mobile-nav__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    min-width: 44px;
    min-height: 44px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--color-fg-muted);
    cursor: pointer;
    flex-shrink: 0;
}

.panel-mobile-nav__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 1rem;
    -webkit-overflow-scrolling: touch;
}

.panel-mobile-nav__section {
    margin-bottom: 1.25rem;
    max-height: none;
    overflow: visible;
}
.panel-mobile-nav__section--admin {
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    max-height: none;
    overflow: visible;
}

.panel-mobile-nav__section-label {
    display: block;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-fg-subtle);
    margin-bottom: 0.5rem;
    padding: 0 0.25rem;
}

.panel-mobile-nav__link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 0.625rem;
    min-height: 44px;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-fg-muted);
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.panel-mobile-nav__link:hover {
    background: var(--color-bg-hover);
    color: var(--color-fg);
    box-shadow: 0 0 14px -6px var(--color-primary-glow);
}

.panel-mobile-nav__link--active {
    background: var(--color-primary-soft);
    color: var(--color-primary);
}

.panel-mobile-nav__badge {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
    background: var(--color-primary-soft);
    color: var(--color-primary);
}

/* ── Page headers ── */
.panel-page-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
}

.panel-page-header__title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0;
    width: 100%;
    text-align: center;
}

.panel-page-header__subtitle {
    font-size: 0.875rem;
    color: var(--color-fg-muted);
    margin: 0.5rem auto 0;
    line-height: 1.5;
    max-width: 42rem;
    width: 100%;
    text-align: center;
}

@media (max-width: 1023px) {
    .panel-shell {
        padding-top: var(--topbar-height);
    }
}

.auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    box-sizing: border-box;
}

html.auth-page-root,
html.auth-page-root body.auth-page {
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow-x: hidden;
}

/* ── Sale notice: floating corner chip ── */
.sale-chip {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 85;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    max-width: min(340px, calc(100% - 2rem));
    pointer-events: none;
}

.sale-chip__trigger,
.sale-chip__panel {
    pointer-events: auto;
}

.sale-chip__trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4375rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(168, 85, 247, 0.28);
    background: rgba(6, 4, 10, 0.94);
    backdrop-filter: blur(12px) saturate(140%);
    color: var(--color-primary);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
}

.sale-chip__trigger:hover,
.sale-chip--open .sale-chip__trigger {
    border-color: rgba(34, 211, 238, 0.45);
    background: rgba(18, 21, 28, 0.96);
    color: #67e8f9;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), 0 0 16px -4px var(--color-primary-glow);
}

.sale-chip__trigger-icon {
    flex-shrink: 0;
    opacity: 0.9;
}

.sale-chip__panel {
    width: min(320px, calc(100% - 2rem));
    padding: 0.875rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(34, 211, 238, 0.22);
    background: rgba(10, 11, 16, 0.96);
    backdrop-filter: blur(16px) saturate(150%);
    box-shadow: var(--shadow-lg), 0 0 24px -8px var(--color-primary-glow);
    animation: sale-chip-in 0.18s ease-out;
}

@keyframes sale-chip-in {
    from { opacity: 0; transform: translateY(6px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.sale-chip__panel-head {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
}

.sale-chip__panel-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: var(--radius-sm);
    background: var(--color-accent-soft);
    border: 1px solid rgba(34, 211, 238, 0.25);
    color: var(--color-accent);
}

.sale-chip__panel-copy {
    flex: 1;
    min-width: 0;
}

.sale-chip__title {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #a5f3fc;
    line-height: 1.3;
}

.sale-chip__text {
    margin: 0.375rem 0 0;
    font-size: 0.6875rem;
    line-height: 1.45;
    color: var(--color-fg-muted);
}

.sale-chip__text strong {
    color: var(--color-fg);
    font-weight: 600;
}

.sale-chip__dismiss {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    margin: -0.125rem -0.125rem 0 0;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-fg-subtle);
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}

.sale-chip__dismiss:hover {
    color: var(--color-fg);
    background: rgba(255, 255, 255, 0.06);
}

.sale-chip__email {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(34, 211, 238, 0.28);
    background: var(--color-primary-soft);
    color: #a5f3fc;
    font-size: 0.6875rem;
    font-weight: 700;
    font-family: var(--font-mono);
    text-align: center;
    box-sizing: border-box;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.sale-chip__email svg {
    flex-shrink: 0;
}

.sale-chip__email [data-email-label] {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sale-chip__email:hover {
    background: rgba(0, 206, 209, 0.18);
    border-color: rgba(34, 211, 238, 0.4);
    color: #ecfeff;
}

.sale-chip__email.email-copied {
    border-color: rgba(52, 211, 153, 0.4);
    background: var(--color-success-soft);
    color: var(--color-success);
}

@media (max-width: 640px) {
    .sale-chip {
        right: 0.75rem;
        bottom: 0.75rem;
    }
}

@media (min-width: 900px) {
    .auth-page {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
}

.auth-page__hero {
    display: none;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    border-right: 1px solid var(--color-border);
    background:
        linear-gradient(160deg, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        var(--color-bg-elevated);
    position: relative;
}

.auth-page__hero::before {
    content: '';
    position: absolute;
    inset: 2rem;
    border: 1px solid var(--color-border);
    pointer-events: none;
    clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}

@media (min-width: 900px) {
    .auth-page__hero { display: none; }
}

.auth-page__hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--color-fg);
    line-height: 1.1;
    margin: 0 0 1rem;
}

.auth-page__hero-title em {
    font-style: normal;
    color: var(--color-primary);
}

.auth-page__hero-desc {
    font-size: 0.9375rem;
    color: var(--color-fg-muted);
    max-width: 22rem;
    line-height: 1.6;
    margin: 0;
}

.auth-page__hero-meta {
    margin-top: 2.5rem;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-fg-subtle);
}

.auth-page__form-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 28rem;
    padding: 2rem 1.5rem;
    min-height: auto;
    box-sizing: border-box;
}

.auth-page__intro {
    width: 100%;
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-page__intro .auth-page__hero-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.75rem;
}

.auth-page__intro .auth-page__hero-desc {
    margin: 0 auto;
    max-width: 22rem;
}

.auth-page__card {
    position: relative;
    width: 100%;
    max-width: 26rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-strong);
    border-radius: 2px;
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.auth-page__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--gradient-primary);
}

.auth-page__brand {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1.75rem;
}

.auth-page__logo {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-strong);
    object-fit: cover;
}

.auth-page__brand-text h1 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-fg);
    margin: 0;
    letter-spacing: -0.02em;
}

.auth-page__brand-text p {
    font-size: 0.8125rem;
    color: var(--color-fg-muted);
    margin: 0.125rem 0 0;
}

.auth-page__input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--color-bg-input);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    color: var(--color-fg);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-page__input:focus {
    outline: none;
    border-color: rgba(168, 85, 247, 0.55);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.12);
}

.auth-page__label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-fg-subtle);
    margin-bottom: 0.375rem;
}

.auth-page__submit {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 2px;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
}

.auth-page__submit:hover:not(:disabled) {
    opacity: 0.95;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px -6px var(--color-primary-glow);
}

.auth-page__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-page__footer {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border);
    text-align: center;
    font-size: 0.8125rem;
    color: var(--color-fg-muted);
}

.auth-page__footer a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-page__footer a:hover {
    text-decoration: underline;
}

.auth-gate {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    color: var(--color-fg-muted);
    font-family: var(--font-sans);
}

.auth-gate__inner { text-align: center; }

.auth-gate__spinner {
    width: 2rem;
    height: 2rem;
    margin: 0 auto 0.75rem;
    border: 3px solid #334155;
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: auth-gate-spin 0.75s linear infinite;
}

@keyframes auth-gate-spin { to { transform: rotate(360deg); } }

.build-page {
    --bp-accent: var(--color-primary);
    --bp-accent-soft: var(--color-primary-soft);
    --bp-line: rgba(148, 163, 184, 0.14);
    --bp-muted: var(--color-fg-muted);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-bottom: 2rem;
    box-sizing: border-box;
}

.build-page__hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
}
.build-page__title {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--color-fg);
    letter-spacing: -0.03em;
    margin: 0;
    width: 100%;
    text-align: center;
}
.build-page__shell {
    background: linear-gradient(165deg, rgba(30, 41, 59, 0.35) 0%, rgba(15, 23, 42, 0.92) 100%);
    border: 1px solid var(--bp-line);
    border-radius: var(--radius-xl);
    padding: 1.5rem 1.25rem 1.75rem;
    box-shadow: var(--shadow-lg);
}

@media (min-width: 640px) { .build-page__shell { padding: 2rem 2rem 2.25rem; } }

.build-page__form { display: flex; flex-direction: column; gap: 2.25rem; }
.build-page__section-head { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
.build-page__step {
    flex-shrink: 0;
    width: 2.375rem;
    height: 2.375rem;
    border-radius: var(--radius-sm);
    background: var(--color-primary);
    color: var(--color-bg);
    font-weight: 800;
    font-size: 0.8125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
}

.build-page__section-title { font-size: 1.0625rem; font-weight: 700; color: #f1f5f9; margin: 0 0 0.25rem; }
.build-page__hint { font-size: 0.75rem; color: var(--bp-muted); margin: 0; line-height: 1.5; max-width: 40rem; }
.build-page__grid2 { display: grid; grid-template-columns: 1fr; gap: 1.5rem 1.75rem; }
@media (min-width: 900px) { .build-page__grid2 { grid-template-columns: 1fr 1fr; } }
.build-page__stack { display: flex; flex-direction: column; gap: 1.35rem; }
.build-page__field-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-fg-muted);
    margin-bottom: 0.45rem;
    display: block;
}

.build-page__input-wrap { position: relative; }
.build-page__input {
    width: 100%;
    padding: 0.95rem 1rem 0.95rem 2.75rem;
    background: var(--color-bg-input);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    color: #f1f5f9;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.build-page__input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.build-page__input-icon { position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); color: var(--color-fg-subtle); pointer-events: none; }
.build-page__input-wrap:focus-within .build-page__input-icon { color: var(--color-primary); }

.build-page__upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 10.5rem;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(148, 163, 184, 0.22);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
    text-align: center;
}

.build-page__upload:hover { border-color: rgba(59, 130, 246, 0.4); background: var(--color-primary-soft); }
.build-page__upload.drag-over { border-color: var(--color-primary); background: rgba(59, 130, 246, 0.12); transform: scale(1.008); }
.build-page__upload--has-file { border-style: solid; border-color: rgba(59, 130, 246, 0.5); background: rgba(59, 130, 246, 0.08); }
.build-page__upload-title { font-size: 1rem; font-weight: 800; color: var(--color-fg); margin: 0.5rem 0 0.25rem; }
.build-page__upload-meta { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-fg-subtle); }

.build-page__toggle { position: relative; display: inline-flex; align-items: center; cursor: pointer; flex-shrink: 0; }
.build-page__toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.build-page__toggle-ui {
    width: 2.75rem;
    height: 1.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--color-border-strong);
    position: relative;
    transition: background 0.15s;
}

.build-page__toggle-ui::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.15s;
}

.build-page__toggle input:checked + .build-page__toggle-ui { background: var(--color-primary); border-color: rgba(59, 130, 246, 0.5); }
.build-page__toggle input:checked + .build-page__toggle-ui::after { transform: translateX(1.2rem); }

.build-page__submit {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.95rem 2.75rem;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #2563eb, #4f46e5, #6366f1);
    box-shadow: 0 10px 28px -6px var(--color-primary-glow);
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.build-page__submit:hover:not(:disabled) { transform: translateY(-1px); }
.build-page__submit:disabled { opacity: 0.45; cursor: not-allowed; }

.settings-page {
    --st-accent: #00ced1;
    --st-glow: rgba(0, 206, 209, 0.35);
    --st-line: rgba(148, 163, 184, 0.12);
    --st-muted: var(--color-fg-muted);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-bottom: 2rem;
    box-sizing: border-box;
}

.settings-page__hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
}
.settings-page__title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.02em;
    margin: 0;
    width: 100%;
    text-align: center;
}
.settings-page__card {
    background: linear-gradient(165deg, rgba(30, 41, 59, 0.28) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid var(--st-line);
    border-radius: var(--radius-lg);
    padding: 1.35rem 1.25rem 1.5rem;
    margin-bottom: 1.35rem;
    box-shadow: var(--shadow-md);
}

.settings-page__card-title { font-size: 1rem; font-weight: 700; color: #f1f5f9; margin: 0 0 0.25rem; }
.settings-page__card-desc { font-size: 0.75rem; color: var(--st-muted); margin: 0; line-height: 1.45; }
.settings-page__input {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--color-bg-input);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    color: #f1f5f9;
    font-family: var(--font-sans);
    font-size: 0.875rem;
}

.settings-page__input:focus {
    outline: none;
    border-color: rgba(0, 206, 209, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 206, 209, 0.12);
}

.settings-page__btn {
    width: 100%;
    margin-top: 1rem;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.875rem;
    font-family: var(--font-sans);
    cursor: pointer;
    border: none;
    background: linear-gradient(135deg, #009ea1 0%, #00ced1 55%, #33dce0 100%);
    color: #041014;
    box-shadow: 0 8px 24px -6px var(--st-glow);
    transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.settings-page__btn:hover:not(:disabled) {
    transform: translateY(-1px) scale(1.01);
    filter: brightness(1.06);
    box-shadow: 0 10px 28px -6px var(--color-primary-glow);
}

.settings-page__btn:active:not(:disabled) {
    transform: translateY(0) scale(0.99);
}

.settings-page__btn--primary {
    background: linear-gradient(135deg, #009ea1 0%, #00ced1 55%, #33dce0 100%);
    color: #041014;
    box-shadow: 0 8px 24px -6px var(--st-glow);
}

.settings-page__btn--auto {
    width: auto;
    margin-top: 1.25rem;
}

.settings-page__btn--secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(0, 206, 209, 0.35);
    color: #f1f5f9;
}

.settings-page__switch { position: relative; width: 3rem; height: 1.65rem; flex-shrink: 0; cursor: pointer; }
.settings-page__switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.settings-page__switch-ui {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(51, 65, 85, 0.85);
    border: 1px solid var(--color-border-strong);
    transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.settings-page__switch:hover .settings-page__switch-ui {
    border-color: rgba(0, 206, 209, 0.35);
    box-shadow: 0 0 12px -4px var(--color-primary-glow);
}

.settings-page__switch-ui::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    background: #64748b;
    transition: transform 0.2s, background 0.2s;
}

.settings-page__switch input:checked + .settings-page__switch-ui {
    background: linear-gradient(90deg, #009ea1, #00ced1);
    border-color: rgba(0, 206, 209, 0.5);
    box-shadow: 0 0 18px var(--st-glow);
}

.settings-page__switch input:checked + .settings-page__switch-ui::after {
    transform: translateX(1.35rem);
    background: #fff;
}

.settings-page__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--color-border);
}

.settings-page__row-title { font-size: 0.875rem; font-weight: 600; color: var(--color-fg); margin: 0 0 0.2rem; }
.settings-page__row-desc { font-size: 0.6875rem; color: var(--st-muted); margin: 0; line-height: 1.4; }

.log-cap-cell { min-width: 88px; max-width: 260px; vertical-align: middle; position: relative; overflow: visible; }
.log-cap-cell--wallets { text-align: center; vertical-align: middle; }
.log-cap-cell--wallets .log-cap-row:not(.log-cap-row--overflow) { display: inline-flex; width: auto; max-width: 100%; justify-content: center; }
.log-cap-cell--extensions { text-align: center; vertical-align: middle; }
.log-cap-row { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; width: 100%; min-width: 0; position: relative; }
.log-cap-chip {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    z-index: 1;
    cursor: default;
    transition: opacity 0.22s ease, filter 0.22s ease;
}
.log-cap-row-track:has(.log-cap-chip--active) .log-cap-chip:not(.log-cap-chip--active) {
    opacity: 0.42;
    filter: saturate(0.55) brightness(0.88);
}
.log-cap-chip--active { z-index: 40; opacity: 1 !important; filter: none !important; }
.log-cap-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 2px 8px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    background: linear-gradient(165deg, rgba(22, 32, 52, 0.95) 0%, rgba(10, 14, 24, 0.88) 100%);
    transition: transform 0.24s cubic-bezier(0.34, 1.25, 0.64, 1), box-shadow 0.24s ease, border-color 0.24s ease;
    border: 1px solid rgba(255, 255, 255, 0.07);
    position: relative;
}
.log-cap-chip[data-kind="browser"] .log-cap-icon { --cap-accent: 244, 63, 94; }
.log-cap-chip[data-kind="wallet"] .log-cap-icon { --cap-accent: 245, 158, 11; }
.log-cap-chip[data-kind="app"] .log-cap-icon,
.log-cap-chip[data-kind="capture"] .log-cap-icon { --cap-accent: 168, 85, 247; }
.log-cap-chip[data-kind="extension"] .log-cap-icon { --cap-accent: 34, 211, 238; }
.log-cap-chip--active .log-cap-icon {
    transform: translateY(-4px) scale(1.14);
    border-color: rgba(var(--cap-accent, 244, 63, 94), 0.65);
    box-shadow:
        0 0 0 1px rgba(var(--cap-accent, 244, 63, 94), 0.35),
        0 0 22px rgba(var(--cap-accent, 244, 63, 94), 0.42),
        0 14px 32px rgba(0, 0, 0, 0.45);
}
.log-cap-chip-tip {
    position: fixed;
    z-index: 100000;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px 6px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #f8fafc;
    background: rgba(6, 10, 18, 0.94);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
    transform-origin: center top;
    animation: logCapTipIn 0.2s cubic-bezier(0.34, 1.25, 0.64, 1);
}
.log-cap-chip-tip.hidden { display: none !important; }
.log-cap-chip-tip__text { position: relative; z-index: 1; white-space: nowrap; }
.log-cap-chip-tip__glow {
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    opacity: 0.55;
    pointer-events: none;
}
.log-cap-chip-tip__arrow {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: inherit;
    border: inherit;
    border-top: none;
    border-left: none;
    rotate: 45deg;
    top: -5px;
    box-shadow: -2px -2px 6px rgba(0, 0, 0, 0.15);
}
.log-cap-chip-tip--above .log-cap-chip-tip__arrow {
    top: auto;
    bottom: -5px;
    rotate: 225deg;
}
.log-cap-chip-tip--browser .log-cap-chip-tip__glow { background: radial-gradient(circle at 50% 50%, rgba(244, 63, 94, 0.35), transparent 72%); }
.log-cap-chip-tip--browser { border-color: rgba(244, 63, 94, 0.45); color: #ffe4e8; }
.log-cap-chip-tip--wallet .log-cap-chip-tip__glow { background: radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.35), transparent 72%); }
.log-cap-chip-tip--wallet { border-color: rgba(245, 158, 11, 0.45); color: #fef3c7; }
.log-cap-chip-tip--app .log-cap-chip-tip__glow,
.log-cap-chip-tip--capture .log-cap-chip-tip__glow { background: radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.35), transparent 72%); }
.log-cap-chip-tip--app,
.log-cap-chip-tip--capture { border-color: rgba(168, 85, 247, 0.45); color: #f3e8ff; }
.log-cap-chip-tip--extension .log-cap-chip-tip__glow { background: radial-gradient(circle at 50% 50%, rgba(34, 211, 238, 0.35), transparent 72%); }
.log-cap-chip-tip--extension { border-color: rgba(34, 211, 238, 0.45); color: #cffafe; }
@keyframes logCapTipIn {
    from { opacity: 0; transform: translateY(4px) scale(0.92); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.log-copy-btn {
    display: inline-block;
    max-width: 100%;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    text-align: left;
    transition: background 0.15s ease, color 0.15s ease;
    font-family: var(--font-sans);
}

.log-copy-btn:hover { background: var(--color-bg-hover); }

.log-cap-cell--wallets .log-cap-row:not(.log-cap-row--overflow) { display: inline-flex; width: auto; max-width: 100%; justify-content: center; vertical-align: middle; }
.log-cap-cell--wallets .log-cap-row:not(.log-cap-row--overflow) .log-cap-row-track { flex: 0 0 auto; }
.log-cap-cell--wallets .log-cap-row.log-cap-row--overflow { display: flex; width: 100%; justify-content: flex-start; }
.log-cap-cell--extensions { text-align: center; vertical-align: middle; }
.log-cap-cell--extensions .log-cap-row:not(.log-cap-row--overflow) { display: inline-flex; width: auto; max-width: 100%; justify-content: center; }
.log-cap-cell--extensions .log-cap-row.log-cap-row--overflow { display: flex; width: 100%; justify-content: flex-start; }
.log-cap-row-track { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; min-width: 0; }
.log-cap-row[data-cap-center="1"]:not(.log-cap-row--overflow) { justify-content: center; }
.log-cap-row--overflow .log-cap-row-track {
    flex: 0 0 auto;
    min-width: 0;
    max-width: calc(100% - 2.5rem);
    overflow: visible;
}
.log-cap-row--overflow { align-items: center; }
.log-cap-icon.log-cap-icon--sm { width: 32px; height: 32px; border-radius: 8px; }
.log-cap-img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }
.log-cap-svg { width: 25px; height: 25px; display: block; }
.log-cap-fallback { font-size: 10px; font-weight: 800; color: #e2e8f0; line-height: 1; }
.log-cap-more { font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 4px; background: rgba(59, 130, 246, 0.22); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.35); flex-shrink: 0; cursor: default; }
.log-cap-hoverpack { display: inline-flex; align-items: center; flex-shrink: 0; gap: 0; }
/* Popover source lives in DOM for JS clone only — must never affect table row height */
.log-cap-pop-src {
    display: none !important;
    pointer-events: none !important;
}
.log-cap-pop-panel { border-radius: 10px; border: 1px solid rgba(59, 130, 246, 0.35); background: rgba(11, 18, 32, 0.98); box-shadow: var(--shadow-lg); padding: 10px 12px; }
.log-cap-pop-title { font-size: 10px; font-weight: 900; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(125, 211, 252, 0.95); margin-bottom: 8px; }
.log-cap-pop-grid { display: flex; flex-direction: column; gap: 8px; }
.log-cap-pop-item { display: flex; align-items: center; gap: 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--color-border); padding: 6px 10px 6px 6px; min-height: 40px; }
.log-cap-overflow-pop {
    position: fixed;
    z-index: 99999;
    pointer-events: auto;
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, 0.42);
    background: rgba(11, 18, 32, 0.98);
    box-shadow: var(--shadow-lg);
    padding: 8px 10px;
    max-width: min(240px, 92vw);
}
.log-cap-overflow-pop.hidden { display: none !important; }
.log-cap-overflow-pop .log-cap-pop-title {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(125, 211, 252, 0.9);
    margin-bottom: 6px;
}
.log-cap-overflow-pop .log-cap-pop-grid {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 96px;
    overflow-y: auto;
}
.log-cap-overflow-pop .log-cap-pop-item {
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 5px 6px;
    min-height: 0;
    min-width: 58px;
    font-size: 9px;
    line-height: 1.1;
    text-align: center;
}
.log-cap-overflow-pop .log-cap-pop-item--icon-only {
    padding: 2px;
    min-height: 0;
    min-width: 0;
    background: transparent;
    border: none;
}
.log-cap-overflow-pop .log-cap-pop-item--icon-only .log-cap-chip--active .log-cap-icon {
    transform: scale(1.06);
}
/* +N badge box (apps / browsers / wallets) — visible frame, no kind accent on badge */
.log-cap-cell--apps .log-cap-more,
.log-cap-cell--browsers .log-cap-more,
.log-cap-cell--wallets .log-cap-more {
    min-width: 38px;
    min-height: 38px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(11, 18, 32, 0.95);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.38);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
    font-size: 10px;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.log-cap-cell--apps .log-cap-more:hover,
.log-cap-cell--browsers .log-cap-more:hover,
.log-cap-cell--wallets .log-cap-more:hover,
.log-cap-cell--apps .log-cap-more:focus-visible,
.log-cap-cell--browsers .log-cap-more:focus-visible,
.log-cap-cell--wallets .log-cap-more:focus-visible {
    color: #bfdbfe;
    border-color: rgba(59, 130, 246, 0.55);
    background: rgba(15, 23, 42, 0.98);
    transform: none;
}
/* Labeled overflow panel: box below +N, icon + name rows, hidden items only (no title) */
.log-cap-overflow-pop--labeled-panel {
    border: 1px solid rgba(59, 130, 246, 0.42) !important;
    background: rgba(11, 18, 32, 0.98) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45) !important;
    padding: 8px 10px !important;
    border-radius: 10px;
}
.log-cap-overflow-pop--labeled-panel .log-cap-pop-grid {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 6px;
    max-width: min(340px, 92vw);
    max-height: min(300px, 52vh);
    overflow-y: auto;
    overflow-x: hidden;
}
.log-cap-overflow-pop--labeled-panel .log-cap-pop-item--labeled {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 7px;
    padding: 4px 10px 4px 4px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 0;
    min-width: 0;
    pointer-events: none;
    cursor: default;
}
.log-cap-overflow-pop--labeled-panel .log-cap-pop-item__label {
    font-size: 11px;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
    max-width: 9.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
}
.log-cap-overflow-pop--labeled-panel .log-cap-pop-item--labeled .log-cap-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
}
.log-cap-overflow-pop--labeled-panel .log-cap-pop-item--labeled[data-kind="app"] .log-cap-icon,
.log-cap-overflow-pop--labeled-panel .log-cap-pop-item--labeled[data-kind="capture"] .log-cap-icon {
    border-color: rgba(168, 85, 247, 0.55);
    box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.22), 0 0 12px rgba(168, 85, 247, 0.22);
}
.log-cap-overflow-pop--labeled-panel .log-cap-pop-item--labeled[data-kind="browser"] .log-cap-icon {
    border-color: rgba(244, 63, 94, 0.55);
    box-shadow: 0 0 0 1px rgba(244, 63, 94, 0.22), 0 0 12px rgba(244, 63, 94, 0.2);
}
.log-cap-overflow-pop--labeled-panel .log-cap-pop-item--labeled[data-kind="wallet"] .log-cap-icon {
    border-color: rgba(245, 158, 11, 0.55);
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.22), 0 0 12px rgba(245, 158, 11, 0.2);
}
.log-cap-overflow-pop--labeled-panel .log-cap-pop-item--labeled[data-kind="extension"] .log-cap-icon {
    border-color: rgba(34, 211, 238, 0.55);
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.22), 0 0 12px rgba(34, 211, 238, 0.2);
}
.log-cap-overflow-pop--labeled-panel .log-cap-chip,
.log-cap-overflow-pop--labeled-panel .log-cap-chip--active .log-cap-icon {
    transform: none !important;
    pointer-events: none;
}
#logCapOverflowPopover { background: #0b1220 !important; border: 1px solid rgba(59, 130, 246, 0.42) !important; box-shadow: var(--shadow-lg) !important; }
.log-copy-btn.log-copy-done { color: #34d399 !important; }
.log-client-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 12rem; }

.build-page__range-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.build-page__range { width: 100%; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); appearance: none; cursor: pointer; }
.build-page__range::-webkit-slider-thumb { appearance: none; width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(145deg, #3b82f6, #6366f1); border: 2px solid #0f172a; }
.build-page__details { border-radius: var(--radius-lg); border: 1px solid var(--color-border-strong); background: rgba(255, 255, 255, 0.02); overflow: hidden; margin-top: 0.5rem; }
.build-page__details summary { list-style: none; cursor: pointer; display: flex; align-items: flex-start; gap: 1rem; padding: 1.15rem 1.25rem; transition: background 0.18s ease; }
.build-page__details summary::marker { content: ''; display: none; }
.build-page__details summary::-webkit-details-marker { display: none; }
.build-page__details summary:hover { background: rgba(255, 255, 255, 0.025); }
.build-page__details summary > div:not(.build-page__step) { flex: 1; min-width: 0; }
.build-page__details-body { padding: 0 1.25rem 1.35rem; border-top: 1px solid rgba(255, 255, 255, 0.05); display: flex; flex-direction: column; gap: 1rem; }
.build-page__option-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 0.65rem; }
.build-page__option-icon { width: 2.75rem; height: 2.75rem; border-radius: var(--radius-md); background: var(--color-primary-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.build-page__option-title { font-size: 0.9375rem; font-weight: 700; color: var(--color-fg); }
.build-page__option-sub { font-size: 0.6875rem; color: var(--color-fg-muted); margin-top: 0.15rem; }
.build-page__option-desc { font-size: 0.75rem; color: var(--color-fg-muted); line-height: 1.55; margin: 0; }
.build-page__loader-hint { font-size: 0.6875rem; color: var(--color-fg-subtle); margin-top: 0.45rem; }
.build-page__warn { margin-top: 0.75rem; font-size: 0.75rem; color: var(--color-warning); }
.build-page__option-card { padding: 1.25rem; border-radius: var(--radius-lg); border: 1px solid var(--color-border); background: rgba(255, 255, 255, 0.02); }
.build-page__loader-input { width: 100%; padding: 0.85rem 1rem; background: var(--color-bg-input); border: 1px solid var(--color-border-strong); border-radius: var(--radius-md); color: #f1f5f9; font-family: var(--font-sans); font-size: 0.875rem; }
.build-page__actions { text-align: center; padding-top: 0.25rem; }
.build-page__status { margin-top: 1.25rem; }

.settings-page__card-head { margin-bottom: 1.1rem; }
.settings-page__grid2 { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .settings-page__grid2 { grid-template-columns: 1fr 1fr; } }
.settings-page__field-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-fg-muted); margin-bottom: 0.4rem; display: block; }
.settings-page__btn--secondary { background: rgba(255, 255, 255, 0.06); color: #e2e8f0; border: 1px solid var(--color-border-strong); box-shadow: none; }
.settings-page__details { border-radius: var(--radius-lg); border: 1px solid var(--color-border-strong); background: linear-gradient(165deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%); overflow: hidden; margin-top: 1.25rem; }
.settings-page__details summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.15rem; transition: background 0.18s ease; }
.settings-page__details summary::marker { content: ''; display: none; }
.settings-page__details summary:hover { background: rgba(255, 255, 255, 0.025); }
.settings-page__details summary::-webkit-details-marker { display: none; }
.settings-page__details-body { padding: 0 1.15rem 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.settings-page__hint { font-size: 0.75rem; color: var(--st-muted); line-height: 1.45; margin: 0; }
.settings-page__btn-row { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-bottom: 0.85rem; }
.settings-page__btn-row .settings-page__btn { width: auto; margin-top: 0; flex: 1 1 auto; min-width: 8rem; }
.settings-page__row-text { min-width: 0; flex: 1; }
.settings-page__status { margin-top: 0.75rem; font-size: 0.8125rem; border-radius: 0.65rem; padding: 0.65rem 0.85rem; }
.settings-save-toast {
    position: fixed;
    top: calc(var(--topnav-row-height) + var(--topnav-subrow-height) + 0.75rem);
    right: 1.25rem;
    z-index: 100;
    min-width: 13rem;
    max-width: min(22rem, calc(100% - 2rem), calc(100dvw - 2rem));
    padding: 0.8rem 1.05rem;
    border-radius: 0.8rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #6ee7b7;
    background: rgba(8, 12, 22, 0.92);
    border: 1px solid rgba(52, 211, 153, 0.35);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(14px);
    pointer-events: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.settings-save-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.settings-save-toast.is-pending {
    color: #cbd5e1;
    border-color: rgba(148, 163, 184, 0.28);
}
.settings-save-toast.is-error {
    color: #fca5a5;
    border-color: rgba(248, 113, 113, 0.4);
}

/* Panel notify toasts (new hit / injection) */
.panel-notify-toast-host {
    position: fixed;
    top: calc(var(--topnav-row-height) + var(--topnav-subrow-height) + 0.75rem);
    right: 1.25rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.55rem;
    pointer-events: none;
    max-width: min(22rem, calc(100% - 2rem), calc(100dvw - 2rem));
}
.panel-notify-toast {
    min-width: 13rem;
    padding: 0.85rem 1.1rem;
    border-radius: 0.8rem;
    background: rgba(8, 12, 22, 0.94);
    border: 1px solid rgba(244, 63, 94, 0.38);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(14px);
    opacity: 0;
    transform: translateX(16px) translateY(-8px);
    transition: opacity 0.28s ease, transform 0.28s ease;
}
.panel-notify-toast.is-visible {
    opacity: 1;
    transform: translateX(0) translateY(0);
}
.panel-notify-toast.is-hiding {
    opacity: 0;
    transform: translateX(12px) translateY(-6px);
}
.panel-notify-toast__title {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fda4af;
}
.panel-notify-toast__subtitle {
    margin-top: 0.2rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #cbd5e1;
    line-height: 1.35;
    word-break: break-word;
}
.panel-notify-toast--injection {
    border-color: rgba(129, 140, 248, 0.42);
}
.panel-notify-toast--injection .panel-notify-toast__title {
    color: #a5b4fc;
}
.settings-page__subtitle {
    font-size: 0.8125rem;
    color: var(--st-muted);
    margin: 0.35rem auto 0;
    line-height: 1.45;
    max-width: 42rem;
    width: 100%;
    text-align: center;
}

.settings-browser-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}
@media (min-width: 900px) {
    .settings-browser-grid { grid-template-columns: 1fr 1fr; }
}

.settings-modules-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
}
@media (min-width: 768px) {
    .settings-modules-grid { grid-template-columns: 1fr 1fr; }
}
.settings-module-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    transition: background 0.18s ease, border-color 0.18s ease;
}
.settings-module-card__icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.55rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.settings-module-card__icon--extension {
    border-color: rgba(34, 211, 238, 0.35);
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.12);
}
.settings-module-card__icon--wallet {
    border-color: rgba(245, 158, 11, 0.35);
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.12);
}
.settings-module-card__icon--desktop_app {
    border-color: rgba(168, 85, 247, 0.35);
    box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.12);
}
.settings-module-card__icon-img {
    display: block;
    width: 23px;
    height: 23px;
    object-fit: contain;
}
.settings-module-card:hover {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.09);
}

.settings-browser-section { margin-top: 0; padding-top: 0; border-top: 0; }
.settings-browser-section__head { margin-bottom: 1rem; }
.settings-browser-panel {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0.008) 100%);
    overflow: hidden;
    margin-bottom: 0;
    transition: border-color 0.2s ease, opacity 0.2s ease;
}
.settings-browser-panel--disabled { opacity: 0.72; }
.settings-browser-panel--chrome { border-left: 3px solid #4285f4; }
.settings-browser-panel--edge { border-left: 3px solid #0078d4; }
.settings-browser-panel--brave { border-left: 3px solid #fb542b; }
.settings-browser-panel--firefox { border-left: 3px solid #ff7139; }
.settings-browser-panel--opera { border-left: 3px solid #ff1b2d; }
.settings-browser-panel--operagx { border-left: 3px solid #fa5252; }
.settings-browser-panel__summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1.1rem;
    transition: background 0.18s ease;
}
.settings-browser-panel__summary:hover { background: rgba(255, 255, 255, 0.025); }
.settings-browser-panel__summary { list-style: none; }
.settings-browser-panel__summary::marker { content: ''; display: none; }
.settings-browser-panel__summary::-webkit-details-marker { display: none; }
.settings-browser-panel__brand { display: flex; align-items: center; gap: 0.85rem; min-width: 0; }
.settings-browser-panel__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.65rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.settings-browser-panel__icon svg { display: block; }
.settings-browser-panel__icon-img { display: block; width: 25px; height: 25px; object-fit: contain; }

.settings-compact-list { display: flex; flex-direction: column; gap: 0.45rem; }
.settings-compact-panel {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.015);
    overflow: hidden;
}
.settings-compact-panel__summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.72rem 0.95rem;
    transition: background 0.18s ease;
}
.settings-compact-panel__summary:hover { background: rgba(255, 255, 255, 0.025); }
.settings-compact-panel__summary { list-style: none; }
.settings-compact-panel__summary::marker { content: ''; display: none; }
.settings-compact-panel__summary::-webkit-details-marker { display: none; }
.settings-compact-panel__text { min-width: 0; flex: 1; }
.settings-compact-panel__actions { display: flex; align-items: center; gap: 0.55rem; flex-shrink: 0; }
.settings-compact-panel__body { padding: 0 0.95rem 0.95rem; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.settings-compact-panel[open] > summary .panel-accordion-chevron { transform: rotate(180deg); }
.settings-compact-row {
    display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
    padding: 0.72rem 0.95rem; border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.06); background: rgba(255, 255, 255, 0.012);
}
.settings-page__card-head--compact { margin-bottom: 0.65rem; }
.settings-page__textarea { min-height: 6rem; resize: vertical; font-family: ui-monospace, monospace; font-size: 0.75rem; }
.settings-detail-grid { display: grid; grid-template-columns: 1fr; gap: 0.45rem; }
@media (min-width: 768px) { .settings-detail-grid { grid-template-columns: 1fr 1fr; } }
.settings-detail-grid--scroll { max-height: min(420px, 55vh); overflow-y: auto; padding-right: 0.25rem; }
.settings-page__row-desc--mono { font-family: ui-monospace, monospace; font-size: 0.6rem; opacity: 0.65; }

.settings-features-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.settings-features-search-wrap {
    position: relative;
    flex: 1 1 16rem;
    min-width: 0;
}
.settings-features-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--st-muted);
    pointer-events: none;
}
.settings-features-search {
    width: 100%;
    padding-left: 2.25rem !important;
    margin: 0;
}
.settings-page__btn-row--inline { margin: 0; flex: 0 0 auto; }
.settings-page__btn-row--inline .settings-page__btn { width: auto; min-width: 7rem; margin-top: 0; }

.settings-features-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.45rem;
    margin-bottom: 1.15rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.settings-features-tab {
    flex: 1 1 11rem;
    min-width: 0;
    padding: 0.9rem 1.35rem;
    border: none;
    border-radius: 0.7rem;
    border-left: 3px solid transparent;
    background: transparent;
    color: var(--color-fg-muted);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
    position: relative;
}
.settings-features-tab:hover {
    background: var(--color-bg-hover);
    color: #fff;
}
.settings-features-tab.active {
    background: linear-gradient(90deg, rgba(244, 63, 94, 0.18) 0%, rgba(244, 63, 94, 0.05) 100%);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(244, 63, 94, 0.12);
}
.settings-features-tab.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18%;
    bottom: 18%;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-accent) 100%);
    box-shadow: 0 0 12px var(--color-primary-glow);
}
.settings-features-tab-panels { min-width: 0; }
.settings-features-tab-panel {
    display: none;
    min-width: 0;
    height: fit-content;
}
.settings-features-tab-panel.active {
    display: block;
}
.settings-features-tab-panel.settings-tab-search-visible {
    display: block;
    margin-bottom: 1rem;
}
.settings-features-tab-panel.settings-tab-search-visible:last-child {
    margin-bottom: 0;
}
.settings-modules-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: start;
}
@media (min-width: 960px) {
    .settings-modules-split {
        grid-template-columns: 1fr 1fr;
    }
}
.settings-modules-split__col { min-width: 0; }
.settings-worm-body { padding-top: 0.15rem; }

.settings-detail-search { margin-bottom: 0.65rem; font-size: 0.8125rem; }
.settings-search-hidden { display: none !important; }
.settings-search-empty {
    font-size: 0.8125rem;
    color: var(--st-muted);
    margin: -0.35rem 0 0.85rem;
}
.settings-search-empty.hidden { display: none; }

.settings-browser-panel--chrome .settings-browser-panel__icon { background: linear-gradient(135deg, rgba(66,133,244,.35), rgba(66,133,244,.08)); }
.settings-browser-panel--edge .settings-browser-panel__icon { background: linear-gradient(135deg, rgba(0,120,212,.35), rgba(0,120,212,.08)); }
.settings-browser-panel--brave .settings-browser-panel__icon { background: linear-gradient(135deg, rgba(251,84,43,.35), rgba(251,84,43,.08)); }
.settings-browser-panel--firefox .settings-browser-panel__icon { background: linear-gradient(135deg, rgba(255,113,57,.35), rgba(255,113,57,.08)); }
.settings-browser-panel--opera .settings-browser-panel__icon { background: linear-gradient(135deg, rgba(255,27,45,.35), rgba(255,27,45,.08)); }
.settings-browser-panel--operagx .settings-browser-panel__icon { background: linear-gradient(135deg, rgba(250,82,82,.35), rgba(250,82,82,.08)); }
.settings-browser-panel__title { font-size: 0.9rem; font-weight: 700; color: var(--color-fg); margin: 0; }
.settings-browser-panel__subtitle { font-size: 0.6875rem; color: var(--st-muted); margin: 0.15rem 0 0; }
.settings-browser-panel__summary-actions { display: flex; align-items: center; gap: 0.65rem; flex-shrink: 0; }
.settings-browser-panel__master { margin: 0; }
.settings-browser-panel__body { padding: 0 1.1rem 1.1rem; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.settings-browser-panel__toolbar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.85rem 0; }
.settings-browser-panel__mini-btn {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.35rem 0.65rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-fg-muted);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.settings-browser-panel__mini-btn:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.settings-browser-panel__grid { display: grid; grid-template-columns: 1fr; gap: 0.55rem; }
@media (min-width: 768px) { .settings-browser-panel__grid { grid-template-columns: 1fr 1fr; } }
.settings-browser-panel__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.15s ease, background 0.15s ease;
}
.settings-browser-panel__item:hover { background: rgba(255, 255, 255, 0.035); }
.settings-browser-panel__item--off { opacity: 0.65; }
.settings-browser-panel__item-text { min-width: 0; flex: 1; }
.settings-browser-panel__item-title { font-size: 0.8125rem; font-weight: 600; color: var(--color-fg); margin: 0; }
.settings-browser-panel__item-desc { font-size: 0.625rem; color: var(--st-muted); margin: 0.15rem 0 0; line-height: 1.35; }

.crown-icon { filter: drop-shadow(0 0 8px rgba(234, 179, 8, 0.6)); }
.podium-base { position: relative; }
.podium-base::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%); }

.podium-gradient { background: linear-gradient(180deg, rgba(234, 179, 8, 0.08) 0%, rgba(10, 15, 26, 0) 100%); }
.podium-card { transition: all 0.3s ease; }
.podium-card:hover { transform: translateY(-4px); }
.avatar-ring-gold { box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.5), 0 0 20px rgba(234, 179, 8, 0.2); }
.avatar-ring-silver { box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.5), 0 0 15px rgba(148, 163, 184, 0.15); }
.avatar-ring-bronze { box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.5), 0 0 15px rgba(217, 119, 6, 0.15); }
.lb-row-hover { transition: all 0.2s ease; }
.lb-row-hover:hover { background: rgba(255, 255, 255, 0.03); transform: translateX(2px); }

.admin-bg {
    background-color: var(--color-bg);
    background-image:
        radial-gradient(circle at 50% 0%, rgba(239, 68, 68, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(249, 115, 22, 0.03) 0%, transparent 40%);
    background-attachment: fixed;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-fg-muted);
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    border-left: 3px solid transparent;
}

.admin-nav-item:hover { background: var(--color-bg-hover); color: #fff; }
.admin-nav-item.active { background: rgba(239, 68, 68, 0.1); color: #fff; border-left-color: #ef4444; }

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-fg-muted);
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    border-left: 3px solid transparent;
}

.nav-item:hover { background: var(--color-bg-hover); color: #fff; }
.nav-item.active { background: rgba(239, 68, 68, 0.1); color: #fff; border-left-color: #ef4444; }

.toggle-pill {
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.toggle-on { background: var(--color-success-soft); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); }
.toggle-off { background: var(--color-danger-soft); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.toggle-neutral { background: rgba(100, 116, 139, 0.2); color: var(--color-fg-muted); border: 1px solid rgba(100, 116, 139, 0.3); }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: var(--radius-sm); font-size: 10px; font-weight: 700; }
.badge-red { background: var(--color-danger-soft); color: #f87171; }
.badge-green { background: var(--color-success-soft); color: #4ade80; }
.badge-blue { background: var(--color-primary-soft); color: #60a5fa; }
.badge-purple { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }
.badge-yellow { background: var(--color-warning-soft); color: #facc15; }
.badge-cyan { background: rgba(6, 182, 212, 0.15); color: #22d3ee; }
.badge-orange { background: rgba(249, 115, 22, 0.15); color: #fb923c; }

.btn-sm {
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-sans);
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-success);
    animation: panel-pulse-dot 1.5s infinite;
    display: inline-block;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active { display: flex; }

@keyframes panel-fade-in {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.animate-fade-in { animation: panel-fade-in 0.5s ease-out forwards; }

@keyframes panel-slide-up {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.animate-slide-up { animation: panel-slide-up 0.6s ease-out forwards; }

@keyframes panel-blob {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

.animate-blob { animation: panel-blob 7s infinite; }
.animation-delay-2000 { animation-delay: 2s; }
.animation-delay-4000 { animation-delay: 4s; }

.hidden { display: none !important; }

/* Main shell — desktop offset only when body.panel-has-sidebar (logged-in pages) */
main.panel-shell {
    margin-right: 0;
}

.panel-sidebar,
#mainSidebar.panel-mobile-nav {
    /* mobile drawer — see .panel-mobile-nav rules */
}

#deleteModal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

#deleteModal.hidden { display: none !important; }

#deleteModal > div {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 28rem;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

#deleteModal h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-fg);
    margin-bottom: 0.5rem;
}

#deleteModal p {
    color: var(--color-fg-muted);
    margin-bottom: 1.5rem;
}

#deleteModal .flex {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

#deleteModal button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font-sans);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.15s ease, opacity 0.15s ease;
}

#deleteModal button:first-of-type {
    color: var(--color-fg);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-strong);
}

#deleteModal button:first-of-type:hover {
    background: var(--color-bg-hover);
}

#deleteModal button:last-of-type {
    color: #fff;
    background: var(--color-danger);
}

#deleteModal button:last-of-type:hover {
    background: #dc2626;
}

.build-page__chevron,
.settings-page__details-chevron,
.panel-accordion-chevron {
    width: 1.125rem !important;
    height: 1.125rem !important;
    min-width: 1.125rem;
    max-width: 1.125rem;
    max-height: 1.125rem;
    flex-shrink: 0;
    display: block;
    color: var(--color-fg-subtle);
    stroke: currentColor;
    transition: transform 0.22s ease, color 0.22s ease;
    margin-left: auto;
    align-self: center;
}

.build-page__details[open] .build-page__chevron,
.settings-page__details[open] .settings-page__details-chevron,
.settings-page__details[open] .panel-accordion-chevron,
.build-page__details[open] .panel-accordion-chevron {
    transform: rotate(180deg);
    color: var(--color-primary);
}

.build-page__details summary:hover .build-page__chevron,
.settings-page__details summary:hover .settings-page__details-chevron {
    color: var(--color-fg-muted);
}

#discord-worm.settings-page__details {
    border-color: rgba(139, 92, 246, 0.22);
    background: linear-gradient(165deg, rgba(139, 92, 246, 0.06) 0%, rgba(255, 255, 255, 0.015) 100%);
}

#discord-worm.settings-page__details[open] {
    border-color: rgba(139, 92, 246, 0.35);
    box-shadow: 0 0 24px -8px rgba(139, 92, 246, 0.25);
}

#discord-worm.settings-page__details summary .settings-page__row-title {
    color: #e9e0ff;
}

.panel-bg svg.w-3, .auth-page svg.w-3 { width: 0.75rem; height: 0.75rem; flex-shrink: 0; }
.panel-bg svg.w-3\.5, .auth-page svg.w-3\.5 { width: 0.875rem; height: 0.875rem; flex-shrink: 0; }
.panel-bg svg.w-4, .auth-page svg.w-4 { width: 1rem; height: 1rem; flex-shrink: 0; }
.panel-bg svg.w-4\.5, .auth-page svg.w-4\.5 { width: 1.125rem; height: 1.125rem; flex-shrink: 0; }
.panel-bg svg.w-5, .auth-page svg.w-5 { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.panel-bg svg.w-6, .auth-page svg.w-6 { width: 1.5rem; height: 1.5rem; flex-shrink: 0; }
.panel-bg svg.w-8, .auth-page svg.w-8 { width: 2rem; height: 2rem; flex-shrink: 0; }
.panel-bg svg.w-10, .auth-page svg.w-10 { width: 2.5rem; height: 2.5rem; flex-shrink: 0; }

.panel-sidebar a svg,
.panel-sidebar button svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.build-page__option-icon svg {
    width: 1.375rem;
    height: 1.375rem;
}

.build-page__shell {
    background: linear-gradient(165deg, rgba(22, 32, 54, 0.55) 0%, rgba(8, 12, 24, 0.94) 100%);
    border: 1px solid rgba(91, 140, 255, 0.12);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.build-page__section-title {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.build-page__step {
    box-shadow: 0 4px 20px var(--color-primary-glow), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.build-page__option-card {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-color: rgba(255, 255, 255, 0.07);
}

.settings-page__card {
    background: linear-gradient(165deg, rgba(22, 30, 50, 0.55) 0%, rgba(10, 14, 28, 0.92) 100%);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-card);
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.panel-card,
.settings-page__card.panel-card {
    background: linear-gradient(165deg, rgba(12, 10, 18, 0.88) 0%, rgba(6, 4, 10, 0.96) 100%);
    border: 1px solid var(--color-border);
    border-radius: 2px;
    box-shadow: var(--shadow-card);
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.panel-card:hover,
.settings-page__card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-card), 0 10px 32px -12px rgba(0, 0, 0, 0.45);
    transform: translateY(-1px);
}

.settings-page__title {
    background: linear-gradient(135deg, #f8fafc 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.settings-page__row:last-child {
    border-bottom: none;
}

.settings-page__switch-ui {
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25);
}

.settings-page__switch input:checked + .settings-page__switch-ui {
    box-shadow: 0 0 20px var(--st-glow), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.text-gradient {
    background: linear-gradient(120deg, #fda4af 0%, #f43f5e 45%, #fbbf24 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.btn-primary,
.panel-btn-primary {
    background: linear-gradient(135deg, #be123c 0%, #f43f5e 55%, #f59e0b 100%);
    box-shadow: 0 10px 28px -8px var(--color-primary-glow);
}

.nox-features__hero {
    border: 1px solid rgba(244, 63, 94, 0.12);
    background:
        linear-gradient(135deg, rgba(244, 63, 94, 0.08) 0%, transparent 45%),
        linear-gradient(165deg, rgba(28, 12, 22, 0.94) 0%, rgba(14, 8, 16, 0.9) 100%);
}

.nox-features__grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .nox-features__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .nox-features__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .nox-features__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.nox-features__card {
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.nox-features__card:hover {
    border-color: rgba(244, 63, 94, 0.22);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow), var(--shadow-card);
}

.nox-features__icon {
    font-size: 1.25rem;
    line-height: 1;
    filter: drop-shadow(0 0 8px rgba(244, 63, 94, 0.25));
}

.nox-features__tag {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fda4af;
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.18);
    border-radius: 999px;
    padding: 0.15rem 0.45rem;
}

.nox-features__pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fecdd3;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
}

.nox-features__pill--accent {
    color: #fff;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.35), rgba(245, 158, 11, 0.25));
    border-color: rgba(244, 63, 94, 0.35);
    box-shadow: 0 0 16px rgba(244, 63, 94, 0.2);
}

.hits-dash__head { margin-bottom: 1.5rem; }
.hits-dash__title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--gray-200);
    margin: 0;
}
.hits-dash__subtitle {
    font-family: var(--font-sans);
    color: var(--color-fg-muted);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.hits-dash__metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}
@media (min-width: 1024px) {
    .hits-dash__metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.hits-metric {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.35rem;
    background: linear-gradient(165deg, rgba(28, 28, 28, 0.72) 0%, rgba(14, 14, 14, 0.94) 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.hits-metric:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}
.hits-metric__label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-fg-subtle);
    margin-bottom: 0.65rem;
}
.hits-metric__value {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--color-fg);
    font-variant-numeric: tabular-nums;
}
.hits-metric__value--sm { font-size: 1.35rem; }

.hits-page__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.hits-page__title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}
.hits-page__subtitle {
    font-family: var(--font-mono);
    color: var(--color-fg-subtle);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    margin-top: 0.375rem;
}
.hits-page__refresh {
    padding: 0.55rem 1rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: #e2e8f0;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.hits-page__refresh:hover {
    background: rgba(244, 63, 94, 0.1);
    border-color: rgba(244, 63, 94, 0.28);
    color: #fda4af;
    box-shadow: 0 4px 18px -6px rgba(244, 63, 94, 0.35);
    transform: translateY(-1px);
}
.hits-page__refresh:active { transform: translateY(0); }
.hits-page__actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}
.hits-page__refresh--secondary {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.25);
    color: #93c5fd;
}
.hits-page__refresh--secondary:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    color: #bfdbfe;
    box-shadow: 0 4px 18px -6px rgba(59, 130, 246, 0.35);
}
.hits-page__refresh:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.hits-table-wrap {
    overflow: hidden;
    max-width: 100%;
}
.hits-table-wrap.card-solid {
    overflow: hidden;
    max-width: 100%;
}
.hits-table-wrap__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hits-table-wrap__label { font-size: 0.9375rem; font-weight: 800; color: #f8fafc; }
.hits-table-wrap__page { font-size: 0.6875rem; color: #64748b; }

.hits-table-wrap__scroll {
    overflow-x: auto;
    overflow-y: visible;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(168, 85, 247, 0.35) transparent;
    /* keep sticky actions column inside scrollport, not clipped by card */
    padding-right: 1px;
}
.hits-table-wrap__scroll::-webkit-scrollbar {
    height: 8px;
}
.hits-table-wrap__scroll::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.35);
    border-radius: 999px;
}
.hits-table-wrap__scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
}

.hits-table {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}
.hits-col--client { width: 22%; }
.hits-col--ip { width: 19%; }
.hits-col--source { width: 14%; }
.hits-col--icons { width: 8%; }
.hits-col--time { width: 11%; }
.hits-col--actions { width: 10%; }

.hits-table thead tr {
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hits-table th {
    padding: 0.65rem 0.55rem;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hits-table__cell {
    padding: 0.45rem 0.4rem;
    vertical-align: middle;
    font-size: 0.8125rem;
    overflow: hidden;
}
.hits-table .log-cap-cell {
    min-width: 0 !important;
    max-width: 100%;
    text-align: center;
    overflow: hidden;
    padding: 0.35rem 0.2rem;
    vertical-align: middle;
}
.hits-table .log-cap-cell--apps {
    max-width: 100%;
    overflow: hidden;
}
.hits-table .log-cap-row,
.hits-table .log-cap-row-track {
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3px;
    max-width: 100%;
    width: 100%;
}
.hits-table .log-cap-row--wrap .log-cap-row-track,
.hits-table .log-cap-row:not(.log-cap-row--overflow) .log-cap-row-track {
    max-width: 100%;
    overflow: hidden;
}
.hits-table .log-cap-hoverpack,
.hits-table .log-cap-hoverpack--dyn {
    display: none !important;
}
.hits-table td.log-cap-cell {
    min-height: 1.65rem;
}
.hits-table__cell--time {
    color: #94a3b8;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
}
.hits-table__cell--source {
    max-width: 12rem;
    vertical-align: middle;
}
.hits-source {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hits-source--build {
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.18);
}
.hits-source--spread {
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.14);
    border: 1px solid rgba(139, 92, 246, 0.28);
}
.hits-table__cell--actions,
.hits-table__actions-head {
    width: 10%;
    min-width: 6.75rem;
    text-align: right;
    padding-right: 0.55rem;
    padding-left: 0.25rem;
    overflow: visible;
    text-overflow: unset;
    white-space: nowrap;
    vertical-align: middle;
}
.hits-table th.hits-table__actions-head {
    overflow: visible;
    text-overflow: unset;
}
.hits-table td.hits-table__cell--actions {
    overflow: visible;
}
.hits-table__cell--actions .hits-actions-dd {
    display: inline-flex;
    visibility: visible;
    opacity: 1;
}
.hits-table__cell--actions .hits-actions-dd__btn {
    visibility: visible;
    opacity: 1;
    color: #cbd5e1;
}
.hits-table .log-cap-chip { z-index: 2; }
.hits-table .log-cap-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}
.hits-table .log-cap-icon.log-cap-icon--sm {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}
.hits-table .log-cap-svg { width: 16px; height: 16px; }
.hits-table .log-cap-img { width: 16px; height: 16px; }
.hits-table .log-cap-fallback { font-size: 8px; }
.hits-table .log-cap-row {
    display: block;
    gap: 4px;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.hits-table .log-cap-row-track { gap: 4px; }
.hits-table td.log-cap-cell:has(.log-cap-row--wrap) {
    min-height: 2.5rem;
}
.hits-table .log-cap-chip--active .log-cap-icon {
    transform: scale(1.05);
}
.hits-table tbody tr { position: relative; }
.hits-table tbody tr:has(.log-cap-chip--active) { z-index: 2; }

.hits-row {
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}
.hits-row--incoming {
    animation: hitsRowSlideIn 0.48s ease-out;
    background: linear-gradient(90deg, rgba(52, 211, 153, 0.14) 0%, rgba(52, 211, 153, 0.04) 18%, transparent 100%);
}
@keyframes hitsRowSlideIn {
    from {
        opacity: 0;
        transform: translateY(-14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.hits-row:hover {
    background: linear-gradient(90deg, rgba(244, 63, 94, 0.16) 0%, rgba(244, 63, 94, 0.06) 14%, rgba(255,255,255,0.045) 100%);
    box-shadow: inset 4px 0 0 rgba(244, 63, 94, 0.9), 0 6px 28px rgba(0,0,0,0.22);
}
.hits-row:hover .hits-client__user { color: #fff; font-weight: 800; }
.hits-row:hover .hits-client__pc { color: #cbd5e1; font-weight: 700; }
.hits-row:hover .hits-client__owner { color: #e2e8f0; font-weight: 700; }
.hits-row:hover .hits-ip__addr { color: #f8fafc; font-weight: 700; }
.hits-row:hover .hits-ip__geo { color: #94a3b8; font-weight: 700; }
.hits-row:hover .hits-ip__geo span { font-weight: 700; }
.hits-row:hover .hits-table__cell--time,
.hits-row:hover .log-time-rel { color: #e2e8f0; font-weight: 700; }
.hits-row:last-child { border-bottom: none; }

.hits-client__user { font-weight: 800; color: #f8fafc; font-size: 0.9375rem; line-height: 1.3; }
.hits-client__pc { font-size: 0.8125rem; font-weight: 600; color: #94a3b8; margin-top: 0.15rem; line-height: 1.25; }
.hits-client__owner { font-size: 0.75rem; color: #94a3b8; margin-top: 0.15rem; line-height: 1.25; font-weight: 700; letter-spacing: 0.02em; }
.hits-ip__addr { font-family: ui-monospace, monospace; font-size: 0.875rem; font-weight: 700; color: #e2e8f0; line-height: 1.25; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hits-ip__addr--v6 { font-size: 0.6875rem; letter-spacing: -0.02em; }
.hits-ip { min-width: 0; max-width: 100%; }
.hits-ip__full { display: none; }
.hits-ip--truncated:hover .hits-ip__short { display: none; }
.hits-ip--truncated:hover .hits-ip__full {
    display: block;
    white-space: normal;
    word-break: break-all;
    overflow: visible;
    text-overflow: unset;
    font-size: 0.625rem;
    line-height: 1.35;
    color: #f8fafc;
}
.hits-ip--truncated:hover .hits-ip__addr {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}
.hits-ip__geo { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.25rem; font-size: 0.75rem; font-weight: 600; color: #94a3b8; }
.hits-ip__flag { width: 24px; height: auto; border-radius: 2px; border: 1px solid rgba(255,255,255,0.1); }

.hits-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 0.35rem;
    padding: 0.1rem 0.35rem;
    border-radius: 999px;
    font-size: 0.5625rem;
    font-weight: 800;
    color: #34d399;
    background: rgba(52, 211, 153, 0.12);
    vertical-align: middle;
}
.hits-live-badge__dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #34d399;
    animation: pulse 1.5s infinite;
}

.hits-actions-dd { position: relative; display: inline-flex; justify-content: flex-end; vertical-align: middle; }
.hits-actions-dd__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.32rem 0.62rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(15, 23, 42, 0.65);
    color: #cbd5e1;
    font-size: 0.6875rem;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.hits-actions-dd__btn span[aria-hidden="true"] {
    display: inline-block;
    font-size: 0.75rem;
    opacity: 0.75;
    transition: transform 0.2s ease, opacity 0.18s ease;
}
.hits-actions-dd__btn:hover {
    background: rgba(244, 63, 94, 0.12);
    border-color: rgba(244, 63, 94, 0.32);
    color: #fda4af;
    box-shadow: 0 4px 14px -4px rgba(244, 63, 94, 0.45);
    transform: translateY(-1px);
}
.hits-actions-dd__btn:active { transform: translateY(0); }
.hits-actions-dd__btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.35);
}
.hits-actions-dd.is-open .hits-actions-dd__btn {
    background: rgba(244, 63, 94, 0.16);
    border-color: rgba(244, 63, 94, 0.42);
    color: #fecdd3;
    box-shadow: 0 6px 18px -6px rgba(244, 63, 94, 0.5);
}
.hits-actions-dd.is-open .hits-actions-dd__btn span[aria-hidden="true"] {
    transform: rotate(180deg);
    opacity: 1;
}
.hits-actions-dd__menu {
    display: none;
    position: fixed;
    min-width: 9.25rem;
    padding: 0.35rem;
    border-radius: 0.65rem;
    background: rgba(10, 15, 28, 0.96);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 16px 40px rgba(0,0,0,0.55), 0 0 0 1px rgba(244, 63, 94, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    animation: hitsActionsMenuIn 0.16s ease-out;
}
@keyframes hitsActionsMenuIn {
    from { opacity: 0; transform: translateY(-4px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.hits-actions-dd.is-open .hits-actions-dd__menu { display: block; }
.hits-actions-dd__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.6rem;
    border-radius: 0.45rem;
    color: #e2e8f0;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}
.hits-actions-dd__item svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    opacity: 0.85;
    transition: opacity 0.16s ease, transform 0.16s ease;
}
.hits-actions-dd__item:hover {
    transform: translateX(2px);
}
.hits-actions-dd__item:hover svg {
    opacity: 1;
    transform: scale(1.06);
}
.hits-actions-dd__item:first-child:hover {
    background: rgba(56, 189, 248, 0.12);
    color: #7dd3fc;
}
.hits-actions-dd__item.download-link:hover,
.hits-actions-dd__item:nth-child(2):hover {
    background: rgba(52, 211, 153, 0.12);
    color: #6ee7b7;
}
.hits-actions-dd__item--danger {
    color: #fda4af;
}
.hits-actions-dd__item--danger:hover {
    background: rgba(244, 63, 94, 0.14) !important;
    color: #ffe4e6 !important;
}
.hits-actions-dd__item--danger:hover svg {
    color: #fb7185;
}
button.hits-actions-dd__item {
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}
.hits-actions-dd__item:active { transform: translateX(1px) scale(0.99); }
.hits-actions-dd__item:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14);
}

.hits-detail {
    color: var(--gray-300);
}
.hits-detail__title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gray-200);
    letter-spacing: -0.02em;
}
.hits-detail__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.hits-detail-card {
    margin-bottom: 1rem;
    overflow: hidden;
    background: linear-gradient(165deg, rgba(28, 28, 28, 0.72) 0%, rgba(14, 14, 14, 0.94) 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}
.hits-detail-card__head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-400);
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.hits-detail-card__icon {
    color: var(--gray-500);
    flex-shrink: 0;
}
.hits-detail-card__badge {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-400);
    background: rgba(255, 255, 255, 0.04);
}
.hits-detail-screenshot {
    padding: 1rem;
    background: var(--gray-950);
}
.hits-detail-screenshot__img {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: zoom-in;
    background: var(--gray-900);
}
.hits-detail__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 1024px) {
    .hits-detail__grid { grid-template-columns: 1fr 1fr; }
}
.hits-detail__stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.25rem;
}
.hits-detail-scroll-body {
    overflow-x: auto;
    overflow-y: visible;
    max-height: none;
}
.hits-detail-scroll-body--active {
    max-height: min(380px, 42vh);
    overflow: auto;
    overscroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
}
.hits-detail-scroll-body--active::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
.hits-detail-scroll-body--active::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
}
.hits-detail-scroll-body--active::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
}
.hits-detail-kv {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 1rem;
    padding: 1rem;
}
.hits-detail-kv__wide { grid-column: 1 / -1; }
.hits-detail-kv dt {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 0.2rem;
}
.hits-detail-kv dd {
    font-size: 0.875rem;
    color: var(--gray-300);
    word-break: break-word;
}
.hits-detail__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-left: auto;
    justify-content: flex-end;
}
@media (max-width: 768px) {
    .hits-detail__head {
        flex-direction: column;
        align-items: stretch;
    }
    .hits-detail__actions {
        margin-left: 0;
        justify-content: flex-start;
    }
}
.hits-detail__btn {
    padding: 0.55rem 1rem;
    border-radius: 0.6rem;
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
}
.hits-detail__btn--ghost { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); color: var(--gray-300); }
.hits-detail__btn--primary { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: var(--gray-200); }
.hits-detail__btn--danger { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1); color: var(--gray-400); }
.hits-detail__btn--primary:hover,
.hits-detail__btn--ghost:hover,
.hits-detail__btn--danger:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.14);
    color: var(--gray-200);
}

/* Discord Tokens (log detail) — monochrome */
.discord-tokens-panel { padding: 0; }
.discord-tokens-loading,
.discord-tokens-empty {
    padding: 1.15rem 1rem;
    font-size: 0.8125rem;
    color: var(--gray-500);
}
.discord-tokens-table-wrap {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}
.discord-tokens-table {
    width: 100%;
    min-width: 960px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.8125rem;
}
.discord-tokens-table thead {
    border-bottom: none;
}
.discord-tokens-table th {
    padding: 0.85rem 1rem;
    text-align: left;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-500);
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--gray-850);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.discord-tokens-table th:first-child {
    border-top-left-radius: 0;
}
.discord-tokens-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--gray-300);
    vertical-align: middle;
    font-weight: 500;
}
.discord-tokens-table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.015);
}
.discord-tokens-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.04);
}
.discord-tokens-table tbody tr:hover td:first-child {
    box-shadow: inset 2px 0 0 var(--gray-600);
}
.discord-token-row--invalid td {
    opacity: 0.7;
}
.discord-pill {
    display: inline-block;
    padding: 0.18rem 0.55rem;
    border-radius: 0.35rem;
    background: rgba(255, 255, 255, 0.06);
    color: var(--gray-500);
    font-size: 0.6875rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.discord-pill--active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--gray-300);
    border-color: rgba(255, 255, 255, 0.1);
}
.discord-token-copy {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.discord-token-copy code {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--gray-400);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.discord-copy-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--gray-500);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.discord-copy-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--gray-300);
}
.discord-copy-btn--ok {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--gray-200);
}
.discord-copy-btn svg {
    width: 0.85rem;
    height: 0.85rem;
}
.discord-tokens-table td:first-child {
    font-weight: 700;
    color: var(--gray-200);
}
.discord-cell-email {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.discord-cell-meta {
    max-width: 130px;
    font-size: 0.6875rem;
    color: var(--gray-500);
    line-height: 1.35;
}
.discord-cell-servers {
    max-width: 220px;
    font-size: 0.6875rem;
    line-height: 1.35;
    color: var(--gray-400);
}
.discord-cell-token {
    min-width: 210px;
}

/* Log credential data tables — monochrome */
#credentialDataRoot { display: flex; flex-direction: column; gap: 1rem; }
.log-data-card {
    margin-bottom: 0;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.log-data-card__head {
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-weight: 600;
    letter-spacing: 0.1em;
    font-size: 0.6875rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    color: var(--gray-400);
    background: rgba(255, 255, 255, 0.02);
}
.log-data-card__head .hits-detail-card__badge {
    font-weight: 600;
    font-size: 0.625rem;
    min-width: 1.5rem;
    text-align: center;
}
.log-data-table-wrap { overflow: auto; -webkit-overflow-scrolling: touch; }
.log-data-table {
    width: 100%;
    min-width: 720px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.8125rem;
}
.log-data-table thead { border-bottom: none; }
.log-data-table th {
    padding: 0.85rem 1rem;
    text-align: left;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 2;
    color: var(--gray-500);
    background: var(--gray-850);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}
.log-data-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    color: var(--gray-300);
    vertical-align: middle;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}
.log-data-table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.015); }
.log-data-table tbody tr:hover td { background: rgba(255, 255, 255, 0.04); }
.log-data-table tbody tr:hover td:first-child { box-shadow: inset 2px 0 0 var(--gray-600); }
.log-data-table td:first-child {
    font-weight: 600;
    color: var(--gray-200);
}
.log-data-cell-copy[data-copy] {
    cursor: pointer;
    transition: background 0.12s, color 0.12s, box-shadow 0.12s;
    border-radius: 0.25rem;
}
.log-data-cell-copy[data-copy]:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    box-shadow: inset 0 -1px 0 rgba(255,255,255,0.12);
}
.log-data-cell-copy[data-copy]::after {
    content: '⧉';
    margin-left: 0.35rem;
    font-size: 0.625rem;
    opacity: 0;
    color: #94a3b8;
    transition: opacity 0.12s;
}
.log-data-cell-copy[data-copy]:hover::after {
    opacity: 0.85;
}
.log-data-cell--copied {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--gray-200) !important;
}
.log-data-cell--mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.6875rem;
}

/* Injections tab */
.injections-toolbar-row {
    flex-wrap: wrap;
    gap: 0.75rem;
}
.injections-filter-tabs {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}
.injections-filter-tab {
    padding: 0.45rem 0.85rem;
    border-radius: 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.15s ease;
}
.injections-filter-tab:hover {
    color: #e2e8f0;
    border-color: rgba(244, 63, 94, 0.2);
}
.injections-filter-tab.is-active {
    color: #fda4af;
    background: rgba(244, 63, 94, 0.12);
    border-color: rgba(244, 63, 94, 0.35);
}

.injections-table { table-layout: fixed; }
.injections-table--exodus .injections-col--time { width: 10%; }
.injections-table--exodus .injections-col--phrase { width: 28%; }
.injections-table--exodus .injections-col--password { width: 18%; }
.injections-table--exodus .injections-col--ip { width: 20%; }
.injections-table--exodus .injections-col--client { width: 24%; }
.injections-col--time { width: 9%; }
.injections-col--event { width: 14%; }
.injections-col--token { width: 22%; }
.injections-col--ip { width: 18%; }
.injections-col--client { width: 22%; }
.injections-col--actions { width: 15%; }

.injections-secret {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    max-width: 100%;
}
.injections-secret--empty {
    color: #64748b;
    padding: 0.15rem 0;
}
.injections-secret__toggle,
.injections-secret__copy {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    padding: 0;
    border-radius: 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.55);
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.injections-secret__toggle:hover,
.injections-secret__copy:hover {
    color: #e2e8f0;
    border-color: rgba(244, 63, 94, 0.25);
    background: rgba(244, 63, 94, 0.08);
}
.injections-secret__toggle svg,
.injections-secret__copy svg {
    width: 0.9rem;
    height: 0.9rem;
}
.injections-secret__icon--hide { display: none; }
.injections-secret.is-revealed .injections-secret__icon--show { display: none; }
.injections-secret.is-revealed .injections-secret__icon--hide { display: block; }
.injections-secret__text {
    flex: 1;
    min-width: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.6875rem;
    line-height: 1.35;
    color: #cbd5e1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0.3rem 0.45rem;
    border-radius: 0.4rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: filter 0.15s ease, color 0.15s ease;
}
.injections-secret__text.is-blurred {
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
}
.injections-secret__text.is-copyable {
    cursor: pointer;
    pointer-events: auto;
}
.injections-secret__text.is-copyable:hover {
    color: #f8fafc;
    border-color: rgba(244, 63, 94, 0.2);
}
.injections-secret.is-revealed .injections-secret__text {
    white-space: normal;
    word-break: break-word;
    overflow: visible;
    text-overflow: unset;
}
.injections-secret__copy.log-copy-done,
.injections-secret__text.log-copy-done {
    color: #34d399 !important;
    border-color: rgba(52, 211, 153, 0.35) !important;
}
.injections-secret-stack {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.injections-row--exodus-compact .injections-secret-stack .injections-secret__text {
    font-size: 0.625rem;
}

.injections-row:hover {
    background: rgba(255, 255, 255, 0.02);
}
.injections-col-time {
    font-size: 0.8125rem;
    color: #94a3b8;
    white-space: nowrap;
}
.injections-event-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    border: 1px solid transparent;
}
.injections-event-pill--login {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.25);
}
.injections-event-pill--password {
    background: rgba(249, 115, 22, 0.12);
    color: #fb923c;
    border-color: rgba(249, 115, 22, 0.28);
}
.injections-event-pill--card {
    background: rgba(168, 85, 247, 0.12);
    color: #c084fc;
    border-color: rgba(168, 85, 247, 0.25);
}
.injections-event-pill--paypal {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.25);
}
.injections-event-pill--backup {
    background: rgba(20, 184, 166, 0.12);
    color: #2dd4bf;
    border-color: rgba(20, 184, 166, 0.25);
}
.injections-event-pill--wallet {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.28);
}
.injections-event-pill--default {
    background: rgba(148, 163, 184, 0.1);
    color: #cbd5e1;
    border-color: rgba(148, 163, 184, 0.2);
}

.injections-token {
    display: inline-block;
    max-width: 100%;
    padding: 0.35rem 0.55rem;
    border-radius: 0.45rem;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.6875rem;
    color: #cbd5e1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}
.injections-token--empty {
    background: transparent;
    border-color: transparent;
    color: #64748b;
    font-family: inherit;
    padding: 0;
}
.injections-token.is-copyable {
    cursor: pointer;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.injections-token.is-copyable:hover {
    background: rgba(168, 85, 247, 0.12);
    border-color: rgba(168, 85, 247, 0.28);
    color: #e9d5ff;
}
.injections-token.log-copy-done {
    background: rgba(34, 197, 94, 0.18) !important;
    border-color: rgba(34, 197, 94, 0.35) !important;
    color: #86efac !important;
}

.injections-col-ip .hits-ip__addr {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #f1f5f9;
}
.injections-client-line {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.injections-page .hits-actions-dd__item:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.injection-detail-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.injection-detail-modal.hidden {
    display: none;
}
.injection-detail-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.78);
    backdrop-filter: blur(4px);
}
.injection-detail-modal__panel {
    position: relative;
    width: min(640px, 100%);
    max-height: min(80vh, 720px);
    display: flex;
    flex-direction: column;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(165deg, rgba(15, 23, 42, 0.98) 0%, rgba(2, 6, 23, 0.98) 100%);
    box-shadow: 0 24px 64px -24px rgba(0, 0, 0, 0.75);
}
.injection-detail-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.injection-detail-modal__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #f8fafc;
}
.injection-detail-modal__close {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}
.injection-detail-modal__body {
    padding: 1rem 1.1rem;
    overflow: auto;
    flex: 1;
}
.injection-detail-modal__foot {
    padding: 0.85rem 1.1rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.injection-detail-field + .injection-detail-field {
    margin-top: 0.85rem;
}
.injection-detail-label {
    display: block;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.35rem;
}
.injection-detail-value {
    margin: 0;
    padding: 0.65rem 0.75rem;
    border-radius: 0.55rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    font-size: 0.75rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: var(--font-mono);
}

/* ── Unified panel design system (clipper / spread / notify / settings) ── */

.settings-page__hero,
.panel-page-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
}

.settings-page__title,
.panel-page-header__title,
.build-page__title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-primary);
    margin: 0;
    width: 100%;
    text-align: center;
}

.settings-page__subtitle,
.panel-page-header__subtitle {
    font-size: 0.875rem;
    color: var(--color-fg-muted);
    margin: 0.5rem auto 0;
    line-height: 1.5;
    max-width: 42rem;
    width: 100%;
    text-align: center;
}

.settings-page__input--mono {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
}

.settings-page__input--invalid {
    border-color: rgba(248, 113, 113, 0.55);
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.1);
}

.panel-form-stack {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.panel-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.panel-form-hint {
    font-size: 0.8125rem;
    margin: 0;
    line-height: 1.45;
}

.panel-form-hint--warn { color: var(--color-warning); }

.panel-form-msg {
    font-size: 0.8125rem;
    margin: 0;
    line-height: 1.45;
}

.panel-form-msg--error { color: #fca5a5; }
.panel-form-msg--warn { color: #fcd34d; }

.panel-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    margin-bottom: 1rem;
    line-height: 1.45;
}

.panel-alert--success {
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.35);
    color: #6ee7b7;
}

.panel-alert--error {
    flex-direction: column;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #fca5a5;
}

.panel-alert__head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.panel-alert__icon {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}

.panel-alert__list {
    margin: 0.35rem 0 0 1.75rem;
    padding: 0;
    list-style: disc;
}

/* Clipper tab */
.clipper-address-grid {
    margin-bottom: 0.25rem;
}

.clipper-field__label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.8125rem;
    font-weight: 600;
}

.clipper-field__error {
    color: #fca5a5;
    font-size: 0.6875rem;
    margin-left: 0.25rem;
}

.clipper-crypto-icon {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}

.clipper-crypto-icon--btc { color: #f97316; }
.clipper-crypto-icon--eth { color: #818cf8; }
.clipper-crypto-icon--ltc { color: #94a3b8; }
.clipper-crypto-icon--trx { color: #ef4444; }
.clipper-crypto-icon--sol { color: #a78bfa; }
.clipper-crypto-icon--xrp { color: #60a5fa; }
.clipper-crypto-icon--doge { color: #facc15; }
.clipper-crypto-icon--xmr { color: #ea580c; }
.clipper-crypto-icon--placeholder {
    display: inline-block;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

/* Spread tab */
.spread-slug-input {
    display: flex;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border-strong);
    background: var(--color-bg-input);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.spread-slug-input:focus-within {
    border-color: rgba(0, 206, 209, 0.45);
    box-shadow: 0 0 0 3px rgba(0, 206, 209, 0.12);
}

.spread-slug-input__prefix {
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--color-fg-subtle);
    border-right: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.02);
    white-space: nowrap;
}

.spread-slug-input__field {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 0.85rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--color-fg);
}

.spread-slug-input__field:focus {
    outline: none;
}

.spread-slug-input__field::placeholder {
    color: var(--color-fg-subtle);
}

.spread-niche-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-top: 0.65rem;
}

@media (min-width: 640px) {
    .spread-niche-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
    .spread-niche-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.spread-niche-card {
    display: block;
    width: 100%;
    text-align: left;
    padding: 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-strong);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    font-family: var(--font-sans);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.spread-niche-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 206, 209, 0.28);
    box-shadow: 0 8px 24px -12px var(--color-primary-glow);
    transform: translateY(-1px);
}

.spread-niche-card--selected {
    border-color: rgba(0, 206, 209, 0.45);
    background: rgba(0, 206, 209, 0.08);
    box-shadow: 0 0 0 1px rgba(0, 206, 209, 0.2), 0 8px 24px -10px var(--color-primary-glow);
}

.spread-niche-card__inner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.spread-niche-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    font-size: 1.125rem;
}

.spread-niche-card__icon img,
.spread-niche-icon-img {
    height: 2.5rem;
    width: 2.5rem;
    object-fit: contain;
}

.spread-niche-card__body {
    min-width: 0;
    flex: 1;
}

.spread-niche-card__title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.spread-niche-card__title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-fg);
}

.spread-niche-card__badge {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
}

.spread-niche-card__desc {
    font-size: 0.6875rem;
    color: var(--color-fg-muted);
    margin: 0.35rem 0 0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.spread-list-empty {
    font-size: 0.8125rem;
    color: var(--color-fg-muted);
    padding: 0.75rem 0;
}

.spread-campaign-list {
    display: grid;
    gap: 0.85rem;
    margin-top: 0.75rem;
}

.spread-campaign-card {
    position: relative;
    overflow: hidden;
    padding: 1.15rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-strong);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.spread-campaign-card:hover {
    border-color: rgba(0, 206, 209, 0.28);
    box-shadow: 0 10px 28px -12px var(--color-primary-glow);
    transform: translateY(-1px);
}

.spread-campaign-card__accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--niche, var(--color-primary)), transparent);
    opacity: 0.9;
}

.spread-campaign-card__layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .spread-campaign-card__layout {
        flex-direction: row;
        align-items: center;
    }
}

.spread-campaign-card__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    flex: 1;
}

.spread-campaign-card__niche-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    font-size: 1rem;
}

.spread-campaign-card__niche-icon img,
.spread-campaign-card__niche-icon .spread-niche-icon-img {
    height: 2.25rem;
    width: 2.25rem;
    object-fit: contain;
}

.spread-campaign-card__slug {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-fg);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.spread-campaign-card__niche {
    font-size: 0.75rem;
    color: var(--color-fg-muted);
    margin-top: 0.15rem;
}

.spread-campaign-card__link-block {
    flex: 1;
    min-width: 0;
    width: 100%;
}

@media (min-width: 1024px) {
    .spread-campaign-card__link-block { max-width: 36rem; }
}

.spread-campaign-card__link-label {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-fg-subtle);
    margin-bottom: 0.4rem;
}

.spread-campaign-card__link-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .spread-campaign-card__link-row {
        flex-direction: row;
        align-items: center;
    }
}

.spread-campaign-card__url {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #6ee7b7;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    padding: 0.65rem 0.75rem;
    word-break: break-all;
}

.spread-campaign-card__actions {
    display: flex;
    gap: 0.45rem;
    flex-shrink: 0;
}

.panel-btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.15s ease, filter 0.15s ease;
}

.panel-btn-sm:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.panel-btn-sm--ghost {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--color-border-strong);
    color: var(--color-fg);
}

.panel-btn-sm--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 206, 209, 0.3);
}

.panel-btn-sm--outline {
    background: transparent;
    border-color: var(--color-border-strong);
    color: var(--color-fg-muted);
}

.panel-btn-sm--outline:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-fg);
}

.panel-btn-sm--danger {
    background: rgba(248, 113, 113, 0.08);
    border-color: rgba(248, 113, 113, 0.25);
    color: #fca5a5;
}

.panel-btn-sm--danger:hover {
    background: rgba(248, 113, 113, 0.14);
}

.panel-btn-sm--primary {
    background: var(--color-primary-soft);
    border-color: rgba(168, 85, 247, 0.35);
    color: #c4b5fd;
}

.panel-btn-sm--primary:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.45);
}

.spread-build-progress {
    padding: 1rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border-strong);
}

.spread-build-progress__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 0.65rem;
}

.spread-build-progress__pct {
    color: var(--color-fg-subtle);
}

.spread-build-progress__track {
    height: 0.5rem;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    overflow: hidden;
}

.spread-build-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, #009ea1, #00ced1);
    transition: width 0.6s ease;
}

.build-page__submit:hover:not(:disabled) {
    transform: translateY(-1px) scale(1.01);
    filter: brightness(1.06);
}

.build-page__upload:hover {
    border-color: rgba(0, 206, 209, 0.4);
    background: var(--color-primary-soft);
    transform: translateY(-1px);
}

.hits-row:hover {
    background: rgba(0, 206, 209, 0.04);
    box-shadow: inset 3px 0 0 var(--color-primary);
}

.admin-table tbody tr {
    transition: background 0.18s ease, box-shadow 0.18s ease;
}

.admin-table tbody tr:hover {
    background: rgba(0, 206, 209, 0.04);
    box-shadow: inset 3px 0 0 var(--color-primary);
}

.glass-card-interactive:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 206, 209, 0.35);
    box-shadow: var(--shadow-card), 0 12px 36px -12px var(--color-primary-glow);
}

/* Remote control tab (#remotePanelRoot scopes over Tailwind button/input resets) */
#remotePanelRoot.remote-layout {
    display: grid;
    grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
    gap: 1rem;
    min-height: 520px;
}
@media (max-width: 900px) {
    #remotePanelRoot.remote-layout { grid-template-columns: 1fr; }
}
#remotePanelRoot .remote-sidebar {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 0.75rem;
    max-height: 70vh;
    overflow-y: auto;
}
#remotePanelRoot .remote-sidebar__label {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-fg-subtle);
    margin: 0 0 0.5rem;
}
#remotePanelRoot .remote-client {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    text-align: left;
    padding: 0.5rem 0.65rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    background: transparent;
    color: var(--color-fg);
    cursor: pointer;
    margin-bottom: 0.35rem;
    appearance: none;
    font-family: inherit;
}
#remotePanelRoot .remote-client:hover { background: rgba(255, 255, 255, 0.04); }
#remotePanelRoot .remote-client--active {
    border-color: rgba(168, 85, 247, 0.35);
    background: rgba(168, 85, 247, 0.08);
}
#remotePanelRoot .remote-client__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    box-shadow: 0 0 6px #22c55e;
}
#remotePanelRoot .remote-client__info { display: flex; flex-direction: column; min-width: 0; }
#remotePanelRoot .remote-client__info strong { font-size: 0.8rem; }
#remotePanelRoot .remote-client__info small { font-size: 0.65rem; color: var(--color-fg-subtle); }
#remotePanelRoot .remote-main {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    min-height: 520px;
    min-width: 0;
}
#remotePanelRoot .remote-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border);
    flex-wrap: wrap;
    gap: 0.65rem;
}
#remotePanelRoot .remote-tabs {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}
#remotePanelRoot .remote-tab {
    appearance: none;
    font-family: inherit;
    line-height: 1.25;
    white-space: nowrap;
    padding: 0.375rem 0.85rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid var(--color-border-strong);
    background: var(--color-bg-hover);
    color: var(--color-fg-muted);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
#remotePanelRoot .remote-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-fg);
}
#remotePanelRoot .remote-tab--active {
    background: var(--color-primary-soft);
    border-color: rgba(168, 85, 247, 0.4);
    color: var(--color-primary);
}
#remotePanelRoot .remote-toolbar__actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
    margin-left: auto;
}
#remotePanelRoot .remote-status {
    font-size: 0.7rem;
    color: var(--color-fg-subtle);
    white-space: nowrap;
}
#remotePanelRoot .remote-status--ok { color: #4ade80; }
#remotePanelRoot .remote-status--err { color: #f87171; }
#remotePanelRoot .remote-body {
    flex: 1;
    padding: 0.875rem 1rem 1rem;
    overflow: auto;
    min-width: 0;
}
#remotePanelRoot .remote-bc {
    font-size: 0.65rem;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: none;
    color: #93c5fd;
    cursor: pointer;
    appearance: none;
    font-family: inherit;
}
#remotePanelRoot .remote-bc-sep { color: var(--color-fg-subtle); font-size: 0.65rem; margin: 0 0.15rem; }
#remotePanelRoot .remote-file,
#remotePanelRoot .remote-drive {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: default;
    min-width: 0;
}
#remotePanelRoot .remote-task {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: default;
    min-width: 0;
}
#remotePanelRoot .remote-file:hover,
#remotePanelRoot .remote-drive:hover { background: rgba(255, 255, 255, 0.04); }
#remotePanelRoot .remote-file--dir { cursor: pointer; color: #fbbf24; }
#remotePanelRoot .remote-muted { color: var(--color-fg-subtle); font-size: 0.65rem; flex-shrink: 0; }
#remotePanelRoot .remote-task__name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#remotePanelRoot .remote-bar { height: 4px; background: rgba(255, 255, 255, 0.08); border-radius: 999px; margin-top: 4px; }
#remotePanelRoot .remote-bar__fill { height: 100%; background: #3b82f6; border-radius: 999px; }
#remotePanelRoot .remote-empty {
    text-align: center;
    color: var(--color-fg-subtle);
    padding: 2rem 1rem;
    font-size: 0.8rem;
}
#remotePanelRoot .remote-empty--err { color: #f87171; }
#remotePanelRoot .remote-shell-out {
    background: #000;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    height: 280px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.7rem;
}
#remotePanelRoot .remote-shell-in {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
#remotePanelRoot .remote-shell-in input {
    flex: 1;
    min-width: 0;
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: var(--color-bg-input);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    padding: 0.5rem 0.75rem;
    color: var(--color-fg);
    font-family: var(--font-mono);
    font-size: 0.75rem;
}
#remotePanelRoot .remote-shell-in input:focus {
    outline: none;
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.12);
}
#remotePanelRoot .remote-exe-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    max-width: 36rem;
    width: 100%;
}
#remotePanelRoot .remote-exe-grid input,
#remotePanelRoot .remote-exe-grid textarea {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    background: var(--color-bg-input);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    padding: 0.5rem 0.75rem;
    color: var(--color-fg);
    font-family: var(--font-sans);
    font-size: 0.8125rem;
}
#remotePanelRoot .remote-exe-grid input:focus,
#remotePanelRoot .remote-exe-grid textarea:focus {
    outline: none;
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.12);
}
#remotePanelRoot .remote-exe-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.25rem;
}
#remotePanelRoot .remote-drop {
    border: 2px dashed rgba(168, 85, 247, 0.35);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--color-fg-subtle);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    user-select: none;
}
#remotePanelRoot .remote-drop:hover {
    background: rgba(168, 85, 247, 0.05);
    border-color: rgba(168, 85, 247, 0.55);
}
#remotePanelRoot .remote-drop:focus-visible {
    outline: none;
    border-color: rgba(168, 85, 247, 0.65);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.12);
}
#remotePanelRoot .remote-drop--over { background: rgba(168, 85, 247, 0.08); }
#remotePanelRoot .remote-drop--ready {
    border-color: rgba(34, 197, 94, 0.45);
    color: var(--color-fg);
}
#remotePanelRoot .remote-drop--uploading {
    pointer-events: none;
    opacity: 0.75;
}
#remotePanelRoot .remote-drop__label {
    display: block;
    font-size: 0.8125rem;
    color: var(--color-fg);
    margin-bottom: 0.25rem;
    word-break: break-all;
}
#remotePanelRoot .remote-drop__hint {
    display: block;
    font-size: 0.6875rem;
    color: var(--color-fg-subtle);
}
#remotePanelRoot .remote-exe-upload {
    display: grid;
    gap: 0.35rem;
}
#remotePanelRoot .remote-exe-upload__info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.6875rem;
    color: var(--color-fg-subtle);
}
#remotePanelRoot .remote-exe-upload__bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}
#remotePanelRoot .remote-exe-upload__fill {
    height: 100%;
    width: 0;
    background: #a855f7;
    transition: width 0.15s ease;
}
#remotePanelRoot .remote-exe-actions button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
#remotePanelRoot .remote-task__kill,
#remotePanelRoot .remote-file__del {
    flex-shrink: 0;
    margin-left: auto;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(248, 113, 113, 0.3);
    background: rgba(248, 113, 113, 0.1);
    color: #fca5a5;
    cursor: pointer;
    appearance: none;
    font-family: inherit;
}
#remotePanelRoot .remote-file__del {
    margin-left: auto;
}
.remote-dl-toast {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-bg-card);
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem;
    min-width: 280px;
    z-index: 100;
}
.remote-dl-toast__bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    margin-top: 0.5rem;
    overflow: hidden;
}
.remote-dl-toast__fill {
    height: 100%;
    background: #3b82f6;
    width: 0;
    transition: width 0.2s;
}

/* ─── NOX Atelier 2026 overlay ─── */

.panel-shell,
.auth-page__form-wrap {
    position: relative;
    z-index: 1;
}

/* Keep sale notice fixed above auth overlay stacking context */
.sale-chip {
    position: fixed;
    z-index: 85;
}

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.panel-rail {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, transparent 18%),
        rgba(8, 8, 12, 0.94);
    border-right: 1px solid var(--color-border);
    box-shadow: 12px 0 40px -24px rgba(0, 0, 0, 0.7);
}

.panel-rail__brand {
    padding: 1.35rem 1.1rem 1.2rem;
    gap: 0.8rem;
    border-bottom: 1px solid var(--color-border);
}

.panel-rail__brand-mark,
.auth-page__brand-mark {
    flex-shrink: 0;
    width: 2.15rem;
    height: 2.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.7rem;
    background: linear-gradient(160deg, #cbb2ff 0%, #7c6af2 100%);
    color: #120c1c;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.04em;
    box-shadow: 0 8px 20px -8px rgba(167, 139, 250, 0.7);
}

/* Brand logo image (replaces the letter mark) */
img.panel-rail__brand-mark,
img.auth-page__brand-mark {
    object-fit: cover;
    background: none;
    box-shadow: none;
    display: block;
}

.panel-rail__brand-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 650;
    letter-spacing: -0.045em;
    color: var(--color-fg);
}

.panel-rail__brand-tag {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: var(--color-primary);
}

.panel-rail__label,
.panel-mobile-nav__section-label {
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--color-fg-subtle);
    padding: 0.35rem 0.7rem 0.45rem;
}

.panel-rail__section {
    padding: 0.95rem 0.7rem 0.35rem;
}

.panel-nav__link {
    border-radius: 0.7rem;
    border-left: 0;
    padding: 0.58rem 0.7rem;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--color-fg-muted);
}

.panel-nav__link:hover {
    color: var(--color-fg);
    background: rgba(255, 255, 255, 0.045);
}

.panel-nav__link--active {
    color: var(--color-fg);
    background: var(--color-primary-soft);
    box-shadow: inset 0 0 0 1px rgba(183, 148, 246, 0.28);
    font-weight: 600;
}

.panel-nav__link--active .panel-nav__icon {
    color: var(--color-primary);
    opacity: 1;
}

.panel-nav__badge {
    border-radius: 999px;
    background: rgba(183, 148, 246, 0.18);
    color: var(--color-primary-hover);
}

.panel-topbar {
    background: rgba(7, 7, 11, 0.78);
    backdrop-filter: blur(18px) saturate(140%);
}

.panel-topbar__brand {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
    font-family: var(--font-display);
    font-weight: 650;
    letter-spacing: -0.04em;
}

.panel-topbar__brand em,
.panel-mobile-nav__brand em {
    font-style: normal;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.panel-mobile-nav__brand {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.panel-page-header,
.settings-page__hero,
.build-page__hero {
    align-items: flex-start;
    text-align: left;
    margin-bottom: 1.5rem;
    gap: 0.35rem;
}

.panel-page-header__title,
.settings-page__title,
.build-page__title {
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 2.2vw, 1.95rem);
    font-weight: 640;
    letter-spacing: -0.045em;
    text-transform: none;
    background: none;
    color: var(--color-fg);
    text-align: left;
    width: auto;
}

.panel-page-header__subtitle,
.settings-page__subtitle {
    margin: 0;
    text-align: left;
    max-width: 40rem;
    color: var(--color-fg-muted);
    font-size: 0.9375rem;
}

.panel-card,
.settings-page__card,
.settings-page__card.panel-card,
.glass-card,
.card-solid,
.hits-table-wrap,
.build-page__shell {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.012) 100%), var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 18px 40px -28px rgba(0, 0, 0, 0.75);
}

.panel-card:hover,
.settings-page__card:hover {
    border-color: rgba(183, 148, 246, 0.22);
    transform: none;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 22px 48px -26px rgba(0, 0, 0, 0.8);
}

.stat-card,
#dashStatCards > .card-solid {
    border-radius: var(--radius-lg);
    background: var(--color-bg-card);
}

.stat-card::after,
#dashStatCards > .card-solid::after {
    height: 1px;
    background: linear-gradient(90deg, var(--color-primary), transparent 70%);
    opacity: 0.85;
}

.hits-table th,
.hits-table thead th {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--color-fg-subtle);
    background: rgba(255, 255, 255, 0.02);
}

.hits-table tbody tr:hover {
    background: rgba(183, 148, 246, 0.05);
}

.logs-toolbar-input,
.panel-input,
.form-group input,
.form-group select,
.settings-page__input,
.auth-page__input,
.build-page__input,
.build-page__loader-input {
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--color-border-strong);
    color: var(--color-fg);
    font-family: var(--font-sans);
}

.logs-toolbar-input:focus,
.panel-input:focus,
.form-group input:focus,
.form-group select:focus,
.settings-page__input:focus,
.auth-page__input:focus,
.build-page__input:focus,
.build-page__loader-input:focus {
    outline: none;
    border-color: rgba(183, 148, 246, 0.65);
    box-shadow: var(--focus-ring);
}

.settings-page__btn,
.settings-page__btn--primary {
    background: var(--gradient-primary);
    color: #140c1e;
    box-shadow: 0 10px 24px -10px var(--color-primary-glow);
}

.settings-page__btn--secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-fg);
    border: 1px solid var(--color-border-strong);
    box-shadow: none;
}

.settings-page__btn--secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(183, 148, 246, 0.35);
    color: var(--color-fg);
}

.build-page__shell {
    padding: 1.6rem 1.35rem 1.8rem;
}

.build-page__step {
    border-radius: 0.7rem;
    background: var(--gradient-primary);
    color: #140c1e;
    box-shadow: 0 8px 18px -8px var(--color-primary-glow);
}

.build-page__section-title {
    font-family: var(--font-display);
    letter-spacing: -0.03em;
}

.build-page__submit {
    background: var(--gradient-primary);
    color: #140c1e;
    border-radius: 0.8rem;
    letter-spacing: -0.02em;
    text-transform: none;
    font-family: var(--font-display);
    font-weight: 650;
    box-shadow: 0 14px 32px -14px var(--color-primary-glow);
}

.build-page__upload {
    border-radius: var(--radius-lg);
    border: 1px dashed rgba(183, 148, 246, 0.28);
}

.build-page__upload:hover,
.build-page__upload.drag-over,
.build-page__upload--has-file {
    border-color: rgba(183, 148, 246, 0.55);
    background: var(--color-primary-soft);
}

.build-page__range::-webkit-slider-thumb {
    background: linear-gradient(145deg, #cbb2ff, #7c6af2);
    border: 2px solid #1a1424;
}

.auth-page__kicker {
    margin: 0 0 0.55rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.auth-page__card {
    border-radius: 1.15rem;
    clip-path: none;
    padding: 1.75rem 1.6rem 1.6rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)), var(--color-bg-card);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 28px 60px -28px rgba(0, 0, 0, 0.85);
}

.auth-page__card::before {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.auth-page__brand-text h1 {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 650;
    letter-spacing: -0.045em;
}

.auth-page__submit {
    border-radius: 0.8rem;
    clip-path: none;
    text-transform: none;
    letter-spacing: -0.02em;
    font-family: var(--font-display);
    font-weight: 650;
    color: #140c1e;
}

#remotePanelRoot .remote-tab {
    border-radius: 0.6rem;
    font-weight: 550;
}

#remotePanelRoot .remote-tab--active {
    background: var(--color-primary-soft);
    color: var(--color-fg);
    border-color: rgba(183, 148, 246, 0.4);
    box-shadow: inset 0 0 0 1px rgba(183, 148, 246, 0.2);
}

.settings-page {
    --st-accent: var(--color-primary);
    --st-glow: var(--color-primary-glow);
}

.spread-build-progress__bar,
#remotePanelRoot .remote-exe-upload__fill {
    background: var(--gradient-primary);
}

/* ── Phone / narrow layout — keep desktop rail ≥1024px unchanged ── */
@media (max-width: 1023px) {
    .panel-topbar__user-btn {
        min-height: 44px;
    }

    .hits-table-wrap,
    .hits-table-wrap__scroll,
    .overflow-x-auto,
    .log-data-table-wrap,
    .discord-tokens-table-wrap {
        max-width: 100%;
        min-width: 0;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 767.98px) {
    :root {
        --space-page: 0.875rem;
    }

    .panel-shell__inner {
        padding: var(--space-page);
    }

    .panel-topbar__inner {
        padding: 0 0.75rem;
        gap: 0.5rem;
    }

    .panel-topbar__online-label {
        display: none;
    }

    .panel-topbar__license-label {
        display: none;
    }

    .panel-topbar__license {
        max-width: 11.5rem;
        padding: 0.25rem 0.4rem;
    }

    .panel-topbar__user-btn {
        padding: 0.25rem 0.4rem;
    }

    .panel-page-header__title,
    .settings-page__title,
    .build-page__title,
    .hits-page__title {
        font-size: 1.45rem;
    }

    .hits-page__head {
        flex-wrap: wrap;
        align-items: stretch;
    }

    .hits-page__refresh,
    .logs-download-all-btn,
    .hits-detail__btn,
    .panel-btn-sm,
    .panel-btn-primary,
    .btn-primary,
    .auth-page__submit,
    .build-page__submit,
    .settings-page__btn {
        min-height: 44px;
    }

    .hits-table {
        table-layout: auto;
        width: max-content;
        min-width: 44rem;
        max-width: none;
    }

    .admin-table,
    #active-hwid-table,
    #blocked-hwid-table,
    .panel-table {
        min-width: 36rem;
    }

    .hits-detail-kv {
        grid-template-columns: 1fr;
    }

    .auth-page__form-wrap {
        padding: 1.15rem 0.875rem 1.5rem;
        max-width: 100%;
    }

    .auth-page__card {
        padding: 1.25rem 1rem 1.15rem;
        max-width: 100%;
    }

    .auth-page__input,
    .auth-page__submit {
        min-height: 44px;
        box-sizing: border-box;
    }

    .build-page__shell {
        padding: 1.15rem 0.95rem 1.35rem;
    }

    .build-page__input,
    .build-page__loader-input,
    .panel-input,
    .form-group input,
    .form-group select,
    .settings-page__input,
    .logs-toolbar-input {
        min-height: 44px;
        box-sizing: border-box;
    }

    .logs-toolbar-row {
        flex-direction: column;
        align-items: stretch;
    }

    .logs-download-all-btn {
        width: 100%;
        justify-content: center;
    }

    #remotePanelRoot.remote-layout,
    #remotePanelRoot .remote-main,
    #remotePanelRoot .remote-sidebar {
        min-height: 0;
        max-height: none;
    }

    #remotePanelRoot .remote-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    #remotePanelRoot .remote-tabs {
        width: 100%;
    }

    #remotePanelRoot .remote-tab {
        flex: 1 1 calc(50% - 0.45rem);
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        white-space: normal;
        text-align: center;
    }

    #remotePanelRoot .remote-toolbar__actions {
        margin-left: 0;
        width: 100%;
        justify-content: space-between;
    }

    #remotePanelRoot .remote-client {
        min-height: 44px;
    }

    #remotePanelRoot .remote-shell-in {
        flex-direction: column;
        align-items: stretch;
    }

    #remotePanelRoot .remote-shell-in input,
    #remotePanelRoot .remote-exe-grid input,
    #remotePanelRoot .remote-exe-grid textarea {
        min-height: 44px;
        width: 100%;
    }

    #remotePanelRoot .remote-exe-actions,
    #remotePanelRoot .remote-exe-actions button {
        width: 100%;
    }

    #remotePanelRoot .remote-exe-actions button {
        min-height: 44px;
    }

    .hits-metric__value {
        font-size: 1.45rem;
    }
}


