.proposal-view {
  gap: 18px;
}
.workflow-strip {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8px 4px;
}
.workflow-step {
  width: 84px;
  display: grid;
  justify-items: center;
  gap: 7px;
  text-align: center;
  color: var(--muted);
}
.workflow-step > span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid var(--border);
  background: var(--surface);
  font-weight: 800;
}
.workflow-step.complete {
  color: var(--accent);
}
.workflow-step.complete > span {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.workflow-step small {
  font-size: 0.72rem;
  line-height: 1.2;
}
.workflow-line {
  height: 2px;
  width: 42px;
  background: var(--border);
  margin-top: 16px;
}
.proposal-paper {
  background: #fff;
  color: var(--proposal-text);
  border-radius: 8px;
  padding: clamp(20px, 5vw, 46px);
  box-shadow: var(--shadow-elev-2);
  display: grid;
  gap: 24px;
}
.proposal-letterhead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  border-bottom: 2px solid var(--color-brand-500);
  padding-bottom: 18px;
}
.proposal-letterhead img {
  width: min(300px, 58%);
  height: auto;
}
.proposal-letterhead > div {
  display: grid;
  gap: 8px;
  text-align: right;
  font-size: 0.83rem;
}
.proposal-status {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--proposal-accent);
}
.proposal-address {
  display: grid;
  gap: 4px;
}
.proposal-intro {
  line-height: 1.62;
  margin: 0;
}
.proposal-section {
  display: grid;
  gap: 14px;
}
.proposal-section > h2 {
  font-size: 1.12rem;
  border-bottom: 1px solid var(--proposal-rule);
  padding-bottom: 8px;
  color: var(--proposal-heading);
}
.proposal-scope h3,
.proposal-cost-group h3 {
  margin: 7px 0;
  font-size: 0.98rem;
}
.proposal-scope ul {
  margin: 4px 0 8px;
  padding-left: 20px;
  line-height: 1.55;
}
.proposal-cost-group {
  display: grid;
  gap: 5px;
}
.proposal-cost-row,
.proposal-room-title {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 5px 0;
}
.proposal-room {
  border-bottom: 1px solid var(--proposal-rule-light);
  padding: 7px 0;
}
.proposal-work-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.proposal-work-chips span {
  font-size: 0.74rem;
  background: var(--proposal-callout);
  border-radius: 999px;
  padding: 5px 8px;
}
.proposal-note {
  font-size: 0.82rem;
  color: var(--proposal-muted);
  margin: 6px 0;
}
.proposal-total,
.proposal-grand-total,
.proposal-evidence {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-top: 2px solid var(--proposal-rule-strong);
  font-weight: 800;
}
.proposal-grand-total {
  font-size: 1.08rem;
  border-top: 3px double var(--proposal-text);
  border-bottom: 3px double var(--proposal-text);
}
.proposal-signature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  margin-top: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--proposal-rule);
}
.proposal-signature strong {
  grid-row: 2;
}
.proposal-actions {
  display: grid;
  gap: 10px;
}
.future-panel,
.final-panel {
  text-align: center;
  padding: 10px;
}
.future-list,
.ai-checklist {
  display: grid;
  gap: 10px;
  text-align: left;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}
.future-list li,
.ai-checklist span {
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface-alt);
}
.final-formats {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 20px 0;
}
.final-formats span {
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
}
@media (max-width: 520px) {
  .proposal-letterhead {
    display: grid;
  }
  .proposal-letterhead > div {
    text-align: left;
  }
  .proposal-letterhead img {
    width: min(320px, 90%);
  }
  .workflow-step {
    width: 70px;
  }
  .workflow-line {
    width: 20px;
  }
  .proposal-signature {
    grid-template-columns: 1fr;
  }
  .proposal-signature strong {
    grid-row: auto;
  }
}

/* 0.7.0 simulated office-to-proposal flow */
.workflow-step.active > span {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}
.workflow-line.complete {
  background: var(--accent);
}
.proposal-stage-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-elev-1);
}
.stage-icon,
.stage-complete-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 900;
  font-size: 1.25rem;
}
.stage-icon svg {
  width: 24px;
  height: 24px;
}
.stage-copy {
  display: grid;
  gap: 6px;
}
.stage-copy h2,
.stage-copy p {
  margin: 0;
}
.stage-copy p {
  color: var(--muted);
  line-height: 1.55;
}
.stage-kicker {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.review-snapshot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.review-snapshot > div {
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 13px;
  border-radius: 16px;
  background: var(--surface-alt);
}
.review-snapshot span {
  color: var(--muted);
  font-size: 0.77rem;
}
.review-snapshot strong {
  font-size: 1.02rem;
}
.inspection-package,
.package-mini-card {
  display: grid;
  gap: 7px;
  padding: 16px;
  border-radius: 17px;
  background: var(--accent-soft);
  color: var(--text);
}
.inspection-package span,
.package-mini-card span {
  color: var(--muted);
  font-size: 0.84rem;
}
.ai-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.ai-primary svg {
  width: 19px;
  height: 19px;
}
.powered-ai {
  display: block;
  text-align: center;
  color: var(--muted);
}
.proposal-ready-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--accent-soft);
}
.proposal-ready-banner > div {
  display: grid;
  gap: 3px;
}
.proposal-ready-banner small {
  color: var(--muted);
}
.simulation-panel {
  display: grid;
  gap: 18px;
}
.simulation-hero {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}
.simulation-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.simulation-steps {
  display: grid;
  gap: 8px;
}
.simulation-step {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 14px;
  background: var(--surface-alt);
  color: var(--muted);
}
.simulation-step.active {
  color: var(--text);
  background: var(--accent-soft);
}
.simulation-step.done {
  color: var(--text);
}
.simulation-dot {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 800;
  font-size: 0.78rem;
}
.simulation-step.active .simulation-dot,
.simulation-step.done .simulation-dot {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}
.final-formats button {
  border: 0;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
}
.final-actions {
  padding-bottom: 4px;
}
@media (max-width: 390px) {
  .workflow-step {
    width: 59px;
  }
  .workflow-step small {
    font-size: 0.65rem;
  }
  .workflow-line {
    width: 12px;
  }
  .proposal-stage-card {
    padding: 18px;
  }
}


/* 0.7.1 Proposal Workspace hierarchy */
.workspace-section-title {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 2px;
}
.workspace-section-title span {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.tertiary-action {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 750;
  padding: 10px 14px;
  border-radius: 14px;
}
.tertiary-action:active {
  background: var(--surface-2);
  color: var(--text);
}

/* 0.7.4 centered office-review snapshot card */
.review-snapshot {
  position: relative;
  overflow: hidden;
  padding: 0;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-alt);
}
.review-snapshot > div {
  min-height: 92px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 16px 14px;
  border-radius: 0;
  background: transparent;
  text-align: center;
}
.review-snapshot > div:nth-child(odd) {
  border-right: 1px solid var(--border);
}
.review-snapshot > div:nth-child(-n + 2) {
  border-bottom: 1px solid var(--border);
}
.review-snapshot span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.25;
}
.review-snapshot strong {
  display: block;
  max-width: 100%;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.15;
  text-align: center;
  overflow-wrap: anywhere;
}
.review-snapshot strong.money {
  white-space: normal;
}
@media (max-width: 340px) {
  .review-snapshot {
    grid-template-columns: 1fr;
  }
  .review-snapshot > div:nth-child(odd) {
    border-right: 0;
  }
  .review-snapshot > div {
    border-bottom: 1px solid var(--border);
  }
  .review-snapshot > div:last-child {
    border-bottom: 0;
  }
}
