:root {
  color-scheme: dark;
  --bg: #070a12;
  --bg-soft: #0b1020;
  --text: #f7f7fb;
  --muted: rgba(247, 247, 251, .68);
  --faint: rgba(247, 247, 251, .46);
  --line: rgba(255, 255, 255, .12);
  --glass: rgba(255, 255, 255, .08);
  --glass-strong: rgba(255, 255, 255, .13);
  --shadow: 0 24px 80px rgba(0, 0, 0, .38);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(96, 165, 250, .28), transparent 34rem),
    radial-gradient(circle at 84% 18%, rgba(251, 146, 60, .18), transparent 28rem),
    radial-gradient(circle at 70% 90%, rgba(45, 212, 191, .16), transparent 30rem),
    linear-gradient(145deg, #070a12 0%, #0b1020 58%, #080b14 100%);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
}

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

.glow {
  position: absolute;
  width: 15rem;
  height: 15rem;
  border-radius: 50%;
  filter: blur(36px);
  opacity: .34;
  animation: drift 18s ease-in-out infinite alternate;
}

.glow-one {
  left: 6%;
  top: 18%;
  background: rgba(96, 165, 250, .34);
}

.glow-two {
  right: 8%;
  top: 12%;
  background: rgba(251, 146, 60, .24);
  animation-duration: 22s;
}

.glow-three {
  right: 24%;
  bottom: 4%;
  background: rgba(45, 212, 191, .22);
  animation-duration: 25s;
}

.chimes {
  position: absolute;
  top: -1rem;
  left: 0;
  width: 100%;
  height: 12rem;
  opacity: .28;
}

.chime {
  position: absolute;
  top: 0;
  width: 1px;
  height: 7rem;
  transform-origin: top center;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0));
  animation: sway 9s ease-in-out infinite alternate;
}

.chime::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -.35rem;
  width: .7rem;
  height: .7rem;
  border-radius: 999px 999px 999px 2px;
  transform: translateX(-50%) rotate(45deg);
  background: rgba(255, 255, 255, .58);
  box-shadow: 0 0 20px rgba(125, 211, 252, .42);
}

.chime-a { left: 16%; height: 8rem; }
.chime-b { left: 37%; height: 5.8rem; animation-duration: 11s; }
.chime-c { left: 68%; height: 7rem; animation-duration: 10s; }
.chime-d { left: 86%; height: 6.4rem; animation-duration: 12s; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(1.5rem, 2.2rem, 0) scale(1.08); }
}

@keyframes sway {
  from { transform: rotate(-2.5deg); }
  to { transform: rotate(2.5deg); }
}

.shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 18px;
}

.top-nav {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  padding: 10px 10px 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 10, 18, .58);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .2);
}

.brand {
  font-weight: 800;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  justify-content: flex-end;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--muted);
}

.nav-link.active {
  color: var(--text);
  background: rgba(255, 255, 255, .12);
}

.glass-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--glass);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.flash-stack {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

.flash {
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .1);
  color: var(--text);
}

.flash.error {
  border-color: rgba(251, 113, 133, .45);
}

.flash.success {
  border-color: rgba(52, 211, 153, .45);
}

.auth-wrap {
  min-height: calc(100vh - 36px);
  display: grid;
  place-items: center;
}

.login-card {
  width: min(440px, 100%);
  padding: 30px;
}

.eyebrow,
.date-label {
  margin: 0 0 10px;
  color: #7dd3fc;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

.login-card h1,
.page-hero h1 {
  margin-bottom: 12px;
  font-size: clamp(34px, 8vw, 58px);
  line-height: 1.06;
  letter-spacing: 0;
}

.soft-text,
.section-head p {
  color: var(--muted);
}

.form-stack,
.note-grid {
  display: grid;
  gap: 16px;
}

label span {
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 16px;
}

input,
textarea,
select {
  width: 100%;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  outline: 0;
  background: rgba(5, 8, 16, .52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

input {
  min-height: 54px;
  padding: 0 16px;
}

select {
  min-height: 54px;
  padding: 0 42px 0 16px;
}

textarea {
  min-height: 82px;
  resize: vertical;
  padding: 15px 16px;
  font-size: 19px;
}

input::placeholder,
textarea::placeholder {
  color: rgba(247, 247, 251, .34);
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(125, 211, 252, .58);
  background: rgba(9, 15, 29, .66);
  box-shadow: 0 0 0 4px rgba(125, 211, 252, .12);
}

.primary-button {
  min-height: 54px;
  width: 100%;
  cursor: pointer;
  border-radius: 999px;
  color: #06111d;
  font-weight: 850;
  font-size: 18px;
  background: linear-gradient(135deg, #7dd3fc, #a7f3d0 48%, #fed7aa);
  box-shadow: 0 18px 36px rgba(34, 211, 238, .18);
  transition: transform .16s ease, filter .16s ease;
}

.primary-button:active {
  transform: translateY(1px) scale(.99);
}

.today-page {
  padding-bottom: 36px;
}

.page-hero {
  padding: 16px 2px 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.stat-card {
  min-height: 132px;
  padding: 18px;
}

.stat-card > span {
  display: block;
  color: var(--muted);
  font-size: 15px;
}

.stat-card strong {
  display: block;
  margin-top: 16px;
  font-size: clamp(32px, 10vw, 44px);
  line-height: 1;
}

.stat-card small {
  margin-left: 4px;
  color: var(--faint);
  font-size: 18px;
}

.today-form,
.section-card {
  display: grid;
  gap: 16px;
}

.section-card {
  padding: 20px;
}

.section-head h2 {
  margin-bottom: 4px;
  font-size: 26px;
}

.section-head p {
  margin-bottom: 0;
  font-size: 16px;
}

.check-grid {
  display: grid;
  gap: 12px;
}

.check-card {
  position: relative;
  min-height: 88px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 22px;
  background: rgba(255, 255, 255, .055);
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.check-card::before {
  content: "";
  position: absolute;
  inset: -50% auto auto -20%;
  width: 60%;
  height: 180%;
  background: radial-gradient(circle, var(--item-color), transparent 60%);
  opacity: .08;
}

.check-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-card:active {
  transform: scale(.99);
}

.check-card.is-complete {
  border-color: color-mix(in srgb, var(--item-color), white 24%);
  background: color-mix(in srgb, var(--item-color), rgba(255, 255, 255, .08) 82%);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--item-color), transparent 72%);
}

.done-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #06111d;
  font-weight: 900;
  background: var(--item-color);
  opacity: 0;
  transform: scale(.74);
  transition: opacity .16s ease, transform .16s ease;
}

.check-card.is-complete .done-mark {
  opacity: 1;
  transform: scale(1);
}

.color-dot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--item-color);
  box-shadow: 0 0 22px var(--item-color);
}

.check-copy strong {
  display: block;
  font-size: 20px;
}

.check-copy em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 15px;
}

