:root {
  color-scheme: light;
  --bg: #eef1f7;
  --ink: #211f41;
  --muted: #605e77;
  --purple: #302978;
  --lime: #deffa4;
  --line: #e5e5ee;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #7667da; outline-offset: 3px; }
[hidden] { display: none !important; }
.bar { background: #fff; border-bottom: 1px solid var(--line); }
.bar-inner { max-width: 1160px; margin: auto; min-height: 70px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 850; font-size: 24px; letter-spacing: -.04em; text-decoration: none; }
.mark, .stat-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 12px; background: var(--purple); color: var(--lime); }
nav { display: flex; gap: clamp(13px, 4vw, 36px); }
nav a { font-size: 15px; color: var(--muted); font-weight: 650; text-decoration: none; }
nav a:hover, .guide-link:hover { color: #5446ad; text-decoration: underline; }
main { max-width: 1160px; margin: auto; padding: 40px 24px 16px; }
section { scroll-margin-top: 24px; }
h1, h2, h3, p { margin: 0; }
.date, .section-head p { color: var(--muted); font-size: 15px; }
.date::first-letter, #dialog-date::first-letter { text-transform: uppercase; }
.intro { display: flex; justify-content: space-between; align-items: end; gap: 14px; margin-bottom: 22px; }
h1 { margin-top: 5px; font-size: clamp(32px, 5vw, 54px); letter-spacing: -.055em; line-height: 1.05; }
.guide-link { font-size: 14px; font-weight: 700; text-underline-offset: 4px; }
.intro .guide-link { white-space: nowrap; margin-bottom: 4px; }
.hero { position: relative; isolation: isolate; overflow: hidden; border-radius: 24px; display: flex; align-items: center; min-height: 300px; color: white; background: linear-gradient(110deg, #242052 22%, #3d348c 70%, #5745ab); }
.hero-content { position: relative; z-index: 1; width: 63%; padding: clamp(23px, 5vw, 51px); }
.type { color: var(--lime); font-size: 15px; font-weight: 720; }
.hero h2 { margin: 9px 0 12px; font-size: clamp(31px, 4.5vw, 53px); letter-spacing: -.06em; line-height: 1.02; }
#activity-summary { color: #ece9ff; line-height: 1.55; max-width: 45ch; }
.primary { min-height: 46px; border: 0; border-radius: 11px; background: var(--lime); color: #232342; font-weight: 760; padding: 10px 17px; }
.primary:hover { background: #efffce; }
.hero .primary { margin-top: 22px; }
.hero-art { display: grid; place-items: center; position: absolute; right: 6%; width: 38%; aspect-ratio: 1; top: 50%; transform: translateY(-50%); pointer-events: none; }
.orbit { position: absolute; border: 1px solid #b6a8ff55; border-radius: 50%; width: 81%; height: 81%; }
.orbit-two { width: 69%; height: 69%; }
.orbit-three { width: 57%; height: 57%; }
.dumbbell { position: relative; width: 64%; height: 10%; transform: rotate(-32deg); border-radius: 20px; background: linear-gradient(#f3edff 2%, #a69eef 58%, #7164bf); box-shadow: 3px 14px 24px #130b4d91; }
.dumbbell i { position: absolute; top: 50%; width: 25%; height: 325%; transform: translateY(-50%); border-radius: 20% 30% 30% 20%; background: linear-gradient(100deg, #9dba70, #e7ffa8 36%, #bed78c 68%, #849f5d); box-shadow: inset 6px 0 0 #efffc15c, 8px 9px 0 #798956; }
.dumbbell i + i { right: 0; }
.spark { position: absolute; top: 24%; right: 22%; color: var(--lime); font-size: 23px; }
.grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 18px; margin: 18px 0; }
.panel { border-radius: 19px; background: #fff; padding: clamp(16px, 2.7vw, 27px); border: 1px solid var(--line); }
.section-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.section-head h2, .guide h2 { font-size: 25px; letter-spacing: -.035em; }
.section-head p { margin-top: 4px; line-height: 1.4; }
.pagination { display: flex; gap: 7px; }
.pagination button, .close { border: 1px solid var(--line); background: white; color: var(--ink); border-radius: 9px; min-width: 39px; height: 39px; font-size: 26px; line-height: 1; }
.pagination button:hover, .close:hover { background: var(--bg); }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(3px, 1vw, 8px); margin: 19px 0 16px; }
.day { min-width: 0; min-height: 78px; display: grid; justify-items: center; align-content: center; gap: 4px; background: #f5f4f9; border: 1px solid transparent; color: var(--ink); border-radius: 10px; padding: 3px 0; }
.day:hover { border-color: #8878d6; }
.day[aria-pressed="true"] { background: var(--purple); color: white; }
.day small, .day b { font-size: 14px; }
.day .kind { font-size: 13px; line-height: 1; color: #6555ad; }
.day[aria-pressed="true"] .kind { color: var(--lime); }
.day[data-done="true"]:not([aria-pressed="true"]) { background: #eff8de; }
.day[data-done="true"]:not([aria-pressed="true"]) .kind { color: #466518; }
.day[aria-current="date"]:not([aria-pressed="true"]) { border-color: #7565bf; }
.activity-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 0 0; border-top: 1px solid var(--line); }
.activity-row p { font-size: 14px; color: var(--muted); margin-top: 4px; }
.secondary { border: 1px solid var(--line); border-radius: 9px; background: #f5f3fd; color: #302978; font-weight: 720; padding: 8px 12px; min-height: 40px; }
.secondary:hover { background: #eae5ff; }
.link-button { background: none; border: 0; color: var(--purple); text-decoration: underline; text-underline-offset: 4px; padding: 12px 0 0; }
.stat-icon { background: #ede9ff; color: var(--purple); flex-shrink: 0; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0; }
.stat-grid > div { padding: 11px; border: 1px solid var(--line); border-radius: 12px; }
.stat-grid strong { display: block; font-size: 31px; letter-spacing: -.05em; }
.stat-grid span, .weekly, .total { color: var(--muted); font-size: 14px; }
.weekly, .total { display: flex; justify-content: space-between; gap: 12px; }
.weekly strong, .total strong { color: var(--ink); }
progress { appearance: none; width: 100%; height: 8px; border: 0; border-radius: 9px; overflow: hidden; margin: 8px 0 12px; color: #6552ca; background: #eeedf5; }
progress::-webkit-progress-bar { background: #eeedf5; }
progress::-webkit-progress-value { background: #6552ca; }
progress::-moz-progress-bar { background: #6552ca; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 17px 0 18px; }
.guide h3 { font-size: 17px; margin-bottom: 6px; }
.guide p, #dialog-note { line-height: 1.55; color: var(--muted); }
footer { padding: 22px 0 10px; color: var(--muted); font-size: 14px; }
dialog { width: min(570px, calc(100% - 28px)); max-height: calc(100% - 28px); border: 1px solid var(--line); border-radius: 20px; color: var(--ink); padding: 0; }
dialog::backdrop { background: #211b45a8; }
.dialog-body { padding: clamp(16px, 4vw, 28px); }
.steps { margin: 18px 0; padding: 0; list-style-position: inside; }
.steps li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.steps span { display: block; color: var(--muted); line-height: 1.45; font-size: 15px; margin-top: 4px; }
.dialog-body .primary { margin-top: 16px; }
.dialog-body .primary:disabled { background: #eeedf5; color: var(--muted); }
.error { margin-top: 10px; color: #9e2333; }
.sr-only { position: absolute; overflow: hidden; clip-path: inset(50%); width: 1px; height: 1px; white-space: nowrap; }
@media (max-width: 730px) {
  main { padding-top: 26px; }
  .grid { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 480px) {
  .bar-inner, main { padding-left: 14px; padding-right: 14px; }
  .bar-inner { min-height: 60px; }
  .brand { font-size: 21px; gap: 6px; }
  .mark { width: 32px; height: 32px; }
  nav a { font-size: 14px; }
  .hero { min-height: 235px; }
  .hero-content { width: 83%; }
  .hero-art { width: 47%; right: -11%; top: 28%; opacity: .53; }
  .intro { align-items: start; flex-direction: column; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }
