:root {
  color-scheme: light;
  --paper: #f5f3ed;
  --card: #fffefa;
  --ink: #20352d;
  --muted: #59665c;
  --line: #d8ded3;
  --green: #173f35;
  --green-light: #e7eddf;
  --mint: #e5efcd;
  --orange: #ad512d;
  --danger: #9c332c;
  --radius: 18px;
  font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-synthesis: none;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; }
button, a, input, summary, textarea { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button { color: inherit; }
a { color: var(--green); text-underline-offset: 4px; }
button, a { touch-action: manipulation; }
button:disabled { cursor: not-allowed; opacity: .48; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { line-height: 1.65; }
small { display: block; font-size: .8rem; line-height: 1.55; }
button .icon, a .icon { flex: 0 0 auto; }
.icon { width: 20px; height: 20px; vertical-align: middle; flex-shrink: 0; }
.shell { max-width: 1256px; margin-inline: auto; padding-inline: 36px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: fixed; top: -100px; left: 24px; padding: 15px 20px; background: var(--green); color: white; z-index: 100; border-radius: 10px; }
.skip:focus { top: 12px; }
.site-header { border-bottom: 1px solid var(--line); }
.nav { min-height: 78px; display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 0; font-size: 1.4rem; font-weight: 800; letter-spacing: -.06em; text-decoration: none; white-space: nowrap; }
.brand-light { font-weight: 450; }
.brand-period { color: var(--orange); }
.brandmark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--green); color: var(--mint); margin-right: 10px; }
.brandmark .icon { width: 26px; height: 26px; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: .85rem; font-weight: 600; text-decoration: none; }
.nav-links a:hover { text-decoration: underline; }
.local-badge { display: inline-flex; align-items: center; gap: 7px; font-size: .75rem; color: var(--muted); padding-left: 27px; border-left: 1px solid var(--line); white-space: nowrap; }
.local-badge .icon { width: 15px; height: 15px; }
.eyebrow { display: flex; align-items: center; gap: 9px; font-family: "SFMono-Regular", Consolas, monospace; font-size: .72rem; line-height: 1.6; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.small-line { display: inline-block; width: 25px; height: 2px; background: var(--orange); }
.hero { display: grid; grid-template-columns: 1fr 345px; gap: 70px; align-items: center; padding: 25px 0 24px; }
.hero h1 { font-size: clamp(2.6rem, 4.4vw, 3.8rem); line-height: 1.04; letter-spacing: -.055em; margin: 16px 0 17px; font-weight: 720; }
.hero h1 em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.055em; color: var(--green); }
.hero-description { max-width: 570px; color: var(--muted); font-size: .98rem; line-height: 1.65; }
.hero-trust { display: flex; gap: 20px; margin-top: 21px; font-size: .75rem; color: var(--muted); }
.hero-trust span { display: inline-flex; align-items: center; gap: 5px; }
.hero-trust .icon { width: 15px; height: 15px; }
.hero-art { position: relative; text-align: center; padding: 15px 0 0; }
.art-label, .art-caption { font: .63rem "SFMono-Regular", Consolas, monospace; letter-spacing: .12em; color: var(--muted); }
.layer-art { width: 100%; margin-top: 8px; display: block; }
.art-grid { fill: none; stroke: #dce1d4; stroke-width: .7; }
.art-shadow { fill: #e6e7dc; }
.layer-side { fill: #466154; stroke: var(--green); stroke-width: .7; }
.layer-top { fill: #bfccb4; stroke: #768a71; stroke-width: .7; }
.accent-side { fill: #87996f; }
.accent-top { fill: #e2ebc5; stroke: #8c9e75; stroke-width: .7; }
.art-outline { fill: none; stroke: #9bab82; stroke-width: .8; }
.art-measure { fill: none; stroke: #8b9789; stroke-width: .6; stroke-dasharray: 2 3; }
.art-caption { display: inline-flex; gap: 8px; align-items: center; letter-spacing: .02em; }
.art-caption i { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.starter-bar { display: grid; grid-template-columns: 210px 1fr; border-block: 1px solid var(--line); padding: 18px 0; align-items: center; gap: 18px; }
.starter-label small { margin-top: 5px; font-size: .72rem; color: var(--muted); }
.preset-options { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.preset { min-height: 64px; background: transparent; border: 1px solid var(--line); border-radius: 10px; display: flex; align-items: center; padding: 12px; text-align: left; gap: 10px; transition: background .15s, border-color .15s; }
.preset:hover { background: var(--card); border-color: #8c9d89; }
.preset-number { font: .65rem Consolas, monospace; color: var(--orange); align-self: flex-start; padding-top: 2px; }
.preset strong { display: block; font-size: .79rem; font-weight: 650; }
.preset small { color: var(--muted); font-size: .72rem; line-height: 1.5; margin-top: 4px; }
.preset .icon { width: 16px; height: 16px; margin-left: auto; }
#workspace, #results, #guides { scroll-margin-top: 20px; }
.workspace-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 25px 0 16px; }
.workspace-toolbar h2 { font-size: 1.5rem; font-weight: 630; letter-spacing: -.035em; margin-top: 5px; }
.button-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.button { min-height: 43px; padding: 10px 15px; border-radius: 9px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: .79rem; line-height: 1.3; font-weight: 650; text-decoration: none; background: transparent; transition: background .15s; }
.button .icon { width: 17px; height: 17px; }
.primary { background: var(--green); color: white; border-color: var(--green); }
.primary:hover:not(:disabled) { background: #245849; }
.secondary { background: var(--card); border-color: var(--line); }
.secondary:hover:not(:disabled) { background: var(--green-light); }
.ghost { background: transparent; color: var(--muted); }
.ghost:hover:not(:disabled) { background: #e9ede2; color: var(--green); }
.wide { width: 100%; }
.text-button { border: 0; background: none; display: inline-flex; gap: 5px; align-items: center; font-size: .72rem; padding: 8px 0; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; min-height: 36px; }
.text-button .icon { width: 14px; height: 14px; }
.upload { position: relative; cursor: pointer; }
.upload input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.upload:focus-within { outline: 3px solid var(--orange); outline-offset: 3px; }
.example-notice { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: .72rem; padding: 0 0 18px; }
.example-notice .icon { width: 15px; height: 15px; margin-top: 2px; }
.quick-quote { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: var(--green); color: white; border-radius: var(--radius); padding: 14px 20px; margin-bottom: 20px; }
.quick-quote .eyebrow { color: #cfe0ce; }
.quick-quote-price { display: block; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 720; letter-spacing: -.02em; margin-block: 2px; }
.quick-quote small { color: #d4e1c9; font-size: .74rem; }
.quick-quote .button { min-height: 44px; flex-shrink: 0; }
.quick-quote .button.ghost { border-color: rgba(255,255,255,.5); color: white; }
.button.compact { padding-block: 9px; font-size: .78rem; }
.material-presets { margin: 4px 0 18px; }
.preset-caption { display: block; font-size: .7rem; color: var(--muted); margin-bottom: 6px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 34px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-size: .76rem; color: var(--green); }
.chip:hover, .chip:focus-visible { background: var(--green-light); }
.live-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; color: var(--muted); margin: 4px 0 14px; }
.live-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5ea882; flex-shrink: 0; }
.workspace-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(340px,.66fr); align-items: start; gap: 28px; }
.form-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.job-title { padding: 23px 28px 20px; background: #ecf0e6; border-bottom: 1px solid var(--line); }
.job-title label { display: flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 650; margin-bottom: 8px; }
.job-title label span { font-weight: 400; color: var(--muted); font-size: .7rem; }
.job-title input { width: 100%; background: transparent; border: 0; border-bottom: 1px solid #a8b5a4; padding: 5px 0 10px; border-radius: 0; font-size: 1rem; color: var(--ink); }
.job-title input::placeholder { color: var(--muted); }
.input-section { padding: 27px 28px; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 22px; }
.step-number { font: .72rem Consolas, monospace; width: 30px; height: 30px; border: 1px solid #cdd8c8; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; color: var(--green); margin-top: 2px; }
.section-heading h3 { font-size: 1.1rem; font-weight: 650; letter-spacing: -.02em; }
.section-heading p { color: var(--muted); font-size: .76rem; margin-top: 5px; line-height: 1.6; }
.slicer-strip { display: flex; align-items: center; justify-content: space-between; gap: 6px; border: 1px dashed #b9c8b0; border-radius: 9px; padding: 3px 10px 3px 14px; margin-bottom: 22px; background: #f5f7ef; }
.slicer-strip > span { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; }
.slicer-strip > span .icon { width: 16px; height: 16px; }
.slicer-strip .button { font-size: .71rem; padding-inline: 8px; color: var(--green); }
.field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 20px; row-gap: 19px; }
.field { min-width: 0; }
.field label { display: block; font-size: .8rem; font-weight: 650; margin-bottom: 8px; }
.input-wrap { position: relative; }
.field input { width: 100%; height: 48px; background: #fafbf6; border: 1px solid #c8d0c0; border-radius: 8px; color: var(--ink); padding: 11px 100px 11px 13px; font-size: 1rem; font-variant-numeric: tabular-nums; }
.field input:focus { background: white; border-color: var(--green); }
.field input::-webkit-inner-spin-button, .field input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.field input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.input-unit { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font: .68rem Consolas, monospace; color: var(--muted); pointer-events: none; }
.field > small { color: var(--muted); margin-top: 7px; font-size: .75rem; line-height: 1.55; }
.field .field-error { color: var(--danger); font-weight: 600; }
.field-slider { width: 100%; height: 40px; padding: 0; margin-top: 8px; background: transparent; border: none; accent-color: var(--green); }
.field select { width: 100%; height: 48px; background: #fafbf6; border: 1px solid #c8d0c0; border-radius: 8px; color: var(--ink); padding: 11px 13px; font-size: .9rem; }
.helper-output { color: var(--ink); font-size: .82rem; font-weight: 650; margin: 14px 0; }
[aria-invalid=true] { border-color: var(--danger) !important; background: #fff3f0 !important; }
.failure-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; margin-top: 22px; }
.small-note { color: var(--muted); font-size: .73rem; line-height: 1.65; border-left: 2px solid #ccd5c3; padding-left: 13px; }
.scope-note { margin-top: 18px; color: var(--muted); font-size: .7rem; line-height: 1.6; }
.settings-details { margin-top: 23px; border: 1px solid var(--line); border-radius: 10px; background: #fafbf6; }
summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .8rem; font-weight: 600; min-height: 48px; }
summary::-webkit-details-marker { display: none; }
summary > .icon { width: 16px; height: 16px; transition: transform .15s; }
details[open] > summary > .icon { transform: rotate(45deg); }
.settings-details summary { padding: 14px 16px; }
.settings-details summary > span { display: grid; grid-template-columns: 18px 1fr; column-gap: 8px; align-items: center; }
.settings-details summary > span .icon { width: 17px; height: 17px; }
.settings-details summary small { grid-column: 2; color: var(--muted); font-weight: 400; font-size: .72rem; margin-top: 3px; }
.settings-details .field-grid { padding: 18px 16px; border-top: 1px solid var(--line); }
.formula-note { border-left: 2px solid #c99066; margin-top: 22px; padding-left: 12px; font-size: .73rem; color: #6c593e; line-height: 1.65; }
.actuals-input { padding: 23px 28px; background: #f5f7ef; }
.toggle-label { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; }
.toggle-label input { accent-color: var(--green); width: 19px; height: 19px; flex-shrink: 0; margin-top: 3px; }
.toggle-label strong { font-size: .8rem; font-weight: 650; }
.toggle-label small { color: var(--muted); font-size: .73rem; margin-top: 4px; }
#actual-fields > p { font-size: .8rem; margin: 20px 0; color: var(--muted); }
.form-actions { border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 28px; }
.sticky-quote { position: sticky; top: 20px; }
.quote-column { height: 100%; }
.quote-card { border-radius: var(--radius) var(--radius) 0 0; background: var(--green); color: white; padding: 27px 26px 23px; position: relative; }
.quote-kicker { display: flex; justify-content: space-between; gap: 10px; color: #d4dfca; font: .59rem Consolas, monospace; letter-spacing: .1em; line-height: 1.6; }
.quote-amount { font-size: clamp(2.6rem, 4.4vw, 4rem); letter-spacing: -.05em; font-weight: 620; line-height: 1.1; display: block; margin-top: 20px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.quote-detail { font-size: .78rem; color: #d9e4d3; margin-top: 8px; }
.quote-detail > span { padding-inline: 5px; }
.quote-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin: 24px 0 21px; padding-top: 19px; border-top: 1px solid #426558; }
.metric span { display: block; font-size: .72rem; }
.quote-stats .metric span { color: #d2dfc8; }
.metric strong { display: block; margin-top: 7px; font-size: 1.3rem; font-weight: 580; letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.quote-use { width: 100%; background: var(--mint); border-color: var(--mint); color: #183e31; justify-content: space-between; font-size: .82rem; padding-inline: 15px; min-height: 44px; }
.quote-use:hover { background: #f2f7e6; }
.quote-card > small { color: #d3dfcb; font-size: .72rem; margin-top: 11px; }
.tax-helper { margin-top: 14px; }
.tax-helper label { display: flex; gap: 8px; align-items: center; font-size: .74rem; font-weight: 650; color: #d9e4d3; }
.tax-helper label span { font-weight: 400; color: #b9c8b0; font-size: .7rem; }
.tax-helper input { width: 90px; height: 38px; margin-top: 6px; border-radius: 8px; border: 1px solid #6f8a68; background: #2f5148; color: white; padding: 8px 30px 8px 10px; }
.tax-helper .helper-output { color: white; font-size: .78rem; }
.breakdown-card { padding: 23px 25px 0; background: var(--card); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; }
.panel-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.panel-title h3 { font-size: .89rem; font-weight: 650; letter-spacing: -.02em; }
.panel-title p { font-size: .78rem; margin-top: 7px; color: var(--muted); }
.pill { font: .55rem Consolas, monospace; letter-spacing: .02em; white-space: nowrap; color: var(--muted); background: #eff2e9; border: 1px solid #d8e0ce; border-radius: 4px; padding: 5px 6px; }
.cost-stack { display: block; width: 100%; height: 9px; border-radius: 3px; overflow: hidden; margin-top: 20px; background: #f0f2eb; }
.segment-material { fill: #54734e; background: #54734e; }
.segment-machine { fill: #97aa7e; background: #97aa7e; }
.segment-energy { fill: #ccd9b2; background: #ccd9b2; }
.segment-labor { fill: #bd7950; background: #bd7950; }
.segment-fulfillment { fill: #dcc3a2; background: #dcc3a2; }
.segment-fees { fill: #7b857a; background: #7b857a; }
.cost-list { margin: 20px 0 14px; }
.cost-list > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 7px; font-size: .77rem; }
.cost-list dt { display: flex; align-items: center; gap: 8px; }
.cost-list dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.swatch { width: 7px; height: 7px; border-radius: 2px; display: inline-block; flex-shrink: 0; }
.cost-total { display: flex; justify-content: space-between; gap: 10px; padding-top: 15px; border-top: 1px solid var(--line); font-size: .8rem; }
.cost-total strong { white-space: nowrap; }
.breakdown-note { color: var(--muted); font-size: .75rem; line-height: 1.6; margin-top: 10px; }
.quote-check { padding: 14px; margin-top: 20px; background: #edf2e5; border: 1px solid #d0debf; border-radius: 9px; }
.quote-check > span { font: .59rem Consolas, monospace; letter-spacing: .07em; }
.quote-check > div { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; margin: 7px 0; }
.quote-check strong { font-size: .98rem; letter-spacing: -.02em; }
.quote-check > div > span { font-size: .7rem; white-space: nowrap; }
.quote-check p { font-size: .67rem; }
.quote-check.warn, .quote-check.neutral { background: #fbf1dd; border-color: #dfc899; color: #73521e; }
.quote-check.danger { background: #fff0ea; border-color: #e8c3b5; color: var(--danger); }
.sensitivity { border-top: 1px solid var(--line); margin-top: 20px; padding: 7px 0; }
.sensitivity summary { font-size: .72rem; }
.sensitivity-options { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; margin-top: 7px; }
.sensitivity-option { border: 1px solid var(--line); border-radius: 7px; background: #f4f7ed; padding: 10px 3px; min-width: 0; }
.sensitivity-option:hover { background: #e4edd7; }
.sensitivity-option span { display: block; font-size: .7rem; }
.sensitivity-option strong { display: block; margin-top: 5px; font-size: .67rem; overflow-wrap: anywhere; }
.sensitivity > p { font-size: .72rem; color: var(--muted); margin: 12px 0; }
.report-actions { padding: 18px 0 0; }
.report-actions > .button-row { display: grid; grid-template-columns: 1fr 1fr; margin-top: 9px; }
.report-actions .export-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 7px; }
.report-actions > small { font-size: .75rem; color: var(--muted); text-align: center; margin-top: 5px; }
.result-paused { background: #fff4e5; border: 1px solid #d6b880; padding: 30px; border-radius: var(--radius); }
.result-paused h3 { margin: 14px 0 9px; }
.result-paused p { font-size: .9rem; }
.error-summary { border: 1px solid #d19381; color: var(--danger); background: #fff2ec; border-radius: 10px; padding: 19px 22px; margin-bottom: 20px; font-size: .87rem; }
.error-summary ul { padding-left: 20px; margin-bottom: 0; }
.error-summary li + li { margin-top: 7px; }
.error-summary a { color: var(--danger); }
.saved-panel { border: 1px solid var(--line); border-radius: 13px; background: var(--card); padding: 24px; margin: 0 0 22px; }
.saved-panel > .button-row { margin-top: 13px; }
.saved-row { display: flex; justify-content: space-between; align-items: center; gap: 15px; border-bottom: 1px solid var(--line); padding: 16px 0; }
.saved-row > div:first-child { min-width: 0; }
.saved-row strong { font-size: .88rem; overflow-wrap: anywhere; }
.saved-row small { color: var(--muted); font-size: .67rem; margin-top: 5px; }
.saved-empty { padding: 25px 0; font-size: .87rem; }
.saved-empty p { color: var(--muted); margin-top: 6px; }
.danger-text { color: var(--danger); }
.notice { border: 1px solid #d1ba8e; background: #fff4dd; color: #674f23; padding: 18px; border-radius: 9px; margin-block: 15px; }
#reconciliation { margin-top: 35px; border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); padding: 28px; }
.section-top { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 23px; }
.section-top h2 { font-size: 1.75rem; letter-spacing: -.04em; font-weight: 620; margin-top: 8px; }
.actual-metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 25px; background: #f0f4e8; padding: 24px; border-radius: 10px; }
.actual-metrics .metric span { color: var(--muted); }
.table-scroll { overflow-x: auto; margin-top: 22px; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: .8rem; }
caption { text-align: left; font-size: .74rem; color: var(--muted); padding-bottom: 15px; line-height: 1.6; }
th, td { padding: 13px 10px; border-bottom: 1px solid var(--line); }
th { font-weight: 550; }
thead th { font-size: .7rem; text-transform: uppercase; letter-spacing: .03em; background: #f4f6ef; }
td { font-variant-numeric: tabular-nums; }
.method-strip { display: grid; grid-template-columns: 160px 1fr auto; gap: 35px; align-items: center; margin-top: 45px; padding: 32px 0; border-block: 1px solid var(--line); }
.method-strip .eyebrow { line-height: 1.9; }
.method-strip h2 { font-size: 1.3rem; letter-spacing: -.035em; font-weight: 650; }
.method-strip p { font-size: .8rem; color: var(--muted); margin-top: 9px; max-width: 560px; }
.learn { padding-top: 50px; }
.muted { color: var(--muted); font-size: .8rem; }
.guide-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.guide-card { display: flex; flex-direction: column; border: 1px solid var(--line); background: #eeefe4; border-radius: 13px; padding: 27px; text-decoration: none; min-height: 248px; transition: background .15s; }
.guide-card:nth-child(2) { background: #efe8dd; }
.guide-card:nth-child(3) { background: #e9ede4; }
.guide-card:hover { background: var(--card); }
.guide-index { font: .61rem Consolas, monospace; letter-spacing: .08em; color: var(--muted); }
.guide-card h3 { font-size: 1.22rem; letter-spacing: -.035em; line-height: 1.3; font-weight: 620; margin-top: 21px; }
.guide-card p { color: var(--muted); font-size: .8rem; margin-top: 13px; }
.guide-arrow { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: auto; padding-top: 24px; font-size: .72rem; font-weight: 600; }
.guide-arrow .icon { width: 17px; height: 17px; }
.faq { display: grid; grid-template-columns: 1fr 1.7fr; gap: 60px; padding: 58px 0; }
.faq h2 { font-family: Georgia, serif; font-size: 2.1rem; font-weight: 400; letter-spacing: -.03em; margin-top: 12px; }
.faq details { padding-block: 8px; border-bottom: 1px solid var(--line); }
.faq summary { font-size: .84rem; }
.faq details p { color: var(--muted); font-size: .82rem; padding: 0 30px 18px 0; }
.site-footer { border-top: 1px solid var(--line); background: #eeefe6; padding: 35px 0 22px; }
.footer-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 35px; }
.footer-row .brand { font-size: 1.1rem; gap: 8px; }
.footer-row p { font-size: .75rem; color: var(--muted); margin-top: 13px; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 23px; padding-top: 5px; }
.footer-row nav a { font-size: .73rem; text-decoration: none; }
.footer-row nav a:hover { text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; margin-top: 30px; padding-top: 19px; border-top: 1px solid var(--line); font-size: .64rem; color: var(--muted); }
.mobile-quote { display: none; }
.toast { position: fixed; bottom: 25px; right: 25px; z-index: 20; max-width: min(440px,calc(100% - 40px)); padding: 17px 21px; background: var(--green); color: white; border: 1px solid #739077; box-shadow: 0 8px 32px #173f3522; border-radius: 12px; font-size: .82rem; line-height: 1.6; }
dialog { border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 30px; border-radius: 18px; width: min(530px,calc(100% - 32px)); max-height: calc(100dvh - 48px); box-shadow: 0 30px 100px #102f3544; }
dialog::backdrop { background: #17302580; backdrop-filter: blur(3px); }
dialog h2 { font-size: 1.6rem; letter-spacing: -.035em; margin-top: 12px; }
dialog p { font-size: .88rem; color: var(--muted); margin-top: 14px; }
.dialog-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 25px; }
.import-preview { border: 1px solid var(--line); background: #f0f4e7; border-radius: 10px; padding: 17px; margin-top: 19px; }
.import-preview p { margin-top: 0; overflow-wrap: anywhere; }
.import-preview dl > div { display: flex; justify-content: space-between; gap: 10px; font-size: .85rem; margin-top: 10px; }
.import-preview dd { margin: 0; font-weight: 600; }
.import-preview label { font-size: .8rem; font-weight: 600; display: block; margin-top: 20px; }
.import-preview input { width: 100%; padding: 10px; margin-top: 10px; background: var(--card); color: var(--ink); border: 1px solid #a9b99c; border-radius: 6px; }
.import-preview small { margin-top: 9px; color: var(--muted); }
#copy-text { display: block; width: 100%; resize: vertical; padding: 12px; font-size: .85rem; border: 1px solid var(--line); margin: 18px 0; line-height: 1.65; }
.article { max-width: 900px; padding-block: 34px 70px; }
.breadcrumb { display: flex; align-items: baseline; flex-wrap: wrap; gap: 9px; font-size: .75rem; color: var(--muted); margin-bottom: 42px; }
.article > h1 { font-size: clamp(2.1rem,4.5vw,3.4rem); line-height: 1.13; letter-spacing: -.045em; margin-top: 17px; font-weight: 650; }
.article-intro { color: var(--muted); font-size: 1.1rem; margin-block: 24px; }
.article > .button { margin-bottom: 25px; }
.article-body section { margin-top: 38px; }
.article-body h2, .sources h2, .related-guides h2 { font-size: 1.5rem; letter-spacing: -.025em; font-weight: 630; margin-bottom: 17px; }
.article-body p + p { margin-top: 16px; }
.article-body p { font-size: .99rem; line-height: 1.85; color: #435345; }
.sources, .related-guides { border-top: 1px solid var(--line); padding-top: 30px; margin-top: 35px; }
.sources a, .related-guides a { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 10px; font-size: .85rem; }
.sources > p { font-size: .76rem; color: var(--muted); margin-top: 12px; }
.print-only { display: none; }
.content-brief { margin-top: 48px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #eef1e7; }
.content-brief h2 { margin-top: 9px; font-size: 1.7rem; letter-spacing: -.04em; }
.content-brief article { margin-top: 22px; max-width: 900px; }
.content-brief article h3 { font-size: .95rem; }
.content-brief article p { margin-top: 6px; color: var(--muted); font-size: .82rem; line-height: 1.75; }
.research-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; border-top: 1px solid var(--line); margin-top: 25px; padding-top: 18px; }
.research-links .eyebrow { width: 100%; margin-bottom: 0; }
.research-links a { display: inline-flex; align-items: center; min-height: 24px; font-size: .76rem; }
.cost-breakdown { display: block; width: 100%; height: auto; border-radius: 8px; overflow: hidden; contain: layout; }
.cost-segment { transition: opacity .15s; }
@media (prefers-reduced-motion: no-preference) { .cost-segment { transition: opacity .15s, width .2s; } }
.cost-segment:hover, .cost-segment:focus-visible { opacity: .82; }
.cost-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; font-size: .78rem; color: var(--ink); }
.cost-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.cost-swatch { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.visual-table { margin-top: 14px; font-size: .82rem; }
.visual-table summary { cursor: pointer; color: var(--muted); }
.visual-table table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.visual-table td, .visual-table th { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.ad-slot { border: 1px dashed var(--line); border-radius: 10px; min-height: 180px; margin: 28px 0; padding: 14px; text-align: center; overflow: hidden; contain: layout; }
.ad-label { display: block; color: var(--muted); font: .6rem Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; }
.ad-placeholder { min-height: 130px; }
@media (min-width: 861px) and (max-height: 1000px) { .sticky-quote { position: static; } }
@media (min-width: 861px) and (max-width: 1100px) {
  .shell { padding-inline: 28px; }
  .starter-bar { grid-template-columns: 1fr; }
  .starter-label { display: flex; align-items: center; gap: 15px; }
  .workspace-grid { gap: 20px; grid-template-columns: minmax(0,1fr) 340px; }
  .input-section, .actuals-input, .job-title { padding-inline: 20px; }
  .field-grid { gap: 15px; }
  .field input { padding-right: 86px; }
  .input-unit { font-size: .6rem; right: 9px; }
  .method-strip { grid-template-columns: 1fr auto; }
  .method-strip > .eyebrow { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .shell { padding-inline: 24px; }
  .nav { min-height: 76px; gap: 20px; }
  .nav-links { gap: 20px; }
  .local-badge { display: none; }
  .hero { grid-template-columns: 1fr 235px; gap: 20px; padding-block: 32px; }
  .hero h1 { font-size: 3.4rem; }
  .hero-trust { gap: 13px; font-size: .66rem; flex-wrap: wrap; }
  .starter-bar { grid-template-columns: 1fr; gap: 12px; }
  .starter-label { display: flex; align-items: center; gap: 13px; }
  .workspace-grid { grid-template-columns: 1fr; }
  .quote-column { height: auto; }
  .sticky-quote { position: static; }
  .quote-amount { font-size: 4rem; }
  .workspace-toolbar h2 { font-size: 1.35rem; }
  .workspace-toolbar { flex-wrap: wrap; padding-top: 28px; }
  .quote-card { padding: 27px; }
  .quote-kicker { font-size: .72rem; }
  .quote-stats .metric strong { font-size: 1.7rem; }
  .quote-detail, .metric span, .cost-list > div { font-size: .86rem; }
  .quote-card > small, .breakdown-note { font-size: .75rem; }
  .panel-title h3 { font-size: 1.05rem; }
  .quote-check > span, .quote-check p { font-size: .73rem; }
  .quote-check strong { font-size: 1.2rem; }
  .quote-check > div > span { font-size: .85rem; }
  .sensitivity summary { font-size: .83rem; }
  .sensitivity-option span, .sensitivity-option strong { font-size: .86rem; }
  .sensitivity > p { font-size: .74rem; }
  .method-strip { grid-template-columns: 1fr; gap: 20px; }
  .method-strip .button { justify-self: start; }
  .guide-grid { gap: 12px; }
  .guide-card { padding: 20px; }
  .guide-card h3 { font-size: 1.06rem; }
  .section-top .muted { display: none; }
  .faq { grid-template-columns: 1fr; gap: 22px; }
  .footer-row { flex-direction: column; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  body:has(#planner) { padding-bottom: 84px; }
  .mobile-quote { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 10; background: var(--green); color: white;
    align-items: center; justify-content: space-between; gap: 15px; padding: 14px 24px calc(14px + env(safe-area-inset-bottom)); box-shadow: 0 -3px 22px #20352d20; }
  .mobile-quote > span { font-size: .72rem; color: #d4e1c9; }
  .mobile-quote strong { display: block; font-size: 1.25rem; margin-top: 3px; color: white; }
  .mobile-quote a { display: inline-flex; align-items: center; gap: 8px; font-size: .76rem; color: white; min-height: 44px; }
  .toast { bottom: 100px; }
}
@media (max-width: 560px) {
  .shell { padding-inline: 18px; }
  .nav { min-height: 69px; justify-content: space-between; gap: 14px; }
  .brand { font-size: 1.2rem; }
  .brandmark { width: 32px; height: 32px; margin-right: 7px; border-radius: 8px; }
  .brandmark .icon { width: 23px; height: 23px; }
  .nav-links { gap: 15px; margin-left: 0; }
  .nav-links a { font-size: .72rem; }
  .nav-links a:first-child { display: none; }
  .nav-links a:last-child { display: none; }
  .hero { grid-template-columns: 1fr; padding-block: 31px 25px; }
  .hero-art { display: none; }
  .hero h1 { font-size: 3.6rem; margin-top: 16px; }
  .hero .eyebrow { font-size: .6rem; }
  .hero-description { font-size: .9rem; }
  .hero-trust { gap: 16px; font-size: .66rem; margin-top: 18px; }
  .starter-label { display: block; }
  .starter-label small { margin-top: 2px; font-size: .69rem; }
  .starter-bar { padding-block: 16px; }
  .preset-options { gap: 7px; }
  .preset { padding: 10px 8px; gap: 0; min-height: 70px; }
  .preset-number, .preset > .icon { display: none; }
  .preset strong { font-size: .7rem; }
  .preset small { font-size: .6rem; line-height: 1.5; }
  .workspace-toolbar { gap: 15px; padding-block: 24px 17px; }
  .workspace-toolbar .button { font-size: .75rem; }
  .example-notice { font-size: .69rem; }
  .content-brief { margin-top: 30px; padding: 20px 17px; }
  .content-brief h2 { font-size: 1.35rem; }
  .content-brief article p { font-size: .76rem; }
  .research-links { display: grid; grid-template-columns: 1fr; gap: 7px; }
  .form-card { border-radius: 13px; }
  .job-title, .input-section, .actuals-input { padding: 20px 17px; }
  .job-title input { font-size: 1rem; }
  .section-heading { gap: 9px; }
  .section-heading h3 { font-size: 1.02rem; }
  .section-heading p { font-size: .73rem; }
  .step-number { width: 26px; height: 26px; font-size: .72rem; }
  .field-grid { column-gap: 14px; row-gap: 19px; }
  .field label { font-size: .75rem; line-height: 1.4; min-height: 22px; }
  .field input { height: 67px; padding: 8px 10px 25px; font-size: 1.08rem; }
  .input-unit { top: auto; bottom: 9px; left: 10px; right: auto; transform: none; font-size: .72rem; }
  .field > small { font-size: .72rem; }
  .failure-row { gap: 14px; align-items: start; }
  .small-note { font-size: .69rem; margin-top: 26px; padding-left: 11px; }
  .scope-note { font-size: .72rem; }
  .slicer-strip { padding-inline: 8px; }
  .slicer-strip > span { font-size: .72rem; gap: 4px; }
  .slicer-strip > span .icon { display: none; }
  .slicer-strip .button { font-size: .67rem; }
  .settings-details summary { padding: 12px; font-size: .76rem; }
  .settings-details .field-grid { padding: 17px 12px; }
  .settings-details summary small { font-size: .72rem; }
  .form-actions { padding: 13px 17px; }
  .form-actions .button { font-size: .72rem; padding-inline: 10px; }
  .quote-card, .breakdown-card { padding-inline: 22px; }
  .breakdown-card .pill { font-size: .49rem; }
  .cost-list > div { font-size: .8rem; }
  .quote-check > div { align-items: center; }
  .report-actions .button { font-size: .78rem; }
  .report-actions > small { font-size: .7rem; }
  .saved-panel { padding: 18px; }
  .saved-panel .panel-title h3 { font-size: .94rem; }
  .saved-row { flex-wrap: wrap; }
  #reconciliation { padding: 20px 16px; }
  #reconciliation .section-top { align-items: flex-start; flex-direction: column; gap: 14px; }
  .actual-metrics { grid-template-columns: 1fr 1fr; gap: 24px 15px; padding: 19px; }
  .actual-metrics .metric span { font-size: .7rem; }
  .actual-metrics .metric strong { font-size: 1.2rem; }
  th, td { padding: 10px 7px; font-size: .73rem; }
  .section-top h2 { font-size: 1.6rem; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-card { min-height: 205px; padding: 24px; }
  .guide-card h3 { font-size: 1.33rem; margin-top: 15px; }
  .guide-card p { font-size: .85rem; }
  .learn { padding-top: 38px; }
  .faq { padding-block: 40px; }
  .faq summary { font-size: .78rem; }
  .footer-row nav { gap: 17px; }
  .mobile-quote { padding-inline: 19px; }
  dialog { padding: 23px; }
  dialog h2 { font-size: 1.45rem; }
  .dialog-actions .button { font-size: .76rem; padding-inline: 12px; }
  .article { padding-top: 26px; }
  .article > h1 { font-size: 2.3rem; }
  .article-intro { font-size: 1rem; }
}
@media (max-width: 359px) {
  .hero h1 { font-size: 3rem; }
  .hero-trust { gap: 8px; font-size: .59rem; }
  .preset strong { font-size: .62rem; }
  .preset small { font-size: .55rem; }
  .panel-title h3 { font-size: .92rem; }
  .quote-kicker { font-size: .6rem; }
  .quote-check strong { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media (forced-colors: active) { .button, .quote-card, .field input, .form-card { border: 1px solid CanvasText; } .swatch { border: 1px solid CanvasText; } }
@media print {
  @page { size: A4; margin: 16mm; }
  body { background: white; color: black; font-size: 10pt; padding: 0 !important; }
  .site-header, .site-footer, .toast, #live-summary, dialog, .skip { display: none !important; }
  body:has(#planner) main > * { display: none !important; }
  body:has(#planner) main > #print-report { display: block !important; }
  .shell { max-width: none; padding: 0; }
  #print-report h1 { font-size: 21pt; margin-bottom: 15px; }
  #print-report h2 { font-size: 14pt; margin: 20px 0 10px; }
  #print-report p { font-size: 9pt; margin: 9px 0; }
  #print-report table { font-size: 8pt; }
  #print-report th, #print-report td { padding: 5px 7px; }
  #print-report .metric strong { font-size: 14pt; }
  #print-report .table-scroll { overflow: visible; }
  #print-report .actual-metrics { padding: 12px; gap: 12px; }
  tr { break-inside: avoid; }
  thead { display: table-header-group; }
  h2, h3 { break-after: avoid; }
  .article a.button { display: none; }
  /* The tool is wrapped for its visual variant, so keep the nested report in print mode. */
  body:has(#planner) main > .ux-job-ticket { display: block !important; }
  body:has(#planner) main > .ux-job-ticket > * { display: none !important; }
  body:has(#planner) main > .ux-job-ticket > #print-report { display: block !important; }
}

/* Keep the calculator within easy reach on small screens. */
@media (max-width: 560px) {
  .hero { padding-block: 22px; }
  .hero h1 { font-size: 2.8rem; margin-block: 12px; }
  .hero-description { font-size: .88rem; }
  .hero-trust { display: none; }
  .starter-bar { padding-block: 12px; gap: 8px; }
  .starter-label small { display: none; }
  .preset { min-height: 58px; padding: 10px 8px; }
  .preset small { font-size: .7rem; }
  .workspace-toolbar { padding-block: 18px 12px; gap: 10px; }
  .workspace-toolbar .eyebrow { display: none; }
  .workspace-toolbar h2 { font-size: 1.2rem; }
  .job-title { padding: 15px 18px 12px; }
  .job-title input { padding-block: 4px 8px; }
  .nav-links a:first-child { display: inline-flex; }
  .nav-links a:not(:first-child) { display: none; }
}

/* Long but valid prices and job names must not break narrow layouts. */
.cost-list dt, .cost-list dd, .cost-total > *, .quote-stats > *, .mobile-quote > span { min-width: 0; }
.cost-list dd, .cost-total strong, .metric strong, .quote-check, .mobile-quote strong { overflow-wrap: anywhere; white-space: normal; }
.cost-list dd { text-align: right; }
.quote-check > div { flex-wrap: wrap; }
.button span { min-width: 0; overflow-wrap: anywhere; }
.mobile-quote > span { max-width: 55%; }
@media (max-width: 560px) {
  .breakdown-card .pill { display: none; }
}

.mini-tool { padding: 1.5rem; margin: 2rem 0; border: 1px solid #cbd5c6; border-radius: 16px; background: #f2f5ec; }
.mini-tool input { width: 100%; padding: .8rem; font: inherit; border: 1px solid #819386; border-radius: 6px; background: white; color: #173f35; }
.mini-result { font-size: 2.5rem; font-weight: 700; margin-bottom: 0; }
[data-mini-error] { color: #8f2424; }
/* Compact launch layout: keep the pricing workbench close to the first viewport. */
.hero { padding-block: 18px 16px; }
.hero h1 { font-size: clamp(2.25rem, 3.8vw, 3.15rem); margin-block: 10px 12px; }
.hero-description { font-size: .88rem; line-height: 1.5; }
.hero-trust { margin-top: 14px; }
.hero-art { padding-top: 4px; }
/* Compact density: reduce repeated vertical chrome while keeping touch targets intact. */
.workspace-toolbar { padding-block: 16px 11px; }
.workspace-heading { margin-bottom: 16px; }
.section-heading { margin-bottom: 12px; }
.workspace, .workspace-grid { row-gap: 18px; }
.card, .panel, .result-section, .workspace-section, fieldset { margin-block: 14px; }
.form-group, .field-group, .input-group, .form-field { margin-block: 10px; }
.card, .panel, fieldset { padding-block: 14px; }
@media (max-width: 600px) {
  .workspace-toolbar { padding-block: 14px 9px; }
  .workspace, .workspace-grid { row-gap: 14px; }
  .card, .panel, .result-section, .workspace-section, fieldset { margin-block: 10px; }
  .card, .panel, fieldset { padding-block: 12px; }
}
/* Drastic density pass: expose the pricing form immediately. */
.hero { padding-block: 4px 6px; gap: 8px; }
.hero > div:first-child > .eyebrow, .hero-trust, .hero-art, .workspace-toolbar .eyebrow { display: none; }
.hero h1 { margin: 0 0 4px; font-size: clamp(2rem, 3.2vw, 2.8rem); }
.hero-description { line-height: 1.35; }
.workspace-toolbar { padding-block: 4px 6px; }
.starter-bar { padding-block: 4px; }
@media (max-width: 600px) { .hero { padding-block: 2px 4px; } .workspace-toolbar { padding-block: 3px 5px; } }
/* Aggressive landing density: keep pricing controls in the first viewport. */
.hero { padding-block: 8px 10px; }
.hero h1 { margin-block: 4px 6px; }
.hero-trust { margin-top: 8px; }
.hero-art { display: none; }
.starter-bar { padding-block: 10px; }
.ux-default:has(#workspace) { display: flex; flex-direction: column; }
.ux-default:has(#workspace) > .hero { order: 0; }
.ux-default:has(#workspace) > #workspace { order: 1; }
.ux-default:has(#workspace) > .starter-bar { order: 2; }
.ux-default:has(#workspace) > .method-strip { order: 3; }
.ux-job-ticket:has(#workspace) { display: flex; flex-direction: column; }
.ux-job-ticket:has(#workspace) > .hero { order: 0; }
.ux-job-ticket:has(#workspace) > #workspace { order: 1; }
.ux-job-ticket:has(#workspace) > .starter-bar { order: 2; }
.ux-job-ticket:has(#workspace) > .method-strip { order: 3; }
.ux-job-ticket:has(#workspace) > :not(.hero):not(#workspace):not(.starter-bar) { order: 3; }
.job-title { padding-block: 8px 7px; }
.input-section { padding-block: 6px; }
.section-heading { margin-bottom: 10px; }
.section-heading p { display: none; }
.slicer-strip { margin-bottom: 12px; }
@media (max-width: 600px) { .job-title { padding-block: 6px 5px; } .input-section { padding-block: 6px; } }
/* Final landing compression: preserve headings for assistive technology while removing duplicate visual chrome. */
.workspace-toolbar h2 { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.example-notice { margin-block: 2px 3px; line-height: 1.2; }
.example-notice { padding-bottom: 2px; }
.workspace-toolbar { padding-block: 0; }
.example-notice span { min-width: 0; }
.job-title { padding-block: 3px 3px; }
.job-title label { margin-bottom: 3px; }
.job-title input { padding-block: 3px 6px; }
#job-details { padding-top: 2px; }
#job-details .section-heading { margin-bottom: 3px; }
@media (max-width: 600px) { .example-notice { margin-block: 1px 2px; font-size: .68rem; } .job-title { padding-block: 3px; } }
/* Keep the live suggested price compact so it and the first inputs both fit the mobile fold. */
.quick-quote { padding: 10px 16px; margin-bottom: 12px; border-radius: 13px; }
.quick-quote-price { font-size: clamp(1.3rem, 5.5vw, 1.7rem); }
@media (max-width: 600px) {
  .quick-quote { padding: 8px 14px; gap: 8px; }
  .quick-quote .button { padding-inline: 10px; font-size: .72rem; }
  .quick-quote small { display: none; }
}

/* Analytics consent banner and preferences panel (injected by analytics.js) */
.analytics-consent{position:fixed;right:1rem;bottom:1rem;left:auto;z-index:1000;box-sizing:border-box;width:min(22rem,calc(100vw - 2rem));margin:0;padding:1rem 1.125rem;border:1px solid #cfcfcf;border-radius:10px;background:#fff;color:#1a1a1a;font:inherit;font-size:.875rem;line-height:1.45;box-shadow:0 10px 30px rgba(0,0,0,.18)}
.analytics-consent h2{margin:0 0 .5rem;font-size:1rem;line-height:1.3;color:inherit}
.analytics-consent p{margin:0 0 .75rem;color:inherit}
.analytics-consent button{display:inline-block;margin:0 .5rem .25rem 0;padding:.5rem .85rem;border:1px solid #1a1a1a;border-radius:6px;background:#1a1a1a;color:#fff;font:inherit;font-size:.875rem;font-weight:600;line-height:1.2;cursor:pointer;min-height:40px}
.analytics-consent button[data-analytics="decline"],.analytics-consent button[data-analytics="close"]{background:#fff;color:#1a1a1a}
.analytics-consent button:hover{opacity:.88}
.analytics-consent button:focus-visible{outline:3px solid #2563eb;outline-offset:2px}
.analytics-consent[role="dialog"]{bottom:auto;top:50%;left:50%;right:auto;transform:translate(-50%,-50%);width:min(26rem,calc(100vw - 2rem))}
body > button[data-action="privacy-choices"]{position:fixed;left:1rem;bottom:1rem;z-index:999;margin:0;padding:.4rem .7rem;border:1px solid #cfcfcf;border-radius:999px;background:#fff;color:#1a1a1a;font:inherit;font-size:.75rem;line-height:1.2;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.12)}
body > button[data-action="privacy-choices"]:focus-visible{outline:3px solid #2563eb;outline-offset:2px}
@media (max-width:480px){.analytics-consent{right:.75rem;bottom:.75rem;width:calc(100vw - 1.5rem)}}
@media print{.analytics-consent,body > button[data-action="privacy-choices"]{display:none}}
/* Landing-page interaction motion. */
@keyframes landing-tool-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes landing-result-ready { 0% { opacity: .72; transform: scale(.985); } 100% { opacity: 1; transform: scale(1); } }
main > :first-child { animation: landing-tool-enter .46s cubic-bezier(.2,.75,.25,1) both; }
main :where(form, .workspace, .studio, .calculator, .dashboard, [data-workspace]) { transition: transform .2s ease, box-shadow .2s ease; }
main :where(form, .workspace, .studio, .calculator, .dashboard, [data-workspace]):focus-within { transform: translateY(-2px); }
main :where(output, [aria-live="polite"], .result, .results, .summary, .metric):not(:empty) { animation: landing-result-ready .32s ease-out both; }
@media (prefers-reduced-motion: reduce) { main > :first-child, main :where(output, [aria-live="polite"], .result, .results, .summary, .metric):not(:empty) { animation: none; } main :where(form, .workspace, .studio, .calculator, .dashboard, [data-workspace]) { transition: none; } }
@keyframes result-pulse { 0% { background-color: rgba(94, 168, 130, .16); } 100% { background-color: transparent; } }
@media (prefers-reduced-motion: no-preference) { #results.result-pulse { animation: result-pulse .6s ease-out; border-radius: 12px; } }
@keyframes spool-preset-hover { 0%, 100% { transform: translateY(0) rotate(0deg); } 42% { transform: translateY(-2px) rotate(.5deg); } 74% { transform: translateY(1px) rotate(-.25deg); } }
@media (prefers-reduced-motion: no-preference) { .preset:hover, .preset:focus-visible { animation: spool-preset-hover .52s cubic-bezier(.2,.75,.25,1) both; transform-origin: center; } }
@media (prefers-reduced-motion: reduce) { .preset:hover, .preset:focus-visible { animation: none; } }

.result-comparison{margin-block:1.2rem;padding:clamp(1rem,3vw,1.5rem);border:1px solid var(--line,#d6d9d4);border-radius:12px;background:var(--paper,#fffefa);min-width:0;color:var(--ink,#21352e)}
.result-comparison h2{font:600 clamp(1.15rem,2.5vw,1.5rem)/1.2 ui-serif,Georgia,serif;margin:0 0 .5rem}
.result-comparison p{font-size:.875rem;line-height:1.6;max-width:65ch;margin:.5rem 0 1rem}
.comparison-actions{display:flex;flex-wrap:wrap;gap:.6rem}
.comparison-actions button{min-height:44px;max-width:100%;padding:.6rem .9rem;border:1px solid currentColor;border-radius:6px;background:transparent;color:inherit;font:inherit;font-size:.8rem;font-weight:600;line-height:1.4;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
.comparison-actions button:focus-visible{outline:3px solid currentColor;outline-offset:3px}
.comparison-actions button:disabled{opacity:.55;cursor:default}
.comparison-actions [hidden]{display:none}
.comparison-table-wrap{overflow-x:auto;max-width:100%}
.result-comparison table{border-collapse:collapse;width:100%;font-size:.8rem;table-layout:fixed}
.result-comparison caption{text-align:left;padding-block:.75rem;font-size:.75rem}
.result-comparison th,.result-comparison td{text-align:left;padding:.65rem .4rem;border-bottom:1px solid var(--line,#d6d9d4);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.comparison-changed td:last-child{font-weight:700;text-decoration:underline;text-underline-offset:3px}
.comparison-status:empty{display:none}
@media(max-width:480px){.comparison-actions button{flex:1 1 100%}.result-comparison table{font-size:.72rem}}
@media print{.comparison-actions,.comparison-status{display:none}.result-comparison{break-inside:avoid;box-shadow:none}}
