:root {
  color-scheme: light;
  --ink: #152235;
  --muted: #596579;
  --paper: #f3f8fb;
  --card: #ffffff;
  --line: #dbe7ee;
  --blue: #2563eb;
  --teal: #0f766e;
  --green: #15803d;
  --lavender: #7c3aed;
  --amber: #d97706;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.13);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 4%, rgba(186, 230, 253, 0.72), transparent 27rem),
    radial-gradient(circle at 88% 12%, rgba(221, 214, 254, 0.52), transparent 25rem),
    linear-gradient(135deg, #f8fbff 0%, var(--paper) 100%);
  color: var(--ink);
}
main { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-nav { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 8px 0 24px; padding: 12px 16px; background: rgba(255,255,255,.88); border: 1px solid #e1e8f0; border-radius: 24px; box-shadow: 0 10px 24px rgba(22,31,54,.06); backdrop-filter: blur(12px); }
.site-brand { display: inline-flex; align-items: center; gap: 10px; color: #172033; text-decoration: none; font-weight: 850; }
.brand-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; background: #172033; color: #fff; font-weight: 900; }
.site-nav a:not(.site-brand) { color: #4b5565; text-decoration: none; font-weight: 750; font-size: .95rem; }
.site-nav a:hover, .crumb a:hover { text-decoration: underline; }
.hero { padding: 24px 0 36px; }
.crumb { display: flex; justify-content: space-between; gap: 16px; align-items: center; color: var(--muted); font-size: .95rem; margin-bottom: 28px; }
.crumb a { color: var(--ink); text-decoration: none; font-weight: 850; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, 470px); gap: 28px; align-items: center; }
.eyebrow { color: #075985; font-weight: 950; text-transform: uppercase; letter-spacing: .09em; font-size: .82rem; }
h1 { font-size: clamp(2.35rem, 7vw, 5.05rem); line-height: .94; margin: 0 0 18px; letter-spacing: -.07em; }
h2 { letter-spacing: -.03em; }
.lede { font-size: clamp(1.05rem, 2vw, 1.34rem); color: var(--muted); max-width: 59ch; line-height: 1.58; }
.preset-row, .custom-row, .preference-row, .actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.preset-row { margin: 26px 0 18px; }
.pill, button { border: 0; font: inherit; cursor: pointer; }
.pill { border: 2px solid var(--line); background: rgba(255,255,255,.9); color: var(--ink); padding: 11px 14px; border-radius: 999px; font-weight: 850; box-shadow: 0 8px 18px rgba(31,41,55,.06); }
.pill.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.custom-panel { margin-top: 18px; }
.custom-panel label { display: block; margin-bottom: 8px; font-weight: 950; }
.custom-row span { color: var(--muted); font-weight: 850; }
.preference-row { margin-top: 12px; }
input { width: 86px; border: 2px solid var(--line); border-radius: 14px; padding: 12px 11px; font: inherit; font-weight: 850; color: var(--ink); background: #fff; }
.timer-card, .info-card, .tips, .faq, .related { background: rgba(255,255,255,.94); border: 1px solid rgba(219,231,238,.98); border-radius: 30px; box-shadow: var(--shadow); }
.timer-card { padding: clamp(20px, 4vw, 34px); text-align: center; }
.visual-window { position: relative; overflow: hidden; min-height: 242px; border-radius: 28px; background: #eaf2f7; border: 4px solid #fff; box-shadow: inset 0 0 0 1px rgba(23,32,51,.08); margin-bottom: 18px; }
.visual-fill { position: absolute; inset: 0; transform-origin: bottom; background: linear-gradient(180deg, #bae6fd 0%, #60a5fa 60%, #2563eb 100%); transition: transform .45s ease, background .3s ease; }
.quiet-symbol { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(4.2rem, 14vw, 7.3rem); color: rgba(255,255,255,.84); text-shadow: 0 12px 30px rgba(15,23,42,.18); }
.time { font-size: clamp(3rem, 11vw, 5.4rem); line-height: 1; font-weight: 950; letter-spacing: -.08em; margin-top: 2px; }
.timer-card h2 { font-size: clamp(1.45rem, 3vw, 2rem); margin: 12px 0 8px; }
.timer-card p { color: var(--muted); line-height: 1.5; margin: 0 auto 16px; max-width: 38ch; }
.prompt-box { background: #eff6ff; border: 2px dashed #93c5fd; border-radius: 18px; padding: 14px; margin: 16px 0 20px; font-size: 1.05rem; font-weight: 950; }
.primary, .secondary { border-radius: 16px; padding: 13px 18px; font-weight: 950; }
.primary { background: var(--teal); color: #fff; min-width: 160px; box-shadow: 0 12px 24px rgba(15,118,110,.22); }
.secondary { background: #edf4ff; color: #17427b; }
.small { padding: 11px 13px; }
.content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 18px 0; }
.info-card, .tips, .faq, .related { padding: clamp(20px, 3vw, 28px); }
.highlight { background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(240,249,255,.96)); }
li { margin: 9px 0; color: var(--muted); line-height: 1.55; }
.tips, .related { margin-bottom: 18px; }
.tip-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tip-grid div { background: #f5fbff; border: 1px solid #dceeff; border-radius: 18px; padding: 16px; font-weight: 850; }
.tip-grid strong, .tip-grid span { display: block; }
.tip-grid span { margin-top: 5px; color: var(--muted); line-height: 1.45; font-weight: 650; }
.related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.related-grid a { background: #f8fafc; border: 1px solid var(--line); border-radius: 16px; padding: 13px; color: var(--ink); font-weight: 850; text-decoration: none; }
.related-grid a:hover { border-color: #93c5fd; color: #075985; }
.faq { margin-bottom: 38px; }
details { border-top: 1px solid var(--line); padding: 15px 0; }
details:first-of-type { border-top: 0; }
summary { cursor: pointer; font-weight: 950; }
details p { color: var(--muted); line-height: 1.6; }
footer { color: var(--muted); padding: 16px 0 38px; text-align: center; }
body.running .visual-fill { background: linear-gradient(180deg, #99f6e4 0%, #2dd4bf 58%, #0f766e 100%); }
body.final-minute .visual-fill { background: linear-gradient(180deg, #fde68a 0%, #fbbf24 55%, #d97706 100%); }
body.done .visual-fill { background: linear-gradient(180deg, #bbf7d0 0%, #4ade80 60%, #15803d 100%); }
body.theme-green .visual-fill { background: linear-gradient(180deg, #dcfce7 0%, #86efac 58%, #16a34a 100%); }
body.theme-purple .visual-fill { background: linear-gradient(180deg, #ede9fe 0%, #c4b5fd 58%, #7c3aed 100%); }
body.theme-gray .visual-fill { background: linear-gradient(180deg, #f1f5f9 0%, #cbd5e1 58%, #64748b 100%); }
body.motion-gentle .visual-fill { transition: transform 1s linear, background .3s ease; }
@media (max-width: 820px) {
  .hero-grid, .content-grid { grid-template-columns: 1fr; }
  .crumb { align-items: flex-start; flex-direction: column; }
  .tip-grid, .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  main { width: min(100% - 20px, 1120px); }
  .preset-row .pill { width: 100%; }
  .custom-row input { width: 74px; }
  .primary, .secondary.small { flex: 1; }
  .actions .primary, .actions .secondary { width: 100%; }
  .tip-grid, .related-grid { grid-template-columns: 1fr; }
  .site-nav { margin-top: 8px; padding: 10px 12px; border-radius: 20px; }
  .site-nav a:not(.site-brand) { font-size: .9rem; }
  .brand-mark { width: 30px; height: 30px; }
  .site-brand span:last-child { max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
