:root {
  --ink: #13241f;
  --ink-soft: #53625c;
  --muted: #5f6d67;
  --paper: #f3f4ec;
  --paper-deep: #e8ece3;
  --card: rgba(255, 255, 252, 0.82);
  --white: #fffefa;
  --forest-950: #102b26;
  --forest-900: #173d35;
  --forest-800: #225246;
  --forest-700: #31685a;
  --mint: #bfe5cf;
  --lime: #d9f26a;
  --lime-soft: #eff8bd;
  --amber: #f1c272;
  --rose: #e89581;
  --sky: #a7cce2;
  --line: rgba(19, 36, 31, 0.12);
  --line-strong: rgba(19, 36, 31, 0.2);
  --shadow-sm: 0 8px 28px rgba(24, 48, 40, 0.08);
  --shadow-md: 0 18px 54px rgba(24, 48, 40, 0.13);
  --shadow-lg: 0 30px 90px rgba(13, 34, 29, 0.2);
  --radius-xs: 10px;
  --radius-sm: 15px;
  --radius-md: 22px;
  --radius-lg: 30px;
  --radius-xl: 42px;
  --content: 1240px;
  --topbar-height: 76px;
  --ease: cubic-bezier(.2, .75, .25, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 8%, rgba(191, 229, 207, .5), transparent 25rem),
    radial-gradient(circle at 92% 38%, rgba(217, 242, 106, .12), transparent 23rem),
    var(--paper);
}

body.has-sheet,
body.has-session {
  overflow: hidden;
}

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

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

button {
  border: 0;
}

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

svg {
  display: block;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 500;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-150%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--forest-950);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--lime);
}

[hidden] {
  display: none !important;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .18;
  pointer-events: none;
}

.ambient-one {
  top: -180px;
  right: -120px;
  background: var(--mint);
}

.ambient-two {
  bottom: -210px;
  left: -160px;
  background: var(--lime);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  min-height: var(--topbar-height);
  padding: 12px clamp(18px, 3vw, 52px);
  border-bottom: 1px solid rgba(19, 36, 31, .08);
  background: rgba(247, 248, 242, .82);
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 11px;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: var(--forest-900);
  color: var(--lime);
  box-shadow: 0 8px 22px rgba(23, 61, 53, .18);
}

.brand-mark svg {
  width: 31px;
  height: 31px;
}

.brand-copy {
  display: grid;
  line-height: 1.05;
  text-align: left;
}

.brand-copy strong {
  font-size: 1.03rem;
  letter-spacing: -.025em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .02em;
}

.desktop-nav {
  display: flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(19, 36, 31, .08);
  border-radius: 17px;
  background: rgba(255, 255, 252, .72);
  box-shadow: 0 6px 18px rgba(20, 42, 35, .04);
}

.desktop-nav-item {
  padding: 9px 15px;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 650;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}

.desktop-nav-item:hover {
  color: var(--ink);
}

.desktop-nav-item.is-active {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(17, 40, 33, .09);
}

.top-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
}

.source-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid rgba(19, 36, 31, .09);
  border-radius: 14px;
  background: rgba(255, 255, 252, .72);
  color: var(--ink-soft);
  cursor: pointer;
}

.source-dot {
  width: 8px;
  height: 8px;
  border: 2px solid rgba(255, 255, 255, .85);
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 2px rgba(241, 194, 114, .24);
}

.source-pill.is-ready .source-dot {
  background: #56af7e;
  box-shadow: 0 0 0 2px rgba(86, 175, 126, .2);
}

.source-pill.is-error .source-dot {
  background: var(--rose);
  box-shadow: 0 0 0 2px rgba(232, 149, 129, .2);
}

.source-label {
  color: var(--ink);
  font-size: .75rem;
  font-weight: 700;
}

.source-state {
  font-size: .7rem;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(19, 36, 31, .09);
  border-radius: 14px;
  background: rgba(255, 255, 252, .72);
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s ease;
}

.icon-button:hover {
  background: var(--white);
  transform: translateY(-1px);
}

.icon-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#main-content {
  width: min(calc(100% - 40px), var(--content));
  min-height: calc(100dvh - var(--topbar-height));
  margin: 0 auto;
  padding: clamp(34px, 5vw, 72px) 0 120px;
}

.loading-state {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 56dvh;
  color: var(--ink-soft);
}

.loading-state p {
  margin: 18px 0 0;
  font-size: .9rem;
}

.loading-mark {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(23, 61, 53, .14);
  border-top-color: var(--forest-700);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.view {
  animation: view-in .45s var(--ease) both;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--forest-700);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow-light {
  color: var(--lime);
}

.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}

.page-heading h1,
.today-copy h1 {
  margin: 0;
  font-size: clamp(2.7rem, 6.1vw, 6rem);
  font-weight: 690;
  letter-spacing: -.07em;
  line-height: .93;
}

.page-heading h1 {
  font-size: clamp(2.4rem, 4vw, 4.2rem);
}

.page-heading > p,
.today-copy > p {
  max-width: 580px;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.6;
}

.today-hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(490px, 1.1fr);
  align-items: stretch;
  gap: clamp(28px, 4vw, 64px);
}

