:root {
  /* PostcardMania-inspired brand palette */
  --pcm-pink: #e52680;
  --pcm-coral: #f16b63;
  --pcm-orange: #f6971c;
  --pcm-lime: #7cc51e;
  --pcm-plum: #2d1a47;
  --pcm-soft-pink: #fce8f2;
  --ink: var(--pcm-plum);
  --muted: #6e6577;
  --pink: var(--pcm-pink);
  --pink-dark: #b91765;
  --pink-light: var(--pcm-soft-pink);
  --lime: var(--pcm-lime);
  --green-dark: #4f8512;
  --cream: #f7f3f8;
  --line: #e5dce9;
  --white: #fff;
  --shadow: 0 24px 65px rgba(45, 26, 71, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--cream);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: var(--cream);
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
select,
input[type="checkbox"],
input[type="radio"] {
  cursor: pointer;
}

.app-header {
  height: 74px;
  padding: 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(33, 37, 41, 0.85) 0%, rgba(33, 37, 41, 0.85) 70%, #212529 100%);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark,
.paper-brand span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--pink-dark);
  border-radius: 10px 10px 10px 2px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-weight: 800;
}

.brand>span:last-child {
  display: grid;
  line-height: 1.1;
}

.brand strong {
  color: var(--cream);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-pill {
  display: inline-flex;
  background: #fff;
  align-items: center;
  gap: 7px;
  min-height: 31px;
  padding: 0 11px;
  border: 1px solid var(--lime);
  border-radius: 999px;
  color: #52605a;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.status-pill.private span {
  width: 7px;
  height: 7px;
  background: var(--pcm-lime);
  border-radius: 50%;
  box-shadow: 0 0 0 4px #eaf6da;
}

.status-pill.mock {
  color: #8c3c42;
  background: #fff0ef;
  border-color: #f5c4c0;
}

.button {
  min-height: 40px;
  padding: 0 15px;
  border: 0;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 13px;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  min-height: 47px;
  padding-inline: 19px;
  color: #fff;
  background: var(--pink-dark);
  box-shadow: 0 8px 20px rgba(229, 38, 128, .22);
}

.button.primary:hover {
  background: #96104e;
}

.button.dark {
  color: #fff;
  background: var(--ink);
  white-space: nowrap;
}

.button.ghost {
  color: var(--ink);
  background: #f7f3f8;
}

.button.secondary {
  color: var(--pink-dark);
  background: var(--pink-light);
}

.button.text {
  padding-left: 0;
  color: var(--muted);
  background: transparent;
}

.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: #fff;
  font-size: 19px;
}

.workspace {
  height: calc(100vh - 74px);
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(490px, 44%) minmax(610px, 56%);
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
}

.builder-panel {
  height: 100%;
  min-height: 0;
  padding: 38px clamp(28px, 4vw, 65px) 80px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  background: #fff;
  border-right: 1px solid var(--line);
}

.builder-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 27px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--pink-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font: 800 clamp(27px, 3vw, 38px)/1.08 Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: -.04em;
}

.quote-id {
  color: #8a948f;
  font: 700 11px/1 Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: .07em;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.step {
  position: relative;
  padding: 0 0 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  color: #919994;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.step::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: transparent;
}

.step span {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border: 1px solid #cfd6d1;
  border-radius: 50%;
  font-size: 10px;
}

.step.active {
  color: var(--ink);
}

.step.active::after {
  background: var(--pink);
}

.step.active span,
.step.complete span {
  color: #fff;
  background: var(--pink);
  border-color: var(--pink);
}

.step.complete span {
  font-size: 0;
}

.step.complete span::after {
  content: "\2713";
  font-size: 11px;
  position: relative;
  top: -2px;
}

.form-step {
  display: none;
  animation: enter .22s ease;
}

.form-step.active {
  display: block;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
}

.integration-card {
  padding: 17px;
  margin-bottom: 25px;
  border: 1px solid #f5c4c0;
  border-radius: 12px;
  background: #fff4f3;
}

.integration-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
}

.integration-head>div {
  display: grid;
  flex: 1;
}

.integration-head strong {
  font-size: 13px;
}

.integration-head small {
  margin-top: 2px;
  color: #8c6669;
  font-size: 11px;
}

