:root {
    /* Modern Color Palette */
    --bg-body: #0a0e27;       /* Even darker background */
    --bg-panel: #151932;      /* Improved panel color */
    --bg-input: #1f2540;      /* Better input background */
    
    --text-main: #f0f4f8;     /* Brighter main text */
    --text-muted: #8b95a7;    /* Better contrast muted text */
    
    /* Accent Colors */
    --accent-primary: #6366f1; /* Indigo */
    --accent-secondary: #8b5cf6; /* Purple */
    --accent-glow: rgba(99, 102, 241, 0.2);
    
    /* Status Colors */
    --success: #10b981;       /* Better green */
    --run: #f59e0b;           /* Better amber */
    --error: #ef4444;         /* Error red */
    --warning: #f97316;       /* Warning orange */
    
    --border: #2d3748;        /* Better border color */
    --radius: 12px;           /* Rounded corners */
    --shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 4px 12px -2px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    line-height: 1.5;
}

/* ================= HEADER ================= */
header {
    padding: 0 30px;
    height: 70px;
    background: linear-gradient(135deg, var(--bg-body) 0%, rgba(21, 25, 50, 0.5) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 25px;
}

h1 {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #a8b7d1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.7px;
    margin: 0;
    white-space: nowrap;
}

/* Mode Toggle Button */
#mode-toggle {
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

#mode-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

#mode-toggle:active {
    transform: translateY(0);
}

/* Stats Dashboard */
#global-stats {
    display: flex;
    gap: 12px;
    background: rgba(31, 37, 64, 0.4);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.stat-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    line-height: 1;
}

.stat-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.9rem;
    background: linear-gradient(135deg, var(--run) 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* User Section */
#user-section {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-left: 25px;
    border-left: 1px solid rgba(99, 102, 241, 0.3);
}

#user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 0 2px var(--bg-body), 0 4px 12px rgba(99, 102, 241, 0.3);
    object-fit: cover;
}

#user-name {
    font-weight: 700;
    font-size: 0.95rem;
}

/* ================= MAIN LAYOUT ================= */
.container {
    display: flex;
    flex: 1;
    padding: 25px;
    gap: 25px;
    height: calc(100vh - 70px);
    box-sizing: border-box;
    overflow: hidden;
}

/* --- SIDEBAR CARD --- */
.sidebar {
    width: 380px;
    background: linear-gradient(135deg, var(--bg-panel) 0%, rgba(21, 25, 50, 0.8) 100%);
    border-radius: var(--radius);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    overflow-y: auto;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.badge-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: rgba(31, 37, 64, 0.6);
    color: var(--text-muted);
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: var(--transition);
    text-transform: uppercase;
}

.badge:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--accent-primary);
    color: var(--text-main);
}

.lvl {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(139, 92, 246, 0.15) 100%);
    color: #c4b5fd;
    border-color: rgba(99, 102, 241, 0.4);
}

h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-main);
    letter-spacing: -0.5px;
    font-weight: 800;
}

.description {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* --- EDITOR & CONSOLE AREA --- */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: transparent;
    overflow: hidden;
}

/* Editor Card */
#editor {
    flex: 2;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
    background-color: #1d1f21;
}

/* Disable font ligatures in editor */
#editor .ace_editor,
#editor .ace_content,
#editor .ace_text-layer {
    font-variant-ligatures: none !important;
    font-feature-settings: "liga" 0, "calt" 0 !important;
    -webkit-font-feature-settings: "liga" 0, "calt" 0 !important;
    -moz-font-feature-settings: "liga" 0, "calt" 0 !important;
}

.ace_gutter {
    background: #252526 !important;
    color: #666 !important;
}