.today-copy {
  display: flex;
  min-height: 515px;
  flex-direction: column;
  justify-content: center;
  padding: 14px 0 22px;
}

.phase-chip,
.soft-chip,
.status-chip,
.activity-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(19, 36, 31, .1);
  border-radius: 999px;
  background: rgba(255, 255, 252, .68);
  color: var(--ink-soft);
  font-size: .68rem;
  font-weight: 700;
}

.phase-chip {
  gap: 8px;
  margin-bottom: 23px;
  padding: 7px 12px 7px 8px;
  background: var(--lime-soft);
  color: var(--forest-900);
}

.phase-chip::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--forest-700);
}

.today-copy h1 span {
  display: block;
  color: var(--forest-700);
}

.moment-prompt {
  display: flex;
  align-items: center;
  gap: 13px;
  width: fit-content;
  max-width: 100%;
  margin-top: 34px;
  padding: 11px 14px 11px 11px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 252, .57);
  color: var(--ink-soft);
  font-size: .79rem;
}

.moment-prompt-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 10px;
  background: var(--paper-deep);
  color: var(--forest-700);
}

.moment-prompt-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.decision-card {
  position: relative;
  min-height: 515px;
  overflow: hidden;
  padding: clamp(26px, 3vw, 42px);
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(130deg, rgba(255, 255, 255, .04), transparent 42%),
    var(--forest-900);
  color: var(--white);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

.decision-card::before {
  position: absolute;
  z-index: -1;
  right: -16%;
  bottom: -8%;
  width: 78%;
  height: 90%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 600'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.09'%3E%3Cpath d='M-30 490c89-82 144-36 203-112s112-31 162-94 111-44 173-118'/%3E%3Cpath d='M-40 525c96-79 151-31 211-105s117-34 169-90 109-42 176-109'/%3E%3Cpath d='M-50 561c101-75 158-26 219-98s120-35 175-85 107-37 177-99'/%3E%3Cpath d='M-62 598c108-69 167-20 228-91s123-34 181-78 105-31 179-87'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: cover;
  content: "";
  opacity: .9;
}

.decision-card::after {
  position: absolute;
  z-index: -2;
  top: -120px;
  right: -100px;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: rgba(217, 242, 106, .18);
  content: "";
  filter: blur(20px);
}

.decision-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.decision-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.activity-chip {
  border-color: rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .86);
}

.activity-chip.is-lime {
  border-color: rgba(217, 242, 106, .24);
  background: rgba(217, 242, 106, .12);
  color: var(--lime);
}

.recommendation-index {
  color: rgba(255, 255, 255, .38);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .16em;
}

.decision-title {
  max-width: 520px;
  margin: 48px 0 0;
}

.decision-title h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 670;
  letter-spacing: -.055em;
  line-height: .98;
}

.decision-title p {
  max-width: 450px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, .68);
  font-size: .95rem;
  line-height: 1.55;
}

.decision-duration-row {
  display: flex;
  align-items: end;
  gap: 18px;
  margin-top: 30px;
}

.decision-duration {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.decision-duration strong {
  font-size: clamp(3.4rem, 7vw, 5.8rem);
  font-weight: 620;
  letter-spacing: -.075em;
  line-height: .86;
}

.decision-duration span {
  color: rgba(255, 255, 255, .64);
  font-size: .9rem;
  font-weight: 650;
}

.intensity-meter {
  display: grid;
  gap: 7px;
  padding-bottom: 4px;
}

.intensity-bars {
  display: flex;
  gap: 4px;
}

.intensity-bars i {
  display: block;
  width: 22px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
}

.intensity-bars i.is-on {
  background: var(--lime);
}

.intensity-meter small {
  color: rgba(255, 255, 255, .55);
  font-size: .64rem;
}

.slot-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 25px;
  padding-top: 21px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .76);
  font-size: .77rem;
}

.slot-line svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--lime);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.slot-line strong {
  color: var(--white);
}

.slot-line button {
  margin-left: auto;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  color: var(--white);
  font-size: .68rem;
  font-weight: 700;
  cursor: pointer;
}

.decision-actions {
  display: grid;
  grid-template-columns: 1.15fr .9fr auto;
  gap: 9px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 17px;
  border-radius: 14px;
  font-size: .78rem;
  font-weight: 760;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s ease, background .2s ease, opacity .2s ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-primary {
  background: var(--lime);
  color: var(--forest-950);
  box-shadow: 0 10px 25px rgba(217, 242, 106, .16);
}

.button-primary:hover:not(:disabled) {
  background: #e3f77d;
  box-shadow: 0 13px 30px rgba(217, 242, 106, .21);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .09);
  color: var(--white);
}

.button-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, .14);
}

.button-light {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.button-ghost {
  min-width: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .15);
  background: transparent;
  color: rgba(255, 255, 255, .76);
}

.button-text {
  min-height: auto;
  padding: 0;
  background: none;
  color: var(--forest-700);
}

.button-danger {
  border: 1px solid rgba(174, 69, 52, .18);
  background: rgba(232, 149, 129, .12);
  color: #8a3428;
}

.proof-strip {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 1px;
  margin-top: clamp(34px, 5vw, 64px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--line);
  box-shadow: var(--shadow-sm);
}

