:root {
  color-scheme: light;
  --bg: #1f4f86;
  --bg-secondary: #2d629b;
  --surface: rgba(247, 246, 243, 0.96);
  --surface-solid: #f7f6f3;
  --ink: #1f2b34;
  --muted: #61707b;
  --line: rgba(31, 43, 52, 0.12);
  --sky: #cfe3ee;
  --sky-soft: #e8f2f7;
  --sage: #a6b89a;
  --sage-dark: #69815f;
  --sage-light: #dce6d7;
  --growth: #a6b89a;
  --growth-dark: #5f7758;
  --growth-soft: #e7eee3;
  --growth-wash: rgba(166, 184, 154, 0.2);
  --mint: #e9efe6;
  --peach: #efcb68;
  --butter: #efcb68;
  --lavender: #cfe3ee;
  --danger: #a45454;
  --shadow: 0 22px 58px rgba(8, 37, 66, 0.2);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font-display: "Aptos Display", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  --font-body: "Aptos", "Segoe UI Variable Text", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 5% 4%, rgba(220, 233, 223, 0.86), transparent 27rem),
    radial-gradient(circle at 95% 90%, rgba(243, 215, 197, 0.42), transparent 25rem),
    var(--bg);
  font-family: var(--font-body);
  -webkit-tap-highlight-color: transparent;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(79, 116, 98, 0.28);
  outline-offset: 3px;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(2px);
  pointer-events: none;
}

.ambient-one {
  top: 10%;
  right: -10rem;
  width: 22rem;
  height: 22rem;
  background: rgba(245, 232, 184, 0.24);
}

.ambient-two {
  bottom: -8rem;
  left: 16%;
  width: 19rem;
  height: 19rem;
  background: rgba(220, 217, 233, 0.22);
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1rem;
  background: var(--bg);
  transition: opacity 350ms ease, visibility 350ms ease;
}

.splash.hidden {
  visibility: hidden;
  opacity: 0;
}

.splash p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
}

.brand-mark span {
  display: block;
  width: 8px;
  border-radius: 9px 9px 4px 4px;
  background: var(--sage);
  transform-origin: bottom;
  animation: rise 900ms both cubic-bezier(.2, .9, .3, 1);
}

.brand-mark span:nth-child(1) {
  height: 11px;
  background: var(--peach);
}

.brand-mark span:nth-child(2) {
  height: 19px;
  animation-delay: 100ms;
}

.brand-mark span:nth-child(3) {
  height: 27px;
  background: var(--sage-dark);
  animation-delay: 200ms;
}

.brand-mark.large {
  width: 48px;
  height: 48px;
  gap: 5px;
}

.brand-mark.large span {
  width: 13px;
}

.brand-mark.large span:nth-child(1) { height: 18px; }
.brand-mark.large span:nth-child(2) { height: 31px; }
.brand-mark.large span:nth-child(3) { height: 44px; }

@keyframes rise {
  from { transform: scaleY(0.15); opacity: 0; }
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  display: none;
}

.main-content {
  width: min(100%, 820px);
  margin: 0 auto;
  padding: max(1.3rem, env(safe-area-inset-top)) 1rem calc(7rem + var(--safe-bottom));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  margin-bottom: 1.2rem;
}

.topbar h1 {
  margin: 0.1rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 7vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.eyebrow,
.card-kicker {
  margin: 0;
  color: var(--sage-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.icon-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  place-items: center;
  background: rgba(255, 255, 255, 0.66);
  cursor: pointer;
}

.install-button {
  color: var(--sage-dark);
  box-shadow: 0 10px 30px rgba(58, 78, 68, 0.08);
}

.page {
  display: none;
  animation: page-in 250ms ease both;
}

.page.active {
  display: block;
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(6px); }
}

.home-grid {
  display: grid;
  gap: 1rem;
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.quote-card {
  min-height: 180px;
  padding: 1.55rem;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.94), rgba(234, 243, 235, 0.86)),
    var(--surface-solid);
}

.quote-card::after {
  position: absolute;
  right: -35px;
  bottom: -45px;
  width: 145px;
  height: 145px;
  border: 22px solid rgba(118, 155, 136, 0.08);
  border-radius: 50%;
  content: "";
}

.quote-card blockquote {
  max-width: 30rem;
  margin: 1.15rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 7vw, 2.25rem);
  font-weight: 680;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.quote-icon {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  display: grid;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  color: #8a7139;
  background: rgba(245, 232, 184, 0.7);
  place-items: center;
}

.progress-card {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding: 1.25rem;
}

.progress-card h2,
.card-heading h2,
.weekly-content h2 {
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.progress-ring {
  --progress: 0;
  position: relative;
  display: grid;
  width: 94px;
  height: 94px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: conic-gradient(var(--sage-dark) calc(var(--progress) * 1%), var(--sage-light) 0);
  place-items: center;
  transition: background 300ms ease;
}

.progress-ring::before {
  position: absolute;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--surface-solid);
  content: "";
}

.progress-ring div {
  z-index: 1;
  display: grid;
  text-align: center;
}

.progress-ring strong {
  font-size: 1.2rem;
  letter-spacing: -0.04em;
}

.progress-ring span {
  color: var(--muted);
  font-size: 0.64rem;
}

.muted {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.mission-card {
  padding: 1.55rem;
  background:
    linear-gradient(140deg, rgba(255, 253, 248, 0.96), rgba(243, 215, 197, 0.39)),
    var(--surface-solid);
}

.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.card-heading.compact {
  align-items: center;
}

.time-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  padding: 0.5rem 0.7rem;
  border-radius: 99px;
  color: var(--sage-dark);
  background: rgba(220, 233, 223, 0.76);
  font-size: 0.75rem;
  font-weight: 750;
}

.time-pill svg {
  width: 0.95rem;
  height: 0.95rem;
}

.mission-description {
  max-width: 38rem;
  margin: 1rem 0 1.35rem;
  color: #52625b;
  line-height: 1.55;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1.05rem;
  border: 0;
  border-radius: 15px;
  font-weight: 780;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.primary-button {
  color: #fff;
  background: var(--sage-dark);
  box-shadow: 0 10px 24px rgba(79, 116, 98, 0.22);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

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

.primary-button.completed {
  color: var(--sage-dark);
  background: var(--sage-light);
  box-shadow: none;
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--sage-dark);
  background: rgba(255, 255, 255, 0.74);
}

.primary-button svg,
.secondary-button svg {
  width: 1.1rem;
  height: 1.1rem;
}

.full-width {
  width: 100%;
}

.tip-card {
  padding: 1.45rem;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.94), rgba(245, 232, 184, 0.31)),
    var(--surface-solid);
}

.tip-number {
  display: grid;
  min-width: 42px;
  height: 42px;
  padding: 0 0.4rem;
  border-radius: 14px;
  color: #826d38;
  background: rgba(245, 232, 184, 0.58);
  font-size: 0.73rem;
  font-weight: 800;
  place-items: center;
}

.tip-text {
  margin: 1.2rem 0;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 610;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0;
  border: 0;
  color: var(--sage-dark);
  background: transparent;
  font-size: 0.86rem;
  font-weight: 780;
  cursor: pointer;
}

.text-button svg {
  width: 0.95rem;
  height: 0.95rem;
}

.text-button.completed {
  color: var(--muted);
}

.weekly-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  min-height: 170px;
}

.zone-visual {
  position: relative;
  display: grid;
  overflow: hidden;
  color: var(--sage-dark);
  background: var(--sage-light);
  place-items: center;
}

.zone-visual > svg {
  z-index: 1;
  width: 2.3rem;
  height: 2.3rem;
  stroke-width: 1.4;
}

.zone-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.zone-shape-one {
  top: -25px;
  left: -35px;
  width: 100px;
  height: 100px;
}

.zone-shape-two {
  right: -40px;
  bottom: -30px;
  width: 120px;
  height: 120px;
}

.weekly-content {
  align-self: center;
  padding: 1.35rem;
}

.weekly-content .text-button {
  margin-top: 0.85rem;
}

.section-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.4rem 0 1.25rem;
}

.section-intro h2 {
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 7vw, 2.35rem);
  letter-spacing: -0.045em;
}

.section-intro > p {
  display: none;
  max-width: 18rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  text-align: right;
}

.zones-list {
  display: grid;
  gap: 1rem;
}

.zone-card {
  padding: 1.35rem;
}

.zone-card.current-zone {
  border-color: rgba(79, 116, 98, 0.3);
  box-shadow: 0 18px 48px rgba(79, 116, 98, 0.14);
}

.zone-card-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
}

.zone-icon {
  display: grid;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: var(--sage-dark);
  background: var(--mint);
  font-size: 1rem;
  font-weight: 850;
  place-items: center;
}