.points {
  font-size: 24px;
  font-weight: 850;
}

.save-bar {
  position: sticky;
  bottom: 12px;
  z-index: 15;
  margin-top: 2px;
}

.empty-state {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px dashed rgba(255, 255, 255, .18);
  border-radius: 22px;
  background: rgba(255, 255, 255, .045);
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.ghost-button,
.secondary-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  color: var(--text);
  font-weight: 800;
  background: rgba(255, 255, 255, .08);
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.ghost-button:active,
.secondary-button:active {
  transform: translateY(1px) scale(.99);
}

.settings-page {
  display: grid;
  gap: 16px;
  padding-bottom: 36px;
}

.weekly-page,
.calendar-page,
.year-page,
.timeline-page,
.export-page {
  display: grid;
  gap: 16px;
  padding-bottom: 36px;
}

.weekly-create,
.export-form {
  display: grid;
  gap: 14px;
}

.weekly-group {
  display: grid;
  gap: 12px;
}

.task-list {
  display: grid;
  gap: 12px;
}

.task-card {
  position: relative;
  display: grid;
  gap: 14px;
  overflow: hidden;
  padding: 16px;
}

.task-card::before {
  content: "";
  position: absolute;
  inset: -55% auto auto -16%;
  width: 54%;
  height: 170%;
  opacity: .12;
  background: radial-gradient(circle, #7dd3fc, transparent 62%);
}

.task-card.priority-important::before {
  background: radial-gradient(circle, #fb7185, transparent 62%);
  opacity: .18;
}

.task-card.priority-light::before {
  background: radial-gradient(circle, #a7f3d0, transparent 62%);
}

.task-card.is-done {
  opacity: .58;
}

.task-card.is-done input[name="title"] {
  text-decoration: line-through;
}

.task-main,
.task-controls {
  position: relative;
  display: grid;
  gap: 12px;
}

.task-main {
  grid-template-columns: 48px 1fr;
  align-items: end;
}

.round-action {
  width: 48px;
  height: 48px;
  cursor: pointer;
  border-radius: 50%;
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .14);
}

.danger-button {
  min-height: 48px;
  cursor: pointer;
  border-radius: 999px;
  color: #fecdd3;
  font-weight: 800;
  background: rgba(251, 113, 133, .12);
  border: 1px solid rgba(251, 113, 133, .22);
}

.quiet-card {
  padding: 16px;
  border-radius: 20px;
  color: var(--faint);
  background: rgba(255, 255, 255, .045);
  border: 1px dashed rgba(255, 255, 255, .12);
}

.calendar-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.pager {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.month-weekdays,
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.month-weekdays span {
  color: var(--faint);
  text-align: center;
  font-size: 14px;
  font-weight: 800;
}

.month-day {
  min-height: 150px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .045);
}

.month-day.is-empty {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.month-day.has-record {
  background: rgba(255, 255, 255, .08);
}

.month-day.is-today {
  border-color: rgba(125, 211, 252, .58);
  box-shadow: 0 0 0 1px rgba(125, 211, 252, .24), var(--shadow);
}

.month-day-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.month-day-head strong {
  font-size: 22px;
}

.month-day-head span,
.mini-muted {
  color: var(--faint);
  font-size: 13px;
}

.mini-score {
  margin: 8px 0;
  color: #a7f3d0;
  font-weight: 850;
}

.mini-checks {
  display: grid;
  gap: 4px;
}

.mini-checks span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-checks i,
.year-legend i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--item-color);
  box-shadow: 0 0 12px var(--item-color);
}

.year-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 16px;
}

.year-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 750;
}

.year-months {
  display: grid;
  gap: 14px;
}

.year-month {
  padding: 16px;
}

.year-month h2 {
  margin-bottom: 12px;
  font-size: 22px;
}

.rings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(32px, 1fr));
  gap: 9px;
}

.day-ring {
  position: relative;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  margin: auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #070a12 0 23%, transparent 24%),
    conic-gradient(var(--ring-inner) 0 100%);
  box-shadow:
    0 0 0 4px #070a12,
    0 0 0 6px var(--ring-middle),
    0 0 0 9px #070a12,
    0 0 0 11px var(--ring-outer);
  opacity: .52;
}

.day-ring.has-record {
  opacity: .95;
}

.day-ring.is-today {
  filter: drop-shadow(0 0 12px rgba(125, 211, 252, .68));
}

.day-ring i {
  color: rgba(255, 255, 255, .66);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}

.vine {
  position: relative;
  display: grid;
  gap: 18px;
}

