.receipt-scan-page {
  display: grid;
  gap: 16px;
  width: min(100%, 760px);
  margin-inline: auto;
}
.receipt-scan-page__header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.receipt-scan-page__header h2 { margin: 5px 0 7px; font-size: clamp(27px, 8vw, 38px); line-height: 1.08; letter-spacing: -.04em; }
.receipt-scan-page__header p { margin: 0; color: var(--workspace-muted, #66768b); line-height: 1.55; }
.receipt-scan-page__back { width: 44px; min-height: 44px; padding: 0; border-radius: 14px; font-size: 22px; }
.receipt-scan-page__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 5px; list-style: none; border-radius: 16px; background: rgb(226 236 247 / 68%); }
.receipt-scan-page__steps li { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 40px; border-radius: 12px; color: #6b7a8e; font-size: 11px; font-weight: 650; }
.receipt-scan-page__steps li[aria-current='step'] { color: #0868d7; background: #fff; box-shadow: 0 5px 16px rgb(37 73 111 / 9%); }
.receipt-scan-page__steps b { display: grid; place-items: center; width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; background: #e5f1ff; }
.receipt-scan-page__form,
.receipt-scan-page__result,
.receipt-scan-page__empty { padding: 18px; border: 1px solid rgb(255 255 255 / 82%); border-radius: 20px; background: rgb(255 255 255 / 91%); box-shadow: 0 12px 34px rgb(34 64 96 / 9%); }
.receipt-scan-page__capture { display: grid; justify-items: center; gap: 10px; padding: 26px 16px; text-align: center; border: 1px dashed rgb(8 120 249 / 30%); border-radius: 17px; background: linear-gradient(145deg, #f8fbff, #edf6ff); }
.receipt-scan-page__capture-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 17px; color: #fff; background: linear-gradient(145deg, #278cff, #0867e6); box-shadow: 0 9px 20px rgb(10 105 225 / 24%); font-size: 26px; }
.receipt-scan-page__capture h3 { margin: 0; font-size: 19px; }
.receipt-scan-page__capture p { max-width: 480px; margin: 0; color: var(--workspace-muted, #66768b); font-size: 12px; line-height: 1.5; }
.receipt-scan-page__capture-button { width: 100%; min-height: 50px; margin-top: 4px; }
.receipt-scan-page__status:empty { display: none; }
.receipt-scan-page__manual,
.receipt-scan-page__help { border-top: 1px solid rgb(76 101 128 / 14%); padding-top: 14px; }
.receipt-scan-page__manual { margin-top: 16px; }
.receipt-scan-page__manual summary,
.receipt-scan-page__help summary { min-height: 44px; padding: 11px 4px; color: #36536e; font-weight: 650; cursor: pointer; }
.receipt-scan-page__manual label { margin-top: 12px; }
.receipt-scan-page__manual textarea { min-height: 104px; font-size: 16px; }
.receipt-scan-page__manual button { width: 100%; }
.receipt-scan-page__result:focus { outline: none; }
.receipt-scan-page__result-card > header { display: grid; gap: 10px; }
.receipt-scan-page__result-card h3 { margin: 5px 0; font-size: 20px; overflow-wrap: anywhere; }
.receipt-scan-page__result-card header p,
.receipt-scan-page__empty-items,
.receipt-scan-page__note { margin: 0; color: var(--workspace-muted, #66768b); font-size: 12px; line-height: 1.5; }
.receipt-scan-page__result-status { color: #1265be; font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.receipt-scan-page__result-card[data-state='verified'] .receipt-scan-page__result-status { color: #18704a; }
.receipt-scan-page__total { font-size: 26px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.receipt-scan-page__items { display: grid; gap: 0; margin: 18px 0; padding: 0; list-style: none; border-block: 1px solid rgb(76 101 128 / 14%); }
.receipt-scan-page__item { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgb(76 101 128 / 12%); }
.receipt-scan-page__item:last-child { border-bottom: 0; }
.receipt-scan-page__item span { min-width: 0; }
.receipt-scan-page__item strong,
.receipt-scan-page__item small { display: block; overflow-wrap: anywhere; }
.receipt-scan-page__item small { margin-top: 3px; color: var(--workspace-muted, #66768b); }
.receipt-scan-page__item b { white-space: nowrap; }
.receipt-scan-page__meta { display: grid; grid-template-columns: minmax(72px, auto) minmax(0, 1fr); gap: 7px 12px; margin: 16px 0 0; }
.receipt-scan-page__meta dt { color: var(--workspace-muted, #66768b); }
.receipt-scan-page__meta dd { margin: 0; overflow-wrap: anywhere; }
.receipt-scan-page__result-actions { display: grid; gap: 8px; margin-top: 18px; }
.receipt-scan-page__result-actions button { width: 100%; min-height: 48px; }
.receipt-scan-page__note { margin-top: 12px; }
.receipt-scan-page__help p { color: var(--workspace-muted, #66768b); line-height: 1.6; }
.receipt-scan-page__empty { text-align: center; }
.receipt-scan-page__empty h2 { margin: 8px 0; }
.receipt-scan-page__empty p { color: var(--workspace-muted, #66768b); }
.receipt-scan-page__icon { font-size: 32px; color: #0878f9; }
@media (min-width: 620px) {
  .receipt-scan-page { gap: 20px; }
  .receipt-scan-page__form, .receipt-scan-page__result, .receipt-scan-page__empty { padding: 24px; }
  .receipt-scan-page__capture-button { width: auto; min-width: 280px; }
  .receipt-scan-page__result-card > header { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .receipt-scan-page__result-actions { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (prefers-reduced-motion: reduce) {
  .receipt-scan-page * { scroll-behavior: auto !important; }
}