.proof-item {
  min-height: 126px;
  padding: 23px 25px;
  background: rgba(255, 255, 252, .78);
}

.proof-item:first-child {
  background: var(--white);
}

.proof-item p {
  margin: 0;
  color: var(--muted);
  font-size: .67rem;
  font-weight: 760;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.proof-item strong {
  display: block;
  margin-top: 13px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.04em;
}

.proof-item small {
  display: block;
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: .72rem;
  line-height: 1.35;
}

.proof-progress {
  height: 5px;
  margin-top: 17px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--paper-deep);
}

.proof-progress span {
  display: block;
  width: var(--progress, 32%);
  height: 100%;
  border-radius: inherit;
  background: var(--forest-700);
}

.section-block {
  margin-top: clamp(52px, 8vw, 98px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 23px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  font-weight: 680;
  letter-spacing: -.05em;
  line-height: 1.04;
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
}

.why-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 16px;
}

.why-card,
.mini-card,
.profile-card,
.progress-card,
.week-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.why-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 17px;
  padding: 26px;
}

.why-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 17px;
  background: var(--forest-900);
  color: var(--lime);
}

.why-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-card h3,
.mini-card h3,
.profile-card h2,
.profile-card h3,
.progress-card h2,
.week-panel h2 {
  margin: 0;
  font-weight: 680;
  letter-spacing: -.035em;
}

.why-card p,
.mini-card p,
.profile-card p,
.progress-card p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: .82rem;
  line-height: 1.55;
}

.why-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.why-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: .75rem;
}

.why-list li::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--forest-700);
  content: "";
}

.mini-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
}

.mini-card-accent {
  background: var(--lime-soft);
}

.mini-card .mini-value {
  display: block;
  margin-top: 18px;
  font-size: 2.25rem;
  font-weight: 650;
  letter-spacing: -.06em;
}

.mini-label {
  color: var(--muted);
  font-size: .67rem;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.alternatives-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}

.alternative-card {
  display: grid;
  min-height: 190px;
  grid-template-rows: auto 1fr auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 252, .68);
  text-align: left;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s ease, border .25s ease;
}

.alternative-card:hover {
  border-color: rgba(49, 104, 90, .28);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.alternative-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.alternative-card h3 {
  align-self: end;
  margin: 30px 0 10px;
  font-size: 1.2rem;
  letter-spacing: -.035em;
}

.alternative-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .75rem;
  line-height: 1.45;
}

.alternative-arrow {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
}

.alternative-arrow svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bottom-nav {
  display: none;
}

/* Week */
.week-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 18px;
}

.week-panel {
  padding: 18px;
}

.week-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 7px 7px 19px;
}

.week-toolbar h2 {
  font-size: 1.22rem;
}

.week-toolbar p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .72rem;
}

.week-list {
  display: grid;
  gap: 7px;
}

.day-row {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  align-items: center;
  gap: 15px;
  min-height: 84px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 17px;
  background: rgba(243, 244, 236, .58);
}

.day-row.is-today {
  border-color: rgba(49, 104, 90, .19);
  background: var(--white);
  box-shadow: 0 7px 20px rgba(20, 42, 35, .06);
}

.day-date {
  display: grid;
  gap: 2px;
  padding-left: 3px;
}

.day-date span {
  color: var(--muted);
  font-size: .66rem;
  font-weight: 760;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.day-date strong {
  font-size: 1.25rem;
  letter-spacing: -.04em;
}

.day-content {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.day-workout {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .79rem;
  font-weight: 700;
}

.day-workout-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--forest-700);
}

.day-workout-dot.outdoor { background: var(--sky); }
.day-workout-dot.recovery { background: var(--amber); }
.day-workout-dot.rest { background: var(--line-strong); }

.day-context {
  overflow: hidden;
  color: var(--muted);
  font-size: .68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.day-slot {
  min-width: 92px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 252, .65);
  color: var(--ink-soft);
  font-size: .69rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.day-slot.is-booked {
  border-color: rgba(49, 104, 90, .2);
  background: var(--forest-900);
  color: var(--white);
}

.week-sidebar {
  display: grid;
  gap: 13px;
}

.week-score {
  position: relative;
  overflow: hidden;
  padding: 27px;
  border-radius: var(--radius-md);
  background: var(--forest-900);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.week-score::after {
  position: absolute;
  right: -50px;
  bottom: -70px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(217, 242, 106, .18);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(217, 242, 106, .04), 0 0 0 45px rgba(217, 242, 106, .025);
  content: "";
}

.week-score .eyebrow {
  color: var(--lime);
}

.week-score strong {
  display: block;
  margin-top: 24px;
  font-size: 3.6rem;
  font-weight: 620;
  letter-spacing: -.07em;
}

.week-score h3 {
  margin: 5px 0 0;
  font-size: 1.2rem;
}

.week-score p {
  max-width: 245px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .65);
  font-size: .75rem;
  line-height: 1.5;
}

.calendar-freshness,
.policy-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
}

.calendar-freshness-top {
  display: flex;
  align-items: center;
  gap: 11px;
}

.calendar-freshness-top .source-dot {
  flex: 0 0 auto;
}

