:root {
  color-scheme: light;
  --page: #f2f5fa;
  --paper: #fff;
  --ink: #102039;
  --muted: #53637b;
  --subtle: #344864;
  --line: #e2e8f2;
  --blue: #174ed0;
  --blue-deep: #123ea7;
  --blue-pale: #edf3ff;
  --radius: 22px;
  --shadow: 0 3px 12px rgb(20 45 78 / 4%), 0 14px 34px rgb(34 64 115 / 5%);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Segoe UI", sans-serif;
  --numeric: -apple-system, BlinkMacSystemFont, "Avenir Next", "Segoe UI", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font: 16px/1.5 var(--font);
  background: radial-gradient(ellipse at 52% -100px, #e6edf9 0, transparent 600px), var(--page);
  -webkit-tap-highlight-color: rgb(23 78 208 / 15%);
}
button, input, textarea { color: inherit; font: inherit; }
a { color: var(--blue); text-decoration: none; }
button { cursor: pointer; border: 0; }
button:disabled { cursor: default; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dt, dd { margin: 0; }
h1, h2, h3 { line-height: 1.24; }
small { font-size: .875rem; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #6186f0; outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 40; padding: 12px; background: var(--paper); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }

.topbar { background: var(--paper); border-bottom: 1px solid var(--line); }
.topbar-inner, .brand, .topnav { display: flex; align-items: center; }
.topbar-inner { justify-content: space-between; min-height: 72px; gap: 18px; }
.brand { color: var(--ink); gap: 12px; min-width: 0; font-weight: 800; font-size: 1rem; line-height: 1.25; }
.brand img { width: 54px; height: 38px; object-fit: contain; flex: 0 0 auto; }
.brand-text { display: block; min-width: 0; }
.brand-text :is(strong, small) { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.brand small { display: block; color: var(--muted); font-size: .8125rem; font-weight: 500; margin-top: 4px; }
.topnav { gap: 26px; color: var(--subtle); font-size: .9375rem; font-weight: 650; }
.topnav a { color: inherit; }
.topnav a:hover { color: var(--blue); }
.nav-order { display: flex; align-items: center; gap: 8px; background: #f8faff; border: 1px solid var(--line); border-radius: 10px; min-height: 42px; padding: 9px 13px; white-space: nowrap; }
.receipt-icon { display: inline-block; width: 14px; height: 17px; border: 1.7px solid currentColor; border-radius: 3px; position: relative; color: var(--blue); flex: 0 0 auto; }
.receipt-icon::before { content: ""; position: absolute; inset: 4px 2px 5px; border-top: 1.5px solid; border-bottom: 1.5px solid; }
.main { padding-top: 26px; padding-bottom: 44px; min-height: 56vh; }

.hero { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; min-height: 338px; border-radius: 23px; background: #04123b; color: white; box-shadow: 0 14px 35px rgb(13 37 88 / 16%); }
.hero-visual { position: absolute; inset: 0 0 0 28%; z-index: -2; background: url('/assets/filters.webp') center 55% / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #04123b 0%, #04123b 28%, rgb(4 18 59 / 88%) 39%, rgb(4 18 59 / 15%) 57%, transparent 66%); }
.hero-content { padding: 36px 0 38px 48px; }
.hero-eyebrow { font-size: .875rem; font-weight: 650; color: #d7e4ff; letter-spacing: .09em; margin-bottom: 12px; }
.hero h1 { font-size: clamp(2.5rem, 4.85vw, 4.05rem); font-weight: 850; letter-spacing: -.052em; line-height: 1.10; }
.hero h1 span { color: #a9c7ff; }
.hero-caption { font-size: 1rem; color: #e4ebfc; margin-top: 16px; }
.hero-button { margin-top: 19px; background: white; color: #133379; padding-inline: 21px; }
.hero-button:hover { background: #e0ebff; }
.hero-credit { position: absolute; bottom: 13px; right: 17px; font-size: .8125rem; color: #e3eaff; background: rgb(5 16 51 / 78%); padding: 4px 9px; border-radius: 6px; }

.preview-note { display: flex; align-items: center; gap: 9px; margin: 16px 0 20px; padding: 10px 14px; background: #fff8e9; border: 1px solid #f0dfbb; border-radius: 10px; color: #6e4b0a; font-size: .875rem; }
.preview-note span { width: 7px; height: 7px; border-radius: 50%; background: #a56b18; flex: 0 0 auto; }
.store-notice { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.store-notice a { margin-inline-start: auto; font-weight: 720; text-decoration: underline; }
.shop-grid { display: grid; grid-template-columns: minmax(0, 1.66fr) minmax(0, 1fr); align-items: start; gap: 20px; margin-top: 20px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.selector-panel, .summary-panel, .form-panel, .order-review, .order-panel, .admin-section, .prose { padding: 24px; }
.selector-panel { scroll-margin: 16px; }
.summary-panel { position: sticky; top: 16px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.section-heading h2, .order-review h2 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.035em; }
.section-heading p { color: var(--muted); font-size: .9375rem; margin-top: 6px; }
.section-label { background: var(--blue-pale); color: #24488d; padding: 5px 9px; border-radius: 7px; font-size: .8125rem; font-weight: 700; white-space: nowrap; }
.segmented { display: inline-flex; border-radius: 10px; background: #edf1f8; padding: 4px; gap: 4px; margin-block: 19px 15px; }
.segmented button { min-height: 38px; min-width: 76px; padding: 5px 13px; border-radius: 7px; color: var(--muted); background: transparent; font-size: .9375rem; font-weight: 700; }
.segmented button[aria-pressed="true"] { background: white; color: var(--blue); box-shadow: 0 2px 7px #1d427417; }
.model-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.model-button, .variant-button { text-align: left; border: 1px solid var(--line); background: #fbfcff; border-radius: 11px; min-width: 0; transition: border-color .14s, background .14s; }
.model-button { padding: 11px 13px; min-height: 69px; display: flex; justify-content: center; flex-direction: column; }
.model-button strong { font: 800 1.28rem/1.15 var(--numeric); letter-spacing: -.02em; }
.model-button small, .variant-button small { margin-top: 5px; color: var(--muted); font-size: .8125rem; font-weight: 550; }
.model-button:hover, .variant-button:hover { border-color: #8eabeb; }
.model-button[aria-pressed="true"], .variant-button[aria-pressed="true"] { background: var(--blue-pale); color: #123ca4; border-color: #4775e2; box-shadow: inset 0 0 0 1px #4775e2; }
.generation-block { border-top: 1px solid var(--line); padding-top: 17px; margin-top: 19px; }
.generation-block h3 { font-size: 1rem; margin-bottom: 10px; }
.mobile-bundle-link { display: none; }
.generations { display: flex; flex-wrap: wrap; gap: 9px; }
.variant-button { padding: 10px 12px; flex: 1 1 120px; }
.variant-button strong, .variant-button small { display: block; }
.variant-button strong { font-size: .9375rem; }

.bundle-sample, .selected-product { display: flex; align-items: center; gap: 13px; margin-top: 18px; }
.bundle-sample img, .product-thumb { width: 83px; height: 69px; object-fit: cover; object-position: 73% 60%; border-radius: 8px; flex: 0 0 auto; background: #0b2156; }
.bundle-sample strong, .selected-product strong { font-weight: 780; overflow-wrap: anywhere; }
.bundle-sample p, .selected-product p { margin-top: 4px; font-size: .875rem; color: var(--muted); }
.bundle-options { background: #f5f7fc; border-radius: 10px; padding: 12px 13px; margin-top: 17px; }
.bundle-options p { display: flex; gap: 11px; align-items: center; font-size: .875rem; color: var(--muted); }
.bundle-options p + p { margin-top: 9px; }
.bundle-options b { color: #233b62; flex: 0 0 auto; }
.parts-list { list-style: none; padding: 0; margin: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.parts-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; }
.parts-list li + li { border-top: 1px solid var(--line); }
.parts-list li strong { font-size: .9375rem; }
.parts-list small { display: block; color: var(--muted); font: 550 .875rem/1.5 var(--numeric); }
.parts-list li > b { color: #203c72; font-family: var(--numeric); }
.quantity-line, .price-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.quantity-line { margin-top: 16px; padding: 9px 11px; background: #f5f7fc; border-radius: 11px; font-size: .9375rem; }
.quantity-line small { display: block; color: var(--muted); font-size: .8125rem; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.stepper button { min-width: 44px; min-height: 44px; background: var(--paper); color: var(--blue); font-size: 1.25rem; }
.stepper button:disabled { color: #93a2b9; }
.stepper button:enabled:hover { background: var(--blue-pale); }
.stepper button:focus-visible { outline-offset: -4px; }
.stepper-value { min-width: 36px; text-align: center; font: 750 1rem/1 var(--numeric); }
.desktop-purchase { margin-top: 19px; }
.price-line { margin-bottom: 10px; color: var(--muted); font-size: .875rem; }
.price-line strong { font: 800 1.85rem/1.1 var(--numeric); letter-spacing: -.035em; color: var(--blue); }
.mobile-purchase { display: none; }

.button { display: inline-flex; justify-content: center; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; border-radius: 10px; padding: 10px 17px; font: 720 .9375rem/1.3 var(--font); text-align: center; text-wrap: balance; border: 1px solid transparent; transition: background .14s, border-color .14s; }
.button.full { width: 100%; }
.button.small { min-height: 39px; padding: 7px 12px; font-size: .875rem; }
.button.primary { color: #fff; background: var(--blue); }
.button.primary:enabled:hover, a.button.primary:hover { background: var(--blue-deep); }
.button.primary:disabled { background: #e6ebf6; color: #596986; }
.button.subtle { background: #f1f4fa; color: #2a456e; }
.button.subtle:enabled:hover, a.button.subtle:hover { background: #e6edfb; }
.button.outline { background: white; color: var(--blue); border-color: #cfdbf3; }
.button.outline:enabled:hover, a.button.outline:hover { background: var(--blue-pale); }
.button:disabled { opacity: .86; }

.page-heading { margin: 4px 0 22px; }
.page-heading h1 { font-size: clamp(1.9rem, 4vw, 2.65rem); font-weight: 850; letter-spacing: -.05em; }
.page-heading p { color: var(--muted); margin-top: 7px; }
.back-link { display: inline-flex; align-items: center; min-height: 40px; margin-bottom: 8px; font-size: .9375rem; font-weight: 700; }
.back-link::before { content: ""; border: solid currentColor; border-width: 0 0 1.8px 1.8px; transform: rotate(45deg); width: 7px; height: 7px; margin-right: 7px; }
.page-heading.slim { margin-bottom: 5px; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; gap: 20px; }
.checkout-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.checkout-heading .back-link { margin-bottom: 4px; }
.checkout-review { min-width: 0; padding: 20px; }
.checkout-bundle { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.checkout-bundle .product-thumb { width: 64px; height: 56px; }
.checkout-bundle h2 { font-size: 1rem; font-weight: 800; overflow-wrap: anywhere; }
.checkout-bundle p { margin-top: 4px; color: var(--muted); font-size: .875rem; }
.change-bundle { display: grid; place-items: center; min-width: 44px; min-height: 44px; font-size: .875rem; font-weight: 700; }
.checkout-details { margin-top: 13px; border-top: 1px solid var(--line); }
.checkout-details summary { display: grid; grid-template-columns: minmax(0, 1fr) auto 10px; gap: 10px; align-items: center; min-height: 49px; padding-top: 10px; list-style: none; cursor: pointer; }
.checkout-details summary::-webkit-details-marker { display: none; }
.checkout-details summary span { font-size: .9375rem; font-weight: 730; }
.checkout-details summary small { display: block; color: var(--muted); font-size: .8125rem; font-weight: 500; }
.checkout-details summary strong { color: var(--blue); font: 800 1.5rem/1.1 var(--numeric); font-variant-numeric: tabular-nums; }
.checkout-details summary i { width: 7px; height: 7px; border-right: 1.6px solid var(--subtle); border-bottom: 1.6px solid var(--subtle); transform: translateY(-2px) rotate(45deg); }
.checkout-details[open] summary i { transform: translateY(2px) rotate(225deg); }
.checkout-details h3 { margin-top: 14px; font-size: .9375rem; }
.checkout-details .parts-list { margin: 6px 0 0; border-bottom: 0; }
.checkout-details .parts-list li:last-child { padding-bottom: 0; }
.checkout-form-heading { align-items: center; }
.checkout-form-heading p { margin-top: 3px; font-size: .8125rem; }
.checkout-fields { border: 0; margin: 0; padding: 0; min-width: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 14px; margin-top: 18px; }
.form-grid label, .price-input, .login-field { display: grid; gap: 6px; font-size: .9375rem; font-weight: 680; }
.form-grid .wide { grid-column: 1 / -1; }
.checkout-field { display: grid; align-content: start; gap: 5px; }
.checkout-field label { display: block; }
.required-mark { color: #ad3528; font-weight: 750; }
.input-error { color: #9e2e21; font-size: .8125rem; line-height: 1.35; }
.checkout-fields [aria-invalid="true"] { border-color: #b34a40; }
.checkout-fields :is(input, textarea) { scroll-margin-block: 16px; }
input:not([type=checkbox]), textarea { width: 100%; min-width: 0; min-height: 44px; padding: 11px 12px; border: 1px solid #d5dfee; border-radius: 9px; background: #fcfdff; font-size: 1rem; font-weight: 500; }
input::placeholder, textarea::placeholder { color: #62728a; opacity: 1; }
textarea { resize: vertical; }
.consent { display: flex; align-items: flex-start; gap: 9px; margin: 16px 0; color: var(--muted); font-size: .875rem; }
.consent input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--blue); flex: 0 0 auto; }
.consent a { margin-left: .25em; text-decoration: underline; }
.consent.compact { align-items: center; white-space: nowrap; margin: 0; }
.consent.compact input { margin-top: 0; }
.form-submit { margin-top: 2px; }
.notice, .field-message { border-radius: 9px; padding: 11px 13px; background: #edf3ff; color: #20448e; font-size: .9375rem; margin-top: 12px; }
.field-message { margin-bottom: 9px; }
.field-message[data-type="error"] { background: #fff0ed; color: #9e2e21; }
.field-message[data-type="success"] { background: #eef8f1; color: #216842; }
.browser-notice p { margin-top: 3px; }

.totals { display: grid; gap: 7px; margin-top: 13px; color: var(--muted); font-size: .9375rem; }
.totals div, .order-meta div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.totals dd { font: 750 1rem/1 var(--numeric); color: var(--ink); }
.totals .total { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 6px; color: var(--ink); font-weight: 750; }
.totals .total dd { color: var(--blue); font-size: 1.62rem; letter-spacing: -.03em; }
.receipt-heading { text-align: center; padding: 5px 0 18px; }
.receipt-heading-pending { text-align: left; padding: 0 0 15px; }
.receipt-heading h1 { font-size: clamp(1.65rem, 4vw, 2.25rem); margin: 11px 0 6px; letter-spacing: -.04em; }
.receipt-heading-pending h1 { margin: 8px 0 4px; }
.receipt-heading p { color: var(--muted); }
.payment-summary { padding: 12px 14px; border: 1px solid #d9e5fa; border-radius: 11px; background: #f3f7ff; }
.payment-summary dl { display: grid; gap: 6px; }
.payment-amount, .payment-deadline { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.payment-amount dt { font-weight: 750; }
.payment-amount dd { color: var(--blue); font: 820 1.85rem/1.05 var(--numeric); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.payment-variant, .payment-deadline { color: var(--subtle); font-size: .875rem; }
.payment-variant { overflow-wrap: anywhere; }
.payment-deadline { border-top: 1px solid #d9e5fa; margin-top: 3px; padding-top: 7px; }
.payment-deadline dd { text-align: right; font-variant-numeric: tabular-nums; }
.status-symbol { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%; background: var(--blue-pale); color: var(--blue); font: 750 2.2rem/1 var(--numeric); }
.status-symbol.paid, .status-symbol.shipped { background: #e4f4ed; color: #167145; }
.status-symbol.closed, .status-symbol.review { background: #edf0f4; color: var(--muted); }
.tag { display: inline-flex; align-items: center; white-space: nowrap; border-radius: 7px; padding: 4px 8px; background: var(--blue-pale); color: #24478f; font-size: .8125rem; font-weight: 700; }
.tag.paid, .tag.shipped { background: #e6f5eb; color: #216842; }
.tag.pending { background: #fff4dd; color: #74540c; }
.tag.closed { background: #eef1f6; color: #4c5c75; }
.tag.review { background: #fcefe9; color: #8b3922; }
.order-meta { border-top: 1px solid var(--line); padding-top: 13px; display: grid; gap: 9px; font-size: .875rem; }
.order-meta-after-actions { margin-top: 15px; }
.order-meta dt { color: var(--muted); flex: 0 0 auto; }
.order-meta dd { text-align: right; overflow-wrap: anywhere; font-weight: 620; }
.mono { font-family: var(--numeric); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.receipt-actions { margin-top: 15px; display: grid; gap: 9px; }
.secondary-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.secondary-actions button { flex: 1 1 130px; }
.support { color: var(--muted); font-size: .875rem; margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; overflow-wrap: anywhere; }
.text-link { font-size: .9375rem; font-weight: 700; text-align: center; display: inline-block; min-height: 36px; padding: 7px; }
.order-list { display: grid; gap: 12px; max-width: 760px; }
.order-list-item { display: flex; justify-content: space-between; padding: 16px; gap: 12px; color: var(--ink); }
.order-list-card { overflow: hidden; }
.order-list-card:hover { border-color: #9bb2e9; }
.order-list-item:focus-visible { outline-offset: -4px; }
.order-list-item > div { display: grid; align-content: start; gap: 5px; min-width: 0; }
.order-list-item small { font-size: .8125rem; color: var(--muted); overflow-wrap: anywhere; }
.order-list-item div > span:not(.tag) { font-size: .875rem; color: var(--muted); }
.order-list-right { justify-items: end; text-align: right; }
.order-list-right strong { color: var(--blue); }
.loading { padding: 32px 6px; color: var(--muted); }
.empty-state { text-align: center; max-width: 760px; padding: 42px 20px; }
.empty-state h1 { font-size: 1.6rem; margin-top: 12px; }
.empty-state p { color: var(--muted); margin-top: 8px; }
.empty-state .button { margin-top: 16px; }
.empty-icon { display: inline-block; width: 24px; height: 29px; border: 2px solid #7d9adb; border-radius: 5px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.125rem; margin: 18px 0 6px; }
.prose p { color: var(--subtle); line-height: 1.7; }
.footer { border-top: 1px solid var(--line); color: var(--muted); padding: 21px 0 24px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.footer-inner strong { color: var(--subtle); font-size: .875rem; }
.footer-inner small { display: block; margin-top: 5px; font-size: .8125rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 18px; font-size: .875rem; }

.admin-main { padding-bottom: 50px; }
.login-wrap { max-width: 460px; margin: 20px auto; }
.login-panel { padding: 28px; }
.login-icon { display: grid; place-items: center; width: 46px; height: 46px; background: var(--blue-pale); border-radius: 12px; margin-bottom: 15px; }
.login-panel h1 { font-size: 1.8rem; }
.login-panel p { color: var(--muted); margin: 8px 0 17px; }
.login-panel form { display: grid; gap: 13px; }
.admin-tabs { display: flex; gap: 9px; border-bottom: 1px solid var(--line); margin-bottom: 17px; }
.admin-tabs button { background: transparent; padding: 12px 14px; color: var(--muted); border-bottom: 3px solid transparent; font-weight: 750; }
.admin-tabs button[aria-pressed="true"] { color: var(--blue); border-color: var(--blue); }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { display: grid; gap: 6px; text-align: left; padding: 14px 16px; }
.stat span { color: var(--muted); font-size: .875rem; }
.stat b { font: 800 1.8rem/1.2 var(--numeric); }
.stat[aria-pressed="true"] { border-color: #6891e9; color: var(--blue); }
.list-heading, .toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.filter-group { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0 10px; }
.filter-group button { min-height: 39px; padding: 6px 11px; background: #eef2fa; color: #334f76; border-radius: 7px; font-size: .875rem; }
.filter-group button[aria-pressed="true"] { background: var(--blue); color: white; }
.table-labels, .order-row { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, .8fr) minmax(106px, 1fr) minmax(60px, .5fr); gap: 13px; align-items: center; }
.table-labels { padding: 10px 12px; background: #f3f6fc; border-radius: 7px; font-size: .875rem; font-weight: 700; color: var(--subtle); }
.order-row { padding: 12px; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.order-row strong { display: block; overflow-wrap: anywhere; font-weight: 700; }
.order-row small { display: block; color: var(--muted); font-size: .8125rem; margin-top: 3px; }
.admin-empty { padding: 24px 0 8px; color: var(--muted); }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 13px; font-size: .875rem; }
.order-dialog { padding: 0; width: min(570px, calc(100% - 24px)); max-height: min(86dvh, 780px); color: var(--ink); overflow: auto; }
.order-dialog::backdrop { background: #1228479c; }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; padding: 17px 20px; border-bottom: 1px solid var(--line); background: white; position: sticky; top: 0; z-index: 1; }
.dialog-heading h2 { font-size: 1.23rem; }
.dialog-heading span { color: var(--muted); font-size: .875rem; }
.icon-button { width: 44px; height: 44px; background: #edf2fa; border-radius: 9px; font-size: 1.25rem; color: #385174; }
.dialog-body { padding: 17px 20px 21px; }
.dialog-body h3 { font-size: 1rem; margin-top: 12px; }
.dialog-status { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.dialog-status .tag + .tag { margin-left: 5px; }
.dialog-status > strong { color: var(--blue); font: 800 1.45rem/1.1 var(--numeric); }
.ship-form { margin-top: 19px; border-top: 1px solid var(--line); }
.ship-form .button { margin-top: 12px; }
.pricing-list { margin-top: 16px; }
.price-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(130px, .55fr) auto auto; gap: 8px 13px; align-items: center; border-top: 1px solid var(--line); padding: 12px 0; }
.price-details strong { display: inline-block; margin-right: 6px; }
.price-details small { display: block; margin-top: 5px; color: var(--muted); }
.price-input { font-size: .875rem; }
.row-message { grid-column: 1 / -1; margin: 0; padding-block: 6px; font-size: .875rem; }

@media (max-width: 800px) {
  .wrap { width: calc(100% - 34px); }
  .hero { min-height: 290px; }
  .hero-content { padding-left: 33px; }
  .shop-grid, .checkout-grid { gap: 14px; }
  .selector-panel, .summary-panel, .form-panel, .checkout-review, .order-review, .order-panel, .admin-section, .prose { padding: 18px; }
  .table-labels, .order-row { gap: 9px; grid-template-columns: minmax(0, 1.5fr) minmax(0, .9fr) minmax(0, .65fr) minmax(98px, .9fr) 54px; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 28px); }
  .topbar-inner { min-height: 62px; gap: 9px; }
  .brand { gap: 8px; font-size: .9375rem; }
  .brand img { width: 44px; height: 33px; }
  .brand small { font-size: .75rem; }
  .topnav { gap: 7px; font-size: .875rem; }
  .nav-order { min-height: 44px; gap: 6px; padding: 7px 10px; }
  .nav-models { display: none; }
  .main { padding-top: 14px; padding-bottom: 25px; }
  .hero { min-height: 261px; border-radius: 16px; }
  .hero-content { padding: 22px 12px 24px 18px; }
  .hero-visual { inset: 0 0 0 22%; background-position: 63% 57%; background-size: auto 100%; }
  .hero::after { background: linear-gradient(90deg, #04123b 0%, #04123b 18%, rgb(4 18 59 / 92%) 36%, rgb(4 18 59 / 40%) 64%, rgb(4 18 59 / 5%) 90%); }
  .hero-eyebrow { font-size: .8125rem; margin-bottom: 11px; }
  .hero h1 { font-size: clamp(2.05rem, 8.4vw, 3.35rem); }
  .hero-caption { font-size: .875rem; margin-top: 12px; max-width: 175px; }
  .hero-button { margin-top: 14px; min-height: 41px; padding: 8px 13px; font-size: .875rem; }
  .hero-credit { right: 8px; bottom: 8px; font-size: .75rem; }
  .preview-note { margin: 12px 0 13px; padding: 8px 10px; }
  .shop-grid, .checkout-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .shop-grid { margin-top: 13px; }
  .selector-panel, .summary-panel, .form-panel, .checkout-review, .order-review, .order-panel, .admin-section, .prose { padding: 16px; }
  .summary-panel { position: static; }
  .section-heading h2, .order-review h2 { font-size: 1.17rem; }
  .section-heading p { font-size: .875rem; }
  .segmented { margin: 14px 0 12px; display: flex; }
  .segmented button { flex: 1; min-height: 44px; min-width: 0; }
  .model-grid { gap: 8px; }
  .model-button { padding: 9px 10px; min-height: 62px; }
  .model-button strong { font-size: 1.15rem; }
  #generation, #generation-title, .summary-panel { scroll-margin-block: 12px calc(94px + env(safe-area-inset-bottom, 0px)); }
  .generation-block { margin-top: 14px; padding-top: 14px; }
  .variant-button { min-height: 48px; }
  .mobile-bundle-link { display: inline-flex; align-items: center; min-height: 44px; margin: 5px 0 -7px; padding-inline-end: 12px; font-size: .875rem; font-weight: 700; }
  .mobile-bundle-link::after { content: ""; width: 6px; height: 6px; margin-inline-start: 7px; border: solid currentColor; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); }
  .desktop-purchase { display: none; }
  .mobile-purchase { display: block; position: fixed; inset: auto 0 0; z-index: 3; background: #fff; border-top: 1px solid #dce5f4; box-shadow: 0 -6px 20px #2d4a8312; padding: 9px 0 calc(9px + env(safe-area-inset-bottom, 0px)); }
  .mobile-base { width: calc(100% - 28px); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
  .mobile-base > .button { min-width: 117px; }
  .mobile-selection { display: grid; gap: 3px; line-height: 1.25; overflow-wrap: anywhere; }
  .mobile-selection > span { font-size: .8125rem; color: var(--subtle); font-weight: 680; }
  .mobile-selection .purchase-step { font-size: .875rem; color: var(--muted); }
  .purchase-amount { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; }
  .purchase-amount strong { font: 800 1.5rem/1 var(--numeric); color: var(--blue); font-variant-numeric: tabular-nums; }
  .purchase-amount small { color: var(--muted); font-size: .75rem; }
  .shop-page .footer { padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 9px; }
  .footer { padding-top: 16px; }
  .page-heading { margin-bottom: 14px; }
  .checkout-heading .back-link { min-height: 35px; margin-bottom: 3px; }
  .checkout-bundle .product-thumb { width: 56px; height: 49px; }
  .checkout-details { margin-top: 10px; }
  .checkout-form-heading + form .form-grid { margin-top: 12px; }
  .checkout-form-heading .button { min-height: 44px; }
  .order-review .parts-list { margin-block: 10px; }
  .order-meta { gap: 7px; }
  .receipt-actions { gap: 8px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stat { padding: 11px; }
  .table-labels { display: none; }
  .order-row { grid-template-columns: minmax(0, 1fr) auto; gap: 7px 10px; padding: 12px 0; }
  .order-row > div:nth-child(1) { grid-row: 1; grid-column: 1; }
  .order-row > div:nth-child(2) { grid-row: 2; grid-column: 1; }
  .order-row > div:nth-child(3) { grid-row: 2; grid-column: 2; text-align: right; }
  .order-row > div:nth-child(4) { grid-row: 1; grid-column: 2; justify-self: end; }
  .order-row > div:nth-child(5) { grid-row: 3; grid-column: 1 / -1; }
  .order-row .button { width: 100%; }
  .price-row { grid-template-columns: minmax(80px, 1fr) auto auto; gap: 6px 8px; }
  .price-details { grid-column: 1 / -1; }
  .price-input { grid-column: 1; }
  .price-row button, .price-row .consent { align-self: end; }
  .price-row .consent { min-height: 41px; }
}

@media (max-width: 370px) {
  .wrap { width: calc(100% - 22px); }
  .topnav .receipt-icon { display: none; }
  .hero h1 { font-size: 2rem; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .section-label { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
