[v-cloak] { display: none; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: #2d3748; background: #e2e8f0; height: 100vh; }
.logo { position: fixed; top: 12px; left: 12px; height: 32px; }
#app { display: flex; height: 100vh; flex-direction: column; }
.stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 10vh 20px 20px; }
.timer-display { text-align: center; }
.time-line { display: inline-flex; align-items: baseline; gap: 8px; }
.time-text { font-size: 180px; font-weight: 800; letter-spacing: 2px; color: #1a202c; line-height: 1; }
.ms-text { font-size: 48px; font-weight: 700; color: #4a5568; line-height: 1; }
.mode-text { margin-bottom: 12px; font-size: 18px; color: #4a5568; }
.controls { margin-top: 24px; display: flex; gap: 12px; }
.btn { padding: 10px 18px; border-radius: 8px; border: 1px solid #cbd5e0; background: #fff; color: #2d3748; cursor: pointer; font-size: 16px; }
.btn.primary { background: #2b6cb0; border-color: #2b6cb0; color: #fff; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.settings-bar { position: fixed; left: 0; right: 0; bottom: 0; border-top: 1px solid #cbd5e0; background: #fff; transform: translateY(100%); transition: transform .25s ease; max-height: 45vh; min-height: 160px; overflow-y: auto; }
.settings-bar.open { transform: translateY(0); }
.settings-inner { max-width: 1080px; margin: 0 auto; padding: 12px 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.settings-inner .row { width: 100%; }
@media (max-width: 720px) { .settings-inner { grid-template-columns: 1fr; } }
.row { display: flex; align-items: center; gap: 12px; }
.label { width: 68px; font-size: 14px; color: #4a5568; }
.seg { display: inline-flex; background: #edf2f7; border-radius: 8px; overflow: hidden; }
.seg-btn { padding: 8px 14px; border: none; background: transparent; cursor: pointer; font-size: 14px; color: #2d3748; }
.seg-btn.active { background: #2b6cb0; color: #fff; }
.time-inputs { display: inline-flex; align-items: center; gap: 8px; }
.time-inputs input, .time-inputs select { width: 120px; padding: 8px; border: 1px solid #cbd5e0; border-radius: 6px; font-size: 14px; }
.time-inputs input[type="number"] { width: 80px; }
.unit { font-size: 14px; color: #4a5568; }
.preset { display: inline-flex; gap: 8px; }
.preset-btn { padding: 8px 12px; border: 1px solid #cbd5e0; border-radius: 6px; background: #fff; cursor: pointer; font-size: 14px; }
.sound { display: inline-flex; align-items: center; gap: 12px; }
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: #cbd5e0; transition: .2s; border-radius: 24px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background: white; transition: .2s; border-radius: 50%; }
.switch input:checked + .slider { background: #2b6cb0; }
.switch input:checked + .slider:before { transform: translateX(20px); }
.vol { display: inline-flex; align-items: center; gap: 8px; }
.vol-label { font-size: 14px; color: #4a5568; }
.vol input[type="range"] { width: 160px; }
.hint { font-size: 12px; color: #718096; }
.controls-floating { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 12px; padding: 12px 16px; transition: bottom .25s ease; }

@media (max-height: 700px) { .stage { padding-top: 6vh; } }

.theme-light { background: linear-gradient(180deg, #f7fafc 0%, #e2e8f0 100%); }
.theme-light .stage { background: transparent; }
.theme-light .time-text { color: #1a202c; }
.theme-light .ms-text, .theme-light .mode-text { color: #4a5568; }

.theme-dark { background: linear-gradient(180deg, #1a202c 0%, #2d3748 100%); }
.theme-dark .stage { background: transparent; }
.theme-dark .time-text { color: #f7fafc; }
.theme-dark .ms-text, .theme-dark .mode-text { color: #cbd5e0; }

.theme-green { background: linear-gradient(180deg, #e6fffa 0%, #c6f6d5 100%); }
.theme-green .stage { background: transparent; }
.theme-green .time-text { color: #22543d; }
.theme-green .ms-text, .theme-green .mode-text { color: #276749; }

.theme-purple { background: linear-gradient(180deg, #faf5ff 0%, #e9d8fd 100%); }
.theme-purple .stage { background: transparent; }
.theme-purple .time-text { color: #44337a; }
.theme-purple .ms-text, .theme-purple .mode-text { color: #553c9a; }

body.theme-light { background: linear-gradient(180deg, #f7fafc 0%, #e2e8f0 100%); }
body.theme-dark { background: linear-gradient(180deg, #1a202c 0%, #2d3748 100%); }
body.theme-green { background: linear-gradient(180deg, #e6fffa 0%, #c6f6d5 100%); }
body.theme-purple { background: linear-gradient(180deg, #faf5ff 0%, #e9d8fd 100%); }
body.theme-dark .time-text { color: #f7fafc; }
body.theme-dark .ms-text, body.theme-dark .mode-text { color: #cbd5e0; }
