:root {
  color-scheme: dark;
  font-family: "Segoe UI", system-ui, sans-serif;
  --bg: #121016;
  --surface: #1b1821;
  --line: #332d3c;
  --text: #f7f3fa;
  --muted: #b5abbf;
  --accent: #f8ce75;
  --ink: #23190e;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.5; }
body > main { min-height: calc(100vh - 165px); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled { opacity: .5; cursor: not-allowed; }
button, input, textarea, select { min-width: 0; color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, p, strong { overflow-wrap: anywhere; }
h1 { font-size: 36px; line-height: 1.13; }
h2 { font-size: 25px; line-height: 1.2; }
.shell { width: min(1320px, calc(100% - 72px)); margin-inline: auto; }
.header { border-bottom: 1px solid var(--line); background: #17141c; }
.header-inner { min-height: 72px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 750; white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: 14px; font-weight: 600; }
.main-nav a:hover, .main-nav .current { color: var(--text); }
.search { display: flex; align-items: center; flex: 1 1 420px; max-width: 460px; margin-left: auto; height: 42px; gap: 10px; padding: 0 8px 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #211d28; color: var(--muted); }
.search:focus-within { border-color: #987eb5; }
.search input { background: none; border: 0; outline: none; flex: 1; width: 0; padding: 0; font-size: 14px; }
.search input::placeholder { color: #b8aec2; opacity: 1; }
.enter, .icon-btn { display: inline-grid; place-items: center; flex: none; border: 1px solid var(--line); background: #211d28; color: var(--text); border-radius: 8px; }
.enter { width: 27px; height: 27px; color: var(--muted); }
.icon-btn { width: 42px; height: 42px; }
.top-actions, .actions { display: flex; align-items: center; gap: 9px; }
.cart-button { position: relative; }
.counter { position: absolute; top: -5px; right: -5px; display: grid; place-items: center; min-width: 18px; height: 18px; padding-inline: 3px; background: var(--accent); color: var(--ink); border-radius: 20px; font-size: 11px; font-weight: bold; }
.icon { display: inline-block; vertical-align: middle; flex: none; }
.muted, .note { color: var(--muted); }
.btn, .filter { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; min-height: 42px; padding: 8px 15px; background: #24202c; color: var(--text); font-size: 14px; font-weight: 650; line-height: 1.35; text-align: center; }
.btn:hover, .filter:hover, .icon-btn:hover { border-color: #756986; background: #332942; }
.btn.primary { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.btn.primary:hover { background: #ffde9c; border-color: #ffde9c; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.wide { width: 100%; }
.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 310px; margin-top: 26px; border: 1px solid #332640; border-radius: 8px; overflow: hidden; background: #0e0a14 url("hero.webp") right center / cover no-repeat; }
.hero-content { padding: 34px 47px; position: relative; max-width: 68%; }
.eyebrow { font-size: 13px; font-weight: 700; color: #e1c8f2; display: flex; align-items: center; gap: 9px; }
.accent-dot { background: var(--accent); width: 7px; height: 7px; border-radius: 50%; }
.hero h1 { margin: 11px 0 9px; font-size: 68px; font-weight: 800; line-height: 1.02; }
.hero h1 span { color: var(--accent); }
.hero-caption { color: #d4c7df; font-size: 19px; margin-bottom: 25px; }
.hero-status { position: absolute; bottom: 13px; right: 14px; display: flex; align-items: center; gap: 7px; padding: 5px 9px; border: 1px solid #6d5877; border-radius: 6px; background: #201529; color: #f0dced; font-size: 12px; }
.catalog { padding: 25px 0 42px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filter { background: #1d1924; padding-inline: 14px; }
.filter .icon { color: #d7bddf; }
.filter.selected { background: #332639; border-color: #6f4e77; color: #fae8ff; }
.filter.selected .icon { color: var(--accent); }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 17px; }
.section-title { font-size: 27px; }
.sub { margin-top: 3px; font-size: 14px; }
.sorting { display: flex; align-items: center; padding: 0 10px; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; color: var(--muted); min-height: 39px; }
.sorting select { border: 0; padding: 5px; background: var(--surface); font-size: 14px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.product-card { min-width: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.product-card:hover { border-color: #8c7099; }
.product-link { display: flex; flex-direction: column; height: 100%; }
.card-media { position: relative; overflow: hidden; }
.media-label { position: absolute; top: 10px; left: 10px; font-size: 12px; color: #f8f1ff; background: #16111bd9; border: 1px solid #fff3; border-radius: 5px; padding: 3px 7px; }
.art { position: relative; isolation: isolate; aspect-ratio: 16/9; display: grid; place-items: center; overflow: hidden; background: linear-gradient(137deg,var(--tone-light),var(--tone-deep) 78%); }
.art-grid { z-index: -1; position: absolute; inset: 0; background-image: linear-gradient(#fff2 1px,transparent 1px),linear-gradient(90deg,#fff2 1px,transparent 1px); background-size: 24px 24px; opacity: .5; mask-image: linear-gradient(135deg,#000,transparent); }
.art::after { content: ""; position: absolute; z-index: -1; top: 12%; left: 50%; width: 48%; aspect-ratio: 1; transform: translateX(-50%) rotate(45deg); border: 1px solid #fff3; border-radius: 8px; box-shadow: 0 0 0 20px #fff1, inset 0 0 32px #fff1; }
.theme-orchid { --tone-light: #8456a8; --tone-deep: #3b224a; }
.theme-blue { --tone-light: #515bd3; --tone-deep: #28245e; }
.theme-green { --tone-light: #268671; --tone-deep: #183d35; }
.theme-indigo { --tone-light: #5865a4; --tone-deep: #2d294d; }
.theme-rose { --tone-light: #a85171; --tone-deep: #4c2437; }
.theme-cyan { --tone-light: #277d8a; --tone-deep: #1b3446; }
.theme-amber { --tone-light: #96703f; --tone-deep: #504022; }
.theme-navy { --tone-light: #416f9b; --tone-deep: #182b41; }
.brand-art { width: 30%; max-width: 168px; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 7px 13px #0a06148c); transition: transform .18s ease; }
.product-link:hover .brand-art { transform: scale(1.075); }
.uploaded { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-info { padding: 13px 14px 14px; flex: 1; display: flex; flex-direction: column; }
.card-info h3 { font-size: 17px; font-weight: 700; line-height: 1.3; }
.card-info p { font-size: 13px; margin-top: 4px; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 13px; }
.price { font-size: 22px; font-weight: 750; line-height: 1.1; }
.view-product { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; background: #312838; color: #efdef6; }
.footer { margin-top: 36px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding-block: 23px; font-size: 14px; }
.footer .brand { font-size: 16px; color: var(--text); }
.footer a:last-child { margin-left: auto; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 22px 0 17px; font-size: 14px; color: var(--muted); }
.breadcrumb a:hover, .source:hover { color: var(--accent); }
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.detail-image { border-radius: 8px; aspect-ratio: 4/3; }
.detail-image .uploaded { object-fit: contain; background: #1c1724; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.thumbs button { width: 65px; height: 54px; padding: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--surface); }
.thumbs button[aria-pressed="true"] { border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.market-cover { margin-top: 12px; font-size: 14px; color: var(--muted); }
.market-cover summary { cursor: pointer; }
.market-cover img { width: min(100%, 500px); height: auto; margin-top: 10px; border-radius: 8px; }
.product-detail { padding: 7px 0; }
.product-detail h1 { margin: 10px 0 5px; }
.pill { display: inline-flex; font-size: 13px; line-height: 1.3; padding: 5px 8px; border: 1px solid #5d506a; border-radius: 6px; color: #e7d4ef; }
.description { margin: 21px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.buy { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; }
.buy .price { font-size: 33px; }
.note { font-size: 14px; margin: 12px 0; display: flex; align-items: center; gap: 7px; }
.source { font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.reviews { margin-top: 31px; padding: 25px 0; border-top: 1px solid var(--line); }
.review-list { display: grid; gap: 12px; margin: 16px 0; }
.review { padding: 15px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; }
.review-head, .order-head { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 8px; }
.stars { color: var(--accent); margin-left: auto; }
.review p { white-space: pre-wrap; }
.review form { margin-top: 10px; }
.review-form { max-width: 600px; }
.review-form summary { cursor: pointer; font-weight: 650; }
.page-section { padding-block: 34px; }
.page-section > h1 { margin-bottom: 20px; }
.empty { min-height: 200px; padding: 36px 16px; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; gap: 11px; border-top: 1px solid var(--line); }
.empty .icon { color: var(--accent); }
.page-section.empty { border: 0; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(265px, 1fr); align-items: start; gap: 21px; }
.cart-row { display: grid; grid-template-columns: 52px minmax(0,1fr) auto auto 42px; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding: 11px 0; }
.mini-art { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 7px; background: var(--tone-deep); }
.mini-art img { width: 27px; height: 27px; }
.cart-name p { font-size: 13px; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; }
.stepper button { background: #282331; border: 0; padding: 7px; }
.stepper span { width: 26px; text-align: center; }
.summary { background: var(--surface); padding: 17px; border: 1px solid var(--line); border-radius: 8px; }
.total { display: flex; justify-content: space-between; gap: 15px; padding-block: 14px; }
.auth { max-width: 440px; margin-inline: auto; padding-block: 54px; }
.auth-icon { display: grid; place-items: center; width: 53px; height: 53px; background: #302239; border: 1px solid #5d456b; border-radius: 8px; color: var(--accent); margin-bottom: 15px; }
.auth > h1 { margin-bottom: 7px; }
.resend { margin-top: 8px; }
.fields { display: grid; gap: 14px; margin-top: 16px; }
.fields :is(input:not([type=checkbox]), select,textarea) { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: 9px 10px; }
.fields label { display: grid; gap: 5px; font-size: 14px; }
.fields textarea { resize: vertical; }
.fields .check { display: flex; align-items: center; gap: 8px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fields > .btn:not(.wide) { justify-self: start; }
.flash { margin-top: 18px; padding: 10px 13px; border-radius: 7px; border: 1px solid #786233; background: #32281a; color: #ffe0a5; overflow-wrap: anywhere; }
.account-block { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.account-block h2 { margin-bottom: 12px; }
.account-block .review { margin-bottom: 10px; }
.account-block > .btn { margin-top: 10px; }
.order { padding: 12px 0; border-bottom: 1px solid var(--line); }
.order-head strong:last-child { margin-left: auto; }
.manage-list { margin-top: 10px; }
.manage-row { display: grid; grid-template-columns: minmax(0,1fr) auto 42px; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.manage-row p { font-size: 14px; }
.seller-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; border-bottom: 1px solid var(--line); margin: 18px 0 23px; }
.seller-nav a { color: var(--muted); padding: 8px 2px; border-bottom: 2px solid transparent; }
.seller-nav a:hover, .seller-nav a[aria-current="page"] { color: var(--text); border-color: var(--accent); }
.receipt-lines { width: min(100%, 540px); margin: 8px 0; padding: 0; list-style: none; text-align: left; }
.receipt-lines li { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.receipt-lines li strong { flex: none; }
.order-list { margin-top: 12px; }
.order-list summary { cursor: pointer; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; }
.order-list summary::before { content: "▸"; color: var(--accent); }
.order-list details[open] summary::before { content: "▾"; }
.order-list summary strong:last-child { margin-left: auto; }
.launch-status { margin: 14px 0 27px; max-width: 540px; }
.launch-status > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.launch-status dt { min-width: 0; overflow-wrap: anywhere; }
.launch-status dd { min-width: 4ch; max-width: 65%; margin: 0; text-align: right; overflow-wrap: anywhere; }
.provider-list { margin-top: 18px; }
.provider-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-block: 14px; }
.provider-row h2 { font-size: 17px; }
.provider-row p { margin-top: 4px; font-size: 14px; }
.provider-row .btn { flex: none; }
.provider-product { max-width: 930px; }
.provider-editor { margin-top: 18px; align-items: start; }
.provider-editor .fields { margin-top: 0; }
.provider-editor .summary h2 { font-size: 19px; }
.provider-editor .summary dl { margin-bottom: 0; }
.demo-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 16px; }
.demo-chat { max-width: 640px; }
.demo-chat-history { display: grid; gap: 14px; margin-top: 20px; border-top: 1px solid var(--line); padding-top: 18px; }
.demo-chat-user { justify-self: end; background: #342c3e; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.demo-chat-reply { display: grid; gap: 8px; width: min(100%, 365px); }
.demo-chat-reply p { white-space: pre-line; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.manage-filter { grid-template-columns: minmax(0, 340px) minmax(0, 180px) 42px; align-items: end; }
.manage-row strong, .edit code { overflow-wrap: anywhere; }
.manage-row a:hover { color: var(--accent); }
.pill.published { color: #a6e6c2; border-color: #406a55; }
.edit { max-width: 1020px; padding-top: 0; }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 28%); gap: 24px; }
.editor-section { display: grid; gap: 13px; align-content: start; border-top: 1px solid var(--line); padding-top: 14px; }
.editor-section h2 { font-size: 18px; }
.editor-section details summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.editor-section details label { margin-top: 8px; }
.editor-settings input[type="file"] { min-width: 0; }
.description-count { text-align: right; font-variant-numeric: tabular-nums; }
.editor-actions { border-top: 1px solid var(--line); padding-top: 16px; flex-wrap: wrap; }
.photo-editor { display: flex; flex-wrap: wrap; gap: 9px; }
.photo-editor img { width: 72px; height: 60px; object-fit: cover; border-radius: 6px; }
@media (max-width: 1020px) {
  .shell { width: calc(100% - 48px); }
  .header-inner { gap: 18px; }
  .main-nav { gap: 12px; }
  .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .hero { min-height: 275px; }
  .hero h1 { font-size: 57px; }
}
@media (max-width: 680px) {
  .shell { width: calc(100% - 28px); }
  .header-inner { min-height: auto; padding-block: 10px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 12px; }
  .main-nav { display: none; }
  .search { grid-column: span 2; grid-row: 2; max-width: none; width: 100%; margin: 0; }
  .brand { font-size: 18px; }
  .hero { margin-top: 13px; min-height: 229px; background-position: 63% center; }
  .hero-content { max-width: 100%; width: 100%; padding: 24px 15px 42px; background-image: linear-gradient(90deg,#0c0814 0%,#0c0814e5 32%,#0c081428 88%); }
  .hero h1 { font-size: 43px; }
  .hero-caption { font-size: 15px; max-width: 185px; margin-bottom: 13px; }
  .eyebrow { font-size: 10px; }
  .hero-status { bottom: 7px; right: 7px; }
  .catalog { padding-top: 15px; }
  .filters { gap: 6px; margin-bottom: 16px; }
  .filter { min-height: 34px; padding: 6px 8px; font-size: 12px; gap: 5px; }
  .filter .icon { width: 14px; height: 14px; }
  .section-head { gap: 8px 10px; flex-wrap: wrap; }
  .section-title { font-size: 24px; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .card-info { padding: 8px 9px 9px; }
  .card-info h3 { font-size: 15px; }
  .card-info p { font-size: 12px; }
  .card-bottom { padding-top: 7px; }
  .price { font-size: 17px; }
  .media-label { font-size: 10px; top: 5px; left: 5px; padding: 2px 4px; }
  .view-product { width: 24px; height: 24px; }
  .detail, .cart-layout { grid-template-columns: 1fr; gap: 14px; }
  .detail-image { aspect-ratio: 16/10; }
  h1 { font-size: 30px; }
  .cart-row { grid-template-columns: 40px minmax(0,1fr) auto 34px; gap: 7px; }
  .cart-row > .stepper { grid-column: 2; justify-self: start; grid-row: 2; }
  .cart-row > strong { grid-column: 3; grid-row: 1; }
  .cart-row > form:last-child { grid-row: 1; grid-column: 4; }
  .cart-row .icon-btn { width: 34px; height: 34px; }
  .mini-art { width: 40px; height: 40px; }
  .page-section { padding-block: 23px; }
  .editor-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .manage-filter { grid-template-columns: minmax(0, 1fr) 42px; }
  .manage-filter label:first-child { grid-column: 1 / -1; }
  .provider-row { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
