:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, sans-serif; color: #18251d; background: #f3f7f1; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button { font: inherit; cursor: pointer; }
.app-shell { width: min(100% - 32px, 680px); margin: 0 auto; padding: 48px 0 64px; }
header { margin-bottom: 28px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(2rem, 6vw, 3.25rem); line-height: 1; letter-spacing: -.05em; }
h2 { margin-bottom: 0; font-size: 1.35rem; }
.eyebrow { margin-bottom: 7px; color: #57705d; font-size: .78rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.tabs { display: flex; gap: 8px; margin-bottom: 24px; padding: 5px; background: #e3ebe1; border-radius: 14px; }
.tab { flex: 1; padding: 10px 12px; color: #526458; background: transparent; border: 0; border-radius: 10px; font-weight: 700; }
.tab.is-active { color: #153d25; background: #fff; box-shadow: 0 1px 4px #30593b22; }
.panel { padding: clamp(24px, 6vw, 44px); background: #fff; border: 1px solid #dce7dc; border-radius: 24px; box-shadow: 0 18px 45px #36523912; }
#counter { text-align: center; }
.timer-wrap { margin-bottom: 8px; }
.timer-label, .count-label { color: #637067; font-size: .9rem; font-weight: 650; }
.timer { display: block; margin-top: 3px; font-size: clamp(2.75rem, 11vw, 5.25rem); font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: -.07em; }
.count { display: block; margin-top: 26px; color: #1d6a3a; font-size: clamp(4rem, 18vw, 8rem); font-variant-numeric: tabular-nums; font-weight: 850; letter-spacing: -.09em; line-height: .9; }
.count-label { display: block; margin: 11px 0 28px; }
.oscillation { display: grid; place-content: center; width: min(100%, 390px); height: 150px; margin: 0 auto 16px; color: white; background: #1d7642; border: 0; border-radius: 22px; box-shadow: inset 0 -5px 0 #105328, 0 10px 20px #1b6c3b33; font-size: 1.8rem; font-weight: 800; transition: transform .08s ease, background .15s; }
.oscillation small { margin-top: 5px; font-size: .82rem; font-weight: 600; opacity: .8; }
.oscillation:not(:disabled):active { transform: translateY(3px); box-shadow: inset 0 -2px 0 #105328; }
.oscillation:disabled { color: #6b7c70; background: #dfe8e0; box-shadow: none; cursor: not-allowed; }
.session-settings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: min(100%, 390px); margin: 0 auto 16px; text-align: left; }
.session-settings label, .history-filter label { display: grid; gap: 5px; color: #637067; font-size: .75rem; font-weight: 700; }
select, input { width: 100%; padding: 9px; color: #24342a; background: #fff; border: 1px solid #cfdcd1; border-radius: 8px; font: inherit; }
.start { width: min(100%, 390px); padding: 14px 20px; color: #1c3d28; background: #e2f1e5; border: 1px solid #cde3d1; border-radius: 12px; font-weight: 800; }
.status { min-height: 1.5em; margin: 18px 0 0; color: #647067; font-size: .9rem; }
.history-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; text-align: left; }
.text-button { padding: 8px 10px; color: #1b6538; background: none; border: 0; font-weight: 750; }
.history-filter { display: flex; flex-wrap: wrap; align-items: end; gap: 9px; margin-bottom: 16px; padding: 12px; background: #f5f8f4; border-radius: 12px; }
.history-filter button:not(.text-button) { padding: 9px 12px; color: white; background: #1d7642; border: 0; border-radius: 8px; font-weight: 700; }
.summary { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-bottom: 18px; color: #536259; font-size: .88rem; }
.summary b { color: #1b6538; }
.empty { padding: 36px 20px; color: #66736a; text-align: center; background: #f5f8f4; border-radius: 14px; }
.chart-wrap { height: 240px; margin-bottom: 22px; }
#history-chart { width: 100%; height: 100%; }
.history-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.history-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid #edf1ed; }
.history-list li:last-child { border-bottom: 0; }
.history-list time { color: #627068; font-size: .86rem; }
.history-list strong { color: #176237; font-size: 1.1rem; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.pagination button { padding: 8px 12px; color: #1b6538; background: #edf6ee; border: 1px solid #d5e9d7; border-radius: 8px; font-weight: 700; }
.pagination button:disabled { color: #849188; background: #f3f5f3; border-color: #e3e8e3; cursor: not-allowed; }
@media (max-width: 480px) { .app-shell { width: min(100% - 20px, 680px); padding-top: 28px; } .panel { padding: 25px 18px; border-radius: 18px; } .oscillation { height: 132px; } .session-settings { grid-template-columns: 1fr; } .history-filter { align-items: stretch; } }