.vine::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 16px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(to bottom, rgba(125, 211, 252, .7), rgba(167, 243, 208, .22), rgba(251, 146, 60, .28));
}

.vine-entry {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
}

.vine-node {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  margin-top: 18px;
  border-radius: 50%;
  background: conic-gradient(#a7f3d0 0 var(--rate), #20283a var(--rate) 100%);
  box-shadow: 0 0 20px rgba(125, 211, 252, .22);
}

.vine-node::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #070a12;
}

.vine-node.is-full {
  box-shadow: 0 0 28px rgba(167, 243, 208, .46);
}

.vine-card {
  padding: 18px;
}

.vine-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.vine-head strong {
  font-size: 22px;
}

.vine-head span {
  color: #a7f3d0;
  font-weight: 850;
}

.vine-notes {
  display: grid;
  gap: 10px;
}

.vine-notes p {
  margin: 0;
  color: var(--muted);
}

.vine-notes b {
  display: inline-flex;
  min-width: 3.5em;
  color: var(--text);
}

.compact-hero h1 {
  margin-bottom: 8px;
}

.goal-list {
  display: grid;
  gap: 14px;
}

.goal-card {
  position: relative;
  display: grid;
  gap: 16px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 22px;
  background: rgba(255, 255, 255, .055);
}

.goal-card::before {
  content: "";
  position: absolute;
  inset: -45% auto auto -18%;
  width: 52%;
  height: 150%;
  background: radial-gradient(circle, var(--item-color), transparent 62%);
  opacity: .1;
  pointer-events: none;
}

.goal-card-head,
.toggle-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.goal-card-head strong {
  font-size: 21px;
}

.goal-card-head em {
  margin-left: auto;
  color: var(--muted);
  font-size: 15px;
  font-style: normal;
}

.settings-grid {
  position: relative;
  display: grid;
  gap: 14px;
}

.color-input {
  min-height: 54px;
  padding: 8px;
}

.switch-line {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: var(--text);
}

.switch-line input[type="checkbox"] {
  width: 22px;
  min-height: 22px;
  height: 22px;
  accent-color: #7dd3fc;
}

.switch-line span {
  margin: 0;
  color: inherit;
  font-size: 16px;
}

.switch-line.is-disabled {
  opacity: .48;
}

.preference-form {
  display: grid;
  gap: 16px;
}

@media (min-width: 760px) {
  .shell {
    padding: 28px;
  }

  .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .check-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .note-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-grid {
    grid-template-columns: 1.4fr .7fr .7fr .7fr;
    align-items: end;
  }

  .weekly-create,
  .export-form {
    grid-template-columns: 1.4fr .7fr .55fr .8fr;
    align-items: end;
  }

  .task-controls {
    grid-template-columns: 1fr .7fr .7fr .7fr;
    align-items: end;
  }

  .year-months {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .preference-form {
    grid-template-columns: 1fr 220px;
    align-items: end;
  }

  .note-grid label:first-child,
  .note-grid label:nth-child(2) {
    grid-column: span 1;
  }

  .section-card {
    padding: 26px;
  }

  .save-button {
    width: 260px;
    margin-left: auto;
    display: block;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 17px;
  }

  .shell {
    padding: 14px;
  }

  .top-nav {
    top: 8px;
    margin-bottom: 18px;
    grid-template-columns: 1fr;
    border-radius: 26px;
    padding: 12px;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .month-weekdays {
    display: none;
  }

  .month-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .month-day.is-empty {
    display: none;
  }

  .month-day {
    min-height: 132px;
  }

  .rings-grid {
    grid-template-columns: repeat(auto-fill, minmax(30px, 1fr));
  }

  .glow-three,
  .chime-b,
  .chime-d {
    display: none;
  }
}

/* Fourth-pass visual polish */
body {
  background:
    radial-gradient(circle at 18% 4%, rgba(94, 168, 255, .24), transparent 26rem),
    radial-gradient(circle at 90% 10%, rgba(255, 184, 107, .15), transparent 24rem),
    radial-gradient(circle at 72% 84%, rgba(85, 209, 122, .12), transparent 27rem),
    linear-gradient(155deg, #060812 0%, #0a1020 52%, #070914 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 0%, black, transparent 78%);
}

.glow {
  opacity: .22;
  filter: blur(48px);
}

.chimes {
  opacity: .18;
}

.chime {
  width: 1px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .42), rgba(255, 255, 255, 0));
}

.chime::after {
  width: .54rem;
  height: .54rem;
  background: rgba(255, 255, 255, .42);
  box-shadow: 0 0 18px rgba(125, 211, 252, .24);
}

.shell {
  width: min(1160px, 100%);
}

.top-nav {
  background: rgba(7, 10, 18, .68);
  border-color: rgba(255, 255, 255, .105);
}

.brand {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  color: rgba(255,255,255,.92);
}

.nav-link {
  font-size: 16px;
  font-weight: 760;
  transition: color .16s ease, background .16s ease, transform .16s ease;
}

.nav-link:hover,
.ghost-button:hover,
.secondary-button:hover,
.danger-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .12);
}

.nav-link.active {
  background: linear-gradient(135deg, rgba(125, 211, 252, .2), rgba(167, 243, 208, .12));
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, .18);
}

.glass-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .105), rgba(255, 255, 255, .052)),
    rgba(255, 255, 255, .055);
  border-color: rgba(255, 255, 255, .13);
  box-shadow: 0 24px 72px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255,255,255,.06);
}

.page-hero {
  padding: 20px 2px 28px;
}

.page-hero h1 {
  max-width: 820px;
}

.hero-note {
  margin-bottom: 0;
  max-width: 640px;
}