/* Console Card */
.console-wrapper {
    flex: 1;
    background: linear-gradient(135deg, #0d0f1b 0%, #141820 100%);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.toolbar {
    padding: 14px 18px;
    background: linear-gradient(90deg, #0a0c15 0%, #121520 100%);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.status-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.timer-display {
    font-family: 'JetBrains Mono', monospace;
    color: var(--run);
    font-weight: 700;
    margin: 0 auto 0 20px;
    font-size: 0.95rem;
}

#console {
    flex: 1;
    padding: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: #d4d4d4;
    overflow-y: auto;
    line-height: 1.6;
}

#console::-webkit-scrollbar {
    width: 8px;
}

#console::-webkit-scrollbar-track {
    background: transparent;
}

#console::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 4px;
}

#console::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}

/* ================= BUTTONS ================= */
.btn-group {
    display: flex;
    gap: 12px;
}

button {
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

button:not(:disabled):hover {
    transform: translateY(-2px);
}

button:not(:disabled):active {
    transform: translateY(0);
}

.btn-run {
    background: linear-gradient(135deg, var(--run) 0%, #fbbf24 100%);
    color: #451a03;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    font-weight: 700;
}

.btn-run:not(:disabled):hover {
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-submit {
    background: linear-gradient(135deg, var(--success) 0%, #06b6d4 100%);
    color: #051024;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    font-weight: 700;
}

.btn-submit:not(:disabled):hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-stop {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    font-weight: 700;
}

.btn-stop:hover {
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.btn-skip {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    transition: var(--transition);
}

.btn-skip:hover {
    border-color: var(--accent-primary);
    color: var(--text-main);
    background: rgba(99, 102, 241, 0.1);
}

.btn-small {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    padding: 7px 14px;
    font-size: 0.8rem;
    transition: var(--transition);
}

.btn-small:hover:not(:disabled) {
    border-color: var(--accent-primary);
    color: var(--text-main);
    background: rgba(99, 102, 241, 0.1);
}

/* ================= UTILS & OVERLAYS ================= */
.hidden { display: none !important; }

/* Loader */
#loader {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    color: var(--text-main);
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border);
    border-top: 4px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Login Overlay */
#login-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--bg-body) 0%, rgba(21, 25, 50, 0.8) 100%);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.login-box {
    background: linear-gradient(135deg, var(--bg-panel) 0%, rgba(21, 25, 50, 0.8) 100%);
    padding: 50px;
    border-radius: 16px;
    border: 1px solid var(--border);
    text-align: center;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
}

.login-box h1 {
    font-size: 2rem;
    margin-bottom: 12px;
    color: var(--text-main);
    background: linear-gradient(135deg, #fff 0%, #d0d5e3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.login-box p {
    color: var(--text-muted);
    margin-bottom: 35px;
    font-size: 1rem;
    line-height: 1.6;
}

.btn-google {
    background: white;
    color: #1f2937;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 24px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    width: 100%;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-google:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-google:active {
    transform: translateY(0);
}

.btn-google img {
    width: 20px;
    height: 20px;
}

/* Navigation Button Style */
.btn-nav {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.4);
    transition: var(--transition);
    margin-left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-nav:hover {
    background: rgba(99, 102, 241, 0.25);
    color: #e0e7ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.6);
}

/* Authentication error message styling */
.auth-error-message {
    display: none;
    color: var(--error);
    margin-top: 20px;
    padding: 16px 20px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: left;
}

.auth-error-message strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
    color: #fca5a5;
}

.auth-error-message em {
    color: #fbbf24;
    font-style: normal;
    font-weight: 600;
}

.auth-error-message a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
}

.auth-error-message a:hover {
    text-decoration: underline;
}

/* --- SEARCH BAR --- */
.search-wrapper {
    position: relative;
    width: 280px;
}

#puzzle-search {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    color: var(--text-main);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
    box-sizing: border-box;
}

#puzzle-search:focus {
    border-color: var(--accent-primary);
    background: var(--bg-input);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

#puzzle-search::placeholder {
    color: var(--text-muted);
}

/* --- DROPDOWN RESULTS --- */
#search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 320px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    max-height: 350px;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    margin-top: 0;
}

.search-item {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.search-item:last-child {
    border-bottom: none;
}

.search-item:hover {
    background: rgba(99, 102, 241, 0.1);
}

.item-id {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: var(--accent-primary);
    font-size: 0.9rem;
}

.item-name {
    color: var(--text-muted);
    font-size: 0.8rem;
}

#search-results::-webkit-scrollbar {
    width: 6px;
}

#search-results::-webkit-scrollbar-track {
    background: transparent;
}

#search-results::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

#search-results::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.login-box {
    background: var(--bg-panel);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border);
    text-align: center;
    max-width: 380px;
    width: 100%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

.login-box h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--text-main);
    background: none;
    -webkit-text-fill-color: var(--text-main);
}

.login-box p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.btn-google {
    background: white;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    width: 100%;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
}

.btn-google:hover { background: #f1f5f9; transform: translateY(-2px); }
.btn-google img { width: 20px; height: 20px; }

/* Authentication error message styling */
.auth-error-message {
    color: #f87171;
    margin-top: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Navigation Button Style */
.btn-nav {
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.15); /* Indigo tint */
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
    transition: all 0.2s;
    margin-left: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-nav:hover {
    background: rgba(99, 102, 241, 0.25);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2);
}

/* Ensure hidden works clearly */
.hidden { display: none !important; }

/* --- SEARCH BAR --- */
.search-wrapper {
    position: relative; /* Anchor for absolute results */
    width: 250px;
}

#puzzle-search {
    width: 100%;
    padding: 8px 12px;
    background: var(--bg-input);
    color: var(--text-main);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
}

#puzzle-search:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

/* --- DROPDOWN RESULTS --- */
#search-results {
    position: absolute;
    top: 110%; /* Just below input */
    left: 0;
    right: 0;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 5000;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.search-item {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-item:last-child { border-bottom: none; }
.search-item:hover { background: var(--bg-input); }

.item-id { font-family: 'JetBrains Mono', monospace; font-weight: bold; color: var(--accent-primary); }

/* Test Mode Styles */
.screen-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    min-height: 100vh;
}

.test-input-container,
.test-info-container {
    background: rgba(20, 20, 35, 0.6);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.test-input-container h2,
.test-info-container h2 {
    color: #ffd700;
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.8rem;
}

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

.test-input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.3s ease;
}

.test-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffd700;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
}

.error-message {
    color: #ff6b6b;
    text-align: center;
    padding: 12px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
}

.test-stats {
    display: flex;
    gap: 30px;
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.stat-value {
    color: #ffd700;
    font-size: 1.4rem;
    font-weight: bold;
}

.test-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.6;
}

.test-puzzles-preview {
    margin: 30px 0;
}

.test-puzzles-preview h3 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.puzzles-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.puzzle-item-test {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.puzzle-item-test .puzzle-number {
    color: #ffd700;
    font-weight: bold;
    font-family: 'JetBrains Mono', monospace;
    min-width: 40px;
}

.puzzle-item-test .puzzle-name {
    flex: 1;
    margin-left: 20px;
}

.test-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.button-success,
.button-secondary {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button-success {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
}

.button-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffd700;
}

.back-button {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #ffd700;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: #ffd700;
}

.mode-toggle-container {
    display: flex;
    gap: 12px;
    align-items: center;
}

#test-main {
    color: #fff;
}

/* Test Mode End Test Button */
.btn-end-test {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #ffd700;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-end-test:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: #ffd700;
}

/* Test puzzle list in sidebar */
.test-puzzle-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.puzzle-sidebar-item {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.puzzle-sidebar-item:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
    color: #ffd700;
}

.puzzle-sidebar-item.active {
    background: rgba(255, 215, 0, 0.15);
    border-color: #ffd700;
    color: #ffd700;
    font-weight: bold;
}

.puzzle-status-icon {
    font-size: 1rem;
    min-width: 18px;
}

