/* ShopAccount · GC MMO-inspired public theme
   Code-native UI, UTF-8 Vietnamese, accessible responsive layout. */

body.marketplace-surface {
    --cw-brand: #ff5154;
    --cw-brand-hover: #ed3e44;
    --cw-brand-pressed: #d63239;
    --cw-brand-soft: #fff0f1;
    --cw-brand-border: #ffb9bc;
    --cw-ink: #191a1d;
    --cw-muted: #6f7785;
    --cw-line: #e7e9ee;
    --cw-line-strong: #d8dce3;
    --cw-surface: #ffffff;
    --cw-subtle: #f7f8fa;
    --market-max: 1440px;
    background: #ffffff;
    color: var(--cw-ink);
    font-family: Inter, "Be Vietnam Pro", "Segoe UI Variable Text", "Segoe UI", sans-serif;
}

body.marketplace-surface :is(button, input, select, textarea) {
    font-family: inherit;
}

.marketplace-surface :is(h1, h2, h3, .market-brand b) {
    font-family: Inter, "Be Vietnam Pro", "Segoe UI Variable Display", "Segoe UI", sans-serif;
}

.marketplace-surface .market-container {
    width: min(calc(100% - 48px), var(--market-max));
}

/* Announcement + header */
.marketplace-surface .market-announcement-strip {
    min-height: 32px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid #eceef2;
    background: #ffffff;
    color: #68707d;
    font-size: 11px;
    font-weight: 650;
    white-space: nowrap;
}

.marketplace-surface .market-announcement-strip > .market-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-width: max-content;
}

.marketplace-surface .market-announcement-strip strong {
    padding: 5px 10px;
    border-radius: 7px;
    background: var(--cw-brand);
    color: #fff;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .025em;
}

.marketplace-surface .market-announcement-strip i {
    width: 1px;
    height: 15px;
    background: #dfe2e8;
}

.marketplace-surface .market-header {
    position: sticky;
    top: 0;
    z-index: 80;
    border-bottom: 1px solid #e8eaf0;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 8px 24px rgba(20, 24, 34, .045);
    backdrop-filter: blur(16px);
}

.marketplace-surface .market-header-main {
    min-height: 72px;
    grid-template-columns: auto minmax(280px, 410px) minmax(320px, 1fr) auto;
    gap: 12px;
}

.marketplace-surface .market-brand {
    min-width: max-content;
    gap: 9px;
    color: var(--cw-ink);
}

.marketplace-surface .market-brand > .market-brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid #ffd0d2;
    border-radius: 11px;
    background: linear-gradient(145deg, #ff5d60, #f3454a);
    color: #fff;
    box-shadow: 0 8px 18px rgba(255, 81, 84, .2);
    transform: none;
}

.marketplace-surface .market-brand-mark .ui-icon {
    width: 20px;
    height: 20px;
    stroke-width: 1.9;
}

.marketplace-surface .market-brand b {
    color: var(--cw-ink);
    font-size: 20px;
    font-weight: 820;
    letter-spacing: -.035em;
}

.marketplace-surface .market-brand small {
    display: none;
}

.marketplace-surface .market-search {
    height: 42px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 9px;
    border: 1px solid #dfe2e8;
    border-radius: 10px;
    background: #fff;
    padding: 0 13px;
    box-shadow: none;
}

.marketplace-surface .market-search:focus-within {
    border-color: var(--cw-brand);
    box-shadow: 0 0 0 3px rgba(255, 81, 84, .11);
}

.marketplace-surface .market-search .ui-icon {
    width: 17px;
    color: #8a92a0;
}

.marketplace-surface .market-search input[type="search"] {
    min-height: 40px;
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
    color: var(--cw-ink);
    font-size: 13px;
}

.marketplace-surface .market-search input[type="search"]:focus {
    border: 0;
    box-shadow: none;
}

.marketplace-surface .market-search button {
    display: none;
}

.marketplace-surface .market-navigation,
.marketplace-surface .market-navigation-inner {
    min-width: 0;
}

.marketplace-surface .market-primary-nav {
    justify-content: center;
    gap: 4px;
}

.marketplace-surface .market-primary-nav a {
    min-height: 72px;
    display: inline-flex;
    align-items: center;
    border-bottom: 2px solid transparent;
    padding: 0 14px;
    color: #292c31;
    font-size: 13px;
    font-weight: 730;
}

.marketplace-surface .market-primary-nav a:hover,
.marketplace-surface .market-primary-nav a.active {
    border-bottom-color: var(--cw-brand);
    background: transparent;
    color: var(--cw-brand-hover);
}

.marketplace-surface .market-actions {
    gap: 8px;
}

.marketplace-surface .market-wallet-shortcut,
.marketplace-surface .market-login,
.marketplace-surface .market-register {
    min-height: 38px;
    border-radius: 9px;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 780;
}

.marketplace-surface .market-wallet-shortcut {
    border: 1px solid #dfe2e8;
    background: #fff;
    color: #34383f;
}

.marketplace-surface .market-wallet-shortcut:hover {
    border-color: var(--cw-brand-border);
    background: var(--cw-brand-soft);
    color: var(--cw-brand-hover);
}

.marketplace-surface .market-login {
    border: 1px solid transparent;
    color: #30343a;
}

.marketplace-surface .market-register {
    border: 1px solid var(--cw-brand);
    background: var(--cw-brand);
    color: #fff;
    box-shadow: 0 8px 18px rgba(255, 81, 84, .18);
}

.marketplace-surface .market-register:hover {
    border-color: var(--cw-brand-hover);
    background: var(--cw-brand-hover);
}

.marketplace-surface .market-action-link,
.marketplace-surface .market-account {
    border-color: #e1e4e9;
    border-radius: 10px;
    background: #fff;
}

.marketplace-surface .market-account-avatar {
    background: #f1f2f5;
    color: #373b42;
}

/* Live offer strip */
.marketplace-surface .storefront-flash-strip {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 90;
    width: 100%;
    min-height: 34px;
    display: flex;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    border-top: 1px solid #e6e8ed;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 -6px 20px rgba(22, 26, 36, .05);
    backdrop-filter: blur(10px);
}

.marketplace-surface .storefront-flash-strip a {
    min-width: max-content;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-right: 1px solid #eceef2;
    border-radius: 0;
    background: transparent;
    padding: 0 18px;
    color: #5e6571;
    font-size: 10px;
}

.marketplace-surface .storefront-flash-strip a > span,
.marketplace-surface .storefront-flash-strip a > b {
    color: var(--cw-brand);
}

.marketplace-surface .storefront-flash-strip a > small {
    color: #5e6571;
}

/* Homepage */
.marketplace-surface .market-home {
    background: #fff;
}

.marketplace-surface .market-home-hero {
    min-height: 0;
    border-bottom: 0;
    background: #fff;
    padding: 26px 0 18px;
}

.marketplace-surface .market-home-hero > .market-container {
    min-height: 456px;
    grid-template-columns: minmax(0, 1.12fr) minmax(500px, 1fr);
    align-items: center;
    gap: 36px;
    padding-top: 0;
    padding-bottom: 0;
}

.marketplace-surface .market-home-copy {
    max-width: 760px;
}

.marketplace-surface .market-home-eyebrow {
    margin: 0 0 12px;
    color: var(--cw-brand);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .16em;
}

.marketplace-surface .market-home-copy h1 {
    margin: 0;
    color: #1b1c20;
    font-size: clamp(42px, 3.15vw, 51px);
    font-weight: 860;
    line-height: .99;
    letter-spacing: -.055em;
}

.marketplace-surface .market-home-copy h1 em {
    display: block;
    color: #1b1c20;
    font-style: normal;
    white-space: nowrap;
}

.marketplace-surface .market-home-copy > p:not(.market-home-eyebrow) {
    max-width: 550px;
    margin: 20px 0 0;
    color: #727987;
    font-size: 16px;
    line-height: 1.72;
}

.marketplace-surface .market-home-actions {
    margin-top: 24px;
    gap: 10px;
}

.marketplace-surface .market-home-actions a {
    min-height: 46px;
    border-radius: 9px;
    padding: 0 24px;
    font-size: 13px;
    font-weight: 800;
}

.marketplace-surface .market-home-actions .mock-primary {
    border-color: var(--cw-brand);
    background: var(--cw-brand);
    box-shadow: 0 12px 24px rgba(255, 81, 84, .2);
}

.marketplace-surface .market-home-actions .mock-primary:hover {
    border-color: var(--cw-brand-hover);
    background: var(--cw-brand-hover);
}

.marketplace-surface .market-home-actions .mock-secondary {
    border-color: #dfe2e8;
    background: #fff;
    color: #25282d;
}

.marketplace-surface .market-home-methods {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
    padding: 0;
    border: 0;
}

.marketplace-surface .market-home-methods > span {
    min-width: 0;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 9px;
    row-gap: 1px;
    align-items: center;
    padding: 0;
    color: #34383f;
}

.marketplace-surface .market-home-methods .ui-icon {
    grid-row: 1 / span 2;
    width: 28px;
    height: 28px;
    padding: 6px;
    border: 1px solid #e3e6eb;
    border-radius: 9px;
    color: #555c67;
}

.marketplace-surface .market-home-methods b {
    overflow: hidden;
    font-size: 12px;
    font-weight: 780;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.marketplace-surface .market-home-methods small {
    overflow: hidden;
    color: #8b929e;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.marketplace-surface .market-home-showcase {
    min-height: auto;
    display: grid;
    place-items: center;
    border: 0;
    background: #fff;
    box-shadow: none;
    overflow: visible;
}

.marketplace-surface .market-home-showcase::before,
.marketplace-surface .market-home-showcase::after {
    display: none;
}

.marketplace-surface .market-home-showcase > img {
    width: min(100%, 680px);
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 26px 30px rgba(24, 29, 40, .08));
}

.marketplace-surface .market-home-assurance {
    min-height: 82px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    margin-bottom: 38px;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(27, 31, 42, .07);
}

.marketplace-surface .market-home-assurance > span {
    min-width: 0;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-content: center;
    gap: 2px 10px;
    padding: 16px 22px;
    border-left: 1px solid #e8eaef;
}

.marketplace-surface .market-home-assurance > span:first-child {
    border-left: 0;
}

.marketplace-surface .market-home-assurance .ui-icon {
    grid-row: 1 / span 2;
    width: 24px;
    height: 24px;
    align-self: center;
    color: #34383f;
}

.marketplace-surface .market-home-assurance b {
    color: #26292e;
    font-size: 12px;
    font-weight: 780;
}

.marketplace-surface .market-home-assurance small {
    overflow: hidden;
    color: #858c98;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.marketplace-surface .market-home-products {
    padding-top: 0;
    padding-bottom: 72px;
}

.marketplace-surface .market-home-products > header {
    align-items: end;
    margin-bottom: 20px;
}

.marketplace-surface .market-home-products > header h2 {
    margin: 0;
    color: #202126;
    font-size: 28px;
    font-weight: 840;
    letter-spacing: -.035em;
}

.marketplace-surface .market-home-products > header > div > p {
    display: none;
}

.marketplace-surface .market-home-products > header > a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e1e4e9;
    border-radius: 9px;
    padding: 0 14px;
    background: #fff;
    color: #34383f;
    font-size: 11px;
    font-weight: 760;
}

.marketplace-surface .market-home-product-tabs {
    display: flex;
    gap: 24px;
    margin-top: 12px;
}

.marketplace-surface .market-home-product-tabs a {
    padding-bottom: 8px;
    border-bottom: 2px solid transparent;
    color: #7c838f;
    font-size: 11px;
    font-weight: 710;
}

.marketplace-surface .market-home-product-tabs a:hover,
.marketplace-surface .market-home-product-tabs a.active {
    border-bottom-color: var(--cw-brand);
    color: var(--cw-brand);
}

.marketplace-surface .market-home-products .shop-product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.marketplace-surface .market-home-products .shop-product-card {
    min-width: 0;
    border-color: #e1e4e9;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(28, 32, 43, .055);
    transition: border-color .18s ease, box-shadow .2s ease, transform .2s ease;
}

.marketplace-surface .market-home-products .shop-product-card:hover {
    border-color: rgba(255, 81, 84, .46);
    box-shadow: 0 16px 34px rgba(28, 32, 43, .11);
    transform: translateY(-4px);
}

.marketplace-surface .market-home-products .shop-product-art {
    min-height: 158px;
    aspect-ratio: 1.45;
    border-radius: 10px 10px 0 0;
    background: #f2f5f8;
}

.marketplace-surface .market-home-products .shop-product-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.marketplace-surface .market-home-products .shop-product-art > span {
    color: var(--cw-brand);
    font-size: 52px;
}

.marketplace-surface .market-home-products .shop-product-art > small {
    left: 10px;
    bottom: 10px;
    border-radius: 6px;
    font-size: 9px;
}

.marketplace-surface .market-home-products .shop-product-copy {
    padding: 14px;
}

.marketplace-surface .market-home-products .product-rating {
    font-size: 10px;
}

.marketplace-surface .market-home-products .product-rating > span {
    color: #f39a16;
}

.marketplace-surface .market-home-products .shop-product-copy h2 {
    min-height: 40px;
    margin: 8px 0 4px;
    font-size: 14px;
    line-height: 1.4;
}

.marketplace-surface .market-home-products .shop-product-copy > p {
    display: none;
}

.marketplace-surface .market-home-products .shop-price {
    margin-top: 10px;
}

.marketplace-surface .market-home-products .shop-price small {
    display: none;
}

.marketplace-surface .market-home-products .shop-price strong {
    color: var(--cw-brand);
    font-size: 18px;
}

.marketplace-surface .market-home-products .product-card-actions {
    justify-content: flex-end;
    margin-top: 9px;
}

.marketplace-surface .market-home-products .product-card-actions > a:first-child {
    display: none;
}

.marketplace-surface .market-home-products .product-card-actions .buy {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    border: 1px solid var(--cw-brand);
    border-radius: 10px;
    background: #fff;
    color: var(--cw-brand);
    padding: 0;
    box-shadow: none;
}

.marketplace-surface .market-home-products .product-card-actions .buy:hover {
    background: var(--cw-brand);
    color: #fff;
}

.marketplace-surface .market-home-products .product-card-actions .buy .ui-icon {
    width: 17px;
}

.marketplace-surface .market-home-products .product-card-actions .buy {
    font-size: 0;
}

.marketplace-surface .market-home-flow {
    border-top: 1px solid #e6e8ed;
    border-bottom: 1px solid #e6e8ed;
    background: #f7f8fa;
}

.marketplace-surface .market-home-flow header h2 {
    color: #202126;
    font-size: 34px;
}

.marketplace-surface .market-home-flow ol {
    border-color: #e0e3e8;
    background: transparent;
    box-shadow: none;
}

.marketplace-surface .market-home-flow li {
    border-color: #e0e3e8;
}

.marketplace-surface .market-home-flow li > span {
    color: var(--cw-brand);
}

