:root {
  --forest: #2f4a3a;
  --forest-deep: #24382c;
  --forest-soft: #e4ebe5;
  --sand: #dfe3df;
  --sand-soft: #eef1ee;
  --cream: #ffffff;
  --paper: #ffffff;
  --ink: #2b2b2b;
  --muted: #6b6d6b;
  --line: #e4e6e3;
  --success: #467158;
  --warning: #a66b32;
  --danger: #8a4747;
  --lime: #c8f04f;
  --coral: #ff6a4d;
  --shadow-sm: 0 6px 24px rgba(36, 56, 44, .07);
  --shadow: 0 22px 60px rgba(36, 56, 44, .13);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --sidebar: 250px;
  color-scheme: light;
  font-family: "Mulish", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { min-height: 100%; overflow-x: clip; background: var(--cream); }

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

html.scroll-locked { height: 100%; overflow: hidden; }
body.scroll-locked { height: 100%; overflow: hidden; }

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

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

button { color: inherit; }

a { color: inherit; }

img { max-width: 100%; }

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

h1,
h2,
h3,
.eyebrow,
.nav-label { font-family: "Jost", sans-serif; }

h1 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.03; font-weight: 500; letter-spacing: -.03em; }
h2 { font-size: clamp(1.45rem, 2vw, 2rem); line-height: 1.16; font-weight: 500; letter-spacing: -.02em; }
h3 { font-size: 1.05rem; font-weight: 600; }

.app-loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  color: var(--forest);
  font-family: "Jost", sans-serif;
  letter-spacing: .08em;
}

.app-loading img { animation: breathe 1.7s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(.96); opacity: .75; } }

.hidden,
[hidden] { display: none !important; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.muted { color: var(--muted); }
.small { font-size: .84rem; }
.link-button { border: 0; padding: 0; background: none; color: var(--coral); text-decoration: underline; cursor: pointer; }

.button {
  min-height: 46px;
  border: 1px solid var(--coral);
  border-radius: 8px;
  padding: 11px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--coral);
  color: white;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.button:hover { transform: translateY(-1px); box-shadow: 0 9px 24px rgba(255, 106, 77, .3); }
.button:active { transform: translateY(0); }
.button:disabled { cursor: wait; opacity: .6; transform: none; box-shadow: none; }
.button.secondary { background: transparent; color: var(--coral); }
.button.secondary:hover { background: #ffece7; }
.button.soft { border-color: transparent; background: var(--lime); color: var(--forest-deep); }
.button.ghost { border-color: transparent; background: transparent; color: var(--coral); padding-inline: 10px; }
.button.danger { border-color: #ead1d1; background: #f8eeee; color: var(--danger); }
.button.compact { min-height: 38px; padding: 8px 14px; font-size: .84rem; }
.button.full { width: 100%; }
.button svg { width: 18px; height: 18px; flex: 0 0 auto; }
.button.compact svg { width: 16px; height: 16px; }
.icon-button { width: 38px; height: 38px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: color .18s ease; }
.icon-button:hover { color: var(--forest); }
.icon-button svg { width: 20px; height: 20px; stroke-width: 1.4; }
.message-shortcut { position: relative; }
.nav-badge,
.unread-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--danger); color: white; font-family: "Mulish", sans-serif; font-size: .65rem; font-weight: 800; line-height: 1; }
.message-shortcut .nav-badge { position: absolute; right: -5px; top: -4px; border: 2px solid var(--paper); }

.form-field { display: grid; gap: 7px; }
.form-field > span,
.field-label { color: #4f4d48; font-size: .78rem; font-weight: 700; }

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 13px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}

input:focus,
select:focus,
textarea:focus { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(255, 106, 77, .16); }
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-stack { display: grid; gap: 16px; }
.form-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.inline-check { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; line-height: 1.45; }
.inline-check input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--forest); flex: 0 0 auto; }
.radio-card { border: 1px solid var(--line); border-radius: 13px; padding: 12px 13px; display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--forest); background: var(--forest-soft); }
.radio-card input { width: 17px; height: 17px; accent-color: var(--forest); }

.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(340px, .9fr) minmax(500px, 1.1fr); background: var(--paper); }
.login-art { position: relative; overflow: hidden; padding: clamp(36px, 7vw, 92px); display: flex; flex-direction: column; justify-content: space-between; color: white; background: var(--forest); isolation: isolate; }
.login-art::before,
.login-art::after { content: ""; position: absolute; border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%; z-index: -1; }
.login-art::before { width: 620px; height: 620px; left: -290px; bottom: -290px; }
.login-art::after { width: 430px; height: 430px; right: -250px; top: -170px; }
.login-art-mark { display: flex; align-items: center; gap: 14px; font-family: "Jost", sans-serif; letter-spacing: .16em; }
.login-art-mark img { width: 116px; height: 116px; border-radius: 14px; }
.login-quote { max-width: 560px; }
.login-quote h1 { max-width: 520px; font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: .98; }
.login-quote h1 span { color: var(--lime); }
.login-quote p { max-width: 480px; color: rgba(255,255,255,.76); line-height: 1.7; }
.login-foot { display: flex; justify-content: space-between; color: rgba(255,255,255,.55); font-size: .75rem; letter-spacing: .05em; }
.login-panel { display: grid; place-items: center; padding: 34px; background: radial-gradient(circle at 100% 0, rgba(47,74,58,.06), transparent 36%), var(--cream); }
.login-card { width: min(440px, 100%); }
.login-card h2 { margin-bottom: 10px; font-size: 2rem; }
.login-card > p { color: var(--muted); line-height: 1.6; }
.login-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 28px 0 24px; padding: 4px; border-radius: 10px; background: var(--sand-soft); }
.login-tabs button { border: 0; border-radius: 7px; padding: 11px; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; }
.login-tabs button.active { background: var(--paper); color: var(--coral); box-shadow: 0 3px 12px rgba(47,74,58,.09); }
.auth-method-tabs { margin: -8px 0 18px; display: flex; gap: 20px; border-bottom: 1px solid var(--line); }
.auth-method-tabs button { border: 0; border-bottom: 2px solid transparent; padding: 8px 1px 10px; background: transparent; color: var(--muted); font-size: .82rem; font-weight: 700; cursor: pointer; }
.auth-method-tabs button.active { border-bottom-color: var(--coral); color: var(--coral); }
.login-helper { margin-top: 20px; padding: 14px; border-radius: 13px; background: rgba(255,255,255,.65); color: var(--muted); font-size: .83rem; line-height: 1.5; }
.code-input { font-size: 1.45rem; text-align: center; letter-spacing: .45em; font-family: "Jost", sans-serif; }
.form-message { min-height: 20px; color: var(--muted); font-size: .84rem; }
.form-message.error { color: var(--danger); }
.form-message.success { color: var(--success); }
.field-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.character-count { color: var(--muted); font-size: .7rem; font-weight: 600; }
.sms-audience-note { padding: 16px; display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: start; gap: 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--forest-soft); }
.sms-audience-note svg { width: 22px; height: 22px; margin: 2px 0 0 7px; color: var(--forest); }
.sms-audience-note strong { display: block; margin-bottom: 4px; color: var(--forest); font-size: .88rem; }
.sms-audience-note span { display: block; color: var(--muted); font-size: .75rem; line-height: 1.55; }
.sms-send-note { margin: -4px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.55; }
.sms-history-item strong { margin-bottom: 4px; line-height: 1.45; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; min-height: 100vh; padding: 24px 18px 20px; display: flex; align-self: start; flex-direction: column; background: var(--forest); color: white; }
.sidebar-brand { display: flex; align-items: center; justify-content: center; padding: 4px 7px 30px; text-decoration: none; }
.sidebar-brand img { width: 120px; height: 120px; border-radius: 24px; }
.side-nav { display: grid; gap: 5px; }
.side-nav button { width: 100%; border: 0; border-radius: 12px; padding: 11px 12px; display: flex; align-items: center; gap: 12px; background: transparent; color: rgba(255,255,255,.68); text-align: left; cursor: pointer; }
.side-nav button:hover { background: rgba(255,255,255,.07); color: white; }
.side-nav button.active { background: rgba(255,255,255,.12); color: white; }
.side-nav svg { width: 19px; height: 19px; flex: 0 0 auto; }
.nav-label { font-size: .88rem; font-weight: 500; letter-spacing: .025em; }
.side-nav .nav-badge { margin-left: auto; }
.side-nav-group { display: grid; gap: 2px; }
.side-nav-parent .nav-chevron { margin-left: auto; font-size: 1.05rem; line-height: 1; transition: transform .18s ease; }
.side-nav-group.open .nav-chevron { transform: rotate(90deg); }
.side-nav-submenu { padding: 2px 0 5px 31px; display: grid; gap: 2px; }
.side-nav-submenu button { min-height: 34px; padding: 7px 10px; gap: 8px; border-radius: 9px; }
.side-nav-submenu button::before { width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%; background: rgba(255,255,255,.28); content: ""; }
.side-nav-submenu button.active::before { background: var(--lime); }
.side-nav-submenu .nav-label { font-size: .79rem; }
.nav-soon { margin-left: auto; padding: 3px 6px; border-radius: 999px; color: var(--lime); background: rgba(220,243,88,.09); font-size: .56rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sidebar-bottom { margin-top: auto; padding-top: 28px; }
.user-chip { padding: 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 10px; background: rgba(255,255,255,.06); }
.user-chip strong { display: block; overflow: hidden; text-overflow: ellipsis; font-size: .85rem; white-space: nowrap; }
.user-chip span { display: block; margin-top: 3px; overflow: hidden; color: rgba(255,255,255,.55); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.user-chip .user-chip-avatar { width: 38px; height: 38px; margin: 0; display: grid; color: var(--forest); background: var(--lime); font-size: .72rem; }
.user-chip .user-chip-copy { min-width: 0; margin: 0; }
.user-chip .user-chip-copy > span { margin-top: 3px; }
.sidebar-meta { margin-top: 14px; padding: 12px 3px 0; display: flex; align-items: center; justify-content: center; gap: 5px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.44); font-size: .6rem; letter-spacing: .025em; white-space: nowrap; }
.sidebar-meta a,
.sidebar-version { color: rgba(255,255,255,.58); text-decoration: none; }
.sidebar-version { border: 0; padding: 2px 1px; background: transparent; font: inherit; letter-spacing: inherit; cursor: pointer; }
.sidebar-meta a:hover,
.sidebar-meta a:focus-visible,
.sidebar-version:hover,
.sidebar-version:focus-visible { color: var(--lime); }
.main-shell { min-width: 0; min-height: 100vh; display: flex; flex-direction: column; }
.topbar { min-height: 74px; padding: 0 clamp(20px, 4vw, 54px); display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.85); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 15; }
.topbar-title { font-family: "Jost", sans-serif; font-weight: 500; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.mobile-brand { display: none; align-items: center; gap: 9px; font-family: "Jost", sans-serif; letter-spacing: .14em; font-size: .8rem; }
.mobile-brand img { width: 34px; border-radius: 9px; }
.content { width: min(1380px, 100%); margin-inline: auto; padding: clamp(24px, 4vw, 50px); padding-bottom: clamp(44px, 5vw, 72px); flex: 1 0 auto; }
.portal-tagline { width: min(1380px, calc(100% - clamp(34px, 8vw, 100px))); margin-inline: auto; padding: 24px 0 42px; border-top: 1px solid var(--line); color: var(--forest); font-family: "Jost", sans-serif; font-size: clamp(.7rem, .8vw, .82rem); font-weight: 600; letter-spacing: .13em; text-align: center; white-space: nowrap; }
.portal-tagline span { margin-inline: .65em; color: var(--coral); }
.page-head { display: flex; justify-content: space-between; gap: 30px; align-items: flex-end; margin-bottom: 32px; }
.page-head h1 { margin-bottom: 8px; }
.page-head p { max-width: 650px; margin-bottom: 0; color: var(--muted); line-height: 1.6; }

.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dashboard-grid { grid-template-columns: minmax(0, 1.45fr) minmax(300px, .7fr); align-items: start; }
.card { border: 1px solid rgba(221,216,207,.9); border-radius: var(--radius); padding: clamp(18px, 2.4vw, 28px); background: rgba(255,253,249,.92); box-shadow: var(--shadow-sm); }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 22px; }
.card-head h2,
.card-head h3 { margin-bottom: 4px; }
.card-head p { margin-bottom: 0; color: var(--muted); font-size: .84rem; }
.hero-card { min-height: 315px; padding: clamp(28px, 4vw, 46px); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; border: 0; color: white; background: var(--coral); }
.hero-card::after { content: ""; width: 330px; height: 330px; position: absolute; right: -120px; bottom: -180px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; box-shadow: 0 0 0 55px rgba(255,255,255,.05), 0 0 0 110px rgba(255,255,255,.03); }
.hero-card .eyebrow { color: var(--lime); }
.hero-card h1 { max-width: 560px; margin-bottom: 14px; font-size: clamp(2.1rem, 4vw, 3.5rem); }
.hero-card p { max-width: 570px; color: rgba(255,255,255,.72); line-height: 1.65; }
.hero-card .button { position: relative; z-index: 1; border-color: var(--lime); background: var(--lime); color: var(--forest-deep); }
.hero-meta { position: relative; z-index: 1; display: flex; gap: 24px; align-items: center; }
.week-badge { width: 68px; height: 68px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: rgba(255,255,255,.07); text-align: center; }
.week-badge strong { display: block; font-family: "Jost",sans-serif; font-size: 1.35rem; line-height: 1; }
.week-badge span { font-size: .56rem; letter-spacing: .12em; text-transform: uppercase; }

