[hidden] { display: none !important; }
.skip-link { position: absolute; top: -80px; left: 16px; z-index: 100; background: #fff; padding: 12px; border: 2px solid var(--violet); }
.skip-link:focus { top: 12px; }
.store-nav { border-bottom: 1px solid var(--border); background: rgba(255,255,255,.92); }
.store-nav .nav-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand-logo { display: inline-grid; width: 36px; height: 36px; place-content: center; border-radius: 11px; background: var(--grad-btn); color: #fff; font-size: 23px; font-weight: 750; }
.store-links { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 600; }
.commerce-hero { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 64px; padding-top: 76px; padding-bottom: 64px; }
.commerce-hero h1 { font-size: clamp(36px,5vw,58px); line-height: 1.13; max-width: 620px; margin: 22px 0; }
.commerce-hero .lead { font-size: 18px; line-height: 1.8; }
.hero-caution { color: var(--muted); font-size: 13px; margin-top: 22px; }
.availability-card { padding: 34px; background: var(--panel); border: 1px solid var(--border); border-radius: 26px; box-shadow: var(--shadow); }
.availability-card h2 { font-size: 29px; margin: 8px 0 12px; }
.availability-card > p { color: var(--muted); }
.stock-number { display: flex; flex-direction: column; border-top: 1px solid var(--border); margin-top: 24px; padding-top: 24px; }
.stock-number > span { font-size: 54px; line-height: 1.1; font-weight: 750; color: var(--violet); }
.stock-number small { font-size: 13px; color: var(--muted); margin-top: 8px; }
.status-badge { font-weight: 650; margin-top: 20px; }
.purchase-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 52px; scroll-margin-top: 24px; }
.surface-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); padding: 30px; box-shadow: var(--shadow-sm); }
.surface-card h2 { font-size: 25px; margin-bottom: 12px; }
.surface-card h3 { font-size: 18px; margin-bottom: 10px; }
.surface-card > p { margin-bottom: 16px; }
.help { color: var(--muted); font-size: 13px; line-height: 1.75; margin: 10px 0 16px; overflow-wrap: anywhere; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
button:disabled { cursor: not-allowed; opacity: .48; transform: none !important; }
fieldset:disabled { opacity: .65; }
.field-label { display: block; margin: 16px 0 8px; font-weight: 600; font-size: 14px; color: var(--text); }
input:not([type=checkbox]), textarea { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid var(--border-strong); border-radius: 10px; background: #fff; color: var(--text); font: inherit; }
input[readonly] { font-family: var(--mono); font-size: 14px; background: var(--surface-2); }
input:disabled, textarea:disabled { color: var(--muted); background: var(--surface-2); }
textarea { resize: vertical; font-family: var(--mono); font-size: 13px; line-height: 1.6; }
.quantity-control { display: flex; align-items: center; gap: 10px; max-width: 260px; }
.quantity-control input { text-align: center; font-size: 21px; font-weight: 650; }
.quantity-control .btn { width: 46px; min-width: 46px; height: 46px; padding: 0; font-size: 22px; }
.checkout-total { display: flex; align-items: center; justify-content: space-between; border-block: 1px solid var(--border); padding: 18px 0; margin: 18px 0 24px; gap: 16px; }
.checkout-total strong { font-size: 29px; color: var(--violet); }
.claim-key-section { margin-bottom: 24px; }
.check-label { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; margin-top: 18px; }
.check-label input { width: 19px; height: 19px; accent-color: var(--violet); flex: 0 0 auto; margin-top: 3px; }
.full-width { width: 100%; white-space: normal; }
.action-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 12px; }
.action-row .btn { white-space: normal; }
.notice { padding: 13px 16px; border: 1px solid #f5d8a2; border-radius: 11px; color: #80500e; background: #fffbeb; font-size: 14px; line-height: 1.7; margin: 16px 0; overflow-wrap: anywhere; }
.notice.error { border-color: #fecaca; background: #fff5f5; color: #a21c1c; }
.purchase-help { padding: 20px 10px; }
.commerce-steps { list-style: none; padding: 0; margin: 22px 0; }
.commerce-steps li { padding: 0 0 30px 54px; position: relative; }
.commerce-steps li > span { position: absolute; left: 0; top: -3px; color: var(--violet); background: #ede9fe; border-radius: 11px; padding: 6px 9px; font-size: 14px; font-weight: 700; }
.commerce-steps h3 { font-size: 17px; margin-bottom: 8px; }
.commerce-steps p { color: var(--muted); font-size: 14px; }
.order-container { margin-top: 32px; }
.order-view { margin-top: 28px; scroll-margin-top: 24px; }
.detail-list { display: grid; grid-template-columns: minmax(100px, 170px) minmax(0, 1fr); gap: 10px 16px; padding: 0; margin: 22px 0; font-size: 14px; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; font-weight: 600; white-space: pre-wrap; overflow-wrap: anywhere; }
.payment-panel, .accounts-panel { border-top: 1px solid var(--border); margin-top: 28px; padding-top: 26px; }
.payment-qr { width: 184px; height: 184px; max-width: 100%; image-rendering: pixelated; margin: 18px 0; }
.payment-amount { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 20px; border: 2px solid var(--violet); border-radius: 14px; background: var(--surface-2); margin: 20px 0 12px; }
.payment-amount > .help { flex-basis: 100%; margin: 0; }
.payment-amount-value { font-family: var(--mono); font-size: clamp(24px, 4.5vw, 36px); line-height: 1.4; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; color: var(--violet); }
.account-record { padding: 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); margin-top: 14px; }
.account-record .detail-list { margin: 12px 0 0; font-family: var(--mono); font-size: 13px; }
.information-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 50px; }
.information-grid p { color: var(--muted); font-size: 14px; }
.store-footer { padding-top: 44px; padding-bottom: 34px; display: flex; gap: 28px; align-items: center; }
.store-footer p { color: var(--muted); font-size: 12px; }
.page-main { padding-top: 52px; padding-bottom: 40px; }
.page-heading { margin-bottom: 30px; }
.page-heading h1 { font-size: clamp(30px,5vw,42px); margin: 12px 0 16px; }
.page-heading p { color: var(--muted); max-width: 760px; }
.page-main > .surface-card { margin-top: 24px; }
.file-control { display: block; font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.file-control input { margin-top: 8px; font-size: 13px; }
.section-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.summary-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin: 22px 0; }
.summary-item { background: var(--surface-2); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.summary-item span { color: var(--muted); font-size: 13px; }
.summary-item strong { font-size: 26px; color: var(--violet); }
.table-scroll { overflow-x: auto; }
.account-record .detail-list dd { white-space: pre-wrap; overflow-wrap: anywhere; }
.orders-table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 13px; text-align: left; }
.orders-table th, .orders-table td { padding: 12px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.orders-table td:first-child { overflow-wrap: anywhere; min-width: 160px; font-family: var(--mono); }
.orders-table th { color: var(--muted); white-space: nowrap; }
#challengeSection { margin: 20px 0; }
@media (max-width: 800px) {
  .commerce-hero { grid-template-columns: 1fr; gap: 34px; padding-top: 42px; padding-bottom: 38px; }
  .purchase-layout { grid-template-columns: 1fr; gap: 16px; }
  .purchase-help { padding-bottom: 0; }
  .information-grid { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .store-nav .nav-inner { flex-wrap: wrap; min-height: 74px; padding-top: 14px; padding-bottom: 14px; gap: 14px; }
  .store-links { gap: 16px; flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .container { padding-left: 18px; padding-right: 18px; }
  .surface-card, .availability-card { padding: 22px 18px; }
  .store-nav .brand { font-size: 19px; }
  .store-links { gap: 12px; font-size: 12px; }
  .store-links .btn { padding: 8px 10px; font-size: 12px; }
  .commerce-hero h1 { font-size: 38px; }
  .commerce-hero .lead { font-size: 16px; }
  .detail-list { grid-template-columns: 95px minmax(0,1fr); gap: 10px; }
  .store-footer { align-items: flex-start; flex-direction: column; gap: 8px; }
  .summary-item { padding: 16px; }
  .summary-item strong { font-size: 23px; }
  .checkout-total { align-items: flex-start; }
  .checkout-total strong { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
@media print { .store-nav, .store-footer, .action-row, .purchase-layout, #lookupForm, #toast, .payment-panel { display: none !important; } .accounts-panel { break-inside: avoid; } }
