:root {
  --bg: #f3f1ea;
  --paper: #fffefa;
  --ink: #1d2622;
  --muted: #6f7772;
  --line: #dcded8;
  --line-strong: #c9cdc6;
  --green: #226341;
  --green-dark: #17492f;
  --green-soft: #e9f1eb;
  --orange: #e67831;
  --orange-soft: #fff0e5;
  --red: #b5503c;
  --red-soft: #faebe7;
  --shadow: 0 24px 65px rgba(36, 48, 42, .09);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 2%, rgba(48, 112, 76, .08), transparent 26rem),
    linear-gradient(135deg, #f7f5ef, var(--bg));
  font-family: "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

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

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(230, 120, 49, .32);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.ambient--one {
  width: 340px;
  height: 340px;
  top: 35%;
  left: -240px;
  background: rgba(34, 99, 65, .08);
}

.ambient--two {
  width: 260px;
  height: 260px;
  right: -170px;
  bottom: 4%;
  background: rgba(230, 120, 49, .08);
}

.shell {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  padding: 26px 0 30px;
}

.topbar,
.topbar__actions,
.brand,
.progress__item,
.panel__header,
.request-meta,
.notice,
.section-heading > div,
.estimate-head,
.check-badge,
.delivery-check > div,
.footer-note,
.footer-note a,
.proposal__toolbar,
.proposal__brand,
.proposal__actions,
.toast,
.success-dot {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  min-height: 46px;
}

.brand {
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  grid-template-columns: repeat(2, 10px);
  gap: 3px;
  width: 32px;
  height: 32px;
  padding: 5px;
  border-radius: 9px;
  background: var(--green);
  transform: rotate(-2deg);
  box-shadow: 0 6px 16px rgba(34, 99, 65, .18);
}

.brand__mark span {
  border-radius: 2px 7px 2px 7px;
  background: #fff;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  letter-spacing: -.01em;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.topbar__actions {
  gap: 10px;
}

.demo-label {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, .42);
  font-size: 12px;
}

.demo-label i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(34, 99, 65, .11);
}

.tour-button {
  position: relative;
  display: inline-flex;
  min-height: 38px;
  overflow: hidden;
  padding: 0 14px 0 11px;
  border: 1px solid var(--green);
  border-radius: 999px;
  align-items: center;
  gap: 7px;
  color: #fff;
  background: var(--green);
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(34, 99, 65, .14);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.tour-button:hover {
  background: var(--green-dark);
  box-shadow: 0 11px 24px rgba(34, 99, 65, .22);
  transform: translateY(-1px);
}

.tour-button svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.tour-button > i {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width .35s ease;
}

.tour-button.is-playing {
  background: var(--green-dark);
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease;
}

.icon-button:hover {
  border-color: var(--green);
  transform: translateY(-1px);
}

.icon-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: 40px;
  align-items: end;
  padding: 58px 0 40px;
}

.eyebrow,
.panel__kicker {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.intro h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(44px, 6.4vw, 88px);
  font-weight: 580;
  letter-spacing: -.065em;
  line-height: .93;
}

.intro__copy {
  max-width: 440px;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.55;
}

.progress {
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 254, 250, .72);
  box-shadow: 0 12px 30px rgba(36, 48, 42, .04);
}

.progress ol {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.progress__item {
  position: relative;
  gap: 12px;
  min-width: 0;
  padding: 16px 18px;
  color: #919792;
  transition: color .3s ease, background .3s ease;
}

.progress__item:not(:last-child)::after {
  position: absolute;
  top: 14px;
  right: 0;
  bottom: 14px;
  width: 1px;
  content: "";
  background: var(--line);
}

.progress__item > span {
  display: grid;
  flex: 0 0 auto;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: Consolas, monospace;
  font-size: 10px;
  transition: all .3s ease;
}

.progress__item strong,
.progress__item small {
  display: block;
  white-space: nowrap;
}

.progress__item strong {
  font-size: 13px;
}

.progress__item small {
  margin-top: 2px;
  font-size: 10px;
  font-weight: 500;
}

.progress__item.is-active {
  color: var(--ink);
  background: #fff;
}

.progress__item.is-active > span {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
  box-shadow: 0 0 0 5px var(--green-soft);
}

.progress__item.is-complete {
  color: var(--green);
}

.progress__item.is-complete > span {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-soft);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(340px, .78fr) minmax(560px, 1.22fr);
  gap: 18px;
  align-items: stretch;
}