.nimble-glyph {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--pcm-coral);
  font: 800 14px/1 Inter, "Segoe UI", Arial, sans-serif;
}

.mock-label {
  padding: 4px 6px;
  border: 1px solid #f3aaa5;
  border-radius: 4px;
  color: #963f46;
  background: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
}

.integration-controls {
  display: flex;
  gap: 9px;
}

.integration-controls select {
  min-width: 0;
  flex: 1;
}

.integration-note {
  margin: 11px 0 0;
  color: #805b60;
  font-size: 11px;
  line-height: 1.45;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}

.field {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.field.full {
  margin-top: 17px;
}

.field input,
.field textarea,
.field select,
.integration-controls select {
  width: 100%;
  border: 1px solid #d7ddd8;
  border-radius: 9px;
  outline: none;
  color: var(--ink);
  background: #fff;
}

.field input,
.field select,
.integration-controls select {
  height: 43px;
  padding: 0 12px;
}

.field textarea {
  padding: 12px;
  resize: vertical;
  line-height: 1.5;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.integration-controls select:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(229, 38, 128, .10);
}

.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 27px;
}

.scope-grid {
  margin-bottom: 22px;
}

.range-field {
  padding: 17px;
  margin-bottom: 23px;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.range-heading {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.range-heading strong {
  color: var(--pink-dark);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--pink);
}

.range-scale {
  display: flex;
  justify-content: space-between;
  color: #a2aaa6;
  font-size: 9px;
}

fieldset {
  padding: 0;
  margin: 0 0 23px;
  border: 0;
}

legend {
  margin-bottom: 11px;
  font-size: 11px;
  font-weight: 700;
}

.choice-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.choice-group legend,
.package-group legend,
.addon-group legend {
  grid-column: 1 / -1;
}

.check-card {
  min-height: 43px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #45534c;
  font-size: 12px;
  font-weight: 600;
}

.check-card input,
.radio-card input,
.package-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-ui {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid #cbd3cd;
  border-radius: 5px;
  color: transparent;
  font-size: 10px;
}

.check-card:has(input:checked) {
  border-color: #ee9cc2;
  background: #fff4f9;
}

.check-card input:checked+.check-ui {
  color: #fff;
  background: var(--pink-dark);
  border-color: var(--pink-dark);
}

.readiness {
  grid-template-columns: repeat(3, 1fr);
}

.radio-card {
  min-height: 67px;
  padding: 11px;
  display: grid;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.radio-card span {
  font-size: 12px;
  font-weight: 700;
}

.radio-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.radio-card:has(input:checked) {
  border-color: var(--pink);
  box-shadow: inset 0 0 0 1px var(--pink);
  background: #fff7fb;
}

.package-group {
  display: grid;
  gap: 9px;
}

.package-group legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.package-group legend span {
  color: var(--green-dark);
  font-size: 9px;
  font-weight: 700;
}

.rate-card-note {
  grid-column: 1 / -1;
  margin: -4px 0 3px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.package-card {
  min-height: 67px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.package-card>span:nth-of-type(2) {
  display: grid;
}

.package-card strong,
.addon-group strong {
  font-size: 12px;
}

.package-card small,
.addon-group small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}

.package-card b,
.addon-group b {
  font: 700 12px/1 Inter, "Segoe UI", Arial, sans-serif;
}

.package-check {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid #cbd3cd;
  border-radius: 50%;
  color: transparent;
  font-size: 10px;
}

.package-card.selected {
  border-color: var(--pink);
  box-shadow: inset 0 0 0 1px var(--pink);
  background: #fff7fb;
}

.package-card.selected .package-check {
  color: #fff;
  background: var(--pink-dark);
  border-color: var(--pink-dark);
}

.package-details {
  padding: 13px 14px;
  margin: -13px 0 22px;
  border: 1px solid #f0c9dc;
  border-radius: 10px;
  background: #fff8fb;
}

.package-details>div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 9px;
}

.package-details strong {
  font-size: 11px;
}

.package-details small {
  color: var(--muted);
  font-size: 8px;
  text-align: right;
}

.package-details ul {
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  list-style: none;
}

.package-details li {
  padding: 5px 7px;
  border-radius: 999px;
  color: #6e3651;
  background: #fce8f2;
  font-size: 11px;
  font-weight: 600;
}

.addon-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  overflow: hidden;

  border-radius: 10px;
  /* background: var(--line); */
}

.addon-group legend {
  width: 100%;
  margin: 0;
  padding: 0 0 10px;
  background: #fff;
}

.addon-group label {
  min-height: 68px;
  padding: 12px;
  display: grid;
  grid-template-columns: 17px 1fr auto;
  gap: 8px;
  align-items: center;
  background: #fff;
}

.addon-group label span {
  display: grid;
}

.addon-group input {
  accent-color: var(--pink);
}

.copy-card {
  border: 1px solid var(--line);
  border-radius: 10px;
}

.custom-price-note {
  margin: -10px 0 18px;
  padding: 10px 12px;
  border-radius: 9px;
  color: #805b60;
  background: #fff4f3;
  font-size: 9px;
  line-height: 1.5;
}

.recurring-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbf9fc;
}