.zone-card:nth-child(2) .zone-icon { background: #f5e8d7; color: #986f4d; }
.zone-card:nth-child(3) .zone-icon { background: #dfe9ed; color: #527888; }
.zone-card:nth-child(4) .zone-icon { background: #e7e1ee; color: #77668a; }
.zone-card:nth-child(5) .zone-icon { background: #eee4d4; color: #88704b; }

.zone-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.18rem;
  letter-spacing: -0.025em;
}

.zone-card-header p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.zone-percent {
  font-size: 0.8rem;
  font-weight: 850;
}

.zone-progress-track,
.routine-progress-track {
  height: 6px;
  margin: 1rem 0;
  overflow: hidden;
  border-radius: 99px;
  background: var(--sage-light);
}

.zone-progress-track span,
.routine-progress-track span {
  display: block;
  width: var(--width, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--sage-dark);
  transition: width 300ms ease;
}

.zone-description {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.mini-task-list {
  display: grid;
  gap: 0.25rem;
}

.zone-subsections {
  display: grid;
  gap: 0.65rem;
}

.zone-subsection {
  overflow: hidden;
  border: 1px solid rgba(47, 58, 63, 0.07);
  border-radius: 18px;
  background: rgba(247, 246, 243, 0.58);
}

.zone-subsection summary {
  display: grid;
  grid-template-columns: 1fr auto auto;
  min-height: 54px;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.8rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 720;
  list-style: none;
  cursor: pointer;
}

.zone-subsection summary::-webkit-details-marker {
  display: none;
}

.zone-subsection summary > svg {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--muted);
  transition: transform 180ms ease;
}

.zone-subsection[open] summary > svg {
  transform: rotate(90deg);
}

.zone-section-count {
  min-width: 38px;
  padding: 0.28rem 0.45rem;
  border-radius: 9px;
  color: #526972;
  background: var(--sky);
  font-family: var(--font-body);
  font-size: 0.64rem;
  font-weight: 800;
  text-align: center;
}

.zone-subsection .mini-task-list {
  padding: 0 0.65rem 0.55rem;
  border-top: 1px solid rgba(47, 58, 63, 0.055);
  background: rgba(252, 251, 248, 0.78);
}

.check-row {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.2rem;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.zone-task-row {
  align-items: flex-start;
  padding-top: 0.72rem;
  padding-bottom: 0.72rem;
}

.zone-task-copy {
  display: grid;
  flex: 1;
  gap: 0.32rem;
  min-width: 0;
}

.zone-task-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.64rem;
}

.zone-task-meta > span {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  padding: 0.2rem 0.45rem;
  border-radius: 8px;
  background: var(--mint);
}

.zone-task-meta .zone-duration {
  gap: 0.25rem;
  color: #526972;
  background: var(--sky-soft);
  font-weight: 760;
}

.zone-duration svg {
  width: 0.75rem;
  height: 0.75rem;
}

.custom-check {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border: 1.5px solid rgba(79, 116, 98, 0.35);
  border-radius: 9px;
  color: transparent;
  background: rgba(255, 255, 255, 0.65);
  place-items: center;
  transition: 150ms ease;
}

.custom-check svg {
  width: 0.9rem;
  height: 0.9rem;
  stroke-width: 2.4;
}

.check-row.done .custom-check {
  border-color: var(--sage-dark);
  color: white;
  background: var(--sage-dark);
}

.check-row.done .task-label {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(113, 128, 121, 0.5);
}

.task-label {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.35;
}

.routine-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
}

.routine-tab {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--muted);
  background: transparent;
  font-size: 0.84rem;
  font-weight: 780;
  cursor: pointer;
}

.routine-tab.active {
  color: var(--ink);
  background: var(--surface-solid);
  box-shadow: 0 5px 18px rgba(55, 75, 65, 0.08);
}

.routine-summary {
  margin-bottom: 1rem;
}

.routine-summary-card {
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  color: var(--sage-dark);
  background: var(--sage-light);
}

.routine-summary-card strong {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.routine-summary-card p {
  margin: 0;
  font-size: 0.82rem;
}

.routine-list {
  display: grid;
  gap: 0.65rem;
}

.routine-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 68px;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(55, 75, 65, 0.06);
}

.routine-check {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.routine-item.done .routine-name {
  color: var(--muted);
  text-decoration: line-through;
}

.routine-item.done .custom-check {
  border-color: var(--sage-dark);
  color: white;
  background: var(--sage-dark);
}

.routine-name {
  margin: 0;
  font-weight: 730;
}

.routine-duration {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.74rem;
}

.routine-actions {
  display: flex;
  gap: 0.15rem;
}

.small-action {
  display: grid;
  width: 33px;
  height: 33px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  place-items: center;
}

.small-action:hover {
  color: var(--sage-dark);
  background: var(--mint);
}

.small-action svg {
  width: 1rem;
  height: 1rem;
}

.small-action.down svg {
  transform: rotate(180deg);
}

.empty-state {
  padding: 2rem 1rem;
  border: 1px dashed rgba(79, 116, 98, 0.25);
  border-radius: var(--radius-lg);
  color: var(--muted);
  text-align: center;
}

.empty-state h3 {
  margin: 0 0 0.35rem;
  color: var(--ink);
}

.empty-state p {
  margin: 0;
  font-size: 0.88rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.stat-card {
  display: grid;
  min-height: 94px;
  align-content: center;
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(55, 75, 65, 0.06);
}

.stat-card strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: -0.05em;
}

.stat-card span {
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.25;
}

.calendar-card {
  padding: 1.1rem;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.calendar-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  text-transform: capitalize;
}

.calendar-header .icon-button {
  width: 38px;
  height: 38px;
  border: 0;
  background: var(--mint);
}

.flip {
  transform: rotate(180deg);
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.18rem;
}

.calendar-weekdays {
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 800;
  text-align: center;
}

.calendar-day {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  font-size: 0.78rem;
  cursor: pointer;
  place-items: center;
}

.calendar-day:hover {
  background: var(--mint);
}

.calendar-day.today {
  color: var(--sage-dark);
  font-weight: 850;
  box-shadow: inset 0 0 0 1.5px var(--sage);
}

.calendar-day.selected {
  color: white;
  background: var(--sage-dark);
}

.calendar-day.has-steps::after {
  position: absolute;
  bottom: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--sage);
  content: "";
}

.calendar-day.selected::after {
  background: white;
}

.calendar-day.outside {
  visibility: hidden;
}

.history-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.25rem 0 0.7rem;
}

.history-heading h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.history-heading span {
  color: var(--muted);
  font-size: 0.76rem;
}

.history-list {
  display: grid;
  gap: 0.55rem;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  background: var(--surface);
}

.history-dot {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 12px;
  color: var(--sage-dark);
  background: var(--mint);
  place-items: center;
}

.history-dot svg {
  width: 1rem;
  height: 1rem;
}

.history-item strong {
  display: block;
  font-size: 0.85rem;
}

