:root {
            --primary: #E74C3C;
            --accent: #27AE60;
            --bg: #FAFAFA;
            --surface: #FFFFFF;
            --text: #2C3E50;
            --text-light: #7F8C8D;
            --border: #ECF0F1;
            --shadow: rgba(0, 0, 0, 0.08);
            --shadow-hover: rgba(0, 0, 0, 0.12);
            --spacing-xs: 4px;
            --spacing-sm: 8px;
            --spacing-md: 16px;
            --spacing-lg: 24px;
            --spacing-xl: 32px;
            --spacing-2xl: 48px;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            background: var(--bg);
            color: var(--text);
            line-height: 1.6;
            min-height: 100vh;
        }

        .app-header {
            background: var(--surface);
            border-bottom: 1px solid var(--border);
            padding: var(--spacing-md) var(--spacing-lg);
            box-shadow: 0 2px 8px var(--shadow);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .header-content {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: var(--spacing-sm);
            font-size: clamp(18px, 3vw, 24px);
            font-weight: 700;
            color: var(--text);
        }

        .logo-icon {
            font-size: clamp(24px, 4vw, 32px);
        }

        .header-stats {
            display: flex;
            gap: var(--spacing-lg);
            align-items: center;
        }

        .stat-item {
            text-align: center;
        }

        .stat-value {
            font-family: 'JetBrains Mono', monospace;
            font-size: clamp(18px, 3vw, 24px);
            font-weight: 600;
            color: var(--primary);
        }

        .stat-label {
            font-size: clamp(11px, 2vw, 13px);
            color: var(--text-light);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .main-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: var(--spacing-xl) var(--spacing-md);
        }

        .grid-layout {
            display: grid;
            grid-template-columns: 1fr;
            gap: var(--spacing-lg);
        }

        @media (min-width: 768px) {
            .grid-layout {
                grid-template-columns: 1fr 1fr;
            }
        }

        .card {
            background: var(--surface);
            border-radius: 16px;
            padding: var(--spacing-xl);
            box-shadow: 0 4px 16px var(--shadow);
            border: 1px solid var(--border);
        }

        .card-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: var(--spacing-lg);
        }

        .card-title {
            font-size: clamp(18px, 3vw, 22px);
            font-weight: 600;
            color: var(--text);
        }

        .timer-card {
            grid-column: 1 / -1;
            text-align: center;
        }

        .timer-display {
            margin: var(--spacing-xl) 0;
        }

        .timer-time {
            font-family: 'JetBrains Mono', monospace;
            font-size: clamp(64px, 15vw, 120px);
            font-weight: 600;
            color: var(--text);
            line-height: 1;
            letter-spacing: -2px;
        }

        .timer-session-type {
            font-size: clamp(16px, 3vw, 20px);
            color: var(--text-light);
            margin-top: var(--spacing-md);
            text-transform: uppercase;
            letter-spacing: 2px;
            font-weight: 500;
        }

        .timer-controls {
            display: flex;
            gap: var(--spacing-md);
            justify-content: center;
            flex-wrap: wrap;
            margin-top: var(--spacing-xl);
        }

        .btn {
            font-family: 'Inter', sans-serif;
            font-size: clamp(14px, 2.5vw, 16px);
            font-weight: 600;
            padding: var(--spacing-md) var(--spacing-xl);
            border: none;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
            min-height: 44px;
            min-width: 44px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: var(--spacing-sm);
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px var(--shadow-hover);
        }

        .btn:active {
            transform: scale(0.97);
        }

        .btn-primary {
            background: var(--primary);
            color: white;
            box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
        }

        .btn-primary:hover {
            background: #C0392B;
            box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
        }

        .btn-secondary {
            background: var(--surface);
            color: var(--text);
            border: 2px solid var(--border);
        }

        .btn-secondary:hover {
            border-color: var(--primary);
            color: var(--primary);
        }

        .btn-accent {
            background: var(--accent);
            color: white;
            box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
        }

        .btn-accent:hover {
            background: #229954;
            box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
        }

        .timer-settings {
            display: flex;
            gap: var(--spacing-md);
            justify-content: center;
            flex-wrap: wrap;
            margin-top: var(--spacing-lg);
            padding-top: var(--spacing-lg);
            border-top: 1px solid var(--border);
        }

        .setting-btn {
            font-size: clamp(13px, 2.5vw, 14px);
            padding: var(--spacing-sm) var(--spacing-md);
            background: var(--bg);
            color: var(--text-light);
            border: 1px solid var(--border);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            min-height: 44px;
        }

        .setting-btn:hover {
            background: var(--surface);
            color: var(--text);
            border-color: var(--primary);
        }

        .setting-btn:active {
            transform: scale(0.97);
        }

        .setting-btn.active {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }

        .task-form {
            display: flex;
            gap: var(--spacing-sm);
            margin-bottom: var(--spacing-lg);
        }

        .task-input {
            flex: 1;
            font-family: 'Inter', sans-serif;
            font-size: clamp(14px, 2.5vw, 16px);
            padding: var(--spacing-md);
            border: 2px solid var(--border);
            border-radius: 12px;
            background: var(--bg);
            color: var(--text);
            transition: all 0.2s ease;
            min-height: 44px;
        }

        .task-input:focus {
            outline: none;
            border-color: var(--primary);
            background: var(--surface);
            box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
        }

        .task-input::placeholder {
            color: var(--text-light);
        }

        .btn-icon {
            min-width: 44px;
            padding: var(--spacing-md);
            font-size: 20px;
        }

        .task-list {
            list-style: none;
        }

        .task-item {
            display: flex;
            align-items: center;
            gap: var(--spacing-md);
            padding: var(--spacing-md);
            border-radius: 12px;
            margin-bottom: var(--spacing-sm);
            background: var(--bg);
            border: 1px solid var(--border);
            transition: all 0.2s ease;
        }

        .task-item:hover {
            background: var(--surface);
            box-shadow: 0 2px 8px var(--shadow);
        }

        .task-checkbox {
            width: 24px;
            height: 24px;
            min-width: 24px;
            border: 2px solid var(--border);
            border-radius: 6px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            background: var(--surface);
        }

        .task-checkbox:hover {
            border-color: var(--accent);
        }

        .task-checkbox:active {
            transform: scale(0.97);
        }

        .task-checkbox.checked {
            background: var(--accent);
            border-color: var(--accent);
        }

        .task-checkbox.checked::after {
            content: '✓';
            color: white;
            font-weight: 700;
            font-size: 14px;
        }

        .task-text {
            flex: 1;
            font-size: clamp(14px, 2.5vw, 16px);
            color: var(--text);
        }

        .task-text.completed {
            text-decoration: line-through;
            color: var(--text-light);
        }

        .task-pomodoros {
            display: flex;
            gap: var(--spacing-xs);
            align-items: center;
        }

        .pomodoro-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--border);
        }

        .pomodoro-dot.filled {
            background: var(--primary);
        }

        .task-delete {
            width: 32px;
            height: 32px;
            min-width: 32px;
            border: none;
            background: transparent;
            color: var(--text-light);
            cursor: pointer;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            transition: all 0.2s ease;
        }

        .task-delete:hover {
            background: #FEE;
            color: var(--primary);
        }

        .task-delete:active {
            transform: scale(0.97);
        }

        .empty-state {
            text-align: center;
            padding: var(--spacing-2xl) var(--spacing-md);
            color: var(--text-light);
        }

        .empty-state-icon {
            font-size: 48px;
            margin-bottom: var(--spacing-md);
            opacity: 0.5;
        }

        .empty-state-text {
            font-size: clamp(14px, 2.5vw, 16px);
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: var(--spacing-md);
        }

        .stat-card {
            background: var(--bg);
            padding: var(--spacing-md);
            border-radius: 12px;
            text-align: center;
            border: 1px solid var(--border);
        }

        .stat-card-value {
            font-family: 'JetBrains Mono', monospace;
            font-size: clamp(24px, 5vw, 32px);
            font-weight: 600;
            color: var(--primary);
            margin-bottom: var(--spacing-xs);
        }

        .stat-card-label {
            font-size: clamp(12px, 2.5vw, 14px);
            color: var(--text-light);
        }

        .progress-bar {
            width: 100%;
            height: 8px;
            background: var(--border);
            border-radius: 4px;
            overflow: hidden;
            margin-top: var(--spacing-md);
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--primary), var(--accent));
            border-radius: 4px;
            width: 0%;
            transition: width 0.3s ease;
        }

        .session-history {
            list-style: none;
            max-height: 300px;
            overflow-y: auto;
        }

        .session-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: var(--spacing-md);
            border-bottom: 1px solid var(--border);
            font-size: clamp(13px, 2.5vw, 14px);
        }

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

        .session-time {
            color: var(--text-light);
            font-size: clamp(12px, 2.5vw, 13px);
        }

        .session-type {
            padding: var(--spacing-xs) var(--spacing-sm);
            border-radius: 6px;
            font-size: clamp(11px, 2vw, 12px);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .session-type.focus {
            background: rgba(231, 76, 60, 0.1);
            color: var(--primary);
        }

        .session-type.break {
            background: rgba(39, 174, 96, 0.1);
            color: var(--accent);
        }

        .badge {
            display: inline-flex;
            align-items: center;
            padding: var(--spacing-xs) var(--spacing-sm);
            border-radius: 6px;
            font-size: clamp(11px, 2vw, 12px);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .badge-primary {
            background: rgba(231, 76, 60, 0.1);
            color: var(--primary);
        }

        .badge-accent {
            background: rgba(39, 174, 96, 0.1);
            color: var(--accent);
        }

        @media (max-width: 767px) {
            .header-stats {
                gap: var(--spacing-md);
            }

            .stat-item {
                min-width: 60px;
            }

            .timer-card {
                padding: var(--spacing-lg);
            }

            .card {
                padding: var(--spacing-lg);
            }
        }

        @media (max-width: 480px) {
            .header-content {
                flex-direction: column;
                gap: var(--spacing-md);
                align-items: flex-start;
            }

            .header-stats {
                width: 100%;
                justify-content: space-around;
            }
        }

        .notification {
            position: fixed;
            bottom: var(--spacing-lg);
            right: var(--spacing-lg);
            background: var(--surface);
            padding: var(--spacing-md) var(--spacing-lg);
            border-radius: 12px;
            box-shadow: 0 8px 24px var(--shadow-hover);
            border: 1px solid var(--border);
            display: none;
            align-items: center;
            gap: var(--spacing-md);
            max-width: 320px;
            z-index: 1000;
        }

        .notification.show {
            display: flex;
            animation: slideIn 0.3s ease;
        }

        @keyframes slideIn {
            from {
                transform: translateX(400px);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        .notification-icon {
            font-size: 24px;
        }

        .notification-content {
            flex: 1;
        }

        .notification-title {
            font-weight: 600;
            margin-bottom: var(--spacing-xs);
        }

        .notification-text {
            font-size: clamp(13px, 2.5vw, 14px);
            color: var(--text-light);
        }

        @keyframes success-flash {
            0%, 100% { background: var(--bg); }
            50% { background: rgba(39, 174, 96, 0.1); }
        }

        .success-flash {
            animation: success-flash 0.6s ease;
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-10px); }
            75% { transform: translateX(10px); }
        }

        .shake {
            animation: shake 0.4s ease;
        }

#__wc_fb_btn{position:fixed;bottom:18px;right:18px;z-index:99999;background:#1a1a2e;border:1px solid rgba(255,255,255,0.12);border-radius:24px;padding:8px 14px;font-size:12px;color:#e2e8f0;cursor:pointer;font-family:system-ui,-apple-system,sans-serif;box-shadow:0 4px 16px rgba(0,0,0,0.3);display:flex;align-items:center;gap:6px;transition:all 0.2s;user-select:none}
#__wc_fb_btn:hover{background:#252540;border-color:rgba(255,255,255,0.2);transform:translateY(-1px)}
#__wc_fb_panel{position:fixed;bottom:64px;right:18px;z-index:99999;background:#0f1624;border:1px solid #1a2d45;border-radius:12px;padding:16px;width:260px;box-shadow:0 8px 32px rgba(0,0,0,0.5);display:none;font-family:system-ui,-apple-system,sans-serif}
#__wc_fb_panel.open{display:block}
.__wc_fb_title{font-size:13px;color:#e2e8f0;margin-bottom:12px;font-weight:500}
.__wc_fb_emojis{display:flex;justify-content:space-around;margin-bottom:12px}
.__wc_fb_emoji{font-size:26px;cursor:pointer;padding:6px;border-radius:8px;transition:all 0.15s;border:2px solid transparent}
.__wc_fb_emoji:hover{background:rgba(255,255,255,0.08);transform:scale(1.1)}
.__wc_fb_emoji.selected{border-color:rgba(196,168,74,0.6);background:rgba(196,168,74,0.08)}
.__wc_fb_prompt{font-size:11px;color:#4a6a90;margin-bottom:6px}
.__wc_fb_ta{width:100%;background:rgba(255,255,255,0.04);border:1px solid #1e2d45;border-radius:6px;padding:8px;color:#e2e8f0;font-size:11px;font-family:system-ui,-apple-system,sans-serif;resize:none;outline:none;box-sizing:border-box;line-height:1.5}
.__wc_fb_ta:focus{border-color:#2a4060}
.__wc_fb_actions{display:flex;gap:6px;margin-top:8px;justify-content:flex-end}
.__wc_fb_skip{font-size:11px;color:#2a4060;cursor:pointer;padding:4px 8px;background:transparent;border:none}
.__wc_fb_send{font-size:11px;color:#c4a84a;background:rgba(196,168,74,0.08);border:0.5px solid rgba(196,168,74,0.3);border-radius:4px;padding:5px 12px;cursor:pointer;font-family:system-ui}
.__wc_fb_send:hover{background:rgba(196,168,74,0.15)}
.__wc_fb_thanks{text-align:center;padding:8px 0;font-size:13px;color:#4ade80}