/* Catalog refinements */
.marketplace-surface .market-catalog-page {
    --catalog-accent: #ff5154;
    --catalog-accent-hover: #ed3e44;
    --catalog-accent-soft: #fff0f1;
    --catalog-ink: #1d1e22;
    --catalog-copy: #535b68;
    --catalog-muted: #858d99;
    --catalog-line: #e0e3e9;
    background: #fff;
}

.marketplace-surface .market-page-heading {
    padding-top: 38px;
}

.marketplace-surface .market-page-heading h1 {
    color: #1d1e22;
    font-size: 34px;
    font-weight: 840;
}

.marketplace-surface .market-filter-panel,
.marketplace-surface .market-weekly-offer,
.marketplace-surface .market-product-card {
    box-shadow: 0 8px 25px rgba(25, 29, 40, .055);
}

.marketplace-surface .market-filter-panel,
.marketplace-surface .market-product-card {
    border-color: #e0e3e9;
}

.marketplace-surface .market-results-toolbar a,
.marketplace-surface .market-view-switch {
    border-radius: 9px;
}

.marketplace-surface .market-product-card:hover {
    border-color: rgba(255, 81, 84, .5);
}

/* Product detail */
.marketplace-surface .market-product-page {
    --market-accent: #ff5154;
    --market-accent-strong: #ed3e44;
    --market-accent-soft: #fff0f1;
    --market-border: #e0e3e9;
    --market-text: #1c1d21;
    --market-muted: #747c89;
    padding-top: 22px;
}

.marketplace-surface .market-product-primary {
    grid-template-columns: minmax(0, 1.55fr) minmax(330px, .98fr) minmax(304px, .78fr);
    gap: 14px;
    align-items: start;
}

.marketplace-surface :is(.market-product-gallery, .market-product-summary, .market-purchase-panel, .market-product-detail-card, .market-seller-card) {
    border-color: #e0e3e9;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(25, 29, 40, .045);
}

.marketplace-surface .market-gallery-stage {
    border-radius: 9px;
    background: #f2f4f7;
}

.marketplace-surface .market-product-summary {
    padding: 18px;
}

.marketplace-surface .market-product-labels a,
.marketplace-surface .market-product-labels span {
    border-color: #cfeadc;
    background: #eaf8f0;
    color: #168455;
}

.marketplace-surface .market-product-summary h1 {
    margin-top: 12px;
    color: #1c1d21;
    font-size: 26px;
    line-height: 1.12;
}

.marketplace-surface .market-product-reputation span {
    color: #f2a11b;
}

.marketplace-surface .market-product-benefits .ui-icon {
    color: #747c89;
}

.marketplace-surface .market-product-spec-strip {
    border-color: #e4e6eb;
}

.marketplace-surface .market-purchase-panel {
    position: sticky;
    top: 88px;
    overflow: hidden;
}

.marketplace-surface .market-purchase-panel header strong,
.marketplace-surface .market-purchase-total strong {
    color: var(--cw-brand);
}

.marketplace-surface .market-package-options label.active {
    border-color: var(--cw-brand);
    background: #fff7f7;
}

.marketplace-surface .market-package-options input,
.marketplace-surface .market-quantity-row input {
    accent-color: var(--cw-brand);
}

.marketplace-surface .market-buy-now {
    border-color: var(--cw-brand);
    background: var(--cw-brand);
    box-shadow: 0 10px 22px rgba(255, 81, 84, .2);
}

.marketplace-surface .market-buy-now:hover {
    border-color: var(--cw-brand-hover);
    background: var(--cw-brand-hover);
}

.marketplace-surface .market-add-favorite {
    border-color: var(--cw-brand-border);
    background: #fff;
    color: var(--cw-brand);
}

.marketplace-surface .market-add-favorite:hover {
    border-color: var(--cw-brand);
    background: var(--cw-brand-soft);
}

.marketplace-surface .market-product-secondary {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 14px;
}

.marketplace-surface .market-product-tabs button.active {
    border-bottom-color: var(--cw-brand);
    color: var(--cw-brand);
}

.marketplace-surface .market-seller-card > a {
    border-color: var(--cw-brand-border);
    color: var(--cw-brand);
}

.marketplace-surface .market-related-products {
    margin-top: 18px;
    padding-bottom: 32px;
}

.marketplace-surface .market-related-products > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.marketplace-surface .market-related-products > header h2 {
    margin: 0;
    color: #1f2024;
    font-size: 19px;
    font-weight: 820;
}

.marketplace-surface .market-related-products > header a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #6f7785;
    font-size: 11px;
    font-weight: 700;
}

.marketplace-surface .market-related-products > header a:hover {
    color: var(--cw-brand);
}

.marketplace-surface .market-related-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.marketplace-surface .market-related-grid .market-product-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    border-radius: 9px;
    box-shadow: none;
}

.marketplace-surface .market-related-grid .market-product-media {
    min-height: 118px;
    aspect-ratio: auto;
    border-radius: 8px 0 0 8px;
}

.marketplace-surface .market-related-grid .market-product-monogram {
    font-size: 27px;
}

.marketplace-surface .market-related-grid .market-product-media > mark {
    display: none;
}

.marketplace-surface .market-related-grid .market-product-content {
    min-height: 118px;
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.marketplace-surface .market-related-grid :is(.market-product-store, .market-product-content > p, .market-product-facts, .market-product-category) {
    display: none;
}

.marketplace-surface .market-related-grid .market-product-content h2 {
    min-height: 35px;
    margin: 0;
    font-size: 11px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
}

.marketplace-surface .market-related-grid .market-product-price {
    margin-top: auto;
}

.marketplace-surface .market-related-grid .market-product-price strong {
    color: var(--cw-brand);
    font-size: 13px;
}

.marketplace-surface .market-related-grid .market-product-price del {
    display: none;
}

.marketplace-surface .market-related-grid .market-product-content > footer {
    min-height: 20px;
    margin-top: 5px;
    padding: 0;
    border: 0;
}

.marketplace-surface .market-related-grid .market-product-card-stats {
    font-size: 8px;
}

.marketplace-surface .market-related-grid .market-product-content > footer > a {
    display: none;
}

/* Public forms */
.marketplace-surface .auth-shell,
.marketplace-surface .login-showcase {
    background: #fff;
}

.marketplace-surface .auth-card,
.marketplace-surface .login-shell-card {
    border-color: #e0e3e9;
    border-radius: 14px;
    box-shadow: 0 22px 55px rgba(26, 30, 40, .09);
}

.marketplace-surface .auth-aside,
.marketplace-surface .login-promo {
    background:
        radial-gradient(circle at 80% 18%, rgba(255, 81, 84, .14), transparent 28%),
        linear-gradient(145deg, #fff7f7, #ffffff);
    color: #1f2024;
}

.marketplace-surface .login-promo h1,
.marketplace-surface .login-promo h1 em {
    color: #1f2024;
}

.marketplace-surface .promo-brand > span {
    background: var(--cw-brand);
    color: #fff;
}

.marketplace-surface .login-tabs .active {
    border-bottom-color: var(--cw-brand);
    color: var(--cw-brand);
}

.marketplace-surface .login-submit,
.marketplace-surface .auth-card .button {
    border-color: var(--cw-brand);
    background: var(--cw-brand);
}

.marketplace-surface .login-submit:hover,
.marketplace-surface .auth-card .button:hover {
    border-color: var(--cw-brand-hover);
    background: var(--cw-brand-hover);
}

/* Trust + footer */
.marketplace-surface .market-trust-strip {
    border-top: 1px solid #e5e7ec;
    border-bottom: 1px solid #e5e7ec;
    background: #f7f8fa;
}

.marketplace-surface .market-trust-strip > .market-container > span {
    border-color: #dfe2e8;
}

.marketplace-surface .market-trust-strip .ui-icon {
    border-color: #ffd3d4;
    background: #fff0f1;
    color: var(--cw-brand);
}

.marketplace-surface .market-footer {
    border-top: 1px solid #e4e6eb;
    background: #fff;
    color: #59616e;
}

.marketplace-surface .market-footer-grid {
    padding-top: 30px;
    padding-bottom: 28px;
}

.marketplace-surface .market-footer .market-brand b,
.marketplace-surface .market-footer nav > b {
    color: #222429;
}

.marketplace-surface .market-footer .market-brand small,
.marketplace-surface .market-footer-brand p,
.marketplace-surface .market-footer nav a {
    color: #68717e;
}

.marketplace-surface .market-footer nav a:hover {
    color: var(--cw-brand);
}

.marketplace-surface .market-payment-list span {
    border-color: #e0e3e8;
    background: #fff;
    color: #545c68;
}

.marketplace-surface .market-footer-bottom {
    border-top-color: #e5e7ec;
    color: #858c98;
}

.marketplace-surface .market-support-fab {
    position: fixed;
    right: 26px;
    bottom: 50px;
    z-index: 95;
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border: 1px solid #ff878a;
    border-radius: 50%;
    background: var(--cw-brand);
    color: #fff;
    box-shadow: 0 14px 30px rgba(255, 81, 84, .28);
    transition: transform .18s ease, background-color .18s ease;
}

.marketplace-surface .market-support-fab:hover {
    background: var(--cw-brand-hover);
    transform: translateY(-3px);
}

.marketplace-surface .market-support-fab .ui-icon {
    width: 23px;
    height: 23px;
}

.marketplace-surface .storefront-popup {
    display: none !important;
}

@media (max-width: 1180px) {
    .marketplace-surface .market-home-copy h1 em {
        white-space: normal;
    }

    .marketplace-surface .market-header-main {
        grid-template-columns: auto minmax(240px, 1fr) auto;
    }

    .marketplace-surface .market-navigation {
        grid-column: 1 / -1;
        order: 5;
        border-top: 1px solid #eceef2;
    }

    .marketplace-surface .market-primary-nav a {
        min-height: 46px;
    }

    .marketplace-surface .market-home-hero > .market-container {
        grid-template-columns: minmax(0, .95fr) minmax(400px, 1.05fr);
        gap: 28px;
    }

    .marketplace-surface .market-home-copy h1 {
        font-size: 48px;
    }

    .marketplace-surface .market-home-products .shop-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .marketplace-surface .market-product-primary {
        grid-template-columns: minmax(0, 1.25fr) minmax(300px, .9fr);
    }

    .marketplace-surface .market-purchase-panel {
        position: static;
        grid-column: 1 / -1;
    }

    .marketplace-surface .market-related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .marketplace-surface .market-announcement-strip > .market-container {
        justify-content: flex-start;
        animation: market-announcement-marquee 20s linear infinite;
    }

    .marketplace-surface .market-header-main {
        min-height: 64px;
        grid-template-columns: auto 1fr auto;
    }

    .marketplace-surface .market-search {
        grid-column: 1 / -1;
        order: 4;
        width: 100%;
    }

    .marketplace-surface .market-navigation {
        display: none;
    }

    .marketplace-surface .market-navigation.open {
        display: block;
    }

    .marketplace-surface .market-home-hero {
        padding-top: 38px;
    }

    .marketplace-surface .market-home-hero > .market-container {
        grid-template-columns: 1fr;
    }

    .marketplace-surface .market-home-copy {
        max-width: 680px;
    }

    .marketplace-surface .market-home-showcase {
        order: -1;
    }

    .marketplace-surface .market-home-showcase > img {
        width: min(100%, 560px);
    }

    .marketplace-surface .market-home-assurance {
        grid-template-columns: 1fr 1fr;
    }

    .marketplace-surface .market-home-assurance > span:nth-child(3) {
        border-left: 0;
        border-top: 1px solid #e8eaef;
    }

    .marketplace-surface .market-home-assurance > span:nth-child(4) {
        border-top: 1px solid #e8eaef;
    }

    .marketplace-surface .market-home-products .shop-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .marketplace-surface .market-product-primary,
    .marketplace-surface .market-product-secondary {
        grid-template-columns: 1fr;
    }

    .marketplace-surface .market-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .marketplace-surface .market-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .marketplace-surface .market-container {
        width: min(calc(100% - 28px), var(--market-max));
    }

    .marketplace-surface .market-announcement-strip {
        font-size: 10px;
    }

    .marketplace-surface .market-brand b {
        font-size: 17px;
    }

    .marketplace-surface .market-wallet-shortcut,
    .marketplace-surface .market-login {
        display: none;
    }

    .marketplace-surface .market-register {
        min-height: 36px;
        padding-inline: 11px;
    }

    .marketplace-surface .market-home-hero {
        min-height: auto;
        padding-top: 26px;
    }

    .marketplace-surface .market-home-hero > .market-container {
        min-height: auto;
    }

    .marketplace-surface .market-home-showcase {
        order: 0;
    }

    .marketplace-surface .market-home-copy h1 {
        font-size: 39px;
        line-height: 1.03;
    }

    .marketplace-surface .market-home-copy > p:not(.market-home-eyebrow) {
        font-size: 14px;
    }

    .marketplace-surface .market-home-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .marketplace-surface .market-home-methods {
        grid-template-columns: 1fr;
    }

    .marketplace-surface .market-home-assurance {
        grid-template-columns: 1fr;
        margin-bottom: 30px;
    }

    .marketplace-surface .market-home-assurance > span {
        border-top: 1px solid #e8eaef;
        border-left: 0;
    }

    .marketplace-surface .market-home-assurance > span:first-child {
        border-top: 0;
    }

    .marketplace-surface .market-home-products > header {
        align-items: flex-start;
    }

    .marketplace-surface .market-home-product-tabs {
        max-width: calc(100vw - 28px);
        gap: 18px;
        overflow-x: auto;
    }

    .marketplace-surface .market-home-products .shop-product-grid {
        grid-template-columns: 1fr;
    }

    .marketplace-surface .market-home-products .shop-product-card {
        display: grid;
        grid-template-columns: 132px minmax(0, 1fr);
    }

    .marketplace-surface .market-home-products .shop-product-art {
        min-height: 210px;
        aspect-ratio: auto;
        border-radius: 10px 0 0 10px;
    }

    .marketplace-surface .market-home-products .shop-product-copy {
        min-height: 210px;
    }

    .marketplace-surface .market-related-grid {
        grid-template-columns: 1fr;
    }

    .marketplace-surface .market-product-summary h1 {
        font-size: 23px;
    }

    .marketplace-surface .market-footer-grid {
        grid-template-columns: 1fr;
    }

    .marketplace-surface .market-support-fab {
        right: 16px;
        bottom: 48px;
        width: 46px;
        height: 46px;
    }
}

@keyframes market-announcement-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-45%); }
}

@media (prefers-reduced-motion: reduce) {
    .marketplace-surface .market-announcement-strip > .market-container {
        animation: none;
    }

    .marketplace-surface :is(.shop-product-card, .market-product-card, .market-support-fab) {
        transition: none;
    }
}

