* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--pink); font-family: var(--ui); font-size: 16px; }
button, input, select, textarea { font: inherit; }
button, a, select, input, textarea, summary { outline-offset: 3px; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--cobalt); }
.tracker-body { min-height: 100vh; display: grid; grid-template-columns: 220px minmax(0, 1fr); background: #fff; }
.tracker-rail { min-height: 100vh; background: linear-gradient(165deg, var(--soft-lilac) 0%, var(--pink) 100%); padding: 27px 13px 16px; display: flex; flex-direction: column; border-right: 1px solid rgb(21 21 21 / 15%); }
.brand, .mobile-brand { color: var(--ink); font-family: var(--display); font-size: 31px; line-height: .94; text-decoration: none; text-transform: uppercase; letter-spacing: 0; }
.brand-wave { color: var(--hot-pink); font-size: 30px; line-height: 1; letter-spacing: -5px; margin: 18px 0 22px; overflow: hidden; }
.rail-nav { display: grid; gap: 8px; }
.nav-link { min-height: 48px; display: flex; align-items: center; gap: 13px; border-radius: 5px; padding: 8px 13px; color: var(--ink); font-family: var(--ui); font-weight: 900; text-decoration: none; }
.nav-link span { width: 26px; font-size: 25px; text-align: center; }
.nav-link.is-current { background: var(--hot-pink); color: var(--ink); box-shadow: var(--shadow); }
.nav-link.is-muted { color: var(--muted); }
.rail-footer { margin-top: auto; display: grid; gap: 9px; }
.profile-name { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 700; }
.profile-name span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--cobalt); color: #fff; }
.settings-link, .sign-out { min-height: 44px; color: var(--ink); background: transparent; border: 0; padding: 6px 0; text-align: left; text-decoration: none; cursor: pointer; }
.tracker-main { min-width: 0; padding: 28px 32px 48px; background: #fff; }
.today-heading { min-height: 49px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.today-heading h1 { margin: 0; font-family: var(--display); font-size: 40px; line-height: 1; letter-spacing: 0; }
.mobile-brand { display: none; }
.heading-link { display: grid; place-items: center; width: 44px; height: 44px; color: var(--ink); font-size: 29px; text-decoration: none; line-height: 1; }
.connection-banner { width: fit-content; max-width: 100%; margin: 17px 0 0; padding: 9px 15px; background: var(--lemon); border: 1px solid var(--ink); border-radius: 5px; box-shadow: var(--shadow); font-weight: 700; }
.today-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(240px, 280px); gap: 22px; margin-top: 28px; align-items: start; }
.today-primary, .today-aside { min-width: 0; display: grid; gap: 22px; }
.plan-band, .week-strip { border: 1px solid var(--line); border-radius: 7px; background: var(--surface); box-shadow: 0 1px 0 rgb(21 21 21 / 7%); }
.plan-band { padding: 15px; }
.band-heading, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
h2 { margin: 0; font-family: var(--display); font-size: 20px; font-weight: 900; line-height: 1.05; text-transform: uppercase; }
.retroactive-note { color: var(--muted); font-size: 13px; }
.plan-statuses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 12px; border: 1px solid var(--ink); border-radius: 5px; overflow: hidden; }
.plan-status { min-height: 72px; display: flex; justify-content: center; align-items: center; gap: 10px; padding: 8px; border: 0; border-right: 1px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; font-family: var(--ui); font-weight: 900; line-height: 1.1; }
.plan-status:last-child { border-right: 0; }
.plan-status__icon { display: grid; width: 39px; height: 39px; flex: 0 0 39px; border: 2px solid var(--ink); border-radius: 46% 54% 43% 57% / 55% 42% 58% 45%; background: var(--pink); font-family: var(--ui); font-size: 25px; font-weight: 900; line-height: 1; place-items: center; box-shadow: 2px 2px 0 var(--ink); transform: rotate(-7deg); }
.plan-status__icon--partial { border-radius: 50%; background: var(--lemon); transform: rotate(6deg); }
.plan-status__icon--not_done { border-radius: 63% 37% 55% 45%; background: var(--soft-lilac); transform: rotate(-11deg); }
.plan-status__icon--rest { border-radius: 38% 62% 41% 59% / 58% 39% 61% 42%; background: var(--blueberry-milk); transform: rotate(8deg); }
.plan-status--done:hover, .plan-status--done.is-selected { background: var(--green); color: var(--ink); }
.plan-status--partial:hover, .plan-status--partial.is-selected { background: var(--lemon); }
.plan-status--not_done:hover, .plan-status--not_done.is-selected { background: var(--tangerine); color: #fff; }
.plan-status--rest:hover, .plan-status--rest.is-selected { background: var(--cobalt); color: #fff; }
.plan-status.is-selected { position: relative; z-index: 1; box-shadow: inset 0 -5px 0 rgb(21 21 21 / 14%); transform: translateY(-2px); }
.plan-status.is-selected .plan-status__icon { background: #fff; color: var(--ink); transform: rotate(4deg) scale(1.06); }
.plan-help { width: fit-content; min-height: 29px; margin: 12px 0 0; border-radius: 18px; padding: 5px 10px; color: var(--muted); font-family: var(--accent); font-size: 14px; font-style: italic; font-weight: 700; }
.plan-help[data-feedback="pending"] { background: var(--lemon); color: var(--ink); }
.plan-help[data-feedback="saved"] { background: var(--green); color: var(--ink); box-shadow: 2px 2px 0 rgb(21 21 21 / 18%); }
.plan-help[data-feedback="error"] { background: var(--tangerine); color: #fff; }
.plan-band[data-save-state="pending"] { opacity: 1; pointer-events: auto; }
.plan-band[data-save-state="pending"] .plan-status { pointer-events: none; }
.evening-checkin { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 11px; }
.evening-checkin summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--cobalt); font-weight: 800; }
.checkin-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 5px 0 13px; }
.checkin-fields label { display: grid; gap: 5px; color: var(--muted); font-size: 13px; }
.checkin-fields select, .checkin-fields input, .checkin-fields textarea { width: 100%; min-height: 38px; border: 1px solid var(--line); border-radius: 4px; padding: 7px; background: #fff; color: var(--ink); }
.checkin-note { grid-column: 1 / -1; }
.checkin-save { min-width: 44px; min-height: 44px; border: 1px solid var(--ink); border-radius: 5px; padding: 8px 15px; background: var(--hot-pink); color: var(--ink); cursor: pointer; font-weight: 800; box-shadow: var(--shadow); }
.habits-section { display: grid; gap: 12px; }
.section-heading { min-height: 44px; }
.section-heading a { display: grid; place-items: center; min-height: 44px; color: var(--cobalt); font-weight: 700; text-decoration: none; }
.today-sticker-accent { position: absolute; z-index: 2; top: -27px; right: 7px; width: 72px; height: 72px; object-fit: contain; pointer-events: none; transform: rotate(10deg); filter: drop-shadow(2px 3px 0 rgb(21 21 21 / 15%)); }
.habit-list { display: grid; gap: 13px; margin: 0; padding: 0 5px 6px 0; list-style: none; }
.habit-row { display: grid; grid-template-columns: 58px minmax(130px, .8fr) minmax(150px, .7fr) minmax(210px, 1.2fr) 44px; grid-template-areas: "check name targets quantity edit" "check name targets progress edit"; gap: 7px 11px; align-items: center; min-height: 112px; padding: 13px 15px 13px 12px; border: 2px solid var(--ink); border-radius: 24px 17px 26px 19px; background: #fff; box-shadow: 5px 6px 0 color-mix(in srgb, var(--habit-color) 70%, white); }
.habit-check { position: relative; isolation: isolate; width: 58px; height: 58px; grid-area: check; padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; font-size: 22px; font-weight: 900; line-height: 1; }
.habit-check::before { position: absolute; z-index: -1; inset: 0; display: grid; color: color-mix(in srgb, var(--habit-color) 45%, white); content: "✿"; font-size: 64px; font-weight: 400; line-height: .9; place-items: center; transform: rotate(-7deg); }
.habit-row.is-complete .habit-check::before { color: var(--habit-color); }
.habit-check:hover::before { transform: rotate(5deg) scale(1.04); }
.habit-name { grid-area: name; min-width: 0; display: grid; gap: 4px; }
.habit-name strong { overflow-wrap: anywhere; font-size: 17px; }
.habit-name span { color: var(--ink); font-size: 16px; font-weight: 800; }
.habit-targets { grid-area: targets; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; color: var(--muted); font-size: 11px; text-align: center; text-transform: uppercase; }
.habit-targets b { display: block; margin-top: 3px; color: var(--ink); font-size: 14px; text-transform: none; white-space: nowrap; }
.habit-quantity { grid-area: quantity; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 8px; align-items: center; min-width: 0; }
.habit-step { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--ink); border-radius: 50%; background: var(--lemon); color: var(--ink); cursor: pointer; font-size: 25px; font-weight: 800; line-height: 1; }
.habit-step:disabled { cursor: default; opacity: .35; }
.habit-quantity input[type="range"] { width: 100%; min-width: 0; height: 32px; margin: 0; accent-color: var(--habit-color); cursor: pointer; }
.habit-progress { grid-area: progress; display: block; width: 100%; height: 7px; overflow: hidden; border: 0; border-radius: 4px; background: #e8e6e7; accent-color: var(--habit-color); }
.habit-progress::-webkit-progress-bar { background: #e8e6e7; }
.habit-progress::-webkit-progress-value { background: var(--habit-color); }
.habit-progress::-moz-progress-bar { background: var(--habit-color); }
.habit-color--pink { --habit-color: #f72f7f; }
.habit-color--cobalt { --habit-color: #1455c4; }
.habit-color--green { --habit-color: var(--green); }
.habit-color--lemon { --habit-color: var(--lemon); }
.habit-color--tangerine { --habit-color: #ff5a18; }
.habit-edit { display: grid; place-items: center; width: 44px; height: 44px; grid-area: edit; border-radius: 50%; color: var(--ink); font-size: 20px; text-decoration: none; }
.habit-edit:hover { background: color-mix(in srgb, var(--habit-color) 25%, white); }
.empty-habits { padding: 20px; color: var(--muted); }
.checkin-sticker { position: relative; overflow: hidden; min-height: 215px; padding: 22px; border-radius: 7px; background: var(--blueberry-milk); border: 1px solid var(--cobalt); }
.checkin-sticker::after { position: absolute; right: -34px; bottom: -39px; width: 140px; height: 84px; border: 9px solid var(--green); border-radius: 46% 54% 40% 58%; content: ""; transform: rotate(-17deg); }
.checkin-sticker h2 { position: relative; z-index: 1; max-width: 210px; }
.checkin-sticker p { position: relative; z-index: 1; max-width: 230px; line-height: 1.45; }
.checkin-sticker button { position: relative; z-index: 1; min-width: 44px; min-height: 44px; border: 1px solid var(--ink); border-radius: 5px; background: #fff; padding: 8px 12px; color: var(--cobalt); cursor: pointer; font-weight: 800; }
.sticker-flower { position: absolute; right: 19px; top: 10px; color: var(--hot-pink); font-size: 69px; line-height: 1; }
.week-strip { padding: 17px; }
.week-strip ol { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; margin: 15px 0 0; padding: 0; list-style: none; }
.week-strip li { display: grid; gap: 7px; justify-items: center; color: var(--muted); font-size: 12px; }
.week-strip i { width: 25px; height: 25px; border: 2px solid var(--green); border-radius: 50%; }
.focus-goals { display: grid; gap: 12px; border-top: 7px solid var(--hot-pink); padding-top: 10px; }
.focus-goals ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.focus-goals li { --goal-accent: var(--hot-pink); display: grid; grid-template-columns: minmax(120px, 1fr) minmax(90px, .8fr) 42px; gap: 10px; min-height: 48px; align-items: center; border-left: 6px solid var(--goal-accent); padding: 7px 9px; background: #fff; }
.focus-goals li.goal-color--cobalt { --goal-accent: var(--cobalt); }
.focus-goals li.goal-color--green { --goal-accent: var(--green); }
.focus-goals li.goal-color--lemon { --goal-accent: var(--lemon); }
.focus-goals li.goal-color--tangerine { --goal-accent: var(--tangerine); }
.focus-goals progress { width: 100%; height: 8px; border: 0; accent-color: var(--goal-accent); }
.focus-goals li > span { color: var(--muted); font-size: 12px; text-align: right; }
.daily-summary, .insight-rail { border: 1px solid var(--ink); border-radius: 6px; padding: 17px; }
.daily-summary { position: relative; background: var(--lemon); box-shadow: var(--shadow); }
.daily-summary dl { display: grid; gap: 8px; margin: 15px 0 0; }
.daily-summary dl > div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgb(21 21 21 / 20%); padding-bottom: 7px; }
.daily-summary dt { color: var(--muted); font-size: 13px; }
.daily-summary dd { margin: 0; font-family: var(--display); font-size: 20px; }
.insight-rail { background: var(--soft-lilac); }
.insight-rail article { margin-top: 14px; border-top: 1px solid rgb(21 21 21 / 20%); padding-top: 12px; }
.insight-rail h3, .insight-list h3 { margin: 0; font-size: 16px; }
.insight-rail article p, .insight-list article p { margin: 7px 0; line-height: 1.42; }
.insight-rail small, .insight-list small { color: var(--deep-red); font-size: 11px; font-weight: 800; }
.insight-boundary { margin: 14px 0 0; border-top: 1px dashed currentColor; padding-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.summary-empty { color: var(--muted); line-height: 1.4; }
.mobile-nav { display: none; }
[data-save-state="pending"] { opacity: .65; pointer-events: none; }
[data-save-state="error"] { outline: 2px solid var(--tangerine); outline-offset: -2px; }
@media (prefers-reduced-motion: no-preference) { .plan-status, .habit-row, .habit-check::before, .connection-banner, .checkin-save { transition: background-color 160ms ease, color 160ms ease, opacity 160ms ease, transform 160ms ease; } .habit-row.is-complete { transform: translateX(2px); } }
@media (max-width: 1200px) and (min-width: 1024px) { .tracker-body { grid-template-columns: 185px minmax(0, 1fr); } .tracker-main { padding: 24px; } }
@media (max-width: 1023px) and (min-width: 768px) { .tracker-body { grid-template-columns: 185px minmax(0, 1fr); } .tracker-main { padding: 24px; } .today-grid { grid-template-columns: minmax(0, 1fr); } .habit-row { grid-template-columns: 58px minmax(0, 1fr) 44px; grid-template-areas: "check name edit" "check targets edit" "quantity quantity quantity" "progress progress progress"; min-height: 180px; } .today-aside { grid-template-columns: 1.1fr .9fr; } }
@media (max-width: 767px) { .tracker-body { display: block; background: var(--pink); } .tracker-rail { display: none; } .tracker-main { min-height: 100vh; padding: 31px 16px 105px; background: linear-gradient(150deg, var(--soft-lilac), var(--pink) 58%, #fff 100%); } .today-heading { display: grid; gap: 18px; } .mobile-brand { display: block; margin: 0; font-size: 29px; } .today-heading h1 { font-size: 37px; } .heading-link { position: absolute; top: 33px; right: 16px; } .connection-banner { margin-top: 14px; padding: 8px 12px; background: #fff; border: 0; box-shadow: none; font-size: 14px; } .connection-banner::before { display: inline-block; width: 11px; height: 11px; margin-right: 8px; border-radius: 50%; background: var(--tangerine); content: ""; } .today-grid { display: block; margin-top: 24px; } .plan-band { margin-inline: -16px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; } .band-heading { padding: 0 18px; } .band-heading h2 { font-size: 19px; } .plan-statuses { margin-top: 12px; border-color: #fff; border-radius: 6px; } .plan-status { min-height: 102px; flex-direction: column; gap: 7px; padding: 6px 3px; border-color: var(--pink); font-size: 12px; text-transform: uppercase; } .plan-status span:first-child { font-size: 35px; } .plan-status--rest span:last-child { font-size: 0; } .plan-status--rest span:last-child::after { font-size: 12px; content: "отдых"; } .plan-help, .evening-checkin { margin-left: 18px; margin-right: 18px; } .checkin-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } .habits-section { margin-inline: -16px; gap: 8px; } .section-heading { padding: 0 18px; } .section-heading a { font-size: 0; } .section-heading a::after { font-size: 27px; content: "+"; } .habit-list { gap: 13px; padding: 0 19px 7px 16px; } .habit-row { grid-template-columns: 56px minmax(0, 1fr) 44px; grid-template-areas: "check name edit" "check targets edit" "quantity quantity quantity" "progress progress progress"; gap: 7px 12px; min-height: 184px; padding: 15px 14px 15px 11px; border-radius: 24px 18px 27px 20px; } .habit-check { width: 56px; height: 56px; font-size: 24px; } .habit-check::before { font-size: 62px; } .habit-name strong { font-size: 19px; } .habit-targets { max-width: 270px; text-align: left; } .habit-targets span { display: grid; grid-template-columns: max-content max-content; gap: 4px; align-items: baseline; } .habit-targets b { margin: 0; } .habit-quantity { margin-top: 5px; } .focus-goals { margin-top: 20px; } .focus-goals .section-heading { padding-inline: 0; } .focus-goals li { grid-template-columns: minmax(90px, 1fr) minmax(70px, .8fr) 38px; } .today-aside { display: grid; grid-template-columns: 1fr; margin-top: 24px; } .today-aside .checkin-sticker, .today-aside .week-strip { display: none; } .mobile-nav { position: fixed; z-index: 5; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(5, 1fr); min-height: 75px; border-top: 1px solid var(--line); background: #fff; box-shadow: 0 -2px 10px rgb(21 21 21 / 10%); } .mobile-nav a, .mobile-nav > span { display: grid; align-content: center; justify-items: center; gap: 3px; min-width: 0; padding: 6px 2px; color: var(--ink); font-size: 10px; font-weight: 700; text-decoration: none; text-align: center; } .mobile-nav span span, .mobile-nav a span { font-size: 25px; line-height: 1; } .mobile-nav .is-current { color: var(--cobalt); } }
@media (max-width: 767px) { .habit-row { grid-template-columns: 56px minmax(0, 1fr) 44px; } .habit-edit { width: 44px; height: 44px; } }
@media (max-width: 767px) { .today-sticker-accent { top: -18px; right: 11px; width: 58px; height: 58px; } }
@media (max-width: 380px) { .today-heading h1 { font-size: 33px; } .plan-status { font-size: 10px; } .habit-targets { font-size: 10px; } }

.goals-main { width: 100%; max-width: 100%; min-width: 0; overflow-x: clip; }
.goals-intro { max-width: 650px; margin: 10px 0 0; color: var(--muted); line-height: 1.45; }
.goals-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 24px; width: 100%; max-width: 1200px; margin-top: 28px; align-items: start; }
.goals-board { min-width: 0; display: grid; gap: 12px; }
.goal-list { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.goal-row { --goal-color: var(--hot-pink); min-width: 0; padding: 15px 16px 13px; border: 1px solid var(--line); border-left: 8px solid var(--goal-color); border-radius: 7px; background: #fff; box-shadow: 0 1px 0 rgb(21 21 21 / 7%); }
.goal-color--pink { --goal-color: var(--hot-pink); }
.goal-color--cobalt { --goal-color: var(--cobalt); }
.goal-color--green { --goal-color: var(--green); }
.goal-color--lemon { --goal-color: var(--lemon); }
.goal-color--tangerine { --goal-color: var(--tangerine); }
.goal-row-top, .goal-row-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.goal-title { min-width: 0; display: grid; gap: 3px; }
.goal-title strong { overflow-wrap: anywhere; font-size: 18px; }
.goal-title > span:last-child { color: var(--muted); font-size: 13px; }
.goal-period { color: var(--cobalt); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.goal-health { flex: 0 0 auto; padding: 5px 8px; border: 1px solid currentColor; border-radius: 4px; font-size: 12px; font-weight: 800; }
.goal-health--on_track { color: var(--green); }
.goal-health--attention { color: #b83200; background: #fff0e9; }
.goal-health--done { color: var(--ink); background: var(--green); }
.goal-health--postponed { color: var(--cobalt); }
.goal-health--cancelled { color: var(--muted); }
.goal-progress { display: block; width: 100%; height: 8px; margin: 13px 0; overflow: hidden; border: 0; border-radius: 4px; background: #ece9eb; accent-color: var(--goal-color); }
.goal-progress::-webkit-progress-bar { background: #ece9eb; }
.goal-progress::-webkit-progress-value { background: var(--goal-color); }
.goal-progress::-moz-progress-bar { background: var(--goal-color); }
.goal-row-bottom form { min-width: 0; max-width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.goal-row-bottom form label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; }
.goal-row-bottom input { width: 82px; min-height: 44px; border: 1px solid var(--line); border-radius: 4px; padding: 7px; }
.goal-row-bottom button, .goal-state-actions button { min-height: 44px; border: 1px solid var(--ink); border-radius: 5px; padding: 7px 11px; background: #fff; cursor: pointer; font-weight: 700; }
.goal-row-bottom form button { background: var(--goal-color); }
.goal-state-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-left: auto; }
.goal-state-actions button { border-color: var(--line); color: var(--muted); font-size: 12px; }
.goal-message { min-height: 18px; margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.goal-message[data-error="true"], [data-form-message][data-error="true"] { color: #b83200; }
.goal-create { position: relative; overflow: hidden; padding: 19px; border: 1px solid var(--pink); border-radius: 7px; background: var(--soft-lilac); }
.goal-create h2, .goal-create form { position: relative; z-index: 1; }
.goal-create form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 14px; }
.goal-create label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; }
.goal-create input, .goal-create select { width: 100%; min-width: 0; min-height: 44px; border: 1px solid var(--line); border-radius: 4px; padding: 7px; background: #fff; color: var(--ink); }
.goal-create-button { min-height: 46px; border: 1px solid var(--ink); border-radius: 5px; background: var(--hot-pink); color: var(--ink); cursor: pointer; font-weight: 800; box-shadow: var(--shadow); }
.goal-create [data-form-message] { min-height: 18px; margin: 0; font-size: 13px; }
.goal-history { margin-top: 25px; border-top: 1px solid var(--line); padding-top: 13px; }
.goal-history summary { min-height: 44px; display: flex; align-items: center; color: var(--cobalt); cursor: pointer; font-weight: 800; }
.goal-history ul { display: grid; gap: 7px; max-width: 720px; margin: 8px 0 0; padding: 0; list-style: none; }
.goal-history li { display: grid; grid-template-columns: 12px minmax(0, 1fr) max-content; gap: 9px; align-items: center; min-height: 40px; }
.goal-history li > span { width: 10px; height: 10px; border-radius: 50%; background: var(--goal-color); }
.goal-history small { color: var(--muted); }
@media (max-width: 1040px) { .goals-layout { grid-template-columns: minmax(0, 1fr); } .goal-create { width: 100%; max-width: 680px; } }
@media (max-width: 767px) { .goals-main { width: 100%; max-width: 100%; background: #fff; } .goals-layout { display: block; width: 100%; } .goals-board { width: 100%; margin: 22px 0 0; } .goals-board > .section-heading { padding-inline: 0; } .goal-list { width: 100%; gap: 8px; } .goal-row { width: 100%; border-left-width: 8px; padding: 15px 14px 12px; } .goal-row-top, .goal-row-bottom { align-items: flex-start; } .goal-row-bottom { display: grid; width: 100%; } .goal-row-bottom form { width: 100%; } .goal-state-actions { width: 100%; margin-left: 0; } .goal-state-actions button { flex: 1; } .goal-create { width: 100%; max-width: 100%; margin: 22px 0 0; } .mobile-nav a, .mobile-nav > span { min-height: 75px; } }
@media (max-width: 430px) { .goal-row-top { display: grid; } .goal-health { width: fit-content; } .goal-row-bottom form label { flex: 1 1 150px; } .goal-history li { grid-template-columns: 12px minmax(0, 1fr); } .goal-history small { grid-column: 2; } }

/* Cycle stays visually warm while intimate data remains quiet and private. */
.cycle-main { width: 100%; max-width: 100%; min-width: 0; overflow-x: clip; }
.cycle-intro { max-width: 670px; margin: 10px 0 0; color: var(--muted); line-height: 1.45; }
.cycle-onboarding { position: relative; max-width: 680px; margin-top: 34px; border: 1px solid var(--ink); border-radius: 6px; padding: 28px; overflow: hidden; background: var(--pink); box-shadow: var(--shadow); }
.cycle-onboarding .sticker-flower { position: absolute; top: -23px; right: 20px; color: var(--tangerine); font-size: 100px; opacity: .7; }
.cycle-onboarding h2, .cycle-prediction h2 { position: relative; margin: 0; font-family: var(--display); font-size: 26px; letter-spacing: 0; }
.cycle-onboarding p { position: relative; max-width: 520px; line-height: 1.45; }
.cycle-onboarding form, .period-tools form { position: relative; display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.cycle-onboarding label, .period-tools label { display: grid; gap: 5px; font-weight: 700; }
.cycle-onboarding input, .period-tools input { min-height: 44px; border: 1px solid var(--ink); border-radius: 4px; padding: 7px; background: #fff; }
.cycle-onboarding button, .period-tools button, .cycle-save { min-height: 44px; border: 1px solid var(--ink); border-radius: 5px; padding: 8px 14px; background: var(--hot-pink); color: var(--ink); cursor: pointer; font-weight: 800; box-shadow: var(--shadow); }
.cycle-layout { display: grid; grid-template-columns: minmax(520px, 1.6fr) minmax(280px, .8fr); gap: 24px; max-width: 1200px; margin-top: 28px; align-items: start; }
.cycle-calendar-band { min-width: 0; border: 1px solid var(--ink); border-radius: 6px; padding: 18px; background: #fff; box-shadow: var(--shadow); }
.cycle-month-heading { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 10px; }
.cycle-month-heading h2 { margin: 0; font-family: var(--display); font-size: 26px; letter-spacing: 0; text-align: center; text-transform: uppercase; }
.cycle-month-heading a { display: grid; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); place-items: center; text-decoration: none; }
.cycle-weekdays, .cycle-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cycle-weekdays { margin-top: 16px; color: var(--muted); font-size: 12px; font-weight: 800; text-align: center; text-transform: uppercase; }
.cycle-calendar { margin-top: 7px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cycle-date { position: relative; aspect-ratio: 1 / .88; min-width: 0; min-height: 68px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; padding: 7px; overflow: hidden; background: #fff; color: var(--ink); cursor: pointer; text-align: left; }
.cycle-calendar--start-1 .cycle-date:first-child { grid-column: 1; }
.cycle-calendar--start-2 .cycle-date:first-child { grid-column: 2; }
.cycle-calendar--start-3 .cycle-date:first-child { grid-column: 3; }
.cycle-calendar--start-4 .cycle-date:first-child { grid-column: 4; }
.cycle-calendar--start-5 .cycle-date:first-child { grid-column: 5; }
.cycle-calendar--start-6 .cycle-date:first-child { grid-column: 6; }
.cycle-calendar--start-7 .cycle-date:first-child { grid-column: 7; }
.cycle-date:hover { z-index: 1; outline: 2px solid var(--cobalt); outline-offset: -2px; }
.cycle-date b { font-size: 16px; }
.cycle-date.is-period { background: var(--pink); }
.cycle-date.has-flow::after { position: absolute; right: 7px; bottom: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--hot-pink); content: ""; }
.cycle-date.flow-spotting::after { width: 5px; height: 5px; }
.cycle-date.flow-light::after { opacity: .55; }
.cycle-date.flow-heavy::after { width: 15px; height: 15px; }
.cycle-date.is-ovulation-confirmed { box-shadow: inset 0 0 0 3px var(--green); }
.cycle-date.is-ovulation-estimated { outline: 2px dashed var(--cobalt); outline-offset: -5px; }
.symptom-mark { margin-left: 3px; color: var(--tangerine); font-size: 21px; line-height: 1; }
.ovulation-mark { position: absolute; right: 5px; bottom: 5px; max-width: calc(100% - 10px); color: var(--cobalt); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.is-ovulation-confirmed .ovulation-mark { color: var(--green); }
.cycle-legend { display: flex; flex-wrap: wrap; gap: 12px 18px; margin-top: 14px; color: var(--muted); font-size: 12px; }
.cycle-legend span { display: flex; gap: 6px; align-items: center; }
.cycle-legend i { display: inline-block; width: 18px; height: 18px; }
.legend-period { background: var(--pink); }
.legend-confirmed { border: 3px solid var(--green); }
.legend-estimated { border: 2px dashed var(--cobalt); }
.cycle-side { min-width: 0; display: grid; gap: 16px; }
.cycle-prediction { border: 1px solid var(--ink); border-radius: 6px; padding: 20px; background: var(--lemon); box-shadow: var(--shadow); }
.prediction-label { display: inline-block; margin-bottom: 12px; border: 2px dashed var(--cobalt); padding: 4px 7px; color: var(--cobalt); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.prediction-date { margin: 12px 0 4px; color: var(--cobalt); font-family: var(--display); font-size: 34px; letter-spacing: 0; }
.cycle-prediction p { line-height: 1.4; }
.cycle-boundary { margin-bottom: 0; border-top: 1px solid rgb(21 21 21 / 30%); padding-top: 12px; font-size: 12px; }
.period-tools { border: 1px solid var(--line); border-radius: 5px; padding: 12px; background: #fff; }
.period-tools summary { min-height: 36px; cursor: pointer; font-weight: 800; }
.period-tools form { margin-top: 12px; }
.period-tools form p { width: 100%; margin: 0; }
.cycle-day-editor { max-width: 1200px; margin-top: 24px; border-top: 8px solid var(--hot-pink); padding: 20px; background: #fff; box-shadow: var(--shadow); }
.cycle-day-editor .section-heading { padding: 0; }
.cycle-day-editor form { margin-top: 18px; }
.cycle-day-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cycle-day-fields label { display: grid; gap: 5px; font-weight: 700; }
.cycle-day-fields select { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 4px; padding: 7px; background: #fff; }
.cycle-day-fields .cycle-confirm { display: flex; min-height: 44px; flex-direction: row; align-items: center; gap: 9px; }
.cycle-confirm input { width: 22px; height: 22px; accent-color: var(--green); }
.symptoms-fieldset { margin: 18px 0; border: 1px solid var(--line); border-radius: 5px; padding: 14px; }
.symptoms-fieldset legend { padding: 0 5px; font-weight: 800; }
.symptom-row { display: grid; grid-template-columns: minmax(180px, 1fr) 100px 44px; gap: 8px; margin-bottom: 8px; align-items: end; }
.symptom-row label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; }
.symptom-row input, .symptom-row select { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 4px; padding: 6px; }
.symptom-row button, .symptoms-fieldset > button { min-height: 40px; border: 1px solid var(--line); border-radius: 4px; background: #fff; cursor: pointer; }
.cycle-private-note { margin-bottom: 0; color: var(--muted); font-size: 12px; }
.cycle-day-editor [data-save-state="pending"] { opacity: .65; }
.cycle-day-editor [data-save-state="error"] { border-left: 5px solid var(--tangerine); padding-left: 10px; }
.is-error { color: #9f2400; }

@media (max-width: 1040px) {
  .cycle-layout { grid-template-columns: minmax(0, 1fr); }
  .cycle-side { grid-template-columns: 1.1fr .9fr; }
}

@media (max-width: 767px) {
  .cycle-main { width: 100%; max-width: 100%; background: #fff; }
  .cycle-layout { display: block; width: 100%; }
  .cycle-calendar-band { margin-top: 22px; padding: 10px; border-right: 0; border-left: 0; border-radius: 0; box-shadow: none; }
  .cycle-month-heading h2 { font-size: 22px; }
  .cycle-date { min-height: 52px; padding: 5px; }
  .cycle-date b { font-size: 14px; }
  .ovulation-mark { font-size: 7px; }
  .cycle-side { display: grid; grid-template-columns: 1fr; margin-top: 18px; }
  .cycle-day-editor { margin-inline: -16px; padding: 18px 16px; box-shadow: none; }
  .cycle-day-fields { grid-template-columns: 1fr; }
  .cycle-onboarding { margin-inline: -16px; border-right: 0; border-left: 0; border-radius: 0; }
}

@media (max-width: 430px) {
  .cycle-calendar-band { margin-inline: -16px; }
  .cycle-weekdays { font-size: 10px; }
  .cycle-date { min-height: 47px; aspect-ratio: auto; }
  .cycle-date.has-flow::after { right: 4px; bottom: 4px; }
  .cycle-legend { padding-inline: 4px; }
  .symptom-row { grid-template-columns: minmax(0, 1fr) 72px 44px; }
}

/* Notification settings use a bright full-width band while private controls stay calm. */
.notification-settings { display: grid; grid-template-columns: minmax(230px, .8fr) minmax(320px, 1.2fr); gap: 24px; max-width: 980px; margin-top: 34px; border-top: 9px solid var(--hot-pink); padding: 24px 0; background: var(--soft-lilac); }
.notification-settings__intro { padding: 0 22px; }
.notification-settings__eyebrow { width: fit-content; margin: 0 0 10px; padding: 4px 7px; background: var(--lemon); color: var(--ink); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.notification-settings__intro h2 { font-family: var(--display); font-size: 29px; letter-spacing: 0; }
.notification-settings__intro > p:not(.notification-settings__eyebrow) { line-height: 1.5; }
.notification-enable, .notification-save { min-height: 46px; border: 1px solid var(--ink); border-radius: 5px; padding: 9px 14px; color: var(--ink); cursor: pointer; font-weight: 800; box-shadow: var(--shadow); }
.notification-enable { background: var(--hot-pink); }
.notification-save { justify-self: start; background: var(--lemon); }
.notification-status { min-height: 22px; color: var(--green); font-weight: 700; }
.notification-status[data-error="true"] { color: #9f2400; }
.notification-preferences { display: grid; gap: 16px; padding: 0 22px 0 0; }
.notification-preferences fieldset { min-width: 0; margin: 0; border: 1px solid var(--ink); border-radius: 6px; padding: 13px; background: #fff; }
.notification-preferences legend { padding: 0 6px; font-weight: 800; }
.notification-row { display: grid; grid-template-columns: 24px minmax(140px, 1fr) 104px; gap: 9px; min-height: 46px; align-items: center; border-bottom: 1px solid var(--line); }
.notification-row:last-child { border-bottom: 0; }
.notification-row--simple { grid-template-columns: 24px minmax(140px, 1fr); }
.notification-row input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--hot-pink); }
.notification-row input[type="time"], .notification-quiet input, .notification-timezone select { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 4px; padding: 6px; background: #fff; color: var(--ink); }
.notification-quiet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.notification-quiet legend { grid-column: 1 / -1; }
.notification-quiet label, .notification-timezone { display: grid; gap: 5px; color: var(--muted); font-size: 13px; font-weight: 700; }
.notification-timezone { max-width: 240px; }
@media (max-width: 767px) { .notification-settings { grid-template-columns: minmax(0, 1fr); width: 100%; max-width: 100%; min-width: 0; margin-inline: 0; padding: 24px 0 28px; } .notification-preferences, .notification-settings__intro { width: 100%; min-width: 0; padding: 0 16px; } }
@media (max-width: 430px) { .notification-row { grid-template-columns: 24px minmax(0, 1fr) 96px; } .notification-row--simple { grid-template-columns: 24px minmax(0, 1fr); } }

/* Habit settings: a pink-forward studio for building the daily plan. */
.habits-main { width: 100%; overflow-x: clip; }
.habits-heading { align-items: center; }
.habits-heading > div { min-width: 0; }
.habits-heading p:not(.mobile-brand) { margin: 7px 0 0; color: var(--muted); }
.heading-flower { color: var(--hot-pink); font-size: 52px; line-height: 1; }
.habit-settings-layout { display: grid; grid-template-columns: minmax(330px, .82fr) minmax(430px, 1.18fr); gap: 24px; max-width: 1200px; margin-top: 28px; align-items: start; }
.habit-create { border: 1px solid var(--ink); border-radius: 7px; padding: 20px; background: var(--pink); box-shadow: var(--shadow); }
.habit-create__eyebrow, .habit-library__count { width: fit-content; margin: 0 0 9px; padding: 4px 7px; background: var(--lemon); color: var(--ink); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.habit-editor { display: grid; gap: 14px; margin-top: 17px; }
.habit-field { display: grid; gap: 5px; min-width: 0; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.habit-field input, .habit-field select { width: 100%; min-width: 0; min-height: 44px; border: 1px solid var(--ink); border-radius: 4px; padding: 8px 10px; background: #fff; color: var(--ink); text-transform: none; }
.habit-field--name input { min-height: 49px; font-size: 17px; }
.habit-swatches, .habit-weekdays { min-width: 0; margin: 0; border: 0; padding: 0; }
.habit-swatches legend, .habit-weekdays legend { margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.habit-swatches { display: flex; flex-wrap: wrap; gap: 9px; }
.habit-swatch { position: relative; display: grid; width: 39px; height: 39px; border: 2px solid #fff; border-radius: 50%; cursor: pointer; place-items: center; box-shadow: 0 0 0 1px var(--ink); }
.habit-swatch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.habit-swatch span { position: absolute; width: 1px; height: 1px; overflow: hidden; }
.habit-swatch:has(input:checked) { box-shadow: 0 0 0 3px var(--ink); transform: rotate(-5deg); }
.habit-swatch--pink { background: #f72f7f; } .habit-swatch--cobalt { background: #1f6bed; } .habit-swatch--green { background: var(--green); } .habit-swatch--lemon { background: var(--lemon); } .habit-swatch--tangerine { background: #ff5a18; }
.habit-number-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.habit-weekdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.habit-weekdays legend { grid-column: 1 / -1; }
.habit-weekdays label { min-width: 0; cursor: pointer; }
.habit-weekdays input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.habit-weekdays span { display: grid; min-height: 39px; border: 1px solid var(--ink); border-radius: 4px; background: #fff; font-size: 12px; font-weight: 800; place-items: center; }
.habit-weekdays input:checked + span { background: var(--cobalt); color: #fff; }
.habit-primary-action, .habit-archive { min-height: 44px; border: 1px solid var(--ink); border-radius: 5px; padding: 8px 13px; cursor: pointer; color: var(--ink); font-weight: 800; }
.habit-primary-action { justify-self: start; background: var(--lemon); box-shadow: var(--shadow); }
.habit-form-message { min-height: 18px; margin: 0; color: var(--green); font-size: 13px; font-weight: 700; }
.habit-library { min-width: 0; }
.habit-library > .section-heading { padding-bottom: 10px; border-bottom: 7px solid var(--hot-pink); }
.habit-library__count { margin-bottom: 6px; background: var(--soft-lilac); }
.habit-settings-list { display: grid; gap: 9px; margin: 13px 0 0; padding: 0; list-style: none; }
.habit-settings-item { --habit-color: var(--hot-pink); display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; min-width: 0; border: 1px solid var(--line); border-left: 9px solid var(--habit-color); border-radius: 6px; padding: 13px; background: #fff; align-items: center; }
.habit-settings-summary { display: grid; grid-template-columns: 43px minmax(0, 1fr); gap: 11px; min-width: 0; align-items: center; }
.habit-settings-mark { display: grid; width: 43px; height: 43px; border-radius: 50%; background: var(--habit-color); color: #fff; font-size: 23px; font-weight: 900; place-items: center; }
.habit-settings-summary > div { display: grid; gap: 4px; min-width: 0; }
.habit-settings-summary strong { overflow-wrap: anywhere; font-size: 17px; }
.habit-settings-summary div span { color: var(--muted); font-size: 13px; }
.habit-settings-item details { min-width: 0; }
.habit-settings-item summary { min-height: 44px; display: grid; color: var(--cobalt); cursor: pointer; font-weight: 800; place-items: center; }
.habit-settings-item details[open] { grid-column: 1 / -1; order: 4; border-top: 1px solid var(--line); padding-top: 12px; }
.habit-editor--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.habit-editor--compact .habit-number-grid, .habit-editor--compact .habit-weekdays, .habit-editor--compact .habit-primary-action, .habit-editor--compact .habit-form-message { grid-column: 1 / -1; }
.habit-archive { background: var(--soft-lilac); }
.habit-settings-empty { padding: 24px; background: var(--soft-lilac); color: var(--muted); }

@media (max-width: 1040px) { .habit-settings-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) {
  .habits-main { background: #fff; }
  .habits-heading { display: grid; }
  .habits-heading .heading-flower { position: absolute; top: 22px; right: 16px; }
  .habit-settings-layout { display: block; margin-top: 23px; }
  .habit-create { margin-inline: -16px; border-right: 0; border-left: 0; border-radius: 0; padding: 22px 16px; box-shadow: none; }
  .habit-number-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .habit-library { margin-top: 28px; }
  .habit-library > .section-heading { padding-inline: 0; }
  .habit-settings-item { grid-template-columns: minmax(0, 1fr) 44px; }
  .habit-settings-item .habit-archive { grid-column: 1 / -1; }
  .habit-settings-item details { justify-self: end; }
  .habit-settings-item summary { width: 44px; overflow: hidden; font-size: 0; }
  .habit-settings-item summary::after { font-size: 24px; content: "⌕"; }
  .habit-editor--compact { grid-template-columns: 1fr; }
  .habit-editor--compact .habit-number-grid, .habit-editor--compact .habit-weekdays, .habit-editor--compact .habit-primary-action, .habit-editor--compact .habit-form-message { grid-column: auto; }
  .notification-settings { width: calc(100% + 32px); max-width: none; margin-left: -16px; }
}

/* Progress archive: a bright scrapbook, assembled from real collected rewards. */
.progress-main { width: 100%; min-width: 0; overflow-x: clip; }
.progress-heading { align-items: center; }
.progress-count { display: grid; width: 46px; height: 46px; border: 2px solid var(--ink); border-radius: 50%; background: var(--lemon); font-family: var(--display); font-size: 23px; place-items: center; transform: rotate(5deg); }
.progress-intro { max-width: 560px; margin: 8px 0 0; color: var(--muted); line-height: 1.45; }
.progress-month-nav { display: grid; grid-template-columns: 46px minmax(0, max-content) 46px; gap: 12px; margin-top: 26px; align-items: center; }
.progress-month-nav h2 { font-family: var(--display); font-size: 29px; letter-spacing: 0; }
.progress-month-nav a { display: grid; width: 44px; height: 44px; border: 1px solid var(--ink); border-radius: 5px; color: var(--ink); font-size: 31px; line-height: 1; place-items: center; text-decoration: none; }
.progress-month-nav a:first-child { background: var(--soft-lilac); }
.progress-month-nav a:last-child { background: var(--blueberry-milk); }
.progress-layout { display: grid; grid-template-columns: minmax(520px, 1.5fr) minmax(280px, .72fr); gap: 24px; max-width: 1200px; margin-top: 18px; align-items: start; }
.collage-section { min-width: 0; }
.collage-section > .section-heading { margin-bottom: 10px; }
.collage-section > .section-heading button { min-height: 44px; border: 1px solid var(--ink); border-radius: 5px; padding: 8px 13px; background: var(--hot-pink); color: var(--ink); cursor: pointer; font-weight: 800; box-shadow: var(--shadow); }
.collage-board { position: relative; width: 100%; aspect-ratio: 1.28 / 1; overflow: hidden; isolation: isolate; border: 2px solid var(--ink); border-radius: 7px; background: linear-gradient(90deg, var(--pink) 0 31%, var(--lemon) 31% 33%, #fff 33% 100%); box-shadow: 5px 6px 0 var(--green); }
.collage-board::before { position: absolute; z-index: 0; inset: 0 0 auto 33%; height: 20%; background: repeating-linear-gradient(90deg, var(--ink) 0 20px, #fff7df 20px 40px); content: ""; }
.collage-board::after { position: absolute; z-index: 1; right: 0; bottom: 0; width: 39%; height: 31%; border-top: 9px solid var(--cobalt); border-left: 9px solid var(--cobalt); background: var(--soft-lilac); content: ""; }
.collage-decor { position: absolute; z-index: 2; object-fit: contain; pointer-events: none; }
.collage-decor--stripes { right: 2%; top: 4%; width: 19%; transform: rotate(7deg); opacity: .9; }
.collage-decor--frame { left: 3%; bottom: 4%; width: 25%; transform: rotate(-5deg); }
.collage-lettering { position: absolute; z-index: 3; left: 39%; top: 27%; margin: 0; color: var(--cobalt); font-family: var(--display); font-size: clamp(28px, 5vw, 67px); line-height: .83; transform: rotate(-3deg); }
.placed-sticker { position: absolute; z-index: 100; height: auto; max-height: 36%; object-fit: contain; filter: drop-shadow(2px 3px 0 rgb(21 21 21 / 15%)); transform: translate(-50%, -50%); transform-origin: center; }
.placed-sticker.is-rare { z-index: 200; filter: drop-shadow(0 0 0 var(--lemon)) drop-shadow(3px 4px 0 rgb(21 21 21 / 18%)); }
.placed-sticker[data-x="5"] { left: 5%; } .placed-sticker[data-x="10"] { left: 10%; } .placed-sticker[data-x="15"] { left: 15%; } .placed-sticker[data-x="20"] { left: 20%; } .placed-sticker[data-x="25"] { left: 25%; } .placed-sticker[data-x="30"] { left: 30%; } .placed-sticker[data-x="35"] { left: 35%; } .placed-sticker[data-x="40"] { left: 40%; } .placed-sticker[data-x="45"] { left: 45%; } .placed-sticker[data-x="50"] { left: 50%; } .placed-sticker[data-x="55"] { left: 55%; } .placed-sticker[data-x="60"] { left: 60%; } .placed-sticker[data-x="65"] { left: 65%; } .placed-sticker[data-x="70"] { left: 70%; } .placed-sticker[data-x="75"] { left: 75%; } .placed-sticker[data-x="80"] { left: 80%; } .placed-sticker[data-x="85"] { left: 85%; } .placed-sticker[data-x="90"] { left: 90%; } .placed-sticker[data-x="95"] { left: 95%; }
.placed-sticker[data-y="5"] { top: 5%; } .placed-sticker[data-y="10"] { top: 10%; } .placed-sticker[data-y="15"] { top: 15%; } .placed-sticker[data-y="20"] { top: 20%; } .placed-sticker[data-y="25"] { top: 25%; } .placed-sticker[data-y="30"] { top: 30%; } .placed-sticker[data-y="35"] { top: 35%; } .placed-sticker[data-y="40"] { top: 40%; } .placed-sticker[data-y="45"] { top: 45%; } .placed-sticker[data-y="50"] { top: 50%; } .placed-sticker[data-y="55"] { top: 55%; } .placed-sticker[data-y="60"] { top: 60%; } .placed-sticker[data-y="65"] { top: 65%; } .placed-sticker[data-y="70"] { top: 70%; } .placed-sticker[data-y="75"] { top: 75%; } .placed-sticker[data-y="80"] { top: 80%; } .placed-sticker[data-y="85"] { top: 85%; } .placed-sticker[data-y="90"] { top: 90%; } .placed-sticker[data-y="95"] { top: 95%; }
.placed-sticker[data-size="4"] { width: 4%; } .placed-sticker[data-size="6"] { width: 6%; } .placed-sticker[data-size="8"] { width: 8%; } .placed-sticker[data-size="10"] { width: 10%; } .placed-sticker[data-size="14"] { width: 14%; } .placed-sticker[data-size="18"] { width: 18%; } .placed-sticker[data-size="19"] { width: 19%; } .placed-sticker[data-size="20"] { width: 20%; } .placed-sticker[data-size="21"] { width: 21%; } .placed-sticker[data-size="22"] { width: 22%; }
.placed-sticker[data-rotation="-12"] { rotate: -12deg; } .placed-sticker[data-rotation="-10"] { rotate: -10deg; } .placed-sticker[data-rotation="-8"] { rotate: -8deg; } .placed-sticker[data-rotation="-6"] { rotate: -6deg; } .placed-sticker[data-rotation="-4"] { rotate: -4deg; } .placed-sticker[data-rotation="-2"] { rotate: -2deg; } .placed-sticker[data-rotation="0"] { rotate: 0deg; } .placed-sticker[data-rotation="2"] { rotate: 2deg; } .placed-sticker[data-rotation="4"] { rotate: 4deg; } .placed-sticker[data-rotation="6"] { rotate: 6deg; } .placed-sticker[data-rotation="8"] { rotate: 8deg; } .placed-sticker[data-rotation="10"] { rotate: 10deg; } .placed-sticker[data-rotation="12"] { rotate: 12deg; }
.collage-empty { position: absolute; z-index: 4; right: 6%; bottom: 7%; max-width: 240px; margin: 0; color: var(--deep-red); font-weight: 900; line-height: 1.25; text-align: right; text-transform: uppercase; }
.collage-status { min-height: 20px; margin: 13px 0 0; color: var(--muted); font-size: 13px; }
.progress-side { min-width: 0; display: grid; gap: 17px; }
.reward-shelf { border: 1px solid var(--ink); border-radius: 6px; padding: 15px; background: var(--pink); box-shadow: var(--shadow); }
.reward-shelf .section-heading > span { display: grid; width: 30px; height: 30px; border-radius: 50%; background: #fff; font-weight: 900; place-items: center; }
.reward-shelf ul { display: grid; gap: 8px; margin: 13px 0 0; padding: 0; list-style: none; }
.reward-shelf li { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 9px; min-height: 58px; align-items: center; border-bottom: 1px solid rgb(21 21 21 / 18%); }
.reward-shelf li:last-child { border-bottom: 0; }
.reward-shelf img { width: 50px; height: 50px; object-fit: contain; }
.reward-shelf li > span { min-width: 0; display: grid; gap: 3px; }
.reward-shelf strong { overflow-wrap: anywhere; font-size: 14px; }
.reward-shelf small { color: var(--deep-red); font-size: 11px; font-weight: 800; }
.weekly-progress { border: 1px solid var(--cobalt); border-radius: 6px; padding: 16px; background: var(--blueberry-milk); }
.weekly-progress ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; margin: 14px 0 0; padding: 0; list-style: none; }
.weekly-progress li { display: grid; min-width: 0; min-height: 63px; align-content: center; justify-items: center; border: 1px solid var(--cobalt); border-radius: 4px; background: #fff; font-size: 10px; }
.weekly-progress li b { margin-top: 4px; font-size: 14px; }
.weekly-progress li.is-complete { background: var(--green); color: var(--ink); }
.goal-summary, .progress-insights, .month-archive { max-width: 1200px; margin-top: 28px; border-top: 7px solid var(--hot-pink); padding-top: 13px; }
.goal-summary .section-heading a { color: var(--cobalt); font-weight: 800; text-decoration: none; }
.goal-summary ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 17px; margin: 12px 0 0; padding: 0; list-style: none; }
.goal-summary li { display: grid; grid-template-columns: minmax(100px, 1fr) minmax(80px, 1fr) 42px; gap: 9px; min-height: 47px; align-items: center; }
.goal-summary progress { width: 100%; height: 9px; border: 0; accent-color: var(--green); }
.goal-summary small { color: var(--muted); text-align: right; }
.progress-insights { border-top-color: var(--cobalt); }
.progress-insights > .section-heading > span { color: var(--muted); font-size: 12px; font-weight: 800; }
.insight-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.insight-list article { min-width: 0; border: 1px solid var(--ink); border-radius: 6px; padding: 16px; background: var(--soft-lilac); }
.insight-list article:nth-child(even) { background: var(--blueberry-milk); }
.month-archive { border-top-color: var(--green); }
.archive-strip { display: flex; gap: 10px; margin-top: 12px; padding-bottom: 7px; overflow-x: auto; }
.archive-strip a { flex: 0 0 155px; min-height: 92px; display: grid; align-content: center; gap: 6px; border: 1px solid var(--ink); border-radius: 5px; padding: 12px; background: var(--soft-lilac); color: var(--ink); text-decoration: none; }
.archive-strip a:nth-child(3n+2) { background: var(--lemon); }
.archive-strip a:nth-child(3n+3) { background: var(--blueberry-milk); }
.archive-strip a.is-current { box-shadow: inset 0 0 0 4px var(--hot-pink); }
.archive-strip span { color: var(--muted); font-size: 12px; }
.progress-empty { color: var(--muted); line-height: 1.4; }

@media (prefers-reduced-motion: no-preference) {
  .placed-sticker { transition: left 220ms ease, top 220ms ease, transform 220ms ease; }
  .collage-section > .section-heading button:hover { transform: rotate(-2deg); }
}

@media (max-width: 1040px) {
  .progress-layout { grid-template-columns: minmax(0, 1fr); }
  .progress-side { grid-template-columns: 1.15fr .85fr; }
}

@media (max-width: 767px) {
  .progress-main { background: #fff; }
  .progress-month-nav { margin-top: 22px; justify-content: space-between; }
  .progress-month-nav h2 { font-size: 24px; text-align: center; }
  .progress-layout { display: block; margin-top: 14px; }
  .collage-section > .section-heading { padding: 0; }
  .collage-board { width: calc(100% + 32px); margin-left: -16px; border-right: 0; border-left: 0; border-radius: 0; box-shadow: 0 6px 0 var(--green); }
  .collage-lettering { font-size: clamp(25px, 10vw, 49px); }
  .progress-side { display: grid; grid-template-columns: 1fr; margin-top: 28px; }
  .goal-summary ul { grid-template-columns: 1fr; }
  .progress-insights > .section-heading { padding-inline: 0; }
  .progress-insights > .section-heading > span { text-align: right; }
  .insight-list { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .progress-count { position: absolute; top: 30px; right: 16px; }
  .collage-board { aspect-ratio: .92 / 1; }
  .collage-board::before { inset: 0 0 auto 0; }
  .collage-board::after { width: 46%; }
  .collage-lettering { left: 8%; top: 25%; }
  .collage-decor--stripes { top: 3%; width: 26%; }
  .collage-decor--frame { width: 34%; }
  .placed-sticker { scale: 1.26; }
  .goal-summary li { grid-template-columns: minmax(90px, 1fr) minmax(60px, .8fr) 38px; }
}

/* Login: centered private-entry sticker using the established floral palette. */
.login-page { min-height: 100vh; margin: 0; overflow-x: hidden; background: var(--soft-lilac); color: var(--ink); }
.login-shell { position: relative; min-height: 100vh; display: grid; overflow: hidden; padding: 64px 24px; isolation: isolate; place-items: center; }
.login-shell::before { position: absolute; z-index: -3; inset: 0 0 52% 0; background: var(--pink); content: ""; }
.login-shell::after { position: absolute; z-index: -2; right: 0; bottom: 0; width: 29%; height: 35%; border-top: 9px solid var(--cobalt); border-left: 9px solid var(--cobalt); background: var(--blueberry-milk); content: ""; }
.login-card { position: relative; z-index: 2; width: min(100%, 520px); border: 2px solid var(--ink); border-radius: 7px; padding: 34px 38px 38px; background: var(--hot-pink); box-shadow: 8px 9px 0 var(--green); transform: rotate(-1deg); }
.login-card::before { position: absolute; right: 25px; top: -28px; width: 77px; height: 57px; border: 2px solid var(--ink); background: var(--lemon); content: ""; transform: rotate(7deg); }
.login-card::after { position: absolute; right: 47px; top: -15px; width: 31px; height: 31px; border: 2px solid var(--ink); border-radius: 50%; background: var(--pink); content: ""; }
.login-brand { margin: 0; font-family: var(--display); font-size: 34px; line-height: .86; text-transform: uppercase; }
.login-card__intro { margin-top: 38px; }
.login-card__intro h1 { max-width: 440px; margin: 0; color: var(--lemon); font-family: var(--display); font-size: 51px; line-height: .93; letter-spacing: 0; text-shadow: 1px 1px 0 var(--ink); text-transform: uppercase; }
.login-alert { margin: 21px 0 -5px; border: 1px solid var(--ink); border-radius: 4px; padding: 11px 13px; background: var(--deep-red); color: #fff; font-weight: 800; line-height: 1.35; }
.login-form { display: grid; gap: 15px; margin-top: 25px; }
.login-form label { display: grid; gap: 6px; color: var(--ink); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.login-form input { width: 100%; min-height: 52px; border: 2px solid var(--ink); border-radius: 4px; padding: 10px 13px; background: #fff; color: var(--ink); font-size: 17px; font-weight: 700; text-transform: none; box-shadow: none; }
.login-form input:focus { outline: 4px solid var(--cobalt); outline-offset: 2px; }
.login-form button { min-height: 55px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 3px; border: 2px solid var(--ink); border-radius: 5px; padding: 9px 16px; background: var(--lemon); color: var(--ink); cursor: pointer; font-size: 17px; font-weight: 900; box-shadow: 3px 4px 0 var(--ink); text-transform: uppercase; }
.login-form button span:last-child { font-size: 28px; line-height: 1; }
.login-form button:hover { background: #f5f2ad; transform: translate(-1px, -1px); }
.login-form button:active { box-shadow: 1px 1px 0 var(--ink); transform: translate(2px, 3px); }
.login-decoration { position: absolute; z-index: 1; pointer-events: none; user-select: none; }
.login-decoration--stripes { z-index: -1; left: 5%; top: 8%; width: clamp(150px, 18vw, 260px); aspect-ratio: 1; border: 2px solid var(--ink); background: repeating-linear-gradient(90deg, var(--ink) 0 22px, #fff7df 22px 44px); transform: rotate(-6deg); }
.login-decoration--flower-large { right: 8%; top: 8%; color: var(--cobalt); font-size: clamp(92px, 13vw, 180px); line-height: 1; transform: rotate(9deg); }
.login-decoration--flower-small { left: 12%; bottom: 6%; color: var(--hot-pink); font-size: clamp(65px, 9vw, 126px); line-height: 1; transform: rotate(-12deg); }
.login-decoration--star { right: 14%; bottom: 8%; color: var(--deep-red); font-size: clamp(72px, 10vw, 142px); line-height: 1; transform: rotate(8deg); }
.login-decoration--wave { right: 4%; top: 45%; max-width: 230px; overflow: hidden; color: var(--green); font-family: var(--display); font-size: clamp(33px, 5vw, 68px); letter-spacing: -7px; line-height: .5; transform: rotate(-7deg); white-space: nowrap; }

@media (max-width: 767px) {
  .login-shell { min-height: 100svh; padding: 48px 16px 58px; align-items: center; }
  .login-shell::before { bottom: 48%; }
  .login-shell::after { width: 34%; height: 22%; border-width: 6px 0 0 6px; }
  .login-card { width: min(100%, 440px); padding: 29px 23px 30px; box-shadow: 6px 7px 0 var(--green); transform: none; }
  .login-card::before { right: 19px; top: -24px; width: 65px; height: 48px; }
  .login-card::after { right: 37px; top: -12px; width: 27px; height: 27px; }
  .login-brand { font-size: 29px; }
  .login-card__intro { margin-top: 32px; }
  .login-card__intro h1 { font-size: clamp(40px, 13vw, 51px); }
  .login-decoration--stripes { left: -48px; top: -40px; width: 150px; }
  .login-decoration--flower-large { right: -30px; top: 9%; font-size: 86px; }
  .login-decoration--flower-small { left: -12px; bottom: 1%; font-size: 72px; }
  .login-decoration--star { right: -20px; bottom: 1%; font-size: 77px; }
  .login-decoration--wave { display: none; }
}

@media (max-width: 390px) {
  .login-shell { padding-inline: 13px; }
  .login-card { padding-inline: 20px; }
  .login-card__intro h1 { font-size: 42px; }
}