.history-item span {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.settings-card {
  margin-bottom: 1rem;
  padding: 1.2rem;
}

.settings-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.settings-icon {
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  border-radius: 14px;
  color: var(--sage-dark);
  background: var(--mint);
  place-items: center;
}

.settings-icon.warm {
  color: #8a7139;
  background: rgba(245, 232, 184, 0.58);
}

.settings-title h3 {
  margin: 0;
  font-family: var(--font-display);
}

.settings-title p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.setting-row {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
}

.setting-row > label:first-child {
  font-size: 0.88rem;
  font-weight: 680;
}

.setting-control {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

input[type="time"] {
  max-width: 88px;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
}

.switch {
  position: relative;
  display: inline-flex;
  width: 46px;
  height: 27px;
  flex: 0 0 auto;
  cursor: pointer;
}

.switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch span {
  width: 100%;
  border-radius: 99px;
  background: #d8ddd9;
  transition: 180ms ease;
}

.switch span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 7px rgba(40, 50, 45, 0.2);
  content: "";
  transition: 180ms ease;
}

.switch input:checked + span {
  background: var(--sage-dark);
}

.switch input:checked + span::after {
  transform: translateX(19px);
}

.setting-note {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.text-input {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.small-input {
  width: min(48%, 180px);
  min-height: 40px;
}

.install-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  color: #3e5f50;
  background: var(--sage-light);
}

.install-card h3 {
  margin: 0.25rem 0 0;
}

.install-card p:last-child {
  margin: 0.3rem 0 0;
  font-size: 0.78rem;
}

.danger-link {
  display: block;
  margin: 1.5rem auto 0;
  padding: 0.6rem;
  border: 0;
  color: var(--danger);
  background: transparent;
  font-size: 0.78rem;
  text-decoration: underline;
  cursor: pointer;
}

.privacy-note {
  margin: 0.7rem auto;
  color: var(--muted);
  font-size: 0.68rem;
  text-align: center;
}

.bottom-nav {
  position: fixed;
  right: 0.7rem;
  bottom: max(0.7rem, var(--safe-bottom));
  left: 0.7rem;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  max-width: 560px;
  min-height: 68px;
  margin: 0 auto;
  padding: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 23px;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: 0 18px 45px rgba(55, 75, 65, 0.16);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.nav-item {
  display: flex;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.bottom-nav .nav-item {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  border-radius: 17px;
  font-size: 0.61rem;
  font-weight: 750;
}

.bottom-nav .nav-item svg {
  width: 1.2rem;
  height: 1.2rem;
}

.bottom-nav .nav-item.active {
  color: var(--sage-dark);
  background: var(--mint);
}

.task-dialog {
  width: min(calc(100% - 2rem), 440px);
  padding: 0;
  border: 0;
  border-radius: 26px;
  color: var(--ink);
  background: var(--surface-solid);
  box-shadow: 0 30px 90px rgba(38, 53, 47, 0.24);
}

.task-dialog::backdrop {
  background: rgba(38, 53, 47, 0.35);
  backdrop-filter: blur(4px);
}

.task-dialog form {
  padding: 1.4rem;
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.dialog-header h2 {
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.dialog-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  color: var(--muted);
  background: var(--mint);
  font-size: 1.4rem;
  cursor: pointer;
}

.form-field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
  font-size: 0.76rem;
  font-weight: 750;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: calc(6rem + var(--safe-bottom));
  left: 1rem;
  z-index: 80;
  max-width: 420px;
  margin: 0 auto;
  padding: 0.9rem 1rem;
  border-radius: 15px;
  color: white;
  background: #2f493d;
  box-shadow: 0 14px 35px rgba(38, 53, 47, 0.24);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  transform: translateY(24px);
  visibility: hidden;
  opacity: 0;
  transition: 220ms ease;
}

.toast.show {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.update-banner {
  position: fixed;
  right: 1rem;
  bottom: calc(6rem + var(--safe-bottom));
  left: 1rem;
  z-index: 70;
  max-width: 470px;
  margin: auto;
  padding: 0.8rem 1rem;
  border-radius: 15px;
  color: white;
  background: #26352f;
  font-size: 0.8rem;
  box-shadow: 0 14px 35px rgba(38, 53, 47, 0.24);
}

.update-banner button {
  float: right;
  border: 0;
  color: var(--butter);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.timer-fab {
  position: fixed;
  right: 1rem;
  bottom: calc(6.2rem + var(--safe-bottom));
  z-index: 60;
  display: flex;
  max-width: calc(100vw - 2rem);
  min-width: 126px;
  min-height: 58px;
  align-items: center;
  gap: 0.65rem;
  padding: 0.48rem 0.85rem 0.48rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 21px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(79, 116, 98, 0.98), rgba(92, 132, 112, 0.98)),
    var(--sage-dark);
  box-shadow: 0 16px 38px rgba(48, 78, 63, 0.28);
  cursor: pointer;
  isolation: isolate;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.timer-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 19px 42px rgba(48, 78, 63, 0.32);
}

.timer-fab:active {
  transform: translateY(1px) scale(0.985);
}

.timer-fab-ring {
  --timer-fab-progress: 0deg;
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: conic-gradient(var(--butter) var(--timer-fab-progress), rgba(255, 255, 255, 0.2) 0);
  place-items: center;
}

.timer-fab-ring::before {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--sage-dark);
  content: "";
}

.timer-fab-ring svg {
  z-index: 1;
  width: 1.2rem;
  height: 1.2rem;
}

.timer-fab-copy {
  display: grid;
  min-width: 58px;
  text-align: left;
}

.timer-fab-copy small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.timer-fab-copy strong {
  margin-top: 0.18rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  line-height: 1;
}

.timer-fab.running .timer-fab-ring svg {
  animation: timer-breathe 1.8s ease-in-out infinite;
}

.timer-fab.complete {
  animation: timer-finish-glow 1.2s ease both;
}

.timer-panel {
  position: fixed;
  right: 1rem;
  bottom: calc(10.1rem + var(--safe-bottom));
  left: 1rem;
  z-index: 59;
  width: auto;
  max-width: 410px;
  max-height: calc(100vh - 12rem - var(--safe-bottom));
  margin-left: auto;
  overflow: auto;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 27px;
  background:
    radial-gradient(circle at 88% 8%, rgba(245, 232, 184, 0.46), transparent 8rem),
    rgba(255, 253, 248, 0.96);
  box-shadow: 0 28px 80px rgba(38, 53, 47, 0.24);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  animation: timer-panel-in 220ms ease both;
}

.timer-panel[hidden] {
  display: none;
}

.timer-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.timer-panel-header h2 {
  margin: 0.24rem 0 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.035em;
}

.timer-close {
  flex: 0 0 auto;
}

.timer-display {
  position: relative;
  display: grid;
  width: 194px;
  height: 194px;
  margin: 0.8rem auto 0.65rem;
  place-items: center;
}

.timer-progress {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.timer-progress circle {
  fill: none;
  stroke-width: 8;
}

.timer-progress-track {
  stroke: var(--sage-light);
}

.timer-progress-value {
  stroke: var(--sage-dark);
  stroke-dasharray: 433.54;
  stroke-dashoffset: 0;
  stroke-linecap: round;
  transition: stroke-dashoffset 250ms linear;
}

.timer-time-copy {
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
}

.timer-time-copy strong {
  font-family: var(--font-display);
  font-size: 2.65rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.055em;
  line-height: 1;
}

.timer-time-copy span {
  max-width: 130px;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 730;
  line-height: 1.25;
}

.timer-presets {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.35rem;
  margin: 0.5rem 0 1rem;
}

.timer-preset {
  display: grid;
  min-width: 0;
  min-height: 50px;
  padding: 0.35rem 0.1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.66);
  font-size: 0.61rem;
  font-weight: 750;
  cursor: pointer;
  place-content: center;
}

.timer-preset span {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1;
}

.timer-preset.active {
  border-color: rgba(79, 116, 98, 0.3);
  color: var(--sage-dark);
  background: var(--sage-light);
  box-shadow: inset 0 0 0 1px rgba(79, 116, 98, 0.08);
}

.timer-preset:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.timer-controls {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0.6rem;
}

.timer-control {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
}

.timer-control.primary {
  color: #fff;
  background: var(--sage-dark);
  box-shadow: 0 12px 28px rgba(79, 116, 98, 0.23);
  font-weight: 800;
}

.timer-control.secondary {
  border: 1px solid var(--line);
  color: var(--sage-dark);
  background: var(--mint);
}

.timer-control:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  box-shadow: none;
}

.timer-gentle-note {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.4;
  text-align: center;
}

.timer-complete-view {
  padding: 0.8rem 0 0.2rem;
  text-align: center;
}

.timer-complete-view[hidden] {
  display: none;
}

.timer-complete-view h2 {
  max-width: 18rem;
  margin: 0.65rem auto 0;
  font-family: var(--font-display);
  font-size: 1.65rem;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.timer-complete-view > p:not(.card-kicker) {
  margin: 0.65rem auto 1.2rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.timer-celebration {
  position: relative;
  display: grid;
  width: 92px;
  height: 92px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  color: white;
  background: var(--sage-dark);
  box-shadow: 0 0 0 12px rgba(220, 233, 223, 0.7);
  place-items: center;
  animation: timer-celebrate 620ms cubic-bezier(.2, .9, .3, 1) both;
}

.timer-celebration svg {
  width: 2.3rem;
  height: 2.3rem;
  stroke-width: 2.2;
}

.timer-celebration span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--peach);
  animation: timer-spark 700ms 120ms ease both;
}

.timer-celebration span:nth-child(1) { top: -10px; left: 5px; }
.timer-celebration span:nth-child(2) { top: 5px; right: -10px; background: var(--butter); animation-delay: 200ms; }
.timer-celebration span:nth-child(3) { bottom: -8px; left: 15px; background: var(--lavender); animation-delay: 280ms; }

@keyframes timer-panel-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
}

@keyframes timer-breathe {
  50% { transform: scale(0.88); opacity: 0.78; }
}

@keyframes timer-finish-glow {
  40% { transform: scale(1.07); box-shadow: 0 0 0 12px rgba(220, 233, 223, 0.72), 0 18px 42px rgba(48, 78, 63, 0.32); }
}

@keyframes timer-celebrate {
  from { opacity: 0; transform: scale(0.55) rotate(-8deg); }
  70% { transform: scale(1.08) rotate(2deg); }
}

@keyframes timer-spark {
  from { opacity: 0; transform: translate(8px, 8px) scale(0.2); }
}

body.reduce-motion *,
body.reduce-motion *::before,
body.reduce-motion *::after {
  scroll-behavior: auto !important;
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

@media (min-width: 680px) {
  .main-content {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }

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

  .quote-card,
  .mission-card,
  .weekly-card {
    grid-column: 1 / -1;
  }

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

  .zone-card.current-zone {
    grid-column: 1 / -1;
  }

  .section-intro > p {
    display: block;
  }

  .calendar-day {
    font-size: 0.85rem;
  }
}

@media (min-width: 1040px) {
  .app-shell {
    display: grid;
    grid-template-columns: 278px minmax(0, 1fr);
  }

  .sidebar {
    position: sticky;
    top: 0;
    display: flex;
    height: 100vh;
    flex-direction: column;
    padding: 2rem 1.5rem;
    border-right: 1px solid var(--line);
    background: rgba(247, 245, 238, 0.68);
    backdrop-filter: blur(22px);
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--ink);
    text-decoration: none;
  }

  .brand strong,
  .brand small {
    display: block;
  }

  .brand strong {
    font-family: var(--font-display);
    font-size: 1.08rem;
    letter-spacing: -0.035em;
  }

  .brand small {
    margin-top: 0.1rem;
    color: var(--muted);
    font-size: 0.66rem;
  }

  .side-nav {
    display: grid;
    gap: 0.35rem;
    margin-top: 2.6rem;
  }

  .side-nav .nav-item {
    min-height: 49px;
    align-items: center;
    gap: 0.8rem;
    padding: 0 0.9rem;
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 730;
  }

  .side-nav .nav-item.active {
    color: var(--sage-dark);
    background: var(--mint);
  }

  .side-nav .nav-item svg {
    width: 1.15rem;
    height: 1.15rem;
  }

  .sidebar-quote {
    margin: auto 0 0;
    padding: 1.1rem;
    border-radius: 18px;
    color: var(--sage-dark);
    background: var(--sage-light);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 650;
    line-height: 1.4;
  }

  .main-content {
    width: min(100%, 980px);
    padding: 2.1rem 2.25rem 4rem;
  }

  .bottom-nav {
    display: none;
  }

  .topbar {
    margin-bottom: 1.8rem;
  }

  .home-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .quote-card {
    grid-column: 1;
    min-height: 210px;
  }

  .progress-card {
    grid-column: 2;
  }

  .mission-card {
    grid-column: 1;
    grid-row: span 2;
    min-height: 305px;
    display: flex;
    flex-direction: column;
  }

  .mission-card .primary-button {
    width: fit-content;
    margin-top: auto;
  }

  .tip-card,
  .weekly-card {
    grid-column: 2;
  }

  .weekly-card {
    grid-template-columns: 100px 1fr;
  }

  .toast,
  .update-banner {
    bottom: 1.5rem;
    left: calc(278px + 1rem);
  }

  .timer-fab {
    right: 1.6rem;
    bottom: 1.6rem;
  }

  .timer-panel {
    right: 1.6rem;
    bottom: 6rem;
    left: auto;
    width: 390px;
    max-height: calc(100vh - 7.5rem);
  }
}

/* Deep blue premium theme */

html {
  background: var(--bg);
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 10%, rgba(207, 227, 238, 0.16), transparent 28rem),
    radial-gradient(circle at 12% 92%, rgba(45, 98, 155, 0.72), transparent 34rem),
    linear-gradient(145deg, #173f70 0%, var(--bg) 48%, var(--bg-secondary) 100%);
  background-attachment: fixed;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline-color: rgba(239, 203, 104, 0.72);
}

.ambient-one {
  background: rgba(239, 203, 104, 0.1);
}

.ambient-two {
  background: rgba(207, 227, 238, 0.12);
}

.splash {
  color: #fff;
  background:
    radial-gradient(circle at 75% 18%, rgba(207, 227, 238, 0.15), transparent 20rem),
    linear-gradient(145deg, #173f70, var(--bg-secondary));
}

.brand-lockup,
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}

.brand-emblem {
  display: grid;
  width: 68px;
  height: 54px;
  flex: 0 0 auto;
  place-items: center;
}

.brand-emblem svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.brand-copy,
.brand-copy strong,
.brand-copy small,
.brand strong,
.brand small {
  display: block;
}

.brand-copy strong,
.brand strong {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}

.brand-copy small,
.brand small {
  margin-top: 0.3rem;
  color: var(--butter);
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.2;
}

.splash-brand {
  flex-direction: column;
  text-align: center;
}

.splash-logo {
  width: min(78vw, 380px);
}

.splash-brand .brand-emblem {
  width: 108px;
  height: 82px;
}

.splash-brand .brand-copy strong {
  font-size: 2rem;
}

.splash-brand .brand-copy small {
  font-size: 0.8rem;
}

.main-content {
  min-height: 100vh;
}

.topbar {
  display: grid;
  align-items: stretch;
  gap: 1.55rem;
  margin-bottom: 1.5rem;
}

.topbar-brand {
  width: min(88vw, 360px);
}

.sidebar-logo {
  width: 100%;
}

.topbar-main {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.topbar h1 {
  color: #fff;
  text-shadow: 0 3px 18px rgba(8, 31, 57, 0.16);
}

.topbar .eyebrow,
.section-intro .eyebrow {
  color: var(--sky);
}

.icon-button,
.install-button {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 34px rgba(5, 28, 52, 0.16);
  backdrop-filter: blur(12px);
}

.section-intro h2,
.section-intro > p,
.history-heading {
  color: #fff;
}

.section-intro > p,
.history-heading span {
  color: rgba(255, 255, 255, 0.72);
}

.card,
.zone-card,
.routine-item,
.stat-card,
.settings-card,
.calendar-card {
  border-color: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card-kicker,
.card .eyebrow,
.about-page .eyebrow {
  color: var(--bg-secondary);
}

.quote-card {
  min-height: 190px;
  background:
    radial-gradient(circle at 94% 10%, rgba(207, 227, 238, 0.72), transparent 10rem),
    linear-gradient(135deg, #fbfaf7, var(--surface-solid));
}

.quote-card::after {
  border-color: rgba(207, 227, 238, 0.52);
}

.quote-icon {
  color: var(--ink);
  background: var(--butter);
}

.mission-card {
  border-color: rgba(207, 227, 238, 0.72);
  background:
    radial-gradient(circle at 100% 100%, rgba(207, 227, 238, 0.72), transparent 16rem),
    var(--surface-solid);
  box-shadow: 0 24px 68px rgba(7, 34, 61, 0.24);
}

.mission-card::before {
  background: linear-gradient(90deg, var(--butter), var(--sky));
}

.time-pill,
.tip-number,
.settings-icon,
.history-dot,
.zone-visual {
  color: var(--bg);
  background: var(--sky);
}

.primary-button,
.timer-control.primary {
  color: var(--ink);
  background: var(--butter);
  box-shadow: 0 14px 32px rgba(153, 112, 16, 0.26);
}

.primary-button:hover,
.timer-control.primary:hover {
  box-shadow: 0 18px 38px rgba(153, 112, 16, 0.32);
}

.secondary-button,
.text-input,
.timer-preset {
  border-color: rgba(31, 79, 134, 0.16);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
}

.text-button {
  color: var(--bg-secondary);
}

.home-timer-cta {
  color: var(--ink);
  background:
    radial-gradient(circle at 84% 8%, rgba(255, 255, 255, 0.34), transparent 9rem),
    linear-gradient(145deg, #f6d36e, var(--butter));
  box-shadow: 0 22px 54px rgba(9, 38, 65, 0.24);
}

.home-timer-icon {
  color: var(--bg);
  background: rgba(247, 246, 243, 0.72);
}

.tip-card {
  background:
    linear-gradient(145deg, var(--surface-solid), rgba(207, 227, 238, 0.72)),
    var(--surface-solid);
}

.progress-card {
  background:
    linear-gradient(145deg, var(--surface-solid), rgba(166, 184, 154, 0.38)),
    var(--surface-solid);
}

.progress-ring {
  background: conic-gradient(var(--bg-secondary) calc(var(--progress) * 1%), var(--sky) 0);
}

.weekly-card {
  background: var(--surface-solid);
}

.zones-list,
.routine-list,
.history-list {
  filter: drop-shadow(0 16px 35px rgba(7, 31, 56, 0.08));
}

.zone-card.current-zone {
  border-color: rgba(239, 203, 104, 0.8);
  box-shadow: 0 0 0 2px rgba(239, 203, 104, 0.18), var(--shadow);
}

.zone-icon,
.zone-card:nth-child(3) .zone-icon,
.routine-item-icon {
  color: var(--bg);
  background: var(--sky);
}

.zone-card:nth-child(2) .zone-icon,
.zone-card:nth-child(4) .zone-icon,
.routine-item:nth-child(even) .routine-item-icon {
  color: #40543b;
  background: var(--sage-light);
}

.zone-card:nth-child(5) .zone-icon,
.settings-icon.warm {
  color: #685116;
  background: rgba(239, 203, 104, 0.62);
}

.zone-subsection {
  border-color: rgba(31, 79, 134, 0.1);
  background: rgba(207, 227, 238, 0.18);
}

.zone-subsection .mini-task-list,
.zone-task-row {
  background: rgba(255, 255, 255, 0.66);
}

.zone-progress-track,
.routine-progress-track {
  background: rgba(207, 227, 238, 0.72);
}

.zone-progress-track span,
.routine-progress-track span,
.switch input:checked + span {
  background: var(--bg-secondary);
}

.custom-check {
  border-color: rgba(31, 79, 134, 0.34);
  background: #fff;
}

.check-row.done .custom-check,
.routine-item.done .custom-check {
  border-color: var(--bg-secondary);
  color: #fff;
  background: var(--bg-secondary);
}

.routine-tabs {
  background: rgba(19, 59, 98, 0.58);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.routine-tab {
  color: rgba(255, 255, 255, 0.76);
}

.routine-tab.active {
  color: var(--ink);
  background: var(--surface-solid);
  box-shadow: 0 8px 24px rgba(5, 28, 52, 0.18);
}

.routine-summary-card {
  color: var(--ink);
  background: rgba(207, 227, 238, 0.94);
}

.stat-card:nth-child(1) {
  background: var(--sky);
}

.stat-card:nth-child(2) {
  background: var(--sage-light);
}

.stat-card:nth-child(3) {
  background: rgba(239, 203, 104, 0.94);
}

.calendar-day.selected {
  color: #fff;
  background: var(--bg-secondary);
}

.calendar-day.today {
  color: var(--bg);
  box-shadow: inset 0 0 0 2px var(--bg-secondary);
}

.install-card {
  color: var(--ink);
  background: var(--sky);
  box-shadow: var(--shadow);
}

.about-settings-link {
  border-color: rgba(255, 255, 255, 0.62);
  background:
    linear-gradient(135deg, rgba(207, 227, 238, 0.94), var(--surface-solid)),
    var(--surface-solid);
  box-shadow: var(--shadow);
}

.privacy-note {
  color: rgba(255, 255, 255, 0.72);
}

.danger-link {
  color: #ffd7d7;
}

.bottom-nav {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(247, 246, 243, 0.97);
  box-shadow: 0 22px 55px rgba(4, 28, 52, 0.3);
}

.bottom-nav .nav-item {
  color: #5d6d78;
}

.bottom-nav .nav-item.active {
  color: var(--bg);
  background: var(--sky);
}

.timer-fab {
  border-color: rgba(207, 227, 238, 0.46);
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(207, 227, 238, 0.2), transparent 7rem),
    linear-gradient(145deg, var(--bg-secondary), var(--bg));
  box-shadow: 0 20px 48px rgba(4, 26, 49, 0.34);
}

.timer-fab-ring {
  background: conic-gradient(var(--butter) var(--timer-fab-progress), rgba(207, 227, 238, 0.32) 0);
}

.timer-fab-ring::before {
  background: var(--sky);
}

.timer-fab-ring svg {
  color: var(--bg);
}

.timer-fab-copy small {
  color: var(--sky);
}

.timer-panel,
.task-dialog {
  border-color: rgba(207, 227, 238, 0.7);
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 5%, rgba(207, 227, 238, 0.7), transparent 10rem),
    var(--surface-solid);
  box-shadow: 0 30px 90px rgba(5, 27, 51, 0.38);
}

.task-dialog::backdrop {
  background: rgba(8, 35, 64, 0.58);
}

.dialog-close,
.timer-control.secondary {
  color: var(--bg);
  background: var(--sky);
}

.timer-progress-track {
  stroke: rgba(207, 227, 238, 0.8);
}

.timer-progress-value {
  stroke: var(--bg-secondary);
}

.timer-preset.active {
  border-color: var(--bg-secondary);
  color: var(--bg);
  background: var(--sky);
}

.timer-celebration {
  color: var(--bg);
  background: var(--sky);
  box-shadow: 0 0 0 12px rgba(239, 203, 104, 0.42);
}

.toast {
  color: #fff;
  background: var(--bg-secondary);
}

.update-banner {
  color: var(--ink);
  background: var(--butter);
}

.about-page {
  border-color: rgba(207, 227, 238, 0.48);
  box-shadow: 0 28px 76px rgba(5, 27, 51, 0.3);
}

.about-signature {
  color: #40543b;
  background: var(--sage-light);
}

@media (min-width: 680px) {
  .topbar-brand {
    width: 390px;
  }

  .topbar-brand .brand-emblem {
    width: 82px;
    height: 62px;
  }

  .topbar-brand .brand-copy strong {
    font-size: 1.85rem;
  }

  .topbar-brand .brand-copy small {
    font-size: 0.76rem;
  }
}

@media (min-width: 1040px) {
  .main-content {
    width: min(100%, 1180px);
    padding-top: 2.2rem;
  }

  .topbar {
    gap: 2rem;
  }

  .topbar h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
  }

  .quote-card {
    min-height: 210px;
  }

  .mission-card,
  .home-timer-cta {
    min-height: 360px;
  }
}

/* About Caroline */

.about-settings-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  width: 100%;
  min-height: 78px;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(47, 58, 63, 0.06);
  border-radius: 22px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(207, 227, 238, 0.46), rgba(252, 251, 248, 0.96)),
    var(--surface-solid);
  box-shadow: 0 12px 34px rgba(66, 76, 80, 0.055);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.about-settings-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 17px 38px rgba(66, 76, 80, 0.09);
}

.about-settings-link small,
.about-settings-link strong {
  display: block;
}

.about-settings-link small {
  color: var(--muted);
  font-size: 0.68rem;
}

.about-settings-link strong {
  margin-top: 0.2rem;
  font-family: var(--font-display);
  font-size: 0.98rem;
}

.about-settings-avatar {
  width: 54px;
  height: 54px;
  overflow: hidden;
  border: 3px solid rgba(252, 251, 248, 0.86);
  border-radius: 50%;
  box-shadow: 0 7px 18px rgba(47, 58, 63, 0.11);
}

.about-settings-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-settings-link > svg {
  width: 1rem;
  height: 1rem;
  color: #526972;
}

.about-page {
  position: relative;
  isolation: isolate;
  max-width: 840px;
  margin: 0 auto;
  padding: clamp(0.75rem, 2.5vw, 1.25rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 32px;
  box-shadow: 0 24px 65px rgba(63, 72, 67, 0.1);
}

.about-page::before,
.about-page::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.about-page::before {
  inset: -8px;
  z-index: 0;
  background: url("./assets/foret-about.jpg?v=20260611") top center / auto 520px repeat-y;
  filter: blur(2px) saturate(1.08) contrast(1.16);
  transform: scale(1.015);
}

.about-page::after {
  inset: 0;
  z-index: 0;
  background: rgba(247, 246, 243, 0.34);
}

.about-page > * {
  position: relative;
  z-index: 1;
}

.about-hero {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 1.75rem;
  margin-bottom: 1.35rem;
  padding: 2.35rem 1.45rem;
  overflow: hidden;
  border: 1px solid rgba(47, 58, 63, 0.06);
  border-radius: 28px;
  background:
    radial-gradient(circle at 8% 18%, rgba(217, 230, 216, 0.28), transparent 12rem),
    radial-gradient(circle at 92% 84%, rgba(207, 227, 238, 0.26), transparent 14rem),
    rgba(252, 251, 248, 0.78);
  backdrop-filter: blur(1.5px);
  box-shadow: var(--shadow);
  text-align: center;
}

.about-photo-wrap {
  position: relative;
  width: 172px;
  height: 172px;
  padding: 7px;
  border-radius: 50%;
  background: rgba(252, 251, 248, 0.8);
  box-shadow: 0 16px 38px rgba(47, 58, 63, 0.12);
}

.about-photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: 50%;
}

.about-photo-accent {
  position: absolute;
  right: -11px;
  bottom: 8px;
  width: 48px;
  height: 48px;
  border: 6px solid var(--surface-solid);
  border-radius: 50%;
  background: var(--butter);
}

.about-intro {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0.78rem;
}

.about-intro .eyebrow {
  margin: 0;
}

.about-intro h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.68rem;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 680;
  letter-spacing: -0.055em;
}

.about-intro h2 span {
  display: inline-flex;
  align-items: center;
  font-size: 0.72em;
  line-height: 1;
}

.about-lead {
  max-width: 30rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.about-lead strong {
  color: var(--ink);
}

.about-page .about-story {
  padding: 1.55rem;
  background: rgba(252, 251, 248, 0.88);
  backdrop-filter: blur(1.5px);
}

.about-story > p {
  margin: 0 0 1.15rem;
  color: #556267;
  font-size: 0.97rem;
  line-height: 1.72;
}

.about-story > p:last-child {
  margin-bottom: 0;
}

.about-story strong {
  color: var(--ink);
}

.about-highlight {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.85rem;
  margin: 1.35rem 0;
  padding: 1.15rem;
  border-radius: 21px;
  background: var(--sky-soft);
}

.about-highlight p {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 620;
  line-height: 1.48;
}

.about-highlight-icon {
  display: grid;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  color: #70591f;
  background: rgba(239, 203, 104, 0.64);
  place-items: center;
}

.about-highlight-icon svg {
  width: 1rem;
  height: 1rem;
}

.about-signature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.3rem 0;
  padding: 1.1rem;
  border-radius: 22px;
  color: #52675a;
  background: var(--sage);
  text-align: left;
}

.about-signature > span {
  font-size: 1.5rem;
}

.about-signature strong,
.about-signature small {
  display: block;
}

.about-signature strong {
  font-family: var(--font-display);
  font-size: 1.08rem;
}

.about-signature small {
  margin-top: 0.15rem;
  color: rgba(47, 58, 63, 0.68);
  font-size: 0.72rem;
}

.about-footer {
  display: grid;
  gap: 0.65rem;
  padding-bottom: 1rem;
}

.about-version {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.about-version strong {
  padding: 0.32rem 0.55rem;
  border-radius: 9px;
  color: #526972;
  background: var(--sky);
  font-size: 0.7rem;
}

.about-disclosure {
  overflow: hidden;
  border: 1px solid rgba(47, 58, 63, 0.06);
  border-radius: 20px;
  background: rgba(252, 251, 248, 0.88);
  backdrop-filter: blur(1.5px);
  box-shadow: 0 9px 28px rgba(66, 76, 80, 0.045);
}

.about-disclosure summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  min-height: 66px;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 740;
  list-style: none;
  cursor: pointer;
}

.about-disclosure summary::-webkit-details-marker {
  display: none;
}

.about-footer-icon {
  display: grid;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  color: #526972;
  background: var(--sky);
  place-items: center;
}

.about-footer-icon.sage {
  color: #52675a;
  background: var(--sage);
}

.about-footer-icon.warm {
  color: #745f27;
  background: rgba(239, 203, 104, 0.48);
}

.about-footer-icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.about-chevron {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--muted);
  transition: transform 180ms ease;
}

