:root {
  --ink: #191a18;
  --muted: #676961;
  --line: #deddd6;
  --paper: #ffffff;
  --canvas: #f4f2ed;
  --gold: #e4b94f;
  --gold-dark: #8e6812;
  --gold-soft: #fff7de;
  --forest: #173e35;
  --danger: #9f2f2f;
  --shadow: 0 18px 55px rgba(37, 33, 22, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
label,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

:focus-visible {
  outline: 3px solid rgba(220, 169, 45, 0.5);
  outline-offset: 2px;
}

.public-home {
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 12%, rgba(228, 185, 79, 0.2), transparent 29%),
    linear-gradient(135deg, #f8f7f3 0%, #f1eee5 100%);
}

.public-nav,
.public-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.public-nav {
  min-height: 92px;
  border-bottom: 1px solid rgba(25, 26, 24, 0.13);
}

.public-brand-logo {
  height: 57px;
}

.producer-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid #c9c5b8;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  font-size: 11px;
  font-weight: 780;
  text-decoration: none;
}

.producer-login:hover {
  border-color: var(--ink);
  background: white;
}

.public-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr);
  align-items: center;
  gap: clamp(48px, 8vw, 110px);
  width: min(1080px, calc(100% - 40px));
  min-height: calc(100vh - 172px);
  margin: 0 auto;
  padding: 70px 0 90px;
}

.public-hero-copy h1,
.access-denied h1 {
  margin: 10px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 6.5vw, 78px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.public-hero-copy > p:not(.eyebrow) {
  max-width: 650px;
  margin: 24px 0 0;
  color: #565850;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
}

.public-callout {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  max-width: 600px;
  margin-top: 30px;
  padding: 18px;
  border: 1px solid #dcc46f;
  border-radius: 14px;
  background: rgba(255, 249, 226, 0.82);
}

.public-callout > span {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: var(--gold);
  font-size: 13px;
  font-weight: 850;
}

.public-callout strong {
  font-size: 13px;
}

.public-callout p {
  margin: 4px 0 0;
  color: #685e3b;
  font-size: 11px;
  line-height: 1.5;
}

.public-process {
  padding: clamp(28px, 5vw, 42px);
  border: 1px solid rgba(25, 26, 24, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.public-process ol {
  display: grid;
  gap: 0;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.public-process li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 15px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.public-process li > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  background: var(--ink);
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
}

.public-process strong {
  font-size: 13px;
}

.public-process p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.public-footer {
  min-height: 80px;
  border-top: 1px solid rgba(25, 26, 24, 0.13);
  color: var(--muted);
  font-size: 10px;
  font-weight: 680;
}

.access-denied {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background: var(--canvas);
}

.access-denied section {
  width: min(100%, 560px);
  padding: clamp(32px, 7vw, 58px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  box-shadow: var(--shadow);
}

.access-denied h1 {
  font-size: clamp(34px, 6vw, 50px);
}

.access-denied p:not(.eyebrow) {
  margin: 18px 0 24px;
  color: var(--muted);
  line-height: 1.6;
}

.producer-access-form {
  display: grid;
  gap: 12px;
}

.producer-access-form label {
  color: #464842;
  font-size: 11px;
  font-weight: 780;
}

.producer-access-form input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #c9c8c1;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}

.producer-access-form .primary-button {
  width: 100%;
  min-height: 48px;
  margin-top: 2px;
}

.builder-page {
  min-height: 100vh;
  background: var(--canvas);
}

.builder-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px clamp(20px, 3vw, 48px);
  border-bottom: 1px solid rgba(25, 26, 24, 0.1);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  display: block;
  width: auto;
  object-fit: contain;
  background: #000;
}

.builder-brand-logo {
  height: 47px;
}

.builder-brand-copy {
  padding-left: 14px;
  border-left: 1px solid #d9d6cc;
}

.proposal-brand {
  display: grid;
  justify-items: start;
  gap: 5px;
}

.proposal-brand-logo {
  height: 58px;
}

.proposal-brand .brand-subtitle {
  margin-left: 1px;
  letter-spacing: 0.04em;
}

.brand-name,
.brand-subtitle,
.eyebrow,
.section-kicker {
  margin: 0;
}

.brand-name {
  font-size: 14px;
  font-weight: 760;
  letter-spacing: -0.01em;
}

.brand-subtitle {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.owner-chip,
.autosource-badge,
.proposal-status,
.quote-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.owner-chip {
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: #faf9f6;
  color: #484a45;
  font-size: 12px;
  font-weight: 650;
}

.owner-chip > span,
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #31a06f;
  box-shadow: 0 0 0 3px rgba(49, 160, 111, 0.12);
}

.builder-layout {
  display: grid;
  grid-template-columns: minmax(560px, 0.93fr) minmax(580px, 1.07fr);
  min-height: calc(100vh - 72px);
}

.builder-controls {
  padding: clamp(26px, 4vw, 54px);
  border-right: 1px solid var(--line);
  background: var(--paper);
}

.builder-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 28px;
}

.eyebrow,
.section-kicker {
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.builder-heading h1,
.proposal-intro h1,
.section-heading h2,
.acceptance-panel h2,
.acceptance-confirmation h2,
.concise-note h2 {
  margin: 0;
  letter-spacing: -0.035em;
}

.builder-heading h1 {
  margin-top: 7px;
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.03;
}

.autosource-badge {
  padding: 8px 11px;
  border: 1px solid #ecd58b;
  background: var(--gold-soft);
  color: #76570a;
  font-size: 11px;
  font-weight: 720;
}

.panel-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-bottom: 24px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #f7f6f2;
}

.panel-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #6d6f68;
  font-size: 12px;
  font-weight: 700;
}

.panel-tabs button span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid #cbcac4;
  border-radius: 999px;
  font-size: 10px;
}

