:root {
  color-scheme: light;
  --forest: #173f35;
  --forest-2: #245a49;
  --lime: #dff36b;
  --cream: #f7f5ec;
  --paper: #fffef9;
  --ink: #18302a;
  --muted: #66736f;
  --line: #dfe5df;
  --soft: #eaf1eb;
  --orange: #e87345;
  --shadow: 0 18px 50px rgba(23, 63, 53, .12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--cream); }
button, input, select { font: inherit; }
button, label[data-entry-mode] { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.5rem, 7vw, 5.8rem); line-height: .96; letter-spacing: -.055em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.6rem); line-height: 1.06; letter-spacing: -.035em; }
.eyebrow { margin-bottom: 10px; color: var(--orange); font-size: .72rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; font-weight: 850; text-decoration: none; }
.brand-mark { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 12px; color: var(--forest); background: var(--lime); }
.marketing-nav, .app-header { display: flex; align-items: center; justify-content: space-between; max-width: 1240px; margin: auto; padding: 20px clamp(18px, 4vw, 44px); }
.text-link, .text-button { border: 0; color: var(--forest); background: transparent; font-weight: 750; }

.landing-hero { display: grid; grid-template-columns: 1.1fr .7fr; gap: clamp(40px, 8vw, 110px); align-items: center; max-width: 1180px; min-height: 690px; margin: auto; padding: 60px clamp(18px, 4vw, 44px) 90px; }
.landing-hero h1 { max-width: 800px; margin-bottom: 24px; }
.hero-copy { max-width: 650px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 15px; padding: 0 22px; font-weight: 820; text-decoration: none; }
.button-primary { color: white; background: var(--forest); }
.button-quiet { border-color: var(--line); background: rgba(255,255,255,.65); }
.microcopy, .privacy-line { margin: 14px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.phone-preview { width: min(100%, 350px); min-height: 600px; margin: auto; border: 10px solid #102a24; border-radius: 44px; padding: 28px 18px; color: white; background: var(--forest); box-shadow: 0 35px 70px rgba(18,45,38,.25); transform: rotate(2deg); }
.phone-preview-top { display: flex; justify-content: space-between; color: rgba(255,255,255,.68); font-size: .78rem; }
.preview-greeting { margin-top: 65px; font-size: 1.8rem; font-weight: 800; letter-spacing: -.04em; }
.preview-ring { display: grid; width: 180px; height: 180px; margin: 35px auto; place-content: center; border: 12px solid var(--lime); border-right-color: rgba(255,255,255,.16); border-radius: 50%; text-align: center; }
.preview-ring strong { font-size: 2.2rem; }.preview-ring span { color: rgba(255,255,255,.7); font-size: .8rem; }
.preview-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.preview-metrics span { display: grid; gap: 5px; border-radius: 13px; padding: 12px 7px; background: rgba(255,255,255,.09); font-size: .7rem; text-align: center; }
.preview-entry { margin-top: 24px; border-radius: 18px; padding: 18px; color: var(--forest); background: white; font-weight: 750; }
.trust-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 50px; padding: 22px; color: white; background: var(--forest); font-size: .82rem; font-weight: 750; }
.trust-strip span::before { content: "âœ“"; margin-right: 9px; color: var(--lime); }
.how-section { max-width: 1180px; margin: auto; padding: 110px clamp(18px, 4vw, 44px); }
.how-section > h2 { max-width: 700px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.feature-grid article { min-height: 230px; border: 1px solid var(--line); border-radius: 24px; padding: 26px; background: var(--paper); }
.feature-grid article > span { color: var(--orange); font-weight: 850; }.feature-grid h3 { margin: 55px 0 9px; font-size: 1.35rem; }.feature-grid p { color: var(--muted); line-height: 1.55; }
.marketing-footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px clamp(18px, 4vw, 44px); color: rgba(255,255,255,.7); background: #0f2922; font-size: .78rem; }

.app-page { min-height: 100vh; background: #f3f5f0; }
.app-header { position: sticky; top: 0; z-index: 5; max-width: none; border-bottom: 1px solid rgba(223,229,223,.8); background: rgba(243,245,240,.9); backdrop-filter: blur(18px); }
.avatar-button { display: grid; width: 40px; height: 40px; place-items: center; border: 0; border-radius: 50%; color: white; background: var(--forest); font-size: .75rem; font-weight: 850; text-decoration: none; }
.dashboard { max-width: 1160px; margin: auto; padding: 28px clamp(16px, 4vw, 40px) 110px; }
.today-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 18px 0 28px; }
.today-heading h1 { margin-bottom: 8px; font-size: clamp(2rem, 5vw, 4rem); }.today-heading p:last-child { margin-bottom: 0; color: var(--muted); }
.diet-badge { flex: 0 0 auto; border: 0; cursor: pointer; border-radius: 999px; padding: 8px 12px; color: var(--forest); background: var(--soft); font-size: .78rem; font-weight: 800; }
.install-tip { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: -8px 0 18px; border: 1px solid #cad9cf; border-radius: 17px; padding: 13px 15px; color: var(--forest); background: #eef5ef; }
.install-tip[hidden], .install-tip-button[hidden] { display: none; }
.install-tip-copy { display: grid; flex: 1 1 auto; gap: 2px; }
.install-tip p { margin: 0; font-size: .78rem; line-height: 1.5; }
.install-tip-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.install-tip-button { min-height: 39px; border: 0; border-radius: 11px; padding: 0 13px; color: white; background: var(--forest); font-size: .75rem; font-weight: 800; }
.install-tip-dismiss { border: 0; padding: 5px 0; color: var(--forest-2); background: transparent; font-size: .7rem; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.tips-dropdown { margin: -8px 0 18px; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); }
.tips-dropdown > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 15px; color: var(--forest); cursor: pointer; font-size: .82rem; font-weight: 830; list-style: none; }
.tips-dropdown > summary::-webkit-details-marker { display: none; }
.tips-dropdown > summary::after { content: "▾"; font-size: 1rem; transition: transform 150ms ease; }
.tips-dropdown[open] > summary::after { transform: rotate(180deg); }
.tips-dropdown > summary small { margin-left: auto; color: var(--muted); font-size: .7rem; font-weight: 650; }
.tips-dropdown-content { display: grid; gap: 14px; border-top: 1px solid var(--line); padding: 14px; }
.tips-dropdown-content .install-tip { margin: 0; }
.tips-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tips-grid article { border: 1px solid var(--line); border-radius: 13px; padding: 12px; background: var(--soft); }
.tips-grid strong { color: var(--forest); font-size: .76rem; }.tips-grid p { margin: 5px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.tips-grid .signature-tip { border-color: #c7d7ad; background: linear-gradient(145deg, #f5f9e9, #eef5ef); }
.signature-tip > span { display: block; margin-bottom: 5px; color: #5f762f; font-size: .58rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.coach-launcher { display: grid; grid-template-columns: 1fr auto; gap: 14px 24px; align-items: center; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; background: var(--paper); }
.coach-launcher .eyebrow { margin-bottom: 5px; }.coach-launcher h2 { margin: 0; font-size: 1.25rem; }
.coach-launcher .coach-buttons { margin: 0; }.coach-launcher button { min-height: 43px; border: 1px solid var(--forest); border-radius: 12px; padding: 0 15px; color: var(--forest); background: white; font-size: .78rem; font-weight: 800; }
.coach-launcher #plan-dinner { color: white; background: var(--forest); }
.coach-launcher .coach-action-form { grid-column: 1 / -1; border-top-color: var(--line); }
.coach-launcher .coach-action-form label { color: var(--muted); }.coach-launcher .coach-action-form label strong { color: var(--ink); }
.coach-launcher .coach-action-form textarea { border: 1px solid var(--line); }
.coach-launcher .coach-photo-field { border-color: var(--line); background: var(--soft); }
.coach-launcher .coach-photo-field p strong { color: var(--ink); }.coach-launcher .coach-photo-field p span, .coach-launcher .coach-photo-name, .coach-launcher .coach-photo-field small { color: var(--muted); }
.coach-launcher .coach-location-field { border-color: var(--line); background: var(--soft); }
.coach-launcher .coach-location-field p strong { color: var(--ink); }.coach-launcher .coach-location-field p span, .coach-launcher .coach-location-status, .coach-launcher .coach-location-field small { color: var(--muted); }
.coach-launcher .coach-action-result { color: var(--ink) !important; background: var(--soft); }
.quick-log-card { border-radius: 26px; padding: clamp(20px, 4vw, 34px); color: white; background: var(--forest); box-shadow: var(--shadow); }
.quick-log-card .eyebrow { color: var(--lime); }.quick-log-card h2 { margin-bottom: 22px; }
.entry-field input { width: 100%; min-height: 62px; border: 0; border-radius: 17px; padding: 0 18px; color: var(--ink); background: white; font-size: 1rem; outline: none; }
.entry-field input:focus { box-shadow: 0 0 0 4px rgba(223,243,107,.42); }
.quick-label-field { display: inline-flex; align-items: center; gap: 9px; margin-top: 10px; color: rgba(255,255,255,.72); font-size: .78rem; font-weight: 760; }
.quick-label-field select { min-height: 38px; border: 1px solid rgba(255,255,255,.22); border-radius: 11px; padding: 0 32px 0 10px; color: white; background: var(--forest-2); }
.entry-actions { display: flex; gap: 8px; margin-top: 10px; }
.mode-button, .log-button { display: inline-flex; min-height: 44px; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,.18); border-radius: 13px; padding: 0 13px; color: white; background: rgba(255,255,255,.08); font-size: .82rem; font-weight: 760; }
.mode-button.is-active { color: var(--forest); background: var(--lime); }.mode-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.log-button { margin-left: auto; border-color: var(--lime); color: var(--forest); background: var(--lime); padding-inline: 22px; }
.quick-log-card .privacy-line { color: rgba(255,255,255,.62); }
.estimate-membership-prompt { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 16px; border: 1px solid rgba(223,243,107,.72); border-radius: 17px; padding: 16px; color: var(--ink); background: #f8fbdc; }
.estimate-membership-prompt[hidden] { display: none; }
.estimate-membership-prompt div { display: grid; gap: 4px; }
.estimate-membership-prompt p, .estimate-membership-prompt small { margin: 0; line-height: 1.45; }
.estimate-membership-prompt p { color: var(--forest); }
.estimate-membership-prompt small { color: var(--muted); }
.estimate-membership-prompt .button { flex: 0 0 auto; white-space: nowrap; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 8px; }
.metric-card { position: relative; display: grid; gap: 5px; min-width: 0; border: 1px solid var(--line); border-radius: 20px; padding: 18px; color: var(--ink); background: var(--paper); font: inherit; text-align: left; cursor: pointer; transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease; }
.metric-card:hover { border-color: rgba(23,63,53,.38); box-shadow: 0 8px 22px rgba(23,63,53,.08); transform: translateY(-1px); }
.metric-card:focus-visible { outline: 3px solid rgba(238,128,79,.3); outline-offset: 2px; border-color: var(--orange); }
.metric-card > span { color: var(--muted); font-size: .75rem; font-weight: 760; }.metric-card strong { font-size: 1.65rem; letter-spacing: -.04em; }.metric-card small { color: var(--muted); }
.metric-card > .metric-detail-cue { color: var(--orange); font-size: .68rem; letter-spacing: .01em; }
.metric-card progress { width: 100%; height: 6px; margin-top: 9px; accent-color: var(--forest); }
.estimate-note { margin: 0 0 18px; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.estimate-note span { color: var(--orange); font-size: 1rem; font-weight: 850; }
.metric-breakdown { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; }
.metric-breakdown[hidden] { display: none; }
.metric-breakdown-backdrop { position: absolute; inset: 0; border: 0; background: rgba(8,28,23,.62); cursor: default; }
.metric-breakdown-panel { position: relative; width: min(620px, 100%); max-height: min(84vh, 760px); overflow-y: auto; border-radius: 26px; padding: 26px; background: var(--paper); box-shadow: 0 30px 80px rgba(8,28,23,.3); }
.metric-breakdown-handle { display: none; }
.metric-breakdown-panel header { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.metric-breakdown-panel h2 { margin-top: 2px; font-size: clamp(1.65rem, 5vw, 2.25rem); }
.metric-breakdown-close { display: grid; flex: 0 0 auto; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--forest); background: var(--soft); font-size: 1.65rem; line-height: 1; cursor: pointer; }
.metric-breakdown-summary { margin: 12px 0 18px; color: var(--muted); line-height: 1.5; }
.metric-contribution-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.metric-contribution-list li { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px 14px; border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: white; }
.metric-contribution-main { min-width: 0; }
.metric-contribution-main strong { display: block; overflow: hidden; color: var(--ink); font-size: .92rem; text-overflow: ellipsis; white-space: nowrap; }
.metric-contribution-main small { color: var(--muted); }
.metric-contribution-value { color: var(--forest); font-size: 1rem; font-weight: 850; white-space: nowrap; }
.metric-contribution-bar { grid-column: 1 / -1; height: 6px; overflow: hidden; border-radius: 999px; background: var(--soft); }
.metric-contribution-bar span { display: block; height: 100%; border-radius: inherit; background: var(--orange); }
.metric-contribution-empty { color: var(--muted); text-align: center; }
.metric-standout { margin-top: 16px; border-radius: 16px; padding: 15px; color: var(--forest); background: #f8fbdc; }
.metric-standout strong { font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; }
.metric-standout p { margin: 5px 0 0; line-height: 1.5; }
.metric-breakdown-note { margin: 14px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.rating-card { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; margin-top: 18px; border: 1px solid var(--line); border-radius: 24px; padding: 24px; background: var(--paper); }
.rating-card h2 { margin-bottom: 10px; font-size: 1.55rem; }.rating-card > div > p:last-child { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.rating-card form { display: grid; gap: 15px; }
.star-rating { display: flex; gap: 5px; margin: 0; border: 0; padding: 0; }
.star-rating legend { width: 100%; margin-bottom: 7px; color: var(--muted); font-size: .72rem; font-weight: 750; }
.star-rating label { cursor: pointer; }.star-rating input { position: absolute; opacity: 0; pointer-events: none; }
.star-rating label > span[aria-hidden] { color: #c9d0cb; font-size: 2rem; line-height: 1; transition: color 120ms ease, transform 120ms ease; }
.star-rating label:has(input:checked) > span[aria-hidden], .star-rating label:has(input:checked) ~ label > span[aria-hidden] { color: #c9d0cb; }
.star-rating:has(input[value="1"]:checked) label:nth-of-type(-n+1) > span[aria-hidden],
.star-rating:has(input[value="2"]:checked) label:nth-of-type(-n+2) > span[aria-hidden],
.star-rating:has(input[value="3"]:checked) label:nth-of-type(-n+3) > span[aria-hidden],
.star-rating:has(input[value="4"]:checked) label:nth-of-type(-n+4) > span[aria-hidden],
.star-rating:has(input[value="5"]:checked) label:nth-of-type(-n+5) > span[aria-hidden] { color: #e5a323; }
.star-rating input:focus-visible + span { outline: 3px solid rgba(232,115,69,.28); border-radius: 4px; }
.feedback-comment { display: grid; gap: 7px; color: var(--ink); font-size: .78rem; font-weight: 760; }.feedback-comment small { color: var(--muted); font-weight: 600; }
.feedback-comment textarea { width: 100%; resize: vertical; border: 1px solid var(--line); border-radius: 13px; padding: 11px 12px; color: var(--ink); background: white; font: inherit; }
.feedback-consent { display: flex; gap: 10px; align-items: start; border: 1px solid var(--line); border-radius: 13px; padding: 12px; color: var(--ink); background: var(--soft); cursor: pointer; }
.feedback-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--forest); }
.feedback-consent span { display: grid; gap: 4px; font-size: .78rem; line-height: 1.4; }
.feedback-consent small { color: var(--muted); font-size: .7rem; font-weight: 600; }
.feedback-actions { display: flex; align-items: center; gap: 12px; }.feedback-actions .button { min-height: 43px; padding-inline: 16px; font-size: .78rem; }
#feedback-status { color: var(--muted); font-size: .75rem; }
.reports-card { margin-top: 18px; border: 1px solid var(--line); border-radius: 24px; padding: 24px; background: var(--paper); }
.reports-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; }.reports-heading h2 { margin-bottom: 7px; font-size: 1.55rem; }.reports-heading > div > p:last-child { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.report-periods { display: flex; flex-wrap: wrap; gap: 7px; }.report-periods button, .report-actions button { min-height: 40px; border: 1px solid var(--line); border-radius: 11px; padding: 0 12px; color: var(--forest); background: white; font-size: .75rem; font-weight: 800; }
.report-periods button.is-active { border-color: var(--forest); color: white; background: var(--forest); }
.report-periods button:disabled { cursor: wait; opacity: .65; }
.report-privacy, .report-status { color: var(--muted); font-size: .72rem; line-height: 1.5; }.report-privacy { margin: 14px 0 0; }.report-status { min-height: 1.2rem; margin: 12px 0 0; }
.report-output { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 18px; }.report-output[hidden] { display: none; }
.report-output-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }.report-output-heading h3 { margin: 0; font-size: 1.25rem; }
.report-actions { display: flex; flex-wrap: wrap; gap: 7px; }.report-actions button:first-child { border-color: var(--forest); color: white; background: var(--forest); }
.report-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.report-metrics article { display: grid; gap: 5px; min-width: 0; border-radius: 13px; padding: 12px; background: var(--soft); }.report-metrics span { color: var(--muted); font-size: .67rem; line-height: 1.3; }.report-metrics strong { color: var(--ink); font-size: 1.05rem; }
.dashboard-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 16px; }
.ledger-card, .coach-card { border: 1px solid var(--line); border-radius: 24px; padding: 24px; background: var(--paper); }
.section-title { display: flex; align-items: start; justify-content: space-between; gap: 15px; }.section-title h2 { font-size: 1.55rem; }
.ledger-list { display: grid; gap: 2px; margin: 6px 0 0; padding: 0; list-style: none; }
.ledger-item { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; border-top: 1px solid var(--line); padding: 15px 0; }
.ledger-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: var(--soft); }
.ledger-main { display: grid; gap: 3px; }.ledger-item small { color: var(--muted); font-size: .73rem; }
.ledger-actions { display: grid; justify-items: end; gap: 6px; }
.ledger-edit-button { border: 0; padding: 3px 0; color: var(--forest-2); background: transparent; font-size: .75rem; font-weight: 800; }
.ledger-edit-form { grid-column: 2 / -1; display: grid; grid-template-columns: minmax(120px, .35fr) 1fr; gap: 10px; border-radius: 14px; padding: 12px; background: var(--soft); }
.ledger-edit-form label { display: grid; gap: 5px; color: var(--muted); font-size: .7rem; font-weight: 750; }
.ledger-edit-form input, .ledger-edit-form select { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; color: var(--ink); background: white; }
.ledger-edit-form > div { grid-column: 1 / -1; display: flex; gap: 8px; }
.ledger-edit-form .button { min-height: 40px; padding-inline: 15px; font-size: .78rem; }
.ledger-edit-form .button-delete-entry { margin-left: auto; border: 1px solid #c85a45; color: #9c3b2a; background: white; }
.coach-card { color: white; background: var(--forest); }.coach-label { color: var(--lime); font-size: .72rem; font-weight: 850; text-transform: uppercase; letter-spacing: .1em; }
.coach-card h2 { margin: 26px 0 12px; font-size: 1.55rem; }.coach-card p { color: rgba(255,255,255,.78); line-height: 1.55; }
.coach-suggestion { display: grid; gap: 5px; margin: 22px 0 0; border-top: 1px solid rgba(255,255,255,.14); padding-top: 18px; }
.coach-suggestion strong { color: var(--lime); font-size: .7rem; letter-spacing: .09em; text-transform: uppercase; }
.coach-suggestion button { justify-self: start; min-height: 36px; margin-top: 7px; border-color: rgba(223,243,107,.58); color: var(--forest); background: var(--lime); }
.coach-buttons { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 30px; }.coach-card button { min-height: 39px; border: 1px solid rgba(255,255,255,.18); border-radius: 11px; padding: 0 12px; color: white; background: rgba(255,255,255,.08); font-size: .76rem; font-weight: 750; }
.coach-action-form { display: grid; gap: 12px; margin-top: 18px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 18px; }
.coach-action-form label { display: grid; gap: 7px; color: rgba(255,255,255,.72); font-size: .76rem; line-height: 1.45; }
.coach-action-form label strong { color: white; font-size: 1rem; }
.coach-action-form textarea { width: 100%; resize: vertical; border: 0; border-radius: 12px; padding: 11px 12px; color: var(--ink); background: white; font: inherit; }
.coach-photo-field { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; align-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 12px; background: rgba(255,255,255,.06); }
.coach-photo-field p { display: grid; gap: 3px; margin: 0; }.coach-photo-field p strong { color: white; font-size: .84rem; }.coach-photo-field p span, .coach-photo-name, .coach-photo-field small { color: rgba(255,255,255,.7); font-size: .72rem; line-height: 1.4; }
.coach-photo-picker { position: relative; display: inline-flex !important; min-height: 40px; align-items: center; justify-content: center; border-radius: 11px; padding: 0 12px; color: var(--forest) !important; background: var(--lime); font-size: .74rem !important; font-weight: 850; cursor: pointer; }
.coach-photo-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }.coach-photo-name { grid-column: 1 / -1; }.coach-photo-field small { grid-column: 1 / -1; }
.coach-location-field { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; align-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 12px; background: rgba(255,255,255,.06); }
.coach-location-field p { display: grid; gap: 3px; margin: 0; }.coach-location-field p strong { color: white; font-size: .84rem; }.coach-location-field p span, .coach-location-status, .coach-location-field small { color: rgba(255,255,255,.7); font-size: .72rem; line-height: 1.4; }
.coach-location-actions { display: flex; gap: 6px; }.coach-location-actions button { min-height: 40px !important; }.coach-location-status, .coach-location-field small { grid-column: 1 / -1; }
.coach-form-buttons { display: flex; gap: 7px; }
.coach-action-status, .coach-action-result { margin: 0; }
.coach-action-result { white-space: pre-wrap; border-radius: 13px; padding: 12px; color: white !important; background: rgba(255,255,255,.09); font-size: .82rem; line-height: 1.55 !important; }
.bottom-nav { position: fixed; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 4; display: none; width: calc(100% - 24px); max-width: 520px; transform: translateX(-50%); align-items: center; justify-content: space-around; border: 1px solid var(--line); border-radius: 19px; padding: 9px 5px; background: rgba(255,255,255,.94); box-shadow: 0 12px 30px rgba(23,63,53,.18); backdrop-filter: blur(16px); }
.settings-preview { display: grid; grid-template-columns: .8fr 1.2fr; gap: 32px; max-width: 1080px; margin: 0 auto 120px; border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 4vw, 36px); background: var(--paper); }
.settings-preview > div > p { color: var(--muted); line-height: 1.55; }
.provider-options { display: grid; gap: 8px; }
.provider-options label { display: flex; gap: 12px; align-items: start; border: 1px solid var(--line); border-radius: 15px; padding: 14px; background: white; cursor: pointer; }
.provider-options input { margin-top: 4px; accent-color: var(--forest); }
.provider-options span { display: grid; gap: 4px; }
.provider-options small { color: var(--muted); line-height: 1.4; }
.settings-preview > .privacy-line { grid-column: 1 / -1; margin: 0; }
.bottom-nav a { color: var(--muted); font-size: .68rem; font-weight: 760; text-decoration: none; }.bottom-nav a.is-current { color: var(--forest); }.bottom-nav button { width: 42px; height: 42px; border: 0; border-radius: 14px; color: var(--forest); background: var(--lime); font-size: 1.4rem; }
.onboarding[hidden] { display: none; }.onboarding { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; overflow-y: auto; padding: 20px; background: rgba(10,30,24,.7); backdrop-filter: blur(8px); }
.onboarding-panel { width: min(100%, 620px); border-radius: 28px; padding: clamp(24px, 5vw, 42px); background: var(--paper); box-shadow: 0 30px 90px rgba(0,0,0,.3); }
.onboarding-panel h1 { margin-bottom: 12px; font-size: clamp(2.2rem, 7vw, 3.7rem); }.onboarding-panel > p:not(.eyebrow):not(.privacy-line) { color: var(--muted); line-height: 1.5; }
.step-indicator { display: flex; gap: 6px; margin-bottom: 32px; }.step-indicator span { width: 28px; height: 5px; border-radius: 99px; background: var(--line); }.step-indicator span.is-active { width: 58px; background: var(--forest); }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 22px 0; }
.choice-chip { min-height: 48px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: white; font-weight: 740; }.choice-chip.is-selected { border-color: var(--forest); color: white; background: var(--forest); }
.select-field { display: grid; gap: 8px; margin: 20px 0; color: var(--muted); font-size: .78rem; font-weight: 760; }.select-field select { min-height: 48px; border: 1px solid var(--line); border-radius: 14px; padding: 0 12px; background: white; }
.full-button { width: 100%; }.full-button:disabled { cursor: not-allowed; opacity: .4; }
.modal-open { overflow: hidden; }
.toast { position: fixed; left: 50%; bottom: 90px; z-index: 30; max-width: calc(100vw - 32px); transform: translate(-50%, 15px); border-radius: 13px; padding: 12px 16px; color: white; background: #102a24; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: 160ms ease; }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* Private customer feedback insights */
.auth-loading .insights-shell { visibility: hidden; }
.insights-shell { max-width: 1160px; margin: auto; padding: 44px clamp(16px, 4vw, 40px) 90px; }
.insights-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 22px; }
.insights-heading h1 { max-width: 780px; margin-bottom: 12px; font-size: clamp(2.35rem, 6vw, 4.8rem); }
.insights-heading p:last-child { max-width: 720px; margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.insights-heading .button { flex: 0 0 auto; }
.insights-heading .button:disabled { cursor: wait; opacity: .6; }
.insights-status { min-height: 1.5rem; margin: 0 0 18px; color: var(--muted); font-size: .82rem; }
.insight-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.insight-metrics article, .attitude-grid article { display: grid; gap: 6px; border: 1px solid var(--line); border-radius: 20px; padding: 20px; background: var(--paper); }
.insight-metrics span, .attitude-grid span { color: var(--muted); font-size: .75rem; font-weight: 760; }
.insight-metrics strong, .attitude-grid strong { font-size: 1.8rem; letter-spacing: -.04em; }
.insights-card { margin-top: 16px; border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 4vw, 30px); background: var(--paper); }
.insights-card-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.insights-card-heading h2 { margin-bottom: 0; font-size: 1.55rem; }
.insights-card-heading > span { color: var(--muted); font-size: .75rem; font-weight: 760; }
.family-access-card .insights-card-heading p:last-child { max-width: 660px; margin: 8px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.family-access-form { display: grid; gap: 8px; margin-top: 22px; }
.family-access-form > label { color: var(--muted); font-size: .72rem; font-weight: 800; }
.family-access-form > div { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.family-access-form input { min-width: 0; min-height: 48px; border: 1px solid var(--line); border-radius: 13px; padding: 0 14px; color: var(--ink); background: white; font: inherit; }
.family-access-form input:focus { outline: 3px solid rgba(23,63,53,.12); border-color: var(--forest); }
.family-access-form small { color: var(--muted); font-size: .7rem; line-height: 1.45; }
.family-access-status { min-height: 1.3rem; margin: 12px 0 0; color: var(--forest); font-size: .76rem; font-weight: 760; }
.family-access-list { display: grid; gap: 8px; margin-top: 14px; }
.family-access-list article { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; border-radius: 15px; padding: 13px; background: var(--soft); }
.family-access-list article > div { display: grid; gap: 4px; min-width: 0; }
.family-access-list strong { overflow-wrap: anywhere; font-size: .82rem; }
.family-access-list article > div span { color: var(--muted); font-size: .68rem; }
.family-access-list .button { min-height: 38px; padding: 8px 12px; font-size: .7rem; }
.family-access-pill { border-radius: 999px; padding: 6px 9px; color: var(--forest); background: var(--lime); font-size: .66rem; font-weight: 830; }
.family-access-pill.is-revoked { color: var(--muted); background: white; }
.family-access-empty { margin: 0; border-radius: 14px; padding: 16px; color: var(--muted); background: var(--soft); font-size: .76rem; }
.attitude-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.attitude-grid article { border: 0; background: var(--soft); }
.attitude-grid .trend-positive strong { color: #267349; }
.attitude-grid .trend-negative strong { color: #aa452f; }
.insight-note { margin: 18px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.55; }
.rating-distribution { display: grid; gap: 10px; margin-top: 20px; }
.rating-distribution > div { display: grid; grid-template-columns: 60px 1fr 82px; gap: 12px; align-items: center; }
.rating-distribution span, .rating-distribution strong { font-size: .75rem; }
.rating-distribution strong { text-align: right; }
.rating-distribution div > div { height: 9px; overflow: hidden; border-radius: 99px; background: var(--soft); }
.rating-distribution i { display: block; height: 100%; border-radius: inherit; background: #e5a323; }
.summary-meta { display: grid; justify-items: end; gap: 5px; color: var(--muted); font-size: .72rem; }
#summary-signal { border-radius: 999px; padding: 5px 9px; color: var(--forest); background: var(--lime); font-weight: 850; text-transform: capitalize; }
.summary-stale { margin: 18px 0 0; border-radius: 12px; padding: 10px 12px; color: #744215; background: #fff0cf; font-size: .76rem; font-weight: 760; }
#summary-empty { margin-top: 22px; color: var(--muted); }
.summary-overview { margin: 22px 0; color: var(--ink); font-size: 1.03rem; line-height: 1.65; }
.summary-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.summary-groups h3 { margin-bottom: 10px; font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; }
.summary-actions { grid-column: 1 / -1; }
.finding-list { display: grid; gap: 8px; }
.finding-list article { border-radius: 14px; padding: 13px; background: var(--soft); }
.finding-list article > div { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.finding-list strong { font-size: .82rem; }
.finding-list span { flex: 0 0 auto; color: var(--muted); font-size: .65rem; text-transform: capitalize; }
.finding-list p { margin: 7px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.finding-list .finding-concern { border-left: 4px solid var(--orange); }
.finding-list .finding-action { border-left: 4px solid var(--forest-2); }
.finding-empty { margin: 0; color: var(--muted); font-size: .75rem; }
.insights-privacy { margin-top: 16px; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; color: var(--muted); background: rgba(255,255,255,.55); font-size: .77rem; line-height: 1.55; }
.insights-privacy summary { color: var(--forest); font-weight: 820; cursor: pointer; }
.insights-privacy p { margin: 12px 0 0; }

/* Account, billing, export, and privacy */
.auth-loading .account-shell { visibility: hidden; }
.account-shell { display: grid; gap: 16px; max-width: 980px; margin: auto; padding: 44px clamp(16px, 4vw, 40px) 100px; }
.account-heading { padding: 12px 0 8px; }
.account-heading h1 { max-width: 760px; margin-bottom: 14px; font-size: clamp(2.5rem, 7vw, 5rem); }
.account-heading > p:not(.eyebrow) { max-width: 710px; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.account-trust-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.account-trust-row span { border: 1px solid #cbd9d0; border-radius: 999px; padding: 8px 11px; color: var(--forest); background: #eef5ef; font-size: .7rem; font-weight: 820; }
.account-trust-row span::before { content: "✓"; margin-right: 6px; color: #548026; }
.account-card { border: 1px solid var(--line); border-radius: 25px; padding: clamp(20px, 4vw, 30px); background: var(--paper); box-shadow: 0 10px 32px rgba(23,63,53,.055); }
.account-card-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.account-card-heading h2 { margin-bottom: 8px; font-size: 1.65rem; }
.account-card-heading > div > p:last-child { max-width: 670px; margin-bottom: 0; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.status-pill { flex: 0 0 auto; border-radius: 999px; padding: 7px 10px; color: var(--forest); background: var(--lime); font-size: .68rem; font-weight: 850; }
.status-pill.is-warning { color: #7b3e15; background: #ffe5c9; }
.status-pill.is-muted { color: var(--muted); background: var(--soft); }
.account-detail-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 24px 0 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.account-detail-list > div { min-width: 0; padding: 14px 16px; border-left: 1px solid var(--line); background: var(--soft); }
.account-detail-list > div:first-child { border-left: 0; }
.account-detail-list dt { margin-bottom: 6px; color: var(--muted); font-size: .66rem; font-weight: 780; letter-spacing: .04em; text-transform: uppercase; }
.account-detail-list dd { margin: 0; overflow-wrap: anywhere; font-size: .82rem; font-weight: 780; }
.account-actions-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.account-actions-row .button:disabled { cursor: not-allowed; opacity: .5; }
.button-danger-outline { border-color: #c85a45; color: #9c3b2a; background: white; }
.account-explainer { margin: 15px 0 0; color: var(--muted); font-size: .74rem; line-height: 1.55; }
.account-status { min-height: 1.35rem; margin: 12px 0 0; color: var(--forest); font-size: .78rem; font-weight: 740; line-height: 1.45; }
.privacy-icon, .danger-icon { display: grid; flex: 0 0 auto; width: 42px; height: 42px; place-items: center; border-radius: 14px; color: var(--forest); background: var(--lime); font-size: 1.15rem; font-weight: 900; }
.export-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 22px; }
.export-options article { display: flex; flex-direction: column; align-items: start; border: 1px solid var(--line); border-radius: 17px; padding: 18px; background: var(--soft); }
.export-options h3 { margin-bottom: 7px; font-size: 1rem; }
.export-options p { flex: 1 1 auto; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.export-options .button { min-height: 45px; padding-inline: 16px; font-size: .76rem; }
.export-options .button:disabled { cursor: wait; opacity: .55; }
.privacy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 22px; }
.privacy-grid article { border-radius: 16px; padding: 17px; background: var(--soft); }
.privacy-grid strong { color: var(--forest); font-size: .82rem; }
.privacy-grid p { margin: 6px 0 0; color: var(--muted); font-size: .76rem; line-height: 1.55; }
.danger-card { border-color: #e6b8ae; background: #fffaf7; }
.danger-card .eyebrow { color: #a43f2b; }
.danger-icon { color: white; background: #b34835; }
.deletion-list { display: grid; gap: 9px; margin: 22px 0; padding-left: 22px; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.confirm-check { display: flex; gap: 10px; align-items: start; margin-top: 15px; border: 1px solid #e6b8ae; border-radius: 14px; padding: 13px; color: var(--ink); background: white; font-size: .8rem; font-weight: 720; cursor: pointer; }
.confirm-check input { width: 18px; height: 18px; margin: 0; accent-color: #a43f2b; }
.delete-confirm-field { display: grid; gap: 8px; margin-top: 14px; color: var(--muted); font-size: .75rem; }
.delete-confirm-field input { width: min(100%, 430px); min-height: 47px; border: 1px solid #d99a8d; border-radius: 12px; padding: 0 13px; color: var(--ink); background: white; }
.delete-confirm-field input:focus { outline: 3px solid rgba(179,72,53,.14); border-color: #a43f2b; }
.button-danger { min-height: 48px; margin-top: 14px; color: white; background: #a43f2b; }
.button-danger:disabled { cursor: not-allowed; opacity: .42; }
.danger-status { color: #8b3525; }

@media (max-width: 760px) {
  .landing-hero { grid-template-columns: 1fr; min-height: auto; padding-top: 45px; }.landing-hero h1 { font-size: clamp(3rem, 15vw, 5rem); }.phone-preview { display: none; }
  .feature-grid { grid-template-columns: 1fr; }.marketing-footer { flex-direction: column; }
  .dashboard { padding-top: 8px; }.app-header { padding: 14px 18px; }.today-heading { align-items: start; }.today-heading h1 { font-size: 2.25rem; }
  .coach-launcher { grid-template-columns: 1fr; }.coach-launcher .coach-action-form { grid-column: auto; }.tips-grid { grid-template-columns: repeat(2, 1fr); }.rating-card { grid-template-columns: 1fr; }.reports-heading, .report-output-heading { align-items: start; flex-direction: column; }.report-metrics { grid-template-columns: repeat(2, 1fr); }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }.dashboard-grid { grid-template-columns: 1fr; }.bottom-nav { display: flex; }
  .settings-preview { grid-template-columns: 1fr; margin-inline: 16px; }.settings-preview > .privacy-line { grid-column: auto; }
  .insights-shell { padding-top: 24px; }.insights-heading { align-items: start; flex-direction: column; }.insights-heading .button { width: 100%; }.insight-metrics { grid-template-columns: repeat(2, 1fr); }.summary-groups { grid-template-columns: 1fr; }.summary-actions { grid-column: auto; }.family-access-form > div { grid-template-columns: 1fr; }.family-access-form .button { width: 100%; }.family-access-list article { grid-template-columns: 1fr auto; }.family-access-list article .button { grid-column: 1 / -1; width: 100%; }
  .account-shell { padding-top: 24px; }.account-detail-list { grid-template-columns: 1fr; }.account-detail-list > div { border-top: 1px solid var(--line); border-left: 0; }.account-detail-list > div:first-child { border-top: 0; }.export-options, .privacy-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .today-heading { display: grid; }.install-tip { display: grid; }.install-tip[hidden] { display: none; }.install-tip-actions { align-items: start; flex-direction: column; }.tips-dropdown > summary small { display: none; }.tips-grid { grid-template-columns: 1fr; }.coach-launcher { padding: 16px; }.coach-launcher .coach-buttons { display: grid; grid-template-columns: 1fr; }.coach-launcher .coach-buttons button { width: 100%; }.coach-photo-field, .coach-location-field { grid-template-columns: 1fr; }.coach-photo-picker, .coach-photo-name, .coach-photo-field small, .coach-location-actions, .coach-location-status, .coach-location-field small { grid-column: 1; }.coach-location-actions { display: grid; grid-template-columns: 1fr auto; }.quick-log-card { border-radius: 21px; padding: 20px 16px; }.entry-actions { display: grid; grid-template-columns: repeat(3, 1fr); }.mode-button { justify-content: center; padding: 0 7px; }.log-button { grid-column: 1 / -1; justify-content: center; margin: 0; }.estimate-membership-prompt { align-items: stretch; flex-direction: column; }.estimate-membership-prompt .button { width: 100%; }
  .metric-card { padding: 15px; }.metric-card strong { font-size: 1.4rem; }.metric-breakdown { place-items: end center; padding: 0; }.metric-breakdown-panel { width: 100%; max-height: 88vh; border-radius: 26px 26px 0 0; padding: 12px 18px calc(22px + env(safe-area-inset-bottom)); }.metric-breakdown-handle { display: block; width: 42px; height: 5px; margin: 0 auto 12px; border-radius: 99px; background: var(--line); }.metric-contribution-list li { padding: 13px; }.ledger-card, .coach-card { padding: 19px; }.ledger-item { grid-template-columns: 38px 1fr auto; }.ledger-edit-form { grid-column: 1 / -1; grid-template-columns: 1fr; }.ledger-edit-form > div { grid-column: auto; flex-wrap: wrap; }.ledger-edit-form .button-delete-entry { width: 100%; margin-left: 0; }.ledger-actions { align-self: start; }
  .choice-grid { grid-template-columns: 1fr; }.onboarding { padding: 10px; place-items: end center; }.onboarding-panel { max-height: 94vh; overflow-y: auto; border-radius: 26px 26px 16px 16px; }
  .insights-page .app-header .text-link { display: none; }.insight-metrics { grid-template-columns: 1fr 1fr; }.insight-metrics article { padding: 15px; }.insight-metrics strong { font-size: 1.4rem; }.attitude-grid { grid-template-columns: 1fr; }.rating-distribution > div { grid-template-columns: 52px 1fr 72px; gap: 8px; }.insights-card-heading { flex-direction: column; }.summary-meta { justify-items: start; }
  .account-page .app-header .text-link[href="./app.html"] { display: none; }.account-heading h1 { font-size: 2.7rem; }.account-card { border-radius: 21px; padding: 19px 16px; }.account-card-heading { align-items: start; }.account-card-heading h2 { font-size: 1.4rem; }.account-actions-row { display: grid; }.account-actions-row .button { width: 100%; }.privacy-icon, .danger-icon { width: 36px; height: 36px; border-radius: 12px; }.export-options article { padding: 15px; }
}

@media print {
  body.app-page { background: white; }
  .app-header, .today-heading, .tips-dropdown, .coach-launcher, .quick-log-card, .metric-grid, .estimate-note, .dashboard-grid, .rating-card, .bottom-nav { display: none !important; }
  .dashboard { max-width: none; padding: 0; }
  .reports-card { margin: 0; border: 0; padding: 0; }
  .report-periods, .report-privacy, .report-actions, .report-status { display: none !important; }
  .report-output { border-top: 0; }
}



/* Authenticated account flow */
.auth-loading .dashboard,
.auth-loading .settings-preview { visibility: hidden; }
.account-actions { display: flex; align-items: center; gap: .65rem; }
#account-email { max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; color: var(--muted); }
.auth-page { min-height: 100vh; background: linear-gradient(180deg, #f7f2e9 0%, #eef5ef 100%); color: var(--ink); }
.auth-shell { min-height: calc(100vh - 74px); display: grid; place-items: center; padding: 2rem 1rem 5rem; }
.auth-card { width: min(100%, 28rem); background: #fff; border: 1px solid var(--line); border-radius: 1.5rem; padding: clamp(1.25rem, 5vw, 2rem); box-shadow: 0 24px 70px rgba(23,63,53,.12); }
.auth-card h1 { margin: .35rem 0 .5rem; font-size: clamp(2rem, 8vw, 3rem); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; margin: 1.35rem 0; padding: .3rem; background: var(--surface-alt); border-radius: .85rem; }
.auth-tabs button { border: 0; border-radius: .65rem; padding: .75rem; background: transparent; color: var(--muted); font-weight: 750; }
.auth-tabs button.is-active { background: #fff; color: var(--green); box-shadow: 0 2px 10px rgba(23,63,53,.1); }
#auth-form { display: grid; gap: 1rem; }
#auth-form label { display: grid; gap: .4rem; font-size: .84rem; font-weight: 750; color: var(--green); }
#auth-form input { width: 100%; border: 1px solid var(--line); border-radius: .8rem; padding: .9rem 1rem; font: inherit; background: #fff; }
#auth-form input:focus { outline: 3px solid rgba(238,128,79,.22); border-color: var(--orange); }
.auth-reset { margin: 1rem auto .35rem; display: block; }
.auth-status { min-height: 1.4rem; margin: .9rem 0 0; color: var(--green); font-weight: 700; }
.ledger-empty { list-style: none; padding: 1.25rem; color: var(--muted); text-align: center; }
@media (max-width: 620px) {
  #account-email { display: none; }
  .account-actions .text-button { font-size: .75rem; }
}


/* Subscription selection and checkout */
.pricing-section,
.subscription-section {
  max-width: 1180px;
  margin: auto;
  padding: 80px clamp(18px, 4vw, 44px) 110px;
}
.subscription-section {
  margin-bottom: 120px;
  padding-top: 0;
  padding-bottom: 0;
}
.pricing-heading { max-width: 720px; margin-bottom: 30px; }
.pricing-heading > p:last-child { color: var(--muted); line-height: 1.55; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 390px;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: clamp(22px, 4vw, 32px);
  background: var(--paper);
  box-shadow: 0 12px 35px rgba(23, 63, 53, .06);
}
.pricing-card-featured { border: 2px solid var(--forest); }
.plan-label {
  align-self: flex-start;
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--forest);
  background: var(--soft);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.pricing-card h3 { margin: 28px 0 8px; font-size: 1.55rem; }
.pricing-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 24px; }
.pricing-price strong { font-size: clamp(2.2rem, 6vw, 3.4rem); letter-spacing: -.055em; }
.pricing-price span { color: var(--muted); font-weight: 700; }
.pricing-features { display: grid; gap: 12px; margin: 0 0 28px; padding: 0; color: var(--muted); list-style: none; }
.pricing-features li { position: relative; padding-left: 22px; line-height: 1.45; }
.pricing-features li::before { content: "✓"; position: absolute; left: 0; color: var(--forest); font-weight: 900; }
.pricing-card .button { margin-top: auto; }
.pricing-card button:disabled { cursor: wait; opacity: .55; }
.pricing-card-coming-soon { background: rgba(255,255,255,.48); }
.coming-soon-copy { margin: auto 0 16px; color: var(--forest); font-size: .88rem; font-weight: 800; line-height: 1.45; }
.coming-soon-button { cursor: not-allowed; opacity: .65; text-align: center; }
.pricing-note { max-width: 850px; margin: 20px auto 0; color: var(--muted); font-size: .78rem; line-height: 1.55; text-align: center; }
.billing-status { min-height: 1.4rem; margin: 14px 0 0; color: var(--forest); font-weight: 750; text-align: center; }
.compact-pricing .pricing-card { min-height: 275px; }

@media (max-width: 760px) {
  .pricing-section { padding-top: 70px; }
  .subscription-section { margin-inline: 16px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card { min-height: 0; }
}


/* Fast onboarding */
.setup-page { min-height: 100vh; background: linear-gradient(180deg, #f7f2e9 0%, #eef5ef 100%); }
.setup-header { display: flex; align-items: center; justify-content: space-between; max-width: 860px; margin: auto; padding: 18px clamp(16px, 4vw, 32px); }
.setup-shell { display: grid; place-items: start center; padding: 18px 14px 70px; }
.setup-card { width: min(100%, 760px); border: 1px solid var(--line); border-radius: 28px; padding: clamp(22px, 5vw, 42px); background: var(--paper); box-shadow: var(--shadow); }
.setup-card h1 { margin-bottom: 10px; font-size: clamp(2.2rem, 7vw, 4rem); }
.setup-intro { color: var(--muted); line-height: 1.5; }
.setup-progress { height: 7px; margin-bottom: 28px; overflow: hidden; border-radius: 99px; background: var(--soft); }
.setup-progress > div { width: 10%; height: 100%; border-radius: inherit; background: var(--forest); transition: width 180ms ease; }
#setup-fields { display: grid; gap: 22px; margin-top: 28px; }
.setup-field { display: grid; gap: 9px; margin: 0; border: 0; padding: 0; color: var(--ink); font-weight: 760; }
.setup-field legend { margin-bottom: 10px; padding: 0; }
.setup-field input[type="text"],
.setup-field input[type="number"],
.setup-field textarea { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; color: var(--ink); background: white; font: inherit; font-weight: 500; }
.setup-field textarea { resize: vertical; }
.setup-field input:focus,
.setup-field textarea:focus { outline: 3px solid rgba(232,115,69,.18); border-color: var(--orange); }
.optional-mark, .required-mark { margin-left: 6px; color: var(--muted); font-size: .68rem; font-weight: 650; }
.required-mark { color: var(--orange); }
.setup-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.setup-choice { cursor: pointer; }
.setup-choice input { position: absolute; opacity: 0; pointer-events: none; }
.setup-choice span { display: inline-flex; min-height: 43px; align-items: center; border: 1px solid var(--line); border-radius: 13px; padding: 8px 13px; color: var(--ink); background: white; font-size: .86rem; font-weight: 720; }
.setup-choice input:checked + span { border-color: var(--forest); color: white; background: var(--forest); }
.setup-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 32px; }
.setup-actions .button { min-width: 120px; }
.setup-actions button:disabled { visibility: hidden; }
.setup-summary { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.setup-summary > div { display: grid; grid-template-columns: minmax(110px, .45fr) 1fr; gap: 16px; padding: 14px 16px; border-top: 1px solid var(--line); }
.setup-summary > div:first-child { border-top: 0; }
.setup-summary span { color: var(--muted); font-size: .78rem; }
.setup-summary strong { font-size: .88rem; }

@media (max-width: 520px) {
  .setup-shell { padding: 0; }
  .setup-card { min-height: calc(100vh - 72px); border-width: 1px 0 0; border-radius: 24px 24px 0 0; box-shadow: none; }
  .setup-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .setup-choice span { width: 100%; justify-content: center; text-align: center; }
  .setup-summary > div { grid-template-columns: 1fr; gap: 4px; }
}