.calendar-freshness h3,
.policy-card h3 {
  margin: 0;
  font-size: .9rem;
  letter-spacing: -.02em;
}

.calendar-freshness p,
.policy-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .7rem;
  line-height: 1.5;
}

.calendar-freshness .button,
.policy-card .button {
  width: 100%;
  margin-top: 18px;
}

/* Progress */
.progress-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 17px;
}

.progress-story {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background: var(--forest-900);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.progress-story::after {
  position: absolute;
  right: -20px;
  bottom: -80px;
  width: 380px;
  height: 300px;
  background: linear-gradient(155deg, transparent 43%, rgba(217, 242, 106, .14) 44%, transparent 45%), linear-gradient(148deg, transparent 50%, rgba(255, 255, 255, .08) 51%, transparent 52%);
  content: "";
}

.progress-story .eyebrow {
  color: var(--lime);
}

.progress-story h2 {
  max-width: 680px;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: .93;
}

.progress-story > p {
  max-width: 550px;
  color: rgba(255, 255, 255, .67);
  font-size: .92rem;
}

.continuity-row {
  position: absolute;
  z-index: 1;
  right: clamp(28px, 4vw, 48px);
  bottom: clamp(28px, 4vw, 48px);
  left: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 6px;
}

.continuity-day {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .13);
}

.continuity-day.done { background: var(--lime); }
.continuity-day.partial { background: var(--amber); }

.progress-summary {
  display: grid;
  gap: 13px;
}

.progress-card {
  padding: 25px;
}

.progress-card .metric-big {
  display: block;
  margin-top: 19px;
  font-size: 3rem;
  font-weight: 650;
  letter-spacing: -.07em;
}

.progress-card .metric-big small {
  color: var(--muted);
  font-size: .8rem;
  letter-spacing: normal;
}

.metric-trend {
  display: inline-flex;
  gap: 5px;
  margin-top: 8px;
  color: var(--forest-700);
  font-size: .68rem;
  font-weight: 700;
}

.capacity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
}

.capacity-card {
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
}

.capacity-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.capacity-card-top span {
  color: var(--muted);
  font-size: .67rem;
  font-weight: 760;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.capacity-ring {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 4px solid var(--paper-deep);
  border-top-color: var(--forest-700);
  border-right-color: var(--forest-700);
  border-radius: 50%;
  color: var(--forest-700);
  font-size: .56rem;
  font-weight: 800;
}

.capacity-card strong {
  display: block;
  margin-top: 28px;
  font-size: 1.35rem;
  letter-spacing: -.045em;
}

.capacity-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: .7rem;
  line-height: 1.4;
}

.history-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
}

.history-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  gap: 15px;
  min-height: 74px;
  padding: 13px 21px;
  border-bottom: 1px solid var(--line);
}

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

.history-date {
  color: var(--muted);
  font-size: .69rem;
  font-weight: 700;
  text-transform: uppercase;
}

.history-title strong {
  display: block;
  font-size: .8rem;
}

.history-title small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: .67rem;
}

.history-feeling {
  padding: 7px 9px;
  border-radius: 9px;
  background: var(--lime-soft);
  color: var(--forest-900);
  font-size: .66rem;
  font-weight: 740;
}

/* Profile */
.profile-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

.profile-aside {
  position: sticky;
  top: calc(var(--topbar-height) + 24px);
}

.profile-identity {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--forest-900);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 22px;
  background: rgba(255, 255, 255, .08);
  color: var(--lime);
  font-size: 1.65rem;
  font-weight: 760;
}

.profile-identity h2 {
  margin: 22px 0 0;
  font-size: 1.65rem;
  letter-spacing: -.05em;
}

.profile-identity p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, .62);
  font-size: .74rem;
}

.profile-identity .phase-chip {
  margin: 24px 0 0;
  border-color: rgba(217, 242, 106, .2);
  background: rgba(217, 242, 106, .1);
  color: var(--lime);
}

.profile-menu {
  display: grid;
  gap: 5px;
  margin-top: 13px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
}

.profile-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 43px;
  padding: 0 12px;
  border-radius: 12px;
  background: transparent;
  color: var(--ink-soft);
  font-size: .74rem;
  font-weight: 700;
  cursor: pointer;
}

.profile-menu button.is-active {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(17, 40, 33, .06);
}

.profile-content {
  display: grid;
  gap: 14px;
}

.profile-logout {
  justify-self: start;
  margin-top: 4px;
}

.profile-card {
  padding: clamp(23px, 3vw, 34px);
}

.profile-card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.profile-card-header h2 {
  font-size: 1.25rem;
}

.profile-card-header .button {
  min-height: 38px;
}

.profile-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--line);
}

.profile-fact {
  min-height: 88px;
  padding: 17px 19px;
  background: rgba(255, 255, 252, .8);
}

.profile-fact span {
  color: var(--muted);
  font-size: .65rem;
  font-weight: 730;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.profile-fact strong {
  display: block;
  margin-top: 9px;
  font-size: .8rem;
  line-height: 1.4;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 21px;
}

.profile-tag {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: .7rem;
  font-weight: 680;
}

.integration-row,
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}

.integration-row:last-child,
.setting-row:last-child { border-bottom: 0; padding-bottom: 0; }