.panel-tabs button.active {
  background: var(--ink);
  color: white;
  box-shadow: 0 6px 18px rgba(25, 26, 24, 0.13);
}

.panel-tabs button.active span {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}

.control-panel {
  animation: panel-in 220ms ease-out;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-title {
  margin-bottom: 20px;
}

.panel-title h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.panel-title p {
  max-width: 640px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.quote-dropzone {
  display: grid;
  min-height: 172px;
  place-items: center;
  align-content: center;
  gap: 6px;
  padding: 26px;
  border: 1.5px dashed #c9b46d;
  border-radius: 18px;
  background: linear-gradient(135deg, #fffdf7, #fff9e9);
  color: var(--ink);
  text-align: center;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.quote-dropzone:hover {
  border-color: var(--gold-dark);
  box-shadow: 0 10px 28px rgba(157, 113, 17, 0.1);
  transform: translateY(-1px);
}

.quote-dropzone.loading {
  opacity: 0.7;
  pointer-events: none;
}

.quote-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.quote-dropzone strong {
  font-size: 15px;
}

.quote-dropzone small {
  max-width: 92%;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-icon {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 3px;
  place-items: center;
  border-radius: 12px;
  background: var(--gold);
  font-size: 20px;
  font-weight: 800;
}

.source-proof {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 13px 0 24px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #faf9f6;
  color: var(--muted);
  font-size: 11px;
}

.source-proof code {
  color: #41433e;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
}

.segmented-label {
  margin: 20px 0 8px;
  color: #4c4e49;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f6f5f1;
}

.segmented-control.three {
  grid-template-columns: repeat(3, 1fr);
}

.segmented-control button {
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.segmented-control button.selected {
  background: white;
  color: var(--ink);
  box-shadow: 0 3px 11px rgba(28, 27, 22, 0.1);
}

.quote-mode-control button {
  display: grid;
  gap: 2px;
  text-align: left;
}

.quote-mode-control button strong {
  font-size: 12px;
}

.quote-mode-control button small {
  font-size: 10px;
  font-weight: 600;
}

.quote-mode-note {
  margin: 8px 2px 14px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.policy-group + .policy-group,
.policy-cost-group + .policy-cost-group {
  margin-top: 24px;
}

.policy-group-title {
  margin: 0 0 10px;
  color: var(--gold-dark);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.form-grid,
.identity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.form-grid label,
.identity-grid label,
.select-field {
  display: grid;
  gap: 7px;
  color: #555750;
  font-size: 11px;
  font-weight: 700;
}

.form-grid label.wide,
.identity-grid label.wide {
  grid-column: 1 / -1;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #d4d3cc;
  border-radius: 10px;
  background: white;
  color: var(--ink);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input,
select {
  min-height: 42px;
  padding: 9px 11px;
}

textarea {
  min-height: 76px;
  padding: 10px 11px;
  line-height: 1.45;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #b68a20;
  box-shadow: 0 0 0 3px rgba(220, 169, 45, 0.13);
  outline: 0;
}

input[type="checkbox"] {
  width: 17px;
  min-height: 17px;
  height: 17px;
  padding: 0;
  border-radius: 5px;
  accent-color: var(--ink);
}

.warning-box {
  margin-top: 18px;
  padding: 14px 15px;
  border: 1px solid #e4c879;
  border-radius: 12px;
  background: #fff9e8;
}

.warning-box strong {
  color: #71530b;
  font-size: 12px;
}

.warning-box p {
  margin: 7px 0 0;
  color: #705f31;
  font-size: 11px;
  line-height: 1.45;
}

.editable-list,
.cost-editor,
.requirements-list,
.acknowledgment-list {
  display: grid;
  gap: 10px;
}

.editable-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfaf7;
}

.editable-card label {
  display: grid;
  gap: 6px;
  color: #555750;
  font-size: 10px;
  font-weight: 750;
}

.editable-card .coverage-explanation {
  grid-column: 1 / -1;
}

.editable-card .coverage-explanation textarea {
  padding-right: 70px;
}

.editable-card .remove-link {
  position: absolute;
  right: 10px;
  bottom: 8px;
}

.remove-link,
.add-button {
  border: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 750;
}

.remove-link {
  color: var(--danger);
}

.add-button {
  margin-top: 10px;
  padding: 8px 0;
  color: var(--gold-dark);
}

.cost-editor-row {
  display: grid;
  grid-template-columns: 1fr 150px 24px;
  align-items: center;
  gap: 9px;
}

.cost-editor-row label,
.fee-control > label,
.number-input {
  position: relative;
  display: flex;
  align-items: center;
}

.cost-editor-row label > span,
.fee-control > label > span,
.number-input > span {
  position: absolute;
  left: 11px;
  z-index: 1;
  color: var(--muted);
  font-size: 12px;
}

.cost-editor-row label input,
.fee-control > label input,
.number-input input {
  padding-left: 25px;
}

.fee-control {
  display: grid;
  grid-template-columns: 1fr 165px;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
  padding: 15px;
  border: 1px solid #e8d38f;
  border-radius: 14px;
  background: var(--gold-soft);
}

.fee-control > div {
  display: grid;
  gap: 3px;
}

.fee-control > div span {
  color: #695b32;
  font-size: 11px;
  font-weight: 700;
}

.fee-control > div strong {
  font-size: 20px;
  letter-spacing: -0.03em;
}

.select-field {
  margin-top: 14px;
}

.locked-note,
.scope-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.scope-note {
  padding: 10px 12px;
  border-left: 3px solid var(--gold);
  background: #faf9f5;
}

.toggle-row,
.requirements-list > label {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfaf7;
}

.toggle-row {
  margin-top: 17px;
}

.toggle-row span,
.requirements-list > label span {
  display: grid;
  gap: 3px;
}

.toggle-row strong,
.requirements-list strong {
  font-size: 12px;
}

.toggle-row small,
.requirements-list small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  text-transform: capitalize;
}

.review-toggle {
  margin-top: 24px;
  border-color: #dec268;
  background: #fff9e6;
}

.running-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding: 17px 18px;
  border-radius: 13px;
  background: var(--ink);
  color: white;
}

.running-total span {
  font-size: 12px;
  font-weight: 650;
}

.running-total strong {
  color: var(--gold);
  font-size: 24px;
  letter-spacing: -0.04em;
}

.proposal-readiness {
  display: grid;
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
}

.proposal-readiness > div {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 60px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
}

.proposal-readiness > div:first-child {
  border-top: 0;
}

.readiness-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
}

.proposal-readiness .ready .readiness-icon {
  background: #e4f4ec;
  color: #24724f;
}

.proposal-readiness .needs-attention .readiness-icon {
  background: #fff1d4;
  color: #805d0b;
}

.proposal-readiness strong,
.proposal-readiness small {
  display: block;
}

.proposal-readiness strong {
  color: var(--ink);
  font-size: 12px;
}

.proposal-readiness small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.proposal-readiness button {
  min-width: 48px;
  padding: 7px 9px;
  border: 1px solid #cfcec7;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-size: 10px;
  font-weight: 780;
}

.review-toggle.disabled {
  opacity: 0.62;
}

.primary-button,
.secondary-button,
.buy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 780;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.primary-button,
.buy-button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
}

.primary-button {
  width: 100%;
  margin-top: 12px;
}

.primary-button:hover:not(:disabled),
.buy-button:hover:not(:disabled) {
  box-shadow: 0 10px 25px rgba(25, 26, 24, 0.2);
  transform: translateY(-1px);
}

.primary-button:disabled,
.buy-button:disabled {
  border-color: #c6c6c1;
  background: #c6c6c1;
  color: #f3f3f0;
}

.secondary-button {
  border: 1px solid #cfcec7;
  background: white;
  color: var(--ink);
}

.secondary-button:hover {
  border-color: #aaa89f;
  background: #faf9f6;
}

.full-width {
  width: 100%;
  margin-top: 10px;
}

.form-error,
.demo-warning {
  margin: 10px 0 0;
  color: var(--danger);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.45;
}

.electronic-delivery-disclosure {
  border-top: 1px solid #dfe3df;
}

.audit-receipt {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid #abc7da;
  border-radius: 14px;
  background: #f4f9fc;
}

.audit-receipt code {
  overflow-wrap: anywhere;
  font-size: 0.76rem;
  color: #37566d;
}

.audit-page {
  min-height: 100vh;
  padding: 36px 18px;
  background: #eaf0f4;
  color: #132c3e;
}

.audit-report {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 44px;
  border: 1px solid #c8d4dc;
  border-radius: 20px;
  background: white;
  box-shadow: 0 20px 70px rgba(24, 51, 70, 0.12);
}

.audit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 3px solid #123f62;
}

.audit-header img {
  width: 210px;
  height: auto;
}

.audit-header span,
.audit-grid span,
.audit-details dt {
  color: #607888;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.audit-header h1 {
  margin: 6px 0;
  font-size: clamp(1.65rem, 4vw, 2.4rem);
}

.audit-header p {
  margin: 0;
}

.audit-status {
  margin: 26px 0;
  padding: 18px 20px;
  border-left: 5px solid #16835d;
  background: #edf8f3;
}

.audit-status p,
.audit-section p {
  line-height: 1.6;
}

.audit-grid,
.audit-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.audit-grid > div,
.audit-details > div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid #d9e2e8;
  border-radius: 10px;
}

.audit-details {
  margin: 0;
}

.audit-details dd {
  margin: 0;
  font-weight: 650;
}

.audit-section {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid #d9e2e8;
}

.audit-section h2 {
  margin: 0 0 18px;
  color: #123f62;
  font-size: 1.25rem;
}

.audit-list {
  margin-top: 16px;
}

.audit-list p {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  padding: 11px 4px;
  border-bottom: 1px solid #edf1f4;
}

.audit-disclosure {
  padding: 14px;
  border-radius: 10px;
  background: #f6f1e8;
}

.audit-acknowledgments {
  display: grid;
  gap: 12px;
}

.audit-acknowledgments p {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  margin: 0;
  padding: 14px;
  border: 1px solid #d9e2e8;
  border-radius: 10px;
}

.audit-acknowledgments strong {
  color: #16835d;
}

.technical-evidence dd {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.5;
}

.audit-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 3px solid #123f62;
}

.audit-actions span {
  margin-left: auto;
  color: #607888;
  font-size: 0.8rem;
}

@media (max-width: 680px) {
  .audit-report {
    padding: 24px 18px;
  }

  .audit-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .audit-grid,
  .audit-details {
    grid-template-columns: 1fr;
  }

  .audit-acknowledgments p {
    grid-template-columns: 1fr;
  }
}

@media print {
  .audit-page {
    padding: 0;
    background: white;
  }

  .audit-report {
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .audit-actions {
    display: none;
  }
}

.share-result {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #8fc3ad;
  border-radius: 13px;
  background: #f0faf5;
}

.share-result strong {
  grid-column: 1 / -1;
  color: #226549;
  font-size: 12px;
}

.share-result button {
  border: 0;
  border-radius: 9px;
  background: var(--forest);
  color: white;
  font-size: 11px;
  font-weight: 750;
}

.delivery-review {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #d9c77e;
  border-radius: 16px;
  background: #fffdf7;
}

.delivery-review-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.delivery-review-heading h3 {
  margin: 5px 0 0;
  font-size: 19px;
  letter-spacing: -0.025em;
}

.delivery-step {
  padding: 6px 9px;
  border-radius: 999px;
  background: #e8f5ee;
  color: #226549;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.delivery-review .share-result {
  margin-top: 0;
}

.delivery-channel {
  width: min(100%, 340px);
}

.delivery-cc-field {
  display: grid;
  gap: 7px;
  color: #555750;
  font-size: 11px;
  font-weight: 700;
}

.delivery-cc-field input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #cfcec8;
  border-radius: 10px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.delivery-cc-field input[aria-invalid="true"] {
  border-color: #ad3f3f;
  outline-color: #ad3f3f;
}

.delivery-cc-field small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.message-preview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
}

.message-meta {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.message-meta span {
  color: var(--muted);
}

.message-meta strong {
  overflow-wrap: anywhere;
}

.message-preview pre {
  max-height: 310px;
  margin: 0;
  padding: 15px;
  overflow: auto;
  color: #3e403b;
  font: 11px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.delivery-confirmation {
  margin-top: 0;
}

.delivery-note,
.delivery-success {
  margin: -5px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.delivery-success {
  color: #226549;
  font-weight: 700;
}

.field-note {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.warning-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid rgba(159, 47, 47, 0.18);
}

.warning-row button {
  min-height: 34px;
  border: 1px solid rgba(159, 47, 47, 0.3);
  border-radius: 8px;
  background: white;
  color: var(--danger);
  font-size: 10px;
  font-weight: 750;
}

.preview-pane {
  min-width: 0;
  padding: 24px clamp(22px, 3vw, 46px) 60px;
  background:
    radial-gradient(circle at 80% 4%, rgba(220, 169, 45, 0.18), transparent 28%),
    #eeece6;
}

.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 800px);
  margin: 0 auto 12px;
  color: #6d6e68;
  font-size: 11px;
  font-weight: 700;
}

.preview-toolbar small {
  font-size: 10px;
  font-weight: 500;
}

.client-page {
  min-height: 100vh;
  padding: clamp(18px, 4vw, 58px) 18px 80px;
  background:
    radial-gradient(circle at 20% 0%, rgba(220, 169, 45, 0.18), transparent 30%),
    var(--canvas);
}

.demo-banner {
  width: min(100%, 860px);
  margin: 0 auto 12px;
  padding: 9px 14px;
  border: 1px solid #ddc36d;
  border-radius: 10px;
  background: #fff5d3;
  color: #72550b;
  font-size: 11px;
  font-weight: 730;
  text-align: center;
}

.proposal-shell {
  width: min(100%, 800px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(25, 26, 24, 0.1);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.proposal-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px clamp(20px, 4vw, 38px);
  border-bottom: 1px solid var(--line);
}

.proposal-status {
  padding: 7px 10px;
  background: #f1f7f4;
  color: #326452;
  font-size: 10px;
  font-weight: 750;
}

.proposal-intro {
  padding: clamp(32px, 6vw, 58px) clamp(24px, 6vw, 60px) 36px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.98), rgba(255, 252, 241, 0.93)),
    repeating-linear-gradient(90deg, transparent, transparent 30px, rgba(220, 169, 45, 0.04) 30px, rgba(220, 169, 45, 0.04) 31px);
}

.proposal-intro h1 {
  margin-top: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 7vw, 60px);
  font-weight: 600;
  line-height: 0.98;
}

