:root { color-scheme: light; --blue: #2b61ff; --ink: #111827; --muted: #6b7280; --line: #e6e8ef; --mint: #99ffda; }
[hidden] { display: none !important; }
body { color: var(--ink); }
button, input, select { font: inherit; }
button, label, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: default; opacity: .35; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #99bcff; outline-offset: 3px; }
.setup-screen { max-width: 1196px; margin: 0 auto; padding: max(28px, env(safe-area-inset-top)) 28px max(28px, env(safe-area-inset-bottom)); }
.setup-header { display: flex; align-items: center; justify-content: space-between; }
.setup-header img { width: 164px; height: auto; }
.setup-intro { margin: 30px 0 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.setup-intro h1 { font-size: 32px; font-weight: 800; letter-spacing: -.035em; line-height: 1.15; }
.setup-grid { display: grid; grid-template-columns: 1.18fr 1fr; gap: 18px; align-items: start; }
.setup-column { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.setup-card { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 23px 24px; }
.setup-card h2 { font-size: 15px; letter-spacing: -.015em; font-weight: 800; display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.section-number { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; background: #eef2ff; border-radius: 7px; font-size: 10px; letter-spacing: .02em; color: var(--blue); }
.two-fields { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; }
.company-fields { row-gap: 16px; margin-bottom: 18px; }
.pay-currency { color: var(--muted); font-weight: 500; }
.field { display: block; min-width: 0; color: #374151; font-size: 11px; font-weight: 650; line-height: 1.4; }
.optional { font-size: 10px; font-weight: 400; color: #9ca3af; margin-left: 4px; }
.field input, .field select { display: block; margin-top: 7px; border: 1px solid #dfe3eb; background: #fff; border-radius: 8px; padding: 10px 11px; width: 100%; height: 44px; min-width: 0; color: var(--ink); font-size: 16px; font-weight: 550; font-variant-numeric: tabular-nums; }
.field input::placeholder { font-size: 13px; font-weight: 400; color: #9ca3af; }
.field select { padding: 10px 8px; font-size: 13px; }
.field input:focus, .field select:focus { border-color: var(--blue); }
.field input[aria-invalid="true"] { border-color: #df626a; background: #fff6f6; }
.field input[readonly] { background: #f3f4f6; color: #4b5563; cursor: default; }
.field input[readonly]:focus { border-color: #dfe3eb; }
input[type="number"] { -moz-appearance: textfield; }
input::-webkit-inner-spin-button, input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.mix-labels, .range-heading { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 600; color: #4b5563; margin: 23px 0 7px; gap: 12px; }
.mix-labels strong { font-weight: 800; color: var(--blue); margin-left: 5px; font-variant-numeric: tabular-nums; }
.mix-caption { margin: 21px 0 -17px; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #9ca3af; }
.mix-labels > span strong { color: #617195; }
input[type="range"] { display: block; width: 100%; height: 32px; margin: 0; background: transparent; accent-color: var(--blue); cursor: pointer; appearance: none; -webkit-appearance: none; touch-action: pan-y; }
input[type="range"]::-webkit-slider-runnable-track { height: 5px; border-radius: 99px; background: linear-gradient(to right, var(--blue) 0%, var(--blue) var(--fill, 50%), #e2e7f2 var(--fill, 50%), #e2e7f2 100%); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 23px; height: 23px; margin-top: -9px; background: white; border: 4px solid var(--blue); border-radius: 50%; box-shadow: 0 2px 5px #11182716; }
input[type="range"]::-moz-range-track { height: 5px; border-radius: 99px; background: #e2e7f2; }
input[type="range"]::-moz-range-progress { height: 5px; background: var(--blue); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border: 4px solid var(--blue); background: #fff; border-radius: 50%; }
.mix-detail { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 10px; margin-top: 3px; }
.mix-detail b { font-weight: 650; color: #4b5563; }
.field-note { font-size: 10.5px; line-height: 1.65; color: var(--muted); margin-top: 16px; }
/* Default: on means the figures beside it are ours and follow their source; typing over one turns it off. */
.default-pill { display: inline-flex; align-items: center; cursor: pointer; flex: 0 0 auto; padding: 14px 6px; margin: -14px -6px; }
.default-pill input, .field .default-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; min-width: 0; margin: 0; padding: 0; border: 0; }
.default-pill span { padding: 2px 7px; border: 1px solid #dfe3eb; border-radius: 99px; background: #fff; color: #9ca3af; font-size: 9px; font-weight: 750; letter-spacing: .05em; line-height: 1.5; text-transform: uppercase; }
.default-pill input:checked + span { background: #eef2ff; border-color: #dde5fc; color: var(--blue); }
.default-pill input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 1px; }
.builder-card { grid-column: 1 / -1; }
.builder-card h2 { margin-bottom: 18px; }
.builder-profile-badge { margin-left: auto; padding: 4px 9px; border: 1px solid #d7e2ff; border-radius: 99px; background: #eef2ff; color: var(--blue); font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.builder-details-grid { display: grid; grid-template-columns: .72fr 1fr 1.25fr 1.35fr; gap: 18px; align-items: start; }
.promotion-choice { min-width: 0; }
.three-options { grid-template-columns: .62fr 1fr 1.35fr; }
.promotion-fields { display: grid; grid-template-columns: 1.2fr .8fr; gap: 12px; align-items: end; }
.logo-control { display: flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 7px; }
.logo-upload, .logo-remove { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 8px 11px; border: 1px solid #dfe3eb; border-radius: 8px; background: #fff; color: var(--blue); font-size: 11px; font-weight: 650; cursor: pointer; }
.logo-remove { color: #4b5563; }
#company-logo { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
#company-logo:focus-visible + .logo-remove, .logo-upload:has(+ #company-logo:focus-visible) { outline: 3px solid #99bcff; outline-offset: 2px; }
.logo-preview { height: 48px; margin-top: 8px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: #f6f7fb; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.logo-preview img { display: block; max-width: 100%; max-height: 34px; width: auto; height: auto; object-fit: contain; }
.logo-preview span { color: #9ca3af; font-size: 10px; font-weight: 550; }
.assumptions-card { grid-column: 1 / -1; }
.assumptions-card h2 .default-pill { margin-left: auto; }
.assumptions-grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr 1.5fr; gap: 12px; align-items: end; }
.suffix-input { position: relative; display: block; }
.suffix-input input { padding-right: 74px; }
#seconds-after { padding-right: 38px; }
.suffix-input > span { position: absolute; right: 11px; top: calc(50% + 3.5px); transform: translateY(-50%); color: var(--muted); font-size: 11px; font-weight: 500; pointer-events: none; }
.builder-mode .contact-field { display: none; }
.builder-mode .key-kpi-field { color: #135941; font-weight: 800; }
.builder-mode .key-kpi-field .suffix-input { border-radius: 10px; box-shadow: 0 0 0 3px #99ffda66; }
.builder-mode .key-kpi-field input { border: 2px solid #36c997; background: #dafff1; color: #0f513d; font-weight: 800; }
.builder-mode .key-kpi-field input:focus { border-color: #0f8d6d; background: #ecfff8; }
.builder-mode .key-kpi-field .suffix-input > span { color: #135941; font-weight: 750; }
.kpi-note { display: block; margin-top: 2px; font-size: 10px; font-weight: 600; color: var(--muted); }
.builder-mode .send-confirmation { display: none !important; }
.employees-card { grid-column: 1 / -1; }
.mid-market-builder .setup-column { grid-column: 1 / -1; }
.mid-market-builder .builder-details-grid { grid-template-columns: 1.25fr 1fr .8fr; }
.mid-market-builder .promotion-choice { grid-column: span 2; }
.mid-market-builder .promotion-fields { grid-column: 1 / -1; }
.public-site .builder-details-grid { grid-template-columns: 1.25fr 1fr; }
.assumptions-note { display: inline-block; margin: -8px 0 18px; padding: 6px 12px; border: 1px solid var(--mint); border-radius: 99px; background: #dafff1; color: #0f513d; font-size: 12px; font-weight: 700; }
.mid-market-builder .team-group { grid-template-columns: minmax(150px, 1.7fr) minmax(56px, .5fr) minmax(110px, .9fr) minmax(130px, 1fr) minmax(90px, .7fr) 44px; }
.mid-market-builder [data-savings-totals] { margin-top: 44px; }
.mid-market-builder [data-savings-after] { position: relative; }
.savings-cost-callout { position: absolute; top: -46px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 13px; font-weight: 700; color: #374151; }
.savings-cost-callout svg { width: 20px; height: 21px; fill: none; stroke: #374151; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.savings-breakdown-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; }
.savings-breakdown-heading strong { font-size: 16px; color: #374151; }
.savings-breakdown-heading > span { font-size: 11px; color: #6b7280; }
.savings-breakdown { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.savings-source { border: 1px solid #e6e8ef; border-radius: 12px; padding: 18px 16px; background: #f6f7fb; }
.savings-source > div { min-height: 40px; font-size: 13px; font-weight: 700; line-height: 1.4; color: #374151; }
.savings-source > strong { display: block; margin-top: 16px; font-size: 30px; letter-spacing: -.02em; color: #2b61ff; font-variant-numeric: tabular-nums; }
.savings-source > span { display: block; margin-top: 4px; font-size: 12px; color: #6b7280; }
.flat-pricing > div { display: grid; grid-template-columns: .6fr 1.3fr 1fr 1fr 1.15fr; border-bottom: 1px solid #e5e7eb; }
.flat-pricing > div:last-child { border-bottom: 0; }
.flat-pricing > div > div { padding: 7px 18px; display: flex; align-items: center; gap: 6px; }
.flat-pricing-header > div { padding-top: 10px !important; padding-bottom: 10px !important; }
.flat-pricing-header { background: #f6f7fb; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.flat-pricing-header > div:last-child { flex-direction: column; align-items: flex-start; gap: 3px; }
.flat-pricing-header [data-pricing="employee-basis"] { font-size: 9px; letter-spacing: 0; }
.flat-pricing-row { font-size: 13px; font-weight: 600; color: #374151; }
.flat-pricing-row > div:first-child { font-weight: 800; font-size: 15px; }
.flat-pricing > div > div:nth-child(3) { border-left: 1px solid #e6e8ef; }
.flat-pricing-agreed { grid-column: span 2; font-size: 14px; font-weight: 800; color: #111827; }
.flat-pricing > div > div:last-child { background: #f3f4f6; border-left: 1px solid #e6e8ef; }
.flat-pricing-row > div > span { font-weight: 800; color: #111827; font-variant-numeric: tabular-nums; }
.flat-pricing-row small { font-size: 11px; color: #6b7280; white-space: nowrap; }
.mid-market-builder [data-pricing="computation"] > div:first-child > div { font-size: 10px !important; letter-spacing: .06em !important; }
.flat-pricing-note { margin-top: 8px; font-size: 10px; line-height: 1.5; color: #6b7280; }
.team-groups { display: flex; flex-direction: column; gap: 12px; }
.team-group { display: grid; grid-template-columns: minmax(116px, 1.5fr) minmax(46px, .45fr) minmax(92px, .85fr) minmax(84px, .8fr) minmax(100px, .9fr) minmax(84px, .8fr) minmax(76px, .7fr) 44px; gap: 12px; align-items: end; }
.team-group input[data-key="city"] { font-size: 14px; font-variant-numeric: normal; padding-left: 9px; padding-right: 8px; text-overflow: ellipsis; }
.team-group .field { position: relative; }
.pay-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 4px; flex-wrap: wrap; }
.city-suggestions { position: absolute; z-index: 20; top: 100%; left: 0; min-width: max(100%, 270px); max-width: 360px; margin: 4px 0 0; padding: 4px; list-style: none; border: 1px solid #dfe3eb; border-radius: 10px; background: #fff; box-shadow: 0 10px 28px #11182724; }
.city-suggestions li { display: flex; align-items: center; min-height: 44px; padding: 6px 10px; border-radius: 7px; color: var(--ink); font-size: 13px; font-weight: 550; line-height: 1.3; cursor: pointer; }
.city-suggestions li:hover, .city-suggestions li[aria-selected="true"] { background: #eef2ff; color: var(--blue); }
.team-group select[data-key="ownership"] { font-size: 11px; padding-left: 6px; padding-right: 2px; }
.team-group input[data-key="salary"], .team-group input[data-key="hourly"] { padding-left: 8px; padding-right: 6px; }
.team-group input[data-key="count"] { padding-left: 8px; padding-right: 6px; }
.team-group + .team-group { padding-top: 12px; border-top: 1px solid var(--line); }
.percentage-input { position: relative; display: block; }
.percentage-input input { padding-right: 30px; }
.percentage-input > span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; pointer-events: none; }
.team-remove { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid #dfe3eb; border-radius: 8px; background: #fff; color: #6b7280; }
.team-remove:hover { background: #f6f7fb; border-color: #c6ccd9; }
.add-team { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; margin-top: 16px; padding: 10px 14px; border: 1px solid #dfe3eb; border-radius: 8px; background: #fff; color: var(--blue); font-size: 12px; font-weight: 650; }
.add-team span { font-size: 19px; line-height: 1; }
.add-team:hover { background: #f6f7fb; }
fieldset { border: 0; min-width: 0; }
legend { display: block; float: none; padding: 0; font-size: 12px; font-weight: 650; color: #374151; margin-bottom: 11px; line-height: 1.5; }
.segmented { display: grid; background: #f6f7fb; padding: 4px; border-radius: 9px; gap: 3px; }
.two-options { grid-template-columns: repeat(2, 1fr); }
.segmented label { position: relative; min-width: 0; cursor: pointer; }
.segmented input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.segmented span { display: flex; min-height: 40px; align-items: center; justify-content: center; padding: 7px 6px; border-radius: 6px; text-align: center; font-size: 11px; font-weight: 600; color: var(--muted); border: 1px solid transparent; }
.segmented input:checked + span { background: #fff; border-color: #dde5fc; color: var(--blue); box-shadow: 0 1px 4px #11182709; }
.segmented input:focus-visible + span { outline: 3px solid #99bcff; }
.range-heading output { background: #eef2ff; color: var(--blue); padding: 4px 9px; border-radius: 5px; font-size: 12px; font-weight: 750; font-variant-numeric: tabular-nums; }
.workflow-divider { height: 1px; background: var(--line); margin: 24px 0; }
.source-remainder { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 0 0; margin-top: 19px; border-top: 1px solid var(--line); color: #6b7280; font-size: 11px; }
.source-remainder strong { font-size: 14px; font-weight: 700; color: #374151; }
.setup-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 22px; padding: 20px 24px; border: 1px solid #99ffda; border-radius: 14px; background: #dafff1; }
.setup-totals { display: flex; gap: 42px; flex: 1; }
.setup-totals > div { display: flex; flex-direction: column; gap: 6px; }
.setup-totals span { color: #3d6356; font-size: 10px; font-weight: 600; }
.setup-totals strong { font-size: 25px; font-weight: 800; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.primary-button { border: none; background: var(--blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 25px; padding: 14px 20px; border-radius: 8px; font-weight: 700; font-size: 13px; min-height: 48px; }
.primary-button:hover { background: #1e4fd6; }
.primary-button span { font-size: 20px; line-height: .8; }
.form-error { color: #a83240; font-size: 12px; width: 100%; line-height: 1.6; }
.presentation { position: fixed; inset: 0; display: flex; flex-direction: column; background: #eef0f5; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.workflow-selector { position: absolute; right: 106px; top: min(30px, calc(92px - 50px * var(--workflow-control-scale, 1))); z-index: 1; transform: scale(var(--workflow-control-scale, 1)); transform-origin: top right; }
/* Match shared/SegmentedToggle.jsx with larger labels and tablet touch targets. */
.workflow-family-switch { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: #ECEEF4; }
.workflow-family-switch button { display: flex; align-items: center; justify-content: center; min-width: 116px; height: 44px; padding: 0 18px; border: 0; border-radius: 8px; background: transparent; color: #6B7280; font-size: 15px; font-weight: 600; transition: color .12s ease, background .12s ease; }
.workflow-family-switch button[aria-pressed="true"] { background: #fff; color: #111827; font-weight: 700; }
.workflow-family-switch button[aria-pressed="false"]:hover { color: #374151; }
.workflow-footer { min-height: 52px; }
.customer-timing-benchmark { width: max-content; white-space: nowrap; background: #DAFFF1; border: 1px solid #99FFDA; border-radius: 12px; padding: 10px 18px; color: #111827; }
.customer-timing-benchmark > div { font-family: 'Sequel Sans Head'; font-weight: 600; font-size: 24px; line-height: 1.25; }
.stage-viewport { flex: 1; min-height: 0; position: relative; overflow: hidden; touch-action: pan-y pinch-zoom; }
.deck-stage { position: absolute; width: 1180px; height: 672px; transform-origin: top left; box-shadow: 0 4px 30px #1820380d; }
.deck-slide { width: 1180px; height: 672px; }
.deck-navigation { height: 64px; flex: 0 0 64px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; padding: 8px 24px; gap: 20px; background: #f6f7fb; border-top: 1px solid #e6e8ef; }
#edit-inputs { justify-self: start; }
.deck-actions { display: flex; align-items: center; gap: 16px; justify-self: end; }
.nav-button { border: 1px solid #dfe3eb; background: #fff; color: #4b5563; font-size: 12px; font-weight: 600; border-radius: 7px; padding: 10px 15px; min-height: 44px; }
.slide-tabs { display: flex; gap: 2px; align-items: center; justify-self: center; }
.slide-tab { background: none; border: 0; width: 40px; height: 44px; display: flex; align-items: center; justify-content: center; }
.slide-tab::before { content: ''; width: 7px; height: 7px; border-radius: 99px; background: #c6ccd9; transition: width .15s; }
.slide-tab[aria-current="true"]::before { background: var(--blue); width: 23px; }
.page-controls { display: flex; gap: 8px; align-items: center; }
.slide-counter { font-size: 11px; font-weight: 600; color: #6b7280; font-variant-numeric: tabular-nums; white-space: nowrap; margin-right: 8px; }
.arrow-button { width: 44px; height: 44px; background: #fff; border: 1px solid #dfe3eb; border-radius: 7px; color: var(--ink); font-size: 20px; }
.pricing-selected, .pricing-after { background: #dafff1 !important; box-shadow: inset 4px 0 0 #71e6bd; }
.pricing-selected > div, .pricing-after > div { background: transparent !important; }
.pricing-selected > div:first-child span:last-child, .pricing-after > div:first-child span:last-child { color: #135941 !important; }
.pricing-money-cell { flex-wrap: wrap; min-width: 0; }
.pricing-money-cell > span:first-child { overflow-wrap: anywhere; }
.send-estimate { min-height: 44px; padding: 10px 16px; white-space: nowrap; flex-shrink: 0; }
.send-status { position: absolute; bottom: calc(72px + env(safe-area-inset-bottom)); right: 24px; max-width: min(560px, calc(100% - 48px)); margin: 0; padding: 10px 16px; border-radius: 8px; background: #dafff1; color: #135941; font-size: 12px; line-height: 1.5; }
.send-confirmation { width: min(440px, calc(100% - 32px)); max-height: calc(100% - 32px); margin: auto; padding: 0; border: 1px solid #E6E8EF; border-radius: 16px; background: #fff; color: #111827; box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); }
.send-confirmation::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(4px); }
.confirmation-header { padding: 24px; border-bottom: 1px solid #F3F4F6; }
.confirmation-header h2 { font-size: 18px; font-weight: 600; }
.confirmation-body { padding: 20px 24px; }
.confirmation-body .field { font-size: 12px; }
.confirmation-body input { height: 48px; }
.confirmation-body .form-error { margin-top: 12px; }
.confirmation-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 16px 24px; border-top: 1px solid #F3F4F6; }
.confirmation-actions button { min-height: 48px; width: auto; }
.workflow-double [data-phase] > span { white-space: normal !important; }
.workflow-double [data-handoff] { margin-left: 4px !important; margin-right: 4px !important; }
.workflow-double [data-handoff] > span:not([style*="writing-mode"]) { font-size: 24px !important; }
.workflow-double [data-supplier-wait] { margin-left: 4px !important; margin-right: 4px !important; }
.workflow-double [data-supplier-wait] > span:not([style*="writing-mode"]) { font-size: 24px !important; }
@media (max-width: 850px) {
  .setup-screen { padding: 22px 20px; }
  .setup-grid { grid-template-columns: 1fr; gap: 12px; }
  .setup-column { gap: 12px; }
  .setup-card { padding: 20px 16px; }
  .setup-totals { gap: 23px; }
  .setup-totals strong { font-size: 22px; }
  .team-group { gap: 7px; }
  .segmented span { font-size: 10px; padding: 7px 3px; }
  .two-fields { gap: 10px; }
  .mix-detail { font-size: 9px; }
  .builder-details-grid, .mid-market-builder .builder-details-grid, .public-site .builder-details-grid { grid-template-columns: 1fr 1fr; }
  .mid-market-builder .promotion-choice { grid-column: 1 / -1; }
}
@media (max-width: 650px) {
  .setup-screen { padding: 20px 16px; }
  .setup-intro { margin: 26px 0 20px; }
  .setup-intro h1 { font-size: 27px; }
  .setup-grid { grid-template-columns: 1fr; }
  .setup-card { padding: 21px; }
  .setup-totals { width: 100%; flex: auto; justify-content: space-between; gap: 12px; }
  .setup-totals strong { font-size: 21px; }
  .setup-totals span { font-size: 9px; }
  .setup-footer { padding: 20px; }
  .primary-button { width: 100%; }
  .builder-details-grid, .mid-market-builder .builder-details-grid, .public-site .builder-details-grid { grid-template-columns: 1fr; }
}
@media (min-width: 744px) and (max-width: 767px) {
  .team-group { grid-template-columns: minmax(100px, 1fr) 44px 90px 82px 98px 82px 74px 44px; gap: 6px; }
}
@media (pointer: coarse) {
  .field { font-size: 12px; }
  legend, .range-heading, .mix-labels { font-size: 13px; }
  .segmented span { min-height: 44px; font-size: 12px; }
  input[type="range"] { height: 44px; }
  input[type="range"]::-webkit-slider-thumb { width: 30px; height: 30px; margin-top: -12.5px; }
  input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; }
}
@media (pointer: coarse) and (min-width: 651px) {
  .slide-tab { width: 44px; flex: 0 0 44px; }
}
@media (min-width: 744px) and (max-width: 1100px) {
  .deck-navigation { gap: 8px; }
  /* However many slides the deck has, the dots stop short of the controls beside them: the bar's
     48px padding and two 8px gaps, then on each side Send (108) + 8 + two arrows (44 + 8 + 44). */
  .slide-tabs { max-width: calc(100vw - 48px - 16px - 2 * 212px); }
  .slide-tab { width: 30px; flex: 0 1 auto; min-width: 0; }
  .deck-actions { gap: 8px; }
  .slide-counter { display: none; }
  .send-estimate { min-width: 108px; padding: 10px 8px; font-size: 12px; }
}
@media (max-width: 743px) {
  .assumptions-grid { grid-template-columns: 1fr 1fr; }
  .team-group, .mid-market-builder .team-group { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .team-remove { justify-self: end; }
  .deck-navigation { height: 112px; flex-basis: 112px; grid-template-columns: 1fr auto; grid-template-rows: 44px 44px; padding: 8px 12px; gap: 8px 12px; }
  .slide-tabs { grid-column: 1 / -1; grid-row: 1; }
  #edit-inputs { grid-column: 1; grid-row: 2; }
  .deck-actions { grid-column: 2; grid-row: 2; gap: 8px; }
  .slide-tab { width: 30px; flex: 0 0 30px; }
  .slide-counter { display: none; }
  .page-controls { gap: 5px; }
  .nav-button { padding: 10px; font-size: 11px; }
  .send-estimate { width: auto; font-size: 12px; }
  .send-status { bottom: calc(120px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
@media print {
  @page { size: 1180px 672px; margin: 0; }
  html, body { width: 1180px !important; height: auto !important; margin: 0 !important; padding: 0 !important; background: white !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #setup-screen, .deck-navigation, .send-status, .send-confirmation { display: none !important; }
  .workflow-selector { transform: none !important; }
  /* Print lays out the original 1920px workflow before page clipping. Zoom also
     scales its layout, so the lower workflow rows and benchmark stay on the page. */
  :is(#slide-5, #slide-6, [data-source-slide="slide-5"], [data-source-slide="slide-6"]) > div:first-child { transform: none !important; zoom: .6146; }
  #presentation { display: block !important; position: static !important; padding: 0 !important; background: white !important; }
  #stage-viewport { display: block !important; position: static !important; overflow: visible !important; }
  #deck-stage { position: static !important; transform: none !important; height: auto !important; box-shadow: none !important; }
  .deck-slide, .deck-slide[hidden] { display: flex !important; break-inside: avoid; break-after: page; margin: 0 !important; }
  .deck-slide[data-builder-print-original] { display: none !important; }
  .deck-slide:last-child { break-after: auto; }
}