.date-label,
.eyebrow {
  color: #9ee7ff;
  letter-spacing: .1em;
}

.soft-text,
.section-head p {
  color: rgba(247, 247, 251, .72);
}

.section-card {
  border-radius: 28px;
  padding: 22px;
}

.section-head {
  display: grid;
  gap: 4px;
}

.section-head h2 {
  letter-spacing: 0;
}

.login-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 34px;
}

.login-card::before,
.stat-primary::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 211, 252, .28), transparent 66%);
  pointer-events: none;
}

.stat-card {
  position: relative;
  overflow: hidden;
  min-height: 138px;
  border-radius: 26px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.stat-card:hover,
.check-card:hover,
.goal-card:hover,
.task-card:hover,
.month-day.has-record:hover,
.year-month:hover,
.vine-card:hover {
  transform: translateY(-2px);
}

.stat-primary {
  border-color: rgba(125, 211, 252, .28);
  background:
    radial-gradient(circle at 90% 12%, rgba(125, 211, 252, .22), transparent 9rem),
    linear-gradient(145deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .06));
}

.stat-primary strong {
  color: #dff8ff;
  text-shadow: 0 0 26px rgba(125, 211, 252, .18);
}

label span {
  color: rgba(247, 247, 251, .76);
  font-weight: 720;
}

input,
textarea,
select {
  min-width: 0;
  font-size: 18px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025)),
    rgba(5, 8, 16, .58);
}

textarea {
  min-height: 96px;
  line-height: 1.55;
}

input[type="color"] {
  cursor: pointer;
  border-radius: 20px;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button {
  min-height: 54px;
  letter-spacing: 0;
}

.primary-button {
  background: linear-gradient(135deg, #8de1ff 0%, #a7f3d0 48%, #ffd3a6 100%);
  box-shadow: 0 18px 42px rgba(125, 211, 252, .18), inset 0 1px 0 rgba(255,255,255,.42);
}

.primary-button:hover {
  filter: brightness(1.05);
}

.flash {
  border-radius: 22px;
  backdrop-filter: blur(18px);
}

.flash.success {
  background: rgba(52, 211, 153, .12);
  color: #d1fae5;
}

.flash.error {
  background: rgba(251, 113, 133, .12);
  color: #ffe4e6;
}

.empty-state {
  border-radius: 26px;
  border-color: rgba(125, 211, 252, .2);
  background:
    radial-gradient(circle at 12% 12%, rgba(125, 211, 252, .13), transparent 12rem),
    rgba(255, 255, 255, .052);
}

.check-card {
  min-height: 96px;
  border-radius: 26px;
  grid-template-columns: auto 1fr auto auto;
  background:
    radial-gradient(circle at 0% 20%, color-mix(in srgb, var(--item-color), transparent 88%), transparent 11rem),
    rgba(255, 255, 255, .058);
}

.check-card::before {
  opacity: .12;
}

.check-card.is-complete {
  border-color: color-mix(in srgb, var(--item-color), white 34%);
  background:
    radial-gradient(circle at 8% 20%, color-mix(in srgb, var(--item-color), transparent 72%), transparent 12rem),
    rgba(255, 255, 255, .09);
}

.done-mark {
  color: #041018;
  box-shadow: 0 0 22px color-mix(in srgb, var(--item-color), transparent 45%);
}

.points {
  color: rgba(255,255,255,.94);
}

.goal-card,
.task-card {
  border-radius: 26px;
  transition: transform .18s ease, border-color .18s ease, opacity .18s ease;
}

.goal-card-head em {
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.075);
}

.switch-line {
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.switch-line:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, .22);
}

.weekly-group > .section-head h2 {
  font-size: 24px;
}

.task-card.priority-important {
  border-color: rgba(251, 113, 133, .22);
}

.task-card.priority-light {
  opacity: .86;
}

.round-action {
  background: linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.06));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  transition: transform .16s ease, border-color .16s ease;
}

.round-action:hover {
  transform: scale(1.04);
  border-color: rgba(167, 243, 208, .36);
}

.calendar-hero .pager .ghost-button {
  padding: 0 18px;
}

.month-day {
  border-radius: 24px;
  transition: transform .18s ease, opacity .18s ease, border-color .18s ease;
}

.month-day:not(.has-record) {
  opacity: .58;
}

.month-day.has-record {
  opacity: 1;
  border-color: rgba(255,255,255,.16);
}

.month-day.is-today {
  border-color: rgba(125, 211, 252, .7);
  background:
    radial-gradient(circle at 92% 10%, rgba(125, 211, 252, .24), transparent 8rem),
    rgba(255, 255, 255, .08);
}

.mini-checks span {
  min-width: 0;
}

.year-legend {
  border-radius: 26px;
  justify-content: center;
}

.year-month {
  border-radius: 28px;
  background:
    radial-gradient(circle at 96% 8%, rgba(125, 211, 252, .08), transparent 9rem),
    linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.045));
  transition: transform .18s ease, border-color .18s ease;
}

.rings-grid {
  grid-template-columns: repeat(auto-fill, minmax(34px, 1fr));
  gap: 12px 10px;
  padding: 4px;
}