.intro-copy {
  margin: 18px 0 0;
  color: #53554f;
  font-size: 15px;
  line-height: 1.55;
}

.proposal-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 28px 0 0;
  overflow: hidden;
  border: 1px solid #ddd9cb;
  border-radius: 12px;
  background: #ddd9cb;
}

.proposal-facts > div {
  min-width: 0;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.8);
}

.proposal-facts dt {
  margin-bottom: 4px;
  color: #777970;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.proposal-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.proposal-section {
  padding: 35px clamp(24px, 6vw, 60px);
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading h2,
.acceptance-panel h2,
.acceptance-confirmation h2,
.concise-note h2 {
  margin-top: 5px;
  font-size: 24px;
}

.quote-pill {
  padding: 7px 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.coverage-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfaf7;
}

.coverage-card p {
  margin: 0 0 7px;
  color: #777970;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.coverage-card strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.3;
}

.coverage-card > span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.cost-section {
  background: #fcfbf8;
}

.total-card {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1px;
  overflow: hidden;
  border-radius: 15px;
  background: #454740;
  color: white;
}

.total-card > div {
  display: grid;
  align-content: center;
  min-height: 130px;
  padding: 22px;
  background: var(--ink);
}

.total-card > div:first-child:last-child {
  grid-column: 1 / -1;
}

.total-card span {
  color: #c6c7c1;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.total-card strong {
  display: block;
  margin-top: 6px;
  color: var(--gold);
  font-size: clamp(28px, 5vw, 38px);
  letter-spacing: -0.05em;
}

.total-card small {
  display: block;
  margin-top: 7px;
  color: #aeb0a9;
  font-size: 11px;
  line-height: 1.45;
}

.payment-plan {
  border-left: 1px solid #3c3d39;
}

.payment-plan strong {
  font-size: 24px;
}

.cost-lines {
  margin-top: 13px;
  border-top: 1px solid var(--line);
}

.cost-lines > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line);
  color: #5e605a;
  font-size: 13px;
}

