:root {
  --ink: #35415c;
  --ink-soft: #71809a;
  --line: rgba(77, 92, 120, .12);
  --paper: rgba(255, 255, 255, .68);
  --paper-strong: rgba(255, 255, 255, .82);
  --mint: #bfe9dc;
  --lilac: #d8cdf1;
  --blue: #b9d7ef;
  --shadow: 0 22px 55px -28px rgba(47, 62, 91, .55);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font: 15px/1.45 ui-rounded, "Nunito", system-ui, -apple-system, sans-serif;
  background: radial-gradient(125% 90% at 10% 0%, #f5f7fa 0%, #e7ecf3 48%, #d8e0eb 100%);
  background-attachment: fixed;
}

button, input { font: inherit; }
button { border: 0; cursor: pointer; }

.shell {
  position: relative;
  max-width: 430px;
  min-height: 100vh;
  margin: auto;
  padding: 22px 18px 30px;
}

.loading, .error-card {
  padding: 24px;
  margin-top: 30vh;
  text-align: center;
  background: var(--paper);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.error-card h1 { margin: 0 0 8px; font-size: 25px; }
.error-card p { color: var(--ink-soft); }

.background {
  pointer-events: none;
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
}

.blob { position: absolute; border-radius: 999px; filter: blur(42px); opacity: .62; }
.blob.one { width: 280px; height: 280px; top: -90px; left: -50px; background: #fff; }
.blob.two { width: 240px; height: 240px; top: 190px; right: -70px; background: #ded5f3; }

.petal {
  position: absolute;
  bottom: -30px;
  color: #a99bd1;
  font-size: 22px;
  animation: rise 12s linear infinite;
  opacity: 0;
}

.petal:nth-child(3) { left: 14%; animation-delay: 1s; }
.petal:nth-child(4) { left: 38%; animation-delay: 4s; }
.petal:nth-child(5) { left: 64%; animation-delay: 7s; }
.petal:nth-child(6) { left: 84%; animation-delay: 2s; }

@keyframes rise {
  15% { opacity: .6; }
  to { transform: translateY(-120vh) rotate(360deg); opacity: 0; }
}

.header, .actions, .focus-top, .section-heading, .check-heading,
.course-item-head, .supplement, .bottom-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.logo {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  color: #615685;
  border-radius: 16px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 8px 24px -8px rgba(57, 69, 92, .38);
  font-size: 20px;
}

.brand strong { display: block; font-size: 16px; line-height: 1; }
.brand small, .muted { color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.counter {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  color: #58647d;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  background: rgba(255, 255, 255, .54);
  font-weight: 800;
  font-size: 13px;
}

.card, .focus-card, .info-note {
  margin-top: 16px;
  border: 1px solid rgba(255, 255, 255, .5);
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.card { padding: 19px; border-radius: 28px; }
.focus-card {
  position: relative;
  overflow: hidden;
  padding: 21px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .8), rgba(240, 237, 250, .68));
}

.focus-card::after {
  content: "✿";
  position: absolute;
  right: 17px;
  bottom: -23px;
  color: rgba(142, 126, 187, .16);
  font-size: 94px;
  line-height: 1;
}

.focus-top { position: relative; z-index: 1; }
.focus-label, .eyebrow {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.focus-time { color: #62598a; font-size: 13px; font-weight: 900; }
h1, h2 { margin: 8px 0 0; line-height: 1.12; letter-spacing: -.025em; }
h1 { position: relative; z-index: 1; max-width: 310px; font-size: 26px; }
h2 { font-size: 20px; }
p { margin: 8px 0 0; }
.focus-card > p { position: relative; z-index: 1; max-width: 340px; color: var(--ink-soft); font-size: 12px; }

.supplement {
  position: relative;
  z-index: 1;
  margin-top: 9px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 15px;
  background: rgba(255, 255, 255, .48);
}

.supplement-main { min-width: 0; }
.supplement strong { display: block; font-size: 12px; }
.dose { display: block; margin-top: 2px; color: var(--ink-soft); font-size: 11px; }
.status-chip, .next-label, .done-label {
  flex-shrink: 0;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}
.status-chip { color: #4f7a70; background: rgba(191, 233, 220, .72); }
.next-label { color: #62598a; background: rgba(216, 205, 241, .72); }
.done-label { color: #5b718a; background: rgba(185, 215, 239, .5); }

.primary {
  width: 100%;
  margin-top: 15px;
  padding: 13px 15px;
  color: #fff;
  border-radius: 15px;
  background: var(--ink);
  box-shadow: 0 12px 24px -10px rgba(57, 69, 92, .8);
  font-weight: 900;
}
.primary:active { transform: translateY(1px); }

.complete { display: flex; align-items: center; gap: 13px; }
.complete h1 { max-width: none; font-size: 20px; }
.complete p { color: var(--ink-soft); font-size: 12px; }
.complete-icon {
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #47776c;
  border-radius: 15px;
  background: rgba(191, 233, 220, .8);
  font-weight: 900;
  font-size: 20px;
}
.restart { flex-shrink: 0; }

.section-heading { align-items: flex-start; }
.progress-count { display: flex; align-items: baseline; gap: 4px; color: var(--ink-soft); font-size: 11px; }
.progress-count strong { color: var(--ink); font-size: 20px; }
.section-mark { color: #8d80b7; font-size: 26px; line-height: 1; }
.section-intro { color: var(--ink-soft); font-size: 12px; }

.day-progress, .progress-track {
  overflow: hidden;
  height: 6px;
  border-radius: 999px;
  background: rgba(108, 123, 151, .12);
}
.day-progress { margin-top: 14px; }
.day-progress span, .progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #acdcca, #aca0d3);
  transition: width .25s ease;
}

.checklist { margin-top: 13px; }
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.check-box {
  display: grid;
  flex: 0 0 24px;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  color: #fff;
  border: 2px solid #c3cada;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
}
.check-row.is-done .check-box { border-color: #95cdbd; background: #95cdbd; }
.check-row.is-current .check-box { border-color: #8d80b7; box-shadow: 0 0 0 4px rgba(216, 205, 241, .35); }
.check-content { min-width: 0; flex: 1; }
.check-heading { align-items: baseline; }
.check-heading strong { font-size: 13px; }
.check-title { margin-top: 3px; color: var(--ink-soft); font-size: 11px; }
.check-row.is-done .check-title { opacity: .7; }
.step-supplements { margin-top: 7px; }
.step-supplements .supplement { margin-top: 5px; padding: 8px 10px; background: rgba(255, 255, 255, .35); }
.step-note { display: block; margin-top: 8px; color: var(--ink-soft); font-size: 11px; font-style: italic; }
.check-button { margin-top: 10px; padding: 10px; font-size: 12px; }

.courses-card { padding-bottom: 16px; }
.course-list { margin-top: 14px; }
.course-item {
  position: relative;
  margin-top: 9px;
  padding: 13px 13px 12px 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .56);
  border-radius: 18px;
  background: rgba(255, 255, 255, .42);
}
.course-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #9acfbf;
}
.course-item.rest::before { background: #b5a6db; }
.course-item.finished::before { background: #adc1d5; }
.course-item-head { align-items: flex-start; }
.course-item-head strong { display: block; font-size: 13px; }
.course-state { flex-shrink: 0; color: #5e6981; font-size: 10px; font-weight: 900; }
.course-detail { color: var(--ink); font-size: 11px; font-weight: 800; }
.progress-track { height: 5px; margin-top: 9px; }
.course-caption { color: var(--ink-soft); font-size: 10px; }

.course-notice {
  display: flex;
  gap: 11px;
  margin-top: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .38);
}
.notice-icon {
  display: grid;
  flex: 0 0 28px;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #62598a;
  border-radius: 10px;
  background: rgba(216, 205, 241, .58);
  font-weight: 900;
}
.course-notice.finished .notice-icon { color: #4f7a70; background: rgba(191, 233, 220, .65); }
.notice-copy { min-width: 0; }
.notice-copy strong { font-size: 12px; }
.notice-copy p { color: var(--ink-soft); font-size: 11px; }
.notice-copy .eyebrow { margin-top: 1px; }
.decision { color: #4f7a70 !important; font-weight: 800; }

.actions { align-items: center; }
.button-small, .secondary {
  padding: 9px 12px;
  color: var(--ink);
  border: 1px solid rgba(95, 110, 140, .12);
  border-radius: 12px;
  background: rgba(255, 255, 255, .64);
  font-weight: 800;
  font-size: 10px;
}
.primary-small { color: #fff; background: var(--ink); }
.info-note {
  display: flex;
  gap: 10px;
  padding: 13px 15px;
  border-radius: 19px;
  background: rgba(255, 255, 255, .45);
  box-shadow: none;
}
.info-icon {
  display: grid;
  flex: 0 0 21px;
  place-items: center;
  width: 21px;
  height: 21px;
  color: #62598a;
  border: 1px solid rgba(98, 89, 138, .3);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}
.info-note strong { font-size: 11px; }
.info-note p { color: var(--ink-soft); font-size: 11px; }
.bottom-actions { margin-top: 15px; }
.bottom-actions .secondary { margin-top: 0; }

.setup input {
  width: 100%;
  margin-top: 20px;
  padding: 10px;
  color: var(--ink);
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  background: rgba(255, 255, 255, .7);
  border: 0;
  border-radius: 16px;
  outline: 0;
}
.setup .primary { margin-top: 16px; }
.footer {
  margin-top: 22px;
  padding: 0 4px;
  color: rgba(113, 128, 154, .8);
  text-align: center;
  font-size: 10px;
  font-weight: 700;
}
.fade { animation: fade .25s ease both; }
@keyframes fade {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}