.test-results-container {
    background: rgba(20, 20, 35, 0.6);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 40px;
    max-width: 600px;
    text-align: center;
}

.test-results-container h2 {
    color: #ffd700;
    margin-bottom: 30px;
}

#results-summary {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    line-height: 1.8;
}

.item-name { color: var(--text-muted); font-size: 0.8rem; }

/* Scrollbar refinement */
#search-results::-webkit-scrollbar { width: 6px; }
#search-results::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

/* ===================== TEST MODE ===================== */

/* Test Overlay */
#test-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

#test-overlay.hidden {
    display: none !important;
}

.test-screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.test-screen.hidden {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.test-box {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    max-width: 600px;
    width: 90%;
    box-shadow: var(--shadow);
}

.test-box h1,
.test-box h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-main);
}

.test-box p {
    margin: 0 0 20px 0;
    color: var(--text-muted);
}

/* Test Input */
.test-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

#test-id-input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-input);
    color: var(--text-main);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

#test-id-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.test-error {
    padding: 12px;
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border-radius: 8px;
    border-left: 3px solid #ef4444;
    font-size: 0.9rem;
}

.btn-primary {
    flex: 1;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    padding: 12px 20px;
    background: var(--bg-input);
    color: var(--text-main);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.btn-secondary:hover {
    background: var(--bg-panel);
    border-color: var(--accent-primary);
}

/* Test Header */
.test-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(135deg, var(--bg-panel) 0%, rgba(21, 25, 50, 0.95) 100%);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 10;
}

.test-header-title {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-main);
    font-weight: 700;
}

.test-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.test-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 20px;
    border-left: 1px solid var(--border);
}

.test-info-id {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-yellow);
    background: rgba(251, 191, 36, 0.15);
    padding: 4px 10px;
    border-radius: 6px;
}

.test-info-desc {
    font-size: 0.9rem;
    color: var(--text-dim);
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.test-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 8px 16px;
    border-radius: 8px;
}

.test-user-label {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.test-user-email {
    font-size: 1rem;
    font-weight: 600;
    color: #60a5fa;
}

.btn-end-test {
    padding: 10px 20px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-end-test:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.btn-end-test:active {
    transform: translateY(0);
}

/* Test Execution Screen */
.test-container {
    width: 100%;
    height: calc(100% - 60px);
    margin-top: 60px;
    display: flex;
    background: var(--bg-body);
}

/* Override for execution screen - full opaque background, no blur */
#test-execution-screen {
    background: var(--bg-body);
    backdrop-filter: none;
}

#test-execution-screen .test-container {
    position: relative;
    z-index: 1;
}

.test-sidebar {
    background: var(--bg-panel);
    overflow: hidden;
    transition: width 0.3s ease, min-width 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.test-sidebar-left {
    width: 220px;
    min-width: 220px;
    border-right: 1px solid var(--border);
}

.test-sidebar-right {
    width: 280px;
    min-width: 280px;
    border-left: 1px solid var(--border);
}

.test-sidebar .sidebar-content {
    padding: 15px;
    overflow-y: auto;
    flex: 1;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.test-sidebar.collapsed {
    width: 20px !important;
    min-width: 20px !important;
}

.test-sidebar.collapsed .sidebar-content {
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Sidebar toggle buttons - simple vertical bar on the edge */
.sidebar-toggle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 0;
}

.sidebar-toggle::after {
    content: '';
    width: 4px;
    height: 40px;
    background: var(--text-muted);
    border-radius: 2px;
    transition: background 0.2s ease;
}

.sidebar-toggle:hover::after {
    background: var(--accent);
}

.sidebar-toggle-left {
    right: 0;
}

.sidebar-toggle-right {
    left: 0;
}

/* Right sidebar description styling */
.test-sidebar-right .sidebar-title {
    margin: 0 0 12px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

.test-sidebar-right #test-puzzle-description {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

.sidebar-puzzle-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: var(--bg-input);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition);
    border: 1.5px solid transparent;
}

.sidebar-puzzle-item:hover {
    background: var(--bg-body);
    border-color: var(--border);
}

.sidebar-puzzle-item.current {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.sidebar-puzzle-item.solved {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--success);
}

.sidebar-puzzle-item.solved.current {
    background: var(--success);
    color: white;
}

.sidebar-puzzle-item .puzzle-num {
    font-weight: 700;
    font-size: 0.9rem;
}

.sidebar-puzzle-item .puzzle-status {
    font-size: 0.8rem;
    margin-left: auto;
}

.test-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.test-puzzle-header {
    padding: 12px 20px;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border);
}