.integration-copy {
  display: flex;
  align-items: center;
  gap: 14px;
}

.integration-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: var(--paper-deep);
  color: var(--forest-700);
}

.integration-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.integration-copy strong,
.setting-copy strong {
  display: block;
  font-size: .79rem;
}

.integration-copy small,
.setting-copy small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.4;
}

.toggle {
  position: relative;
  width: 44px;
  height: 25px;
  flex: 0 0 auto;
  padding: 0;
  border-radius: 999px;
  background: var(--paper-deep);
  cursor: pointer;
}

.toggle::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 7px rgba(16, 43, 38, .17);
  content: "";
  transition: transform .22s var(--ease);
}

.toggle[aria-pressed="true"] {
  background: var(--forest-700);
}

.toggle[aria-pressed="true"]::after {
  transform: translateX(19px);
}

/* Sheet */
.sheet-backdrop {
  position: fixed;
  z-index: 300;
  inset: 0;
  background: rgba(9, 25, 21, .38);
  backdrop-filter: blur(5px);
  animation: fade-in .2s ease both;
}

@keyframes fade-in { from { opacity: 0; } }

.sheet {
  position: fixed;
  z-index: 310;
  top: 12px;
  right: 12px;
  bottom: 12px;
  width: min(490px, calc(100% - 24px));
  overflow-y: auto;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 30px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  animation: sheet-in .36s var(--ease) both;
}

@keyframes sheet-in {
  from { opacity: 0; transform: translateX(24px) scale(.98); }
}

.sheet-handle {
  display: none;
}

.sheet-close {
  position: absolute;
  top: 21px;
  right: 21px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  cursor: pointer;
}

.sheet-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.sheet-content-header {
  padding-right: 42px;
}

.sheet-content-header h2 {
  margin: 0;
  font-size: 1.7rem;
  letter-spacing: -.05em;
}

.sheet-content-header p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: .79rem;
  line-height: 1.55;
}

.sheet-section {
  margin-top: 30px;
}

.sheet-section h3 {
  margin: 0 0 13px;
  font-size: .77rem;
  letter-spacing: -.01em;
}

.choice-list {
  display: grid;
  gap: 8px;
}

.choice-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  min-height: 67px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
  text-align: left;
  cursor: pointer;
}

.choice-card:hover { border-color: rgba(49, 104, 90, .26); }

.choice-card-icon {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 12px;
  background: var(--white);
  color: var(--forest-700);
  font-size: .68rem;
  font-weight: 800;
}

.choice-card strong {
  display: block;
  font-size: .75rem;
}

.choice-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .66rem;
}

.choice-card svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
}

.coach-thread {
  display: grid;
  gap: 13px;
  margin-top: 28px;
}

.coach-message {
  max-width: 88%;
  padding: 14px 16px;
  border-radius: 18px 18px 18px 5px;
  background: var(--paper-deep);
  color: var(--ink-soft);
  font-size: .77rem;
  line-height: 1.55;
}

.coach-message.is-user {
  justify-self: end;
  border-radius: 18px 18px 5px;
  background: var(--forest-900);
  color: var(--white);
}

.quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.quick-prompts button {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink-soft);
  font-size: .67rem;
  font-weight: 680;
  cursor: pointer;
}

.coach-compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.coach-compose input,
.sheet-field input,
.sheet-field select,
.sheet-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  font-size: .75rem;
}

.coach-compose button {
  width: 46px;
  border-radius: 13px;
  background: var(--forest-900);
  color: var(--lime);
  cursor: pointer;
}

.coach-compose svg {
  width: 18px;
  height: 18px;
  margin: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sheet-form {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.sheet-field {
  display: grid;
  gap: 8px;
}

.sheet-field > span,
.sheet-legend {
  color: var(--ink-soft);
  font-size: .69rem;
  font-weight: 700;
}

.sheet-field textarea {
  min-height: 90px;
  padding-top: 12px;
  resize: vertical;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.segmented button {
  min-height: 39px;
  padding: 0 8px;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
  cursor: pointer;
}

.segmented button.is-selected {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(17, 40, 33, .07);
}

.safety-note {
  display: flex;
  gap: 11px;
  padding: 14px;
  border: 1px solid rgba(241, 194, 114, .25);
  border-radius: 14px;
  background: rgba(241, 194, 114, .12);
  color: #715124;
  font-size: .69rem;
  line-height: 1.45;
}

.safety-note svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.onboarding-step {
  display: grid;
  gap: 20px;
  margin-top: 27px;
}

.onboarding-options {
  display: grid;
  gap: 8px;
}

.onboarding-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  font-size: .74rem;
  font-weight: 650;
  cursor: pointer;
}

.onboarding-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--forest-700);
}

.onboarding-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 25px;
}

.onboarding-progress i {
  width: 24px;
  height: 5px;
  border-radius: 999px;
  background: var(--paper-deep);
}

.onboarding-progress i.is-active { background: var(--forest-700); }

/* Session */
.session-overlay {
  position: fixed;
  z-index: 400;
  inset: 0;
  overflow-y: auto;
  background: var(--forest-950);
  color: var(--white);
  animation: session-in .45s var(--ease) both;
}

