:root {
  --ink: #211d2b;
  --muted: #716b7b;
  --paper: #fffdf9;
  --canvas: #f4f0ea;
  --line: #ded7d0;
  --rose: #bd4965;
  --rose-dark: #94354d;
  --blush: #f3d9df;
  --gold: #c3924f;
  --sage: #dce8df;
  --positive: #287653;
  --negative: #b53445;
  --shadow: 0 20px 55px rgba(52, 40, 58, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible { outline: 3px solid rgba(189,73,101,.45); outline-offset: 2px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 270px 1fr; }
.sidebar {
  position: sticky; top: 0; height: 100vh; padding: 28px 22px;
  display: flex; flex-direction: column; gap: 26px;
  overflow-y: auto;
  color: white; background: #211d2b;
}
.sidebar > * { flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 13px; color: var(--ink); background: linear-gradient(145deg, #fff, #edcfd6);
  font-family: Georgia, serif; font-weight: 800;
}
.brand strong, .brand span { display: block; }
.brand span { margin-top: 2px; color: #c5bdca; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.progress-card, .sidebar-note { padding: 17px; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: rgba(255,255,255,.055); }
.progress-heading { display: flex; justify-content: space-between; font-size: 13px; }
.progress-track { height: 6px; margin: 12px 0; overflow: hidden; border-radius: 5px; background: rgba(255,255,255,.14); }
#progress-bar { width: 0; height: 100%; border-radius: inherit; background: #e1a9b6; transition: width .3s; }
.progress-card small, .sidebar-note p { color: #bfb7c5; font-size: 11px; line-height: 1.5; }
#main-nav { display: grid; gap: 7px; }
.nav-item {
  display: flex; align-items: center; gap: 13px; width: 100%; padding: 13px 14px;
  color: #bfb7c5; border: 0; border-radius: 12px; background: transparent; text-align: left;
}
.nav-item[hidden] { display: none; }
.nav-item > span:first-child { color: #837a89; font-size: 11px; }
.nav-item-copy { display: grid; gap: 2px; min-width: 0; }
.nav-item-copy small { color: #a79eae; font-size: 10px; font-weight: 500; }
.nav-item:hover, .nav-item.active { color: white; background: rgba(255,255,255,.1); }
.nav-item.active > span:first-child { color: #e6acba; }
.nav-item.active .nav-item-copy { color: white; }
.nav-item-foundation.foundation-ready .nav-item-copy small { color: #b9e6ca; }
.nav-item em { margin-left: auto; font-size: 11px; font-style: normal; }
.nav-item-optional { border-top: 1px solid rgba(255,255,255,.12); border-radius: 0 0 12px 12px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button.hero-secondary { color: white; border: 1px solid #e6acba; background: transparent; }
.hero-secondary:hover { background: rgba(255,255,255,.12); }
.sidebar-note { margin-top: auto; }
.sidebar-note p { margin-bottom: 0; }

main { min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 10; min-height: 88px; padding: 18px clamp(20px, 4vw, 58px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px; border-bottom: 1px solid var(--line);
  background: rgba(244,240,234,.92); backdrop-filter: blur(12px);
}
.topbar h1 { margin: 2px 0 0; font-family: Georgia, serif; font-size: clamp(24px, 3vw, 33px); font-weight: 500; }
.eyebrow { color: var(--rose-dark); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.top-actions { margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.topbar > div { min-width: 0; }
.top-actions .button { white-space: normal; }
.mobile-tools-toggle { display: none; }
.button {
  min-height: 42px; padding: 10px 17px; border: 1px solid transparent; border-radius: 10px;
  font-size: 13px; font-weight: 750; transition: transform .15s, background .15s;
}
.button:hover { transform: translateY(-1px); }
.button.primary { color: white; background: var(--rose); }
.button.primary:hover { background: var(--rose-dark); }
.button.ghost { color: var(--ink); border-color: var(--line); background: rgba(255,255,255,.6); }
.button.light { color: var(--ink); background: white; }
#check-update.update-available, #open-update.update-available, #mobile-tools-toggle.update-available { color: #fff; border-color: #236747; background: #236747; }
#check-update.update-available:hover, #open-update.update-available:hover, #mobile-tools-toggle.update-available:hover { border-color: #194c34; background: #194c34; }
#check-update.update-available:focus-visible, #open-update.update-available:focus-visible, #mobile-tools-toggle.update-available:focus-visible { outline: 3px solid #236747; outline-offset: 3px; }
.icon-button { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: white; }

.view { display: none; padding: clamp(24px, 4vw, 58px); }
.view.active { display: block; }
.example-mode-banner {
  position: relative; z-index: 1; margin: 16px clamp(20px, 4vw, 58px) -6px; padding: 14px 17px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid #d5a6b1; border-radius: 13px;
  color: #f8eff1; background: #5b3343; box-shadow: 0 9px 22px rgba(52,40,58,.14);
}
.example-mode-banner strong { color: #ffdce3; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.example-mode-banner p { margin: 4px 0 0; color: #f3e6e9; font-size: 12px; line-height: 1.45; }
.example-mode-banner .button { flex: 0 0 auto; }
.example-mode-banner[hidden] { display: none; }
/* The choice opens as a modal <dialog>; reset the browser's dialog box so it covers the whole screen as one card. */
.first-run-choice { position: fixed; inset: 0; z-index: 100; display: grid; place-content: safe center; overflow-y: auto; gap: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; padding: 30px 16px; background: rgba(33,29,43,.82); }
.first-run-choice::backdrop { background: transparent; }
.first-run-choice > div { max-width: 650px; padding: clamp(26px, 5vw, 48px); background: var(--paper); box-shadow: var(--shadow); }
.first-run-choice > div:first-child { padding-bottom: 20px; border-radius: 20px 20px 0 0; clip-path: inset(-60px -60px 0 -60px); }
.first-run-choice > .first-run-actions { margin-top: -1px; padding-top: 9px; border-radius: 0 0 20px 20px; clip-path: inset(0 -60px -60px -60px); }
.first-run-choice h2 { max-width: 540px; margin: 8px 0 12px; font: 500 clamp(32px, 5vw, 48px)/1.04 Georgia, serif; }
.first-run-choice p { max-width: 560px; margin: 0; color: var(--muted); line-height: 1.6; }
.first-run-actions { display: flex; flex-wrap: wrap; gap: 10px; }
/* Privacy promise: the first thing a tester reads is that her numbers never leave the device. */
.first-run-privacy { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; padding: 14px 16px; border: 1px solid #e7c3cc; border-left: 4px solid var(--rose); border-radius: 14px; background: #fbeef1; color: var(--rose-dark); }
.first-run-privacy svg { flex: 0 0 auto; margin-top: 2px; }
.first-run-privacy strong { display: block; color: var(--ink); font-size: 16px; }
.first-run-choice .first-run-privacy p { margin: 4px 0 0; color: var(--ink); font-size: 14px; line-height: 1.5; }
.first-run-privacy small { display: block; margin-top: 8px; color: var(--rose-dark); font-size: 13px; font-weight: 600; line-height: 1.45; }
.first-run-choice[hidden] { display: none; }
.hero {
  min-height: 335px; padding: clamp(32px, 5vw, 65px); display: grid; grid-template-columns: 1.15fr .85fr;
  align-items: center; overflow: hidden; border-radius: 28px; color: white;
  background: radial-gradient(circle at 85% 15%, #6c4052, transparent 32%), linear-gradient(130deg, #241e2c, #3a2938);
  box-shadow: var(--shadow);
}
.hero h2 { max-width: 720px; margin: 18px 0; font-family: Georgia, serif; font-size: clamp(38px, 5vw, 65px); font-weight: 400; line-height: .98; }
.hero p { max-width: 610px; margin: 0 0 26px; color: #d5cdd8; font-size: 17px; line-height: 1.6; }
.pill { padding: 8px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 99px; color: #eadde2; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.hero-art { position: relative; min-height: 250px; display: grid; place-items: center; }
.orbit { position: absolute; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; }
.orbit-one { width: 255px; height: 255px; }
.orbit-two { width: 165px; height: 165px; }
.hero-number {
  width: 130px; height: 130px; display: grid; place-items: center; border-radius: 50%;
  color: var(--ink); background: linear-gradient(145deg, #f6e2e6, #cfa2ad); box-shadow: 0 0 80px rgba(230,172,186,.22);
}
.hero-number span { font-size: 9px; letter-spacing: .16em; }
.hero-number strong { font-size: 28px; }

.metric-grid { margin: 23px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.metric-card, .panel, .plan-layout, .calculator-layout, .business-plan-document {
  border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: 0 10px 30px rgba(52,40,58,.045);
}
.metric-card { min-height: 135px; padding: 21px; }
.metric-card span, .metric-card small { display: block; color: var(--muted); }
.metric-card span { font-size: 12px; }
.metric-card strong { display: block; margin: 12px 0 7px; font-family: Georgia, serif; font-size: 29px; font-weight: 500; }
.metric-card small { font-size: 10px; }
.metric-card.accent { border-color: #d4a4af; background: #f7e5e9; }
.split-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.panel { padding: 27px; }
.panel h3 { margin: 5px 0; font-family: Georgia, serif; font-size: 26px; font-weight: 500; }
.route-list { padding: 0; margin: 25px 0 0; display: grid; gap: 19px; list-style: none; }
.route-list li { display: flex; gap: 15px; }
.route-list li > span { flex: 0 0 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; color: var(--rose-dark); background: var(--blush); font-size: 12px; font-weight: 800; }
.route-list strong { font-size: 14px; }
.route-list p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.dark-panel { color: white; background: var(--ink); }
.dark-panel .eyebrow { color: #e5aebb; }
.health-checks { margin: 22px 0; display: grid; gap: 12px; }
.health-empty { margin: 0; padding: 11px; border-radius: 10px; background: rgba(255,255,255,.08); color: #c8c0cb; font-size: 12px; line-height: 1.5; }
.health-check { display: flex; align-items: flex-start; gap: 10px; padding: 11px; border-radius: 10px; background: rgba(255,255,255,.08); }
.health-check > span { flex: 0 0 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 900; }
.health-check.pass > span { color: #173d2b; background: #9fe1bd; }
.health-check.warn > span { color: #642431; background: #ffb6c0; }
.health-check.neutral > span { color: #5d5862; background: #d5d0d7; }
.health-check.example > span { color: #5d5862; background: #d5d0d7; }
.health-check.example { opacity: .88; }
.health-check strong, .health-check small { display: block; }
.health-check strong { font-size: 12px; }
.health-check small { margin-top: 3px; color: #c8c0cb; font-size: 11px; line-height: 1.45; }

.section-intro { margin-bottom: 24px; }
.section-intro h2, .summary-toolbar h2 { margin: 6px 0; font-family: Georgia, serif; font-size: clamp(34px, 4vw, 50px); font-weight: 500; }
.section-intro p, .summary-toolbar p { margin: 0; color: var(--muted); }
.foundation-numbers-summary { display: grid; gap: 13px; max-width: 950px; margin-top: 18px; padding: 16px 18px; border: 1px solid #dfd7cd; border-radius: 13px; background: #fffaf7; }
.foundation-numbers-summary[hidden] { display: none; }
.foundation-numbers-summary > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.foundation-numbers-summary strong { display: block; font-size: 13px; }
.foundation-numbers-summary p { margin-top: 3px; font-size: 12px; line-height: 1.45; }
.foundation-numbers-summary dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin: 0; }
.foundation-numbers-summary dl > div { min-width: 0; }
.foundation-numbers-summary dt { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.foundation-numbers-summary dd { margin: 3px 0 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 700; }
.plan-layout { overflow: hidden; }
.numbers-plan-layout { padding: clamp(22px, 4vw, 44px); }
.numbers-intro { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.numbers-intro strong { color: var(--ink); }
.numbers-question { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.numbers-question-count { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--rose-dark); background: var(--blush); font-size: 12px; font-weight: 800; }
.numbers-question label { margin: 0; font-size: 15px; }
.numbers-question p, .numbers-section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.numbers-control { position: relative; max-width: 330px; margin-top: 10px; }
.numbers-control input, .numbers-question select { margin-top: 0; }
.numbers-control span { position: absolute; top: 14px; right: 14px; color: var(--muted); font-size: 12px; font-weight: 750; pointer-events: none; }
.numbers-control input { padding-right: 72px; }
.numbers-screen { padding: clamp(20px, 4vw, 34px); border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg, #fffefc, #fff7f2); box-shadow: 0 10px 26px rgba(48, 35, 49, .05); }
.numbers-screen-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.numbers-screen-heading > div { min-width: 0; flex: 1; }
.numbers-screen .numbers-payoff { margin: 18px 0 0; }
.numbers-payoff:empty { display: none; }
.mix-service-guide, .service-return-actions { margin: 20px 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.mix-service-guide p, .service-return-actions p { color: var(--muted); line-height: 1.5; }
.mix-service-card { position: relative; min-width: 0; }
.mix-simple-actions, .mix-simple-caption { display: flex; align-items: center; gap: 10px; margin: 18px 0; }
.mix-simple-caption { color: var(--muted); font-size: 13px; }
.mix-simple-actions .hint-button, .mix-simple-caption .hint-button { flex-shrink: 0; min-width: 44px; min-height: 44px; }
.mix-quick-picks { margin-top: 20px; color: var(--muted); font-size: 13px; }
.mix-quick-picks summary { cursor: pointer; min-height: 44px; padding: 12px 0; }
.mix-edit-costs { position: absolute; right: 12px; bottom: 10px; min-height: 32px; padding: 5px 9px; border: 1px solid #d8d1ca; border-radius: 8px; color: var(--ink); background: #fff; font-size: 11px; font-weight: 800; }
.mix-edit-costs:hover { border-color: var(--rose); color: var(--rose-dark); }
.mix-service-card b, .mix-input-row b { overflow-wrap: anywhere; }
.service-return-actions .button { min-height: 48px; margin: 4px 4px 4px 0; white-space: normal; }
.numbers-screen h3 { margin: 0; font: 500 clamp(29px, 4vw, 41px)/1.08 Georgia, serif; }
.numbers-screen h3 + p, .numbers-screen-heading p { margin: 8px 0 0; color: var(--muted); line-height: 1.5; }
.numbers-screen-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.numbers-screen-actions .button { min-height: 48px; }
.numbers-screen-actions .button:last-child { margin-left: auto; }
.mix-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.mix-picker-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.mix-picker { position: relative; min-height: 98px; width: 100%; padding: 13px 40px 48px 13px; border: 1px solid #e4d8d0; border-radius: 12px; color: var(--ink); text-align: left; background: rgba(255,255,255,.76); cursor: pointer; }
.mix-picker:hover, .mix-picker.selected { border-color: var(--rose); background: #fff3f5; }
.mix-picker b, .mix-picker small { display: block; }
.mix-picker b { font-size: 13px; }
.mix-picker small { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.mix-picker > span { position: absolute; top: 13px; right: 13px; width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; color: var(--rose-dark); background: var(--blush); font-weight: 800; }
.mix-picker.selected > span { color: white; background: var(--rose); }
.mix-credit, .vat-insight, .mix-split-explainer { margin: 16px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.mix-credit a { color: var(--rose-dark); font-weight: 800; }
.mix-fields { display: grid; gap: 10px; margin-top: 18px; }
.mix-input-row, .mix-slider-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px 14px; align-items: center; padding: 12px; border: 1px solid #eaded7; border-radius: 11px; background: rgba(255,255,255,.72); }
.mix-input-row span:first-child, .mix-slider-row span:first-child { min-width: 0; }
.mix-input-row b, .mix-input-row small, .mix-slider-row b, .mix-slider-row small { display: block; }
.mix-input-row b, .mix-slider-row b { font-size: 13px; }
.mix-input-row small, .mix-slider-row small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.mix-input-row .numbers-control { width: 170px; max-width: 100%; margin: 0; }
.mix-input-row .numbers-control input { width: 100%; min-width: 0; padding-right: 36px; }
.mix-input-row .numbers-control span { right: 12px; }
.mix-slider-row output { color: var(--rose-dark); font-size: 13px; font-weight: 800; }
.mix-slider-row input { grid-column: 1 / -1; width: 100%; margin: 0; padding: 0; accent-color: var(--rose); }
.mix-split-bar { display: flex; height: 20px; overflow: hidden; margin: 18px 0 0; border-radius: 99px; background: #eee5e0; }
.mix-split-bar[hidden], .mix-split-legend[hidden], .mix-split-explainer[hidden] { display: none; }
.mix-split-bar i { min-width: 0; background: #bd4965; }.mix-split-bar .mix-colour-1 { background: #c3924f; }.mix-split-bar .mix-colour-2 { background: #663b74; }.mix-split-bar .mix-colour-3 { background: #4a7a73; }.mix-split-bar .mix-colour-4 { background: #d57555; }.mix-split-bar .mix-colour-5 { background: #8d5a66; }
.mix-split-legend { display: flex; flex-wrap: wrap; gap: 7px 13px; margin: 10px 0 0; padding: 0; color: var(--muted); font-size: 11px; line-height: 1.4; list-style: none; }
.mix-split-legend li { display: inline-flex; align-items: center; gap: 5px; }
.mix-split-legend i { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: #bd4965; }
.mix-split-legend .mix-colour-1 { background: #c3924f; }.mix-split-legend .mix-colour-2 { background: #663b74; }.mix-split-legend .mix-colour-3 { background: #4a7a73; }.mix-split-legend .mix-colour-4 { background: #d57555; }.mix-split-legend .mix-colour-5 { background: #8d5a66; }
.mix-split-legend strong { color: var(--ink); font-size: inherit; }
.numbers-empty { margin: 18px 0 0; color: var(--muted); }
.vat-toggle { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--ink); font-size: 13px; font-weight: 800; }
.vat-toggle input { width: 18px; min-height: 18px; margin: 0; }
.numbers-target-rate { display: block; margin-top: 20px; padding: 16px; border: 1px solid #eaded7; border-radius: 12px; background: rgba(255,255,255,.76); }
.numbers-target-rate > span { display: block; color: var(--ink); font: 500 23px/1.15 Georgia, serif; }
.numbers-target-rate em { color: var(--rose-dark); }
.numbers-target-rate small { display: block; margin-top: 7px; color: var(--muted); line-height: 1.45; }
.hourly-current { margin: 0; color: var(--rose-dark); font: 500 clamp(27px, 4vw, 38px)/1.1 Georgia, serif; }
.hourly-options { margin-top: 16px; padding: 14px; border-left: 4px solid var(--gold); border-radius: 0 10px 10px 0; background: #fff9ec; color: #66583f; font-size: 12px; line-height: 1.5; }
.hourly-options ul { margin: 8px 0 0; padding-left: 18px; }
.hourly-ranking { display: grid; gap: 8px; margin-top: 10px; }
.hourly-ranking div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 12px; border-radius: 9px; background: #f8efeb; font-size: 12px; }
.hourly-ranking b { color: var(--rose-dark); }
.removal-note { padding: 12px; border-radius: 10px; background: #f0f3ed; color: #526454; font-size: 12px; line-height: 1.5; }
.numbers-follow-up { margin-top: 26px; }
.numbers-follow-up-field { margin-top: 16px; }
.numbers-follow-up-field > label { display: block; color: var(--ink); font-size: 14px; font-weight: 800; }
.numbers-follow-up-field > p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.numbers-reveal, .numbers-payoff, .numbers-full-picture { margin: -4px 0 14px 48px; }
.numbers-reveal { color: #5f5864; font-size: 13px; line-height: 1.5; }
.numbers-payoff { padding: 15px 17px; border-left: 4px solid var(--rose); border-radius: 0 10px 10px 0; background: #fbf1f3; }
.numbers-payoff strong { display: block; color: var(--rose-dark); font-family: Georgia, serif; font-size: 22px; font-weight: 500; line-height: 1.15; }
.numbers-payoff span { display: block; margin-top: 6px; color: #6b5f65; font-size: 12px; }
.numbers-full-picture { padding: 17px; border-radius: 12px; color: white; background: var(--ink); }
.numbers-full-picture strong { font-family: Georgia, serif; font-size: 21px; font-weight: 500; }
.numbers-full-picture div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 13px; }
.numbers-full-picture span { color: #d7cfd9; font-size: 11px; }
.numbers-full-picture b { display: block; margin-top: 4px; color: white; font-size: 16px; }
.numbers-section-heading { margin: 28px 0 4px; padding-top: 19px; border-top: 1px solid var(--line); }
.numbers-section-heading span { color: var(--rose-dark); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.numbers-extras { display: grid; gap: 12px; margin-top: 26px; padding-top: 19px; border-top: 1px solid var(--line); }
.numbers-extras[hidden] { display: none; }
.numbers-action-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.numbers-action-row .button { min-height: 48px; }
.report-secondary-action, .report-tertiary-action { color: var(--rose-dark); border-color: var(--rose); background: #fffdf9; }
.report-secondary-action:hover, .report-tertiary-action:hover { color: white; background: var(--rose-dark); border-color: var(--rose-dark); }
.report-tertiary-action { color: #6e5359; border-color: #d6a7b2; background: #fffaf8; }
.report-secondary-action span, .report-tertiary-action span { margin-left: 6px; padding: 3px 6px; border-radius: 99px; color: #775d62; background: #f5e8eb; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.report-secondary-action:hover span, .report-tertiary-action:hover span { color: var(--rose-dark); background: #fff2f5; }
.numbers-next-steps { max-width: 620px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.legacy-plan-layout { margin-top: 18px; }
.numbers-report { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; margin-top: 22px; }
.report-empty-state { grid-column: 1 / -1; max-width: 620px; padding: clamp(26px, 5vw, 48px); border: 1px solid var(--line); border-radius: 16px; background: #fffdf9; box-shadow: var(--shadow); }
.report-empty-state h3 { margin: 8px 0 10px; font: 500 clamp(29px, 4vw, 42px)/1.08 Georgia, serif; }
.report-empty-state p { max-width: 500px; margin: 0 0 20px; color: var(--muted); line-height: 1.55; }
.report-card { position: relative; overflow: hidden; break-inside: avoid; padding: 20px; border: 1px solid #e4d8d0; border-radius: 16px; background: linear-gradient(145deg, #fffefc 0%, #fff8f3 100%); box-shadow: 0 12px 30px rgba(48, 35, 49, .06); }
.report-card::before { position: absolute; top: 0; right: 8%; left: 8%; height: 3px; border-radius: 0 0 99px 99px; background: linear-gradient(90deg, transparent, rgba(189, 73, 101, .75), transparent); content: ""; }
.report-card header { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 18px; }
.report-card header span { color: var(--rose-dark); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.report-card header p { margin: 0; color: var(--muted); font-size: 12px; text-align: right; }
.report-hero { grid-column: 1 / -1; color: white; border-color: var(--ink); background: radial-gradient(circle at 84% 5%, rgba(195, 146, 79, .34), transparent 28%), linear-gradient(125deg, #211c2b, #392235); }
.report-hero header span { color: #f3bcc8; }
.report-hero header p, .report-hero small { color: #d7cfd9; }
.report-hero-note { margin: 0 0 8px; color: #f3e6e9; line-height: 1.5; }
.report-hero-note b { color: #f0c36f; }
.report-hero-number { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.report-hero-number span, .report-cash span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.report-hero-number strong { display: block; margin-top: 5px; font: 500 clamp(26px, 3vw, 42px) Georgia, serif; }
.report-hero-number .keep strong { color: #f0c36f; }
.report-proportion { height: 11px; overflow: hidden; margin: 19px 0 10px; border-radius: 99px; background: #4e3b4a; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .28); }
.report-proportion span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #de7189, var(--rose)); box-shadow: inset 0 1px rgba(255, 255, 255, .3); }
.report-break-even > strong { display: block; font: 500 38px Georgia, serif; color: var(--ink); }
.report-break-even p, .report-price-change p, .report-card > p { color: var(--muted); line-height: 1.5; }
.nail-marks { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin: 16px 0 10px; }
.nail-marks i { height: 18px; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, #e6b961, #c3924f); box-shadow: inset 0 1px rgba(255,255,255,.45), 0 2px 3px rgba(98, 61, 25, .16); }
.nail-marks i.rose { background: linear-gradient(180deg, #df7188, #bd4965); }
.nail-marks i.gold { background: linear-gradient(180deg, #edca7a, #c3924f); }
.report-card small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.report-money-bar { display: flex; min-height: 76px; overflow: hidden; border-radius: 10px; box-shadow: inset 0 1px rgba(255,255,255,.45); }
.report-money-segment { flex: 0 0 auto; min-width: 0; }
.report-money-segment.product { background: linear-gradient(180deg, #df7188, #bd4965); }.report-money-segment.pay { background: linear-gradient(180deg, #e790a3, #ce5b76); }.report-money-segment.overhead { background: linear-gradient(180deg, #c75c76, #97314c); }.report-money-segment.profit { background: linear-gradient(180deg, #e6b961, #c3924f); }
.report-money-segment.vat { background: linear-gradient(180deg, #b9adb8, #8c7f8b); }
.report-legend { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-top: 10px; color: var(--muted); font-size: 11px; }
.report-service-cost { display: grid; grid-template-columns: minmax(90px, 1fr) 2fr auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 12px; }
.report-service-cost:first-of-type { border-top: 0; }
.report-service-cost div { height: 9px; overflow: hidden; border-radius: 99px; background: #eee9e4; }
.report-service-cost b { display: block; height: 100%; border-radius: inherit; background: var(--rose); }
.report-price-change > strong { display: block; font: 500 clamp(30px, 4vw, 42px) Georgia, serif; color: var(--rose-dark); }
.report-slider { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 14px; align-items: center; margin-top: 17px; padding: 12px; border: 1px solid #eaded7; border-radius: 11px; background: rgba(255,255,255,.7); }
.report-slider label { color: var(--ink); font-size: 12px; font-weight: 800; }
.report-slider output { color: var(--rose-dark); font-size: 13px; font-weight: 800; }
.report-slider input { grid-column: 1 / -1; width: 100%; margin: 0; padding: 0; accent-color: var(--rose); }
.report-slider small { grid-column: 1 / -1; }
.report-price-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 14px; }
.report-price-details div { padding: 10px; border-radius: 9px; background: #f8efeb; }
.report-price-details span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }
.report-price-details b { display: block; margin-top: 4px; color: var(--ink); font-size: 15px; }
.report-growth-result { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 8px; }
.report-growth-result strong { display: block; overflow-wrap: anywhere; color: var(--gold); font: 500 clamp(28px, 3.5vw, 48px)/1.08 Georgia, serif; }
.report-growth-result span { color: var(--muted); font-size: 11px; }
.report-growth-result p { margin: 0; line-height: 1.5; }
.report-growth-controls { display: grid; gap: 8px; }
.report-growth-controls .report-slider { margin-top: 0; padding: 9px 11px; }
.report-growth-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 100px), 1fr)); gap: 6px; margin-top: 15px; }
.report-growth-step { min-width: 0; padding: 9px 7px; border-radius: 8px; color: white; background: linear-gradient(135deg, #bd4965, #913149); }
.report-growth-step:nth-child(even) { background: linear-gradient(135deg, #d46a82, #ac3d58); }
.report-growth-step b { display: block; overflow-wrap: anywhere; font-size: 10px; }
.report-growth-step i { display: block; height: 4px; overflow: hidden; margin-top: 7px; border-radius: 99px; background: rgba(255,255,255,.27); }
.report-growth-step em { display: block; height: 100%; border-radius: inherit; background: #f2cd82; }
.report-growth-step small { display: block; margin-top: 5px; color: #ffe3a5; font-size: 11px; font-weight: 800; }
.report-cross-check { margin: 13px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.report-cash { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 135px), 1fr)); gap: 10px; }
.report-cash div { min-width: 0; padding: 12px; border-radius: 9px; background: #f4f0ec; overflow-wrap: anywhere; }
.report-cash b { display: block; margin-top: 7px; font-size: 16px; }.report-cash b.negative { color: var(--rose-dark); }
.report-checks { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.report-checks li { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); line-height: 1.42; }.report-checks li.pass { color: #396449; }
.report-checks b { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: #7b3d4a; background: #f4d5db; }.report-checks .pass b { color: #31573f; background: #dce7e0; }
.report-empty { margin: 0; color: var(--muted); }
.step-tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.step-tabs button {
  flex: 1 0 auto; padding: 17px; border: 0; border-bottom: 3px solid transparent;
  color: var(--muted); background: #faf7f2; font-size: 12px; font-weight: 750;
}
.step-tabs button.active { color: var(--rose-dark); border-color: var(--rose); background: white; }
.step-tabs .optional-step-tab {
  flex-grow: .8; color: #526454; border-left: 1px solid #d8e0d4;
  background: #eef2eb;
}
.step-tabs .optional-step-tab:hover { background: #e4ebdf; }
.step-tabs .optional-step-tab.active { color: #405243; border-color: #849a7d; background: #f8fbf6; }
.optional-step-tab span { margin-left: 5px; padding: 3px 6px; border-radius: 99px; color: #526454; background: #dbe6d7; font-size: 8px; letter-spacing: .05em; text-transform: uppercase; }
.optional-step-tab.active span { color: #405243; background: #cfe0c9; }
#plan-form { padding: clamp(25px, 4vw, 48px); }
.plan-step { display: none; min-width: 0; max-width: 950px; margin: 0 auto; padding: 0; border: 0; }
.plan-step.active { display: block; }
legend { padding: 0; font-family: Georgia, serif; font-size: 32px; }
.legend-copy { margin: 7px 0 27px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 17px; }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
label { display: block; margin-bottom: 18px; color: #4e4855; font-size: 12px; font-weight: 700; }
input, select, textarea {
  width: 100%; margin-top: 7px; padding: 13px 14px; border: 1px solid #d8d1ca; border-radius: 10px;
  color: var(--ink); background: white; outline: none; font-weight: 500;
}
textarea { min-height: 105px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(189,73,101,.11); }
.field-with-hint { margin-bottom: 18px; }
.field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.field-label-row label { margin: 0; }
.field-with-hint input, .field-with-hint select, .field-with-hint textarea { margin-top: 7px; }
.hint-button {
  flex: 0 0 44px; width: 44px; min-height: 44px; padding: 0; display: inline-grid; place-items: center;
  border: 1px solid #d5a6b1; border-radius: 50%; color: var(--rose-dark); background: #fff8f8; font-size: 12px; font-weight: 800;
}
.hint-button[aria-expanded="true"] { color: white; border-color: var(--rose); background: var(--rose); }
.hint-panel { margin-top: 8px; padding: 9px 10px; border-left: 3px solid #d5a6b1; border-radius: 0 8px 8px 0; color: #5f5864; background: #fbf1f3; font-size: 12px; font-weight: 500; line-height: 1.45; }
.hint-panel.always-visible { display: block; }
.field-with-helper { margin-bottom: 18px; }
.field-with-helper label { margin-bottom: 5px; }
.plan-number-note { display: block; margin: 3px 0 5px; color: var(--muted); font-size: 11px; font-weight: 500; line-height: 1.4; }
.calc-link {
  min-height: 24px; padding: 2px 0; border: 0; color: var(--rose-dark); background: transparent;
  font-size: 11px; font-weight: 750; line-height: 1.35; text-align: left;
}
.calc-link:hover { color: var(--rose); text-decoration: underline; }
.plan-tip { margin: -8px 0 21px; }
.step-actions { padding: 18px 28px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); background: #faf7f2; }
.plan-amount-error { display: block; margin-top: 6px; color: var(--negative); }
#plan-form input[aria-invalid="true"] { border-color: var(--negative); outline: 2px solid var(--negative); }
#save-status { color: var(--positive); font-size: 11px; }

.calculator-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 610px; overflow: hidden; }
.calculator-tabs { padding: 13px; display: grid; align-content: start; gap: 5px; border-right: 1px solid var(--line); background: #faf7f2; }
.calculator-tabs button {
  padding: 12px; border: 0; border-radius: 9px; color: var(--muted); background: transparent;
  font-size: 12px; font-weight: 700; text-align: left;
}
.calculator-tabs button:hover, .calculator-tabs button.active { color: var(--rose-dark); background: var(--blush); }
#calculator-workspace { padding: clamp(24px, 4vw, 45px); }
.calculator-return { display: inline-flex; align-items: center; margin: 0 0 17px; }
.calc-header h3 { margin: 5px 0; font-family: Georgia, serif; font-size: 31px; font-weight: 500; }
.calc-header p { max-width: 700px; margin: 0 0 28px; color: var(--muted); line-height: 1.6; }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 30px; }
.calc-grid > * { min-width: 0; }
.input-card { padding: 21px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.input-card h4 { margin: 0 0 17px; }
.calculator-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.calculator-fields > * { min-width: 0; }
.calculator-fields select { min-width: 0; max-width: 100%; }
.calculator-fields > .cost-guide, .calculator-fields > .advanced-fields { grid-column: 1 / -1; }
.calculator-fields > .pricing-product-summary, .calculator-fields > .pricing-disclosure, .calculator-fields > .field-note, .calculator-fields > .saved-answer { grid-column: 1 / -1; }
.guided-pricing .calculator-fields > .pricing-source { grid-column: 1 / -1; }
.calculator-fields label, .calculator-fields .field-with-hint { margin: 0; }
.guided-pricing .calculator-fields { gap: 16px; }
.pricing-product-summary, .saved-answer { display: grid; gap: 5px; padding: 14px; border: 1px solid #e8d5da; border-radius: 11px; background: #fff7f8; }
.pricing-product-summary span { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.pricing-product-summary strong { color: var(--rose-dark); font-size: 24px; }
.pricing-product-summary small, .saved-answer small, .field-note { color: var(--muted); line-height: 1.5; }
.pricing-product-summary .button { justify-self: start; margin-top: 3px; }
.field-note { margin: -8px 0 0; font-size: 13px; }
.saved-answer .check-line { margin-top: 5px; }
.pricing-disclosure { margin-top: 0; }
.advanced-fields, .simple-help { margin-top: 18px; border: 1px solid var(--line); border-radius: 10px; background: #fdfaf6; }
.advanced-fields summary, .simple-help summary { min-height: 48px; padding: 14px; cursor: pointer; color: var(--rose-dark); font-weight: 800; }
.advanced-fields[open] summary, .simple-help[open] summary { border-bottom: 1px solid var(--line); }
.advanced-fields > p, .simple-help > p { margin: 0; padding: 14px; color: var(--muted); line-height: 1.5; }
.advanced-fields > label, .advanced-fields > .field-with-hint { display: block; margin: 0; padding: 0 14px 14px; }
.advanced-fields > p + label, .advanced-fields > p + .field-with-hint { padding-top: 0; }
.advanced-fields:not([open]) > :not(summary), .simple-help:not([open]) > :not(summary) { display: none; }
.growth-sliders { display: grid; gap: 16px; padding: 14px; }
.input-row { display: grid; grid-template-columns: 1fr 130px 44px; gap: 8px; margin-bottom: 8px; }
.input-row.expense-fixed-row { grid-template-columns: minmax(0, 1fr) 130px minmax(132px, auto) 44px; }
.input-row input { margin: 0; }
.expense-quick-add { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; padding: 16px; border-radius: 12px; background: var(--blush); }
.expense-quick-add label { flex: 1 1 150px; min-width: 0; margin: 0; }
.expense-quick-add label:first-child { flex-basis: 240px; }
.expense-quick-add .button { flex: 0 0 auto; min-height: 44px; }
.expense-quick-add select, .expense-quick-add input { margin: 7px 0 0; background: #fff; }
.expense-saved-list { margin-top: 24px; }
.expense-saved-list h4 { margin-bottom: 10px; }
.expense-saved-item { border-top: 1px solid var(--line); }
.expense-saved-item:last-child { border-bottom: 1px solid var(--line); }
.expense-saved-item > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 10px 4px; cursor: pointer; list-style: none; }
.expense-saved-item > summary::-webkit-details-marker { display: none; }
.expense-saved-item > summary span { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.expense-saved-item > summary span::before { content: "›"; color: var(--rose-dark); font-size: 20px; transform: rotate(0); transition: transform .15s; }
.expense-saved-item[open] > summary span::before { transform: rotate(90deg); }
.expense-saved-item > summary strong { overflow-wrap: anywhere; }
.expense-saved-item > summary > b { flex: 0 0 auto; color: var(--rose-dark); }
.expense-saved-item:not([open]) > .expense-compact-row { display: none; }
.expense-compact-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 10px; align-items: end; padding: 4px 4px 14px 28px; }
.expense-compact-row label { min-width: 0; margin: 0; }
.expense-compact-row label:first-child { grid-column: 1 / -1; }
.expense-compact-row label:nth-child(2) { grid-column: 1; }
.expense-compact-row select, .expense-compact-row input { margin: 7px 0 0; }
.expense-compact-row .remove-row { min-height: 44px; }
.owner-pay-badge { padding: 5px 8px; border-radius: 999px; color: var(--rose-dark); background: var(--blush); font-size: 11px; font-weight: 800; white-space: nowrap; }
.expense-empty { margin: 18px 0 0; }
#calculator-workspace label, #calculator-workspace .supply-name-field > span, #calculator-workspace .supply-cost-row label > span { font-size: 14px; }
#calculator-workspace .hint-panel, #calculator-workspace .cost-guide, #calculator-workspace small { font-size: 13px; line-height: 1.5; }
#calculator-workspace .result-card span { font-size: 13px; letter-spacing: .025em; }
#calculator-workspace .result-row-label span { font-size: 14px; text-transform: none; letter-spacing: 0; }
#calculator-workspace .result-row-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
#calculator-workspace .result-row strong { overflow-wrap: anywhere; }
#calculator-workspace .result-note, #calculator-workspace .result-action-copy { font-size: 14px; }
.update-actions [hidden] { display: none !important; }
@media (max-width: 540px) {
  .foundation-numbers-summary > div { display: grid; }
  .foundation-numbers-summary dl { grid-template-columns: 1fr; }
  #calculator-workspace .result-row-main { grid-template-columns: minmax(0, 1fr); }
  #calculator-workspace .result-row strong { text-align: left; font-size: 16px; }
  .calculator-fields { grid-template-columns: 1fr; }
  .expense-quick-add label, .expense-quick-add .button { flex-basis: 100%; width: 100%; }
  .expense-compact-row { padding-left: 4px; }
  .pricing-product-summary .button { width: 100%; }
}
.owner-pay-help { margin: 0 0 10px; color: var(--ink-soft); font-size: 13px; }
.owner-pay-toggle { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12px; font-weight: 700; white-space: nowrap; }
.owner-pay-toggle input { width: auto; accent-color: var(--rose); }
.remove-row { border: 0; border-radius: 8px; color: var(--negative); background: #fae9eb; }
.add-row { margin-top: 7px; border: 0; color: var(--rose-dark); background: transparent; font-size: 12px; font-weight: 750; }
.cost-guide { margin: 0 0 18px; padding: 11px 12px; border-left: 3px solid #d5a6b1; border-radius: 0 8px 8px 0; color: #5f5864; background: #fbf1f3; font-size: 12px; font-weight: 500; line-height: 1.5; }
.service-manager { display: grid; gap: 12px; margin-bottom: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fdfaf6; }
.service-selector { min-width: 0; }
.service-selector select { margin-top: 7px; }
.service-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.service-actions .button { white-space: nowrap; }
.service-remove { color: var(--negative); }
.cost-service-summary { display: grid; gap: 4px; margin: 14px 0; padding: 13px; border-radius: 10px; background: #fff7f8; }
.cost-service-summary span { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.cost-service-summary strong { font-size: 16px; }
.cost-service-summary small { color: var(--muted); }
.cost-editor { margin-top: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.cost-editor summary { min-height: 48px; padding: 14px; cursor: pointer; color: var(--rose-dark); font-weight: 800; }
.cost-editor[open] summary { border-bottom: 1px solid var(--line); }
.cost-editor-body { padding: 18px; }
.prep-kit { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0; padding: 12px; border: 1px solid #e8d5da; border-radius: 10px; background: #fff7f8; }
.prep-kit strong { display: block; font-size: 13px; }
.prep-kit p, .prep-kit-complete { margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.prep-kit-complete { padding: 9px 0; }
.template-note { margin: 12px 0; padding: 10px 12px; border-left: 3px solid var(--rose); color: var(--muted); background: #fff7f8; font-size: 12px; line-height: 1.4; }
.supply-field-labels { display: grid; grid-template-columns: 1fr 130px 44px; gap: 8px; margin: 0 0 5px; color: var(--muted); font-size: 10px; font-weight: 750; }
.supply-name-field { display: block; margin: 0 0 10px; }
.supply-name-field > span, .supply-cost-row label > span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 750; }
.supply-name-field input { margin: 0; }
.supply-name-field textarea { min-height: 86px; margin: 0; }
#calculator-workspace textarea { field-sizing: content; min-height: 100px; overflow-wrap: anywhere; }
@supports (field-sizing: content) {
  #calculator-workspace textarea { min-height: 52px; }
}
.retail-add-catalogue .input-row { grid-template-columns: minmax(0, 1fr); }
.retail-add-catalogue select { min-width: 0; }
.supply-name-field small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.supply-catalogue-picker { margin: -3px 0 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.supply-catalogue-picker summary { min-height: 38px; padding: 10px 12px; cursor: pointer; color: var(--rose-dark); font-size: 12px; font-weight: 800; }
.supply-catalogue-picker[open] summary { border-bottom: 1px solid var(--line); }
.supply-catalogue-options { display: grid; max-height: 220px; overflow-y: auto; padding: 6px; }
.supply-catalogue-choice { min-height: 38px; padding: 8px 10px; border: 0; border-radius: 7px; color: var(--ink); background: transparent; font-size: 12px; font-weight: 700; text-align: left; }
.supply-catalogue-choice:hover, .supply-catalogue-choice:focus-visible { color: var(--rose-dark); background: #fff1f4; }
.supply-cost-row { display: grid; grid-template-columns: minmax(0, 180px) 44px; gap: 8px; align-items: end; }
.supply-cost-row label { margin: 0; }
.supply-cost-row input { margin: 0; }
.calculator-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.calculator-list-heading h4 { margin: 0 0 17px; }
.calculator-list-heading .hint-button { margin: 0 0 17px; }
.startup-costs-helper { display: block; margin: -10px 0 12px; }
.optional-section-note { margin: -8px 0 22px; padding: 12px 14px; border-left: 3px solid #d5a6b1; border-radius: 0 8px 8px 0; color: #5f5864; background: #fbf1f3; font-size: 12px; line-height: 1.5; }
.result-card { align-self: start; padding: 26px; border-radius: 17px; color: white; background: var(--ink); }
.result-card span { color: #bdb4c0; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.result-card > strong { display: block; margin: 12px 0; font-family: Georgia, serif; font-size: 40px; font-weight: 500; overflow-wrap: anywhere; }
.result-list { margin-top: 20px; padding-top: 16px; display: grid; gap: 12px; border-top: 1px solid rgba(255,255,255,.13); }
.result-row { display: grid; gap: 7px; font-size: 12px; }
.result-row-main { display: flex; justify-content: space-between; align-items: start; gap: 15px; }
.result-row-label { display: flex; align-items: center; gap: 6px; }
.result-row-label .hint-button { width: 44px; min-height: 44px; flex-basis: 44px; color: #f0cbd4; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.08); }
.result-row-label .hint-button[aria-expanded="true"] { color: var(--ink); background: #f0cbd4; }
.result-row strong { text-align: right; }
.result-row .hint-panel { margin-top: 0; color: #5f5864; text-align: left; }
.result-note { margin: 0; color: #ddd5e0; font-size: 12px; line-height: 1.55; }
.result-actions { margin-top: 17px; display: grid; gap: 8px; }
.result-action { display: grid; gap: 6px; }
.result-action-control { display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: 8px; align-items: center; }
.result-action-control .button { width: 100%; }
.result-action-copy { margin: 0; color: #ddd5e0; font-size: 11px; line-height: 1.45; }
.result-action .hint-panel { margin: 0; color: #5f5864; text-align: left; }
.button.small { min-height: 34px; padding: 8px 10px; font-size: 11px; }
.status-positive { color: #9fe1bd !important; }
.status-negative { color: #ff9eaa !important; }
.status-neutral { color: #d8d2e0 !important; }
.metric-warning { color: var(--negative) !important; font-size: 21px !important; }
.range-line { display: grid; grid-template-columns: 1fr 58px; gap: 12px; align-items: center; }
input[type="range"] { padding: 0; accent-color: var(--rose); box-shadow: none; }
.check-line { display: flex; align-items: center; gap: 9px; padding: 11px 0; }
.check-line input { width: auto; margin: 0; accent-color: var(--rose); }
.startup-costs { margin-bottom: 9px; }
.startup-row { margin-bottom: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.startup-amount-row { display: flex; align-items: center; gap: 12px; }
.startup-amount-row label { flex: 1; min-width: 0; margin: 0; }
.startup-amount-row .remove-row { flex: 0 0 44px; margin-top: 22px; min-height: 44px; }
.report-next-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; padding: 20px; background: white; border: 1px solid var(--line); border-left: 4px solid var(--rose); border-radius: 14px; }
.report-next-actions p { max-width: 55ch; margin: 5px 0 0; color: var(--muted); }
.written-plan-report > h2 { margin-bottom: 6px; font-family: Georgia, serif; font-size: 30px; font-weight: 500; }
.written-plan-report > p { margin-top: 0; color: var(--muted); }

.summary-toolbar { margin-bottom: 24px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.business-plan-document { max-width: 1000px; margin: 0 auto; padding: clamp(30px, 6vw, 75px); }
.document-cover { padding-bottom: 35px; border-bottom: 2px solid var(--ink); }
.document-cover h2 { margin: 15px 0 7px; font-family: Georgia, serif; font-size: 50px; font-weight: 500; }
.document-cover p { color: var(--muted); }
.document-cover .cover-section-label { margin: 16px 0 -4px; color: var(--rose-dark); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.document-section { padding: 28px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.document-section h3 { margin: 0 0 18px; font-family: Georgia, serif; font-size: 27px; font-weight: 500; }
.document-section h4 { margin: 18px 0 5px; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
.document-section p { margin: 0; color: #4d4752; line-height: 1.65; white-space: pre-wrap; }
.financial-table { width: 100%; border-collapse: collapse; }
.financial-table td { padding: 10px 0; border-bottom: 1px solid #ece6df; }
.financial-table td:last-child { text-align: right; font-weight: 800; }
.financial-table th { padding: 9px 5px; color: var(--muted); border-bottom: 1px solid #ece6df; font-size: 10px; letter-spacing: .06em; text-align: right; text-transform: uppercase; }
.financial-table th:first-child { text-align: left; }
.table-subhead td { padding-top: 16px; color: var(--rose-dark); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.table-total td { font-weight: 800; }
.empty-table { color: #9b929d; font-style: italic; }
.table-note { margin-bottom: 10px !important; color: var(--muted) !important; font-size: 12px; }
.projection-table { font-size: 11px; }
.projection-table td { text-align: right; }
.projection-table td:first-child { text-align: left; }
.document-positive { color: var(--positive); }
.document-negative { color: var(--negative); }
.document-neutral { color: var(--ink-soft); }
.funding-line { display: inline-block; margin-top: 14px; padding: 8px 10px; border-radius: 8px; color: var(--rose-dark); background: var(--blush); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.example-document-line { display: inline-block; margin-top: 14px; padding: 8px 10px; border-radius: 8px; color: #5f5864; background: #eee8e3; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.empty-copy { color: #9b929d !important; font-style: italic; }

#toast {
  position: fixed; right: 25px; bottom: 25px; z-index: 100; padding: 13px 17px;
  border-radius: 10px; color: white; background: var(--ink); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: .2s;
}
#toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1500px) {
  .service-manager { display: block; }
  .service-actions { margin-top: 10px; }
}
@media (max-width: 1350px) {
  .calc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1050px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; }
  .hero-art { display: none; }
}
@media (max-width: 800px) {
  .app-shell { display: block; }
  /* Hidden when closed so its links are not invisible Tab stops. */
  .sidebar { position: fixed; left: -285px; z-index: 50; width: 270px; visibility: hidden; transition: left .2s, visibility 0s .2s; }
  .sidebar.open { left: 0; visibility: visible; box-shadow: 20px 0 50px rgba(0,0,0,.25); transition: left .2s; }
  .icon-button { display: block; }
  .view { padding: 22px 16px; }
  .split-grid, .calc-grid { grid-template-columns: 1fr; }
  .calculator-layout { grid-template-columns: 1fr; }
  .calculator-tabs { display: flex; overflow-x: auto; padding-inline: 13px; scroll-padding-inline: 13px; border-right: 0; border-bottom: 1px solid var(--line); }
  .calculator-tabs button { flex: 0 0 auto; }
  .form-grid, .form-grid.three { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 540px) {
  .topbar { padding: 13px 15px; align-items: flex-start; flex-wrap: wrap; }
  .topbar h1 { font-size: 21px; }
  .topbar > div:first-of-type { flex: 1; min-width: 0; }
  .mobile-tools-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; min-height: 42px; padding-inline: 12px; font-size: 12px; white-space: nowrap; }
  .top-actions { display: none; width: 100%; margin-left: 0; grid-template-columns: 1fr; }
  .top-actions.mobile-open { display: grid; }
  .top-actions .button { min-width: 0; font-size: 13px; }
  .example-mode-banner { margin: 12px 16px -6px; align-items: stretch; flex-direction: column; }
  .example-mode-banner .button { width: 100%; }
  .hero { min-height: auto; padding: 30px 23px; border-radius: 20px; }
  .hero h2 { font-size: 39px; }
  .metric-grid { grid-template-columns: 1fr; }
  .summary-toolbar { align-items: start; flex-direction: column; }
  .hero-actions, .hero-actions .button, .report-next-actions .numbers-action-row { width: 100%; }
  .step-tabs button { flex: 1 1 45%; min-height: 48px; padding: 12px 8px; }
  .step-actions { padding: 16px; gap: 10px; flex-wrap: wrap; }
  .step-actions #save-status { order: 3; width: 100%; text-align: center; }
  #plan-form { padding: 22px; }
  .numbers-plan-layout { padding: 22px; }
  .numbers-intro { display: block; }
  .numbers-intro span { display: block; margin-top: 5px; }
  .numbers-question { grid-template-columns: 28px minmax(0, 1fr); gap: 10px; }
  .numbers-screen { padding: 19px; }
  .numbers-screen-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numbers-screen-actions .button:last-child { margin-left: 0; }
  .mix-picker-grid { grid-template-columns: 1fr; }
  .mix-input-row { grid-template-columns: 1fr; }
  .mix-input-row .numbers-control { width: 100%; }
  .hourly-ranking div { align-items: flex-start; flex-direction: column; gap: 4px; }
  .numbers-reveal, .numbers-payoff, .numbers-full-picture { margin-left: 38px; }
  .numbers-full-picture div { grid-template-columns: 1fr; }
  .numbers-action-row { display: grid; grid-template-columns: 1fr; }
  .numbers-action-row .button { width: 100%; }
  .numbers-report { grid-template-columns: 1fr; }
  .report-hero-number, .report-cash { grid-template-columns: 1fr; }
  .report-card header { display: block; }
  .report-card header p { margin-top: 5px; text-align: left; }
  .report-growth-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .input-row { grid-template-columns: minmax(0, 1fr) minmax(76px, 30%) 38px; align-items: stretch; }
  .input-row.expense-fixed-row { grid-template-columns: minmax(0, 1fr) minmax(76px, 30%) 38px; }
  .owner-pay-toggle { grid-column: 1 / -1; white-space: normal; }
  .supply-field-labels { grid-template-columns: minmax(0, 1fr) minmax(76px, 30%) 38px; }
  .supply-cost-row { grid-template-columns: minmax(0, 1fr) 44px; }
  .remove-row { min-height: 48px; display: grid; place-items: center; }
  .supply-row { margin-bottom: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: #fdfaf6; }
  .supply-row .input-row { margin-bottom: 10px; }
  .supply-row .field-with-hint { margin-bottom: 0; }
  .service-manager { display: block; }
  .service-actions { margin-top: 10px; }
  .service-actions .button { flex: 1; }
  .prep-kit { align-items: stretch; flex-direction: column; }
  .prep-kit .button { width: 100%; }
  .result-actions .button { width: 100%; min-height: 42px; }
  .financial-table { table-layout: fixed; }
  .financial-table td, .financial-table th { overflow-wrap: anywhere; }
  .projection-table { font-size: 9px; }
  .projection-table td, .projection-table th { padding: 7px 2px; }
}

.retail-product-list { display: grid; gap: 7px; margin: 16px 0; }
.retail-product-item { display: flex; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; text-align: left; }
.retail-product-item.active { border-color: var(--rose); background: var(--blush); }
.retail-product-item b { white-space: nowrap; }
.retail-add-catalogue, .retail-editor { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.retail-add-catalogue label, .retail-editor label { font-weight: 700; }
.retail-add-catalogue small, .retail-note { display: block; margin-top: 7px; color: var(--muted); line-height: 1.45; }
.retail-selected-product { display: grid; gap: 4px; margin-bottom: 16px; padding: 12px; border-radius: 10px; background: var(--blush); }
.retail-selected-product span { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.retail-selected-product strong { font-size: 16px; overflow-wrap: anywhere; }
.forecast-intro, .forecast-header { max-width: 1120px; padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: var(--shadow); }
.forecast-intro h2, .forecast-header h2 { margin: 8px 0 10px; font: 500 clamp(30px, 4vw, 47px)/1.05 Georgia, serif; }
.forecast-intro p, .forecast-header p { max-width: 760px; color: var(--muted); line-height: 1.55; }
.forecast-intro ul { margin: 20px 0; color: var(--muted); line-height: 1.7; }
.forecast-opening { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.forecast-opening label { display: grid; gap: 6px; font-weight: 700; }
.forecast-opening input { width: 180px; }
#forecast-workspace input[aria-invalid="true"] { border-color: var(--negative); outline: 2px solid var(--negative); }
[data-forecast-input-error], [data-forecast-validation] { color: var(--negative); }
.forecast-setup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 22px 0; }
.forecast-setup-grid section { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fdfaf6; }
.forecast-setup-grid h3, .forecast-stage h3 { margin-top: 0; }
.forecast-choice { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); line-height: 1.45; }
.forecast-choice b { display: block; margin-left: 24px; color: var(--rose-dark); }
.forecast-start-month { display: grid; width: min(280px, 100%); gap: 6px; font-weight: 700; }
.forecast-start-month input { min-height: 44px; }
.forecast-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.forecast-actions .button, .forecast-opening .button { min-height: 44px; }
.forecast-stage-tabs, .forecast-month-picker-row { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 2px; scrollbar-width: thin; }
.forecast-stage-tabs button, .forecast-month-picker { flex: 0 0 auto; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); font: inherit; }
.forecast-stage-tabs button.active, .forecast-month-picker.active { border-color: var(--rose); background: var(--blush); color: var(--rose-dark); font-weight: 700; }
.forecast-stage-tabs { flex-wrap: wrap; overflow-x: visible; }
.forecast-table-hint { color: var(--muted); font-size: 13px; }
.forecast-stage { max-width: 1120px; margin-top: 18px; padding: clamp(18px, 3vw, 30px); border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.forecast-line { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr)); min-width: 0; gap: 12px; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.forecast-line legend { max-width: 100%; padding: 0 4px; overflow-wrap: anywhere; font-family: inherit; font-size: 15px; line-height: 1.4; font-weight: 700; }
.forecast-line label { margin: 0; }
.forecast-confirm { padding: 14px; border-radius: 10px; background: #f6f2ec; }
.forecast-confirm small { display: block; margin-top: 12px; color: var(--muted); }
.forecast-review-table, .forecast-print-scroll { overflow-x: auto; }
.forecast-review-table table { width: 100%; min-width: 680px; border-collapse: collapse; }
.forecast-review-table th, .forecast-review-table td { padding: 9px; border-bottom: 1px solid var(--line); text-align: left; }
.forecast-annual { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.forecast-annual span, .forecast-result span { display: grid; gap: 4px; padding: 12px; border-radius: 10px; background: #f6f2ec; color: var(--muted); font-size: 12px; }
.forecast-annual b, .forecast-result b { color: var(--ink); font-size: 17px; }
.forecast-months { display: grid; gap: 16px; max-width: 1120px; margin-top: 22px; }
.forecast-month { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.forecast-month header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.forecast-month h3, .forecast-month h4 { margin: 0; }
.forecast-inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 20px; margin-top: 16px; }
.forecast-inputs section { display: grid; min-width: 0; align-content: start; gap: 10px; }
.forecast-inputs label:not(.check-line) { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; align-content: start; font-size: 13px; font-weight: 700; }
.forecast-inputs .check-line { align-items: flex-start; }
.forecast-inputs .check-line input { flex: 0 0 auto; margin-top: 3px; }
.forecast-inputs label small { grid-column: 1 / -1; color: var(--muted); font-weight: 400; }
.forecast-inputs input { min-width: 0; }
.forecast-inputs input:not([type="checkbox"]) { margin-top: 0; }
.forecast-inputs details { padding: 10px; border-radius: 10px; background: #f6f2ec; }
.forecast-inputs summary { cursor: pointer; font-weight: 700; }
.forecast-result { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; }
.forecast-result small { grid-column: 1 / -1; color: var(--muted); }
.forecast-capacity-warning { border-color: #d58d45; box-shadow: inset 4px 0 #d58d45; }
.forecast-print-table { width: 100%; min-width: 650px; margin-top: 16px; border-collapse: collapse; font-size: 12px; }
.forecast-print-table th, .forecast-print-table td { padding: 7px; border-bottom: 1px solid var(--line); text-align: left; }
.forecast-print-table tfoot th { border-top: 2px solid var(--ink); }
.report-written-card { grid-column: span 1; }
.report-written-answer { padding: 10px 0; border-bottom: 1px solid var(--line); }
.report-written-answer:last-child { border-bottom: 0; }
.report-written-answer p { margin: 5px 0 0; white-space: pre-wrap; }
.negative { color: var(--negative) !important; }

@media (max-width: 700px) {
  .forecast-annual, .forecast-result { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .forecast-inputs { grid-template-columns: 1fr; }
  .forecast-setup-grid { grid-template-columns: 1fr; }
  .forecast-month { padding: 16px; }
  .forecast-month header { align-items: start; flex-direction: column; }
  .forecast-month header .button { width: 100%; }
  .retail-add-catalogue .input-row { grid-template-columns: 1fr; }
}

@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { background: white; }
  .sidebar, .topbar, .summary-toolbar, .report-next-actions, #toast, .example-mode-banner { display: none !important; }
  .written-plan-report > h2 { break-after: avoid; }
  .app-shell { display: block; }
  .view { display: none !important; padding: 0; }
  #view-summary { display: block !important; }
  .business-plan-document { max-width: none; padding: 0; border: 0; box-shadow: none; }
  .document-cover h2 { font-size: 38px; }
  .numbers-report { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .report-card { padding: 13px; break-inside: avoid; page-break-inside: avoid; }
  .report-hero { grid-column: 1 / -1; }
  .report-forecast-card { grid-column: 1 / -1; break-inside: auto; page-break-inside: auto; font-size: 11px; line-height: 1.4; }
  .report-forecast-card h4 { margin: 10px 0 4px; font-size: 12px; break-after: avoid; page-break-after: avoid; }
  .report-forecast-card ul { margin: 6px 0 0; padding-left: 16px; }
  #printable-plan:has(> .report-flow > .report-forecast-card:only-child) .document-cover { padding-bottom: 12px; }
  #printable-plan:has(> .report-flow > .report-forecast-card:only-child) .document-cover h2 { margin: 8px 0; font-size: 30px; }
  #printable-plan:has(> .report-flow > .report-forecast-card:only-child) .document-cover p { margin: 6px 0; }
  .report-hero-number strong { font-size: 25px; }
  .nail-marks { gap: 2px; }
  .report-slider { padding: 0; border: 0; background: transparent; }
  .report-slider input, .report-growth-steps { display: none !important; }
  .report-card::before { display: none; }
  .projection-table { font-size: 8px; }
  .projection-table th, .projection-table td { padding: 3px 1px; }
  .projection-table tr { break-inside: avoid; page-break-inside: avoid; }
  .forecast-print-table { min-width: 0; font-size: 8px; }
  .forecast-print-scroll { overflow: visible; }
  .forecast-print-table th, .forecast-print-table td { padding: 3px 2px; }
  .forecast-print-table tr { break-inside: avoid; page-break-inside: avoid; }
  @page { margin: 18mm; }
}
/* Backup/update tools are separate from the printable plan. */
.update-notice { margin: 20px; padding: 20px; border: 1px solid #bd4565; border-radius: 16px; background: #f8eaf0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.update-notice[hidden] { display: none; }
#update-dialog { width: min(560px, calc(100% - 32px)); max-height: 85dvh; overflow-y: auto; box-sizing: border-box; border: 1px solid #d8cec8; border-radius: 20px; padding: 24px; color: #201b2c; background: #fffdfa; }
#update-dialog::backdrop { background: rgb(32 27 44 / 55%); }
#update-dialog h2 { margin-top: 0; }
.update-actions { display: grid; gap: 16px; margin: 20px 0; }
.update-confirm { display: flex; gap: 12px; align-items: center; min-height: 48px; }
.update-confirm input { width: 24px; height: 24px; flex-shrink: 0; }
.update-help { font-size: .9rem; }
#update-dialog .button { min-height: 48px; white-space: normal; }
#update-dialog .button:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 600px) { .update-notice { flex-direction: column; align-items: stretch; } }
@media print { #update-dialog, .update-notice, #first-run-choice, #action-confirm-dialog, #another-tab-notice { display: none !important; } }
#service-template-dialog { width: min(560px, calc(100% - 32px)); max-height: 85dvh; overflow-y: auto; box-sizing: border-box; border: 1px solid #d8cec8; border-radius: 20px; padding: 24px; color: #201b2c; background: #fffdfa; }
#service-template-dialog::backdrop { background: rgb(32 27 44 / 55%); }
#service-template-dialog h2 { margin-top: 0; }
.service-template-options { display: grid; gap: 9px; margin: 20px 0; }
.service-template-group { display: grid; gap: 7px; }
.service-template-group h3 { margin: 9px 0 1px; color: var(--rose-dark); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.service-template-choice { display: grid; gap: 3px; width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; text-align: left; cursor: pointer; }
.service-template-choice:hover, .service-template-choice:focus-visible { border-color: var(--rose); background: #fff6f8; }
.service-template-choice strong { font-size: 14px; }
.service-template-choice span { color: var(--muted); font-size: 12px; line-height: 1.4; }
.service-template-choice.custom { border-style: dashed; }
@media print { #service-template-dialog { display: none !important; } }
.recovery-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.recovery-notice p, #another-tab-notice p { margin: 4px 0 0; }
@media (max-width: 760px) { .update-notice { flex-direction: column; align-items: flex-start; } }
/* Price card: the second slider's answer and the clients it would cost. */
.report-price-verdict { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; font-size: 14px; font-weight: 600; line-height: 1.45; }
.report-price-verdict.good { color: #2f5d3a; background: #e8f3ea; }
.report-price-verdict.bad { color: var(--rose-dark); background: #fbeef1; }
.nail-marks i.lost { opacity: .25; box-shadow: none; }
.report-nail-key { display: block; margin: -4px 0 12px; color: var(--muted); font-size: 12px; }
/* Numbers report as a story: verdict first, one column, five numbered questions, ending with next moves. */
.numbers-report.report-flow { display: flex; flex-direction: column; gap: 36px; max-width: 820px; }
.report-verdict { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 4vw, 36px); border-radius: 22px; color: #fff; background: #2a2233; }
.report-verdict-eyebrow { color: #e6b961; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.report-verdict h3 { margin: 0; font: 400 clamp(28px, 4.2vw, 40px)/1.12 Georgia, serif; }
.report-verdict p { margin: 0; color: #e9e1ea; font-size: 16px; line-height: 1.6; }
.report-verdict-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.report-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.report-chip.pass { color: #d9f0e3; background: #1f4a37; }
.report-chip.warn { color: #ffd9e1; background: #5a2434; }
.report-chip.neutral { color: #e4dbe8; background: #3d3448; }
.report-section-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -16px; }
.report-section-nav button { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fffdf9; color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; }
.report-section-nav button:hover { border-color: var(--rose); color: var(--rose-dark); }
.report-section { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 96px; }
.report-section-head { display: flex; gap: 14px; align-items: baseline; }
.report-section-head > span { color: var(--rose); font: 400 20px Georgia, serif; }
.report-section-head h3 { margin: 0; font: 500 clamp(24px, 3vw, 30px)/1.15 Georgia, serif; }
.report-section-head p { margin: 4px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.report-section-body { display: flex; flex-direction: column; gap: 16px; }
.report-flow .report-card { padding: 22px 24px; }
.report-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.report-headline { display: flex; align-items: center; gap: 8px; }
.report-headline strong { color: var(--ink); font: 500 clamp(24px, 3.2vw, 32px)/1.15 Georgia, serif; }
.report-headline-small strong { font-size: 20px; }
.report-price-main .report-headline strong { color: var(--rose-dark); }
.report-flow .hint-panel { margin: 10px 0 4px; }
.report-money-card .report-hero-number span { display: flex; align-items: center; gap: 6px; }
.report-money-card .report-hero-number .keep strong { color: #9a6a24; }
.report-money-card .report-proportion { background: #d9ab5f; box-shadow: none; }
.report-money-card .report-proportion span { background: var(--rose); }
.report-money-card .report-hero-note { color: var(--ink); }
.report-money-card .report-hero-note b { color: var(--rose-dark); }
.report-checks-block { margin-top: 16px; padding-top: 16px; border-top: 1px solid #efe7df; }
.report-checks-block h4 { margin: 0 0 10px; color: var(--rose-dark); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.report-break-line { position: relative; height: 76px; margin-top: 18px; }
.report-break-line .track { position: absolute; top: 22px; right: 0; left: 0; display: flex; height: 14px; overflow: hidden; border-radius: 999px; background: #efe7df; }
.report-break-line .track i { display: block; height: 100%; }
.report-break-line .mark { position: absolute; top: 42px; display: flex; flex-direction: column; align-items: center; transform: translateX(-50%); color: var(--muted); font-size: 12px; white-space: nowrap; }
.report-break-line .mark b { color: var(--ink); font-size: 14px; }
.report-break-line .you { position: absolute; top: 0; transform: translateX(-50%); color: #7a5418; font-size: 12px; font-weight: 700; white-space: nowrap; }
.report-price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
.report-price-controls .report-slider:first-child { margin-top: 0; }
.report-levers-intro { margin: 0 0 6px; }
.report-lever { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr) minmax(0, 150px); gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid #efe7df; }
.report-lever-name b { display: block; font-size: 15px; }
.report-lever-name small, .report-lever-gain small { display: block; }
.report-lever-bar { height: 14px; overflow: hidden; border-radius: 999px; background: #f1e9e2; }
.report-lever-bar i { display: block; height: 100%; border-radius: inherit; background: #287653; }
.report-lever-gain { text-align: right; }
.report-lever-gain b { display: block; color: #2f5d3a; font-size: 15px; }
.report-flow .report-levers-summary { margin: 6px 0 0; padding: 12px 14px; border-radius: 12px; background: #f7f1eb; color: var(--ink); font-size: 14px; }
.report-growth-mix { margin-top: 12px; padding-top: 6px; border-top: 1px solid #efe7df; }
.report-growth-mix summary { display: flex; align-items: center; min-height: 44px; color: var(--rose-dark); font-weight: 700; cursor: pointer; }
.report-growth-mix-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; margin-top: 8px; }
.report-growth-mix .report-growth-result { position: sticky; top: 90px; padding: 14px; border: 1px solid #efe7df; border-radius: 12px; background: #fffaf5; }
.report-growth-mix .report-slider:first-child { margin-top: 0; }
.report-growth-coach { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr); gap: 20px; align-items: start; margin-top: 16px; }
.report-growth-coach .report-growth-result { position: sticky; top: 90px; padding: 16px; border: 1px solid #e6d8cb; border-radius: 12px; background: #fffaf5; }
.report-growth-coach .report-slider:first-child { margin-top: 0; }
.report-cash .cushion { background: #fbeef1; }
.report-cash .cushion span { display: flex; align-items: center; gap: 6px; }
.report-flow .report-cash-plan { margin: 14px 0 0; color: var(--ink); font-size: 15px; }
.report-moves { display: flex; flex-direction: column; gap: 14px; }
.report-move { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 18px; align-items: start; padding: 22px 24px; border: 1px solid #e4d8d0; border-radius: 18px; background: #fffdf9; }
.report-move-number { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; color: #fff; background: var(--rose); font: 400 24px Georgia, serif; }
.report-move h4 { margin: 0 0 6px; font-size: 18px; }
.report-move p { margin: 0; color: #4d4656; font-size: 15px; line-height: 1.55; }
.report-move .report-move-cost { margin-top: 6px; color: var(--rose-dark); font-size: 14px; }
.report-move-value { font: 500 22px Georgia, serif; white-space: nowrap; }
.report-move-value.gain { color: #2f5d3a; }
.report-move-value.safety { color: #7d2c43; }
.report-end { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 30px; border-radius: 20px; color: #fff; background: #2a2233; }
.report-end h3 { margin: 0 0 6px; font: 400 26px Georgia, serif; }
.report-end p { margin: 0; color: #e0d6e2; font-size: 14px; }
.report-end-actions { display: flex; flex-direction: column; flex-shrink: 0; gap: 8px; }
.report-end-secondary { color: #fff; border: 1px solid #6c5a70; background: transparent; }
.report-end-secondary:hover { background: #3d3448; }
.report-footnote { margin: -22px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
@media (max-width: 760px) {
  .report-pair, .report-price-grid, .report-growth-mix-grid, .report-growth-coach { grid-template-columns: 1fr; }
  .report-growth-coach .report-growth-result { position: static; }
  .report-lever { grid-template-columns: minmax(0, 1fr) auto; }
  .report-lever-bar { grid-column: 1 / -1; grid-row: 2; }
  .report-move { grid-template-columns: 40px minmax(0, 1fr); padding: 18px; }
  .report-move-number { width: 40px; height: 40px; font-size: 20px; }
  .report-move-value { grid-column: 2; }
  .report-end { flex-direction: column; align-items: stretch; }
}
@media print {
  .report-section-nav, .report-growth-mix, .report-end-actions, .report-flow .hint-button, .report-flow .hint-panel { display: none !important; }
  .numbers-report.report-flow { display: flex; gap: 18px; }
  .report-pair, .report-price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Business foundation: four short steps, started from her own numbers. */
.foundation-numbers-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; max-width: 950px; margin-top: 18px; padding: 14px 16px; border: 0; border-radius: 14px; background: #efe7df; }
.foundation-numbers-summary[hidden] { display: none; }
.foundation-strip-label { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.foundation-strip-chip { padding: 6px 12px; border-radius: 999px; background: #fffdf9; font-size: 13px; }
.foundation-numbers-summary .calc-link { margin: 0 0 0 auto; }
.plan-progress { display: flex; flex-direction: column; gap: 8px; padding: 18px 28px 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.plan-progress-track { height: 6px; overflow: hidden; border-radius: 999px; background: #e7ddd5; }
.plan-progress-track i { display: block; width: 25%; height: 100%; border-radius: inherit; background: var(--rose); transition: width .25s ease; }
.plan-step-eyebrow { display: block; margin: 4px 0 6px; color: var(--rose-dark); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.plan-question { margin-bottom: 26px; }
.plan-question > label, .plan-question-title { display: block; margin: 0 0 6px; color: var(--ink); font: 500 22px/1.25 Georgia, serif; }
.plan-question > label.plan-sublabel { margin: 4px 0 6px; color: #4e4855; font: 700 13px Inter, ui-sans-serif, system-ui, sans-serif; }
.plan-step[data-step="more"] .plan-question > label { color: #4e4855; font: 700 13px Inter, ui-sans-serif, system-ui, sans-serif; }
.plan-step[data-step="more"] .plan-question { margin-bottom: 18px; }
.plan-why { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.plan-numbers-hint { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: #f7f1eb; color: #4d4656; font-size: 14px; font-weight: 500; line-height: 1.5; }
.plan-numbers-hint.good { background: #e8f3ea; color: #2f5d3a; }
.plan-numbers-hint[hidden] { display: none; }
.plan-numbers-hint b { color: var(--ink); }
.plan-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.plan-chips > span { color: var(--muted); font-size: 12px; font-weight: 700; }
.plan-chips button { min-height: 40px; padding: 0 14px; border: 1px solid #e0cfd4; border-radius: 999px; background: #fff; color: var(--rose-dark); font: 600 13px Inter, ui-sans-serif, system-ui, sans-serif; text-align: left; cursor: pointer; }
.plan-chips button:hover { border-color: var(--rose); background: #fbeef1; }
.plan-services-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 22px; color: var(--muted); font-size: 13px; }
.plan-services-line[hidden] { display: none; }
.plan-services-line i { padding: 5px 12px; border-radius: 999px; background: #efe7df; color: var(--ink); font-style: normal; font-weight: 600; }
.plan-more-link { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.choice-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.choice-list.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-list[hidden] { display: none; }
.choice-card { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 56px; margin: 0; padding: 12px 16px; border: 1px solid #e4d8d0; border-radius: 14px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 400; cursor: pointer; }
.choice-card input[type="radio"] { width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; accent-color: var(--rose); }
.choice-card.selected { border: 2px solid var(--rose); background: #fbeef1; }
.choice-card.dashed { border-style: dashed; background: #fbf8f4; }
.choice-list.two .choice-card { grid-template-columns: 24px minmax(0, 1fr); align-items: start; }
.choice-copy { display: grid; gap: 3px; min-width: 0; }
.choice-copy b { font-size: 15px; }
.choice-copy small { color: #716b7b; font-size: 13px; font-weight: 500; line-height: 1.45; }
.choice-value { font: 500 18px Georgia, serif; font-style: normal; white-space: nowrap; }
.choice-value.gain { color: #2f5d3a; }
.choice-value.safety { color: #7d2c43; }
.plan-steps-inputs { display: grid; gap: 10px; }
.plan-steps-inputs label { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; margin: 0; }
.plan-steps-inputs textarea { min-height: 56px; }
.plan-step-number { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: #fff; background: var(--rose); font: 400 17px Georgia, serif; }
.plan-ready { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 8px; padding: 22px 26px; border-radius: 18px; color: #fff; background: #2a2233; }
.plan-ready h3 { margin: 0 0 4px; font: 400 24px Georgia, serif; }
.plan-ready p { margin: 0; color: #e0d6e2; font-size: 14px; line-height: 1.5; }
.plan-group-title { margin: 26px 0 12px; color: var(--rose-dark); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

/* Report section 6: her plan, in her own words, next to what her numbers say. */
.report-plan-goal { display: flex; flex-direction: column; gap: 16px; padding: 26px 28px; border-radius: 18px; color: #fff; background: #2a2233; }
.report-plan-goal-label, .report-plan-label { color: #e6b961; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.report-plan-goal > p { margin: 0; font: 400 clamp(22px, 3vw, 26px)/1.3 Georgia, serif; }
.report-plan-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.report-plan-tiles > div { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 12px; background: #3a3044; }
.report-plan-tiles span { color: #cfc3d4; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.report-plan-tiles b { font: 500 20px/1.25 Georgia, serif; }
.report-plan-tiles small { color: #cfc3d4; font-size: 12px; }
.report-plan-steps { display: flex; flex-direction: column; gap: 6px; padding: 22px 26px; border: 1px solid #e4d8d0; border-radius: 18px; background: #fffdf9; }
.report-plan-steps .report-plan-label { color: var(--rose-dark); }
.report-step-check { display: flex; align-items: center; gap: 12px; min-height: 44px; margin: 0; color: var(--ink); font-size: 16px; font-weight: 400; cursor: pointer; }
.report-step-check input { width: 22px; height: 22px; min-height: 0; margin: 0; padding: 0; accent-color: var(--rose); }
.report-plan-list { display: flex; flex-direction: column; padding: 6px 26px; border: 1px solid #e4d8d0; border-radius: 18px; background: #fffdf9; }
.report-plan-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; padding: 14px 0; border-bottom: 1px solid #efe7df; }
.report-plan-row:last-child { border-bottom: 0; }
.report-plan-row > span { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.report-plan-row p { margin: 0; font-size: 15px; line-height: 1.55; white-space: pre-line; }
.report-plan-row small { margin-left: 6px; color: #9a6a24; font-size: 12px; }
.report-more-detail { padding: 4px 20px; border: 1px dashed #d8c7c2; border-radius: 14px; background: #fbf8f4; }
.report-more-detail summary { display: flex; align-items: center; min-height: 52px; color: var(--rose-dark); font-weight: 600; cursor: pointer; }
.report-more-detail > :not(summary) { margin-bottom: 14px; }
.report-move.is-focus { border: 2px solid var(--rose); background: #fbeef1; }
.report-focus-tag { margin-left: 8px; padding: 3px 10px; border-radius: 999px; color: #fff; background: var(--rose); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px; }
@media (max-width: 760px) {
  .report-plan-row { grid-template-columns: 1fr; gap: 4px; }
  .report-plan-tiles, .choice-list.two { grid-template-columns: 1fr; }
  .plan-ready { flex-direction: column; align-items: stretch; }
  .plan-progress { padding: 14px 16px 0; }
  .foundation-numbers-summary .calc-link { margin-left: 0; }
  .choice-card { grid-template-columns: 24px minmax(0, 1fr); }
  .choice-value { grid-column: 2; }
}
@media print {
  .report-more-detail { border: 0; padding: 0; background: transparent; }
  .report-more-detail summary { display: none; }
  .report-step-check { min-height: 0; padding: 4px 0; }
}

/* Typed amounts: what was understood, or what is wrong. */
.numeric-note { display: block; margin: 4px 0 0; color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.4; }
.numeric-note[hidden] { display: none; }
.numeric-note.error { color: var(--negative); font-weight: 700; }
input[data-numeric][aria-invalid="true"] { border-color: var(--negative); }

/* Long web addresses and unbroken words wrap instead of stretching the page. */
#printable-plan, .plan-step, .numbers-report, .report-verdict, .report-plan-goal, .report-step-check span, .report-move p { overflow-wrap: anywhere; }
.report-move > div, .report-step-check span, .report-plan-row p, .report-verdict, .report-plan-goal, .report-plan-tiles > div { min-width: 0; }

/* Business report: shortcuts to the finished result, and her whole plan shown in open groups. */
.example-mode-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.foundation-report-link { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; max-width: 950px; margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.foundation-report-link[hidden] { display: none; }
.report-plan-group { display: flex; flex-direction: column; gap: 10px; }
.report-plan-group > h4 { margin: 10px 0 0; color: var(--rose-dark); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
#report-next-actions[hidden] { display: none; }
@media (max-width: 760px) {
  .example-mode-actions { justify-content: stretch; }
  .example-mode-actions .button { flex: 1 1 100%; }
}