.cost-lines strong {
  color: var(--ink);
}

.payment-note,
.minimum-earned {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.locked-disclosure {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  margin-top: 18px;
  padding: 15px;
  border: 1px solid #e1c86f;
  border-radius: 12px;
  background: var(--gold-soft);
}

.locked-disclosure > span {
  color: #77590b;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.locked-disclosure p {
  margin: 0;
  color: #55491f;
  font-size: 12px;
  line-height: 1.55;
}

.minimum-earned {
  font-weight: 650;
}

.concise-note h2 {
  font-size: 17px;
}

.concise-note p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.proposal-disclaimer,
.workflow-boundary {
  padding: 21px clamp(24px, 6vw, 60px);
  border-top: 1px solid var(--line);
}

.proposal-disclaimer {
  background: #f0efe9;
}

.proposal-disclaimer strong,
.workflow-boundary span {
  color: #4b4d47;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.proposal-disclaimer p,
.workflow-boundary p {
  margin: 7px 0 0;
  color: #64665f;
  font-size: 11px;
  line-height: 1.58;
}

.workflow-boundary {
  border-left: 5px solid var(--gold);
  background: #fffdf7;
}

.acceptance-panel {
  padding: 38px clamp(24px, 6vw, 60px) 48px;
  border-top: 1px solid var(--line);
  background: white;
}

.acceptance-lead {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.form-step-card {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fcfbf8;
}

.form-step-heading {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 11px;
  align-items: start;
}

.form-step-heading > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 11px;
  font-weight: 800;
}

.form-step-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}

.form-step-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.identity-grid {
  margin-top: 18px;
}

.identity-grid label {
  color: #454741;
  font-size: 11px;
}

.identity-grid input {
  min-height: 46px;
  font-size: 14px;
}

.identity-grid input[readonly] {
  background: #f1f2ef;
  color: #555b54;
}

.acknowledgment-list {
  margin-top: 18px;
  gap: 14px;
}

.electronic-consent-card {
  overflow: hidden;
  border: 1px solid #d8ddd9;
  border-radius: 12px;
  background: #f8faf8;
}

.electronic-consent-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
}

