:root {
  color-scheme: dark;
  --bg: #101214; --sidebar: #151719; --surface: #181b1e; --surface-2: #202428;
  --line: #2b3034; --text: #f0f3f4; --muted: #a1abb2; --faint: #78858d;
  --accent: #73edb8; --accent-strong: #65eab0; --ink: #10271e;
  --red: #ff9c9c; --gold: #edc67b; --sky: #9abcf7; --side-width: 226px; --top-height: 69px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", system-ui, sans-serif;
  font-synthesis: none; color: var(--text); background: var(--bg); font-size: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; overscroll-behavior: none; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.icon { width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.muted { color: var(--muted); }
.positive { color: var(--accent); }
.negative { color: var(--red); }

.app-shell { position: fixed; inset: 0 0 auto; height: 100vh; height: 100dvh; overflow: hidden; display: grid; grid-template-columns: var(--side-width) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.sidebar { min-height: 0; height: 100%; display: flex; flex-direction: column; overflow: hidden auto; overscroll-behavior: contain; border-right: 1px solid var(--line); background: var(--sidebar); padding: env(safe-area-inset-top) 14px env(safe-area-inset-bottom); z-index: 5; }
.sidebar > * { flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: 12px; min-height: 87px; margin: 0 7px 15px; padding-bottom: 2px; }
.brand-icon { display: grid; place-items: center; width: 41px; height: 41px; flex: 0 0 auto; border-radius: 8px; background: var(--accent); color: #10271e; }
.brand-icon .icon { width: 23px; height: 23px; stroke-width: 2; fill: currentColor; }
.brand-name { min-width: 0; display: grid; gap: 4px; }
.brand-name strong { font-size: 19px; line-height: 1.1; overflow-wrap: anywhere; }
.brand-name small { color: #8a989e; font-size: 9px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.navigation { display: grid; gap: 24px; }
.nav-group p { color: var(--faint); margin: 0 11px 8px; font-size: 11px; font-weight: 650; }
.nav-link { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid transparent; border-radius: 6px; color: #aeb9bf; background: none; font-size: 13px; font-weight: 550; text-align: left; }
.nav-link + .nav-link { margin-top: 2px; }
.nav-link .icon { width: 17px; height: 17px; }
.nav-link > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.nav-link:hover { background: var(--surface-2); color: var(--text); }
.nav-link.selected { color: var(--accent); background: #20362c; border-color: #294235; font-weight: 750; }
.nav-link .nav-pointer, .nav-link .nav-external, .nav-external { width: 13px; height: 13px; opacity: .65; }
.sidebar-bottom { margin-top: auto; padding-top: 28px; }
.sidebar-foot { min-height: 55px; display: flex; align-items: center; gap: 8px; margin: 0 4px; padding: 0 6px; color: var(--faint); font-size: 11px; }
.sidebar-foot i, .shop-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }
.demo-link { width: 100%; display: flex; align-items: center; gap: 9px; min-height: 58px; padding: 7px 9px; color: var(--text); background: #1b2322; border: 1px solid #303e3b; border-radius: 6px; text-align: left; }
.demo-link:hover { border-color: #518871; }
.demo-link > span:nth-child(2) { flex: 1; display: grid; gap: 3px; }
.demo-link b { font-size: 12px; }
.demo-link small { color: var(--muted); font-size: 10px; }
.demo-icon { display: grid; place-items: center; width: 30px; height: 30px; background: #284435; color: var(--accent); border-radius: 6px; }
.demo-icon .icon { width: 16px; height: 16px; }
.drawer-backdrop, .mobile-menu { display: none !important; }

.workspace { min-width: 0; min-height: 0; height: 100%; display: flex; flex-direction: column; }
.topbar { flex: 0 0 auto; z-index: 4; min-width: 0; min-height: calc(var(--top-height) + env(safe-area-inset-top)); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: env(safe-area-inset-top) 32px 0; border-bottom: 1px solid #24292d; background: #131517; }
.content-scroll { flex: 1; min-width: 0; min-height: 0; overflow: hidden auto; overscroll-behavior: contain; }
.topbar-left, .topbar-right { min-width: 0; display: flex; align-items: center; gap: 12px; }
.topbar-left { flex: 1; }
.site-search { display: flex; align-items: center; gap: 8px; color: #a2afb5; min-width: 0; width: 358px; height: 39px; background: #1b1e21; border: 1px solid #303538; border-radius: 6px; padding: 0 11px; }
.site-search:focus-within { border-color: var(--accent); }
.site-search .icon { width: 17px; height: 17px; }
.site-search input { width: 100%; height: 100%; min-width: 0; border: none; background: none; outline: none; color: var(--text); font-size: 13px; }
.site-search input::placeholder { color: #849197; }
.site-search input:focus-visible { outline: none; }
.site-search input::-webkit-search-cancel-button { cursor: pointer; }
.icon-button { position: relative; display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; padding: 0; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 6px; }
.icon-button:hover { color: var(--text); border-color: var(--line); background: var(--surface-2); }
.notification-button i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); right: 8px; top: 7px; box-shadow: 0 0 0 2px #131517; }
.top-divider { height: 24px; width: 1px; background: var(--line); flex: 0 0 auto; }
.top-title { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.top-title .icon { color: var(--accent); }
.account-button { display: flex; align-items: center; gap: 8px; border: 1px solid transparent; padding: 3px 5px; border-radius: 6px; background: transparent; color: var(--muted); min-width: 0; text-align: left; }
.account-button:hover { border-color: var(--line); background: var(--surface-2); }
.account-button .icon { width: 14px; height: 14px; }
.avatar { width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; background: #284437; color: var(--accent); border: 1px solid #355646; border-radius: 50%; font-size: 13px; font-weight: 750; }
.account-label { min-width: 0; display: grid; gap: 3px; }
.account-label b, .account-label small { max-width: 112px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-label b { color: var(--text); font-size: 12px; }
.account-label small { font-size: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; gap: 7px; min-height: 37px; max-width: 100%; padding: 7px 12px; border-radius: 6px; border: 1px solid transparent; background: var(--surface-2); color: var(--text); font-weight: 650; font-size: 12px; line-height: 1.35; text-align: center; text-decoration: none; }
.button .icon { width: 15px; height: 15px; }
.button span { min-width: 0; overflow-wrap: anywhere; }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.button.primary:hover { background: #a1f7cf; border-color: #a1f7cf; }
.button.secondary { background: var(--surface); border-color: #3a4146; color: var(--text); }
.button.secondary:hover { background: #292d31; border-color: #555f65; }
.button.soft { background: #283b33; color: var(--accent); border-color: #334b3f; }
.button.soft:hover { background: #365343; border-color: #567b65; }
.button.danger { background: #38272a; border-color: #63383d; color: #ffc8c8; }
.button.danger:hover { background: #543238; }
.button.text-button { color: var(--accent); background: transparent; padding: 5px 6px; }
.button.text-button:hover { background: var(--surface-2); }
.button.compact { min-height: 30px; padding: 5px 8px; font-size: 11px; }
.button.compact .icon { width: 13px; height: 13px; }

main { flex: 1; width: 100%; max-width: 1560px; min-width: 0; margin: 0 auto; padding: 30px 32px 50px; }
.footer { flex: 0 0 auto; max-width: 1560px; width: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: calc(57px + env(safe-area-inset-bottom)); padding: 10px 32px calc(10px + env(safe-area-inset-bottom)); color: var(--faint); border-top: 1px solid #252a2e; font-size: 11px; }
.page-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin: 0 0 24px; }
.page-head h1 { font-size: 30px; font-weight: 790; line-height: 1.25; overflow-wrap: anywhere; }
.page-kicker { color: var(--accent); font-size: 10px; font-weight: 800; margin-bottom: 7px; }
.page-subtitle { color: var(--muted); font-size: 13px; margin-top: 8px; line-height: 1.55; }
.head-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.breadcrumbs { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--faint); margin-bottom: 8px; }
.breadcrumbs span:last-child { color: var(--muted); }
.breadcrumbs .icon { width: 11px; height: 11px; }
.shop-head { margin-bottom: 19px; }
.shop-status { display: flex; align-items: center; gap: 7px; color: #c5ccd0; border: 1px solid #333a3f; background: #171a1c; border-radius: 5px; min-height: 30px; padding: 4px 9px; font-size: 11px; }
.shop-status:hover { background: var(--surface-2); border-color: #53635a; }
.shop-status .icon { width: 14px; height: 14px; }
.shop-status i { width: 5px; height: 5px; }
.experience-offer { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 12px; padding: 9px 12px; margin-bottom: 12px; border: 1px solid #455945; border-radius: 7px; background: #1d2b24; }
.experience-mark { display: grid; place-items: center; flex: 0 0 auto; width: 35px; height: 35px; border-radius: 5px; background: #314332; color: #baf5ca; }
.experience-text { flex: 1; min-width: 100px; display: grid; gap: 3px; }
.experience-text strong { color: #f0f8f1; font-size: 14px; }
.experience-text small { color: #a6bcad; font-size: 11px; }
.experience-price { color: #d2f6a3; font-size: 21px; font-weight: 800; white-space: nowrap; }
.experience-price small { color: #a6bcad; font-size: 11px; font-weight: 600; }
.experience-offer .button { min-height: 34px; }

.hero { position: relative; height: 318px; display: flex; align-items: center; isolation: isolate; overflow: hidden; border: 1px solid #323a3a; border-radius: 8px; background: #1b2b28; }
.hero-image, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-image { object-fit: cover; object-position: center 52%; }
.hero-shade { background: linear-gradient(90deg, rgba(10,19,17,.91) 0%, rgba(10,19,17,.78) 26%, rgba(10,19,17,.35) 55%, transparent 76%), linear-gradient(0deg, rgba(9,13,13,.49) 0%, transparent 23%); }
.hero-content { max-width: 68%; padding: 21px 0 21px 32px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 5px 8px; min-height: 24px; margin-bottom: 12px; background: #122a20; border: 1px solid #3b6c54; border-radius: 4px; color: #b6f7d7; font-size: 11px; font-weight: 750; }
.hero-kicker i { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.hero h2 { font-weight: 850; font-size: 46px; line-height: 1.14; color: #f3f7f4; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.hero h2 span { color: #a8f5cf; }
.hero p:not(.hero-index) { color: #d4dedb; margin-top: 10px; margin-bottom: 18px; line-height: 1.48; font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero .button { min-height: 38px; padding-inline: 12px; }
.hero .button .icon { order: 2; }
.hero-index { position: absolute; bottom: 17px; right: 17px; display: flex; align-items: center; gap: 7px; color: #d9e5e3; font-size: 9px; font-weight: 750; }
.hero-index b { color: #e1fff0; font-size: 14px; }
.hero-index span { width: 24px; height: 1px; background: #a7cbbc; }
.announcement { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 45px; text-align: left; border: 1px solid #2d3734; background: #19211f; border-radius: 6px; color: #b5c3bf; margin-top: 15px; padding: 8px 11px; font-size: 12px; }
.announcement:hover { border-color: #527063; }
.announce-title, .announce-more { display: flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 11px; font-weight: 700; }
.announce-title { color: var(--accent); }
.announce-title .icon { width: 15px; height: 15px; }
.announce-more { color: #b6c6be; }
.announce-more .icon { width: 13px; height: 13px; }
.announce-copy { flex: 1; min-width: 0; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.announce-copy i { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--faint); margin: 0 4px 3px; }

.catalog { margin-top: 29px; scroll-margin-top: calc(var(--top-height) + 17px); }
.catalog-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.catalog-head .page-kicker { margin-bottom: 5px; }
.catalog-head h2 { font-size: 24px; line-height: 1.2; overflow-wrap: anywhere; }
.sort-select { position: relative; display: inline-flex; align-items: center; color: #b3bdc2; border: 1px solid var(--line); border-radius: 6px; background: #171a1d; width: 122px; flex: 0 0 122px; height: 35px; }
.sort-select .icon { position: absolute; left: 8px; width: 14px; height: 14px; pointer-events: none; }
.sort-select .icon:last-child { left: auto; right: 7px; width: 12px; height: 12px; }
.sort-select select { width: 100%; height: 100%; appearance: none; border: none; color: inherit; background: transparent; padding: 0 20px 0 27px; font-size: 11px; cursor: pointer; }
.sort-select option { background: var(--surface); color: var(--text); }
.catalog-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.filter-chip, .filter-tab { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; gap: 6px; min-height: 35px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: #181b1e; color: #b4bdc2; font-size: 12px; font-weight: 650; }
.filter-chip:hover, .filter-tab:hover { background: var(--surface-2); color: var(--text); }
.filter-chip.selected, .filter-tab.selected { background: #253b30; border-color: #446b54; color: #a6f2cb; }
.filter-chip .icon, .filter-tab .icon { width: 15px; height: 15px; }
.results-note { color: var(--muted); font-size: 12px; margin: 1px 0 12px; overflow-wrap: anywhere; }
.product-grid, .lobby-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.two-columns .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-grid > .empty-state { grid-column: 1 / -1; }
.product-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 7px; }
.product-card:hover { border-color: #4a5657; }
.product-media { position: relative; isolation: isolate; min-width: 0; width: 100%; height: auto; display: grid; aspect-ratio: 1.94; place-items: center; padding: 0; border: 0; border-bottom: 1px solid #32373b; color: #76bd9d; background: #20362e; overflow: hidden; }
.product-media:focus-visible { outline-offset: -4px; }
.product-media img, .product-media-shade { position: absolute; width: 100%; height: 100%; inset: 0; }
.product-media img { object-fit: cover; transition: transform .28s ease; }
.product-media:hover img { transform: scale(1.04); }
.product-media-shade { background: linear-gradient(0deg, rgba(10,13,13,.4), transparent 47%); pointer-events: none; }
.product-media > .icon { width: 36px; height: 36px; }
.art-valorant { background: #462a2b; }
.art-honor { background: #3b2c38; }
.art-league { background: #223448; }
.art-peace { background: #3b392a; }
.art-naraka { background: #2b2b32; }
.product-tag { position: absolute; top: 9px; left: 9px; display: inline-flex; align-items: center; gap: 4px; max-width: calc(100% - 18px); min-height: 23px; padding: 4px 6px; border-radius: 4px; color: #f3f8f6; background: #24362e; font-size: 10px; line-height: 1.3; font-weight: 750; overflow-wrap: anywhere; text-align: left; }
.product-tag .icon { width: 12px; height: 12px; }
.tag-hot { background: #673834; color: #ffe3d3; }
.tag-new { background: #284d3a; color: #d2fae4; }
.product-body { min-width: 0; flex: 1; display: flex; flex-direction: column; padding: 13px 12px 12px; }
.product-category { display: flex; align-items: center; gap: 5px; min-width: 0; color: var(--accent); font-size: 11px; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; }
.product-category .icon { width: 13px; height: 13px; }
.product-body h3 { font-size: 16px; font-weight: 750; line-height: 1.34; margin: 6px 0 4px; }
.bare-link { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; overflow-wrap: anywhere; }
.bare-link:hover { color: var(--accent); }
.product-description { color: #a6b0b6; font-size: 12px; line-height: 1.5; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.product-foot { margin-top: auto; display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 7px; padding-top: 10px; border-top: 1px solid #2b3034; }
.product-price { color: var(--accent); font-size: 21px; font-weight: 780; white-space: nowrap; font-variant-numeric: tabular-nums; }
.product-price > span, .product-price small { font-size: 12px; }
.product-price > span { margin-right: 3px; }
.product-price i { font-style: normal; color: var(--faint); font-size: 10px; margin-left: 4px; font-weight: 500; }
.product-sales { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--faint); font-size: 10px; margin-top: 3px; white-space: nowrap; }
.product-sales .icon { width: 10px; height: 10px; color: var(--gold); }
.product-button { min-height: 32px; gap: 5px; padding: 6px 8px; font-size: 11px; }
.product-button .icon { order: 2; width: 13px; height: 13px; }

.loading-screen { display: grid; justify-items: center; align-content: center; gap: 13px; min-height: 250px; color: var(--muted); }
.spinner { display: block; width: 28px; height: 28px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { display: grid; justify-items: center; place-content: center; gap: 10px; min-height: 215px; padding: 22px; border: 1px dashed #384046; border-radius: 8px; color: var(--muted); text-align: center; }
.empty-icon { display: grid; place-items: center; width: 44px; height: 44px; background: #27362f; border: 1px solid #354a3f; color: var(--accent); border-radius: 8px; }
.empty-icon .icon { width: 21px; height: 21px; }
.empty-state h2 { color: var(--text); font-size: 17px; }
.empty-state p { max-width: 49ch; line-height: 1.5; overflow-wrap: anywhere; }
.empty-state .button { margin-top: 3px; justify-self: center; }
.filters-bar { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 15px; }
.filter-tab small { padding: 1px 4px; border-radius: 4px; color: var(--muted); background: #242a2b; font-size: 10px; font-weight: 700; }
.filter-tab.selected small { background: #355244; color: var(--accent); }
.table-scroll { max-width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.data-table { width: 100%; min-width: 568px; border-collapse: collapse; text-align: left; }
.data-table th, .data-table td { padding: 12px 13px; vertical-align: middle; }
.data-table th { color: var(--muted); background: #1e2225; font-size: 11px; white-space: nowrap; }
.data-table td { border-top: 1px solid #2c3135; color: #bac3c9; font-size: 12px; line-height: 1.4; }
.data-table tr:hover td { background: #1d2124; }
.data-table td strong { display: block; font-size: 13px; color: var(--text); font-weight: 700; overflow-wrap: anywhere; }
.data-table td:first-child { min-width: 160px; }
.data-table td .button { white-space: nowrap; }
.data-table .cell-value { color: var(--text); font-weight: 650; white-space: nowrap; }
.data-table .cell-value.positive { color: var(--accent); }
.data-table .cell-value.negative { color: var(--red); }
.data-table .cell-date { white-space: nowrap; }
.order-number { display: block; margin-top: 4px; color: var(--faint); font-size: 10px; overflow-wrap: anywhere; }
.notice-snippet { max-width: 340px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pill { display: inline-flex; align-items: center; gap: 5px; min-height: 22px; padding: 3px 7px; white-space: nowrap; font-size: 11px; font-weight: 700; color: #c6d0d5; background: #2d3438; border-radius: 5px; }
.pill i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill.status-pending_payment, .pill.status-open, .pill.status-recruiting { color: #dea96e; background: #392e23; }
.pill.status-in_progress { color: #a8bfff; background: #2b344a; }
.pill.status-submitted { color: #d3b9fd; background: #372f48; }
.pill.status-completed { color: #9de8bd; background: #294438; }
.pill.status-refunded, .pill.status-refund_requested { color: #ffbca7; background: #443033; }
.lobby-card { min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.lobby-top, .lobby-foot, .lobby-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 7px; }
.lobby-top small, .lobby-meta { font-size: 11px; color: var(--muted); }
.lobby-meta { justify-content: flex-start; overflow-wrap: anywhere; }
.lobby-meta .icon { width: 15px; height: 15px; }
.lobby-card h2 { font-size: 16px; overflow-wrap: anywhere; }
.lobby-card p { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.lobby-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 10px; }
.summary-inline { display: flex; align-items: center; gap: 12px; margin: 0 0 19px; }
.summary-icon, .metric-icon { display: grid; place-items: center; width: 39px; height: 39px; flex: 0 0 auto; background: #283f34; color: var(--accent); border: 1px solid #355244; border-radius: 7px; }
.summary-inline strong, .metric strong { display: block; margin-top: 3px; color: var(--accent); font-size: 24px; line-height: 1.2; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.summary-inline small, .metric small { color: var(--muted); font-size: 11px; }
.rank-list { display: grid; gap: 6px; }
.rank-row { min-width: 0; display: grid; grid-template-columns: 28px 34px minmax(0, 1fr) 52px 60px 47px; align-items: center; gap: 10px; padding: 9px 10px; border-bottom: 1px solid var(--line); color: #b9c3c9; font-size: 12px; }
.rank-row h2 { color: var(--text); font-size: 13px; }
.rank-row p, .rank-row h2 { overflow-wrap: anywhere; }
.rank-row p { color: var(--muted); font-size: 11px; margin-top: 4px; }
.rank-row .icon { width: 13px; height: 13px; }
.rank-index { color: var(--faint); font-weight: 800; }
.rank-top, .rating { color: var(--gold); }
.rank-level { color: var(--accent); }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 11px; margin-bottom: 27px; }
.metric { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.metric-icon { width: 33px; height: 33px; margin-bottom: 9px; }
.metric-icon .icon { width: 17px; height: 17px; }
.admin-section-head { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: end; gap: 8px; margin: 0 0 12px; }
.admin-section-head h2, .settings-group h2 { font-size: 18px; }
.admin-section-head p { color: var(--muted); font-size: 12px; margin-top: 4px; }
.settings-form { max-width: 790px; }
.settings-group { padding: 0 0 16px; margin: 0 0 16px; border-bottom: 1px solid var(--line); }
.settings-group h2 { margin-bottom: 9px; }
.setting-check { align-self: end; min-height: 38px; }

dialog { width: min(490px, calc(100% - 24px)); max-height: calc(100% - 32px); max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); padding: 0; margin: auto; overflow: hidden auto; overscroll-behavior: contain; border: 1px solid #41494d; border-radius: 8px; background: #1b1f22; color: var(--text); box-shadow: 0 20px 66px rgba(0,0,0,.62); }
dialog.dialog-wide { width: min(688px, calc(100% - 24px)); }
dialog::backdrop { background: rgba(4, 7, 8, .74); }
.dialog-inner { min-width: 0; padding: 18px; }
.dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 8px; margin: 0 0 12px; }
.dialog-head h2 { min-width: 0; font-size: 21px; line-height: 1.35; padding-top: 2px; overflow-wrap: anywhere; }
.dialog-head .icon-button { width: 30px; height: 30px; }
.dialog-head .icon-button .icon { width: 17px; height: 17px; }
.dialog-copy, .notice-list li p { color: #c2cbd0; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.popup-picture { display: block; width: 100%; max-height: min(62dvh, 550px); object-fit: contain; object-position: center; border-radius: 6px; background: #131719; }
.popup-picture + .dialog-copy { margin-top: 12px; }
.popup-offer { margin-top: 12px; }
.popup-image-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.popup-image-controls label { cursor: pointer; }
.popup-image-controls label:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.popup-image-controls small { color: var(--muted); font-weight: 400; }
.popup-image-preview { display: block; width: auto; max-width: 100%; max-height: 165px; border: 1px solid var(--line); border-radius: 6px; }
.dispatch-options { margin-top: 12px; }
.dispatch-options .specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dispatch-options .spec-option > span { height: 100%; }
.dispatch-options .spec-option small { color: #b5c5bd; }
.dispatch-worker { margin-top: 8px; }
.table-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.notice-list, .timeline { list-style: none; margin: 0; padding: 0; }
.notice-list li { border-bottom: 1px solid var(--line); padding: 10px 0; }
.notice-list li:last-child { border-bottom: 0; }
.notice-list li h3 { font-size: 15px; margin-bottom: 5px; overflow-wrap: anywhere; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.field { min-width: 0; display: grid; gap: 5px; align-content: start; color: #c6cfd3; font-size: 12px; font-weight: 600; }
.field.full { grid-column: 1 / -1; }
.field input, .field textarea, .field select { min-width: 0; width: 100%; min-height: 38px; padding: 8px 9px; border: 1px solid #3a4348; border-radius: 6px; color: var(--text); background: #141719; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #7bc4a5; }
.form-note, .form-error { margin: 10px 0 0; padding: 8px 9px; border-radius: 6px; background: #272e32; color: #c7d0d5; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.form-error { color: #ffb3b3; background: #39292c; }
.form-foot { display: flex; align-items: center; justify-content: end; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.form-foot .button { min-height: 37px; }
.settings-form > .button { margin-top: 10px; }
.auth-links { margin-top: 13px; border-top: 1px solid var(--line); padding-top: 8px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px; }
.demo-options { display: grid; gap: 7px; }
.demo-option { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 8px; min-height: 53px; border: 1px solid #394145; border-radius: 6px; background: #222629; color: var(--muted); text-align: left; }
.demo-option:hover { border-color: #567d68; background: #292f30; }
.demo-option-icon { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 5px; color: var(--accent); background: #2c4538; }
.demo-option b, .demo-option small { display: block; }
.demo-option b { color: var(--text); }
.demo-option small { margin-top: 2px; }
.account-detail { display: flex; align-items: center; gap: 10px; overflow-wrap: anywhere; }
.account-detail .avatar { width: 40px; height: 40px; }
.account-detail p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.product-detail-head { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 12px; }
.product-detail-head img { width: 128px; max-width: 38%; aspect-ratio: 1.8; object-fit: cover; border-radius: 5px; }
.product-detail-head p:not(.product-category) { color: #c7cdd0; line-height: 1.5; margin-top: 4px; overflow-wrap: anywhere; }
.product-detail-head p.muted { color: var(--muted); font-size: 11px; }
.spec-field { min-width: 0; border: 0; padding: 0; margin: 0 0 12px; }
.spec-field legend { color: #c6cfd3; padding: 0 0 5px; font-size: 12px; font-weight: 650; }
.specs { display: flex; flex-wrap: wrap; gap: 6px; }
.spec-option { position: relative; display: block; min-width: 0; max-width: 100%; cursor: pointer; }
.spec-option > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.spec-option > span { display: grid; gap: 4px; min-height: 46px; padding: 6px 8px; color: var(--text); background: #23282b; border: 1px solid #424b50; border-radius: 6px; font-size: 12px; overflow-wrap: anywhere; }
.spec-option > input:checked + span { border-color: #6dac8c; background: #243d32; }
.spec-option > input:disabled + span { opacity: .5; }
.spec-option > input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.spec-option small { color: var(--accent); font-size: 11px; }
.order-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); margin-top: 13px; padding-top: 11px; }
.order-total small { display: block; color: var(--muted); font-size: 10px; margin-top: 5px; }
.order-total b { color: var(--accent); font-size: 23px; white-space: nowrap; }
.detail-top { margin: 0 0 8px; }
.details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 12px; }
.details-grid > div { min-width: 0; padding-bottom: 7px; border-bottom: 1px solid var(--line); }
.details-grid dt { color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.details-grid dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; font-size: 13px; }
.dialog-label { font-size: 14px; margin: 10px 0 9px; }
.timeline { max-height: 165px; overflow: auto; padding-left: 6px; }
.timeline li { position: relative; border-left: 1px solid #526059; padding: 0 0 10px 13px; }
.timeline li::before { content: ''; position: absolute; top: 3px; left: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.timeline li div { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.timeline li div span, .timeline li time, .timeline li p, .modal-context { font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.timeline li p { margin-top: 3px; white-space: pre-wrap; }
.modal-context { margin: 0 0 10px; }
.checklist { display: grid; gap: 5px; max-height: 210px; overflow: auto; }
.check-row { display: flex; align-items: center; gap: 6px; color: #c6cfd3; padding: 5px 2px; font-size: 12px; overflow-wrap: anywhere; }
.check-row input { accent-color: var(--accent); width: 16px; height: 16px; flex: 0 0 auto; }
.spec-edit { margin: 10px 0; padding: 0 0 10px; border-bottom: 1px solid var(--line); }
.spec-edit-head { display: flex; align-items: center; justify-content: space-between; min-height: 34px; color: var(--accent); }
.spec-edit-head .icon-button { height: 27px; width: 27px; }
.spec-edit-head .icon { width: 15px; height: 15px; }
.spec-edit-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.toasts { position: fixed; z-index: 9; bottom: max(14px, env(safe-area-inset-bottom)); right: 16px; display: grid; gap: 5px; width: min(350px, calc(100% - 32px)); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 8px; min-height: 39px; padding: 9px 11px; background: #22392f; color: #d6f5e5; border: 1px solid #426958; border-radius: 6px; font-size: 12px; overflow-wrap: anywhere; }
.toast .icon { color: var(--accent); width: 16px; height: 16px; }
.toast.toast-error { background: #392628; color: #ffd2d2; border-color: #6f4549; }
.toast-error .icon { color: var(--red); }

@media (max-width: 1110px) {
  :root { --side-width: 205px; }
  .topbar, main, .footer { padding-left: 22px; padding-right: 22px; }
  .lobby-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 880px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { height: 286px; }
  .hero h2 { font-size: 39px; }
}
@media (max-width: 700px) {
  :root { --top-height: 55px; }
  .app-shell { display: block; }
  .sidebar { display: none; position: fixed; top: 0; left: 0; width: min(255px, calc(100% - 57px)); z-index: 8; }
  .drawer-open .sidebar { display: flex; }
  .drawer-open .drawer-backdrop { display: block !important; position: fixed; z-index: 7; inset: 0; background: rgba(4,8,7,.66); }
  .mobile-menu { display: grid !important; color: var(--text); }
  .topbar { padding: env(safe-area-inset-top) 10px 0; gap: 7px; }
  .topbar-left, .topbar-right { gap: 4px; }
  .site-search { height: 34px; gap: 5px; padding: 0 5px; }
  .site-search .icon { width: 14px; height: 14px; }
  .site-search input, .field input, .field textarea, .field select { font-size: 16px; }
  .topbar .icon-button { width: 29px; height: 32px; }
  .support-shortcut, .top-divider, .account-label, .account-button > .icon { display: none; }
  .login-button { padding: 5px 6px; min-height: 32px; font-size: 11px; }
  .login-button .icon { width: 13px; height: 13px; }
  .account-button { padding: 3px; }
  .avatar { width: 29px; height: 29px; }
  main { padding: 17px 11px 29px; }
  .footer { padding: 8px 11px calc(8px + env(safe-area-inset-bottom)); min-height: calc(34px + env(safe-area-inset-bottom)); }
  .page-head { margin-bottom: 15px; gap: 7px; }
  .page-head h1 { font-size: 24px; }
  .shop-status { padding: 3px 5px; gap: 4px; min-height: 26px; }
  .experience-offer { gap: 6px 8px; padding: 7px 8px; }
  .experience-mark { width: 30px; height: 30px; }
  .experience-text { min-width: 73px; }
  .experience-price { font-size: 18px; }
  .experience-offer .button { min-height: 31px; padding: 5px 7px; }
  .hero { height: 222px; }
  .hero h2 { font-size: 30px; }
  .hero-image { object-position: 65% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(9,19,17,.86), rgba(10,21,18,.54) 56%, rgba(9,19,17,.15)), linear-gradient(0deg, rgba(9,13,13,.55), transparent 22%); }
  .hero-content { max-width: 83%; padding-left: 13px; }
  .hero-kicker { min-height: 20px; margin-bottom: 6px; padding: 3px 6px; font-size: 10px; }
  .hero p:not(.hero-index) { margin: 7px 0 10px; font-size: 11px; }
  .hero .button { min-height: 34px; }
  .hero-index { right: 7px; bottom: 6px; font-size: 0; gap: 4px; }
  .hero-index b { font-size: 12px; }
  .hero-index span { width: 12px; }
  .announcement { min-height: 36px; gap: 6px; margin-top: 9px; padding: 5px 7px; font-size: 11px; }
  .announce-title, .announce-more { font-size: 10px; gap: 3px; }
  .announce-title .icon { width: 13px; height: 13px; }
  .catalog { margin-top: 19px; }
  .catalog-head { margin-bottom: 8px; }
  .catalog-head h2 { font-size: 20px; }
  .catalog-filters { flex-wrap: nowrap; overflow-x: auto; clear: both; padding: 3px 3px 5px; margin: 0 -3px 7px; scrollbar-width: thin; }
  .filter-chip { min-height: 31px; padding: 5px 7px; font-size: 11px; }
  .filter-chip .icon { width: 13px; height: 13px; }
  .product-body { padding: 9px 7px 7px; }
  .product-body h3 { font-size: 14px; }
  .product-description { margin-bottom: 8px; font-size: 11px; }
  .product-price { font-size: 18px; }
  .product-price small, .product-price > span { font-size: 10px; }
  .product-foot { padding-top: 7px; gap: 5px; }
  .product-button { min-height: 29px; padding: 4px 5px; gap: 3px; }
  .product-button .icon { width: 11px; height: 11px; }
}
@media (max-width: 365px) {
  .notification-button { display: none; }
  .form-grid, .spec-edit-grid, .lobby-grid { grid-template-columns: 1fr; }
  .rank-row { grid-template-columns: 22px 29px minmax(0, 1fr) 37px 42px; gap: 6px; }
  .rank-level { display: none; }
  .dispatch-options .spec-option small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: 0s !important; }
}
.decor-details + .decor-details { margin-top: 12px; }
.decor-details summary { color: var(--text); padding-block: 8px; cursor: pointer; }
.decor-details .form-grid { margin-top: 8px; }
.decorated-content { background: linear-gradient(rgba(16,18,20,.84),rgba(16,18,20,.93)), var(--shop-bg-image) center / cover no-repeat; }
#shop-effects { position: fixed; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
#shop-effects i { position: absolute; top: -12px; left: var(--x); width: var(--size); height: var(--size); background: #bbffe3; opacity: .52; animation: shop-fall var(--dur) linear var(--delay) infinite; }
#shop-effects[data-effect=snow] i { background: #e0fff6; border-radius: 100%; }
#shop-effects[data-effect=confetti] i:nth-child(3n + 1) { background: #ffe9aa; }
#shop-effects[data-effect=confetti] i:nth-child(3n + 2) { background: #7ce7ff; }
@keyframes shop-fall { to { transform: translate(48px, calc(100dvh + 24px)) rotate(340deg); } }
@media (prefers-reduced-motion: reduce) { #shop-effects { display: none; } }