.day-ring {
  width: 34px;
  height: 34px;
  background:
    radial-gradient(circle at center, #070a12 0 25%, transparent 26%),
    conic-gradient(var(--ring-inner) 0 100%);
  box-shadow:
    0 0 0 3px #070a12,
    0 0 0 5px var(--ring-middle),
    0 0 0 8px #070a12,
    0 0 0 10px var(--ring-outer),
    0 8px 18px rgba(0,0,0,.2);
  transition: transform .14s ease, opacity .14s ease, filter .14s ease;
}

.day-ring:hover {
  transform: scale(1.08);
  opacity: 1;
  z-index: 2;
}

.day-ring.is-today {
  outline: 1px solid rgba(125, 211, 252, .5);
  outline-offset: 12px;
}

.day-ring.has-record {
  filter: saturate(1.08);
}

.vine {
  gap: 22px;
}

.vine::before {
  left: 17px;
  width: 1px;
  background:
    linear-gradient(to bottom, rgba(125, 211, 252, .08), rgba(125, 211, 252, .65), rgba(167, 243, 208, .3), rgba(255, 211, 166, .18));
  box-shadow: 0 0 22px rgba(125, 211, 252, .18);
}

.vine-node {
  width: 36px;
  height: 36px;
  background:
    radial-gradient(circle at 34% 28%, rgba(255,255,255,.65), transparent 18%),
    conic-gradient(#a7f3d0 0 var(--rate), #232b3c var(--rate) 100%);
}

.vine-node::after {
  inset: 10px;
  background: #08101c;
}

.vine-card {
  border-radius: 28px;
  background:
    radial-gradient(circle at 0% 0%, rgba(167, 243, 208, .09), transparent 10rem),
    linear-gradient(145deg, rgba(255,255,255,.095), rgba(255,255,255,.048));
}

.vine-notes p {
  padding: 9px 0;
  border-top: 1px solid rgba(255,255,255,.065);
}

.export-card {
  max-width: 920px;
}

.export-card .section-head p {
  max-width: 680px;
}

@media (max-width: 760px) {
  .shell {
    padding: 14px;
  }

  .page-hero {
    padding-top: 12px;
    padding-bottom: 20px;
  }

  .login-card {
    padding: 26px 20px;
  }

  .stats-grid {
    gap: 10px;
  }

  .stat-card {
    min-height: 122px;
    padding: 16px;
  }

  .check-card {
    grid-template-columns: auto 1fr auto;
  }

  .check-card .points {
    grid-column: 2 / 4;
    justify-self: end;
    margin-top: -8px;
  }

  .goal-card,
  .task-card,
  .section-card,
  .month-day,
  .year-month,
  .vine-card {
    border-radius: 24px;
  }

  .calendar-hero {
    align-items: start;
  }

  .pager {
    width: 100%;
  }

  .pager .ghost-button {
    flex: 1;
  }

  .year-months {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body::before {
    background-size: 96px 96px;
    opacity: .48;
  }

  .glow {
    opacity: .16;
  }

  .chimes {
    opacity: .12;
  }

  .nav-link {
    min-height: 40px;
    padding: 0 13px;
    font-size: 15px;
  }

  .login-card h1,
  .page-hero h1 {
    font-size: 34px;
  }

  .stat-card strong {
    font-size: 34px;
  }

  .month-grid {
    grid-template-columns: 1fr;
  }

  .month-day {
    min-height: auto;
  }

  .rings-grid {
    grid-template-columns: repeat(auto-fill, minmax(30px, 1fr));
    gap: 11px 8px;
  }

  .day-ring {
    width: 30px;
    height: 30px;
    box-shadow:
      0 0 0 3px #070a12,
      0 0 0 5px var(--ring-middle),
      0 0 0 7px #070a12,
      0 0 0 9px var(--ring-outer);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Year calendar redesign: larger, calmer, easier to read. */
:root {
  --year-day-size: 58px;
  --year-ring-gap: 12px;
  --year-ring-track: rgba(255, 255, 255, .075);
  --year-ring-empty: rgba(255, 255, 255, .045);
}

.year-page {
  width: min(1680px, calc(100vw - 56px));
  margin-left: 50%;
  transform: translateX(-50%);
}

.year-page .calendar-hero {
  margin-bottom: 2px;
}

.year-page .page-hero h1 {
  font-size: clamp(42px, 6vw, 72px);
}

.year-page .pager {
  align-items: center;
}

.year-page .pager .ghost-button {
  min-width: 112px;
  background: rgba(255, 255, 255, .075);
}

.year-page .year-legend {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 10px;
  padding: 12px 16px;
  gap: 14px;
  justify-content: flex-start;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,.045)),
    rgba(255,255,255,.05);
}

.year-page .year-legend span {
  color: rgba(247, 247, 251, .82);
  font-size: 15px;
}

.year-page .year-legend i {
  width: 12px;
  height: 12px;
}

.year-page .year-months {
  display: grid;
  grid-template-columns: repeat(2, minmax(520px, 1fr));
  gap: 28px;
  align-items: start;
}

.year-page .year-month {
  min-height: 450px;
  padding: 26px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 92% 8%, rgba(125, 211, 252, .105), transparent 12rem),
    radial-gradient(circle at 10% 96%, rgba(167, 243, 208, .055), transparent 10rem),
    linear-gradient(145deg, rgba(255,255,255,.105), rgba(255,255,255,.052));
  border-color: rgba(255,255,255,.14);
}

.year-page .year-month h2 {
  margin: 0 0 20px;
  font-size: 28px;
  line-height: 1;
  font-weight: 880;
}

.year-page .year-weekdays,
.year-page .rings-grid {
  display: grid;
  grid-template-columns: repeat(7, var(--year-day-size));
  justify-content: start;
}

.year-page .year-weekdays {
  gap: var(--year-ring-gap);
  margin-bottom: 12px;
}

.year-page .year-weekdays span {
  color: rgba(247, 247, 251, .42);
  font-size: 13px;
  font-weight: 820;
  text-align: center;
}

.year-page .rings-grid {
  gap: var(--year-ring-gap);
  padding: 0;
}

.year-page .day-ring-slot {
  width: var(--year-day-size);
  height: var(--year-day-size);
}

.year-page .day-ring {
  width: var(--year-day-size);
  height: var(--year-day-size);
  margin: 0;
  opacity: .82;
  background:
    radial-gradient(circle at center, rgba(7, 10, 18, .98) 0 31%, transparent 32%),
    conic-gradient(var(--ring-inner) 0 100%);
  box-shadow:
    0 0 0 4px #070a12,
    0 0 0 8px var(--ring-middle),
    0 0 0 12px #070a12,
    0 0 0 16px var(--ring-outer),
    0 12px 28px rgba(0, 0, 0, .28);
}

.year-page .day-ring:not(.has-record) {
  --ring-outer: var(--year-ring-empty) !important;
  --ring-middle: var(--year-ring-empty) !important;
  --ring-inner: var(--year-ring-empty) !important;
  opacity: .45;
}

.year-page .day-ring.has-record {
  opacity: .98;
}

.year-page .day-ring:hover {
  transform: translateY(-2px) scale(1.04);
}

.year-page .day-ring.is-today {
  outline: 2px solid rgba(125, 211, 252, .62);
  outline-offset: 18px;
  filter: drop-shadow(0 0 16px rgba(125, 211, 252, .45));
}

.year-page .day-ring i {
  color: rgba(247, 247, 251, .84);
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
}

.year-page .day-ring.is-today i {
  color: #e6fbff;
  text-shadow: 0 0 14px rgba(125, 211, 252, .55);
}

@media (min-width: 1600px) {
  .year-page .year-months {
    grid-template-columns: repeat(3, minmax(520px, 1fr));
  }
}

@media (max-width: 1180px) {
  .year-page {
    width: min(100%, calc(100vw - 28px));
  }

  .year-page .year-months {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  :root {
    --year-day-size: clamp(38px, 11.5vw, 52px);
    --year-ring-gap: 8px;
  }

  .year-page {
    width: 100%;
    margin-left: 0;
    transform: none;
  }

  .year-page .page-hero h1 {
    font-size: 38px;
  }

  .year-page .year-legend {
    width: 100%;
    border-radius: 24px;
  }

  .year-page .year-month {
    min-height: 0;
    padding: 20px;
    border-radius: 26px;
  }

  .year-page .year-month h2 {
    margin-bottom: 16px;
    font-size: 26px;
  }

  .year-page .year-weekdays,
  .year-page .rings-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .year-page .day-ring-slot,
  .year-page .day-ring {
    width: var(--year-day-size);
    height: var(--year-day-size);
    justify-self: center;
  }

  .year-page .day-ring {
    box-shadow:
      0 0 0 3px #070a12,
      0 0 0 6px var(--ring-middle),
      0 0 0 9px #070a12,
      0 0 0 12px var(--ring-outer),
      0 8px 18px rgba(0, 0, 0, .24);
  }

  .year-page .day-ring i {
    font-size: clamp(12px, 3.4vw, 15px);
  }

  .year-page .day-ring.is-today {
    outline-offset: 13px;
  }
}

/* Year calendar v2: overview first, month detail second. */
.year-redesign {
  width: min(1280px, calc(100vw - 40px));
  margin-left: auto;
  margin-right: auto;
  transform: none;
}

.year-redesign .year-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 18px;
}

.year-redesign .year-hero h1 {
  margin-bottom: 8px;
  font-size: clamp(38px, 5vw, 60px);
}

.year-status-legend,
.year-core-legend {
  display: flex;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255,255,255,.06);
}

.year-core-legend {
  margin-top: -6px;
}

.year-status-legend span,
.year-core-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(247, 247, 251, .76);
  font-size: 14px;
  font-weight: 760;
}