.electronic-consent-summary > span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #e7efe9;
  color: #315942;
  font-size: 9px;
  font-weight: 820;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.electronic-consent-summary strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.3;
}

.electronic-consent-summary p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.electronic-delivery-disclosure summary {
  padding: 11px 16px;
  color: #3e5547;
  cursor: pointer;
  font-size: 11px;
  font-weight: 760;
  list-style-position: inside;
}

.electronic-delivery-disclosure summary:hover {
  background: #f1f5f1;
}

.electronic-disclosure-body {
  padding: 0 16px 14px 34px;
}

.electronic-disclosure-body p {
  margin: 7px 0;
  color: #5e665f;
  font-size: 11px;
  line-height: 1.55;
}

.acknowledgment-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 0;
  border-top: 1px solid var(--line);
  background: white;
  color: #343732;
  font-size: 13px;
  line-height: 1.42;
}

.acknowledgment-checks {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
}

.acknowledgment-checks .acknowledgment-item:first-child {
  border-top: 0;
}

.acknowledgment-item:has(input:checked) {
  border-color: #c9b15e;
  background: #fffbec;
}

.buy-button {
  width: 100%;
  min-height: 55px;
  margin-top: 20px;
  background: var(--forest);
  border-color: var(--forest);
  font-size: 15px;
}

