/* BreakPet free timers (/eye-break-timer/, /pomodoro-timer/ and localized copies).
   Loaded after css/style.css; uses its colour variables, so light and dark mode follow automatically. */
:root { --tmr-break: #1d7480; --tmr-break-bg: color-mix(in srgb, var(--teal) 13%, var(--surface)); }
@media (prefers-color-scheme: dark) { :root { --tmr-break: var(--sky); --tmr-break-bg: color-mix(in srgb, var(--teal) 16%, var(--surface)); } }

.guide--tool .guide__hero { margin-bottom: 24px; }

/* tool switch (20-20-20 | Pomodoro) */
.tswitch { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 0 auto 16px; }
.tswitch a { padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: .95rem; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); }
.tswitch a:hover { text-decoration: none; border-color: var(--orange); }
.tswitch a[aria-current="page"] { background: color-mix(in srgb, var(--orange) 16%, var(--surface)); border-color: var(--orange); color: var(--orange-2); }

/* timer card */
.tmr { max-width: 720px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.tmr__main { padding: clamp(20px, 4vw, 36px) clamp(16px, 4vw, 36px) 24px; text-align: center; transition: background .4s; }
.tmr[data-phase="brk"] .tmr__main, .tmr[data-phase="long"] .tmr__main { background: var(--tmr-break-bg); }
.tmr__phase { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--orange-2); }
.tmr[data-phase="brk"] .tmr__phase, .tmr[data-phase="long"] .tmr__phase { color: var(--tmr-break); }
.tmr__time { margin: 6px 0 14px; font-size: clamp(3.6rem, 19vw, 7.5rem); font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.tmr__bar { height: 8px; max-width: 420px; margin: 0 auto; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.tmr__bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #f08a3e, #d9541f); transition: width .25s linear; }
.tmr[data-phase="brk"] .tmr__bar i, .tmr[data-phase="long"] .tmr__bar i { background: linear-gradient(90deg, var(--sky), var(--teal)); }
.tmr__count { margin-top: 12px; font-size: .92rem; color: var(--ink-2); font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.tmr__dots { display: inline-flex; gap: 6px; }
.tmr__dots i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--orange); }
.tmr__dots i.is-done { background: var(--orange); }
.tmr__dots i.is-now { background: color-mix(in srgb, var(--orange) 35%, transparent); }

.tmr__btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tmr__go, .tmr__btn { font: inherit; font-weight: 700; border-radius: 999px; cursor: pointer; padding: 12px 22px; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.tmr__go { min-width: 9.5em; border: 0; color: #fff; background: linear-gradient(135deg, #f08a3e, #d9541f); box-shadow: var(--shadow); font-size: 1.08rem; }
.tmr__go:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.tmr__btn { border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.tmr__btn:hover { border-color: var(--orange); }
.tmr button:focus-visible, .tmr input:focus-visible, .tswitch a:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.tmr__break { display: flex; align-items: center; gap: 16px; margin: 22px auto 0; max-width: 520px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid color-mix(in srgb, var(--teal) 40%, var(--line)); text-align: left; animation: tmrIn .45s var(--ease); }
.tmr__break[hidden] { display: none; }
.tmr__break img { width: 88px; height: 88px; flex: none; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.tmr__bt { font-weight: 800; color: var(--ink); font-size: 1.1rem; }
.tmr__bm { margin-top: 4px; color: var(--ink-2); }
@keyframes tmrIn { from { opacity: 0; transform: translateY(8px) scale(.98); } }

/* settings */
.tmr__set { padding: 20px clamp(16px, 4vw, 36px) 24px; border-top: 1px solid var(--line); }
.tmr__h { font-size: 1.05rem; font-weight: 800; margin-bottom: 12px; letter-spacing: 0; }
.tmr__presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tmr__presets button { font: inherit; font-weight: 700; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums; }
.tmr__presets button[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: #fff; }
.tmr__fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.tmr__fields label { display: grid; gap: 6px; align-content: end; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.tmr__fields input { width: 100%; font: inherit; font-size: 1.05rem; font-weight: 700; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font-variant-numeric: tabular-nums; }
.tmr__opts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 16px; }
.tmr__chk { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.tmr__chk input, .tmr__petopt input { width: 18px; height: 18px; margin: 0; accent-color: var(--orange); flex: none; }
.tmr__pets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 16px 0 0; padding: 0; border: 0; }
.tmr__pets legend { float: left; margin-right: 6px; padding: 0; font-weight: 600; color: var(--ink-2); }
.tmr__petopt { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-weight: 700; cursor: pointer; }
.tmr__petopt:has(input:checked) { border-color: var(--orange); }
.tmr__petopt img { width: 28px; height: 28px; }
.tmr__msg { margin-top: 10px; font-size: .9rem; color: var(--orange-2); }
.tmr__msg:empty { display: none; }

@media (max-width: 420px) {
  .tmr__btns { gap: 8px; }
  .tmr__go, .tmr__btn { padding: 11px 16px; }
  .tmr__go { min-width: 0; flex: 1 1 100%; }
  .tmr__btn { flex: 1 1 0; }
  .tmr__break img { width: 64px; height: 64px; }
  .tmr__fields { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .tmr__break { animation: none; }
  .tmr__bar i { transition: none; }
}
