:root {
  color-scheme: light;
  --bg: #fbf8f1;
  --surface: #ffffff;
  --surface-soft: #f5efe3;
  --text: #312b25;
  --muted: #786f65;
  --line: #e7ded1;
  --brand: #766246;
  --brand-dark: #58472f;
  --success: #397253;
  --danger: #a3423c;
  --shadow: 0 12px 36px rgba(70, 56, 38, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--text); background: var(--bg); }
button, input, textarea, select { font: inherit; }
a { color: inherit; }
button, .button { min-height: 46px; }

.migration-bar { display: none !important; }

.funnel-page {
  width: 100%;
  overflow-x: hidden;
  background: #fff;
}

.funnel-section {
  width: 100%;
}

.funnel-row {
  width: min(100%, 680px) !important;
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
}

.funnel-col {
  min-width: 0;
  max-width: 100%;
}

.funnel-image {
  max-width: 100%;
  margin: 0;
}

.funnel-image img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin-right: auto;
  margin-left: auto;
}

.vimeo-embed-section {
  width: 100%;
  max-width: 680px;
  margin-right: auto;
  margin-left: auto;
}

.vimeo-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.vimeo-embed iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.center-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.site-shell { min-height: 100vh; padding-left: 248px; }
.site-header { position: fixed; inset: 0 auto 0 0; z-index: 30; width: 248px; border-right: 1px solid var(--line); background: rgba(251,248,241,.98); backdrop-filter: blur(12px); }
.header-inner { width: 100%; min-height: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 22px; padding: 30px 18px 24px; overflow-y: auto; }
.brand { display: flex; align-items: flex-start; gap: 10px; padding: 0 4px 22px; border-bottom: 1px solid var(--line); font-size: .94rem; font-weight: 800; text-decoration: none; letter-spacing: .01em; }
.brand > span { min-width: 0; }
.brand strong, .brand small { display: block; }
.brand strong { overflow-wrap: anywhere; line-height: 1.35; }
.brand small { margin-top: 4px; color: var(--muted); font-size: .72rem; line-height: 1.4; }
.brand-mark { display: block; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 11px; }
.brand-mark.large { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 20px; }
.header-actions { display: flex; min-height: 0; flex: 1; flex-direction: column; align-items: stretch; gap: 5px; }
.header-actions .badge { align-self: flex-start; margin: 0 10px 8px; }
.header-actions a { display: flex; align-items: center; min-height: 46px; border-radius: 12px; padding: 10px 13px; text-decoration: none; color: var(--muted); font-weight: 700; }
.header-actions a:hover, .header-actions a[aria-current="page"] { background: var(--surface-soft); color: var(--brand-dark); }
.header-actions a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--brand); }
.header-actions .link-button { margin-top: auto; min-height: 46px; border-radius: 12px; padding: 10px 13px; text-align: left; }
.mobile-menu-toggle, .mobile-menu-scrim { display: none; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 64px; }
.page-return-nav { display: flex; justify-content: flex-start; margin: 0 0 18px; }
.narrow { width: min(560px, calc(100% - 32px)); }