.year-status-legend i,
.year-core-legend i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--item-color, rgba(255,255,255,.14));
}

.year-status-legend .dot-none { background: rgba(255,255,255,.07); }
.year-status-legend .dot-low { background: rgba(255,255,255,.22); }
.year-status-legend .dot-mid { background: rgba(94,168,255,.62); }
.year-status-legend .dot-full {
  background: #55D17A;
  box-shadow: 0 0 14px rgba(85, 209, 122, .42);
}

.year-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 18px;
}

.year-overview-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(125, 211, 252, .08), transparent 8rem),
    linear-gradient(145deg, rgba(255,255,255,.095), rgba(255,255,255,.048));
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.year-overview-card:hover {
  transform: translateY(-2px);
}

.year-overview-card.is-selected {
  border-color: rgba(125, 211, 252, .5);
  background:
    radial-gradient(circle at 100% 0%, rgba(125, 211, 252, .16), transparent 8rem),
    linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.06));
}

.month-select-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.overview-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.overview-head h2 {
  margin: 0;
  font-size: 21px;
}

.overview-head span {
  color: #a7f3d0;
  font-size: 15px;
  font-weight: 850;
}

.overview-weekdays,
.overview-dots {
  display: grid;
  grid-template-columns: repeat(7, 14px);
  justify-content: start;
  gap: 6px;
}

.overview-weekdays {
  margin-bottom: 8px;
}

.overview-weekdays span {
  color: rgba(247,247,251,.34);
  font-size: 11px;
  font-weight: 820;
  text-align: center;
}

.year-dot,
.year-dot-spacer,
.year-medal {
  width: 13px;
  height: 13px;
  border-radius: 50%;
}

.year-dot {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,.08);
}