.test-puzzle-header h3 {
    margin: 0;
    color: var(--text-main);
    font-size: 1rem;
}

.test-editor {
    flex: 1;
    background: var(--bg-body);
    border: 1px solid var(--border);
    margin: 15px 20px;
    border-radius: 8px;
    overflow: hidden;
}

.test-console-wrapper {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    height: 220px;
    margin: 0 20px 10px 20px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.test-toolbar {
    padding: 10px 12px;
    background: var(--bg-input);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.test-toolbar .btn-group {
    display: flex;
    gap: 8px;
}

.test-toolbar .btn-run,
.test-toolbar .btn-submit,
.test-toolbar .btn-secondary {
    padding: 8px 12px;
    font-size: 0.85rem;
}

#console-test {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-muted);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.console-output {
    color: var(--text-muted);
}

.console-output.has-error {
    color: #fca5a5;
}

/* Puzzle sidebar items in test */
.puzzle-sidebar-item {
    padding: 10px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.puzzle-sidebar-item:hover {
    background: var(--bg-panel);
    border-color: var(--accent-primary);
}

.puzzle-sidebar-item.active {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--accent-primary);
    color: var(--text-main);
}

.puzzle-status-icon {
    font-weight: bold;
    min-width: 16px;
}

/* Results Summary */
.results-summary {
    background: rgba(99, 102, 241, 0.1);
    padding: 30px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    line-height: 1.8;
    color: var(--text-muted);
}

.results-summary strong {
    color: var(--text-main);
}

/* Hidden class */
.hidden {
    display: none !important;
}

/* Responsive test layout for smaller screens */
@media (max-width: 1024px) {
    .test-container {
        flex-direction: column;
    }

    .test-sidebar-left {
        width: 100% !important;
        min-width: 100% !important;
        border-right: none;
        border-bottom: 1px solid var(--border);
        max-height: 100px;
    }

    .test-sidebar-left .sidebar-content {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding: 10px 15px;
    }

    .test-sidebar-left.collapsed {
        max-height: 0;
        min-height: 0;
    }

    .test-sidebar-right {
        width: 100% !important;
        min-width: 100% !important;
        border-left: none;
        border-top: 1px solid var(--border);
        max-height: 150px;
        order: -1;
    }

    .test-sidebar-right.collapsed {
        max-height: 0;
        min-height: 0;
    }

    .sidebar-toggle-left {
        right: auto;
        left: 50%;
        top: auto;
        bottom: -12px;
        transform: translateX(-50%) rotate(90deg);
    }

    .sidebar-toggle-right {
        left: 50%;
        top: auto;
        bottom: -12px;
        transform: translateX(-50%) rotate(90deg);
    }

    .puzzle-sidebar-item {
        margin-bottom: 0;
        white-space: nowrap;
    }

    .test-editor {
        margin: 10px;
        height: 300px;
    }

    .test-console-wrapper {
        height: 180px;
        margin: 0 10px 10px 10px;
    }
}

/* ===================== CONFIRMATION MODAL ===================== */

.confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.2s ease-out;
}

.confirm-modal.hidden {
    display: none !important;
}