h1, h2, h3 { line-height: 1.35; margin: 0; }
h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
h2 { font-size: clamp(1.3rem, 4vw, 1.75rem); }
h3 { font-size: 1.08rem; }
p { line-height: 1.75; }
.muted { color: var(--muted); }
.eyebrow { margin: 0 0 8px; color: var(--brand); font-weight: 800; font-size: .84rem; letter-spacing: .08em; text-transform: uppercase; }
.lead { margin: 12px 0 0; color: var(--muted); font-size: 1.04rem; }
.brand-tagline { margin: -2px 0 18px; color: var(--muted); font-weight: 700; letter-spacing: .04em; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-heading { margin: 34px 0 16px; }

.card { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); padding: 22px; }
.card + .card { margin-top: 16px; }
.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)); }
.course-card { overflow: hidden; padding: 0; }
.course-thumb { width: 100%; aspect-ratio: 5/2; object-fit: contain; display: block; background: #f7eef3; }
#free-courses + .grid.two > .course-card:first-child .course-thumb { height: clamp(120px, 12vw, 160px); aspect-ratio: auto; object-fit: cover; object-position: center; }
.course-thumb.empty { display: grid; place-items: center; color: var(--muted); font-weight: 700; }
.course-body { padding: 20px; }
.course-body .button { width: 100%; margin-top: 14px; }
.menu-header-thumbnail { width: 100%; aspect-ratio: 5/2; overflow: hidden; margin: 0 0 18px; border: 1px solid #ead8df; border-radius: 20px; background: #f7eef3; box-shadow: 0 14px 34px rgba(87,55,75,.12); }
.menu-header-thumbnail img { display: block; width: 100%; height: 100%; object-fit: contain; }
.feature-menu-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0; overflow: hidden; padding: 0; }
.feature-menu-card-image { display: block; width: 100%; height: auto; aspect-ratio: 5/2; grid-column: 1 / -1; object-fit: contain; background: #f7eef3; }
.feature-menu-card > div { min-width: 0; padding: 22px 0 22px 22px; }
.feature-menu-card > .button { align-self: center; width: auto; margin: 22px; }
.feature-menu-card .dashboard-next-event { display: grid; grid-template-columns: 1fr; grid-column: 1 / -1; gap: 18px; padding: 22px; }
.feature-menu-card .dashboard-next-event > div { padding: 0; }
.feature-menu-card .dashboard-next-event > .button { justify-self: start; width: auto; margin: 0; }
.dashboard-event-preview-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dashboard-event-preview { min-width: 0; border: 1px solid var(--line); border-radius: 15px; padding: 16px; background: #fffdf9; }
.dashboard-event-preview .eyebrow { margin-bottom: 7px; }
.dashboard-event-preview h3 { overflow-wrap: anywhere; line-height: 1.55; }
.dashboard-event-preview p:last-child { margin: 8px 0 0; line-height: 1.65; }
.dashboard-event-preview.empty { background: var(--surface-soft); }
.planner-entry-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 26px; border-color: #e4d8ee; background: linear-gradient(135deg, #fff7c7, #ffe0ed 48%, #e2e2ff); }
.planner-entry-card p { margin-bottom: 0; }
.planner-entry-card .button { flex: 0 0 auto; background: linear-gradient(135deg, #6358c4, #e36fa4); }
.dashboard-brand-hero { width: 100%; aspect-ratio: 5 / 2; overflow: hidden; margin-bottom: 24px; border: 1px solid #efd8ce; border-radius: 24px; background: #fff0e7; box-shadow: 0 16px 38px rgba(118,78,70,.14); }
.dashboard-brand-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dashboard-today { display: grid; gap: 14px; margin-bottom: 18px; }
.dashboard-today-heading { display: flex; align-items: baseline; gap: 12px; padding: 2px 4px; }
.dashboard-today-heading p { margin: 0; color: var(--brand); font-size: .76rem; font-weight: 900; letter-spacing: .14em; }
.dashboard-today-heading h2 { font-size: clamp(1.45rem, 3.5vw, 2rem); }
.dashboard-today-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dashboard-agenda-card { min-width: 0; padding: 19px; }
.dashboard-agenda-title { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.dashboard-agenda-title > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: #f0ebff; color: #6258c4; font-weight: 900; }
.dashboard-agenda-title p { margin: 0; color: var(--muted); font-size: .72rem; font-weight: 800; }
.dashboard-agenda-title h2 { font-size: 1.08rem; }
.dashboard-agenda-title > strong { color: #6258c4; font-size: .82rem; }
.dashboard-agenda-card ul { display: grid; gap: 0; margin: 14px 0 0; padding: 0; list-style: none; }
.dashboard-agenda-card li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; border-top: 1px solid var(--line); padding: 11px 0; }
.dashboard-agenda-card time, .dashboard-task-progress { align-self: start; min-width: 58px; color: #6258c4; font-size: .76rem; font-weight: 900; }
.dashboard-agenda-card li div { min-width: 0; }
.dashboard-agenda-card li strong, .dashboard-agenda-card li small { display: block; overflow-wrap: anywhere; }
.dashboard-agenda-card li small { margin-top: 3px; color: var(--muted); line-height: 1.45; }
.dashboard-agenda-empty { margin-top: 14px; border-radius: 12px; padding: 14px; background: var(--surface-soft); }
.dashboard-agenda-empty p, .dashboard-agenda-more { margin: 0; color: var(--muted); font-size: .86rem; }
.dashboard-agenda-empty a { display: inline-block; margin-top: 6px; font-weight: 800; }
.dashboard-agenda-more { border-top: 1px solid var(--line); padding-top: 10px; }
.dashboard-planner-error { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dashboard-planner-error p { margin: 0; }
.dashboard-event-card { margin-bottom: 26px; }
.fortune-market-entry-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 26px; overflow: hidden; border-color: #f0c778; background: radial-gradient(circle at 86% 20%, rgba(255,255,255,.92) 0 8%, transparent 9%), linear-gradient(135deg, #fff4c9, #ffdca8 46%, #f6bfd1); }
.fortune-market-entry-card p { margin-bottom: 0; }
.fortune-market-entry-card .button { flex: 0 0 auto; background: linear-gradient(135deg, #9b4d75, #71345e); box-shadow: 0 9px 22px rgba(113,52,94,.22); }
.calculation-apps-entry-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 26px; overflow: hidden; border-color: #b9d9d4; background: radial-gradient(circle at 88% 16%, rgba(255,255,255,.9) 0 8%, transparent 9%), linear-gradient(135deg, #eef9f6, #d7efe8 50%, #dbe8f6); }
.calculation-apps-entry-card p { margin-bottom: 0; }
.calculation-apps-entry-card .eyebrow { color: #24665f; }
.calculation-apps-entry-card .button { flex: 0 0 auto; background: linear-gradient(135deg, #357f76, #225f63); box-shadow: 0 9px 22px rgba(34,95,99,.2); }
.fortune-market-entry-card.feature-menu-card,
.calculation-apps-entry-card.feature-menu-card,
.planner-entry-card.feature-menu-card { display: grid; }
.fortune-market-page { --market-plum: #71345e; --market-rose: #c7698f; --market-gold: #d99935; display: grid; gap: 34px; }
.fortune-market-hero { position: relative; display: grid; grid-template-columns: 1fr; min-height: 0; overflow: hidden; border: 1px solid #efc887; border-radius: 30px; padding: clamp(30px, 6vw, 66px); color: #3f2335; background: radial-gradient(circle at 12% 18%, rgba(255,255,255,.96) 0 6%, transparent 6.4%), radial-gradient(circle at 90% 12%, rgba(255,255,255,.72) 0 8%, transparent 8.4%), linear-gradient(135deg, #fff5d5 0%, #ffd8a8 38%, #f2b8d1 76%, #d9c6f0 100%); box-shadow: 0 18px 46px rgba(111,62,85,.14); }
.fortune-market-hero::after { position: absolute; right: -70px; bottom: -95px; width: 270px; height: 270px; border: 38px solid rgba(255,255,255,.28); border-radius: 50%; content: ""; }
.fortune-market-hero-copy { position: relative; z-index: 2; align-self: center; }
.fortune-market-hero .eyebrow { color: var(--market-plum); letter-spacing: .18em; }
.fortune-market-hero h1 { max-width: 680px; font-size: clamp(2.1rem, 6vw, 4.25rem); letter-spacing: .035em; }
.fortune-market-hero-copy > p:not(.eyebrow) { max-width: 640px; margin: 18px 0 0; font-size: clamp(1rem, 2.5vw, 1.2rem); line-height: 1.9; }
.fortune-market-count { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; border: 1px solid rgba(113,52,94,.16); border-radius: 999px; padding: 8px 16px 8px 10px; background: rgba(255,255,255,.72); }
.fortune-market-count strong { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; color: #fff; background: var(--market-plum); font-size: 1.2rem; }
.fortune-market-count span { font-weight: 800; }
.fortune-market-hero-symbols { position: relative; z-index: 2; display: grid; align-content: center; justify-content: center; min-height: 220px; }
.fortune-market-hero-symbols span { display: grid; width: 102px; height: 102px; place-items: center; border: 1px solid rgba(255,255,255,.8); border-radius: 28px; background: rgba(255,255,255,.7); box-shadow: 0 14px 28px rgba(94,48,75,.12); font-size: 3rem; transform: rotate(7deg); }
.fortune-market-hero-symbols span:nth-child(2) { margin: -20px 0 0 115px; transform: rotate(-8deg); }
.fortune-market-hero-symbols span:nth-child(3) { margin: -25px 0 0 6px; transform: rotate(5deg); }
.fortune-market-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fortune-market-shortcuts a { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 54px; border: 1px solid #ead8c2; border-radius: 16px; background: #fff; color: #604353; text-align: center; text-decoration: none; font-weight: 800; box-shadow: 0 7px 18px rgba(82,53,66,.07); }
.fortune-market-shortcuts a:hover { border-color: #d796b2; color: var(--market-plum); transform: translateY(-2px); }
.fortune-market-section { display: grid; gap: 20px; scroll-margin-top: 24px; }
.fortune-market-section-heading { display: flex; align-items: center; gap: 16px; }
.fortune-market-section-heading h2 { color: #523447; }
.fortune-market-section-heading p { margin: 6px 0 0; color: var(--muted); }
.fortune-market-section-icon { display: grid; flex: 0 0 58px; width: 58px; height: 58px; place-items: center; border: 1px solid #eed8b3; border-radius: 18px; background: linear-gradient(145deg, #fff8df, #ffe0c9); box-shadow: 0 8px 20px rgba(91,54,69,.09); font-size: 1.8rem; }
.fortune-market-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.fortune-market-card { display: flex; min-width: 0; overflow: hidden; border: 1px solid #ecdfd2; border-radius: 22px; background: #fff; box-shadow: 0 12px 30px rgba(70,48,58,.09); flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.fortune-market-card:hover { transform: translateY(-5px); box-shadow: 0 18px 38px rgba(70,48,58,.15); }
.fortune-market-image { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #f7eee7; }
.fortune-market-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.fortune-market-card:hover .fortune-market-image img { transform: scale(1.035); }
.fortune-market-open-mark { position: absolute; top: 12px; right: 12px; display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--market-plum); box-shadow: 0 5px 16px rgba(46,25,39,.18); font-weight: 900; }
.fortune-market-card-body { display: flex; flex: 1; flex-direction: column; padding: 21px; }
.fortune-market-type { align-self: flex-start; margin: 0 0 10px; border-radius: 999px; padding: 5px 10px; color: #8a4c68; background: #faeaf1; font-size: .76rem; font-weight: 800; }
.fortune-market-card h3 { color: #412c38; font-size: 1.12rem; line-height: 1.6; }
.fortune-market-card-body > p:not(.fortune-market-type) { margin: 10px 0 20px; color: var(--muted); font-size: .94rem; line-height: 1.75; }
.fortune-market-button { width: 100%; margin-top: auto; background: linear-gradient(135deg, #8f476c, #653052); }
.fortune-market-button:hover { background: linear-gradient(135deg, #743858, #51223f); }
.fortune-market-note { display: flex; align-items: center; gap: 15px; border: 1px solid #eadbc8; border-radius: 18px; padding: 19px 22px; background: #fffaf2; color: #5b4d55; }
.fortune-market-note span { font-size: 1.7rem; }
.fortune-market-note p { margin: 0; }
.calculation-apps-page { --tool-ink: #183f43; --tool-green: #2f756d; display: grid; gap: 30px; }
.calculation-apps-hero { display: grid; grid-template-columns: 1fr; align-items: center; gap: 28px; overflow: hidden; border: 1px solid #b8d9d4; border-radius: 28px; padding: clamp(30px, 6vw, 62px); color: var(--tool-ink); background: radial-gradient(circle at 82% 18%, rgba(255,255,255,.94) 0 8%, transparent 8.5%), linear-gradient(135deg, #effaf7, #d8efe8 50%, #dceaf7); box-shadow: 0 16px 40px rgba(37,96,92,.12); }
.calculation-apps-hero .eyebrow { color: var(--tool-green); letter-spacing: .14em; }
.calculation-apps-hero h1 { max-width: 760px; font-size: clamp(2rem, 5vw, 3.7rem); }
.calculation-apps-hero p:not(.eyebrow) { max-width: 680px; margin: 18px 0 0; font-size: 1.08rem; }
.calculation-apps-hero-icon { display: grid; width: 120px; height: 120px; place-items: center; border: 1px solid rgba(255,255,255,.86); border-radius: 30px; background: rgba(255,255,255,.72); box-shadow: 0 12px 26px rgba(34,95,99,.12); font-size: 3.5rem; transform: rotate(4deg); }
.calculation-apps-section { display: grid; gap: 20px; }
.calculation-apps-heading h2 { color: var(--tool-ink); }
.calculation-apps-heading p:last-child { margin: 8px 0 0; color: var(--muted); }
.calculation-apps-grid { display: grid; grid-template-columns: minmax(0, 920px); gap: 22px; }
.calculation-app-card { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(0, 1.1fr); overflow: hidden; border: 1px solid #cadfdc; border-radius: 22px; background: #fff; box-shadow: 0 12px 30px rgba(38,79,78,.09); }
.calculation-app-image { position: relative; display: block; min-height: 280px; overflow: hidden; background: #edf5f3; }
.member-diagnosis-card .calculation-app-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.calculation-app-image span { position: absolute; top: 14px; right: 14px; display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--tool-green); box-shadow: 0 5px 16px rgba(24,63,67,.18); font-weight: 900; }
.calculation-app-card-body { display: flex; min-width: 0; flex-direction: column; padding: 28px; }
.member-diagnosis-symbol { display: grid; min-height: 190px; place-items: center; background: linear-gradient(145deg, #fff8ef, #f4e5d4); font-size: clamp(3.5rem, 8vw, 6rem); }
.button.disabled { cursor: not-allowed; opacity: .62; pointer-events: none; }
.member-diagnosis-app-page { display: grid; gap: 18px; }
.member-diagnosis-app-bar { display: flex; align-items: center; gap: 18px; }
.member-diagnosis-app-bar h1 { margin: 0; font-size: clamp(1.35rem, 3vw, 2rem); }
.member-diagnosis-app-frame { width: 100%; min-height: calc(100vh - 190px); border: 1px solid var(--border); border-radius: 20px; background: #fff; }
.calculation-app-type { align-self: flex-start; margin: 0 0 12px; border-radius: 999px; padding: 6px 11px; color: #24665f; background: #e4f3ef; font-size: .78rem; font-weight: 800; }
.calculation-app-card-body h2 { color: var(--tool-ink); font-size: clamp(1.35rem, 3vw, 1.9rem); }
.calculation-app-card-body > p:not(.calculation-app-type) { margin: 14px 0 24px; color: var(--muted); line-height: 1.85; }
.calculation-app-button { align-self: flex-start; margin-top: auto; background: linear-gradient(135deg, #357f76, #225f63); }
.calculation-app-button:hover { background: linear-gradient(135deg, #286c65, #194f53); }
.calculation-apps-note { display: flex; align-items: center; gap: 14px; border: 1px solid #c9dfda; border-radius: 17px; padding: 18px 21px; color: #355c58; background: #f3faf8; }
.calculation-apps-note span { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; border-radius: 50%; color: #fff; background: var(--tool-green); font-weight: 900; }
.calculation-apps-note p { margin: 0; }
.palm-report-link-grid { align-items: stretch; }
.palm-report-link-card { display: flex; min-height: 280px; flex-direction: column; justify-content: space-between; gap: 22px; }
.palm-report-link-card p:last-child { margin-bottom: 0; }
.palm-report-link-card .button { align-self: flex-start; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 12px; padding: 10px 18px; background: var(--brand); color: white; font-weight: 800; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--brand-dark); }
.button.secondary { background: var(--surface); border-color: var(--line); color: var(--text); }
.button.danger { background: var(--danger); }
.button.small { min-height: 38px; padding: 7px 12px; font-size: .9rem; }
.button:disabled { opacity: .55; cursor: not-allowed; }
.link-button { border: 0; background: transparent; color: var(--brand); font-weight: 800; cursor: pointer; padding: 8px; }

.form-grid { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 800; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid #d7cbbb; border-radius: 11px; background: white; color: var(--text); padding: 12px 13px; min-height: 46px; }
.field textarea { min-height: 110px; resize: vertical; }
.field textarea.code-textarea { min-height: 380px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; line-height: 1.55; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid rgba(118,98,70,.18); border-color: var(--brand); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.notice { margin: 16px 0; border-radius: 12px; padding: 13px 15px; background: #edf6ef; color: #28563d; }
.notice.error { background: #fff0ef; color: #8a302b; }
.empty-state { text-align: center; padding: 44px 22px; }
.badge { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px; border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: .82rem; font-weight: 800; }
.badge.success { background: #e8f4ec; color: var(--success); }
.badge.danger { background: #fae9e8; color: var(--danger); }
.badge.current { background: #eee7da; color: var(--brand-dark); }

.progress { height: 12px; border-radius: 999px; overflow: hidden; background: #ece5da; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--success); }
.progress.compact { height: 14px; background: #edeff4; }
.progress.compact > span { background: #2f80ed; }
.progress-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 7px; color: var(--muted); font-size: .9rem; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.stat strong { display: block; margin-top: 6px; font-size: 1.8rem; }

.course-learning-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; }
.course-sidebar { position: sticky; top: 92px; border: 1px solid var(--line); background: #f8f9fb; }
.course-sidebar h1 { padding: 20px 18px 14px; font-size: 1rem; line-height: 1.55; background: #fff; border-bottom: 1px solid var(--line); }
.course-sidebar-thumb { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #eee; }
.course-sidebar-thumb.placeholder { display: grid; place-items: center; color: var(--muted); font-weight: 800; background: linear-gradient(135deg, #fff8df, #efe2bf); min-height: 150px; }
.course-sidebar .progress { width: calc(100% - 32px); margin: 24px auto 8px; }
.course-progress-percent { margin: 0 0 24px; text-align: center; font-weight: 800; color: #20242a; }
.course-back-link { display: block; padding: 14px 16px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; text-decoration: none; font-weight: 800; background: #fff; }
.course-back-link:hover { color: var(--brand-dark); }
.course-main { min-width: 0; }
.course-breadcrumb { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; color: #6f7784; font-size: .94rem; }
.course-breadcrumb a { color: #2878d8; text-decoration: none; }
.course-breadcrumb a::after { content: "/"; margin-left: 10px; color: #b5bdc8; }
.course-description { margin: 0 0 18px; padding: 16px 18px; border: 1px solid var(--line); background: #fff; color: var(--muted); }
.utage-section { margin-bottom: 24px; border: 1px solid #dfe4ea; background: #fff; }
.utage-section-title { padding: 13px 18px; border-bottom: 1px solid #dfe4ea; background: #f8f9fb; color: #2878a7; font-weight: 800; }
.utage-lesson-list { list-style: none; margin: 0; padding: 16px 20px; }
.utage-lesson-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 54px; padding: 10px 0; border-bottom: 1px solid #edf0f3; }
.utage-lesson-row:last-child { border-bottom: 0; }
.lesson-status-dot { width: 17px; height: 17px; border: 1.5px solid #45515f; border-radius: 50%; background: #fff; }
.utage-lesson-row.completed .lesson-status-dot { border-color: var(--success); background: var(--success); box-shadow: inset 0 0 0 3px #fff; }
.utage-lesson-row.current .lesson-status-dot { border-color: #2f80ed; background: #2f80ed; box-shadow: inset 0 0 0 3px #fff; }
.utage-lesson-title { display: grid; gap: 3px; color: #374151; text-decoration: none; line-height: 1.55; }
.utage-lesson-title:hover { color: #1f6fbd; }
.utage-lesson-title small { color: var(--muted); }
.utage-lesson-button { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 6px 14px; border-radius: 4px; background: #2f80ed; color: #fff; font-weight: 800; text-decoration: none; white-space: nowrap; }
.utage-lesson-button:hover { background: #1f6fbd; }
.utage-empty { padding: 22px; text-align: center; }

.section-card { padding: 0; overflow: hidden; }
.section-title { padding: 18px 20px; background: var(--surface-soft); border-bottom: 1px solid var(--line); }
.lesson-list { list-style: none; margin: 0; padding: 0; }
.lesson-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 20px; border-bottom: 1px solid var(--line); text-decoration: none; }
.lesson-row:last-child { border-bottom: 0; }
.lesson-row:hover { background: #fcfaf6; }

.video-wrap { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: 16px; background: #201e1b; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-stack { display: grid; gap: 20px; }
.lesson-content-card { display: grid; gap: 18px; }
.lesson-content-card-without-video { margin-top: 0; }
.formatted-text { display: grid; gap: 0.7em; line-height: 1.85; overflow-wrap: anywhere; }
.formatted-text.compact { gap: 0.45em; line-height: 1.75; }
.formatted-text p { margin: 0; }
.lesson-content { display: block; color: #3f3932; line-height: 2.05; overflow-wrap: anywhere; font-size: 1.04rem; }
.lesson-content p { margin: 0 0 2.15rem; }
.lesson-content p:last-child { margin-bottom: 0; }
.lesson-content a { color: #2878d8; font-weight: 700; }
.lesson-line { display: block; margin: 0; line-height: 2.02; }
.lesson-line:last-child { margin-bottom: 0; }
.lesson-rich-content h2, .lesson-rich-content h3, .lesson-rich-content h4 { margin: 1.8rem 0 1rem; line-height: 1.55; }
.lesson-rich-content h2:first-child, .lesson-rich-content h3:first-child, .lesson-rich-content h4:first-child { margin-top: 0; }
.lesson-rich-content hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.lesson-rich-content ul, .lesson-rich-content ol { margin: 0 0 1.5rem 1.4rem; padding: 0; }
.lesson-rich-content li { margin: 0 0 .55rem; }
.lesson-rich-content strong, .lesson-rich-content b { font-weight: 800; }
.migration-video-note { display: block; border: 1px solid #cfe0f7; border-radius: 12px; background: #f3f8ff; color: #235b9a; padding: 12px 14px; font-weight: 800; }
.migration-video-note small { display: block; margin-top: 4px; color: #5e7188; font-weight: 600; line-height: 1.55; }
.lesson-materials { display: grid; gap: 14px; padding-top: 4px; }
.lesson-materials h2 { margin: 0; font-size: 1.05rem; }
.lesson-material-image { margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.lesson-material-image img { display: block; width: 100%; height: auto; }
.lesson-material-image figcaption { padding: 10px 12px; color: var(--muted); font-size: .9rem; background: #fafafa; }
.material-button-list { display: flex; flex-wrap: wrap; gap: 10px; }
.lesson-nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 22px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { text-align: left; padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: .86rem; }
.student-list-card { padding: 0; overflow: hidden; }
.student-search-toolbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line); background: #fffdf8; }
.student-search-fields { display: grid; grid-template-columns: minmax(260px, 1.25fr) repeat(2, minmax(190px, .85fr)); align-items: end; gap: 12px; }
.student-search-field { min-width: 0; }
.student-search-toolbar .button { margin-bottom: 1px; }
.student-search-toolbar .button[hidden] { display: none; }
.student-search-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 24px; }
.student-search-actions .button[hidden] + p { margin-left: auto; }
.student-search-toolbar p { margin: 0; white-space: nowrap; }
.student-priority-badge { margin-top: 8px; background: #eee7da; color: var(--brand-dark); }
.student-list-card .table-wrap { padding: 0 10px 10px; }
.qualification-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.training-management-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.training-management-group { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fffdf8; }
.training-management-group h2 { margin: 0 0 12px; font-size: 16px; }
.training-management-group .qualification-tabs { margin-bottom: 0; }
.qualification-roster-card { display: grid; gap: 18px; padding: 0; overflow: hidden; }
.qualification-roster-toolbar { display: grid; grid-template-columns: minmax(260px, 1fr) auto; align-items: end; gap: 14px; padding: 20px; border-bottom: 1px solid var(--line); background: #fffdf8; }
.qualification-roster-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.qualification-roster-toolbar p { grid-column: 1 / -1; margin: 0; }
.qualification-roster-card .table-wrap { padding: 0 12px; }
.qualification-roster-table { min-width: 560px; }
.qualification-student-check { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: start; gap: 10px; cursor: pointer; }
.qualification-student-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); }
.qualification-student-check span { display: grid; gap: 2px; }
.qualification-student-check small { color: var(--muted); font-weight: 500; }
.qualification-roster-save { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 20px 20px; }
.qualification-roster-save p { margin: 0; }
.student-training-status-form { display: grid; gap: 20px; }
.student-status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.student-status-group { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: #fffdf8; }
.student-status-group h3 { margin-bottom: 14px; }
.student-status-checklist { display: grid; gap: 10px; }
.student-status-check { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: start; gap: 10px; border-radius: 10px; padding: 10px; cursor: pointer; }
.student-status-check:hover { background: var(--surface-soft); }
.student-status-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); }
.student-status-check span { line-height: 1.55; font-weight: 700; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-nav { display: flex; gap: 8px; margin: 0 0 24px; flex-wrap: wrap; }
.admin-nav a { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: white; text-decoration: none; font-weight: 700; }
.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr); gap: 20px; align-items: start; }
.funnel-admin-card { display: grid; gap: 14px; }
.funnel-admin-card p { margin: 0; }
.funnel-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.funnel-card-metrics { display: flex; flex-wrap: wrap; gap: 10px; }
.funnel-card-metrics span { border-radius: 10px; padding: 8px 10px; background: var(--surface-soft); color: var(--muted); font-size: .86rem; }
.funnel-card-metrics b { color: var(--text); }
.funnel-form-group { display: grid; gap: 16px; border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: #fcfaf6; }
.funnel-form-group .eyebrow { margin-bottom: 4px; }
.field textarea.funnel-body-field { min-height: 320px; line-height: 1.8; }
.admin-group-list { display: grid; gap: 18px; }
.admin-group { display: grid; gap: 14px; }
.admin-group-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.admin-group-header h2 { margin: 0; }
.admin-item-list { display: grid; gap: 12px; }
.admin-list-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, auto); gap: 16px; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fffdf8; }
.admin-list-main { display: grid; gap: 8px; min-width: 0; }
.admin-list-main h3 { margin: 0; line-height: 1.45; }
.admin-list-side { display: grid; gap: 10px; justify-items: end; }
.sort-controls { display: inline-flex; gap: 6px; }
.button.tiny { min-height: 30px; padding: 4px 10px; border-radius: 9px; font-size: .9rem; }
.button:disabled { opacity: .45; cursor: not-allowed; }
.review-toolbar { display: grid; gap: 16px; }
.review-course-form { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.review-course-form label { display: grid; gap: 6px; font-weight: 800; }
.review-course-form select { min-width: min(100%, 520px); padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; }
.review-summary { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); }
.review-list { display: grid; gap: 18px; margin-top: 18px; }
.review-card summary { cursor: pointer; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.review-card summary small { display: block; margin-top: 4px; color: var(--muted); font-weight: 600; }
.review-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; }
.review-columns h3 { margin: 0 0 12px; font-size: 1rem; }
.review-preview { border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: #fffdf8; }
.review-source { white-space: pre-wrap; overflow: auto; max-height: 520px; border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: #f7f3ea; line-height: 1.8; font: inherit; margin: 0; }
.review-issues { border: 1px solid #f2b8b5; background: #fff2f0; color: #8a2a24; border-radius: 14px; padding: 12px 14px; margin-top: 14px; }
.review-issues p { margin: 0 0 8px; }
.review-issues p:last-child { margin-bottom: 0; }

@media (max-width: 760px) {
  body.menu-open { overflow: hidden; }
  .site-shell { padding: 58px 0 0; }
  .site-header { width: min(84vw, 300px); border-right: 1px solid var(--line); box-shadow: 18px 0 42px rgba(49,43,37,.18); transform: translateX(-105%); transition: transform .22s ease; }
  .site-shell.menu-open .site-header { transform: translateX(0); }
  .student-search-toolbar, .student-search-fields { grid-template-columns: 1fr; }
  .student-search-actions { align-items: flex-start; flex-direction: column; }
  .training-management-groups { grid-template-columns: 1fr; }
  .qualification-roster-toolbar { grid-template-columns: 1fr; }
  .qualification-roster-save { align-items: stretch; flex-direction: column; }
  .student-status-grid { grid-template-columns: 1fr; }
  .header-inner { min-height: 100%; gap: 20px; padding: 76px 18px 24px; }
  .brand { padding-bottom: 18px; }
  .header-actions a:not(.keep-mobile) { display: flex; }
  .mobile-menu-toggle { position: fixed; top: 10px; left: 12px; z-index: 50; display: inline-flex; align-items: center; justify-content: center; min-height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 7px 13px; background: var(--surface); color: var(--text); font-weight: 800; box-shadow: 0 6px 20px rgba(49,43,37,.1); cursor: pointer; }
  .mobile-menu-scrim { position: fixed; inset: 0; z-index: 25; width: 100%; height: 100%; border: 0; background: rgba(49,43,37,.35); cursor: pointer; }
  .site-shell.menu-open .mobile-menu-scrim { display: block; }
  .container, .narrow { width: min(100% - 24px, 1120px); padding-top: 24px; }
  .menu-header-thumbnail { margin-bottom: 16px; border-radius: 16px; }
  .feature-menu-card { display: grid; grid-template-columns: 1fr; }
  .feature-menu-card > div { padding: 18px 18px 14px; }
  .feature-menu-card > .button { width: calc(100% - 36px); margin: 0 18px 18px; text-align: center; }
  .feature-menu-card .dashboard-next-event { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .feature-menu-card .dashboard-next-event > .button { width: 100%; }
  .dashboard-event-preview-list { grid-template-columns: 1fr; gap: 12px; }
  .dashboard-event-preview { padding: 15px; }
  .planner-entry-card { align-items: flex-start; flex-direction: column; }
  .dashboard-today-grid { grid-template-columns: 1fr; }
  .dashboard-brand-hero { margin-bottom: 20px; border-radius: 16px; }
  .dashboard-planner-error { align-items: flex-start; flex-direction: column; }
  .fortune-market-entry-card, .calculation-apps-entry-card { align-items: flex-start; flex-direction: column; }
  .grid.two, .grid.three, .stats, .split { grid-template-columns: 1fr; }
  .review-columns { grid-template-columns: 1fr; }
  .admin-list-item { grid-template-columns: 1fr; }
  .admin-list-side { justify-items: start; }
  .course-learning-layout { grid-template-columns: 1fr; gap: 18px; }
  .course-sidebar { position: static; }
  .utage-lesson-list { padding: 8px 12px; }
  .utage-lesson-row { grid-template-columns: 22px minmax(0, 1fr); gap: 10px; }
  .utage-lesson-button { grid-column: 2; justify-self: start; margin-top: 4px; }
  .page-heading { align-items: start; flex-direction: column; }
  .card { border-radius: 15px; padding: 18px; }
  .lesson-row { align-items: flex-start; padding: 14px 16px; }
  .lesson-nav { grid-template-columns: 1fr; }
  h1 { font-size: 1.7rem; }
  .fortune-market-page { gap: 28px; }
  .fortune-market-hero { grid-template-columns: 1fr; min-height: 0; border-radius: 22px; padding: 30px 22px; }
  .fortune-market-hero h1 { font-size: clamp(2rem, 12vw, 3rem); }
  .fortune-market-hero-symbols { display: flex; min-height: 0; justify-content: flex-start; gap: 8px; margin-top: 24px; }
  .fortune-market-hero-symbols span, .fortune-market-hero-symbols span:nth-child(2), .fortune-market-hero-symbols span:nth-child(3) { width: 62px; height: 62px; margin: 0; border-radius: 18px; font-size: 1.85rem; transform: none; }
  .fortune-market-shortcuts { grid-template-columns: 1fr; }
  .fortune-market-shortcuts a { justify-content: flex-start; padding-inline: 18px; }
  .fortune-market-grid { grid-template-columns: 1fr; gap: 18px; }
  .fortune-market-section-heading { align-items: flex-start; }
  .fortune-market-section-icon { flex-basis: 48px; width: 48px; height: 48px; border-radius: 15px; font-size: 1.45rem; }
  .fortune-market-card-body { padding: 18px; }
  .fortune-market-note { align-items: flex-start; }
  .calculation-apps-hero { grid-template-columns: 1fr; border-radius: 22px; padding: 30px 22px; }
  .calculation-apps-hero-icon { width: 72px; height: 72px; border-radius: 20px; font-size: 2.2rem; transform: none; }
  .calculation-apps-grid, .calculation-app-card { grid-template-columns: 1fr; }
  .member-diagnosis-card .calculation-app-image { min-height: 0; aspect-ratio: 5 / 2; }
  .calculation-app-card-body { padding: 20px; }
  .calculation-app-button { width: 100%; }
  .calculation-apps-note { align-items: flex-start; }
}
.numerology-entry-card {
  border-color: rgba(168, 85, 247, 0.24);
  background:
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.11), transparent 38%),
    radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.1), transparent 42%),
    var(--surface);
}

.numerology-page-heading {
  margin-bottom: 18px;
}

.numerology-app-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.numerology-app-frame {
  display: block;
  width: 100%;
  height: max(78vh, 900px);
  border: 0;
  background: #fff;
}

@media (max-width: 720px) {
  .numerology-app-shell {
    margin-inline: -10px;
    border-radius: 18px;
  }

  .numerology-app-frame {
    height: 86vh;
    min-height: 720px;
  }
}

.journey-start { display: grid; gap: 24px; }
.journey-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.journey-choice-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; min-height: 210px; border: 2px solid var(--line); border-radius: 22px; padding: 22px; background: var(--surface); color: var(--text); text-align: left; font: inherit; cursor: pointer; box-shadow: var(--shadow); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.journey-choice-card:hover, .journey-choice-card:focus-visible { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 18px 44px rgba(49,43,37,.16); }
.journey-choice-card.selected { border-color: var(--accent); background: linear-gradient(145deg, #fffdf9, #fff3e8); }
.journey-choice-card:disabled { opacity: .7; cursor: wait; transform: none; }
.journey-choice-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 17px; background: #fff4e7; font-size: 1.7rem; }
.journey-choice-card strong { display: block; margin: 3px 0 10px; font-size: 1.16rem; line-height: 1.5; }
.journey-choice-card small { display: block; color: var(--muted); font-size: .94rem; line-height: 1.75; }
.journey-choice-action { grid-column: 1 / -1; align-self: end; color: var(--accent-dark); font-weight: 800; }
.journey-dashboard-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; margin-bottom: 26px; border-color: rgba(218, 132, 57, .35); background: linear-gradient(145deg, #fffdf9, #fff5e8); }
.journey-dashboard-card h2 { margin: 4px 0 10px; }
.journey-dashboard-card p { line-height: 1.8; }
.journey-dashboard-icon { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 20px; background: #fff; font-size: 2rem; box-shadow: 0 8px 22px rgba(49,43,37,.08); }
.journey-dashboard-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.journey-change-link { padding: 8px 4px; color: var(--muted); font-weight: 700; }
.journey-dashboard-empty { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }

@media (max-width: 760px) {
  .journey-choice-grid { grid-template-columns: 1fr; }
  .journey-choice-card { min-height: 0; padding: 18px; }
  .journey-dashboard-card, .journey-dashboard-empty { grid-template-columns: 1fr; }
  .journey-dashboard-actions { align-items: stretch; flex-direction: column; }
  .journey-dashboard-actions .button, .journey-dashboard-empty > .button { width: 100%; text-align: center; }
}

.services-page { display: grid; gap: 28px; }
.service-goal-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.service-goal-tab { display: flex; min-height: 78px; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: var(--surface); color: var(--text); font-size: .92rem; font-weight: 800; line-height: 1.5; box-shadow: 0 6px 18px rgba(49,43,37,.06); }
.service-goal-tab span { font-size: 1.45rem; }
.service-goal-tab.active { border-color: var(--accent); background: linear-gradient(145deg, #fffdf9, #fff1e3); color: var(--accent-dark); }
.service-guide-intro { border-radius: 24px; padding: clamp(24px, 5vw, 48px); background: linear-gradient(135deg, #4d3142, #84516b); color: #fff; box-shadow: var(--shadow); }
.service-guide-intro .eyebrow { color: #ffe4c0; }
.service-guide-intro h2 { margin: 7px 0 13px; color: #fff; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.service-guide-intro p:last-child { max-width: 780px; margin: 0; color: rgba(255,255,255,.9); line-height: 1.9; }
.service-guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.service-guide-card { position: relative; overflow: hidden; padding: 0; }
.service-guide-card-image { display: block; width: 100%; aspect-ratio: 16 / 9; border-bottom: 1px solid var(--line); object-fit: cover; object-position: center; }
.service-guide-card-body { position: relative; padding: 72px 22px 22px; }
.service-guide-card.has-image .service-guide-card-body { padding-top: 60px; }
.service-guide-card h2 { margin-bottom: 10px; color: #49313e; }
.service-guide-card p { margin: 0; color: var(--muted); line-height: 1.8; }
.service-guide-card-link { display: block; height: 100%; color: inherit; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.service-guide-card-link:hover { transform: translateY(-2px); border-color: rgba(218,132,57,.5); box-shadow: 0 14px 30px rgba(49,43,37,.12); }
.service-guide-card-link:focus-visible { outline: 3px solid rgba(218,132,57,.35); outline-offset: 3px; }
.service-guide-link-label { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--accent-dark); font-weight: 800; }
.service-guide-icon { position: absolute; top: 18px; left: 18px; display: grid; width: 42px; height: 42px; place-items: center; border-radius: 14px; background: #fff2e4; font-size: 1.35rem; }
.service-guide-next { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; border-color: rgba(218,132,57,.35); background: #fffaf3; }
.service-guide-next h2 { margin: 5px 0 10px; }
.service-guide-next p:last-child { margin: 0; color: var(--muted); line-height: 1.8; }
.service-upcoming { display: grid; gap: 16px; }
.service-upcoming-heading h2 { margin: 4px 0 0; }
.service-event-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service-event-card { display: flex; min-width: 0; flex-direction: column; }
.service-event-card h3 { margin: 5px 0 10px; color: #49313e; font-size: 1.08rem; line-height: 1.6; }
.service-event-card > p:not(.eyebrow) { margin: 0 0 18px; color: var(--muted); }
.service-event-card .button { width: 100%; margin-top: auto; text-align: center; }
.service-upcoming-empty { border-style: dashed; background: #fffdf9; }
.service-upcoming-empty h2 { margin: 5px 0 10px; }
.service-upcoming-empty p:last-child { margin: 0; color: var(--muted); }
.analytics-goal-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 860px) {
  .service-goal-tabs, .analytics-goal-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-event-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .service-goal-tabs, .service-guide-grid, .analytics-goal-stats { grid-template-columns: 1fr; }
  .service-guide-next { grid-template-columns: 1fr; }
  .service-guide-next .button { width: 100%; text-align: center; }
}