.year-dot.level-zero { background: rgba(255,255,255,.14); }
.year-dot.level-low { background: rgba(255,255,255,.22); }
.year-dot.level-mid {
  background: rgba(94,168,255,.62);
  box-shadow: 0 0 8px rgba(94,168,255,.18);
}
.year-dot.level-full {
  background: linear-gradient(135deg, #55D17A, #a7f3d0);
  box-shadow: 0 0 12px rgba(85, 209, 122, .34);
}
.year-dot.is-today {
  outline: 1px solid rgba(125,211,252,.8);
  outline-offset: 3px;
}

.year-medal {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  background:
    radial-gradient(circle at 34% 28%, rgba(255,255,255,.82), transparent 18%),
    linear-gradient(135deg, rgba(167,243,208,.96), rgba(94,168,255,.82) 54%, rgba(255,211,166,.9));
  border: 1px solid rgba(255,255,255,.52);
  box-shadow: 0 0 16px rgba(125,211,252,.28), 0 4px 10px rgba(0,0,0,.18);
  transition: transform .16s ease, filter .16s ease;
}

.year-medal:hover {
  transform: translateY(-1px) scale(1.08);
  filter: brightness(1.08);
}

.medal-core {
  position: relative;
  width: 7px;
  height: 7px;
  display: block;
  border-radius: 50%;
  background: rgba(7,10,18,.52);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}

.medal-star {
  position: absolute;
  inset: 1px;
  background: rgba(255,255,255,.9);
  clip-path: polygon(50% 0, 61% 36%, 100% 36%, 68% 57%, 80% 100%, 50% 72%, 20% 100%, 32% 57%, 0 36%, 39% 36%);
}

.year-medal.is-today {
  outline: 1px solid rgba(125,211,252,.85);
  outline-offset: 4px;
}

.month-detail {
  padding: 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 0%, rgba(125, 211, 252, .11), transparent 14rem),
    linear-gradient(145deg, rgba(255,255,255,.105), rgba(255,255,255,.052));
}

.month-detail-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.month-detail-head h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
}

.month-detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.month-detail-stats span {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 13px;
  border-radius: 999px;
  color: rgba(247,247,251,.72);
  background: rgba(255,255,255,.07);
}

.month-detail-stats b {
  color: #f7f7fb;
  font-size: 20px;
}

.month-detail-weekdays,
.month-detail-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(72px, 1fr));
  gap: 10px;
}

.month-detail-weekdays {
  margin-bottom: 10px;
}

.month-detail-weekdays span {
  color: rgba(247,247,251,.38);
  font-size: 13px;
  font-weight: 820;
  text-align: center;
}

.month-detail-day,
.month-detail-spacer {
  min-height: 92px;
}

.month-detail-day {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 9px;
  padding: 12px 8px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 20px;
  background: rgba(255,255,255,.045);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.month-detail-day:hover {
  transform: translateY(-2px);
}

.month-detail-day.has-record {
  background: rgba(255,255,255,.075);
}

.month-detail-day.is-today {
  border-color: rgba(125,211,252,.55);
  box-shadow: 0 0 0 1px rgba(125,211,252,.18), 0 0 18px rgba(125,211,252,.12);
}

.month-detail-day.has-record:has(.detail-medal) {
  border-color: rgba(167,243,208,.34);
  background:
    radial-gradient(circle at 92% 10%, rgba(167,243,208,.13), transparent 5rem),
    rgba(255,255,255,.075);
}

.detail-medal {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(167,243,208,.95), rgba(94,168,255,.82));
  border: 1px solid rgba(255,255,255,.44);
  box-shadow: 0 0 14px rgba(167,243,208,.22);
}

.detail-medal span {
  width: 8px;
  height: 8px;
  background: rgba(7,10,18,.62);
  clip-path: polygon(50% 0, 61% 36%, 100% 36%, 68% 57%, 80% 100%, 50% 72%, 20% 100%, 32% 57%, 0 36%, 39% 36%);
}

.month-detail-day strong {
  font-size: 24px;
  line-height: 1;
}

.goal-dots {
  display: flex;
  gap: 7px;
}

.goal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}

.goal-dots span.has-snapshot {
  background: rgba(255,255,255,.16);
}

.goal-dots span.is-complete {
  background: var(--item-color);
  box-shadow: 0 0 12px color-mix(in srgb, var(--item-color), transparent 55%);
}

.month-detail-day em {
  color: rgba(247,247,251,.46);
  font-size: 13px;
  font-style: normal;
  font-weight: 760;
}

@media (max-width: 1200px) {
  .year-overview-grid {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
  }
}

@media (max-width: 800px) {
  .year-redesign {
    width: 100%;
  }

  .year-overview-grid {
    grid-template-columns: 1fr;
  }

  .year-overview-card {
    padding: 16px;
  }

  .overview-weekdays,
  .overview-dots {
    grid-template-columns: repeat(7, 13px);
    gap: 6px;
  }

  .month-detail {
    padding: 18px;
  }

  .month-detail-weekdays {
    display: none;
  }

  .month-detail-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
  }

  .month-detail-spacer {
    display: none;
  }

  .month-detail-day {
    min-height: 86px;
  }
}

