:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --card: rgba(255, 255, 255, .92);
  --ink: #152033;
  --muted: #65738a;
  --primary: #5267ff;
  --primary-dark: #3144d9;
  --green: #2fb477;
  --yellow: #ffd166;
  --red: #ff6b6b;
  --line: #e4e9f5;
  --shadow: 0 18px 55px rgba(32, 42, 76, .13);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 209, 102, .27), transparent 24rem),
    radial-gradient(circle at 92% 4%, rgba(82, 103, 255, .2), transparent 30rem),
    linear-gradient(135deg, #fbfdff, var(--bg));
}
.app { width: min(1180px, calc(100% - 28px)); margin: 22px auto 52px; }
.card, .miniCard { background: var(--card); border: 1px solid rgba(255,255,255,.78); border-radius: 28px; box-shadow: var(--shadow); padding: 24px; backdrop-filter: blur(10px); }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.eyebrow { margin: 0 0 6px; color: var(--primary-dark); font-weight: 850; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(34px, 6vw, 66px); line-height: .95; letter-spacing: -.05em; }
h2 { margin-bottom: 14px; }
.sub, .hint, small { color: var(--muted); }
.streakBox { min-width: 136px; min-height: 136px; border-radius: 36px; background: linear-gradient(145deg, var(--primary), #8f7cff); color: white; display: grid; place-content: center; text-align: center; }
.streakBox span { font-size: 48px; font-weight: 950; line-height: 1; }
.streakBox small { color: white; max-width: 96px; font-weight: 750; }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.view { display: none; }
.view.active { display: block; }
.grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; margin-bottom: 18px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.stat { display: grid; gap: 4px; text-align: center; place-items: center; }
.stat span { font-size: 42px; font-weight: 950; color: var(--primary-dark); }
label { display: grid; gap: 8px; font-weight: 750; margin-bottom: 14px; }
.formGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
input, select, textarea { width: 100%; border: 2px solid var(--line); border-radius: 16px; padding: 13px 15px; font: inherit; outline: none; background: white; color: var(--ink); }
textarea { min-height: 92px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(82,103,255,.12); }
.timer { margin: 18px 0 12px; font-size: clamp(58px, 12vw, 116px); font-weight: 950; text-align: center; letter-spacing: -0.07em; }
.quickTimes, .controls, .chips { display: flex; flex-wrap: wrap; gap: 10px; }
.customTime { margin-top: 12px; display: grid; grid-template-columns: .6fr 1fr auto; gap: 10px; align-items: center; }
.warning { margin: 10px 0 0; padding: 12px 14px; border-radius: 16px; background: #fff4d4; color: #725000; font-weight: 750; line-height: 1.35; }
.callout { padding: 14px; border-radius: 18px; background: #eef2ff; color: var(--primary-dark); font-weight: 800; }
button { border: 0; border-radius: 999px; padding: 12px 16px; font: inherit; font-weight: 850; cursor: pointer; color: #243047; background: #eef1fb; transition: transform .12s ease, background .12s ease; }
button:hover { transform: translateY(-1px); }
button.active, .tab.active { background: #dfe4ff; color: var(--primary-dark); }
button.primary { background: var(--primary); color: white; }
button.primary:hover { background: var(--primary-dark); }
button.secondary { width: 100%; margin-top: 14px; background: #fff4d4; color: #6f4d00; }
.cleanList { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cleanList li { padding: 12px 14px; border-radius: 16px; background: #f6f8ff; }
.stack { display: grid; gap: 12px; }
.miniCard { box-shadow: none; border: 1px solid var(--line); border-radius: 20px; padding: 16px; background: white; }
.miniCard.due { border-color: rgba(47, 180, 119, .5); box-shadow: 0 0 0 4px rgba(47, 180, 119, .08); }
.miniCard p { margin-bottom: 8px; }
.compact button { padding: 9px 11px; font-size: 14px; }
.chips button { background: #fff4d4; color: #7a5411; }
ol { margin: 8px 0 0 20px; padding: 0; }
@media (max-width: 820px) {
  .hero, .grid, .grid.three, .formGrid { grid-template-columns: 1fr; display: grid; }
  .streakBox { width: 100%; min-height: 110px; }
  .customTime { grid-template-columns: 1fr; }
}
