body { background: #f5f7fa; }
.preview-wrap { width: min(1150px, calc(100% - 56px)); margin-inline: auto; }
.preview-header { background: white; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; justify-content: space-between; align-items: center; min-height: 78px; gap: 20px; }
.header-inner nav { display: flex; gap: 18px; font-size: .88rem; }
.header-inner nav a { padding-block: 8px; }
.header-inner nav a[aria-current="page"] { border-bottom: 2px solid var(--red); font-weight: 700; }
.demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 17px 0; border-bottom: 1px solid var(--line); font-size: .78rem; color: #526171; }
.buy-intro { margin: 34px 0 25px; }
.buy-intro h1 { margin-bottom: 7px; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.1; }
.buy-intro p { color: #526171; margin-bottom: 0; }
.purchase-grid, .admin-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); gap: 20px; align-items: start; padding-bottom: 40px; }
.admin-grid { grid-template-columns: minmax(280px, .9fr) minmax(0, 1.4fr); }
.surface { background: white; border: 1px solid var(--line); border-radius: 16px; min-width: 0; }
.conversation { padding: 24px; }
.conversation h2, .quote h2, .settings h2 { font-size: 1.32rem; margin: 0 0 5px; }
.conversation header p, .quote p, .settings p { color: #526171; font-size: .85rem; }
.messages { min-height: 165px; max-height: 330px; overflow-y: auto; padding: 12px 0; display: flex; flex-direction: column; gap: 9px; }
.bubble { margin: 0; align-self: start; background: #edf2f7; padding: 10px 14px; border-radius: 4px 12px 12px; max-width: 92%; overflow-wrap: anywhere; font-size: .91rem; }
.bubble.buyer { align-self: end; border-radius: 12px 4px 12px 12px; background: var(--navy); color: white; }
.suggestions { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.minor { background: white; color: var(--navy); border: 1px solid var(--line); border-radius: 8px; padding: 8px 11px; font-size: .76rem; }
.minor:hover { background: #edf2f7; }
.send-form { display: flex; gap: 8px; }
.send-form input { flex: 1; min-width: 0; }
.send-form input, #activation-input { border: 1px solid #a9b6c6; border-radius: 8px; padding: 10px 12px; font-size: .9rem; }
.preview-wrap .button { font-size: .85rem; padding: 12px 16px; min-height: 42px; }
.preview-wrap .button.red { background: #b9352c; color: #fff; }
.product-brief { display: flex; align-items: center; overflow: hidden; gap: 12px; background: #e9eef3; border-radius: 16px; margin-bottom: 12px; padding-right: 13px; }
.product-brief img { height: 100px; width: 100px; object-fit: cover; flex: 0 0 100px; }
.product-brief h2 { font-size: 1rem; margin: 0 0 4px; }
.product-brief p { font-size: .76rem; color: #435367; margin: 0; }
.quote, .settings { padding: 20px; }
#price-label { color: #526171; font-size: .82rem; }
#price { display: block; font-size: 2.65rem; font-weight: 800; letter-spacing: -.06em; line-height: 1.22; margin: 4px 0 7px; }
#payment, #activation { border-top: 1px solid var(--line); padding-top: 14px; }
#payment .minor { margin-top: 8px; }
#activation-form { display: grid; gap: 8px; font-size: .82rem; }
.quote .access-code { color: var(--ink); font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.feedback { font-size: .84rem; margin: 10px 0 0; }
.feedback[data-error] { color: #9b2e22; }
.sales-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 15px; }
.sales-metrics div { padding: 14px; }
.sales-metrics small { display: block; margin-bottom: 8px; }
.sales-metrics strong { font-size: 1.3rem; }
.input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.admin-main { display: grid; gap: 12px; min-width: 0; }
.admin-main th, .admin-main td { padding: 10px 6px; }
.visually-hidden { clip-path: inset(50%); position: absolute; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 720px) {
  .preview-wrap { width: calc(100% - 28px); }
  .header-inner { min-height: 65px; gap: 8px; }
  .header-inner .brand img { width: 34px; height: 34px; }
  .header-inner .brand { font-size: 1.12rem; gap: 6px; }
  .header-inner nav { gap: 12px; }
  .purchase-grid, .admin-grid { grid-template-columns: minmax(0, 1fr); }
  .conversation { padding: 15px; }
  .buy-intro { margin-top: 22px; }
  .sales-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.product-back { display: inline-block; margin-bottom: 10px; font-size: .82rem; text-decoration: underline; text-underline-offset: 3px; }