.about-disclosure[open] .about-chevron {
  transform: rotate(90deg);
}

.about-disclosure-content {
  padding: 0 1rem 1rem 4.35rem;
}

.about-disclosure-content p {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.58;
}

.about-disclosure-content p:last-child {
  margin-bottom: 0;
}

.bottom-nav {
  grid-template-columns: repeat(6, 1fr);
}

.bottom-nav .nav-item {
  font-size: 0.54rem;
}

@media (min-width: 680px) {
  .about-page::before {
    background-size: 100% auto;
  }

  .about-hero {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 290px;
    align-items: center;
    justify-items: start;
    column-gap: 2.5rem;
    padding: 2.5rem 2.75rem;
    text-align: left;
  }

  .about-photo-wrap {
    width: 180px;
    height: 180px;
  }

  .about-lead {
    margin-right: 0;
    margin-left: 0;
  }

  .about-intro {
    justify-items: start;
    gap: 0.9rem;
  }

  .about-intro h2 {
    justify-content: flex-start;
  }

  .about-story {
    padding: 2rem 2.2rem;
  }

  .about-story > p {
    font-size: 1.02rem;
  }

  .about-highlight {
    padding: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (display-mode: standalone) {
  .install-button,
  .install-card {
    display: none !important;
  }
}

/* Scandinavian premium visual system */

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 4%, rgba(207, 227, 238, 0.42), transparent 28rem),
    radial-gradient(circle at 92% 88%, rgba(217, 230, 216, 0.44), transparent 31rem),
    var(--bg);
}