@keyframes session-in {
  from { opacity: 0; transform: scale(.985); }
}

.session-shell {
  display: grid;
  width: min(100% - 40px, 980px);
  min-height: 100dvh;
  margin: 0 auto;
  grid-template-rows: auto 1fr auto;
  padding: 24px 0 34px;
}

.session-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.session-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.session-brand .brand-mark {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .07);
}

.session-brand .brand-mark svg { width: 27px; height: 27px; }

.session-brand strong { font-size: .83rem; }

.session-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 13px;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .72);
  font-size: .7rem;
  font-weight: 700;
  cursor: pointer;
}

.session-close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.session-stage {
  display: grid;
  align-content: center;
  padding: 54px 0;
}

.session-counter {
  color: var(--lime);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.session-stage h1 {
  max-width: 820px;
  margin: 20px 0 0;
  font-size: clamp(3rem, 8vw, 7.5rem);
  font-weight: 620;
  letter-spacing: -.075em;
  line-height: .88;
}

.session-instruction {
  max-width: 600px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .62);
  font-size: clamp(.95rem, 1.8vw, 1.15rem);
  line-height: 1.55;
}

.session-dose {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 31px;
}

.session-dose span {
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .76);
  font-size: .74rem;
  font-weight: 700;
}

.session-progress {
  display: flex;
  gap: 5px;
}

.session-progress span {
  height: 5px;
  flex: 1;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
}

.session-progress span.is-done,
.session-progress span.is-current { background: var(--lime); }

.session-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
}

.session-next {
  min-height: 58px;
  padding: 0 24px;
  border-radius: 16px;
  background: var(--lime);
  color: var(--forest-950);
  font-weight: 780;
  cursor: pointer;
}

.session-note {
  color: rgba(255, 255, 255, .48);
  font-size: .69rem;
}

.completion-card {
  display: grid;
  max-width: 680px;
  margin: auto;
  text-align: center;
}

.completion-mark {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin: 0 auto 28px;
  border-radius: 28px;
  background: var(--lime);
  color: var(--forest-950);
}

.completion-mark svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.completion-card h1 {
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
}

.completion-card > p {
  max-width: 480px;
  margin: 20px auto 0;
  color: rgba(255, 255, 255, .65);
  line-height: 1.55;
}

.feedback-scale {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 36px;
}

.feedback-scale button {
  min-height: 70px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 15px;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .72);
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
}

.feedback-scale button.is-selected {
  border-color: var(--lime);
  background: rgba(217, 242, 106, .1);
  color: var(--lime);
}

/* Toast */
.toast-region {
  position: fixed;
  z-index: 600;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 9px;
  width: min(360px, calc(100% - 40px));
}

.toast {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 15px;
  background: var(--forest-950);
  color: var(--white);
  box-shadow: var(--shadow-md);
  animation: toast-in .3s var(--ease) both;
}

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

.toast-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
}

.toast p {
  margin: 0;
  font-size: .73rem;
  line-height: 1.4;
}

/* Login */
.login-page {
  overflow: hidden;
  background: var(--paper);
}

.login-shell {
  display: grid;
  min-height: 100dvh;
  grid-template-columns: minmax(450px, 1.08fr) minmax(480px, .92fr);
}

.login-story {
  position: relative;
  display: flex;
  min-height: 100dvh;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 4vw, 62px);
  background:
    radial-gradient(circle at 75% 25%, rgba(217, 242, 106, .16), transparent 29%),
    linear-gradient(155deg, #24594c 0%, var(--forest-950) 68%);
  color: var(--white);
}

.login-topography {
  position: absolute;
  inset: 0;
  color: var(--mint);
  pointer-events: none;
}

.login-topography svg {
  width: 100%;
  height: 100%;
}

.login-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-mark-light {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .17);
  background: rgba(255, 255, 255, .08);
}

.login-brand > strong {
  font-size: 1.1rem;
  letter-spacing: -.025em;
}

.login-story-copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding-bottom: 4vh;
}

.login-story-copy h1 {
  margin: 0;
  font-size: clamp(4rem, 7.2vw, 8.2rem);
  font-weight: 630;
  letter-spacing: -.075em;
  line-height: .84;
}

.login-story-copy > p:not(.eyebrow) {
  max-width: 510px;
  margin: 29px 0 0;
  color: rgba(255, 255, 255, .67);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.6;
}

.login-promise {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: start;
  gap: 15px;
  max-width: 490px;
  margin-top: 45px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .13);
}

.login-promise > span {
  color: var(--lime);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
}

.login-promise p {
  margin: 0;
  color: rgba(255, 255, 255, .58);
  font-size: .76rem;
  line-height: 1.5;
}

.login-promise strong { color: var(--white); }

.login-panel {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 42px;
}

.login-form-wrap {
  width: min(100%, 430px);
}

.login-form-wrap h2 {
  margin: 0;
  font-size: clamp(2.3rem, 4vw, 3.7rem);
  font-weight: 670;
  letter-spacing: -.065em;
  line-height: .96;
}

.login-intro {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: .88rem;
  line-height: 1.55;
}

.login-form {
  display: grid;
  gap: 17px;
  margin-top: 38px;
}

