.proposals-page {
  width: min(1200px, calc(100% - var(--page, 32px) * 2));
  margin: 0 auto; padding: 132px 0 88px; color: var(--text); font-family: var(--font-ui);
  font-size: 14px; line-height: 1.6; overflow-wrap: anywhere;
}
.proposals-page *, .proposals-page *::before, .proposals-page *::after { box-sizing: border-box; }
.proposals-page :is(h1,h2,h3,p,figure,dl,ol,ul) { margin: 0; }
.proposals-page h1 { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.15; font-weight: 600; letter-spacing: -.035em; }
.proposals-page h2 { font-size: 20px; line-height: 1.4; font-weight: 600; letter-spacing: -.02em; }
.proposals-page h3 { font-size: 15px; line-height: 1.5; font-weight: 600; }
/* Text links inherit page color; anchor CTAs retain their contrast tokens. */
.proposals-page a:not(.proposal-button) { color: inherit; }
.proposal-page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; margin-bottom: 40px; }
.proposal-page-heading > div:first-child { max-width: 650px; }
.proposal-page-heading :is(h1,p) + p { margin-top: 14px; color: var(--muted); }
.proposal-kicker { font-size: 12px; line-height: 18px; font-weight: 500; letter-spacing: .06em; }
.proposal-page-heading .proposal-kicker, .proposal-back { display: inline-block; margin-bottom: 12px; }
.proposal-back { font-size: 13px; text-underline-offset: 4px; }
.proposal-helper, .proposal-status { font-size: 12px; line-height: 18px; font-weight: 400; color: var(--muted); }
.proposal-status { min-height: 24px; margin-top: 20px; }
.proposal-status.is-error { color: var(--text); }
.proposal-status:not([hidden]):not(:empty) { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.proposal-status .proposal-button { flex: 0 0 auto; }
.proposal-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px; max-width: 100%; border: 1px solid var(--action-secondary-border, var(--line));
  border-radius: var(--action-radius); corner-shape: var(--corner-curve); background: var(--action-secondary-fill, var(--surface));
  color: var(--action-secondary-foreground, var(--text)); font: 600 13px/18px var(--font-ui);
  text-decoration: none; text-align: center; cursor: pointer; white-space: normal;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}