.progress-ring { --progress: 0; width: 90px; height: 90px; position: relative; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--coral) calc(var(--progress) * 1%), var(--sand-soft) 0); }
.progress-ring::after { content: ""; width: 70px; height: 70px; position: absolute; border-radius: 50%; background: var(--paper); }
.progress-ring strong { position: relative; z-index: 1; color: var(--coral); font-family: "Jost", sans-serif; font-size: 1.1rem; }
.progress-copy { display: flex; align-items: center; gap: 17px; }
.progress-copy h3 { margin-bottom: 4px; }
.progress-copy p { margin-bottom: 0; color: var(--muted); font-size: .82rem; }

.about-page { display: grid; gap: clamp(22px, 4vw, 54px); }
.about-hero { min-height: 610px; overflow: hidden; border-radius: var(--radius-lg); display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); color: white; background: var(--forest); box-shadow: var(--shadow); }
.about-hero-copy { padding: clamp(38px, 6vw, 82px); position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; isolation: isolate; }
.about-hero-copy::before { content: ""; width: 520px; height: 520px; position: absolute; left: -290px; bottom: -330px; z-index: -1; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; box-shadow: 0 0 0 72px rgba(255,255,255,.035), 0 0 0 144px rgba(255,255,255,.02); }
.about-hero .eyebrow { color: var(--lime); }
.about-hero h1 { max-width: 720px; margin-bottom: 24px; font-size: clamp(3rem, 6vw, 6rem); line-height: .98; }
.about-hero-copy > p:not(.eyebrow) { max-width: 600px; color: rgba(255,255,255,.74); font-size: 1.02rem; line-height: 1.75; }
.about-hero-mark { margin-top: 48px; display: flex; gap: 10px; flex-wrap: wrap; }
.about-hero-mark span { padding: 8px 12px; border: 1px solid rgba(255,255,255,.17); border-radius: 999px; color: rgba(255,255,255,.62); font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.about-hero-portrait { min-width: 0; min-height: 610px; margin: 0; position: relative; overflow: hidden; background: #d7d9d5; }
.about-hero-portrait::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(19,33,25,.75)); pointer-events: none; }
.about-hero-portrait img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 18%; }
.about-hero-portrait figcaption { position: absolute; left: clamp(22px, 4vw, 38px); right: 22px; bottom: 28px; z-index: 1; color: white; }
.about-hero-portrait figcaption strong,
.about-hero-portrait figcaption span { display: block; }
.about-hero-portrait figcaption strong { margin-bottom: 3px; font-family: "Jost", sans-serif; font-size: 1.2rem; }
.about-hero-portrait figcaption span { color: rgba(255,255,255,.66); font-size: .72rem; letter-spacing: .06em; }
.about-welcome,
.about-philosophy { padding: clamp(30px, 5vw, 68px); border: 1px solid var(--line); border-radius: var(--radius-lg); display: grid; grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr); gap: clamp(32px, 6vw, 90px); background: var(--paper); box-shadow: var(--shadow-sm); }
.about-welcome { background: linear-gradient(135deg, rgba(200,240,79,.18), transparent 42%), var(--paper); }
.about-section-heading h2,
.about-centered-heading h2,
.about-future h2 { font-size: clamp(2.1rem, 4vw, 4rem); line-height: 1.04; }
.about-section-heading blockquote { margin: 34px 0 0; color: var(--coral); font-family: "Jost", sans-serif; font-size: clamp(1.35rem, 2.4vw, 2.1rem); line-height: 1.2; }
.about-prose { color: #4f524f; font-size: clamp(.96rem, 1.15vw, 1.08rem); line-height: 1.82; }
.about-prose h3 { margin: 30px 0 10px; color: var(--ink); font-size: 1.2rem; }
.about-prose p:last-child { margin-bottom: 0; }
.about-signature { margin: 28px 0 22px; color: var(--forest); font-family: "Jost", sans-serif; font-size: 1.2rem; line-height: 1.4; }
.about-signature span { color: var(--muted); font-family: "Mulish", sans-serif; font-size: .72rem; letter-spacing: .05em; }
.about-practice { padding: clamp(32px, 5vw, 68px); border-radius: var(--radius-lg); background: var(--sand-soft); }
.about-centered-heading { max-width: 760px; margin: 0 auto clamp(28px, 5vw, 52px); text-align: center; }
.about-pillar-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.about-pillar-card { min-height: 360px; padding: clamp(86px, 8vw, 112px) clamp(24px, 3vw, 36px) clamp(28px, 4vw, 42px); position: relative; overflow: hidden; border: 1px solid rgba(47,74,58,.1); border-radius: var(--radius); display: flex; flex-direction: column; justify-content: flex-start; background: var(--paper); box-shadow: var(--shadow-sm); }
.about-pillar-card:nth-child(2) { background: var(--forest); color: white; }
.about-pillar-card:nth-child(4) { background: var(--coral); color: white; }
.about-pillar-card:nth-child(2) p:not(.eyebrow),
.about-pillar-card:nth-child(4) p:not(.eyebrow) { color: rgba(255,255,255,.76); }
.about-pillar-number { position: absolute; right: 24px; top: 17px; color: rgba(47,74,58,.1); font-family: "Jost", sans-serif; font-size: 4.8rem; line-height: 1; }
.about-pillar-card:nth-child(2) .about-pillar-number,
.about-pillar-card:nth-child(4) .about-pillar-number { color: rgba(255,255,255,.1); }
.about-pillar-card h3 { max-width: 88%; margin-bottom: 18px; font-size: clamp(1.55rem, 2.3vw, 2rem); line-height: 1.15; }
.about-pillar-card p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.72; }
.about-pillar-card .button { align-self: flex-start; margin-top: 26px; }
.about-real-life-note { max-width: 920px; margin: clamp(26px, 5vw, 50px) auto 0; padding-top: clamp(24px, 4vw, 40px); border-top: 1px solid rgba(47,74,58,.14); display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 28px; }
.about-real-life-note > p:last-child { margin: 0; color: #4f524f; line-height: 1.75; }
.about-future { padding: clamp(34px, 6vw, 78px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }
.about-future-heading { max-width: 880px; margin-bottom: clamp(34px, 6vw, 64px); }
.about-future-heading h2 { margin-bottom: 28px; }
.about-vision-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.about-vision-grid article { min-height: 330px; padding: clamp(25px, 3vw, 38px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.about-vision-grid article:first-child { border-left: 1px solid var(--line); border-radius: var(--radius) 0 0 var(--radius); }
.about-vision-grid article:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.about-vision-grid article:nth-child(2) { background: var(--sand-soft); }
.about-vision-grid span { display: block; margin-bottom: 56px; color: var(--coral); font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.about-vision-grid h3 { margin-bottom: 14px; font-size: clamp(1.45rem, 2.3vw, 2rem); }
.about-vision-grid p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.7; }
.about-belief { max-width: 920px; margin: clamp(34px, 5vw, 58px) auto 0; color: var(--forest); font-family: "Jost", sans-serif; font-size: clamp(1.5rem, 3vw, 2.6rem); line-height: 1.3; text-align: center; }
.about-belief span { color: var(--coral); }

.step-list { display: grid; gap: 10px; }
.step-item { padding: 14px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 13px; background: white; cursor: pointer; }
.step-item:hover { border-color: var(--sand); }
.step-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--sand-soft); color: var(--forest); font-size: .8rem; font-weight: 800; }
.step-item.done .step-icon { background: var(--forest); color: white; }
.step-item strong { display: block; font-size: .87rem; }
.step-item small { color: var(--muted); font-size: .7rem; }
.step-arrow { color: var(--sand); font-size: 1.25rem; }

.metric-card { min-height: 145px; display: flex; flex-direction: column; justify-content: space-between; }
.metric-card > span { color: var(--muted); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.metric-card strong { color: var(--forest); font-family: "Jost", sans-serif; font-size: 2rem; font-weight: 500; }
.metric-card small { color: var(--muted); }
.metric-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.metric-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--forest-soft); color: var(--forest); }

.waiver-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.document-card { padding: clamp(24px, 4vw, 46px); }
.document-title { padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.document-title h1 { margin-bottom: 10px; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.document-title p { margin-bottom: 0; color: var(--muted); }
.legal-copy { padding-right: 0; }
.legal-section { padding: 0 0 20px; }
.legal-section h3 { margin-bottom: 8px; color: var(--forest); }
.legal-section p { margin-bottom: 0; color: #55524d; font-size: .88rem; line-height: 1.7; }
.circle-guidelines-card { width: min(920px, 100%); margin-inline: auto; }
.circle-guidelines-title { padding-bottom: clamp(24px, 4vw, 38px); margin-bottom: clamp(28px, 5vw, 44px); border-bottom: 1px solid var(--line); }
.circle-guidelines-title h1 { max-width: 700px; margin: 8px 0 18px; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.08; }
.circle-guidelines-title > p:last-child { max-width: 740px; margin-bottom: 0; color: #4e524e; font-size: clamp(.98rem, 1.5vw, 1.08rem); line-height: 1.8; }
.circle-guidelines-copy { color: #4e524e; }
.circle-guidelines-copy section { padding: 0 0 clamp(24px, 4vw, 36px); }
.circle-guidelines-copy section + section { padding-top: clamp(24px, 4vw, 36px); border-top: 1px solid var(--line); }
.circle-guidelines-copy h2 { margin-bottom: 14px; color: var(--forest); font-size: clamp(1.25rem, 2.4vw, 1.65rem); }
.circle-guidelines-copy section p { margin-bottom: 13px; font-size: .94rem; line-height: 1.8; }
.circle-guidelines-copy section p:last-child { margin-bottom: 0; }
.circle-guidelines-copy ul { margin: 20px 0 0; padding-left: 1.25rem; display: grid; gap: 14px; }
.circle-guidelines-copy li { padding-left: 6px; font-size: .92rem; line-height: 1.75; }
.circle-guidelines-copy li::marker { color: var(--coral); }
.circle-guidelines-welcome { margin: 4px 0 0; color: var(--forest); font-family: "Jost", sans-serif; font-size: clamp(1.45rem, 3vw, 2rem); }
.circle-guidelines-ack { margin-top: clamp(30px, 5vw, 48px); padding: clamp(20px, 4vw, 30px); border: 1px solid #bed2c3; border-radius: var(--radius); background: #edf5ef; }
.circle-guidelines-ack .inline-check { align-items: flex-start; color: var(--forest); font-weight: 700; }
.circle-guidelines-status { margin-top: clamp(30px, 5vw, 48px); }
.circle-guidelines-aside p:not(.eyebrow) { color: rgba(255,255,255,.72); line-height: 1.7; }
.circle-guidelines-inner { padding-block: clamp(12px, 4vh, 46px); }
.sign-card { position: sticky; top: 98px; }
.signature-input { font-family: "Jost", sans-serif; font-size: 1.25rem; font-style: italic; }
.completed-banner { padding: 20px; border: 1px solid #bed2c3; border-radius: 14px; display: flex; gap: 13px; background: #edf5ef; color: var(--forest); }
.completed-banner strong { display: block; margin-bottom: 3px; }

.day-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.day-tabs button { min-width: 92px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 15px; background: white; cursor: pointer; font-weight: 700; }
.day-tabs button.active { border-color: var(--coral); background: var(--coral); color: white; }
.nutrition-intro { margin-bottom: 24px; padding: 18px 20px; border-left: 4px solid var(--sand); border-radius: 0 12px 12px 0; background: var(--sand-soft); color: #56514a; font-size: .88rem; line-height: 1.65; }
.nutrition-table { width: 100%; border-collapse: collapse; }
.nutrition-table th { padding: 9px 8px; color: var(--muted); font-size: .68rem; text-align: left; text-transform: uppercase; letter-spacing: .06em; }
.nutrition-table td { padding: 7px 5px; vertical-align: top; }
.nutrition-table input,
.nutrition-table select { min-width: 110px; padding: 10px; }
.nutrition-table td:last-child { width: 44px; }
.remove-row { width: 36px; height: 36px; border: 0; border-radius: 8px; background: #f5eeee; color: var(--danger); cursor: pointer; }
.empty-state { padding: 42px 20px; display: grid; justify-items: center; text-align: center; color: var(--muted); }
.empty-state .metric-icon { margin-bottom: 14px; }

.guide-hero { padding: clamp(32px, 5vw, 62px); position: relative; overflow: hidden; color: white; background: var(--coral); }
.guide-hero::after { content: "S"; position: absolute; right: 5%; top: -28%; color: rgba(255,255,255,.035); font-family: "Jost",sans-serif; font-size: 430px; line-height: 1; }
.guide-hero .eyebrow { color: var(--lime); }
.guide-hero h1 { max-width: 720px; }
.guide-hero p { max-width: 730px; margin-bottom: 0; color: rgba(255,255,255,.72); line-height: 1.75; }
.phase-card { border-top: 4px solid var(--sand); }
.phase-card .phase-number { color: var(--sand); font-family: "Jost", sans-serif; font-size: .78rem; letter-spacing: .12em; }
.phase-card h3 { margin: 10px 0; color: var(--forest); font-size: 1.2rem; }
.phase-card p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.65; }
.guide-copy { max-width: 820px; margin: 28px auto 0; }
.guide-copy h2 { margin-top: 36px; color: var(--forest); }
.guide-copy p { color: #55524d; line-height: 1.8; }
.guide-quote { margin: 34px 0; padding: 28px; border-radius: var(--radius); background: var(--sand-soft); color: var(--forest); font-family: "Jost", sans-serif; font-size: 1.35rem; line-height: 1.5; }

.seeds-admin-page { display: grid; gap: 24px; }
.seeds-curriculum-hero { min-height: 330px; padding: clamp(34px, 6vw, 72px); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; border-radius: var(--radius-lg); color: white; background: var(--forest); box-shadow: var(--shadow); }
.seeds-curriculum-hero::after { content: "12"; position: absolute; right: 3%; top: -22%; color: rgba(255,255,255,.035); font-family: "Jost", sans-serif; font-size: clamp(250px, 34vw, 480px); line-height: 1; pointer-events: none; }
.seeds-curriculum-hero .eyebrow { color: var(--lime); }
.seeds-curriculum-hero h1 { max-width: 900px; margin: 8px 0 18px; color: white; font-size: clamp(2.25rem, 5vw, 4.6rem); line-height: 1.04; }
.seeds-curriculum-hero > p:not(.eyebrow) { max-width: 720px; margin: 0; color: rgba(255,255,255,.72); font-size: clamp(.95rem, 1.4vw, 1.08rem); line-height: 1.7; }
.seeds-admin-intro { padding: clamp(28px, 4vw, 48px); }
.seeds-admin-intro h2,
.seeds-how-to h2,
.seeds-delivery h2 { margin: 6px 0 18px; color: var(--forest); font-size: clamp(1.8rem, 3vw, 2.65rem); }
.seeds-admin-intro > p:not(.eyebrow) { max-width: 940px; color: #505650; font-size: .96rem; line-height: 1.85; }
.seeds-how-to { padding: clamp(28px, 4vw, 44px); }
.seeds-section-head { margin-bottom: 24px; }
.seeds-use-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.seeds-use-grid article { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.seeds-use-grid article > span { display: block; margin-bottom: 30px; color: var(--coral); font-family: "Jost", sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: .14em; }
.seeds-use-grid h3 { margin-bottom: 9px; color: var(--forest); }
.seeds-use-grid p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.7; }
.seeds-framing-note { padding: clamp(25px, 4vw, 40px); border-left: 5px solid var(--coral); border-radius: 0 var(--radius) var(--radius) 0; background: var(--forest-soft); }
.seeds-framing-note p:last-child { max-width: 1060px; margin: 7px 0 0; color: #455047; line-height: 1.85; }
.seeds-phase-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.seeds-phase-nav a { min-width: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--forest); font-family: "Jost", sans-serif; font-size: .86rem; text-decoration: none; box-shadow: var(--shadow-sm); }
.seeds-phase-nav a:hover { border-color: var(--coral); color: var(--coral); }
.seeds-phase-nav span { display: block; margin-bottom: 4px; color: var(--muted); font-family: inherit; font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.seeds-phase { padding-top: 12px; scroll-margin-top: 92px; }
.seeds-phase-head { margin-bottom: 18px; padding: clamp(25px, 4vw, 40px); display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 24px; border-radius: var(--radius); background: var(--coral); color: white; }
.seeds-phase-head > span { width: 78px; height: 78px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; font-family: "Jost", sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.seeds-phase-head .eyebrow { margin-bottom: 5px; color: var(--lime); }
.seeds-phase-head h2 { margin-bottom: 9px; color: white; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.seeds-phase-head p:last-child { max-width: 860px; margin: 0; color: rgba(255,255,255,.76); line-height: 1.7; }
.seeds-weeks { display: grid; gap: 16px; }
.seed-week-card { padding: clamp(24px, 3.5vw, 38px); scroll-margin-top: 92px; }
.seed-week-head { margin-bottom: 24px; padding-bottom: 20px; display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 18px; align-items: center; border-bottom: 1px solid var(--line); }
.seed-week-head > span { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); color: var(--forest-deep); font-family: "Jost", sans-serif; font-size: .68rem; font-weight: 700; text-align: center; }
.seed-week-head .eyebrow { margin-bottom: 4px; }
.seed-week-head h3 { margin: 0; color: var(--forest); font-size: clamp(1.3rem, 2.2vw, 1.8rem); }
.seed-prompt-grid { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.25fr) minmax(220px, 1fr); gap: 14px; align-items: stretch; }
.seed-prompt { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.seed-prompt .eyebrow { margin-bottom: 12px; }
.seed-prompt > p:last-child { margin: 0; color: #555b56; font-size: .84rem; line-height: 1.75; }
.seed-question { border-color: rgba(220,243,88,.8); background: rgba(220,243,88,.13); }
.seed-question blockquote { margin: 0; color: var(--forest); font-family: "Jost", sans-serif; font-size: clamp(1.02rem, 1.5vw, 1.22rem); line-height: 1.55; }
.seed-followups ul { margin: 0; padding: 0; list-style: none; }
.seed-followups li { padding: 10px 0; border-top: 1px solid var(--line); color: #555b56; font-size: .8rem; line-height: 1.65; }
.seed-followups li:last-child { padding-bottom: 0; }
.seeds-delivery { padding: clamp(28px, 4vw, 44px); }
.seeds-delivery-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.seeds-delivery-list p { margin: 0; padding: 19px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); font-size: .84rem; line-height: 1.7; }
.seeds-delivery-list strong { color: var(--forest); }
.seeds-scope-note { margin-top: 16px; padding: 22px; border-radius: 14px; background: #f7eddc; color: #6d4d1f; }
.seeds-scope-note strong { display: block; margin-bottom: 6px; }
.seeds-scope-note p { margin: 0; font-size: .86rem; line-height: 1.7; }

.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.profile-photo-field { padding-bottom: 22px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 118px minmax(0, 1fr); align-items: center; gap: 22px; }
.profile-photo-preview { width: 118px; height: 118px; font-size: 1.65rem; background: var(--forest-soft); color: var(--forest); }
.profile-photo-field h2 { margin-bottom: 7px; }
.profile-photo-field p { margin-bottom: 12px; }
.photo-upload { position: relative; overflow: hidden; cursor: pointer; }
.photo-upload svg { width: 18px; height: 18px; }
.photo-upload input { width: 1px; height: 1px; position: absolute; opacity: 0; pointer-events: none; }
.profile-personal-fields { padding: 20px; border: 1px solid rgba(221,216,207,.85); border-radius: 16px; display: grid; gap: 18px; background: var(--sand-soft); }
.profile-personal-fields h3 { margin-bottom: 5px; }
.profile-personal-fields p { margin: 0; line-height: 1.55; }
.profile-personal-fields textarea { background: #fff; }
.profile-personal-fields .form-field > span { display: flex; align-items: baseline; gap: 7px; }
.profile-personal-fields .form-field > span small { color: var(--muted); font-size: .66rem; font-weight: 500; }
.field-help { color: var(--muted); font-size: .67rem; line-height: 1.45; }
.client-profile-summary { margin-top: 20px; padding: 17px; border-radius: 14px; background: var(--forest-soft); }
.client-profile-summary > .eyebrow { margin-bottom: 9px; }
.client-profile-summary.empty p:last-child { margin: 0; }
.client-food-log-summary { margin-top: 10px; padding: 15px; border-radius: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--forest-soft); }
.client-food-log-summary .eyebrow { margin-bottom: 3px; }
.client-food-log-summary strong { display: block; color: var(--forest); font-size: .76rem; }
.client-food-log-summary span { display: block; margin-top: 3px; color: var(--muted); font-size: .68rem; }
.client-bio { margin: 0; color: #4f524f; font-size: .8rem; line-height: 1.65; white-space: pre-wrap; }
.client-goal-list { margin: 12px 0 0; padding-left: 18px; display: grid; gap: 7px; color: var(--forest); font-size: .76rem; line-height: 1.5; }

.intake-page-head { align-items: flex-end; }
.intake-page-head > div { max-width: 790px; }
.intake-page-head .status-pill { flex: 0 0 auto; margin-bottom: 4px; }
.profile-page-head { margin-top: 46px; padding-top: 34px; border-top: 1px solid var(--line); }
.profile-page-head h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); }
.profile-settings-grid { align-items: start; }
.intake-form { display: grid; gap: 18px; }
.intake-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 20px; align-items: start; }
.intake-sections { min-width: 0; display: grid; gap: 18px; }
.intake-section { padding: clamp(24px, 4vw, 38px); display: grid; gap: 24px; scroll-margin-top: 88px; }
.intake-section > header { padding-bottom: 20px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: center; }
.intake-section > header > span,
.intake-review-sections section > header > span { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--forest-soft); color: var(--forest); font-family: "Jost", sans-serif; font-size: .74rem; font-weight: 600; letter-spacing: .08em; }
.intake-section > header .eyebrow { margin-bottom: 3px; }
.intake-section > header h2 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
.intake-section .form-field > span { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.intake-section em { color: var(--muted); font-size: .65rem; font-style: normal; font-weight: 500; }
.intake-question { min-width: 0; margin: 0; padding: 0; border: 0; display: grid; gap: 11px; }
.intake-question legend { margin-bottom: 11px; padding: 0; color: #4f4d48; font-size: .78rem; font-weight: 700; }
.intake-question legend em { margin-left: 5px; }
.intake-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.intake-choice { min-width: 0; min-height: 46px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: flex-start; gap: 10px; color: #4f524f; background: rgba(255,255,255,.54); font-size: .78rem; line-height: 1.45; cursor: pointer; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.intake-choice:hover { border-color: rgba(47,74,58,.45); }
.intake-choice:has(input:checked) { border-color: var(--forest); background: var(--forest-soft); box-shadow: inset 0 0 0 1px rgba(47,74,58,.06); color: var(--forest); }
.intake-choice input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--forest); flex: 0 0 auto; }
.intake-choice span { min-width: 0; }
.intake-sidebar { position: sticky; top: 82px; padding: 22px; }
.intake-sidebar h3 { margin-bottom: 6px; }
.intake-sidebar > p.small { margin-bottom: 18px; line-height: 1.55; }
.intake-sidebar nav { display: grid; }
.intake-sidebar nav a { padding: 8px 6px; border-bottom: 1px solid rgba(221,216,207,.7); display: flex; align-items: center; gap: 9px; color: #4f524f; font-size: .73rem; font-weight: 700; }
.intake-sidebar nav a:hover { color: var(--forest); }
.intake-sidebar nav a span { color: var(--coral); font-family: "Jost", sans-serif; font-size: .63rem; letter-spacing: .08em; }
.intake-sidebar nav a.complete { color: var(--forest); }
.intake-sidebar nav a.complete .intake-section-marker { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 18px; color: white; background: var(--forest); font-size: .68rem; line-height: 1; letter-spacing: 0; }
.intake-consent { border: 1px solid rgba(47,74,58,.26); background: linear-gradient(145deg, var(--paper), var(--forest-soft)); }
.intake-consent-list { padding: 18px; border-radius: 14px; display: grid; gap: 16px; background: rgba(255,255,255,.66); }
.intake-submit { padding: clamp(24px, 4vw, 36px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 28px; align-items: center; border-color: rgba(47,74,58,.24); background: var(--forest); color: white; }
.intake-submit .eyebrow { color: var(--lime); }
.intake-submit h2 { margin-bottom: 7px; color: white; }
.intake-submit p:not(.eyebrow) { margin: 0; color: rgba(255,255,255,.72); }
.intake-submit .button.secondary { border-color: rgba(255,255,255,.42); color: white; background: transparent; }
.intake-submit .button.secondary:hover { border-color: white; }
.intake-submit .form-message { grid-column: 1 / -1; }
.client-intake-summary { margin-top: 18px; padding: 15px; border-radius: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--sand-soft); }
.client-intake-summary .eyebrow { margin-bottom: 3px; }
.client-intake-summary strong { color: var(--forest); font-size: .76rem; }
.intake-review-modal { width: min(1040px, 100%); }
.intake-review-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.intake-review-sections > section { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.intake-review-sections section > header { margin-bottom: 17px; display: flex; align-items: center; gap: 11px; }
.intake-review-sections section > header > span { width: 34px; height: 34px; font-size: .62rem; }
.intake-review-sections h3 { font-size: 1.05rem; }
.food-log-review-modal { width: min(1100px, 100%); }
.food-log-review-days { display: grid; gap: 16px; }
.food-log-review-day { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.food-log-review-day > header { padding: 18px 20px 14px; border-bottom: 1px solid var(--line); background: var(--forest-soft); }
.food-log-review-day .eyebrow { margin-bottom: 3px; }
.food-log-review-day h3 { margin: 0; color: var(--forest); font-size: .86rem; }
.food-log-review-table { width: 100%; min-width: 680px; border-collapse: collapse; }
.food-log-review-table th { padding: 11px 14px; color: var(--muted); font-size: .66rem; text-align: left; text-transform: uppercase; letter-spacing: .06em; }
.food-log-review-table td { padding: 13px 14px; border-top: 1px solid var(--line); color: #454b47; font-size: .8rem; line-height: 1.5; vertical-align: top; }
.food-log-review-table td:nth-child(1) { width: 14%; color: var(--forest); font-weight: 700; }
.food-log-review-table td:nth-child(2) { width: 32%; }
.food-log-empty { margin: 0; padding: 22px 20px; color: var(--muted); font-size: .8rem; }
.intake-review-list { margin: 0; display: grid; gap: 11px; }
.intake-review-list > div { min-width: 0; padding-bottom: 10px; border-bottom: 1px solid rgba(221,216,207,.65); display: grid; gap: 3px; }
.intake-review-list > div:last-child { padding-bottom: 0; border-bottom: 0; }
.intake-review-list dt { color: var(--muted); font-size: .65rem; font-weight: 700; }
.intake-review-list dd { min-width: 0; margin: 0; color: #424642; font-size: .78rem; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; }

.stories-welcome { min-height: 280px; margin-bottom: 20px; padding: clamp(28px, 5vw, 58px); position: relative; overflow: hidden; border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: space-between; gap: 30px; color: white; background: radial-gradient(circle at 84% 20%, rgba(200,240,79,.35), transparent 32%), var(--coral); box-shadow: var(--shadow); }
.stories-welcome > div:first-child { max-width: 700px; position: relative; z-index: 1; }
.stories-welcome .eyebrow { color: var(--lime); }
.stories-welcome h2 { max-width: 620px; margin-bottom: 14px; font-size: clamp(2rem, 4vw, 3.55rem); }
.stories-welcome p:not(.eyebrow) { max-width: 650px; margin-bottom: 0; color: rgba(255,255,255,.72); line-height: 1.75; }
.story-community-mark { min-width: 190px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; }
.story-community-mark > span { color: var(--lime); font-family: "Jost", sans-serif; font-size: clamp(5rem, 9vw, 8rem); font-weight: 500; line-height: .8; }
.story-community-mark small { color: rgba(255,255,255,.6); font-size: .68rem; letter-spacing: .11em; line-height: 1.6; text-transform: uppercase; }
.stories-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, 330px); align-items: start; gap: 20px; }
.story-feed,
.admin-story-feed { display: grid; gap: 18px; }
.admin-story-feed { width: min(900px, 100%); }
.story-card { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--paper); box-shadow: 0 8px 30px rgba(36, 56, 44, .075); }
.story-card.story-hidden { opacity: .72; background: #f4f1ee; }
.story-author { padding: 20px clamp(20px, 3vw, 26px) 0; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.story-author .avatar { width: 44px; height: 44px; background: var(--forest-soft); color: var(--forest); }
.story-author strong { display: block; margin-bottom: 2px; font-size: .86rem; }
.story-author span:not(.avatar, .status-pill) { color: var(--muted); font-size: .7rem; }
.story-copy { padding: 17px clamp(20px, 3vw, 26px) 21px; }
.story-copy h2 { margin-bottom: 9px; font-size: clamp(1.22rem, 1.7vw, 1.55rem); line-height: 1.2; letter-spacing: -.015em; }
.story-copy p { margin: 0; color: #4f524f; font-size: .91rem; line-height: 1.68; white-space: pre-wrap; }
.story-media { margin: 15px 0 17px; overflow: hidden; border-radius: 14px; background: var(--sand-soft); }
.story-media img { width: 100%; aspect-ratio: 16 / 10; display: block; object-fit: cover; }
.story-actions { min-height: 54px; padding: 8px clamp(14px, 2vw, 22px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.story-cheer { min-height: 38px; border: 0; border-radius: 999px; padding: 7px 12px; display: inline-flex; align-items: center; gap: 7px; background: transparent; color: var(--forest); font-size: .78rem; font-weight: 700; cursor: pointer; }
.story-cheer:hover { background: var(--forest-soft); }
.story-cheer.active { background: rgba(255,106,77,.12); color: #b8402b; }
.story-cheer.active svg { fill: var(--coral); stroke: var(--coral); }
.story-cheer svg,
.story-count svg { width: 18px; height: 18px; }
.story-cheer strong { min-width: 12px; font-size: .7rem; }
.story-count { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .72rem; }
.story-actions .button { margin-left: auto; }
.story-comments { padding: 18px clamp(20px, 3vw, 28px) 22px; display: grid; gap: 14px; background: #f8f8f6; }
.story-comment { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: start; gap: 10px; }
.comment-avatar { width: 34px; height: 34px; font-size: .65rem; background: var(--forest-soft); color: var(--forest); }
.story-comment p { margin: 1px 0 2px; font-size: .82rem; line-height: 1.55; }
.story-comment p strong { margin-right: 4px; }
.story-comment time { color: var(--muted); font-size: .62rem; }
.story-comment-form { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 9px; }
.story-comment-form input { min-height: 40px; padding-block: 9px; background: var(--paper); }
.story-comment-form .form-message { min-height: 0; grid-column: 2 / -1; }
.community-notes { position: sticky; top: 94px; }
.community-notes h2 { margin-bottom: 18px; }
.community-notes ul { margin: 0; padding-left: 19px; color: var(--muted); }
.community-notes li { margin-bottom: 12px; padding-left: 4px; font-size: .86rem; line-height: 1.55; }
.community-promise { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 36px 1fr; gap: 10px; }
.community-promise > span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--forest); }
.community-promise svg { width: 18px; height: 18px; }
.community-promise p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.story-empty { padding-block: clamp(48px, 8vw, 90px); display: grid; justify-items: center; text-align: center; }
.story-empty-mark { width: 68px; height: 68px; margin-bottom: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--forest); }
.story-empty-mark svg { width: 32px; height: 32px; }
.story-empty h2 { max-width: 550px; }
.story-empty > p:not(.eyebrow) { max-width: 520px; color: var(--muted); line-height: 1.65; }
.story-privacy-note { padding: 16px; border-radius: 14px; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; background: var(--forest-soft); color: var(--forest); }
.story-privacy-note svg { width: 26px; height: 26px; }
.story-privacy-note p { margin: 0; font-size: .8rem; line-height: 1.55; }
.story-composer { width: min(680px, 100%); }
.story-photo-field { display: grid; gap: 7px; }
.story-photo-field .field-label { display: flex; align-items: baseline; gap: 7px; }
.story-photo-field .field-label small { color: var(--muted); font-size: .66rem; font-weight: 500; }
.story-photo-picker { min-height: 90px; border: 1px dashed #b9c3bb; border-radius: 14px; padding: 17px; position: relative; display: flex; align-items: center; gap: 13px; background: #fafbf9; color: var(--forest); cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.story-photo-picker:hover { border-color: var(--forest); background: var(--forest-soft); }
.story-photo-picker[hidden],
.story-photo-preview[hidden] { display: none; }
.story-photo-picker-icon { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 12px; display: grid; place-items: center; background: var(--forest-soft); }
.story-photo-picker-icon svg { width: 21px; height: 21px; }
.story-photo-picker strong,
.story-photo-picker small { display: block; }
.story-photo-picker strong { margin-bottom: 3px; font-size: .84rem; }
.story-photo-picker small { color: var(--muted); font-size: .7rem; line-height: 1.45; }
.story-photo-picker input { width: 1px; height: 1px; position: absolute; opacity: 0; pointer-events: none; }
.story-photo-preview { position: relative; overflow: hidden; border-radius: 14px; background: var(--sand-soft); }
.story-photo-preview img { width: 100%; aspect-ratio: 16 / 10; display: block; object-fit: cover; }
.story-photo-preview .button { position: absolute; right: 12px; top: 12px; border-color: rgba(255,255,255,.75); background: rgba(255,255,255,.92); box-shadow: var(--shadow-sm); }

.message-layout { min-height: 610px; display: grid; grid-template-columns: 320px minmax(0, 1fr); }
.thread-list { border-right: 1px solid var(--line); background: #f5f6f5; }
.thread-list-head { padding: 22px; border-bottom: 1px solid var(--line); }
.thread-list-head h3 { margin-bottom: 4px; }
.thread-row { width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 16px 18px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 11px; background: transparent; text-align: left; cursor: pointer; }
.thread-row:hover,
.thread-row.active { background: white; }
.thread-row.unread { box-shadow: inset 3px 0 var(--forest); }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: white; font-family: "Jost", sans-serif; font-size: .85rem; }
.thread-copy { min-width: 0; }
.thread-name { display: flex; align-items: center; gap: 6px; }
.thread-row strong { display: block; margin-bottom: 3px; font-size: .84rem; }
.thread-row p { margin: 0; overflow: hidden; color: var(--muted); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.flag-marker { width: 18px; height: 18px; display: inline-grid; place-items: center; color: var(--warning); }
.flag-marker svg { width: 14px; height: 14px; fill: currentColor; }
.inbox-summary { display: flex; flex-wrap: wrap; gap: 8px; }
.inbox-summary span { padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--muted); font-size: .74rem; }
.inbox-summary strong { color: var(--forest); }
.chat-panel { min-width: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: white; }
.chat-head { padding: 18px 22px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.chat-head strong { display: block; font-size: .88rem; }
.chat-head span { color: var(--muted); font-size: .68rem; }
.chat-scroll { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.bubble { max-width: min(650px, 78%); padding: 12px 15px; border-radius: 16px 16px 16px 4px; align-self: flex-start; background: var(--sand-soft); line-height: 1.55; font-size: .88rem; }
.bubble.mine { border-radius: 16px 16px 4px 16px; align-self: flex-end; background: var(--forest); color: white; }
.bubble.flagged { outline: 2px solid #d7a45a; outline-offset: 2px; }
.bubble-foot { margin-top: 7px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bubble time { display: block; color: inherit; opacity: .55; font-size: .63rem; }
.flag-button { width: 26px; height: 26px; border: 0; border-radius: 7px; display: grid; place-items: center; background: transparent; color: var(--muted); cursor: pointer; }
.flag-button:hover { background: rgba(166,107,50,.12); color: var(--warning); }
.flag-button.active { background: var(--warning); color: white; }
.bubble.mine .flag-button { color: rgba(255,255,255,.72); }
.bubble.mine .flag-button.active { color: white; }
.flag-button svg { width: 15px; height: 15px; }
.chat-compose { padding: 16px; display: grid; grid-template-columns: 1fr auto; gap: 10px; border-top: 1px solid var(--line); background: #fff; }
.chat-compose textarea { min-height: 48px; max-height: 130px; }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .68rem; text-align: left; text-transform: uppercase; letter-spacing: .07em; }
.data-table td { padding: 15px 14px; border-bottom: 1px solid var(--line); font-size: .84rem; vertical-align: middle; }
.data-table tbody tr:hover { background: #f5f6f5; }
.client-cell { display: flex; align-items: center; gap: 11px; }
.client-cell .avatar { width: 36px; height: 36px; }
.client-cell strong { display: block; }
.client-cell span { color: var(--muted); font-size: .71rem; }
.status-pill { padding: 5px 9px; display: inline-flex; align-items: center; gap: 6px; border-radius: 6px; background: var(--sand-soft); color: #565a56; font-size: .68rem; font-weight: 700; text-transform: capitalize; }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pill.active,
.status-pill.ready,
.status-pill.published { background: #e6f0e8; color: var(--success); }
.status-pill.paused,
.status-pill.scheduled { background: #f7eddc; color: var(--warning); }
.mini-progress { width: 105px; display: flex; align-items: center; gap: 8px; }
.mini-progress-track { height: 6px; flex: 1; overflow: hidden; border-radius: 999px; background: var(--sand-soft); }
.mini-progress-fill { height: 100%; border-radius: inherit; background: var(--coral); }
.mini-progress span { color: var(--muted); font-size: .66rem; }

.admin-split { display: grid; grid-template-columns: minmax(320px, .75fr) minmax(0, 1.25fr); gap: 18px; align-items: start; }
.client-detail { position: sticky; top: 98px; }
.client-detail-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.client-detail-head .avatar { width: 54px; height: 54px; font-size: 1rem; }
.client-detail-head h2 { margin-bottom: 3px; }
.client-detail-head p { margin-bottom: 0; color: var(--muted); font-size: .78rem; }
.activity-list { display: grid; gap: 0; }
.activity-item { position: relative; padding: 0 0 18px 27px; }
.activity-item::before { content: ""; width: 8px; height: 8px; position: absolute; left: 3px; top: 5px; border: 2px solid var(--paper); border-radius: 50%; background: var(--forest); box-shadow: 0 0 0 1px var(--forest); }
.activity-item::after { content: ""; width: 1px; position: absolute; left: 7px; top: 16px; bottom: 0; background: var(--line); }
.activity-item:last-child::after { display: none; }
.activity-item strong { display: block; font-size: .78rem; }
.activity-item time { color: var(--muted); font-size: .67rem; }

.provider-grid { display: grid; gap: 12px; }
.provider-card { padding: 16px; border: 1px solid var(--line); border-radius: 13px; display: flex; align-items: center; gap: 12px; background: white; }
.provider-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 5px #f5e7e7; }
.provider-card.ready .provider-dot { background: var(--success); box-shadow: 0 0 0 5px #e6f0e8; }
.provider-card strong { display: block; font-size: .85rem; }
.provider-card span { color: var(--muted); font-size: .7rem; }

.content-board { display: grid; grid-template-columns: repeat(4, minmax(230px, 1fr)); gap: 14px; overflow-x: auto; align-items: start; }
.content-column { min-height: 420px; padding: 13px; border-radius: var(--radius); background: #eef0ee; }
.content-column-head { padding: 7px 4px 14px; display: flex; justify-content: space-between; align-items: center; }
.content-column-head strong { font-family: "Jost", sans-serif; font-size: .84rem; text-transform: capitalize; }
.content-count { min-width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center; background: white; color: var(--muted); font-size: .68rem; }
.content-card { margin-bottom: 10px; padding: 15px; border: 1px solid rgba(0,0,0,.04); border-radius: 13px; background: white; box-shadow: 0 4px 12px rgba(47,74,58,.06); cursor: pointer; }
.content-card:hover { border-color: var(--sand); }
.content-card h3 { margin-bottom: 10px; font-size: .9rem; }
.content-card p { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: .74rem; line-height: 1.5; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.content-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.channel-tag { padding: 4px 7px; border-radius: 6px; background: var(--forest-soft); color: var(--forest); font-size: .62rem; font-weight: 700; }

.education-summary { margin: -14px 0 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.education-summary span { min-width: 126px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--muted); font-size: .72rem; }
.education-summary strong { margin-right: 4px; color: var(--forest); font-family: "Jost", sans-serif; font-size: 1rem; }
.education-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); gap: 18px; align-items: stretch; }
.education-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: 0 8px 28px rgba(36,56,44,.07); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.education-card:hover { transform: translateY(-2px); border-color: #b8c2ba; box-shadow: 0 14px 34px rgba(36,56,44,.11); }
.education-card > button { width: 100%; height: 100%; min-height: 270px; border: 0; padding: clamp(22px, 3vw, 30px); display: flex; flex-direction: column; gap: 22px; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.education-card-meta,
.education-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.education-card-meta > span:not(.channel-tag, .status-pill) { color: var(--muted); font-size: .68rem; }
.education-card-copy h2 { margin: 0 0 12px; color: var(--forest); font-size: clamp(1.22rem, 2vw, 1.55rem); line-height: 1.24; }
.education-card-copy p { margin: 0; display: -webkit-box; overflow: hidden; color: var(--muted); font-size: .82rem; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.education-card-foot { width: 100%; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .67rem; }
.education-card-foot strong { color: var(--forest); font-size: .72rem; }
.education-card-admin > button { min-height: 250px; }
.education-empty { min-height: 340px; display: grid; place-items: center; }
.education-reader { padding: 0; }
.education-reader-head { padding: clamp(28px, 6vw, 62px); display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; background: var(--forest); color: white; }
.education-reader-head > div { max-width: 700px; }
.education-reader-head h1 { margin: 10px 0 16px; color: white; font-size: clamp(2rem, 4vw, 3.5rem); }
.education-reader-head p:not(.eyebrow) { max-width: 650px; margin: 0; color: rgba(255,255,255,.72); font-size: .98rem; line-height: 1.7; }
.education-reader-head .eyebrow { color: var(--lime); }
.education-reader-head .icon-button { flex: 0 0 auto; color: white; }
.education-byline { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; color: rgba(255,255,255,.55); font-size: .7rem; }
.education-reader-body { max-width: 740px; margin-inline: auto; padding: clamp(32px, 6vw, 70px); color: #454b47; font-size: clamp(.95rem, 1.4vw, 1.06rem); line-height: 1.9; white-space: pre-wrap; }
.education-status-field { max-width: 420px; }
.education-delete { margin-left: auto; }

.membership-page { display: grid; gap: 24px; }
.membership-hero { padding: clamp(32px, 5vw, 64px); display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; border-radius: var(--radius-lg); color: white; background: var(--forest); box-shadow: var(--shadow); }
.membership-hero > div { max-width: 720px; }
.membership-hero .eyebrow { color: var(--lime); }
.membership-hero h1 { margin: 8px 0 16px; color: white; font-size: clamp(2.3rem, 5vw, 4.5rem); }
.membership-hero p:not(.eyebrow) { max-width: 650px; margin: 0; color: rgba(255,255,255,.72); font-size: clamp(.95rem, 1.4vw, 1.08rem); line-height: 1.7; }
.membership-hero .button { flex: 0 0 auto; }
.membership-portal-card { background: var(--paper); }
.membership-portal-head { padding: clamp(24px, 4vw, 38px); display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.membership-portal-head h2 { margin: 6px 0 8px; color: var(--forest); }
.membership-portal-head p:not(.eyebrow) { margin: 0; color: var(--muted); line-height: 1.6; }
.membership-portal-frame { width: 100%; min-height: 760px; display: block; border: 0; background: white; }
.membership-portal-note { padding: 16px 22px 22px; border-top: 1px solid var(--line); background: var(--sand-soft); }
.membership-portal-note p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.6; }
.membership-portal-note strong { color: var(--forest); }
.membership-portal-note a { color: var(--coral); font-weight: 700; }

.release-changelog { padding: 0; }
.release-changelog-head { padding: clamp(28px, 5vw, 50px); display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; background: var(--forest); color: white; }
.release-changelog-head h2 { margin: 7px 0 8px; color: white; font-size: clamp(1.8rem, 3.5vw, 2.7rem); }
.release-changelog-head p { margin: 0; color: rgba(255,255,255,.62); }
.release-changelog-head .eyebrow { color: var(--lime); }
.release-changelog-head .icon-button { flex: 0 0 auto; color: white; }
.release-changelog-body { padding: clamp(24px, 4vw, 42px); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(250px, .75fr); gap: clamp(28px, 4vw, 48px); }
.release-section h3 { margin-bottom: 13px; color: var(--coral); font-size: .78rem; letter-spacing: .11em; text-transform: uppercase; }
.release-section ul { margin: 0; padding: 0; list-style: none; }
.release-section li { padding: 15px 0; border-top: 1px solid var(--line); }
.release-section li:last-child { border-bottom: 1px solid var(--line); }
.release-section strong { display: block; margin-bottom: 4px; color: var(--forest); font-size: .84rem; }
.release-section p { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.55; }

.modal-backdrop { position: fixed; inset: 0; padding: 20px; display: grid; place-items: center; background: rgba(26,35,30,.55); backdrop-filter: blur(5px); z-index: 50; }
.modal { width: min(620px, 100%); max-height: min(88vh, 900px); overflow-y: auto; border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 34px); background: var(--paper); box-shadow: var(--shadow); }
.modal.wide { width: min(900px, 100%); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.modal-head h2 { margin-bottom: 5px; }
.modal-head p { margin-bottom: 0; color: var(--muted); font-size: .82rem; }

.first-landing { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-columns: minmax(260px, .42fr) minmax(520px, 1fr); background: var(--cream); }
.onboarding-signout { position: fixed; top: 18px; right: 22px; z-index: 62; background: var(--paper); }
.onboarding-aside { padding: clamp(30px, 5vw, 70px); display: flex; flex-direction: column; color: white; background: var(--forest); }
.onboarding-wordmark { width: fit-content; color: white; font-family: "Jost", sans-serif; font-size: clamp(2.4rem, 4vw, 4.4rem); font-weight: 400; letter-spacing: .2em; line-height: 1; text-decoration: none; }
.onboarding-aside h1 { margin-top: auto; font-size: clamp(2.2rem, 4vw, 4rem); }
.onboarding-aside > p { color: rgba(255,255,255,.68); line-height: 1.7; }
.onboarding-progress { margin-top: auto; display: flex; gap: 6px; }
.onboarding-progress span { height: 4px; flex: 1; border-radius: 999px; background: rgba(255,255,255,.15); }
.onboarding-progress span.active { background: var(--lime); }
.onboarding-main { padding: clamp(24px, 5vw, 70px); overflow-y: auto; }
.onboarding-inner { width: min(780px, 100%); margin-inline: auto; }
.onboarding-inner .legal-copy { max-height: none; overflow: visible; }
.welcome-landing { grid-template-columns: minmax(380px, .92fr) minmax(520px, 1.08fr); background: var(--forest); }
.welcome-portrait { min-width: 0; min-height: 0; margin: 0; position: relative; overflow: hidden; background: #f1f1ef; }
.welcome-portrait::after { content: ""; position: absolute; inset: auto 0 0; height: 24%; background: linear-gradient(transparent, rgba(36, 56, 44, .2)); pointer-events: none; }
.welcome-portrait img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 20%; }
.welcome-panel { min-width: 0; padding: clamp(42px, 6vw, 90px); overflow-y: auto; display: flex; flex-direction: column; justify-content: space-between; gap: clamp(56px, 10vh, 120px); color: white; background: var(--forest); }
.welcome-copy { width: min(680px, 100%); margin-block: auto; }
.welcome-copy .eyebrow { color: var(--lime); }
.welcome-copy h1 { max-width: 650px; margin-bottom: 28px; font-size: clamp(2.5rem, 5vw, 5.2rem); }
.welcome-copy p:not(.eyebrow, .welcome-signature) { max-width: 610px; color: rgba(255,255,255,.75); font-size: clamp(.98rem, 1.2vw, 1.12rem); line-height: 1.75; }
.welcome-signature { margin: 28px 0 32px; color: var(--lime); font-family: "Jost", sans-serif; font-size: 1.15rem; letter-spacing: .04em; }
.button.welcome-continue { border-color: var(--paper); background: var(--paper); color: var(--forest); }
.button.welcome-continue:hover { background: var(--sand-soft); }
.expectations-inner { padding-block: clamp(12px, 4vh, 46px); }
.expectations-inner > h1 { max-width: 680px; margin-bottom: 20px; font-size: clamp(2.5rem, 4.5vw, 4.7rem); }
.expectations-lead { max-width: 680px; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.12rem); line-height: 1.75; }
.expectations-list { margin: clamp(30px, 5vh, 56px) 0; display: grid; gap: 14px; }
.expectations-list article { padding: clamp(18px, 2vw, 26px); display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-sm); }
.expectations-list article > span { color: var(--forest); font-family: "Jost", sans-serif; font-size: .78rem; font-weight: 700; letter-spacing: .14em; }
.expectations-list h2 { margin-bottom: 7px; font-size: 1.22rem; }
.expectations-list p { margin-bottom: 0; color: var(--muted); font-size: .9rem; line-height: 1.65; }
.expectations-enter { min-width: 220px; }

.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: grid; gap: 8px; pointer-events: none; }
.toast { max-width: 370px; padding: 13px 16px; border-radius: 12px; background: var(--forest-deep); color: white; box-shadow: var(--shadow); font-size: .84rem; line-height: 1.45; animation: toast-in .25s ease-out; }
.toast.error { background: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* Availability (admin booking settings) */
.availability-page { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.availability-page > .card:first-child { grid-row: span 2; }
.availability-banner { display: grid; gap: 4px; margin-bottom: 22px; padding: 16px 18px; border: 1px solid #ecd3b8; border-radius: var(--radius-sm); background: #fbf3ea; color: var(--warning); font-size: .88rem; line-height: 1.45; }
.availability-banner strong { color: var(--ink); }
.availability-days { display: grid; gap: 10px; }
.availability-day { display: grid; grid-template-columns: 130px minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.availability-day:last-child { border-bottom: 0; }
.availability-day .inline-check { align-items: center; font-weight: 700; }
.availability-ranges { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.availability-range { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.availability-range input { width: 118px; min-height: 40px; padding: 7px 9px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; font-size: .86rem; background: white; }
.availability-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.availability-day-off { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.availability-day-off .form-field { flex: 1 1 180px; }
.availability-day-off .form-message { flex-basis: 100%; }
.availability-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.availability-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 6px 6px 13px; border-radius: 999px; background: var(--forest-soft); color: var(--forest-deep); font-size: .8rem; font-weight: 700; }
.availability-chip button { padding: 4px 10px; border: 0; border-radius: 999px; background: white; color: var(--danger); font: inherit; font-size: .72rem; cursor: pointer; }
.availability-chip button:hover,
.availability-chip button:focus-visible { background: #f6e9e9; }
.availability-choice { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.availability-connections { display: grid; gap: 16px; }
.availability-connection { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.availability-connection h3 { margin: 0; font-size: 1rem; }
.availability-connection > .button { justify-self: start; text-decoration: none; }
.availability-status { display: flex; align-items: center; gap: 10px; margin: 0; font-size: .86rem; font-weight: 700; }
.availability-status.connected .provider-dot { background: var(--success); box-shadow: 0 0 0 5px #e6f0e8; }
.availability-status.needs_reconnecting { color: var(--warning); }
.availability-status.needs_reconnecting .provider-dot { background: var(--warning); box-shadow: 0 0 0 5px #f7ecdf; }
.availability-error { margin: -4px 0 0; color: var(--danger); font-size: .82rem; line-height: 1.45; }
.availability-note { margin: 0; padding: 12px 14px; border: 1px solid #ecd3b8; border-radius: var(--radius-sm); background: #fbf3ea; color: var(--warning); font-size: .84rem; line-height: 1.45; }
.availability-upcoming { margin-bottom: 22px; }
.availability-upcoming .availability-error { margin: 0; }
.booking-list { display: grid; }
.booking-row { display: grid; grid-template-columns: minmax(180px, 220px) minmax(0, 1fr) auto; align-items: center; gap: 12px 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.booking-row:first-child { padding-top: 0; }
.booking-row:last-child { padding-bottom: 0; border-bottom: 0; }
.booking-row-when { display: grid; gap: 2px; }
.booking-row-when span { color: var(--muted); font-size: .78rem; }
.booking-row-who { display: grid; gap: 2px; min-width: 0; }
.booking-row-who a { color: var(--forest-deep); font-size: .88rem; overflow-wrap: anywhere; }
.booking-row-who p { margin: 4px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.booking-row-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.booking-row-actions .button { min-height: 44px; text-decoration: none; }
.booking-row.is-cancelled .booking-row-when strong,
.booking-row.is-cancelled .booking-row-who strong { color: var(--muted); }
.booking-pill { justify-self: start; margin-top: 4px; padding: 2px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600; }
.booking-pill.confirmed { background: #e6f2dc; color: #2f4a3a; }
.booking-pill.cancelled { background: #fbe3dc; color: #8a3a26; }
.booking-row-who .booking-history { margin: 4px 0 0; color: var(--forest-deep); font-size: .84rem; white-space: normal; }
.booking-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.booking-chip { padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .76rem; }
.booking-chip.sent { border-color: #b9d9a6; color: #2f4a3a; }
.booking-chip.failed { border-color: #f2c9bf; color: #8a3a26; }

@media (max-width: 820px) {
  .availability-page { grid-template-columns: 1fr; gap: 16px; }
  .availability-page > .card:first-child { grid-row: auto; }
  .availability-day { grid-template-columns: 1fr; gap: 8px; }
  .availability-upcoming { margin-bottom: 16px; }
  .booking-row { grid-template-columns: 1fr; gap: 8px; }
  .booking-row-actions { justify-content: stretch; }
  .booking-row-actions .button { flex: 1 1 0; justify-content: center; text-align: center; }
}

@media (max-width: 520px) {
  .availability-fields { grid-template-columns: 1fr; }
  .availability-range { flex: 1 1 100%; }
  .availability-range input { flex: 1 1 0; width: auto; min-width: 0; }
  .availability-connection { padding: 14px; }
  .availability-connection > .button { justify-self: stretch; text-align: center; }
}

.bottom-nav { display: none; }

@media (max-width: 1120px) {
  :root { --sidebar: 220px; }
  .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid,
  .waiver-layout { grid-template-columns: 1fr; }
  .intake-layout { grid-template-columns: 1fr; }
  .intake-sidebar { position: static; }
  .intake-sidebar nav { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px 12px; }
  .stories-layout { grid-template-columns: minmax(0, 1fr); }
  .sign-card,
  .client-detail,
  .community-notes { position: static; }
  .admin-split { grid-template-columns: 1fr; }
  .about-hero { grid-template-columns: 1fr; }
  .about-hero-portrait { min-height: 0; height: 520px; }
  .seed-prompt-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-art { min-height: 310px; padding: 30px; }
  .login-quote h1 { margin-top: 45px; font-size: 2.55rem; }
  .login-foot { display: none; }
  .login-panel { padding: 38px 24px 70px; }
  .app-shell { display: block; }
  .sidebar { display: none; }
  .topbar { min-height: 64px; padding-inline: 18px; }
  .topbar-title { display: none; }
  .mobile-brand { display: flex; }
  .topbar-actions { margin-left: auto; }
  .content { padding: 24px 17px 36px; }
  .portal-tagline { width: calc(100% - 34px); padding: 20px 0 calc(104px + env(safe-area-inset-bottom)); font-size: clamp(.58rem, 2.5vw, .7rem); letter-spacing: .045em; }
  .page-head { align-items: flex-start; flex-direction: column; margin-bottom: 24px; }
  .seeds-use-grid,
  .seeds-phase-nav,
  .seeds-delivery-list { grid-template-columns: 1fr; }
  .seeds-phase-head { grid-template-columns: 1fr; }
  .seeds-phase-head > span { width: auto; height: auto; display: block; border: 0; text-align: left; }
  .grid.two,
  .grid.three { grid-template-columns: 1fr; }
  .about-welcome,
  .about-philosophy { grid-template-columns: 1fr; }
  .about-pillar-grid,
  .about-vision-grid { grid-template-columns: 1fr; }
  .about-pillar-card { min-height: 250px; }
  .about-real-life-note { grid-template-columns: 1fr; gap: 4px; }
  .about-vision-grid article,
  .about-vision-grid article:first-child,
  .about-vision-grid article:last-child { min-height: 0; border: 1px solid var(--line); border-bottom: 0; border-radius: 0; }
  .about-vision-grid article:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .about-vision-grid article:last-child { border-bottom: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }
  .about-vision-grid span { margin-bottom: 34px; }
  .membership-hero { align-items: flex-start; flex-direction: column; }
  .membership-hero .button { width: 100%; }
  .membership-portal-head { flex-direction: column; }
  .membership-portal-frame { min-height: 720px; }
  .form-grid { grid-template-columns: 1fr; }
  .intake-choice-grid { grid-template-columns: 1fr; }
  .intake-sidebar { display: none; }
  .intake-submit { grid-template-columns: 1fr; }
  .intake-submit .form-actions { justify-content: flex-start; }
  .intake-review-sections { grid-template-columns: 1fr; }
  .stories-welcome { min-height: 0; }
  .story-community-mark { min-width: 150px; }
  .message-layout { min-height: 0; grid-template-columns: 1fr; }
  .thread-list { border-right: 0; border-bottom: 1px solid var(--line); }
  .nutrition-table thead { display: none; }
  .nutrition-table,
  .nutrition-table tbody,
  .nutrition-table tr,
  .nutrition-table td { display: block; width: 100%; }
  .nutrition-table tr { margin-bottom: 13px; padding: 10px; position: relative; border: 1px solid var(--line); border-radius: 13px; background: white; }
  .nutrition-table td { padding: 5px 0; }
  .nutrition-table td::before { content: attr(data-label); display: block; margin-bottom: 4px; color: var(--muted); font-size: .64rem; font-weight: 700; text-transform: uppercase; }
  .nutrition-table td:last-child { width: 100%; position: absolute; right: 8px; top: 5px; }
  .nutrition-table td:last-child::before { display: none; }
  .remove-row { float: right; }
  .first-landing { display: block; overflow-y: auto; }
  .welcome-portrait { height: min(54svh, 520px); }
  .welcome-portrait img { object-position: center 18%; }
  .welcome-panel { min-height: 54svh; padding: 34px 30px 54px; overflow-y: visible; gap: 70px; }
  .onboarding-aside { min-height: 320px; }
  .expectations-aside { min-height: 390px; }
  .onboarding-main { overflow: visible; }
  .release-changelog-body { grid-template-columns: 1fr; }
  .bottom-nav { height: 72px; position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 30; padding: 7px 8px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid rgba(221,216,207,.8); border-radius: 18px; background: rgba(255,253,249,.95); box-shadow: var(--shadow); backdrop-filter: blur(14px); }
  .bottom-nav button { border: 0; border-radius: 12px; padding: 5px 2px; position: relative; display: grid; justify-items: center; align-content: center; gap: 2px; background: transparent; color: var(--muted); font-size: .55rem; cursor: pointer; }
  .bottom-nav button.active { background: var(--forest-soft); color: var(--forest); }
  .bottom-nav svg { width: 18px; height: 18px; }
  .bottom-nav .nav-badge { min-width: 17px; height: 17px; padding-inline: 4px; position: absolute; right: calc(50% - 20px); top: 2px; font-size: .56rem; }
}

@media (max-width: 520px) {
  .login-art-mark img { width: 92px; height: 92px; }
  .login-quote h1 { font-size: 2.15rem; }
  .login-art { min-height: 280px; }
  .grid.four { grid-template-columns: 1fr; }
  .hero-card { min-height: 350px; }
  .about-page { gap: 18px; }
  .about-hero { min-height: 0; }
  .about-hero-copy { min-height: 510px; padding: 34px 24px; }
  .about-hero h1 { font-size: 3.1rem; }
  .about-hero-mark { margin-top: 30px; }
  .about-hero-portrait { height: 430px; }
  .about-welcome,
  .about-philosophy,
  .about-practice,
  .about-future { padding: 30px 23px; }
  .about-section-heading h2,
  .about-centered-heading h2,
  .about-future h2 { font-size: 2.35rem; }
  .about-pillar-card { padding: 84px 24px 28px; }
  .about-belief { font-size: 1.55rem; text-align: left; }
  .hero-meta { align-items: flex-start; flex-direction: column; }
  .profile-photo-field { grid-template-columns: 86px minmax(0, 1fr); gap: 15px; }
  .profile-photo-preview { width: 86px; height: 86px; font-size: 1.2rem; }
  .intake-page-head { align-items: flex-start; }
  .intake-section { padding: 22px 18px; }
  .intake-section > header { grid-template-columns: 38px minmax(0, 1fr); gap: 10px; }
  .intake-section > header > span { width: 36px; height: 36px; }
  .intake-submit .form-actions { display: grid; grid-template-columns: 1fr; }
  .intake-submit .button { width: 100%; }
  .client-intake-summary,
  .client-food-log-summary { align-items: flex-start; flex-direction: column; }
  .stories-heading .button { width: 100%; }
  .stories-welcome { padding: 30px 24px; }
  .story-community-mark { display: none; }
  .story-author { padding: 18px 18px 0; }
  .story-copy { padding: 15px 18px 19px; }
  .story-copy h2 { font-size: 1.22rem; }
  .story-media { margin-inline: 0; }
  .story-actions { flex-wrap: wrap; }
  .story-comments { padding: 16px 18px 20px; }
  .story-actions .button { width: 100%; margin-left: 0; }
  .story-comment-form { grid-template-columns: 30px minmax(0, 1fr); }
  .story-comment-form .comment-avatar { width: 30px; height: 30px; }
  .story-comment-form .button { grid-column: 2; justify-self: start; }
  .story-comment-form .form-message { grid-column: 2; }
  .education-card > button { min-height: 0; padding: 22px; }
  .education-card-foot { align-items: flex-start; flex-direction: column; }
  .education-reader-head { padding: 30px 22px 34px; }
  .education-reader-head h1 { font-size: 2rem; }
  .education-reader-body { padding: 32px 22px 46px; }
  .membership-hero { padding: 30px 22px 34px; }
  .membership-hero h1 { font-size: 2.3rem; }
  .membership-portal-head { padding: 24px 22px; }
  .membership-portal-frame { min-height: 680px; }
  .membership-portal-note { padding-inline: 18px; }
  .education-delete { margin-left: 0; }
  .chat-scroll { padding-inline: 14px; }
  .bubble { max-width: 88%; }
  .chat-compose { grid-template-columns: 1fr; }
  .modal-backdrop { padding: 0; place-items: end stretch; }
  .modal { width: 100%; max-height: 92vh; border-radius: 24px 24px 0 0; }
  .onboarding-signout { top: 14px; right: 14px; }
  .onboarding-aside { min-height: 300px; padding: 28px 22px; }
  .onboarding-main { padding: 32px 18px 80px; }
  .welcome-portrait { height: 410px; }
  .welcome-panel { min-height: 0; padding: 30px 22px 56px; gap: 64px; }
  .welcome-panel .onboarding-wordmark { font-size: 2.35rem; }
  .welcome-copy h1 { margin-bottom: 22px; font-size: 2.55rem; }
  .welcome-copy p:not(.eyebrow, .welcome-signature) { font-size: .96rem; line-height: 1.68; }
  .welcome-continue { width: 100%; }
  .expectations-list article { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; }
  .expectations-enter { width: 100%; }
}

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

/* ---------- Settings tabs and Settings › Linktree ---------- */
.settings-tabs { width: max-content; max-width: 100%; margin: 0 0 22px; padding: 4px; display: flex; gap: 4px; border-radius: 12px; background: var(--sand-soft); }
.settings-tabs button { min-height: 40px; border: 0; border-radius: 9px; padding: 8px 18px; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; }
.settings-tabs button.active { background: var(--paper); color: var(--coral); box-shadow: 0 3px 12px rgba(47,74,58,.09); }
.links-share { margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.links-share-copy { min-width: 0; display: grid; gap: 4px; }
.links-share-copy a { color: var(--forest); font-family: "Jost", sans-serif; font-size: 1.3rem; font-weight: 500; overflow-wrap: anywhere; }
.links-share-copy p { margin: 2px 0 0; }
.links-share-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.links-editor { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.links-list-head p { margin: 0; color: var(--muted); font-size: .86rem; }
.link-grip-inline svg { width: 15px; height: 15px; vertical-align: -3px; color: var(--forest); }
.link-rows { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.link-row { padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: box-shadow .15s ease, border-color .15s ease; }
.link-row.is-hidden { background: var(--sand-soft); }
.link-row.is-hidden .link-row-icon,
.link-row.is-hidden .link-row-text { opacity: .55; }
.link-row.is-editing { border-color: var(--coral); }
.link-row.is-dragging { position: relative; z-index: 2; border-color: var(--forest); box-shadow: var(--shadow); }
.link-rows.is-sorting { user-select: none; -webkit-user-select: none; }
.link-row-main { min-width: 0; display: grid; grid-template-columns: 44px 40px minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.link-drag { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; display: grid; place-items: center; background: transparent; color: var(--muted); cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none; }
.link-drag:hover,
.link-row.is-dragging .link-drag { background: var(--forest-soft); color: var(--forest); }
.link-row.is-dragging .link-drag { cursor: grabbing; }
.link-drag svg { width: 22px; height: 22px; }
.link-row-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--forest); }
.link-row-icon svg { width: 21px; height: 21px; }
.link-row-text { min-width: 0; display: grid; gap: 2px; }
.link-row-text strong { overflow-wrap: anywhere; font-size: .95rem; }
.link-row-text span { overflow: hidden; color: var(--muted); font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.link-pill { padding: 4px 8px; border-radius: 999px; background: #fff; color: var(--muted); font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.link-row-actions { margin-top: 8px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.link-tool { min-height: 48px; border: 1px solid var(--line); border-radius: 10px; padding: 5px 2px; display: grid; justify-items: center; align-content: center; gap: 2px; background: var(--paper); color: var(--forest); font-size: .7rem; font-weight: 700; cursor: pointer; }
.link-tool:hover:not(:disabled) { border-color: var(--forest); background: var(--forest-soft); }
.link-tool:disabled { cursor: default; opacity: .35; }
.link-tool svg { width: 18px; height: 18px; }
.link-tool[data-action="link-remove"] { color: var(--danger); }
.link-tool[data-action="link-remove"]:hover:not(:disabled) { border-color: var(--danger); background: #f8eeee; }
.link-form { margin: 12px 0 14px; padding: 16px; display: grid; gap: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--sand-soft); }
.link-row .link-form { margin: 10px 0 0; padding: 6px 2px 2px; border-color: transparent; background: #fff; }
.link-form-title { margin: 0; color: var(--forest); font-family: "Jost", sans-serif; font-size: 1.05rem; font-weight: 600; }
.link-form input { font-size: 16px; }
.icon-picker { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.icon-picker summary { min-height: 56px; padding: 8px 12px; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.icon-picker summary::-webkit-details-marker { display: none; }
.icon-picker summary strong { display: block; color: #4f4d48; font-size: .78rem; }
.icon-picker summary small { color: var(--ink); font-size: .9rem; }
.icon-picker-current { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--forest); }
.icon-picker-current svg { width: 21px; height: 21px; }
.icon-picker-change { color: var(--coral); font-size: .84rem; font-weight: 700; }
.icon-picker[open] .icon-picker-change { visibility: hidden; }
.icon-choices { padding: 4px 10px 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: 6px; }
.icon-choice { position: relative; cursor: pointer; }
.icon-choice input { position: absolute; opacity: 0; pointer-events: none; }
.icon-choice span { min-height: 62px; padding: 6px 2px; display: grid; justify-items: center; align-content: center; gap: 4px; border: 1px solid var(--line); border-radius: 10px; color: var(--forest); text-align: center; }
.icon-choice svg { width: 22px; height: 22px; }
.icon-choice small { max-width: 100%; overflow: hidden; color: var(--muted); font-size: .62rem; font-weight: 700; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.icon-choice input:checked + span { border-color: var(--forest); background: var(--forest-soft); box-shadow: inset 0 0 0 1px var(--forest); }
.icon-choice input:focus-visible + span { outline: 3px solid rgba(255, 106, 77, .45); outline-offset: 1px; }
.links-photo-choices { margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.links-photo-choices legend { margin-bottom: 8px; padding: 0; }
.links-photo-choice { position: relative; padding: 8px 4px; display: grid; justify-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-size: .7rem; font-weight: 700; line-height: 1.2; text-align: center; cursor: pointer; }
.links-photo-choice:has(input:checked) { border-color: var(--forest); background: var(--forest-soft); color: var(--forest); }
.links-photo-choice input { position: absolute; opacity: 0; pointer-events: none; }
.links-photo-choice:has(input:focus-visible) { outline: 3px solid rgba(255, 106, 77, .45); }
.links-photo-thumb { width: 54px; height: 54px; overflow: hidden; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: #fff; font-family: "Jost", sans-serif; font-weight: 500; }
.links-photo-thumb.logo { border-radius: 12px; background: none; }
.links-photo-thumb.custom { background: var(--sand-soft); color: var(--muted); }
.links-photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.links-photo-thumb svg { width: 22px; height: 22px; }
.links-upload { position: relative; justify-self: start; }
.links-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.links-profile-card input { font-size: 16px; }
.links-empty { margin: 8px 0 0; }
.admin-menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.admin-menu-grid button { min-height: 56px; position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; background: #fff; color: var(--forest); font-weight: 700; text-align: left; cursor: pointer; }
.admin-menu-grid button.active { border-color: var(--forest); background: var(--forest-soft); }
.admin-menu-grid svg { width: 20px; height: 20px; flex: 0 0 auto; }
.admin-menu-grid .nav-badge { margin-left: auto; }

@media (max-width: 1120px) {
  .links-editor { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .links-share-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .links-list-head { flex-direction: column; }
  .links-list-head .button { width: 100%; }
  .link-row { padding: 8px; }
  .link-row-main { grid-template-columns: 40px 36px minmax(0, 1fr) auto; gap: 6px; }
  .link-drag { width: 40px; }
  .link-row-icon { width: 36px; height: 36px; }
  .link-row-actions { gap: 5px; }
  .link-tool { font-size: .64rem; }
  .link-form .form-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .link-form .form-message { grid-column: 1 / -1; }
  .links-photo-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .links-upload { justify-self: stretch; }
  .settings-tabs { width: 100%; }
  .settings-tabs button { flex: 1 1 0; }
}

/* ---------- Email funnel page (adminFunnel in portal.js, docs/FUNNEL.md) ---------- */
.funnel-map-card { margin-bottom: 18px; }
.funnel-map { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; }
.funnel-stage { position: relative; display: grid; align-content: start; gap: 4px; padding: 14px 14px 16px; border: 1px solid var(--line); border-top: 5px solid var(--forest); border-radius: 12px; background: #fff; font-size: .85rem; line-height: 1.4; min-width: 0; overflow-wrap: break-word; }
.funnel-stage strong { font-size: 1rem; color: var(--forest); }
.funnel-stage > span:last-child { color: var(--muted); }
.funnel-stage a { color: var(--forest); font-weight: 700; }
.funnel-stage.lime { border-top-color: var(--lime); background: #f7fce6; }
.funnel-stage.dark { border-top-color: var(--forest); background: var(--forest); }
.funnel-stage.dark strong, .funnel-stage.dark > span, .funnel-stage.dark a { color: #fff; }
.funnel-stage.dark .funnel-step { color: var(--lime); }
.funnel-step { color: var(--muted); font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.funnel-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 18px; align-items: start; }
.funnel-column { display: grid; gap: 18px; min-width: 0; }
.funnel-checks { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; font-size: .9rem; }
.funnel-checks li { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.funnel-checks li.done { color: var(--forest); font-weight: 600; }
.funnel-checks svg { width: 18px; height: 18px; }
.funnel-switch { padding: 12px 14px; border-radius: 10px; background: var(--sand-soft); }
.funnel-settings-card textarea, .funnel-email textarea { font-size: 16px; line-height: 1.5; resize: vertical; }
.funnel-settings-card input, .funnel-email input:not([type="checkbox"]) { font-size: 16px; }
.funnel-emails { display: grid; gap: 10px; }
.funnel-email { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.funnel-email > summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px; cursor: pointer; list-style: none; min-height: 56px; }
.funnel-email > summary::-webkit-details-marker { display: none; }
.funnel-email[open] > summary { border-bottom: 1px solid var(--line); }
.funnel-email form { padding: 14px; }
.funnel-day { padding: 6px 9px; border-radius: 8px; background: var(--lime); color: var(--forest); font-size: .72rem; font-weight: 800; white-space: nowrap; }
.funnel-email-title { display: grid; min-width: 0; }
.funnel-email-title small { color: var(--muted); }
.funnel-email code { font-size: .8rem; }
.funnel-signups-card .settings-tabs { margin-bottom: 12px; }
.funnel-signups { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.funnel-signup { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.funnel-signup-text { display: grid; min-width: 0; font-size: .88rem; }
.funnel-signup-text span { overflow-wrap: anywhere; }
.funnel-signup-text small { color: var(--muted); }
.funnel-signup .link-tool { min-width: 48px; }
.funnel-signup .status-pill, .funnel-email .status-pill, .funnel-settings-card .status-pill { text-transform: none; white-space: nowrap; }
@media (max-width: 1120px) {
  .funnel-columns { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .funnel-map { grid-template-columns: minmax(0, 1fr); }
  .funnel-signup { grid-template-columns: minmax(0, 1fr) auto; }
  .funnel-signup .status-pill { grid-column: 1; grid-row: 2; justify-self: start; }
  .funnel-signup .link-tool { grid-row: 1 / span 2; grid-column: 2; }
  .funnel-signups-card .card-head { flex-wrap: wrap; }
}