.field {
  display: grid;
  gap: 8px;
}

.field > span:first-child {
  color: var(--ink-soft);
  font-size: .7rem;
  font-weight: 740;
}

.field input {
  width: 100%;
  height: 53px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 252, .65);
  outline: 0;
  transition: border .2s ease, box-shadow .2s ease, background .2s ease;
}

.field input:focus {
  border-color: var(--forest-700);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(49, 104, 90, .1);
}

.field input::placeholder { color: #9aa49f; }

.password-field {
  position: relative;
  display: block;
}

.password-field input { padding-right: 52px; }

.password-field button {
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.password-field svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-error {
  margin: -4px 0 0;
  padding: 11px 13px;
  border: 1px solid rgba(174, 69, 52, .16);
  border-radius: 11px;
  background: rgba(232, 149, 129, .12);
  color: #873f33;
  font-size: .7rem;
  line-height: 1.45;
}

.button-login {
  min-height: 54px;
  margin-top: 5px;
  background: var(--forest-900);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(23, 61, 53, .18);
}

.button-login:hover:not(:disabled) { background: var(--forest-800); }

.button-login svg { margin-left: auto; }

.button-login.is-loading::before {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, .3);
  border-top-color: var(--white);
  border-radius: 50%;
  content: "";
  animation: spin .7s linear infinite;
}

.login-security {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.login-security svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--forest-700);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-security p {
  margin: 0;
  color: var(--muted);
  font-size: .66rem;
  line-height: 1.5;
}

/* Error and empty */
.empty-state {
  display: grid;
  min-height: 50dvh;
  place-items: center;
  text-align: center;
}

.empty-state-inner {
  max-width: 480px;
}

.empty-state-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: auto;
  border-radius: 21px;
  background: var(--lime-soft);
  color: var(--forest-700);
  font-size: 1.4rem;
}

.empty-state h1 {
  margin: 23px 0 0;
  font-size: 2rem;
  letter-spacing: -.05em;
}

.empty-state p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: .84rem;
  line-height: 1.55;
}

.empty-state .button { margin-top: 23px; }

@media (max-width: 1050px) {
  .today-hero {
    grid-template-columns: 1fr;
  }

  .today-copy {
    min-height: auto;
    padding: 20px 0 0;
  }

  .today-copy h1 { max-width: 760px; }
  .decision-card { min-height: 500px; }
  .proof-strip { grid-template-columns: repeat(2, 1fr); }
  .week-layout { grid-template-columns: 1fr; }
  .week-sidebar { grid-template-columns: 1fr 1fr; }
  .progress-hero { grid-template-columns: 1fr; }
  .progress-summary { grid-template-columns: 1fr 1fr; }
  .capacity-grid { grid-template-columns: repeat(2, 1fr); }
  .login-shell { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  :root { --topbar-height: 68px; }

  .topbar {
    grid-template-columns: 1fr auto;
    padding: 10px 16px;
  }

  .desktop-nav,
  .logout-link,
  .source-label { display: none; }

  .source-pill {
    min-height: 38px;
    padding: 0 10px;
  }

  .brand-mark { width: 43px; height: 43px; border-radius: 14px; }
  .brand-mark svg { width: 29px; height: 29px; }

  #main-content {
    width: min(calc(100% - 28px), var(--content));
    padding-top: 29px;
    padding-bottom: 118px;
  }

  .bottom-nav {
    position: fixed;
    z-index: 150;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    display: grid;
    height: 70px;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    padding: 6px 7px;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 23px;
    background: rgba(253, 253, 249, .89);
    box-shadow: 0 16px 45px rgba(16, 43, 38, .18);
    backdrop-filter: blur(22px) saturate(1.2);
    -webkit-backdrop-filter: blur(22px) saturate(1.2);
  }

  .bottom-nav-item,
  .bottom-main-action {
    display: grid;
    place-items: center;
    gap: 3px;
    min-width: 0;
    padding: 5px 0;
    background: transparent;
    color: var(--ink-soft);
    font-size: .57rem;
    font-weight: 680;
    cursor: pointer;
  }

  .bottom-nav-item svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .bottom-nav-item.is-active { color: var(--forest-900); }

  .bottom-main-action {
    position: relative;
    align-self: end;
    color: var(--forest-900);
  }

  .bottom-main-action > span {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-top: -27px;
    border: 5px solid var(--paper);
    border-radius: 50%;
    background: var(--forest-900);
    color: var(--lime);
    box-shadow: 0 8px 20px rgba(16, 43, 38, .22);
  }

  .bottom-main-action svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
    stroke: none;
  }

  .bottom-main-action small { margin-top: 1px; font-size: .55rem; }

  .why-grid { grid-template-columns: 1fr; }
  .alternatives-grid { grid-template-columns: 1fr 1fr; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-aside { position: static; }
  .profile-menu { display: none; }

  .login-page { overflow: auto; }
  .login-shell { grid-template-columns: 1fr; }
  .login-story { min-height: 42dvh; padding: 25px 24px 35px; }
  .login-story-copy { padding: 40px 0 0; }
  .login-story-copy h1 { font-size: clamp(3.6rem, 15vw, 6rem); }
  .login-story-copy > p:not(.eyebrow) { margin-top: 19px; font-size: .88rem; }
  .login-promise { display: none; }
  .login-panel { min-height: auto; padding: 42px 24px max(42px, env(safe-area-inset-bottom)); }
}

