:root {
  --paper: #f5f2e9;
  --paper-deep: #ebe6d9;
  --ink: #1f211e;
  --muted: #74756e;
  --line: #d6d1c5;
  --soft: #e9e4d8;
  --accent: #315b43;
  --accent-soft: #dbe6dd;
  --rust: #925545;
  --white: #fffdf8;
  --display: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --body: "Figtree", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --editorial: "Figtree", ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background: #e8e3d8;
  font-family: var(--body);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body, #app { margin: 0; min-width: 320px; min-height: 100%; }
body { background: #e8e3d8; }
button, input, textarea, select { color: inherit; font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.appShell { min-height: 100vh; }
.page { width: min(100%, 480px); min-height: 100vh; margin: 0 auto; overflow-x: hidden; background: var(--paper); padding: max(22px, env(safe-area-inset-top)) 22px max(38px, env(safe-area-inset-bottom)); }
.page.withNav { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

.top { min-height: 32px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brandLockup { display: inline-flex; align-items: center; gap: 8px; }
.brandMark { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.brandLockup.compact .brandMark { width: 25px; height: 25px; }
.wordmark { font-family: var(--display); font-size: 12px; font-stretch: 125%; font-weight: 780; letter-spacing: .2em; }
.micro { max-width: 72%; overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.pillarName { color: var(--muted); font-size: 12px; font-weight: 600; }
.iconButton { width: 44px; height: 44px; margin: -6px 0 -6px -10px; border: 0; background: transparent; font-size: 20px; text-align: left; cursor: pointer; }
.rule, .hairline { width: 100%; height: 1px; background: var(--line); }

.screenContext { margin: 28px 0 6px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-stretch: 118%; color: var(--ink); }
h1 { margin-top: 10px; font-size: clamp(35px, 9.8vw, 46px); font-weight: 610; line-height: 1.01; letter-spacing: -.025em; }
h2 { margin-top: 10px; font-size: 30px; font-weight: 610; line-height: 1.05; letter-spacing: -.02em; }
h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.supportingText { max-width: 38rem; margin: 12px 0 0; color: #4e504a; font-size: 15px; line-height: 1.5; }
.supportingText.compact { font-size: 14px; line-height: 1.45; }

.primary { width: 100%; min-height: 54px; margin-top: 28px; padding: 16px 0; display: flex; align-items: center; justify-content: space-between; border: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: transparent; font-size: 10px; font-weight: 800; letter-spacing: .15em; cursor: pointer; }
.primary.solid { padding: 16px 18px; border: 1px solid var(--ink); border-radius: 2px; background: var(--ink); color: var(--paper); }
.primary:disabled { opacity: .35; cursor: not-allowed; }
.secondary { width: 100%; min-height: 48px; margin-top: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 2px; background: transparent; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }

.welcomeScene { position: relative; height: 118px; margin-top: 7vh; display: grid; place-items: center; }
.welcomeScene .sceneMark { width: 116px; height: 116px; color: #373934; stroke-width: 1.15; }
.sceneGround { position: absolute; right: 15%; bottom: 7px; left: 15%; height: 1px; background: var(--line); }
.rotatingQuote { transition: opacity .22s ease, transform .22s ease; }
.rotatingQuote.changing { opacity: .18; transform: translateY(3px); }
.quoteSpace { min-height: 250px; padding: 4vh 0 7vh; }
.rotatingQuote blockquote { margin: 13px 0 15px; color: var(--ink); font-family: var(--editorial); font-size: 28px; font-weight: 400; line-height: 1.24; letter-spacing: -.02em; }
.rotatingQuote cite { color: var(--muted); font-family: var(--editorial); font-size: 13px; }
.quoteTicks { margin-top: 18px; display: flex; gap: 5px; }
.quoteTicks i { width: 11px; height: 2px; background: var(--line); transition: background .2s ease, width .2s ease; }
.quoteTicks i.active { width: 23px; background: var(--ink); }
.inAppQuote { margin: 22px 0 0; padding: 16px 0 17px 17px; border-left: 2px solid var(--ink); }
.inAppQuote blockquote { margin: 7px 0 7px; font-size: 16px; line-height: 1.35; }
.inAppQuote cite { font-size: 11px; }
.inAppQuote .quoteTicks { margin-top: 11px; }
.welcome h1 { max-width: 410px; margin-top: 14px; font-size: 39px; }

.rows, .goalList { margin-top: 25px; }
.row { width: 100%; min-height: 76px; padding: 15px 0; display: flex; align-items: center; gap: 15px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.row.selected { padding: 15px 12px; border-left: 2px solid var(--accent); border-bottom-color: var(--line); background: rgba(49, 91, 67, .055); }
.roman { width: 29px; flex: 0 0 auto; color: var(--muted); font-family: var(--editorial); font-size: 17px; }
.rowCopy, .selectGoal > span:first-child, .setting > span:first-child, .settingsRow > span:first-child { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 4px; }
.rowCopy strong, .selectGoal strong, .setting strong, .settingsRow strong { font-family: var(--display); font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.rowCopy small, .selectGoal small, .setting small, .settingsRow small { color: var(--muted); font-size: 11px; line-height: 1.35; }
.bullet { font-size: 18px; }

.selectGoal { width: 100%; min-height: 66px; padding: 14px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.selectGoal.selected { padding-right: 12px; padding-left: 12px; border-left: 2px solid var(--accent); background: rgba(49, 91, 67, .055); }
.onboardingGoalGroups { margin-top: 25px; }
.onboardingGoalGroup { margin-top: 24px; }
.onboardingGoalGroup .sectionTitle { margin-top: 0; border-bottom: 1px solid var(--ink); }
.onboardingCustomGoal { margin-top: 26px; border-style: dashed; }
.selectionCount { margin: 11px 0 0; color: var(--muted); font-size: 10px; text-align: center; text-transform: uppercase; letter-spacing: .08em; }

.setting, .settingsRow, .selectRow, .checkRow { width: 100%; min-height: 66px; padding: 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.settingsRow { cursor: pointer; }
.settingsRow > span:last-child { color: var(--muted); font-size: 11px; font-weight: 700; }
.toggle { width: 48px; height: 28px; flex: 0 0 auto; padding: 3px; border: 1px solid var(--muted); border-radius: 999px; background: transparent; cursor: pointer; }
.toggle span { display: block; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); transition: transform .18s ease; }
.toggle.on { border-color: var(--accent); background: var(--accent); }
.toggle.on span { background: var(--white); transform: translateX(20px); }
.fixedSetting > b { color: var(--accent); font-size: 9px; letter-spacing: .08em; }
.timeRow { min-height: 54px; padding: 11px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.timeRow input { min-height: 40px; border: 0; background: transparent; color: var(--ink); font-weight: 700; }
.twoTime { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.notice, .helper { margin: 17px 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

.bottomNav { position: fixed; z-index: 12; right: 0; bottom: 10px; left: 50%; width: min(calc(100% - 16px), 472px); min-height: 68px; padding: 7px 6px max(7px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; transform: translateX(-50%); border: 1px solid rgba(31,33,30,.1); border-radius: 24px; background: rgba(250,248,241,.92); box-shadow: 0 12px 35px rgba(31,33,30,.16); backdrop-filter: blur(18px) saturate(130%); }
.bottomNav button { min-height: 52px; padding: 6px 2px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 3px; border: 0; border-radius: 17px; background: transparent; color: var(--muted); font-size: 8px; font-weight: 700; cursor: pointer; transition: transform .18s ease, color .18s ease, background .18s ease; }
.bottomNav button:active { transform: scale(.94); }
.bottomNav button.active { background: rgba(49,91,67,.09); color: var(--accent); }
.navIcon { font-family: var(--display); font-size: 19px; line-height: 1; }
.bottomNav button:nth-child(3) { min-height: 56px; margin-top: -10px; border-radius: 18px; background: var(--accent); color: white; box-shadow: 0 8px 18px rgba(49,91,67,.24); }
.bottomNav button:nth-child(3).active { background: var(--ink); color: white; }

.todayHero { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 18px; }
.todayHero .screenContext { margin-top: 0; }
.todayHero h1 { font-size: 42px; }
.dayRing { position: relative; width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; }
.dayRing svg, .progressRing svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ringTrack, .ringValue { fill: none; stroke-width: 5; }
.ringTrack { stroke: var(--line); }
.ringValue { stroke: var(--accent); stroke-linecap: round; }
.ringValue { stroke-dashoffset: 0; transition: stroke-dasharray .35s ease; }
.ringCore { position: relative; z-index: 1; width: 66px; height: 66px; display: flex; align-items: center; justify-content: center; flex-direction: column; border-radius: 50%; background: var(--paper); }
.dayRing strong { font-family: var(--display); font-size: 23px; line-height: 1; }
.dayRing small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.todayList { width: min(100%, 410px); margin: 24px auto 0; display: grid; gap: 12px; }
.swipeGoal { position: relative; overflow: hidden; border-radius: 12px; background: var(--soft); box-shadow: 0 8px 22px rgba(31, 33, 30, .07); }
.swipeOutcome { position: absolute; inset: 0; padding: 0 20px; display: flex; align-items: center; gap: 9px; opacity: 0; color: white; font-size: 10px; letter-spacing: .12em; transition: opacity .12s ease; }
.swipeOutcome span { font-size: 23px; }
.swipeYes { justify-content: flex-start; background: var(--accent); }
.swipeNo { justify-content: flex-end; background: var(--rust); }
.swipeGoal.towardYes .swipeYes, .swipeGoal.towardNo .swipeNo { opacity: 1; }
.todayGoal { position: relative; z-index: 1; min-height: 96px; padding: 0 10px 0 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: stretch; border: 1px solid color-mix(in srgb, var(--goal-tint, var(--line)) 70%, var(--line)); border-radius: 12px; background: var(--goal-tint, var(--white)); touch-action: pan-y; user-select: none; transition: transform .18s ease, background .16s ease, border-color .16s ease; will-change: transform; }
.todayGoal.dragging { transition: none; }
.todayGoal.swipedYes { transform: translateX(125%) rotate(8deg) !important; }
.todayGoal.swipedNo { transform: translateX(-125%) rotate(-8deg) !important; }
.todayGoal.complete { border-color: rgba(49, 91, 67, .5); background: var(--accent-soft); }
.todayGoal.missed { border-color: rgba(146, 85, 69, .4); }
.todayGoalInfo { min-width: 0; padding: 14px 10px 14px 0; display: flex; align-items: flex-start; justify-content: center; flex-direction: column; border: 0; background: transparent; text-align: left; cursor: pointer; }
.todayGoalInfo strong { margin-top: 4px; font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.todayGoalInfo small { margin-top: 4px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.quickChoice { display: grid; grid-template-columns: repeat(2, 44px); align-items: center; gap: 7px; }
.quickChoice button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 2px; background: transparent; color: var(--muted); font-size: 17px; cursor: pointer; }
.quickChoice button.active.yes { border-color: var(--accent); background: var(--accent); color: white; }
.quickChoice button.active.no { border-color: var(--rust); color: var(--rust); }
.healthThermometer { width: 34px; padding: 10px 4px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; }
.healthThermometerTrack { position: relative; width: 9px; height: 55px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-deep); }
.healthThermometerTrack span { position: absolute; right: 0; bottom: 0; left: 0; display: block; border-radius: 7px; background: var(--accent); transition: height .35s ease; }
.healthThermometer b { color: var(--muted); font-size: 8px; font-weight: 750; }
.healthOnboardingList { margin-top: 27px; border-top: 1px solid var(--ink); }
.healthOnboardingGoal { min-height: 76px; padding: 12px 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(125px, 44%); align-items: center; gap: 14px; border-bottom: 1px solid var(--line); }
.healthOnboardingGoal > span { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.healthOnboardingGoal strong { font-family: var(--display); font-size: 14px; }
.healthOnboardingGoal small { color: var(--muted); font-size: 9px; line-height: 1.3; text-transform: uppercase; }
.healthOnboardingGoal select { width: 100%; min-height: 42px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); font-size: 11px; }
.undoToast { position: fixed; z-index: 60; bottom: calc(82px + env(safe-area-inset-bottom)); left: 50%; width: min(calc(100% - 32px), 430px); min-height: 54px; padding: 10px 12px 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; transform: translateX(-50%); border-radius: 10px; background: var(--ink); color: var(--paper); box-shadow: 0 10px 30px rgba(0, 0, 0, .22); animation: toastIn .18s ease-out; }
.undoToast span { font-size: 11px; }
.undoToast button { min-height: 34px; padding: 0 11px; border: 1px solid rgba(255,255,255,.35); border-radius: 6px; background: transparent; color: white; font-size: 11px; font-weight: 750; cursor: pointer; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } }
.todaySummary { margin-top: 28px; padding-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; border-top: 1px solid var(--line); }
.todaySummary div { display: flex; flex-direction: column; gap: 7px; }
.todaySummary span { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.todaySummary strong { font-family: var(--display); font-size: 27px; font-weight: 600; }

.pillarBalance { margin-top: 30px; }
.pillarBars { height: 172px; padding: 21px 8px 0; display: grid; grid-template-columns: repeat(var(--pillar-count, 4), minmax(0, 1fr)); align-items: end; gap: 14px; border-bottom: 1px solid var(--ink); }
.pillarBar { height: 145px; display: grid; grid-template-rows: 1fr auto auto; justify-items: center; gap: 6px; }
.pillarTrack { width: 22px; height: 100%; }
.pillarTrack svg { width: 100%; height: 100%; display: block; }
.pillarTrackBase { fill: rgba(255, 253, 248, .45); stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pillarTrackValue { fill: var(--pillar-color, var(--accent)); }
.pillarBar strong { font-family: var(--display); font-size: 12px; }
.pillarBar small { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
.sharedSeasonSection { margin-top: 32px; }
.sharedSeasonSection .sectionTitle button { border: 0; background: transparent; color: var(--accent); font-size: 9px; font-weight: 800; }
.seasonCard { margin-top: 12px; padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,253,248,.58); }
.seasonCard h3 { margin-top: 5px; font-size: 18px; }
.seasonCard p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.seasonCard > button, .seasonInvite button { min-height: 40px; margin-top: 14px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--accent); color: white; font-size: 10px; font-weight: 750; }
.seasonTogether { margin-top: 15px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.seasonTogether span { padding: 9px; border-radius: 9px; background: var(--soft); color: var(--muted); font-size: 9px; line-height: 1.35; }

.titleAction { margin-top: 32px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 20px; }
.goalPageActions { display: flex; align-items: center; gap: 9px; }
.goalSaveButton { min-height: 42px; padding: 0 17px; border: 1px solid var(--ink); border-radius: 2px; background: transparent; color: var(--ink); font-size: 11px; font-weight: 750; cursor: pointer; }
.goalSaveButton:active { background: var(--ink); color: var(--paper); }
.checkinUpdateButton { position: fixed; z-index: 25; left: max(18px, calc(50% - 212px)); bottom: 92px; min-width: 112px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 16px; background: var(--ink); color: var(--paper); font-size: 11px; font-weight: 850; letter-spacing: .04em; box-shadow: 0 10px 28px rgba(24,29,23,.24); cursor: pointer; }
.titleAction .screenContext { margin-top: 0; }
.roundAdd { width: 48px; height: 48px; border: 1px solid var(--ink); border-radius: 2px; background: transparent; color: var(--ink); font-size: 23px; cursor: pointer; }
.segment { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.segment button { min-height: 43px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 12px; font-weight: 650; cursor: pointer; }
.segment button.active { border-bottom-color: var(--ink); color: var(--ink); }
.segment span { margin-left: 5px; color: var(--muted); font-size: 10px; }
.sectionTitle { margin-top: 30px; padding-bottom: 9px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 15px; font-weight: 650; }
.goalGroup .sectionTitle span:first-child { color: var(--ink); }
.goalCard { position: relative; border-bottom: 1px solid var(--line); background: transparent; }
.goalCardMain { width: 100%; min-height: 164px; padding: 19px 50px 18px 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.goalCard h3 { margin-top: 6px; }
.goalCard p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.goalProgressHead { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.goalProgressHead strong { color: var(--ink); font-size: 10px; letter-spacing: 0; text-transform: none; }
.goalProgressTrack { width: 100%; height: 3px; margin-top: 9px; display: block; overflow: hidden; border: 0; border-radius: 0; appearance: none; background: var(--soft); }
.goalProgressTrack::-webkit-progress-bar { background: var(--soft); }
.goalProgressTrack::-webkit-progress-value { background: var(--accent); }
.goalProgressTrack::-moz-progress-bar { background: var(--accent); }
.goalMetrics { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 7px 14px; color: var(--muted); font-size: 9px; }
.goalMetrics b { color: var(--ink); font-family: var(--display); font-size: 14px; }
.moreButton { position: absolute; top: 9px; right: 8px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--muted); letter-spacing: 2px; cursor: pointer; }
.previousList { margin-top: 20px; }
.previousGoal { min-height: 72px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); }
.previousGoal > button:first-child { min-height: 66px; padding: 10px 0; display: flex; border: 0; background: transparent; text-align: left; cursor: pointer; }
.previousGoal > button:first-child span { display: flex; flex-direction: column; gap: 4px; }
.previousGoal strong { font-family: var(--display); font-size: 15px; }
.previousGoal small { color: var(--muted); font-size: 10px; }
.restoreButton, .goalAddButton, .followButton { min-height: 38px; padding: 0 13px; border: 1px solid var(--ink); border-radius: 2px; background: transparent; font-size: 10px; font-weight: 650; cursor: pointer; }

.discoverSection { margin-top: 32px; }
.discoverHeading { padding-bottom: 10px; display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--ink); }
.discoverHeading div { display: flex; flex-direction: column; gap: 3px; }
.discoverHeading span { font-family: var(--display); font-size: 19px; font-weight: 600; }
.discoverHeading small { color: var(--muted); font-size: 10px; }
.discoverHeading em { color: var(--muted); font-size: 8px; font-style: normal; font-weight: 700; letter-spacing: .08em; }
.discoverGoal { min-height: 75px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); }
.discoverCopy { min-height: 70px; padding: 12px 0; display: flex; align-items: flex-start; justify-content: center; flex-direction: column; border: 0; background: transparent; text-align: left; cursor: pointer; }
.discoverCopy strong { margin-top: 3px; font-family: var(--display); font-size: 15px; }
.discoverCopy small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.goalAddButton.added { border-color: var(--line); color: var(--muted); }

.searchField { min-height: 51px; margin-top: 24px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; border: 0; border-bottom: 1px solid var(--ink); background: transparent; }
.searchField span { color: var(--muted); font-size: 22px; }
.searchField input { min-width: 0; height: 49px; border: 0; outline: none; background: transparent; font-size: 14px; }
.personCard { min-height: 74px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.personIdentity, .activityIdentity { min-width: 0; min-height: 68px; padding: 9px 0; display: flex; align-items: center; gap: 11px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.personIdentity > span:last-child, .activityIdentity > span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.personIdentity strong, .activityIdentity strong { overflow: hidden; font-family: var(--display); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.personIdentity small, .activityIdentity small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper); font-family: var(--display); font-size: 15px; font-weight: 700; }
.avatar.small { width: 37px; height: 37px; font-size: 12px; }
.avatar.large { width: 76px; height: 76px; font-size: 25px; }
.followButton.following { border-color: var(--line); color: var(--muted); }
.activityCard { position: relative; min-height: 104px; padding: 8px 0 13px; border-bottom: 1px solid var(--line); }
.activityIdentity { min-height: 51px; }
.activityCard p { margin: 5px 70px 0 48px; font-family: var(--editorial); font-size: 15px; }
.activityCard p b { font-weight: 600; }
.activityDate { position: absolute; right: 0; bottom: 15px; color: var(--muted); font-size: 9px; }

.profileHero { margin-top: 35px; display: flex; align-items: center; gap: 18px; }
.profileHero h1 { margin-top: 0; font-size: 31px; }
.profileHero p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.profileBio { min-height: 44px; margin: 22px 0 0; color: #4f514b; font-family: var(--editorial); font-size: 17px; line-height: 1.45; }
.profileStats { margin-top: 24px; padding: 17px 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.profileStats button, .profileStats > div { min-height: 48px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; border: 0; border-right: 1px solid var(--line); background: transparent; cursor: pointer; }
.profileStats button:last-child, .profileStats > div:last-child { border-right: 0; }
.profileStats strong { font-family: var(--display); font-size: 20px; }
.profileStats span { color: var(--muted); font-size: 9px; }
.profileActions { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.profileActions button { min-height: 44px; border: 1px solid var(--line); border-radius: 2px; background: transparent; font-size: 11px; font-weight: 650; cursor: pointer; }
.dangerText { color: var(--rust); }
.sharedGoal { min-height: 69px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); }
.sharedGoal div { display: flex; flex-direction: column; gap: 4px; }
.sharedGoal strong { font-family: var(--display); font-size: 14px; }
.sharedGoal small { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.sharedGoal button { min-height: 38px; border: 1px solid var(--line); border-radius: 2px; background: transparent; font-size: 10px; cursor: pointer; }

.goalDetailHead { margin-top: 35px; }
.goalDetailHead h1 { margin-top: 7px; }
.goalDetailHead p { margin: 10px 0 0; color: var(--muted); font-size: 12px; text-transform: capitalize; }
.progressHero { margin-top: 27px; padding: 20px 0; display: grid; grid-template-columns: 116px minmax(0, 1fr); align-items: center; gap: 21px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.progressRing { position: relative; width: 116px; height: 116px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--accent-bright, var(--accent)) var(--progress-angle, 0deg), var(--line) 0); }
.progressRing > span { position: relative; z-index: 1; width: 101px; height: 101px; display: flex; align-items: center; justify-content: center; flex-direction: column; border-radius: 50%; background: var(--paper); text-align: center; }
.progressRing strong { font-family: var(--display); font-size: 25px; line-height: 1; }
.progressRing small { max-width: 76px; margin-top: 6px; color: var(--muted); font-size: 8px; line-height: 1.25; text-transform: uppercase; letter-spacing: .06em; }
.progressCopy .screenContext { margin-top: 0; }
.progressCopy h2 { margin-top: 7px; font-size: 24px; line-height: 1.05; }
.progressCopy p { margin: 9px 0 0; color: var(--muted); font-family: var(--editorial); font-size: 13px; line-height: 1.35; }
.detailStats { margin-top: 28px; padding: 17px 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detailStats div { padding: 0 8px; display: flex; align-items: center; flex-direction: column; gap: 5px; border-right: 1px solid var(--line); text-align: center; }
.detailStats div:last-child { border-right: 0; }
.detailStats strong { font-family: var(--display); font-size: 21px; }
.detailStats span { color: var(--muted); font-size: 9px; line-height: 1.25; }
.goalHistoryRow { padding: 15px 0; border-bottom: 1px solid var(--line); }
.goalHistoryRow > div { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.goalHistoryRow strong { font-family: var(--display); font-size: 13px; }
.goalHistoryRow small { color: var(--muted); font-size: 10px; }
.goalHistoryRow p { margin: 11px 0 0; color: #50524c; font-family: var(--editorial); font-size: 15px; line-height: 1.45; }

.modalBackdrop { position: fixed; z-index: 30; inset: 0; display: flex; align-items: flex-end; justify-content: center; background: rgba(21, 23, 20, .36); }
.modal { width: min(100%, 480px); max-height: 88vh; padding: 13px 22px calc(28px + env(safe-area-inset-bottom)); overflow-y: auto; border: 0; border-radius: 12px 12px 0 0; background: var(--paper); }
.modalHandle { width: 38px; height: 4px; margin: 0 auto 3px; border-radius: 999px; background: var(--line); }
.modalClose { min-width: 44px; min-height: 44px; float: right; border: 0; background: transparent; color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; cursor: pointer; }
.settingsModal { overflow-x: hidden; overflow-y: scroll; overscroll-behavior: contain; touch-action: pan-y; -webkit-overflow-scrolling: touch; }
.settingsModal .modalClose { position: sticky; z-index: 2; top: 0; margin-top: -5px; color: var(--ink); font-size: 30px; font-weight: 400; line-height: 1; letter-spacing: 0; }
.modalCloseX { position: sticky; z-index: 3; top: 0; margin-top: -5px; color: var(--ink); font-size: 30px; font-weight: 400; line-height: 1; letter-spacing: 0; }
.modal .screenContext { clear: both; margin-top: 29px; }
.modalOption { width: 100%; min-height: 52px; padding: 12px 4px; display: flex; align-items: center; justify-content: space-between; border: 0; border-bottom: 1px solid var(--line); background: transparent; font-size: 13px; cursor: pointer; }
.selectRow > span { display: flex; flex-direction: column; gap: 4px; }
.selectRow strong { font-family: var(--display); font-size: 15px; }
.selectRow small { color: var(--muted); font-size: 10px; }
.selectRow select { min-height: 40px; border: 0; background: transparent; font-size: 12px; font-weight: 700; }
.visibilityControl { padding: 18px 0; border-bottom: 1px solid var(--line); }
.visibilityControl > div:first-child { display: flex; flex-direction: column; gap: 4px; }
.visibilityControl strong { font-family: var(--display); font-size: 15px; }
.visibilityControl small { color: var(--muted); font-size: 10px; }
.visibilityBar { margin-top: 13px; padding: 3px; display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 12px; background: var(--soft); }
.visibilityBar button { min-height: 39px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 10px; text-transform: capitalize; }
.visibilityBar button.active { background: var(--white); color: var(--ink); box-shadow: 0 3px 10px rgba(31,33,30,.08); }
.seasonDates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seasonGoals { margin: 23px 0 0; padding: 0; border: 0; }
.seasonGoals legend { padding-bottom: 9px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .11em; }
.seasonGoals label { min-height: 58px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.seasonGoals input { width: 20px; height: 20px; accent-color: var(--accent); }
.seasonGoals span { display: flex; flex-direction: column; gap: 3px; }
.seasonGoals strong, .seasonInvite strong { font-family: var(--display); font-size: 14px; }
.seasonGoals small, .seasonInvite small { color: var(--muted); font-size: 9px; }
.seasonInvite { margin-top: 15px; padding: 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--accent); border-radius: 12px; }
.seasonInvite > div { display: flex; flex-direction: column; gap: 4px; }
.seasonInvite button { margin-top: 0; }
.fieldHint { display: block; margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.4; }

.seasonsHero { margin-top: 34px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 18px; }
.seasonsHero h1 { font-size: 38px; }
.seasonsHero > button { width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--accent); color: white; font-size: 24px; cursor: pointer; box-shadow: 0 8px 20px rgba(49,91,67,.22); }
.seasonCard { margin-top: 13px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.42); }
.seasonCard.invited { border-color: var(--accent); background: rgba(49,91,67,.055); }
.seasonCard h3 { margin: 6px 0 0; font-family: var(--display); font-size: 22px; }
.seasonCard p { margin: 6px 0 0; color: var(--muted); font-size: 10px; }
.seasonCard > button, .seasonCardActions button { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--ink); font-size: 10px; font-weight: 750; cursor: pointer; }
.seasonCard > button { margin-top: 15px; background: var(--accent); color: white; }
.seasonTogether { margin-top: 15px; padding: 11px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.seasonCardActions { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seasonCardActions button:last-child { border-color: var(--accent); background: var(--accent); color: white; }
.seasonRoomHero { margin-top: 34px; }
.seasonRoomHero h1 { margin-top: 7px; font-size: 40px; }
.seasonRoomHero p { margin: 9px 0 0; color: var(--muted); font-size: 11px; }
.seasonMemberStrip { margin: 22px -22px 0; padding: 0 22px 12px; display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; }
.seasonMemberStrip::-webkit-scrollbar { display: none; }
.seasonMember { min-width: 61px; display: flex; align-items: center; flex-direction: column; gap: 6px; text-align: center; }
.seasonMember > span { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: white; font-family: var(--display); font-size: 17px; }
.seasonMember.invited > span { border: 1px dashed var(--muted); background: transparent; color: var(--muted); }
.seasonMember small { max-width: 74px; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.seasonGoalGrid { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.seasonGoalGrid article { min-height: 104px; padding: 14px; display: flex; align-items: flex-start; flex-direction: column; border-radius: 15px; background: var(--season-goal-color); }
.seasonGoalGrid article span { align-self: flex-end; padding: 4px 7px; border-radius: 999px; background: rgba(255,255,255,.55); font-size: 9px; font-weight: 800; }
.seasonGoalGrid article strong { margin-top: auto; font-family: var(--display); font-size: 16px; }
.seasonGoalGrid article small { margin-top: 4px; color: rgba(31,33,30,.65); font-size: 8px; text-transform: uppercase; }
.seasonShareButton { margin-top: 14px; }
.seasonThread { max-height: 380px; margin: 12px -4px 0; padding: 3px 4px 9px; overflow-y: auto; }
.seasonMessage { max-width: 86%; margin: 10px 0; padding: 11px 13px; border-radius: 4px 16px 16px 16px; background: var(--soft); }
.seasonMessage.mine { margin-left: auto; border-radius: 16px 4px 16px 16px; background: rgba(49,91,67,.12); }
.seasonMessage > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.seasonMessage strong { font-size: 9px; }
.seasonMessage time { color: var(--muted); font-size: 8px; }
.seasonMessage p { margin: 7px 0 0; font-family: var(--editorial); font-size: 15px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.seasonChatEmpty { padding: 24px 10px; border: 1px dashed var(--line); border-radius: 14px; text-align: center; }
.seasonChatEmpty strong { font-family: var(--display); }
.seasonChatEmpty p { margin: 6px 0 0; color: var(--muted); font-size: 10px; }
.seasonComposer { position: sticky; bottom: 75px; margin: 10px 0 20px; padding: 7px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 7px; border: 1px solid var(--line); border-radius: 18px; background: rgba(250,248,241,.96); box-shadow: 0 7px 24px rgba(31,33,30,.09); }
.seasonComposer textarea { min-height: 44px; max-height: 120px; padding: 11px; resize: vertical; border: 0; outline: none; background: transparent; font: inherit; }
.seasonComposer button { min-width: 58px; min-height: 42px; border: 0; border-radius: 12px; background: var(--accent); color: white; font-size: 10px; font-weight: 800; }
.unitPicker { padding: 16px 0; border-bottom: 1px solid var(--line); }
.unitPicker > span { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.unitPicker div { margin-top: 9px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.unitPicker button { min-height: 42px; border: 1px solid var(--line); border-radius: 2px; background: transparent; font-size: 11px; cursor: pointer; }
.unitPicker button.active { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.targetBuilder { padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; }
.targetBuilder { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 11px; }
.targetBuilder label > span { margin-bottom: 7px; display: block; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .11em; }
.targetBuilder select { width: 100%; min-height: 54px; padding: 0 11px; border: 1px solid var(--line); border-radius: 2px; background: transparent; font-size: 12px; font-weight: 700; }
.targetBuilder p { grid-column: 1 / -1; margin: 5px 0 0; color: var(--muted); font-family: var(--editorial); font-size: 14px; line-height: 1.4; }
.targetBuilder p strong { color: var(--ink); font-weight: 600; }
.dangerZone { margin-top: 20px; }
.dangerZone button { width: 100%; min-height: 56px; padding: 10px 0; display: flex; align-items: flex-start; justify-content: center; flex-direction: column; gap: 3px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--rust); text-align: left; cursor: pointer; }
.dangerZone span { color: var(--muted); font-size: 10px; }
.detailField { margin-top: 22px; display: block; }
.detailField > span { margin-bottom: 8px; display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .11em; }
.detailField > span b { font-weight: 500; letter-spacing: normal; }
.detailField > input, .detailField textarea, .detailField select { width: 100%; min-height: 49px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 2px; outline: none; background: transparent; font-size: 15px; }
.detailField textarea { min-height: 116px; resize: vertical; font-family: var(--editorial); font-size: 16px; line-height: 1.4; }
.distanceInput { display: grid; grid-template-columns: 1fr auto; align-items: center; border: 1px solid var(--line); border-radius: 2px; background: transparent; }
.distanceInput input { width: 100%; min-height: 56px; padding: 12px 13px; border: 0; outline: none; background: transparent; font-family: var(--display); font-size: 23px; }
.distanceInput b { padding-right: 16px; color: var(--muted); font-size: 12px; text-transform: uppercase; }
.skipDetails { width: 100%; min-height: 46px; margin-top: 8px; border: 0; background: transparent; color: var(--muted); font-size: 10px; text-decoration: underline; cursor: pointer; }
.dayNavigator { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; margin: 8px 0 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dayNavigator button { min-height: 44px; border: 0; background: transparent; color: var(--ink); font-size: 18px; cursor: pointer; }
.dayNavigator button:disabled { color: var(--line); cursor: default; }
.dayNavigator strong { color: var(--muted); font-size: 9px; letter-spacing: .12em; text-align: center; }
.checkRow input { width: 22px; height: 22px; accent-color: var(--accent); }

.emptyState { margin-top: 25px; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.emptyState strong { font-family: var(--display); font-size: 17px; }
.emptyState p { margin: 8px auto 0; max-width: 290px; color: var(--muted); font-family: var(--editorial); font-size: 15px; line-height: 1.45; }
.emptyState button { min-height: 42px; margin-top: 16px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 2px; background: transparent; font-size: 10px; font-weight: 650; cursor: pointer; }
.skeletonList { margin-top: 26px; display: grid; gap: 11px; }
.skeletonList span { height: 68px; border-radius: 13px; background: linear-gradient(90deg, var(--soft), #f0ece3, var(--soft)); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.syncStatus { position: fixed; z-index: 50; top: 14px; left: 50%; padding: 7px 10px; transform: translateX(-50%); border-radius: 2px; background: var(--ink); color: var(--paper); font-size: 8px; font-weight: 750; letter-spacing: .07em; }
.syncStatus[hidden] { display: none; }

.boot { width: min(100%, 480px); min-height: 100vh; margin: 0 auto; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px; background: var(--paper); color: var(--ink); }
.bootMark { width: 112px; height: 112px; stroke-width: 1.15; }
.boot strong { font-family: var(--display); font-size: 15px; font-stretch: 125%; letter-spacing: .28em; }
.boot span { color: var(--muted); font-family: var(--editorial); font-size: 13px; font-style: italic; }

@media (min-width: 650px) {
  .page { min-height: 100vh; margin: 0 auto; }
  .appShell { padding: 0; }
  .modalBackdrop { align-items: center; padding: 25px; }
  .modal { max-height: min(820px, 90vh); border-radius: 12px; }
}

@media (max-width: 380px) {
  .page { padding-right: 17px; padding-left: 17px; }
  h1 { font-size: 37px; }
  .todayHero h1 { font-size: 36px; }
  .quickChoice { grid-template-columns: repeat(2, 40px); gap: 5px; }
  .quickChoice button { width: 40px; height: 40px; }
  .twoTime { grid-template-columns: 1fr; }
  .goalMetrics { gap: 12px; }
  .progressHero { grid-template-columns: 98px minmax(0, 1fr); gap: 15px; }
  .progressRing { width: 98px; height: 98px; }
  .progressRing > span { width: 85px; height: 85px; }
}

/* 2026 visual system — immersive, athletic, and deliberately tactile. */
:root {
  --paper: #f2f4ec;
  --paper-deep: #e5e9df;
  --ink: #151714;
  --muted: #6f756c;
  --line: rgba(21, 23, 20, .12);
  --soft: #e6eae1;
  --accent: #536d43;
  --accent-bright: #d7ff64;
  --accent-soft: #dce7d1;
  --rust: #d86147;
  --white: #fbfcf6;
}

body { background: #11140f; }
.page {
  position: relative;
  background:
    radial-gradient(circle at 110% -5%, rgba(189, 255, 105, .14), transparent 29%),
    linear-gradient(180deg, #f7f8f2 0%, var(--paper) 52%, #edf0e8 100%);
}
.page::before {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, #b9ec61, #597647 45%, #ee7c59);
  content: "";
}
.page > * { position: relative; z-index: 1; }

.top { min-height: 38px; }
.rule { margin-top: 13px; opacity: .55; }
.wordmark { font-size: 11px; font-weight: 800; letter-spacing: .24em; }
.micro { padding: 0; background: transparent; }
.brandMark { color: var(--accent); }

h1 { font-size: clamp(40px, 11vw, 53px); font-weight: 700; line-height: .94; letter-spacing: -.055em; }
h2 { font-weight: 700; letter-spacing: -.045em; }
h3 { font-weight: 700; letter-spacing: -.035em; }
.supportingText { color: #62685f; }

.bottomNav {
  bottom: max(10px, env(safe-area-inset-bottom));
  width: min(calc(100% - 20px), 460px);
  min-height: 70px;
  padding: 7px;
  gap: 1px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 25px;
  background: rgba(20, 23, 18, .94);
  box-shadow: 0 20px 50px rgba(5, 8, 4, .34), inset 0 1px rgba(255,255,255,.07);
  backdrop-filter: blur(24px) saturate(145%);
}
.bottomNav button { min-width: 0; color: #858d81; font-size: 7px; letter-spacing: .01em; }
.bottomNav button.active { background: rgba(215,255,100,.1); color: var(--accent-bright); }
.navIcon { width: 21px; height: 21px; display: grid; place-items: center; }
.navIcon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bottomNav button:nth-child(3) {
  min-height: 56px;
  margin-top: -11px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 19px;
  background: var(--accent-bright);
  color: #171b12;
  box-shadow: 0 9px 24px rgba(179, 227, 74, .3);
}
.bottomNav button:nth-child(3).active { background: var(--accent-bright); color: #171b12; }

.todayPage { padding-top: max(22px, env(safe-area-inset-top)); }
.todayPage .dayNavigator {
  margin: 14px 0 17px;
  padding: 3px;
  border: 0;
  border-radius: 16px;
  background: rgba(21,23,20,.055);
}
.todayPage .dayNavigator button { border-radius: 12px; }
.todayHero {
  position: relative;
  min-height: 270px;
  margin: 0;
  padding: 25px 22px;
  overflow: hidden;
  align-items: start;
  border-radius: 28px;
  background:
    radial-gradient(circle at 78% 70%, rgba(215,255,100,.24), transparent 34%),
    linear-gradient(145deg, #20251e 0%, #10130f 72%);
  box-shadow: 0 24px 45px rgba(18,22,16,.2);
  color: #f7f9ef;
}
.todayHero::after {
  position: absolute;
  right: -55px;
  bottom: -75px;
  width: 230px;
  height: 230px;
  border: 28px solid rgba(215,255,100,.09);
  border-radius: 50%;
  content: "";
}
.todayHero h1 { max-width: 270px; color: #f6f8ef; font-size: 44px; }
.todayHero .screenContext { color: #d7ff64; }
.dayRing { z-index: 1; width: 94px; height: 94px; align-self: end; }
.ringTrack { stroke: rgba(255,255,255,.13); }
.ringValue { stroke: var(--accent-bright); stroke-width: 6; }
.ringCore { width: 79px; height: 79px; background: #1a1f18; color: #f7f9ef; }
.dayRing strong { font-size: 28px; }
.dayRing small { color: #9da697; }
.todayPage > .supportingText { margin: 18px 4px 0; font-size: 13px; }
.inAppQuote { margin-top: 19px; padding: 17px 18px; border: 0; border-radius: 19px; background: rgba(255,255,255,.6); box-shadow: inset 0 0 0 1px var(--line); }
.inAppQuote blockquote { font-family: var(--body); font-size: 14px; font-weight: 600; }

.todayList { width: 100%; gap: 11px; }
.swipeGoal { border-radius: 21px; background: #d9ded5; box-shadow: 0 9px 22px rgba(28,35,25,.07); }
.todayGoal {
  min-height: 108px;
  padding-left: 19px;
  border: 0;
  border-radius: 21px;
  background: color-mix(in srgb, var(--goal-tint) 68%, white);
  box-shadow: inset 0 0 0 1px rgba(21,23,20,.055);
}
.todayGoal.complete { background: linear-gradient(135deg, #dcebc9, #cfe4b7); box-shadow: inset 0 0 0 1px rgba(83,109,67,.24); }
.todayGoalInfo strong { margin-top: 7px; font-size: 19px; }
.todayGoalInfo small { max-width: 220px; line-height: 1.4; }
.quickChoice { grid-template-columns: repeat(2, 42px); }
.quickChoice button { width: 42px; height: 42px; border: 0; border-radius: 14px; background: rgba(255,255,255,.56); color: #62695f; }
.quickChoice button.active.yes { background: #283423; }
.quickChoice button.active.no { background: rgba(216,97,71,.13); }

.pillarBalance, .sharedSeasonSection { margin-top: 34px; }
.pillarRadar {
  margin-top: 12px;
  padding: 15px 13px 17px;
  overflow: hidden;
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 40%, rgba(215,255,100,.09), transparent 39%),
    linear-gradient(145deg, #20251e, #11140f);
  box-shadow: 0 20px 38px rgba(21,23,20,.17), inset 0 1px rgba(255,255,255,.06);
}
.pillarRadar svg { width: 100%; max-height: 310px; display: block; overflow: visible; }
.radarGrid polygon { fill: none; stroke: rgba(237,244,229,.12); stroke-width: 1; }
.radarGrid polygon:first-child { stroke: rgba(237,244,229,.25); }
.radarGrid line { stroke: rgba(237,244,229,.1); stroke-width: 1; }
.radarShape {
  fill: rgba(215,255,100,.24);
  stroke: var(--accent-bright);
  stroke-width: 2.5;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 11px rgba(215,255,100,.18));
  transition: points .4s ease;
}
.radarDots circle { fill: var(--accent-bright); stroke: #20251e; stroke-width: 2; }
.radarLabels text {
  fill: #aeb7a9;
  font-family: var(--body);
  font-size: 8.5px;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
}
@media (max-width: 380px) {
  .pillarRadar { padding-right: 8px; padding-left: 8px; }
  .radarLabels text { font-size: 8px; letter-spacing: .035em; }
}
.radarLegend {
  margin-top: -7px;
  padding: 11px 7px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 15px;
  border-top: 1px solid rgba(255,255,255,.09);
}
.radarLegend div { min-width: 0; display: grid; grid-template-columns: 7px minmax(0, 1fr) auto; align-items: center; gap: 7px; }
.radarLegend i { width: 7px; height: 7px; border-radius: 50%; background: var(--pillar-color); box-shadow: 0 0 8px color-mix(in srgb, var(--pillar-color) 60%, transparent); }
.radarLegend span { overflow: hidden; color: #939c8f; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.radarLegend strong { color: #f2f6eb; font-family: var(--display); font-size: 11px; }
.pillarBars {
  height: 190px;
  margin-top: 12px;
  padding: 22px 14px 14px;
  border: 0;
  border-radius: 24px;
  background: #181c16;
  box-shadow: 0 18px 34px rgba(21,23,20,.14);
}
.pillarBar strong { color: #f4f7ed; }
.pillarBar small { color: #8f988b; }
.pillarTrack { width: 28px; }
.pillarTrackBase { fill: rgba(255,255,255,.055); stroke: rgba(255,255,255,.09); }
.pillarTrackValue { rx: 5px; }
.todaySummary { padding: 0; border: 0; gap: 10px; }
.todaySummary div { min-height: 104px; padding: 18px; justify-content: space-between; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }

.goalCard, .seasonCard, .activityCard, .personCard {
  margin-top: 12px;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  background: rgba(255,255,255,.68);
  box-shadow: inset 0 0 0 1px var(--line), 0 10px 24px rgba(27,32,24,.055);
}
.goalCardMain { min-height: 174px; padding: 21px 54px 20px 19px; }
.moreButton { top: 12px; right: 8px; border-radius: 13px; }
.seasonCard { padding: 20px; }
.seasonCard:nth-of-type(odd) { background: linear-gradient(140deg, #dce7d2, #eef3e9); }
.seasonCardActions button, .seasonCard > button { border-radius: 14px; }
.seasonTogether span { border-radius: 12px; background: rgba(255,255,255,.55); }
.roundAdd, .seasonsHero > button { border: 0; border-radius: 16px; background: #1d221b; color: var(--accent-bright); box-shadow: 0 9px 22px rgba(21,23,20,.2); }
.segment { padding: 4px; border: 0; border-radius: 16px; background: rgba(21,23,20,.055); }
.segment button { min-height: 40px; border: 0; border-radius: 12px; }
.segment button.active { border: 0; background: #fff; box-shadow: 0 4px 13px rgba(21,23,20,.08); }

.profileHero .avatar.large { background: linear-gradient(145deg, #32412c, #161b14); color: var(--accent-bright); }
.profileStats { padding: 8px; border: 0; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.profileStats button, .profileStats > div { border-color: var(--line); }
.settingsRow { margin-top: 8px; padding: 15px; border: 0; border-radius: 16px; background: rgba(255,255,255,.62); }

.modalBackdrop { background: rgba(8, 10, 7, .58); backdrop-filter: blur(7px); }
.modal { border-radius: 28px 28px 0 0; background: #f6f8f1; box-shadow: 0 -24px 70px rgba(0,0,0,.24); }
.detailField > input, .detailField textarea, .detailField select, .distanceInput, .targetBuilder select { border-color: var(--line); border-radius: 14px; background: #fff; }
.primary.solid { border: 0; border-radius: 16px; background: #1c211a; color: var(--accent-bright); }
.secondary, .profileActions button, .emptyState button { border-radius: 14px; }

@media (min-width: 650px) {
  .page { box-shadow: 0 0 80px rgba(0,0,0,.35); }
  .modal { border-radius: 28px; }
}

@media (prefers-reduced-motion: no-preference) {
  .page > :not(.bottomNav):not(.modalBackdrop) { animation: riseIn .38s cubic-bezier(.2,.72,.25,1) both; }
  .todayList > *, .goalGroup > .goalCard, .seasonCard { animation: cardIn .42s cubic-bezier(.2,.72,.25,1) both; }
  .todayList > *:nth-child(2), .goalGroup > .goalCard:nth-child(3), .seasonCard:nth-of-type(2) { animation-delay: .05s; }
  .todayList > *:nth-child(3), .goalGroup > .goalCard:nth-child(4) { animation-delay: .1s; }
  @keyframes riseIn { from { opacity: 0; transform: translateY(8px); } }
  @keyframes cardIn { from { opacity: 0; transform: translateY(12px) scale(.985); } }
}

@media (max-width: 380px) {
  .todayHero { min-height: 250px; padding: 21px 18px; }
  .todayHero h1 { font-size: 38px; }
  .bottomNav button { font-size: 0; }
  .bottomNav { min-height: 62px; }
}

/* Daily-practice surfaces: spatial grouping replaces rule-based hierarchy. */
.page::before, .rule, .hairline { display: none; }
.headerTitle { color: var(--muted); font-size: 13px; font-weight: 600; }
.screenContext { display: none; }
h1 { margin-top: 30px; font-family: var(--editorial); font-size: clamp(37px, 10vw, 48px); font-weight: 500; line-height: 1; letter-spacing: -.035em; }
h2, h3 { font-family: var(--body); letter-spacing: -.025em; }

.primary, .primary.solid {
  min-height: 56px;
  padding: 0 18px;
  border: 0;
  border-radius: 18px 18px 18px 6px;
  background: #20251e;
  color: #f7f5ec;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: 0 9px 24px rgba(31,36,28,.18);
}
.secondary { border: 0; border-radius: 16px; background: rgba(255,255,255,.65); font-size: 13px; letter-spacing: 0; text-transform: none; box-shadow: 0 5px 18px rgba(31,36,28,.06); }

.rows, .goalList, .peopleList, .activityList, .previousList { display: grid; gap: 10px; }
.row, .selectGoal, .setting, .settingsRow, .selectRow, .checkRow, .timeRow, .previousGoal, .discoverGoal, .personCard, .activityCard, .sharedGoal, .goalHistoryRow, .modalOption, .dangerZone button {
  border: 0;
  border-radius: 17px;
  background: rgba(255,255,255,.62);
  box-shadow: 0 5px 18px rgba(31,36,28,.045);
}
.row, .selectGoal, .setting, .selectRow, .checkRow, .timeRow { padding: 14px 15px; }
.row:nth-child(4n+1), .selectGoal:nth-child(4n+1) { background: #f1dfd7; }
.row:nth-child(4n+2), .selectGoal:nth-child(4n+2) { background: #dfe8dc; }
.row:nth-child(4n+3), .selectGoal:nth-child(4n+3) { background: #eee6c9; }
.row:nth-child(4n+4), .selectGoal:nth-child(4n+4) { background: #dde4ea; }
.row.selected, .selectGoal.selected { padding: 14px 15px; border: 0; background: #20251e; color: #f7f5ec; box-shadow: 0 10px 24px rgba(31,36,28,.16); }
.row.selected small, .selectGoal.selected small, .row.selected .roman { color: #b8beb3; }

.sectionTitle, .onboardingGoalGroup .sectionTitle, .discoverHeading { padding: 0; border: 0; }
.sectionTitle { margin: 34px 3px 12px; font-family: var(--editorial); font-size: 20px; font-weight: 500; }
.sectionTitle span:last-child { color: var(--muted); font-family: var(--body); font-size: 12px; font-weight: 500; }
.onboardingGoalGroup { margin-top: 32px; }
.onboardingGoalGroup .goalList { margin-top: 12px; }
.healthOnboardingList, .healthOnboardingGoal { border: 0; }
.healthOnboardingList { display: grid; gap: 10px; }
.healthOnboardingGoal { padding: 14px; border-radius: 17px; background: rgba(255,255,255,.62); }

.searchField, .dayNavigator, .progressHero, .detailStats, .profileStats, .todaySummary, .seasonTogether, .unitPicker, .targetBuilder, .emptyState { border: 0; }
.searchField { padding: 0 14px; border-radius: 17px; background: rgba(255,255,255,.72); box-shadow: 0 5px 18px rgba(31,36,28,.05); }
.dayNavigator { border-radius: 17px; background: rgba(255,255,255,.58); }
.progressHero, .detailStats, .profileStats, .emptyState { padding: 18px; border-radius: 22px; background: rgba(255,255,255,.65); box-shadow: 0 8px 26px rgba(31,36,28,.055); }
.targetBuilder, .unitPicker { padding: 16px; border-radius: 18px; background: rgba(255,255,255,.58); }
.radarLegend { border: 0; }

/* Geometric controls — square, graphic, and grounded at the viewport edge. */
.bottomNav {
  bottom: 5px;
  width: min(calc(100% - 10px), 470px);
  min-height: 66px;
  padding: 5px;
  gap: 5px;
  border: 0;
  border-radius: 5px;
  background: #1d211b;
  box-shadow: none;
  backdrop-filter: none;
}
.bottomNav button,
.bottomNav button:nth-child(3),
.bottomNav button:nth-child(3).active {
  min-height: 56px;
  margin: 0;
  border: 0;
  border-radius: 2px;
  background-color: #292e26;
  background-image: linear-gradient(135deg, transparent 0 64%, rgba(255,255,255,.055) 64% 78%, transparent 78%);
  color: #aeb4a9;
  box-shadow: none;
}
.bottomNav button:nth-child(2n) { background-image: linear-gradient(45deg, transparent 0 68%, rgba(255,255,255,.05) 68% 84%, transparent 84%); }
.bottomNav button.active,
.bottomNav button:nth-child(3).active {
  background-color: #d7e7a5;
  background-image: repeating-linear-gradient(135deg, transparent 0 11px, rgba(31,36,28,.075) 11px 13px);
  color: #20251e;
}
.bottomNav button:active { transform: translateY(1px); }

.primary, .primary.solid, .secondary,
.roundAdd, .seasonsHero > button,
.seasonCardActions button, .seasonCard > button,
.profileActions button, .emptyState button,
.restoreButton, .goalAddButton, .followButton {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
}
.primary, .primary.solid {
  border-radius: 3px;
  background-color: #20251e;
  background-image:
    linear-gradient(90deg, transparent 0 72%, rgba(215,231,165,.13) 72%),
    repeating-linear-gradient(135deg, transparent 0 13px, rgba(255,255,255,.035) 13px 15px);
  box-shadow: 5px 5px 0 #aebd87;
}
.primary:active, .primary.solid:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 #aebd87; }
.secondary {
  border-radius: 3px;
  background-color: #e2d9bd;
  background-image: linear-gradient(135deg, transparent 0 74%, rgba(176,91,68,.16) 74%);
  box-shadow: 4px 4px 0 rgba(39,43,36,.13);
}
.roundAdd, .seasonsHero > button { border-radius: 2px; background-color: #263024; background-image: linear-gradient(135deg, transparent 50%, #607356 50%); }

.rotatingQuote blockquote { margin-top: 0; font-weight: 500; }
.quoteTicks { gap: 7px; }
.quoteTicks i { width: 7px; height: 7px; border-radius: 1px; transform: rotate(45deg); }
.quoteTicks i.active { width: 7px; background: #b4634d; }

.appShell, .page { min-height: 100dvh; }
.bottomNav { bottom: max(5px, env(safe-area-inset-bottom)); }

/* Habit tiles use the pillar as structure, not as a muted card caption. */
.goalGroup { display: grid; gap: 13px; }
.goalGroup .sectionTitle { margin-bottom: 1px; }
.goalCard {
  margin: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: #fbf8ee;
  box-shadow: 6px 6px 0 color-mix(in srgb, var(--pillar-color) 72%, #ede7d8);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
.goalCard:nth-of-type(even) { transform: translateX(4px); }
.goalCard::before {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: 0;
  width: 9px;
  background: var(--pillar-color);
  content: "";
}
.goalCardMain {
  width: 100%;
  min-height: 0;
  padding: 20px 52px 18px 27px;
  border: 0;
  background: transparent;
  text-align: left;
}
.goalCard .pillarName {
  display: flex;
  align-items: center;
  gap: 7px;
  color: color-mix(in srgb, var(--pillar-color) 68%, #252820);
  font-size: 12px;
  font-weight: 700;
}
.goalCard .pillarName::before { width: 9px; height: 9px; display: block; background: var(--pillar-color); content: ""; transform: rotate(45deg); }
.goalCard h3 { margin-top: 10px; font-size: 21px; }
.goalCard p { max-width: 310px; margin-top: 5px; font-size: 12px; line-height: 1.4; }
.goalProgressHead { margin-top: 17px; font-size: 11px; letter-spacing: 0; text-transform: none; }
.goalProgressHead strong { font-size: 12px; }
.goalProgressTrack { height: 10px; margin-top: 8px; background: repeating-linear-gradient(90deg, #e8e2d4 0 18px, #fbf8ee 18px 21px); }
.goalProgressTrack::-webkit-progress-bar { background: repeating-linear-gradient(90deg, #e8e2d4 0 18px, #fbf8ee 18px 21px); }
.goalProgressTrack::-webkit-progress-value { background: var(--pillar-color); }
.goalProgressTrack::-moz-progress-bar { background: var(--pillar-color); }
.goalMetrics { margin-top: 13px; gap: 15px; font-size: 11px; }
.goalMetrics b { font-size: 17px; }
.goalCard .moreButton { top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 0; background: color-mix(in srgb, var(--pillar-color) 20%, transparent); color: #373a32; }

.todayGoalInfo .pillarName, .discoverCopy .pillarName, .goalDetailHead .pillarName { color: #545a51; font-size: 12px; font-weight: 650; }

/* Preserve the richer individual Today cards from the pre-grouped layout. */
.todayList { width: 100%; margin-top: 24px; display: grid; gap: 32px; }
.todayPillarGroup { display: grid; gap: 12px; }
.todayPillarGroup > h2 { margin: 0 0 0 2px; font-size: 22px; font-weight: 700; }
.todayPillarGoals { display: grid; gap: 11px; }
.todayList .swipeGoal { border-radius: 21px; background: #d9ded5; box-shadow: 0 9px 22px rgba(28,35,25,.07); clip-path: none; }
.todayList .todayGoal { min-height: 108px; border-radius: 21px; background: color-mix(in srgb, var(--goal-tint) 68%, white); box-shadow: inset 0 0 0 1px rgba(21,23,20,.055); }
.todayList .todayGoal.complete { background: linear-gradient(135deg, #dcebc9, #cfe4b7); box-shadow: inset 0 0 0 1px rgba(83,109,67,.24); }

/* Discover is a browsable goal library, not another settings list. */
.discoverSection {
  margin: 34px -10px 0;
  padding: 18px 10px 20px;
  background: #e7dfca;
  clip-path: polygon(0 0, calc(100% - 17px) 0, 100% 17px, 100% 100%, 0 100%);
}
.discoverSection.discover-popular { background: #d9e4d7; transform: translateX(5px); }
.discoverSection.discover-recommended { background: #dce2e8; transform: translateX(-3px); }
.discoverHeading { padding: 0 4px; display: block; }
.discoverHeading span { display: block; font-size: 23px; font-weight: 750; letter-spacing: -.03em; }
.discoverHeading small { display: block; margin-top: 2px; color: #5e625a; font-size: 12px; }
.discoverShelf { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.discoverGoal {
  position: relative;
  min-height: 188px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr auto;
  gap: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: color-mix(in srgb, var(--pillar-color) 24%, #fffdf7);
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--pillar-color) 74%, #bcb6a9);
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 0 100%);
}
.discoverGoal:nth-child(even) { transform: translateY(6px); }
.discoverCopy { min-height: 0; padding: 13px 13px 8px; justify-content: flex-start; }
.discoverMark { width: 35px; height: 35px; display: grid; place-items: center; background: var(--pillar-color); color: #252820; font-size: 15px; font-weight: 750; }
.discoverPillar { margin-top: 14px; color: #555a52; font-size: 11px; font-weight: 650; }
.discoverCopy strong { margin-top: 5px; font-size: 17px; line-height: 1.08; }
.discoverCopy small { margin-top: 6px; color: #64685f; font-size: 11px; line-height: 1.3; }
.discoverGoal .goalAddButton {
  width: calc(100% - 18px);
  min-height: 37px;
  margin: 0 9px 9px;
  padding: 0 10px;
  border: 0;
  border-radius: 0;
  background: #252a23;
  color: #f5f4eb;
  font-size: 12px;
  text-align: left;
}
.discoverGoal .goalAddButton::after { float: right; content: "+"; }
.discoverGoal .goalAddButton.added { background: color-mix(in srgb, var(--pillar-color) 45%, #f5f2e8); color: #52564f; }
.discoverGoal .goalAddButton.added::after { content: "✓"; }

@media (max-width: 350px) {
  .discoverShelf { grid-template-columns: 1fr; }
  .discoverGoal:nth-child(even) { transform: none; }
}

/* Discover collections: horizontal, visual, and quick to scan one-handed. */
.discoverSection,
.discoverSection.discover-popular,
.discoverSection.discover-recommended {
  margin: 38px -22px 0;
  padding: 0 0 14px;
  overflow: hidden;
  background: transparent;
  clip-path: none;
  transform: none;
}
.discoverHeading { padding: 0 22px; }
.discoverHeading span { font-size: 24px; }
.discoverHeading small { max-width: 290px; font-size: 13px; line-height: 1.4; }
.discoverShelf {
  margin-top: 15px;
  padding: 0 22px 12px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(72vw, 270px);
  grid-template-columns: none;
  gap: 13px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}
.discoverShelf::-webkit-scrollbar { display: none; }
.discoverGoal,
.discoverGoal:nth-child(even) {
  min-height: 250px;
  display: grid;
  grid-template-rows: 1fr auto;
  scroll-snap-align: start;
  border-radius: 0;
  background: color-mix(in srgb, var(--pillar-color) 32%, #f8f4e9);
  box-shadow: 5px 5px 0 color-mix(in srgb, var(--pillar-color) 78%, #aaa498);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  transform: none;
}
.discoverCopy { padding: 16px 16px 10px; }
.discoverArt {
  position: relative;
  width: 100%;
  height: 105px;
  display: block;
  overflow: hidden;
  background: color-mix(in srgb, var(--pillar-color) 82%, #32372f);
}
.discoverArt i { position: absolute; display: block; background: rgba(255,253,244,.72); }
.discoverArt i:nth-child(1) { width: 70px; height: 70px; right: -12px; bottom: -14px; border-radius: 50%; }
.discoverArt i:nth-child(2) { width: 16px; height: 78px; top: 14px; left: 24px; transform: rotate(24deg); }
.discoverArt i:nth-child(3) { width: 46px; height: 14px; top: 26px; left: 60px; }
.discoverGoal:nth-child(2n) .discoverArt i:nth-child(1) { right: 24px; bottom: 17px; border-radius: 0; transform: rotate(45deg); }
.discoverGoal:nth-child(2n) .discoverArt i:nth-child(2) { left: auto; right: 17px; transform: rotate(-18deg); }
.discoverGoal:nth-child(3n) .discoverArt i:nth-child(3) { width: 80px; left: 18px; transform: rotate(-12deg); }
.discoverCopy strong { margin-top: 17px; font-size: 22px; line-height: 1.04; }
.discoverCopy small { margin-top: 7px; font-size: 12px; }
.discoverGoal .goalAddButton {
  width: auto;
  min-height: 44px;
  margin: 0 16px 16px;
  padding: 0 13px;
  background: #232720;
  font-size: 13px;
}

@media (max-width: 350px) {
  .discoverShelf { grid-template-columns: none; grid-auto-columns: 82vw; }
}

/* Platform-style primary navigation: persistent, safe-area aware, five tabs. */
.page.withNav { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
.bottomNav {
  position: fixed;
  z-index: 100;
  right: auto;
  bottom: 0;
  left: 50%;
  width: min(100%, 480px);
  min-height: calc(62px + env(safe-area-inset-bottom));
  padding: 6px 8px max(6px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  transform: translateX(-50%);
  border: 0;
  border-radius: 0;
  background: rgba(247,246,239,.97);
  box-shadow: 0 -8px 24px rgba(25,29,23,.075);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: translate3d(-50%, 0, 0);
  will-change: transform;
}
.bottomNav button,
.bottomNav button:nth-child(3),
.bottomNav button:nth-child(3).active {
  min-width: 0;
  min-height: 50px;
  margin: 0;
  padding: 4px 2px;
  gap: 3px;
  border: 0;
  border-radius: 0;
  background: transparent;
  background-image: none;
  color: #777c74;
  font-size: 10px;
  font-weight: 550;
  box-shadow: none;
}
.bottomNav button.active,
.bottomNav button:nth-child(3).active { background: transparent; background-image: none; color: #2f5d42; }
.bottomNav button:active { transform: scale(.96); }
.bottomNav .navIcon { width: 23px; height: 23px; }
.bottomNav .navIcon svg { width: 23px; height: 23px; stroke-width: 1.9; }

.discoverSearch {
  min-height: 54px;
  margin-top: 25px;
  padding: 0 15px;
  display: grid;
  grid-template-columns: 23px 1fr;
  align-items: center;
  gap: 10px;
  background: #fffdf7;
  box-shadow: 4px 4px 0 #c8c0ad;
}
.discoverSearch svg { width: 22px; height: 22px; fill: none; stroke: #555b52; stroke-width: 1.8; stroke-linecap: round; }
.discoverSearch input { min-width: 0; height: 52px; border: 0; outline: 0; background: transparent; font-size: 15px; }
.discoverFilters { margin: 20px -22px 0; padding: 0 22px 5px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.discoverFilters::-webkit-scrollbar { display: none; }
.discoverFilters button { min-height: 40px; padding: 0 14px; flex: 0 0 auto; border: 0; border-radius: 0; background: #e3ded1; color: #5f635c; font-size: 13px; }
.discoverFilters button:nth-child(2) { background: #ecd8d1; }
.discoverFilters button:nth-child(3) { background: #d8e3d7; }
.discoverFilters button:nth-child(4) { background: #e9dfbb; }
.discoverFilters button:nth-child(5) { background: #d7dfe7; }
.discoverFilters button.active { background: #252a23; color: #f7f5ec; box-shadow: 3px 3px 0 #aebd87; }
.discoverEmpty { margin-top: 32px; padding: 26px 20px; background: #e7dfca; clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%); }
.discoverEmpty strong { font-size: 18px; }
.discoverEmpty p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.discoverEmpty button { min-height: 40px; margin-top: 18px; padding: 0 14px; border: 0; background: #252a23; color: #f7f5ec; }

.goalWeek { margin-top: 15px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.weekDay { aspect-ratio: 1; display: grid; place-items: center; background: #e8e2d4; color: #77786f; }
.weekDay b { font-size: 10px; font-weight: 650; }
.weekDay.complete { background: var(--pillar-color); color: #24271f; box-shadow: 2px 2px 0 color-mix(in srgb, var(--pillar-color) 58%, #a9a396); }
.weekDay.missed { background: linear-gradient(135deg, #eadfd7 0 45%, #b56b58 46% 54%, #eadfd7 55%); color: #75483c; }
.weekDay.today { outline: 2px solid #252a23; outline-offset: 2px; }
.weekDay.future, .weekDay.off { opacity: .42; }

.goalCalendar {
  margin-top: 26px;
  padding: 19px;
  background: #fbf8ee;
  box-shadow: 6px 6px 0 color-mix(in srgb, var(--pillar-color) 72%, #d2ccbd);
  clip-path: polygon(0 0, calc(100% - 17px) 0, 100% 17px, 100% 100%, 0 100%);
}
.goalCalendar > header { display: flex; align-items: baseline; justify-content: space-between; }
.goalCalendar > header h2 { margin: 0; font-size: 23px; }
.goalCalendar > header span { color: var(--muted); font-size: 13px; }
.calendarWeekdays, .calendarMonth { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.calendarWeekdays { margin-top: 18px; }
.calendarWeekdays span { color: var(--muted); font-size: 10px; font-weight: 650; text-align: center; }
.calendarMonth { margin-top: 8px; }
.monthDay { aspect-ratio: 1; display: grid; place-items: center; background: #ebe6d9; color: #62655e; font-size: 12px; }
.monthDay.blank { visibility: hidden; }
.monthDay.complete { background: var(--pillar-color); color: #20231e; font-weight: 750; box-shadow: 2px 2px 0 color-mix(in srgb, var(--pillar-color) 55%, #aaa497); }
.monthDay.missed { background: linear-gradient(135deg, #ebe1d9 0 45%, #b96551 46% 54%, #ebe1d9 55%); color: #744638; }
.monthDay.today { outline: 2px solid #252a23; outline-offset: 2px; }
.monthDay.future, .monthDay.off { opacity: .36; }
.calendarLegend { margin-top: 17px; display: flex; gap: 17px; color: var(--muted); font-size: 11px; }
.calendarLegend span { display: flex; align-items: center; gap: 6px; }
.calendarLegend i { width: 10px; height: 10px; display: block; }
.calendarLegend i.done { background: var(--pillar-color); }
.calendarLegend i.miss { background: linear-gradient(135deg, #ebe1d9 0 40%, #b96551 42% 58%, #ebe1d9 60%); }

.discoverShelf { grid-auto-columns: min(62vw, 230px); }
.discoverGoal, .discoverGoal:nth-child(even) { min-height: 210px; }
.discoverCopy { padding: 12px 12px 8px; }
.discoverArt { height: 82px; display: grid; place-items: center; }
.discoverArt svg { width: 49px; height: 49px; fill: none; stroke: #242920; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.discoverCopy strong { margin-top: 13px; font-size: 18px; line-height: 1.08; }
.discoverCopy small { margin-top: 5px; font-size: 11px; }
.discoverGoal .goalAddButton { min-height: 39px; margin: 0 12px 12px; font-size: 12px; }
.goalCard h3 { margin-top: 0; }
.goalCard .goalWeek { margin-top: 18px; }

@media (max-width: 350px) {
  .discoverShelf { grid-auto-columns: 72vw; }
}

/* Collections stay inside the viewport and scan as a true card grid. */
.discoverSection,
.discoverSection.discover-popular,
.discoverSection.discover-recommended { margin-right: 0; margin-left: 0; overflow: visible; }
.discoverHeading { padding-right: 0; padding-left: 0; }
.discoverShelf {
  width: 100%;
  padding: 0 0 8px;
  grid-auto-flow: row;
  grid-auto-columns: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  overflow: visible;
  scroll-snap-type: none;
}
.discoverGoal,
.discoverGoal:nth-child(even) { width: 100%; min-width: 0; scroll-snap-align: none; }
.previousList { gap: 13px; }
.previousGoal {
  position: relative;
  min-height: 92px;
  padding: 10px 13px 10px 20px;
  border: 0;
  background: color-mix(in srgb, var(--pillar-color) 35%, #fbf8ee);
  box-shadow: 5px 5px 0 color-mix(in srgb, var(--pillar-color) 70%, #d2ccbd);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}
.previousGoal::before { position: absolute; inset: 0 auto 0 0; width: 8px; background: var(--pillar-color); content: ""; }
.previousGoal > button:first-child { padding-left: 4px; }

.seasonGoalGrid { grid-template-columns: 1fr; gap: 12px; }
.seasonGoalGrid article { min-height: 150px; padding: 16px; }
.seasonGoalGrid article.togetherComplete { outline: 2px solid #315b43; box-shadow: 5px 5px 0 #9eb58e; }
.seasonGoalGrid article .togetherStatus { align-self: flex-start; }
.seasonGoalGrid article .memberChecks { width: 100%; margin-top: 13px; display: flex; flex-wrap: wrap; gap: 6px; }
.seasonGoalGrid article .memberChecks span { padding: 6px 8px; background: rgba(255,255,255,.45); color: #696d64; font-size: 10px; }
.seasonGoalGrid article .memberChecks span.done { background: #315b43; color: white; }
.seasonGoalGrid article em { margin-top: 9px; color: #60655d; font-size: 10px; font-style: normal; }
.seasonComposer { position: relative; bottom: auto; margin-bottom: 8px; }
.seasonThread { margin-top: 6px; }

@media (max-width: 350px) {
  .discoverShelf { grid-template-columns: 1fr; }
}

.balancePeriodControl { margin-top: 4px; padding: 4px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: #dfe3da; }
.balancePeriodControl button { min-height: 40px; padding: 0 5px; border: 0; border-radius: 0; background: transparent; color: #626860; font-size: 12px; }
.balancePeriodControl button.active { background: #252a23; color: #f7f5ec; box-shadow: 3px 3px 0 #aebd87; }
.balancePeriodNote { margin: 9px 3px 0; color: var(--muted); font-size: 11px; }
.balancePeriodNote + .pillarRadar { margin-top: 10px; }

/* Compact library cards remain a two-column grid on phone widths. */
.discoverGoal, .discoverGoal:nth-child(even) { min-height: 154px; transform: none; }
.discoverCopy { min-width: 0; padding: 10px 10px 6px; }
.discoverArt { height: 50px; }
.discoverArt svg { width: 34px; height: 34px; }
.discoverCopy strong { margin-top: 7px; font-size: 14px; overflow-wrap: anywhere; }
.discoverCopy small { font-size: 9px; }
.discoverGoal .goalAddButton { min-height: 34px; margin: 0 9px 9px; font-size: 10px; }

.previousGroup { margin-top: 24px; }
.previousGoal .goalWeek { margin-top: 10px; }
.previousGoal > button:first-child > span { width: 100%; }

.seasonCardActions { grid-template-columns: 1fr; }
.seasonCompetition { margin-top: 22px; padding: 16px; background: #242a22; color: #f8f5eb; box-shadow: 5px 5px 0 #aebd87; }
.seasonCompetition > div { margin-bottom: 11px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.seasonCompetition > div span { font-family: var(--display); font-size: 19px; }
.seasonCompetition > div small { color: #bcc5b6; font-size: 9px; }
.seasonCompetition p { margin: 0; min-height: 39px; display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 8px; border-top: 1px solid rgba(255,255,255,.13); }
.seasonCompetition p b { width: 20px; height: 20px; display: grid; place-items: center; background: #d7e7a5; color: #242a22; font-size: 10px; }
.seasonCompetition p strong { font-size: 11px; }
.seasonCompetition p em { color: #d7e7a5; font-size: 12px; font-style: normal; }
.seasonCalendar { margin-top: 26px; }
.seasonCalendarWeekdays, .seasonCalendarGrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.seasonCalendarWeekdays { margin: 10px 0 6px; color: var(--muted); font-size: 8px; text-align: center; }
.seasonCalendarGrid > span { aspect-ratio: 1; display: grid; place-items: center; background: #e5e1d5; color: #6d7169; font-size: 9px; }
.seasonCalendarGrid > span.strength1 { background: #dbe4ce; }
.seasonCalendarGrid > span.strength2 { background: #bccc9e; color: #283021; }
.seasonCalendarGrid > span.strength3 { background: #789064; color: white; }
.seasonCalendarGrid > span.strength4 { background: #315b43; color: white; box-shadow: inset 0 0 0 2px #d7e7a5; }
.seasonComposer { position: relative; bottom: auto; margin: 8px 0 18px; }

@media (max-width: 350px) {
  .discoverShelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .discoverGoal, .discoverGoal:nth-child(even) { min-height: 145px; }
}