.commerce-workspace.marketplace-surface {
    --market-max: 1440px;
}
/* Weekly offer production artwork */
.marketplace-surface .market-catalog-page .market-weekly-offer {
    height: 184px;
    overflow: hidden;
    border-color: #e4e7ed;
    background:
        radial-gradient(circle at 48% 20%, rgba(255, 81, 84, .09), transparent 24%),
        linear-gradient(105deg, #ffffff 0%, #fffafa 56%, #fff3f3 100%);
}

.marketplace-surface .market-catalog-page .market-weekly-offer-art {
    position: relative;
    align-self: stretch;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    border-left: 1px solid rgba(226, 229, 235, .8);
    background:
        radial-gradient(circle at 76% 30%, rgba(255, 81, 84, .16), transparent 34%),
        linear-gradient(120deg, #ffffff, #fff5f5 64%, #ffe9ea);
    isolation: isolate;
}

.marketplace-surface .market-catalog-page .market-weekly-offer-art::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, #fffafa 0%, rgba(255, 250, 250, .72) 7%, transparent 30%);
    pointer-events: none;
}

.marketplace-surface .market-catalog-page .market-weekly-offer-art img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: 53% 55%;
    filter: saturate(.96) contrast(1.02);
    transform: scale(1.12);
    transition: transform .45s cubic-bezier(.2, .75, .25, 1), filter .3s ease;
}

.marketplace-surface .market-catalog-page .market-weekly-offer:hover .market-weekly-offer-art img {
    filter: saturate(1.04) contrast(1.03);
    transform: scale(1.16) translateY(-2px);
}

@media (max-width: 820px) {
    .marketplace-surface .market-catalog-page .market-weekly-offer {
        grid-template-columns: minmax(0, 1fr) 42%;
    }
}

@media (max-width: 560px) {
    .marketplace-surface .market-catalog-page .market-weekly-offer {
        height: auto;
        min-height: 172px;
        grid-template-columns: 1fr;
    }

    .marketplace-surface .market-catalog-page .market-weekly-offer-art {
        display: none;
    }
}
/* Scrollable product gallery thumbnails */
.marketplace-surface .market-gallery-thumbs {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 2px 2px 7px;
    scrollbar-width: thin;
    scrollbar-color: #cfd4dc transparent;
}

.marketplace-surface .market-gallery-thumbs button {
    flex: 0 0 88px;
}

@media (max-width: 560px) {
    .marketplace-surface .market-gallery-thumbs button {
        flex-basis: 74px;
    }
}
/* Reference-driven registration page */
.marketplace-surface .register-showcase {
    position: relative;
    min-height: calc(100svh - 109px);
    overflow: hidden;
    padding: 46px 0 52px;
    background: #fff;
}

.marketplace-surface .register-showcase::before {
    content: "";
    position: absolute;
    top: 96px;
    left: calc(50% + 260px);
    width: 240px;
    height: 420px;
    opacity: .32;
    background-image: radial-gradient(circle, rgba(255, 81, 84, .48) 1.2px, transparent 1.3px);
    background-size: 15px 15px;
    pointer-events: none;
}

.marketplace-surface .register-showcase::after {
    content: "";
    position: absolute;
    top: 90px;
    left: 50%;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 81, 84, .09), transparent 67%);
    filter: blur(18px);
    pointer-events: none;
}

.marketplace-surface .register-shell-card {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 48px), 1120px);
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(430px, .76fr);
    align-items: center;
    gap: clamp(64px, 7vw, 104px);
}

.marketplace-surface .register-promo {
    position: relative;
    min-width: 0;
    padding: 18px 0 0;
}

.marketplace-surface .register-kicker {
    margin: 0 0 10px;
    color: #30333a;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .04em;
}

.marketplace-surface .register-promo h1 {
    max-width: 520px;
    margin: 0;
    color: #191a1e;
    font-size: clamp(43px, 4vw, 58px);
    font-weight: 880;
    line-height: 1.02;
    letter-spacing: -.055em;
}

.marketplace-surface .register-promo h1 em {
    color: var(--cw-brand);
    font-style: normal;
}

.marketplace-surface .register-lead {
    max-width: 480px;
    margin: 22px 0 0;
    color: #747c88;
    font-size: 14px;
    line-height: 1.72;
}

.marketplace-surface .register-benefits {
    max-width: 500px;
    display: grid;
    gap: 15px;
    margin-top: 28px;
}

.marketplace-surface .register-benefits > span {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.marketplace-surface .register-benefits i {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid #ffd3d5;
    border-radius: 50%;
    background: #fff1f2;
    color: var(--cw-brand);
    font-style: normal;
}

.marketplace-surface .register-benefits i .ui-icon {
    width: 18px;
    height: 18px;
    stroke-width: 1.9;
}

.marketplace-surface .register-benefits b,
.marketplace-surface .register-benefits small {
    display: block;
}

.marketplace-surface .register-benefits b {
    color: #24262c;
    font-size: 12px;
    font-weight: 810;
}

.marketplace-surface .register-benefits small {
    margin-top: 4px;
    color: #858c98;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.45;
}

.marketplace-surface .register-visual {
    width: 205px;
    height: 118px;
    margin: 18px 0 0 auto;
    overflow: hidden;
    background: #fff;
    mask-image: linear-gradient(to bottom, #000 70%, transparent);
}

.marketplace-surface .register-visual img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: 54% 58%;
    filter: drop-shadow(0 16px 20px rgba(29, 34, 44, .12));
    transform: scale(1.18);
}

.marketplace-surface .register-form-panel {
    width: 100%;
    min-width: 0;
    display: grid;
    gap: 14px;
    padding: 27px 30px 24px;
    border: 1px solid #e1e4e9;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(30, 35, 48, .12);
}

.marketplace-surface .register-form-panel > header h2 {
    margin: 0;
    color: #202126;
    font-size: 25px;
    font-weight: 850;
    letter-spacing: -.03em;
}

.marketplace-surface .register-form-panel > header p {
    margin: 6px 0 0;
    color: #858c98;
    font-size: 11px;
}

.marketplace-surface .register-validation-summary {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fff1f2;
    color: #b42335;
    font-size: 10px;
    line-height: 1.5;
}

.marketplace-surface .register-validation-summary:empty,
.marketplace-surface .register-validation-summary.validation-summary-valid {
    display: none;
}

.marketplace-surface .register-name-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.marketplace-surface .register-form-panel label {
    min-width: 0;
    display: grid;
    gap: 6px;
    margin: 0;
    color: #2d3036;
    font-size: 10px;
    font-weight: 790;
}

.marketplace-surface .register-field {
    min-height: 43px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    border: 1px solid #dfe3e9;
    border-radius: 8px;
    background: #fff;
    padding: 0 11px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.marketplace-surface .register-field:focus-within {
    border-color: var(--cw-brand);
    box-shadow: 0 0 0 3px rgba(255, 81, 84, .1);
}

.marketplace-surface .register-field > .ui-icon {
    width: 16px;
    height: 16px;
    color: #a0a7b2;
    stroke-width: 1.8;
}

.marketplace-surface .register-field input {
    width: 100%;
    min-width: 0;
    min-height: 41px;
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
    color: #23252a;
    font-size: 11px;
    font-weight: 560;
}

/* Neutralize the shared commerce input reset inside the registration wrapper. */
.marketplace-surface .register-form-panel .register-field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
    min-height: 41px;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.marketplace-surface .register-field input::placeholder {
    color: #a0a8b5;
}

.marketplace-surface .register-form-panel label > small {
    color: #8a919c;
    font-size: 9px;
    font-weight: 500;
    line-height: 1.45;
}

.marketplace-surface .register-password-field button {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #9ca3ae;
    cursor: pointer;
}

.marketplace-surface .register-password-field button:hover,
.marketplace-surface .register-password-field button[aria-pressed="true"] {
    background: #fff0f1;
    color: var(--cw-brand);
}

.marketplace-surface .register-password-field button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.marketplace-surface .register-field-error {
    min-height: 0;
    color: #c43245;
    font-size: 9px;
    font-weight: 650;
}

.marketplace-surface .register-field-error:empty {
    display: none;
}

.marketplace-surface .register-security-note {
    min-height: 48px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    border: 1px solid #dfe8e3;
    border-radius: 8px;
    background: #f8fbf9;
    padding: 8px 11px;
}

.marketplace-surface .register-security-note > .ui-icon {
    width: 28px;
    height: 28px;
    padding: 6px;
    border-radius: 50%;
    background: #e8f7ef;
    color: #158a55;
}

.marketplace-surface .register-security-note b,
.marketplace-surface .register-security-note small {
    display: block;
}

.marketplace-surface .register-security-note b {
    color: #2f3439;
    font-size: 10px;
}

.marketplace-surface .register-security-note small {
    margin-top: 3px;
    color: #77808b;
    font-size: 8px;
}

.marketplace-surface .register-form-panel .register-terms {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    color: #6f7783;
    font-size: 9px;
    font-weight: 550;
    line-height: 1.55;
    cursor: pointer;
}

.marketplace-surface .register-terms input {
    width: 15px;
    height: 15px;
    margin: 1px 0 0;
    accent-color: var(--cw-brand);
}

.marketplace-surface .register-terms a,
.marketplace-surface .register-login-link a {
    color: var(--cw-brand);
    font-weight: 790;
}

.marketplace-surface .register-terms-error {
    margin-top: -8px;
}

.marketplace-surface .register-submit {
    min-height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--cw-brand);
    border-radius: 8px;
    background: var(--cw-brand);
    color: #fff;
    font-size: 11px;
    font-weight: 820;
    box-shadow: 0 10px 22px rgba(255, 81, 84, .22);
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.marketplace-surface .register-submit:hover {
    border-color: var(--cw-brand-hover);
    background: var(--cw-brand-hover);
    transform: translateY(-1px);
}

.marketplace-surface .register-submit .ui-icon {
    width: 16px;
    height: 16px;
}

.marketplace-surface .register-login-link {
    margin: 0;
    padding-top: 13px;
    border-top: 1px solid #eceef2;
    color: #8a919c;
    text-align: center;
    font-size: 9px;
}

@media (max-width: 920px) {
    .marketplace-surface .register-showcase {
        padding-top: 34px;
    }

    .marketplace-surface .register-shell-card {
        width: min(calc(100% - 36px), 720px);
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .marketplace-surface .register-promo {
        padding-top: 0;
    }

    .marketplace-surface .register-promo h1,
    .marketplace-surface .register-lead,
    .marketplace-surface .register-benefits {
        max-width: none;
    }

    .marketplace-surface .register-benefits {
        grid-template-columns: 1fr 1fr;
    }

    .marketplace-surface .register-visual {
        display: none;
    }

    .marketplace-surface .register-showcase::before {
        left: 70%;
    }
}

@media (max-width: 560px) {
    .marketplace-surface .register-showcase {
        min-height: auto;
        padding: 26px 0 34px;
    }

    .marketplace-surface .register-shell-card {
        width: min(calc(100% - 28px), 720px);
        gap: 26px;
    }

    .marketplace-surface .register-promo h1 {
        font-size: 39px;
    }

    .marketplace-surface .register-lead {
        margin-top: 16px;
        font-size: 13px;
    }

    .marketplace-surface .register-benefits {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 22px;
    }

    .marketplace-surface .register-benefits > span:nth-child(n+3) {
        display: none;
    }

    .marketplace-surface .register-form-panel {
        gap: 13px;
        padding: 23px 18px 21px;
    }

    .marketplace-surface .register-name-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .marketplace-surface .register-field,
    .marketplace-surface .register-submit {
        transition: none;
    }
}
/* GC MMO reference registration treatment */
.marketplace-surface .register-reference-page {
    position: relative;
    min-height: calc(100svh - 108px);
    overflow: hidden;
    isolation: isolate;
    padding: 54px 0 66px;
    background: #070708;
    color: #fff;
}

.marketplace-surface .register-reference-page::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: .86;
    background-image: url("../images/shopaccount-marketplace-hero.png");
    background-position: 56% 48%;
    background-size: cover;
    filter: grayscale(1) brightness(.23) contrast(1.35) saturate(.65);
    transform: scale(1.04);
}

.marketplace-surface .register-reference-page::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    width: auto;
    height: auto;
    border-radius: 0;
    background:
        linear-gradient(90deg, rgba(3, 3, 4, .88) 0%, rgba(3, 3, 4, .63) 43%, rgba(3, 3, 4, .42) 70%, rgba(3, 3, 4, .68) 100%),
        radial-gradient(circle at 88% 42%, rgba(255, 44, 55, .2), transparent 30%),
        repeating-linear-gradient(104deg, rgba(255,255,255,.025) 0 1px, transparent 1px 74px);
    filter: none;
    pointer-events: none;
}

.marketplace-surface .register-reference-page .register-shell-card {
    width: min(calc(100% - 48px), 1090px);
    grid-template-columns: minmax(0, 1fr) minmax(390px, 410px);
    align-items: center;
    gap: clamp(58px, 7vw, 96px);
}

.marketplace-surface .register-reference-page .register-promo {
    padding: 0;
    color: #fff;
}

.marketplace-surface .register-reference-page .register-kicker {
    width: fit-content;
    margin: 0 0 22px;
    border: 1px solid rgba(255, 57, 68, .82);
    border-radius: 5px;
    padding: 7px 12px;
    color: #ff5158;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .02em;
}

.marketplace-surface .register-reference-page .register-promo h1 {
    max-width: 650px;
    color: #fff;
    font-size: clamp(42px, 4.5vw, 64px);
    font-weight: 850;
    line-height: .99;
    letter-spacing: -.055em;
}

.marketplace-surface .register-reference-page .register-promo h1 em {
    color: #ff3944;
}

.marketplace-surface .register-reference-page .register-lead {
    max-width: 570px;
    margin-top: 26px;
    color: rgba(240, 242, 247, .83);
    font-size: 15px;
    line-height: 1.65;
}

.marketplace-surface .register-reference-page .register-benefits {
    max-width: 700px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 40px;
}

.marketplace-surface .register-reference-page .register-benefits > span {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    min-width: 0;
    padding: 14px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .2);
}

.marketplace-surface .register-reference-page .register-benefits > span:nth-child(4) {
    display: none;
}

.marketplace-surface .register-reference-page .register-benefits i {
    width: 38px;
    height: 38px;
    border: 1px solid #ff3944;
    border-radius: 6px;
    background: rgba(255, 22, 37, .08);
    color: #ff5961;
}

.marketplace-surface .register-reference-page .register-benefits b {
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.marketplace-surface .register-reference-page .register-benefits small {
    margin-top: 7px;
    color: rgba(236, 239, 244, .68);
    font-size: 9px;
    line-height: 1.45;
}

.marketplace-surface .register-reference-page .register-visual {
    display: none;
}

.marketplace-surface .register-reference-page .register-form-panel {
    width: 100%;
    gap: 13px;
    padding: 28px 29px 25px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 17px;
    background: rgba(249, 250, 252, .97);
    box-shadow: 0 22px 70px rgba(0, 0, 0, .42);
}

.marketplace-surface .register-reference-page .register-form-panel > header h2 {
    color: #252930;
    font-size: 25px;
    font-weight: 850;
}

.marketplace-surface .register-reference-page .register-form-panel > header p {
    margin-top: 7px;
    color: #7f8897;
    font-size: 11px;
}

.marketplace-surface .register-reference-page .register-name-grid {
    grid-template-columns: 1fr;
    gap: 11px;
}

.marketplace-surface .register-reference-page .register-form-panel label {
    gap: 6px;
    color: #38404b;
    font-size: 10px;
    font-weight: 800;
}

.marketplace-surface .register-reference-page .register-field {
    min-height: 43px;
    border-color: #d9e2ef;
    border-radius: 6px;
    background: #eaf2ff;
    padding: 0 10px;
}

.marketplace-surface .register-reference-page .register-field:focus-within {
    border-color: #ff3944;
    background: #f3f7ff;
    box-shadow: 0 0 0 3px rgba(255, 57, 68, .12);
}

.marketplace-surface .register-reference-page .register-field > .ui-icon {
    color: #8997aa;
}

.marketplace-surface .register-reference-page .register-field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
    min-height: 41px;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    color: #26303b;
    font-size: 12px;
}

