:root {
  --ink: #211b31;
  --muted: #665e75;
  --line: #e7e2ee;
  --canvas: #f7f6fa;
  --paper: #fff;
  --purple: #6745d6;
  --purple-dark: #4d31af;
  --purple-light: #f1ecff;
  --green: #146846;
  --green-light: #e5f7ec;
  --radius: 20px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button, input, select, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #9578f2; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
[hidden], .symbols { display: none !important; }
svg:not(.symbols) { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.frame { width: min(1152px, calc(100% - 56px)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 3; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 73px; display: flex; align-items: center; gap: 37px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 780; letter-spacing: -.01em; white-space: nowrap; }
.brand small { display: block; margin-top: 2px; color: #766b87; font-size: 8px; letter-spacing: .17em; font-weight: 750; }
.site-nav { display: flex; gap: 4px; }
.site-nav a { display: inline-flex; align-items: center; gap: 7px; padding: 10px 13px; border-radius: 9px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.site-nav a svg { width: 16px; height: 16px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--purple-light); color: var(--purple-dark); }
.site-nav a[aria-current="page"] { font-weight: 700; }
.preview-label { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; border: 1px solid #e2dbf1; border-radius: 99px; padding: 7px 11px; color: #655083; font-size: 12px; white-space: nowrap; }
.preview-label > span:first-child { background: #9272e8; width: 6px; height: 6px; border-radius: 100%; }

.main { padding-top: 23px; padding-bottom: 55px; min-height: calc(100vh - 143px); }
.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 182px; overflow: hidden; border-radius: 20px; background: radial-gradient(ellipse at 83% 5%, #493780, transparent 55%), linear-gradient(108deg,#24194b 10%,#302058 68%,#3a286b); color: #fff; }
.hero::before { content: ""; position: absolute; z-index: -1; width: 525px; height: 525px; right: -25px; top: -139px; border: 1px solid #a98bef24; border-radius: 100%; box-shadow: 0 0 0 35px #a98bef0e, 0 0 0 70px #a98bef0a; }
.hero-copy { z-index: 1; padding: 20px 0 22px 34px; max-width: 62%; }
.hero-kicker { display: inline-flex; align-items: center; gap: 7px; color: #d8c8ff; font-size: 13px; font-weight: 650; }
.hero-kicker svg { width: 14px; height: 14px; }
.hero h1 { margin-top: 7px; font-size: clamp(27px, 3.5vw, 37px); letter-spacing: -.047em; line-height: 1.21; }
.hero p { color: #e1d8f3; line-height: 1.7; font-size: 14px; margin-top: 11px; }
.hero-action { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; border-radius: 9px; background: #f6efff; color: #392369; padding: 8px 12px; font-size: 13px; font-weight: 750; }
.hero-action:hover { background: white; }
.hero-action svg { width: 15px; height: 15px; }
.hero-image { position: absolute; right: 0; width: 48%; height: 100%; object-fit: contain; opacity: .98; }

.notice { margin: 14px 0 18px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.notice-header { display: flex; align-items: center; gap: 10px; }
.notice-icon { width: 34px; height: 34px; display: grid; place-items: center; background: #efe5ff; color: #653abb; border-radius: 9px; flex: none; }
.notice h2 { font-size: 15px; }
.notice strong { font-size: 12px; }
.notice p { color: var(--muted); font-size: 12px; line-height: 1.55; margin-top: 2px; }
.notice a { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; color: var(--purple-dark); font-size: 12px; font-weight: 700; white-space: nowrap; }
.notice a svg { width: 14px; height: 14px; }
.notice-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 11px; padding-top: 9px; border-top: 1px solid var(--line); }
.notice-topics > div { padding-inline: 11px; border-left: 2px solid #e9e1f8; }

.store-layout { display: grid; grid-template-columns: 199px minmax(0, 1fr); gap: 17px; align-items: start; scroll-margin-top: 91px; }
.category-panel, .catalog-panel, .sub-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.category-panel { padding: 15px 11px 11px; position: sticky; top: 89px; }
.category-heading { display: flex; align-items: center; gap: 8px; padding: 2px 8px 13px; }
.category-heading svg { color: #8a769d; width: 15px; height: 15px; }
.category-heading h2 { font-size: 13px; }
.platform-heading { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.category-list { display: grid; gap: 4px; }
.platform-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; }
.platform-list .category-button { min-height: 34px; padding: 7px; white-space: normal; overflow-wrap: anywhere; }
.category-button { width: 100%; display: flex; align-items: center; gap: 9px; text-align: left; border: 0; border-radius: 9px; background: transparent; color: var(--muted); padding: 11px 9px; font-size: 13px; white-space: nowrap; }
.category-button svg { width: 15px; height: 15px; }
.category-button:hover, .category-button[aria-pressed="true"] { background: var(--purple-light); color: var(--purple-dark); }
.category-button[aria-pressed="true"] { font-weight: 750; }
.category-button small { margin-left: auto; color: inherit; opacity: .78; font-variant-numeric: tabular-nums; }

.catalog-panel { overflow: hidden; }
.catalog-header { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 13px; padding: 20px 20px 16px; }
.eyebrow { color: #786596; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.catalog-header h2 { margin-top: 5px; font-size: 24px; letter-spacing: -.04em; }
.catalog-count { margin-top: 4px; color: var(--muted); font-size: 12px; }
.catalog-controls, .order-search { display: flex; gap: 8px; align-items: center; }
.search-field { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: #fbfafd; color: #7b688e; }
.search-field svg { width: 16px; height: 16px; }
.search-field input { width: 100%; min-width: 0; height: 37px; padding: 0; border: 0; background: transparent; color: var(--ink); font-size: 13px; outline: none; }
.search-field:focus-within { outline: 2px solid #9b81e6; outline-offset: 1px; }
.search-field input::placeholder { color: #776e82; }
.catalog-controls select { height: 39px; border: 1px solid var(--line); border-radius: 9px; background: #fbfafd; color: #564b68; padding: 0 8px; font-size: 12px; }
.table-labels, .product-row { display: grid; grid-template-columns: minmax(0, 1fr) 107px 75px 84px; gap: 9px; align-items: center; padding-inline: 20px; }
.table-labels { padding-block: 10px; background: #faf8fc; color: #756981; border-top: 1px solid #f0ebf3; border-bottom: 1px solid #f0ebf3; font-size: 11px; font-weight: 700; }
.table-labels span:last-child { text-align: right; padding-right: 17px; }
.product-row { width: 100%; min-height: 70px; padding-block: 10px; border: 0; border-bottom: 1px solid #f0ebf3; background: #fff; color: var(--ink); text-align: left; }
.product-row:last-child { border-bottom: 0; }
.product-row:hover { background: #fbf8ff; }
.product-row:focus-visible { outline-offset: -3px; }
.product-main { display: flex; align-items: center; gap: 11px; min-width: 0; }
.product-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 11px; color: #6842bf; background: #f0e7ff; flex: none; }
.product-icon svg { width: 20px; height: 20px; }
.product-icon.mint { background: #e4f6f0; color: #21745b; }
.product-icon.blue { background: #e8efff; color: #3c5fae; }
.product-icon.peach { background: #fff0e6; color: #93532d; }
.product-icon.pink { background: #fcebf4; color: #a14978; }
.product-main strong { display: block; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.product-main small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 99px; padding: 4px 8px; font-size: 11px; font-weight: 670; color: #5b4289; background: #f1eafa; white-space: nowrap; }
.badge.auto, .badge.good { background: var(--green-light); color: var(--green); }
.badge.manual { background: #fff3db; color: #805416; }
.badge.sold { background: #f1edf3; color: #6b6173; }
.badge svg { width: 12px; height: 12px; }
.stock-cell { font-size: 12px; color: #526457; }
.stock-cell.sold { color: #786d80; }
.price-cell { display: flex; align-items: center; justify-content: flex-end; gap: 5px; color: #5832ac; font-weight: 770; font-size: 14px; white-space: nowrap; }
.price-cell svg { width: 13px; height: 13px; opacity: .66; }
.empty { padding: 42px 18px; text-align: center; color: var(--muted); font-size: 14px; }
.empty strong { display: block; color: var(--ink); margin-bottom: 7px; }

.secondary { max-width: 790px; margin-inline: auto; }
.page-heading { padding: 20px 0; }
.page-heading h1 { margin-top: 6px; font-size: 36px; letter-spacing: -.045em; }
.page-heading > p:last-child { margin-top: 9px; font-size: 14px; color: var(--muted); line-height: 1.65; }
.sub-panel { padding: 22px; }
.order-search .search-field { flex: 1; }
.order-search .search-field input { height: 41px; }
.form-note { font-size: 12px; color: var(--muted); line-height: 1.65; margin-top: 10px; }
.text-button { color: var(--purple-dark); border: 0; padding: 0; background: transparent; font-weight: 700; }
.text-button:hover { text-decoration: underline; }
.order-entry { margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.order-entry h3 { font-size: 15px; }
.order-head { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 8px; }
.order-meta { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.code-row { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-top: 10px; border-radius: 8px; background: #f5f0fc; padding: 8px 10px; }
.code-row code { color: #493075; font-size: 12px; overflow-wrap: anywhere; }
.faq details { padding-block: 13px; border-bottom: 1px solid var(--line); }
.faq details:first-child { padding-top: 0; }
.faq summary { font-size: 15px; font-weight: 700; cursor: pointer; }
.faq p { font-size: 14px; color: var(--muted); line-height: 1.7; margin-top: 8px; }
.faq > a { margin-top: 15px; }

.primary, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 9px; padding: 10px 14px; font-size: 14px; font-weight: 750; white-space: nowrap; }
.primary { background: var(--purple); color: #fff; }
.primary:hover:not(:disabled) { background: var(--purple-dark); }
.primary:disabled { opacity: .53; }
.secondary-button { background: #faf8fd; color: var(--purple-dark); border-color: #e5ddf0; }
.secondary-button:hover { background: var(--purple-light); }
.secondary-button svg { width: 15px; height: 15px; }
.site-footer { border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 12px; }
.footer-inner { min-height: 66px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.floating-help { position: fixed; bottom: 22px; right: 23px; z-index: 2; display: flex; align-items: center; gap: 7px; border: 1px solid #ded3f3; background: #fff; color: var(--purple-dark); border-radius: 99px; padding: 10px 12px; box-shadow: 0 6px 19px #452b7321; font-size: 12px; font-weight: 750; }
.floating-help:hover { background: var(--purple-light); }
.floating-help svg { width: 17px; height: 17px; }

dialog { position: fixed; max-width: min(510px, calc(100% - 26px)); width: 100%; max-height: calc(100% - 25px); overflow: auto; padding: 25px; border: 1px solid var(--line); border-radius: 21px; color: var(--ink); box-shadow: 0 24px 80px #24174045; }
dialog::backdrop { background: #1d132b80; }
.dialog-close { display: grid; place-items: center; position: absolute; top: 13px; right: 13px; border: 0; border-radius: 8px; width: 34px; height: 34px; color: var(--muted); background: #f5f1f8; }
.dialog-close:hover { background: var(--purple-light); }
#dialog-title { margin-top: 8px; padding-right: 23px; font-size: 23px; letter-spacing: -.035em; }
.dialog-description { font-size: 14px; line-height: 1.7; color: var(--muted); margin-top: 10px; }
.product-description { white-space: pre-line; overflow-wrap: anywhere; }
.dialog-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.dialog-actions { margin-top: 19px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px; }
.dialog-price { color: #5832ac; font-size: 22px; font-weight: 800; }
.checkout-form { margin-top: 15px; display: grid; gap: 12px; }
.checkout-field { display: grid; gap: 5px; color: var(--ink); font-size: 13px; font-weight: 650; }
.checkout-field input:not([type="checkbox"]) { min-height: 39px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; font-weight: 500; color: var(--ink); }
.checkout-field input[type="number"] { max-width: 95px; }
.payment-panel { background: #f5effc; border-radius: 9px; padding: 11px; color: #5a427b; font-size: 13px; line-height: 1.6; }
.consent { display: flex; align-items: flex-start; gap: 7px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.consent input { accent-color: var(--purple); }
.checkout-form .dialog-actions { margin-top: 1px; }
.checkout-error { color: #a62e40; font-size: 12px; }
.toast { position: fixed; z-index: 5; left: 50%; bottom: 23px; transform: translateX(-50%); border-radius: 9px; background: #2f2149; color: #fff; padding: 9px 13px; font-size: 13px; text-align: center; }

@media (max-width: 870px) {
  .header-inner { gap: 18px; }
  .store-layout { grid-template-columns: 166px minmax(0,1fr); gap: 12px; }
  .table-labels, .product-row { padding-inline: 13px; grid-template-columns: minmax(0,1fr) 83px 58px 68px; gap: 6px; }
  .catalog-header { padding-inline: 14px; }
}
@media (max-width: 680px) {
  .frame { width: calc(100% - 28px); }
  .header-inner { flex-wrap: wrap; min-height: 0; gap: 8px; padding-top: 10px; padding-bottom: 7px; }
  .brand { font-size: 14px; }
  .brand img { width: 32px; height: 32px; }
  .brand small { font-size: 7px; }
  .preview-label { padding: 5px 8px; font-size: 10px; }
  .site-nav { order: 3; width: 100%; }
  .site-nav a { flex: 1; justify-content: center; padding: 7px 5px; font-size: 12px; }
  .main { padding-top: 13px; padding-bottom: 36px; }
  .hero { min-height: 152px; border-radius: 16px; }
  .hero-copy { padding: 19px 14px; max-width: 79%; }
  .hero h1 { font-size: clamp(23px, 5.6vw, 32px); }
  .hero p { font-size: 12px; margin-top: 7px; }
  .hero-kicker { font-size: 11px; }
  .hero-action { margin-top: 13px; padding: 7px 10px; font-size: 12px; }
  .hero-image { width: 62%; right: -18%; opacity: .57; }
  .notice { margin: 11px 0 13px; padding: 10px; }
  .notice-header { gap: 7px; }
  .notice-icon { width: 28px; height: 28px; }
  .notice strong, .notice a { font-size: 11px; }
  .notice p { font-size: 11px; }
  .notice a svg { display: none; }
  .notice-topics { grid-template-columns: 1fr; gap: 5px; margin-top: 8px; padding-top: 7px; }
  .notice-topics > div { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); align-items: baseline; gap: 3px; padding-inline: 7px 0; }
  .store-layout { display: block; scroll-margin-top: 108px; }
  .category-panel { padding: 8px 8px 6px; border-radius: 12px; position: static; margin-bottom: 9px; }
  .category-heading { padding: 1px 4px 6px; }
  .category-heading h2 { font-size: 11px; }
  .category-list { display: flex; overflow-x: auto; scrollbar-width: thin; gap: 3px; }
  .platform-heading { margin-top: 5px; padding-top: 6px; }
  .platform-list .category-button { flex: none; min-height: 32px; white-space: nowrap; }
  .category-button { width: auto; gap: 5px; padding: 8px 7px; font-size: 11px; }
  .category-button svg { width: 13px; height: 13px; }
  .category-button small { margin-left: 3px; }
  .catalog-panel { border-radius: 15px; }
  .catalog-header { align-items: flex-start; gap: 10px; padding: 13px; }
  .catalog-header h2 { font-size: 21px; }
  .catalog-controls { width: 100%; }
  .catalog-controls .search-field { flex: 1; }
  .table-labels { display: none; }
  .product-row { grid-template-columns: minmax(80px,1fr) minmax(58px,1fr) auto; gap: 5px; padding: 10px 11px; border-top: 1px solid #f0ebf3; border-bottom: 0; }
  .product-main { grid-column: 1 / 3; gap: 7px; }
  .product-icon { width: 32px; height: 32px; border-radius: 8px; }
  .product-icon svg { width: 17px; height: 17px; }
  .product-main strong { font-size: 12px; }
  .product-main small { font-size: 10px; }
  .fulfillment-cell { grid-row: 2; grid-column: 1; padding-left: 39px; }
  .stock-cell { grid-row: 2; grid-column: 2; font-size: 11px; }
  .price-cell { grid-row: 1 / 3; grid-column: 3; font-size: 13px; }
  .badge { padding: 3px 6px; font-size: 10px; }
  .badge svg { display: none; }
  .page-heading { padding: 10px 0 16px; }
  .page-heading h1 { font-size: 30px; }
  .sub-panel { padding: 13px; }
  .footer-inner { font-size: 10px; min-height: 48px; }
  .floating-help { right: 13px; bottom: 13px; padding: 8px 9px; }
  dialog { padding: 20px 17px; }
}
