
        * { box-sizing: border-box; }
        
        
        
        h1 { font-size: 24px; margin: 0 0 4px; }
        .subtitle { font-size: 14px; color: #6b7280; margin: 0 0 20px; }
        h2 { font-size: 14px; margin: 0 0 12px; color: #555; text-transform: uppercase; letter-spacing: 0.5px; }
        
        .topbar h1 { font-size: 18px; margin: 0; }
        
        
        .nav-links a:hover { background: #f0f4ff; }
        .nav-links a.active { background: #e6efff; color: #2563eb; font-weight: 600; }
        
        .logout-btn:hover { background: #fff5f5; }
        /* Дашборд */
        .dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
        .dash-item { background: white; border-radius: 12px; padding: 16px 8px; text-align: center; text-decoration: none; color: #333; box-shadow: 0 2px 8px rgba(0,0,0,0.04); transition: transform 0.15s, box-shadow 0.15s; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 1px solid #e5e7eb; }
        .dash-item:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(74,108,247,0.15); border-color: #4a6cf7; color: #4a6cf7; }
        .dash-icon { font-size: 28px; }
        .dash-label { font-size: 12px; font-weight: 600; }
        /* Одно слово */
        #wordCard { background: linear-gradient(135deg, #4a6cf7, #3a5ce7); color: white; border-radius: 12px; padding: 20px; margin-bottom: 20px; box-shadow: 0 4px 15px rgba(74,108,247,0.3); display: none; }
        #wordCard h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; opacity: 0.9; display: flex; align-items: center; gap: 8px; }
        #wordCard .word-question { font-size: 20px; font-weight: 700; margin-bottom: 16px; line-height: 1.3; }
        #wordCard .word-input-row { display: flex; gap: 8px; }
        #wordCard input { flex: 1; padding: 12px 16px; border: none; border-radius: 8px; font-size: 16px; outline: none; }
        #wordCard button { background: white; color: #4a6cf7; border: none; border-radius: 8px; padding: 0 20px; font-weight: 700; cursor: pointer; font-size: 15px; transition: transform 0.1s; }
        #wordCard button:hover { transform: scale(1.02); }
        #wordCard .word-success { font-size: 18px; font-weight: 600; margin-top: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
        #wordCard .word-success span { background: rgba(255,255,255,0.2); padding: 4px 12px; border-radius: 20px; font-size: 20px; }
        /* Мэтчи */
        .match-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; border: 1px solid #e5e7eb; background: white; margin-bottom: 10px; transition: border-color 0.15s, box-shadow 0.15s; }
        .match-card:hover { border-color: #4a6cf7; box-shadow: 0 2px 8px rgba(74,108,247,0.08); }
        .match-avatar { width: 56px; height: 56px; border-radius: 50%; background: #e5e7eb; background-size: cover; background-position: center; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #9ca3af; font-size: 24px; }
        .match-info { flex: 1; min-width: 0; }
        .match-name { font-weight: 600; font-size: 15px; }
        .match-meta { font-size: 12px; color: #6b7280; margin-top: 2px; }
        .match-actions { display: flex; gap: 6px; flex-shrink: 0; }
        .match-actions a { display: inline-block; font-size: 13px; padding: 7px 12px; border-radius: 6px; text-decoration: none; background: #4a6cf7; color: white; font-weight: 600; }
        .match-actions a:hover { background: #3a5ce7; }
        .empty { text-align: center; padding: 32px 16px; color: #6b7280; font-size: 14px; }
        .empty .big { font-size: 40px; margin-bottom: 8px; }
        #log { background: #1e1e1e; color: #d4d4d4; padding: 10px; border-radius: 6px; font-family: Consolas, monospace; font-size: 11px; height: 100px; overflow-y: auto; white-space: pre-wrap; margin-top: 14px; }
        .log-error { color: #f48771; } .log-ok { color: #4ec9b0; } .log-info { color: #9cdcfe; }
        @media (max-width: 640px) {
            
            .dash-grid { grid-template-columns: repeat(2, 1fr); }
            
            
            .nav-links a, 
            .match-card { flex-direction: column; align-items: stretch; }
            .match-actions a { width: 100%; text-align: center; min-height: 44px; display: flex; align-items: center; justify-content: center; }
        }
    