.marketplace-surface .register-reference-page .register-field input::placeholder {
    color: #8794a8;
}

.marketplace-surface .register-reference-page .register-form-panel label > small {
    color: #87909d;
    font-size: 9px;
}

.marketplace-surface .register-reference-page .register-security-note {
    min-height: 44px;
    border-color: #d7eadf;
    border-radius: 6px;
    background: #f4fbf6;
    padding: 7px 10px;
}

.marketplace-surface .register-reference-page .register-security-note > .ui-icon {
    width: 26px;
    height: 26px;
    padding: 5px;
}

.marketplace-surface .register-reference-page .register-security-note b {
    color: #2e5840;
    font-size: 9px;
}

.marketplace-surface .register-reference-page .register-security-note small {
    color: #70877a;
    font-size: 8px;
}

.marketplace-surface .register-reference-page .register-terms {
    color: #788291;
    font-size: 9px;
}

.marketplace-surface .register-reference-page .register-terms a,
.marketplace-surface .register-reference-page .register-login-link a {
    color: #ff3944;
}

.marketplace-surface .register-reference-page .register-submit {
    min-height: 44px;
    border-color: #ff3944;
    border-radius: 6px;
    background: #ff3944;
    box-shadow: 0 10px 24px rgba(255, 57, 68, .25);
    font-size: 11px;
}

.marketplace-surface .register-reference-page .register-login-link {
    padding-top: 12px;
    border-top-color: #e1e5eb;
    color: #87909d;
}

@media (max-width: 920px) {
    .marketplace-surface .register-reference-page {
        min-height: auto;
        padding: 42px 0 52px;
    }

    .marketplace-surface .register-reference-page .register-shell-card {
        width: min(calc(100% - 36px), 620px);
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .marketplace-surface .register-reference-page .register-promo h1 {
        font-size: clamp(40px, 8vw, 58px);
    }

    .marketplace-surface .register-reference-page .register-form-panel {
        max-width: 520px;
        margin: 0 auto;
    }
}

@media (max-width: 560px) {
    .marketplace-surface .register-reference-page {
        padding: 30px 0 42px;
    }

    .marketplace-surface .register-reference-page .register-shell-card {
        width: min(calc(100% - 28px), 520px);
        gap: 28px;
    }

    .marketplace-surface .register-reference-page .register-kicker {
        margin-bottom: 16px;
        font-size: 9px;
    }

    .marketplace-surface .register-reference-page .register-promo h1 {
        font-size: 39px;
    }

    .marketplace-surface .register-reference-page .register-lead {
        margin-top: 18px;
        font-size: 13px;
    }

    .marketplace-surface .register-reference-page .register-benefits {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 28px;
    }

    .marketplace-surface .register-reference-page .register-benefits > span {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .marketplace-surface .register-reference-page .register-form-panel {
        padding: 23px 18px 21px;
    }
}

/* Tinh chỉnh ngắt dòng tiêu đề */
.marketplace-surface .register-reference-page .register-promo h1 { font-size: clamp(40px, 3.8vw, 56px); }
.marketplace-surface .register-reference-page .register-promo h1 em { white-space: nowrap; }
@media (max-width: 560px) { .marketplace-surface .register-reference-page .register-promo h1 { font-size: 39px; } }

/* Compact product editor */
.admin-surface .product-editor-page {
    width: min(100%, 1560px);
    margin-inline: auto;
    --product-editor-accent: #0f766e;
    --product-editor-accent-soft: #eaf7f4;
}

.admin-surface .product-editor-page .admin-title {
    margin-bottom: 16px;
}

.admin-surface .product-editor-page .admin-title h1 {
    font-size: 26px;
    letter-spacing: -.025em;
}

.admin-surface .product-editor-page .product-editor-pro {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 16px;
}

.admin-surface .product-editor-page .product-editor-main {
    gap: 16px;
}

.admin-surface .product-editor-page .mock-panel {
    border-color: #dce2ea;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(20, 32, 50, .035);
}

.admin-surface .product-editor-page .panel-heading {
    min-height: 58px;
}

.admin-surface .product-editor-page .product-basic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.admin-surface .product-editor-page .product-basic-grid > label:first-child,
.admin-surface .product-editor-page .product-basic-grid > label:nth-child(2) {
    grid-column: auto;
}

.admin-surface .product-editor-page .product-config-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 14px;
}

.admin-surface .product-editor-page .editor-primary-card {
    grid-column: 1 / -1;
}

.admin-surface .product-editor-page :is(.product-media-editor, .discount-tier-editor, .editor-collapsible, .variant-editor-drawer) {
    overflow: hidden;
    border: 1px solid #dce2ea;
    border-radius: 9px;
    background: #fff;
}

.admin-surface .product-editor-page :is(.product-media-editor, .discount-tier-editor, .editor-collapsible, .variant-editor-drawer) > summary {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    list-style: none;
    padding: 11px 14px;
    color: #1d2939;
    cursor: pointer;
    user-select: none;
}

.admin-surface .product-editor-page :is(.product-media-editor, .discount-tier-editor, .editor-collapsible, .variant-editor-drawer) > summary::-webkit-details-marker {
    display: none;
}

.admin-surface .product-editor-page :is(.product-media-editor, .discount-tier-editor, .editor-collapsible) > summary span {
    min-width: 0;
}

.admin-surface .product-editor-page :is(.product-media-editor, .discount-tier-editor, .editor-collapsible) > summary b,
.admin-surface .product-editor-page .variant-editor-drawer > summary {
    font-size: 10px;
    font-weight: 820;
}

.admin-surface .product-editor-page :is(.product-media-editor, .discount-tier-editor, .editor-collapsible) > summary small {
    display: block;
    margin-top: 3px;
    color: #758195;
    font-size: 8px;
    font-weight: 520;
    line-height: 1.4;
}

.admin-surface .product-editor-page :is(.product-media-editor, .discount-tier-editor, .editor-collapsible) > summary > i {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    display: grid;
    place-items: center;
    border: 1px solid #d9e0e9;
    border-radius: 7px;
    color: #667085;
    font-size: 13px;
    font-style: normal;
    transition: transform .18s ease, border-color .18s ease, color .18s ease;
}

.admin-surface .product-editor-page :is(.product-media-editor, .discount-tier-editor, .editor-collapsible)[open] > summary {
    border-bottom: 1px solid #e6eaf0;
    background: #fbfcfd;
}

.admin-surface .product-editor-page :is(.product-media-editor, .discount-tier-editor, .editor-collapsible)[open] > summary > i {
    border-color: #99d5ca;
    color: var(--product-editor-accent);
    transform: rotate(180deg);
}

.admin-surface .product-editor-page .product-media-editor {
    grid-column: 1 / -1;
}

.admin-surface .product-editor-page .product-media-editor-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
}

.admin-surface .product-editor-page .product-media-editor .image-dropzone {
    min-height: 150px;
}

.admin-surface .product-editor-page .editor-collapsible {
    align-self: start;
    box-shadow: none;
}

.admin-surface .product-editor-page .editor-collapsible > :is(.editor-grid, .attribute-editor) {
    padding-top: 14px;
}

.admin-surface .product-editor-page .discount-tier-editor {
    margin: 0 15px 15px;
    background: #fbfcfd;
}

.admin-surface .product-editor-page .discount-tier-body .inline-form {
    display: grid;
    grid-template-columns: minmax(110px, 1fr) minmax(110px, 1fr) auto;
    gap: 8px;
    padding: 14px 14px 0;
}

.admin-surface .product-editor-page .discount-tier-body .readonly-settings {
    padding: 0 14px 12px;
}

.admin-surface .product-editor-page .variants-placeholder {
    overflow: hidden;
}

.admin-surface .product-editor-page .variant-table {
    overflow-x: auto;
}

.admin-surface .product-editor-page .variant-table .mock-tr {
    min-width: 880px;
}

.admin-surface .product-editor-page .variant-editor-drawer {
    margin: 12px;
    background: #fbfcfd;
}

.admin-surface .product-editor-page .variant-editor-drawer > summary {
    min-height: 44px;
    color: var(--product-editor-accent);
}

.admin-surface .product-editor-page .variant-editor-drawer .admin-form {
    margin: 0;
    padding: 14px;
    border-top: 1px solid #e6eaf0;
    background: #fff;
}

.admin-surface .product-editor-page .variant-editor-drawer .editor-grid {
    padding: 0 0 14px;
}

.admin-surface .product-editor-page .editor-collapsible-wide {
    width: 100%;
}

.admin-surface .product-editor-page .compact-collapsible > summary {
    min-height: 52px;
}

.admin-surface .product-editor-page .compact-collapsible > span:first-of-type {
    border-top: 0;
}

.admin-surface .product-editor-page .product-preview-card .mock-primary.full {
    display: none;
}

.admin-surface .product-editor-page .preview-product-art {
    height: 156px;
}

.admin-surface .product-editor-page .editor-savebar {
    padding: 10px 12px;
    border-color: #d6dde7;
    box-shadow: 0 -8px 24px rgba(20, 32, 50, .08);
    backdrop-filter: blur(12px);
}

@media (max-width: 1280px) {
    .admin-surface .product-editor-page .product-editor-pro {
        grid-template-columns: 1fr;
    }

    .admin-surface .product-editor-page .product-editor-aside {
        grid-template-columns: 1fr 1fr;
    }

    .admin-surface .product-editor-page .product-preview-card {
        grid-row: span 2;
    }
}

@media (max-width: 860px) {
    .admin-surface .product-editor-page .product-basic-grid,
    .admin-surface .product-editor-page .product-config-grid,
    .admin-surface .product-editor-page .product-media-editor-body {
        grid-template-columns: 1fr;
    }

    .admin-surface .product-editor-page .product-basic-grid > .span-2,
    .admin-surface .product-editor-page .product-media-editor-body > .span-2 {
        grid-column: auto;
    }

    .admin-surface .product-editor-page .product-editor-aside {
        display: block;
    }

    .admin-surface .product-editor-page .product-editor-aside > * {
        margin-bottom: 14px;
    }

    .admin-surface .product-editor-page .discount-tier-body .inline-form {
        grid-template-columns: 1fr;
    }

    .admin-surface .product-editor-page .editor-savebar {
        overflow-x: auto;
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .admin-surface .product-editor-page details > summary > i {
        transition: none;
    }
}


/* Complete orders workspace */
.marketplace-surface .orders-workspace {
    width: min(calc(100% - 48px), 1480px);
    max-width: none;
    padding: 24px 0 48px;
}

.marketplace-surface .orders-page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
    padding: 8px 2px 20px;
    border-bottom: 1px solid #e3e7ed;
}

.marketplace-surface .orders-page-heading h1 {
    margin: 0;
    color: #20242b;
    font-size: 30px;
    font-weight: 850;
    letter-spacing: -.035em;
}

.marketplace-surface .orders-page-heading > div > p:last-child {
    margin: 8px 0 0;
    color: #737d8b;
    font-size: 13px;
}

.marketplace-surface .orders-eyebrow {
    margin: 0 0 7px;
    color: var(--cw-brand);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .12em;
}

.marketplace-surface .orders-page-summary {
    min-width: 92px;
    display: grid;
    place-items: center;
    border: 1px solid #e1e5eb;
    border-radius: 10px;
    background: #fff;
    padding: 10px 14px;
}

.marketplace-surface .orders-page-summary strong {
    color: #23272e;
    font-size: 20px;
    line-height: 1;
}

.marketplace-surface .orders-page-summary span {
    margin-top: 4px;
    color: #7b8492;
    font-size: 9px;
}

.marketplace-surface .orders-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(540px, .95fr);
    align-items: start;
    gap: 16px;
    margin: 0;
    border: 0;
}

.marketplace-surface .orders-list-pane {
    min-width: 0;
    padding: 0;
}

.marketplace-surface .order-status-tabs {
    gap: 8px;
    margin: 0 0 10px;
}

.marketplace-surface .order-status-tabs span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    border-color: #e0e4ea;
    border-radius: 8px;
    padding: 0 11px;
    color: #5f6875;
    font-size: 10px;
    font-weight: 700;
}

.marketplace-surface .order-status-tabs span.active {
    border-color: #ffb9bc;
    background: #fff4f4;
    color: var(--cw-brand-hover);
}

.marketplace-surface .order-status-tabs b {
    min-width: 20px;
    margin-left: 7px;
    border-radius: 5px;
    background: #eef1f5;
    padding: 3px 5px;
    color: #565f6c;
    text-align: center;
    font-size: 9px;
}

.marketplace-surface .orders-filter-bar {
    display: grid;
    grid-template-columns: minmax(210px, 1.4fr) minmax(155px, .8fr) minmax(155px, .8fr) auto auto;
    align-items: end;
    gap: 9px;
    margin-bottom: 12px;
    border: 1px solid #e0e4ea;
    border-radius: 10px;
    background: #fff;
    padding: 11px;
}

.marketplace-surface .orders-filter-bar > label:not(.toolbar-search) {
    display: grid;
    gap: 5px;
    color: #697382;
    font-size: 9px;
    font-weight: 700;
}

.marketplace-surface .orders-filter-bar select {
    width: 100%;
    min-height: 40px;
    border: 1px solid #dce1e8;
    border-radius: 8px;
    background: #fff;
    padding: 0 10px;
    color: #303640;
    font-size: 11px;
}

.marketplace-surface .orders-filter-bar .toolbar-search {
    min-height: 40px;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    border: 1px solid #dce1e8;
    border-radius: 8px;
    background: #fff;
    padding: 0 11px;
}

.marketplace-surface .orders-filter-bar .toolbar-search .ui-icon {
    width: 17px;
    height: 17px;
    color: #8a94a2;
}

.marketplace-surface .orders-filter-bar .toolbar-search input {
    min-width: 0;
    min-height: 38px;
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
    color: #303640;
    font-size: 11px;
}

.marketplace-surface .orders-filter-bar .table-action,
.marketplace-surface .orders-filter-reset {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 0 13px;
    font-size: 10px;
    font-weight: 780;
}

.marketplace-surface .orders-filter-bar .table-action {
    border-color: var(--cw-brand);
    background: var(--cw-brand);
    color: #fff;
}