.recurring-row {
  padding-bottom: 12px;
  margin-bottom: 13px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
}

.recurring-row>span {
  display: grid;
}

.recurring-row strong {
  font-size: 12px;
}

.recurring-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.recurring-row b {
  color: var(--green-dark);
  font-size: 12px;
  white-space: nowrap;
}

.recurring-card .field.full {
  margin-top: 0;
}

.recurring-card>p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.maintenance-coverage {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.maintenance-coverage strong {
  font-size: 10px;
}

.maintenance-coverage ul {
  margin: 8px 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.maintenance-coverage small {
  display: block;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
}

.preview-panel {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 95% 0%, #f8d9e8 0, transparent 38%), #eee9f0;
}

.preview-toolbar {
  min-height: 64px;
  padding: 0 27px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #d9d0dd;
  background: rgba(255, 255, 255, .68);
  backdrop-filter: blur(10px);
}

.preview-toolbar>div:first-child {
  display: grid;
  grid-template-columns: 10px auto;
  align-items: center;
  column-gap: 7px;
}

.preview-toolbar strong {
  font-size: 12px;
}

.preview-toolbar small {
  grid-column: 2;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.live-dot {
  width: 7px;
  height: 7px;
  grid-row: 1 / 3;
  border-radius: 50%;
  background: var(--pcm-lime);
  box-shadow: 0 0 0 4px rgba(124, 197, 30, .14);
}

.toolbar-actions {
  display: flex;
  gap: 8px;
}

.paper-wrap {
  padding: 40px;
  flex: 1;
  overflow: auto;
  transition: padding .2s ease;
}

.paper-wrap.roomy {
  padding: 20px 70px;
}

.paper {
  width: min(100%, 670px);
  min-height: 864px;
  padding: 46px 48px 35px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: var(--shadow);
}

.paper + .paper {
  margin-top: 30px;
}

.paper.pulse {
  animation: paperPulse .48s ease;
}

@keyframes paperPulse {
  50% {
    transform: scale(1.008);
    box-shadow: 0 30px 80px rgba(229, 38, 128, .19);
  }
}

.paper-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.paper-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font: 800 11px/1 Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: .08em;
}

.paper-brand span {
  width: 29px;
  height: 29px;
  border-radius: 8px 8px 8px 2px;
  font-size: 11px;
}

.paper-meta {
  display: grid;
  justify-items: end;
}

.paper-meta span,
.paper-label {
  color: var(--pink-dark);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .15em;
}

.paper-meta strong {
  margin-top: 4px;
  font: 700 10px/1 Inter, "Segoe UI", Arial, sans-serif;
}

.paper-meta small {
  margin-top: 4px;
  color: #87928c;
  font-size: 8px;
}

.paper-hero {
  padding: 43px 0 30px;
  border-bottom: 1px solid #e7dfe9;
}

.paper-hero p {
  margin-bottom: 7px;
  color: #76837d;
  font-size: 11px;
}

.paper-hero h2 {
  max-width: 480px;
  margin-bottom: 8px;
  font: 800 32px/1.08 Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: -.04em;
}

.paper-hero span {
  color: var(--pink-dark);
  font-size: 11px;
  font-weight: 700;
}

.paper-section-hero {
  padding: 52px 0 32px;
  border-bottom: 1px solid #e7dfe9;
}

.paper-section-hero p {
  margin: 0 0 10px;
  color: #76837d;
  font-size: 10px;
}

.paper-section-hero p strong {
  color: var(--pink-dark);
}

.paper-section-hero h2 {
  margin: 0 0 10px;
  font: 800 28px/1.12 Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: -.035em;
}

.paper-section-hero span {
  color: #627069;
  font-size: 11px;
}

.paper-intro {
  padding: 25px 0 22px;
}

.paper-intro h3 {
  margin-bottom: 8px;
  font: 800 18px/1.2 Inter, "Segoe UI", Arial, sans-serif;
}

.paper-intro p {
  max-width: 530px;
  margin-bottom: 0;
  color: #627069;
  font-size: 11px;
  line-height: 1.65;
}

.paper-columns {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 27px;
}

.paper-columns h4 {
  margin: 7px 0 7px;
  font: 800 14px/1.25 Inter, "Segoe UI", Arial, sans-serif;
}

.paper-columns p {
  margin-bottom: 8px;
  color: #66736d;
  font-size: 10px;
  line-height: 1.55;
}

.paper-columns ul {
  padding: 0;
  margin: 0;
  display: grid;
  gap: 5px;
  list-style: none;
}

.paper-columns li {
  position: relative;
  padding-left: 11px;
  color: #53615a;
  font-size: 9px;
  line-height: 1.4;
}

.paper-columns li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
}

.timeline-box {
  padding: 17px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
}

.timeline-box .paper-label {
  color: var(--lime);
}

.timeline-box ol {
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 9px;
  list-style: none;
}

.timeline-box li {
  padding: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.timeline-box li::before {
  display: none;
}

.timeline-box li b {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  color: var(--lime);
  font-size: 8px;
}

.timeline-box li span {
  display: grid;
}

.timeline-box li strong {
  font-size: 10px;
}

.timeline-box li small {
  margin-top: 2px;
  color: #c7bbc9;
  font-size: 8px;
}

.deliverables-section {
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid #e7dfe9;
  border-radius: 10px;
  background: #fcfafc;
}

.deliverables-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.deliverables-head small {
  color: #8a958f;
  font-size: 8px;
}

.deliverables-section ul {
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 18px;
  list-style: none;
}

.deliverables-section li {
  position: relative;
  padding-left: 10px;
  color: #53615a;
  font-size: 9px;
  line-height: 1.45;
}

.deliverables-section li::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lime);
}