.ambient-one {
  background: rgba(239, 203, 104, 0.1);
}

.ambient-two {
  background: rgba(232, 154, 121, 0.08);
}

.main-content {
  width: min(100%, 900px);
  padding-top: max(1.6rem, env(safe-area-inset-top));
}

.topbar {
  min-height: 76px;
  margin-bottom: 1.7rem;
}

.topbar h1 {
  font-weight: 720;
}

.eyebrow,
.card-kicker {
  color: #607379;
  letter-spacing: 0.13em;
}

.card {
  border: 1px solid rgba(47, 58, 63, 0.065);
  border-radius: 26px;
  background: rgba(252, 251, 248, 0.92);
  box-shadow: var(--shadow);
}

.home-grid {
  gap: 1.15rem;
}

.quote-card {
  min-height: 174px;
  padding: 1.7rem;
  background:
    radial-gradient(circle at 92% 12%, rgba(207, 227, 238, 0.6), transparent 9rem),
    var(--surface-solid);
}

.quote-card::after {
  border-color: rgba(207, 227, 238, 0.26);
}

.quote-icon {
  color: #6f5c27;
  background: rgba(239, 203, 104, 0.62);
}

.quote-card blockquote {
  max-width: 38rem;
  font-weight: 640;
}

.mission-card {
  min-height: 310px;
  padding: 1.7rem;
  border-color: rgba(232, 154, 121, 0.2);
  background:
    radial-gradient(circle at 100% 0%, rgba(232, 154, 121, 0.17), transparent 13rem),
    var(--surface-solid);
  box-shadow: 0 24px 65px rgba(86, 91, 88, 0.1);
}

.mission-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--peach), var(--butter));
  content: "";
}

.mission-card h2 {
  max-width: 30rem;
  font-size: clamp(1.6rem, 6vw, 2.25rem);
  font-weight: 680;
}

.mission-description {
  max-width: 40rem;
  margin-top: 1.25rem;
  font-size: 0.98rem;
  line-height: 1.65;
}

.mission-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: auto;
}

.time-pill {
  color: #526972;
  background: var(--sky);
}

.primary-button {
  color: var(--ink);
  background: var(--butter);
  box-shadow: 0 12px 28px rgba(183, 143, 42, 0.18);
}

.primary-button.completed {
  color: #52675a;
  background: var(--sage);
}

.secondary-button {
  border-color: rgba(47, 58, 63, 0.1);
  color: var(--ink);
  background: rgba(252, 251, 248, 0.9);
  box-shadow: 0 8px 24px rgba(66, 76, 80, 0.05);
}

.home-timer-cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  width: 100%;
  min-height: 88px;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.15rem;
  border: 0;
  border-radius: 24px;
  color: var(--ink);
  background:
    linear-gradient(125deg, rgba(239, 203, 104, 0.96), rgba(239, 203, 104, 0.74));
  box-shadow: 0 17px 38px rgba(180, 143, 43, 0.16);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.home-timer-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 21px 44px rgba(180, 143, 43, 0.2);
}

.home-timer-icon {
  display: grid;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  color: #6b5420;
  background: rgba(252, 251, 248, 0.56);
  place-items: center;
}

.home-timer-icon svg {
  width: 1.45rem;
  height: 1.45rem;
}

.home-timer-cta small,
.home-timer-cta strong {
  display: block;
}

.home-timer-cta small {
  color: rgba(47, 58, 63, 0.68);
  font-size: 0.7rem;
  font-weight: 700;
}

.home-timer-cta strong {
  margin-top: 0.18rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  letter-spacing: -0.025em;
}

.home-timer-arrow {
  width: 1.2rem;
  height: 1.2rem;
}

.tip-card {
  background:
    linear-gradient(145deg, rgba(252, 251, 248, 0.98), rgba(207, 227, 238, 0.38)),
    var(--surface-solid);
}

.tip-number {
  color: #526972;
  background: var(--sky);
}

.progress-card {
  min-height: 150px;
  background:
    linear-gradient(145deg, rgba(252, 251, 248, 0.98), rgba(217, 230, 216, 0.52)),
    var(--surface-solid);
}