.marketplace-surface .orders-filter-reset {
    border: 1px solid #e0e4ea;
    background: #fff;
    color: #667085;
}

.marketplace-surface .order-list-panel,
.marketplace-surface .order-detail-pane {
    overflow: hidden;
    border: 1px solid #dfe3e9;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(27, 31, 42, .045);
}

.marketplace-surface .order-list-panel .panel-heading {
    min-height: 68px;
    padding: 14px 16px;
}

.marketplace-surface .order-list-panel .panel-heading h2 {
    font-size: 16px;
}

.marketplace-surface .order-list-panel .panel-heading p {
    font-size: 10px;
}

.marketplace-surface .order-list-count {
    border-radius: 7px;
    background: #f1f3f6;
    padding: 6px 9px;
    color: #667085;
    font-size: 9px;
    font-weight: 750;
}

.marketplace-surface .customer-order-list {
    overflow-x: auto;
}

.marketplace-surface .customer-order-row {
    position: relative;
    grid-template-columns: 8px minmax(155px, .92fr) minmax(220px, 1.42fr) minmax(88px, .55fr) minmax(170px, .78fr) 28px;
    gap: 12px;
    min-width: 790px;
    min-height: 76px;
    border-top-color: #e7e9ed;
    padding: 12px 14px;
    color: #2b3038;
    font-size: 11px;
    transition: background-color .16s ease, box-shadow .16s ease;
}

.marketplace-surface .customer-order-row:hover {
    background: #fafbfc;
}

.marketplace-surface .customer-order-row.selected {
    border-radius: 0;
    background: #fff7f7;
    box-shadow: inset 3px 0 0 var(--cw-brand);
    outline: 0;
}

.marketplace-surface .select-dot {
    width: 7px;
    height: 7px;
    border-color: #c4cad4;
}

.marketplace-surface .selected .select-dot {
    background: var(--cw-brand);
    border-color: var(--cw-brand);
}

.marketplace-surface .order-id {
    min-width: 0;
}