.investment {
  margin-top: 20px;
  padding-top: 19px;
  border-top: 1px solid #e7dfe9;
}

.investment-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.investment-head small {
  color: #9aa39e;
  font-size: 8px;
}

.line-group-label {
  display: block;
  margin: 10px 0 2px;
  color: #8b7f91;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
}

.line-group-label.recurring-label {
  margin-top: 12px;
}

.line-item {
  min-height: 48px;
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f0ebf1;
}

.line-item span {
  display: grid;
}

.line-item strong {
  font-size: 11px;
}

.line-item small {
  margin-top: 2px;
  color: #8a958f;
  font-size: 8px;
  line-height: 1.4;
}

.line-item b {
  font: 700 11px/1 Inter, "Segoe UI", Arial, sans-serif;
}

.totals {
  width: 57%;
  margin: 10px 0 0 auto;
}

.totals>div {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
}

.totals .total-row {
  padding: 8px 0;
  align-items: center;
  border-top: 1px solid var(--ink);
}

.total-row span {
  font-weight: 700;
}

.total-row strong {
  font: 800 17px/1 Inter, "Segoe UI", Arial, sans-serif;
}

.totals .monthly-total {
  padding: 7px 0;
  color: var(--green-dark);
  font-weight: 700;
  border-top: 1px solid var(--line);
}

.totals .monthly-total strong {
  font-size: 10px;
}

.totals p {
  display: block;
  margin: 5px 0 0;
  color: #897f8e;
  font-size: 8px;
  line-height: 1.45;
}

.totals p b {
  color: var(--ink);
}

.proposal-notes {
  margin-top: 34px;
  padding: 20px;
  border-radius: 10px;
  background: #fcfafc;
}

.proposal-notes ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: #53615a;
  font-size: 10px;
  line-height: 1.55;
}

