:root {
            --primary: #E74C3C;
            --accent: #27AE60;
            --break-color: #3498DB;
            --bg: #FAFAFA;
            --surface: #FFFFFF;
            --text: #2C3E50;
            --text-secondary: #7F8C8D;
            --border: #ECF0F1;
            --shadow: rgba(0, 0, 0, 0.08);
            --shadow-lg: rgba(0, 0, 0, 0.12);
        }

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

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

        header {
            background: var(--surface);
            border-bottom: 1px solid var(--border);
            padding: clamp(16px, 3vw, 24px);
            box-shadow: 0 2px 8px var(--shadow);
        }

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

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

        .logo {
            font-size: clamp(28px, 5vw, 36px);
            line-height: 1;
        }

        .app-name {
            font-size: clamp(20px, 4vw, 28px);
            font-weight: 700;
            color: var(--text);
            letter-spacing: -0.5px;
        }

        .settings-btn {
            background: var(--surface);
            border: 2px solid var(--border);
            border-radius: 12px;
            padding: 8px 16px;
            font-size: 20px;
            cursor: pointer;
            transition: all 0.2s ease;
            min-height: 40px;
        }

        .settings-btn:hover {
            background: var(--bg);
            border-color: var(--text-secondary);
        }

        main {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: clamp(24px, 5vw, 48px) 16px;
        }

        .timer-container {
            width: 100%;
            max-width: 480px;
            background: var(--surface);
            border-radius: 24px;
            padding: clamp(32px, 6vw, 48px);
            box-shadow: 0 8px 32px var(--shadow-lg);
        }

        .session-counter {
            text-align: center;
            margin-bottom: clamp(24px, 5vw, 32px);
            padding: 16px;
            background: linear-gradient(135deg, rgba(231, 76, 60, 0.05), rgba(39, 174, 96, 0.05));
            border-radius: 16px;
            border: 2px solid var(--border);
        }

        .session-label {
            font-size: clamp(12px, 2.5vw, 14px);
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--text-secondary);
            font-weight: 600;
            margin-bottom: 4px;
        }

        .session-count {
            font-size: clamp(32px, 6vw, 48px);
            font-weight: 700;
            color: var(--primary);
            font-family: 'JetBrains Mono', monospace;
        }

        .timer-display {
            position: relative;
            width: 100%;
            max-width: 320px;
            margin: 0 auto clamp(32px, 6vw, 48px);
        }

        .progress-ring {
            transform: rotate(-90deg);
            width: 100%;
            height: auto;
        }

        .progress-ring-circle {
            transition: stroke-dashoffset 0.3s ease;
            transform-origin: 50% 50%;
        }

        .progress-bg {
            stroke: var(--border);
            fill: none;
            stroke-width: 8;
        }

        .progress-bar {
            stroke: var(--primary);
            fill: none;
            stroke-width: 8;
            stroke-linecap: round;
            stroke-dasharray: 785.4;
            stroke-dashoffset: 0;
            transition: stroke 0.3s ease;
        }

        .progress-bar.break-mode {
            stroke: var(--break-color);
        }

        .timer-text {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
        }

        .time-display {
            font-size: clamp(48px, 12vw, 72px);
            font-weight: 600;
            font-family: 'JetBrains Mono', monospace;
            color: var(--text);
            line-height: 1;
            letter-spacing: -2px;
        }

        .timer-status {
            font-size: clamp(12px, 2.5vw, 14px);
            color: var(--text-secondary);
            margin-top: 8px;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-weight: 600;
        }

        .controls {
            display: flex;
            gap: 12px;
            justify-content: center;
            flex-wrap: wrap;
        }

        button {
            min-height: 56px;
            min-width: 56px;
            padding: 0 clamp(24px, 5vw, 32px);
            font-size: clamp(14px, 2.5vw, 16px);
            font-weight: 600;
            border: none;
            border-radius: 16px;
            cursor: pointer;
            transition: all 0.2s ease;
            font-family: 'Inter', sans-serif;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            box-shadow: 0 4px 12px var(--shadow);
        }

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

        button:active {
            transform: translateY(0) scale(0.97);
        }

        button:focus {
            outline: 3px solid rgba(231, 76, 60, 0.3);
            outline-offset: 2px;
        }

        #start-btn {
            background: var(--accent);
            color: white;
            flex: 1;
            min-width: 140px;
        }

        #start-btn:hover {
            background: #229954;
        }

        #pause-btn {
            background: #F39C12;
            color: white;
            flex: 1;
            min-width: 140px;
            display: none;
        }

        #pause-btn:hover {
            background: #E67E22;
        }

        #reset-btn {
            background: var(--surface);
            color: var(--text);
            border: 2px solid var(--border);
            box-shadow: none;
        }

        #reset-btn:hover {
            background: var(--bg);
            border-color: var(--text-secondary);
        }

        #skip-btn {
            background: var(--surface);
            color: var(--text);
            border: 2px solid var(--border);
            box-shadow: none;
            display: none;
        }

        #skip-btn:hover {
            background: var(--bg);
            border-color: var(--text-secondary);
        }

        .info-section {
            margin-top: clamp(24px, 5vw, 32px);
            padding-top: clamp(24px, 5vw, 32px);
            border-top: 1px solid var(--border);
            text-align: center;
        }

        .info-text {
            font-size: clamp(13px, 2.5vw, 14px);
            color: var(--text-secondary);
            line-height: 1.6;
        }

        .info-text strong {
            color: var(--text);
            font-weight: 600;
        }

        footer {
            padding: clamp(16px, 3vw, 24px);
            text-align: center;
            color: var(--text-secondary);
            font-size: clamp(12px, 2.5vw, 14px);
            background: var(--surface);
            border-top: 1px solid var(--border);
        }

        .notification-indicator {
            display: inline-block;
            width: 8px;
            height: 8px;
            background: var(--accent);
            border-radius: 50%;
            margin-left: 8px;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .notification-indicator.active {
            opacity: 1;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% {
                opacity: 1;
                transform: scale(1);
            }
            50% {
                opacity: 0.5;
                transform: scale(1.2);
            }
        }

        @keyframes celebrate {
            0%, 100% {
                transform: scale(1);
            }
            25% {
                transform: scale(1.1);
            }
            50% {
                transform: scale(0.95);
            }
            75% {
                transform: scale(1.05);
            }
        }

        .celebrate {
            animation: celebrate 0.6s ease;
        }

        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            align-items: center;
            justify-content: center;
            padding: 16px;
        }

        .modal.active {
            display: flex;
        }

        .modal-content {
            background: var(--surface);
            border-radius: 24px;
            padding: clamp(32px, 6vw, 48px);
            max-width: 480px;
            width: 100%;
            box-shadow: 0 8px 32px var(--shadow-lg);
            max-height: 90vh;
            overflow-y: auto;
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;
        }

        .modal-title {
            font-size: clamp(20px, 4vw, 24px);
            font-weight: 700;
        }

        .close-btn {
            background: none;
            border: none;
            font-size: 28px;
            cursor: pointer;
            color: var(--text-secondary);
            padding: 0;
            min-height: auto;
            min-width: auto;
            box-shadow: none;
            line-height: 1;
        }

        .close-btn:hover {
            color: var(--text);
            transform: none;
        }

        .setting-group {
            margin-bottom: 24px;
        }

        .setting-label {
            display: block;
            font-weight: 600;
            margin-bottom: 8px;
            color: var(--text);
        }

        .setting-input {
            width: 100%;
            padding: 12px 16px;
            border: 2px solid var(--border);
            border-radius: 12px;
            font-size: 16px;
            font-family: 'Inter', sans-serif;
            transition: border-color 0.2s ease;
        }

        .setting-input:focus {
            outline: none;
            border-color: var(--primary);
        }

        .setting-description {
            font-size: 13px;
            color: var(--text-secondary);
            margin-top: 4px;
        }

        .save-settings-btn {
            width: 100%;
            background: var(--primary);
            color: white;
            margin-top: 16px;
        }

        .save-settings-btn:hover {
            background: #C0392B;
        }

        @media (max-width: 375px) {
            .controls {
                flex-direction: column;
            }

            button {
                width: 100%;
            }

            #reset-btn {
                order: 3;
            }
        }

        @media (min-width: 768px) {
            .timer-container {
                padding: 56px;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            * {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }

#__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}