.marketplace-surface .order-id b {
    display: block;
    overflow: hidden;
    color: var(--cw-brand-hover);
    font-size: 10px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.marketplace-surface .order-id small,
.marketplace-surface .product-cell small,
.marketplace-surface .order-row-summary small {
    display: block;
    margin-top: 5px;
    color: #7d8693;
    font-size: 9px;
}

.marketplace-surface .customer-order-row .product-cell {
    min-width: 0;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.marketplace-surface .customer-order-row .product-cell i {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #222936;
    color: #fff;
    font-style: normal;
    font-weight: 820;
}

.marketplace-surface .customer-order-row .product-cell b {
    overflow: hidden;
    font-size: 11px;
    line-height: 1.35;
    text-overflow: ellipsis;
}

.marketplace-surface .order-row-summary b {
    display: block;
    margin-top: 5px;
    color: #252a32;
    font-size: 12px;
}

.marketplace-surface .order-row-states {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.marketplace-surface .orders-workspace .status-pill {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0 9px;
    font-size: 9px;
    font-weight: 760;
}

.marketplace-surface .row-more {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 1px solid #e0e4ea;
    border-radius: 50%;
    color: var(--cw-brand);
    font-size: 14px;
}

.marketplace-surface .order-detail-pane {
    min-width: 0;
    border-left: 1px solid #dfe3e9;
    padding-bottom: 16px;
}

.marketplace-surface .detail-pane-heading {
    min-height: 86px;
    padding: 16px 18px;
    background: #fbfcfd;
}

.marketplace-surface .detail-pane-heading > div > span {
    color: #8a93a0;
    font-size: 9px;
    font-weight: 820;
    letter-spacing: .1em;
}

.marketplace-surface .detail-pane-heading h2 {
    margin-top: 5px;
    color: #262b33;
    font-size: 16px;
}

.marketplace-surface .detail-pane-heading p {
    margin-top: 5px;
    color: #77818f;
    font-size: 9px;
}

.marketplace-surface .order-info-cards {
    gap: 10px;
    padding: 14px;
}

.marketplace-surface .order-info-cards article {
    border-color: #e0e4ea;
    border-radius: 9px;
    padding: 12px;
}

.marketplace-surface .order-info-cards h3 {
    margin-bottom: 11px;
    color: #303640;
    font-size: 11px;
}

.marketplace-surface .order-info-cards p {
    align-items: center;
    margin: 9px 0;
    color: #343a43;
    font-size: 10px;
}

.marketplace-surface .order-info-cards p span {
    color: #7b8491;
}

.marketplace-surface .order-info-cards .order-total {
    color: var(--cw-brand-hover);
    font-size: 14px;
}

.marketplace-surface .order-info-cards .mock-secondary {
    min-height: 36px;
    margin-top: 10px;
    font-size: 9px;
}

.marketplace-surface .delivered-section {
    padding: 0 14px 4px;
}

.marketplace-surface .delivered-section > .panel-heading {
    min-height: 68px;
    padding: 12px 0;
}

.marketplace-surface .delivered-section > .panel-heading h2 {
    font-size: 15px;
}

.marketplace-surface .delivered-section > .panel-heading h2 span {
    margin-left: 5px;
    border-radius: 6px;
    background: #eef1f5;
    padding: 3px 6px;
    color: #667085;
    font-size: 9px;
}

.marketplace-surface .delivered-section > .panel-heading p {
    font-size: 9px;
}

.marketplace-surface .delivered-download-all {
    color: var(--cw-brand);
    font-size: 10px;
    font-weight: 790;
}

.marketplace-surface .delivered-account {
    margin-bottom: 10px;
    border-color: #b9e2d2;
    border-radius: 10px;
    background: #fbfffd;
    padding: 14px;
}

.marketplace-surface .delivered-title {
    align-items: center;
}

.marketplace-surface .delivered-title small {
    display: block;
    margin-bottom: 4px;
    color: #7e8a85;
    font-size: 8px;
    font-weight: 780;
    letter-spacing: .08em;
}

.marketplace-surface .delivered-title b {
    color: #29322e;
    font-size: 13px;
}

.marketplace-surface .credential-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 13px 0;
}

.marketplace-surface .credential-item {
    min-width: 0;
    border: 1px solid #e1e8e4;
    border-radius: 8px;
    background: #fff;
    padding: 10px 11px;
}

.marketplace-surface .credential-item > span {
    display: block;
    color: #7b8580;
    font-size: 8px;
    font-weight: 720;
}

.marketplace-surface .credential-item strong {
    display: block;
    overflow-wrap: anywhere;
    margin-top: 6px;
    color: #26302b;
    font-size: 11px;
    line-height: 1.4;
}

.marketplace-surface .credential-extra {
    grid-column: 1 / -1;
}

.marketplace-surface .credential-secret-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.marketplace-surface .credential-secret-row button {
    flex: 0 0 auto;
    border: 0;
    border-radius: 6px;
    background: #edf7f2;
    padding: 5px 8px;
    color: #187a50;
    font-size: 8px;
    font-weight: 760;
    cursor: pointer;
}

.marketplace-surface .credential-actions {
    gap: 7px;
}

.marketplace-surface .credential-actions button,
.marketplace-surface .credential-actions a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    border-radius: 7px;
    padding: 0 11px;
    font-size: 9px;
    font-weight: 760;
}

.marketplace-surface .credential-actions button.is-copied {
    border-color: #8bd1b3;
    background: #edf9f3;
    color: #14784e;
}

.marketplace-surface .order-timeline {
    display: block;
    margin: 12px 14px;
    border-color: #e0e4ea;
    padding: 13px;
}

.marketplace-surface .order-timeline h3 {
    margin: 0 0 12px;
    color: #303640;
    font-size: 11px;
}

.marketplace-surface .order-timeline ol {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.marketplace-surface .order-timeline li {
    min-width: 0;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    color: #303640;
    font-size: 9px;
}

.marketplace-surface .order-timeline i {
    width: 22px;
    height: 22px;
    background: #1a9662;
    font-size: 9px;
}

.marketplace-surface .order-timeline small {
    font-size: 7px;
}

.marketplace-surface .detail-note {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 9px;
    margin: 0 14px;
}

.marketplace-surface .detail-note label {
    display: grid;
    gap: 5px;
    color: #697382;
    font-size: 8px;
    font-weight: 720;
}

.marketplace-surface .detail-note input {
    min-height: 40px;
    border: 1px solid #dce1e8;
    border-radius: 8px;
    background: #fff;
    padding: 0 11px;
    color: #303640;
    font-size: 10px;
}

.marketplace-surface .detail-note .table-action {
    min-height: 40px;
    border-radius: 8px;
    padding-inline: 13px;
}

@media (max-width: 1220px) {
    .marketplace-surface .orders-layout {
        grid-template-columns: 1fr;
    }

    .marketplace-surface .order-detail-pane {
        border-left: 1px solid #dfe3e9;
    }
}

@media (max-width: 850px) {
    .marketplace-surface .orders-workspace {
        width: min(calc(100% - 28px), 1480px);
        padding-top: 18px;
    }

    .marketplace-surface .orders-page-heading {
        align-items: flex-start;
    }

    .marketplace-surface .orders-page-heading h1 {
        font-size: 25px;
    }

    .marketplace-surface .orders-filter-bar {
        grid-template-columns: 1fr 1fr;
    }

    .marketplace-surface .orders-filter-bar .toolbar-search {
        grid-column: 1 / -1;
    }

    .marketplace-surface .order-info-cards {
        grid-template-columns: 1fr;
    }

    .marketplace-surface .credential-grid {
        grid-template-columns: 1fr;
    }

    .marketplace-surface .credential-extra {
        grid-column: auto;
    }

    .marketplace-surface .order-timeline ol {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .marketplace-surface .orders-page-summary {
        display: none;
    }

    .marketplace-surface .orders-filter-bar {
        grid-template-columns: 1fr;
    }

    .marketplace-surface .orders-filter-bar .toolbar-search {
        grid-column: auto;
    }

    .marketplace-surface .customer-order-row {
        grid-template-columns: 8px minmax(0, 1fr) 28px;
        min-width: 0;
        gap: 9px;
    }

    .marketplace-surface .customer-order-row .product-cell,
    .marketplace-surface .order-row-summary,
    .marketplace-surface .order-row-states {
        grid-column: 2 / 4;
    }

    .marketplace-surface .row-more {
        grid-column: 3;
        grid-row: 1;
    }

    .marketplace-surface .order-timeline ol {
        grid-template-columns: 1fr;
    }

    .marketplace-surface .detail-note {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .marketplace-surface .customer-order-row {
        transition: none;
    }
}


/* Unified search fields */
.marketplace-surface .market-search input[type="search"],
.marketplace-surface .orders-filter-bar .toolbar-search input {
    min-height: 0;
    height: 100%;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.marketplace-surface .market-search:focus-within,
.marketplace-surface .orders-filter-bar .toolbar-search:focus-within {
    border-color: var(--cw-brand);
    box-shadow: 0 0 0 3px rgba(255, 81, 84, .11);
}


/* Unified Admin design system */
body.admin-surface,
body.commerce-workspace.admin-surface {
    --brand: #ff5154;
    --brand-2: #ed3e44;
    --brand-soft: #fff0f1;
    --accent: #ff5154;
    --accent-soft: #fff0f1;
    --ink: #191a1d;
    --muted: #737c8a;
    --line: #e1e5ea;
    --cream: #f7f8fa;
    --paper: #fff;
    --success: #168455;
    --success-soft: #eaf8f0;
    --warning: #c57916;
    --warning-soft: #fff5e6;
    --danger: #c43245;
    --danger-soft: #fff0f2;
    --shadow: 0 8px 24px rgba(28, 32, 43, .055);
    --shadow-hover: 0 15px 32px rgba(28, 32, 43, .1);
    font-family: Inter, "Be Vietnam Pro", "Segoe UI Variable Text", "Segoe UI", sans-serif;
}

body.admin-surface :is(button, input, select, textarea) {
    font-family: inherit;
}

.admin-surface .workspace {
    background: #f7f8fa;
}

.admin-surface .side-rail {
    background: #fff;
    border-right-color: #e4e7ec;
    box-shadow: 8px 0 28px rgba(29, 34, 44, .035);
}

.admin-surface .brand {
    min-height: 72px;
    color: #20242a;
    font-family: Inter, "Be Vietnam Pro", sans-serif;
}

.admin-surface .brand span {
    width: 39px;
    height: 39px;
    border: 1px solid #ffb9bc;
    border-radius: 11px;
    background: linear-gradient(145deg, #ff5d60, #f3454a);
    box-shadow: 0 8px 18px rgba(255, 81, 84, .2);
    color: #fff;
    transform: none;
}

.admin-surface .brand b {
    color: #20242a;
    font-size: 19px;
    font-weight: 820;
    letter-spacing: -.035em;
}

.admin-surface .rail-nav {
    gap: 4px;
}

.admin-surface .rail-nav small {
    color: #929aa6;
    font-size: 9px;
    font-weight: 820;
    letter-spacing: .1em;
}

.admin-surface .rail-nav a {
    min-height: 41px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #4b5563;
    font-size: 12px;
    font-weight: 650;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.admin-surface .rail-nav a .ui-icon {
    color: #77818e;
    transition: color .16s ease;
}

.admin-surface .rail-nav a:hover,
.admin-surface .rail-nav a:focus-visible {
    border-color: #ffd2d4;
    background: #fff7f7;
    color: #d9363e;
    transform: translateX(2px);
}

.admin-surface .rail-nav a:hover .ui-icon,
.admin-surface .rail-nav a:focus-visible .ui-icon {
    color: #ed3e44;
}

.admin-surface .rail-nav a.active,
.admin-surface .rail-nav a[aria-current="page"] {
    border-color: #ffd1d3;
    background: #fff0f1;
    color: #d9363e;
    box-shadow: none;
}

.admin-surface .rail-nav a.active .ui-icon,
.admin-surface .rail-nav a[aria-current="page"] .ui-icon {
    color: #ed3e44;
}

.admin-surface .rail-support {
    border-color: #e9dfe0;
    background: linear-gradient(155deg, #fff8f8, #fff);
}

.admin-surface .rail-support>span {
    background: #eaf8f0;
    color: #168455;
}

.admin-surface .rail-support a {
    border: 0;
    background: #ff5154;
    box-shadow: 0 8px 18px rgba(255, 81, 84, .18);
}

.admin-surface .topbar {
    min-height: 72px;
    height: 72px;
    border-bottom-color: #e5e8ed;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 6px 22px rgba(25, 29, 40, .035);
}

.admin-surface .global-search {
    height: 42px;
    border: 1px solid #dfe3e9;
    border-radius: 10px;
    background: #fff;
    box-shadow: none;
}

.admin-surface .global-search:focus-within {
    border-color: #ff8e92;
    box-shadow: 0 0 0 3px rgba(255, 81, 84, .11);
}

.admin-surface .global-search input,
.admin-surface .global-search input[type="search"] {
    min-height: 0;
    height: 100%;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    color: #30343a;
    font-size: 12px;
}

.admin-surface .global-search .ui-icon {
    color: #8a929e;
}

.admin-surface .global-search kbd {
    border-color: #e1e5eb;
    background: #f7f8fa;
    color: #7b8491;
}

.admin-surface .top-actions {
    gap: 10px;
}

.admin-surface .topup-button {
    border: 1px solid #ff5154;
    background: #ff5154;
    box-shadow: 0 8px 18px rgba(255, 81, 84, .18);
    font-size: 11px;
}

.admin-surface .topup-button:hover {
    background: #ed3e44;
    box-shadow: 0 12px 24px rgba(255, 81, 84, .24);
}

.admin-surface .top-icon {
    border-color: #e0e4e9;
    background: #fff;
    color: #626d7b;
}

.admin-surface .top-icon:hover {
    border-color: #ffb9bc;
    background: #fff7f7;
    color: #ed3e44;
}

.admin-surface .account-chip>span {
    background: #fff0f1;
    color: #ed3e44;
    box-shadow: inset 0 0 0 1px #ffd1d3;
}

.admin-surface .workspace-main {
    background: #f7f8fa;
}

.admin-surface .admin-page {
    width: min(100%, 1540px);
    margin-inline: auto;
    padding: 30px 28px 44px;
}

.admin-surface .admin-title {
    margin-bottom: 20px;
    padding-bottom: 17px;
    border-bottom: 1px solid #e1e5ea;
}

.admin-surface .admin-title h1 {
    margin: 4px 0 5px;
    color: #20242a;
    font-size: 29px;
    font-weight: 850;
    letter-spacing: -.04em;
}

.admin-surface .admin-title p:not(.eyebrow) {
    color: #737c8a;
    font-size: 12px;
}

.admin-surface .admin-title .eyebrow {
    color: #ed3e44;
    font-size: 9px;
    font-weight: 820;
    letter-spacing: .1em;
}

.admin-surface .admin-page :is(.admin-panel, .mock-panel, .admin-form, .mock-kpi, .metric-grid>div) {
    border-color: #e0e4e9;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(25, 29, 40, .045);
}

.admin-surface .admin-page :is(.admin-panel, .mock-panel, .admin-form, .mock-kpi, .metric-grid>div):hover {
    border-color: #d7dce4;
}

.admin-surface .admin-panel > header,
.admin-surface .mock-panel > header,
.admin-surface .panel-heading {
    border-bottom-color: #e6e9ed;
}

.admin-surface .admin-page :is(.admin-panel h2, .mock-panel h2, .panel-heading h2) {
    color: #252a31;
    font-size: 16px;
    font-weight: 820;
    letter-spacing: -.02em;
}

.admin-surface .admin-page :is(.admin-panel header small, .mock-panel header p, .panel-heading p) {
    color: #7b8491;
    font-size: 10px;
}

.admin-surface .admin-page :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) {
    min-height: 40px;
    border: 1px solid #dce1e8;
    border-radius: 8px;
    background: #fff;
    color: #303640;
    font-size: 12px;
    line-height: 1.35;
}

.admin-surface .admin-page :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea):focus {
    border-color: #ff8e92;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(255, 81, 84, .11);
}

.admin-surface .admin-page label {
    color: #4b5563;
    font-size: 10px;
    font-weight: 760;
}

.admin-surface .admin-page label>small {
    color: #89919d;
    font-size: 9px;
}

.admin-surface .admin-page :is(.button, .mock-primary, .table-action) {
    border: 1px solid #ff5154;
    border-radius: 8px;
    background: #ff5154;
    color: #fff;
    box-shadow: 0 7px 16px rgba(255, 81, 84, .16);
    font-size: 10px;
    font-weight: 800;
}

.admin-surface .admin-page :is(.button, .mock-primary, .table-action):hover {
    border-color: #ed3e44;
    background: #ed3e44;
    transform: translateY(-1px);
}

.admin-surface .admin-page :is(.mock-secondary, .table-action.secondary) {
    border: 1px solid #dce1e8;
    border-radius: 8px;
    background: #fff;
    color: #4b5563;
    box-shadow: none;
}

.admin-surface .admin-page .danger-action {
    border: 1px solid #ffd1d3;
    border-radius: 7px;
    background: #fff0f1;
    color: #c43245;
    font-size: 10px;
}

.admin-surface .admin-page :is(.data-table, .mock-table) {
    overflow: auto;
    border-color: #e0e4e9;
    background: #fff;
}

.admin-surface .admin-page :is(.data-head, .mock-th) {
    background: #f8f9fb;
    color: #7a8491;
    font-size: 9px;
    font-weight: 820;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.admin-surface .admin-page :is(.data-row, .mock-tr) {
    min-height: 46px;
    border-bottom-color: #e8ebef;
    color: #303640;
    font-size: 11px;
}

.admin-surface .admin-page :is(.data-row:not(.data-head), .mock-tr:not(.mock-th)):hover {
    background: #fff8f8;
}

.admin-surface .admin-page .status-pill {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0 8px;
    font-size: 9px;
    font-weight: 760;
}

.admin-surface .admin-page .status-pill.success {
    border-color: #b9e2d2;
    background: #eaf8f0;
    color: #168455;
}

.admin-surface .admin-page .status-pill.warning {
    border-color: #f3d5a6;
    background: #fff5e6;
    color: #b66b10;
}

.admin-surface .admin-page .status-pill.danger {
    border-color: #ffd1d3;
    background: #fff0f1;
    color: #c43245;
}

.admin-surface .admin-page :is(.notice-success, .notice-error) {
    border-radius: 9px;
    font-size: 11px;
}

.admin-surface .admin-page .mock-kpi-grid,
.admin-surface .admin-page .metric-grid {
    gap: 14px;
}

.admin-surface .admin-page .metric-grid>div {
    min-height: 124px;
    display: grid;
    grid-template-columns: 43px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-content: center;
    gap: 3px 12px;
    padding: 17px;
}

.admin-surface .admin-page .metric-grid .metric-icon {
    position: static;
    grid-row: 1 / span 3;
    grid-column: 1;
    width: 43px;
    height: 43px;
    border-radius: 12px;
    background: #fff0f1;
    color: #ed3e44;
}

.admin-surface .admin-page .metric-grid small,
.admin-surface .admin-page .metric-grid strong,
.admin-surface .admin-page .metric-grid em {
    grid-column: 2;
    margin: 0 !important;
}

.admin-surface .admin-page .metric-grid small {
    color: #697382;
    font-size: 9px;
    font-weight: 760;
}

.admin-surface .admin-page .metric-grid strong {
    color: #252a31;
    font-size: 22px;
    font-weight: 830;
    line-height: 1.05;
}

.admin-surface .admin-page .metric-grid em {
    color: #7b8491;
    font-size: 9px;
    font-style: normal;
}

.admin-surface .admin-page .mock-kpi strong {
    color: #252a31;
}

.admin-surface .admin-page .form-grid,
.admin-surface .admin-page .admin-grid {
    gap: 15px;
}

.admin-surface .admin-page .inline-actions,
.admin-surface .admin-page .table-actions,
.admin-surface .admin-page .form-actions {
    gap: 7px;
}

.admin-surface .admin-page .admin-subnav {
    background: #fff;
    border-bottom: 1px solid #e2e6eb;
    color: #667085;
}

.admin-surface .product-editor-page {
    --product-editor-accent: #ff5154;
    --product-editor-accent-soft: #fff0f1;
}

.admin-surface .product-editor-page :is(.product-media-editor, .discount-tier-editor, .editor-collapsible)[open] > summary > i {
    border-color: #ffb9bc;
}

@media (max-width: 1000px) {
    .admin-surface .admin-page {
        width: 100%;
    }
}

@media (max-width: 850px) {
    .admin-surface .admin-page {
        padding: 24px 16px 36px;
    }

    .admin-surface .admin-title h1 {
        font-size: 25px;
    }
}



/* Admin clarity pass */
.admin-surface .side-rail {
    padding-inline: 12px;
}

.admin-surface .rail-support {
    display: none;
}

.admin-surface .admin-rail-nav {
    min-height: 0;
    flex: 1;
    gap: 6px;
    overflow-y: auto;
    padding: 2px 1px 14px;
    scrollbar-width: thin;
    scrollbar-color: #d8dde5 transparent;
}

.admin-surface .admin-rail-nav .rail-nav-label {
    margin: 8px 10px 3px;
}

.admin-surface .admin-rail-nav > a {
    min-height: 40px;
}

.admin-surface .admin-rail-nav .rail-nav-group {
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
}

.admin-surface .admin-rail-nav .rail-nav-group[open] {
    border-color: #e9edf2;
    background: #fafbfc;
}

.admin-surface .admin-rail-nav .rail-nav-group > summary {
    min-height: 39px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    list-style: none;
    border-radius: 9px;
    padding: 8px 10px;
    color: #626d7b;
    cursor: pointer;
    font-size: 10px;
    font-weight: 780;
    letter-spacing: .015em;
    transition: background-color .16s ease, color .16s ease;
}

.admin-surface .admin-rail-nav .rail-nav-group > summary::-webkit-details-marker {
    display: none;
}

.admin-surface .admin-rail-nav .rail-nav-group > summary > span {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
}

.admin-surface .admin-rail-nav .rail-nav-group > summary > span > .ui-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    color: #7e8794;
}

.admin-surface .admin-rail-nav .rail-nav-group > summary:hover,
.admin-surface .admin-rail-nav .rail-nav-group > summary:focus-visible {
    outline: 0;
    background: #f3f5f7;
    color: #303640;
}

.admin-surface .admin-rail-nav .rail-nav-group > summary:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 81, 84, .12);
}

.admin-surface .admin-rail-nav .rail-nav-group:has(a.active) > summary,
.admin-surface .admin-rail-nav .rail-nav-group:has(a[aria-current="page"]) > summary {
    background: #fff0f1;
    color: #d9363e;
}

.admin-surface .admin-rail-nav .rail-nav-group:has(a.active) > summary > span > .ui-icon,
.admin-surface .admin-rail-nav .rail-nav-group:has(a[aria-current="page"]) > summary > span > .ui-icon {
    color: #ed3e44;
}

.admin-surface .admin-rail-nav .rail-group-chevron {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    color: #9aa2ad;
    transition: transform .16s ease;
}

.admin-surface .admin-rail-nav .rail-nav-group[open] > summary .rail-group-chevron {
    transform: rotate(180deg);
}

.admin-surface .admin-rail-nav .rail-nav-group-links {
    display: grid;
    gap: 2px;
    padding: 2px 4px 5px;
}

.admin-surface .admin-rail-nav .rail-nav-group-links a {
    min-height: 34px;
    gap: 9px;
    border-radius: 7px;
    padding: 7px 9px 7px 12px;
    font-size: 10px;
    font-weight: 640;
}

.admin-surface .admin-rail-nav .rail-nav-group-links a .ui-icon {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
}

.admin-surface .admin-rail-nav .rail-nav-store {
    margin-top: 4px;
    border-color: #e3e7ec;
    background: #fff;
    color: #4d5866;
}

.admin-surface .admin-rail-nav .rail-nav-store small {
    margin: 0 0 0 auto;
    color: #9aa2ad;
    font-size: 11px;
}

.admin-surface .admin-subnav {
    display: none !important;
}

.admin-surface .topbar {
    padding-inline: 24px;
}

.admin-surface .admin-command-search {
    position: relative;
    width: min(600px, 50vw);
    margin-right: auto;
}

.admin-surface .admin-command-results {
    position: absolute;
    top: calc(100% + 9px);
    left: 0;
    z-index: 120;
    width: min(560px, calc(100vw - 32px));
    overflow: hidden;
    border: 1px solid #dfe3e9;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(20, 28, 42, .14);
    padding: 6px;
}

.admin-surface .admin-command-results[hidden] {
    display: none;
}

.admin-surface .admin-command-results a {
    min-height: 43px;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    border-radius: 7px;
    padding: 7px 9px;
    color: #303640;
    font-size: 11px;
    font-weight: 720;
}

.admin-surface .admin-command-results a:hover,
.admin-surface .admin-command-results a:focus-visible {
    outline: 0;
    background: #fff0f1;
    color: #d9363e;
}

.admin-surface .admin-command-results a .ui-icon {
    width: 17px;
    height: 17px;
    color: #7f8894;
}

.admin-surface .admin-command-results a small {
    color: #9098a4;
    font-size: 8px;
    font-weight: 620;
}

.admin-surface .admin-command-empty {
    margin: 0;
    padding: 13px 11px;
    color: #7b8491;
    font-size: 11px;
}

.admin-surface .admin-store-link {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #dfe3e9;
    border-radius: 8px;
    background: #fff;
    padding: 0 11px;
    color: #535e6c;
    font-size: 10px;
    font-weight: 760;
    white-space: nowrap;
}

.admin-surface .admin-store-link:hover {
    border-color: #ffb9bc;
    background: #fff7f7;
    color: #d9363e;
}

.admin-surface .admin-store-link .ui-icon {
    width: 15px;
    height: 15px;
}

.admin-surface .account-chip {
    min-width: 154px;
    gap: 7px;
    padding-left: 12px;
}

.admin-surface .account-chip .account-chevron {
    width: 14px;
    height: 14px;
    color: #9aa2ad;
}

.admin-surface .admin-page {
    padding-top: 24px;
}

.admin-surface .admin-title {
    min-height: 66px;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 13px;
}

.admin-surface .admin-title h1 {
    margin-top: 2px;
    font-size: clamp(24px, 2vw, 29px);
    line-height: 1.12;
}

.admin-surface .admin-title p:not(.eyebrow) {
    max-width: 760px;
    margin-top: 4px;
    line-height: 1.45;
}

.admin-surface .admin-title .eyebrow {
    margin-bottom: 2px;
    letter-spacing: .08em;
}

.admin-surface .admin-title > :is(.button, .table-action) {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding-inline: 12px;
    white-space: nowrap;
}

.admin-surface .admin-page :is(.button, .mock-primary, .table-action, .mock-secondary, .danger-action) > .action-icon,
.admin-surface .admin-page :is(.button, .mock-primary, .table-action, .mock-secondary, .danger-action) > .ui-icon {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}

.admin-surface .admin-page :is(.admin-panel, .mock-panel, .admin-form, .mock-kpi, .metric-grid > div) {
    box-shadow: 0 4px 15px rgba(25, 29, 40, .035);
}

.admin-surface .admin-panel > header,
.admin-surface .mock-panel > header,
.admin-surface .panel-heading {
    min-height: 52px;
    padding: 13px 16px;
}

.admin-surface .admin-page :is(.admin-panel h2, .mock-panel h2, .panel-heading h2) {
    font-size: 14px;
}

.admin-surface .admin-page :is(.admin-panel header small, .mock-panel header p, .panel-heading p) {
    line-height: 1.4;
}

.admin-surface .admin-form {
    padding: 18px;
}

.admin-surface .admin-form > h2:first-child {
    margin-top: 0;
    margin-bottom: 13px;
    font-size: 15px;
}

.admin-surface .admin-form > p {
    color: #7b8491;
    font-size: 10px;
    line-height: 1.5;
}

.admin-surface .admin-page :is(.data-table, .mock-table) {
    max-height: min(640px, calc(100vh - 235px));
    scrollbar-width: thin;
    scrollbar-color: #d8dde5 transparent;
}

.admin-surface .admin-page :is(.data-head, .mock-th) {
    position: sticky;
    top: 0;
    z-index: 3;
    box-shadow: 0 1px 0 #e5e8ed;
}

.admin-surface .admin-page :is(.data-row, .mock-tr) {
    min-height: 43px;
}

.admin-surface .admin-page :is(.data-row, .mock-tr) > span {
    min-width: 0;
}

.admin-surface .admin-page :is(.data-row, .mock-tr) small {
    color: #8a929e;
    line-height: 1.35;
}

.admin-surface .admin-page .inline-actions {
    flex-wrap: wrap;
}

.admin-surface .admin-page .settings-toggle-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 7px;
    border: 1px solid #e6e9ed;
    border-radius: 9px;
    background: #fafbfc;
    padding: 10px;
}

.admin-surface .admin-page .settings-toggle-list > label {
    min-height: 36px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e6e9ed;
    border-radius: 7px;
    background: #fff;
    padding: 8px 10px;
    font-size: 9px;
    cursor: pointer;
}

.admin-surface .admin-page input[type="checkbox"],
.admin-surface .admin-page input[type="radio"] {
    accent-color: #ff5154;
}

.admin-surface .admin-create-drawer {
    overflow: hidden;
    margin-top: 14px;
}

.admin-surface .admin-create-drawer > summary {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    list-style: none;
    padding: 12px 15px;
    cursor: pointer;
}

.admin-surface .admin-create-drawer > summary::-webkit-details-marker {
    display: none;
}

.admin-surface .admin-create-drawer > summary > span {
    display: flex;
    align-items: center;
    gap: 11px;
}

.admin-surface .admin-create-drawer > summary > span > .ui-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #fff0f1;
    color: #ed3e44;
    padding: 8px;
}

.admin-surface .admin-create-drawer > summary b {
    display: block;
    color: #2b3037;
    font-size: 13px;
}

.admin-surface .admin-create-drawer > summary small {
    display: block;
    margin-top: 2px;
    color: #7d8693;
    font-size: 9px;
    font-weight: 520;
}

.admin-surface .admin-create-drawer .drawer-chevron {
    width: 16px;
    height: 16px;
    color: #8e97a3;
    transition: transform .16s ease;
}

.admin-surface .admin-create-drawer[open] .drawer-chevron {
    transform: rotate(180deg);
}

.admin-surface .admin-create-drawer[open] > summary {
    border-bottom: 1px solid #e7eaee;
    background: #fafbfc;
}

.admin-surface .admin-create-drawer > .admin-form {
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.admin-surface .form-security-note {
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #dce9e3;
    border-radius: 7px;
    background: #f3faf7;
    padding: 9px 10px;
    color: #39705c !important;
}

.admin-surface .form-security-note .ui-icon {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
}

.admin-surface .admin-page .metric-grid .metric-icon .ui-icon {
    width: 21px;
    height: 21px;
}

.admin-surface .admin-page .metric-grid .metric-icon.blue {
    background: #eaf2ff;
    color: #2f6fed;
}

.admin-surface .admin-page .metric-grid .metric-icon.green {
    background: #e9f8f1;
    color: #1f8f61;
}

.admin-surface .admin-page .metric-grid .metric-icon.orange {
    background: #fff3e7;
    color: #c96d12;
}

.admin-surface .admin-page .metric-grid .metric-icon.purple {
    background: #f3edff;
    color: #7656d6;
}

@media (max-width: 900px) {
    .admin-surface .topbar {
        padding-inline: 14px;
    }

    .admin-surface .admin-command-search {
        width: min(100%, 480px);
    }

    .admin-surface .admin-store-link span,
    .admin-surface .account-chip small {
        display: none;
    }

    .admin-surface .account-chip {
        min-width: 0;
        border-left: 0;
        padding-left: 0;
    }

    .admin-surface .admin-store-link {
        width: 38px;
        justify-content: center;
        padding: 0;
    }
}

@media (max-width: 560px) {
    .admin-surface .topbar {
        gap: 8px;
    }

    .admin-surface .admin-command-search {
        width: auto;
        flex: 1;
    }

    .admin-surface .admin-command-search kbd {
        display: none;
    }

    .admin-surface .admin-title {
        align-items: flex-start;
    }

    .admin-surface .admin-title > :is(.button, .table-action) {
        width: 100%;
        justify-content: center;
    }

    .admin-surface .admin-page .settings-toggle-list {
        grid-template-columns: 1fr;
    }

    .admin-surface .admin-page :is(.data-table, .mock-table) {
        max-height: min(560px, calc(100vh - 190px));
    }
}


/* Warehouse master-detail */
.admin-surface .warehouse-browser-page {
    max-width: 1600px;
}

.admin-surface .warehouse-browser {
    display: grid;
    grid-template-columns: 292px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
}

.admin-surface .warehouse-selector {
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 108px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.admin-surface .warehouse-selector-head {
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 11px;
    border-bottom: 1px solid #e7eaee;
    padding: 13px 14px;
}

.admin-surface .warehouse-selector-head > span {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #fff0f1;
    color: #ed3e44;
}

.admin-surface .warehouse-selector-head > span .ui-icon {
    width: 18px;
    height: 18px;
}

.admin-surface .warehouse-selector-head h2 {
    margin: 0;
    color: #292e35;
    font-size: 13px;
}

.admin-surface .warehouse-selector-head p {
    margin: 3px 0 0;
    color: #7f8895;
    font-size: 9px;
}

.admin-surface .warehouse-selector-search {
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 10px 10px 6px;
    border: 1px solid #dfe3e9;
    border-radius: 8px;
    background: #fff;
    padding: 0 9px;
}

.admin-surface .warehouse-selector-search:focus-within {
    border-color: #ff8e92;
    box-shadow: 0 0 0 3px rgba(255, 81, 84, .1);
}

.admin-surface .warehouse-selector-search .ui-icon {
    width: 15px;
    height: 15px;
    color: #8c95a1;
}

.admin-surface .warehouse-selector-search input {
    min-height: 36px !important;
    width: 100%;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    font-size: 10px !important;
}

.admin-surface .warehouse-category-list {
    min-height: 0;
    overflow-y: auto;
    padding: 3px 8px 10px;
    scrollbar-width: thin;
    scrollbar-color: #d8dde5 transparent;
}

.admin-surface .warehouse-category[hidden],
.admin-surface .warehouse-product-link[hidden] {
    display: none !important;
}

.admin-surface .warehouse-category > header {
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 6px;
    color: #747e8b;
}

.admin-surface .warehouse-category > header > span {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 8px;
    font-weight: 810;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.admin-surface .warehouse-category > header .ui-icon {
    width: 13px;
    height: 13px;
}

.admin-surface .warehouse-category > header small {
    min-width: 20px;
    border-radius: 999px;
    background: #f0f2f5;
    padding: 2px 6px;
    color: #7c8591;
    font-size: 8px;
    text-align: center;
}

.admin-surface .warehouse-category > div {
    display: grid;
    gap: 3px;
    margin-bottom: 7px;
}

.admin-surface .warehouse-product-link {
    min-height: 54px;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 7px;
    color: #46515e;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.admin-surface .warehouse-product-link:hover,
.admin-surface .warehouse-product-link:focus-visible {
    border-color: #ffd3d5;
    outline: 0;
    background: #fff7f7;
    color: #d9363e;
}

.admin-surface .warehouse-product-link.active {
    border-color: #ffc7ca;
    background: #fff0f1;
    color: #c92f38;
}

.admin-surface .warehouse-product-avatar {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #f0f2f5;
    color: #67717e;
    font-size: 11px;
    font-weight: 850;
}

.admin-surface .warehouse-product-link.active .warehouse-product-avatar {
    background: #ff5154;
    color: #fff;
}

.admin-surface .warehouse-product-copy {
    min-width: 0;
}

.admin-surface .warehouse-product-copy b,
.admin-surface .warehouse-product-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-surface .warehouse-product-copy b {
    color: inherit;
    font-size: 10px;
}

.admin-surface .warehouse-product-copy small {
    margin-top: 3px;
    color: #8a929e;
    font-size: 7px;
}

.admin-surface .warehouse-product-count {
    min-width: 33px;
    text-align: right;
}

.admin-surface .warehouse-product-count strong,
.admin-surface .warehouse-product-count small {
    display: block;
}

.admin-surface .warehouse-product-count strong {
    color: #2f3741;
    font-size: 11px;
}

.admin-surface .warehouse-product-count small {
    margin-top: 1px;
    color: #929aa5;
    font-size: 7px;
}

.admin-surface .warehouse-selector-empty {
    margin: 8px;
    padding: 18px 10px;
    color: #7f8894;
    font-size: 9px;
    text-align: center;
}

.admin-surface .warehouse-detail {
    min-width: 0;
    display: grid;
    gap: 13px;
}

.admin-surface .warehouse-selected-card > header {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
}

.admin-surface .warehouse-selected-identity {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}

.admin-surface .warehouse-selected-identity > span {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: linear-gradient(145deg, #ff5d60, #ed3e44);
    box-shadow: 0 8px 20px rgba(255, 81, 84, .18);
    color: #fff;
    font-size: 17px;
    font-weight: 860;
}

.admin-surface .warehouse-selected-identity small,
.admin-surface .warehouse-selected-identity p {
    display: block;
    margin: 0;
    color: #7e8793;
    font-size: 8px;
}

.admin-surface .warehouse-selected-identity h2 {
    margin: 3px 0 4px;
    color: #242930;
    font-size: 17px;
    letter-spacing: -.02em;
}

.admin-surface .warehouse-selected-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-surface .warehouse-selected-actions :is(a, button) {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.admin-surface .warehouse-selected-actions .ui-icon {
    width: 14px;
    height: 14px;
}

.admin-surface .warehouse-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.admin-surface .warehouse-metric-grid > article {
    min-height: 86px;
    display: grid;
    grid-template-columns: 37px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    border: 1px solid #e0e4e9;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(25, 29, 40, .03);
    padding: 12px;
}

.admin-surface .warehouse-metric-icon {
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    border-radius: 9px;
}

.admin-surface .warehouse-metric-icon .ui-icon {
    width: 18px;
    height: 18px;
}

.admin-surface .warehouse-metric-icon.stock {
    background: #eaf2ff;
    color: #2f6fed;
}

.admin-surface .warehouse-metric-icon.live {
    background: #e9f8f1;
    color: #168455;
}

.admin-surface .warehouse-metric-icon.warning {
    background: #fff5e6;
    color: #b66b10;
}

.admin-surface .warehouse-metric-icon.die {
    background: #fff0f1;
    color: #c43245;
}

.admin-surface .warehouse-metric-icon.sold {
    background: #f3edff;
    color: #7656d6;
}

.admin-surface .warehouse-metric-icon.revenue {
    background: #edf8f8;
    color: #16777c;
}

.admin-surface .warehouse-metric-grid small,
.admin-surface .warehouse-metric-grid strong,
.admin-surface .warehouse-metric-grid em {
    display: block;
}

.admin-surface .warehouse-metric-grid small {
    color: #75808d;
    font-size: 7px;
    font-weight: 820;
    letter-spacing: .045em;
}

.admin-surface .warehouse-metric-grid strong {
    overflow: hidden;
    margin-top: 3px;
    color: #252a31;
    font-size: 17px;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-surface .warehouse-metric-grid em {
    margin-top: 4px;
    color: #8b939e;
    font-size: 7px;
    font-style: normal;
}

.admin-surface .warehouse-status-tabs {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 5px;
    overflow-x: auto;
    border: 1px solid #e0e4e9;
    border-radius: 9px;
    background: #fff;
    padding: 6px;
}

.admin-surface .warehouse-status-tabs a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 7px;
    padding: 7px 11px;
    color: #66717e;
    font-size: 9px;
    font-weight: 730;
    white-space: nowrap;
}

.admin-surface .warehouse-status-tabs a:hover {
    background: #f5f6f8;
    color: #303640;
}

.admin-surface .warehouse-status-tabs a.active {
    background: #fff0f1;
    color: #d9363e;
}

.admin-surface .warehouse-status-tabs a span {
    min-width: 22px;
    border-radius: 999px;
    background: #eff1f4;
    padding: 2px 6px;
    color: #6f7985;
    font-size: 8px;
    text-align: center;
}

.admin-surface .warehouse-status-tabs a.active span {
    background: #ffdadd;
    color: #c92f38;
}

.admin-surface .warehouse-tool-drawers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.admin-surface .warehouse-tool-drawer {
    overflow: hidden;
}

.admin-surface .warehouse-tool-drawer > summary {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    list-style: none;
    padding: 11px 13px;
    cursor: pointer;
}

.admin-surface .warehouse-tool-drawer > summary::-webkit-details-marker {
    display: none;
}

.admin-surface .warehouse-tool-drawer > summary > span {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-surface .warehouse-tool-drawer > summary > span > .ui-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 8px;
    background: #fff0f1;
    color: #ed3e44;
    padding: 8px;
}

.admin-surface .warehouse-tool-drawer > summary b,
.admin-surface .warehouse-tool-drawer > summary small {
    display: block;
}

.admin-surface .warehouse-tool-drawer > summary b {
    color: #303640;
    font-size: 10px;
}

.admin-surface .warehouse-tool-drawer > summary small {
    overflow: hidden;
    margin-top: 3px;
    color: #858e99;
    font-size: 7px;
    font-weight: 520;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-surface .warehouse-tool-drawer > summary .drawer-chevron {
    width: 15px;
    height: 15px;
    color: #8d96a2;
    transition: transform .16s ease;
}

.admin-surface .warehouse-tool-drawer[open] > summary {
    border-bottom: 1px solid #e7eaee;
    background: #fafbfc;
}

.admin-surface .warehouse-tool-drawer[open] > summary .drawer-chevron {
    transform: rotate(180deg);
}

.admin-surface .warehouse-tool-drawer .admin-form {
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding-top: 14px;
}

.admin-surface .warehouse-data-panel {
    overflow: hidden;
}

.admin-surface .warehouse-data-panel > .panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-surface .warehouse-panel-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-surface .warehouse-panel-actions form {
    margin: 0;
}

.admin-surface .warehouse-filter-bar {
    display: grid;
    grid-template-columns: minmax(190px, 1.5fr) minmax(110px, .7fr) minmax(120px, .65fr) minmax(120px, .65fr) auto auto;
    gap: 7px;
    border-bottom: 1px solid #e7eaee;
    background: #fafbfc;
    padding: 10px 12px;
}

.admin-surface .warehouse-filter-bar > :is(input, select, button, a),
.admin-surface .warehouse-filter-search {
    min-height: 36px;
}

.admin-surface .warehouse-filter-search {
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #dce1e8;
    border-radius: 7px;
    background: #fff;
    padding-inline: 9px;
}

.admin-surface .warehouse-filter-search .ui-icon {
    width: 14px;
    height: 14px;
    color: #8a929e;
}

.admin-surface .warehouse-filter-search input {
    min-height: 34px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.admin-surface .warehouse-filter-bar .mock-secondary {
    display: grid;
    place-items: center;
    border: 1px solid #dce1e8;
    border-radius: 7px;
    background: #fff;
    color: #596472;
    padding-inline: 10px;
    font-size: 9px;
    font-weight: 730;
}

.admin-surface .warehouse-bulk-bar {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid #e7eaee;
    background: #fff;
    padding: 8px 12px;
}

.admin-surface .warehouse-bulk-bar > span {
    color: #707a87;
    font-size: 9px;
}

.admin-surface .warehouse-bulk-bar > span b {
    color: #d9363e;
}

.admin-surface .warehouse-bulk-bar > div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.admin-surface .warehouse-bulk-bar > .warehouse-selection-summary {
    gap: 12px;
}

.admin-surface .warehouse-select-all-control {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 5px 9px;
    border: 1px solid #dce1e8;
    border-radius: 7px;
    background: #fff;
    color: #273142;
    cursor: pointer;
    user-select: none;
}

.admin-surface .warehouse-select-all-control input {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    margin: 0;
    accent-color: #ff4f63;
}

.admin-surface .warehouse-select-all-control > span {
    font-size: 9px;
    font-weight: 800;
    line-height: 1.2;
}

.admin-surface .warehouse-select-all-control small {
    display: block;
    margin-top: 2px;
    color: #737e8d;
    font-size: 7px;
    font-weight: 600;
}

.admin-surface .warehouse-selected-count {
    color: #707a87;
    font-size: 9px;
    white-space: nowrap;
}

.admin-surface .warehouse-selected-count b {
    color: #d9363e;
}

html[data-color-scheme="dark"] body.admin-surface .warehouse-select-all-control {
    border-color: var(--admin-dark-line-strong) !important;
    background: var(--admin-dark-surface) !important;
    color: var(--admin-dark-ink) !important;
}

html[data-color-scheme="dark"] body.admin-surface .warehouse-select-all-control small,
html[data-color-scheme="dark"] body.admin-surface .warehouse-selected-count {
    color: var(--admin-dark-muted) !important;
}

html[data-color-scheme="dark"] body.admin-surface .warehouse-selected-count b {
    color: #ff8b9a !important;
}

.admin-surface .warehouse-bulk-bar select {
    min-height: 32px;
    max-width: 180px;
}

.admin-surface .warehouse-inventory-table {
    border: 0 !important;
    border-radius: 0 !important;
}

.admin-surface .warehouse-inventory-table .mock-tr {
    grid-template-columns: .72fr 2fr .8fr .75fr .85fr .95fr 1.15fr;
    min-width: 950px;
}

.admin-surface .warehouse-id-cell {
    display: flex !important;
    align-items: center;
    gap: 7px;
}

.admin-surface .warehouse-id-cell input {
    flex: 0 0 auto;
}

.admin-surface .warehouse-account-cell code {
    display: block;
    overflow: hidden;
    max-width: 100%;
    color: #384250;
    text-overflow: ellipsis;
    white-space: nowrap;
    user-select: all;
}

.admin-surface .warehouse-inventory-table .status-pill {
    width: fit-content;
    margin-top: 4px;
}

.admin-surface .status-pill.neutral {
    border-color: #dce1e8;
    background: #f2f4f6;
    color: #697381;
}

.admin-surface .warehouse-row-actions {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.admin-surface .warehouse-row-actions form {
    margin: 0;
}

.admin-surface .warehouse-row-actions :is(button, a) {
    min-height: 27px;
    padding: 5px 7px;
}

.admin-surface .warehouse-data-empty {
    min-height: 250px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 7px;
    padding: 28px;
    color: #7d8692;
    text-align: center;
}

.admin-surface .warehouse-data-empty > .ui-icon,
.admin-surface .warehouse-empty-state > .ui-icon {
    width: 38px;
    height: 38px;
    color: #ff7d81;
}

.admin-surface .warehouse-data-empty h3,
.admin-surface .warehouse-empty-state h2 {
    margin: 0;
    color: #303640;
    font-size: 14px;
}

.admin-surface .warehouse-data-empty p,
.admin-surface .warehouse-empty-state p {
    max-width: 480px;
    margin: 0;
    font-size: 9px;
    line-height: 1.5;
}

.admin-surface .warehouse-data-empty a {
    margin-top: 5px;
}

.admin-surface .warehouse-empty-state {
    min-height: 420px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    padding: 30px;
    text-align: center;
}

.admin-surface .warehouse-sales-panel {
    overflow: hidden;
}

.admin-surface .warehouse-sales-list {
    display: grid;
}

.admin-surface .warehouse-sales-list > a {
    min-height: 56px;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(120px, .6fr) auto 16px;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #e8ebef;
    padding: 9px 14px;
    color: #404a57;
}

.admin-surface .warehouse-sales-list > a:hover {
    background: #fff8f8;
}

.admin-surface .warehouse-sales-list b,
.admin-surface .warehouse-sales-list small {
    display: block;
}

.admin-surface .warehouse-sales-list b {
    font-size: 9px;
}

.admin-surface .warehouse-sales-list small {
    margin-top: 3px;
    color: #858e99;
    font-size: 7px;
}

.admin-surface .warehouse-sales-list > a > .ui-icon {
    width: 14px;
    height: 14px;
    color: #99a1ac;
    transform: rotate(-90deg);
}

.admin-surface .warehouse-sales-empty {
    padding: 30px 16px;
    color: #7d8692;
    font-size: 9px;
    text-align: center;
}

@media (max-width: 1180px) {
    .admin-surface .warehouse-browser {
        grid-template-columns: 1fr;
    }

    .admin-surface .warehouse-selector {
        position: static;
        max-height: none;
    }

    .admin-surface .warehouse-category-list {
        max-height: 360px;
    }

    .admin-surface .warehouse-metric-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-surface .warehouse-filter-bar {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .admin-surface .warehouse-selected-card > header,
    .admin-surface .warehouse-data-panel > .panel-heading,
    .admin-surface .warehouse-bulk-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-surface .warehouse-selected-actions,
    .admin-surface .warehouse-panel-actions,
    .admin-surface .warehouse-bulk-bar > div {
        width: 100%;
        justify-content: flex-start;
    }

    .admin-surface .warehouse-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-surface .warehouse-tool-drawers {
        grid-template-columns: 1fr;
    }

    .admin-surface .warehouse-filter-bar {
        grid-template-columns: 1fr 1fr;
    }

    .admin-surface .warehouse-filter-search {
        grid-column: 1 / -1;
    }

    .admin-surface .warehouse-sales-list > a {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .admin-surface .warehouse-sales-list > a > :nth-child(2) {
        display: none;
    }

    .admin-surface .warehouse-sales-list > a > .ui-icon {
        display: none;
    }
}

@media (max-width: 460px) {
    .admin-surface .warehouse-metric-grid,
    .admin-surface .warehouse-filter-bar {
        grid-template-columns: 1fr;
    }

    .admin-surface .warehouse-filter-search {
        grid-column: auto;
    }

    .admin-surface .warehouse-selected-actions :is(a, button) {
        flex: 1;
        justify-content: center;
    }

    .admin-surface .warehouse-status-tabs {
        margin-inline: -2px;
    }
}


/* Supplier saved configuration */
.admin-surface .supplier-saved-config {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 14px;
    border: 1px solid #dce7e2;
    border-radius: 9px;
    background: #f7fbf9;
    padding: 10px;
}

.admin-surface .supplier-saved-config > span {
    min-width: 0;
    border: 1px solid #e1e9e5;
    border-radius: 7px;
    background: #fff;
    padding: 9px 10px;
}

.admin-surface .supplier-saved-config small,
.admin-surface .supplier-saved-config b {
    display: block;
}

.admin-surface .supplier-saved-config small {
    color: #77828e;
    font-size: 8px;
    font-weight: 720;
}

.admin-surface .supplier-saved-config b {
    overflow: hidden;
    margin-top: 4px;
    color: #2e5749;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-surface .supplier-saved-config > p {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: #597267;
    font-size: 8px;
    line-height: 1.45;
}

.admin-surface .supplier-saved-config > p .ui-icon {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}

.admin-surface .supplier-editor .settings-grid label > small {
    display: block;
    margin-top: 4px;
    color: #858e99;
    font-size: 8px;
    font-weight: 520;
}

@media (max-width: 850px) {
    .admin-surface .supplier-saved-config {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .admin-surface .supplier-saved-config {
        grid-template-columns: 1fr;
    }
}


/* Supplier API sync designer */
.admin-surface .supplier-editor > summary {
    min-height: 54px;
    display: flex;
    align-items: center;
    border-radius: 9px;
    padding: 12px 14px;
    color: #303640;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.admin-surface .supplier-editor[open] > summary {
    border-bottom: 1px solid #e4e8ed;
    border-radius: 9px 9px 0 0;
    background: #fafbfc;
}

.admin-surface .supplier-editor .compact-form,
.admin-surface .supplier-create-form {
    display: grid;
    gap: 14px;
    padding: 14px 16px 16px;
}

.admin-surface .supplier-config-section {
    overflow: hidden;
    border: 1px solid #e1e6ec;
    border-left: 3px solid #ff676a;
    border-radius: 9px;
    background: #f7f9fb;
}

.admin-surface .supplier-config-section > header {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #e4e8ed;
    background: #f4f6f8;
    padding: 11px 13px;
}

.admin-surface .supplier-config-section > header .supplier-section-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #fff0f1;
    color: #ed3e44;
}

.admin-surface .supplier-config-section > header .supplier-section-icon .ui-icon {
    width: 17px;
    height: 17px;
}

.admin-surface .supplier-config-section > header > div {
    min-width: 0;
    flex: 1;
}

.admin-surface .supplier-config-section > header h3,
.admin-surface .supplier-config-section > header p {
    margin: 0;
}

.admin-surface .supplier-config-section > header h3 {
    color: #293039;
    font-size: 13px;
    letter-spacing: -.01em;
}

.admin-surface .supplier-config-section > header p {
    margin-top: 3px;
    color: #77828f;
    font-size: 9px;
    line-height: 1.4;
}

.admin-surface .supplier-connection-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    padding: 13px;
}

.admin-surface .supplier-connection-grid .span-2 {
    grid-column: 1 / -1;
}

.admin-surface .supplier-connection-grid label {
    min-width: 0;
    color: #46515e;
    font-size: 9px;
    font-weight: 760;
}

.admin-surface .supplier-connection-grid label > :is(input, select) {
    display: block;
    width: 100%;
    margin-top: 5px;
}

.admin-surface .supplier-sync-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 13px;
}

.admin-surface .supplier-sync-option {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 8px;
    border: 1px solid #e0e5eb;
    border-radius: 8px;
    background: #fff;
    padding: 10px;
}

.admin-surface .supplier-setting-label {
    min-width: 0;
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
}

.admin-surface .supplier-setting-label > i {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    font-style: normal;
}

.admin-surface .supplier-setting-label > i .ui-icon {
    width: 14px;
    height: 14px;
}

.admin-surface .supplier-setting-label > i.teal {
    background: #e8f8f4;
    color: #0e8a70;
}

.admin-surface .supplier-setting-label > i.green {
    background: #eaf8f0;
    color: #168455;
}

.admin-surface .supplier-setting-label > i.blue {
    background: #eaf2ff;
    color: #2f6fed;
}

.admin-surface .supplier-setting-label > i.violet {
    background: #f3edff;
    color: #7656d6;
}

.admin-surface .supplier-setting-label > i.orange {
    background: #fff3e7;
    color: #c96d12;
}

.admin-surface .supplier-setting-label > i.red {
    background: #fff0f1;
    color: #c43245;
}

.admin-surface .supplier-setting-label b,
.admin-surface .supplier-setting-label small {
    display: block;
}

.admin-surface .supplier-setting-label b {
    color: #313841;
    font-size: 10px;
    line-height: 1.35;
}

.admin-surface .supplier-setting-label small {
    margin-top: 3px;
    color: #818a96;
    font-size: 8px;
    font-weight: 520;
    line-height: 1.45;
}

.admin-surface .supplier-sync-option > :is(select, input),
.admin-surface .supplier-field-with-suffix {
    min-height: 38px;
    width: 100%;
}

.admin-surface .supplier-sync-option > :is(select, input) {
    border-color: #dce2e9;
    background: #fbfcfd;
    font-size: 9px;
}

.admin-surface .supplier-sync-option > select {
    cursor: pointer;
}

.admin-surface .supplier-field-with-suffix {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    overflow: hidden;
    border: 1px solid #dce2e9;
    border-radius: 8px;
    background: #fbfcfd;
}

.admin-surface .supplier-field-with-suffix:focus-within {
    border-color: #ff8e92;
    box-shadow: 0 0 0 3px rgba(255, 81, 84, .1);
}

.admin-surface .supplier-field-with-suffix input {
    min-height: 36px !important;
    width: 100%;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.admin-surface .supplier-field-with-suffix em {
    min-width: 43px;
    display: grid;
    place-items: center;
    border-left: 1px solid #dce2e9;
    background: #f1f3f6;
    padding-inline: 10px;
    color: #5f6976;
    font-size: 9px;
    font-style: normal;
    font-weight: 780;
}

.admin-surface .supplier-sync-advanced {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(240px, .5fr);
    align-items: stretch;
    gap: 10px;
    border-top: 1px solid #e2e6eb;
    background: #f4f6f8;
    padding: 12px 13px;
}

.admin-surface .supplier-sync-advanced > label {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 7px;
    border: 1px solid #e0e5eb;
    border-radius: 8px;
    background: #fff;
    padding: 10px;
}

.admin-surface .supplier-sync-advanced > label > span b,
.admin-surface .supplier-sync-advanced > label > span small {
    display: block;
}

.admin-surface .supplier-sync-advanced > label > span b {
    color: #333a43;
    font-size: 10px;
}

.admin-surface .supplier-sync-advanced > label > span small {
    margin-top: 3px;
    color: #808a96;
    font-size: 8px;
    font-weight: 520;
}

.admin-surface .supplier-sync-advanced textarea {
    min-height: 76px;
    resize: vertical;
}

.admin-surface .supplier-connection-toggle select {
    margin-top: auto;
}

.admin-surface .supplier-editor .form-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    justify-content: flex-end;
    border-top: 1px solid #e2e6eb;
    background: rgba(255, 255, 255, .96);
    padding: 10px 0 0;
    backdrop-filter: blur(8px);
}

@media (max-width: 900px) {
    .admin-surface .supplier-sync-grid,
    .admin-surface .supplier-sync-advanced {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .admin-surface .supplier-connection-grid {
        grid-template-columns: 1fr;
    }

    .admin-surface .supplier-connection-grid .span-2 {
        grid-column: auto;
    }

    .admin-surface .supplier-config-section > header {
        align-items: flex-start;
    }
}