@media (max-width: 430px) {
  .month-detail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.timeline-node {
  position: relative;
  width: 36px;
  min-height: 72px;
}

.timeline-node .vine-node {
  margin-top: 18px;
}

.vine-reward {
  position: absolute;
  z-index: 3;
  left: -6px;
  top: -8px;
  width: 42px;
  height: 42px;
  display: block;
  filter: drop-shadow(0 0 12px rgba(255,255,255,.16));
  animation: rewardFloat 5.8s ease-in-out infinite;
  pointer-events: none;
}

.vine-reward svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.reward-fill {
  fill: rgba(226, 240, 255, .72);
}

.reward-soft {
  fill: rgba(125, 211, 252, .52);
}

.reward-warm {
  fill: rgba(255, 204, 150, .72);
}

.reward-stroke {
  fill: none;
  stroke: rgba(235, 248, 255, .64);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reward-flower .reward-fill {
  fill: rgba(210, 196, 255, .68);
}

.reward-fruit {
  transform-origin: 50% 20%;
  animation-name: rewardSway;
}

.reward-cat {
  width: 50px;
  left: -10px;
  top: -4px;
}

.reward-cat .reward-fill,
.reward-cat-family .reward-fill {
  fill: rgba(232, 242, 255, .6);
}

.reward-cat-family {
  width: 72px;
  left: -20px;
  top: -8px;
}

.vine-card.is-full-score {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 220, 140, .36);
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 232, 160, .22), transparent 8rem),
    radial-gradient(circle at 10% 100%, rgba(255, 184, 90, .10), transparent 12rem),
    linear-gradient(135deg, rgba(255, 220, 140, .20), rgba(255, 170, 80, .10) 48%, rgba(255,255,255,.055));
  box-shadow:
    0 18px 50px rgba(255, 185, 80, .13),
    0 22px 70px rgba(0, 0, 0, .32),
    inset 0 1px 0 rgba(255,255,255,.18);
}

.vine-card.is-full-score::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0 32%, rgba(255,255,255,.10) 42%, transparent 52% 100%);
  opacity: .34;
  transform: translateX(-38%);
  animation: perfectSheen 8s ease-in-out infinite;
}

.vine-card.is-full-score .vine-head,
.vine-card.is-full-score .vine-notes {
  position: relative;
  z-index: 1;
}

.vine-card.is-full-score .vine-head {
  padding-right: 148px;
}

.vine-card.is-full-score .vine-head span {
  color: #ffe6a8;
}

.perfect-badge {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  width: 108px;
  height: 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 999px;
  color: #1f1206;
  text-align: center;
  background:
    radial-gradient(circle at 32% 24%, rgba(255,255,255,.42), transparent 12%),
    radial-gradient(circle at 70% 75%, rgba(120,72,24,.22), transparent 38%),
    conic-gradient(
      from 210deg,
      rgba(255,239,178,.95),
      rgba(205,137,48,.96),
      rgba(255,218,124,.94),
      rgba(139,82,28,.95),
      rgba(255,239,178,.95)
    );
  border: 1px solid rgba(255,232,170,.75);
  box-shadow:
    0 18px 40px rgba(255,180,70,.24),
    0 0 0 6px rgba(255,210,120,.075),
    inset 0 2px 4px rgba(255,255,255,.38),
    inset 0 -8px 18px rgba(91,48,14,.28);
  animation: badgeGlow 5.8s ease-in-out infinite;
}

.perfect-badge::before,
.perfect-badge::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.perfect-badge::before {
  inset: 9px;
  border: 1px solid rgba(255,245,210,.55);
  box-shadow:
    inset 0 0 18px rgba(255,255,255,.16),
    0 0 16px rgba(255,196,92,.18);
}

.perfect-badge::after {
  inset: 16px;
  background:
    repeating-conic-gradient(
      from 0deg,
      rgba(255,255,255,.16) 0deg,
      rgba(255,255,255,.16) 3deg,
      transparent 3deg,
      transparent 16deg
    );
  opacity: .35;
  mix-blend-mode: soft-light;
}

.perfect-badge__score {
  position: relative;
  z-index: 1;
  font-size: 24px;
  line-height: 1;
  font-weight: 950;
  color: #1f1206;
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
}

.perfect-badge__label {
  position: relative;
  z-index: 1;
  max-width: 92px;
  margin-top: 3px;
  color: #3a2109;
  font-size: 18px;
  line-height: 1.05;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(255,255,255,.24);
}

.timeline-node .vine-node.is-full {
  background:
    radial-gradient(circle at 34% 28%, rgba(255,255,255,.72), transparent 18%),
    linear-gradient(135deg, #ffe6a3, #d9953b);
  box-shadow:
    0 0 24px rgba(255,190,90,.38),
    0 0 0 5px rgba(255,220,140,.08);
}

.timeline-node .vine-node.is-full::after {
  inset: 11px;
  background: rgba(50, 29, 10, .64);
}

@keyframes perfectSheen {
  0%, 72%, 100% { transform: translateX(-48%); opacity: 0; }
  82% { opacity: .32; }
  94% { transform: translateX(54%); opacity: 0; }
}

@keyframes badgeGlow {
  0%, 100% {
    box-shadow:
      0 18px 40px rgba(255,180,70,.22),
      0 0 0 6px rgba(255,210,120,.075),
      inset 0 2px 4px rgba(255,255,255,.38),
      inset 0 -8px 18px rgba(91,48,14,.28);
  }
  50% {
    box-shadow:
      0 20px 46px rgba(255,190,86,.30),
      0 0 0 6px rgba(255,210,120,.10),
      inset 0 2px 4px rgba(255,255,255,.42),
      inset 0 -8px 18px rgba(91,48,14,.26);
  }
}

@keyframes rewardFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -2px, 0); }
}

@keyframes rewardSway {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}

@media (max-width: 600px) {
  .vine-reward {
    left: -2px;
    top: -5px;
    width: 34px;
    height: 34px;
  }

  .reward-cat {
    width: 40px;
    left: -6px;
  }

  .reward-cat-family {
    width: 54px;
    left: -12px;
  }

  .vine-card.is-full-score {
    padding-top: 16px;
  }

  .vine-card.is-full-score .vine-head {
    padding-right: 0;
  }

  .perfect-badge {
    position: relative;
    top: auto;
    right: auto;
    width: 88px;
    height: 88px;
    margin-left: auto;
    margin-bottom: 12px;
  }

  .perfect-badge__score {
    font-size: 20px;
  }

  .perfect-badge__label {
    max-width: 74px;
    font-size: 15px;
  }
}