.panel {
  min-width: 0;
  min-height: 650px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 254, 250, .92);
  box-shadow: var(--shadow);
}

.panel__header {
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.panel__header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -.035em;
}

.panel__kicker {
  margin-bottom: 5px;
  font-size: 9px;
}

.source-badge,
.status-chip {
  flex: 0 0 auto;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.source-badge {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 7px 10px;
  color: var(--green);
  background: var(--green-soft);
}

.source-badge svg,
.check-badge svg,
.delivery-check svg,
.footer-note svg,
.primary-button svg,
.secondary-button svg,
.proposal__warning svg,
.toast svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.status-chip {
  padding: 8px 11px;
  color: #7b756d;
  background: #f0eee8;
}

.status-chip.is-warning {
  color: #95531f;
  background: var(--orange-soft);
}

.status-chip.is-ready {
  color: var(--green);
  background: var(--green-soft);
}

.request-meta {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  padding: 22px 0 18px;
}

.avatar {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green-dark);
  font-size: 14px;
  font-weight: 700;
}

.request-meta strong,
.request-meta span {
  display: block;
}

.request-meta strong {
  margin-top: 3px;
  font-size: 13px;
}

.request-meta span,
.request-meta time {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.product-card {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 17px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.product-card__visual {
  position: relative;
  min-height: 122px;
  overflow: hidden;
  border-radius: 12px;
  background:
    radial-gradient(circle at 26% 30%, #70736d 0 8px, transparent 9px),
    radial-gradient(circle at 65% 21%, #a0a097 0 10px, transparent 11px),
    radial-gradient(circle at 77% 66%, #51534f 0 13px, transparent 14px),
    radial-gradient(circle at 26% 74%, #8a8b83 0 15px, transparent 16px),
    #d7d4ca;
}

.product-card__visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(145deg, rgba(255, 255, 255, .36), transparent 50%, rgba(27, 35, 31, .18));
}

.product-card__visual span {
  position: absolute;
  width: 22px;
  height: 16px;
  border-radius: 41% 59% 34% 66%;
  background: #6c6f69;
  transform: rotate(24deg);
}

.product-card__visual span:nth-child(1) { left: 11px; bottom: 15px; }
.product-card__visual span:nth-child(2) { top: 14px; right: 7px; width: 16px; background: #4d504c; }
.product-card__visual span:nth-child(3) { left: 45px; top: 45px; width: 28px; height: 21px; background: #8a8b83; }
.product-card__visual span:nth-child(4) { right: 11px; bottom: 8px; background: #a2a199; }
.product-card__visual span:nth-child(5) { left: 13px; top: 47px; width: 14px; height: 19px; background: #555852; }

.product-card__body {
  min-width: 0;
  padding: 3px 0;
}

.tag {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.product-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
}

.product-card p {
  margin: 7px 0 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.product-card small {
  color: #919791;
  font-family: Consolas, monospace;
  font-size: 9px;
}

.notice {
  gap: 11px;
  margin: 16px 0;
  padding: 13px 14px;
  border-radius: 13px;
}

.notice--neutral {
  color: #6e5b4c;
  background: #f5f0e9;
}

.notice svg {
  flex: 0 0 auto;
  width: 18px;
  fill: none;
  stroke: var(--orange);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.notice p {
  margin: 0;
  font-size: 10px;
  line-height: 1.5;
}

.message-thread {
  margin: 18px 0;
}

.message {
  width: 88%;
  padding: 12px 14px;
  border-radius: 14px;
  animation: slide-up .36s ease both;
}

.message + .message {
  margin-top: 9px;
  animation-delay: .15s;
}

.message--system {
  border-bottom-left-radius: 4px;
  background: #eef0ec;
}

.message--customer {
  margin-left: auto;
  border-bottom-right-radius: 4px;
  color: #fff;
  background: var(--green);
}

.message span {
  display: block;
  margin-bottom: 5px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
  opacity: .7;
  text-transform: uppercase;
}

.message p {
  margin: 0;
  font-size: 10px;
  line-height: 1.48;
}

.primary-button,
.secondary-button {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 17px;
  border-radius: 13px;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.primary-button {
  border: 1px solid var(--green);
  color: #fff;
  background: var(--green);
  box-shadow: 0 10px 22px rgba(34, 99, 65, .17);
}

.primary-button:hover {
  background: var(--green-dark);
  box-shadow: 0 13px 26px rgba(34, 99, 65, .24);
  transform: translateY(-1px);
}

.secondary-button {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: #fff;
}

.secondary-button:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-1px);
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: wait;
  opacity: .7;
  transform: none;
}

.request-panel > .primary-button {
  margin-top: auto;
}

.request-panel {
  display: flex;
  flex-direction: column;
}

.calculation-panel {
  position: relative;
  overflow: hidden;
}

.empty-state {
  display: grid;
  min-height: 525px;
  align-content: center;
  justify-items: center;
  padding: 35px;
  text-align: center;
}

.empty-state__icon {
  display: grid;
  width: 76px;
  height: 76px;
  margin-bottom: 20px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--green);
  background: linear-gradient(145deg, #fff, var(--green-soft));
  transform: rotate(-3deg);
}

.empty-state__icon svg {
  width: 34px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.empty-state h3 {
  margin: 0;
  font-size: 19px;
}

.empty-state p {
  max-width: 410px;
  margin: 9px 0 26px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.empty-state__lines {
  width: min(280px, 80%);
}

.empty-state__lines i {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: #eceee9;
}

.empty-state__lines i + i {
  margin-top: 8px;
}

.empty-state__lines i:nth-child(2) { width: 78%; }
.empty-state__lines i:nth-child(3) { width: 54%; }

.stage {
  padding-top: 24px;
  animation: fade-in .38s ease both;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading > div {
  gap: 12px;
}

.section-heading__number,
.section-heading__check {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
}

.section-heading__number {
  color: var(--red);
  background: var(--red-soft);
  font-family: Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
}

.section-heading__check {
  color: var(--green);
  background: var(--green-soft);
}

.section-heading__check svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.section-heading h3,
.section-heading p {
  margin: 0;
}

.section-heading h3 {
  font-size: 15px;
}

.section-heading p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.missing-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.missing-list li {
  padding: 14px;
  border: 1px solid #ead7d1;
  border-radius: 13px;
  background: #fffaf8;
}

.missing-list span,
.missing-list b {
  display: block;
}

.missing-list span {
  color: var(--muted);
  font-size: 9px;
}

.missing-list b {
  margin-top: 5px;
  color: var(--red);
  font-size: 11px;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin: 0 0 18px;
}

.details-grid > div {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

#detailsStage:not([hidden]) .details-grid > div {
  animation: detail-reveal .4s ease both;
}

#detailsStage:not([hidden]) .details-grid > div:nth-child(2) { animation-delay: .05s; }
#detailsStage:not([hidden]) .details-grid > div:nth-child(3) { animation-delay: .1s; }
#detailsStage:not([hidden]) .details-grid > div:nth-child(4) { animation-delay: .15s; }
#detailsStage:not([hidden]) .details-grid > div:nth-child(5) { animation-delay: .2s; }
#detailsStage:not([hidden]) .details-grid > div:nth-child(6) { animation-delay: .25s; }

.details-grid dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 9px;
}

.details-grid dd {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
}

.estimate-head {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
}

.estimate-head > div span,
.estimate-head > div strong {
  display: block;
}

.estimate-head > div span {
  color: var(--muted);
  font-size: 9px;
}

.estimate-head > div strong {
  margin-top: 4px;
  font-family: Consolas, monospace;
  font-size: 10px;
}

.check-badge {
  gap: 5px;
  padding: 7px 9px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 9px;
  font-weight: 700;
}

.estimate-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.estimate-table__head,
.estimate-table__row {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) 60px 82px 90px;
  align-items: center;
}

.estimate-table__head {
  padding: 10px 14px;
  color: var(--muted);
  background: #f1f2ee;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.estimate-table__row {
  padding: 15px 14px;
  font-size: 10px;
}

.estimate-table__row > div strong,
.estimate-table__row > div small {
  display: block;
}

.estimate-table__row > div strong {
  font-size: 11px;
}

.estimate-table__row > div small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
}

.estimate-table__row > strong {
  text-align: right;
  font-size: 11px;
}

.estimate-table__discount {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  color: var(--green);
  background: var(--green-soft);
  font-size: 9px;
}

.delivery-check {
  margin: 13px 0;
  padding: 14px;
  border: 1px solid #ead0bd;
  border-radius: 15px;
  background: var(--orange-soft);
}

.delivery-check,
.delivery-check > div {
  justify-content: space-between;
  gap: 12px;
}

.delivery-check__icon {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  color: #b76127;
  background: #fff;
}

.delivery-check strong,
.delivery-check p {
  margin: 0;
}

.delivery-check strong {
  font-size: 10px;
}

.delivery-check p {
  margin-top: 4px;
  color: #7b6a5d;
  font-size: 8px;
  line-height: 1.4;
}

.delivery-check > span {
  padding: 6px 8px;
  border-radius: 999px;
  color: #95531f;
  background: #fff;
  font-size: 8px;
  font-weight: 800;
}

.estimate-total {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 18px;
  align-items: end;
  margin: 18px 0;
  padding: 0 3px;
}

.estimate-total > span {
  color: var(--muted);
  font-size: 10px;
}

.estimate-total > strong {
  grid-row: span 2;
  font-size: 27px;
  letter-spacing: -.04em;
}

.estimate-total > small {
  color: var(--orange);
  font-size: 8px;
}

.footer-note {
  justify-content: space-between;
  gap: 20px;
  padding: 20px 2px 0;
}

.footer-note p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.footer-note p span {
  color: var(--ink);
  font-weight: 750;
}

.footer-note a {
  gap: 5px;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

.modal {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  overflow-y: auto;
  padding: 32px;
  place-items: center;
}

.modal__backdrop {
  position: fixed;
  z-index: -1;
  inset: 0;
  border: 0;
  background: rgba(21, 29, 25, .72);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.proposal {
  width: min(920px, 100%);
  overflow: hidden;
  border-radius: 24px;
  background: #eceee9;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .32);
  animation: proposal-in .34s cubic-bezier(.2, .8, .2, 1) both;
}

.proposal__toolbar {
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
}

.proposal__toolbar > div > strong {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}

.success-dot {
  gap: 7px;
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.success-dot i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(34, 99, 65, .12);
}

.proposal__paper {
  margin: 0 20px;
  padding: 42px;
  background: #fff;
  box-shadow: 0 10px 35px rgba(34, 45, 39, .08);
}

.proposal__brand {
  justify-content: space-between;
  gap: 25px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.proposal__brand > div:last-child {
  text-align: right;
}

.proposal__brand > div:last-child span,
.proposal__brand > div:last-child strong {
  display: block;
}

.proposal__brand > div:last-child span {
  color: var(--muted);
  font-size: 9px;
}

.proposal__brand > div:last-child strong {
  margin-top: 5px;
  font-family: Consolas, monospace;
  font-size: 10px;
}

.proposal__title {
  padding: 38px 0 30px;
}

.proposal__title > span {
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.proposal__title h2 {
  margin: 10px 0 0;
  font-size: clamp(25px, 3.8vw, 42px);
  font-weight: 580;
  letter-spacing: -.045em;
  line-height: 1.05;
}

.proposal__table {
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.proposal__row {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) 80px 90px 100px;
  align-items: center;
  padding: 16px 0;
  font-size: 10px;
}

.proposal__row:not(:last-child) {
  border-bottom: 1px solid var(--line);
}

.proposal__row--head {
  padding: 10px 0;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.proposal__row > span:first-child strong,
.proposal__row > span:first-child small {
  display: block;
}

.proposal__row > span:first-child small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
}

.proposal__row > strong {
  text-align: right;
}

.proposal__row--accent {
  grid-template-columns: 1fr auto;
  color: var(--green);
}

.proposal__summary {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 45px;
  padding: 25px 0;
}

.proposal__summary span,
.proposal__summary strong,
.proposal__summary small {
  display: block;
}

.proposal__summary span {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.proposal__summary p {
  margin: 0;
  font-size: 10px;
  line-height: 1.55;
}

.proposal__summary > div:last-child {
  text-align: right;
}

.proposal__summary strong {
  font-size: 26px;
  letter-spacing: -.04em;
}

.proposal__summary small {
  margin-top: 6px;
  color: var(--orange);
  font-size: 8px;
}

.proposal__warning {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 11px 12px;
  color: #785f4c;
  background: var(--orange-soft);
  font-size: 8px;
  line-height: 1.4;
}

.proposal__warning svg {
  flex: 0 0 auto;
}

.proposal__actions {
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 20px;
}

.proposal__actions .primary-button,
.proposal__actions .secondary-button {
  width: auto;
  min-width: 190px;
}

.toast {
  position: fixed;
  z-index: 30;
  right: 24px;
  bottom: 24px;
  gap: 12px;
  min-width: 310px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 15px;
  color: #fff;
  background: #18241e;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity .25s ease, transform .25s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
}

.toast strong,
.toast small {
  display: block;
}

.toast strong {
  font-size: 10px;
}

.toast small {
  margin-top: 3px;
  color: #b7c1ba;
  font-size: 8px;
}

.tour-caption {
  position: fixed;
  z-index: 35;
  left: 24px;
  bottom: 24px;
  display: flex;
  width: min(430px, calc(100vw - 48px));
  padding: 13px 15px 13px 12px;
  border: 1px solid rgba(34, 99, 65, .22);
  border-radius: 16px;
  align-items: flex-start;
  gap: 11px;
  color: var(--ink);
  background: rgba(255, 254, 250, .96);
  box-shadow: 0 20px 60px rgba(24, 36, 29, .2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  visibility: hidden;
  backdrop-filter: blur(14px);
  transition: opacity .24s ease, transform .3s ease, visibility .24s ease;
}

.tour-caption.is-visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.tour-caption > span {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--green);
  font-family: Consolas, monospace;
  font-size: 9px;
  font-weight: 800;
}

.tour-caption p {
  display: grid;
  margin: 1px 0 0;
  gap: 3px;
}

.tour-caption strong {
  font-size: 11px;
  line-height: 1.35;
}

.tour-caption small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.tour-focus {
  position: relative;
  z-index: 4;
  outline: 3px solid rgba(230, 120, 49, .42);
  outline-offset: 4px;
  animation: tour-pulse 1s ease-in-out infinite alternate;
}

.panel.tour-focus,
.proposal__paper.tour-focus {
  outline-offset: 6px;
}

body.is-touring .workspace,
body.is-touring .progress,
body.is-touring .intro {
  transition: filter .3s ease, opacity .3s ease;
}

body.is-touring:has(.tour-focus) .workspace > :not(.tour-focus) {
  opacity: .72;
}

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

@keyframes slide-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes proposal-in {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes detail-reveal {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes tour-pulse {
  to {
    outline-color: rgba(230, 120, 49, .78);
    box-shadow: 0 0 0 8px rgba(230, 120, 49, .08);
  }
}

@media (max-width: 1050px) {
  .shell {
    width: min(100% - 32px, 960px);
  }

  .intro {
    padding-top: 44px;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .panel {
    min-height: auto;
  }

  .empty-state {
    min-height: 410px;
  }

  .progress__item {
    padding-inline: 13px;
  }

  .progress__item small {
    display: none;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 24px, 680px);
    padding-top: 17px;
  }

  .demo-label {
    display: none;
  }

  .tour-button {
    width: 38px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .tour-button > span {
    display: none;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 38px 0 28px;
  }

  .intro h1 {
    font-size: clamp(43px, 13vw, 66px);
  }

  .intro__copy {
    max-width: 520px;
  }

  .progress__item {
    justify-content: center;
    padding: 13px 6px;
  }

  .progress__item > div {
    display: none;
  }

  .progress__item > span {
    width: 27px;
    height: 27px;
  }

  .panel {
    padding: 20px;
    border-radius: 20px;
  }

  .panel__header {
    align-items: flex-start;
  }

  .source-badge {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .request-meta {
    grid-template-columns: 40px 1fr;
  }

  .request-meta time {
    grid-column: 2;
    margin-top: -9px;
  }

  .product-card {
    grid-template-columns: 90px 1fr;
  }

  .product-card__visual {
    min-height: 116px;
  }

  .details-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .estimate-table__head {
    display: none;
  }

  .estimate-table__row {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .estimate-table__row > span:nth-of-type(1)::before {
    content: "Количество: ";
    color: var(--muted);
  }

  .estimate-table__row > span:nth-of-type(2)::before {
    content: "Цена: ";
    color: var(--muted);
  }

  .estimate-table__row > strong {
    align-self: end;
  }

  .estimate-total > strong {
    font-size: 23px;
  }

  .footer-note {
    align-items: flex-start;
  }

  .footer-note p {
    max-width: 420px;
  }

  .modal {
    padding: 12px;
    place-items: start center;
  }

  .proposal {
    border-radius: 18px;
  }

  .proposal__paper {
    margin: 0 10px;
    padding: 25px 20px;
  }

  .proposal__row {
    grid-template-columns: 1fr auto;
    gap: 9px;
  }

  .proposal__row--head {
    display: none;
  }

  .proposal__row > span:nth-child(3) {
    grid-column: 1;
  }

  .proposal__row > strong {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .proposal__row--accent {
    grid-template-columns: 1fr auto;
  }

  .proposal__summary {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .proposal__summary > div:last-child {
    padding-top: 18px;
    border-top: 1px solid var(--line);
    text-align: left;
  }

  .proposal__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .proposal__actions .primary-button,
  .proposal__actions .secondary-button {
    width: 100%;
    min-width: 0;
  }

  .tour-caption {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
  }

  .toast {
    bottom: 98px;
  }
}

@media (max-width: 480px) {
  .brand small {
    letter-spacing: .04em;
  }

  .intro h1 {
    font-size: 43px;
  }

  .intro__copy {
    font-size: 14px;
  }

  .panel__header h2 {
    font-size: 19px;
  }

  .status-chip {
    max-width: 112px;
    text-align: center;
  }

  .product-card {
    grid-template-columns: 1fr;
  }

  .product-card__visual {
    min-height: 130px;
  }

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

  .empty-state {
    min-height: 360px;
    padding-inline: 8px;
  }

  .estimate-total {
    grid-template-columns: 1fr;
  }

  .estimate-total > strong {
    grid-row: auto;
    margin-top: 3px;
  }

  .delivery-check {
    align-items: flex-start;
  }

  .delivery-check > span {
    display: none;
  }

  .footer-note {
    display: block;
  }

  .footer-note a {
    margin-top: 10px;
  }

  .proposal__brand {
    align-items: flex-start;
  }

  .proposal__brand .brand small {
    display: none;
  }

  .proposal__actions {
    grid-template-columns: 1fr;
  }

  .toast {
    right: 12px;
    bottom: 98px;
    left: 12px;
    min-width: 0;
  }
}

@media print {
  body {
    background: #fff;
  }

  body > *:not(.modal) {
    display: none !important;
  }

  .modal,
  .proposal,
  .proposal__paper {
    position: static;
    display: block !important;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
    background: #fff;
    box-shadow: none;
  }

  .modal__backdrop,
  .proposal__toolbar,
  .proposal__actions {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