.submit-step {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #d8ddd9;
  border-radius: 15px;
  background: #f8faf8;
}

.submission-readiness {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
}

.submission-readiness span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: #e7efe9;
  color: #315942;
  font-size: 10px;
  font-weight: 850;
}

.submission-readiness p {
  margin: 0;
  color: #4d584f;
  font-size: 11px;
  font-weight: 650;
}

.submit-step .buy-button {
  margin-top: 14px;
}

.button-clarifier {
  max-width: 560px;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.acceptance-confirmation {
  padding: 42px clamp(24px, 6vw, 60px) 48px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.confirmation-check {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 15px;
  place-items: center;
  border-radius: 999px;
  background: #e4f4ec;
  color: #24724f;
  font-size: 24px;
  font-weight: 850;
}

.acceptance-confirmation > p:not(.section-kicker) {
  max-width: 570px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.not-bound-message {
  padding: 13px;
  border: 1px solid #e0c568;
  border-radius: 11px;
  background: var(--gold-soft);
  color: #66521c !important;
  font-weight: 650;
}

.acceptance-confirmation .secondary-button {
  margin-top: 18px;
}

@media (max-width: 1180px) {
  .builder-layout {
    grid-template-columns: 1fr;
  }

  .builder-controls {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .preview-pane {
    padding-top: 32px;
  }
}

@media (max-width: 900px) {
  .public-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

@media (max-width: 680px) {
  .public-nav,
  .public-footer,
  .public-hero {
    width: min(100% - 28px, 1080px);
  }

  .public-nav {
    min-height: 76px;
  }

  .public-brand-logo {
    height: 42px;
  }

  .producer-login {
    min-height: 38px;
    padding: 8px 11px;
    font-size: 10px;
  }

  .public-hero {
    gap: 36px;
    padding: 50px 0 64px;
  }

  .public-hero-copy h1 {
    font-size: clamp(43px, 14vw, 58px);
  }

  .public-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
  }

  .builder-topbar {
    min-height: 64px;
    padding: 10px 15px;
  }

  .builder-topbar .brand-subtitle,
  .owner-chip {
    display: none;
  }

  .builder-controls {
    padding: 24px 15px 38px;
  }

  .builder-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 20px;
  }

  .panel-tabs {
    gap: 4px;
  }

  .panel-tabs button {
    flex-direction: column;
    gap: 3px;
    font-size: 10px;
  }

  .form-grid,
  .identity-grid,
  .editable-card,
  .fee-control,
  .proposal-facts,
  .coverage-grid,
  .total-card {
    grid-template-columns: 1fr;
  }

  .cost-editor-row {
    grid-template-columns: 1fr 120px 24px;
  }

  .fee-control > label {
    width: 100%;
  }

  .preview-pane {
    padding: 22px 8px 40px;
  }

  .client-page {
    padding: 8px 0 38px;
  }

  .demo-banner {
    width: calc(100% - 16px);
  }

  .proposal-shell {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .proposal-hero {
    align-items: flex-start;
    padding: 15px;
  }

  .proposal-hero .brand-subtitle {
    max-width: 180px;
  }

  .builder-brand-copy {
    display: none;
  }

  .builder-brand-logo {
    height: 40px;
  }

  .proposal-brand-logo {
    height: 46px;
  }

  .proposal-status {
    padding: 6px 8px;
    font-size: 8px;
  }

  .proposal-intro,
  .proposal-section,
  .acceptance-panel,
  .acceptance-confirmation {
    padding-right: 20px;
    padding-left: 20px;
  }

  .payment-plan {
    border-top: 1px solid #3c3d39;
    border-left: 0;
  }

  .locked-disclosure {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .delivery-review {
    padding: 14px;
  }

  .delivery-review-heading,
  .warning-row {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .delivery-review-heading {
    display: grid;
  }

  .delivery-step {
    width: fit-content;
  }

  .share-result {
    grid-template-columns: 1fr;
  }
}

@media print {
  body,
  .client-page {
    background: white;
  }

  .client-page {
    padding: 0;
  }

  .demo-banner,
  .builder-topbar,
  .button-clarifier,
  .acceptance-confirmation .secondary-button {
    display: none !important;
  }

  .proposal-shell {
    width: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}