@media (max-width: 600px) {
  .brand-copy small { display: none; }
  .brand-copy strong { font-size: .96rem; }
  .top-actions { gap: 6px; }
  .source-state { font-size: .64rem; }
  .source-pill { max-width: 112px; }
  .icon-button { width: 38px; height: 38px; }

  .today-copy h1,
  .page-heading h1 { font-size: clamp(2.55rem, 13vw, 4.4rem); }
  .today-copy > p { font-size: .94rem; }
  .today-copy h1 span { display: inline; }
  .phase-chip { margin-bottom: 19px; }
  .moment-prompt { margin-top: 25px; font-size: .7rem; }

  .decision-card {
    min-height: auto;
    padding: 24px 20px 21px;
    border-radius: 28px;
  }

  .decision-title { margin-top: 37px; }
  .decision-title h2 { font-size: 2.28rem; }
  .decision-title p { font-size: .8rem; }
  .decision-duration-row { margin-top: 26px; }
  .decision-duration strong { font-size: 4rem; }
  .slot-line { flex-wrap: wrap; }
  .slot-line button { margin-left: 28px; }
  .decision-actions { grid-template-columns: 1fr 1fr; }
  .decision-actions .button-ghost { grid-column: 1 / -1; width: 100%; }

  .proof-strip { grid-template-columns: 1fr 1fr; margin-top: 29px; }
  .proof-item { min-height: 113px; padding: 18px; }
  .proof-item strong { font-size: 1.15rem; }
  .proof-item small { font-size: .65rem; }

  .section-block { margin-top: 57px; }
  .section-heading { align-items: start; flex-direction: column; gap: 8px; }
  .why-card { grid-template-columns: 44px 1fr; padding: 20px; }
  .why-icon { width: 44px; height: 44px; border-radius: 14px; }
  .why-icon svg { width: 21px; height: 21px; }
  .alternatives-grid { grid-template-columns: 1fr; }
  .alternative-card { min-height: 155px; }

  .page-heading { align-items: start; flex-direction: column; margin-bottom: 25px; }
  .page-heading .button { width: 100%; }
  .week-panel { padding: 10px; }
  .week-toolbar { padding: 8px 8px 14px; }
  .day-row { grid-template-columns: 57px 1fr; gap: 10px; padding: 12px 10px; }
  .day-slot { grid-column: 2; justify-self: start; min-width: 0; padding: 7px 9px; }
  .week-sidebar { grid-template-columns: 1fr; }

  .progress-story { min-height: 390px; padding: 27px 23px; }
  .progress-story h2 { font-size: 3.1rem; }
  .continuity-row { right: 23px; bottom: 27px; left: 23px; gap: 4px; }
  .progress-summary { grid-template-columns: 1fr; }
  .capacity-grid { grid-template-columns: 1fr 1fr; }
  .capacity-card { padding: 18px; }
  .capacity-card strong { margin-top: 22px; font-size: 1.15rem; }
  .history-row { grid-template-columns: 59px 1fr; padding: 12px 15px; }
  .history-feeling { grid-column: 2; justify-self: start; }

  .profile-identity { padding: 23px; }
  .profile-card { padding: 21px 18px; }
  .profile-card-header { align-items: start; flex-direction: column; }
  .profile-card-header .button { width: 100%; }
  .profile-facts { grid-template-columns: 1fr; }
  .integration-row, .setting-row { align-items: start; }

  .sheet {
    top: auto;
    right: 6px;
    bottom: 6px;
    left: 6px;
    width: auto;
    max-height: calc(100dvh - 18px);
    padding: 33px 20px max(24px, env(safe-area-inset-bottom));
    border-radius: 27px;
    animation-name: sheet-up;
  }

  @keyframes sheet-up {
    from { opacity: 0; transform: translateY(28px); }
  }

  .sheet-handle {
    position: absolute;
    top: 10px;
    left: 50%;
    display: block;
    width: 37px;
    height: 4px;
    border-radius: 999px;
    background: var(--line-strong);
    transform: translateX(-50%);
  }

  .sheet-close { top: 19px; right: 17px; }
  .sheet-content-header { padding-right: 45px; }

  .session-shell { width: calc(100% - 32px); padding: 18px 0 max(24px, env(safe-area-inset-bottom)); }
  .session-stage { padding: 43px 0; }
  .session-stage h1 { font-size: clamp(3.4rem, 17vw, 5rem); }
  .session-footer { grid-template-columns: 1fr; }
  .session-next { grid-row: 1; width: 100%; }
  .session-note { text-align: center; }
  .feedback-scale { grid-template-columns: 1fr; }

  .toast-region { right: 12px; bottom: 96px; width: calc(100% - 24px); }
  .login-story { min-height: 37dvh; }
  .login-brand .brand-mark { width: 43px; height: 43px; }
  .login-story-copy h1 { font-size: 3.55rem; }
  .login-form-wrap h2 { font-size: 2.45rem; }
}

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