.timer-wrapper{max-width:560px;margin:0 auto;}.timer-ring-container{position:relative;width:260px;height:260px;margin:0 auto 1.5rem;user-select:none;}.timer-ring-container svg{transform:rotate(-90deg);width:260px;height:260px;}.timer-track{fill:none;stroke:var(--border-color,#dee2e6);stroke-width:12;}.timer-progress{fill:none;stroke:#e63946;stroke-width:12;stroke-linecap:round;transition:stroke-dashoffset 0.9s linear,stroke 0.3s ease;}.timer-progress.warning{stroke:#f77f00;}.timer-progress.finished{stroke:#28a745;}.timer-display{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;}.timer-time{font-size:3rem;font-weight:800;letter-spacing:2px;line-height:1;font-variant-numeric:tabular-nums;transition:color 0.3s;}.timer-label-display{font-size:0.8rem;font-weight:600;color:var(--text-muted,#6c757d);letter-spacing:1px;text-transform:uppercase;max-width:140px;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.preset-btns{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-bottom:1rem;}.preset-btn{border:2px solid #dee2e6;background:transparent;border-radius:20px;padding:5px 14px;font-size:0.82rem;font-weight:700;cursor:pointer;transition:all .2s;color:var(--text-color,#212529);}.preset-btn:hover,.preset-btn.active{border-color:#e63946;background:#e63946;color:#fff;}.time-inputs{display:flex;align-items:center;justify-content:center;gap:4px;margin-bottom:1.25rem;}.time-input-group{display:flex;flex-direction:column;align-items:center;gap:2px;}.time-input-group label{font-size:0.7rem;font-weight:700;text-transform:uppercase;color:var(--text-muted,#6c757d);letter-spacing:1px;}.time-input-group input{width:68px;text-align:center;font-size:1.4rem;font-weight:700;border:2px solid #dee2e6;border-radius:10px;padding:6px 4px;background:transparent;color:inherit;transition:border-color .2s;-moz-appearance:textfield;}.time-input-group input::-webkit-outer-spin-button,.time-input-group input::-webkit-inner-spin-button{-webkit-appearance:none;}.time-input-group input:focus{outline:none;border-color:#e63946;}.time-sep{font-size:1.6rem;font-weight:800;line-height:1;padding-bottom:14px;color:var(--text-muted,#6c757d);}.timer-actions{display:flex;gap:12px;justify-content:center;margin-bottom:1.25rem;}.btn-timer-main{width:100px;height:48px;border-radius:24px;font-weight:800;font-size:1rem;border:none;cursor:pointer;transition:transform .15s,box-shadow .15s;background:#e63946;color:#fff;box-shadow:0 4px 14px rgba(230,57,70,.35);}.btn-timer-main:active{transform:scale(.95);}.btn-timer-main.running{background:#f77f00;box-shadow:0 4px 14px rgba(247,127,0,.35);}.btn-timer-main.finished{background:#28a745;box-shadow:0 4px 14px rgba(40,167,69,.35);}.btn-timer-secondary{width:48px;height:48px;border-radius:50%;border:2px solid #dee2e6;background:transparent;color:inherit;cursor:pointer;font-size:1.1rem;transition:background .2s,border-color .2s;display:flex;align-items:center;justify-content:center;}.btn-timer-secondary:hover{background:#f8f9fa;border-color:#adb5bd;}.timer-settings{background:var(--card-bg,#f8f9fa);border:1px solid var(--border-color,#dee2e6);border-radius:14px;padding:1rem 1.25rem;margin-top:1rem;}.settings-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:.75rem;}.settings-row:last-child{margin-bottom:0;}.settings-label{font-weight:700;font-size:.85rem;flex-shrink:0;min-width:80px;}.sound-btns{display:flex;gap:6px;flex-wrap:wrap;}.sound-btn{border:2px solid #dee2e6;background:transparent;border-radius:8px;padding:3px 10px;font-size:0.78rem;font-weight:700;cursor:pointer;transition:all .15s;color:inherit;}.sound-btn:hover{border-color:#e63946;}.sound-btn.active{background:#e63946;border-color:#e63946;color:#fff;}input[type="range"].volume-slider{flex:1;accent-color:#e63946;cursor:pointer;}.volume-icon{font-size:1rem;}.toggle-switch{position:relative;width:40px;height:22px;flex-shrink:0;}.toggle-switch input{opacity:0;width:0;height:0;}.toggle-slider{position:absolute;inset:0;border-radius:22px;background:#dee2e6;cursor:pointer;transition:background .2s;}.toggle-slider::before{content:'';position:absolute;width:16px;height:16px;left:3px;top:3px;border-radius:50%;background:#fff;transition:transform .2s;}.toggle-switch input:checked+.toggle-slider{background:#e63946;}.toggle-switch input:checked+.toggle-slider::before{transform:translateX(18px);}#timerLabel{flex:1;border:2px solid #dee2e6;border-radius:8px;padding:4px 10px;font-size:.85rem;background:transparent;color:inherit;transition:border-color .2s;}#timerLabel:focus{outline:none;border-color:#e63946;}.laps-section{margin-top:1rem;}.laps-list{max-height:180px;overflow-y:auto;border:1px solid var(--border-color,#dee2e6);border-radius:10px;background:var(--card-bg,#f8f9fa);}.lap-item{display:flex;justify-content:space-between;padding:6px 14px;font-size:.82rem;border-bottom:1px solid var(--border-color,#dee2e6);font-variant-numeric:tabular-nums;}.lap-item:last-child{border-bottom:none;}.lap-num{font-weight:700;color:#e63946;}@keyframes pulse-ring{0%{transform:scale(1);opacity:.8;}50%{transform:scale(1.08);opacity:.4;}100%{transform:scale(1);opacity:.8;}}.timer-progress.pulse{animation:pulse-ring 0.6s ease-in-out infinite;}[data-theme="dark"] .timer-settings{background:#1e2330;border-color:#2e3445;}[data-theme="dark"] .btn-timer-secondary{border-color:#2e3445;}[data-theme="dark"] .btn-timer-secondary:hover{background:#2e3445;}[data-theme="dark"] .time-input-group input{border-color:#2e3445;}[data-theme="dark"] .preset-btn{border-color:#2e3445;color:#e0e0e0;}[data-theme="dark"] .laps-list{background:#1e2330;border-color:#2e3445;}[data-theme="dark"] .lap-item{border-color:#2e3445;}[data-theme="dark"] #timerLabel{border-color:#2e3445;}