.proposal-button--primary { background: var(--action-primary-fill, var(--text)); color: var(--action-primary-foreground, var(--surface)); border-color: var(--action-primary-border, var(--text)); }
.proposal-button:hover:not(:disabled) { background: var(--action-primary-hover-fill); border-color: var(--action-primary-hover-border); }
.proposal-button:disabled { opacity: .45; cursor: default; }
.proposal-signin { min-height:min(640px,calc(100vh - 188px)); display:grid; grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr); align-items:center; gap:clamp(40px,7vw,112px); }
.proposal-signin__heading { max-width:640px; }
.proposal-signin__heading .proposal-kicker { display:block; margin-bottom:18px; color:var(--muted); }
.proposal-signin__heading > p:last-child { max-width:520px; margin-top:22px; color:var(--muted); font-size:16px; line-height:1.6; }
.proposal-signin__panel { padding:clamp(28px,3vw,48px); border:1px solid var(--line); border-radius:var(--radius-card,var(--action-radius)); background:var(--surface); }
.proposal-signin__panel h2 { margin-bottom:12px; }
.proposal-signin__panel p { max-width:360px; margin-bottom:28px; color:var(--muted); font-size:14px; line-height:1.65; }
.proposal-signin__panel .proposal-button { min-height:48px; padding-inline:24px; font-weight:600; }
.proposals-page :is(a,button,input,select,textarea):focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.proposal-toolbar, .proposal-inline-actions, .proposal-dialog__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.proposal-toolbar { justify-content: flex-end; }
.proposal-workflow-bar { position: sticky; top: 82px; z-index: 12; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-bottom: 28px; padding: 16px 0; border-block: 1px solid var(--line); background: var(--surface); }
.proposal-publish-gate { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px 24px; margin:-8px 0 28px; padding:20px 24px; border:1px solid var(--line); border-radius:var(--radius-card,var(--action-radius)); background:var(--surface); }
.proposal-publish-gate p { max-width:610px; color:var(--muted); font-size:14px; line-height:1.6; }
.proposal-publish-gate .proposal-button { flex:none; min-height:48px; padding-inline:24px; font-weight:600; }
.proposal-workflow-state { min-width: 0; flex: 1 1 260px; }
.proposal-workflow-state > [role=status] { font: 500 13px/18px var(--font-ui); color: var(--text); }
.proposal-workflow-state .proposal-helper { margin-top: 6px; max-width: 460px; }
.proposal-workflow-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.proposal-workflow-actions [data-proposal-action=preview], .proposal-workflow-actions [data-proposal-action=copy-link] { background: transparent; border-color: transparent; color: var(--muted); }
.proposal-workflow-actions .proposal-button { min-height: 48px; }
.proposal-workflow-state .proposal-button { margin-inline-start: 8px; }
.proposal-draft-list { display: grid; }
.proposal-draft { padding: 24px 0; border-top: 1px solid var(--line); text-decoration: none; display: flex; gap: 24px; justify-content: space-between; align-items: center; }
.proposal-draft h2 { margin: 6px 0; }
.proposal-draft p { color: var(--muted); font-size: 13px; }
.proposal-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 290px); gap: 48px; align-items: start; }
.proposal-editor > *, .proposal-field-grid > *, .proposal-section__heading > * { min-width: 0; }
.proposal-section { padding: 28px 0; border-top: 1px solid var(--line); }
.proposal-section > :is(h2,.proposal-section__heading) { margin-bottom: 16px; }
.proposal-section > .proposal-helper { margin: 12px 0 18px; }
.proposal-section__heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.proposal-section__heading .proposal-helper { margin-top: 6px; }
.proposal-field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 20px; }
.proposal-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; min-width: 0; }
.proposal-field > span, .proposal-product__quantity label > span { color: var(--muted); font-size: 13px; line-height: 18px; font-weight: 500; }
.proposals-page :is(input:not([type=checkbox]):not([type=radio]),textarea,select) {
  width: 100%; min-width: 0; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--action-radius); corner-shape: var(--corner-curve);
  background: var(--surface); color: var(--text); font: 400 14px/21px var(--font-ui); box-shadow: none;
}
.proposals-page textarea { resize: vertical; }
.proposals-page :is(input[type=checkbox],input[type=radio]) { width: 18px; height: 18px; flex: 0 0 18px; margin: 0; accent-color: var(--text); }
.proposal-check { display: flex; gap: 10px; align-items: center; min-height: 44px; font-size: 13px; line-height: 20px; margin-bottom: 18px; }
.proposal-checklist { padding-inline-start: 20px; color: var(--muted); font-size: 13px; }
.proposal-checklist li + li { margin-top: 10px; }
.proposal-company-logo { display: block; width: auto; max-width: 180px; max-height: 72px; object-fit: contain; margin: 0 0 16px; }
.proposal-editor__side .proposal-button { margin-top: 8px; }
.proposal-logo-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.proposal-editor__side .proposal-logo-actions .proposal-button { margin-top: 0; }
.proposal-selected { list-style: none; display: grid; gap: 20px; padding: 0; }
.proposal-selected > li { display: grid; grid-template-columns: minmax(120px, .7fr) minmax(0, 1fr); gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.proposal-selected__preview { border-radius: var(--radius-card); corner-shape: var(--corner-curve); contain: paint; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-raised, var(--surface)); }
.proposal-selected__preview :is(img,video) { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 0; corner-shape: inherit; }
.proposal-video-preview { display: block; position: relative; width: 100%; height: 100%; min-height: 100%; overflow: hidden; border-radius: 0; corner-shape: inherit; background: var(--surface); }
.proposal-video-preview > video { opacity: 0; }
.proposal-video-preview.is-ready > video { opacity: 1; }
.proposal-video-preview__mark { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--corner-mark); corner-shape: var(--corner-curve); background: var(--surface); color: var(--text); pointer-events: none; }
.proposal-video-preview__mark svg { width: 18px; height: 18px; }
.proposal-video-preview__status { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; border-radius: 0; corner-shape: inherit; background: var(--surface); color: var(--muted); text-align: center; font: 400 12px/18px var(--font-ui); }
.proposal-video-preview__status[hidden] { display: none; }
.proposal-selected__info .proposal-helper { display: block; margin-bottom: 8px; }
.proposal-selected__info .proposal-field { margin-bottom: 8px; }
.proposal-inline-actions .proposal-button { padding-inline: 12px; }
.proposal-empty { padding: 32px 0; color: var(--muted); font-size: 14px; }
.proposal-products { display: grid; }
.proposal-product { display: grid; grid-template-columns: 76px minmax(0, 1fr) minmax(90px, auto); align-items: start; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.proposal-product > img, .proposal-product__placeholder { width: 76px; height: 76px; border-radius: var(--corner-thumb); corner-shape: var(--corner-curve); object-fit: contain; }
.proposal-product p { color: var(--muted); font-size: 12px; line-height: 18px; margin-top: 4px; }
.proposal-product h3 a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.proposal-product__include { display: flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 8px; color: var(--muted); font: 400 12px/18px var(--font-ui); }
.proposal-product.is-excluded h3 { color: var(--muted); }
.proposal-product__quantity { display: grid; gap: 10px; text-align: end; font-size: 13px; }
.proposal-product__quantity label { display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-end; gap: 8px; }
.proposal-product__quantity label > span { flex: 0 0 auto; white-space: nowrap; overflow-wrap: normal; }
.proposal-product__quantity input { width: 76px; max-width: 76px; flex: 0 0 76px; }
.proposal-product__quantity strong { font-weight: 500; }
.proposal-confirmed-prices { margin-top: 24px; padding-block: 16px; border-block: 1px solid var(--line); }
.proposal-confirmed-prices > summary { min-height: 44px; cursor: pointer; font: 500 14px/22px var(--font-ui); }
.proposal-confirmed-prices > .proposal-helper { margin-block: 12px 20px; }
.proposal-confirmed-price { padding-block: 16px; border-top: 1px solid var(--line); }
.proposal-confirmed-price h3 { margin-bottom: 12px; }
.proposal-quote-request { max-width: 1040px; margin: 40px auto 0; padding-block: 28px; border-top: 1px solid var(--line); }
.proposal-quote-request > :is(h2,.proposal-helper) { margin-bottom: 16px; }
.proposal-quote-request > [role=status] { margin-top: 16px; }
.proposal-quote-inbox { padding-block: 20px; border-bottom: 1px solid var(--line); }
.proposal-quote-inbox > :is(p,.proposal-inline-actions) { margin-top: 12px; }
.proposal-totals { display: grid; gap: 12px; padding: 20px 0; }
.proposal-totals > div { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
.proposal-totals dt { color: var(--muted); font-size: 13px; }
.proposal-totals dd { margin: 0; font-size: 20px; line-height: 28px; font-weight: 600; text-align: end; }
.proposal-totals small { display: block; font: 400 12px/18px var(--font-ui); color: var(--muted); }
.proposal-profit { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 24px; }
.proposal-profit > p { margin: 10px 0; }
.proposal-profit ul { list-style: none; padding: 0; }
.proposal-profit li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: 13px; }
.proposal-profit li span { text-align: end; }
.proposal-issues { list-style: none; padding: 0; }
.proposal-issues li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.proposal-issues li > div { margin-inline-end: auto; display: grid; gap: 4px; }
.proposal-issues span { color: var(--muted); font-size: 12px; }
.proposal-dialog { width: min(1000px, calc(100% - 40px)); max-height: calc(100dvh - 48px); padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-panel); corner-shape: var(--corner-curve); isolation: isolate; contain: paint; background: var(--surface); color: var(--text); overflow: auto; overscroll-behavior: contain; }
.proposal-dialog::backdrop { background: rgb(0 0 0 / .52); backdrop-filter: blur(4px); }
.proposal-dialog > [data-proposal-dialog-content] > header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.proposal-dialog > [data-proposal-dialog-content] > header > h2 { font-size: 24px; font-weight: 600; line-height: 1.3; flex: 1; min-width: 0; }
.proposal-dialog > [data-proposal-dialog-content] > header > .proposal-button { flex: 0 0 auto; white-space: nowrap; }
.proposal-dialog__actions { justify-content: flex-end; margin-top: 24px; }
.proposal-dialog > div > p { margin-bottom: 16px; }
.proposal-picker { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px 14px; }
.proposal-picker__item { display: grid; position: relative; gap: 8px; cursor: pointer; min-width: 0; font-size: 12px; line-height: 18px; }
.proposals-page .proposal-picker__item > input { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.proposal-picker__visual { position: relative; isolation: isolate; contain: paint; aspect-ratio: 4/3; border: 1px solid var(--line); border-radius: var(--radius-card); corner-shape: var(--corner-curve); overflow: hidden; }
.proposal-picker__visual :is(img,video) { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; corner-shape: inherit; }
.proposal-picker__item:has(input:focus-visible) .proposal-picker__visual { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.proposal-refresh-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.proposal-media-missing { min-height: 140px; display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.proposal-public { max-width: 1040px; margin: 0 auto; }
.proposal-public-actions { display: flex; justify-content: flex-end; margin-bottom: 32px; }
.proposal-public__heading { display: block; max-width: 760px; margin: 0 auto 56px; text-align: center; }
.proposal-public__heading h1 { margin-top: 16px; }
.proposal-public__heading .proposal-company-logo { margin-inline: auto; }
.proposal-public__heading > p + p, .proposal-public__heading h1 + p { margin-top: 18px; }
.proposal-public__project { font-size: 18px; line-height: 28px; }
.proposal-public__description { white-space: pre-line; color: var(--muted); font-size: 15px; line-height: 24px; }
.proposal-public__story { display: grid; gap: 40px; }
.proposal-public__story figure { min-width: 0; }
/* Reserve lazy media space before metadata loads; auto restores each natural ratio. */
.proposal-public__story :is(img,video) { display: block; width: 100%; height: auto; aspect-ratio: auto 16 / 9; max-height: 85vh; object-fit: contain; border-radius: var(--radius-card); corner-shape: var(--corner-curve); }
.proposal-public__story figcaption { font-size: 14px; line-height: 22px; color: var(--muted); text-align: center; margin-top: 16px; white-space: pre-line; }
.proposal-public__goods { margin-top: 64px; }
.proposal-public__goods > h2 { margin-bottom: 12px; }
.proposal-public__contact { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: center; border-top: 1px solid var(--line); padding: 28px 0; margin-top: 56px; font-size: 13px; }
.proposal-print-video { display: none; }
.proposal-public--preview { padding-top: 24px; }
@media (max-width: 1024px) {
  .proposal-page-heading { flex-direction: column; }
  .proposal-toolbar { justify-content: flex-start; }
  .proposal-editor { grid-template-columns: minmax(0,1fr) 240px; gap: 28px; }
  .proposal-selected > li { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 760px) {
  .proposals-page { width: calc(100% - 32px); padding: 104px 0 56px; }
  .proposal-signin { min-height:0; grid-template-columns:minmax(0,1fr); gap:32px; align-items:start; }
  .proposal-signin__heading > p:last-child { margin-top:16px; font-size:14px; }
  .proposal-signin__panel { padding:24px; }
  .proposal-signin__panel .proposal-button { width:100%; }
  .proposal-editor { grid-template-columns: minmax(0,1fr); gap: 0; }
  .proposal-editor__side { grid-row: 1; }
  .proposal-workflow-bar { top: 76px; gap: 12px; padding-block: 12px; }
  .proposal-publish-gate { align-items:stretch; padding:20px; }
  .proposal-publish-gate .proposal-button { width:100%; }
  .proposal-workflow-state { flex-basis: 100%; }
  .proposal-workflow-state .proposal-helper { max-width: none; }
  .proposal-workflow-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; }
  .proposal-workflow-actions .proposal-button { min-width: 0; padding-inline: 8px; }
  .proposal-field-grid { grid-template-columns: minmax(0,1fr); }
  .proposal-picker { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .proposal-product { grid-template-columns: 60px minmax(0,1fr); gap: 12px; }
  .proposal-product > img, .proposal-product__placeholder { width: 60px; height: 60px; }
  .proposal-product__quantity { grid-column: 2; min-width: 0; text-align: start; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
  .proposal-dialog { width: calc(100% - 24px); padding: 28px; border-radius: var(--radius-panel-mobile); }
  .proposal-selected__preview, .proposal-picker__visual { border-radius: var(--radius-card-mobile); }
  .proposal-refresh-totals { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .proposal-public__heading { margin-bottom: 32px; }
  .proposal-public__story { gap: 28px; }
  .proposal-public__story :is(img,video) { border-radius: var(--radius-card-mobile); }
  .proposal-draft { align-items: flex-start; flex-direction: column; gap: 12px; }
}
@media (max-height: 520px) { .proposal-workflow-bar { position: static; } }
@media (prefers-reduced-motion: reduce) { .proposal-button { transition: none; } }
@media (forced-colors: active) { .proposal-button, .proposal-picker__visual { border: 1px solid ButtonText; } }
@page proposal-sheet { size: A4; margin: 14mm; }
@media print {
  .proposal-quote-request { display: none !important; }
  .proposal-workflow-bar { display: none !important; }
  /* Native Ctrl+P and printToPDF must not depend on a transient JavaScript class. */
  .proposals-page:has(.proposal-editor), .proposals-page .proposal-dialog, .proposals-page [data-private-proposal] { display: none !important; }
  body:is(.is-printing-proposal,:has(.proposals-page > [data-proposals-content] > .proposal-public-actions)) { page: proposal-sheet; background: white !important; color: black !important; }
  body:is(.is-printing-proposal,:has(.proposals-page > [data-proposals-content] > .proposal-public-actions)) > :not(main):not(#page-root) { display: none !important; }
  body:is(.is-printing-proposal,:has(.proposals-page > [data-proposals-content] > .proposal-public-actions)) :is(header.site-header,footer.site-footer,.proposal-public-actions,.proposal-status,.proposal-dialog,[data-private-proposal]) { display: none !important; }
  body:is(.is-printing-proposal,:has(.proposals-page > [data-proposals-content] > .proposal-public-actions)) .proposals-page { width: 100%; padding: 0; margin: 0; color: black; }
  body:is(.is-printing-proposal,:has(.proposals-page > [data-proposals-content] > .proposal-public-actions)) .proposal-public :is(h1,h2,h3,p,span,dt,dd,a,strong,figcaption) { color: black !important; }
  body:is(.is-printing-proposal,:has(.proposals-page > [data-proposals-content] > .proposal-public-actions)) .proposal-public__heading { margin-bottom: 24px; }
  body:is(.is-printing-proposal,:has(.proposals-page > [data-proposals-content] > .proposal-public-actions)) .proposal-public__story { display: block; }
  body:is(.is-printing-proposal,:has(.proposals-page > [data-proposals-content] > .proposal-public-actions)) .proposal-public__story figure { break-inside: avoid; margin-bottom: 24px; }
  body:is(.is-printing-proposal,:has(.proposals-page > [data-proposals-content] > .proposal-public-actions)) .proposal-public__story img { max-height: 185mm; border-radius: 0; }
  body:is(.is-printing-proposal,:has(.proposals-page > [data-proposals-content] > .proposal-public-actions)) .proposal-public__story video { display: none !important; }
  body:is(.is-printing-proposal,:has(.proposals-page > [data-proposals-content] > .proposal-public-actions)) .proposal-public__story figure:has(> .proposal-print-video) { padding: 12px 16px; border: 1px solid #b0b0b0; }
  body:is(.is-printing-proposal,:has(.proposals-page > [data-proposals-content] > .proposal-public-actions)) .proposal-public__story figure:has(> .proposal-print-video) figcaption { margin-top: 0; text-align: start; }
  body:is(.is-printing-proposal,:has(.proposals-page > [data-proposals-content] > .proposal-public-actions)) .proposal-public__goods { margin-top: 28px; break-after: avoid; page-break-after: avoid; }
  body:is(.is-printing-proposal,:has(.proposals-page > [data-proposals-content] > .proposal-public-actions)) .proposal-public__goods > h2 { break-after: avoid; page-break-after: avoid; }
  body:is(.is-printing-proposal,:has(.proposals-page > [data-proposals-content] > .proposal-public-actions)) .proposal-public__goods > .proposal-products { display: block; break-before: avoid; page-break-before: avoid; }
  body:is(.is-printing-proposal,:has(.proposals-page > [data-proposals-content] > .proposal-public-actions)) .proposal-public__goods .proposal-product:first-child { break-before: avoid; page-break-before: avoid; }
  body:is(.is-printing-proposal,:has(.proposals-page > [data-proposals-content] > .proposal-public-actions)) .proposal-product { break-inside: avoid; }
  body:is(.is-printing-proposal,:has(.proposals-page > [data-proposals-content] > .proposal-public-actions)) .proposal-print-video { display: inline-block; margin-top: 6px; font-size: 12px; text-decoration: underline; }
  /* Keep the commercial summary, shipping notice and contact together at a
     page boundary; never force the whole multi-product schedule onto one page. */
  body:is(.is-printing-proposal,:has(.proposals-page > [data-proposals-content] > .proposal-public-actions)) .proposal-totals { break-inside: avoid; page-break-inside: avoid; break-after: avoid; page-break-after: avoid; }
  body:is(.is-printing-proposal,:has(.proposals-page > [data-proposals-content] > .proposal-public-actions)) .proposal-public__goods > .proposal-helper:last-child { break-before: avoid; page-break-before: avoid; break-after: avoid; page-break-after: avoid; }
  body:is(.is-printing-proposal,:has(.proposals-page > [data-proposals-content] > .proposal-public-actions)) .proposal-public__contact { margin-top: 12px; padding: 12px 0; break-before: avoid; page-break-before: avoid; break-inside: avoid; page-break-inside: avoid; }
}

/* Explicit compact table inputs; regular business fields stay 48px. */
.proposals-page .labs-field--dense input { min-height: 40px; height: 40px; padding-block: 8px; }
.proposals-page .labs-file-upload__input { min-height: 0; padding: 0; border: 0; }

/* Designated-client viewing acknowledgement for newly issued proposals. */
.proposal-viewer-consent { box-sizing: border-box; width: min(720px, calc(100% - 32px)); margin: clamp(24px, 6vw, 84px) auto; padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line); border-radius: var(--labs-radius-panel); background: var(--surface); color: var(--text); }
.proposal-viewer-consent h1 { margin: 12px 0; font: 600 clamp(26px, 4vw, 36px)/1.25 var(--font-ui); }
.proposal-viewer-consent > p { font: 400 15px/1.65 var(--font-ui); }
.proposal-viewer-consent .proposal-check { display: flex; align-items: flex-start; gap: 10px; margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font: 500 14px/1.6 var(--font-ui); }
.proposal-viewer-consent .proposal-check input { margin-top: 2px; accent-color: var(--checkbox-accent, #808080); }
.proposal-viewer-consent .proposal-viewer-consent__note { margin: 8px 0 0 28px; color: #625f59; font: 400 13px/1.65 var(--font-ui); }
:root[data-theme="dark"] .proposal-viewer-consent .proposal-viewer-consent__note { color: color-mix(in srgb, #625f59 35%, #fff); }
.proposal-viewer-consent > a { display: inline-block; margin: 8px 0 24px 28px; font: 500 13px/1.5 var(--font-ui); color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.proposal-viewer-consent [data-proposal-action="viewer-agree"] { display: block; width: 100%; }
.proposal-viewer-consent [data-proposal-action="viewer-agree"]:disabled { opacity: 1; color: var(--muted); background: color-mix(in srgb, var(--surface) 84%, var(--text)); border-color: transparent; cursor: not-allowed; }
html:root body .proposal-viewer-consent [data-proposal-action="viewer-agree"]:disabled {
  opacity: 1;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 84%, var(--text));
  border-color: transparent;
  cursor: not-allowed;
}
@media print { .proposal-viewer-consent { display: none !important; } }

.proposal-loading{padding:20px 0;max-width:960px;margin:auto}.proposal-loading .proposal-helper{margin-top:8px}.proposal-loading__title{width:min(420px,70%);height:36px;margin:28px 0 24px;border-radius:6px}.proposal-loading__image{width:100%;aspect-ratio:16/9;border-radius:12px}.proposal-loading__title,.proposal-loading__image{background:color-mix(in srgb,var(--text) 6%,var(--surface));animation:proposal-loading-pulse 1.6s ease-in-out infinite alternate}@keyframes proposal-loading-pulse{to{opacity:.45}}@media(prefers-reduced-motion:reduce){.proposal-loading__title,.proposal-loading__image{animation:none}}

/* Customer-facing first paint: stable branding, bounded image placeholders. */
.proposal-company-brand { display: flex; justify-content: center; align-items: center; min-height: 40px; margin-bottom: 12px; }
.proposal-public__heading .proposal-company-brand .proposal-company-logo { margin: 0; max-height: 40px; }
/* Keep the uploaded company artwork intact on the dark page canvas. */
:root[data-theme="dark"] .proposal-company-logo { background: #fff; padding: 8px 10px; border-radius: 4px; }
.proposal-public__story figure { position: relative; }
.proposal-public__story img[data-proposal-pending] { background: color-mix(in srgb, var(--text) 5%, var(--surface)); color: transparent; }
.proposal-media-status { position: absolute; inset-inline: 0; top: 40%; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; padding: 12px; color: var(--muted); font: 400 12px/18px var(--font-ui); }
.proposal-media-status[hidden] { display: none; }
.proposal-media-status .proposal-button { min-height: 44px; padding: 8px 14px; }
.proposal-access-guidance { display: grid; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }

/* Pending media stays behind a stable skeleton until decoded, never a broken img. */
.proposal-public__story figure:has(img[data-proposal-pending]) { aspect-ratio:16/9; background:color-mix(in srgb,var(--text) 5%,var(--surface)); overflow:hidden; }
.proposal-public__story img[data-proposal-pending] { visibility:hidden; }
.proposal-media-status.is-loading { width:1px; height:1px; overflow:hidden; clip-path:inset(50%); padding:0; }
/* The reviewed sample uses identical monochrome artwork and dimensions in both themes. */
.proposal-company-brand--sample .proposal-company-logo { width:180px; height:auto; max-height:40px; object-fit:contain; padding:0; background:none; border-radius:0; }
:root[data-theme="dark"] .proposal-company-brand--sample .proposal-company-logo { filter:invert(1); padding:0; background:none; border-radius:0; }
