.storefront {
    --surface: #121b18;
    --line: #283730;
    --accent: #78f2b5;
    --muted: #a8bbb2;
    background: radial-gradient(ellipse at 72% 0, #15221b 0, transparent 50rem), #0a100e;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.storefront #main { flex: 1; }
.storefront .site-header { background: #0d1512; border-color: #26382d; }
.domain-announcement { background: var(--accent); color: var(--accent-deep); }
.announcement-inner { display: flex; align-items: center; gap: .75rem; max-width: 52rem; }
.announcement-viewport { flex: 1; min-width: 0; overflow: hidden; }
.announcement-track { text-align: center; }
.announcement-track p { padding-block: .55rem; color: inherit; font-size: .86rem; font-weight: 750; line-height: 1.4; }
.announcement-track [aria-hidden="true"] { display: none; }
.announcement-toggle {
    flex: none;
    min-width: 4.9rem;
    min-height: 36px;
    margin-block: 3px;
    padding: .2rem .6rem;
    border: 1px solid #226144;
    border-radius: 7px;
    background: transparent;
    color: inherit;
    font-size: .82rem;
    font-weight: 800;
}
.announcement-toggle:hover { background: var(--accent-deep); color: var(--accent); }
.announcement-toggle:focus-visible { outline-color: var(--accent-deep); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
    .domain-announcement.is-scrolling .announcement-track {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        width: max-content;
        min-width: 200%;
        white-space: nowrap;
        animation: scroll-announcement 17s linear 1.5s infinite;
    }
    .domain-announcement.is-scrolling .announcement-track p { display: block; padding-inline: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
    .announcement-toggle { display: none; }
}
@keyframes scroll-announcement {
    to { transform: translateX(-50%); }
}
.storefront .header-inner { min-height: 72px; }
.storefront .header-inner .brand { width: clamp(145px, 15vw, 190px); }
.storefront .header-inner .catalog-search {
    max-width: 470px;
    min-height: 44px;
    background: #161f1b;
    border-radius: 999px;
    padding-inline: 15px 4px;
}
.storefront .catalog-search:focus-within { border-color: #629b7a; }
.storefront .catalog-search input { outline-offset: 0; outline: none; }
.storefront .catalog-search .button {
    border: 0;
    border-radius: 999px;
    min-height: 34px;
    padding-inline: .95rem;
    background: #25332c;
}
.storefront .catalog-search .button:hover { background: #33483b; }
.storefront .header-actions { gap: 16px; }
.storefront .track-link { display: inline-flex; align-items: center; min-height: 44px; color: #dbe8e0; font-weight: 750; white-space: nowrap; }
.storefront .track-link:hover { color: var(--accent); }
.storefront .cart-link { border-color: #375443; background: #17261e; color: var(--ink); border-radius: 999px; }
.storefront .cart-link:hover { background: #22392b; }
.storefront .cart-link .icon { width: 17px; height: 17px; color: var(--accent); }
.storefront .cart-link .cart-count { min-width: 1.42rem; border-radius: 999px; font-size: .78rem; font-weight: 800; }
.shop-nav-bar { border-top: 1px solid #1c2a23; background: #101914; }
.storefront .main-nav {
    justify-content: space-between;
    flex-wrap: nowrap;
    min-height: 48px;
    gap: 10px;
    padding-block: 0;
    border: 0;
    overflow: visible;
    white-space: nowrap;
}
.shop-nav-links { display: flex; gap: clamp(2px, .75vw, 10px); align-items: stretch; min-width: 0; }
.storefront .main-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: .72rem .7rem;
    min-height: 44px;
    font-size: .88rem;
    line-height: 1.25;
    color: #bdcdc4;
    border-bottom: 2px solid transparent;
}
.storefront .main-nav .icon { width: 16px; height: 16px; color: #91b7a2; }
.storefront .main-nav a:hover, .storefront .main-nav [aria-current] {
    color: var(--accent);
    background: #182a20;
}
.storefront .main-nav [aria-current] { border-color: var(--accent); }
.storefront .main-nav .nav-help { margin: 0; }
.storefront .site-footer { margin-top: 0; background: #0d1512; }
.storefront .footer-inner nav { flex-wrap: wrap; gap: 8px 24px; }
.catalog-filter-toggle.button, .checkout-total { display: none; }

.storefront .store-hero {
    min-height: clamp(310px, 29vw, 375px);
    margin-top: clamp(16px, 2.6vw, 28px);
    background: #102019;
    border: 1px solid #354e3e;
    border-radius: 25px;
}
.store-hero .hero-image {
    width: 66%;
    object-position: 50% 38%;
}
.storefront .store-hero::after {
    background:
        radial-gradient(ellipse at 0 0, #2745366e, transparent 48%),
        linear-gradient(90deg, #102019 0%, #102019 31%, #102019ed 40%, #10201960 56%, transparent 72%);
}
.store-hero .hero-copy { padding: 33px clamp(25px, 4.7vw, 67px); }
.store-hero .hero-copy h1 { font-size: clamp(2.8rem, 5.05vw, 4.55rem); line-height: 1; letter-spacing: -.055em; }
.store-hero .hero-copy p { max-width: 405px; margin: 15px 0 18px; color: #c0d1c7; }
.store-hero .button, .purchase-actions .button { min-height: 48px; border-radius: 10px; font-weight: 800; }
.storefront .button-primary { background: var(--accent); border-color: #93ffc8; box-shadow: 0 3px 11px #0003; }
.storefront .button-primary:hover { background: #a4f9cc; }
.store-hero .button-outline { background: #1b2e2394; border-color: #4c6959; }
.store-hero .button-outline:hover { background: #294437; }
.store-hero .button .icon, .section-link .icon { width: 17px; height: 17px; }
.storefront .features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 12px;
    padding: 0;
    gap: 0;
    background: #121c17;
    border: 1px solid var(--line);
    border-radius: 12px;
}
.storefront .features > * { min-height: 44px; justify-content: center; padding: .4rem .7rem; }
.storefront .features > * + * { border-left: 1px solid var(--line); }
.storefront .features a:hover { background: #192921; border-radius: 0 12px 12px 0; }
.storefront .home-categories, .storefront .home-shelf { margin-block: clamp(23px, 2.7vw, 40px); }
.storefront :is(.home-categories, .home-shelf) .section-head { gap: 0 12px; margin-bottom: 12px; }
.storefront :is(.home-categories, .home-shelf) .section-head h2 {
    font-size: clamp(1.5rem, 2.65vw, 2rem);
    letter-spacing: -.045em;
}
.section-link { display: inline-flex; min-height: 44px; align-items: center; gap: 5px; font-size: .9rem; }
.section-link:hover { text-decoration: underline; }
.store-update {
    display: flex;
    align-items: center;
    gap: 10px 13px;
    margin-top: 12px;
    padding: 2px 14px;
    border: 1px solid #3a5245;
    border-radius: 10px;
    background: #17271e;
}
.store-update-icon { display: grid; place-items: center; padding: 6px; background: #214331; color: var(--accent); border-radius: 6px; }
.store-update-icon .icon { width: 17px; height: 17px; }
.store-update p { display: flex; flex-wrap: wrap; gap: 1px 12px; flex: 1; font-size: .84rem; }
.store-update p strong { color: #e3f4e9; font-weight: 800; }
.store-update .section-link { white-space: nowrap; }
.category-explorer { display: grid; grid-template-columns: minmax(268px, 1fr) minmax(0, 1.9fr); gap: 12px; }
.category-spotlight {
    position: relative;
    display: flex;
    align-items: end;
    isolation: isolate;
    overflow: hidden;
    min-height: 175px;
    padding: 17px;
    border: 1px solid #554453;
    border-radius: 16px;
    background: #302126;
}
.category-spotlight::after, .category-spotlight-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.category-spotlight::after { content: ""; z-index: -1; background: linear-gradient(90deg, #170d17 0%, #180e18e8 38%, #1b0f1d85 66%, #1c142621 100%); }
.category-spotlight-art { z-index: -2; object-fit: cover; object-position: 65% center; }
.category-spotlight-copy { display: grid; gap: 5px; min-width: 0; }
.category-spotlight-copy > .icon { color: #e0bded; width: 23px; height: 23px; margin-bottom: 3px; }
.category-spotlight-copy strong { font-size: 1.6rem; line-height: 1.05; letter-spacing: -.04em; }
.category-spotlight-copy > span:not(.icon) { color: #f0dfe9; font-size: .85rem; }
.category-spotlight-copy .category-spotlight-link { display: flex; align-items: center; gap: 6px; font-weight: 800; }
.category-spotlight-link .icon { width: 15px; height: 15px; }
.category-directory { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.category-directory:only-child { grid-column: 1 / -1; }
.category-tile {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    min-height: 73px;
    padding: 10px;
    background: #15201a;
    border: 1px solid #2b3a32;
    border-radius: 11px;
}
.category-tile:hover, .category-spotlight:hover { border-color: #75ac8e; }
.category-tile .category-icon { width: 35px; height: 35px; border-radius: 8px; }
.category-tile .category-icon .icon { width: 18px; height: 18px; }
.category-tile > .icon { width: 13px; height: 13px; color: #a2b6aa; }
.category-tile:hover > .icon { color: var(--accent); }
.category-tile-label { min-width: 0; }
.category-tile-label strong, .category-tile-label small { display: block; }
.category-tile-label strong { font-size: .88rem; line-height: 1.2; }
.category-tile-label small { font-size: .73rem; margin-top: 3px; }
.storefront .category-icon.coding { color: #d6c0ff; background: #342b50; }
.storefront .category-icon.team-plans { color: #acd5ff; background: #253957; }
.storefront .category-icon.api-credits { color: #82ebc3; background: #1b4033; }
.storefront .product-card { border-radius: 15px; background: #141e19; }
.storefront .product-card:hover { background: #1a2921; }
.card-artwork { position: relative; overflow: hidden; }
.merchandise-label {
    position: absolute;
    bottom: 7px;
    left: 7px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #2a2117;
    color: #ffdf9e;
    border: 1px solid #927447;
    border-radius: 6px;
    padding: 3px 6px;
    font-size: .65rem;
    font-weight: 800;
}
.merchandise-label.is-trending { background: #142820; color: #b8ffda; border-color: #46735d; }
.merchandise-label .icon { width: 11px; height: 11px; }
.storefront .product-art.steam-cover { object-fit: contain; background: #101918; }
.storefront .detail-art.steam-cover { aspect-ratio: 460 / 215; object-fit: contain; }
.storefront .stock-state.stock-low { background: #3a2719; color: #ffdb9c; border-color: #79603a; }
.storefront .product-info { padding: 15px; }
.storefront .product-meta .category-label { color: #a9beb1; font-size: .79rem; }
.storefront .stock-state { font-size: .74rem; font-weight: 750; }
.storefront .stock-state.in-stock::before {
    display: inline-block;
    content: "";
    width: .38rem;
    height: .38rem;
    margin: 0 .33rem .07rem 0;
    border-radius: 50%;
    background: currentColor;
}
.storefront .product-foot { border-top: 1px solid #293932; padding-top: 10px; }
.home-shelf .product-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 11px; }
.storefront .home-shelf .product-art { aspect-ratio: 16 / 9; }
.storefront .home-shelf .product-info { padding: 10px; }
.storefront .home-shelf .product-meta { flex-wrap: wrap; gap: 4px 5px; }
.storefront .home-shelf .product-meta .category-label, .storefront .home-shelf .stock-state { font-size: .7rem; }
.storefront .home-shelf .product-info h3 { font-size: .98rem; line-height: 1.3; margin-bottom: .34rem; }
.storefront .home-shelf .product-info p { font-size: .76rem; margin-bottom: .55rem; }
.storefront .home-shelf .product-foot { padding-top: 7px; }
.storefront .home-shelf .product-foot strong { font-size: 1.05rem; }
.storefront .product-foot .provider-summary { font-size: .88rem; line-height: 1.25; }
.storefront .provider-art {
    --art-glow: #347966;
    --art-deep: #102820;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 38%, var(--art-glow), transparent 66%), var(--art-deep);
}
.storefront .provider-art::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: repeating-linear-gradient(135deg, transparent 0 22px, #ffffff0c 22px 23px);
    mask-image: linear-gradient(to bottom right, #000, transparent 88%);
}
.storefront .provider-art img { width: 33%; max-width: 180px; filter: drop-shadow(0 4px 10px #0005); }
.storefront .provider-claude { --art-glow: #a7604d; --art-deep: #301b20; }
.storefront .provider-cursor { --art-glow: #586987; --art-deep: #192337; }
.storefront .provider-z-ai { --art-glow: #4578ad; --art-deep: #152239; }
.storefront .provider-codex { --art-glow: #6860a4; --art-deep: #211c39; }
.storefront .provider-art.team-plans { background: radial-gradient(ellipse at 67% 55%, var(--art-glow), transparent 70%), var(--art-deep); }
.storefront .provider-art.api-credits { background: radial-gradient(ellipse at 35% 50%, var(--art-glow), transparent 65%), var(--art-deep); }
.storefront .provider-legacy { --art-glow: #6a6574; --art-deep: #272530; }

.provider-prices-heading, .provider-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.provider-prices-heading { justify-content: space-between; }
.provider-price-list { margin: 0; border: 1px solid #344d3e; border-radius: 11px; background: #121d17; }
.provider-price-list > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 9px 17px; padding: 11px 13px; }
.provider-price-list > div + div { border-top: 1px solid var(--line); }
.provider-price-list dt { font-size: .92rem; font-weight: 800; }
.provider-price-list dd { margin: 0; font-size: .92rem; overflow-wrap: anywhere; }
.provider-price-list dd strong { color: var(--accent); }
.provider-price-list dd small { display: block; margin-top: 2px; font-size: .78rem; }
.provider-links .text-link { font-size: .83rem; min-height: 44px; display: inline-flex; align-items: center; }
.storefront .product-detail .provider-source { margin: 0; font-size: .78rem; }

.storefront .product-detail { margin-block: clamp(22px, 3.1vw, 44px) 55px; }
.product-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 9px; margin-bottom: 20px; font-size: .86rem; }
.product-breadcrumb .icon { width: 13px; height: 13px; color: #7c9b8b; }
.product-breadcrumb [aria-current] { color: #e0ebe5; }
.storefront .product-detail .detail-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(20px, 3.3vw, 46px); }
.detail-visual, .detail-purchase { display: grid; gap: 18px; min-width: 0; }
.detail-artwork {
    padding: 6px;
    background: #18241e;
    border: 1px solid #34483d;
    border-radius: 20px;
    box-shadow: 0 18px 44px #0004;
}
.detail-artwork .detail-art { border-radius: 14px; }
.detail-heading { padding: 5px 0 4px; min-width: 0; overflow-wrap: anywhere; }
.storefront .detail-heading h1 { font-size: clamp(2rem, 4.25vw, 3.8rem); line-height: 1.03; text-wrap: balance; }
.storefront .detail-heading p { max-width: 46ch; font-size: 1rem; margin: .2rem 0 0; }
.redeem-panel {
    display: flex;
    align-items: start;
    gap: 15px;
    padding: 19px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #111a16;
}
.storefront .redeem-panel h2 { font-size: 1.15rem; margin: 0 0 .42rem; }
.storefront .redeem-panel p { margin: 0; font-size: .91rem; }
.purchase-panel {
    display: grid;
    gap: 10px;
    padding: clamp(15px, 2.35vw, 24px);
    border: 1px solid #344d3e;
    border-radius: 19px;
    background: linear-gradient(140deg, #1a2b21 0, #131d18 52%);
}
.storefront .purchase-panel h2 { font-size: 1.15rem; margin-bottom: 3px; }
.purchase-option { min-width: 0; border: 1px solid #304438; border-radius: 12px; background: #131e18; }
.purchase-option[open], article.purchase-option { border-color: #527360; }
.purchase-option-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 15px;
    min-width: 0;
}
summary.purchase-option-head { cursor: pointer; list-style: none; }
summary.purchase-option-head::-webkit-details-marker { display: none; }
summary.purchase-option-head:hover { background: #1d2e24; border-radius: 12px; }
summary.purchase-option-head > .icon { width: 16px; height: 16px; color: #9fbcad; transform: rotate(90deg); }
.purchase-option[open] summary > .icon { transform: rotate(-90deg); }
.option-name { display: flex; flex-direction: column; align-items: start; gap: 4px; min-width: 0; flex: 1; overflow-wrap: anywhere; }
.option-name > strong { font-size: 1.02rem; }
.option-amount { text-align: right; color: var(--accent); line-height: 1.1; }
.option-amount strong { font-size: clamp(1.35rem, 2.55vw, 2.15rem); font-weight: 800; letter-spacing: -.04em; }
.option-amount small { font-size: .71rem; font-weight: 800; letter-spacing: .03em; }
.purchase-option-body { padding: 0 15px 15px; }
.option-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin: 0;
    border-top: 1px solid #2d4335;
    padding-top: 12px;
}
.option-facts dt { color: #a8beb1; font-size: .76rem; font-weight: 750; }
.option-facts dd { margin: 2px 0 0; font-size: .84rem; overflow-wrap: anywhere; }
.purchase-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 15px; }
.purchase-actions .button { width: 100%; padding-inline: .45rem; font-size: .88rem; }
.purchase-actions .icon { width: 16px; height: 16px; }
.detail-help { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: .86rem; }
.detail-help > .icon { color: var(--accent); margin-right: 2px; }
.detail-help strong { color: var(--ink); display: inline-flex; align-items: center; }
.detail-help strong .icon { width: 15px; height: 15px; }
.detail-help:hover strong { color: var(--accent); }
.invoice-download {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 12px;
    border: 1px solid #344d3e;
    border-radius: 10px;
    background: #14251c;
}
.invoice-download small { display: block; margin-top: 2px; }
.invoice-download .button { padding-inline: .65rem; font-size: .84rem; }

.review-section { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 24px; }
.review-section .section-head { margin-bottom: 12px; }
.review-average { color: var(--muted); font-size: .9rem; }
.review-average strong, .review-stars { color: #ffcf80; }
.steam-review-summary, .review-empty {
    padding: 15px 16px;
    border: 1px solid #2d443a;
    border-radius: 11px;
    background: #15201b;
}
.steam-review-summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 12px; }
.steam-review-summary small { display: block; margin-top: 2px; }
.steam-review-summary .text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: .85rem; gap: 4px; }
.steam-review-summary .icon { width: 15px; height: 15px; }
.review-empty h3 { font-size: 1rem; }
.storefront .review-empty p { margin-top: 5px; font-size: .87rem; }
.review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.customer-review { display: grid; align-content: start; gap: 9px; min-width: 0; }
.review-card-heading, .review-byline { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; }
.review-stars { font-size: 1rem; letter-spacing: .09em; }
.review-stars span, .review-card-heading time { color: var(--muted); }
.review-card-heading time, .review-byline small { font-size: .75rem; }
.storefront .customer-review p { margin: 0; }
.review-byline { border-top: 1px solid var(--line); padding-top: 8px; }
.review-byline strong { overflow-wrap: anywhere; }
.review-order-form, .review-order-status { margin-top: 12px; }

.order-history-access { max-width: 580px; }
.storefront .order-history-access h1 { font-size: clamp(1.8rem, 5vw, 2.65rem); }
.order-history-access form > .button { justify-self: start; }
.order-history-access p, .order-history > .section-head p { overflow-wrap: anywhere; }
.order-history { max-width: 1120px; margin-inline: auto; display: grid; gap: 20px; }
.order-history > .section-head { margin-bottom: 0; }
.order-history > .section-head p { margin-top: 6px; }
.history-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.25fr);
    gap: 12px;
    margin: 0;
}
.history-metric {
    display: grid;
    align-content: start;
    gap: 5px;
    min-width: 0;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}
.history-metric dt { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .875rem; }
.history-metric dt .icon { width: 16px; height: 16px; color: var(--accent); }
.history-metric dd { margin: 0; }
.history-metric-value, .history-tier-value { font-size: clamp(1.25rem, 2.8vw, 1.75rem); font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.history-metric-value small { font-size: .72rem; }
.history-metric-value, .history-order-total { font-variant-numeric: tabular-nums; }
.history-tier { background: linear-gradient(110deg, #2c2417, var(--surface)); border-color: #57472b; }
.history-tier dt .icon, .history-stars { color: #ffd684; }
.history-tier-value { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; }
.history-stars { font-size: .88rem; letter-spacing: .1em; white-space: nowrap; }
.history-stars span { color: #ad966d; }
.history-table-panel { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.history-table { width: 100%; border-spacing: 0; font-size: .9rem; }
.history-table th, .history-table td { padding: 14px clamp(10px, 1.5vw, 18px); text-align: left; vertical-align: middle; }
.history-table thead th { background: #18241e; color: var(--muted); font-size: .8rem; font-weight: 750; }
.history-table thead th:first-child { border-top-left-radius: 11px; }
.history-table thead th:last-child { border-top-right-radius: 11px; }
.history-table tbody :is(th, td) { border-top: 1px solid var(--line); }
.history-table tbody tr:focus-within { background: #18241e; }
.history-table th:nth-child(n+4), .history-table td:nth-child(n+4) { text-align: right; }
.history-order-id strong, .history-order-id time, .history-item-meta { display: block; }
.history-order-id strong { font-size: .84rem; font-weight: 800; letter-spacing: .01em; }
.history-order-id time, .history-item-meta, .history-secondary { color: var(--muted); font-size: .8rem; font-weight: 500; }
.history-items { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; overflow-wrap: anywhere; }
.history-items li { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 10px; }
.storefront .history-items .history-thumbnail { width: 42px; height: 42px; aspect-ratio: 1; border-radius: 8px; border: 1px solid var(--line); object-fit: cover; }
.storefront .history-items .history-thumbnail img { width: 68%; height: auto; }
.history-thumbnail.art-placeholder { display: grid; place-items: center; background: #17251e; color: var(--accent); }
.history-order-total strong, .history-order-id, .history-invoice { white-space: nowrap; }
.history-status { display: inline-block; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: .75rem; font-weight: 750; }
.history-status-success { background: #163126; border-color: #305c47; color: #a2ebc4; }
.history-status-attention { background: #302619; border-color: #654e32; color: #ffdb9c; }
.history-invoice { font-size: .8rem; padding-inline: .75rem; }
.history-invoice span { color: var(--accent); font-size: 1rem; }
.history-mobile-label { display: none; }
.history-private-link { border-top: 1px solid var(--line); padding-top: 12px; }
.history-orders-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; scroll-margin-top: 18px; }
.history-orders-heading p { font-size: .83rem; }
.history-pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 7px; }
.history-page-link, .history-page-current { display: grid; min-width: 40px; min-height: 44px; place-items: center; border: 1px solid var(--line); border-radius: 8px; font-weight: 750; }
.history-page-link:hover { border-color: var(--accent); color: var(--accent); }
.history-page-current { background: var(--accent); color: #0b2116; border-color: transparent; }
.history-api-balance { display: grid; gap: 16px; }
.history-api-heading { display: flex; align-items: center; gap: 12px; }
.history-api-heading p { margin-top: 4px; font-size: .88rem; }
.history-api-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #304e3e; border-radius: 12px; color: var(--accent); background: #1a2c22; }
.history-api-icon .icon { width: 20px; height: 20px; }
.history-api-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.history-api-card { min-width: 0; display: grid; gap: 12px; padding: clamp(14px, 2vw, 18px); border: 1px solid var(--line); border-radius: 12px; background: #111c17; }
.history-api-wallet { background: linear-gradient(130deg, #192f23, #131f19 76%); border-color: #30483b; }
.history-api-available, .history-api-totals { margin: 0; }
.history-api-available dt, .history-api-totals dt { color: var(--muted); font-size: .84rem; }
.history-api-available dd { margin: 3px 0 0; color: var(--accent); font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.05; letter-spacing: -.045em; font-weight: 800; overflow-wrap: anywhere; }
.history-api-available small { color: #b6d1c0; font-size: .75rem; letter-spacing: 0; }
.history-api-totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 11px 0 0; border-top: 1px solid #32483b; }
.history-api-totals dd { margin: 3px 0 0; font-weight: 750; overflow-wrap: anywhere; }
.history-api-due dd { color: #ffdb9c; }
.history-api-paid { display: flex; align-items: center; gap: 8px; color: #a8e9c4; font-size: .84rem; font-weight: 700; }
.history-api-paid::before { content: ""; background: #7be4aa; width: 7px; height: 7px; border-radius: 50%; }
.history-api-payment { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 14px; }
.history-api-payment p { color: #ffdb9c; font-size: .85rem; }
.history-api-action summary { width: fit-content; }
.history-api-action summary .icon, .history-api-log summary .icon { width: 15px; height: 15px; }
.history-api-action[open] > summary .icon, .history-api-log[open] > summary .icon { transform: rotate(90deg); }
.history-api-action summary::-webkit-details-marker, .history-api-log summary::-webkit-details-marker { display: none; }
.history-api-action > p { margin-top: 8px; }
.history-api-action .form-grid > label:only-child { grid-column: 1 / -1; }
.history-api-balance form > .button { justify-self: start; }
.history-api-products h3 { display: flex; align-items: center; gap: 8px; font-size: 1.08rem; }
.history-api-products h3 .icon { color: var(--accent); }
.history-api-empty { font-size: .9rem; max-width: 37ch; }
.history-api-product { display: grid; gap: 7px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #14221a; min-width: 0; }
.history-api-product .section-head { margin: 0; gap: 6px 10px; }
.history-api-product h4 { margin: 0; overflow-wrap: anywhere; }
.history-api-product p, .history-api-product summary { font-size: .85rem; }
.history-api-products .delivery { margin-bottom: 0; }
.history-api-logs { border: 1px solid var(--line); border-radius: 10px; background: #101915; }
.history-api-log + .history-api-log { border-top: 1px solid var(--line); }
.history-api-log { padding-inline: 13px; }
.history-api-log > summary { display: flex; align-items: center; gap: 10px; cursor: pointer; min-height: 46px; font-size: .88rem; font-weight: 750; }
.history-api-log > summary:hover { color: var(--accent); }
.history-api-log > summary span:first-child { flex: 1; }
.history-api-log > summary strong, .history-api-log > summary .icon { color: var(--muted); flex: none; }
.history-api-log > nav { padding-block: 8px 12px; }
.history-api-activity { margin: 0; padding: 0; list-style: none; }
.history-api-activity li { display: flex; justify-content: space-between; gap: 12px; padding-block: 10px; border-top: 1px solid var(--line); }
.history-api-activity li small { display: block; overflow-wrap: anywhere; }
.history-repaid-amount { text-align: right; }

@media (max-width: 820px) {
    .history-api-grid { grid-template-columns: minmax(0, 1fr); }
    .history-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .history-metric { padding: 12px; }
    .history-tier { grid-column: 1 / -1; }
    .history-table, .history-table tbody { display: block; }
    .history-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .history-table tbody tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "order status" "items items" "total actions";
        align-items: center;
        gap: 12px;
        padding: 14px 12px;
    }
    .history-table tbody tr + tr { border-top: 1px solid var(--line); }
    .history-table tbody :is(th, td) { padding: 0; border: 0; }
    .history-order-id { grid-area: order; white-space: normal; overflow-wrap: anywhere; }
    .history-order-status { grid-area: status; justify-self: end; }
    .history-order-items { grid-area: items; }
    .history-order-id strong { font-size: .78rem; }
    .history-order-total { grid-area: total; justify-self: start; }
    .history-order-actions { grid-area: actions; }
    .history-mobile-label { display: block; color: var(--muted); font-size: .75rem; text-align: left; }
}

@media (max-width: 1100px) {
    .storefront .main-nav a { padding-inline: .43rem; }
    .storefront .main-nav .shop-nav-links .icon { display: none; }
    .home-shelf .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .store-hero .hero-copy h1 { font-size: clamp(2.6rem, 6.4vw, 4rem); }
    .category-explorer { grid-template-columns: minmax(220px, 1fr) minmax(0, 1.6fr); }
    .category-directory { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .category-tile { grid-template-columns: auto minmax(0, 1fr); }
    .category-tile > .icon { display: none; }
}
@media (701px <= width <= 800px) {
    .storefront .main-nav a { font-size: .78rem; padding-inline: .35rem; }
    .storefront .main-nav .nav-help span:not(.icon) { display: none; }
}
@media (max-width: 700px) {
    .storefront .header-inner { min-height: 0; gap: 9px 12px; }
    .storefront .header-inner .catalog-search { max-width: none; }
    .storefront .catalog-search .button { min-height: 44px; }
    .storefront .header-actions { gap: 10px; }
    .storefront .main-nav { min-height: 44px; gap: 4px; }
    .shop-nav-links { flex: 1; gap: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
    .storefront .main-nav a { flex: none; padding: .3rem .6rem; font-size: .84rem; }
    .shop-nav-links a:focus-visible { outline-offset: -3px; }
    .shop-nav-links .icon, .storefront .main-nav .nav-help span:not(.icon) { display: none; }
    .storefront .main-nav .nav-help { min-width: 44px; padding-inline: 0; border-left: 1px solid var(--line); }
    .purchase-header :is(.catalog-search, .shop-nav-bar) { display: none; }
    .storefront .store-hero { min-height: 0; border-radius: 19px; }
    .store-hero .hero-image { width: 72%; height: 100%; object-position: 62% center; }
    .storefront .store-hero::after {
        background: linear-gradient(90deg, #102019 26%, #102019e8 43%, #10201933 100%),
            linear-gradient(0deg, #102019 5%, transparent 95%);
    }
    .store-hero .hero-copy { padding: clamp(20px, 5.5vw, 38px) clamp(17px, 4.5vw, 30px); }
    .store-hero .hero-copy h1 { font-size: clamp(2.2rem, 9vw, 3.65rem); }
    .store-hero .hero-copy p { margin: 12px 0 17px; font-size: .94rem; }
    .store-hero .inline-actions { gap: 8px; }
    .store-hero .button-outline { background: #1b2e23; }
    .storefront .features > * { flex-direction: column; font-size: .73rem; line-height: 1.3; text-align: center; gap: 5px; min-height: 74px; padding: 8px 4px; }
    .storefront .features .icon { width: 17px; height: 17px; }
    .category-explorer { grid-template-columns: minmax(0, 1fr); }
    .category-spotlight { min-height: 146px; }
    .category-tile { min-height: 63px; }
    .store-update p > span { display: none; }
    .review-grid { grid-template-columns: minmax(0, 1fr); }
    .home-shelf .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
    .storefront .home-shelf .section-head { gap: 0 6px; }
    .storefront .section-link { font-size: .82rem; }
    .storefront .product-info { padding: 11px; }
    .storefront .product-info h3, .storefront .product-foot { overflow-wrap: anywhere; }
    .storefront .product-foot { gap: 5px; }
    .storefront .product-foot .icon { width: 15px; height: 15px; }
    .catalog-filter-toggle.button:not([hidden]) { display: inline-flex; margin: 14px 0; }
    .catalog-filter-toggle[aria-expanded="false"]:not([hidden]) + .filter-bar { display: none; }
    .catalog-filter-toggle .icon { width: 16px; height: 16px; transform: rotate(90deg); }
    .catalog-filter-toggle[aria-expanded="true"] .icon { transform: rotate(-90deg); }
    .filter-bar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; margin: 0 0 16px; }
    .filter-bar > label { min-width: 0; }
    .filter-bar > .button { grid-column: 1 / -1; }
    .listing .section-head h2 { margin-bottom: 0; }
    .storefront .product-detail .detail-grid { display: flex; flex-direction: column; align-items: stretch; gap: 15px; }
    .detail-visual, .detail-purchase { display: contents; }
    .detail-heading { order: -4; padding-top: 0; }
    .storefront .detail-notice { order: -3; margin: 0; }
    .detail-artwork { order: -2; }
    .purchase-panel { order: -1; }
    .detail-has-stock .purchase-panel:not(.supplier-pricing) { order: -2; }
    .detail-has-stock .detail-artwork { order: -1; }
    .detail-artwork .detail-art { max-height: clamp(175px, 50vw, 270px); }
    .detail-help { min-height: 44px; }
    .storefront .product-breadcrumb { gap: 2px 6px; margin-bottom: 8px; overflow-wrap: anywhere; }
    .product-breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
    .storefront .product-detail { margin-top: 12px; }
    .detail-heading p { line-height: 1.45; }
    .purchase-option-head { padding-inline: 12px; }
    .purchase-option-body { padding: 0 12px 12px; }
    .storefront :is(.filter-bar select, .cart-actions input, .stack input:not([type="checkbox"]), .stack select, .stack textarea) { font-size: 1rem; min-width: 0; }
    .storefront .commerce-page { margin-block: 20px 32px; }
    .storefront .commerce-grid { gap: 14px; }
    .storefront .commerce-page .button-primary { min-height: 48px; }
    .summary-line > span { overflow-wrap: anywhere; }
    .order-panel .summary-line { flex-wrap: wrap; gap: 4px 12px; }
    .cart-line { grid-template-areas: "art info" "art price" "actions actions"; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; }
    .cart-art { width: 68px; }
    .cart-actions { gap: 8px; }
    .checkout-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
    .checkout-steps li { gap: 6px; font-size: .85rem; }
    .checkout-steps span { flex: none; width: 25px; height: 25px; }
    .checkout-total { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
    .checkout-total strong { color: var(--accent); }
    .checkout-page .checkbox { border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
    .checkout-page .checkbox input { flex: none; width: 20px; height: 20px; margin: .1rem 0 0; }
    .checkout-page .stack > .text-link { display: flex; align-items: center; justify-content: center; min-height: 44px; }
    .payment-grid { grid-template-areas: "details" "qr"; grid-template-columns: minmax(0, 1fr); }
    .payment-grid .qr { width: 142px; }
    .payment-copy-row { display: flex; justify-content: space-between; align-items: center; gap: 5px 10px; }
    .payment-copy-row code { min-width: 0; user-select: all; }
    .payment-copy-row .button { flex: none; min-height: 44px; background: #1a2a22; }
    .storefront .footer-inner nav { gap: 0 18px; }
    .storefront .footer-inner nav a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 365px) {
    .storefront .header-actions { gap: 6px; }
    .storefront .header-inner .brand { width: 125px; }
    .storefront .track-link { font-size: .78rem; }
    .filter-bar { grid-template-columns: minmax(0, 1fr); }
    .option-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 435px) {
    .category-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-directory .category-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .category-tile .category-icon { width: 30px; height: 30px; }
    .home-shelf .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.marketfront { margin-top: clamp(16px, 2.5vw, 28px); }
.marketfront.with-shortcuts { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(230px, 1fr); gap: 12px; }
.storefront .marketfront .market-hero { margin: 0; min-height: 340px; }
.market-hero .hero-copy { padding-inline: clamp(24px, 4vw, 60px); }
.market-hero .hero-copy p { max-width: 350px; }
.market-shortcuts { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 10px; }
.market-shortcut {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    overflow: hidden;
    padding: 15px;
    border: 1px solid #3b5548;
    border-radius: 13px;
    background: #1b3026;
}
.market-shortcut.gift-cards { background: #352b23; border-color: #5b4635; }
.market-shortcut.subscriptions { background: #29253d; border-color: #504461; }
.market-shortcut::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #121d17 17%, #121d17e5 46%, #121d1729); }
.market-shortcut-art { position: absolute; height: 100%; width: 62%; inset: 0 0 0 auto; object-fit: cover; z-index: -2; opacity: .78; }
.market-shortcut > span { display: grid; gap: 6px; }
.market-shortcut strong { font-size: clamp(.96rem, 1.35vw, 1.21rem); }
.market-shortcut .icon { color: #b5e7c9; width: 17px; height: 17px; }
.market-shortcut:hover { border-color: var(--accent); }
.platform-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 12px;
    border: 1px solid #2a3e34;
    border-radius: 10px;
    background: #131e19;
}
.platform-links > span { margin-right: 6px; color: var(--muted); font-size: .81rem; }
.platform-links a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 .7rem; font-size: .84rem; font-weight: 800; background: #203128; border: 1px solid #32483c; border-radius: 7px; }
.platform-links a:hover { border-color: var(--accent); color: var(--accent); }
.shelf-actions { display: flex; align-items: center; gap: 7px; }
.shelf-actions > .button { min-height: 34px; padding: 0 6px; width: 34px; }
.shelf-actions > .button:disabled { opacity: .38; cursor: default; }
.shelf-previous .icon { transform: rotate(180deg); }
.storefront .supplier-shelf .shelf-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 48px) / 5);
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 4px 2px 8px;
}
.storefront .supplier-shelf .shelf-track::-webkit-scrollbar { display: none; }
.supplier-shelf .shelf-track .product-card { scroll-snap-align: start; align-self: stretch; }
.storefront img.product-art.supplier-art { aspect-ratio: 10 / 7; object-fit: cover; }
.storefront .supplier-shelf .shelf-track .product-info h3 { min-height: 2.6em; }
.catalog-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.policy-sheet { max-width: 760px; }
.policy-section { display: grid; gap: .65rem; padding-top: .9rem; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.policy-section h2 { font-size: 1.22rem; }
.policy-section ul { margin: 0; padding-left: 1.25rem; color: var(--muted); }
.policy-sheet > .notice strong { color: var(--ink); }

@media (max-width: 960px) {
    .marketfront.with-shortcuts { grid-template-columns: minmax(0, 1.7fr) minmax(191px, 1fr); }
    .storefront .supplier-shelf .shelf-track { grid-auto-columns: calc((100% - 36px) / 4); }
}
@media (max-width: 700px) {
    .marketfront.with-shortcuts { display: flex; flex-direction: column; gap: 9px; }
    .storefront .marketfront .market-hero { min-height: 0; }
    .market-shortcuts { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto; gap: 6px; }
    .market-shortcut { min-height: 75px; padding: 8px; }
    .market-shortcut strong { font-size: .78rem; line-height: 1.17; }
    .market-shortcut > .icon { display: none; }
    .market-shortcut-art { width: 80%; }
    .platform-links > span { flex-basis: 100%; }
    .platform-links a { min-height: 44px; }
    .shelf-actions > .button { width: 44px; min-height: 44px; }
    .storefront .supplier-shelf .shelf-track { grid-auto-columns: calc((100% - 24px) / 3); }
    .shelf-actions .section-link { font-size: .77rem; }
}
@media (max-width: 475px) {
    .storefront .supplier-shelf .shelf-track { grid-auto-columns: calc((100% - 24px) / 2); gap: 9px; }
}
