:root {
  --ink: #17232e;
  --muted: #586773;
  --line: #e8ebf2;
  --surface: #f8f9fc;
  --portal-shadow: 0 5px 16px #233b5c0b;
}
.brand small { color: var(--muted); font-size: 12px; }
.site-header { min-height: 76px; }
.brand strong { font-size: 20px; }
.environment { background: #f8f9fc; color: var(--muted); border-bottom: 1px solid var(--line); padding-block: 4px; }
#nav { gap: 26px; }
#nav a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; padding-block: 16px; }
#nav svg { width: 18px; height: 18px; flex: none; }
#tools-nav { gap: 24px; background: #fbfcfe; }
#tools-nav a { font-size: 12px; padding-block: 8px; }
main { max-width: 1456px; padding-top: 36px; }
h1 { font-size: 34px; }
h2 { font-size: 22px; }
.portal-heading { padding-bottom: 26px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.heading-divider { color: var(--muted); font-size: 25px; font-weight: 400; border-left: 1px solid #c9d1dc; padding-left: 20px; margin-left: 12px; }
.child-picker { min-width: 210px; max-width: 100%; font-size: 12px; color: var(--muted); }
.section-nav { padding: 0; background: transparent; border: 0; gap: 24px; margin-bottom: 28px; }
.section-nav button, .section-nav a { background: none; border: 0; border-radius: 0; padding: 10px 0; min-height: 44px; font-size: 14px; color: var(--navy); display: inline-flex; gap: 8px; align-items: center; }
.section-nav svg { width: 18px; height: 18px; flex: none; }
.ability { background: var(--navy); }
#home-ability .ability { margin: 0; }
.service-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 24px 0; }
.portal-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; min-height: 44px; color: var(--blue); font-size: 14px; font-weight: 600; }
.portal-link svg, .text-action svg, .agenda-row > svg { width: 18px; height: 18px; flex: none; }
.service-shortcuts .portal-link { background: white; border-radius: 16px; box-shadow: var(--portal-shadow); justify-content: center; flex-direction: column; padding: 17px 10px; min-height: 84px; color: var(--navy); }
.service-shortcuts .portal-link:first-child svg, .service-shortcuts .portal-link:last-child svg { color: var(--orange-ink); }
.event-banner { display: block; position: relative; min-height: 150px; overflow: hidden; border-radius: 20px; color: white; margin-bottom: 40px; }
.event-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.event-banner > span { display: flex; position: relative; flex-direction: column; gap: 8px; padding: 24px; width: 45%; min-width: 230px; background: #17232ee0; min-height: 150px; }
.event-banner strong { font-size: 24px; }
.event-banner small { color: #e0e9f4; font-size: 14px; }
.event-banner span span { font-size: 13px; display: flex; gap: 8px; align-items: center; }
.event-banner svg { width: 16px; height: 16px; }
.week-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 20px 0; }
.week-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; margin: 20px 0 28px; }
.week-day { display: flex; flex-direction: column; gap: 5px; background: white; border: 0; border-radius: 14px; box-shadow: var(--portal-shadow); padding: 14px 4px; height: 116px; min-width: 0; }
.week-day span { font-size: 13px; font-weight: 400; }
.week-day strong { font-size: 26px; line-height: 1.3; }
.week-day small { font-size: 11px; font-weight: 400; white-space: normal; line-height: 1.3; min-height: 29px; }
.week-day[aria-pressed="true"] { background: var(--orange); color: #17232e; }
.week-day[aria-pressed="true"]:hover { background: #e7743e; }
.day-agenda { border-top: 1px solid var(--line); padding-top: 20px; }
.day-agenda h3 { margin-bottom: 16px; }
.agenda-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.agenda-row > svg { margin-left: auto; }
.home-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; margin-top: 10px; }
.balance-row { display: flex; flex-wrap: wrap; gap: 24px; padding: 18px 0; border-block: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.balance-row strong { color: var(--ink); font-size: 20px; margin-left: 6px; }
.next-lesson { display: flex; gap: 22px; padding: 24px 0; align-items: center; }
.next-lesson p { color: var(--muted); margin: 8px 0; font-size: 14px; }
.date-stamp { display: flex; flex-direction: column; background: #edf4fa; min-width: 74px; border-radius: 14px; text-align: center; padding: 10px; color: var(--navy); font-size: 13px; }
.date-stamp strong { font-size: 30px; line-height: 1.3; }
.text-action { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-size: 14px; }
.pending-content { padding: 24px 0; }
.pending-content p { margin: 10px 0 16px; color: var(--muted); font-size: 14px; }
#home-growth { border-top: 1px solid var(--line); padding-top: 32px; }
#home-growth .profile-meta { margin: 20px 0; }
#home-growth .growth-grid { margin-top: 16px; }
.coach-identity { background: var(--navy); color: white; border-radius: 24px; padding: 28px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.coach-identity h2 { font-size: 21px; }
.coach-identity p { color: #d3e1f1; margin-top: 10px; font-size: 14px; }
.coach-identity .portal-link { color: #e0e9f4; }
.coach-metrics { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 20px; margin: 24px 0; }
.coach-metrics article { background: #fff; border-radius: 18px; box-shadow: var(--portal-shadow); padding: 24px; min-width: 0; }
.coach-metrics p { font-size: 13px; color: var(--muted); }
.coach-metrics strong { display: block; font-size: 34px; margin: 14px 0; }
.coach-metrics small { font-size: 14px; font-weight: 400; }
.notice-band { background: #fff0e8; display: flex; gap: 18px; align-items: center; padding: 20px; border-radius: 18px; box-shadow: var(--portal-shadow); margin: 24px 0; }
.notice-band > svg { width: 22px; flex: none; }
.notice-band p { font-size: 13px; color: var(--orange-ink); margin-top: 5px; }
.notice-band button { margin-left: auto; background: transparent; border: 0; color: var(--blue); }
.coach-tasks { display: flex; gap: 14px; flex-wrap: wrap; margin: 24px 0 40px; }
.coach-tasks .portal-link { background: white; border-radius: 14px; padding: 10px 16px; box-shadow: var(--portal-shadow); color: var(--navy); }
.day-heading { margin: 30px 0 20px; }
.overview-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 24px 0; border-block: 1px solid var(--line); }
.overview-metrics > div + div { border-left: 1px solid var(--line); padding-left: 24px; }
.overview-metrics p, .overview-metrics small { color: var(--muted); font-size: 13px; }
.overview-metrics strong { display: block; font-size: 38px; margin: 14px 0; }
.business-metrics-section { margin: 24px 0 0; }
.business-metrics-section .heading { flex-wrap: wrap; }
.business-metrics { gap: 0; padding: 0; }
.business-metrics > div { min-width: 0; padding: 20px 16px !important; border-left: 0 !important; border-bottom: 1px solid var(--line); }
.business-metrics strong { font-size: 24px; overflow-wrap: anywhere; }
.business-metrics strong small { display: block; margin-top: 6px; font-weight: 400; }
.business-metrics .text-action { display: flex; margin-top: 12px; font-size: 13px; }
.business-metrics > div > p:last-child { line-height: 1.6; }
.metrics-gaps { margin: 16px 0; }
.metrics-gaps summary { cursor: pointer; }
#metrics-sources { margin-top: 24px; min-width: 0; }
#metrics-sources:empty { margin-top: 0; }
#metrics-sources th { white-space: nowrap; }
.metrics-reference { min-width: 140px; max-width: 260px; overflow-wrap: anywhere; }
.metrics-pager { justify-content: flex-end; margin-top: 12px; }
.overview-flow { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 40px; margin-top: 32px; }
.overview-flow section { margin-bottom: 0; min-width: 0; }
.overview-queue { border-left: 1px solid var(--line); padding-left: 32px; }
.overview-queue .portal-link { display: flex; }
.overview-cost, .overview-marketing { border-top: 1px solid var(--line); padding-top: 32px; margin-top: 40px; }
.cost-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; }
.cost-calculator { background: #f4f2fb; padding: 24px; border-radius: 18px; box-shadow: var(--portal-shadow); }
.cost-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; margin-bottom: 18px; }
.cost-fields input { width: 100%; margin-top: 6px; font-size: 16px; }
.cost-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-content: start; padding-top: 8px; }
.cost-results span, .cost-results p { color: var(--muted); font-size: 13px; }
.cost-results output { display: block; font-size: 32px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; margin-top: 8px; min-height: 42px; }
.cost-net, .cost-results p { grid-column: 1/-1; }
.cost-net { border-top: 1px solid var(--line); padding-top: 16px; }
.cost-net output { color: #277452; }
.marketing-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 34px; }
.marketing-layout > div { min-width: 0; }
.marketing-photo { display: flex; gap: 18px; align-items: center; }
.marketing-photo img { width: 140px; height: 130px; object-fit: cover; border-radius: 8px; }
.marketing-photo h3 { font-size: 16px; }
.funnel-stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 30px 0; }
.funnel-stages h3, .funnel-stages p { color: var(--muted); font-size: 13px; }
.funnel-stages strong { display: block; font-size: 28px; padding: 18px 0; }
.funnel-empty { height: 112px; background: #f0f3f8; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.task-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 20px; }
.task-link { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); padding: 20px 0; color: var(--navy); text-decoration: none; }
.task-link svg { width: 22px; height: 22px; flex: none; }
.task-link > span { flex: 1; min-width: 0; }
.task-link strong, .task-link small { display: block; }
.task-link small { font-size: 12px; color: var(--muted); margin-top: 5px; }
.account-services { max-width: 720px; }
.account-services .portal-link { display: flex; gap: 18px; padding: 20px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
.compact-empty { padding: 32px 12px; }
.pending-module .portal-link { justify-content: center; margin-top: 20px; }
@media (max-width: 900px) {
  .coach-identity { flex-wrap: wrap; }
  .coach-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .coach-metrics article { padding: 18px; }
  .task-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .week-strip { gap: 10px; }
  .overview-flow, .cost-layout, .marketing-layout { grid-template-columns: 1fr; gap: 28px; }
  .overview-queue { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  h1 { font-size: 27px; }
  h2 { font-size: 21px; }
  .site-header { padding: 12px 16px; }
  .brand strong { font-size: 18px; }
  .brand small { font-size: 11px; }
  .account { gap: 4px; }
  #account-name { display: none; }
  .environment { font-size: 11px; }
  main { padding: 24px 16px 56px; }
  .portal-heading { margin-bottom: 24px; padding-bottom: 22px; }
  .heading-divider { display: block; margin: 10px 0 0; padding: 0; border: 0; font-size: 20px; }
  .child-picker { width: 100%; }
  #nav { gap: 22px; }
  #nav a { font-size: 13px; padding-block: 14px; }
  #tools-nav { gap: 20px; }
  .section-nav { gap: 6px 18px; margin-bottom: 20px; flex-wrap: wrap; overflow: visible; }
  .section-nav button, .section-nav a { font-size: 13px; }
  .service-shortcuts { gap: 10px; margin: 18px 0; }
  .service-shortcuts .portal-link { font-size: 12px; padding: 14px 3px; min-height: 76px; }
  .event-banner { min-height: 144px; border-radius: 18px; margin-bottom: 32px; }
  .event-banner > span { min-width: 0; width: 52%; padding: 18px; min-height: 144px; }
  .event-banner strong { font-size: 22px; }
  .event-banner small { font-size: 12px; }
  .week-strip { gap: 5px; margin: 18px 0 24px; }
  .week-day { padding: 12px 1px; height: 124px; border-radius: 12px; gap: 6px; }
  .week-day span { font-size: 11px; }
  .week-day strong { font-size: 22px; }
  .week-day small { font-size: 11px; min-height: 43px; }
  .home-columns { grid-template-columns: 1fr; gap: 0; }
  .coach-identity { padding: 22px 20px; gap: 14px; border-radius: 24px; }
  .coach-identity h2 { font-size: 20px; }
  .coach-identity .toolbar { gap: 18px; }
  .coach-identity .portal-link { font-size: 12px; }
  .coach-metrics { grid-template-columns: 1fr 1fr; gap: 12px; }
  .coach-metrics article:first-child { grid-column: 1/-1; }
  .coach-metrics strong { font-size: 30px; margin: 10px 0; }
  .coach-metrics p { font-size: 12px; }
  .coach-metrics small { font-size: 12px; }
  .notice-band { gap: 12px; padding: 16px; flex-wrap: wrap; }
  .notice-band > div { flex: 1; }
  .notice-band button { padding: 4px 0; }
  .coach-tasks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .coach-tasks .portal-link { padding: 10px; font-size: 13px; }
  .overview-metrics { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .overview-metrics > div + div { padding-left: 0; border-left: 0; }
  .funnel-stages { gap: 8px; }
  .funnel-stages h3, .funnel-stages p { font-size: 11px; }
  .funnel-empty { height: 80px; }
  .cost-calculator { padding: 18px; }
  .cost-fields { gap: 16px; }
  .cost-results output { font-size: 28px; }
  .marketing-photo img { width: 108px; height: 106px; }
  .task-list { grid-template-columns: 1fr; gap: 0; }
}
/* Real business workspaces: contextual tools, content publishing and scoped follow-up. */
.content-version { padding:28px 0; border-bottom:1px solid var(--line); }
.content-version .heading { margin-bottom:16px; }
.content-version h3 { font-size:19px; margin:0 0 8px; }
.content-version > p { color:var(--muted); margin-bottom:14px; }
.content-preview { max-width:780px; padding:20px 0; white-space:pre-wrap; overflow-wrap:anywhere; }
.content-preview h3 { margin-top:20px; }
.version-actions { display:flex; gap:16px; align-items:center; flex-wrap:wrap; margin-top:18px; }
.version-actions small { color:var(--muted); margin-right:auto; }
.content-editor { max-width:820px; }
.content-editor fieldset { padding:18px; border:1px solid var(--line); border-radius:8px; }
.scope-check { display:flex; align-items:center; gap:10px; margin-top:12px; }
.scope-check input { width:18px; min-height:18px; height:18px; }
.lead-filter { display:flex; gap:24px; align-items:end; flex-wrap:wrap; margin-bottom:24px; }
.lead-filter label { min-width:180px; }
.lead-filter select { width:100%; margin-top:6px; }
.asset-capacity { font-variant-numeric:tabular-nums; }
.asset-heading > div { min-width:0; max-width:100%; }
.asset-heading h1 { overflow-wrap:anywhere; text-wrap:balance; }
.asset-heading p { text-wrap:pretty; }
.asset-list-row { display:grid; grid-template-columns:96px minmax(0,1fr) auto; align-items:center; gap:24px; padding:24px 0; border-bottom:1px solid var(--line); }
.asset-list-row img { width:96px; height:72px; object-fit:contain; background:var(--surface); }
.asset-list-row h2 { font-size:19px; margin:0 0 8px; overflow-wrap:anywhere; }
.asset-list-row p,.asset-reference p { color:var(--muted); margin:6px 0; overflow-wrap:anywhere; }
.asset-detail { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:32px; padding-bottom:32px; }
.asset-image { background:var(--surface); display:grid; place-items:center; min-width:0; }
.asset-image img { max-width:100%; max-height:320px; object-fit:contain; }
.asset-usage { border-top:1px solid var(--line); padding:28px 0; }
.asset-usage h2 { text-wrap:balance; }
.asset-usage h2 small { display:inline-block; color:var(--muted); font-size:14px; font-weight:400; }
.asset-reference { display:flex; justify-content:space-between; align-items:start; gap:24px; padding:16px 0; }
.asset-reference > div { min-width:0; }
.asset-reference strong { overflow-wrap:anywhere; }
.asset-reference a { flex-shrink:0; }
@media(max-width:640px) {
  .asset-list-row { grid-template-columns:72px minmax(0,1fr); gap:16px; }
  .asset-list-row img { width:72px; height:60px; }
  .asset-list-row > a { grid-column:2; }
  .asset-detail { grid-template-columns:1fr; gap:24px; }
  .asset-reference { flex-direction:column; gap:12px; }
  .asset-usage h2 small { display:block; margin-top:8px; }
}
.inquiry-layout { display:grid; grid-template-columns:1fr 1fr; gap:56px; }
.inquiry-facts dl { display:grid; grid-template-columns:110px 1fr; gap:16px; margin:24px 0 32px; }
.inquiry-facts dt { color:var(--muted); }
.inquiry-facts dd { margin:0; overflow-wrap:anywhere; }
.inquiry-facts > p { margin:16px 0 26px; }
.preserve-lines { white-space:pre-wrap; overflow-wrap:anywhere; }
.followup-history article { padding:20px 0; border-bottom:1px solid var(--line); }
.followup-history article > div { display:flex; gap:14px; align-items:center; flex-wrap:wrap; }
.followup-history small { color:var(--muted); }
.followup-history p { margin:14px 0 0; }
#followup-form { margin-top:28px; }
@media(max-width:700px) {
  .inquiry-layout { grid-template-columns:1fr; gap:24px; }
  .inquiry-layout h2 { font-size:22px; }
  .content-version .heading { align-items:start; }
  .content-version h3 { font-size:18px; }
  .inquiry-facts dl { grid-template-columns:90px 1fr; }
}
.content-version h2{min-width:0;overflow-wrap:anywhere;text-wrap:balance}

/* Registration uses existing fields and rows; long immutable IDs wrap on phones. */
#registration-root { min-width: 0; overflow-wrap: anywhere; }
#registration-root dl { margin: 0; }
#registration-root dt { margin-top: 1rem; font-weight: 600; }
#registration-root dd { margin: .25rem 0 1rem; }
#registration-root select, #registration-root input, #registration-root textarea { max-width: 100%; }
#registration-command { border-top: 1px solid var(--line, #dce2ed); padding-top: 1rem; }
