@font-face {
  font-family: Manrope;
  src: url("assets/Manrope-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ink: #151512;
  --muted: #81817d;
  --line: #dadad5;
  --paper: #fff;
  --canvas: #ecece8;
  --accent: #2f66ff;
  --editor-width: 420px;
  --font-display: clamp(2.25rem, 3.4vw, 3.5rem);
  --font-h2: clamp(1.5rem, 2vw, 2rem);
  --font-h3: 1.125rem;
  --font-body: 1rem;
  --font-small: .875rem;
  --font-caption: .75rem;
  --leading-tight: 1.12;
  --leading-heading: 1.25;
  --leading-body: 1.65;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Manrope, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.app-bar {
  position: sticky;
  z-index: 20;
  top: 0;
  height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #fff;
  background: rgba(17, 17, 15, .96);
  backdrop-filter: blur(12px);
}
.brand { position: relative; display: flex; align-items: center; color: inherit; text-decoration: none; }
.brand img { display: block; width: 156px; height: auto; filter: invert(1); }
.brand small { position: absolute; left: 67px; top: 34px; font-size: 7px; letter-spacing: 2px; }
.brand-mark { display: flex; align-items: end; gap: 3px; width: 48px; height: 34px; }
.brand-mark i { display: block; width: 14px; height: 28px; background: #fff; transform: skewY(-29deg); }
.brand-mark i:first-child { height: 18px; align-self: start; }
.app-actions { display: flex; align-items: center; gap: 9px; }
.save-state { margin-right: 5px; color: #8f8f89; font-size: 12px; }
.button {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 650;
  font-size: 12px;
  transition: .2s ease;
}
.button.primary { color: #111; background: #fff; }
.button.secondary { color: inherit; border-color: #3c3c39; background: transparent; }
.button:hover { transform: translateY(-1px); }

.workspace { display: grid; grid-template-columns: var(--editor-width) minmax(0, 1fr); align-items: start; }
.editor {
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  padding: 31px 28px 70px;
  overflow: auto;
  background: #f7f7f4;
  border-right: 1px solid #d5d5d0;
}
.editor-heading h1 { margin: 5px 0 8px; font-size: 28px; letter-spacing: -.8px; }
.editor-heading > p:last-child { margin: 0 0 25px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.eyebrow { margin: 0; color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { padding: 18px 0; font-size: 13px; font-weight: 750; list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: #888; font-size: 17px; font-weight: 400; }
details[open] summary::after { content: "−"; }
.fields { padding: 0 0 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field-help { margin: -8px 0 14px; color: #92928d; font-size: 10px; line-height: 1.5; }
.solution-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-bottom: 16px; }
.solution-card { position: relative; display: block; cursor: pointer; }
.solution-card input { position: absolute; opacity: 0; pointer-events: none; }
.solution-card span { min-height: 64px; padding: 11px; display: flex; flex-direction: column; justify-content: center; border: 1px solid #d1d1cc; border-radius: 8px; background: #fff; }
.solution-card b { color: #252522; font-size: 11px; }
.solution-card small { margin-top: 3px; color: #969690; font-weight: 450; }
.solution-card input:checked + span { color: #fff; border-color: #151512; background: #151512; }
.solution-card input:checked + span b, .solution-card input:checked + span small { color: #fff; }
.solution-options { padding-bottom: 20px; display: grid; gap: 10px; }
.option-group { margin: 0; padding: 12px; border: 1px solid #d6d6d1; border-radius: 8px; }
.option-group legend { padding: 0 5px; font-size: 10px; font-weight: 800; }
.option-group > p { margin: 0 0 10px; color: #858580; font-size: 9px; line-height: 1.5; }
.option-group > div { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.option-group label { display: flex; align-items: center; gap: 7px; font-size: 9px; font-weight: 550; }
.option-group input[type="checkbox"] { width: 14px; height: 14px; accent-color: #151512; }
.module-group > div { display: block; }
.module-list { display: grid !important; grid-template-columns: 1fr !important; gap: 10px !important; }
.module-editor { padding: 11px; display: grid; gap: 8px; border: 1px solid #d7d7d2; border-radius: 8px; opacity: .58; background: #fafaf8; }
.module-editor.active { opacity: 1; border-color: #aaa; background: #fff; }
.module-toggle { display: flex; align-items: center; gap: 7px; color: #777; font-size: 8px; text-transform: uppercase; letter-spacing: .7px; }
.module-editor.active .module-toggle { color: #1d1d1a; }
.module-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.module-kind { color: #999; font-size: 7px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.module-section-title { margin: 8px 0 2px; font-size: 11px; }
.module-section-title.maintenance { margin-top: 22px; padding-top: 16px; border-top: 1px solid #ccc; }
.module-section-copy { margin: 0 0 10px !important; }
.extra-cost { grid-template-columns: 1fr 110px; align-items: center; }
.extra-cost input { height: 34px; }
.cost-item-list { display: grid; gap: 8px; }
.cost-item { padding: 9px; display: grid; grid-template-columns: 1fr 105px; gap: 9px; align-items: center; border-radius: 6px; background: #f1f1ee; }
.cost-item b { display: block; color: #333; font-size: 9px; }
.cost-item small { display: block; margin-top: 3px; color: #858580; font-size: 8px; line-height: 1.4; }
.cost-item label { font-size: 8px; }
.cost-item input { height: 34px; }
.content-options { margin-top: 8px; }
.content-extra-list { display: grid; gap: 10px; }
.content-extra-editor { padding: 11px; display: grid; gap: 8px; border: 1px solid #d7d7d2; border-radius: 8px; opacity: .58; background: #fafaf8; }
.content-extra-editor.active { opacity: 1; border-color: #aaa; background: #fff; }
.content-extra-editor > input { font-weight: 750; }
.content-extra-editor textarea { min-height: 76px; }
.module-title { height: 34px; font-weight: 750; }
.module-editor textarea { min-height: 76px; }
label { display: grid; gap: 6px; color: #555550; font-size: 10px; font-weight: 700; }
label small { color: #a1a19b; font-weight: 450; line-height: 1.4; }
label.wide { grid-column: 1 / -1; }
input, textarea, select {
  width: 100%;
  min-width: 0;
  border: 1px solid #d1d1cc;
  border-radius: 7px;
  outline: none;
  color: #222;
  background: #fff;
  font-size: 12px;
}
input, select { height: 40px; padding: 0 10px; }
textarea { padding: 10px; resize: vertical; line-height: 1.55; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 102, 255, .08); }

.preview-shell { min-width: 0; padding: 42px; }
.proposal {
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto;
  color: #181816;
  background: var(--paper);
  box-shadow: 0 16px 50px rgba(0, 0, 0, .12);
}
.page {
  position: relative;
  width: 210mm;
  min-height: 297mm;
  padding: 22mm 23mm 21mm 26mm;
  overflow: hidden;
  background: #fff;
  break-after: page;
}
.page:last-child { break-after: auto; }
.rail { position: absolute; inset: 0 auto 0 15mm; width: 1px; border-left: 1px dotted #aaa; }
.rail.right { inset: 0 15mm 0 auto; border-color: #2450a0; }
.rail-dot { position: absolute; left: -3px; width: 6px; height: 6px; border-radius: 50%; background: #191917; }
.rail-dot.top { top: 17%; }
.rail-dot.bottom { bottom: 7%; }
.proposal-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 21mm; }
.proposal-logo img { display: block; width: 57mm; height: auto; }
.proposal-logo small { display: block; margin: 2mm 0 0 28mm; font-size: 5.5px; letter-spacing: 1.25px; }
.proposal-meta { text-align: right; font-size: 8px; line-height: 1.65; color: #91918c; }
.hero-kicker { margin: 0 0 7px; color: #777772; font-size: 9px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.hero h1 { max-width: 125mm; margin: 0 0 8mm; font-size: 24px; line-height: 1.18; letter-spacing: -1px; }
.hero p { max-width: 133mm; margin: 0; color: #73736f; font-size: 11px; line-height: 1.7; }
.price-box { margin-top: 15mm; padding: 8mm 0; display: flex; justify-content: space-between; align-items: end; border-top: 1px solid #deded9; border-bottom: 1px solid #deded9; }
.goal-block { margin: 10mm 0 0; padding-left: 6mm; border-left: 2px solid #181816; }
.price-label { color: #8a8a85; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; }
.price { font-size: 28px; font-weight: 750; letter-spacing: -1px; }
.price.annual { font-size: 22px; }
.price-columns { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8mm; }
.price-columns > div > small { color: #999; font-size: 7px; }
.price small { font-size: 9px; color: #8a8a85; font-weight: 450; letter-spacing: 0; }
.section { margin-bottom: 11mm; }
.section h2 { margin: 0 0 4mm; font-size: 14px; letter-spacing: -.2px; }
.section h3 { margin: 5mm 0 1.5mm; font-size: 10px; }
.section p, .section li { color: #858580; font-size: 9px; line-height: 1.55; }
.section p { margin: 0 0 3mm; white-space: pre-line; }
.clean-list { margin: 0; padding: 0; list-style: none; }
.clean-list li { position: relative; padding: 1.2mm 0 1.2mm 6mm; }
.clean-list li::before { content: ""; position: absolute; left: 0; top: 3.2mm; width: 3px; height: 3px; border-radius: 50%; background: #777; }
.revision-note { margin-top: 4mm !important; font-weight: 700; }
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 10mm; }
.content-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4mm; }
.content-card { padding: 5mm; border: 1px solid #deded9; }
.content-card > span { color: #aaa; font-size: 6px; }
.content-card h3 { margin: 3mm 0 2mm; font-size: 9px; }
.content-card p { margin: 0; font-size: 7px; line-height: 1.55; }
.content-extra-output { margin-top: 5mm; padding-top: 4mm; border-top: 1px solid #d7d7d2; }
.content-extra-output b { font-size: 8px; }
.content-extra-output p { margin: 2mm 0 !important; }
.content-extra-output span { color: #555; font-size: 6px; font-weight: 750; text-transform: uppercase; }
.technology-list { display: grid; grid-template-columns: 1fr 1fr; gap: 7mm; }
.technology-block { padding: 5mm; border: 1px solid #deded9; }
.technology-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 4mm; }
.technology-heading h3 { margin: 0; color: #222; font-size: 11px; }
.technology-heading span { color: #aaa; font-size: 6px; }
.technology-block > p { margin: 3mm 0; font-size: 7px; }
.technology-block ul { margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5mm 4mm; list-style: none; }
.technology-block li { font-size: 7px; }
.technology-block li::before { content: "•"; margin-right: 2mm; }
.technology-block.detailed { grid-column: 1 / -1; padding: 0; border: 0; }
.technology-block.detailed > p { max-width: 130mm; margin-bottom: 7mm; }
.scope-services { display: grid; grid-template-columns: 1fr 1fr; gap: 6mm 10mm; margin-top: 7mm; }
.scope-service { padding-top: 4mm; border-top: 1px solid #ddd; }
.scope-service-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 4mm; }
.scope-service h3 { margin: 0 0 1mm; font-size: 9px; }
.scope-service-heading span { color: #777; font-size: 6px; font-weight: 700; text-transform: uppercase; }
.scope-service p { margin: 0; font-size: 7px; line-height: 1.5; }
.scope-cost-items { margin-top: 4mm; display: grid; gap: 2mm; }
.scope-cost-items > div { padding: 3mm; border-left: 2px solid #ddd; }
.scope-cost-items b { font-size: 7px; }
.scope-cost-items p { margin: 1mm 0 !important; font-size: 6.5px; }
.scope-cost-items span { color: #555; font-size: 6px; font-weight: 700; }
.section-number { margin-bottom: 2mm !important; color: #aaa !important; font-size: 7px !important; letter-spacing: 1px; }
.service-price { margin-top: 5mm !important; color: #222 !important; font-size: 16px !important; font-weight: 750; }
.service-price small { color: #999; font-size: 7px; font-weight: 450; }
.service-divider { margin-top: 12mm; padding-top: 9mm; border-top: 1px solid #ddd; }
.implementation-only { grid-template-columns: 1fr auto; }
.annual-maintenance { margin-top: 16mm; padding: 9mm; color: #fff; background: #171715; }
.annual-maintenance h2 { margin: 0 0 3mm; font-size: 15px; }
.annual-intro { margin: 0 0 7mm; color: #aaa !important; font-size: 8px !important; }
.maintenance-group { margin-top: 6mm; }
.maintenance-group > h3 { margin: 0 0 3mm; color: #fff; font-size: 9px; }
.maintenance-service { display: grid; grid-template-columns: 38mm 1fr; gap: 5mm; padding: 3mm 0; border-top: 1px solid #343431; }
.maintenance-service b { font-size: 8px; }
.maintenance-service p { margin: 0; color: #aaa; font-size: 7px; line-height: 1.5; }
.annual-price { margin-top: 8mm; padding-top: 6mm; display: flex; justify-content: space-between; gap: 10mm; border-top: 1px solid #555; }
.annual-price div { display: grid; gap: 1mm; }
.annual-price span, .annual-price small { color: #999; font-size: 6px; text-transform: uppercase; }
.annual-price b { font-size: 14px; }
.item-list { display: grid; gap: 5mm; }
.item h3 { margin: 0 0 1mm; color: #5d5d59; font-size: 9px; }
.item p { margin: 0; }
.timeline { margin-top: 5mm; display: grid; gap: 6mm; }
.timeline-item { position: relative; padding-left: 8mm; }
.timeline-item::before { content: ""; position: absolute; left: 0; top: 2mm; width: 5px; height: 5px; border: 1px solid #222; border-radius: 50%; background: #fff; }
.timeline-item::after { content: ""; position: absolute; left: 2.7px; top: 7px; bottom: -7mm; border-left: 1px dotted #aaa; }
.timeline-item:last-child::after { display: none; }
.timeline-item b { display: block; margin-bottom: 1mm; font-size: 10px; }
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3mm; }
.process-item { padding-top: 3mm; border-top: 1px solid #222; }
.process-item > b { color: #aaa; font-size: 7px; }
.process-item h3 { margin: 2mm 0 1mm; font-size: 8px; }
.process-item p { font-size: 7px; line-height: 1.45; }
.acceptance-box { margin-top: 18mm; padding: 6mm; border: 1px solid #d2d2cd; }
.acceptance-box h2 { margin: 0 0 2mm; font-size: 12px; }
.acceptance-box p { margin: 0; color: #858580; font-size: 8px; line-height: 1.5; }
.acceptance-fields { display: grid; grid-template-columns: 2fr 1fr; gap: 8mm; margin-top: 8mm; }
.acceptance-fields span { padding-top: 2mm; border-top: 1px solid #999; color: #999; font-size: 7px; }
.closing { position: absolute; left: 26mm; right: 23mm; bottom: 28mm; }
.signature { margin-top: 9mm; color: #777; font-size: 9px; line-height: 1.7; }
.footer-note { position: absolute; right: 24mm; bottom: 13mm; color: #999; font-size: 7px; }
.page-number { position: absolute; left: 26mm; bottom: 13mm; color: #aaa; font-size: 7px; }
.customer-banner { max-width: 210mm; margin: 0 auto 15px; display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.customer-banner span { margin-right: auto; color: #777; font-size: 12px; }
.customer-banner .primary { background: #111; color: #fff; }

dialog { width: min(700px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 16px; box-shadow: 0 30px 90px rgba(0,0,0,.3); }
dialog::backdrop { background: rgba(0,0,0,.55); backdrop-filter: blur(3px); }
.dialog-card { padding: 26px; }
.dialog-head { display: flex; justify-content: space-between; }
.dialog-head h2 { margin: 5px 0 0; }
.dialog-card > p { color: #777; font-size: 12px; }
.dialog-card textarea { min-height: 280px; font-family: ui-monospace, monospace; font-size: 10px; }
.dialog-actions { margin-top: 14px; display: flex; justify-content: flex-end; gap: 8px; }
.dialog-actions .secondary { color: #222; border-color: #ccc; }
.dialog-actions .primary { color: #fff; background: #111; }
.icon-button { border: 0; background: none; font-size: 26px; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 24px; padding: 11px 17px; border-radius: 99px; opacity: 0; transform: translate(-50%, 15px); color: #fff; background: #111; font-size: 12px; pointer-events: none; transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

body.customer-mode .workspace { display: block; }
body.customer-mode .editor { display: none; }
body.customer-mode .preview-shell { padding-top: 25px; }
.customer-file { background: #fff; }
.client-toolbar {
  position: sticky;
  z-index: 20;
  top: 0;
  height: 68px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #171715;
}
.client-toolbar img { width: 155px; filter: invert(1); }
.client-toolbar button {
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: #171715;
  background: #fff;
  font-weight: 700;
}
.client-proposal-wrap { padding: 32px; background: #f2f2ef; }
.customer-file .proposal { margin: 0 auto; }

@media screen {
  .proposal {
    width: min(1040px, 100%);
    min-height: 0;
    background: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .08);
  }
  .page {
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 64px 76px;
    overflow: visible;
    border-radius: 0;
    box-shadow: none;
    break-after: auto;
  }
  .page:first-child { padding-top: 62px; }
  .page + .page { border-top: 1px solid #ecece8; }
  .rail, .page-number, .footer-note { display: none; }
  .proposal-header { margin-bottom: 64px; }
  .closing { position: static; margin-top: 70px; }

  /* HTML typography system */
  .proposal-logo img { width: 225px; }
  .proposal-logo small {
    margin: 8px 0 0 110px;
    font-size: 7px;
    letter-spacing: 1.5px;
  }
  .proposal-meta {
    font-size: var(--font-caption);
    line-height: 1.6;
  }
  .hero-kicker {
    margin-bottom: 12px;
    font-size: var(--font-caption);
    letter-spacing: 1.4px;
  }
  .hero h1 {
    max-width: 760px;
    margin-bottom: 28px;
    font-size: var(--font-display);
    line-height: var(--leading-tight);
    letter-spacing: -.045em;
  }
  .hero p {
    max-width: 780px;
    font-size: var(--font-body);
    line-height: var(--leading-body);
  }
  .goal-block {
    margin-top: 42px;
    padding-left: 24px;
  }
  .price-box {
    margin-top: 52px;
    padding: 30px 0;
  }
  .price-label {
    font-size: var(--font-caption);
    letter-spacing: 1.2px;
  }
  .price { font-size: 2.5rem; }
  .price small { font-size: var(--font-caption); }
  .price-columns > div > small { font-size: var(--font-caption); }
  .section { margin-bottom: 52px; }
  .section h2, .annual-maintenance h2 {
    margin-bottom: 20px;
    font-size: var(--font-h2);
    line-height: var(--leading-heading);
    letter-spacing: -.025em;
  }
  .section h3 { font-size: var(--font-h3); }
  .section p, .section li {
    font-size: var(--font-body);
    line-height: var(--leading-body);
  }
  .clean-list li { padding: 7px 0 7px 24px; }
  .clean-list li::before { top: 17px; width: 4px; height: 4px; }
  .revision-note { margin-top: 18px !important; }
  .technology-heading h3 { font-size: 1.35rem; }
  .technology-heading span { font-size: var(--font-caption); }
  .technology-block > p {
    margin: 14px 0;
    font-size: var(--font-small);
    line-height: var(--leading-body);
  }
  .scope-services {
    gap: 32px 44px;
    margin-top: 32px;
  }
  .scope-service { padding-top: 18px; }
  .scope-service h3 { font-size: var(--font-h3); }
  .scope-service-heading span { font-size: var(--font-caption); }
  .scope-service p {
    font-size: var(--font-small);
    line-height: 1.65;
  }
  .scope-cost-items { margin-top: 18px; gap: 10px; }
  .scope-cost-items > div { padding: 14px; }
  .scope-cost-items b { font-size: var(--font-small); }
  .scope-cost-items p { font-size: var(--font-caption) !important; }
  .scope-cost-items span { font-size: var(--font-caption); }
  .content-grid { gap: 16px; }
  .content-card { padding: 22px; }
  .content-card > span { font-size: var(--font-caption); }
  .content-card h3 {
    margin: 14px 0 10px;
    font-size: var(--font-h3);
  }
  .content-card p {
    font-size: var(--font-small);
    line-height: 1.65;
  }
  .content-extra-output { margin-top: 22px; padding-top: 18px; }
  .content-extra-output b { font-size: var(--font-small); }
  .content-extra-output p { margin: 8px 0 !important; }
  .content-extra-output span { font-size: var(--font-caption); }
  .item-list { gap: 24px; }
  .item h3 {
    margin-bottom: 5px;
    font-size: var(--font-h3);
  }
  .process-grid { gap: 16px; }
  .process-item { padding-top: 14px; }
  .process-item > b { font-size: var(--font-caption); }
  .process-item h3 {
    margin: 12px 0 6px;
    font-size: var(--font-small);
  }
  .process-item p {
    font-size: var(--font-caption);
    line-height: 1.55;
  }
  .service-price {
    margin-top: 22px !important;
    font-size: 1.75rem !important;
  }
  .service-price small { font-size: var(--font-caption); }
  .annual-maintenance {
    margin-top: 64px;
    padding: 40px;
  }
  .annual-intro {
    max-width: 760px;
    margin-bottom: 30px;
    font-size: var(--font-small) !important;
    line-height: 1.65;
  }
  .maintenance-group > h3 {
    margin-bottom: 16px;
    font-size: var(--font-h3);
  }
  .maintenance-service {
    grid-template-columns: 180px 1fr;
    gap: 24px;
    padding: 16px 0;
  }
  .maintenance-service b { font-size: var(--font-small); }
  .maintenance-service p {
    font-size: var(--font-small);
    line-height: 1.6;
  }
  .annual-price {
    margin-top: 32px;
    padding-top: 26px;
  }
  .annual-price span, .annual-price small { font-size: var(--font-caption); }
  .annual-price b { font-size: 1.6rem; }
  .timeline { gap: 26px; }
  .timeline-item { padding-left: 30px; }
  .timeline-item b { font-size: var(--font-body); }
  .timeline-item p { font-size: var(--font-small); }
  .acceptance-box { padding: 28px; }
  .acceptance-box h2 { font-size: 1.35rem; }
  .acceptance-box p {
    font-size: var(--font-small);
    line-height: 1.6;
  }
  .acceptance-fields span, .signature { font-size: var(--font-small); }

  /* Builder typography */
  .editor-heading > p:last-child, .field-help {
    font-size: .84rem;
    line-height: 1.6;
  }
  summary { font-size: .95rem; }
  label { font-size: .8rem; }
  input, textarea, select {
    font-size: .94rem;
    line-height: 1.55;
  }
  .solution-card b { font-size: .88rem; }
  .solution-card small {
    font-size: .76rem;
    line-height: 1.45;
  }
  .option-group > p {
    font-size: .78rem;
    line-height: 1.55;
  }
  .option-group legend { font-size: .8rem; }
  .module-section-title { font-size: .94rem; }
  .module-section-copy { font-size: .78rem !important; }
  .module-toggle { font-size: .74rem; }
  .module-kind { font-size: .68rem; }
  .module-title { font-size: .94rem; }
  .cost-item b { font-size: .8rem; }
  .cost-item small { font-size: .72rem; }
  .cost-item label { font-size: .7rem; }
  .content-extra-editor > input { font-size: .94rem; }
}

@media (max-width: 1180px) {
  :root { --editor-width: 340px; }
  .preview-shell { padding: 16px; overflow: hidden; }
  .proposal { width: 100%; transform-origin: top left; }
  .page { padding-right: 46px; padding-left: 46px; }
  .maintenance-service { grid-template-columns: 1fr; gap: 8px; }
  .app-bar { padding-right: 14px; padding-left: 14px; }
  .app-actions { gap: 6px; }
  .app-actions .button { padding-right: 11px; padding-left: 11px; }
}
@media (max-width: 920px) {
  .app-bar { height: auto; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
  .app-actions { flex-wrap: wrap; justify-content: flex-end; }
  .workspace { display: block; }
  .editor { position: static; width: 100%; height: auto; }
  .preview-shell { padding: 18px 0; }
  .page { padding: 48px 36px; }
  .two-columns, .technology-list, .scope-services, .process-grid, .content-grid { grid-template-columns: 1fr; }
  .client-proposal-wrap { padding: 0; }
}
@media (max-width: 760px) {
  .app-bar { height: auto; padding: 14px 16px; align-items: flex-start; }
  .app-actions { flex-wrap: wrap; justify-content: flex-end; }
  .save-state { display: none; }
  .workspace { display: block; }
  .editor { position: static; width: 100%; height: auto; }
  .preview-shell { padding: 18px 0; }
  .proposal { width: 100%; margin: 0; transform: none; }
  .page { width: 100%; padding: 38px 28px; }
  .preview-shell { height: auto; }
  .two-columns, .technology-list, .scope-services, .process-grid, .content-grid { grid-template-columns: 1fr; }
  .price-columns { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2rem, 10vw, 2.75rem); }
  .proposal-header { gap: 20px; }
  .proposal-logo img { width: 170px; }
  .annual-maintenance { margin-right: -28px; margin-left: -28px; padding: 30px 28px; }
  .annual-price { display: grid; }
  .client-toolbar { padding: 0 16px; }
  .client-toolbar img { width: 135px; }
  body.customer-mode .preview-shell { overflow: hidden; }
}

@page { size: A4; margin: 0; }
@media print {
  body { background: #fff; }
  .no-print { display: none !important; }
  .workspace, .preview-shell {
    display: block;
    width: auto;
    height: auto !important;
    padding: 0;
    overflow: visible;
  }
  .proposal {
    display: block;
    width: 210mm;
    margin: 0;
    box-shadow: none;
    transform: none !important;
  }
  .page {
    display: block;
    width: 210mm;
    height: 297mm;
    min-height: 297mm;
    margin: 0;
    page-break-after: always;
    break-after: page;
  }
  .page:last-child { page-break-after: auto; break-after: auto; }
}