.proposal-notes li + li {
  margin-top: 7px;
}

.paper-footer {
  padding-top: 24px;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #e7dfe9;
  color: #9b919f;
  font-size: 8px;
}

.paper-footer strong {
  color: var(--pink-dark);
  letter-spacing: .08em;
}

dialog {
  width: min(880px, calc(100% - 40px));
  padding: 30px;
  border: 0;
  border-radius: 16px;
  color: var(--ink);
  box-shadow: 0 35px 90px rgba(7, 32, 23, .25);
}

dialog::backdrop {
  background: rgba(11, 28, 21, .58);
  backdrop-filter: blur(4px);
}

.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.dialog-head h2 {
  margin-bottom: 0;
  font: 800 26px/1.1 Inter, "Segoe UI", Arial, sans-serif;
}

.dialog-lede {
  max-width: 700px;
  margin: 13px 0 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.architecture-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.architecture-flow div {
  min-height: 81px;
  padding: 11px;
  display: grid;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.architecture-flow div span {
  color: var(--pink-dark);
  font-size: 9px;
  font-weight: 800;
}

.architecture-flow div strong {
  margin-top: 4px;
  font-size: 12px;
}

.architecture-flow div small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}

.architecture-flow i {
  color: #9ba59f;
  font-style: normal;
}

.architecture-flow .mock-architecture {
  border-color: #f3aaa5;
  background: #fff0ef;
}

dialog table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

dialog th,
dialog td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

dialog th {
  color: var(--muted);
  background: #f6f7f5;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

dialog td:first-child {
  font-weight: 700;
}

.guardrail {
  margin-top: 18px;
  padding: 12px;
  border-radius: 9px;
  color: #803a41;
  background: #fff0ef;
  font-size: 11px;
}

.toast {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 20;
  min-width: 310px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid #f2c6dc;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(45, 26, 71, .2);
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: .25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast>span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--pink-dark);
}

.toast>div {
  display: grid;
}

.toast strong {
  font-size: 12px;
}

.toast small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

@media (max-width: 1050px) {
  .workspace {
    height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    overflow: visible;
  }

  .builder-panel {
    height: auto;
    max-height: none;
    overflow: visible;
    border-right: 0;
  }

  .preview-panel {
    min-height: 900px;
  }
}

@media (max-width: 650px) {
  .app-header {
    height: auto;
    min-height: 66px;
    padding: 11px 15px;
  }

  .status-pill {
    display: none;
  }

  .workspace {
    display: block;
  }

  .builder-panel {
    padding: 28px 18px 40px;
  }

  .builder-heading {
    align-items: flex-start;
  }

  .field-grid,
  .choice-group,
  .readiness,
  .addon-group {
    grid-template-columns: 1fr;
  }

  .addon-group legend {
    grid-column: 1;
  }

  .paper-wrap,
  .paper-wrap.roomy {
    padding: 20px 10px;
  }

  .paper {
    width: 670px;
    transform: scale(.53);
    transform-origin: top left;
    margin-bottom: -390px;
  }

  .preview-panel {
    min-height: 560px;
  }

  .preview-toolbar {
    padding: 10px 15px;
  }

  .icon-button#fitPreview {
    display: none;
  }

  .architecture-flow {
    grid-template-columns: 1fr;
  }

  .architecture-flow i {
    transform: rotate(90deg);
    text-align: center;
  }

  dialog {
    padding: 20px;
  }

  dialog table {
    font-size: 9px;
  }
}

@page {
  size: letter;
  margin: 0;
}

@media print {
  body {
    background: #fff;
  }

  .app-header,
  .builder-panel,
  .preview-toolbar,
  dialog,
  .toast {
    display: none !important;
  }

  .workspace,
  .preview-panel,
  .paper-wrap {
    display: block;
    height: auto;
    padding: 0;
    overflow: visible;
    background: #fff;
  }

  .paper {
    width: 8.5in;
    min-height: 11in;
    padding: .58in .62in .46in;
    margin: 0;
    box-shadow: none;
    transform: none;
    break-after: page;
    page-break-after: always;
  }

  .paper + .paper {
    margin-top: 0;
  }

  .paper:last-child {
    break-after: auto;
    page-break-after: auto;
  }
}
