:root {
  --forest: #123d2f;
  --forest-deep: #0a2b21;
  --forest-soft: #285c49;
  --cream: #f7f0e2;
  --cream-deep: #eee2cc;
  --paper: #fffdf8;
  --gold: #d6b15e;
  --gold-soft: #f2e4bd;
  --terracotta: #b85c42;
  --terracotta-dark: #934631;
  --indigo: #4338ca;
  --ink: #292821;
  --muted: #6f7068;
  --sage: #dce8df;
  --line: rgba(18, 61, 47, 0.12);
  --shadow: 0 16px 48px rgba(41, 40, 33, 0.08);
  --radius: 24px;
  font-family: Inter, Poppins, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--cream); }
body.auth-active { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(214, 177, 94, .55); outline-offset: 2px; }

.app-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 28px 20px 22px; color: white; background: radial-gradient(circle at 50% 0%, #285c49 0, var(--forest) 38%, var(--forest-deep) 100%); overflow: hidden; }
.sidebar::after { content: ""; position: absolute; width: 260px; height: 260px; border: 1px solid rgba(214,177,94,.22); border-radius: 50%; right: -145px; top: 120px; box-shadow: 0 0 0 38px rgba(214,177,94,.04), 0 0 0 76px rgba(214,177,94,.03); pointer-events: none; }
.brand-lockup { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.brand-mark { width: 48px; height: 48px; border-radius: 16px 16px 16px 6px; display: grid; place-items: center; color: var(--forest); background: var(--gold); font-family: Georgia, serif; font-size: 28px; font-weight: 700; box-shadow: inset 0 0 0 1px rgba(255,255,255,.45); }
.brand-lockup strong { display: block; letter-spacing: .12em; font-size: 20px; }
.brand-lockup span { display: block; margin-top: 2px; font-size: 11px; color: rgba(255,255,255,.68); }
.brand-promise { position: relative; z-index: 1; margin: 26px 8px 30px; color: var(--gold-soft); font: italic 17px/1.45 Georgia, serif; }
.side-nav { display: grid; gap: 6px; position: relative; z-index: 1; }
.nav-item { width: 100%; min-height: 48px; padding: 0 14px; border: 0; border-radius: 14px; display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.76); background: transparent; text-align: left; font-weight: 650; transition: 180ms ease; }
.nav-item span { width: 22px; font-size: 18px; color: var(--gold); text-align: center; }
.nav-item:hover, .nav-item.is-active { color: white; background: rgba(255,255,255,.11); transform: translateX(2px); }
.sidebar-footer { margin-top: auto; position: relative; z-index: 1; }
.sync-pill { width: fit-content; display: flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); border-radius: 999px; padding: 8px 11px; font-size: 12px; }
.sync-dot { width: 8px; height: 8px; border-radius: 50%; background: #8fdea8; box-shadow: 0 0 0 4px rgba(143,222,168,.12); }
.sync-dot.offline { background: var(--gold); }
.sidebar-footer small { display: block; margin-top: 10px; color: rgba(255,255,255,.48); line-height: 1.4; }

.main-content { min-width: 0; padding: 28px clamp(20px, 3vw, 46px) 64px; background: radial-gradient(circle at 78% -8%, rgba(214,177,94,.18), transparent 22%), var(--cream); }
.topbar { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.eyebrow { margin: 0 0 7px; color: var(--forest-soft); font-size: 11px; line-height: 1.2; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow.gold { color: #94742e; }
.topbar h1 { margin: 0; color: var(--forest-deep); font-size: clamp(26px, 3vw, 39px); line-height: 1.1; letter-spacing: -.035em; }
.topbar h1 span, .topbar h1 small { display: block; }
.topbar h1 small { margin-top: 5px; color: var(--forest-soft); font: 600 clamp(14px, 1.4vw, 18px)/1.25 Georgia, serif; letter-spacing: 0; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.profile-button { width: 46px; height: 46px; border: 0; border-radius: 16px; color: white; background-color: var(--forest); background-position: center; background-size: cover; font-weight: 800; box-shadow: var(--shadow); }
.profile-button.has-photo { color: transparent; box-shadow: inset 0 0 0 2px rgba(255,255,255,.75), var(--shadow); }
.card { border: 1px solid rgba(18,61,47,.09); border-radius: var(--radius); background: rgba(255,253,248,.94); box-shadow: var(--shadow); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(280px, .82fr); gap: 22px; }
.daily-card { padding: clamp(22px, 3vw, 34px); }
.card-heading-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.card h2, .page-intro h2 { margin: 0; color: var(--forest-deep); font-size: clamp(22px, 2vw, 30px); line-height: 1.16; letter-spacing: -.025em; }
.muted, .page-intro p { color: var(--muted); line-height: 1.55; }
.progress-ring { flex: 0 0 auto; width: 96px; height: 96px; padding: 8px; border-radius: 50%; background: conic-gradient(var(--terracotta) var(--progress), var(--sage) 0); transition: background 350ms ease; }
.progress-ring > div { width: 100%; height: 100%; border-radius: 50%; display: grid; place-content: center; text-align: center; background: var(--paper); }
.progress-ring strong { color: var(--forest); font-size: 21px; }
.progress-ring span { color: var(--muted); font-size: 10px; }
.alpas-steps { display: grid; gap: 10px; margin: 28px 0 24px; }
.alpas-step { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 13px; min-height: 66px; padding: 10px 14px 10px 10px; border: 1px solid var(--line); border-radius: 18px; background: white; transition: 180ms ease; }
.alpas-step:hover { transform: translateY(-2px); border-color: rgba(214,177,94,.6); }
.alpas-step.is-done { background: linear-gradient(90deg, rgba(220,232,223,.72), white); }
.step-letter { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--forest); background: var(--gold-soft); font: 700 22px Georgia, serif; }
.alpas-step.is-done .step-letter { color: white; background: var(--forest-soft); }
.step-copy strong { display: block; color: var(--forest-deep); font-size: 14px; }
.step-copy span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.step-check { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: transparent; background: var(--paper); }
.is-done .step-check { color: white; border-color: var(--forest); background: var(--forest); }
.primary-button, .secondary-button, .soft-button, .text-button { border: 0; transition: 180ms ease; }
.primary-button { min-height: 56px; width: 100%; padding: 0 20px; border-radius: 17px; color: white; background: var(--terracotta); font-weight: 800; box-shadow: 0 12px 24px rgba(184,92,66,.18); }
.primary-button:hover { background: var(--terracotta-dark); transform: translateY(-2px); }
.primary-button.small { min-height: 46px; width: auto; }
.secondary-button { min-height: 46px; width: 100%; padding: 0 16px; border-radius: 14px; color: var(--forest); background: var(--sage); font-weight: 750; }
.soft-button { min-height: 42px; padding: 0 15px; border: 1px solid var(--line); border-radius: 13px; color: var(--forest); background: rgba(255,255,255,.64); font-weight: 750; }
.soft-button.compact { min-height: 38px; font-size: 12px; }
.text-button { padding: 7px 0; color: var(--terracotta-dark); background: transparent; font-weight: 750; text-align: left; }
.text-button.danger { color: #9c3c34; font-size: 12px; }
.right-rail { display: grid; gap: 22px; }
.prayer-card { position: relative; overflow: hidden; min-height: 328px; padding: 26px; background: linear-gradient(155deg, #fffaf0 0%, #f5e7c4 100%); }
.sun-motif { position: absolute; width: 150px; height: 150px; border-radius: 50%; top: -94px; right: -40px; background: rgba(214,177,94,.45); box-shadow: 0 0 0 24px rgba(214,177,94,.09), 0 0 0 48px rgba(214,177,94,.05); }
blockquote { margin: 20px 0; color: var(--forest-deep); font: italic 18px/1.5 Georgia, serif; }
label { display: grid; gap: 7px; color: var(--forest-deep); font-size: 12px; font-weight: 750; }
input, textarea, select { width: 100%; border: 1px solid rgba(18,61,47,.16); border-radius: 13px; padding: 11px 12px; color: var(--ink); background: rgba(255,255,255,.8); resize: vertical; }
.why-card { display: flex; gap: 14px; align-items: flex-start; padding: 22px; }
.why-card p:not(.eyebrow) { margin: 0; color: var(--ink); font: italic 16px/1.48 Georgia, serif; }
.icon-medallion { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: white; background: var(--indigo); }
.dashboard-lower { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr); gap: 22px; margin-top: 22px; }
.compass-card, .milestone-card { padding: 24px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.section-heading h2, .section-heading h3 { margin: 0; }
.compass-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.compass-item { padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.compass-item-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.compass-item strong { font-size: 13px; color: var(--forest); }
.compass-item span { font-size: 11px; color: var(--muted); }
.mini-track { height: 6px; margin-top: 12px; border-radius: 999px; overflow: hidden; background: var(--sage); }
.mini-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--forest-soft), var(--gold)); }
.money-value { margin: 24px 0 18px; }
.money-value strong { display: block; color: var(--forest); font-size: 34px; letter-spacing: -.04em; }
.money-value span { color: var(--muted); font-size: 12px; }
.progress-track { height: 10px; border-radius: 999px; background: var(--sage); overflow: hidden; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--terracotta), var(--gold)); transition: width 350ms ease; }
.milestone-meta { display: flex; justify-content: space-between; gap: 10px; margin: 8px 0 24px; color: var(--muted); font-size: 11px; }

.view { display: none; }
.view.is-visible { display: block; animation: view-in 240ms ease both; }
@keyframes view-in { from { opacity: 0; transform: translateY(5px); } }
.page-intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-intro p { margin-bottom: 0; max-width: 720px; }
.stat-chip { min-width: 120px; padding: 16px; border-radius: 18px; text-align: center; color: white; background: var(--forest); }
.stat-chip strong { display: block; font-size: 24px; }
.stat-chip span { font-size: 10px; opacity: .7; }
.course-list, .customer-list, .journal-list { display: grid; gap: 14px; }
.course-card { padding: 20px; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 16px; }
.course-level { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: var(--forest); background: var(--gold-soft); font-weight: 850; }
.course-card h3, .form-card h3 { margin: 0 0 6px; color: var(--forest-deep); }
.course-card p { margin: 0; color: var(--muted); font-size: 13px; }
.course-toggle { min-width: 98px; min-height: 40px; border: 1px solid var(--line); border-radius: 12px; color: var(--forest); background: var(--sage); font-weight: 750; }
.course-toggle.is-complete { color: white; background: var(--forest); }
.form-card, .journal-form { padding: 24px; margin-bottom: 22px; }
.form-card.is-hidden { display: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.customer-row, .journal-entry { padding: 20px; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.customer-row h3, .journal-entry h3 { margin: 0 0 5px; color: var(--forest-deep); }
.customer-row p, .journal-entry p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.status-badge { padding: 7px 10px; border-radius: 999px; color: var(--forest); background: var(--sage); font-size: 11px; font-weight: 800; white-space: nowrap; }
.empty-state { padding: 38px 22px; border: 1px dashed rgba(18,61,47,.2); border-radius: 20px; text-align: center; color: var(--muted); background: rgba(255,255,255,.42); }
.finance-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.finance-planning-grid { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); gap: 22px; margin-bottom: 22px; }
.goal-card { display: grid; align-content: start; gap: 14px; margin-bottom: 0; }
.goal-card h3, .product-catalog-card h3 { margin: 0; color: var(--forest-deep); }
.goal-card .muted, .product-catalog-card .muted { margin: 0; font-size: 12px; }
.product-catalog-card { min-width: 0; padding: 24px; }
.customer-value-strip { margin-top: 15px; padding: 12px 13px; border-radius: 13px; color: var(--forest-deep); background: var(--gold-soft); }
.customer-value-strip strong, .customer-value-strip span { display: block; }
.customer-value-strip strong { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.customer-value-strip span { margin-top: 4px; font-size: 11px; line-height: 1.45; }
.product-guide-list { display: grid; gap: 8px; margin-top: 16px; }
.product-guide-item { border: 1px solid var(--line); border-radius: 15px; background: white; overflow: hidden; }
.product-guide-item summary { min-height: 56px; padding: 10px 13px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.product-guide-item summary::-webkit-details-marker { display: none; }
.product-guide-item summary span, .product-guide-item summary small { display: block; }
.product-guide-item summary strong { color: var(--forest-deep); font-size: 13px; }
.product-guide-item summary small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.product-guide-item summary b { color: var(--forest); font-size: 14px; }
.product-guide-item[open] summary { background: var(--sage); }
.product-guide-item > div { padding: 13px; border-top: 1px solid var(--line); }
.product-guide-item p { margin: 0 0 9px; color: var(--ink); font-size: 12px; line-height: 1.55; }
.product-guide-item .product-value { padding: 10px 11px; border-radius: 10px; color: var(--forest-deep); background: var(--cream); }
.product-guide-item a { display: inline-block; color: var(--terracotta-dark); font-size: 11px; font-weight: 800; }
.product-guide-item > div > small { display: block; margin-top: 10px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.product-entry-fields { display: grid; grid-template-columns: minmax(0, 1fr) 90px; gap: 10px; }
.creatives-card { margin-top: 22px; padding: 24px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; }
.creatives-card h3 { margin: 0; color: var(--forest-deep); }
.creatives-card p { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.creatives-card .policy-note { color: #7a5920; font-size: 11px; }
.policy-links { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 10px; }
.policy-links a { color: var(--terracotta-dark); font-size: 10px; font-weight: 800; }
.creatives-card .primary-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.creatives-icon { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; color: var(--forest); background: var(--gold-soft); font-size: 22px; font-weight: 900; }
.primary-button.is-disabled { opacity: .56; pointer-events: none; }
.summary-card { padding: 18px; }
.summary-card span { display: block; color: var(--muted); font-size: 11px; }
.summary-card strong { display: block; margin-top: 7px; color: var(--forest); font-size: 23px; }
.two-column { display: grid; grid-template-columns: minmax(280px, .68fr) minmax(0, 1.32fr); gap: 22px; }
.transaction-list { display: grid; gap: 9px; margin-top: 16px; }
.transaction-item { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.transaction-item:last-child { border: 0; }
.transaction-item strong.negative { color: #9c3c34; }
.transaction-item strong.positive { color: var(--forest-soft); }
.journal-entry { align-items: flex-start; }
.privacy-label { color: var(--indigo); font-size: 11px; font-weight: 750; }
.journey-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.growth-sliders { display: grid; gap: 16px; margin-top: 20px; }
.slider-row { display: grid; grid-template-columns: 130px 1fr 34px; align-items: center; gap: 12px; }
.slider-row label { font-size: 13px; }
input[type="range"] { accent-color: var(--terracotta); padding: 0; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 99; transform: translate(-50%, 20px); max-width: min(90vw, 460px); padding: 12px 16px; border-radius: 14px; color: white; background: var(--forest-deep); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: 220ms ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.bottom-nav { display: none; }

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

.auth-gate { position: fixed; inset: 0; z-index: 200; min-height: 100dvh; overflow: auto; color: var(--ink); background: var(--cream); }
.auth-backdrop { position: fixed; inset: 0; background: radial-gradient(circle at 18% 16%, rgba(214,177,94,.34), transparent 24%), radial-gradient(circle at 92% 82%, rgba(40,92,73,.2), transparent 30%), linear-gradient(135deg, #f8f0df, #efe3cb); pointer-events: none; }
.auth-layout { position: relative; z-index: 1; width: min(1100px, calc(100% - 32px)); min-height: 100dvh; margin: auto; padding: 42px 0; display: grid; grid-template-columns: minmax(0, .9fr) minmax(360px, .72fr); align-items: center; gap: clamp(34px, 7vw, 96px); }
.auth-story { padding: 28px; }
.auth-story .auth-brand strong { color: var(--forest-deep); }
.auth-story .auth-brand span { color: var(--forest-soft); }
.auth-story .brand-promise { margin-left: 0; color: var(--terracotta-dark); }
.auth-story h1 { max-width: 650px; margin: 24px 0 18px; color: var(--forest-deep); font-size: clamp(38px, 4.4vw, 58px); line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.auth-story > p:last-child { max-width: 600px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.auth-card { padding: clamp(24px, 4vw, 38px); border: 1px solid rgba(18,61,47,.1); border-radius: 28px; background: rgba(255,253,248,.94); box-shadow: 0 24px 70px rgba(41,40,33,.14); backdrop-filter: blur(18px); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 28px; padding: 5px; border-radius: 15px; background: var(--sage); }
.auth-tabs button { min-height: 42px; border: 0; border-radius: 11px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 800; }
.auth-tabs button.is-active { color: white; background: var(--forest); box-shadow: 0 7px 18px rgba(18,61,47,.18); }
.auth-form { display: grid; gap: 16px; }
.auth-form h2 { margin: 0; color: var(--forest-deep); font-size: 25px; line-height: 1.15; }
.auth-form label small { color: var(--muted); font-weight: 500; }
.auth-name-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 12px; }
.optional { color: var(--muted); font-size: 10px; font-weight: 500; }
.consent-row { grid-template-columns: 20px 1fr; align-items: start; gap: 9px; font-weight: 550; line-height: 1.45; }
.consent-row input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--forest); }
.consent-row a { color: var(--terracotta-dark); }
.auth-help { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.auth-message { min-height: 20px; margin-top: 14px; color: #9c3c34; font-size: 12px; font-weight: 700; }
.auth-message.is-success { color: var(--forest-soft); }
.auth-offline { margin-top: 12px; padding: 11px 13px; border-radius: 12px; color: #7a5920; background: var(--gold-soft); font-size: 12px; }
.auth-form button[disabled] { opacity: .58; cursor: wait; }

.account-dialog { width: min(92vw, 430px); padding: 28px; border: 0; border-radius: 25px; color: var(--ink); background: var(--paper); box-shadow: 0 28px 90px rgba(10,43,33,.35); }
.account-dialog::backdrop { background: rgba(10,43,33,.58); backdrop-filter: blur(5px); }
.account-dialog h2 { margin: 0 0 20px; color: var(--forest-deep); }
.dialog-close { position: absolute; top: 14px; right: 16px; width: 36px; height: 36px; border: 0; border-radius: 50%; color: var(--forest); background: var(--sage); font-size: 23px; }
.account-identity { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.account-identity .profile-button { display: grid; place-items: center; }
.account-identity strong, .account-identity span { display: block; }
.account-identity span { margin-top: 3px; color: var(--muted); font-size: 12px; text-transform: capitalize; }
.account-dialog .secondary-button { margin-top: 22px; }
.account-settings-button { width: 100%; margin-top: 18px; }
.account-admin-button { width: 100%; margin-top: 10px; }
.account-facebook { margin: -8px 0 16px 59px; color: var(--forest-soft); font-size: 12px; font-weight: 700; }
.profile-settings-dialog { max-height: min(90dvh, 760px); overflow: auto; }
.profile-editor-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.profile-photo.large { width: 70px; height: 70px; border-radius: 22px; font-size: 20px; }
.upload-button { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; }
.upload-button input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.profile-settings-form { display: grid; gap: 13px; margin-top: 20px; }
.profile-settings-form label { display: grid; gap: 6px; color: var(--forest-deep); font-size: 12px; font-weight: 750; }

.admin-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.admin-layout { display: grid; grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr); gap: 22px; }
.admin-panel { padding: 24px; }
.admin-wide-panel { margin-top: 22px; }
.admin-list { display: grid; gap: 10px; margin-top: 16px; }
.admin-row { padding: 14px; border: 1px solid var(--line); border-radius: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: white; }
.admin-row-copy { min-width: 0; display: grid; gap: 3px; }
.admin-row-copy strong { color: var(--forest-deep); }
.admin-row-copy span, .admin-row-copy small { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.admin-row-actions { flex: 0 0 auto; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.admin-row-actions select { min-width: 132px; padding: 8px 28px 8px 9px; }
.primary-button.tiny { width: auto; min-height: 36px; padding: 7px 12px; font-size: 11px; }
.soft-button.danger { color: #8d302c; border-color: rgba(141,48,44,.22); }
.invite-result { padding: 15px; border: 1px dashed rgba(18,61,47,.28); border-radius: 14px; display: grid; gap: 9px; background: var(--sage); }
.invite-result span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.invite-result strong { color: var(--forest-deep); font-size: 20px; letter-spacing: .08em; }
.empty-state { color: var(--muted); font-size: 12px; }

.legal-page { min-height: 100dvh; background: linear-gradient(145deg, #f8f1e3, #eee3ce); color: var(--ink); }
.legal-shell { width: min(800px, calc(100% - 32px)); margin: 0 auto; padding: 38px 0 70px; }
.legal-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.legal-header .brand-lockup strong { color: var(--forest-deep); }
.legal-header .brand-lockup span { color: var(--forest-soft); }
.legal-back { color: var(--forest); font-size: 13px; font-weight: 800; text-decoration: none; }
.legal-card { padding: clamp(24px, 5vw, 48px); border: 1px solid rgba(18,61,47,.1); border-radius: 28px; background: rgba(255,253,248,.96); box-shadow: var(--shadow); }
.legal-card h1 { margin: 7px 0 8px; color: var(--forest-deep); font-size: clamp(34px, 6vw, 54px); line-height: 1; letter-spacing: -.045em; }
.legal-card h2 { margin: 34px 0 10px; color: var(--forest); font-size: 21px; }
.legal-card p, .legal-card li { color: #4f554d; font-size: 14px; line-height: 1.72; }
.legal-card ul { padding-left: 22px; }
.legal-card a { color: var(--terracotta-dark); font-weight: 750; }
.legal-note { padding: 15px 17px; border-left: 4px solid var(--gold); border-radius: 8px; background: var(--gold-soft); }
.legal-meta { margin: 0; color: var(--muted); font-size: 12px; }

@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 88px minmax(0, 1fr); }
  .sidebar { padding-inline: 14px; align-items: center; }
  .brand-lockup > div:last-child, .brand-promise, .nav-item:not(.is-active) { font-size: 0; }
  .nav-item { justify-content: center; padding: 0; }
  .nav-item span { font-size: 20px; }
  .sidebar-footer small, .sync-pill span:last-child { display: none; }
  .compass-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .app-shell { display: block; }
  .sidebar { display: none; }
  .main-content { min-height: 100vh; padding: 20px 16px calc(126px + env(safe-area-inset-bottom)); }
  .topbar { margin-bottom: 20px; }
  .topbar h1 { font-size: 27px; }
  .topbar-actions .soft-button { display: none; }
  .dashboard-grid, .dashboard-lower, .two-column, .journey-layout, .finance-planning-grid, .admin-layout { grid-template-columns: 1fr; }
  .right-rail { grid-template-columns: 1fr; }
  .card-heading-row { align-items: center; }
  .progress-ring { width: 82px; height: 82px; }
  .compass-grid, .finance-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .page-intro { align-items: flex-start; }
  .page-intro .primary-button { flex: 0 0 auto; }
  .bottom-nav { position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 50; display: grid; grid-template-columns: repeat(5, 1fr); padding: 8px 6px; border: 1px solid rgba(214,177,94,.32); border-radius: 21px; background: rgba(18,61,47,.96); box-shadow: 0 18px 50px rgba(10,43,33,.3); backdrop-filter: blur(14px); }
  body.is-admin .bottom-nav { grid-template-columns: repeat(6, 1fr); }
  .bottom-nav button { min-height: 50px; border: 0; border-radius: 14px; display: grid; place-items: center; gap: 2px; color: rgba(255,255,255,.58); background: transparent; font-size: 9px; font-weight: 700; }
  .bottom-nav button span { font-size: 18px; color: var(--gold); }
  .bottom-nav button.is-active { color: white; background: rgba(255,255,255,.1); }
  .toast { bottom: 88px; }
  .auth-layout { width: min(100% - 24px, 560px); padding: 24px 0; grid-template-columns: 1fr; gap: 12px; }
  .auth-story { padding: 10px 12px 0; }
  .auth-story .brand-promise, .auth-story > p:last-child { display: none; }
  .auth-story h1 { margin: 18px 0 10px; font-size: 34px; line-height: 1.12; letter-spacing: -.025em; }
  .auth-card { padding: 22px; border-radius: 23px; }
  .admin-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .creatives-card { grid-template-columns: auto minmax(0, 1fr); }
  .creatives-card .primary-button { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 480px) {
  .topbar h1 { max-width: 230px; font-size: 24px; }
  .daily-card, .prayer-card, .compass-card, .milestone-card, .form-card, .journal-form { padding: 20px; }
  .card-heading-row { gap: 12px; }
  .card-heading-row .muted { display: none; }
  .alpas-step { grid-template-columns: 42px 1fr 32px; padding-right: 10px; }
  .step-copy span { display: none; }
  .compass-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .compass-item { padding: 11px; }
  .course-card { grid-template-columns: 44px 1fr; }
  .course-toggle { grid-column: 1 / -1; width: 100%; }
  .customer-row, .journal-entry, .page-intro { flex-direction: column; align-items: stretch; }
  .page-intro .primary-button { width: 100%; }
  .finance-summary { grid-template-columns: 1fr 1fr; gap: 9px; }
  .product-entry-fields { grid-template-columns: 1fr 82px; }
  .slider-row { grid-template-columns: 105px 1fr 30px; }
  .auth-name-grid { grid-template-columns: 1fr; }
  .auth-tabs button { font-size: 11px; }
  .admin-row { align-items: stretch; flex-direction: column; }
  .admin-row-actions { justify-content: flex-start; }
  .admin-row-actions select { flex: 1 1 150px; }
}

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