.progress-ring {
  background: conic-gradient(#8eb9cc calc(var(--progress) * 1%), var(--sky) 0);
}

.weekly-card {
  background: var(--surface-solid);
}

.zone-visual {
  color: #526972;
  background: var(--sky);
}

.section-intro {
  margin-bottom: 1.6rem;
}

.section-intro h2 {
  font-weight: 680;
}

.zones-list,
.routine-list,
.history-list {
  gap: 0.85rem;
}

.zone-card {
  padding: 1.5rem;
  background: var(--surface-solid);
}

.zone-card.current-zone {
  border-color: rgba(142, 185, 204, 0.42);
  box-shadow: 0 20px 56px rgba(93, 126, 139, 0.11);
}

.zone-icon,
.zone-card:nth-child(3) .zone-icon {
  color: #526972;
  background: var(--sky);
}

.zone-card:nth-child(2) .zone-icon,
.zone-card:nth-child(4) .zone-icon {
  color: #5d6f61;
  background: var(--sage);
}

.zone-card:nth-child(5) .zone-icon {
  color: #79543f;
  background: rgba(232, 154, 121, 0.33);
}

.zone-progress-track,
.routine-progress-track {
  background: rgba(207, 227, 238, 0.58);
}

.zone-progress-track span,
.routine-progress-track span {
  background: #8eb9cc;
}

.custom-check {
  border-color: rgba(82, 105, 114, 0.34);
  border-radius: 8px;
  background: var(--surface-solid);
}

.check-row.done .custom-check,
.routine-item.done .custom-check {
  border-color: #8eb9cc;
  color: var(--ink);
  background: var(--sky);
}

.routine-tabs {
  padding: 0.38rem;
  border: 0;
  border-radius: 20px;
  background: #f1efea;
}

.routine-tab {
  min-height: 48px;
  border-radius: 16px;
}

.routine-tab.active {
  color: var(--ink);
  background: var(--sky);
  box-shadow: none;
}

.routine-summary-card {
  padding: 1.2rem 1.3rem;
  border-radius: 22px;
  color: #526972;
  background: var(--sky-soft);
}

.routine-item {
  grid-template-columns: auto auto 1fr auto;
  min-height: 78px;
  padding: 0.85rem;
  border-color: rgba(47, 58, 63, 0.06);
  border-radius: 22px;
  background: var(--surface-solid);
  box-shadow: 0 12px 34px rgba(66, 76, 80, 0.055);
}

.routine-item-icon {
  display: grid;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  color: #526972;
  background: var(--sky);
  place-items: center;
}

.routine-item:nth-child(even) .routine-item-icon {
  color: #5d6f61;
  background: var(--sage);
}

.routine-item-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.stats-grid {
  gap: 0.8rem;
}

.stat-card {
  min-height: 104px;
  border-color: rgba(47, 58, 63, 0.06);
  border-radius: 22px;
  background: var(--surface-solid);
  box-shadow: 0 12px 34px rgba(66, 76, 80, 0.055);
}

.stat-card:nth-child(1) { background: var(--sky-soft); }
.stat-card:nth-child(2) { background: var(--mint); }
.stat-card:nth-child(3) { background: rgba(239, 203, 104, 0.19); }

.calendar-day.selected {
  color: var(--ink);
  background: var(--sky);
}

.calendar-day.today {
  color: #526972;
  box-shadow: inset 0 0 0 1.5px #8eb9cc;
}

.history-dot,
.settings-icon {
  color: #526972;
  background: var(--sky);
}

.settings-icon.warm {
  color: #70591f;
  background: rgba(239, 203, 104, 0.46);
}

.switch input:checked + span {
  background: #8eb9cc;
}

.install-card {
  color: #526972;
  background: var(--sky-soft);
}

.bottom-nav {
  min-height: 72px;
  border-color: rgba(47, 58, 63, 0.07);
  border-radius: 24px;
  background: rgba(247, 246, 243, 0.94);
  box-shadow: 0 18px 48px rgba(66, 76, 80, 0.14);
}

.bottom-nav .nav-item {
  min-height: 60px;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.bottom-nav .nav-item.active {
  color: #425a64;
  background: var(--sky);
}

.bottom-nav .nav-item.active svg {
  transform: translateY(-1px);
}

.timer-fab {
  min-width: 190px;
  color: var(--ink);
  background: var(--butter);
  box-shadow: 0 17px 42px rgba(170, 132, 35, 0.24);
}

.timer-fab-ring {
  background: conic-gradient(#78a9bd var(--timer-fab-progress), rgba(252, 251, 248, 0.56) 0);
}

.timer-fab-ring::before {
  background: var(--sky);
}

.timer-fab-copy {
  min-width: 108px;
}

.timer-fab-copy small {
  color: rgba(47, 58, 63, 0.64);
}

.timer-fab-copy strong {
  margin-top: 0.22rem;
  font-size: 0.86rem;
  letter-spacing: -0.01em;
}

.timer-panel {
  border-color: rgba(47, 58, 63, 0.07);
  background:
    radial-gradient(circle at 88% 8%, rgba(207, 227, 238, 0.68), transparent 9rem),
    rgba(252, 251, 248, 0.98);
}

.timer-progress-track {
  stroke: rgba(207, 227, 238, 0.56);
}

.timer-progress-value {
  stroke: #8eb9cc;
}

.timer-preset.active {
  border-color: rgba(142, 185, 204, 0.5);
  color: #526972;
  background: var(--sky);
}

.timer-control.primary {
  color: var(--ink);
  background: var(--butter);
  box-shadow: 0 12px 28px rgba(183, 143, 42, 0.2);
}

.timer-control.secondary {
  color: #526972;
  background: var(--sky-soft);
}

.timer-celebration {
  color: var(--ink);
  background: var(--sky);
  box-shadow: 0 0 0 12px rgba(217, 230, 216, 0.74);
}

.timer-celebration span {
  background: var(--peach);
}

.toast {
  bottom: calc(10.2rem + var(--safe-bottom));
  color: var(--ink);
  background: var(--sky);
  box-shadow: 0 14px 35px rgba(76, 105, 117, 0.19);
}

.update-banner {
  bottom: calc(10.2rem + var(--safe-bottom));
  color: var(--ink);
  background: var(--butter);
}

.update-banner button {
  color: var(--ink);
}

@media (min-width: 680px) {
  .home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quote-card,
  .mission-card,
  .weekly-card {
    grid-column: 1 / -1;
  }

  .home-timer-cta {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1040px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .main-content {
    width: min(100%, 1120px);
    padding: 2.4rem 2.5rem 8rem;
  }

  .bottom-nav {
    display: grid;
    right: 1.5rem;
    bottom: 1.2rem;
    left: 1.5rem;
    max-width: 610px;
  }

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

  .quote-card {
    grid-column: 1 / 13;
    min-height: 190px;
  }

  .mission-card {
    grid-column: 1 / 9;
    grid-row: auto;
    min-height: 350px;
  }

  .mission-card .primary-button {
    width: auto;
    margin-top: 0;
  }

  .home-timer-cta {
    grid-column: 9 / 13;
    min-height: 350px;
    align-content: center;
    justify-items: center;
    grid-template-columns: 1fr;
    padding: 2rem;
    text-align: center;
  }

  .home-timer-icon {
    width: 74px;
    height: 74px;
    border-radius: 24px;
  }

  .home-timer-icon svg {
    width: 2rem;
    height: 2rem;
  }

  .home-timer-cta strong {
    font-size: 1.45rem;
  }

  .home-timer-arrow {
    display: none;
  }

  .tip-card {
    grid-column: 1 / 7;
  }

  .progress-card {
    grid-column: 7 / 13;
  }

  .weekly-card {
    grid-column: 1 / 13;
  }

  .timer-fab {
    right: 1.5rem;
    bottom: 1.55rem;
  }

  .timer-panel {
    right: 1.5rem;
    bottom: 6.2rem;
  }

  .toast,
  .update-banner {
    right: 1.5rem;
    bottom: 6.4rem;
    left: auto;
  }
}

/* Soft sunlight glows */

.brand-logo {
  filter:
    drop-shadow(0 5px 13px rgba(239, 203, 104, 0.14))
    drop-shadow(0 8px 22px rgba(95, 143, 196, 0.12));
  transition: filter 220ms ease;
}

.primary-button:not(.completed),
.timer-control.primary {
  box-shadow:
    0 12px 28px rgba(183, 143, 42, 0.2),
    0 0 22px rgba(239, 203, 104, 0.26),
    0 0 40px rgba(95, 143, 196, 0.1);
}

.primary-button:not(.completed):hover,
.timer-control.primary:hover {
  box-shadow:
    0 15px 34px rgba(183, 143, 42, 0.24),
    0 0 28px rgba(239, 203, 104, 0.35),
    0 0 46px rgba(95, 143, 196, 0.14);
}

.home-timer-cta {
  box-shadow:
    0 17px 38px rgba(180, 143, 43, 0.18),
    0 0 30px rgba(239, 203, 104, 0.3),
    0 0 54px rgba(95, 143, 196, 0.12);
}

.home-timer-cta:hover {
  box-shadow:
    0 21px 44px rgba(180, 143, 43, 0.22),
    0 0 36px rgba(239, 203, 104, 0.35),
    0 0 60px rgba(95, 143, 196, 0.16);
}

.timer-fab {
  box-shadow:
    0 17px 42px rgba(170, 132, 35, 0.24),
    0 0 30px rgba(239, 203, 104, 0.35),
    0 0 54px rgba(95, 143, 196, 0.25);
}

.timer-fab:hover {
  box-shadow:
    0 20px 46px rgba(170, 132, 35, 0.28),
    0 0 36px rgba(239, 203, 104, 0.38),
    0 0 62px rgba(95, 143, 196, 0.28);
}

#enableNotificationsButton,
#installSettingsButton {
  box-shadow:
    0 10px 26px rgba(66, 76, 80, 0.07),
    0 0 28px rgba(95, 143, 196, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  .brand-logo {
    transition: none;
  }
}

/* Accounts and PRO */

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.account-chip {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 34px rgba(5, 28, 52, 0.16);
  backdrop-filter: blur(12px);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.account-chip svg {
  width: 1rem;
  height: 1rem;
}

.account-chip.pro {
  border-color: rgba(239, 203, 104, 0.48);
  color: var(--ink);
  background: var(--butter);
  box-shadow: 0 0 24px rgba(239, 203, 104, 0.3);
}

.account-settings-card {
  margin-bottom: 1rem;
  padding: 1.2rem;
}

.account-icon {
  color: #fff;
  background: var(--bg-secondary);
}

.account-plan-label {
  margin: 0 0 0.15rem;
  color: #57717d;
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.account-settings-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.pro-settings-link {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  width: 100%;
  min-height: 92px;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(239, 203, 104, 0.46);
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 20%, rgba(239, 203, 104, 0.2), transparent 10rem),
    linear-gradient(135deg, #173f70, #2d629b);
  box-shadow: 0 18px 45px rgba(5, 28, 52, 0.2);
  text-align: left;
  cursor: pointer;
}

.pro-settings-symbol {
  display: grid;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: var(--ink);
  background: var(--butter);
  box-shadow: 0 0 24px rgba(239, 203, 104, 0.3);
  place-items: center;
}

.pro-settings-link small,
.pro-settings-link strong {
  display: block;
}

.pro-settings-link small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.65rem;
}

.pro-settings-link strong {
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: 0.98rem;
}

.pro-price-mini {
  font-size: 0.9rem;
  font-weight: 850;
  white-space: nowrap;
}

.pro-price-mini small {
  display: inline;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.62rem;
}

.pro-settings-link > svg {
  width: 1rem;
  height: 1rem;
}

.pro-control {
  position: relative;
  display: inline-flex;
}

.pro-control input:disabled {
  padding-right: 2.35rem;
  cursor: not-allowed;
  opacity: 0.72;
}

.pro-mini {
  position: absolute;
  top: 50%;
  right: 0.3rem;
  padding: 0.15rem 0.28rem;
  border-radius: 6px;
  color: #725b21;
  background: var(--butter);
  font-size: 0.48rem;
  font-weight: 900;
  transform: translateY(-50%);
}

.pro-page {
  max-width: 980px;
  margin: 0 auto;
}

.pro-hero {
  position: relative;
  display: grid;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: clamp(1.5rem, 5vw, 3.4rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 18%, rgba(239, 203, 104, 0.22), transparent 15rem),
    linear-gradient(140deg, #143b6a, #2d629b);
  box-shadow: 0 26px 70px rgba(5, 28, 52, 0.3);
}

.pro-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.62rem;
  border-radius: 999px;
  color: #674f16;
  background: var(--butter);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pro-badge svg {
  width: 0.85rem;
  height: 0.85rem;
}

.pro-hero h2 {
  max-width: 620px;
  margin: 1rem 0 0.8rem;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 8vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.pro-hero-copy > p {
  max-width: 570px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.pro-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.35rem;
}

.pro-hero-symbol {
  display: none;
}

.pro-hero-symbol img {
  width: 100%;
  filter: drop-shadow(0 0 30px rgba(239, 203, 104, 0.38));
}

.pro-payment-notice {
  margin-top: 1rem !important;
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  color: var(--ink) !important;
  background: var(--sky);
}

.founder-offer-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.9rem;
  margin: 1rem 0;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(239, 203, 104, 0.58);
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 20%, rgba(239, 203, 104, 0.28), transparent 10rem),
    linear-gradient(135deg, #173f70, #2d629b);
  box-shadow:
    0 18px 45px rgba(5, 28, 52, 0.2),
    0 0 34px rgba(239, 203, 104, 0.15);
}

.founder-confetti {
  display: grid;
  width: 52px;
  height: 52px;
  border-radius: 17px;
  color: #684f13;
  background: var(--butter);
  box-shadow: 0 0 26px rgba(239, 203, 104, 0.32);
  place-items: center;
}

.founder-offer-panel .card-kicker {
  color: var(--sky);
}

.founder-offer-panel strong {
  display: block;
  margin-top: 0.18rem;
  font-family: var(--font-display);
  font-size: 1rem;
}

.founder-offer-panel p:last-child {
  margin: 0.28rem 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.68rem;
}

.pricing-grid {
  display: grid;
  gap: 1rem;
  margin: 1rem 0;
}

.pricing-card {
  position: relative;
  padding: 1.4rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 26px;
  background: var(--surface-solid);
  box-shadow: var(--shadow);
}

.pricing-card.featured {
  border-color: rgba(239, 203, 104, 0.7);
  background:
    radial-gradient(circle at 100% 0, rgba(239, 203, 104, 0.2), transparent 10rem),
    var(--surface-solid);
}

.pricing-card.lifetime {
  border-color: rgba(166, 184, 154, 0.75);
  background:
    radial-gradient(circle at 100% 0, rgba(166, 184, 154, 0.25), transparent 11rem),
    var(--surface-solid);
}

.pricing-card.lifetime.founder-active {
  border-color: rgba(239, 203, 104, 0.7);
  box-shadow:
    var(--shadow),
    0 0 34px rgba(239, 203, 104, 0.16);
}

.pricing-card h3 {
  margin: 0.55rem 0;
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.pricing-card h3 span {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0;
}

.pricing-card h3 .regular-price {
  margin-right: 0.55rem;
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: line-through;
}

.pricing-card h3 .lifetime-price {
  color: var(--ink);
  font-size: 2rem;
}

.pricing-card > p:not(.card-kicker) {
  min-height: 2.8rem;
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.pricing-ribbon {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  padding: 0.35rem 0.5rem;
  border-radius: 9px;
  color: #674f16;
  background: rgba(239, 203, 104, 0.5);
  font-size: 0.55rem;
  font-weight: 850;
}

.pricing-ribbon.founder {
  color: #fff;
  background: var(--bg-secondary);
}

.pro-benefits,
.comparison-card {
  margin-bottom: 1rem;
  padding: clamp(1.2rem, 4vw, 2rem);
}

.compact-intro {
  align-items: center;
  margin-top: 0;
}

.compact-intro h2 {
  color: var(--ink);
}

.compact-intro .eyebrow {
  color: #607379;
}

.benefit-grid {
  display: grid;
  gap: 0.7rem;
}

.benefit-grid > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.7rem;
  padding: 1rem;
  border-radius: 18px;
  background: var(--sky-soft);
}

.benefit-grid > div:nth-child(even) {
  background: var(--mint);
}

.benefit-grid > div > span {
  display: grid;
  grid-row: 1 / 3;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  color: var(--bg);
  background: rgba(255, 255, 255, 0.68);
  place-items: center;
}

.benefit-grid strong {
  align-self: end;
  font-size: 0.86rem;
}

.benefit-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.comparison-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.comparison-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.6fr) minmax(70px, 0.7fr) minmax(70px, 0.7fr);
  min-width: 360px;
  border-bottom: 1px solid var(--line);
}

.comparison-row:last-child {
  border-bottom: 0;
}

.comparison-row > * {
  display: flex;
  min-height: 54px;
  align-items: center;
  padding: 0.65rem;
  font-size: 0.72rem;
}

.comparison-row strong {
  justify-content: center;
  border-left: 1px solid var(--line);
  text-align: center;
}

.comparison-row strong:last-child {
  color: #385c75;
  background: rgba(207, 227, 238, 0.52);
}

.comparison-head {
  color: #fff;
  background: var(--bg);
}

.comparison-head strong:last-child {
  color: var(--ink);
  background: var(--butter);
}

.pro-main-cta {
  width: 100%;
  margin-top: 1.2rem;
}

.pro-fine-print {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.65rem;
  text-align: center;
}

.zone-pro-teaser {
  display: grid;
  grid-template-columns: auto 1fr auto;
  width: 100%;
  min-height: 48px;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.25rem;
  padding: 0.65rem 0.7rem;
  border: 0;
  border-radius: 13px;
  color: #526972;
  background: linear-gradient(90deg, rgba(207, 227, 238, 0.72), rgba(239, 203, 104, 0.2));
  font-size: 0.7rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.zone-pro-teaser svg {
  width: 0.9rem;
  height: 0.9rem;
}

.routine-plan-note {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem !important;
  color: #617682 !important;
  font-size: 0.66rem !important;
}

.routine-plan-note svg {
  width: 0.78rem;
  height: 0.78rem;
}

.calendar-day.pro-locked {
  color: rgba(31, 43, 52, 0.32);
  background: rgba(31, 43, 52, 0.035);
  cursor: not-allowed;
}

.calendar-day.pro-locked::after {
  opacity: 0.25;
}

.pro-access-note,
.advanced-stats-locked {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid rgba(239, 203, 104, 0.4);
  border-radius: 20px;
  background: var(--surface-solid);
  box-shadow: var(--shadow);
}

.pro-access-note > svg,
.advanced-stats-locked > span {
  display: grid;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #70591f;
  background: rgba(239, 203, 104, 0.52);
  place-items: center;
}

.pro-access-note strong,
.advanced-stats-locked strong {
  font-size: 0.82rem;
}

.pro-access-note p,
.advanced-stats-locked p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.pro-access-note .secondary-button,
.advanced-stats-locked .secondary-button {
  grid-column: 1 / -1;
}

.advanced-stats-panel {
  margin-top: 1.25rem;
}

.advanced-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.advanced-stats-grid article {
  display: grid;
  min-height: 130px;
  align-content: center;
  justify-items: center;
  padding: 0.8rem;
  border-radius: 20px;
  background: var(--surface-solid);
  box-shadow: var(--shadow);
  text-align: center;
}

.advanced-stats-grid article > span {
  color: var(--bg-secondary);
}

.advanced-stats-grid strong {
  margin-top: 0.3rem;
  font-family: var(--font-display);
  font-size: 1.8rem;
}

.advanced-stats-grid p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.35;
}

.account-dialog {
  width: min(calc(100% - 2rem), 450px);
  padding: 0;
  border: 1px solid rgba(207, 227, 238, 0.7);
  border-radius: 26px;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 5%, rgba(207, 227, 238, 0.7), transparent 10rem),
    var(--surface-solid);
  box-shadow: 0 30px 90px rgba(5, 27, 51, 0.38);
}

.account-dialog::backdrop {
  background: rgba(8, 35, 64, 0.58);
  backdrop-filter: blur(4px);
}

.account-dialog form {
  padding: 1.4rem;
}

.account-dialog-copy {
  margin: -0.35rem 0 1.2rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.account-message {
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: 13px;
  font-size: 0.74rem;
}

.account-message.error {
  color: #7d3737;
  background: rgba(164, 84, 84, 0.12);
}

.account-message.success {
  color: #3f634d;
  background: var(--sage-light);
}

.account-mode-switch,
.account-reset-link {
  width: 100%;
  justify-content: center;
  margin-top: 0.65rem;
}

.account-reset-link {
  margin-top: 0.25rem;
  font-size: 0.72rem;
}

.account-cloud-notice {
  margin: 1rem 0 0;
  padding: 0.75rem;
  border-radius: 13px;
  color: #6a5725;
  background: rgba(239, 203, 104, 0.24);
  font-size: 0.7rem;
  line-height: 1.45;
}

.favorite-button.completed {
  border-color: rgba(232, 154, 121, 0.36);
  color: #7d4d3d;
  background: rgba(232, 154, 121, 0.2);
}

.favorite-button.completed svg {
  fill: currentColor;
}

.favorites-panel {
  margin-top: 1.2rem;
}

.favorites-list {
  display: grid;
  gap: 0.6rem;
}

.favorite-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 0.75rem;
  padding: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: var(--surface-solid);
  box-shadow: 0 10px 30px rgba(55, 75, 65, 0.06);
}

.favorite-item-icon {
  display: grid;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  color: #9a5f49;
  background: rgba(232, 154, 121, 0.2);
  place-items: center;
}

.favorite-item-icon svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.favorite-item strong {
  display: block;
  font-size: 0.84rem;
}

.favorite-item p {
  margin: 0.25rem 0 0.4rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.favorite-item small {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #526972;
  font-size: 0.65rem;
  font-weight: 800;
}

.favorite-item small svg {
  width: 0.75rem;
  height: 0.75rem;
}

.favorite-remove {
  margin: -0.2rem -0.2rem 0 0;
}

/* Final visual refinements */

.about-page::before {
  filter: blur(1px) saturate(1.08) contrast(1.16);
  transform: scale(1.008);
}

.about-page::after {
  background: rgba(247, 246, 243, 0.27);
}

body[data-active-route="about"] .topbar {
  gap: 0.8rem;
  margin-bottom: 0.85rem;
}

body[data-active-route="about"] .topbar-brand {
  width: min(78vw, 330px);
}

@media (min-width: 680px) {
  .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .pro-hero {
    grid-template-columns: minmax(0, 1fr) 230px;
  }

  .pro-hero-symbol {
    display: block;
  }

  .pro-access-note,
  .advanced-stats-locked {
    grid-template-columns: auto 1fr auto;
  }

  .pro-access-note .secondary-button,
  .advanced-stats-locked .secondary-button {
    grid-column: auto;
  }
}

@media (min-width: 1040px) {
  .topbar-brand .brand-logo,
  .topbar > .brand-lockup .brand-logo {
    filter:
      drop-shadow(0 4px 12px rgba(239, 203, 104, 0.24))
      drop-shadow(0 0 30px rgba(239, 203, 104, 0.22))
      drop-shadow(0 10px 24px rgba(95, 143, 196, 0.13));
  }

  body[data-active-route="about"] .main-content {
    padding-top: 1.35rem;
  }

  body[data-active-route="about"] .topbar {
    gap: 0.6rem;
    margin-bottom: 0.7rem;
  }
}

@media (max-width: 540px) {
  .account-chip span {
    display: none;
  }

  .account-chip {
    width: 44px;
    justify-content: center;
    padding: 0;
  }

  .pro-settings-link {
    grid-template-columns: auto 1fr auto;
  }

  .pro-price-mini {
    display: none;
  }

  .advanced-stats-grid {
    grid-template-columns: 1fr;
  }

  .advanced-stats-grid article {
    min-height: 96px;
  }
}

/* Natural growth accents */

.card-kicker,
.card .eyebrow {
  color: var(--growth-dark);
}

.quote-card {
  background:
    radial-gradient(circle at 92% 12%, rgba(166, 184, 154, 0.34), transparent 9rem),
    linear-gradient(135deg, #fbfaf7, var(--surface-solid));
}

.quote-card::before,
.progress-card::after {
  position: absolute;
  z-index: 0;
  width: 34px;
  height: 15px;
  border-radius: 100% 0 100% 0;
  background: rgba(95, 119, 88, 0.16);
  box-shadow:
    25px -13px 0 rgba(166, 184, 154, 0.2),
    47px 3px 0 rgba(95, 119, 88, 0.12);
  content: "";
  pointer-events: none;
}

.quote-card::before {
  right: 4.4rem;
  bottom: 1.35rem;
  transform: rotate(-24deg);
}

.quote-card::after {
  z-index: 0;
  border-color: rgba(166, 184, 154, 0.24);
}

.quote-card > *,
.progress-card > * {
  position: relative;
  z-index: 1;
}

.quote-icon {
  position: absolute;
  z-index: 2;
  top: 1.15rem;
  right: 1.15rem;
  color: var(--growth-dark);
  background: var(--growth-soft);
  box-shadow: inset 0 0 0 1px rgba(95, 119, 88, 0.12);
}

.progress-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(166, 184, 154, 0.22), transparent 10rem),
    linear-gradient(145deg, rgba(252, 251, 248, 0.98), rgba(231, 238, 227, 0.72)),
    var(--surface-solid);
}

.progress-card::after {
  top: 1rem;
  right: 1rem;
  transform: scale(0.82) rotate(-32deg);
}

.progress-ring {
  background: conic-gradient(
    var(--growth-dark) calc(var(--progress) * 1%),
    var(--growth-soft) 0
  );
  box-shadow: 0 12px 30px rgba(95, 119, 88, 0.12);
}

.zone-progress-track,
.routine-progress-track {
  background: var(--growth-soft);
}

.zone-progress-track span,
.routine-progress-track span {
  background: linear-gradient(90deg, var(--growth), var(--growth-dark));
}

.zone-percent,
.routine-summary-card strong {
  color: var(--growth-dark);
}

.zone-section-count {
  color: var(--growth-dark);
  background: var(--growth-soft);
}

.check-row.done,
.routine-item.done {
  background:
    linear-gradient(90deg, rgba(231, 238, 227, 0.5), rgba(247, 246, 243, 0.3)),
    var(--surface-solid);
}

.check-row.done .custom-check,
.routine-item.done .custom-check {
  border-color: var(--growth-dark);
  color: #fff;
  background: var(--growth-dark);
  box-shadow: 0 5px 14px rgba(95, 119, 88, 0.2);
}

.routine-item.done .routine-item-icon {
  color: var(--growth-dark);
  background: var(--growth-soft);
}

.routine-summary-card {
  color: var(--growth-dark);
  background:
    linear-gradient(135deg, var(--growth-soft), rgba(207, 227, 238, 0.38));
}

.history-dot {
  color: #fff;
  background: var(--growth-dark);
  box-shadow: 0 7px 18px rgba(95, 119, 88, 0.2);
}

.calendar-day.has-steps::after {
  background: var(--growth-dark);
}

.calendar-day.today {
  color: var(--growth-dark);
  box-shadow: inset 0 0 0 1.5px var(--growth);
}

.switch input:checked + span {
  background: var(--growth-dark);
}

.primary-button.completed,
.text-button.completed {
  color: var(--growth-dark);
}

.primary-button.completed {
  background: var(--growth-soft);
  box-shadow: inset 0 0 0 1px rgba(95, 119, 88, 0.12);
}

.timer-fab.complete {
  background: linear-gradient(135deg, var(--growth), var(--growth-dark));
}

.timer-celebration {
  color: #fff;
  background: var(--growth-dark);
  box-shadow: 0 0 0 12px rgba(166, 184, 154, 0.3);
}

.account-message.success {
  color: #3f634d;
  background: var(--growth-soft);
}

.pricing-ribbon.founder {
  background: var(--growth-dark);
}

.benefit-grid > div:nth-child(even) > span,
.advanced-stats-grid article:nth-child(2) > span {
  color: var(--growth-dark);
  background: var(--growth-soft);
}

/* Logo color balance
   Blue structures the interface, green supports growth, and yellow guides action. */
.mission-card::before,
.weekly-card::before {
  background: linear-gradient(
    90deg,
    var(--bg-secondary) 0 34%,
    var(--growth) 34% 67%,
    var(--butter) 67% 100%
  );
}

.weekly-card {
  position: relative;
  overflow: hidden;
}

.weekly-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  z-index: 1;
}

.quote-icon {
  color: #6b5420;
  background: rgba(239, 203, 104, 0.58);
  box-shadow:
    inset 0 0 0 1px rgba(171, 132, 33, 0.12),
    0 8px 20px rgba(239, 203, 104, 0.18);
}

.tip-card {
  background:
    radial-gradient(circle at 100% 0, rgba(239, 203, 104, 0.22), transparent 10rem),
    linear-gradient(145deg, rgba(252, 251, 248, 0.98), rgba(231, 238, 227, 0.42)),
    var(--surface-solid);
}

.tip-number,
.pro-badge,
.pricing-ribbon.recommended {
  color: #604b18;
  background: rgba(239, 203, 104, 0.62);
}

.time-pill {
  color: var(--bg);
  background: rgba(207, 227, 238, 0.88);
}

.zone-section-count,
.routine-progress-badge,
.completed-badge {
  color: var(--growth-dark);
  background: var(--growth-soft);
  border-color: rgba(95, 119, 88, 0.18);
}

.zone-card:nth-child(3n + 1) .zone-icon {
  color: var(--bg);
  background: var(--sky);
}

.zone-card:nth-child(3n + 2) .zone-icon {
  color: var(--growth-dark);
  background: var(--growth-soft);
}

.zone-card:nth-child(3n) .zone-icon {
  color: #6b5420;
  background: rgba(239, 203, 104, 0.56);
}

.routine-item:nth-child(3n + 1) .routine-item-icon {
  color: var(--bg);
  background: var(--sky);
}

.routine-item:nth-child(3n + 2) .routine-item-icon {
  color: var(--growth-dark);
  background: var(--growth-soft);
}

.routine-item:nth-child(3n) .routine-item-icon {
  color: #6b5420;
  background: rgba(239, 203, 104, 0.5);
}

.benefit-grid > div:nth-child(3n + 1) {
  background: rgba(207, 227, 238, 0.52);
}

.benefit-grid > div:nth-child(3n + 1) span {
  color: var(--bg);
  background: rgba(207, 227, 238, 0.92);
}

.benefit-grid > div:nth-child(3n + 2) {
  background: rgba(231, 238, 227, 0.78);
}

.benefit-grid > div:nth-child(3n + 2) span {
  color: var(--growth-dark);
  background: var(--growth-soft);
}

.benefit-grid > div:nth-child(3n) {
  background: rgba(239, 203, 104, 0.16);
}

.benefit-grid > div:nth-child(3n) span {
  color: #6b5420;
  background: rgba(239, 203, 104, 0.5);
}

.about-settings-link .settings-icon,
.account-icon {
  color: var(--growth-dark);
  background: var(--growth-soft);
}

.nav-item.active::after {
  background: linear-gradient(90deg, var(--growth), var(--butter));
}

.timer-fab,
.home-timer-cta,
.btn.primary:not(.completed) {
  border-color: rgba(239, 203, 104, 0.42);
}

/* Stronger sage presence inspired by Caroline's signature card */
.mission-card .primary-button:not(.completed) {
  color: var(--ink);
  background: linear-gradient(135deg, #b8c7ae, var(--growth));
  border-color: rgba(95, 119, 88, 0.2);
  box-shadow:
    0 12px 28px rgba(95, 119, 88, 0.2),
    0 0 24px rgba(166, 184, 154, 0.28);
}

.mission-card .primary-button:not(.completed):hover {
  background: linear-gradient(135deg, #c0ceb7, #a9bc9f);
  box-shadow:
    0 15px 34px rgba(95, 119, 88, 0.24),
    0 0 30px rgba(166, 184, 154, 0.34);
}

.home-timer-cta {
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 12%, rgba(247, 246, 243, 0.22), transparent 9rem),
    linear-gradient(135deg, #b8c7ae, var(--growth));
  border: 1px solid rgba(95, 119, 88, 0.16);
  box-shadow:
    0 18px 40px rgba(49, 79, 65, 0.2),
    0 0 32px rgba(166, 184, 154, 0.24),
    0 0 52px rgba(95, 143, 196, 0.1);
}

.home-timer-cta:hover {
  background:
    radial-gradient(circle at 88% 12%, rgba(247, 246, 243, 0.28), transparent 9rem),
    linear-gradient(135deg, #c0ceb7, #a9bc9f);
  box-shadow:
    0 21px 46px rgba(49, 79, 65, 0.24),
    0 0 38px rgba(166, 184, 154, 0.3),
    0 0 58px rgba(95, 143, 196, 0.12);
}

.home-timer-icon {
  color: var(--growth-dark);
  background: rgba(247, 246, 243, 0.72);
  box-shadow: inset 0 0 0 1px rgba(95, 119, 88, 0.1);
}

.home-timer-cta small {
  color: rgba(47, 58, 63, 0.72);
}

.tip-card {
  background:
    radial-gradient(circle at 100% 0, rgba(239, 203, 104, 0.24), transparent 11rem),
    linear-gradient(145deg, rgba(252, 251, 248, 0.99), rgba(248, 240, 210, 0.72)),
    var(--surface-solid);
  box-shadow:
    inset 0 0 0 1px rgba(183, 143, 42, 0.08),
    var(--shadow);
}

.tip-number {
  color: #6b5420;
  background: rgba(239, 203, 104, 0.38);
}

.progress-card {
  background:
    radial-gradient(circle at 100% 0, rgba(207, 227, 238, 0.46), transparent 11rem),
    linear-gradient(145deg, rgba(252, 251, 248, 0.99), rgba(224, 237, 244, 0.68)),
    var(--surface-solid);
  box-shadow:
    inset 0 0 0 1px rgba(95, 143, 196, 0.08),
    var(--shadow);
}

.weekly-card {
  background:
    radial-gradient(circle at 100% 0, rgba(166, 184, 154, 0.34), transparent 12rem),
    linear-gradient(145deg, rgba(252, 251, 248, 0.99), rgba(225, 235, 220, 0.72)),
    var(--surface-solid);
  box-shadow:
    inset 0 0 0 1px rgba(95, 119, 88, 0.08),
    var(--shadow);
}

.timer-fab {
  border-color: rgba(239, 203, 104, 0.42);
}