.confirm-modal-box {
    background: linear-gradient(135deg, var(--bg-panel) 0%, rgba(21, 25, 50, 0.95) 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    animation: scaleIn 0.2s ease-out;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.confirm-modal-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.confirm-modal-box h2 {
    margin: 0 0 12px 0;
    color: var(--text-main);
    font-size: 1.5rem;
}

.confirm-modal-box p {
    margin: 0 0 20px 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.confirm-modal-info {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.1rem;
}

.confirm-modal-buttons {
    display: flex;
    gap: 12px;
}

.confirm-modal-buttons .btn-secondary {
    flex: 1;
}

.btn-danger {
    flex: 1;
    padding: 12px 20px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.btn-danger:active {
    transform: translateY(0);
}

/* ===================== FLAG PUZZLE BUTTON & MODAL ===================== */

.btn-flag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    margin-top: 16px;
    background: transparent;
    color: var(--text-muted);
    border: 1px dashed var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-flag:hover:not(:disabled) {
    color: #fbbf24;
    border-color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
}

.btn-flag:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ===================== SAVE FOR LATER BUTTON ===================== */

.btn-save-later {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    margin-top: 8px;
    background: transparent;
    color: var(--text-muted);
    border: 1px dashed var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-save-later:hover:not(:disabled) {
    color: #60a5fa;
    border-color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
}

.btn-save-later:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-save-later.saved {
    color: #60a5fa;
    border-color: #60a5fa;
    border-style: solid;
    background: rgba(96, 165, 250, 0.15);
}

.btn-save-later.saved:hover:not(:disabled) {
    color: #ef4444;
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* ===================== SAVED PUZZLES DROPDOWN ===================== */

.saved-puzzles-wrapper {
    position: relative;
}

.btn-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-nav:hover {
    background: var(--bg-hover);
    border-color: var(--accent-yellow);
}

.count-badge {
    background: #60a5fa;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.count-badge.hidden {
    display: none;
}

.saved-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    max-height: 400px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: hidden;
}

.saved-dropdown.hidden {
    display: none;
}

.saved-dropdown-header {
    padding: 14px 16px;
    font-weight: 600;
    color: var(--text-main);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.saved-list {
    max-height: 340px;
    overflow-y: auto;
}

.empty-saved {
    padding: 24px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.saved-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.saved-item:hover {
    background: var(--bg-hover);
}

.saved-item:last-child {
    border-bottom: none;
}

.saved-item-info {
    flex: 1;
    min-width: 0;
}

.saved-item-id {
    font-weight: 600;
    color: var(--accent-yellow);
    font-size: 0.85rem;
}

.saved-item-name {
    color: var(--text-main);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.saved-item-remove {
    padding: 4px 8px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    border-radius: 4px;
    transition: var(--transition);
}

.saved-item-remove:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* Generic modal overlay for reuse */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.2s ease-out;
}

.modal-overlay.hidden {
    display: none !important;
}

.modal-box {
    background: linear-gradient(135deg, var(--bg-panel) 0%, rgba(21, 25, 50, 0.95) 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    animation: scaleIn 0.2s ease-out;
}

.modal-box h2 {
    margin: 0 0 8px 0;
    color: var(--text-main);
    font-size: 1.4rem;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.modal-buttons .btn-secondary,
.modal-buttons .btn-primary {
    flex: 1;
}

/* Flag modal specific */
.flag-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.flag-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.flag-option:hover {
    border-color: #fbbf24;
    background: rgba(251, 191, 36, 0.05);
}

.flag-option input[type="radio"] {
    accent-color: #fbbf24;
    width: 18px;
    height: 18px;
}

.flag-option span {
    color: var(--text-main);
    font-size: 0.95rem;
}

#flag-comment {
    width: 100%;
    padding: 12px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 70px;
}

#flag-comment:focus {
    outline: none;
    border-color: var(--accent-yellow);
}

#flag-comment::placeholder {
    color: var(--text-muted);
}