:root {
    --ink: #17202a;
    --muted: #667085;
    --soft: #f6f8fb;
    --line: #e4e8ef;
    --panel: #ffffff;
    --accent: #2563eb;
    --accent-strong: #1d4ed8;
    --accent-soft: #eff6ff;
    --accent-line: #bfdbfe;
    --accent-rgb: 37, 99, 235;
    --accent-contrast: #ffffff;
    --accent-gradient-start: #60a5fa;
    --success: #059669;
    --shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
    --control-height: 34px;
    --control-height-sm: 30px;
    --control-radius: 7px;
    --market-account-setting-width: 260px;
    --market-account-merchant-width: 220px;
    --market-account-combined-width: 490px;
    --centered-page-width: 1120px;
    --bs-primary: var(--accent);
    --bs-primary-rgb: var(--accent-rgb);
    --bs-link-color: var(--accent);
    --bs-link-hover-color: var(--accent-strong);
}

/* Shopee Third Party Partner connection */
.shopee-connect-heading-actions {
    align-items: center;
}

.shopee-connect-heading-actions .btn-action {
    min-width: 156px;
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.2);
}

.shopee-connect-form {
    display: grid;
    gap: 20px;
}

.shopee-connect-section {
    margin: 0;
    padding: 22px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.shopee-connect-section + .shopee-connect-section {
    margin-top: 20px;
}

.shopee-connect-form .shopee-connect-section + .shopee-connect-section {
    margin-top: 0;
}

.shopee-account-section {
    border-color: #bfdbfe;
    background: linear-gradient(135deg, #f8fbff 0%, #fff 60%);
}

.shopee-connect-section-heading,
.shopee-connect-section-title,
.shopee-merchant-card-head {
    display: flex;
    align-items: center;
}

.shopee-connect-section-heading {
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.shopee-connect-section-title {
    min-width: 0;
    gap: 12px;
}

.shopee-connect-section-title h2 {
    margin: 0 0 3px;
    color: #172033;
    font-size: 18px;
    font-weight: 900;
}

.shopee-connect-section-title p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.shopee-connect-section-icon {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 11px;
    font-size: 16px;
}

.shopee-connect-section-icon.is-account {
    color: #1d4ed8;
    background: #dbeafe;
}

.shopee-connect-section-icon.is-merchant {
    color: #047857;
    background: #d1fae5;
}

.shopee-connect-section-icon.is-country {
    color: #b45309;
    background: #fef3c7;
}

.shopee-connect-status,
.shopee-connect-count {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 900;
}

.shopee-connect-status.is-connected {
    color: #047857;
    background: #d1fae5;
}

.shopee-connect-status.is-disconnected {
    color: #b91c1c;
    background: #fee2e2;
}

.shopee-connect-count {
    color: #475569;
    background: #f1f5f9;
}

.shopee-account-card {
    display: grid;
    grid-template-columns: minmax(260px, 1.35fr) minmax(420px, 2fr) auto;
    align-items: end;
    gap: 20px;
}

.shopee-account-name-field,
.shopee-merchant-name-field {
    display: block;
    min-width: 0;
}

.shopee-account-facts,
.shopee-merchant-facts {
    display: grid;
    margin: 0;
}

.shopee-account-facts {
    grid-template-columns: repeat(4, minmax(86px, 1fr));
    gap: 10px;
}

.shopee-account-facts > div,
.shopee-merchant-facts > div {
    min-width: 0;
}

.shopee-account-facts > div {
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.84);
}

.shopee-account-facts dt,
.shopee-merchant-facts dt {
    margin-bottom: 4px;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.shopee-account-facts dd,
.shopee-merchant-facts dd {
    margin: 0;
    overflow: hidden;
    color: #172033;
    font-size: 13px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shopee-profile-save {
    min-width: 132px;
    white-space: nowrap;
}

.shopee-connect-empty {
    display: grid;
    min-height: 130px;
    place-items: center;
    align-content: center;
    gap: 8px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    color: #64748b;
    background: #f8fafc;
}

.shopee-connect-empty i {
    font-size: 24px;
}

.shopee-merchant-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.shopee-merchant-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
}

.shopee-merchant-card:only-child {
    grid-column: 1 / -1;
}

.shopee-merchant-card.is-default {
    border-color: #86efac;
    box-shadow: inset 0 0 0 1px #bbf7d0;
}

.shopee-merchant-card-head {
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.shopee-merchant-sequence {
    color: #334155;
    font-size: 13px;
    font-weight: 900;
}

.shopee-merchant-default {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.shopee-merchant-name-field > span,
.shopee-merchant-shop-label {
    display: block;
    margin-bottom: 6px;
    color: #475569;
    font-size: 12px;
    font-weight: 900;
}

.shopee-merchant-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin-top: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.shopee-merchant-facts > div {
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.shopee-merchant-facts > div:nth-child(odd) {
    border-right: 1px solid #e2e8f0;
}

.shopee-merchant-facts > div:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.shopee-merchant-facts code {
    color: #be185d;
    font-size: 12px;
}

.shopee-merchant-shop-list {
    margin-top: 14px;
}

.shopee-merchant-shop-list > div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.shopee-merchant-shop-chip {
    display: inline-flex;
    max-width: 100%;
    padding: 5px 8px;
    overflow: hidden;
    border-radius: 7px;
    color: #1e40af;
    background: #eff6ff;
    font-size: 11px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shopee-merchant-shop-empty {
    color: #94a3b8;
    font-size: 12px;
}

.shopee-country-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.shopee-country-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 9px 10px;
    min-width: 0;
    padding: 13px;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    background: #fff;
}

.shopee-country-card.is-connected {
    border-color: #a7f3d0;
    background: #f0fdf4;
}

.shopee-country-card.is-disconnected {
    opacity: 0.66;
    background: #f8fafc;
}

.shopee-country-flag {
    font-size: 22px;
}

.shopee-country-card > div:nth-child(2),
.shopee-country-state {
    min-width: 0;
}

.shopee-country-card > div:nth-child(2) strong,
.shopee-country-card > div:nth-child(2) span,
.shopee-country-state strong,
.shopee-country-state span {
    display: block;
}

.shopee-country-card > div:nth-child(2) strong {
    color: #172033;
    font-size: 13px;
}

.shopee-country-card > div:nth-child(2) span,
.shopee-country-state span {
    overflow: hidden;
    color: #64748b;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shopee-country-state {
    grid-column: 1 / -1;
    padding-top: 8px;
    border-top: 1px solid rgba(148, 163, 184, 0.28);
}

.shopee-country-state strong {
    color: #047857;
    font-size: 11px;
}

@media (max-width: 1180px) {
    .shopee-account-card {
        grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr);
    }

    .shopee-profile-save {
        grid-column: 1 / -1;
        justify-self: end;
    }

    .shopee-country-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .shopee-connect-heading-actions,
    .shopee-connect-heading-actions .btn-action {
        width: 100%;
    }

    .shopee-connect-heading-actions {
        align-items: stretch;
    }

    .shopee-account-card,
    .shopee-merchant-grid {
        grid-template-columns: 1fr;
    }

    .shopee-account-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shopee-profile-save {
        width: 100%;
        justify-self: stretch;
    }
}

@media (max-width: 560px) {
    .shopee-connect-section {
        padding: 16px;
        border-radius: 11px;
    }

    .shopee-connect-section-heading {
        align-items: flex-start;
    }

    .shopee-connect-section-title p {
        display: none;
    }

    .shopee-merchant-facts,
    .shopee-country-grid {
        grid-template-columns: 1fr;
    }

    .shopee-merchant-facts > div:nth-child(odd) {
        border-right: 0;
    }

    .shopee-merchant-facts > div:nth-last-child(2) {
        border-bottom: 1px solid #e2e8f0;
    }
}

/* Refined Shopee account, Merchant actions and connection guide */
.shopee-connect-panel {
    display: grid;
    gap: 20px;
}

.shopee-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.shopee-overview-grid .shopee-connect-section {
    height: 100%;
}

.shopee-overview-grid .shopee-account-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.shopee-connect-section-icon.is-auth {
    color: #7c3aed;
    background: #ede9fe;
}

.shopee-auth-section {
    border-color: #ddd6fe;
    background: linear-gradient(135deg, #faf8ff 0%, #fff 68%);
}

.shopee-auth-section.is-expiring {
    border-color: #fecaca;
    background: linear-gradient(135deg, #fff7f7 0%, #fff 68%);
}

.shopee-auth-section.is-expired {
    border-color: #fecaca;
    background: linear-gradient(135deg, #fff7f7 0%, #fff 68%);
}

.shopee-auth-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 16px;
}

.shopee-auth-expiry {
    min-width: 0;
}

.shopee-auth-expiry > span,
.shopee-auth-expiry > small {
    display: block;
}

.shopee-auth-expiry > span {
    margin-bottom: 4px;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.shopee-auth-expiry-value {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.shopee-auth-expiry-value > strong {
    overflow: hidden;
    color: #172033;
    font-size: 17px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shopee-auth-expiry-value.is-danger > strong,
.shopee-auth-expiry-value.is-danger > i {
    color: #dc2626;
}

.shopee-auth-expiry-value > i {
    flex: 0 0 auto;
    font-size: 14px;
}

.shopee-auth-expiry > small {
    margin-top: 5px;
    color: #94a3b8;
    font-size: 9px;
    line-height: 1.45;
}

.shopee-auth-expiry > small.is-warning {
    color: #b45309;
}

.shopee-auth-expiry > small.is-danger {
    color: #dc2626;
}

.shopee-auth-button {
    min-width: 142px;
    white-space: nowrap;
}

.shopee-connect-panel .shopee-connect-section + .shopee-connect-section {
    margin-top: 0;
}

.shopee-account-form {
    max-width: 760px;
}

.shopee-account-form > label,
.shopee-merchant-name-field {
    display: block;
    margin-bottom: 7px;
    color: #334155;
    font-size: 12px;
    font-weight: 900;
}

.shopee-account-editor,
.shopee-merchant-name-editor {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.shopee-account-editor .btn,
.shopee-merchant-name-editor .btn {
    height: var(--control-height);
    white-space: nowrap;
}

.shopee-merchant-section {
    background: #fcfdfd;
}

.shopee-default-badge,
.shopee-default-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.shopee-default-badge {
    color: #047857;
    background: #d1fae5;
}

.shopee-default-button {
    border: 1px solid #cbd5e1;
    color: #475569;
    background: #fff;
}

.shopee-default-button:hover,
.shopee-default-button:focus-visible {
    border-color: #86efac;
    color: #047857;
    background: #f0fdf4;
}

.shopee-merchant-name-editor {
    margin-bottom: 14px;
}

.shopee-merchant-settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(180px, 0.7fr) auto;
    align-items: end;
    gap: 10px;
}

.shopee-merchant-setting-field {
    display: grid;
    min-width: 0;
    gap: 6px;
}

.shopee-merchant-setting-field > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #475569;
    font-size: 12px;
    font-weight: 900;
}

.shopee-currency-detected,
.shopee-currency-required {
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
}

.shopee-currency-detected { color: #047857; }
.shopee-currency-required { color: #b91c1c; }

.shopee-merchant-settings-save {
    min-height: var(--control-height);
    white-space: nowrap;
}

.shopee-currency-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 9px;
    padding: 9px 11px;
    border-radius: 8px;
    font-size: 11px;
    line-height: 1.45;
}

.shopee-currency-notice.is-detected {
    color: #1e40af;
    background: #eff6ff;
}

.shopee-currency-notice.is-required {
    color: #991b1b;
    border: 1px solid #fecaca;
    background: #fff7f7;
}

.shopee-merchant-facts {
    margin-top: 0;
}

.shopee-merchant-shops {
    margin-top: 16px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.shopee-merchant-shops-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.shopee-merchant-shops-heading strong {
    color: #334155;
    font-size: 12px;
}

.shopee-merchant-shops-heading span {
    color: #94a3b8;
    font-size: 10px;
}

.shopee-merchant-country-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
}

.shopee-merchant-country {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 5px 7px;
    min-width: 0;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: #f8fafc;
}

.shopee-merchant-country.is-connected {
    border-color: #86efac;
    background: #f0fdf4;
}

.shopee-merchant-country.is-disconnected {
    color: #94a3b8;
}

.shopee-merchant-country-flag {
    grid-row: 1;
    font-size: 18px;
    filter: grayscale(1);
    opacity: 0.62;
}

.shopee-merchant-country.is-connected .shopee-merchant-country-flag {
    filter: none;
    opacity: 1;
}

.shopee-merchant-country-identity {
    display: flex;
    align-items: baseline;
    gap: 5px;
    min-width: 0;
}

.shopee-merchant-country-code {
    overflow: hidden;
    color: #475569;
    font-size: 11px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shopee-merchant-country-identity small {
    overflow: hidden;
    color: #64748b;
    font-size: 9px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shopee-merchant-country-state {
    grid-column: 2;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    overflow: hidden;
    color: #94a3b8;
    font-size: 9px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shopee-merchant-country.is-connected .shopee-merchant-country-state {
    color: #059669;
}

.shopee-merchant-shop-count {
    grid-column: 3;
    grid-row: 1;
    color: #64748b;
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

.shopee-merchant-shop-ids {
    display: grid;
    grid-column: 1 / -1;
    gap: 4px;
    min-width: 0;
    margin-top: 2px;
    padding-top: 7px;
    border-top: 1px solid #bbf7d0;
}

.shopee-merchant-shop-ids > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    padding: 5px 7px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .78);
}

.shopee-merchant-shop-ids small {
    color: #64748b;
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

.shopee-merchant-shop-ids strong {
    overflow: hidden;
    color: #334155;
    font-size: 10px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shopee-guide {
    padding: 24px;
    border: 1px solid #dbe4f0;
    border-radius: 14px;
    background: linear-gradient(145deg, #fff 0%, #f8fbff 100%);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.shopee-guide-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.shopee-guide-icon {
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 12px;
    color: #1d4ed8;
    background: #dbeafe;
}

.shopee-guide-heading h2 {
    margin: 0 0 3px;
    color: #172033;
    font-size: 18px;
    font-weight: 900;
}

.shopee-guide-heading p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
}

.shopee-guide-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.shopee-guide-steps li {
    display: flex;
    min-width: 0;
    gap: 10px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    background: #fff;
}

.shopee-guide-steps li > span {
    display: grid;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #2563eb;
    font-size: 11px;
    font-weight: 900;
}

.shopee-guide-steps strong {
    display: block;
    margin: 2px 0 5px;
    color: #1e293b;
    font-size: 12px;
}

.shopee-guide-steps p {
    margin: 0;
    color: #64748b;
    font-size: 10px;
    line-height: 1.55;
}

.shopee-guide-notice {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 12px;
    padding: 13px 15px;
    border: 1px solid #fde68a;
    border-radius: 10px;
    color: #92400e;
    background: #fffbeb;
}

.shopee-guide-notice > i {
    margin-top: 2px;
}

.shopee-guide-notice strong {
    display: block;
    margin-bottom: 2px;
    font-size: 12px;
}

.shopee-guide-notice p {
    margin: 0;
    font-size: 10px;
    line-height: 1.5;
}

.shopee-guide-faq {
    margin-top: 20px;
    border-top: 1px solid #e2e8f0;
    padding-top: 18px;
}

.shopee-guide-faq h3 {
    margin: 0 0 8px;
    color: #1e293b;
    font-size: 14px;
    font-weight: 900;
}

.shopee-guide-faq details {
    border-bottom: 1px solid #e2e8f0;
}

.shopee-guide-faq summary {
    padding: 11px 2px;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.shopee-guide-faq details p {
    margin: -2px 0 12px;
    padding-right: 24px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.6;
}

@media (max-width: 1180px) {
    .shopee-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shopee-auth-content {
        grid-template-columns: 1fr;
    }

    .shopee-auth-button {
        width: 100%;
    }

    .shopee-merchant-country-grid,
    .shopee-guide-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .shopee-overview-grid {
        grid-template-columns: 1fr;
    }

    .shopee-account-form {
        max-width: none;
    }

    .shopee-merchant-shops-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }
}

@media (max-width: 560px) {
    .shopee-account-editor,
    .shopee-merchant-name-editor,
    .shopee-guide-steps {
        grid-template-columns: 1fr;
    }

    .shopee-account-editor .btn,
    .shopee-merchant-name-editor .btn {
        width: 100%;
    }

    .shopee-merchant-settings-grid {
        grid-template-columns: 1fr;
    }

    .shopee-merchant-settings-save {
        width: 100%;
    }

    .shopee-merchant-country-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shopee-guide {
        padding: 16px;
    }

    .shopee-guide-heading p {
        display: none;
    }
}

/* Marketplace provider selection and explicit Shopee creation */
.market-provider-heading,
.shopee-create-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.market-provider-heading-icon,
.shopee-create-summary > span {
    display: grid;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 13px;
    color: #1d4ed8;
    background: #dbeafe;
    font-size: 18px;
}

.market-provider-heading h2,
.shopee-create-summary h2 {
    margin: 0 0 4px;
    color: #172033;
    font-size: 20px;
    font-weight: 900;
}

.market-provider-heading p,
.shopee-create-summary p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.market-provider-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.market-provider-card {
    display: flex;
    min-width: 0;
    min-height: 270px;
    flex-direction: column;
    padding: 22px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.market-provider-card:hover:not(.is-coming) {
    border-color: #93c5fd;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.market-provider-card,
.market-provider-card:hover {
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.market-provider-card.is-coming {
    background: #f8fafc;
}

.market-provider-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 16px;
}

.market-provider-brand > span {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 11px;
    color: #fff;
    background: #2563eb;
    font-size: 18px;
    font-weight: 900;
}

.market-provider-card.is-shopee .market-provider-brand > span {
    background: #ee4d2d;
}

.market-provider-card.is-lazada .market-provider-brand > span {
    background: linear-gradient(135deg, #191970, #f36f21);
}

.market-provider-card.is-coming .market-provider-brand > span {
    background: #64748b;
}

.market-provider-brand strong {
    color: #172033;
    font-size: 18px;
}

.market-provider-card > p {
    min-height: 42px;
    margin: 0 0 13px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
}

.market-provider-card ul {
    margin: 0 0 20px;
    padding-left: 18px;
    color: #475569;
    font-size: 11px;
    line-height: 1.8;
}

.market-provider-card > .btn {
    width: 100%;
    margin-top: auto;
}

.shopee-create-panel {
    max-width: 900px;
}

.shopee-create-form {
    max-width: 680px;
    padding: 22px;
    border: 1px solid #dbe4f0;
    border-radius: 13px;
    background: #f8fbff;
}

.shopee-create-form > label {
    display: block;
    margin-bottom: 7px;
    color: #334155;
    font-size: 12px;
    font-weight: 900;
}

.shopee-create-form > p {
    margin: 7px 0 20px;
    color: #64748b;
    font-size: 11px;
}

.shopee-create-flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.shopee-create-flow > div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1px 8px;
    align-items: center;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
}

.shopee-create-flow > div > span {
    display: grid;
    grid-row: 1 / span 2;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #2563eb;
    font-size: 10px;
    font-weight: 900;
}

.shopee-create-flow strong {
    color: #334155;
    font-size: 11px;
}

.shopee-create-flow small {
    color: #94a3b8;
    font-size: 9px;
}

.shopee-create-flow > i {
    color: #94a3b8;
    font-size: 11px;
}

.shopee-create-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

@media (max-width: 900px) {
    .market-provider-grid {
        grid-template-columns: 1fr;
    }

    .market-provider-card {
        min-height: 0;
    }

    .market-provider-card > p {
        min-height: 0;
    }
}

@media (max-width: 560px) {
    .market-provider-heading,
    .shopee-create-summary {
        align-items: flex-start;
    }

    .market-provider-heading p,
    .shopee-create-summary p {
        font-size: 11px;
    }

    .shopee-create-form {
        padding: 16px;
    }

    .shopee-create-flow {
        grid-template-columns: 1fr;
    }

    .shopee-create-flow > i {
        justify-self: center;
        transform: rotate(90deg);
    }

    .shopee-create-actions {
        flex-direction: column;
    }

    .shopee-create-actions .btn {
        width: 100%;
    }
}

:root[data-theme="yellow"] {
    --accent: #ca8a04;
    --accent-strong: #a16207;
    --accent-soft: #fef9c3;
    --accent-line: #fde68a;
    --accent-rgb: 202, 138, 4;
    --accent-contrast: #17202a;
    --accent-gradient-start: #facc15;
}

:root[data-theme="red"] {
    --accent: #dc2626;
    --accent-strong: #b91c1c;
    --accent-soft: #fef2f2;
    --accent-line: #fecaca;
    --accent-rgb: 220, 38, 38;
    --accent-contrast: #ffffff;
    --accent-gradient-start: #f87171;
}

:root[data-theme="black"] {
    --accent: #27272a;
    --accent-strong: #09090b;
    --accent-soft: #f4f4f5;
    --accent-line: #d4d4d8;
    --accent-rgb: 39, 39, 42;
    --accent-contrast: #ffffff;
    --accent-gradient-start: #71717a;
}

:root[data-theme="purple"] {
    --accent: #7c3aed;
    --accent-strong: #6d28d9;
    --accent-soft: #f5f3ff;
    --accent-line: #ddd6fe;
    --accent-rgb: 124, 58, 237;
    --accent-contrast: #ffffff;
    --accent-gradient-start: #a78bfa;
}

:root[data-theme="green"] {
    --accent: #059669;
    --accent-strong: #047857;
    --accent-soft: #ecfdf5;
    --accent-line: #a7f3d0;
    --accent-rgb: 5, 150, 105;
    --accent-contrast: #ffffff;
    --accent-gradient-start: #34d399;
}

:root[data-theme="gray"] {
    --accent: #6b7280;
    --accent-strong: #4b5563;
    --accent-soft: #f3f4f6;
    --accent-line: #d1d5db;
    --accent-rgb: 107, 114, 128;
    --accent-contrast: #ffffff;
    --accent-gradient-start: #9ca3af;
}

:root[data-theme="pink"] {
    --accent: #db2777;
    --accent-strong: #be185d;
    --accent-soft: #fdf2f8;
    --accent-line: #fbcfe8;
    --accent-rgb: 219, 39, 119;
    --accent-contrast: #ffffff;
    --accent-gradient-start: #f472b6;
}

:root[data-theme="navy"] {
    --accent: #1e3a8a;
    --accent-strong: #172554;
    --accent-soft: #eff6ff;
    --accent-line: #bfdbfe;
    --accent-rgb: 30, 58, 138;
    --accent-contrast: #ffffff;
    --accent-gradient-start: #3b82f6;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--soft);
}

img,
video,
canvas,
svg {
    max-width: 100%;
}

a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

a:hover {
    color: var(--accent-strong);
}

button {
    min-height: 36px;
    border: 1px solid var(--accent);
    border-radius: 8px;
    color: var(--accent-contrast);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    cursor: pointer;
    background: var(--accent);
    box-shadow: 0 7px 16px rgba(var(--accent-rgb), 0.14);
}

button:hover {
    background: var(--accent-strong);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    vertical-align: middle;
}

.btn-sm {
    min-height: 30px;
    padding: 4px 8px;
    font-size: 12px;
}

.btn-primary {
    --bs-btn-bg: var(--accent);
    --bs-btn-border-color: var(--accent);
    --bs-btn-color: var(--accent-contrast);
    --bs-btn-focus-shadow-rgb: var(--accent-rgb);
    --bs-btn-hover-bg: var(--accent-strong);
    --bs-btn-hover-border-color: var(--accent-strong);
    --bs-btn-hover-color: var(--accent-contrast);
    --bs-btn-active-bg: var(--accent-strong);
    --bs-btn-active-border-color: var(--accent-strong);
    --bs-btn-active-color: var(--accent-contrast);
}

.btn-close {
    min-height: auto;
    box-shadow: none;
}

.toast-container {
    z-index: 1090;
}

.modal.app-confirm-modal {
    z-index: 2070;
}

.modal-backdrop.app-confirm-backdrop {
    z-index: 2060;
}

.toast {
    max-width: min(380px, calc(100vw - 32px));
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.modal-content {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.modal-dialog {
    max-width: min(var(--bs-modal-width, 500px), calc(100vw - 20px));
}

.modal-header,
.modal-footer {
    border-color: var(--line);
}

.modal-footer {
    gap: 8px;
}

.modal-footer .btn {
    min-width: 76px;
}

.modal-body {
    color: #475467;
    line-height: 1.55;
}

.market-auth-required-modal .modal-dialog {
    --bs-modal-width: 620px;
}

.market-auth-required-modal .modal-content {
    overflow: hidden;
    border: 1px solid #dbe5f4;
    border-radius: 20px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
}

.market-auth-required-hero {
    padding: 34px 38px 27px;
    text-align: center;
    background:
        radial-gradient(circle at 50% -30%, rgba(59, 130, 246, 0.24), transparent 58%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.market-auth-required-icon {
    display: inline-grid;
    place-items: center;
    width: 66px;
    height: 66px;
    margin-bottom: 15px;
    border-radius: 21px;
    color: #fff;
    font-size: 27px;
    background: linear-gradient(145deg, #3b82f6, #1d4ed8);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
}

.market-auth-required-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
}

.market-auth-required-hero h2 {
    margin: 0;
    color: #172033;
    font-size: 27px;
    font-weight: 900;
    letter-spacing: -.035em;
}

.market-auth-required-hero p {
    max-width: 490px;
    margin: 13px auto 0;
    color: #667085;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.7;
}

.market-auth-required-body {
    display: grid;
    gap: 10px;
    padding: 20px 30px;
    background: #fff;
}

.market-auth-required-guide {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 14px 16px;
    border: 1px solid #e5eaf2;
    border-radius: 13px;
    background: #f8fafc;
}

.market-auth-required-guide > span {
    display: grid;
    flex: 0 0 32px;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    color: #2563eb;
    background: #e8f1ff;
}

.market-auth-required-guide strong {
    display: block;
    color: #344054;
    font-size: 13px;
    font-weight: 850;
}

.market-auth-required-guide p {
    margin: 3px 0 0;
    color: #7a8699;
    font-size: 12px;
    font-weight: 650;
}

.market-auth-required-actions {
    justify-content: center;
    padding: 18px 30px 25px;
    border-top: 1px solid #edf0f5;
}

.market-auth-required-actions .btn {
    min-width: 148px;
    min-height: 44px;
    border-radius: 10px;
    font-weight: 800;
}

@media (max-width: 575.98px) {
    .market-auth-required-hero {
        padding: 28px 22px 22px;
    }

    .market-auth-required-body {
        padding: 16px 18px;
    }

    .market-auth-required-actions {
        padding: 14px 18px 20px;
    }

    .market-auth-required-actions .btn {
        width: 100%;
    }
}

.modal-or-divider,
.crawling-or-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 22px;
    color: #98a2b3;
    font-size: 12px;
    font-weight: 800;
}

.modal-or-divider::before,
.modal-or-divider::after,
.crawling-or-divider::before,
.crawling-or-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--line);
}

.modal-or-divider span,
.crawling-or-divider span {
    display: inline-grid;
    min-width: 36px;
    height: 26px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
}

.app-loading-layer {
    position: fixed;
    z-index: 2000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(3px);
    transition: opacity 0.16s ease;
}

.app-loading-layer[hidden] {
    display: none;
}

.app-loading-layer.show {
    opacity: 1;
}

.app-loading-content {
    display: grid;
    min-width: min(320px, calc(100vw - 48px));
    justify-items: center;
    gap: 10px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.app-loading-content .spinner-border {
    width: 38px;
    height: 38px;
    margin-bottom: 4px;
    color: var(--accent);
}

.app-loading-content strong {
    font-size: 16px;
}

.app-loading-content span {
    color: var(--muted);
    font-size: 13px;
}

.app-loading-content .app-loading-slow-message {
    max-width: 300px;
    color: #475467;
    text-align: center;
    line-height: 1.55;
}

.app-loading-content .app-loading-slow-message[hidden] {
    display: none;
}

body.app-is-loading {
    overflow: hidden;
}

/*
 * Shared placeholder for content populated after the initial render.
 * Async regions reserve their final geometry and expose aria-busy while these
 * blocks are visible, preventing modals and pages from jumping after fetches.
 */
.app-async-skeleton {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 6px;
    background: #edf1f6;
}

.app-async-skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .78), transparent);
    animation: app-async-skeleton-shimmer 1.25s ease-in-out infinite;
}

.app-async-skeleton-line {
    width: 100%;
    height: 11px;
}

.app-async-skeleton-line + .app-async-skeleton-line {
    margin-top: 9px;
}

.app-async-skeleton-line.is-long { width: min(92%, 620px); }
.app-async-skeleton-line.is-medium { width: min(62%, 380px); }
.app-async-skeleton-line.is-short { width: min(72%, 130px); }

.app-async-skeleton-square {
    width: 54px;
    height: 54px;
    margin: 0 auto;
    border-radius: 8px;
}

.app-async-skeleton-checkbox {
    width: 18px;
    height: 18px;
    margin: 0 auto;
    border-radius: 4px;
}

@keyframes app-async-skeleton-shimmer {
    100% { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
    .app-async-skeleton::after { animation: none; }
}

.auth-page {
    display: grid;
    place-items: center;
    padding: 32px 16px;
    background:
        linear-gradient(180deg, #ffffff 0%, #f6f8fb 72%),
        var(--soft);
}

.auth-shell {
    width: min(100%, 560px);
}

.auth-panel {
    --auth-control-height: 44px;
    padding: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.auth-panel.wide {
    width: min(100vw - 32px, 560px);
}

.brand-mark {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 8px;
    color: var(--accent-contrast);
    font-size: 24px;
    font-weight: 900;
    background: var(--accent);
}

.brand-mark img {
    display: block;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 2px;
    background: #ffffff;
    object-fit: contain;
}

.eyebrow {
    margin: 24px 0 8px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(34px, 8vw, 52px);
    line-height: 1;
    letter-spacing: 0;
}

.auth-copy {
    margin: 16px 0 28px;
    color: var(--muted);
    line-height: 1.7;
}

.auth-panel h1 {
    font-size: clamp(30px, 4.5vw, 36px);
    line-height: 1.08;
}

.notice {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    color: #047857;
    background: #ecfdf5;
}

.auth-form {
    display: grid;
    gap: 18px;
}

.auth-form .form-label-wrap {
    display: grid;
    gap: 8px;
}

.auth-form .form-label {
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}

.auth-form .input-group,
.auth-form .input-group > .form-control,
.auth-form .input-group > .input-group-text,
.auth-primary-button,
.auth-social-button {
    height: var(--auth-control-height);
    min-height: var(--auth-control-height);
}

.auth-form .input-group > .input-group-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-form .input-group > .form-control {
    background-color: #fbfcfe;
}

.auth-form .input-group > .form-control:-webkit-autofill,
.auth-form .input-group > .form-control:-webkit-autofill:hover {
    -webkit-text-fill-color: var(--ink);
    -webkit-box-shadow: 0 0 0 1000px #fbfcfe inset;
    caret-color: var(--ink);
}

.auth-form .input-group > .form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--ink);
    -webkit-box-shadow: 0 0 0 1000px #fbfcfe inset, 0 0 0 4px rgba(var(--accent-rgb), 0.12);
    caret-color: var(--ink);
}

input {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 0 15px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    color: var(--ink);
    font: inherit;
    background: #ffffff;
    outline: none;
}

input::placeholder {
    color: #98a2b3;
}

input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.12);
}

.form-control,
.form-select {
    min-width: 0;
    max-width: 100%;
    min-height: 42px;
    padding-top: 7px;
    padding-bottom: 7px;
    border-color: #d0d5dd;
    border-radius: 7px;
    font-size: 14px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.12);
}

.input-group-text {
    border-color: #d0d5dd;
    color: #667085;
    background: #f8fafc;
}

.form-row,
.auth-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.auth-register-prompt {
    color: inherit;
    font-weight: 400;
}

.auth-form .form-row a {
    font-weight: 600;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 18px 0;
    color: #1f2937;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1 1 0;
    background: #e4e7ec;
}

.auth-social-button {
    font-weight: 600;
}

.auth-social-button + .auth-social-button,
.auth-social-button + a[href="/auth/naver/login"] {
    margin-top: 8px;
}

.auth-social-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.check-label {
    display: flex !important;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 8px !important;
    margin-bottom: 0;
}

.check-label input {
    width: 16px;
    min-height: 16px;
    accent-color: var(--accent);
}

.field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.dashboard-page {
    min-height: 100vh;
    background: #f7f9fc;
}

.dashboard-layout {
    display: grid;
    min-width: 0;
    min-height: 100vh;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 64px 1fr 46px;
    grid-template-areas:
        "header"
        "body"
        "footer";
}

.dashboard-layout-full {
    grid-template-areas:
        "header"
        "body"
        "footer";
}

.dashboard-header {
    grid-area: header;
    display: grid;
    min-width: 0;
    grid-template-columns: 190px minmax(0, 1fr) auto;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 30;
    padding: 0;
    border-bottom: 1px solid #e8ecf2;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.025);
}

.dashboard-header::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 1px;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(16, 42, 86, .2) 0%, rgba(39, 75, 127, .12) 45%, transparent 100%);
}

.dashboard-logo,
.dashboard-logo:hover {
    position: relative;
    display: flex;
    min-width: 0;
    align-items: center;
    height: 64px;
    padding: 0 14px 0 24px;
    border-right: 0;
    color: var(--ink);
    background: transparent;
}

.dashboard-logo:hover {
    background: transparent;
}

.dashboard-logo img {
    display: block;
    width: auto;
    height: 46px;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
}

.header-actions {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    padding-right: 22px;
}

.header-actions .dropdown {
    min-width: 0;
}

.header-user-menu {
    display: flex;
    min-height: 36px;
    align-items: center;
    gap: 7px;
    padding: 5px 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #344054;
    background: transparent;
    box-shadow: none;
}

.header-user-menu:hover,
.header-user-menu[aria-expanded="true"] {
    border-color: var(--line);
    color: var(--accent);
    background: #f8fafc;
}

.header-user-avatar {
    display: grid;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    place-items: center;
    border-radius: 50%;
    color: var(--accent);
    background: var(--accent-soft);
}

.header-user-name {
    max-width: 150px;
    overflow: hidden;
    color: #475467;
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-user-chevron {
    color: #98a2b3;
    font-size: 10px;
}

.header-user-dropdown {
    min-width: 190px;
    padding: 6px;
    border-color: var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
}

.header-user-dropdown .dropdown-item {
    display: flex;
    min-height: 34px;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    border: 0;
    border-radius: 6px;
    color: #475467;
    font-size: 13px;
    font-weight: 700;
    background: transparent;
    box-shadow: none;
}

.header-user-dropdown .dropdown-item i {
    width: 17px;
    color: #667085;
    text-align: center;
}

.header-user-dropdown .dropdown-item:hover {
    color: var(--accent);
    background: var(--accent-soft);
}

.header-user-dropdown form {
    margin: 0;
}

.header-logout-item {
    width: 100%;
}

.crawling-error-alert {
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}

.account-panel {
    width: min(100%, var(--centered-page-width));
    min-height: 0;
    margin-right: auto;
    margin-left: auto;
}

/*
 * Constrained form pages share one centered content axis.
 * Their widths remain content-appropriate while headings and panels align.
 */
.body-heading:has(+ .account-panel) {
    width: min(100%, var(--centered-page-width));
    margin-right: auto;
    margin-left: auto;
}

.ai-key-settings {
    width: min(100%, var(--centered-page-width));
    margin-right: auto;
    margin-left: auto;
}

.body-heading:has(+ .ai-key-settings) {
    width: min(100%, var(--centered-page-width));
    margin-right: auto;
    margin-left: auto;
}

.shopee-create-panel {
    width: min(100%, var(--centered-page-width));
    max-width: var(--centered-page-width);
    margin-right: auto;
    margin-left: auto;
}

.body-heading:has(+ .shopee-create-panel) {
    width: min(100%, var(--centered-page-width));
    margin-right: auto;
    margin-left: auto;
}

.admin-shopee-auth-card {
    padding: 18px;
    border: 1px solid #d9e2f2;
    border-radius: 12px;
    background: #f8faff;
}

.admin-shopee-auth-card-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.admin-shopee-auth-card-icon {
    display: inline-grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 10px;
    color: #174ea6;
    background: #e8f0ff;
}

.admin-shopee-auth-card h2 {
    margin: 0 0 2px;
    color: #25324b;
    font-size: 16px;
    font-weight: 900;
}

.admin-shopee-auth-card-heading p,
.admin-shopee-auth-note {
    margin: 0;
    color: #748198;
    font-size: 12px;
}

.admin-shopee-auth-fields {
    display: grid;
    grid-template-columns: minmax(160px, 0.7fr) minmax(280px, 1.5fr);
    gap: 12px;
    margin-bottom: 12px;
}

.market-sandbox-alert {
    border-color: #f2c94c;
    background: #fff8df;
    color: #6f5200;
}

.theme-option-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.crawler-option-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.theme-option {
    position: relative;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) 18px;
    min-height: 48px;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #475467;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    background: #ffffff;
}

.theme-option:hover {
    border-color: var(--accent-line);
    background: var(--accent-soft);
}

.theme-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.theme-option-swatch {
    width: 22px;
    height: 22px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 50%;
}

.theme-option-swatch[data-theme-preview="blue"] { background: #2563eb; }
.theme-option-swatch[data-theme-preview="yellow"] { background: #eab308; }
.theme-option-swatch[data-theme-preview="red"] { background: #dc2626; }
.theme-option-swatch[data-theme-preview="black"] { background: #27272a; }
.theme-option-swatch[data-theme-preview="purple"] { background: #7c3aed; }
.theme-option-swatch[data-theme-preview="green"] { background: #059669; }
.theme-option-swatch[data-theme-preview="gray"] { background: #6b7280; }
.theme-option-swatch[data-theme-preview="pink"] { background: #db2777; }
.theme-option-swatch[data-theme-preview="navy"] { background: #1e3a8a; }

.crawler-option-icon {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 50%;
    color: var(--accent);
    background: var(--accent-soft);
    font-size: 12px;
}

.theme-option i {
    color: var(--accent);
    opacity: 0;
}

.theme-option .crawler-option-icon i {
    color: inherit;
    opacity: 1;
}

.theme-option:has(input:checked) {
    border-color: var(--accent);
    color: var(--ink);
    background: var(--accent-soft);
    box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.08);
}

.theme-option:has(input:checked) i {
    opacity: 1;
}

.form-label-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.form-label-actions .btn {
    flex: 0 0 auto;
}

.account-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 30px 0 0;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.account-meta div {
    min-width: 0;
    padding: 15px;
}

.account-meta div + div {
    border-left: 1px solid var(--line);
}

.account-meta dt,
.account-meta dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 13px;
}

.account-meta dt {
    margin-bottom: 5px;
    color: var(--muted);
}

.account-password-fields {
    display: grid;
    gap: 18px;
    max-width: 520px;
}

.empty-state {
    display: grid;
    min-height: 280px;
    place-items: center;
    align-content: center;
    gap: 8px;
    color: #667085;
    text-align: center;
}

.empty-state i {
    margin-bottom: 8px;
    color: #98a2b3;
    font-size: 34px;
}

.empty-state strong {
    color: var(--ink);
    font-size: 16px;
}

.empty-state span {
    font-size: 14px;
}

.product-table:not(.collection-table) th:nth-child(3),
.product-table:not(.collection-table) td:nth-child(3) {
    min-width: 120px;
    max-width: 180px;
    white-space: nowrap;
}

.product-table:not(.collection-table) th:nth-child(4) {
    min-width: 360px;
}

.collection-copy-cell {
    width: 260px;
    min-width: 260px;
    max-width: 260px;
    text-align: left;
}

.collection-delete-cell {
    width: 132px;
    min-width: 132px;
    text-align: center;
}

.collection-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: max-content;
    width: 100%;
    white-space: nowrap;
}

.collection-purchase-cell {
    min-width: 118px;
}

.collection-margin-cell {
    width: 46px;
    min-width: 46px;
    text-align: center;
}

.collection-row-edit-field {
    min-width: 0;
}

.collection-row-display {
    min-width: 0;
}

.collection-price-inline .collection-row-display,
.collection-weight-inline .collection-row-display,
.collection-purchase-inline .collection-row-display {
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
}

.collection-row-input {
    width: 100%;
    min-width: 0;
    height: 34px;
    min-height: 34px;
    padding: 6px 8px;
    font-size: 13px;
}

.collection-row-input-group {
    flex-wrap: nowrap;
    min-width: 0;
}

.collection-row-input-group .collection-row-input {
    min-width: 0;
}

.collection-row-input-group .input-group-text {
    height: 34px;
    min-height: 34px;
    padding: 6px 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.collection-title-input {
    max-width: 100%;
}

.collection-row-edit-button,
.collection-row-save-button,
.collection-row-cancel-button {
    display: inline-grid;
    place-items: center;
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
}

.collection-delete-cell > form[id^="collectionRowEditForm"] {
    display: none;
}

.collection-delete-cell {
    white-space: nowrap;
}

.collection-delete-cell > .collection-row-actions {
    vertical-align: middle;
}

.collection-row-actions > button,
.collection-row-actions > form {
    display: inline-grid;
    vertical-align: middle;
}

.collection-row-actions > form {
    margin: 0;
}

.collection-inline-view,
.collection-inline-form,
.collection-margin-button,
.collection-inline-save-button,
.collection-inline-cancel-button,
.collection-inline-edit-button {
    align-items: center;
}

.collection-inline-edit {
    display: grid;
    width: 100%;
    gap: 5px;
    min-width: 0;
}

.collection-inline-view {
    display: flex;
    gap: 6px;
    min-width: 0;
}

.collection-inline-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.collection-weight-inline .collection-inline-view,
.collection-purchase-inline .collection-inline-view,
.collection-price-inline .collection-inline-view {
    display: grid;
    grid-template-columns: max-content 28px;
    justify-content: start;
}

.collection-weight-inline .collection-inline-value,
.collection-purchase-inline .collection-inline-value,
.collection-price-inline .collection-inline-value {
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
}

.collection-title-inline .collection-inline-view {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 28px;
    align-items: start;
    width: 100%;
}

.collection-title-inline .collection-inline-value {
    display: -webkit-box;
    overflow: hidden;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.collection-inline-form {
    display: grid;
    grid-template-columns: minmax(64px, 1fr) 30px 30px;
    gap: 5px;
    min-width: 0;
}

.collection-weight-inline .collection-inline-form,
.collection-purchase-inline .collection-inline-form,
.collection-price-inline .collection-inline-form {
    min-width: 126px;
}

.collection-title-inline .collection-inline-form {
    grid-template-columns: minmax(240px, 1fr) 30px 30px;
    width: 100%;
}

.collection-inline-input {
    width: 100%;
    min-width: 0;
    height: 32px;
    min-height: 32px;
    padding: 6px 8px;
    font-size: 13px;
}

.collection-inline-save-button,
.collection-inline-cancel-button,
.collection-inline-edit-button,
.collection-margin-button {
    display: inline-grid;
    place-items: center;
    width: 32px;
    min-width: 32px;
    height: 32px;
    padding: 0;
    font-weight: 900;
}

.collection-inline-edit-button {
    flex: 0 0 28px;
    width: 28px;
    min-width: 28px;
    height: 28px;
}

.collection-margin-dropdown,
.header-margin-dropdown {
    display: inline-grid;
    position: relative;
}

.margin-market-menu {
    min-width: 132px;
    padding: 6px;
    border-color: var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(16, 24, 40, 0.14);
}

.margin-market-menu .dropdown-item {
    display: flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 6px;
    color: #344054;
    font-size: 13px;
    font-weight: 800;
}

.margin-market-menu .dropdown-item:hover,
.margin-market-menu .dropdown-item:focus {
    color: var(--accent);
    background: var(--accent-soft);
}

.collection-table .product-check-column {
    width: 46px;
    min-width: 46px;
    max-width: 46px;
}

.collection-table.board-table {
    table-layout: fixed;
    min-width: 1320px;
}

.collection-table.board-table th,
.collection-table.board-table td {
    padding-right: 10px;
    padding-left: 10px;
}

.collection-table th:nth-child(1),
.collection-table td:nth-child(1) {
    width: 46px;
}

.collection-table th:nth-child(2),
.collection-table td:nth-child(2) {
    width: 50px;
}

.collection-table th:nth-child(3),
.collection-table td:nth-child(3) {
    width: auto;
    min-width: 420px;
    max-width: none;
}

.collection-table th:nth-child(4),
.collection-table td:nth-child(4) {
    width: 112px;
}

.collection-table th:nth-child(5),
.collection-table td:nth-child(5) {
    width: 116px;
}

.collection-table th:nth-child(6),
.collection-table td:nth-child(6) {
    width: 92px;
}

.collection-table th:nth-child(7),
.collection-table td:nth-child(7) {
    width: 72px;
    text-align: center;
}

.collection-table th:nth-child(8),
.collection-table td:nth-child(8) {
    width: 260px;
    min-width: 260px;
    max-width: 260px;
    white-space: normal;
}

.collection-table th:nth-child(9),
.collection-table td:nth-child(9) {
    width: 132px;
    min-width: 132px;
    padding-right: 16px;
    text-align: center;
}

.collection-table.has-quick-edit {
    min-width: 1400px;
}

.collection-table.has-quick-edit th:nth-child(4),
.collection-table.has-quick-edit td:nth-child(4) {
    width: clamp(135px, 9vw, 170px);
}

.collection-table.has-quick-edit th:nth-child(5),
.collection-table.has-quick-edit td:nth-child(5) {
    width: clamp(145px, 10vw, 185px);
}

.collection-table.has-quick-edit th:nth-child(6),
.collection-table.has-quick-edit td:nth-child(6) {
    width: clamp(110px, 7vw, 140px);
}

.collection-create-button,
.collection-delete-button {
    display: inline-grid;
    place-items: center;
    width: 38px;
    min-width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 10px;
    font-size: 16px;
}

.collection-create-dropdown {
    display: inline-block;
}

.collection-create-menu {
    width: 280px;
    min-width: 280px;
    max-width: calc(100vw - 32px);
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
}

.collection-create-menu strong {
    display: block;
    margin: 2px 6px 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.collection-create-menu form {
    margin: 0;
}

.collection-create-menu form + form {
    margin-top: 2px;
}

.collection-create-menu .dropdown-item {
    display: block;
    min-width: 0;
    overflow: hidden;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 800;
}

.collection-create-menu-label {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.collection-product-meta {
    display: flex;
    overflow: hidden;
    max-width: 100%;
    gap: 6px;
    align-items: center;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
}

.collection-market-create-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 8px 9px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
}

.collection-market-create-card.is-created {
    border-color: #86efac;
    background: #f0fdf4;
}

.collection-market-create-card.is-empty {
    border-color: #cbd5e1;
    background: #f8fafc;
}

/* Match collection market-creation/actions to the market product list card rhythm. */
.collection-table .collection-create-button {
    width: 30px;
    min-width: 30px;
    max-width: 30px;
    height: 28px;
    min-height: 28px;
    padding: 0;
    border-radius: 7px;
    font-size: 12px;
}

.collection-table .collection-row-edit-button,
.collection-table .collection-row-save-button,
.collection-table .collection-row-cancel-button,
.collection-table .collection-delete-button {
    width: 30px;
    min-width: 30px;
    max-width: 30px;
    height: 30px;
    min-height: 30px;
    padding: 0;
    border-radius: 7px;
    font-size: 12px;
}

.collection-market-create-info {
    display: grid;
    min-width: 0;
    width: 100%;
    gap: 5px;
}

.collection-market-create-label,
.collection-market-create-empty {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.collection-market-create-card.is-created .collection-market-create-label {
    color: #15803d;
}

.collection-market-create-empty {
    color: #64748b;
}

.collection-product-meta span {
    display: inline-flex;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.collection-product-meta span + span::before {
    margin-right: 6px;
    color: #cbd5e1;
    content: "·";
}

.collection-table .product-title-link {
    display: -webkit-box;
    overflow: hidden;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.collection-delete-cell form {
    display: inline-flex;
    justify-content: flex-end;
    margin: 0;
}

.collection-copy-complete {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 5px 10px;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    color: #15803d;
    background: #f0fdf4;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.collection-market-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
    min-width: 0;
}

.collection-market-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    max-width: 100%;
    min-width: 0;
    min-height: 19px;
    overflow: hidden;
    padding: 2px 6px;
    border: 1px solid #bfd4ff;
    border-radius: 3px;
    color: #1f4aa5;
    background: #eff6ff;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.1;
    text-decoration: none;
    white-space: nowrap;
}

.collection-market-create-card .collection-market-badges {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
}

.collection-market-create-card .collection-market-badge {
    display: flex;
    width: 100%;
}

.collection-market-badge-text {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.collection-market-badge:hover,
.collection-market-badge:focus {
    color: #ffffff;
    background: var(--accent);
}

.collection-market-create-card.is-created .collection-market-badge {
    border-color: #bbf7d0;
    color: #15803d;
    background: #dcfce7;
}

.collection-market-create-card.is-created .collection-market-badge:hover,
.collection-market-create-card.is-created .collection-market-badge:focus {
    color: #ffffff;
    background: #16a34a;
}

.shopee-sourcing-guide-modal .modal-dialog {
    --bs-modal-width: min(1160px, calc(100vw - 24px));
}

.shopee-sourcing-guide-modal .modal-body {
    display: grid;
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.modal-subtitle {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.shopee-sourcing-guide-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #bcd3ff;
    border-radius: 8px;
    background: #f4f8ff;
}

.shopee-sourcing-guide-hero strong {
    display: block;
    margin-bottom: 3px;
    color: var(--ink);
    font-size: 14px;
}

.shopee-sourcing-guide-hero p {
    margin: 0;
    color: #53627a;
    font-size: 12px;
    font-weight: 700;
}

.shopee-sourcing-guide-hero .btn {
    flex: 0 0 auto;
}

.shopee-sourcing-guide-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.shopee-sourcing-guide-step {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(220px, 0.9fr);
    align-items: stretch;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.shopee-sourcing-guide-copy {
    display: grid;
    align-content: start;
    gap: 6px;
}

.shopee-sourcing-step-number {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--accent);
    font-size: 12px;
    font-weight: 900;
}

.shopee-sourcing-guide-copy h3 {
    margin: 0;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.35;
}

.shopee-sourcing-guide-copy p {
    margin: 0;
    color: #526176;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

.shopee-sourcing-guide-shot {
    overflow: hidden;
    min-height: 170px;
    border: 1px solid #dde5f0;
    border-radius: 8px;
    background: #f5f7fb;
}

.shopee-extension-bar {
    height: 18px;
    background: #ff5630;
}

.shopee-extension-bar-red {
    background: #d90429;
}

.shopee-extension-card {
    margin: 8px;
    overflow: hidden;
    border: 1px solid #d7dde7;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.shopee-extension-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 38px;
    padding: 0 10px;
    border-bottom: 1px solid #edf0f5;
}

.shopee-extension-header strong {
    color: #1d2733;
    font-size: 13px;
    font-weight: 900;
}

.shopee-extension-header span {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: #f3f4f6;
    color: #111827;
    font-size: 16px;
    font-weight: 900;
}

.shopee-extension-install-box {
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 92px;
    color: #334155;
    font-weight: 900;
}

.shopee-extension-install-box i {
    color: #f4511e;
    font-size: 26px;
}

.shopee-extension-form {
    display: grid;
    gap: 8px;
    padding: 12px;
}

.shopee-extension-form label,
.shopee-extension-data label {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #6b7280;
    font-size: 12px;
    font-weight: 900;
}

.shopee-extension-form em,
.shopee-extension-data em {
    min-width: 0;
    padding: 6px 8px;
    border: 1px solid #d9dee8;
    border-radius: 6px;
    color: #3f4652;
    background: #ffffff;
    font-style: normal;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shopee-extension-form button,
.shopee-extension-primary,
.shopee-extension-send {
    border: 0;
    border-radius: 8px;
    min-height: 34px;
    padding: 6px 12px;
    color: #ffffff;
    background: #f2482f;
    font-weight: 900;
}

.shopee-extension-form button {
    justify-self: start;
    color: #4b5563;
    background: #f0f1f3;
}

.shopee-extension-primary,
.shopee-extension-send {
    width: calc(100% - 24px);
    margin: 12px 12px 0;
}

.shopee-extension-pill {
    display: inline-flex;
    width: max-content;
    max-width: calc(100% - 24px);
    margin: 10px 12px 6px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #2e7d32;
    background: #dcfce7;
    font-size: 12px;
    font-weight: 900;
}

.shopee-extension-images {
    display: flex;
    gap: 6px;
    padding: 0 12px 8px;
}

.shopee-extension-images span {
    display: block;
    width: 42px;
    height: 42px;
    border: 1px solid #d8dde7;
    border-radius: 6px;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(248, 250, 252, 0.92)),
        #ffffff;
}

.shopee-extension-data {
    display: grid;
    gap: 6px;
    padding: 0 12px 12px;
}

.shopee-extension-data.compact {
    padding-top: 18px;
}

.shopee-extension-send {
    margin-bottom: 12px;
}

.shopee-extension-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 8px;
    padding: 0 12px 10px;
}

.shopee-extension-actions .shopee-extension-send {
    width: 100%;
    margin: 0;
}

.shopee-extension-json {
    border: 0;
    border-radius: 8px;
    min-height: 34px;
    padding: 6px 10px;
    color: #4b5563;
    background: #eeeeee;
    font-size: 12px;
    font-weight: 900;
}

.shopee-extension-success {
    margin: 0 12px 12px;
    padding: 8px 10px;
    border-radius: 8px;
    color: #2e7d32;
    background: #e8f5e9;
    text-align: center;
    font-size: 12px;
    font-weight: 900;
}

.collection-detail-panel {
    display: grid;
    gap: 18px;
}

.collection-detail-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.collection-detail-actions .collection-copy-form {
    flex-wrap: wrap;
}

.collection-detail-actions .collection-copy-form .form-select {
    width: 220px;
}

.collection-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
}

.collection-detail-section {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.collection-detail-section h2 {
    margin: 0 0 14px;
    color: var(--ink);
    font-size: 16px;
    font-weight: 900;
}

.collection-edit-layout {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 380px);
}

.collection-edit-main {
    padding-bottom: 0;
}

.collection-thumbnail-url-card {
    display: grid;
    grid-template-columns: minmax(240px, 0.72fr) minmax(320px, 1.28fr);
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.collection-thumbnail-url-card > label {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin: 0;
}

.collection-thumbnail-url-card strong,
.collection-thumbnail-url-card small {
    display: block;
}

.collection-thumbnail-url-card strong {
    color: #344054;
    font-size: 14px;
}

.collection-thumbnail-url-card small {
    margin-top: 3px;
    color: #667085;
    font-size: 12px;
}

.collection-thumbnail-open {
    display: block;
    width: 100%;
    height: 100%;
}

.collection-thumbnail-open img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collection-thumbnail-item .product-thumbnail-delete {
    z-index: 3;
}

.collection-basic-grid {
    margin-bottom: 18px;
}

.collection-info-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.collection-edit-subcard {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.collection-option-config {
    display: block;
    margin: 0;
    background: #ffffff;
}

.collection-option-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.collection-option-edit-table {
    min-width: 1180px;
}

.collection-option-edit-table th:nth-child(1),
.collection-option-edit-table th:nth-child(2) {
    min-width: 130px;
}

.collection-option-edit-table th:nth-child(3) {
    min-width: 260px;
}

.collection-option-edit-table th:nth-child(4) {
    min-width: 150px;
}

.collection-option-image-field {
    display: grid;
    grid-template-columns: 38px minmax(180px, 1fr);
    align-items: center;
    gap: 8px;
}

.collection-option-image-preview {
    display: block;
    width: 38px;
    height: 38px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #f8fafc;
}

.collection-option-image-preview[hidden] {
    display: none;
}

.collection-option-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-real-stock-value {
    color: #087443;
    font-variant-numeric: tabular-nums;
}

.product-buy-management-open {
    color: #9a5b08;
    border-color: #f0c36a;
    background: #fffaf0;
}

.product-buy-management-open:hover {
    color: #ffffff;
    border-color: #b96e09;
    background: #b96e09;
}

.product-buy-entry-form {
    display: grid;
    grid-template-columns: minmax(150px, 0.8fr) minmax(110px, 0.45fr) minmax(260px, 2fr) auto;
    align-items: end;
    gap: 12px;
    padding: 16px;
    border: 1px solid #dfe5ef;
    border-radius: 10px;
    background: #f8fafc;
}

.product-buy-add-button {
    min-height: 42px;
    white-space: nowrap;
}

.product-buy-history-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 24px 0 10px;
}

.product-buy-history-heading h3,
.product-buy-history-heading p {
    margin: 0;
}

.product-buy-history-heading h3 {
    font-size: 16px;
}

.product-buy-history-heading p,
.product-buy-history-heading > span {
    color: #667085;
    font-size: 13px;
}

.product-buy-history-list {
    display: block;
}

.product-buy-history-table {
    overflow: hidden;
    border: 1px solid #e3e8f0;
    border-radius: 9px;
    background: #ffffff;
}

.product-buy-history-columns,
.product-buy-history-row {
    display: grid;
    grid-template-columns: minmax(150px, 0.8fr) minmax(110px, 0.45fr) minmax(260px, 2fr) 78px;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
}

.product-buy-history-columns {
    min-height: 42px;
    border-bottom: 1px solid #e3e8f0;
    background: #f7f9fc;
    color: #586579;
    font-size: 12px;
    font-weight: 800;
}

.product-buy-history-row + .product-buy-history-row {
    border-top: 1px solid #e8edf4;
}

.product-buy-history-cell {
    min-width: 0;
}

.product-buy-history-loading,
.product-buy-history-empty {
    display: grid;
    place-items: center;
    gap: 7px;
    min-height: 150px;
    padding: 24px;
    color: #667085;
    text-align: center;
    background: #fafbfc;
}

.product-buy-history-empty i {
    color: #98a2b3;
    font-size: 24px;
}

.product-buy-history-empty strong {
    color: #344054;
}

@media (max-width: 900px) {
    .product-buy-entry-form {
        grid-template-columns: 1fr 1fr;
    }

    .product-buy-memo-field {
        grid-column: 1 / -1;
    }

    .product-buy-history-columns {
        display: none;
    }

    .product-buy-history-row {
        grid-template-columns: 1fr 1fr;
        align-items: end;
    }

    .product-buy-history-memo {
        grid-column: 1 / -1;
    }

    .product-buy-history-cell::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 5px;
        color: #667085;
        font-size: 12px;
        font-weight: 700;
    }
}

.collection-market-link-create-card {
    display: grid;
    align-content: start;
    gap: 20px;
}

.collection-market-link-card-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.collection-market-link-card-icon {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 8px;
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.1);
}

.collection-market-link-card-heading h2 {
    margin: 0;
    color: var(--ink);
    font-size: 18px;
    font-weight: 900;
}

.collection-market-link-card-heading p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.collection-copy-sidebar-form {
    display: grid;
    gap: 10px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.collection-created-market-list {
    display: grid;
    gap: 8px;
}

.collection-created-market-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
}

.collection-created-market-heading h3 {
    margin: 0;
    color: var(--ink);
    font-size: 14px;
    font-weight: 900;
}

.collection-created-market-heading span {
    padding: 3px 8px;
    border-radius: 999px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
    background: rgba(var(--accent-rgb), 0.08);
}

.collection-created-market-item {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #344054;
    text-decoration: none;
    background: #ffffff;
}

.collection-created-market-item:hover {
    border-color: rgba(var(--accent-rgb), 0.38);
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.03);
}

.collection-created-market-item > span {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
}

.collection-created-market-item strong {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.collection-created-market-empty {
    display: grid;
    min-height: 110px;
    place-items: center;
    align-content: center;
    gap: 8px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: var(--muted);
    font-size: 12px;
    background: #f8fafc;
}

.collection-created-market-empty i {
    font-size: 22px;
}

.collection-form-actions {
    margin-bottom: 0;
}

@media (max-width: 1100px) {
    .collection-edit-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .collection-market-link-create-card {
        position: static;
        max-height: none;
        grid-row: 1;
    }

}

@media (max-width: 760px) {
    .collection-thumbnail-url-card,
    .collection-info-card-grid,
    .collection-option-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

.collection-meta-grid {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 10px 14px;
    margin: 0;
}

.collection-meta-grid dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.collection-meta-grid dd {
    min-width: 0;
    margin: 0;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.collection-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    gap: 10px;
}

.collection-image-item {
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    aspect-ratio: 1 / 1;
}

.collection-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collection-image-item span {
    position: absolute;
    right: 8px;
    bottom: 8px;
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.72);
    font-size: 12px;
    font-weight: 900;
}

.collection-option-table-wrap {
    border: 1px solid var(--line);
    border-radius: 8px;
}

.collection-option-table th {
    color: #475467;
    background: #f8fafc;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.collection-option-table td {
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.collection-readonly-text {
    min-height: 120px;
    max-height: 360px;
    overflow: auto;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: #f8fafc;
    font-size: 14px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.collection-raw-payload summary {
    cursor: pointer;
    color: var(--ink);
    font-weight: 900;
}

.collection-raw-payload pre {
    max-height: 420px;
    margin: 12px 0 0;
    overflow: auto;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #0f172a;
    color: #e5e7eb;
    font-size: 12px;
    line-height: 1.55;
}

.product-list-filter-form {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.product-list-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.collection-list-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-list-summary-card {
    position: relative;
    overflow: hidden;
    display: grid;
    min-height: 112px;
    gap: 7px;
    align-content: start;
    padding: 14px 16px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: linear-gradient(145deg, #ffffff 0%, #ffffff 68%, #f8fafc 100%);
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.055);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.product-list-summary-card::before {
    position: absolute;
    top: 0;
    right: 16px;
    left: 16px;
    height: 2px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, rgba(var(--accent-rgb), .12), rgba(var(--accent-rgb), .68), rgba(var(--accent-rgb), .12));
    content: "";
    opacity: .65;
}

.product-list-summary-card:hover {
    border-color: rgba(var(--accent-rgb), 0.5);
    background: linear-gradient(145deg, #ffffff 0%, var(--accent-soft) 100%);
    color: var(--accent);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .09);
    transform: translateY(-2px);
}

.product-list-summary-card.is-active {
    border-color: rgba(var(--accent-rgb), .42);
    background: linear-gradient(145deg, #ffffff 0%, var(--accent-soft) 100%);
    color: var(--accent);
    box-shadow: 0 9px 24px rgba(var(--accent-rgb), .09);
}

.product-list-summary-head {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.product-list-summary-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 9px;
    color: #ffffff;
    font-size: 12px;
    flex: 0 0 24px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 4px 10px rgba(15, 23, 42, .12);
}

.product-list-summary-icon.is-total {
    background: #2563eb;
}

.product-list-summary-icon.is-linked {
    background: #16a34a;
}

.product-list-summary-icon.is-unlinked {
    background: #64748b;
}

.product-list-summary-icon.is-publish {
    background: #f59e0b;
}

.product-list-summary-icon.is-danger {
    background: #e11d48;
}

.product-list-summary-icon.is-warning {
    background: #d97706;
}

.product-required-summary-card {
    align-content: start;
}

.product-required-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
}

.product-required-summary-item {
    display: grid;
    min-width: 0;
    min-height: 52px;
    place-content: center;
    gap: 5px;
    padding: 5px 3px;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    background: #f8fafc;
    color: #64748b;
    text-align: center;
    text-decoration: none;
    transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.product-required-summary-item span {
    overflow: hidden;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-required-summary-item strong {
    color: #b45309;
    font-size: 17px;
}

.product-required-summary-item:hover,
.product-required-summary-item.is-active {
    border-color: #d97706;
    background: #fff7ed;
    color: #9a3412;
}

.product-list-summary-label {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.15;
}

.product-list-summary-card strong {
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.025em;
}

.addon-service-type-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.addon-service-type-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    color: var(--ink);
    font-weight: 800;
    font-size: 13px;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.addon-service-type-card i {
    font-size: 12px;
    color: var(--muted);
}

.addon-service-type-card:hover {
    border-color: rgba(var(--accent-rgb), 0.4);
}

.addon-service-type-card.is-active {
    border-color: rgba(var(--accent-rgb), 0.5);
    background: var(--accent-soft);
    color: var(--accent);
}

.addon-service-type-card.is-active i {
    color: var(--accent);
}

.collection-summary-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    min-height: 28px;
    align-content: flex-start;
}

.collection-summary-chip {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 88px;
    min-height: 24px;
    padding: 3px 7px;
    border: 1px solid #dbeafe;
    border-radius: 7px;
    background: #eff6ff;
    color: #1e3a8a;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
}

.collection-summary-chip:hover,
.collection-summary-chip.is-active {
    border-color: #2563eb;
    background: #dbeafe;
    color: #1d4ed8;
}

.collection-summary-chip strong {
    font-size: 12px;
}

.collection-summary-empty {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.product-list-summary-desc {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.product-list-summary-country-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
}

.product-list-summary-country-chip {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    min-width: 0;
    min-height: 24px;
    padding: 3px 6px;
    border: 1px solid #dbeafe;
    border-radius: 7px;
    background: #eff6ff;
    color: #1e3a8a;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
}

.product-list-summary-country-chip:hover,
.product-list-summary-country-chip.is-active {
    border-color: #2563eb;
    background: #dbeafe;
    color: #1d4ed8;
}

.product-list-summary-country-chip strong {
    font-size: 12px;
    font-weight: 900;
}

.product-list-summary-flag {
    font-size: 14px;
    line-height: 1;
}

.market-account-summary-grid {
    margin-bottom: 12px;
}

.market-account-summary-card {
    min-height: 132px;
}

.market-account-filter {
    margin-bottom: 16px;
}

.market-account-chip-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.market-account-table th,
.market-account-table td {
    vertical-align: middle;
}

.market-account-table th:first-child,
.market-account-table td:first-child {
    width: 180px;
}

.market-account-table th:nth-child(3),
.market-account-table td:nth-child(3),
.market-account-table th:nth-child(4),
.market-account-table td:nth-child(4),
.market-account-table th:nth-child(5),
.market-account-table td:nth-child(5) {
    width: 120px;
}

.market-connection-card {
    width: min(100%, 680px);
    min-width: 0;
    border: 1px solid #e1e8f2;
    border-radius: 10px;
    background: #fbfcfe;
    overflow: hidden;
}

.market-connection-card + .market-connection-card {
    margin-top: 10px;
}

.market-connection-summary {
    display: grid;
    grid-template-columns: minmax(130px, .9fr) minmax(150px, 1.4fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 9px 11px;
    cursor: pointer;
    list-style: none;
}

.market-connection-summary::-webkit-details-marker {
    display: none;
}

.market-connection-summary:hover {
    background: #f6f9fe;
}

.market-connection-summary:focus-visible {
    outline: 2px solid #4f7ff0;
    outline-offset: -2px;
}

.market-connection-summary-identity {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.market-connection-name {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.market-connection-name strong {
    overflow: hidden;
    color: #344054;
    font-size: .8rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.market-connection-count {
    flex: 0 0 auto;
    color: #667085;
    font-size: .7rem;
    font-weight: 800;
}

.market-connection-merchant-id {
    color: #98a2b3;
    font-size: .67rem;
    line-height: 1;
}

.market-connection-merchant-id strong {
    color: #667085;
    font-weight: 800;
}

.market-connection-summary-countries {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    min-width: 0;
}

.market-connection-summary-country {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    min-height: 24px;
    padding: 3px 6px;
    border: 1px solid #dfe7f2;
    border-radius: 6px;
    background: #fff;
    color: #667085;
    font-size: .65rem;
    line-height: 1;
}

.market-connection-summary-country strong {
    color: #344054;
    font-size: .67rem;
    font-weight: 900;
}

.market-connection-summary-country small {
    display: inline-grid;
    min-width: 15px;
    height: 15px;
    place-items: center;
    border-radius: 999px;
    background: #edf3ff;
    color: #315fc4;
    font-size: .56rem;
    font-weight: 900;
}

.market-connection-summary-action {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    color: #667085;
    white-space: nowrap;
}

.market-connection-summary-action strong {
    color: #344054;
    font-size: .7rem;
    font-weight: 900;
}

.market-connection-detail-label {
    color: #315fc4;
    font-size: .66rem;
    font-weight: 800;
}

.market-connection-summary-action i {
    color: #98a2b3;
    font-size: .65rem;
    transition: transform .16s ease;
}

.market-connection-card[open] .market-connection-summary-action i {
    transform: rotate(180deg);
}

.market-connection-detail {
    padding: 10px 11px 11px;
    border-top: 1px solid #e8edf5;
    background: #fff;
}

.market-connection-country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 7px;
}

.market-connection-country {
    min-width: 0;
    padding: 8px;
    border: 1px solid #dfe7f2;
    border-radius: 8px;
    background: #ffffff;
}

.market-connection-country > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
    color: #667085;
    font-size: .67rem;
    font-weight: 800;
}

.market-connection-country-name {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.market-connection-country-name strong {
    color: #344054;
    font-size: .72rem;
}

.market-connection-country-name small {
    overflow: hidden;
    color: #667085;
    font-size: .65rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.market-connection-shop-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.market-connection-shop {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    padding: 4px 6px;
    border-radius: 6px;
    background: #f1f5fb;
    color: #475467;
    line-height: 1;
}

.market-connection-shop small {
    color: #98a2b3;
    font-size: .6rem;
    font-weight: 800;
}

.market-connection-shop strong {
    overflow: hidden;
    font-size: .67rem;
    font-weight: 900;
    text-overflow: ellipsis;
}

.market-country-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.market-country-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 25px;
    padding: 3px 7px;
    border: 1px solid #dbe3ef;
    border-radius: 7px;
    background: #f7f9fc;
    color: #475467;
    font-size: .7rem;
    line-height: 1;
}

.market-country-chip strong {
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .02em;
}

.market-country-list-empty {
    color: #98a2b3;
    font-size: .74rem;
    font-weight: 700;
}

.admin-user-summary-grid {
    margin-bottom: 12px;
}

.admin-user-summary-card {
    min-height: 132px;
}

.admin-user-summary-grid + .list-search-form {
    margin-bottom: 16px;
}

.admin-user-filter-line {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    align-items: end;
    gap: 12px;
}

.admin-user-filter-actions {
    gap: 8px;
}

.admin-user-filter-actions .btn-outline-secondary {
    min-height: 32px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.admin-user-table th,
.admin-user-table td {
    vertical-align: middle;
}

.admin-user-table th:first-child,
.admin-user-table td:first-child {
    width: 240px;
}

.admin-user-table th:nth-child(3),
.admin-user-table td:nth-child(3),
.admin-user-table th:nth-child(4),
.admin-user-table td:nth-child(4) {
    width: 120px;
}

.admin-user-table th:last-child,
.admin-user-table td:last-child {
    width: 110px;
}

.admin-user-status-badge {
    min-width: 42px;
    font-weight: 900;
}

@media (max-width: 860px) {
    .account-panel {
        width: 100%;
        max-width: none;
    }

    .admin-shopee-auth-fields {
        grid-template-columns: 1fr;
    }

    .admin-user-summary-grid,
    .market-account-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-user-summary-card,
    .market-account-summary-card {
        min-height: 118px;
    }

    .admin-user-table.board-table,
    .market-account-table.board-table {
        display: block;
        min-width: 0;
    }

    .admin-user-table thead,
    .market-account-table thead {
        display: none;
    }

    .admin-user-table tbody,
    .market-account-table tbody {
        display: grid;
        gap: 12px;
    }

    .admin-user-table tbody tr,
    .market-account-table tbody tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #ffffff;
    }

    .admin-user-table.board-table th,
    .admin-user-table.board-table td,
    .market-account-table.board-table th,
    .market-account-table.board-table td {
        display: grid;
        grid-template-columns: 86px minmax(0, 1fr);
        gap: 8px;
        align-items: center;
        width: auto !important;
        min-width: 0;
        padding: 0;
        border: 0;
        white-space: normal;
    }

    .admin-user-table tbody td::before,
    .market-account-table tbody td::before {
        color: var(--muted);
        font-size: 12px;
        font-weight: 900;
    }

    .admin-user-table tbody td:nth-child(1)::before { content: "이름"; }
    .admin-user-table tbody td:nth-child(2)::before { content: "이메일"; }
    .admin-user-table tbody td:nth-child(3)::before { content: "등급"; }
    .admin-user-table tbody td:nth-child(4)::before { content: "상태"; }
    .admin-user-table tbody td:nth-child(5)::before { content: "가입일"; }
    .admin-user-table tbody td:nth-child(6)::before { content: "관리"; }

    .market-account-table tbody td:nth-child(1)::before { content: "마켓"; }
    .market-account-table tbody td:nth-child(2)::before { content: "계정명"; }
    .market-account-table tbody td:nth-child(3)::before { content: "운영환경"; }
    .market-account-table tbody td:nth-child(4)::before { content: "상태"; }
    .market-account-table tbody td:nth-child(5)::before { content: "대표"; }
    .market-account-table tbody td:nth-child(6)::before { content: "연결정보"; }
    .market-account-table tbody td:nth-child(7)::before { content: "관리"; }

    .admin-user-table td.text-end,
    .market-account-table td.text-end {
        text-align: left !important;
    }

    .market-connection-summary {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .market-connection-summary-countries {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .market-connection-summary-action {
        grid-column: 2;
        grid-row: 1;
    }

    .admin-user-filter-line {
        grid-template-columns: minmax(260px, 1fr) auto;
    }
}

@media (max-width: 680px) {
    .admin-user-summary-grid,
    .market-account-summary-grid {
        grid-template-columns: 1fr;
    }

    .admin-user-summary-grid + .list-search-form,
    .market-account-filter {
        padding: 12px;
    }

    .market-account-chip-row .collection-summary-chip {
        width: 100%;
    }

    .admin-user-filter-line {
        grid-template-columns: 1fr;
    }

    .admin-user-filter-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .admin-user-filter-actions .btn,
    .admin-user-filter-actions .product-list-search-button {
        width: 100%;
        max-width: none;
    }
}

.product-target-market-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(var(--accent-rgb), 0.28);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, rgba(var(--accent-rgb), 0.07) 100%);
    box-shadow: 0 12px 28px rgba(var(--accent-rgb), 0.06);
}

.product-target-market-bar-compact {
    justify-content: flex-end;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.product-target-market-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 900;
}

.product-target-market-label i {
    color: var(--accent);
}

.product-target-market-control {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: auto;
    max-width: 100%;
    flex-wrap: wrap;
}

.product-target-sync-button {
    min-height: 38px;
    height: 38px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.product-target-sync-button i {
    font-size: 12px;
}

.product-target-market-select {
    width: 240px;
}

.market-scope-picker {
    display: inline-flex;
    align-items: flex-end;
    gap: 9px;
    max-width: 100%;
    padding: 8px 10px;
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    border-radius: 10px;
    background: linear-gradient(135deg, #fff 0%, rgba(var(--accent-rgb), 0.055) 100%);
}

.market-scope-picker-standalone {
    width: fit-content;
}

.market-scope-field {
    display: grid;
    min-width: 0;
    gap: 4px;
    margin: 0;
}

.market-scope-action {
    display: flex;
    align-items: flex-end;
}

.market-scope-picker .product-target-market-select {
    min-height: 38px;
    height: 38px;
}

.market-scope-field > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.market-scope-field > span i {
    color: var(--accent);
}

.market-scope-field.is-static {
    min-width: 150px;
}

.market-scope-field.is-static > strong {
    display: flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    border-radius: 7px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
}

.market-scope-account-select {
    width: min(360px, 36vw);
    min-height: 34px;
    border-color: rgba(var(--accent-rgb), 0.32);
    font-size: 12px;
    font-weight: 800;
}

.market-scope-divider,
.market-scope-filter-divider {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(var(--accent-rgb), 0.58);
    font-size: 10px;
}

.market-scope-divider {
    min-height: 34px;
}

.market-scope-filter-group {
    display: grid;
    grid-template-columns: minmax(150px, 0.9fr) auto minmax(210px, 1.25fr);
    align-items: end;
    gap: 8px;
    min-width: 0;
}

.market-scope-filter-group .list-search-filter {
    width: 100%;
}

.market-scope-filter-divider {
    min-height: 32px;
}

@media (max-width: 768px) {
    .market-scope-picker,
    .market-scope-picker-standalone {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
        width: 100%;
    }

    .market-scope-divider {
        min-height: 0;
        transform: rotate(90deg);
    }

    .market-scope-account-select,
    .product-target-market-select {
        width: 100%;
    }

    .market-scope-action,
    .market-scope-action .product-target-sync-button {
        width: 100%;
    }

    .market-scope-filter-group {
        grid-template-columns: minmax(0, 1fr);
    }

    .market-scope-filter-divider {
        min-height: 0;
        transform: rotate(90deg);
    }
}

.product-source-merchant-item {
    min-width: 0;
    max-width: 420px;
}

.product-source-merchant-item strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.list-search-form {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.list-search-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
}

.list-search-heading i {
    color: var(--accent);
}

.list-search-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-list-filter-line {
    display: grid;
    grid-template-columns: minmax(240px, 0.9fr) minmax(220px, 0.75fr) minmax(300px, 1fr) auto;
    align-items: end;
    gap: 12px;
}

.collection-list-filter-line {
    grid-template-columns: minmax(360px, 1fr) auto;
}

.product-list-filter-field {
    display: grid;
    min-width: 0;
    gap: 6px;
}

.product-list-filter-field .list-search-label {
    flex: none;
}

.product-list-filter-actions {
    display: flex;
    align-items: flex-end;
    gap: 6px;
}

.product-list-filter-actions .btn {
    min-height: 32px;
    white-space: nowrap;
}

.product-list-search-button {
    width: 34px;
    min-width: 34px;
    max-width: 34px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    font-size: 12px;
}

.list-search-label {
    flex: 0 0 76px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.list-search-filter {
    width: 220px;
}

.product-target-market-select {
    border-color: rgba(var(--accent-rgb), 0.55);
    background-color: var(--accent-soft);
    color: var(--accent);
    font-weight: 900;
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.08);
}

.product-target-market-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.14);
}

.list-search-controls {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 10px;
}

.list-search-field {
    flex: 0 0 140px;
}

.list-search-keyword {
    flex: 1 1 auto;
}

.product-list-search-group {
    flex-wrap: nowrap;
}

.product-list-search-group .input-group-text,
.product-list-search-group .form-control,
.product-market-brand-filter .market-search-dropdown-toggle {
    min-height: 34px;
    height: 34px;
    padding-top: 5px;
    padding-bottom: 5px;
    font-size: 13px;
}

.product-list-search-group .form-control {
    min-width: 0;
}

.product-category-layer-field {
    position: relative;
    min-width: 0;
}

.product-category-layer-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
    text-align: left;
}

.product-category-layer-toggle span {
    overflow: hidden;
    min-width: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-category-layer-toggle.has-value {
    border-color: rgba(var(--accent-rgb), 0.45);
    background: var(--accent-soft);
    color: var(--accent);
}

.product-category-layer-toggle:hover,
.product-category-layer-toggle:focus,
.product-category-layer-toggle:active,
.product-category-layer-field.is-open .product-category-layer-toggle {
    border-color: rgba(var(--accent-rgb), 0.55);
    background: #ffffff;
    color: var(--ink);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.08);
}

.product-category-layer-toggle.has-value:hover,
.product-category-layer-toggle.has-value:focus,
.product-category-layer-toggle.has-value:active,
.product-category-layer-field.is-open .product-category-layer-toggle.has-value {
    background: var(--accent-soft);
    color: var(--accent);
}

.product-category-layer-panel {
    position: absolute;
    z-index: 50;
    top: calc(100% + 6px);
    left: 0;
    width: min(720px, calc(100vw - 48px));
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
}

.product-category-layer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
}

.product-category-layer-close {
    width: 30px;
    min-width: 30px;
    height: 28px;
    min-height: 28px;
    padding: 0;
}

.product-category-layer-levels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.market-search-dropdown-clear {
    color: #64748b;
    font-weight: 900;
}

.market-search-dropdown-clear:hover,
.market-search-dropdown-clear:focus {
    background: #f1f5f9;
    color: #334155;
}

.inline-action-confirm {
    position: absolute;
    z-index: 2000;
    width: 260px;
    max-width: calc(100vw - 24px);
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

.inline-action-confirm::before {
    position: absolute;
    top: -6px;
    left: 14px;
    width: 10px;
    height: 10px;
    border-top: 1px solid #cbd5e1;
    border-left: 1px solid #cbd5e1;
    background: #ffffff;
    content: "";
    transform: rotate(45deg);
}

.inline-action-confirm-message {
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.45;
}

.inline-action-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 10px;
}

.inline-action-confirm-actions .btn {
    min-height: 28px;
    padding: 4px 9px;
    font-size: 11px;
    font-weight: 800;
}

.product-market-filter-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    align-items: start;
}

.product-market-brand-filter {
    align-items: stretch;
    flex-wrap: wrap;
}

.product-market-filter-level {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.product-market-filter-level .form-label {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.product-market-brand-dropdown {
    flex: 1 1 auto;
    min-width: 0;
}

.product-market-brand-dropdown .market-search-dropdown {
    width: 100%;
}

.product-market-brand-results {
    display: flex;
    flex: 1 0 100%;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 34px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.marketing-panel {
    display: grid;
    gap: 18px;
}

.marketing-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}

.marketing-toolbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.marketing-toolbar h2 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0;
}

.marketing-toolbar p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.marketing-page-tabs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
    padding: 4px;
    border: 1px solid #d7e1f0;
    border-radius: 8px;
    background: #f8fafc;
}

.marketing-page-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 14px;
    border-radius: 6px;
    color: #64748b;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.marketing-page-tabs a:hover {
    color: #1f3f96;
    background: #eef4ff;
}

.marketing-page-tabs a.is-active {
    color: #1f3f96;
    border: 1px solid #bfdbfe;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(31, 63, 150, 0.12);
}

.marketing-page-tabs a.is-active:hover {
    color: #1f3f96;
    background: #ffffff;
}

.marketing-api-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.marketing-api-tabs span,
.marketing-api-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    background: #fff;
    text-decoration: none;
}

.marketing-api-tabs span.active,
.marketing-api-tabs a.active {
    border-color: rgba(var(--accent-rgb), 0.35);
    color: var(--accent);
    background: var(--accent-soft);
}

.marketing-search-form {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
}

.marketing-filter-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(340px, 1.35fr);
    gap: 12px;
    min-width: 0;
}

.marketing-filter-grid label {
    display: grid;
    gap: 6px;
    margin: 0;
}

.marketing-period-field {
    display: grid;
    gap: 6px;
    min-width: 0;
    margin: 0;
}

.marketing-filter-grid label > span,
.marketing-period-field > span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.marketing-keyword-field {
    grid-column: auto;
}

.marketing-period-field {
    grid-column: auto;
}

.marketing-search-form .list-search-actions {
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0;
    white-space: nowrap;
}

.marketing-panel .marketing-shop-selector {
    margin: 0;
}

.marketing-market-country-bar {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    min-width: 0;
    margin: 0 0 12px;
}

.marketing-market-country-bar .excel-country-selector {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}

.marketing-market-account-selector {
    display: grid;
    flex: 0 1 var(--market-account-combined-width);
    width: var(--market-account-combined-width);
    max-width: 100%;
    gap: 5px;
    min-width: 0;
    margin: 0;
}

.marketing-market-account-scope {
    position: sticky;
    z-index: 29;
    top: 74px;
    margin: 0 0 12px;
    padding: 14px 18px;
    border: 1px solid #d5dfed;
    border-radius: 12px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 7px 18px rgba(31, 55, 98, .07);
    backdrop-filter: blur(10px);
}

.marketing-market-account-label {
    display: inline-flex;
    align-items: center;
    color: #244f9f;
    font-size: .82rem;
    font-weight: 900;
}

.marketing-market-account-selector .market-account-dropdown-trigger {
    min-height: 42px;
    padding: 8px 12px;
}

.marketing-market-account-scope.is-account-selected.is-market-shopee .market-account-dropdown-trigger {
    border-color: #e76536;
    background: #fff9f6;
    box-shadow:
        0 0 0 3px rgba(238, 86, 37, .14),
        0 5px 12px rgba(182, 66, 27, .08);
}

.marketing-market-account-scope.is-account-selected.is-market-shopee .market-account-dropdown-trigger:hover,
.marketing-market-account-scope.is-account-selected.is-market-shopee .market-account-dropdown.is-open .market-account-dropdown-trigger {
    border-color: #d84d1c;
    background: #fff5f0;
}

.market-fee-settings-table-wrap {
    border: 1px solid var(--line);
    border-radius: 9px;
}

.market-fee-common-setting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 18px;
    border: 1px solid #cfe0fa;
    border-radius: 12px;
    background: #f5f9ff;
}

.shopee-fee-source-selector {
    padding: 18px;
    border: 1px solid #dbe4f2;
    border-radius: 14px;
    background: #f8faff;
}

.shopee-fee-source-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.shopee-fee-source-card {
    position: relative;
    min-height: 92px;
    padding: 16px 48px 16px 16px;
    display: flex;
    align-items: center;
    gap: 13px;
    border: 1px solid #d8e1ef;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.shopee-fee-source-card:hover {
    border-color: #9ab2df;
    box-shadow: 0 5px 16px rgba(39, 72, 139, .08);
}

.shopee-fee-source-card:has(input:checked) {
    border-color: #315db4;
    background: #f2f6ff;
    box-shadow: 0 0 0 2px rgba(49, 93, 180, .12);
}

.shopee-fee-source-card input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.shopee-fee-source-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #315db4;
    background: #eaf0ff;
}

.shopee-fee-source-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.shopee-fee-source-copy strong {
    color: #17243a;
    font-size: .95rem;
}

.shopee-fee-source-copy small {
    color: #6f7d93;
    line-height: 1.45;
}

.shopee-fee-source-check {
    position: absolute;
    top: 50%;
    right: 16px;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border: 1px solid #cfd9e8;
    border-radius: 50%;
    color: transparent;
    background: #fff;
    transform: translateY(-50%);
}

.shopee-fee-source-card:has(input:checked) .shopee-fee-source-check {
    border-color: #315db4;
    color: #fff;
    background: #315db4;
}

@media (max-width: 720px) {
    .shopee-fee-source-grid {
        grid-template-columns: 1fr;
    }
}

.market-fee-common-setting strong {
    display: block;
    color: #243b64;
    font-size: 14px;
}

.market-fee-common-setting p {
    margin: 4px 0 0;
    color: #6b7d99;
    font-size: 12px;
}

.market-fee-common-setting-input {
    flex: 0 0 190px;
    color: #34445f;
    font-size: 12px;
    font-weight: 800;
}

.market-fee-common-setting-input > span {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 6px;
}

.market-fee-field-help {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6b7d99;
    cursor: help;
}

.market-fee-field-help::after {
    position: absolute;
    z-index: 1085;
    right: -10px;
    bottom: calc(100% + 9px);
    width: 285px;
    padding: 9px 11px;
    border-radius: 8px;
    color: #fff;
    background: #26344d;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .22);
    content: attr(data-tooltip);
    font-size: 11px;
    font-style: normal;
    font-weight: 650;
    line-height: 1.5;
    text-align: left;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    transform: translateY(3px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
    pointer-events: none;
}

.market-fee-field-help:hover::after,
.market-fee-field-help:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 767.98px) {
    .market-fee-common-setting {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .market-fee-common-setting-input {
        flex-basis: auto;
    }
}

.market-fee-settings-table {
    width: max-content;
    min-width: 2070px;
    margin: 0;
    table-layout: fixed;
}

.market-fee-settings-table th,
.market-fee-settings-table td {
    width: 96px;
    min-width: 96px;
    max-width: 96px;
    padding: 7px 6px;
    border-color: var(--line);
    vertical-align: middle;
}

.market-fee-settings-table th:first-child,
.market-fee-settings-table td:first-child {
    width: 156px;
    min-width: 156px;
    max-width: 156px;
}

.market-fee-settings-table thead th {
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.market-fee-country-identity {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.market-fee-country-flag {
    flex: 0 0 auto;
    font-size: 16px;
    line-height: 1;
}

.market-fee-country-identity > span:last-child {
    min-width: 0;
    font-size: 12px;
    font-weight: 900;
}

.market-fee-country-identity small {
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
}

.market-fee-country-currency {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.market-fee-settings-table .form-control,
.market-fee-settings-table .form-select {
    width: 100%;
    min-width: 0;
}

.market-fee-settings-table .input-group {
    display: flex;
    width: 100%;
    min-width: 0;
    flex-wrap: nowrap;
}

.market-fee-settings-table .input-group > .form-control {
    width: 1%;
    min-width: 0;
    flex: 1 1 auto;
}

.market-fee-settings-table .input-group > .input-group-text {
    flex: 0 0 auto;
}

.market-fee-settings-table input[type="number"].form-control {
    font-size: 12px;
}

.market-fee-settings-table [data-fee-key="exchange"] {
    width: 92px;
    min-width: 92px;
    max-width: 92px;
}

.market-fee-settings-table [data-fee-key="pg"] {
    width: 110px;
    min-width: 110px;
    max-width: 110px;
}

.market-fee-settings-table [data-fee-key="buyerShipping"],
.market-fee-settings-table [data-fee-key="importDuty"],
.market-fee-settings-table [data-fee-key="commission"],
.market-fee-settings-table [data-fee-key="fixedFee"],
.market-fee-settings-table [data-fee-key="platformInfra"],
.market-fee-settings-table [data-fee-key="platformShipping"],
.market-fee-settings-table [data-fee-key="importPerKg"],
.market-fee-settings-table [data-fee-key="threshold"] {
    width: 110px;
    min-width: 110px;
    max-width: 110px;
}

.market-fee-settings-table [data-fee-key="payoneer"] {
    width: 88px;
    min-width: 88px;
    max-width: 88px;
}

.market-fee-settings-table [data-fee-key="gst"],
.market-fee-settings-table [data-fee-key="lvg"],
.market-fee-settings-table [data-fee-key="vat"],
.market-fee-settings-table [data-fee-key="traffic"],
.market-fee-settings-table [data-fee-key="pit"],
.market-fee-settings-table [data-fee-key="vcx"],
.market-fee-settings-table [data-fee-key="fsp"] {
    width: 82px;
    min-width: 82px;
    max-width: 82px;
}

.market-fee-settings-table [data-fee-key="declaredRate"] {
    width: 92px;
    min-width: 92px;
    max-width: 92px;
}

.market-fee-settings-table [data-fee-key="localTax"] {
    width: 112px;
    min-width: 112px;
    max-width: 112px;
}

.market-fee-local-tax-field {
    display: grid;
    gap: 5px;
}

.market-fee-local-tax-label {
    color: #395b91;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
}

.market-fee-local-tax-input .form-control {
    padding-right: 4px;
    padding-left: 6px;
}

.market-fee-local-tax-empty {
    display: flex;
    min-height: 52px;
    align-items: center;
}

.market-fee-settings-table .market-fee-compact-percent {
    padding-right: 3px;
    padding-left: 3px;
}

.market-fee-settings-table .market-fee-compact-percent .form-control {
    padding-right: 2px;
    padding-left: 4px;
}

.market-fee-settings-table .market-fee-compact-percent .input-group-text {
    padding-right: 4px;
    padding-left: 4px;
}

.market-fee-settings-table [data-fee-key="fspEnabled"],
.market-fee-settings-table [data-fee-key="ccbEnabled"] {
    width: 112px;
    min-width: 112px;
    max-width: 112px;
}

.market-fee-settings-modal .modal-dialog {
    max-width: min(1500px, calc(100vw - 32px));
}

.market-fee-settings-modal .modal-content,
.market-fee-settings-modal form {
    min-height: 0;
}

.market-fee-settings-modal form {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    overflow: hidden;
}

.market-fee-settings-modal .modal-body {
    overflow: auto;
}

.market-fee-settings-modal-heading {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 14px;
}

.market-fee-settings-modal-heading .market-account-identity {
    min-width: 0;
}

@media (max-width: 760px) {
    .market-fee-settings-modal .modal-dialog {
        max-width: calc(100vw - 16px);
        margin: 8px;
    }

    .market-fee-settings-modal-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
}

.marketing-shop-card-label {
    min-width: 0;
}

.marketing-date-range {
    position: relative;
}

.marketing-date-range-trigger {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    color: var(--ink);
    text-align: left;
}

.marketing-date-range-trigger i {
    color: var(--muted);
}

.marketing-date-range-trigger:hover,
.marketing-date-range-trigger:focus,
.marketing-date-range-trigger:focus-visible,
.marketing-date-range-trigger:active {
    border-color: rgba(var(--accent-rgb), 0.55);
    background: #ffffff;
    color: var(--ink);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}

.marketing-date-panel {
    position: absolute;
    z-index: 80;
    top: calc(100% + 8px);
    left: 0;
    width: min(760px, calc(100vw - 48px));
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
}

.marketing-date-calendars {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.marketing-date-selection-guide {
    margin-bottom: 12px;
    padding: 9px 11px;
    border-radius: 7px;
    background: #f5f8ff;
    color: #35518a;
    font-size: 12px;
    font-weight: 800;
}

.marketing-date-selection-guide.is-warning {
    background: #fff7ed;
    color: #c2410c;
}

.marketing-calendar {
    min-width: 0;
}

.marketing-calendar-head {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.marketing-calendar-head strong {
    color: var(--ink);
    font-size: 20px;
    font-weight: 900;
    text-align: center;
}

.marketing-calendar-head button,
.marketing-calendar-days button {
    border: 0;
    background: transparent;
}

.marketing-calendar-head button {
    display: inline-grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 8px;
    color: #98a2b3;
}

.marketing-calendar-head button:hover,
.marketing-calendar-head button:focus {
    background: #f2f4f7;
    color: var(--accent);
}

.marketing-calendar-weekdays,
.marketing-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.marketing-calendar-weekdays {
    margin-bottom: 8px;
}

.marketing-calendar-weekdays span {
    color: #667085;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.marketing-calendar-days button,
.marketing-calendar-days span {
    min-height: 34px;
}

.marketing-calendar-days button {
    border-radius: 8px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
}

.marketing-calendar-days button:hover,
.marketing-calendar-days button:focus {
    background: var(--accent-soft);
    color: var(--accent);
}

.marketing-calendar-days button.is-in-range {
    background: #eff6ff;
    color: #1d4ed8;
}

.marketing-calendar-days button.is-start,
.marketing-calendar-days button.is-end {
    background: var(--accent);
    color: #ffffff;
}

.marketing-calendar-days button.is-today:not(.is-start):not(.is-end) {
    color: #ef3b24;
}

.marketing-date-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.marketing-table-wrap {
    margin-bottom: 0;
}

.marketing-table td,
.marketing-table th {
    vertical-align: middle;
}

.marketing-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.marketing-status-badge.is-live {
    color: #047857;
    background: #d1fae5;
}

.marketing-status-badge.is-ready {
    color: #92400e;
    background: #fef3c7;
}

.marketing-status-badge.is-ended {
    color: #475467;
    background: #eef2f7;
}

.marketing-status-badge.is-muted {
    color: var(--muted);
    background: #f8fafc;
}

.marketing-title-cell {
    display: grid;
    gap: 4px;
    min-width: 260px;
}

.marketing-title-cell strong {
    color: var(--ink);
    font-weight: 900;
}

.marketing-title-cell span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.marketing-period {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-weight: 800;
}

.marketing-period i {
    color: var(--muted);
    font-size: 12px;
}

.marketing-row-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.marketing-row-actions form {
    margin: 0;
}

.marketing-empty {
    order: 4;
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 210px;
    color: var(--muted);
}

.marketing-empty i {
    font-size: 32px;
    color: #98a2b3;
}

.marketing-empty strong {
    color: var(--ink);
}

.marketing-pagination-actions {
    order: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.marketing-pagination-actions span {
    color: var(--muted);
    font-weight: 900;
}

.marketing-manage-panel {
    display: grid;
    gap: 18px;
}

.marketing-manage-panel > form[id^="marketing-delete-"] {
    display: none;
}

.marketing-manage-summary {
    order: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.marketing-manage-summary h2 {
    margin: 10px 0 4px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0;
}

.marketing-manage-summary p {
    margin: 0;
    color: var(--muted);
    font-weight: 800;
}

.marketing-manage-form,
.marketing-items-form {
    order: 4;
    display: grid;
    gap: 16px;
}

.marketing-form-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.2fr) repeat(2, minmax(220px, 0.8fr));
    gap: 14px;
}

.marketing-form-grid label {
    display: grid;
    gap: 6px;
    margin: 0;
}

.marketing-form-grid label > span {
    color: #475467;
    font-size: 13px;
    font-weight: 900;
}

.marketing-manage-note {
    order: 2;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    border-radius: 8px;
    background: var(--accent-soft);
    color: #475467;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.55;
}

.marketing-manage-note i {
    margin-top: 2px;
    color: var(--accent);
}

.marketing-manage-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.marketing-items-table-wrap {
    overflow-x: auto;
}

.marketing-items-table {
    min-width: 1040px;
}

.marketing-items-table th:nth-child(4),
.marketing-items-table td:nth-child(4) {
    width: 180px;
}

.marketing-items-table th:nth-child(6),
.marketing-items-table td:nth-child(6) {
    width: 130px;
}

.marketing-items-table th:nth-child(7),
.marketing-items-table td:nth-child(7) {
    width: 120px;
}

.marketing-price-control,
.marketing-limit-control {
    min-height: 38px;
}

.marketing-price-stack {
    display: grid;
    gap: 2px;
}

.marketing-price-stack strong {
    color: var(--ink);
    font-weight: 900;
}

.marketing-price-stack span,
.marketing-price-stack em {
    color: var(--muted);
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

.marketing-price-stack em {
    color: #f04438;
}

.marketing-price-control + .marketing-price-stack {
    margin-top: 6px;
}

.marketing-price-empty {
    color: var(--muted);
    font-weight: 800;
}

.marketing-item-parent-row {
    background: #fbfcff;
}

.marketing-model-row td:first-child {
    padding-left: 28px;
}

.marketing-model-name {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f2f4f7;
    color: #475467;
    font-size: 12px;
    font-weight: 900;
}

@media (max-width: 1199.98px) {
    .marketing-api-tabs {
        justify-content: flex-start;
    }

    .marketing-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .marketing-period-field,
    .marketing-keyword-field {
        grid-column: auto;
    }
}

@media (max-width: 900px) {
    .marketing-search-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .marketing-search-form .list-search-actions {
        justify-content: flex-end;
    }
}

@media (max-width: 767.98px) {
    .marketing-filter-grid {
        grid-template-columns: 1fr;
    }

    .marketing-period-field,
    .marketing-keyword-field {
        grid-column: auto;
    }

    .marketing-toolbar-actions,
    .marketing-toolbar-actions .btn,
    .marketing-search-form .list-search-actions,
    .marketing-search-form .list-search-actions .btn {
        width: 100%;
    }

    .marketing-toolbar-actions .btn,
    .marketing-search-form .list-search-actions .btn {
        flex: 1 1 0;
    }

    .marketing-date-panel {
        width: min(420px, calc(100vw - 32px));
    }

    .marketing-date-calendars {
        grid-template-columns: 1fr;
    }

    .marketing-api-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 2px;
    }

    .marketing-api-tabs span,
    .marketing-api-tabs a {
        flex: 0 0 auto;
    }

    .marketing-period {
        display: grid;
        gap: 4px;
    }

    .marketing-period i {
        display: none;
    }

    .marketing-row-actions {
        justify-content: flex-start;
    }

    .marketing-manage-summary,
    .marketing-form-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .marketing-manage-summary {
        align-items: stretch;
    }

    .marketing-manage-actions {
        position: sticky;
        bottom: 0;
        z-index: 4;
        padding: 12px;
        margin: 0 -12px -12px;
        border-top: 1px solid var(--line);
        background: #ffffff;
    }

    .marketing-items-table {
        min-width: 900px;
    }
}

.list-search-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding-top: 2px;
}

.product-cell {
    display: flex;
    align-items: center;
    gap: 14px;
}

.product-cell img,
.product-image-placeholder {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border: 1px solid var(--line);
    border-radius: 6px;
    object-fit: cover;
}

.product-image-placeholder {
    display: grid;
    place-items: center;
    color: #98a2b3;
    background: #f8fafc;
}

.product-cell div {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: 5px;
}

.product-cell strong {
    overflow: hidden;
    max-width: 520px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-title-link {
    display: block;
    overflow: hidden;
    color: var(--ink);
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-title-link:hover {
    color: var(--accent);
}

.product-cell small {
    color: #667085;
    font-size: 12px;
}

.crawling-search-panel {
    min-height: auto;
}

.crawling-search-form {
    display: grid;
    grid-template-columns: minmax(180px, 0.7fr) minmax(260px, 1.5fr) auto;
    align-items: end;
    gap: 12px;
}

.crawling-url-form {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    align-items: end;
    gap: 12px;
    margin-top: 12px;
}

.crawling-or-divider {
    margin-top: 12px;
    padding: 0;
}

.crawling-search-form label,
.crawling-url-form label {
    display: grid;
    gap: 6px;
}

.crawling-search-form .form-label,
.crawling-url-form .form-label {
    margin: 0;
    color: #344054;
    font-size: 12px;
    font-weight: 700;
}

.crawling-search-form .btn,
.crawling-url-form .btn {
    min-height: 42px;
}

.crawling-result {
    display: grid;
    gap: 28px;
    margin-top: 20px;
}

.crawling-product-summary {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    align-items: center;
    gap: 24px;
}

.crawling-product-summary > img,
.crawling-image-placeholder {
    width: 160px;
    height: 160px;
    border: 1px solid var(--line);
    border-radius: 6px;
    object-fit: contain;
    background: #ffffff;
}

.crawling-image-placeholder {
    display: grid;
    place-items: center;
    color: #98a2b3;
    font-size: 32px;
}

.crawling-product-summary p {
    margin: 0 0 6px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
}

.crawling-product-summary h2 {
    margin: 0 0 14px;
    color: var(--ink);
    font-size: 22px;
    line-height: 1.45;
}

.crawling-product-summary a {
    font-size: 13px;
    font-weight: 600;
}

.crawling-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.crawling-spec-grid div {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    min-width: 0;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.crawling-spec-grid dt,
.crawling-spec-grid dd {
    margin: 0;
    padding: 13px 15px;
    font-size: 13px;
}

.crawling-spec-grid dt {
    color: #475467;
    background: #f8fafc;
}

.crawling-spec-grid dd {
    overflow-wrap: anywhere;
    color: var(--ink);
}

.crawling-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.crawling-thumbnails img {
    flex: 0 0 92px;
    width: 92px;
    height: 92px;
    border: 1px solid var(--line);
    border-radius: 6px;
    object-fit: contain;
    background: #ffffff;
}

.crawling-description {
    border-top: 1px solid var(--line);
    padding-top: 22px;
}

.crawling-description h3 {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: 16px;
}

.crawling-description p {
    margin: 0;
    color: #475467;
    font-size: 14px;
    line-height: 1.75;
}

.product-edit-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 460px);
    align-items: start;
    gap: 18px;
}

.product-edit-layout.is-create {
    grid-template-columns: 1fr;
}

/* Product information no longer has a marketLink summary sidebar. Let the main
   editor use the full content width while retaining the two-column layout on
   the dedicated marketLink detail page. */
.product-edit-layout.is-product-detail {
    grid-template-columns: minmax(0, 1fr);
}

.product-edit-main,
.product-edit-summary {
    min-width: 0;
    min-height: 0;
}

.product-edit-main {
    container-type: inline-size;
}

.product-edit-summary {
    position: sticky;
    top: 82px;
    max-height: calc(100vh - 98px);
    overflow: auto;
}

.product-market-sync-summary .market-sync-panel {
    margin: 0;
}

.product-form-section + .product-form-section {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.section-heading {
    margin-bottom: 12px;
}

.product-source-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 14px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.market-link-product-readonly-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid #c9d8ff;
    border-radius: 10px;
    background: #f4f7ff;
    color: #344054;
}

.market-link-product-readonly-icon {
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #e4ebff;
    color: var(--primary);
}

.market-link-product-readonly-notice > span:nth-child(2) {
    display: grid;
    flex: 1;
    gap: 2px;
}

.market-link-product-readonly-notice strong {
    color: var(--ink);
    font-size: 14px;
}

.market-link-product-readonly-notice small {
    color: #667085;
    font-size: 13px;
}

.product-edit-layout.is-market-link-detail input[readonly],
.product-edit-layout.is-market-link-detail textarea[readonly],
.product-edit-layout.is-market-link-detail select:disabled {
    border-color: #e4e7ec;
    background: #f8fafc;
    color: #667085;
    cursor: default;
}

.product-collection-bar {
    border-color: #c8ead7;
    background: #f0fdf4;
}

.product-source-bar-item {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-right: 1px solid #d8dee8;
}

.product-source-bar-item:last-of-type {
    border-right: 0;
}

.product-source-bar-item span {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.product-source-bar-item strong {
    min-width: 0;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.product-source-bar-item .collection-market-badges {
    min-width: 0;
}

.product-source-bar + .product-thumbnail-section {
    margin-top: 0;
}

.section-heading-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.section-heading-actions .btn {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 6px 10px;
    font-size: 12px;
}

.product-thumbnail-ai-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: auto;
}

.section-heading h2 {
    margin: 0;
    font-size: 16px;
}

.product-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.form-field {
    display: grid;
    align-content: start;
    gap: 6px;
    min-width: 0;
}

.form-field-wide {
    grid-column: 1 / -1;
}

.form-field .form-label {
    margin: 0;
    color: #344054;
    font-size: 12px;
    font-weight: 800;
}

.form-field .form-label em {
    color: #dc2626;
    font-size: 11px;
    font-style: normal;
}

.product-sku-suggestion {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: #667085;
    font-size: 12px;
    font-weight: 700;
}

.product-sku-suggestion strong {
    color: #21409a;
    font-size: 13px;
}

.product-sku-suggestion .btn {
    min-height: 28px;
    padding: 4px 10px;
    font-size: 12px;
}

.form-field textarea.form-control {
    min-height: 100px;
    padding: 9px 11px;
    line-height: 1.5;
    resize: vertical;
}

.form-field .product-description-input {
    min-height: 240px;
}

.market-mapping-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
    gap: 14px;
    align-items: stretch;
}

.market-mapping-panel {
    display: grid;
    align-content: start;
    gap: 8px;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.market-mapping-panel .form-label-actions {
    margin-bottom: 0;
}

.market-mapping-summary {
    color: #475467;
    font-size: 13px;
    line-height: 1.35;
}

.market-mapping-list {
    display: grid;
    gap: 8px;
}

.market-mapping-list-row {
    display: grid;
    grid-template-columns: minmax(72px, auto) minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcff;
}

.market-mapping-list-row:first-child {
    border-top: 1px solid var(--line);
}

.market-mapping-market {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    color: var(--ink);
    font-size: 12px;
    font-weight: 900;
}

.market-mapping-value {
    min-width: 0;
    color: #475467;
    font-size: 13px;
    font-weight: 800;
    overflow-wrap: break-word;
    word-break: normal;
}

.market-mapping-row-actions {
    display: grid;
    justify-items: end;
    gap: 4px;
}

.market-mapping-row-actions .btn {
    width: max-content;
    padding: 4px 8px;
    font-size: 12px;
    line-height: 1.35;
}

.product-taxonomy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.product-taxonomy-card {
    display: grid;
    align-content: start;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.product-taxonomy-card .form-field {
    gap: 5px;
}

.product-source-taxonomy-value {
    min-height: 40px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--body);
    font-weight: 700;
    line-height: 1.35;
    background: #f8fafc;
}

.product-taxonomy-market-panel {
    padding-top: 2px;
}

.product-taxonomy-card .market-mapping-list {
    gap: 7px;
}

.product-taxonomy-card .market-mapping-list-row {
    grid-template-columns: minmax(62px, auto) minmax(0, 1fr) auto;
    min-height: 38px;
    padding: 7px 9px;
}

.product-taxonomy-card .market-mapping-row-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.product-taxonomy-card .market-mapping-row-actions .btn {
    padding: 3px 7px;
}

.product-commerce-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.product-commerce-card {
    display: grid;
    align-content: start;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.product-option-create-hint {
    color: var(--muted);
    font-size: .74rem;
    font-weight: 700;
}

.product-commerce-card .section-heading {
    margin-bottom: 0;
}

.product-commerce-card .section-heading h2 {
    font-size: 14px;
}

.product-commerce-fields {
    display: grid;
    grid-template-columns: minmax(150px, 0.4fr) minmax(0, 1fr);
    gap: 10px;
}

.product-commerce-market-panel {
    padding-top: 2px;
}

.product-commerce-card .market-mapping-list {
    gap: 7px;
}

.product-commerce-card .market-mapping-list-row {
    grid-template-columns: minmax(62px, auto) minmax(0, 1fr) auto;
    min-height: 38px;
    padding: 7px 9px;
}

.product-commerce-card .market-mapping-row-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.product-commerce-card .market-mapping-row-actions .btn {
    padding: 3px 7px;
}

@container (max-width: 920px) {
    .product-taxonomy-grid,
    .product-commerce-grid {
        grid-template-columns: 1fr;
    }
}

@supports not (container-type: inline-size) {
    @media (max-width: 1400px) {
        .product-taxonomy-grid,
        .product-commerce-grid {
            grid-template-columns: 1fr;
        }
    }
}

@container (max-width: 640px) {
    .product-commerce-fields {
        grid-template-columns: 1fr;
    }

    .product-taxonomy-card .market-mapping-list-row,
    .product-commerce-card .market-mapping-list-row {
        grid-template-columns: minmax(72px, auto) minmax(0, 1fr);
    }

    .product-taxonomy-card .market-mapping-row-actions,
    .product-commerce-card .market-mapping-row-actions {
        grid-column: 1 / -1;
        justify-content: stretch;
    }

    .product-taxonomy-card .market-mapping-row-actions .btn,
    .product-commerce-card .market-mapping-row-actions .btn {
        width: 100%;
    }
}

.market-attribute-panel {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcff;
}

.market-attribute-panel .section-heading {
    margin-bottom: 0;
}

.market-attribute-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.market-attribute-field {
    display: grid;
    grid-auto-rows: max-content;
    align-content: start;
    align-self: start;
    gap: 5px;
    min-width: 0;
}

.market-attribute-field > span {
    color: #344054;
    font-size: 12px;
    font-weight: 800;
}

.market-attribute-field em {
    margin-left: 4px;
    color: #dc2626;
    font-style: normal;
    font-size: 11px;
    font-weight: 900;
}

.market-attribute-native-multi {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.market-attribute-multiselect {
    position: relative;
    min-width: 0;
}

.market-attribute-multiselect-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-height: 38px;
    max-height: 66px;
    padding: 5px 8px;
    border: 1px solid #cfd7e6;
    border-radius: 8px;
    background: #fff;
    color: #1f2937;
    text-align: left;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.market-attribute-multiselect.is-open .market-attribute-multiselect-trigger,
.market-attribute-multiselect-trigger:focus {
    border-color: #9fb3d9;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .08);
    outline: 0;
}

.market-attribute-multiselect-tags {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 4px;
    min-width: 0;
    max-height: 52px;
    overflow-y: auto;
}

.market-attribute-multiselect-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    height: 22px;
    padding: 0 4px 0 8px;
    border: 1px solid #dfe5ef;
    border-radius: 5px;
    background: #f8fafc;
    color: #344054;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.market-attribute-multiselect-tag-text {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.market-attribute-multiselect-remove {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 16px;
    min-width: 16px;
    height: 16px;
    min-height: 16px;
    margin: 0;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 4px;
    appearance: none;
    background: transparent;
    box-shadow: none;
    color: #98a2b3;
    line-height: 1;
    vertical-align: middle;
}

.market-attribute-multiselect-remove::before,
.market-attribute-multiselect-remove::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 1.5px;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center;
}

.market-attribute-multiselect-remove::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.market-attribute-multiselect-remove::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.market-attribute-multiselect-remove:hover {
    border-color: #fecaca;
    background: #fff5f5;
    color: #ef4444;
}

.market-attribute-multiselect-remove:focus-visible {
    border-color: #fca5a5;
    outline: 0;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, .12);
}

.market-attribute-multiselect-placeholder {
    flex: 1 1 auto;
    color: #98a2b3;
    font-size: 13px;
    font-weight: 700;
}

.market-attribute-multiselect-count {
    flex: 0 0 auto;
    color: #8a94a6;
    font-size: 12px;
    font-weight: 800;
}

.market-attribute-multiselect-trigger > i {
    flex: 0 0 auto;
    color: #98a2b3;
    font-size: 12px;
    transition: transform .15s ease;
}

.market-attribute-multiselect.is-open .market-attribute-multiselect-trigger > i {
    transform: rotate(180deg);
}

.market-attribute-multiselect-menu {
    position: absolute;
    z-index: 1070;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    overflow: hidden;
    border: 1px solid #dfe5ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(16, 24, 40, .18);
}

.market-attribute-multiselect-search {
    position: relative;
    padding: 10px;
    border-bottom: 1px solid #eef2f7;
}

.market-attribute-multiselect-search i {
    position: absolute;
    left: 22px;
    top: 50%;
    color: #98a2b3;
    transform: translateY(-50%);
}

.market-attribute-multiselect-search input {
    width: 100%;
    height: 34px;
    padding: 6px 10px 6px 34px;
    border: 1px solid #dfe5ef;
    border-radius: 6px;
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}

.market-attribute-multiselect-options {
    max-height: 260px;
    overflow-y: auto;
    padding: 6px 0;
}

.market-attribute-multiselect-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 8px 14px;
    border: 0;
    background: #fff;
    color: #344054;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
}

.market-attribute-multiselect-option:hover {
    background: #f8fafc;
}

.market-attribute-multiselect-option[data-selected="1"] {
    color: #ef4b2b;
}

.market-attribute-multiselect-option i {
    visibility: hidden;
    color: #ef4b2b;
    font-size: 12px;
}

.market-attribute-multiselect-option[data-selected="1"] i {
    visibility: visible;
}

.market-attribute-multiselect-empty {
    padding: 16px 14px;
    color: #98a2b3;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.market-attribute-custom-value {
    display: block;
    min-width: 0;
}

.market-attribute-custom-add {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 3px 2px;
    border: 0;
    background: transparent;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
}

.market-attribute-custom-add:hover,
.market-attribute-custom-add:focus-visible {
    color: #1d4ed8;
    text-decoration: underline;
    outline: 0;
}

.market-attribute-custom-editor {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px 34px;
    align-items: center;
    gap: 5px;
}

.market-attribute-custom-editor[hidden] {
    display: none;
}

.market-attribute-custom-editor .form-control,
.market-attribute-custom-editor .btn {
    min-height: 32px;
}

.market-attribute-custom-editor .btn {
    display: inline-grid;
    width: 34px;
    padding: 0;
    place-items: center;
}

.market-attribute-empty {
    color: #667085;
    font-size: 13px;
}

.product-option-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.product-option-summary > div {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 16px 18px;
    border-right: 1px solid var(--line);
}

.product-option-summary > div:last-child {
    border-right: 0;
}

.product-option-summary span {
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}

.product-option-summary strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-option-panel {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.product-option-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.product-option-layout.is-market-link-options {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) !important;
}

.product-option-layout.is-market-link-options > .product-option-config {
    display: none !important;
}

.product-option-layout.is-market-link-options > .product-option-list {
    width: 100%;
    grid-column: 1 / -1;
}

.product-option-layout.is-market-link-options .product-option-table-wrap {
    width: 100%;
}

.product-option-config,
.product-option-list {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

[data-product-stock-field][hidden],
.product-option-list[hidden] {
    display: none !important;
}

.product-option-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 38px;
    margin-bottom: 12px;
}

.product-option-panel-heading h3 {
    margin: 0;
    color: var(--ink);
    font-family: inherit;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.35;
}

.product-option-controls,
.product-option-values {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.product-option-values {
    margin-top: 12px;
}

.product-option-value-editor {
    padding: 12px;
    border: 1px solid #dce3ee;
    border-radius: 10px;
    background: #f8fafc;
}

.product-option-value-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
}

.product-option-value-row {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto 34px;
    align-items: center;
    column-gap: 6px;
    min-width: 0;
    padding-right: 6px;
    border: 1px solid #d7deea;
    border-radius: 8px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.product-option-value-row:focus-within {
    border-color: #8eabed;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .08);
}

.product-option-value-row.is-dragging {
    opacity: .45;
}

.product-option-value-row.is-new {
    border-style: dashed;
    background: #fbfdff;
}

.product-option-value-row .form-control {
    min-width: 0;
    height: 38px;
    padding: 6px 8px;
    border: 0;
    background: transparent;
    box-shadow: none;
    font-size: 13px;
    font-weight: 700;
}

.product-option-value-handle {
    display: inline-grid;
    width: 24px;
    height: 38px;
    place-items: center;
    color: #a0a9b8;
    cursor: grab;
}

.product-option-value-row.is-new .product-option-value-handle {
    color: #2563eb;
    cursor: default;
}

.product-option-value-count {
    padding-left: 7px;
    border-left: 1px solid #e5e9f0;
    color: #98a2b3;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.product-option-value-delete,
.product-option-value-add {
    display: inline-grid;
    width: 34px;
    height: 30px;
    padding: 0;
    place-items: center;
    border: 1px solid #e4e8ef;
    border-radius: 7px;
    background: #f8fafc;
    color: #a0a9b8;
}

.product-option-value-delete:hover,
.product-option-value-delete:focus-visible {
    border-color: #fecaca;
    background: #fff5f5;
    color: #ef4444;
    outline: 0;
}

.product-option-value-add {
    border-color: #dbe7ff;
    background: #f4f7ff;
    color: #2563eb;
}

.product-option-value-add:hover,
.product-option-value-add:focus-visible {
    border-color: #b8ccfb;
    background: #edf3ff;
    color: #1d4ed8;
    outline: 0;
}

.product-option-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 12px;
}

.product-option-add-button {
    flex: 0 0 auto;
}

.product-option-layout.is-single-option .product-option-add-button,
.product-option-layout.is-single-option .product-option-table-wrap,
.product-option-layout.is-single-option .product-option-actions {
    display: none;
}

.product-option-toolbar span {
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.product-option-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 14px;
}

.product-option-table-wrap {
    overflow: auto;
    max-height: 520px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.product-option-table {
    min-width: 1200px;
    margin: 0;
    table-layout: fixed;
}

.product-option-table.has-market-option-price {
    min-width: 1440px;
}

.product-option-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafc;
    color: #475467;
    font-size: 12px;
    padding: 8px 10px;
}

.product-option-table td {
    vertical-align: middle;
    font-size: 13px;
    padding: 7px 10px;
}

.product-option-table .product-option-value-column { width: 130px; }
.product-option-table .product-option-sku-column { width: 140px; }
.product-option-table .product-option-image-column {
    width: 260px;
    min-width: 260px;
}
.product-option-table .product-option-purchase-column { width: 150px; }
.product-option-table .product-option-market-price-column { width: 240px; }
.product-option-table .product-option-stock-column,
.product-option-table .product-option-real-stock-column,
.product-option-table .product-option-weight-column { width: 130px; }
.product-option-table .product-option-manage-column {
    width: 72px;
    text-align: center;
}

.product-option-table .product-option-manage-column .btn {
    margin-inline: auto;
}

.option-market-price-list {
    display: grid;
    gap: 6px;
    min-width: 180px;
}

.option-market-price-row {
    display: grid;
    grid-template-columns: minmax(64px, auto) minmax(86px, 1fr);
    align-items: center;
    gap: 8px;
    margin: 0;
}

.option-market-price-row span {
    display: grid;
    gap: 2px;
    color: #475467;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.option-market-price-row small {
    color: #94a3b8;
    font-size: 10px;
    font-weight: 800;
}

.option-market-price-row .form-control {
    min-width: 0;
}

.option-image-cell {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}

.option-image-main {
    display: flex;
    align-items: center;
    gap: 6px;
}

.option-image-preview,
.option-image-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    flex: none;
}

.option-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #94a3b8;
    font-size: 14px;
}

.option-image-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.option-image-url-editor {
    display: none;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px;
    width: 100%;
}

.option-image-url-editor.is-open {
    display: grid;
}

.option-image-url-editor .form-control {
    min-width: 0;
}

.option-image-hint {
    position: relative;
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid #dbe3ee;
    border-radius: 999px;
    background: #f8fafc;
    color: #94a3b8;
    font-size: 13px;
    cursor: help;
}

.option-image-hint:hover,
.option-image-hint:focus-visible {
    border-color: #b8c8e6;
    background: #eef4ff;
    color: #2563eb;
    outline: 0;
}

.option-image-hint::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 7px);
    z-index: 20;
    width: max-content;
    max-width: 180px;
    padding: 6px 8px;
    border-radius: 6px;
    background: #1f2937;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 3px);
    transition: opacity .12s ease, transform .12s ease;
    white-space: normal;
}

.option-image-hint:hover::after,
.option-image-hint:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

.ai-thumbnail-modal-intro {
    color: #475467;
    font-size: 13px;
    margin-bottom: 16px;
}

.ai-thumbnail-modal-field {
    margin-bottom: 16px;
}

.ai-thumbnail-modal-field:last-child {
    margin-bottom: 0;
}

.ai-thumbnail-modal-field > .form-label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

.ai-thumbnail-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 10px;
}

.ai-thumbnail-modal-option {
    display: block;
    margin: 0;
    padding: 3px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    aspect-ratio: 1;
    overflow: hidden;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ai-thumbnail-modal-option.is-selected {
    border-color: #22c55e;
    background: #f0fdf4;
}

.ai-thumbnail-modal-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    display: block;
}

.ai-thumbnail-count-options {
    display: flex;
    gap: 8px;
}

.ai-thumbnail-count-option {
    padding: 8px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin: 0;
    cursor: pointer;
    user-select: none;
    font-weight: 600;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ai-thumbnail-count-option.is-selected {
    border-color: #22c55e;
    background: #f0fdf4;
}

.product-thumbnail-group {
    margin-bottom: 18px;
}

.product-thumbnail-group:last-child {
    margin-bottom: 0;
}

.product-thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 14px;
}

.product-thumbnail-input-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    margin-bottom: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.product-thumbnail-upload {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    gap: 12px;
    min-width: 0;
    margin: 0;
    padding: 16px;
    border-right: 1px solid var(--line);
    cursor: pointer;
    background: #f8fafc;
    transition: background 0.16s ease, box-shadow 0.16s ease;
}

.product-thumbnail-upload-heading {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.product-thumbnail-upload-control {
    display: block;
    min-width: 0;
}

.product-thumbnail-upload-control .btn {
    display: inline-flex;
    width: 100%;
    min-height: 38px;
    align-items: center;
    justify-content: center;
}

.product-thumbnail-upload:hover {
    background: rgba(var(--accent-rgb), 0.04);
    box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.28);
}

.product-thumbnail-upload-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 6px;
    color: var(--accent);
    font-size: 19px;
    background: rgba(var(--accent-rgb), 0.1);
}

.product-thumbnail-upload strong,
.product-thumbnail-upload small {
    display: block;
}

.product-thumbnail-upload strong {
    color: #344054;
    font-size: 14px;
}

.product-thumbnail-upload small {
    margin-top: 3px;
    color: #667085;
    font-size: 12px;
}

.product-thumbnail-upload input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.product-thumbnail-url-register {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    gap: 12px;
    min-width: 0;
    margin: 0;
    padding: 16px;
    background: transparent;
}

.product-thumbnail-url-register > label {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    margin: 0;
}

.product-thumbnail-url-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 6px;
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.1);
}

.product-thumbnail-url-register strong,
.product-thumbnail-url-register small {
    display: block;
}

.product-thumbnail-url-register strong {
    color: #344054;
    font-size: 14px;
}

.product-thumbnail-url-register small {
    margin-top: 3px;
    color: #667085;
    font-size: 12px;
}

.product-thumbnail-url-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    min-width: 0;
}

.product-thumbnail-url-control .form-control {
    min-width: 0;
}

.product-thumbnail-url-control .btn {
    white-space: nowrap;
}

@container (max-width: 920px) {
    .product-thumbnail-input-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-thumbnail-upload {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 560px) {
    .product-thumbnail-url-control {
        grid-template-columns: minmax(0, 1fr);
    }
}

.product-thumbnail-item {
    position: relative;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 1;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
    cursor: grab;
}

.product-thumbnail-item.is-dragging {
    opacity: 0.48;
    cursor: grabbing;
}

.product-thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-thumbnail-edit {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.product-thumbnail-edit:disabled {
    opacity: 1;
}

.product-thumbnail-delete {
    position: absolute;
    z-index: 3;
    top: 8px;
    left: 8px;
    display: grid;
    width: 32px;
    height: 32px;
    min-height: 0;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 6px;
    color: #ffffff;
    background: rgba(180, 35, 24, 0.88);
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.18);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.product-thumbnail-delete:hover,
.product-thumbnail-delete:focus-visible {
    color: #ffffff;
    background: #b42318;
}

.product-thumbnail-item:hover .product-thumbnail-delete,
.product-thumbnail-delete:focus-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (hover: none) {
    .product-thumbnail-delete {
        opacity: 1;
        transform: none;
    }
}

.product-thumbnail-edit span {
    position: absolute;
    z-index: 2;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 6px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    background: rgba(17, 24, 39, 0.82);
    opacity: 1;
    transform: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.product-thumbnail-item.is-editable:hover .product-thumbnail-edit span,
.product-thumbnail-edit:focus-visible span {
    opacity: 1;
    transform: translateY(0);
}

.product-thumbnail-ai-badge {
    position: absolute;
    z-index: 2;
    top: 46px;
    right: 8px;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 6px;
    color: #ffffff;
    background: rgba(124, 58, 237, 0.9);
    box-shadow: 0 4px 12px rgba(76, 29, 149, 0.24);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: -0.02em;
    pointer-events: none;
}

.product-thumbnail-item figcaption {
    position: absolute;
    right: 8px;
    bottom: 8px;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    background: rgba(23, 32, 42, 0.76);
}

.product-thumbnail-item.is-pending {
    border-color: rgba(var(--accent-rgb), .42);
    background: rgba(var(--accent-rgb), .035);
    cursor: default;
}

.product-thumbnail-pending-heading {
    display: flex;
    align-items: baseline;
    gap: 9px;
    margin: 14px 0 9px;
}

.product-thumbnail-pending-heading strong {
    color: var(--accent);
    font-size: .82rem;
}

.product-thumbnail-pending-heading span {
    color: #667085;
    font-size: .72rem;
}

.product-thumbnail-pending-badge {
    position: absolute;
    z-index: 2;
    top: 8px;
    right: 8px;
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 6px;
    color: #ffffff;
    background: rgba(20, 45, 100, 0.88);
    font-size: 11px;
    font-weight: 800;
}

.product-thumbnail-pending-note {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 12px 0 0;
    color: #667085;
    font-size: 12px;
}

.product-thumbnail-pending-note i {
    color: var(--accent);
}

.thumbnail-editor {
    --editor-control-height: 34px;
    --editor-radius: 8px;
    --editor-gap: 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 312px;
    gap: 16px;
    color: #1f2937;
}

.thumbnail-editor .form-control,
.thumbnail-editor .form-select,
.thumbnail-editor .input-group-text,
.thumbnail-editor .btn {
    min-height: var(--editor-control-height);
    padding-top: 5px;
    padding-bottom: 5px;
    border-radius: var(--editor-radius);
    font-size: 0.84rem;
    line-height: 1.25;
}

.thumbnail-editor .form-label {
    margin-bottom: 4px;
    color: #667085;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.15;
}

.thumbnail-editor .form-range {
    min-height: 28px;
}

.thumbnail-editor-main {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 10px;
    min-width: 0;
    align-content: start;
}

.thumbnail-editor-stage {
    display: grid;
    min-height: 560px;
    align-content: start;
    justify-items: center;
    overflow: auto;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f3f5f8;
}

.thumbnail-editor-toolbox {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    align-self: start;
}

.thumbnail-editor-tool-section {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.88);
}

.thumbnail-editor-tool-section h3 {
    margin: 0;
}

.thumbnail-editor-tool-section-text {
    grid-column: 1 / -1;
}

.thumbnail-editor-frame-palette,
.thumbnail-editor-watermark-palette,
.thumbnail-editor-badge-palette,
.thumbnail-editor-mark-palettes {
    display: grid;
    width: 100%;
    gap: 6px;
    min-width: 0;
}

.thumbnail-editor-frame-palette {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1px 1px 7px;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
}

.thumbnail-editor-frame-palette .thumbnail-editor-watermark-card {
    flex: 0 0 92px;
    width: 92px;
    min-width: 92px;
    min-height: 64px;
    scroll-snap-align: start;
}

.thumbnail-editor-frame-palette .watermark-preview-canvas {
    max-width: 80px;
    height: 52px;
}

.thumbnail-editor-frame-empty {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    min-height: 86px;
    padding: 18px 20px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
}

.thumbnail-editor-mark-palettes {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.thumbnail-editor-watermark-palette {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.thumbnail-editor-badge-palette {
    grid-template-columns: minmax(0, 1fr);
}

.thumbnail-editor-watermark-card {
    display: grid;
    min-width: 0;
    min-height: 50px;
    align-content: center;
    justify-items: center;
    gap: 3px;
    padding: 5px 6px;
    border: 1px solid var(--line);
    border-radius: var(--editor-radius);
    background: #ffffff;
    color: #475467;
    font-size: 0.7rem;
    font-weight: 850;
    line-height: 1.15;
    cursor: grab;
    touch-action: none;
    user-select: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.thumbnail-editor-watermark-card:hover,
.thumbnail-editor-watermark-card.is-active {
    border-color: var(--accent);
    box-shadow: 0 7px 14px rgba(var(--accent-rgb), 0.12);
    color: var(--accent-strong);
}

.thumbnail-editor-watermark-card:active {
    cursor: grabbing;
    transform: translateY(1px);
}

.watermark-preview-canvas {
    display: block;
    width: 100%;
    max-width: 76px;
    height: 26px;
    object-fit: contain;
}

.thumbnail-editor-text-options {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.thumbnail-editor-text-lines {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.thumbnail-editor-text-line {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: var(--editor-radius);
    background: #f8fafc;
}

.thumbnail-editor-text-line-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 32px;
    gap: 3px 6px;
    align-items: center;
}

.thumbnail-editor-text-line-tools .form-label:first-child,
.thumbnail-editor-text-line-tools .form-range {
    grid-column: 1;
}

.thumbnail-editor-text-line-tools .form-label:nth-of-type(2),
.thumbnail-editor-text-line-tools .form-control-color {
    grid-column: 2;
}

.thumbnail-editor-text-line-tools .form-label:nth-of-type(2) {
    align-self: end;
    margin-bottom: 0;
    font-size: 0.68rem;
}

.thumbnail-editor-text-options .form-control-color {
    width: 100%;
    min-width: 0;
    min-height: 28px;
    padding: 3px;
}

.thumbnail-editor-text-global {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) 104px 96px;
    gap: 8px;
    align-items: end;
}

.thumbnail-editor-viewport {
    position: relative;
    display: inline-block;
    max-width: 100%;
    line-height: 0;
}

.thumbnail-editor-viewport canvas {
    display: block;
    max-width: 100%;
    max-height: 64vh;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
}

.thumbnail-editor-viewport.is-cropping canvas {
    cursor: crosshair;
    touch-action: none;
}

.thumbnail-editor-selection {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    border: 2px solid #ffffff;
    outline: 1px solid #111827;
    background: rgba(var(--accent-rgb), 0.14);
    box-shadow: 0 0 0 9999px rgba(17, 24, 39, 0.42);
}

.thumbnail-editor-controls {
    display: grid;
    align-content: start;
    gap: 10px;
}

.thumbnail-editor-control-group {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #ffffff;
}

.thumbnail-editor-tool-section h3,
.thumbnail-editor-control-group > strong,
.thumbnail-editor-control-group > label > strong,
.thumbnail-editor-badge-options strong {
    color: #344054;
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1.2;
}

.thumbnail-editor-ratio {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    gap: 7px;
    color: #475467;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.thumbnail-editor-ratio input {
    width: 15px;
    height: 15px;
    min-height: 0;
    margin: 0;
    padding: 0;
    flex: 0 0 15px;
    accent-color: var(--accent);
}

.thumbnail-editor-button-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
}

.thumbnail-editor-button-grid .btn,
.thumbnail-editor-crop-actions .btn {
    min-width: 0;
    width: 100%;
}

.thumbnail-editor-crop-actions {
    display: grid;
    gap: 7px;
}

.thumbnail-editor-crop-actions .btn.active {
    color: #ffffff;
    background: var(--accent);
}

.thumbnail-editor-badge-options {
    display: grid;
    gap: 8px;
}

.thumbnail-editor-badge-options label {
    display: grid;
    gap: 4px;
}

.thumbnail-editor-watermark-note {
    margin: 0;
    color: #667085;
    font-size: 0.75rem;
    line-height: 1.38;
}

.thumbnail-editor-viewport.has-watermark canvas {
    cursor: grab;
}

.thumbnail-editor-viewport.is-moving-watermark canvas {
    cursor: grabbing;
}

@media (max-width: 991px) {
    .thumbnail-editor {
        grid-template-columns: 1fr;
    }

    .thumbnail-editor-toolbox {
        grid-template-columns: 1fr;
    }

    .thumbnail-editor-tool-section-text {
        grid-column: auto;
    }

    .thumbnail-editor-text-lines {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .thumbnail-editor-text-global {
        grid-template-columns: minmax(150px, 1fr) 104px 96px;
    }

    .thumbnail-editor-mark-palettes {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    }

    .thumbnail-editor-watermark-palette {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .thumbnail-editor-frame-palette {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .thumbnail-editor-badge-palette {
        grid-template-columns: minmax(0, 1fr);
    }

    .thumbnail-editor-stage {
        min-height: 360px;
    }
}

@media (max-width: 575px) {
    .thumbnail-editor-text-lines,
    .thumbnail-editor-text-global {
        grid-template-columns: 1fr;
    }

    .thumbnail-editor-watermark-palette {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .thumbnail-editor-mark-palettes {
        grid-template-columns: 1fr;
    }

    .thumbnail-editor-frame-palette {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .thumbnail-editor-badge-palette {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .theme-option-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.product-thumbnail-empty {
    display: grid;
    min-height: 160px;
    place-items: center;
    align-content: center;
    gap: 10px;
    border: 1px dashed #d0d5dd;
    border-radius: 6px;
    color: #98a2b3;
    background: #f8fafc;
}

.product-thumbnail-empty[hidden],
.product-thumbnail-group[hidden] {
    display: none !important;
}

.product-thumbnail-empty i {
    font-size: 30px;
}

.product-content-fields {
    margin-top: 24px;
}

.product-detail-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

.product-detail-image-item {
    position: relative;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
}

.product-detail-image-open {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.product-detail-image-open:hover,
.product-detail-image-open:focus-visible {
    background: #f8fafc;
}

.product-detail-image-open img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-detail-image-item figcaption {
    position: absolute;
    right: 8px;
    bottom: 8px;
    display: grid;
    min-width: 28px;
    height: 28px;
    place-items: center;
    padding: 0 8px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    background: rgba(23, 32, 42, 0.76);
}

.product-detail-image-modal .modal-dialog {
    max-width: min(1180px, calc(100vw - 32px));
}

.product-detail-image-modal-body {
    display: grid;
    min-height: min(720px, calc(100vh - 220px));
    place-items: center;
    padding: 18px;
    background: #f8fafc;
}

.product-detail-image-modal-body img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 260px);
    width: auto;
    height: auto;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
}

.shopee-price-calculator {
    display: grid;
    gap: 22px;
}

.shopee-price-modal .modal-body {
    padding: 16px;
}

.shopee-price-modal .form-field {
    gap: 5px;
}

.shopee-price-modal .form-label {
    margin-bottom: 0;
    font-size: 12px;
}

.shopee-price-modal .form-control,
.shopee-price-modal .form-select,
.shopee-price-modal .input-group-text {
    min-height: 36px;
    padding-top: 6px;
    padding-bottom: 6px;
    font-size: 13px;
}

.shopee-price-modal .mb-4 {
    margin-bottom: 12px !important;
}

.shopee-price-modal .mt-4 {
    margin-top: 12px !important;
}

.shopee-price-modal .mt-3 {
    margin-top: 10px !important;
}

.shopee-source-price-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 12px;
    border: 1px solid var(--accent-line);
    border-radius: 8px;
    background: var(--accent-soft);
}

.shopee-source-price-note span {
    color: #475467;
    font-size: 13px;
    font-weight: 800;
}

.shopee-source-price-note strong {
    color: var(--ink);
    font-size: 17px;
}

.shopee-price-inputs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.shopee-margin-topbar {
    display: flex;
    justify-content: flex-end;
}

.shopee-margin-mode {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.shopee-margin-mode .btn {
    min-width: 154px;
    min-height: 48px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 800;
}

.shopee-margin-mode-button {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    grid-template-areas:
        "icon label"
        "icon state";
    align-items: center;
    column-gap: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #64748b;
    text-align: left;
    box-shadow: none;
}

.shopee-margin-mode-button > i {
    grid-area: icon;
    color: #94a3b8;
    font-size: 16px;
    opacity: 0;
}

.shopee-margin-mode-button > span {
    grid-area: label;
    line-height: 1.15;
}

.shopee-margin-mode-button > small {
    grid-area: state;
    margin-top: 2px;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.shopee-margin-mode-button:hover,
.shopee-margin-mode-button:focus-visible {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
}

.shopee-margin-mode-button.is-selected,
.shopee-margin-mode-button.is-selected:hover,
.shopee-margin-mode-button.is-selected:focus-visible {
    border-color: var(--accent);
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 7px 16px rgba(var(--accent-rgb), 0.22);
}

.shopee-margin-mode-button.is-selected > i {
    color: #ffffff;
    opacity: 1;
}

.shopee-margin-mode-button.is-selected > small {
    color: rgba(255, 255, 255, 0.82);
}

.shopee-price-inputs-compact {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

#shopeeMarginFeeInputs {
    margin-bottom: 12px;
}

.shopee-margin-result-zone,
.shopee-price-result {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.05fr) minmax(0, 1.25fr);
    gap: 10px;
}

.shopee-margin-result-card,
.shopee-price-result > div {
    display: grid;
    align-content: center;
    gap: 5px;
    min-height: 104px;
    padding: 16px 18px;
    border: 1px solid var(--accent-line);
    border-radius: 8px;
    background: var(--accent-soft);
}

.shopee-margin-result-card-primary {
    border-color: #93c5fd;
    background: #eff6ff;
    box-shadow: inset 4px 0 0 #2563eb;
}

.shopee-margin-result-card-copy {
    border-color: #86efac;
    background: #f0fdf4;
    box-shadow: inset 4px 0 0 #16a34a;
}

.shopee-margin-result-card-muted {
    background: #f8fafc;
}

.shopee-margin-result-card span,
.shopee-price-result span {
    color: #475467;
    font-size: 13px;
    font-weight: 800;
}

.shopee-margin-result-card small,
.shopee-price-result small {
    min-height: 28px;
    color: #667085;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.shopee-margin-result-card strong,
.shopee-price-result strong {
    color: var(--ink);
    font-size: 26px;
    line-height: 1.1;
}

.shopee-margin-result-card-primary strong,
.shopee-margin-result-card-copy strong {
    font-size: 30px;
}

.shopee-margin-result-line {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.shopee-margin-save-status {
    color: #2563eb;
}

.product-market-price-margin-action {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.shopee-margin-result-card .btn,
.shopee-price-result .btn {
    width: fit-content;
}

.shopee-margin-icon-button {
    display: inline-grid;
    place-items: center;
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 0;
}

.shopee-margin-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.shopee-margin-panel {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.shopee-margin-panel-product {
    border-color: #bfdbfe;
    background: #fbfdff;
}

.shopee-margin-panel-title {
    margin-bottom: 12px;
}

.shopee-margin-panel-title h3 {
    margin: 0;
    color: var(--ink);
    font-size: 15px;
    font-weight: 900;
}

.shopee-margin-product-inputs,
.shopee-margin-setting-inputs,
.shopee-margin-fee-inputs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shopee-margin-fee-inputs {
    margin-top: 10px;
}

.shopee-price-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.shopee-price-result em {
    color: #475467;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.shopee-price-breakdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.shopee-price-breakdown div {
    display: grid;
    gap: 3px;
    min-height: 52px;
    padding: 8px 10px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #ffffff;
}

.shopee-price-breakdown div:nth-child(4n) {
    border-right: 0;
}

.shopee-price-breakdown dt,
.shopee-price-breakdown dd {
    margin: 0;
}

.shopee-price-breakdown dt {
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}

.shopee-price-breakdown dd {
    color: var(--ink);
    font-size: 14px;
    font-weight: 900;
}

.product-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.product-edit-layout.is-editing .product-form-actions {
    position: sticky;
    z-index: 20;
    bottom: 0;
    margin-right: -24px;
    margin-bottom: -24px;
    margin-left: -24px;
    padding: 12px 20px;
    border-top: 1px solid var(--line);
    border-radius: 0 0 var(--radius) var(--radius);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -12px 28px rgba(16, 24, 40, 0.08);
    backdrop-filter: blur(12px);
}

.product-form-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 76px;
}

.product-form-actions .btn .me-2,
.board-form-actions .btn .me-2,
.board-detail-actions .btn .me-2,
.body-heading > .btn .me-2 {
    margin-right: 0 !important;
}

.market-sync-panel {
    display: grid;
    gap: 14px;
    margin: 20px 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.market-sync-panel .section-heading {
    margin: 0;
}

.market-sync-status {
    display: grid;
    gap: 8px;
}

.market-sync-status div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    background: #f8fafc;
    color: var(--muted);
    font-size: 0.8125rem;
    font-weight: 800;
}

.market-sync-status div.is-linked {
    background: var(--theme-soft);
    color: var(--theme);
}

.market-sync-status strong {
    color: var(--ink);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.market-sync-status strong .fa-circle-minus {
    color: #98a2b3;
}

.product-table-actions {
    min-width: 320px;
    text-align: right;
}

.product-check-column {
    width: 46px;
    min-width: 46px;
    max-width: 46px;
    padding-left: 8px !important;
    padding-right: 8px !important;
    text-align: center;
    white-space: nowrap;
}

.product-number-column {
    width: 46px;
    min-width: 46px;
    max-width: 46px;
    padding-left: 8px !important;
    padding-right: 8px !important;
    text-align: center;
    white-space: nowrap;
    color: var(--muted);
    font-weight: 800;
}

.product-check-column .form-check-input {
    width: 18px;
    min-height: 0;
    height: 18px;
    padding: 0;
    margin: 0;
    cursor: pointer;
    vertical-align: middle;
    border-radius: 5px;
}

.list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 18px 0 10px;
}

.list-toolbar-left,
.list-toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.list-toolbar .btn-sm {
    min-height: 30px;
    height: 30px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 700;
}

.list-page-summary {
    color: var(--muted);
    font-size: 0.8125rem;
    font-weight: 800;
    white-space: nowrap;
}

.list-per-page-form {
    margin: 0;
}

.list-sort-form {
    margin: 0;
}

.list-sort-form .form-select {
    width: auto;
    min-width: 140px;
    height: 32px;
    min-height: 32px;
    padding-top: 4px;
    padding-bottom: 4px;
    font-size: 12px;
    font-weight: 700;
}

.list-per-page-form .form-select {
    width: auto;
    min-width: 104px;
    height: 32px;
    min-height: 32px;
    padding-top: 4px;
    padding-bottom: 4px;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 1480px) {
    .product-list-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-list-filter-line {
        grid-template-columns: minmax(210px, 0.85fr) minmax(190px, 0.75fr) minmax(260px, 1fr) auto;
    }

    .collection-list-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .collection-list-filter-line {
        grid-template-columns: minmax(320px, 1fr) auto;
    }
}

@media (max-width: 1100px) {
    .product-list-filter-line {
        grid-template-columns: minmax(220px, 0.8fr) minmax(300px, 1fr) auto;
    }

    .collection-list-filter-line {
        grid-template-columns: minmax(260px, 1fr) auto;
    }

    .product-list-filter-keyword {
        grid-column: 1 / 3;
    }

    .collection-list-filter-keyword {
        grid-column: auto;
    }
}

@media (max-width: 860px) {
    .product-list-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .collection-list-summary-grid {
        grid-template-columns: 1fr;
    }

    .product-target-market-bar,
    .product-list-filter-line,
    .list-toolbar,
    .list-toolbar-right {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .product-target-market-bar-compact {
        padding: 0;
    }

    .product-target-market-control,
    .list-sort-form .form-select,
    .list-per-page-form .form-select {
        width: 100%;
    }

    .product-market-filter-controls {
        grid-template-columns: 1fr;
    }
}

.market-sync-form-compact {
    display: inline-flex;
    width: 100%;
    max-width: 320px;
    justify-content: flex-end;
}

.market-sync-compact {
    display: grid;
    gap: 6px;
    width: 100%;
    justify-items: stretch;
}

.market-sync-compact.is-collapsible {
    justify-items: stretch;
}

.market-sync-toggle {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #475467;
    font-size: 12px;
    font-weight: 800;
    background: #ffffff;
    box-shadow: none;
}

.market-sync-toggle span {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 6px;
}

.market-sync-toggle[aria-expanded="true"] {
    border-color: var(--accent-line);
    color: var(--accent);
    background: var(--accent-soft);
}

.market-sync-toggle-icon {
    color: #98a2b3;
    font-size: 10px;
    transition: transform 0.16s ease;
}

.market-sync-toggle[aria-expanded="true"] .market-sync-toggle-icon {
    transform: rotate(180deg);
}

.market-sync-collapse {
    width: 100%;
    margin-top: 6px;
}

.market-sync-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #edf1f7;
    border-radius: 8px;
    background: #ffffff;
}

.market-sync-row.is-linked {
    border-color: var(--accent-line);
    background: var(--accent-soft);
}

.market-sync-row-main {
    display: grid;
    min-width: 0;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    text-align: left;
}

.market-sync-row-market {
    min-width: 0;
    color: #475467;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.market-sync-row-status {
    display: inline-flex;
    width: 24px;
    height: 24px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 999px;
    color: #98a2b3;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
    background: #f3f6fa;
}

.market-sync-row-state-label {
    grid-area: state;
    min-width: 0;
    color: #475467;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
}

.market-sync-row.is-linked .market-sync-row-state-label {
    color: var(--accent);
}

.market-sync-row.is-linked .market-sync-row-status {
    color: #16a34a;
    background: #ffffff;
}

.market-sync-toggle span .fa-circle-check {
    color: #16a34a;
}

.market-sync-toggle span .fa-circle-minus {
    color: #98a2b3;
}

.market-sync-product-link {
    display: inline-flex;
    min-width: 92px;
    height: 36px;
    min-height: 36px;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid #0f766e;
    border-radius: 8px;
    background: #0f766e;
    overflow: hidden;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(15, 118, 110, 0.18);
}

.market-sync-product-link:hover,
.market-sync-product-link:focus {
    color: #ffffff;
    border-color: #0d5f59;
    background: #0d5f59;
    box-shadow: 0 5px 12px rgba(15, 118, 110, 0.24);
}

.market-sync-product-actions {
    display: inline-flex;
    grid-area: link;
    max-width: 100%;
    gap: 6px;
    align-items: center;
}

.market-sync-icon-button {
    display: inline-flex;
    width: 34px;
    height: 30px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(220, 53, 69, 0.22);
    border-radius: 8px;
    color: #b42318;
    background: #ffffff;
}

.market-sync-row-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    height: 36px;
    min-height: 36px;
    padding: 0 10px;
    border-color: var(--accent-line);
    color: var(--accent);
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    background: #ffffff;
    box-shadow: none;
}

.market-sync-row-actions {
    display: flex;
    min-width: 0;
    gap: 8px;
    align-items: center;
}

.market-sync-row-button.market-sync-delete-button {
    border-color: rgba(220, 53, 69, 0.22);
    color: #b42318;
}

.market-sync-panel .market-sync-row {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 10px;
}

.market-sync-panel .market-sync-row-main,
.market-sync-compact .market-sync-row-main {
    grid-template-columns: minmax(0, auto) 24px;
    grid-template-areas:
        "market status"
        "link link";
}

.market-sync-compact.is-single-market .market-sync-row-main {
    grid-template-columns: 24px auto minmax(0, 1fr);
    grid-template-areas:
        "status state link";
}

.market-sync-panel.is-single-market .market-sync-row-main {
    grid-template-columns: 24px auto minmax(0, 1fr);
    grid-template-areas:
        "status state link";
}

.market-sync-panel .market-sync-row-market,
.market-sync-compact .market-sync-row-market {
    grid-area: market;
    overflow: hidden;
    text-overflow: ellipsis;
}

.market-sync-panel .market-sync-row-status,
.market-sync-compact .market-sync-row-status {
    grid-area: status;
}

.market-sync-panel .market-sync-product-actions,
.market-sync-compact .market-sync-product-actions {
    grid-area: link;
    width: fit-content;
    max-width: 100%;
}

.market-sync-publish-countries {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 5px;
    overflow: hidden;
    color: #475467;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.market-sync-publish-countries span {
    flex: 0 0 auto;
    color: #667085;
}

.market-sync-publish-countries b {
    display: inline-flex;
    min-width: 24px;
    height: 22px;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 1px solid rgba(var(--accent-rgb), 0.16);
    border-radius: 999px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 900;
    background: #ffffff;
}

.market-sync-publish-countries em {
    color: #98a2b3;
    font-style: normal;
    font-weight: 900;
}

.market-sync-panel .market-sync-row-button {
    width: 100%;
}

.market-sync-panel .market-sync-row-actions {
    width: 100%;
}

.market-sync-panel .market-sync-row-actions .market-sync-row-button {
    min-width: 0;
    flex: 1 1 0;
}

.market-sync-compact .market-sync-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px 12px;
}

.market-sync-compact.is-single-market .market-sync-row {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
}

.market-sync-compact.is-single-market .market-sync-product-actions {
    width: auto;
    margin-top: 0;
    margin-left: 0;
    justify-content: flex-end;
    justify-self: end;
}

.market-sync-compact .market-sync-product-link {
    min-width: 84px;
    height: 34px;
    min-height: 34px;
    padding: 0 10px;
}

.market-sync-compact.is-single-market .market-sync-publish-countries {
    grid-column: 1 / -1;
    padding-left: 0;
}

.market-sync-compact .market-sync-row-button {
    align-self: center;
    min-width: 64px;
    height: 34px;
    min-height: 34px;
}

.market-sync-compact .market-sync-row-actions {
    align-self: center;
    justify-content: flex-end;
}

.market-sync-compact.is-single-market .market-sync-row-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    justify-content: stretch;
}

.market-sync-compact.is-single-market .market-sync-row-actions .market-sync-row-button {
    width: 100%;
    flex: 1 1 auto;
    min-width: 0;
}

.market-sync-compact.is-single-market .market-sync-row-actions .market-sync-icon-button {
    flex: 0 0 34px;
}

.market-sync-row-button:hover,
.market-sync-row-button:focus,
.market-sync-row-button:active {
    border-color: var(--accent);
    color: var(--accent-contrast) !important;
    background: var(--accent) !important;
    box-shadow: 0 4px 10px rgba(var(--accent-rgb), 0.16) !important;
}

.market-sync-delete-button:hover,
.market-sync-delete-button:focus,
.market-sync-delete-button:active,
.market-sync-icon-button:hover,
.market-sync-icon-button:focus,
.market-sync-icon-button:active {
    border-color: #dc3545;
    color: #ffffff !important;
    background: #dc3545 !important;
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.16) !important;
}

.market-product-info-subtitle {
    margin-top: 4px;
    color: #667085;
    font-size: 13px;
    font-weight: 700;
}

.market-product-info-loading {
    display: flex;
    min-height: 160px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #667085;
    font-weight: 800;
}

.market-product-info-layout {
    display: grid;
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    gap: 22px;
}

.market-product-info-images {
    display: grid;
    align-content: start;
    gap: 12px;
}

.market-product-info-images > img,
.market-product-info-empty-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--line);
    border-radius: 8px;
    object-fit: cover;
    background: #f8fafc;
}

.market-product-info-empty-image {
    display: grid;
    place-items: center;
    color: #98a2b3;
    font-weight: 800;
}

.market-product-info-thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.market-product-info-thumbs img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--line);
    border-radius: 6px;
    object-fit: cover;
    cursor: pointer;
}

.market-product-info-content {
    min-width: 0;
}

.market-product-info-content h3 {
    margin: 0 0 14px;
    color: var(--ink);
    font-size: 20px;
    line-height: 1.45;
}

.market-product-info-content h4 {
    margin: 20px 0 10px;
    color: #344054;
    font-size: 14px;
    font-weight: 900;
}

.market-product-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.market-product-info-grid div {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 12px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.market-product-info-grid div:nth-child(2n) {
    border-right: 0;
}

.market-product-info-grid span,
.market-product-info-attributes span {
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}

.market-product-info-grid strong,
.market-product-info-attributes strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #111827;
    font-size: 14px;
}

.market-product-info-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.market-product-info-pills span {
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f8fafc;
    color: #344054;
    font-size: 12px;
    font-weight: 800;
}

.market-product-info-attributes {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.market-product-info-attributes div {
    display: grid;
    grid-template-columns: minmax(120px, 0.38fr) minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid var(--line);
}

.market-product-info-attributes div:last-child {
    border-bottom: 0;
}

.market-product-info-description,
.market-product-info-raw pre {
    max-height: 260px;
    padding: 14px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    color: #344054;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
}

.market-product-info-raw summary {
    margin: 18px 0 8px;
    color: var(--accent);
    font-weight: 900;
    cursor: pointer;
}

.shopee-publish-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.shopee-publish-toolbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.shopee-publish-summary {
    color: #475467;
    font-size: 13px;
    font-weight: 800;
}

.shopee-publish-list {
    display: grid;
    gap: 8px;
}

.shopee-publish-row {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(120px, 0.7fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.shopee-publish-row-main,
.shopee-publish-row-price {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.shopee-publish-row-main strong {
    color: var(--ink);
    font-size: 14px;
    font-weight: 900;
}

.shopee-publish-row-main span {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.shopee-publish-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    font-size: 14px;
    line-height: 1;
}

.shopee-publish-status-icon-published {
    color: #16a34a;
}

.shopee-publish-status-icon-waiting {
    color: #64748b;
}

.shopee-publish-status-icon-pending {
    width: auto;
    gap: 5px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #dbeafe;
    color: #2563eb;
    font-size: 11px;
    font-weight: 900;
}

.shopee-publish-row-price span {
    color: #344054;
    font-size: 13px;
    font-weight: 900;
}

.shopee-publish-row-price small {
    font-size: 12px;
    font-weight: 800;
}

.shopee-publish-option-mode {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    color: #475467;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
}

.shopee-publish-option-mode .form-check-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.shopee-publish-option-check {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    border: 1px solid #b9c7dc;
    border-radius: 4px;
    background: #fff;
}

.shopee-publish-option-mode .form-check-input:checked + .shopee-publish-option-check {
    border-color: var(--accent);
    background: var(--accent);
}

.shopee-publish-option-mode .form-check-input:checked + .shopee-publish-option-check::after {
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    content: "";
    transform: rotate(45deg) translate(-1px, -1px);
}

.shopee-publish-row-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.shopee-publish-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* 상세 publish 모달 아이콘 버튼은 목록의 publish 버튼 규격과 맞춘다. */
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
    padding: 0;
    border-radius: 8px;
}

.shopee-publish-icon-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.shopee-option-price-panel {
    display: grid;
    gap: 12px;
    margin: 0 0 12px;
    padding: 14px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.12);
}

.shopee-option-price-panel[hidden] {
    display: none;
}

.shopee-option-price-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.shopee-option-price-panel-header strong {
    display: block;
    color: #1d2939;
    font-size: 14px;
    font-weight: 900;
}

.shopee-option-price-panel-header small {
    display: block;
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}

.shopee-option-price-representative-mode {
    padding: 9px 10px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #ffffff;
}

.shopee-publish-price-setting-row {
    padding: 10px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #ffffff;
}

.shopee-publish-price-input-row {
    display: grid;
    grid-template-columns: max-content minmax(132px, 220px) max-content;
    align-items: center;
    gap: 8px;
}

.shopee-publish-global-price {
    color: #1f2937;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.shopee-publish-price-control {
    max-width: 220px;
}

.shopee-option-price-table-wrap {
    overflow: auto;
    max-height: 280px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.shopee-option-price-table {
    width: 100%;
    min-width: 760px;
    table-layout: fixed;
}

.shopee-option-price-table th:nth-child(1),
.shopee-option-price-table td:nth-child(1) {
    width: 15%;
}

.shopee-option-price-table th:nth-child(2),
.shopee-option-price-table td:nth-child(2) {
    width: 12%;
}

.shopee-option-price-table th:nth-child(3),
.shopee-option-price-table td:nth-child(3) {
    width: 14%;
}

.shopee-option-price-table th:nth-child(4),
.shopee-option-price-table td:nth-child(4) {
    width: 14%;
}

.shopee-option-price-table th:nth-child(5),
.shopee-option-price-table td:nth-child(5) {
    width: 45%;
}

.shopee-option-price-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafc;
    color: #475467;
    font-size: 12px;
    font-weight: 900;
    padding: 10px 12px;
}

.shopee-option-price-table td {
    vertical-align: middle;
    color: #344054;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 12px;
}

.shopee-option-global-price {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    color: #1f2937;
    font-weight: 900;
    white-space: nowrap;
}

.shopee-option-price-input-row {
    display: grid;
    grid-template-columns: minmax(132px, 190px) max-content;
    align-items: center;
    justify-content: start;
    gap: 8px;
    margin: 0;
}

.shopee-option-price-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
    min-width: 0;
    width: 100%;
    overflow: hidden;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: #fff;
}

.shopee-option-price-currency {
    display: inline-flex;
    align-items: center;
    align-self: stretch;
    padding: 0 10px;
    border-left: 1px solid #ced4da;
    background: #f8fafc;
    color: #667085;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.shopee-option-price-control .form-control {
    min-width: 0;
    width: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.shopee-option-price-control .form-control:focus {
    box-shadow: none;
}

.shopee-option-price-control:focus-within {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.12);
}

.shopee-option-price-input-row .btn {
    white-space: nowrap;
}

.shopee-option-price-panel-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.shopee-option-price-panel-actions .alert {
    flex: 1 1 auto;
    padding: 8px 10px;
    font-size: 12px;
}

.modal.modal-stack-top {
    z-index: 1075;
}

.modal-backdrop.modal-stack-backdrop {
    z-index: 1070;
}

.shopee-publish-empty {
    display: grid;
    min-height: 120px;
    place-items: center;
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: #667085;
    font-weight: 800;
}

@media (max-width: 768px) {
    .shopee-publish-price-input-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .shopee-publish-price-control {
        max-width: none;
    }

    .market-product-info-layout {
        grid-template-columns: 1fr;
    }

    .market-product-info-grid {
        grid-template-columns: 1fr;
    }

    .market-product-info-grid div,
    .market-product-info-grid div:nth-child(2n) {
        border-right: 0;
    }

    .market-product-info-attributes div {
        grid-template-columns: 1fr;
    }
}

.market-sync-status-compact {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;
}

.market-sync-status-compact div {
    display: inline-flex;
    width: auto;
    max-width: 160px;
    gap: 5px;
    padding: 4px 7px;
    border-radius: 999px;
    font-size: 0.75rem;
}

.market-sync-status-compact div.is-linked strong {
    color: var(--theme);
}

.market-sync-status-compact span {
    flex: 0 0 auto;
}

.market-sync-status-compact strong {
    min-width: 0;
    max-width: 86px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-menu {
    display: flex;
    flex: 1;
    align-items: center;
    align-self: stretch;
    gap: 10px;
    min-width: 0;
    padding: 0 20px 0 10px;
    overflow: visible;
}

.top-menu-item {
    position: relative;
    display: flex;
    height: 100%;
    flex: 0 0 auto;
    align-items: stretch;
}

.top-menu-link {
    white-space: nowrap;
}

.top-menu-icon {
    display: inline-grid;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    place-items: center;
    border-radius: 8px;
    font-size: 12px;
}

.top-menu .top-menu-icon i,
.mobile-menu-top .top-menu-icon i {
    color: inherit;
}

.top-menu-icon.is-blue { color: #2563eb; background: #eaf2ff; }
.top-menu-icon.is-green { color: #0f9f6e; background: #e7f8f1; }
.top-menu-icon.is-indigo { color: #4f46e5; background: #eeedff; }
.top-menu-icon.is-orange { color: #e66a16; background: #fff1e7; }
.top-menu-icon.is-cyan { color: #0784a6; background: #e6f7fb; }
.top-menu-icon.is-violet { color: #7c3aed; background: #f2ebff; }

.top-menu .top-menu-chevron {
    margin-left: 2px;
    color: #98a2b3;
    font-size: 9px;
    transition: transform .16s ease;
}

.top-menu-item.has-dropdown:hover .top-menu-chevron,
.top-menu-item.has-dropdown:focus-within .top-menu-chevron {
    transform: rotate(180deg);
}

.top-menu-dropdown {
    position: absolute;
    z-index: 50;
    top: calc(100% - 1px);
    left: 8px;
    display: grid;
    visibility: hidden;
    min-width: 172px;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(15, 23, 42, .16);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}

.top-menu-item.has-dropdown:hover .top-menu-dropdown,
.top-menu-item.has-dropdown:focus-within .top-menu-dropdown {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.top-menu .top-menu-dropdown a {
    display: flex;
    min-height: 38px;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border: 0;
    border-radius: 7px;
    color: #475467;
    font-size: 13px;
    font-weight: 800;
    background: #fff;
    box-shadow: none;
    white-space: nowrap;
}

.top-menu .top-menu-dropdown a::after {
    display: none;
}

.top-menu .top-menu-dropdown a:hover,
.top-menu .top-menu-dropdown a.active {
    color: var(--accent);
    background: var(--accent-soft);
}

.top-menu .top-menu-dropdown a i {
    width: 16px;
    color: #667085;
    text-align: center;
}

.top-menu .top-menu-dropdown a:hover i,
.top-menu .top-menu-dropdown a.active i {
    color: var(--accent);
}

.header-actions a,
.header-action-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #344054;
    background: #ffffff;
}

.top-menu a {
    position: relative;
    display: inline-flex;
    min-height: 100%;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    border: 0;
    border-radius: 0;
    color: #475467;
    font-size: 14px;
    font-weight: 800;
    background: transparent;
    box-shadow: none;
}

.top-menu a::after {
    content: "";
    position: absolute;
    right: 12px;
    bottom: 0;
    left: 12px;
    height: 2px;
    border-radius: 999px 999px 0 0;
    background: transparent;
}

.top-menu a.active,
.header-actions a:hover,
.header-action-button:hover {
    border-color: var(--accent-line);
    color: var(--accent);
    background: var(--accent-soft);
}

.top-menu a:hover {
    color: var(--accent);
    background: transparent;
}

.top-menu a.active {
    color: var(--accent);
    background: transparent;
}

.top-menu a.active::after {
    background: var(--accent);
}

.top-menu a i {
    color: #667085;
    font-size: 13px;
}

.top-menu a:hover > i,
.top-menu a.active > i {
    color: var(--accent);
}

.top-menu .header-admin-button {
    min-height: 34px;
    height: auto;
    padding: 6px 10px;
    border-color: #1f2937;
    border-radius: 8px;
    color: #ffffff;
    background: #1f2937;
    box-shadow: 0 5px 14px rgba(17, 24, 39, 0.18);
}

.top-menu .header-admin-button::after {
    display: none;
}

.top-menu .header-admin-button i {
    color: #fbbf24;
}

.top-menu .header-admin-button:hover,
.top-menu .header-admin-button.active {
    border-color: #111827;
    color: #ffffff;
    background: #111827;
    box-shadow:
        0 0 0 3px rgba(var(--accent-rgb), 0.14),
        0 7px 18px rgba(17, 24, 39, 0.22);
}

.header-admin-menu {
    position: relative;
    align-self: stretch;
    display: flex;
    align-items: center;
}

.header-admin-chevron {
    margin-left: 2px;
    font-size: 9px !important;
    transition: transform .15s ease;
}

.header-admin-menu:hover .header-admin-chevron,
.header-admin-menu:focus-within .header-admin-chevron {
    transform: rotate(180deg);
}

.header-admin-dropdown {
    position: absolute;
    z-index: 60;
    top: calc(100% - 5px);
    right: 0;
    display: grid;
    visibility: hidden;
    width: 250px;
    max-height: calc(100vh - 76px);
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .18);
    opacity: 0;
    overflow-y: auto;
    transform: translateY(6px);
    transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
}

.header-admin-menu:hover .header-admin-dropdown,
.header-admin-menu:focus-within .header-admin-dropdown {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.header-admin-dropdown-group {
    display: grid;
    gap: 2px;
    padding: 3px 0;
}

.header-admin-dropdown-group + .header-admin-dropdown-group {
    border-top: 1px solid #edf0f4;
}

.header-admin-dropdown a {
    display: flex;
    min-height: 36px;
    align-items: center;
    gap: 9px;
    padding: 7px 9px;
    border: 0;
    border-radius: 7px;
    color: #344054;
    background: #fff;
    box-shadow: none;
    font-size: 12px;
    font-weight: 800;
}

.top-menu .header-admin-dropdown a::after {
    display: none;
}

.header-admin-dropdown a:hover,
.header-admin-dropdown a.active,
.header-admin-dropdown-group.active > .header-admin-dropdown-parent {
    color: var(--accent);
    background: var(--accent-soft);
}

.header-admin-dropdown-parent i {
    width: 17px;
    color: #667085;
    text-align: center;
}

.header-admin-dropdown-children {
    display: grid;
    margin-left: 26px;
    padding-left: 8px;
    border-left: 1px solid #e4e9f0;
}

.header-admin-dropdown-children a {
    min-height: 30px;
    padding: 5px 8px;
    color: #667085;
    font-size: 11px;
    font-weight: 750;
}

.header-shopee-margin-button i {
    color: var(--accent);
}

.header-shopee-margin-button {
    justify-content: center;
    width: 38px;
    min-width: 38px;
    padding-right: 0;
    padding-left: 0;
}

.header-actions form {
    margin: 0;
}

.btn-action {
    border-color: var(--accent);
    color: var(--accent-contrast);
    background: linear-gradient(
        180deg,
        var(--accent-gradient-start) 0%,
        var(--accent) 100%
    );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 5px 13px rgba(var(--accent-rgb), 0.2);
}

.btn-action:hover,
.btn-action:focus,
.btn-action:active {
    border-color: var(--accent-strong) !important;
    color: var(--accent-contrast) !important;
    background: linear-gradient(
        180deg,
        var(--accent) 0%,
        var(--accent-strong) 100%
    ) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 0 0 3px rgba(var(--accent-rgb), 0.12),
        0 6px 16px rgba(var(--accent-rgb), 0.24) !important;
}

.btn-action:disabled {
    border-color: var(--accent-line);
    color: var(--accent-contrast);
    background: var(--accent-gradient-start);
    opacity: 0.58;
    box-shadow: none;
}

.order-toolbar {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr)) minmax(260px, auto);
    gap: 12px;
    align-items: stretch;
    margin-bottom: 16px;
}

.order-stat-card,
.order-detail-hero,
.order-row-card,
.order-item-card {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.order-stat-card {
    padding: 14px 16px;
}

.order-stat-card span,
.order-total-box span,
.order-info-grid span,
.order-profile-grid span,
.order-action-summary span,
.order-item-body small,
.order-row-amount span,
.order-subtext {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.order-stat-card strong {
    display: block;
    margin-top: 5px;
    color: var(--text);
    font-size: 1.3rem;
    line-height: 1.2;
}

.order-import-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
}

.order-list-panel .section-heading,
.order-action-panel .section-heading,
.order-section-block .section-heading,
.order-action-result .section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.order-list-panel .section-heading h2,
.order-action-panel .section-heading h2,
.order-section-block .section-heading h2,
.order-action-result .section-heading h2 {
    margin: 0;
    color: var(--text);
    font-size: 1rem;
    font-weight: 800;
}

.order-list-panel .section-heading p,
.order-action-panel .section-heading p,
.order-section-block .section-heading p,
.order-action-result .section-heading p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.order-list {
    display: grid;
    gap: 10px;
}

.order-search-panel {
    display: grid;
    gap: 12px;
    padding: 14px;
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.order-search-grid {
    display: grid;
    grid-template-columns: 180px 160px 190px minmax(0, 1fr);
    gap: 10px;
    align-items: end;
}

.order-search-grid label {
    display: grid;
    min-width: 0;
    gap: 6px;
}

.order-search-grid label > span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.order-search-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.order-row-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: stretch;
    padding: 0;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.order-row-card:hover,
.order-row-card:focus {
    border-color: var(--accent-line);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
    color: inherit;
    transform: translateY(-1px);
}

.order-row-card.is-urgent {
    border-color: #bfdbfe;
    background: linear-gradient(90deg, #eff6ff 0, #ffffff 28%);
}

.order-row-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(150px, auto);
    gap: 14px;
    align-items: center;
    min-width: 0;
    padding: 14px 16px;
    color: inherit;
    text-decoration: none;
}

.order-row-link:hover,
.order-row-link:focus {
    color: inherit;
}

.order-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 310px;
    padding: 14px 16px 14px 0;
}

.order-row-actions .btn {
    white-space: nowrap;
}

.order-row-main,
.order-row-meta,
.order-badge-row {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.order-market-pill,
.order-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    border-radius: 999px;
    background: #eef5ff;
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
}

.order-market-pill {
    gap: 6px;
    padding: 0 10px;
    white-space: nowrap;
}

.order-market-pill span {
    color: var(--muted);
}

.order-status-badge {
    padding: 0 10px;
}

.order-status-badge.is-muted {
    background: #f5f7fa;
    color: #596579;
}

.order-status-badge.is-warning {
    background: #fff7ed;
    color: #b45309;
}

.order-number {
    min-width: 0;
    color: var(--text);
    font-size: 1rem;
    font-weight: 850;
    overflow-wrap: break-word;
}

.order-row-amount {
    text-align: right;
}

.order-row-amount strong {
    display: block;
    color: var(--text);
    font-size: 1rem;
    font-weight: 850;
}

.order-summary-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-bottom: 14px;
}

.order-market-account-toolbar {
    grid-template-columns: minmax(var(--market-account-setting-width), var(--market-account-combined-width)) auto;
    justify-content: space-between;
}

.order-sync-toolbar-actions {
    align-self: end;
}

.order-market-account-toolbar.is-all-accounts .market-account-dropdown-trigger {
    border-color: #9ab7ef;
    background: linear-gradient(135deg, #f8fbff, #eef4ff);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .08);
}

.order-summary-grid .product-list-summary-card {
    min-height: 106px;
}

.order-cancel-summary-main {
    display: grid;
    gap: 7px;
    color: inherit;
    text-decoration: none;
}

.order-cancel-summary-main:hover {
    color: inherit;
}

.order-cancel-summary-card {
    gap: 8px;
    padding-bottom: 11px;
}

.order-cancel-summary-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
}

.order-cancel-summary-details > span {
    display: grid;
    min-width: 0;
    gap: 3px;
    padding: 5px 3px;
    border-radius: 6px;
    background: #fff1f2;
    text-align: center;
}

.order-cancel-summary-details em {
    overflow: hidden;
    color: #9f1239;
    font-size: 9px;
    font-style: normal;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-cancel-summary-details strong {
    color: #be123c;
    font-size: 13px;
}

.order-list-filter-form {
    margin-bottom: 0;
}

.order-list-filter-line {
    grid-template-columns: minmax(360px, .9fr) minmax(150px, .34fr) minmax(320px, 1fr) auto;
}

.order-date-range {
    display: grid;
    grid-template-columns: minmax(145px, 1fr) auto minmax(145px, 1fr);
    align-items: center;
    gap: 7px;
}

.order-date-range label {
    min-width: 0;
}

.order-list-filter-form .order-list-filter-line .form-select,
.order-list-filter-form .order-list-filter-line .input-group-text,
.order-list-filter-form .order-list-filter-line .form-control {
    height: 40px;
    min-height: 40px;
}

.order-list-filter-form .order-list-filter-line .product-list-filter-actions .btn,
.order-list-filter-form .order-list-filter-line .product-list-search-button {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
}

.order-list-panel {
    margin-top: 16px;
}

.order-list-panel .list-toolbar {
    margin-top: 0;
}

.order-import-actions form {
    margin: 0;
}

.order-table-wrap {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.order-table {
    min-width: 1240px;
    table-layout: fixed;
}

.order-table th {
    color: #667085;
    font-size: 12px;
    font-weight: 900;
    background: #f8fafc;
}

.order-table th,
.order-table td {
    padding: 12px 10px;
    border-color: var(--line);
    vertical-align: middle;
}

.order-table tbody tr.is-urgent td {
    background: #eff6ff;
}

.order-number-column {
    width: 48px;
    color: var(--accent);
    font-weight: 900;
    text-align: center;
}

.order-actions-column {
    width: 210px;
    text-align: right;
}

.order-table-main,
.order-table-buyer {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.order-table-title {
    overflow: hidden;
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-table-title:hover {
    color: var(--accent);
}

.order-table-meta {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: 5px;
}

.order-table-meta > .market-account-identity,
.order-table-meta > .market-country-list {
    min-height: 22px;
}

.order-table-meta .market-account-configured-name {
    font-size: .7rem;
}

.order-table-meta .market-country-chip {
    min-height: 22px;
    padding: 2px 6px;
}

.order-table-buyer strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-table-buyer span,
.order-quantity-text,
.order-date-cell {
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}

.order-status-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.order-status-badge.is-success {
    background: #ecfdf5;
    color: #047857;
}

.order-status-badge.is-info {
    background: #eff6ff;
    color: #1d4ed8;
}

.order-status-badge.is-danger {
    background: #fff1f2;
    color: #be123c;
}

.order-amount-cell {
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
    text-align: right;
    white-space: nowrap;
}

.order-date-cell {
    white-space: nowrap;
}

.order-table-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.order-table-actions .btn {
    display: inline-grid;
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
    place-items: center;
    padding: 0;
    border-radius: 7px;
}

.order-detail-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 20px;
    margin-bottom: 16px;
}

.order-print-hub {
    margin-bottom: 16px;
}

.order-print-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.order-print-actions form,
.order-print-actions .btn {
    min-width: 0;
    width: 100%;
}

.order-auto-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    margin-top: 12px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    color: var(--accent-strong);
}

.order-auto-progress.is-paused {
    border-color: #f59e0b;
    background: #fffbeb;
    color: #92400e;
}

.order-auto-progress.is-paused .spinner-border {
    display: none;
}

.order-auto-progress[hidden] {
    display: none;
}

.order-auto-progress strong,
.order-auto-progress small {
    display: block;
}

.order-auto-progress small {
    color: #475569;
    font-size: 0.82rem;
    font-weight: 700;
}

.order-print-actions .btn.is-loading,
.order-action-form .btn.is-loading,
.order-action-stack .btn.is-loading,
.order-inline-result-form .btn.is-loading {
    pointer-events: none;
    opacity: 0.78;
}

.order-detail-hero h2 {
    margin: 5px 0 10px;
    color: var(--text);
    font-size: 1.35rem;
    font-weight: 850;
}

.order-market-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 800;
}

.order-total-box {
    min-width: 180px;
    text-align: right;
}

.order-total-box strong {
    display: block;
    color: var(--text);
    font-size: 1.35rem;
    font-weight: 850;
}

.order-total-box small {
    color: var(--muted);
    font-weight: 700;
}

.order-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 16px;
    align-items: start;
}

.order-flow-stack {
    display: grid;
    gap: 16px;
}

.order-card-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.order-card-pair .order-info-grid,
.order-card-pair .order-flow-card .order-action-summary,
.order-flow-card .order-print-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.order-card-pair .order-info-grid article:nth-child(2n),
.order-card-pair .order-flow-card .order-action-summary div:nth-child(2n) {
    border-right: 0;
}

.order-card-pair .order-info-grid article:nth-last-child(-n+2),
.order-card-pair .order-flow-card .order-action-summary div:nth-last-child(-n+2) {
    border-bottom: 0;
}

.order-flow-card {
    min-width: 0;
}

.order-info-grid,
.order-profile-grid,
.order-action-summary {
    display: grid;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.order-info-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 20px;
}

.order-info-grid article,
.order-profile-grid div,
.order-action-summary div {
    padding: 13px 14px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.order-info-grid article:nth-child(4n),
.order-profile-grid div:nth-child(2n),
.order-action-summary div {
    border-right: 0;
}

.order-info-grid article:nth-last-child(-n+4),
.order-profile-grid div:nth-last-child(-n+2),
.order-action-summary div:last-child {
    border-bottom: 0;
}

.order-info-grid strong,
.order-profile-grid strong,
.order-action-summary strong {
    display: block;
    margin-top: 5px;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.35;
    word-break: break-word;
}

.order-section-block {
    padding-top: 18px;
    margin-top: 18px;
    border-top: 1px solid var(--line);
}

.order-items {
    display: grid;
    gap: 10px;
}

.order-item-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
}

.order-item-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    color: var(--muted);
    overflow: hidden;
}

.order-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item-body {
    min-width: 0;
}

.order-item-body strong,
.order-item-body span,
.order-item-body small {
    display: block;
}

.order-item-body strong {
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 850;
}

.order-item-body span {
    margin-top: 3px;
    color: #4b5563;
    font-weight: 750;
}

.order-item-price {
    text-align: right;
}

.order-item-price strong,
.order-item-price span {
    display: block;
    color: var(--text);
    font-weight: 850;
}

.order-item-price span {
    color: #4b5563;
    font-size: 0.9rem;
}

.order-profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.order-profile-grid .is-wide {
    grid-column: 1 / -1;
}

.order-action-panel {
    min-width: 0;
    position: sticky;
    top: 86px;
}

.order-action-summary {
    grid-template-columns: 1fr;
    margin-bottom: 14px;
}

.order-card-pair .order-info-grid,
.order-flow-card .order-action-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.order-flow-card .order-action-summary div {
    border-right: 1px solid var(--line);
}

.order-card-pair .order-info-grid article:nth-child(2n),
.order-flow-card .order-action-summary div:nth-child(2n) {
    border-right: 0;
}

.order-card-pair .order-info-grid article:nth-last-child(-n+2),
.order-flow-card .order-action-summary div:nth-last-child(-n+2) {
    border-bottom: 0;
}

.order-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.order-tracking-card {
    min-width: 0;
    padding: 16px;
    margin-bottom: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.order-tracking-card.has-value {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.order-tracking-card span,
.order-tracking-card small,
.order-tracking-card strong {
    display: block;
}

.order-tracking-card span,
.order-tracking-card small {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 750;
}

.order-tracking-card strong {
    margin: 4px 0;
    color: var(--text);
    font-size: 1.15rem;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.order-persistent-result {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.order-persistent-result div {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfe;
}

.order-persistent-result div.has-value {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.order-persistent-result div.is-error {
    border-color: #fecaca;
    background: #fff7f7;
}

.order-persistent-result span,
.order-persistent-result small,
.order-persistent-result strong {
    display: block;
}

.order-persistent-result span,
.order-persistent-result small {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 750;
}

.order-persistent-result strong {
    margin-top: 4px;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.order-action-form,
.order-action-stack {
    display: grid;
    gap: 8px;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid var(--line);
}

.order-action-form:first-of-type {
    padding-top: 0;
    margin-top: 0;
    border-top: 0;
}

.order-action-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.order-action-result pre,
.order-raw-log pre {
    max-height: 420px;
    padding: 14px;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    color: #263246;
    font-size: 0.8rem;
    overflow: auto;
}

.order-result-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.order-result-summary div {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfe;
}

.order-result-summary div.is-error {
    border-color: #fecaca;
    background: #fff7f7;
}

.order-result-summary div.is-warning {
    border-color: #fed7aa;
    background: #fff7ed;
}

.order-inline-result-form {
    margin-top: 10px;
}

.order-result-summary span,
.order-result-summary small,
.order-result-summary strong {
    display: block;
}

.order-result-summary span,
.order-result-summary small {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.order-result-summary strong {
    margin-top: 4px;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 850;
    word-break: break-word;
}

.order-raw-log {
    padding-top: 18px;
    margin-top: 18px;
    border-top: 1px solid var(--line);
}

.order-raw-log summary {
    cursor: pointer;
    color: var(--text);
    font-weight: 850;
}

.order-raw-log pre {
    margin-top: 12px;
}

@media (max-width: 1200px) {
    .order-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .order-list-filter-line {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .order-list-filter-keyword,
    .order-list-filter-line .product-list-filter-actions {
        grid-column: 1 / -1;
    }

    .order-toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .order-import-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .order-detail-layout {
        grid-template-columns: 1fr;
    }

    .order-search-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .order-row-card {
        grid-template-columns: 1fr;
    }

    .order-row-actions {
        justify-content: flex-start;
        min-width: 0;
        padding: 0 16px 14px;
    }

    .order-action-panel {
        position: static;
    }
}

@media (max-width: 768px) {
    .order-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .order-list-filter-line {
        grid-template-columns: 1fr;
    }

    .order-list-filter-keyword,
    .order-list-filter-line .product-list-filter-actions {
        grid-column: auto;
    }

    .order-list-filter-line .product-list-filter-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .order-list-filter-line .product-list-filter-actions .btn,
    .order-list-filter-line .product-list-search-button {
        width: 100%;
        max-width: none;
    }

    .order-date-range {
        grid-template-columns: 1fr;
    }

    .order-date-range > span {
        display: none;
    }

    .order-list-panel .list-toolbar,
    .order-list-panel .list-toolbar-right {
        align-items: stretch;
        flex-direction: column;
    }

    .order-import-actions .btn,
    .order-import-actions form {
        width: 100%;
    }

    .order-toolbar,
    .order-card-pair,
    .order-info-grid,
    .order-profile-grid,
    .order-flow-card .order-action-summary,
    .order-action-grid,
    .order-persistent-result,
    .order-result-summary,
    .order-search-grid,
    .order-print-actions {
        grid-template-columns: 1fr;
    }

    .order-row-link,
    .order-detail-hero,
    .order-item-card {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .order-row-amount,
    .order-total-box,
    .order-item-price {
        text-align: left;
    }

    .order-row-actions,
    .order-search-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .order-info-grid article,
    .order-profile-grid div,
    .order-flow-card .order-action-summary div {
        border-right: 0;
    }

    .order-action-fields {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .order-summary-grid {
        grid-template-columns: 1fr;
    }
}

.header-action-button {
    min-height: auto;
    font: inherit;
    font-weight: 700;
    box-shadow: none;
}

.dashboard-left {
    grid-area: left;
    min-width: 0;
    padding: 20px 14px;
    border-right: 1px solid var(--line);
    background: #ffffff;
    overflow-x: hidden;
}

.sidebar-title {
    margin: 0 8px 12px;
    color: #98a2b3;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.side-menu {
    display: grid;
    gap: 6px;
}

.dashboard-left a,
.side-menu-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    color: #475467;
    font-size: 13px;
    font-weight: 800;
    text-align: left;
    background: transparent;
    box-shadow: none;
}

.dashboard-left a {
    justify-content: flex-start;
}

.side-menu-toggle {
    justify-content: space-between;
}

.side-menu-toggle span {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
}

.dashboard-left a,
.side-menu-toggle span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-left a i,
.side-menu-toggle i:not(.toggle-icon) {
    flex: 0 0 16px;
    width: 16px;
    text-align: center;
}

.dashboard-left a.active,
.dashboard-left a:hover,
.side-menu-toggle.active,
.side-menu-toggle:hover {
    color: var(--accent);
    background: var(--accent-soft);
}

.side-menu-toggle .toggle-icon {
    flex: 0 0 auto;
    margin-left: auto;
    width: auto;
    color: #98a2b3;
    font-size: 12px;
    transition: transform 0.18s ease;
}

.side-menu-toggle:not(.collapsed) .toggle-icon {
    transform: rotate(180deg);
}

.submenu {
    display: grid;
    gap: 4px;
    margin: 4px 0 8px 24px;
    padding-left: 10px;
    border-left: 1px solid var(--line);
}

.submenu a {
    min-height: 34px;
    padding: 8px 10px;
    color: #667085;
    font-size: 13px;
    font-weight: 700;
}

.dashboard-body {
    grid-area: body;
    min-width: 0;
    padding: 26px;
    font-size: 14px;
    line-height: 1.5;
}

.body-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
}

.body-heading .eyebrow {
    margin-top: 0;
}

.body-heading h1 {
    margin: 0;
    font-size: 26px;
    line-height: 1.25;
}

.body-heading nav[aria-label="현재 경로"],
.page-breadcrumb {
    display: none;
}

.body-heading .btn {
    min-height: 36px;
    padding: 6px 10px;
    font-size: 13px;
}

.heading-actions {
    display: flex;
    gap: 10px;
}

.product-heading-actions {
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.product-heading-actions form {
    margin: 0;
}

.body-heading .product-heading-actions .btn {
    width: auto;
    white-space: nowrap;
}

.body-heading button {
    width: auto;
}

.page-breadcrumb {
    margin: 0 0 10px;
    font-size: 13px;
}

.page-breadcrumb .breadcrumb-item,
.page-breadcrumb .breadcrumb-item a {
    color: #7c8798;
    font-weight: 600;
}

.page-breadcrumb .breadcrumb-item.active {
    color: #475467;
}

.metric-grid {
    margin-bottom: 18px;
}

.metric-card,
.work-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.metric-card {
    display: grid;
    gap: 6px;
    min-height: 118px;
    padding: 16px;
}

.metric-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 8px;
    color: var(--accent);
    background: var(--accent-soft);
}

.metric-card span,
.metric-card small {
    color: var(--muted);
}

.metric-card strong {
    color: var(--ink);
    font-size: 28px;
    letter-spacing: 0;
}

.work-panel {
    min-width: 0;
    min-height: 240px;
    padding: 20px;
}

.ai-usage-filter-panel {
    min-height: 0;
    margin-bottom: 16px;
}

.ai-usage-filter {
    display: grid;
    grid-template-columns: minmax(170px, 0.7fr) minmax(190px, 0.8fr) minmax(280px, 1.8fr) auto;
    align-items: end;
    gap: 14px;
}

.ai-usage-filter label {
    display: grid;
    gap: 7px;
    margin: 0;
    color: #475467;
    font-size: 13px;
    font-weight: 800;
}

.ai-usage-filter-actions {
    display: flex;
    gap: 8px;
}

.ai-usage-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.ai-usage-summary-card {
    position: relative;
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 3px 12px;
    min-width: 0;
    padding: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.045);
}

.ai-usage-summary-icon {
    display: grid;
    grid-row: 1 / span 3;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 11px;
    color: #2563eb;
    background: #eff6ff;
}

.ai-usage-summary-icon.is-success {
    color: #059669;
    background: #ecfdf5;
}

.ai-usage-summary-icon.is-tokens {
    color: #7c3aed;
    background: #f5f3ff;
}

.ai-usage-summary-icon.is-cost {
    color: #d97706;
    background: #fffbeb;
}

.ai-usage-summary-card > span:not(.ai-usage-summary-icon) {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.ai-usage-summary-card > strong {
    min-width: 0;
    color: var(--ink);
    font-size: clamp(22px, 2vw, 30px);
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.ai-usage-summary-card > strong small {
    margin-left: 5px;
    color: #8491a5;
    font-size: 12px;
    font-weight: 800;
}

.ai-usage-summary-card p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.ai-usage-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 700;
    background: #eff6ff;
}

.ai-usage-provider-panel,
.ai-usage-detail-panel {
    min-height: 0;
    margin-bottom: 16px;
}

.ai-usage-provider-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.ai-provider-card {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfcfe;
}

.ai-provider-card-head {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.ai-provider-symbol {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 10px;
    color: #1d4ed8;
    font-size: 16px;
    font-weight: 900;
    background: #eaf2ff;
}

.ai-provider-card-head div {
    display: grid;
    min-width: 0;
}

.ai-provider-card-head strong {
    color: var(--ink);
}

.ai-provider-card-head span:not(.ai-provider-symbol) {
    color: var(--muted);
    font-size: 12px;
}

.ai-provider-card-head b {
    color: var(--accent);
    font-size: 17px;
}

.ai-provider-card dl {
    display: grid;
    gap: 9px;
    margin: 16px 0 0;
}

.ai-provider-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-top: 9px;
    border-top: 1px solid #edf0f5;
}

.ai-provider-card dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.ai-provider-card dd {
    margin: 0;
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
}

.ai-provider-card > small {
    display: block;
    margin-top: 9px;
    color: #b45309;
    font-weight: 700;
}

.ai-provider-card.is-claude .ai-provider-symbol,
.ai-provider-badge.is-claude {
    color: #b45309;
    background: #fff7ed;
}

.ai-provider-card.is-openai .ai-provider-symbol,
.ai-provider-badge.is-openai {
    color: #0f766e;
    background: #f0fdfa;
}

.ai-provider-card.is-perplexity .ai-provider-symbol,
.ai-provider-badge.is-perplexity {
    color: #0e7490;
    background: #ecfeff;
}

.ai-provider-card.is-gemini .ai-provider-symbol,
.ai-provider-badge.is-gemini {
    color: #7c3aed;
    background: #f5f3ff;
}

.ai-usage-detail-panel .section-heading {
    align-items: center;
}

.ai-usage-table {
    min-width: 1120px;
}

.ai-usage-user {
    display: grid;
    min-width: 190px;
}

.ai-usage-user strong {
    color: var(--ink);
}

.ai-usage-user span {
    color: var(--muted);
    font-size: 12px;
}

.ai-provider-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 8px;
    border-radius: 7px;
    color: #475467;
    font-size: 11px;
    font-weight: 900;
    background: #f2f4f7;
}

.ai-usage-model {
    display: block;
    max-width: 260px;
    margin-top: 5px;
    overflow: hidden;
    color: #667085;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ai-unpriced-label {
    display: block;
    margin-top: 3px;
    color: #b45309;
    font-size: 10px;
    font-weight: 800;
}

.ai-usage-empty {
    min-height: 140px;
}

.ai-usage-footnote {
    margin: -2px 2px 8px;
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 1200px) {
    .ai-usage-summary-grid,
    .ai-usage-provider-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ai-usage-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ai-usage-filter-actions {
        justify-content: flex-end;
    }
}

@media (max-width: 680px) {
    .ai-usage-summary-grid,
    .ai-usage-provider-grid,
    .ai-usage-filter {
        grid-template-columns: 1fr;
    }

    .ai-usage-filter-actions .btn {
        flex: 1;
    }
}

.panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.panel-title h2 {
    margin: 0;
    font-size: 18px;
    letter-spacing: 0;
}

.panel-title span {
    padding: 6px 10px;
    border: 1px solid var(--accent-line);
    border-radius: 999px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    background: var(--accent-soft);
}

.chart-bars {
    display: grid;
    height: 210px;
    grid-template-columns: repeat(7, 1fr);
    align-items: end;
    gap: 14px;
    margin-top: 28px;
}

.chart-bars i {
    display: block;
    min-height: 32px;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, var(--accent-gradient-start), var(--accent));
}

.status-list {
    display: grid;
    gap: 12px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.status-list li {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #475467;
    background: #ffffff;
}

.status-list strong {
    color: var(--ink);
}

.dashboard-home-heading .heading-actions {
    align-items: center;
    flex-wrap: wrap;
}

.dashboard-metric-card {
    color: inherit;
    text-decoration: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.dashboard-metric-card:hover {
    border-color: var(--accent-line);
    color: inherit;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.metric-icon-green {
    color: #059669;
    background: #ecfdf5;
}

.metric-icon-blue {
    color: #2563eb;
    background: #eff6ff;
}

.metric-icon-orange {
    color: #d97706;
    background: #fffbeb;
}

.dashboard-workspace-grid,
.dashboard-secondary-grid {
    margin-top: 0;
    margin-bottom: 18px;
}

.dashboard-panel {
    overflow: hidden;
}

.dashboard-chart {
    display: grid;
    grid-template-columns: repeat(14, minmax(28px, 1fr));
    align-items: end;
    gap: 10px;
    min-height: 260px;
    margin-top: 20px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.dashboard-chart-day {
    display: grid;
    min-width: 0;
    gap: 7px;
    text-align: center;
}

.dashboard-chart-bars {
    display: grid;
    height: 185px;
    grid-template-columns: repeat(2, minmax(4px, 1fr));
    align-items: end;
    gap: 4px;
    padding: 0 2px;
    border-bottom: 1px solid var(--line);
}

.dashboard-chart-bars i {
    display: block;
    min-height: 4px;
    border-radius: 6px 6px 0 0;
}

.dashboard-chart-bar-source,
.dashboard-dot-source-bg {
    background: linear-gradient(180deg, #38bdf8, #2563eb);
}

.dashboard-chart-bar-product,
.dashboard-dot-product-bg {
    background: linear-gradient(180deg, #34d399, #059669);
}

.dashboard-chart-day strong {
    overflow: hidden;
    color: #667085;
    font-size: 11px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-chart-day span {
    color: #98a2b3;
    font-size: 11px;
    font-weight: 800;
}

.dashboard-chart-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}

.dashboard-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dashboard-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 999px;
}

.dashboard-dot-source {
    background: #2563eb;
}

.dashboard-dot-product {
    background: #059669;
}

.dashboard-month-chart {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.dashboard-month-row {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 58px;
    align-items: center;
    gap: 10px;
}

.dashboard-month-row strong,
.dashboard-month-row em {
    color: #667085;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.dashboard-month-row em {
    text-align: right;
}

.dashboard-month-row > div {
    display: grid;
    gap: 6px;
}

.dashboard-month-track {
    display: block;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #f1f5f9;
}

.dashboard-month-track i {
    display: block;
    height: 100%;
    min-width: 3px;
    border-radius: inherit;
}

.dashboard-month-legend {
    margin-top: 18px;
}

.dashboard-status-list {
    margin-top: 18px;
}

.dashboard-status-list li {
    align-items: center;
    padding: 13px 14px;
}

.dashboard-country-list {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.dashboard-country-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 10px;
}

.dashboard-country-row span,
.dashboard-country-row strong {
    color: #475467;
    font-size: 12px;
    font-weight: 900;
}

.dashboard-country-row strong {
    text-align: right;
}

.dashboard-country-bar {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #f1f5f9;
}

.dashboard-country-bar i {
    display: block;
    height: 100%;
    min-width: 6px;
    border-radius: inherit;
    background: linear-gradient(90deg, #60a5fa, #2563eb);
}

.dashboard-panel-link {
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.dashboard-mini-table {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.dashboard-mini-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
    background: #ffffff;
}

.dashboard-mini-row:hover {
    border-color: var(--accent-line);
    color: inherit;
    background: #fbfdff;
}

.dashboard-mini-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 8px;
    color: #2563eb;
    background: #eff6ff;
}

.dashboard-mini-icon-source {
    color: #059669;
    background: #ecfdf5;
}

.dashboard-mini-icon-order {
    color: #d97706;
    background: #fffbeb;
}

.dashboard-mini-row span:nth-child(2) {
    min-width: 0;
}

.dashboard-mini-row strong,
.dashboard-mini-row small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-mini-row strong {
    color: var(--ink);
    font-size: 13px;
}

.dashboard-mini-row small {
    margin-top: 2px;
    color: #667085;
    font-size: 12px;
    font-weight: 700;
}

.dashboard-mini-row em {
    color: #667085;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
}

.dashboard-empty {
    display: grid;
    min-height: 112px;
    place-items: center;
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: #98a2b3;
    font-weight: 800;
    background: #fbfdff;
}

.board-table {
    --bs-table-color: var(--ink);
    --bs-table-border-color: var(--line);
    font-size: 14px;
}

.board-table thead th {
    color: #667085;
    font-size: 13px;
    font-weight: 800;
    background: #f8fafc;
}

.board-table th,
.board-table td {
    padding: 15px 16px;
    white-space: nowrap;
}

.board-table-wrap {
    margin-bottom: 28px;
    max-width: 100%;
    overflow-x: auto;
}

.board-title-link {
    color: var(--ink);
    font-weight: 700;
}

.board-title-link:hover {
    color: var(--accent);
}

.board-pagination {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
    padding: 4px 0;
}

.board-pagination .pagination {
    --bs-pagination-color: var(--accent);
    --bs-pagination-hover-color: var(--accent-strong);
    --bs-pagination-focus-color: var(--accent-strong);
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.board-pagination .page-link {
    display: inline-flex;
    min-width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    border: 1px solid #dce3ed;
    border-radius: 5px;
    color: #566479;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .035);
}

.board-pagination .page-link:hover,
.board-pagination .page-link:focus {
    z-index: 1;
    border-color: #9eb5e5;
    color: var(--accent-strong);
    background: #f5f8ff;
    box-shadow: 0 2px 7px rgba(36, 65, 145, .1);
}

.board-pagination .page-item.active .page-link {
    border-color: var(--accent);
    color: #fff;
    font-weight: 850;
    background: var(--accent);
    box-shadow: 0 4px 10px rgba(36, 65, 145, .2);
}

.board-pagination .page-item.disabled .page-link {
    border-color: #e8ecf2;
    color: #aeb7c4;
    background: #f8fafc;
    box-shadow: none;
    opacity: 1;
}

.board-pagination .page-direction .page-link {
    width: 32px;
    min-width: 32px;
    padding: 0;
}

.board-pagination .page-direction .page-link i {
    font-size: .62rem;
}

.board-pagination .page-item.is-ellipsis .page-link {
    min-width: 24px;
    padding: 0 3px;
    border-color: transparent;
    color: #8994a5;
    background: transparent;
    box-shadow: none;
}

@media (max-width: 480px) {
    .board-pagination .pagination {
        gap: 3px;
    }

    .board-pagination .page-link,
    .board-pagination .page-direction .page-link {
        width: 30px;
        min-width: 30px;
        height: 30px;
        padding: 0 5px;
    }

    .board-pagination .page-item.is-ellipsis {
        display: none;
    }
}

.board-form-panel {
    min-height: 0;
}

.board-form-panel .form-label {
    color: #344054;
    font-size: 14px;
    font-weight: 700;
}

.board-editor {
    min-height: 320px;
    padding: 16px;
    resize: vertical;
}

.board-form-actions,
.board-detail-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.board-form-actions .btn,
.board-detail-actions .btn,
.body-heading > .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.board-detail {
    min-height: 0;
}

.board-detail-header {
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.board-detail-header h2 {
    margin: 0 0 18px;
    font-size: 22px;
    line-height: 1.4;
}

.board-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    margin: 0;
}

.board-meta div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.board-meta dt,
.board-meta dd {
    margin: 0;
    font-size: 14px;
}

.board-meta dt {
    color: #98a2b3;
}

.board-meta dd {
    color: #475467;
}

.board-detail-content {
    min-height: 280px;
    padding: 32px 4px;
    color: #344054;
    line-height: 1.85;
}

.board-detail-actions {
    justify-content: space-between;
}

.board-detail-actions > div {
    display: flex;
    gap: 10px;
}

.dashboard-footer {
    grid-area: footer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    border-top: 1px solid var(--line);
    color: #667085;
    font-size: 13px;
    background: #ffffff;
}

@media (max-width: 1180px) {
    .dashboard-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .dashboard-header {
        grid-template-columns: 176px minmax(0, 1fr) auto;
    }

    .dashboard-logo,
    .dashboard-logo:hover {
        padding: 0 18px;
    }

    .top-menu,
    .dashboard-body {
        padding-left: 18px;
        padding-right: 18px;
    }

    .top-menu {
        gap: 2px;
        padding-right: 10px;
        padding-left: 10px;
    }

    .top-menu a {
        padding-right: 9px;
        padding-left: 9px;
    }
}

.mobile-header-icon {
    display: none;
    width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #344054;
    background: #ffffff;
    box-shadow: none;
}

/* Header link styles have higher specificity, so keep mobile actions explicitly hidden on desktop. */
.header-actions .mobile-header-icon {
    display: none;
}

.mobile-header-icon:hover,
.mobile-header-icon:focus-visible {
    border-color: var(--accent-line);
    color: var(--accent);
    background: var(--accent-soft);
}

.app-mobile-menu,
.app-mobile-account {
    --bs-offcanvas-width: min(86vw, 340px);
    border-color: var(--line);
}

.app-mobile-menu .offcanvas-header,
.app-mobile-account .offcanvas-header {
    border-bottom: 1px solid var(--line);
}

.app-mobile-account .offcanvas-header p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.mobile-menu-list,
.mobile-account-list {
    display: grid;
    gap: 10px;
}

.mobile-menu-group {
    display: grid;
    gap: 7px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.mobile-menu-group.active {
    border-color: var(--accent-line);
    background: var(--accent-soft);
}

.mobile-menu-top,
.mobile-submenu a,
.mobile-account-list a,
.mobile-account-list button {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 40px;
    padding: 9px 10px;
    border: 0;
    border-radius: 8px;
    color: #475467;
    font-size: 13px;
    font-weight: 800;
    text-align: left;
    background: transparent;
    box-shadow: none;
}

.mobile-menu-top {
    color: var(--ink);
    font-size: 14px;
}

.mobile-menu-top i,
.mobile-submenu a i,
.mobile-account-list i {
    width: 17px;
    text-align: center;
}

.mobile-menu-top.active,
.mobile-submenu a.active,
.mobile-account-list a:hover,
.mobile-account-list button:hover {
    color: var(--accent);
    background: #ffffff;
}

.mobile-submenu {
    display: grid;
    gap: 4px;
    padding-left: 12px;
}

.mobile-submenu-child {
    padding-left: 36px !important;
    color: #667085 !important;
    font-weight: 700 !important;
}

.mobile-submenu-child.active {
    color: var(--accent) !important;
    background: #ffffff;
}

.mobile-account-list form {
    margin: 0;
}

.list-search-heading {
    justify-content: space-between;
}

.list-search-toggle {
    display: none;
    width: 34px;
    height: 34px;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #475467;
    font-size: 12px;
    font-weight: 800;
    background: #ffffff;
    box-shadow: none;
}

.list-search-toggle i {
    color: #98a2b3;
    font-size: 12px;
    transition: transform 0.16s ease;
}

.list-search-toggle span {
    display: none;
}

.list-search-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.product-market-sync-float {
    position: fixed;
    right: 26px;
    bottom: 92px;
    z-index: 35;
    display: none;
    width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 0;
    place-items: center;
    border-radius: 50%;
    box-shadow: 0 14px 30px rgba(var(--accent-rgb), 0.28);
}

.product-market-sync-modal .modal-dialog {
    --bs-modal-width: min(520px, calc(100vw - 20px));
}

.product-market-sync-modal .modal-body {
    padding: 12px;
}

.product-market-sync-modal .market-sync-panel {
    margin: 0;
    border: 0;
    padding: 0;
    box-shadow: none;
}

.product-edit-layout.is-editing {
    padding-bottom: 86px;
}

@media (max-width: 860px) {
    .product-edit-layout.is-editing {
        padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px));
    }

    .dashboard-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 1fr auto;
        grid-template-areas:
            "header"
            "left"
            "body"
            "footer";
    }

    .dashboard-layout-full {
        grid-template-rows: auto 1fr auto;
        grid-template-areas:
            "header"
            "body"
            "footer";
    }

    .dashboard-header,
    .body-heading,
    .dashboard-footer {
        align-items: flex-start;
        flex-direction: column;
        height: auto;
        padding: 14px;
    }

    .dashboard-header {
        display: flex;
        gap: 10px;
        position: sticky;
        top: 0;
        z-index: 20;
    }

    .dashboard-logo,
    .dashboard-logo:hover {
        height: auto;
        padding: 0;
        border-right: 0;
    }

    .dashboard-logo img {
        width: auto;
        height: 38px;
        max-width: 156px;
    }

    .header-actions {
        width: 100%;
        padding-right: 0;
    }

    .header-actions form {
        flex: 1;
    }

    .header-actions a,
    .header-action-button {
        justify-content: center;
        width: 100%;
    }

    .dashboard-left {
        display: block;
        padding: 12px 14px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .sidebar-title {
        display: none;
    }

    .dashboard-left a {
        margin-bottom: 0;
    }

    .top-menu {
        width: 100%;
        padding: 0;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .top-menu::-webkit-scrollbar {
        display: none;
    }

    .top-menu a {
        flex: 0 0 auto;
        min-height: 32px;
        padding: 0 10px;
        border-radius: 8px;
        font-size: 13px;
        white-space: nowrap;
    }

    .top-menu a::after {
        right: 10px;
        left: 10px;
    }

    .side-menu {
        display: grid;
        gap: 8px;
    }

    .side-menu > a,
    .side-menu-toggle {
        width: 100%;
        white-space: nowrap;
    }

    .side-menu .collapse {
        position: static;
        margin-top: -4px;
        min-width: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .submenu {
        margin: 0 0 8px 28px;
        padding-left: 12px;
        border-left: 1px solid var(--line);
    }

    .dashboard-body {
        padding: 22px 18px;
    }

    .product-edit-layout {
        grid-template-columns: 1fr;
    }

    .product-edit-summary {
        position: static;
    }

    .product-source-bar {
        display: grid;
    }

    .product-source-bar-item {
        justify-content: space-between;
        border-right: 0;
        border-bottom: 1px solid #d8dee8;
    }

    .product-source-bar-item:last-of-type {
        border-bottom: 0;
    }

    .product-option-summary,
    .product-option-controls,
    .product-option-values {
        grid-template-columns: 1fr;
    }

    .product-option-summary > div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .product-option-summary > div:last-child {
        border-bottom: 0;
    }

    .product-option-layout {
        grid-template-columns: 1fr;
    }

    .product-option-value-grid {
        grid-template-columns: 1fr;
    }

    .product-option-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .product-option-toolbar .btn {
        width: 100%;
    }

    .product-option-actions {
        justify-content: stretch;
    }

    .product-option-actions .btn {
        width: 100%;
    }

    .metric-card,
    .work-panel {
        box-shadow: none;
    }

    .work-panel {
        min-height: auto;
    }

    .board-editor {
        min-height: 260px;
    }

    .field-grid {
        grid-template-columns: 1fr;
    }

    .shopee-price-inputs,
    .shopee-price-inputs-compact,
    .shopee-margin-result-zone,
    .shopee-price-result,
    .shopee-price-breakdown {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shopee-margin-result-card-primary {
        grid-column: 1 / -1;
    }

    .shopee-margin-workspace {
        grid-template-columns: 1fr;
    }

    .shopee-margin-mode {
        width: 100%;
    }

    .shopee-margin-mode .btn {
        flex: 1 1 0;
    }

    .shopee-price-breakdown div:nth-child(4n) {
        border-right: 1px solid var(--line);
    }

    .shopee-price-breakdown div:nth-child(2n) {
        border-right: 0;
    }
}

@media (max-width: 520px) {
    h1 {
        font-size: 34px;
    }

    .auth-page {
        align-items: start;
        padding: 18px 12px;
    }

    .auth-shell {
        padding: 0;
    }

    .auth-panel {
        width: 100%;
        padding: 28px 20px;
    }

    .form-row,
    .auth-switch {
        align-items: flex-start;
        flex-direction: column;
    }

    .header-actions {
        width: 100%;
    }

    .header-actions a,
    .header-action-button {
        flex: 1;
        text-align: center;
    }

    .dashboard-header,
    .dashboard-left,
    .dashboard-body,
    .dashboard-footer {
        padding-left: 14px;
        padding-right: 14px;
    }

    .top-menu {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .top-menu a {
        justify-content: center;
        min-width: 0;
        padding: 10px 8px;
        font-size: 14px;
    }

    .top-menu a i {
        display: none;
    }

    .body-heading button {
        width: 100%;
    }

    .body-heading > .btn {
        width: 100%;
    }

    .heading-actions {
        width: 100%;
    }

    .heading-actions .btn {
        flex: 1;
        width: auto;
    }

    .product-heading-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .product-heading-actions form {
        min-width: 0;
    }

    .body-heading .product-heading-actions .btn {
        width: 100%;
    }

    .metric-card {
        min-height: 126px;
        padding: 18px;
    }

    .metric-card strong {
        font-size: 28px;
    }

    .work-panel {
        padding: 18px;
    }

    .product-form-grid {
        grid-template-columns: 1fr;
    }

    .form-field-wide {
        grid-column: auto;
    }

    .market-mapping-row,
    .product-taxonomy-grid,
    .product-commerce-grid,
    .product-commerce-fields {
        grid-template-columns: 1fr;
    }

    .market-mapping-list-row,
    .product-taxonomy-card .market-mapping-list-row,
    .product-commerce-card .market-mapping-list-row {
        grid-template-columns: minmax(72px, auto) minmax(0, 1fr);
    }

    .market-mapping-row-actions,
    .product-taxonomy-card .market-mapping-row-actions,
    .product-commerce-card .market-mapping-row-actions {
        grid-column: 1 / -1;
        justify-items: stretch;
        justify-content: stretch;
    }

    .market-mapping-row-actions .btn,
    .product-taxonomy-card .market-mapping-row-actions .btn,
    .product-commerce-card .market-mapping-row-actions .btn {
        width: 100%;
    }

    .market-attribute-grid {
        grid-template-columns: 1fr;
    }

    .product-form-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .product-edit-layout.is-editing .product-form-actions {
        margin-right: -18px;
        margin-bottom: -18px;
        margin-left: -18px;
        padding: 14px 18px;
    }

    .section-heading-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .section-heading-actions .btn {
        width: 100%;
    }

    .product-thumbnail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-thumbnail-upload-heading {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .product-thumbnail-upload-control .btn {
        width: 100%;
    }

    .account-meta {
        grid-template-columns: 1fr;
    }

    .account-meta div + div {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .chart-bars {
        height: 160px;
        gap: 8px;
    }

    .status-list li {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .dashboard-footer {
        gap: 6px;
    }

    .list-search-form {
        gap: 12px;
        padding: 16px;
    }

    .product-target-market-bar {
        align-items: stretch;
        flex-direction: column;
        padding: 14px;
    }

    .product-target-market-bar-compact {
        padding: 0;
    }

    .product-target-market-control {
        width: 100%;
    }

    .list-search-row {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
    }

    .list-search-label {
        flex-basis: auto;
    }

    .list-search-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .product-market-filter-controls {
        display: grid;
        grid-template-columns: 1fr;
    }

    .product-market-brand-results {
        width: 100%;
    }

    .list-search-filter,
    .list-search-field,
    .list-search-keyword {
        flex-basis: auto;
        width: 100%;
    }

    .list-search-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .list-search-actions .btn {
        width: 100%;
    }

    .collection-copy-form {
        display: grid;
        grid-template-columns: minmax(128px, 1fr) 42px;
        align-items: center;
        width: 100%;
        min-width: 190px;
    }

    .collection-copy-form .form-select {
        width: 100%;
        min-width: 0;
    }

    .collection-create-button,
    .collection-delete-button {
        width: 42px;
        min-width: 42px;
        height: 42px;
    }

    .collection-copy-cell {
        min-width: 230px;
    }

    .collection-delete-cell {
        width: 124px;
        min-width: 124px;
    }

    .collection-detail-actions {
        justify-content: stretch;
    }

    .collection-detail-actions .collection-copy-form,
    .collection-detail-actions .collection-copy-form .form-select,
    .collection-detail-actions .btn {
        width: 100%;
    }

    .collection-detail-grid {
        grid-template-columns: 1fr;
    }

    .collection-meta-grid {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .collection-detail-section {
        padding: 14px;
    }

    .board-detail-header h2 {
        font-size: 22px;
    }

    .board-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .board-detail-content {
        min-height: 220px;
        padding: 24px 0;
    }

    .board-form-actions,
    .board-detail-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .board-form-actions .btn,
    .board-detail-actions .btn,
    .board-detail-actions > div {
        width: 100%;
    }

    .board-detail-actions > div .btn {
        flex: 1;
    }

    .crawling-search-form,
    .crawling-url-form,
    .crawling-product-summary,
    .crawling-spec-grid {
        grid-template-columns: 1fr;
    }

    .crawling-search-form .btn,
    .crawling-url-form .btn {
        width: 100%;
    }

    .crawling-product-summary > img,
    .crawling-image-placeholder {
        width: 128px;
        height: 128px;
    }

    .crawling-spec-grid div {
        grid-template-columns: 110px minmax(0, 1fr);
    }

    .shopee-price-inputs,
    .shopee-price-inputs-compact,
    .shopee-margin-result-zone,
    .shopee-price-result,
    .shopee-price-breakdown {
        grid-template-columns: 1fr;
    }

    .shopee-margin-result-card-primary {
        grid-column: auto;
    }

    .shopee-margin-result-card,
    .shopee-price-result > div {
        min-height: 96px;
        padding: 14px;
    }

    .shopee-margin-result-card strong,
    .shopee-price-result strong {
        font-size: 24px;
    }

    .shopee-margin-product-inputs,
    .shopee-margin-setting-inputs,
    .shopee-margin-fee-inputs {
        grid-template-columns: 1fr;
    }

    .shopee-margin-mode {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px;
    }

    .shopee-margin-mode .btn {
        min-width: 0;
        min-height: 44px;
        padding: 7px 8px;
        font-size: 12px;
    }

    .shopee-price-breakdown div,
    .shopee-price-breakdown div:nth-child(4n),
    .shopee-price-breakdown div:nth-child(2n) {
        border-right: 0;
    }
}

.market-search-dropdown {
    position: relative;
}

.market-search-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid #cfd6e3;
    border-radius: 6px;
    background: #fff;
    color: #1f2937;
    font: inherit;
    text-align: left;
}

.market-search-dropdown-toggle:hover,
.market-search-dropdown-toggle:focus,
.market-search-dropdown-toggle:active {
    border-color: #b8c2d3;
    background: #fff;
    color: #1f2937;
}

.market-search-dropdown-toggle:focus-visible {
    outline: 0;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.12);
}

.market-search-dropdown-toggle i {
    color: #8a8f98;
    transition: transform 0.15s ease;
}

.market-search-dropdown-toggle.has-value {
    font-weight: 700;
}

.market-search-dropdown.is-open .market-search-dropdown-toggle {
    border-color: var(--accent);
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.08);
}

.market-search-dropdown.is-open .market-search-dropdown-toggle i {
    transform: rotate(180deg);
}

.market-search-dropdown-menu {
    display: none;
    position: absolute;
    z-index: 1080;
    top: calc(100% - 1px);
    right: 0;
    left: 0;
    padding: 8px;
    border: 1px solid var(--accent);
    border-top-color: #d7dce5;
    border-bottom-right-radius: 6px;
    border-bottom-left-radius: 6px;
    background: #fff;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.14);
}

.market-search-dropdown.is-open .market-search-dropdown-menu {
    display: block;
}

.market-search-dropdown-input {
    margin-bottom: 8px;
}

.market-search-dropdown-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.1);
}

.market-search-dropdown-results {
    max-height: min(420px, 48vh);
    min-height: 220px;
    overflow-y: auto;
}

.market-search-dropdown-results .list-group-item {
    min-height: 42px;
    border-color: #eef2f7;
    color: #1f2937;
    text-align: left;
}

.market-search-dropdown-results .list-group-item-action:hover,
.market-search-dropdown-results .list-group-item-action:focus {
    background: #f3f6fb;
    color: #111827;
}

.market-search-dropdown-results .list-group-item-action:active {
    background: #e8eef8;
    color: #111827;
}

.market-catalog-log-list {
    display: grid;
    gap: 10px;
}

.market-catalog-admin-page {
    display: grid;
    width: min(100%, var(--centered-page-width));
    gap: 16px;
    margin: 0 auto;
}

.market-catalog-page-heading {
    margin-bottom: 2px;
}

.market-catalog-page-heading p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.market-catalog-card {
    min-height: 0;
    padding: 20px;
}

.market-catalog-card-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.market-catalog-card-icon {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 10px;
    color: var(--accent);
    background: var(--accent-soft);
}

.market-catalog-card-heading > div {
    min-width: 0;
}

.market-catalog-card-heading h2 {
    margin: 0;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.35;
}

.market-catalog-card-heading p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.market-catalog-empty-state {
    display: flex;
    min-height: 88px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px;
    border: 1px dashed #d8e0ec;
    border-radius: 10px;
    color: #667085;
    background: #fafcff;
    text-align: left;
}

.market-catalog-empty-state > i {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    color: var(--accent);
    background: var(--accent-soft);
}

.market-catalog-empty-state > div {
    display: grid;
    gap: 3px;
}

.market-catalog-empty-state strong {
    color: var(--ink);
    font-size: 14px;
}

.market-catalog-empty-state span {
    color: var(--muted);
    font-size: 12px;
}

.market-catalog-table-wrap {
    border: 1px solid var(--line);
    border-radius: 10px;
}

.market-catalog-table-wrap table {
    min-width: 760px;
}

.market-catalog-table-wrap thead th {
    background: #f8fafc;
}

.market-catalog-sync-card form {
    display: grid;
    gap: 16px;
}

.market-catalog-primary-fields {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fbfcfe;
}

.market-catalog-advanced {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #ffffff;
}

.market-catalog-advanced summary {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    color: #344054;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    list-style: none;
}

.market-catalog-advanced summary::-webkit-details-marker {
    display: none;
}

.market-catalog-advanced summary::after {
    content: "\f078";
    flex: 0 0 auto;
    color: #98a2b3;
    font-family: "Font Awesome 6 Free";
    font-size: 11px;
    font-weight: 900;
    transition: transform 0.2s ease;
}

.market-catalog-advanced[open] summary::after {
    transform: rotate(180deg);
}

.market-catalog-advanced summary span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.market-catalog-advanced summary span i {
    color: var(--accent);
}

.market-catalog-advanced summary small {
    margin-left: auto;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}

.market-catalog-advanced-fields {
    padding: 16px;
    border-top: 1px solid var(--line);
    background: #fbfcfe;
}

.market-catalog-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.market-catalog-form-footer p {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.market-catalog-form-footer p i {
    color: var(--accent);
}

.market-catalog-form-footer .btn {
    flex: 0 0 auto;
}

.market-catalog-log {
    border: 1px solid #dfe5ee;
    border-radius: 8px;
    background: #fff;
}

.market-catalog-log summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    cursor: pointer;
    font-weight: 700;
}

.market-catalog-log summary small {
    color: #6b7280;
    font-weight: 500;
}

.market-catalog-log pre {
    max-height: 360px;
    margin: 0;
    padding: 12px 14px;
    overflow: auto;
    border-top: 1px solid #edf1f6;
    background: #111827;
    color: #e5e7eb;
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 720px) {
    .market-catalog-admin-page {
        gap: 12px;
    }

    .market-catalog-card {
        padding: 16px;
    }

    .market-catalog-card-heading p {
        line-height: 1.55;
    }

    .market-catalog-primary-fields,
    .market-catalog-advanced-fields {
        grid-template-columns: 1fr;
    }

    .market-catalog-advanced summary small {
        display: none;
    }

    .market-catalog-form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .market-catalog-form-footer .btn {
        width: 100%;
    }

    .market-catalog-empty-state {
        justify-content: flex-start;
    }
}

.table-sort-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    text-decoration: none;
}

.table-sort-link:hover,
.table-sort-link:focus {
    color: var(--accent);
    text-decoration: none;
}

@media (max-width: 720px) {
    .shopee-publish-toolbar,
    .shopee-publish-row,
    .shopee-publish-row-actions {
        align-items: stretch;
    }

    .shopee-publish-toolbar,
    .shopee-publish-row {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .shopee-publish-row-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .dashboard-layout {
        min-width: 0;
    }

    .dashboard-header {
        gap: 8px;
    }

    .header-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
    }

    .header-admin-button {
        min-width: 0;
    }

    .header-user-menu {
        justify-content: center;
        width: 42px;
        min-width: 42px;
        padding: 5px;
    }

    .header-user-name,
    .header-user-chevron {
        display: none;
    }

    .side-menu > a,
    .side-menu-toggle {
        min-height: 36px;
        padding: 8px 10px;
    }

    .dashboard-body {
        padding-top: 16px;
        padding-bottom: 18px;
    }

    .body-heading {
        gap: 10px;
        margin-bottom: 14px;
    }

    .body-heading h1 {
        font-size: 22px;
    }

    .page-breadcrumb {
        display: none;
    }

    .work-panel {
        min-height: 0;
        padding: 14px;
    }

    .form-control,
    .form-select,
    .btn {
        min-height: 42px;
    }

    .btn-sm {
        min-height: 36px;
    }

    .product-edit-layout {
        gap: 12px;
    }

    .product-edit-summary {
        max-height: none;
        overflow: visible;
    }

    .product-source-bar {
        gap: 0;
        padding: 0;
        overflow: hidden;
    }

    .product-source-bar-item {
        padding: 9px 10px;
    }

    .product-taxonomy-card,
    .product-commerce-card {
        padding: 10px;
    }

    .market-mapping-list-row,
    .product-taxonomy-card .market-mapping-list-row,
    .product-commerce-card .market-mapping-list-row {
        grid-template-columns: 1fr;
        gap: 6px;
        min-height: 0;
        padding: 9px;
    }

    .market-mapping-market,
    .market-mapping-value {
        width: 100%;
        white-space: normal;
        overflow-wrap: break-word;
        word-break: normal;
    }

    .market-mapping-row-actions,
    .product-taxonomy-card .market-mapping-row-actions,
    .product-commerce-card .market-mapping-row-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        gap: 6px;
    }

    .market-mapping-row-actions .btn,
    .product-taxonomy-card .market-mapping-row-actions .btn,
    .product-commerce-card .market-mapping-row-actions .btn {
        width: 100%;
        min-height: 36px;
        white-space: normal;
    }

    .product-thumbnail-grid,
    .product-detail-image-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .product-option-summary,
    .market-sync-status,
    .market-sync-status-compact {
        grid-template-columns: 1fr;
    }

    .market-sync-panel {
        padding: 12px;
    }

    .market-sync-panel .market-sync-row-actions,
    .market-sync-compact .market-sync-row-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 7px;
        width: 100%;
    }

    .market-sync-product-actions {
        width: 100%;
    }

    .market-sync-product-link,
    .market-sync-row-button,
    .market-sync-icon-button {
        max-width: 100%;
        width: 100%;
    }

    .market-sync-icon-button {
        min-height: 36px;
    }

    .market-sync-publish-countries {
        flex-wrap: wrap;
        white-space: normal;
    }

    .product-form-actions {
        grid-template-columns: 1fr;
    }

    .product-edit-layout.is-editing .product-form-actions {
        position: sticky;
        z-index: 20;
        bottom: 0;
        grid-template-columns: 1fr;
        box-shadow: 0 -12px 26px rgba(15, 23, 42, 0.1);
    }

    .list-toolbar,
    .list-toolbar-left,
    .list-toolbar-right {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .list-toolbar .btn,
    .list-per-page-form,
    .list-per-page-form .form-select {
        width: 100%;
    }

    .board-table-wrap {
        margin-right: -14px;
        margin-left: -14px;
        padding-right: 14px;
        padding-left: 14px;
        overflow-x: auto;
    }

    .board-table {
        min-width: 760px;
    }

    .product-table-actions {
        min-width: 220px;
    }

    .order-toolbar,
    .order-detail-layout,
    .order-info-grid,
    .order-profile-grid,
    .order-result-summary {
        grid-template-columns: 1fr;
    }

    .order-import-actions {
        display: grid;
    }

    .order-import-actions,
    .order-action-fields {
        grid-template-columns: 1fr;
    }

    .order-import-actions .btn,
    .order-import-actions form {
        width: 100%;
    }

    .modal-dialog {
        margin: 10px;
    }

    .modal-content {
        max-height: calc(100vh - 20px);
    }

    .modal-body {
        overflow: auto;
    }

    .market-search-dropdown-menu {
        position: fixed;
        top: 72px;
        right: 12px;
        left: 12px;
        max-height: calc(100vh - 94px);
        border-radius: 8px;
        overflow: auto;
    }

    .market-search-dropdown-results {
        min-height: 180px;
        max-height: 54vh;
    }
}

@media (max-width: 860px) {
    .dashboard-layout,
    .dashboard-layout-full {
        grid-template-columns: 1fr;
        grid-template-rows: 58px minmax(0, 1fr) auto;
        grid-template-areas:
            "header"
            "body"
            "footer";
    }

    .dashboard-header {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
        height: 58px;
        padding: 8px 12px;
    }

    .mobile-header-icon {
        display: grid;
    }

    .header-actions .mobile-header-icon {
        display: grid;
    }

    .dashboard-logo,
    .dashboard-logo:hover {
        justify-content: center;
        height: 42px;
        padding: 0;
        border-right: 0;
    }

    .dashboard-logo img {
        width: auto;
        height: 36px;
        max-width: 148px;
        object-position: center;
    }

    .top-menu,
    .dashboard-left,
    .header-actions .dropdown,
    .header-actions .header-admin-menu,
    .header-actions .header-shopee-margin-button,
    .header-actions .header-admin-button,
    .header-admin-button {
        display: none;
    }

    .header-actions {
        display: flex;
        gap: 8px;
        justify-content: flex-end;
        width: auto;
        padding: 0;
    }

    .header-actions .header-margin-dropdown {
        display: inline-grid;
    }

    .dashboard-body {
        padding: 16px 14px 22px;
    }

    .dashboard-footer {
        align-items: center;
        flex-direction: row;
        min-height: 42px;
        padding: 0 14px;
        font-size: 12px;
    }

    .product-edit-layout {
        grid-template-columns: 1fr;
    }

    .product-edit-summary {
        display: none;
    }

    .product-edit-layout.is-editing .product-form-actions {
        position: fixed;
        z-index: 34;
        right: 0;
        bottom: 0;
        left: 0;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin: 0;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
        border: 1px solid var(--line);
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 0;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 -12px 28px rgba(16, 24, 40, 0.1);
        backdrop-filter: blur(12px);
    }

    .product-form-actions .btn {
        width: 100%;
    }

    .product-market-sync-float {
        display: grid;
        right: 14px;
        bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    }
}

@media (min-width: 861px) {
    .product-edit-layout.is-editing .product-form-actions {
        position: fixed;
        z-index: 34;
        right: 26px;
        bottom: 0;
        left: 266px;
        margin: 0;
        padding: 12px 20px;
        border: 1px solid var(--line);
        border-bottom: 0;
        border-radius: 8px 8px 0 0;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 -12px 28px rgba(16, 24, 40, 0.1);
        backdrop-filter: blur(12px);
    }
}

@media (min-width: 861px) and (max-width: 1180px) {
    .product-edit-layout.is-editing .product-form-actions {
        left: 240px;
    }
}

@media (min-width: 861px) {
    .product-edit-layout.is-editing {
        padding-bottom: 0;
    }

    .product-edit-layout.is-editing .product-form-actions {
        position: sticky;
        z-index: 20;
        right: auto;
        bottom: 0;
        left: auto;
        margin: 22px 0 0;
        padding: 14px 0 16px;
        border: 0;
        border-top: 1px solid var(--line);
        border-radius: 0;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), #ffffff 34%);
        box-shadow: none;
        backdrop-filter: blur(12px);
    }
}

@media (max-width: 680px) {
    button,
    .btn {
        min-height: 34px;
        padding: 5px 8px;
        border-radius: 7px;
        font-size: 12px;
        line-height: 1.25;
    }

    .btn-sm {
        min-height: 30px;
        padding: 4px 7px;
        font-size: 11px;
    }

    .input-group .btn,
    .modal-footer .btn,
    .product-form-actions .btn,
    .board-form-actions .btn,
    .board-detail-actions .btn {
        min-height: 36px;
    }

    .mobile-header-icon {
        width: 40px;
        height: 40px;
        min-height: 40px;
        padding: 0;
    }

    .list-search-form.is-collapsed .list-search-row,
    .list-search-form.is-collapsed .list-search-actions {
        display: none;
    }

    .list-search-form {
        gap: 0;
        padding: 12px;
    }

    .product-list-filter-form {
        gap: 10px;
    }

    .product-target-market-bar {
        padding: 12px;
    }

    .product-target-market-bar-compact {
        padding: 0;
    }

    .list-search-heading {
        min-height: 34px;
        padding-bottom: 0;
        border-bottom: 0;
    }

    .list-search-toggle {
        display: inline-flex;
    }

    .list-search-form:not(.is-collapsed) .list-search-heading {
        margin-bottom: 10px;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--line);
    }

    .body-heading .btn,
    .heading-actions .btn,
    .list-toolbar .btn,
    .market-mapping-row-actions .btn,
    .market-sync-row-button {
        min-height: 34px;
        padding: 5px 8px;
        font-size: 12px;
    }

    .body-heading button,
    .body-heading > .btn,
    .heading-actions .btn,
    .body-heading .product-heading-actions .btn,
    .list-search-actions .btn,
    .list-toolbar .btn,
    .section-heading-actions .btn {
        width: auto;
        max-width: max-content;
        flex: 0 0 auto;
    }

    .heading-actions,
    .product-heading-actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 8px;
        width: 100%;
    }

    .product-heading-actions form {
        width: auto;
    }

    .list-search-actions,
    .list-toolbar-left,
    .list-toolbar-right {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 8px;
    }

    .market-mapping-row-actions,
    .product-taxonomy-card .market-mapping-row-actions,
    .product-commerce-card .market-mapping-row-actions,
    .market-sync-panel .market-sync-row-actions,
    .market-sync-compact .market-sync-row-actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        width: auto;
    }

    .market-mapping-row-actions .btn,
    .product-taxonomy-card .market-mapping-row-actions .btn,
    .product-commerce-card .market-mapping-row-actions .btn,
    .market-sync-row-button {
        width: auto;
        max-width: max-content;
    }

    .market-sync-icon-button {
        width: 34px;
        min-width: 34px;
        max-width: 34px;
        height: 34px;
        min-height: 34px;
        padding: 0;
    }

    .market-sync-product-link {
        width: auto;
    }

    .btn .me-2,
    .btn .me-1 {
        margin-right: 0 !important;
    }

    .market-mapping-list-row,
    .product-taxonomy-card .market-mapping-list-row,
    .product-commerce-card .market-mapping-list-row {
        grid-template-columns: minmax(74px, auto) minmax(0, 1fr);
        align-items: center;
    }

    .market-mapping-market,
    .market-mapping-value {
        width: auto;
    }

    .market-mapping-row-actions,
    .product-taxonomy-card .market-mapping-row-actions,
    .product-commerce-card .market-mapping-row-actions {
        grid-column: 1 / -1;
    }

    .product-form-actions .btn {
        max-width: none;
        width: 100%;
    }

    .product-thumbnail-grid {
        display: flex;
        grid-template-columns: none;
        gap: 10px;
        margin-right: -14px;
        margin-left: -14px;
        padding: 0 14px 8px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-padding-inline: 14px;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .product-thumbnail-grid::-webkit-scrollbar {
        display: none;
    }

    .product-thumbnail-item {
        flex: 0 0 min(42vw, 156px);
        width: min(42vw, 156px);
        scroll-snap-align: start;
    }
}

.shopee-product-sync-mode {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.shopee-product-sync-mode .btn {
    min-width: 150px;
}

.shopee-product-sync-mode .btn-action,
.shopee-product-sync-mode .btn-action i {
    color: #fff;
}

.shopee-product-sync-help {
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-muted);
    color: var(--text-muted);
    font-weight: 700;
}

.shopee-product-sync-existing {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.shopee-product-sync-existing-label {
    flex: 0 0 auto;
    color: #344054;
    font-size: 13px;
    font-weight: 900;
}

.shopee-product-sync-existing-options {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.shopee-product-sync-existing-options .form-check {
    display: flex;
    align-items: center;
    min-height: 24px;
    margin: 0;
    padding: 0 0 0 24px;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-weight: 800;
}

.shopee-product-sync-existing-options .form-check-input {
    margin-left: -24px;
}

.shopee-product-sync-debug {
    max-height: 260px;
    overflow: auto;
    padding: 12px;
    border: 1px solid #d5dce8;
    border-radius: 8px;
    background: #0f172a;
    color: #dbeafe;
    font-size: 12px;
    line-height: 1.45;
    white-space: pre-wrap;
}

.shopee-product-sync-progress {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.shopee-product-sync-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.shopee-product-sync-stats span {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-muted);
    color: var(--text-muted);
    font-weight: 700;
}

.shopee-product-sync-stats strong {
    display: block;
    margin-top: 2px;
    color: var(--text);
    font-size: 1.05rem;
}

@media (max-width: 680px) {
    .shopee-product-sync-mode .btn {
        flex: 1 1 100%;
        min-width: 0;
    }

    .shopee-product-sync-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .dashboard-header {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 1020;
        height: 58px;
        min-height: 58px;
    }

    .dashboard-layout,
    .dashboard-layout-full {
        min-height: 100vh;
    }

    .mobile-header-icon {
        width: 44px;
        height: 44px;
        min-height: 44px;
        border-radius: 10px;
        font-size: 18px;
    }

    .btn:not(.btn-close) {
        min-height: 44px;
        padding: 8px 12px;
        border-radius: 9px;
        font-size: 13px;
        line-height: 1.25;
    }

    .btn-sm:not(.btn-close) {
        min-height: 40px;
        padding: 7px 10px;
        border-radius: 9px;
        font-size: 12px;
    }

    .btn:not(.btn-close) i.me-2,
    .btn:not(.btn-close) .me-2 {
        margin-right: 6px !important;
    }

    .btn:not(.btn-close) i.me-1,
    .btn:not(.btn-close) .me-1 {
        margin-right: 5px !important;
    }

    .body-heading .btn,
    .heading-actions .btn,
    .list-toolbar .btn,
    .list-search-actions .btn,
    .section-heading-actions .btn,
    .market-mapping-row-actions .btn,
    .market-sync-row-button {
        min-height: 40px;
        padding: 7px 10px;
        font-size: 12px;
    }

    .market-sync-icon-button {
        width: 40px;
        min-width: 40px;
        max-width: 40px;
        height: 40px;
        min-height: 40px;
        padding: 0;
    }

    .product-market-sync-float {
        width: 52px;
        height: 52px;
        min-height: 52px;
    }

.modal-footer .btn,
.product-form-actions .btn,
.board-form-actions .btn,
.board-detail-actions .btn {
        min-height: 44px;
    }
}

.marketing-create-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.marketing-create-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 20px;
    border: 1px solid var(--accent-line);
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent-soft), #ffffff);
}

.marketing-step-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 800;
}

.marketing-create-hero h2 {
    margin: 10px 0 6px;
    font-size: 22px;
    font-weight: 900;
}

.marketing-create-hero p {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

.marketing-create-rules {
    display: grid;
    gap: 8px;
    min-width: 260px;
}

.marketing-create-rules span,
.marketing-check-list span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475467;
    font-size: 13px;
    font-weight: 800;
}

.marketing-create-rules i {
    color: var(--accent);
}

.marketing-shop-filter {
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(240px, 1fr) auto;
    gap: 12px;
    align-items: end;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcff;
}

.marketing-shop-filter label,
.marketing-basic-grid label,
.marketing-product-controls label,
.marketing-price-input,
.marketing-stock-input {
    display: grid;
    gap: 6px;
}

.marketing-shop-filter label > span,
.marketing-basic-grid label > span,
.marketing-product-controls label > span,
.marketing-price-input > span,
.marketing-stock-input > span {
    color: #475467;
    font-size: 12px;
    font-weight: 900;
}

.marketing-create-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
    gap: 16px;
}

.marketing-create-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.marketing-card-title {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.marketing-card-title i {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent);
}

.marketing-card-title strong {
    display: block;
    font-size: 16px;
    font-weight: 900;
}

.marketing-card-title span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.marketing-basic-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) repeat(2, minmax(190px, 0.65fr));
    gap: 12px;
}

.marketing-guide-card {
    background: #fbfcff;
}

.marketing-check-list {
    display: grid;
    gap: 10px;
}

.marketing-products-section {
    display: grid;
    gap: 14px;
}

.marketing-add-products-section {
    order: 3;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.marketing-section-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.marketing-section-heading strong {
    display: block;
    font-size: 18px;
    font-weight: 900;
}

.marketing-section-heading span {
    color: var(--muted);
    font-weight: 800;
}

.marketing-product-list {
    display: grid;
    gap: 12px;
}

.marketing-product-card {
    display: grid;
    grid-template-columns: 58px minmax(280px, 1fr) minmax(120px, 150px);
    gap: 14px;
    align-items: start;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.marketing-product-check {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    min-height: 34px;
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 900;
}

.marketing-product-check .form-check-input {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    min-height: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.marketing-product-summary {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.marketing-product-thumb {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    color: #98a2b3;
}

.marketing-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.marketing-product-summary strong {
    display: block;
    overflow: hidden;
    max-width: 100%;
    font-size: 15px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.marketing-product-summary span,
.marketing-price-line span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.marketing-price-lines {
    grid-column: 2 / -1;
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid #edf1f7;
    border-radius: 8px;
    background: #fbfcff;
}

.marketing-price-line {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(190px, 240px) minmax(150px, 180px);
    gap: 12px;
    align-items: end;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.marketing-price-line strong {
    font-weight: 900;
}

.marketing-price-input .input-group {
    align-items: stretch;
}

.marketing-price-input .form-control,
.marketing-price-input .input-group-text,
.marketing-stock-input .form-control,
.marketing-product-controls .form-control {
    min-height: 42px;
}

.marketing-price-input .input-group-text {
    display: inline-flex;
    align-items: center;
    padding-right: 14px;
    padding-left: 14px;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}

.marketing-create-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 0 0;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(246, 248, 251, 0), var(--soft) 22%, var(--soft));
}

@media (max-width: 991.98px) {
    .marketing-create-hero,
    .marketing-shop-filter,
    .marketing-create-grid,
    .marketing-basic-grid {
        grid-template-columns: 1fr;
    }

    .marketing-product-card {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 12px;
    }

    .marketing-product-summary {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .marketing-product-thumb {
        width: 52px;
        height: 52px;
    }

    .marketing-product-controls,
    .marketing-price-lines {
        grid-column: 1 / -1;
    }

    .marketing-price-line {
        grid-template-columns: minmax(0, 1fr) minmax(170px, 220px) minmax(140px, 180px);
    }

    .marketing-create-rules {
        min-width: 0;
    }

    .marketing-price-lines {
        grid-column: 1;
        padding: 10px;
        overflow-x: auto;
    }

    .marketing-section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .marketing-create-actions {
        padding: 12px;
        margin: 0 -12px;
    }
}

@media (max-width: 767.98px) {
    .marketing-create-hero {
        padding: 16px;
    }

    .marketing-shop-filter {
        padding: 14px;
    }

    .marketing-product-card {
        padding: 14px;
    }

    .marketing-product-check {
        min-height: 30px;
    }

    .marketing-product-summary strong {
        white-space: normal;
    }

    .marketing-price-line {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .marketing-price-lines {
        overflow-x: visible;
    }

    .marketing-create-actions .btn {
        flex: 1 1 0;
    }
}

@media (max-width: 767.98px) {
    .body-heading {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .body-heading > div,
    .heading-actions,
    .product-heading-actions {
        width: 100%;
    }

    .product-heading-actions {
        justify-content: stretch;
    }

    .body-heading .product-heading-actions .btn {
        width: 100%;
        max-width: none;
        justify-content: center;
    }

    .shopee-sourcing-guide-modal .modal-dialog {
        --bs-modal-width: calc(100vw - 16px);
    }

    .shopee-sourcing-guide-hero {
        display: grid;
        gap: 12px;
        padding: 14px;
    }

    .shopee-sourcing-guide-hero .btn {
        width: 100%;
        justify-content: center;
    }

    .shopee-sourcing-guide-steps {
        grid-template-columns: 1fr;
    }

    .shopee-sourcing-guide-step {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
    }

    .shopee-sourcing-guide-copy h3 {
        font-size: 15px;
    }

    .shopee-sourcing-guide-shot {
        min-height: 0;
    }

    .shopee-extension-card {
        margin: 10px;
    }

    .shopee-extension-header {
        min-height: 46px;
        padding: 0 12px;
    }

    .shopee-extension-header strong {
        font-size: 15px;
    }

    .shopee-extension-form,
    .shopee-extension-data {
        padding-right: 12px;
        padding-left: 12px;
    }

    .shopee-extension-form label,
    .shopee-extension-data label {
        grid-template-columns: 68px minmax(0, 1fr);
        gap: 8px;
    }

    .shopee-extension-primary,
    .shopee-extension-send {
        width: calc(100% - 24px);
        margin-right: 12px;
        margin-left: 12px;
    }

    .shopee-extension-pill {
        max-width: calc(100% - 24px);
        margin-right: 12px;
        margin-left: 12px;
    }

    .shopee-extension-images {
        padding-right: 12px;
        padding-left: 12px;
    }

    .shopee-extension-actions {
        grid-template-columns: minmax(0, 1fr) 88px;
        padding-right: 12px;
        padding-left: 12px;
    }

    .product-table-wrap.board-table-wrap {
        margin-right: 0;
        margin-left: 0;
        padding-right: 0;
        padding-left: 0;
        overflow: visible;
    }

    .product-table.board-table {
        display: block;
        min-width: 0;
    }

    .product-table thead {
        display: none;
    }

    .product-table tbody {
        display: grid;
        gap: 12px;
    }

    .product-table tbody tr {
        display: grid;
        grid-template-columns: 28px minmax(0, 1fr);
        gap: 10px 12px;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #ffffff;
    }

    .product-table.board-table th,
    .product-table.board-table td {
        display: block;
        padding: 0 !important;
        border: 0;
        white-space: normal;
    }

    .product-table .product-check-column {
        grid-column: 1;
        grid-row: 1;
        width: 28px;
        min-width: 0;
        max-width: none;
        padding-top: 4px !important;
        text-align: left;
    }

    .product-table .product-number-column {
        grid-column: 1;
        grid-row: 2;
        width: 28px;
        min-width: 0;
        max-width: none;
        color: var(--muted);
        font-size: 12px;
        text-align: left;
    }

    .product-table tbody td:nth-child(3),
    .product-table tbody td:nth-child(5),
    .product-table tbody td:nth-child(6),
    .product-table tbody td:nth-child(7),
    .product-table tbody td:nth-child(8) {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 74px minmax(0, 1fr);
        gap: 8px;
        align-items: start;
        color: var(--ink);
        font-size: 13px;
        font-weight: 800;
    }

    .product-table tbody td:nth-child(3)::before {
        content: "SKU";
    }

    .product-table tbody td:nth-child(3) {
        grid-row: 3;
    }

    .product-table tbody td:nth-child(5)::before {
        content: "카테고리";
    }

    .product-table tbody td:nth-child(5) {
        grid-row: 4;
    }

    .product-table tbody td:nth-child(6)::before {
        content: "브랜드";
    }

    .product-table tbody td:nth-child(6) {
        grid-row: 5;
    }

    .product-table tbody td:nth-child(7)::before {
        content: "판매가";
    }

    .product-table tbody td:nth-child(7) {
        grid-row: 6;
    }

    .product-table tbody td:nth-child(8)::before {
        content: "등록일";
    }

    .product-table tbody td:nth-child(8) {
        grid-row: 7;
    }

    .product-table tbody td:nth-child(3)::before,
    .product-table tbody td:nth-child(5)::before,
    .product-table tbody td:nth-child(6)::before,
    .product-table tbody td:nth-child(7)::before,
    .product-table tbody td:nth-child(8)::before {
        color: var(--muted);
        font-size: 12px;
        font-weight: 900;
    }

    .product-table tbody td:nth-child(4) {
        grid-column: 2;
        grid-row: 1 / span 2;
        min-width: 0;
    }

    .product-table .product-cell {
        align-items: flex-start;
        gap: 10px;
        min-width: 0;
    }

    .product-table .product-cell img,
    .product-table .product-image-placeholder {
        flex: 0 0 52px;
        width: 52px;
        height: 52px;
    }

    .product-table .product-cell > div {
        min-width: 0;
    }

    .product-table .product-title-link {
        display: -webkit-box;
        overflow: hidden;
        max-width: 100%;
        white-space: normal;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .product-table .product-table-actions {
        grid-column: 1 / -1;
        grid-row: 8;
        min-width: 0;
        padding-top: 10px !important;
        border-top: 1px solid var(--line);
        text-align: left;
    }

    .product-table .market-sync-form-compact {
        display: block;
        width: 100%;
        max-width: none;
    }

    .product-table .market-sync-toggle {
        min-height: 42px;
        padding: 8px 10px;
        font-size: 13px;
    }

    .product-table .market-sync-compact .market-sync-row {
        grid-template-columns: 1fr;
        gap: 9px;
        padding: 10px;
    }

    .product-table .market-sync-compact.is-single-market .market-sync-row-main,
    .product-table .market-sync-compact .market-sync-row-main {
        grid-template-columns: 24px minmax(0, 1fr);
        grid-template-areas:
            "status state"
            "link link";
        gap: 8px;
    }

    .product-table .market-sync-compact .market-sync-row-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 42px;
        gap: 8px;
        width: 100%;
        justify-content: stretch;
    }

    .product-table .market-sync-compact .market-sync-row-actions .market-sync-row-button,
    .product-table .market-sync-compact .market-sync-product-link {
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .product-table .market-sync-compact .market-sync-icon-button {
        width: 42px;
        min-width: 42px;
        max-width: 42px;
        height: 38px;
        min-height: 38px;
    }

    .product-table .market-sync-compact .market-sync-product-actions {
        width: 100%;
        margin-left: 0;
    }

    .product-table .market-sync-compact.is-single-market .market-sync-publish-countries {
        grid-column: 1 / -1;
        padding-left: 0;
    }

    .collection-table-wrap.board-table-wrap {
        margin-right: 0;
        margin-left: 0;
        padding-right: 0;
        padding-left: 0;
        overflow: visible;
    }

    .collection-table.board-table {
        display: block;
        min-width: 0;
    }

    .collection-table thead {
        display: none;
    }

    .collection-table tbody {
        display: grid;
        gap: 12px;
    }

    .collection-table tbody tr {
        display: grid;
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 10px 12px;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #ffffff;
    }

    .collection-table.board-table th,
    .collection-table.board-table td {
        display: block;
        padding: 0 !important;
        border: 0;
        white-space: normal;
    }

    .collection-table .product-check-column {
        grid-column: 1;
        grid-row: 1;
        width: 32px;
        min-width: 0;
        max-width: none;
        padding-top: 4px !important;
        text-align: left;
    }

    .collection-table .product-number-column {
        grid-column: 1;
        grid-row: 2;
        width: 32px;
        min-width: 0;
        max-width: none;
        padding-top: 4px !important;
        color: var(--muted);
        font-size: 13px;
        text-align: left;
    }

    .collection-table tbody td:nth-child(3) {
        grid-column: 2;
        grid-row: 1 / span 2;
        display: block;
        min-width: 0;
    }

    .collection-table tbody td:nth-child(3)::before {
        display: none;
        content: none;
    }

    .collection-table .product-cell {
        align-items: flex-start;
        gap: 10px;
        min-width: 0;
    }

    .collection-table .product-cell img,
    .collection-table .product-image-placeholder {
        flex: 0 0 52px;
        width: 52px;
        height: 52px;
    }

    .collection-table .product-cell > div {
        min-width: 0;
    }

    .collection-table .product-title-link {
        display: -webkit-box;
        overflow: hidden;
        max-width: 100%;
        white-space: normal;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .collection-table .product-cell small {
        display: block;
        overflow: hidden;
        max-width: 100%;
        color: var(--muted);
        font-size: 12px;
        font-weight: 800;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .collection-table tbody td:nth-child(4),
    .collection-table tbody td:nth-child(5),
    .collection-table tbody td:nth-child(6),
    .collection-table tbody td:nth-child(7),
    .collection-table tbody td:nth-child(8) {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 8px;
        align-items: start;
        color: var(--ink);
        font-size: 13px;
        font-weight: 800;
    }

    .collection-table tbody td:nth-child(4) {
        grid-row: 3;
    }

    .collection-table tbody td:nth-child(5) {
        grid-row: 4;
    }

    .collection-table tbody td:nth-child(6) {
        grid-row: 5;
    }

    .collection-table tbody td:nth-child(7) {
        grid-row: 6;
    }

    .collection-table tbody td:nth-child(8) {
        grid-row: 7;
    }

    .collection-table tbody td:nth-child(4)::before {
        content: "판매가";
    }

    .collection-table tbody td:nth-child(5)::before {
        content: "매입가(KRW)";
    }

    .collection-table tbody td:nth-child(6)::before {
        content: "무게";
    }

    .collection-table tbody td:nth-child(7)::before {
        content: "마진계산";
    }

    .collection-table tbody td:nth-child(8)::before {
        content: "마켓생성";
    }

    .collection-table tbody td:nth-child(4)::before,
    .collection-table tbody td:nth-child(5)::before,
    .collection-table tbody td:nth-child(6)::before,
    .collection-table tbody td:nth-child(7)::before,
    .collection-table tbody td:nth-child(8)::before {
        color: var(--muted);
        font-size: 12px;
        font-weight: 900;
    }

    .collection-table .collection-purchase-cell {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        min-width: 0;
    }

    .collection-table .collection-inline-form {
        grid-template-columns: minmax(0, 1fr) 38px 38px;
        gap: 6px;
    }

    .collection-table .collection-inline-input {
        height: 38px;
        min-height: 38px;
    }

    .collection-table .collection-inline-save-button,
    .collection-table .collection-inline-cancel-button,
    .collection-table .collection-inline-edit-button,
    .collection-table .collection-margin-button {
        justify-content: center;
        width: 38px;
        min-width: 38px;
        height: 38px;
        max-width: 100%;
    }

    .collection-table .collection-inline-edit-button {
        flex-basis: 38px;
    }

    .collection-table .collection-market-badges {
        justify-content: flex-start;
    }

    .collection-table .collection-copy-cell {
        grid-column: 1 / -1;
        grid-row: 7;
        display: block;
        width: auto;
        max-width: none;
        min-width: 0;
        padding-top: 10px !important;
        border-top: 1px solid var(--line);
        text-align: left;
    }

    .collection-table.product-table tbody td.collection-copy-cell::before {
        display: block;
        margin-bottom: 6px;
        color: var(--muted);
        content: "마켓생성";
        font-size: 12px;
        font-weight: 900;
    }

    .collection-table .collection-create-button {
        width: 30px;
        min-width: 30px;
        height: 28px;
        min-height: 28px;
    }

    .collection-table .collection-delete-cell {
        grid-column: 1 / -1;
        grid-row: 8;
        display: block;
        width: auto;
        min-width: 0;
        padding-top: 2px !important;
        text-align: left;
    }

    .collection-table .collection-delete-cell form {
        justify-content: flex-start;
        width: 100%;
    }

    .collection-table .collection-row-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .collection-table .collection-row-actions form {
        width: auto;
    }

    .collection-table .collection-delete-button {
        width: 30px;
        min-width: 30px;
        height: 30px;
        min-height: 30px;
    }
}

/* Compact paid-service UI baseline */
button,
.btn {
    min-height: var(--control-height);
    padding: 5px 10px;
    border-radius: var(--control-radius);
    font-size: 12px;
    line-height: 1.25;
}

.btn-sm {
    min-height: var(--control-height-sm);
    padding: 4px 7px;
    border-radius: 6px;
    font-size: 11px;
}

input,
select,
.form-control,
.form-select,
.input-group-text {
    min-height: var(--control-height);
    border-radius: var(--control-radius);
    font-size: 13px;
}

input,
select,
.form-control,
.form-select {
    padding-top: 5px;
    padding-bottom: 5px;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]),
select,
.form-control:not(textarea),
.form-select {
    height: var(--control-height);
}

textarea,
textarea.form-control {
    height: auto;
    min-height: 88px;
}

input[type="checkbox"],
input[type="radio"],
.form-check-input,
.product-check-column .form-check-input,
.marketing-product-check .form-check-input {
    width: 16px;
    min-width: 16px;
    height: 16px;
    min-height: 16px;
    padding: 0;
    border-radius: 4px;
}

input[type="radio"],
.form-check-input[type="radio"] {
    border-radius: 50%;
}

.input-group-text {
    padding: 5px 10px;
}

.product-list-filter-form .product-list-search-group .input-group-text,
.product-list-filter-form .product-list-search-group .form-control,
.product-list-filter-form .product-category-layer-toggle,
.product-list-filter-form .product-market-brand-filter .market-search-dropdown-toggle {
    height: 34px;
    min-height: 34px;
}

.product-list-filter-form .product-list-search-button,
.product-list-filter-form .product-list-filter-actions .btn,
.list-toolbar .btn-sm {
    height: 32px;
    min-height: 32px;
}

.list-toolbar .list-sort-form .form-select,
.list-toolbar .list-per-page-form .form-select {
    height: 32px;
    min-height: 32px;
}

.list-toolbar .product-bulk-delete-button {
    height: 30px;
    min-height: 30px;
    padding: 4px 8px;
    border-radius: 7px;
    font-size: 12px;
    line-height: 1;
}

.list-toolbar .product-bulk-delete-button i {
    font-size: 12px;
}

.list-toolbar .collection-bulk-create-button,
.list-toolbar .product-bulk-market-link-button {
    height: 30px;
    min-height: 30px;
    padding: 4px 9px;
    border-radius: 7px;
    font-size: 12px;
    line-height: 1;
}

.list-toolbar .collection-bulk-create-button i,
.list-toolbar .product-bulk-market-link-button i {
    font-size: 12px;
}

.collection-bulk-modal .modal-subtitle {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.collection-bulk-progress-bar {
    width: 100%;
    height: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    border-radius: 999px;
    background: #edf2fb;
}

.collection-bulk-progress-bar span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), #4f7cff);
    transition: width 0.2s ease;
}

.collection-bulk-progress-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: min(420px, 52vh);
    overflow-y: auto;
    padding-right: 4px;
}

.collection-bulk-progress-item {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 44px;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.collection-bulk-progress-title {
    min-width: 0;
    overflow: hidden;
    color: var(--text);
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.collection-bulk-progress-message {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.collection-bulk-progress-item.is-running .collection-bulk-progress-icon,
.collection-bulk-progress-item.is-pending .collection-bulk-progress-icon {
    color: var(--primary);
}

.collection-bulk-progress-item.is-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.collection-bulk-progress-item.is-success .collection-bulk-progress-icon,
.collection-bulk-progress-item.is-success .collection-bulk-progress-message {
    color: #16a34a;
}

.collection-bulk-progress-item.is-danger {
    border-color: #fecdd3;
    background: #fff1f2;
}

.collection-bulk-progress-item.is-danger .collection-bulk-progress-icon,
.collection-bulk-progress-item.is-danger .collection-bulk-progress-message {
    color: #e11d48;
}

.body-heading {
    margin-bottom: 18px;
}

.body-heading h1,
.excel-product-page-heading h1 {
    font-size: 21px;
    font-weight: 900;
    line-height: 1.28;
    letter-spacing: 0;
}

.page-breadcrumb {
    margin-bottom: 7px;
    font-size: 11px;
}

.page-breadcrumb .breadcrumb-item,
.page-breadcrumb .breadcrumb-item a {
    font-weight: 700;
}

.modal-content {
    font-size: 13px;
}

.modal-header {
    min-height: 54px;
    padding: 12px 16px;
}

.modal-title,
.modal-header h1,
.modal-header h2,
.modal-header h3,
.modal-header h4,
.modal-header h5 {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 800;
}

.modal-body {
    padding: 14px 16px;
    font-size: 13px;
    line-height: 1.5;
}

.modal-body h1,
.modal-body h2,
.modal-body h3 {
    font-size: 17px;
    line-height: 1.35;
}

.modal-body h4,
.modal-body h5,
.modal-body h6 {
    font-size: 14px;
    line-height: 1.4;
}

.modal-footer {
    padding: 12px 16px;
}

.modal .btn-close {
    width: 30px;
    height: 30px;
    min-height: 30px;
    padding: 0;
}

.body-heading .btn,
.heading-actions .btn,
.product-heading-actions .btn,
.body-heading button,
.list-toolbar .btn,
.list-toolbar .btn-sm,
.section-heading-actions .btn,
.modal-footer .btn {
    min-height: var(--control-height);
    padding: 5px 10px;
    font-size: 12px;
}

.list-toolbar .btn.product-bulk-delete-button {
    height: 28px;
    min-height: 28px;
    padding: 3px 7px;
    border-radius: 7px;
    font-size: 11px;
    line-height: 1;
}

.list-toolbar .btn.product-bulk-delete-button i {
    margin-right: 4px !important;
    font-size: 11px;
}

.list-toolbar .btn.collection-bulk-create-button,
.list-toolbar .btn.product-bulk-market-link-button {
    height: 28px;
    min-height: 28px;
    padding: 3px 8px;
    border-radius: 7px;
    font-size: 11px;
    line-height: 1;
}

.header-admin-button,
.header-user-menu {
    min-height: var(--control-height);
    padding: 4px 8px;
    border-radius: var(--control-radius);
    font-size: 12px;
}

.header-admin-button i,
.header-user-menu i {
    font-size: 12px;
}

.header-user-avatar {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
}

.header-user-name {
    font-size: 12px;
}

.header-user-dropdown .dropdown-item,
.margin-market-menu .dropdown-item {
    min-height: 30px;
    padding: 6px 8px;
    font-size: 12px;
}

.list-search-form {
    gap: 9px;
    padding: 12px 14px;
}

.list-search-heading {
    display: none !important;
}

.list-search-form.is-collapsed .list-search-row,
.list-search-form.is-collapsed .list-search-actions {
    display: flex;
}

.list-search-label {
    font-size: 12px;
}

.market-search-dropdown-toggle {
    min-height: var(--control-height);
    padding: 5px 10px;
    border-radius: var(--control-radius);
    font-size: 13px;
}

.market-search-dropdown-toggle i {
    font-size: 11px;
}

.market-search-dropdown-input {
    height: var(--control-height);
    min-height: var(--control-height);
    margin-bottom: 6px;
    font-size: 13px;
}

.market-search-dropdown-menu {
    padding: 6px;
}

.market-search-dropdown-results {
    min-height: 160px;
    max-height: min(320px, 44vh);
}

.market-search-dropdown-results .list-group-item {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 13px;
}

.list-search-actions .btn {
    min-width: 66px;
}

.list-toolbar {
    margin: 14px 0 8px;
}

.list-per-page-form .form-select {
    min-width: 92px;
    height: var(--control-height);
    min-height: var(--control-height);
    padding-top: 5px;
    padding-bottom: 5px;
    font-size: 13px;
}

.collection-row-input,
.collection-inline-input {
    height: var(--control-height);
    min-height: var(--control-height);
    font-size: 13px;
}

.collection-row-edit-button,
.collection-row-save-button,
.collection-row-cancel-button,
.collection-inline-save-button,
.collection-inline-cancel-button,
.collection-inline-edit-button,
.collection-margin-button {
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
    padding: 0;
    border-radius: 7px;
    font-size: 12px;
}

.collection-row-save-button.btn-success {
    border-color: #059669;
    background: #059669;
    color: #ffffff;
}

.collection-row-save-button.btn-success:hover,
.collection-row-save-button.btn-success:focus-visible {
    border-color: #047857;
    background: #047857;
    color: #ffffff;
}

.collection-create-button,
.collection-delete-button,
.market-sync-icon-button {
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    border-radius: 8px;
    font-size: 12px;
}

.market-sync-product-link,
.market-sync-row-button {
    height: 30px;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 7px;
    font-size: 12px;
    line-height: 1;
}

.market-sync-product-link {
    min-width: 78px;
    width: auto;
}

.market-sync-row-button {
    min-width: 76px;
    width: auto;
}

.market-sync-row-actions,
.market-sync-product-actions {
    gap: 6px;
}

.market-sync-panel .market-sync-row-actions {
    display: flex;
    width: auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
}

.market-sync-panel .market-sync-row-actions .market-sync-row-button {
    width: auto;
    min-width: 86px;
    flex: 0 0 auto;
}

.market-sync-panel .market-sync-row-actions .market-sync-icon-button,
.market-sync-panel .market-sync-row-actions .market-sync-delete-button,
.market-sync-compact .market-sync-row-actions .market-sync-icon-button,
.market-sync-compact .market-sync-row-actions .market-sync-delete-button {
    width: 30px;
    min-width: 30px;
    max-width: 30px;
    height: 30px;
    min-height: 30px;
    flex: 0 0 30px;
}

.product-market-sync-summary .market-sync-panel .market-sync-product-link {
    min-width: 78px;
    width: auto;
}

.product-market-sync-summary .market-sync-panel .market-sync-row-actions .market-sync-row-button {
    min-width: 86px;
    max-width: 112px;
}

.product-table .market-sync-compact .market-sync-row-actions {
    grid-template-columns: minmax(0, 1fr) 30px;
    gap: 6px;
}

.product-table .market-sync-compact .market-sync-icon-button {
    width: 30px;
    min-width: 30px;
    max-width: 30px;
    height: 30px;
    min-height: 30px;
}

.product-table:not(.collection-table) {
    table-layout: fixed;
}

.product-table:not(.collection-table) .product-check-column {
    width: 42px;
    min-width: 42px;
}

.product-table:not(.collection-table) .product-number-column {
    width: 44px;
    min-width: 44px;
}

.product-table:not(.collection-table) th:nth-child(3),
.product-table:not(.collection-table) td:nth-child(3) {
    width: auto;
    min-width: 280px;
    max-width: none;
    white-space: normal;
}

.product-table:not(.collection-table) th:nth-child(4),
.product-table:not(.collection-table) td:nth-child(4) {
    width: 152px;
    min-width: 136px;
    white-space: normal;
}

.product-table:not(.collection-table) .product-brand-cell {
    vertical-align: middle;
}

.product-table:not(.collection-table) .product-brand-text {
    display: -webkit-box;
    overflow: hidden;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: keep-all;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.product-table:not(.collection-table) th:nth-child(5),
.product-table:not(.collection-table) td:nth-child(5) {
    width: 116px;
    min-width: 108px;
    white-space: nowrap;
}

.product-table:not(.collection-table) th:nth-child(6),
.product-table:not(.collection-table) td:nth-child(6) {
    width: 156px;
    min-width: 146px;
    white-space: nowrap;
}

.product-table:not(.collection-table) th:nth-child(7),
.product-table:not(.collection-table) td:nth-child(7) {
    width: 300px;
    min-width: 300px;
    max-width: 300px;
    white-space: normal;
}

.product-table:not(.collection-table) th:nth-child(8),
.product-table:not(.collection-table) td:nth-child(8) {
    width: 132px;
    min-width: 132px;
    padding-right: 16px;
    text-align: center;
    white-space: nowrap;
    overflow: visible;
}

.product-table:not(.collection-table).has-quick-edit th:nth-child(5),
.product-table:not(.collection-table).has-quick-edit td:nth-child(5) {
    width: clamp(130px, 8vw, 160px);
    min-width: 130px;
}

.product-table:not(.collection-table).has-quick-edit th:nth-child(6),
.product-table:not(.collection-table).has-quick-edit td:nth-child(6) {
    width: clamp(155px, 10vw, 190px);
    min-width: 155px;
}

.product-row-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 3px 6px;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
}

.product-table:not(.collection-table) .product-title-link {
    display: -webkit-box;
    overflow: hidden;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-row-edit-field {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 6px;
}

.product-title-edit-field {
    width: 100%;
}

.product-row-input {
    width: 100%;
    min-width: 0;
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 800;
}

.product-number-input {
    max-width: 100%;
}

.product-weight-input-group {
    display: inline-flex;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.product-weight-input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    max-width: none;
    border-right: 0;
    border-radius: 8px 0 0 8px !important;
}

.product-row-input-unit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    min-width: 28px;
    height: 30px;
    min-height: 30px;
    box-sizing: border-box;
    border: 1px solid var(--line);
    border-left: 0;
    border-radius: 0 8px 8px 0 !important;
    background: #f8fafc;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.product-purchase-input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.product-row-action-cell form {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.product-row-action-group {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.product-row-icon-button {
    display: inline-flex;
    position: relative;
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #ffffff;
    color: #64748b;
    font-size: 12px;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.product-row-icon-button[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 50%;
    bottom: -32px;
    z-index: 20;
    padding: 4px 7px;
    border-radius: 4px;
    background: rgba(17, 24, 39, 0.92);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(50%) translateY(-2px);
    transition: opacity 80ms ease, transform 80ms ease;
}

.product-row-icon-button[data-tooltip]:hover::after,
.product-row-icon-button[data-tooltip]:focus-visible::after {
    opacity: 1;
    transform: translateX(50%) translateY(0);
}

.product-row-icon-button:hover {
    border-color: #2563eb;
    color: #1d4ed8;
}

.product-row-detail-button {
    border-color: #bfdbfe;
    color: #1d4ed8;
    text-decoration: none;
}

.product-row-detail-button:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

.product-row-quick-button {
    border-color: #fde68a;
    color: #b45309;
}

.product-row-quick-button:hover {
    border-color: #f59e0b;
    background: #fffbeb;
    color: #92400e;
}

.product-margin-button {
    border-color: #2563eb;
    color: #2563eb;
}

.product-row-save-button {
    border-color: #059669;
    background: #059669;
    color: #ffffff;
}

.product-row-save-button:hover,
.product-row-save-button:focus-visible {
    border-color: #047857;
    background: #047857;
    color: #ffffff;
}

.product-margin-action-group {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.product-country-work-button {
    border-color: #93c5fd;
    color: #1d4ed8;
}

.product-country-work-button.is-active {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
}

.product-row-delete-button {
    border-color: #ff4054;
    color: #ff4054;
}

.product-market-link-cell-wrap {
    display: grid;
    position: relative;
    gap: 3px;
}

.product-market-link-cell-wrap.is-auto-listed {
    padding: 0;
}

.product-market-link-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-width: 276px;
    padding: 8px 9px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
}

.product-market-link-overview.is-linked {
    border-color: #86efac;
    background: #f0fdf4;
}

.product-market-link-overview.is-unlinked {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.product-market-link-main {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.product-market-link-status-line {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.product-market-link-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #1e3a8a;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.product-market-link-overview.is-linked .product-market-link-badge i {
    color: #16a34a;
}

.product-market-link-overview.is-unlinked .product-market-link-badge i {
    color: #94a3b8;
}

.product-market-link-error-icon {
    display: inline-flex;
    position: relative;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    border: 1px solid #fca5a5;
    border-radius: 50%;
    background: #fff1f2;
    color: #dc2626;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.12);
    font-size: 19px;
    line-height: 1;
    cursor: help;
    outline: none;
}

.product-market-link-error-icon:hover,
.product-market-link-error-icon:focus-visible {
    border-color: #ef4444;
    background: #fee2e2;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14);
}

.product-market-link-error-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 50%;
    right: calc(100% + 9px);
    left: auto;
    z-index: 25;
    width: max-content;
    max-width: 280px;
    padding: 7px 9px;
    border-radius: 5px;
    background: rgba(17, 24, 39, 0.94);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
    white-space: pre-line;
    opacity: 0;
    pointer-events: none;
    transform: translateX(2px) translateY(-50%);
    transition: opacity 120ms ease 350ms, transform 120ms ease 350ms;
}

.market-link-action-tools {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.market-link-modal-confirm.is-warning {
    border-color: #fecaca;
    background: #fff1f2;
    color: #b42318;
}

.product-market-attribute-modal .modal-dialog {
    height: calc(100vh - 40px);
    margin-top: 20px;
    margin-bottom: 20px;
}

.product-market-attribute-modal .modal-content {
    max-height: 100%;
}

.product-market-attribute-modal .modal-header,
.product-market-attribute-modal .modal-footer {
    flex: 0 0 auto;
    background: #fff;
}

.product-market-attribute-modal .modal-body {
    min-height: 0;
    overflow-y: auto;
}

.product-market-attribute-modal .modal-footer {
    position: sticky;
    bottom: 0;
    z-index: 5;
}

/* Mapping modals use the same compact control height as category/brand pickers. */
.product-market-category-modal .market-account-dropdown-trigger,
.product-market-brand-modal .market-account-dropdown-trigger,
.product-market-attribute-modal .market-account-dropdown-trigger {
    height: var(--control-height);
    min-height: var(--control-height);
    padding: 4px 10px;
    border-radius: var(--control-radius);
    font-size: 13px;
}

.product-market-link-error-icon:hover::after,
.product-market-link-error-icon:focus-visible::after {
    opacity: 1;
    transform: translateX(0) translateY(-50%);
}

.product-market-link-item {
    overflow: visible;
    max-width: none;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    overflow-wrap: anywhere;
    white-space: normal;
}

.product-publish-country-list {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-wrap: wrap;
    max-width: 100%;
}

.product-publish-label {
    color: #64748b;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.product-publish-country-pill {
    display: inline-flex;
    align-items: center;
    height: 18px;
    padding: 0 5px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

.product-auto-market-link-switch {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-self: end;
    gap: 5px;
    margin: 0;
    padding-left: 0;
    color: #475569;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    user-select: none;
}

.product-auto-market-link-switch .form-check-input {
    width: 28px;
    height: 16px;
    margin: 0;
    float: none;
    cursor: pointer;
}

.product-auto-market-link-switch .form-check-input:checked {
    border-color: #2563eb;
    background-color: #2563eb;
}

.product-auto-market-link-switch .form-check-input:disabled {
    cursor: wait;
    opacity: 0.65;
}

.product-market-link-source-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 10px;
    flex: 0 0 20px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, .14);
    position: relative;
}

.product-market-link-source-marker.is-auto {
    border-color: #93c5fd;
    background: #dbeafe;
    color: #1d4ed8;
}

.product-market-link-source-marker[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    z-index: 20;
    transform: translateX(-50%) translateY(2px);
    min-width: max-content;
    max-width: 180px;
    padding: 5px 8px;
    border-radius: 4px;
    background: rgba(31, 41, 55, .95);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .2);
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    transition: opacity .08s ease, transform .08s ease;
}

.product-market-link-source-marker[data-tooltip]:hover::after,
.product-market-link-source-marker[data-tooltip]:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.excel-product-shell {
    overflow: hidden;
    min-height: calc(100vh - 112px);
    margin: -26px;
    padding: 22px 14px 14px;
    background: var(--soft);
    color: var(--ink);
}

.excel-product-panel {
    min-width: 0;
}

.excel-product-panel > .excel-country-selector {
    margin-top: 0;
}

.excel-product-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 16px;
}

.excel-product-page-heading h1 {
    margin: 0;
    color: var(--ink);
}

.excel-product-page-heading p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.excel-product-page-heading strong {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 11px;
    border: 1px solid #c7d2fe;
    border-radius: 8px;
    background: #eff6ff;
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.excel-country-selector {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin: 0 0 12px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.excel-country-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    min-width: 148px;
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    color: #475569;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
}

.excel-country-card:hover {
    border-color: #9bb7ff;
    color: var(--accent);
}

.excel-country-card.is-active {
    border-color: #2f6bff;
    background: #eff6ff;
    color: var(--accent);
    box-shadow: 0 10px 24px rgba(37, 99, 235, .12);
}

.excel-country-flag {
    font-size: 17px;
    line-height: 1;
}

.excel-country-card small {
    margin-left: 3px;
    color: inherit;
    font-size: 11px;
}

.excel-country-card .shop-id-caption {
    display: block;
    margin-top: 2px;
    margin-left: 0;
    color: #74839a;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.1;
}

.excel-product-sheet thead th > small {
    display: block;
    margin-top: 2px;
    color: #74839a;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.15;
    white-space: nowrap;
}

.excel-product-statusbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 14px 8px;
    background: var(--soft);
}

.excel-product-statusbar span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--panel);
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.excel-product-statusbar span.is-active {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--accent-contrast);
}

.excel-product-toolbar {
    position: relative;
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 9px 9px 0 0;
    background: var(--panel);
}

.excel-product-search-panel {
    display: block;
    margin: 0 0 8px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #f8fafc;
}

.excel-product-actionbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 9px 9px 0 0;
    background: var(--panel);
}

.excel-product-toolbar-title {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 8px;
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 900;
}

.excel-product-toolbar-title strong {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    border: 1px solid #c7d2fe;
    border-radius: 7px;
    background: #eff6ff;
    color: var(--accent);
    font-size: 12px;
    white-space: nowrap;
}

.excel-product-toolbar-icon {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 7px;
    background: #eaf1ff;
    color: var(--accent);
}

.excel-product-toolbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
}

.excel-toolbar-total {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 0 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.excel-toolbar-total strong {
    margin: 0 2px 0 4px;
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 900;
}

.margin-chart-apply-guide {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
    color: #52647f;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.margin-chart-apply-guide > i {
    flex: 0 0 auto;
    color: #3468c0;
}

.margin-chart-apply-guide strong {
    color: #234b9b;
    font-weight: 900;
}

.excel-market-link-price-guide {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 9px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.excel-market-link-price-guide strong {
    color: #234b9b;
    font-weight: 900;
}

.excel-market-link-handoff-guide {
    flex: 1 1 auto;
    padding: 9px 12px;
    border: 1px solid #93c5fd;
    border-radius: 9px;
    background: linear-gradient(90deg, #eaf2ff 0%, #f8fbff 100%);
    box-shadow: inset 3px 0 0 #2563eb;
    color: #1e3a6d;
    font-size: 13px;
}

.excel-market-link-handoff-guide strong b {
    color: #1d4ed8;
    font-weight: 950;
}

.excel-market-link-price-guide-icon {
    display: inline-grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
}

.excel-product-toolbar-search {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 8px;
}

.margin-chart-brand-filter {
    flex: 0 1 240px;
    min-width: 190px;
}

.margin-chart-brand-filter > .dropdown-toggle {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    background: #fff;
    color: #334155;
    font-weight: 800;
    text-align: left;
}

.margin-chart-brand-filter > .dropdown-toggle > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.margin-chart-brand-menu {
    width: min(320px, 82vw);
    padding: 8px;
    border-color: #dbe4f0;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .14);
}

.margin-chart-brand-search {
    position: relative;
    margin-bottom: 6px;
}

.margin-chart-brand-search > i {
    position: absolute;
    top: 50%;
    left: 10px;
    z-index: 1;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 12px;
}

.margin-chart-brand-search .form-control {
    height: 34px;
    padding-left: 30px;
    font-size: 12px;
}

.margin-chart-brand-options {
    display: grid;
    max-height: 260px;
    overflow: auto;
}

.margin-chart-brand-options .dropdown-item {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 6px;
    font-size: 12px;
}

.margin-chart-brand-options .dropdown-item > span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.margin-chart-brand-options .dropdown-item > small {
    color: #94a3b8;
    font-size: 10px;
    font-weight: 800;
}

.margin-chart-brand-empty {
    padding: 10px 8px;
    color: #94a3b8;
    font-size: 11px;
    text-align: center;
}

.excel-product-search-input {
    position: relative;
    min-width: 0;
    flex: 1 1 auto;
}

.excel-product-search-input i {
    position: absolute;
    top: 50%;
    left: 12px;
    z-index: 1;
    color: #94a3b8;
    transform: translateY(-50%);
}

.excel-product-search-input .form-control {
    min-height: 34px;
    padding-left: 34px;
    border-color: var(--line);
    border-radius: 8px;
    font-size: 13px;
}

.excel-product-toolbar .btn,
.excel-product-search-panel .btn,
.excel-product-actionbar .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 38px;
    height: 34px;
    min-height: 34px;
    padding: 0 11px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 900;
}

.marketing-unified-search-panel {
    overflow: visible;
}

.excel-product-actionbar.is-marketing .excel-view-panel {
    right: auto;
    left: 8px;
}

.marketing-country-box {
    position: relative;
    margin-bottom: 10px;
    padding: 13px;
    border: 1px solid #dbe5f2;
    border-radius: 12px;
    background: linear-gradient(145deg, #f8fbff 0%, #fff 55%);
    box-shadow: 0 4px 16px rgba(30, 64, 175, .05);
    overflow: hidden;
}

.marketing-country-box-head,
.marketing-country-box-title,
.marketing-country-box-actions {
    display: flex;
    align-items: center;
}

.marketing-country-box-head {
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 11px;
}

.marketing-country-box-title {
    min-width: 0;
    gap: 9px;
}

.marketing-country-box-flag {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border: 1px solid #dbe5f2;
    border-radius: 10px;
    background: #fff;
    font-size: 20px;
}

.marketing-country-box-title > span:last-child,
.marketing-country-card-copy,
.marketing-country-card-meta,
.marketing-country-loading > span {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.marketing-country-box-title strong {
    color: #1e293b;
    font-size: 14px;
    font-weight: 950;
}

.marketing-country-box-title small {
    color: #64748b;
    font-size: 10px;
    font-weight: 750;
}

.marketing-country-box-actions {
    justify-content: flex-end;
    gap: 7px;
}

.marketing-country-box-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    gap: 6px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 900;
}

.marketing-country-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

.marketing-country-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    min-height: 58px;
    min-width: 0;
    border: 1px solid #dfe7f1;
    border-radius: 10px;
    background: #fff;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
    overflow: hidden;
}

.marketing-country-card:hover {
    border-color: #9bbcf4;
    box-shadow: 0 6px 18px rgba(37, 99, 235, .08);
    transform: translateY(-1px);
}

.marketing-country-card.is-selected {
    border-color: #3b82f6;
    background: #f7faff;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, .1);
}

.marketing-country-card-select {
    display: grid;
    grid-template-columns: auto minmax(110px, 1fr) minmax(190px, auto) auto;
    align-items: center;
    min-width: 0;
    gap: 11px;
    padding: 12px 13px;
    color: inherit;
    text-decoration: none;
}

.marketing-country-card-status {
    padding: 4px 8px;
    border-radius: 999px;
    background: #fef3c7;
    color: #b45309;
    font-size: 10px;
    font-weight: 950;
    white-space: nowrap;
}

.marketing-country-card-status.is-ongoing {
    background: #dcfce7;
    color: #15803d;
}

.marketing-country-card-status.is-expired {
    background: #f1f5f9;
    color: #64748b;
}

.marketing-country-card-copy strong {
    overflow: hidden;
    color: #1e293b;
    font-size: 13px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.marketing-country-card-copy small,
.marketing-country-card-meta small {
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
}

.marketing-country-card-meta {
    justify-items: end;
}

.marketing-country-card-meta b {
    color: #334155;
    font-size: 11px;
    font-weight: 850;
}

.marketing-country-card-choice-control {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 8px;
    border: 1px solid #93c5fd;
    border-radius: 999px;
    color: #1d4ed8;
    background: #eff6ff;
    font-size: 10px;
    font-weight: 850;
    white-space: nowrap;
    transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.marketing-country-card-choice {
    font-size: 10px;
}

.marketing-country-card-select:hover .marketing-country-card-choice-control,
.marketing-country-card-select:focus-visible .marketing-country-card-choice-control {
    border-color: #2563eb;
    color: #fff;
    background: #2563eb;
    box-shadow: 0 4px 10px rgba(37, 99, 235, .2);
    transform: translateX(2px);
}

.marketing-country-card.is-selected .marketing-country-card-choice-control {
    border-color: #60a5fa;
    color: #1d4ed8;
    background: #dbeafe;
}

.marketing-country-card-select:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: -2px;
}

.marketing-country-card-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 9px;
    border-left: 1px solid #e7edf5;
    background: #fbfdff;
}

.marketing-country-card-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 32px;
    padding: 5px 9px;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 900;
}

.marketing-list-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}

.marketing-list-pagination > span {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.marketing-list-pagination > span strong {
    color: #1d4ed8;
}

.marketing-product-manage-modal .modal-dialog {
    width: min(96vw, 1800px);
    max-width: min(96vw, 1800px);
}

.marketing-product-manage-modal .modal-content {
    min-height: min(88vh, 980px);
    overflow: hidden;
    border: 0;
    border-radius: 14px;
}

.marketing-product-manage-body {
    position: relative;
    padding: 12px;
    overflow: auto;
    background: #f5f8fc;
}

.marketing-product-manage-body .excel-product-search-panel {
    margin-top: 0;
}

.marketing-product-manage-body .excel-product-sheet-wrap {
    max-height: calc(88vh - 190px);
}

.marketing-product-manage-body [data-marketing-product-manage-panel][hidden] {
    display: none;
}

.marketing-country-empty {
    display: grid;
    grid-column: 1 / -1;
    justify-items: center;
    gap: 3px;
    padding: 20px 12px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    color: #64748b;
    text-align: center;
}

.marketing-country-empty i {
    margin-bottom: 3px;
    color: #94a3b8;
    font-size: 18px;
}

.marketing-country-empty strong {
    color: #475569;
    font-size: 12px;
}

.marketing-country-empty span {
    font-size: 10px;
    font-weight: 700;
}

.marketing-product-empty-state {
    display: grid;
    min-height: 190px;
    margin-top: 8px;
    padding: 32px 20px;
    place-content: center;
    justify-items: center;
    gap: 6px;
    border: 1px dashed #cbd8e8;
    border-radius: 12px;
    background: #fbfdff;
    color: #64748b;
    text-align: center;
}

.marketing-product-empty-state i {
    margin-bottom: 5px;
    color: #8fa5c1;
    font-size: 24px;
}

.marketing-product-empty-state strong {
    color: #334155;
    font-size: 14px;
    font-weight: 900;
}

.marketing-product-empty-state span {
    font-size: 11px;
    font-weight: 700;
}

.marketing-product-empty-state[hidden],
[data-marketing-product-results-part][hidden] {
    display: none !important;
}

.marketing-country-loading {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px;
    background: rgba(248, 251, 255, .94);
    color: #2563eb;
    text-align: left;
    backdrop-filter: blur(2px);
}

.marketing-country-loading[hidden] {
    display: none;
}

.marketing-country-loading > i {
    font-size: 20px;
}

.marketing-country-loading strong {
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 950;
}

.marketing-country-loading small {
    color: #64748b;
    font-size: 10px;
    font-weight: 750;
}

.marketing-product-list-loading {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 11px;
    min-height: 180px;
    padding: 24px;
    background: rgba(248, 251, 255, .92);
    color: #2563eb;
    text-align: left;
    backdrop-filter: blur(2px);
}

.marketing-product-list-loading[hidden] {
    display: none;
}

.marketing-product-list-loading > i {
    font-size: 22px;
}

.marketing-product-list-loading > span {
    display: grid;
    gap: 3px;
}

.marketing-product-list-loading strong {
    color: #1d4ed8;
    font-size: 14px;
    font-weight: 950;
}

.marketing-product-list-loading small {
    color: #64748b;
    font-size: 11px;
    font-weight: 750;
}

.marketing-price-row-apply-button {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    padding: 0;
    border: 1px solid #2563eb;
    border-radius: 8px;
    background: linear-gradient(180deg, #3b82f6, #1d4ed8);
    color: #fff;
    box-shadow: 0 4px 10px rgba(37, 99, 235, .18);
}

.marketing-price-action-column {
    box-sizing: border-box;
    width: 52px;
    min-width: 52px;
    max-width: 52px;
    text-align: center;
}

td.marketing-price-action-column {
    padding: 0 9px;
}

.marketing-price-result-column {
    box-sizing: border-box;
    width: 52px;
    min-width: 52px;
    max-width: 52px;
    padding: 0 5px;
    text-align: center;
}

.marketing-price-failure-indicator {
    position: relative;
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid #fecaca;
    border-radius: 999px;
    background: #fff1f2;
    color: #dc2626;
    font-size: 14px;
    cursor: help;
}

.marketing-price-failure-indicator[hidden] {
    display: none;
}

.marketing-price-failure-indicator::after {
    position: absolute;
    z-index: 1200;
    right: -8px;
    bottom: calc(100% + 8px);
    width: max-content;
    max-width: 360px;
    padding: 8px 10px;
    border-radius: 7px;
    background: rgba(30, 41, 59, .97);
    color: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .24);
    content: attr(data-tooltip);
    font-size: 11px;
    font-weight: 750;
    line-height: 1.45;
    text-align: left;
    white-space: pre-wrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(3px);
    transition: opacity .12s ease, transform .12s ease, visibility .12s ease;
}

.marketing-price-failure-indicator:hover::after,
.marketing-price-failure-indicator:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.marketing-price-failure-indicator:focus-visible {
    outline: 2px solid rgba(220, 38, 38, .3);
    outline-offset: 2px;
}

.marketing-price-row-apply-button:hover:not(:disabled) {
    background: linear-gradient(180deg, #2563eb, #1e40af);
}

.marketing-price-row-apply-button:disabled {
    border-color: #cbd5e1;
    background: #e2e8f0;
    color: #94a3b8;
    box-shadow: none;
}

.marketing-price-delete-column {
    box-sizing: border-box;
    width: 52px;
    min-width: 52px;
    max-width: 52px;
    padding: 0 9px;
    text-align: center;
}

.marketing-price-row-delete-button {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    padding: 0;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fff7f7;
    color: #dc2626;
    transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.marketing-price-row-delete-button:hover:not(:disabled) {
    border-color: #ef4444;
    background: #fee2e2;
    color: #b91c1c;
}

.marketing-price-row-delete-button:disabled {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #94a3b8;
}

.excel-product-sheet tr.is-marketing-price-applying > td {
    background: #eff6ff !important;
}

.excel-product-sheet tr.is-marketing-price-applying .excel-cell-input,
.excel-product-sheet tr.is-marketing-price-applying .excel-product-thumbnail {
    opacity: .28;
}

.excel-product-sheet tr.is-marketing-price-applying .marketing-price-row-apply-button:disabled {
    border-color: #2563eb;
    background: linear-gradient(180deg, #3b82f6, #1d4ed8);
    color: #fff;
}

.excel-product-sheet tr.is-marketing-item-deleting > td {
    background: #fff1f2 !important;
}

.excel-product-sheet tr.is-marketing-item-deleting .excel-cell-input,
.excel-product-sheet tr.is-marketing-item-deleting .excel-product-thumbnail {
    opacity: .35;
}

.excel-product-sheet tr.is-marketing-item-deleting .marketing-price-row-delete-button:disabled {
    border-color: #ef4444;
    background: #fee2e2;
    color: #b91c1c;
}

.marketing-product-row-loading {
    position: absolute;
    z-index: 4;
    display: flex;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    overflow: hidden;
    border-top: 1px solid rgba(59, 130, 246, .45);
    border-bottom: 1px solid rgba(59, 130, 246, .45);
    background: rgba(219, 234, 254, .72);
    box-shadow: inset 0 0 0 1px rgba(147, 197, 253, .22);
    backdrop-filter: blur(1px);
    pointer-events: auto;
}

.marketing-product-row-loading[hidden] {
    display: none;
}

.marketing-product-row-loading::before {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .62), transparent);
    content: '';
    transform: translateX(-100%);
    animation: marketing-row-loading-sweep 1.4s ease-in-out infinite;
}

.marketing-product-row-loading > span {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 26px;
    padding: 4px 12px;
    border: 1px solid #60a5fa;
    border-radius: 999px;
    background: #ffffff;
    color: #1d4ed8;
    box-shadow: 0 5px 14px rgba(37, 99, 235, .2);
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

@keyframes marketing-row-loading-sweep {
    55%, 100% { transform: translateX(100%); }
}

.marketing-product-search {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) auto;
    align-items: end;
    gap: 8px;
}

.marketing-product-search-field {
    display: grid;
    min-width: 0;
    gap: 5px;
    margin: 0;
}

.marketing-product-search-field > span {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
}

.marketing-product-search .form-control,
.marketing-product-search-submit {
    height: 34px !important;
    min-height: 34px !important;
}

.marketing-product-search-submit {
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    padding: 0 !important;
}

.marketing-edit-fields,
.marketing-edit-fields label {
    display: grid;
    gap: 6px;
}

.marketing-edit-fields label > span {
    color: #475569;
    font-size: 12px;
    font-weight: 900;
}

.marketing-edit-period-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.marketing-edit-guide {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 2px 0 0;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
}

.marketing-duplicate-body,
.marketing-duplicate-content,
.marketing-duplicate-content > label {
    display: grid;
    gap: 12px;
}

.marketing-duplicate-content > label {
    gap: 6px;
}

.marketing-duplicate-content label > span {
    color: #475569;
    font-size: 12px;
    font-weight: 900;
}

.marketing-duplicate-loading {
    display: flex;
    min-height: 150px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #4265a3;
    font-size: 12px;
    font-weight: 850;
}

.marketing-duplicate-guide {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid #cfe0fb;
    border-radius: 10px;
    color: #31548e;
    background: #f6f9ff;
}

.marketing-duplicate-period-alert,
.marketing-duplicate-conflict-alert {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 14px;
    border: 1px solid;
    border-left-width: 4px;
    border-radius: 10px;
}

.marketing-duplicate-period-alert {
    border-color: #f5c451;
    border-left-color: #e59a00;
    background: #fff9e9;
    color: #9a6200;
}

.marketing-duplicate-conflict-alert {
    border-color: #f4b9b9;
    border-left-color: #dc3e45;
    background: #fff6f6;
    color: #bd3038;
}

.marketing-duplicate-guide > i,
.marketing-duplicate-period-alert > i,
.marketing-duplicate-conflict-alert > i {
    margin-top: 3px;
    font-size: 15px;
}

.marketing-duplicate-guide > i {
    color: #2f67c7;
}

.marketing-duplicate-guide > span,
.marketing-duplicate-period-alert > span,
.marketing-duplicate-conflict-alert > span {
    display: grid;
    gap: 4px;
}

.marketing-duplicate-guide strong,
.marketing-duplicate-period-alert strong,
.marketing-duplicate-conflict-alert strong {
    color: #243d6d;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.45;
}

.marketing-duplicate-period-alert strong {
    color: #7e5000;
}

.marketing-duplicate-conflict-alert strong {
    color: #a5252d;
}

.marketing-duplicate-guide small,
.marketing-duplicate-period-alert small,
.marketing-duplicate-conflict-alert small {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.55;
}

.marketing-duplicate-period-alert small {
    color: #7d6536;
}

.marketing-duplicate-conflict-alert small {
    color: #80545a;
}

.marketing-sync-state {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 9px;
    color: #15803d;
    font-size: 11px;
    font-weight: 800;
}

.marketing-sync-state.is-empty {
    color: #9a6700;
}

.marketing-item-sync-warning {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 8px;
    padding: 11px 13px;
    border: 1px solid #fbbf24;
    border-radius: 9px;
    background: #fffbeb;
    color: #713f12;
}

.marketing-item-sync-warning-icon {
    display: inline-grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border-radius: 8px;
    background: #fef3c7;
    color: #d97706;
}

.marketing-item-sync-warning strong,
.marketing-item-sync-warning p,
.marketing-item-sync-warning small {
    display: block;
}

.marketing-item-sync-warning strong {
    margin-bottom: 2px;
    font-size: 12px;
    font-weight: 900;
}

.marketing-item-sync-warning p {
    margin: 0;
    font-size: 11px;
    font-weight: 750;
}

.marketing-item-sync-warning small {
    margin-top: 4px;
    color: #92400e;
    font-size: 10px;
    overflow-wrap: anywhere;
}

.excel-product-sheet tr.is-marketing-remote-only > td {
    border-top-color: #f2c66d;
    border-bottom-color: #f2c66d;
    background: #fffbeb;
}

.marketing-remote-product-message {
    min-width: 520px;
    padding: 8px 14px !important;
    color: #854d0e;
}

.marketing-remote-product-message > span:last-child {
    display: inline-grid;
    gap: 2px;
    vertical-align: middle;
}

.marketing-remote-product-message-icon {
    display: inline-grid;
    width: 30px;
    height: 30px;
    margin-right: 8px;
    place-items: center;
    border-radius: 8px;
    background: #fef3c7;
    color: #d97706;
    vertical-align: middle;
}

.marketing-remote-product-message strong {
    font-size: 12px;
    font-weight: 950;
}

.marketing-remote-product-message small {
    color: #92400e;
    font-size: 10px;
    font-weight: 750;
}

.marketing-remote-country-cell {
    background: #fffdf5 !important;
}

.marketing-remote-country-cell .excel-cell-input:disabled {
    border-color: #ead8ad;
    background: #f8f3e8;
    color: #8a7653;
    opacity: 1;
}

.marketing-unified-search {
    display: grid;
    grid-template-columns: 150px minmax(320px, 1fr) auto;
    align-items: end;
    gap: 10px;
    min-width: 0;
}

.marketing-unified-search.is-marketing-mode {
    grid-template-columns: 150px minmax(320px, 1fr);
}

.marketing-unified-search-type,
.marketing-search-condition {
    display: grid;
    min-width: 0;
    gap: 5px;
    margin: 0;
}

.marketing-unified-search-type > span,
.marketing-search-condition-label {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
}

.marketing-unified-search .form-select,
.marketing-search-dropdown-trigger {
    min-height: 42px;
    border-color: #cbd5e1;
    border-radius: 8px;
    background-color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.marketing-search-dropdown {
    position: relative;
    min-width: 0;
}

.marketing-search-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
    padding: 8px 12px;
    color: #334155;
    text-align: left;
}

.marketing-search-dropdown-trigger > span {
    overflow: hidden;
    min-width: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.marketing-search-dropdown-trigger > i {
    flex: 0 0 auto;
    color: #94a3b8;
    transition: transform .16s ease;
}

.marketing-search-dropdown-trigger:hover,
.marketing-search-dropdown-trigger:focus-visible {
    border-color: #93b4f5;
    color: #1e3a6d;
    background: #f7faff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .1);
    outline: 0;
}

.marketing-search-dropdown-trigger:hover > i,
.marketing-search-dropdown-trigger:focus-visible > i {
    color: #3b6fc4;
}

.marketing-search-dropdown-trigger[aria-expanded="true"] {
    border-color: #3b82f6;
    color: #1e3a6d;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
}

.marketing-search-dropdown-trigger[aria-expanded="true"]:hover,
.marketing-search-dropdown-trigger[aria-expanded="true"]:focus-visible {
    background: #f7faff;
}

.marketing-search-dropdown-trigger[aria-expanded="true"] > i {
    transform: rotate(180deg);
}

.marketing-search-dropdown-panel {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    z-index: 50;
    min-width: 360px;
    padding: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .16);
}

.marketing-search-dropdown-input {
    position: relative;
    display: block;
    margin-bottom: 7px;
}

.marketing-search-dropdown-input > i {
    position: absolute;
    top: 50%;
    left: 11px;
    color: #94a3b8;
    transform: translateY(-50%);
}

.marketing-search-dropdown-input > input {
    width: 100%;
    min-height: 38px;
    padding: 7px 10px 7px 32px;
    border: 1px solid #d8e0ec;
    border-radius: 8px;
    outline: 0;
    font-size: 13px;
}

.marketing-search-dropdown-input > input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .1);
}

.marketing-search-dropdown-list {
    display: grid;
    max-height: 300px;
    gap: 4px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.marketing-search-dropdown-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 54px;
    gap: 12px;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #334155;
    text-align: left;
}

.marketing-search-dropdown-option:hover,
.marketing-search-dropdown-option:focus-visible,
.marketing-search-dropdown-option[aria-selected="true"] {
    background: #eff6ff;
    color: #1d4ed8;
}

.marketing-search-dropdown-option > span {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.marketing-search-dropdown-option strong,
.marketing-search-dropdown-option small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.marketing-search-dropdown-option strong {
    font-size: 13px;
    font-weight: 900;
}

.marketing-search-dropdown-option small {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.marketing-search-dropdown-option em {
    flex: 0 0 auto;
    padding: 3px 7px;
    border-radius: 999px;
    background: #fef3c7;
    color: #b45309;
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
}

.marketing-search-dropdown-option em.is-ongoing {
    background: #dcfce7;
    color: #15803d;
}

.marketing-search-dropdown-option em.is-expired {
    background: #f1f5f9;
    color: #64748b;
}

.marketing-search-dropdown-state {
    padding: 20px 10px;
    color: #64748b;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
}

.marketing-search-dropdown-state.is-error {
    color: #dc2626;
}

.marketing-unified-search .excel-product-search-input .form-control {
    min-height: 42px;
}

.marketing-unified-search-submit {
    min-width: 86px !important;
    height: 42px !important;
    min-height: 42px !important;
}

.marketing-unified-search-submit[hidden] {
    display: none;
}

.excel-product-toolbar .excel-view-button,
.excel-product-actionbar .excel-view-button {
    display: inline-flex;
    width: auto;
    min-width: 106px;
    gap: 6px;
}

.excel-toolbar-icon-button {
    width: 38px;
    padding: 0 !important;
}

.excel-product-filter {
    position: relative;
    display: grid;
    grid-template-columns: 170px minmax(320px, 1fr) 220px 42px 112px 42px;
    align-items: center;
    gap: 8px;
    margin: 0 14px 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 9px 9px 0 0;
    background: var(--panel);
}

.excel-product-option-select,
.excel-product-filter-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    min-width: 0;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: #f8fafc;
    font-size: 12px;
    font-weight: 900;
}

.excel-product-option-select strong {
    color: var(--accent);
}

.excel-product-filter-brand input,
.excel-product-filter-input input {
    min-height: 36px;
    border-color: var(--line);
    border-radius: 8px;
    font-size: 13px;
}

.excel-product-filter-brand input {
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.excel-product-filter .btn {
    display: inline-grid;
    width: 42px;
    min-width: 42px;
    height: 36px;
    min-height: 36px;
    place-items: center;
    padding: 0;
    border-radius: 8px;
}

.excel-product-filter .excel-view-button {
    display: inline-flex;
    width: auto;
    min-width: 112px;
    gap: 6px;
}

.excel-view-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 8px;
    z-index: 30;
    width: min(420px, calc(100vw - 32px));
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.excel-view-panel[hidden] {
    display: none;
}

.excel-view-panel-section + .excel-view-panel-section {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.excel-view-panel-section strong {
    display: block;
    margin-bottom: 9px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 900;
}

.excel-view-panel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
}

.excel-view-panel-grid label {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 8px;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}

.excel-view-panel-grid label.is-readonly {
    color: #94a3b8;
}

.excel-view-panel-grid input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: var(--accent);
}

.excel-product-sheet-wrap {
    position: relative;
    overflow: auto;
    height: calc(100vh - 250px);
    margin: 0 0 14px;
    border: 1px solid var(--line);
    border-radius: 0 0 9px 9px;
    background: var(--panel);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.excel-product-sheet {
    width: 100%;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    color: var(--ink);
    font-size: 12px;
}

.excel-product-sheet th,
.excel-product-sheet td {
    height: 32px;
    padding: 0;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--panel);
}

.excel-product-sheet th {
    position: sticky;
    top: 0;
    z-index: 5;
    height: 34px;
    color: var(--accent);
    background: var(--accent-soft);
    font-size: 12px;
    font-weight: 900;
    text-align: center;
}

.excel-product-sheet th[data-excel-resize-key] {
    position: sticky;
}

.excel-column-resize-handle {
    position: absolute;
    top: 0;
    right: -3px;
    z-index: 8;
    width: 7px;
    height: 100%;
    cursor: col-resize;
    touch-action: none;
}

.excel-column-resize-handle::after {
    content: "";
    position: absolute;
    top: 7px;
    right: 3px;
    width: 1px;
    height: calc(100% - 14px);
    border-radius: 999px;
    background: transparent;
}

.excel-product-sheet th:hover .excel-column-resize-handle::after,
.excel-column-resize-handle:hover::after,
.excel-column-is-resizing .excel-column-resize-handle::after {
    background: #2563eb;
}

.excel-column-is-resizing {
    cursor: col-resize !important;
    user-select: none;
}

.excel-product-sheet thead > tr:first-child > th:nth-child(1) { width: 48px; }
.excel-product-sheet thead > tr:first-child > th:nth-child(2) { width: 46px; }
.excel-product-sheet thead > tr:first-child > th:nth-child(3) { width: 104px; }
.excel-product-sheet thead > tr:first-child > th:nth-child(4) { width: 340px; }
.excel-product-sheet thead > tr:first-child > th:nth-child(5) { width: 220px; }
.excel-product-sheet thead > tr:first-child > th:nth-child(6) { width: 120px; }
.excel-product-sheet thead > tr:first-child > th:nth-child(7) { width: 130px; }
.excel-product-sheet thead > tr:first-child > th:nth-child(8) { width: 92px; }
.excel-product-sheet thead > tr:first-child > th:nth-child(9) { width: 82px; }
.excel-product-sheet thead > tr:first-child > th:nth-child(10) { width: 130px; }

.excel-product-sheet .excel-shop-group-header {
    height: 34px;
    border-left: 2px solid #9aa9bd;
    vertical-align: middle;
}

.excel-product-sheet .excel-shop-group-header strong {
    display: block;
    line-height: 1.05;
}

.margin-chart-country-heading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.margin-chart-country-heading strong {
    display: inline !important;
}

.market-country-fee-info-button {
    box-sizing: border-box;
    flex: 0 0 24px;
    display: inline-grid;
    width: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    aspect-ratio: 1;
    padding: 0 !important;
    border: 1px solid #a9c3ef;
    border-radius: 5px;
    color: #2858aa;
    background: #f5f8ff;
    font-size: .6rem;
    line-height: 1;
    place-items: center;
    margin-left: 2px;
}

.market-country-fee-info-button > i {
    display: block;
    line-height: 1;
}

.market-country-fee-info-button:hover,
.market-country-fee-info-button:focus-visible {
    border-color: #4f83e1;
    color: #17499f;
    background: #eaf1ff;
}

.market-country-fee-info-button:focus-visible {
    outline: 2px solid rgba(37, 99, 235, .25);
    outline-offset: 2px;
}

.excel-product-sheet .excel-shop-field-header {
    top: 34px;
    height: 34px;
    border-top: 1px solid var(--line);
}

.excel-product-sheet.is-margin-chart .excel-shop-group-header {
    height: 38px;
}

.excel-product-sheet.is-margin-chart .excel-shop-field-header {
    top: 38px;
}

.margin-chart-tax-heading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
}

.margin-chart-tax-badge {
    padding: 2px 4px;
    border-radius: 4px;
    color: #27604a;
    background: #dff3e9;
    font-size: .56rem;
    font-weight: 800;
    line-height: 1.15;
    cursor: help;
}

.margin-chart-tax-badge:focus-visible {
    outline: 2px solid rgba(39, 96, 74, .28);
    outline-offset: 1px;
}

.market-country-fee-info-modal .modal-dialog {
    max-width: 720px;
}

.market-country-fee-info-modal .modal-header {
    align-items: center;
}

.market-country-fee-info-eyebrow {
    display: block;
    margin-bottom: 3px;
    color: #557098;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
}

.market-country-fee-info-country {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #cbdaf3;
    border-radius: 12px;
    background: #f5f8ff;
}

.market-country-fee-info-flag {
    display: grid;
    width: 42px;
    height: 42px;
    border: 1px solid #d7e1f0;
    border-radius: 10px;
    background: #fff;
    font-size: 1.3rem;
    place-items: center;
}

.market-country-fee-info-country > div {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
}

.market-country-fee-info-country strong {
    color: #17253c;
    font-size: .96rem;
}

.market-country-fee-info-country div > span {
    color: #6b7d98;
    font-size: .76rem;
    font-weight: 700;
}

.market-country-fee-source {
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 999px;
    color: #256045;
    background: #daf2e5;
    font-size: .72rem;
    font-weight: 800;
}

.market-country-fee-source.is-common {
    color: #2858aa;
    background: #e3edff;
}

.market-country-fee-info-grid {
    display: grid;
    margin: 14px 0 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.market-country-fee-info-grid > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    min-height: 46px;
    padding: 9px 12px;
    border: 1px solid #e1e8f2;
    border-radius: 9px;
    background: #fff;
    gap: 12px;
}

.market-country-fee-info-grid dt,
.market-country-fee-info-grid dd {
    margin: 0;
}

.market-country-fee-info-grid dt {
    color: #63738b;
    font-size: .78rem;
    font-weight: 700;
}

.market-country-fee-info-grid dd {
    color: #1e4389;
    font-size: .82rem;
    font-weight: 800;
    text-align: right;
}

.market-country-fee-info-guide {
    display: flex;
    align-items: center;
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid #f2d38d;
    border-radius: 10px;
    color: #745113;
    background: #fff9e8;
    font-size: .8rem;
    gap: 9px;
}

.market-country-fee-info-empty {
    padding: 30px 16px;
    color: #74839a;
    text-align: center;
}

@media (max-width: 620px) {
    .market-country-fee-info-country {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .market-country-fee-info-grid {
        grid-template-columns: 1fr;
    }
}

.margin-chart-formula-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, .22);
}

.margin-chart-formula-modal-heading {
    display: flex;
    align-items: center;
    gap: 11px;
}

.margin-chart-formula-modal-heading > span {
    display: inline-grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 10px;
    color: #2454b8;
    background: #edf3ff;
}

.margin-chart-formula-modal-heading small {
    display: block;
    margin-bottom: 2px;
    color: #6b7d9d;
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .08em;
}

.margin-chart-formula-panel[hidden] {
    display: none !important;
}

.margin-chart-formula-country {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.margin-chart-formula-country > div {
    display: flex;
    align-items: center;
    gap: 9px;
}

.margin-chart-formula-country > div > span {
    display: inline-grid;
    min-width: 42px;
    height: 36px;
    padding: 0 8px;
    place-items: center;
    border-radius: 9px;
    color: #fff;
    background: #24499c;
    font-size: .78rem;
    font-weight: 950;
}

.margin-chart-formula-country strong,
.margin-chart-formula-country small {
    display: block;
}

.margin-chart-formula-country strong {
    color: #172033;
    font-size: .92rem;
}

.margin-chart-formula-country small {
    margin-top: 2px;
    color: #75839a;
    font-size: .7rem;
    font-weight: 750;
}

.margin-chart-formula-country em {
    padding: 5px 8px;
    border-radius: 999px;
    color: #315596;
    background: #edf3ff;
    font-size: .66rem;
    font-style: normal;
    font-weight: 850;
    white-space: nowrap;
}

.margin-chart-formula-intro {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 12px;
    padding: 11px 12px;
    border: 1px solid #cbdaf3;
    border-radius: 10px;
    color: #294d91;
    background: #f6f9ff;
}

.margin-chart-formula-intro > i {
    margin-top: 2px;
    color: #3263bf;
}

.margin-chart-formula-intro strong,
.margin-chart-formula-intro span {
    display: block;
}

.margin-chart-formula-intro strong {
    font-size: .76rem;
    font-weight: 900;
}

.margin-chart-formula-intro span {
    margin-top: 3px;
    color: #60718c;
    font-size: .69rem;
    font-weight: 700;
    line-height: 1.45;
}

.margin-chart-formula-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
    padding: 9px 10px;
    border: 1px solid #e0e7f2;
    border-radius: 10px;
    background: #f8fafc;
}

.margin-chart-formula-legend span {
    color: #68778f;
    font-size: .68rem;
    font-weight: 750;
}

.margin-chart-formula-legend span + span::before {
    margin-right: 6px;
    color: #c2ccda;
    content: "·";
}

.margin-chart-formula-legend b {
    color: #24499c;
    font-weight: 950;
}

.margin-chart-formula-grid {
    display: grid;
    gap: 9px;
}

.margin-chart-formula-card {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
    border: 1px solid #e0e7f2;
    border-radius: 11px;
    background: #fff;
}

.margin-chart-formula-card.is-primary {
    border-color: #bfd1f2;
    background: #f8fbff;
}

.margin-chart-formula-card.is-result {
    border-color: #b9ddcf;
    background: #f3fbf7;
}

.margin-chart-formula-step {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 8px;
    color: #315596;
    background: #eaf1ff;
    font-size: .63rem;
    font-weight: 950;
}

.margin-chart-formula-card.is-result .margin-chart-formula-step {
    color: #1f6a50;
    background: #dff4ea;
}

.margin-chart-formula-card strong {
    display: block;
    margin-bottom: 6px;
    color: #243149;
    font-size: .76rem;
    font-weight: 900;
}

.margin-chart-formula-card p {
    margin: 3px 0 0;
    color: #172033;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: .73rem;
    font-weight: 800;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.margin-chart-formula-card p.is-secondary {
    color: #53657f;
}

.margin-chart-formula-card.is-friendly p {
    color: #4c5e77;
    font-family: inherit;
    font-size: .72rem;
    font-weight: 750;
    line-height: 1.55;
}

.margin-chart-formula-card small {
    display: block;
    margin-top: 5px;
    color: #65748b;
    font-size: .67rem;
    line-height: 1.45;
}

.margin-chart-fee-equation {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 7px;
    color: #172033;
}

.margin-chart-fee-equation > b {
    padding-top: 3px;
    color: #24499c;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: .76rem;
}

.margin-chart-fee-equation ol {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: fee-term;
}

.margin-chart-fee-equation li {
    position: relative;
    padding-left: 14px;
    color: #34445d;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: .7rem;
    font-weight: 750;
    line-height: 1.45;
}

.margin-chart-fee-equation li::before {
    position: absolute;
    left: 0;
    color: #7491c5;
    content: "+";
    font-weight: 950;
}

.margin-chart-fee-equation li:first-child::before {
    content: "";
}

.margin-chart-formula-conditions {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #73510b;
    background: #fff9e9;
}

.margin-chart-formula-conditions strong {
    display: block;
    margin-bottom: 5px;
    font-size: .7rem;
    font-weight: 900;
}

.margin-chart-formula-conditions ul {
    display: grid;
    gap: 3px;
    margin: 0;
    padding-left: 18px;
}

.margin-chart-formula-conditions li {
    font-size: .68rem;
    font-weight: 700;
    line-height: 1.4;
}

.margin-chart-formula-details {
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid #dfe6f0;
    border-radius: 10px;
    background: #fff;
}

.margin-chart-formula-details > summary {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 12px;
    color: #53657f;
    font-size: .7rem;
    font-weight: 850;
    list-style: none;
    cursor: pointer;
}

.margin-chart-formula-details > summary::-webkit-details-marker {
    display: none;
}

.margin-chart-formula-details > summary::after {
    margin-left: auto;
    color: #8090a8;
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-size: .62rem;
    font-weight: 900;
    transition: transform .15s ease;
}

.margin-chart-formula-details[open] > summary {
    border-bottom: 1px solid #e5eaf2;
    color: #294d91;
    background: #f8faff;
}

.margin-chart-formula-details[open] > summary::after {
    transform: rotate(180deg);
}

.margin-chart-formula-details-body {
    padding: 11px 12px;
}

.margin-chart-formula-details-body .margin-chart-formula-legend {
    margin-bottom: 10px;
}

.margin-chart-formula-equations {
    display: grid;
    gap: 4px;
}

.margin-chart-formula-equations > strong {
    margin-top: 6px;
    color: #34445d;
    font-size: .7rem;
    font-weight: 900;
}

.margin-chart-formula-equations > strong:first-child {
    margin-top: 0;
}

.margin-chart-formula-equations p,
.margin-chart-formula-equations li {
    margin: 0;
    color: #52637c;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: .67rem;
    font-weight: 700;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.margin-chart-formula-equations ul {
    display: grid;
    gap: 3px;
    margin: 0;
    padding-left: 18px;
}

.margin-chart-formula-note {
    margin: 10px 0 0;
    color: #77859a;
    font-size: .66rem;
    font-weight: 700;
    line-height: 1.45;
}

.margin-chart-row-calculation-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, .22);
}

.margin-chart-row-calculation-loading {
    display: flex;
    min-height: 150px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #52637c;
    font-size: .78rem;
    font-weight: 800;
}

.margin-chart-row-calculation-product strong,
.margin-chart-row-calculation-product span {
    display: block;
}

.margin-chart-row-calculation-product strong {
    color: #172033;
    font-size: .88rem;
    font-weight: 900;
}

.margin-chart-row-calculation-product span {
    margin-top: 3px;
    color: #6c7b91;
    font-size: .7rem;
    font-weight: 750;
}

.margin-chart-row-calculation-fee-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: .69rem;
    font-weight: 750;
    line-height: 1.5;
}

.margin-chart-row-calculation-fee-notice i {
    margin-top: 3px;
    flex: 0 0 auto;
}

.margin-chart-row-calculation-basis {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 11px;
    padding: 9px 11px;
    border: 1px solid #cbdaf3;
    border-radius: 9px;
    background: #f6f9ff;
}

.margin-chart-row-calculation-basis span {
    color: #6b7a91;
    font-size: .68rem;
    font-weight: 800;
}

.margin-chart-row-calculation-basis strong {
    color: #244d9b;
    font-size: .72rem;
    font-weight: 900;
}

.margin-chart-row-calculation-steps {
    display: grid;
    gap: 7px;
    margin: 11px 0 0;
    padding: 0;
    list-style: none;
}

.margin-chart-row-calculation-steps > li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 9px;
    padding: 9px 10px;
    border: 1px solid #e1e7f0;
    border-radius: 9px;
}

.margin-chart-row-calculation-steps > li > span {
    display: inline-grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 7px;
    color: #315596;
    background: #eaf1ff;
    font-size: .6rem;
    font-weight: 950;
}

.margin-chart-row-calculation-steps strong {
    display: block;
    color: #26344b;
    font-size: .72rem;
    font-weight: 900;
}

.margin-chart-row-calculation-steps p {
    margin: 3px 0 0;
    color: #56667e;
    font-size: .68rem;
    font-weight: 700;
    line-height: 1.45;
}

.margin-chart-row-calculation-fees {
    display: grid;
    gap: 6px;
    margin: 7px 0 0;
    padding: 0;
    list-style: none;
}

.margin-chart-row-calculation-fees li {
    display: grid;
    grid-template-columns: minmax(86px, .7fr) minmax(0, 1.8fr) auto;
    gap: 8px;
    align-items: center;
    padding: 6px 8px;
    border-radius: 6px;
    background: #f7f9fc;
}

.margin-chart-row-calculation-fees strong,
.margin-chart-row-calculation-fees span,
.margin-chart-row-calculation-fees b {
    font-size: .65rem;
    line-height: 1.4;
}

.margin-chart-row-calculation-fees strong {
    color: #33445f;
    font-weight: 900;
}

.margin-chart-row-calculation-fees span {
    color: #687890;
    font-weight: 700;
}

.margin-chart-row-calculation-fees b {
    color: #234f9e;
    font-weight: 900;
    white-space: nowrap;
}

.margin-chart-row-calculation-total {
    color: #274f96 !important;
    font-weight: 900 !important;
    text-align: right;
}

[data-margin-row-calculation-margin-formula] {
    white-space: pre-line;
}

[data-margin-row-calculation-cost],
[data-margin-row-calculation-exchange],
[data-margin-row-calculation-country-formula] {
    white-space: pre-line;
}

.margin-chart-row-calculation-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 9px;
    padding: 10px 12px;
    border: 1px solid #b8ddcf;
    border-radius: 9px;
    color: #1e654d;
    background: #f2fbf7;
}

.margin-chart-row-calculation-result span {
    font-size: .7rem;
    font-weight: 850;
}

.margin-chart-row-calculation-result strong {
    font-size: .78rem;
    font-weight: 950;
}

@media (max-width: 640px) {
    .margin-chart-formula-country {
        align-items: flex-start;
        flex-direction: column;
    }

    .margin-chart-formula-legend {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .margin-chart-formula-legend span + span::before {
        display: none;
    }
}

.marketing-margin-batch-heading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.marketing-margin-batch-heading > button {
    box-sizing: border-box;
    flex: 0 0 24px;
    width: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    aspect-ratio: 1;
    padding: 0 !important;
    display: inline-grid;
    place-items: center;
    border: 1px solid #aebfe1;
    border-radius: 5px;
    color: #24499c;
    background: #edf3ff;
    font-size: .6rem;
    line-height: 1;
    cursor: pointer;
}

.marketing-margin-batch-heading > button > i {
    display: block;
    line-height: 1;
}

.marketing-margin-batch-heading > button:hover,
.marketing-margin-batch-heading > button[aria-expanded="true"] {
    border-color: #4e72c5;
    background: #dfe9ff;
}

.marketing-margin-batch-layer {
    position: fixed;
    z-index: 1085;
    width: 270px;
    padding: 13px;
    border: 1px solid #b8c8e6;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(18, 35, 70, .22);
}

.marketing-margin-batch-layer[hidden] { display: none !important; }
.marketing-margin-batch-layer::before {
    position: absolute;
    top: -6px;
    left: var(--marketing-batch-arrow-left, 50%);
    width: 11px;
    height: 11px;
    border-top: 1px solid #b8c8e6;
    border-left: 1px solid #b8c8e6;
    background: #ffffff;
    content: "";
    transform: translateX(-50%) rotate(45deg);
}

.marketing-margin-batch-layer-head,
.marketing-margin-batch-layer-head > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.marketing-margin-batch-layer-head > div { justify-content: flex-start; }
.marketing-margin-batch-layer-head strong { color: #18243a; font-size: .8rem; }
.marketing-margin-batch-layer-head small { color: #748198; font-size: .66rem; }
.marketing-margin-batch-layer-head small b { color: #24499c; }
.marketing-margin-batch-layer-head > button { width: 24px; height: 24px; padding: 0; display: inline-grid; place-items: center; border: 0; color: #748198; background: transparent; font-size: .72rem; }
.marketing-margin-batch-control { margin-top: 10px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.marketing-margin-batch-control .input-group { height: 32px; align-items: stretch; }
.marketing-margin-batch-control .form-control,
.marketing-margin-batch-control .input-group-text {
    box-sizing: border-box;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    font-size: .7rem;
    line-height: 1;
}
.marketing-margin-batch-control > .btn { height: 32px; min-height: 32px; font-size: .7rem; }
.marketing-margin-batch-control .form-control { min-width: 0; padding: 4px 7px; }
.marketing-margin-batch-control .input-group-text { padding: 4px 7px; color: #71809b; background: #f4f7fc; }
.marketing-margin-batch-control > .btn { padding: 0 13px; border-radius: 6px; }
.marketing-margin-batch-message {
    display: grid;
    min-height: 15px;
    margin-top: 7px;
    padding: 7px 8px;
    border-radius: 6px;
    color: #53627a;
    background: #f5f7fb;
    font-size: .67rem;
    line-height: 1.35;
}
.marketing-margin-batch-message strong { font-size: .7rem; font-weight: 800; }
.marketing-margin-batch-message span { margin-top: 1px; }
.marketing-margin-batch-message:empty { display: none; }
.marketing-margin-batch-message.is-error { color: #b42318; background: #fff1f1; }
.marketing-margin-batch-message.is-success { color: #087f5b; background: #eaf8f2; }

.marketing-price-apply-guide {
    position: fixed;
    z-index: 1090;
    box-sizing: border-box;
    width: 278px;
    padding: 12px 34px 12px 12px;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    border: 2px solid #2f5fc1;
    border-radius: 10px;
    color: #17336c;
    background: #f4f8ff;
    box-shadow: 0 18px 42px rgba(18, 51, 112, .28);
}
.marketing-price-apply-guide[hidden] { display: none !important; }
.marketing-price-apply-guide::before {
    position: absolute;
    top: -7px;
    left: var(--marketing-apply-guide-arrow-left, 80%);
    width: 12px;
    height: 12px;
    border-top: 2px solid #2f5fc1;
    border-left: 2px solid #2f5fc1;
    background: #f4f8ff;
    content: "";
    transform: translateX(-50%) rotate(45deg);
}
.marketing-price-apply-guide > i {
    margin-top: 1px;
    color: #ef8b00;
    font-size: 1rem;
}
.marketing-price-apply-guide > span { display: grid; gap: 3px; }
.marketing-price-apply-guide strong { font-size: .76rem; font-weight: 900; }
.marketing-price-apply-guide small { color: #53698f; font-size: .69rem; line-height: 1.35; }
.marketing-price-apply-guide small b { color: #183f91; font-weight: 900; }
.marketing-price-apply-guide > button {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 24px;
    height: 24px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    border: 0;
    color: #66758f;
    background: transparent;
}
.marketing-price-apply-button.is-guided {
    outline: 3px solid rgba(239, 139, 0, .45);
    outline-offset: 3px;
    box-shadow: 0 0 0 7px rgba(239, 139, 0, .12);
}
.excel-product-sheet tbody tr.is-margin-batch-selected > td { box-shadow: inset 0 1px rgba(47, 95, 193, .12), inset 0 -1px rgba(47, 95, 193, .12); }

.excel-product-sheet .excel-shop-field-header-row .excel-shop-field-header:first-child,
.excel-product-sheet .excel-shop-field-header-row .excel-country-margin-col {
    border-left: 2px solid #9aa9bd;
}

.excel-country-display-col { width: 90px; }
.excel-country-item-id-col { width: 132px; }
.excel-country-original-col { width: 112px; }
.excel-country-margin-col { width: 92px; }
.excel-country-input-col { width: 120px; }
.excel-country-promotion-col { width: 100px; }
.excel-country-link-status-col { width: 56px; text-align: center; }
.excel-global-price-col { width: 130px; }

.excel-country-link-status-col .excel-market-link-status-icon {
    margin: 0 auto;
}

.excel-country-promotion-col {
    text-align: center;
}

.excel-product-sheet td.excel-country-promotion-col {
    padding: 0 8px;
    vertical-align: middle;
}

.excel-promotion-price-value {
    display: block;
    min-height: 20px;
    color: #0f766e;
    font-weight: 800;
    line-height: 20px;
}

.excel-promotion-price-value:empty {
    display: none;
}

.excel-promotion-price-fetch-button {
    display: inline-grid;
    width: 26px;
    min-width: 26px;
    max-width: 26px;
    height: 26px;
    min-height: 26px;
    max-height: 26px;
    place-items: center;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    border: 1px solid #93c5fd;
    border-radius: 3px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.excel-promotion-price-fetch-button:hover,
.excel-promotion-price-fetch-button:focus-visible {
    border-color: #3b82f6;
    background: #dbeafe;
    color: #1d4ed8;
}

.excel-promotion-price-fetch-button:disabled {
    cursor: wait;
    opacity: .7;
}

.excel-country-promotion-col.is-loading .excel-promotion-price-value {
    color: #94a3b8;
}

.excel-live-price-sync-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border-top: 1px solid #bfdbfe;
    border-bottom: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
}

.excel-live-price-sync-status.is-warning { background: #fffbeb; border-color: #fde68a; color: #a16207; }
.excel-live-price-sync-status.is-error { background: #fff1f2; border-color: #fecdd3; color: #be123c; }
.excel-product-sheet-wrap.is-live-price-syncing { opacity: .58; pointer-events: none; }

.excel-product-sheet th.excel-country-margin-col,
.excel-product-sheet td.excel-country-margin-col {
    border-left: 2px solid #9aa9bd;
}

.excel-product-sheet th.excel-country-item-id-col,
.excel-product-sheet td.excel-country-item-id-col {
    border-left: 2px solid #9aa9bd;
}

.excel-product-sheet.has-published-item-id th.excel-country-margin-col,
.excel-product-sheet.has-published-item-id td.excel-country-margin-col {
    border-left-width: 1px;
    border-left-color: var(--line);
}

.excel-sort-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    min-height: 34px;
    color: inherit;
    text-decoration: none;
}

.excel-sort-link i {
    color: #94a3b8;
    font-size: 11px;
}

.excel-sort-link.is-active i {
    color: var(--accent);
}

.excel-product-sheet th.is-hidden,
.excel-product-sheet td.is-hidden {
    display: none;
}

.excel-product-sheet col.is-hidden {
    display: none;
    visibility: collapse;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
}

.excel-product-sheet th.excel-sticky-product-title,
.excel-product-sheet td.excel-sticky-product-title,
.excel-product-sheet th.excel-sticky-option-title,
.excel-product-sheet td.excel-sticky-option-title {
    position: sticky;
    background: #f8fafc;
}

.excel-product-sheet th.excel-sticky-product-title,
.excel-product-sheet td.excel-sticky-product-title {
    left: 0;
}

.excel-product-sheet th.excel-sticky-option-title,
.excel-product-sheet td.excel-sticky-option-title {
    left: var(--excel-sticky-product-title-width, 340px);
    box-shadow: 7px 0 12px -10px rgba(15, 23, 42, .65);
}

.excel-product-sheet th.excel-sticky-product-title,
.excel-product-sheet th.excel-sticky-option-title {
    z-index: 7;
    background: var(--accent-soft);
}

.excel-product-sheet td.excel-sticky-product-title,
.excel-product-sheet td.excel-sticky-option-title {
    z-index: 3;
}

.excel-product-sheet tr.is-empty td.excel-sticky-product-title,
.excel-product-sheet tr.is-empty td.excel-sticky-option-title {
    background: #ffffff;
}

.excel-row-number {
    color: var(--accent);
    background: #f3f6fb !important;
    font-weight: 900;
    text-align: center;
}

.excel-product-sheet td.is-product-group-cell {
    vertical-align: middle;
}

.excel-select-column {
    text-align: center;
}

.excel-select-column .form-check-input {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

.excel-market-link-status-column {
    position: sticky;
    left: calc(var(--excel-sticky-product-title-width, 340px) + var(--excel-sticky-option-title-width, 220px));
    z-index: 4;
    width: 56px;
    min-width: 56px;
    color: #94a3b8;
    background: #f8fafc !important;
    font-weight: 900;
    text-align: center;
}

.excel-product-sheet th.excel-market-link-status-column {
    z-index: 8;
    color: var(--accent);
    background: var(--accent-soft) !important;
}

.excel-market-link-status-icon {
    position: relative;
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    font-size: 15px;
}

.excel-market-link-tooltip-portal {
    position: fixed;
    z-index: 1080;
    width: max-content;
    max-width: min(280px, calc(100vw - 16px));
    padding: 6px 9px;
    border-radius: 6px;
    color: #fff;
    background: #172033;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .18);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
    white-space: normal;
    pointer-events: none;
}

.marketing-price-compare-summary {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 6px;
    padding: 6px 9px;
    border: 1px solid #bbf7d0;
    border-radius: 7px;
    background: #f0fdf4;
    color: #15803d;
    font-size: 11px;
    font-weight: 800;
}

.marketing-price-compare-summary.is-mismatched {
    border-color: #fecaca;
    background: #fff1f2;
    color: #dc2626;
}

.marketing-price-compare-summary strong {
    font-weight: 900;
}

.excel-country-input-col.has-marketing-price-mismatch {
    background: #fff7f7 !important;
}

.marketing-price-mismatch-indicator {
    display: inline-grid;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    margin-left: 5px;
    place-items: center;
    border: 1px solid #fecaca;
    border-radius: 50%;
    background: #fff1f2;
    color: #dc2626;
    font-size: 11px;
    cursor: help;
}

.marketing-price-mismatch-indicator:hover,
.marketing-price-mismatch-indicator:focus-visible {
    border-color: #ef4444;
    background: #fee2e2;
    outline: 0;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, .12);
}

.excel-market-link-status-column.is-linked .excel-market-link-status-icon {
    background: #e8f8f0;
    color: #15965b;
}

.excel-market-link-status-column.is-unlinked .excel-market-link-status-icon {
    background: #eef2f6;
    color: #94a3b8;
}

.excel-country-price-save-group,
.excel-basic-save-group {
    display: flex;
    align-items: center;
    width: 100%;
}

.excel-country-display-group {
    display: flex;
    align-items: center;
    width: 100%;
}

.excel-country-display-group .excel-cell-input {
    min-width: 0;
    flex: 1 1 auto;
}

.excel-country-price-save-group .excel-cell-input,
.excel-basic-save-group .excel-cell-input {
    min-width: 0;
    flex: 1 1 auto;
}

.excel-country-price-calculation-button {
    display: inline-grid;
    width: 26px;
    min-width: 26px;
    height: 26px;
    min-height: 26px;
    flex: 0 0 26px;
    margin-right: 5px;
    margin-left: 4px;
    padding: 0;
    place-items: center;
    border: 1px solid #9bb8e8;
    border-radius: 3px;
    color: #2858b2;
    background: #f3f7ff;
    font-size: 10px;
}

.excel-country-price-calculation-button:hover,
.excel-country-price-calculation-button:focus-visible {
    border-color: #3b6dcc;
    color: #173f91;
    background: #e7efff;
    outline: 0;
}

.excel-country-price-calculation-button:disabled {
    border-color: #d6deea;
    color: #a8b3c3;
    background: #f6f8fb;
    opacity: .72;
    cursor: not-allowed;
}

.excel-country-price-save-button {
    display: inline-grid;
    width: 26px;
    min-width: 26px;
    max-width: 26px;
    height: 26px;
    min-height: 26px;
    max-height: 26px;
    flex: 0 0 26px;
    aspect-ratio: 1;
    margin-right: 7px;
    margin-left: 7px;
    padding: 0;
    box-sizing: border-box;
    place-items: center;
    border: 1px solid #b8c3d2;
    border-radius: 3px;
    color: #94a3b8;
    background: #f8fafc;
    font-size: 10px;
    transition: border-color .15s ease, color .15s ease, background .15s ease, box-shadow .15s ease;
}

.excel-country-price-save-button:disabled {
    cursor: not-allowed;
    border-color: #d1d9e4;
    color: #a3afbf;
    background: #f3f6f9;
    opacity: 1;
}

.excel-country-price-save-button.is-dirty:not(:disabled) {
    border-color: #2563eb;
    color: #fff;
    background: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, .14);
    cursor: pointer;
}

.excel-country-price-save-button.is-saving,
.excel-country-price-save-button.is-saved {
    border-color: #16a34a;
    color: #fff;
    background: #16a34a;
}

.excel-country-price-save-button.is-error {
    border-color: #dc2626;
    color: #dc2626;
    background: #fff;
}

.excel-cell-input {
    width: 100%;
    height: 31px;
    min-height: 31px;
    padding: 4px 8px;
    border: 0;
    border-radius: 0;
    color: var(--ink);
    background: transparent;
    font-size: 12px;
    font-weight: 700;
    box-shadow: none;
}

.excel-cell-input:focus {
    position: relative;
    z-index: 2;
    outline: 2px solid var(--accent);
    outline-offset: -2px;
    background: var(--accent-soft);
    box-shadow: none;
}

.excel-cell-input[readonly] {
    color: #64748b;
    background: #f8fafc;
}

.excel-cell-input[readonly]:focus {
    outline: none;
    background: #f8fafc;
}

.excel-cell-input.is-saving {
    background: #eef4ff;
}

.excel-cell-input.is-loading {
    background: #eef4ff;
}

.excel-cell-input.is-saved {
    outline: 2px solid #22c55e;
    outline-offset: -2px;
}

.excel-cell-input.is-error {
    outline: 2px solid #ef4444;
    outline-offset: -2px;
}

.excel-cell-input.is-positive {
    color: #047857;
}

.excel-cell-input.is-negative {
    color: #dc2626;
}

.excel-cell-input.is-empty {
    color: #94a3b8;
}

.excel-cell-title {
    font-weight: 800;
}

.excel-product-title-cell {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 6px;
    padding-left: 8px;
}

.excel-product-title-cell .excel-cell-title {
    min-width: 0;
    flex: 1 1 auto;
}

.excel-product-name-scroll {
    display: block;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-color: #b8c6dc transparent;
    scrollbar-width: thin;
}

.excel-product-name-scroll::-webkit-scrollbar {
    height: 4px;
}

.excel-product-name-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #b8c6dc;
}

.excel-product-name-scroll > strong {
    display: block;
    width: max-content;
    min-width: 100%;
    white-space: nowrap;
}

.excel-product-name-scroll:focus-visible {
    border-radius: 3px;
    outline: 2px solid rgba(37, 99, 235, .35);
    outline-offset: 1px;
}

.excel-product-name-copy {
    display: inline-grid;
    width: 20px;
    min-width: 20px;
    max-width: 20px;
    height: 20px;
    min-height: 20px;
    max-height: 20px;
    flex: 0 0 20px;
    margin-right: 5px;
    place-items: center;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0;
    appearance: none;
    background: transparent !important;
    color: #48658f;
    box-shadow: none !important;
    font-size: 10px;
    transition: color .15s ease;
}

.excel-product-name-copy:hover,
.excel-product-name-copy:focus-visible {
    background: transparent !important;
    box-shadow: none !important;
    color: #1d4ed8;
}

.excel-product-name-copy:focus-visible {
    border-radius: 3px;
    outline: 2px solid rgba(37, 99, 235, .35);
    outline-offset: 1px;
}

.excel-product-name-copy.is-copied {
    background: transparent !important;
    color: #15803d;
}

.excel-product-title-cell.is-same-product {
    min-height: 30px;
}

.excel-product-sheet.is-margin-chart .margin-chart-product-info {
    display: grid;
    min-width: 0;
    min-height: 44px;
    flex: 1 1 0;
    overflow: hidden;
    align-content: center;
    gap: 3px;
    padding: 4px 7px;
}

.excel-product-sheet.is-margin-chart .margin-chart-product-info > small {
    overflow: hidden;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.excel-product-sheet.is-margin-chart .margin-chart-product-info > small.is-missing-sku {
    color: #dc2626;
    font-weight: 900;
}

.excel-product-sheet.is-margin-chart .margin-chart-product-info > strong {
    overflow: hidden;
    color: #1e293b;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.excel-product-sheet.is-margin-chart .margin-chart-product-info > .excel-product-name-scroll > strong {
    color: #1e293b;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
}

.excel-product-sheet.is-margin-chart .margin-chart-product-info[data-tooltip] {
    cursor: default;
}

.excel-product-sheet.is-margin-chart .margin-chart-product-info[data-tooltip]:focus-visible {
    outline: 2px solid rgba(37, 99, 235, .35);
    outline-offset: -2px;
}

.excel-product-sheet.is-discount-promotion-price .promotion-product-info {
    display: grid;
    min-width: 0;
    min-height: 44px;
    flex: 1 1 0;
    overflow: hidden;
    align-content: center;
    gap: 3px;
    padding: 4px 7px;
}

.excel-product-sheet.is-discount-promotion-price .promotion-product-info > small,
.excel-product-sheet.is-discount-promotion-price .promotion-product-info > strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.excel-product-sheet.is-discount-promotion-price .promotion-product-info > .excel-product-name-scroll > strong {
    color: #1e293b;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
}

.excel-product-sheet.is-discount-promotion-price .promotion-product-info > small {
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.15;
}

.excel-product-sheet.is-discount-promotion-price .promotion-product-info > small.is-missing-sku {
    color: #dc2626;
    font-weight: 900;
}

.excel-product-sheet.is-discount-promotion-price .promotion-product-info > strong {
    color: #1e293b;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
}

.excel-product-sheet.is-discount-promotion-price tbody tr[data-excel-row] > td {
    height: 52px;
}

.excel-product-sheet.is-discount-promotion-price tbody tr[data-excel-row] .excel-cell-input,
.excel-product-sheet.is-discount-promotion-price tbody tr[data-excel-row] .excel-basic-save-group,
.excel-product-sheet.is-discount-promotion-price tbody tr[data-excel-row] .excel-country-display-group,
.excel-product-sheet.is-discount-promotion-price tbody tr[data-excel-row] .excel-country-price-save-group {
    height: 100%;
    min-height: 51px;
}

.excel-product-sheet.is-margin-chart .excel-product-title-cell.is-same-product {
    min-height: 52px;
}

.excel-product-sheet.is-margin-chart tbody tr[data-excel-row] > td {
    height: 52px;
}

.excel-product-sheet.is-margin-chart tbody tr[data-excel-row] .excel-cell-input,
.excel-product-sheet.is-margin-chart tbody tr[data-excel-row] .excel-basic-save-group,
.excel-product-sheet.is-margin-chart tbody tr[data-excel-row] .excel-country-price-save-group {
    height: 100%;
    min-height: 51px;
}

.marketing-draft-summary {
    display: flex;
    min-height: 54px;
    align-items: center;
    gap: 10px;
    margin: 10px 0 0;
    padding: 9px 12px;
    border: 1px solid #93c5fd;
    border-radius: 10px;
    background: #eff6ff;
    color: #1e3a8a;
}

.marketing-draft-summary[hidden] {
    display: none;
}

.marketing-draft-summary-icon {
    display: inline-grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    place-items: center;
    border-radius: 9px;
    background: #dbeafe;
    color: #2563eb;
}

.marketing-draft-summary > span:nth-child(2) {
    display: grid;
    min-width: 0;
    gap: 1px;
}

.marketing-draft-summary small,
.marketing-draft-summary em {
    color: #64748b;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
}

.marketing-draft-summary strong {
    overflow: hidden;
    font-size: 13px;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.marketing-draft-summary .btn {
    margin-left: auto;
}

.marketing-draft-summary.is-completed-with-errors {
    border-color: #fbbf24;
    background: #fffbeb;
}

.marketing-create-draft-fields {
    display: grid;
    gap: 12px;
}

.marketing-create-draft-fields > label,
.marketing-create-draft-fields .marketing-edit-period-fields label {
    display: grid;
    gap: 6px;
}

.marketing-create-draft-fields label > span {
    color: #334155;
    font-size: 12px;
    font-weight: 900;
}

.marketing-create-period-action {
    display: grid;
    gap: 6px;
}

.marketing-create-period-action .btn {
    width: 100%;
    min-height: 40px;
    justify-content: center;
    font-weight: 900;
}

.marketing-create-period-action .btn.is-applied {
    border-color: #059669;
    background: #059669;
}

.marketing-create-period-action small {
    color: #64748b;
    font-size: 10px;
    font-weight: 750;
    text-align: center;
}

.marketing-create-candidate-guide {
    display: flex;
    align-items: center;
    gap: 10px;
}

.marketing-create-candidate-guide > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.marketing-product-list.is-marketing-draft .marketing-price-row-apply-button {
    display: none !important;
}

.marketing-draft-create-guide {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 7px;
    padding: 6px 11px;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    background: #fffbeb;
    color: #92400e;
    font-size: 11px;
    line-height: 1.35;
}

.marketing-draft-create-guide[hidden] {
    display: none;
}

.marketing-draft-create-guide i {
    flex: 0 0 auto;
    color: #d97706;
}

.marketing-draft-create-guide strong {
    font-weight: 900;
}

.excel-product-thumbnail {
    display: inline-grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border: 1px solid #dce3ed;
    border-radius: 5px;
    object-fit: cover;
    color: #98a6ba;
    background: #f5f7fa;
    font-size: .7rem;
}

.excel-cell-input.is-number {
    text-align: right;
}

.excel-discount-register-button,
.marketing-price-apply-button {
    min-width: 150px !important;
}

.excel-discount-modal-summary {
    margin: 0 0 12px;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
}

.excel-discount-modal-list {
    display: grid;
    gap: 8px;
    max-height: 340px;
    overflow-y: auto;
}

.excel-discount-option {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    cursor: pointer;
}

.excel-discount-option:hover {
    border-color: #9bb7ff;
    background: #eff6ff;
}

.excel-discount-option strong,
.excel-discount-option small {
    display: block;
    min-width: 0;
}

.excel-discount-option strong {
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
}

.excel-discount-option small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.excel-discount-modal-empty {
    padding: 22px 12px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: var(--muted);
    text-align: center;
    font-size: 13px;
    font-weight: 800;
}

.excel-product-sheet tr.is-empty td {
    height: 32px;
    background: #ffffff;
}

@media (max-width: 860px) {
    .excel-product-shell {
        margin: -18px -14px;
    }

    .marketing-unified-search {
        grid-template-columns: 1fr;
    }

    .marketing-unified-search.is-marketing-mode {
        grid-template-columns: 1fr;
    }

    .marketing-country-box-head {
        align-items: stretch;
        flex-direction: column;
    }

    .marketing-country-box-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .marketing-country-box-actions .btn {
        width: 100%;
        min-width: 0;
    }

    .marketing-country-list,
    .marketing-product-search,
    .marketing-edit-period-fields {
        grid-template-columns: 1fr;
    }

    .marketing-country-card {
        grid-template-columns: 1fr;
    }

    .marketing-country-card-select {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .marketing-country-card-meta {
        grid-column: 2 / -1;
        justify-items: start;
    }

    .marketing-country-card-actions {
        justify-content: flex-end;
        border-top: 1px solid #e7edf5;
        border-left: 0;
    }

    .marketing-product-search-submit {
        width: 100%;
    }

    .marketing-search-dropdown-panel {
        min-width: 0;
    }

    .marketing-unified-search-submit {
        width: 100%;
    }

    .excel-product-statusbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .marketing-market-country-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .marketing-market-account-selector {
        flex-basis: auto;
        width: 100%;
    }

    .marketing-market-account-scope {
        top: 66px;
        padding: 14px;
    }

    .excel-product-statusbar {
        overflow-x: auto;
        width: 100%;
        flex-direction: row;
    }

    .excel-product-toolbar,
    .excel-product-search-panel,
    .excel-product-actionbar {
        align-items: stretch;
        grid-template-columns: 1fr;
        margin: 10px 10px 0;
    }

    .excel-product-panel .excel-product-search-panel,
    .excel-product-panel .excel-product-actionbar {
        margin-right: 0;
        margin-left: 0;
    }

    .excel-product-actionbar {
        flex-direction: column;
    }

    .excel-market-link-price-guide {
        align-items: flex-start;
        width: 100%;
    }

    .excel-product-toolbar-title {
        width: 100%;
    }

    .excel-product-toolbar-actions {
        width: 100%;
        margin-left: 0;
    }

    .excel-product-actionbar.is-marketing .excel-product-toolbar-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 38px;
    }

    .excel-product-actionbar.is-marketing .excel-discount-register-button,
    .excel-product-actionbar.is-marketing .marketing-price-apply-button {
        grid-column: 1 / -1;
    }

    .excel-product-actionbar.is-marketing .marketing-draft-create-guide {
        grid-column: 1 / -1;
        justify-content: center;
        width: 100%;
        text-align: center;
    }

    .excel-product-actionbar.is-marketing .excel-view-button {
        width: 100%;
        white-space: nowrap;
    }

    .excel-product-toolbar-search {
        width: 100%;
    }

    .excel-product-toolbar-search.is-margin-chart-search {
        flex-wrap: wrap;
    }

    .excel-product-toolbar-search.is-margin-chart-search .margin-chart-brand-filter {
        width: 100%;
        flex-basis: 100%;
    }

    .excel-product-toolbar .excel-view-button,
    .excel-product-actionbar .excel-view-button {
        justify-content: center;
        flex: 1 1 auto;
        min-width: 0;
    }

    .excel-discount-register-button,
    .marketing-price-apply-button {
        justify-content: center;
        width: 100%;
    }

    .excel-toolbar-icon-button {
        flex: 0 0 38px;
    }

    .excel-product-filter {
        grid-template-columns: 1fr;
    }

    .excel-product-filter .btn {
        width: 100%;
    }

    .excel-product-filter .excel-view-button {
        justify-content: center;
        width: 100%;
        min-width: 0;
    }

    .excel-view-panel {
        right: 0;
        width: 100%;
    }

    .excel-product-sheet-wrap {
        height: calc(100vh - 260px);
    }
}


.product-publish-empty,
.product-market-link-placeholder {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 800;
}

.product-market-link-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.product-market-link-inline-form {
    display: inline-flex;
    margin: 0;
}

.product-market-link-icon-button,
.product-market-link-work-toggle {
    width: 30px;
    min-width: 30px;
    max-width: 30px;
    height: 28px;
    min-height: 28px;
    justify-self: end;
    justify-content: center;
    gap: 5px;
    padding: 0;
    font-size: 12px;
    font-weight: 900;
}

.product-market-link-delete-button {
    border-color: #fecaca;
    color: #ef4444;
    background: #ffffff;
}

.product-market-link-delete-button:hover,
.product-market-link-delete-button:focus,
.product-market-link-delete-button:active {
    border-color: #ef4444 !important;
    color: #ffffff !important;
    background: #ef4444 !important;
}

.product-market-link-work-toggle.is-active {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
}

.product-country-work-row td {
    padding: 2px 16px 18px;
    background: #f8fbff;
}

.product-country-work-panel {
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    background: #ffffff;
    padding: 10px 12px;
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.08);
}

.product-country-work-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.product-country-work-header-actions-only {
    justify-content: flex-end;
}

.product-country-work-title {
    font-size: 14px;
    font-weight: 900;
    color: #172033;
}

.product-country-work-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
}

.product-country-work-close-button {
    width: 32px;
    padding-inline: 0;
}

.product-country-market-link-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
    margin-bottom: 0;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
}

.product-country-market-link-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    line-height: 1.2;
}

.product-country-market-link-reason {
    color: #ef4444;
}

.product-country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(198px, 1fr));
    gap: 6px;
    padding-top: 24px;
}

.product-country-card {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    padding: 7px;
}

.product-country-card-wrap {
    position: relative;
}

.product-country-card.is-published {
    border-color: #86efac;
    background: #f0fdf4;
}

.product-country-card.is-pending {
    border-color: #93c5fd;
    background: #eff6ff;
}

.product-country-card.is-unavailable {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.product-country-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 5px;
}

.product-country-manual-price {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 22px;
    margin: 0 0 5px;
    padding-left: 0;
    color: #334155;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.15;
    cursor: pointer;
    user-select: none;
}

.product-country-manual-price .form-check-input {
    width: 28px;
    height: 16px;
    margin: 0;
    float: none;
    cursor: pointer;
}

.product-country-manual-price .form-check-input:checked {
    border-color: #2563eb;
    background-color: #2563eb;
}

[data-country-unpublished-section][hidden],
[data-country-published-section][hidden] {
    display: none !important;
}

.product-country-published-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 22px;
    margin: 0 0 5px;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.15;
}

.product-country-published-item strong {
    color: #172033;
    font-size: 11px;
    font-weight: 900;
}

[data-country-manual-section][hidden] {
    display: none !important;
}

.product-country-option-row {
    display: grid;
    gap: 2px;
    margin-bottom: 5px;
}

.product-country-option-row label {
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
}

.product-country-option-row .form-select {
    height: 28px;
    min-height: 28px;
    padding: 0 25px 0 7px;
    font-size: 11px;
    font-weight: 800;
}

.product-country-name {
    color: #172033;
    font-size: 12px;
    font-weight: 900;
}

.product-country-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 10px;
    font-weight: 900;
    white-space: nowrap;
}

.product-country-status.is-icon {
    width: 20px;
    min-width: 20px;
    padding: 0;
    background: transparent;
    font-size: 18px;
    line-height: 1;
}

.product-country-status.is-published-icon {
    color: #16a34a;
}

.product-country-status.is-waiting-icon {
    color: #64748b;
}

.product-country-status.is-pending-icon {
    gap: 5px;
    background: #dbeafe;
    color: #2563eb;
}

.product-country-card.is-published .product-country-status {
    background: #dcfce7;
    color: #15803d;
}

.product-country-card.is-published .product-country-status.is-icon {
    background: transparent;
    color: #16a34a;
}

.product-country-card.is-pending .product-country-status {
    background: #dbeafe;
    color: #1d4ed8;
}

.product-country-card.is-unavailable .product-country-status {
    background: #e2e8f0;
    color: #475569;
}

.product-country-card-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 32px;
    align-items: end;
    gap: 5px;
}

.product-country-field label {
    display: block;
    margin-bottom: 2px;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
}

.product-country-field .form-control {
    height: 28px;
    min-height: 28px;
    padding: 0 7px;
    font-size: 11px;
    font-weight: 800;
}

.product-country-result {
    display: flex;
    align-items: center;
    gap: 3px 8px;
    flex-wrap: wrap;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
}

.product-country-result strong {
    margin-left: 4px;
    color: #172033;
    font-size: 11px;
}

.product-country-result span {
    white-space: nowrap;
}

.product-country-result-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: 6px;
}

.product-country-actions {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
}

.product-country-actions .btn {
    height: 28px;
    min-height: 28px;
    padding: 0 7px;
    font-size: 11px;
    font-weight: 900;
}

.product-country-check-button {
    width: 28px;
    min-width: 28px;
    justify-self: start;
    padding-inline: 0 !important;
}

.product-country-icon-action,
.product-country-publish-button,
.product-country-delete-button {
    width: 28px;
    min-width: 28px;
    padding-inline: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.product-country-reason {
    min-height: 0;
    margin-top: 4px;
    color: #ef4444;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
}

.product-list-sync-cell {
    position: relative;
    text-align: left;
}

.product-list-sync-cell .market-sync-form-compact {
    position: relative;
    width: 100%;
    max-width: 124px;
    margin-left: auto;
}

.product-list-sync-cell .market-sync-compact {
    position: static;
}

.product-list-sync-cell .market-sync-toggle {
    width: 100%;
    height: 30px;
    min-height: 30px;
    padding: 0 9px;
    border-radius: 7px;
    font-size: 12px;
}

.product-list-sync-cell .market-sync-collapse {
    position: absolute;
    right: 0;
    top: 30px;
    z-index: 30;
    width: 180px;
    min-width: 180px;
    margin-top: 0;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
}

.product-list-sync-cell .market-sync-compact.is-single-market .market-sync-row-main {
    grid-template-columns: 24px minmax(0, 1fr);
    grid-template-areas:
        "status state"
        "link link";
}

.product-list-sync-cell .market-sync-compact .market-sync-product-actions {
    width: 100%;
    justify-self: stretch;
}

.product-list-sync-cell .market-sync-compact .market-sync-product-link {
    width: 100%;
    min-width: 0;
    height: 30px;
    min-height: 30px;
}

@media (max-width: 860px) {
    .product-table:not(.collection-table).board-table {
        display: block;
        min-width: 0;
    }

    .product-table:not(.collection-table) thead {
        display: none;
    }

    .product-table:not(.collection-table) tbody {
        display: grid;
        gap: 12px;
    }

    .product-table:not(.collection-table) tbody tr {
        display: grid;
        grid-template-columns: 28px minmax(0, 1fr);
        gap: 10px 12px;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #ffffff;
    }

    .product-table:not(.collection-table).board-table th,
    .product-table:not(.collection-table).board-table td {
        display: block;
        padding: 0 !important;
        border: 0;
        white-space: normal;
    }

    .product-table:not(.collection-table) .product-check-column {
        grid-column: 1;
        grid-row: 1;
        width: 28px;
        min-width: 0;
        max-width: none;
        padding-top: 4px !important;
        text-align: left;
    }

    .product-table:not(.collection-table) .product-number-column {
        grid-column: 1;
        grid-row: 2;
        width: 28px;
        min-width: 0;
        max-width: none;
        color: var(--muted);
        font-size: 12px;
        text-align: left;
    }

    .product-table:not(.collection-table) tbody td:nth-child(3) {
        grid-column: 2;
        grid-row: 1 / span 2;
        min-width: 0;
    }

    .product-table:not(.collection-table) tbody td:nth-child(3)::before {
        content: none;
    }

    .product-table:not(.collection-table) tbody td:nth-child(4),
    .product-table:not(.collection-table) tbody td:nth-child(5),
    .product-table:not(.collection-table) tbody td:nth-child(6),
    .product-table:not(.collection-table) tbody td:nth-child(7),
    .product-table:not(.collection-table) tbody td:nth-child(8) {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 74px minmax(0, 1fr);
        gap: 8px;
        align-items: center;
        min-width: 0;
        width: auto;
        color: var(--ink);
        font-size: 13px;
        font-weight: 800;
        white-space: normal;
    }

    .product-table:not(.collection-table) tbody td:nth-child(4) {
        grid-row: 3;
    }

    .product-table:not(.collection-table) tbody td:nth-child(4)::before {
        content: "브랜드";
    }

    .product-table:not(.collection-table) tbody td:nth-child(5) {
        grid-row: 4;
    }

    .product-table:not(.collection-table) tbody td:nth-child(5)::before {
        content: "무게";
    }

    .product-table:not(.collection-table) tbody td:nth-child(6) {
        grid-row: 5;
    }

    .product-table:not(.collection-table) tbody td:nth-child(6)::before {
        content: "매입가";
    }

    .product-table:not(.collection-table) tbody td:nth-child(7) {
        grid-row: 6;
    }

    .product-table:not(.collection-table) tbody td:nth-child(7)::before {
        content: "연동/Publish";
    }

    .product-table:not(.collection-table) tbody td:nth-child(8) {
        grid-row: 7;
    }

    .product-table:not(.collection-table) tbody td:nth-child(8)::before {
        content: "수정/삭제";
    }

    .product-table:not(.collection-table) tbody td:nth-child(4)::before,
    .product-table:not(.collection-table) tbody td:nth-child(5)::before,
    .product-table:not(.collection-table) tbody td:nth-child(6)::before,
    .product-table:not(.collection-table) tbody td:nth-child(7)::before,
    .product-table:not(.collection-table) tbody td:nth-child(8)::before {
        color: var(--muted);
        font-size: 12px;
        font-weight: 900;
    }

    .product-table:not(.collection-table) .product-cell {
        align-items: flex-start;
        gap: 10px;
        min-width: 0;
    }

    .product-table:not(.collection-table) .product-cell img,
    .product-table:not(.collection-table) .product-image-placeholder {
        flex: 0 0 52px;
        width: 52px;
        height: 52px;
    }

    .product-table:not(.collection-table) .product-market-link-overview {
        max-width: none;
    }

    .product-table:not(.collection-table) .product-row-action-group {
        justify-content: flex-start;
    }
}

@media (max-width: 680px) {
    .body-heading h1,
    .excel-product-page-heading h1 {
        font-size: 19px;
    }

    .modal-title,
    .modal-header h1,
    .modal-header h2,
    .modal-header h3,
    .modal-header h4,
    .modal-header h5 {
        font-size: 17px;
    }

    .list-search-form {
        gap: 10px;
        padding: 12px;
    }

    .list-search-form.is-collapsed .list-search-row,
    .list-search-form.is-collapsed .list-search-actions {
        display: flex;
    }

    .collection-table .collection-inline-save-button,
    .collection-table .collection-inline-cancel-button,
    .collection-table .collection-inline-edit-button,
    .collection-table .collection-margin-button {
        width: 34px;
        min-width: 34px;
        height: 34px;
        min-height: 34px;
    }

    .product-country-work-row td {
        padding: 0 10px 14px;
    }

    .product-country-work-header {
        flex-direction: column;
        align-items: stretch;
    }

    .product-country-work-actions {
        justify-content: flex-start;
    }

    .product-country-grid {
        grid-template-columns: 1fr;
    }

    .product-country-card-fields {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 32px;
    }

    .product-country-result-row {
        align-items: center;
        grid-template-columns: minmax(0, 1fr) auto;
    }
}

@media (max-width: 680px) {
    .product-table:not(.collection-table) tbody tr {
        grid-template-columns: 28px minmax(0, 1fr);
    }

    .product-table:not(.collection-table) tbody td:nth-child(3) {
        grid-column: 2;
        grid-row: 1 / span 2;
        min-width: 0;
    }

    .product-table:not(.collection-table) tbody td:nth-child(3)::before {
        content: none;
    }

    .product-table:not(.collection-table) tbody td:nth-child(4),
    .product-table:not(.collection-table) tbody td:nth-child(5),
    .product-table:not(.collection-table) tbody td:nth-child(6),
    .product-table:not(.collection-table) tbody td:nth-child(7),
    .product-table:not(.collection-table) tbody td:nth-child(8) {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 74px minmax(0, 1fr);
        gap: 8px;
        align-items: center;
        min-width: 0;
        width: auto;
        white-space: normal;
    }

    .product-table:not(.collection-table) tbody td:nth-child(4) {
        grid-row: 3;
    }

    .product-table:not(.collection-table) tbody td:nth-child(4)::before {
        content: "브랜드";
    }

    .product-table:not(.collection-table) tbody td:nth-child(5) {
        grid-row: 4;
    }

    .product-table:not(.collection-table) tbody td:nth-child(5)::before {
        content: "무게";
    }

    .product-table:not(.collection-table) tbody td:nth-child(6) {
        grid-row: 5;
    }

    .product-table:not(.collection-table) tbody td:nth-child(6)::before {
        content: "매입가";
    }

    .product-table:not(.collection-table) tbody td:nth-child(7) {
        grid-row: 6;
    }

    .product-table:not(.collection-table) tbody td:nth-child(7)::before {
        content: "연동/Publish";
    }

    .product-table:not(.collection-table) tbody td:nth-child(8) {
        grid-row: 7;
    }

    .product-table:not(.collection-table) tbody td:nth-child(8)::before {
        content: "수정/삭제";
    }

    .product-table:not(.collection-table) tbody td:nth-child(4)::before,
    .product-table:not(.collection-table) tbody td:nth-child(5)::before,
    .product-table:not(.collection-table) tbody td:nth-child(6)::before,
    .product-table:not(.collection-table) tbody td:nth-child(7)::before,
    .product-table:not(.collection-table) tbody td:nth-child(8)::before {
        color: var(--muted);
        font-size: 12px;
        font-weight: 900;
    }

    .product-table:not(.collection-table) .product-row-action-group {
        justify-content: flex-start;
    }

    .product-number-input {
        max-width: 140px;
    }

    .product-list-sync-cell .market-sync-form-compact {
        max-width: none;
        margin-left: 0;
    }

    .product-list-sync-cell .market-sync-collapse {
        position: static;
        width: 100%;
        min-width: 0;
        margin-top: 8px;
        box-shadow: none;
    }
}
/* Marketplace-neutral sourcing/market-link catalogue ---------------------------------
 * Both pages intentionally share this geometry. Provider-specific color is used
 * only inside marketLink labels, never for the page skeleton. */
.catalog-list-heading {
    min-height: 0;
    margin-bottom: 14px;
}

.catalog-list-heading h1 {
    margin: 0;
}

.catalog-list-heading > .btn {
    min-width: 132px;
    height: 38px;
}

.catalog-list-panel {
    padding: 18px;
    border-radius: 12px;
}

.catalog-list-panel .product-list-summary-grid {
    gap: 12px;
    margin: 0 0 14px;
}

.catalog-list-panel .product-list-summary-card {
    min-width: 0;
    min-height: 112px;
    padding: 14px 16px;
    border-radius: 12px;
}

.catalog-list-panel .product-list-summary-label {
    min-height: 20px;
    font-size: .78rem;
    line-height: 1.35;
}

.catalog-list-panel .product-list-summary-card > strong {
    margin-top: 4px;
    font-size: 1.45rem;
    line-height: 1.15;
}

.catalog-list-panel .product-list-summary-desc {
    margin-top: 5px;
    font-size: .77rem;
    line-height: 1.4;
}

.collection-common-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-common-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.product-common-summary.product-summary-grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-common-summary.product-summary-grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-master-list .product-common-summary .product-list-summary-card {
    min-height: 96px;
    gap: 5px;
    padding: 11px 13px 12px;
}

.product-master-list .product-common-summary .product-list-summary-card > strong {
    margin-top: 1px;
    font-size: 1.3rem;
}

.product-master-list .product-common-summary .product-list-summary-desc {
    margin-top: 2px;
    font-size: .73rem;
}

.product-master-list .product-required-summary-grid {
    gap: 4px;
}

.product-master-list .product-required-summary-item {
    min-height: 43px;
    gap: 2px;
    padding: 3px 2px;
}

.product-master-list .product-required-summary-item span {
    font-size: 9px;
}

.product-master-list .product-required-summary-item strong {
    font-size: 15px;
}

.market-link-account-toolbar {
    position: sticky;
    z-index: 29;
    top: 74px;
    display: grid;
    grid-template-columns: minmax(var(--market-account-setting-width), var(--market-account-combined-width)) auto;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    min-height: 0;
    margin-bottom: 14px;
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 7px 18px rgba(31, 55, 98, .07);
    backdrop-filter: blur(10px);
}

.market-account-selection-panel {
    position: sticky;
    z-index: 29;
    top: 74px;
    display: grid;
    grid-template-columns: minmax(var(--market-account-setting-width), var(--market-account-combined-width)) minmax(280px, 1fr);
    align-items: center;
    gap: 20px;
    min-height: 0;
    margin-bottom: 14px;
    padding: 14px 18px;
    border: 1px solid #d5dfed;
    border-radius: 12px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 7px 18px rgba(31, 55, 98, .07);
    backdrop-filter: blur(10px);
}

.market-account-selection-panel.has-actions {
    grid-template-columns: minmax(var(--market-account-setting-width), var(--market-account-combined-width)) minmax(260px, 1fr) auto;
}

.market-account-selection-form {
    width: var(--market-account-combined-width);
    max-width: 100%;
    display: grid;
    gap: 7px;
    min-width: 0;
}

.market-account-selection-heading {
    display: flex;
    align-items: center;
    min-height: 20px;
}

.market-account-selection-heading .form-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: #244f9f;
    font-size: .82rem;
    font-weight: 900;
}

.market-account-selection-panel .market-account-dropdown-trigger {
    min-height: 42px;
    padding: 7px 12px;
    border-color: #7198dc;
    color: #263957;
    background: #fbfdff;
    box-shadow:
        0 0 0 3px rgba(66, 111, 197, .1),
        0 5px 12px rgba(45, 84, 155, .06);
}

.market-account-selection-panel .market-account-dropdown-trigger:hover:not(:disabled),
.market-account-selection-panel .market-account-dropdown.is-open .market-account-dropdown-trigger {
    border-color: #5683d2;
    background: #f6f9ff;
}

.market-account-selection-panel.marketing-market-account-scope.is-account-selected.is-market-shopee .market-account-dropdown-trigger {
    border-color: #7198dc;
    color: #263957;
    background: #fbfdff;
    box-shadow:
        0 0 0 3px rgba(66, 111, 197, .1),
        0 5px 12px rgba(45, 84, 155, .06);
}

.market-account-selection-panel.marketing-market-account-scope.is-account-selected.is-market-shopee .market-account-dropdown-trigger:hover:not(:disabled),
.market-account-selection-panel.marketing-market-account-scope.is-account-selected.is-market-shopee .market-account-dropdown.is-open .market-account-dropdown-trigger {
    border-color: #5683d2;
    background: #f6f9ff;
}

.market-account-selection-panel.is-all-accounts .market-account-dropdown-trigger {
    border-color: #9ab7ef;
    background: linear-gradient(135deg, #f8fbff, #eef4ff);
}

.market-account-selection-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
}

.market-account-selection-description {
    min-width: 0;
    min-height: 48px;
    padding-left: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 1px solid #e1e8f3;
}

.market-account-selection-description-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border: 1px solid #d7e2f3;
    border-radius: 10px;
    color: #315da9;
    background: #f3f7ff;
}

.market-account-selection-description-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.market-account-selection-description-copy strong {
    color: #1d3767;
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: -.01em;
}

.market-account-selection-description-copy small {
    max-width: 760px;
    color: #62718a;
    font-size: .72rem;
    line-height: 1.55;
}

@media (max-width: 1050px) {
    .market-account-selection-panel.has-actions {
        grid-template-columns: minmax(var(--market-account-setting-width), var(--market-account-combined-width)) auto;
    }

    .market-account-selection-panel.has-actions .market-account-selection-description {
        grid-column: 1 / -1;
        grid-row: 2;
        padding: 12px 0 0;
        border-top: 1px solid #e1e8f3;
        border-left: 0;
    }
}

@media (max-width: 720px) {
    .market-account-selection-panel {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .market-account-selection-panel.has-actions {
        grid-template-columns: 1fr;
    }

    .market-account-selection-form {
        width: 100%;
    }

    .market-account-selection-description,
    .market-account-selection-panel.has-actions .market-account-selection-description {
        grid-column: auto;
        grid-row: auto;
        padding: 13px 0 0;
        border-top: 1px solid #e1e8f3;
        border-left: 0;
    }

    .market-account-selection-actions {
        justify-content: stretch;
    }

    .market-account-selection-actions .btn {
        flex: 1 1 auto;
    }
}

.market-link-account-toolbar.is-account-selected {
    border-color: #d5dfed;
}

.product-edit-layout.is-market-link-detail .product-edit-summary {
    top: 188px;
    max-height: calc(100vh - 204px);
}

.market-link-account-toolbar-select {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.market-link-account-context-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 20px;
}

.market-link-account-toolbar-select .form-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: #244f9f;
    font-size: .82rem;
    font-weight: 900;
}

.market-link-account-toolbar .market-account-dropdown-trigger {
    min-height: 42px;
    padding-top: 7px;
    padding-bottom: 7px;
}

.market-link-account-toolbar.is-account-selected .market-account-dropdown-trigger {
    border-color: #7198dc;
    background: #fbfdff;
    box-shadow:
        0 0 0 3px rgba(66, 111, 197, .1),
        0 5px 12px rgba(45, 84, 155, .06);
}

.market-link-account-toolbar.is-account-selected .market-account-dropdown-trigger:hover {
    border-color: #5683d2;
    background: #f6f9ff;
}

.market-link-account-toolbar.is-account-selected.is-market-shopee .market-account-dropdown-trigger {
    border-color: #e76536;
    background: #fff9f6;
    box-shadow:
        0 0 0 3px rgba(238, 86, 37, .14),
        0 5px 12px rgba(182, 66, 27, .08);
}

.market-link-account-toolbar.is-account-selected.is-market-shopee .market-account-dropdown-trigger:hover,
.market-link-account-toolbar.is-account-selected.is-market-shopee .market-account-dropdown.is-open .market-account-dropdown-trigger {
    border-color: #d84d1c;
    background: #fff5f0;
}

.market-link-account-toolbar.is-account-selected.is-market-lazada .market-account-dropdown-trigger {
    border-color: #7956cf;
    background: #fbf9ff;
    box-shadow:
        0 0 0 3px rgba(105, 65, 198, .14),
        0 5px 12px rgba(83, 53, 152, .08);
}

.market-link-account-toolbar.is-account-selected.is-market-lazada .market-account-dropdown-trigger:hover,
.market-link-account-toolbar.is-account-selected.is-market-lazada .market-account-dropdown.is-open .market-account-dropdown-trigger {
    border-color: #6339bd;
    background: #f7f3ff;
}

.market-link-account-toolbar.is-account-selected.is-market-qoo10 .market-account-dropdown-trigger {
    border-color: #159780;
    background: #f5fcfa;
    box-shadow:
        0 0 0 3px rgba(8, 127, 112, .14),
        0 5px 12px rgba(8, 104, 92, .08);
}

.market-link-account-toolbar.is-account-selected.is-market-qoo10 .market-account-dropdown-trigger:hover,
.market-link-account-toolbar.is-account-selected.is-market-qoo10 .market-account-dropdown.is-open .market-account-dropdown-trigger {
    border-color: #087f70;
    background: #effaf7;
}

.market-link-account-scope-note {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #50627e;
    font-size: .71rem;
    line-height: 1.4;
}

.market-link-account-scope-note i {
    color: #3569c5;
}

.market-link-account-scope-note strong {
    color: #244f9f;
    font-weight: 900;
}

.market-link-account-scope-note.is-unselected {
    color: #76849a;
}

.market-link-account-scope-note.is-unselected i {
    color: #7b8ba3;
}

.market-link-account-toolbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
}

.market-link-account-toolbar-actions > .btn {
    justify-self: end;
    width: auto;
    min-width: 0;
    min-height: 38px;
    height: 38px;
    padding: 6px 12px;
}

.market-link-catalog-list {
    animation: market-link-content-enter .24s ease-out both;
}

.is-market-account-transitioning .market-link-account-toolbar.is-loading .market-account-dropdown-trigger {
    border-color: #7fa2e5;
    background: #f5f8ff;
    pointer-events: none;
}

.is-market-account-transitioning .market-link-account-toolbar.is-loading .market-account-dropdown-chevron {
    animation: market-link-account-chevron-loading .7s linear infinite;
}

.is-market-account-transitioning .market-link-catalog-list {
    opacity: .58;
    transform: translateY(3px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

@keyframes market-link-content-enter {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes market-link-account-chevron-loading {
    to { transform: rotate(360deg); }
}

.market-link-sync-live-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 38px;
    padding: 5px 11px 5px 6px;
    border: 1px solid #c8d9ff;
    border-radius: 10px;
    background: linear-gradient(135deg, #f7faff 0%, #edf4ff 100%);
    color: #23488f;
    box-shadow: 0 7px 18px rgba(44, 94, 190, .1);
    white-space: nowrap;
}

.market-link-sync-live-status[hidden] {
    display: none;
}

.sync-worker-status-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.sync-worker-status-list[hidden] {
    display: none;
}

.sync-worker-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 4px 9px;
    border: 1px solid #c8d9f7;
    border-radius: 8px;
    background: #f5f8ff;
    color: #34517f;
    font-size: 12px;
    line-height: 1.25;
    white-space: nowrap;
}

.sync-worker-status > i {
    color: var(--accent);
}

.sync-worker-status > span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sync-worker-status strong {
    color: #193665;
    font-weight: 800;
}

.sync-worker-status small {
    max-width: 150px;
    overflow: hidden;
    color: #70809b;
    text-overflow: ellipsis;
}

.sync-worker-status em {
    padding-left: 7px;
    border-left: 1px solid #d8e3f7;
    color: #2363d3;
    font-style: normal;
    font-weight: 700;
}

.sync-worker-status em[hidden] {
    display: none;
}

.market-account-selection-actions .market-link-sync-attention {
    animation: market-link-sync-attention 1.8s ease-in-out infinite;
}

.market-account-selection-actions .market-link-sync-attention i {
    animation: market-link-sync-icon-attention 1.8s ease-in-out infinite;
}

@keyframes market-link-sync-attention {
    0%, 100% {
        border-color: #8fb0ed;
        background: #fff;
        box-shadow: 0 0 0 0 rgba(35, 99, 211, 0);
        transform: translateY(0);
    }
    45% {
        border-color: #2363d3;
        background: #f4f8ff;
        box-shadow: 0 0 0 7px rgba(35, 99, 211, .13);
        transform: translateY(-1px);
    }
}

@keyframes market-link-sync-icon-attention {
    0%, 100% { transform: translateY(0); }
    45% { transform: translateY(2px); }
}

.market-link-sync-live-icon {
    display: inline-grid;
    width: 27px;
    height: 27px;
    place-items: center;
    flex: 0 0 27px;
    border-radius: 8px;
    background: #196dff;
    color: #fff;
    font-size: .72rem;
    box-shadow: 0 4px 10px rgba(25, 109, 255, .22);
}

.market-link-sync-live-copy {
    display: flex;
    align-items: baseline;
    gap: 7px;
    font-size: .72rem;
    font-weight: 800;
}

.market-link-sync-live-copy > span {
    color: #637798;
}

.market-link-sync-live-copy strong {
    color: #174dba;
    font-size: .82rem;
    font-variant-numeric: tabular-nums;
}

.market-sync-console {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8fafc;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .05);
}

.market-sync-console-head {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 66px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    background: #ffffff;
}

.market-sync-status-icon {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 10px;
    background: rgba(var(--accent-rgb), .1);
    color: var(--accent);
    font-size: .95rem;
}

.market-sync-console[data-state="success"] .market-sync-status-icon {
    background: #ecfdf3;
    color: #027a48;
}

.market-sync-console[data-state="danger"] .market-sync-status-icon {
    background: #fff1f3;
    color: #d92d20;
}

.market-sync-status-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.market-sync-status-copy strong {
    overflow: hidden;
    color: var(--ink);
    font-size: .86rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.market-sync-status-copy small {
    overflow: hidden;
    color: #7d899a;
    font-size: .72rem;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.market-sync-counter {
    padding: 5px 9px;
    border: 1px solid #d8e0eb;
    border-radius: 999px;
    background: #ffffff;
    color: #5e6c80;
    font-size: .69rem;
    font-weight: 850;
    white-space: nowrap;
}

.market-sync-background-progress {
    padding: 14px 16px 8px;
    border-top: 1px solid #e7ebf1;
}

.market-sync-background-progress .progress {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #e9eef6;
}

.market-sync-background-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 9px;
    color: #66758a;
    font-size: .74rem;
    font-weight: 750;
}

.market-sync-stat {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    padding: 4px 8px;
    border: 1px solid #dfe6ef;
    border-radius: 999px;
    background: #fff;
    white-space: nowrap;
}

.market-sync-stat strong {
    color: #344054;
    font-variant-numeric: tabular-nums;
}

.market-sync-stat.is-success strong {
    color: #027a48;
}

.market-sync-stat.is-error strong {
    color: #d92d20;
}

.market-sync-stat.is-time {
    margin-left: auto;
    border-color: transparent;
    background: transparent;
    color: #7d899a;
}

.market-sync-background-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0 16px 14px;
    padding: 11px 12px;
    border-radius: 10px;
    background: #eef5ff;
    color: #35517a;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.5;
}

.market-sync-background-note i {
    margin-top: 2px;
    color: var(--primary);
}

.admin-product-sync-tabs {
    display: flex;
    gap: 4px;
    padding: 0 16px;
    border-bottom: 1px solid var(--line);
    background: #f8fafc;
}

.admin-product-sync-tabs button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 46px;
    padding: 0 16px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #667085;
    font-size: .82rem;
    font-weight: 800;
}

.admin-product-sync-tabs button.active {
    border-bottom-color: var(--primary);
    color: var(--primary);
}

.admin-product-sync-tabs button:focus-visible {
    outline: 2px solid rgba(var(--accent-rgb), .35);
    outline-offset: -2px;
}

.admin-product-sync-log-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.admin-product-sync-log-head > div {
    display: grid;
    gap: 3px;
}

.admin-product-sync-log-head strong {
    color: var(--ink);
    font-size: .92rem;
}

.admin-product-sync-log-head small {
    color: #7d899a;
    font-size: .72rem;
}

.admin-product-sync-log-list {
    display: grid;
    gap: 10px;
}

.admin-product-sync-log-item {
    display: grid;
    gap: 9px;
    padding: 14px 15px;
    border: 1px solid #e0e6ef;
    border-radius: 12px;
    background: #fff;
}

.admin-product-sync-log-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-product-sync-log-item-head > strong {
    overflow: hidden;
    color: #26354b;
    font-size: .85rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-product-sync-log-status {
    flex: none;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef2f7;
    color: #667085;
    font-size: .66rem;
    font-weight: 850;
}

.admin-product-sync-log-status.is-success {
    background: #ecfdf3;
    color: #027a48;
}

.admin-product-sync-log-status.is-failed {
    background: #fff1f3;
    color: #d92d20;
}

.admin-product-sync-log-status.is-running,
.admin-product-sync-log-status.is-pending {
    background: #eef5ff;
    color: #175cd3;
}

.admin-product-sync-log-meta,
.admin-product-sync-log-result {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: #748196;
    font-size: .72rem;
}

.admin-product-sync-log-meta span,
.admin-product-sync-log-result span {
    padding: 4px 7px;
    border-radius: 7px;
    background: #f5f7fa;
}

.admin-product-sync-log-meta strong,
.admin-product-sync-log-result strong {
    color: #344054;
}

.admin-product-sync-log-item time {
    color: #8a96a8;
    font-size: .69rem;
}

.admin-product-sync-log-error {
    margin: 0;
    padding: 9px 10px;
    border-radius: 8px;
    background: #fff5f6;
    color: #b42318;
    font-size: .71rem;
    line-height: 1.45;
}

.admin-product-sync-log-empty {
    display: grid;
    min-height: 180px;
    place-items: center;
    padding: 24px;
    border: 1px dashed #d8e0eb;
    border-radius: 12px;
    color: #7d899a;
    font-size: .8rem;
    font-weight: 700;
    text-align: center;
}

.admin-product-sync-log-empty.is-error {
    border-color: #f1c5ca;
    background: #fff8f8;
    color: #b42318;
}

.product-market-price-column strong,
.product-market-price-column small {
    display: block;
}

.product-market-price-column strong {
    color: #23324a;
    font-size: .86rem;
}

.product-market-price-column small {
    margin-top: 3px;
    color: #7d899a;
    font-size: .67rem;
}

.product-master-table {
    min-width: 1440px;
}

.product-master-table .product-number-column { width: 58px !important; text-align: center; }
.product-master-table .product-info-column { width: auto !important; min-width: 250px !important; }
.product-master-table .product-brand-column { width: 150px !important; min-width: 150px !important; max-width: 150px !important; }
.product-master-table .product-weight-column { width: 120px !important; min-width: 0 !important; max-width: none !important; }
.product-master-table .product-cost-column { width: 175px !important; min-width: 175px !important; max-width: 175px !important; }
.product-option-cost-edit-note {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    white-space: nowrap;
}
.product-option-cost-edit-note a {
    color: #24499a;
    font-size: .76rem;
    font-weight: 750;
    text-decoration: none;
}
.product-option-cost-edit-note a:hover { text-decoration: underline; }
.product-master-table .product-quick-edit-column { width: 120px !important; text-align: center; }
.product-master-table .product-market-link-market-column { width: 360px !important; min-width: 360px !important; max-width: 360px !important; }
.product-master-table .product-delete-column { width: 72px !important; text-align: center; }
.product-master-table .product-buy-management-column { width: 72px !important; text-align: center; }
.product-master-table .product-quick-edit-column form,
.product-master-table .product-delete-column form {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 0;
}

.required-field-indicator {
    display: inline-flex;
    position: relative;
    min-height: 25px;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border: 1px solid #f4d38b;
    border-radius: 999px;
    color: #9a5b08;
    background: #fff8e8;
    font-size: .68rem;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
    cursor: help;
}

.required-field-indicator::after {
    position: absolute;
    z-index: 1200;
    bottom: calc(100% + 7px);
    left: 50%;
    width: max-content;
    max-width: 290px;
    padding: 7px 9px;
    border-radius: 6px;
    color: #fff;
    background: rgba(28, 39, 57, .96);
    box-shadow: 0 7px 18px rgba(15, 23, 42, .18);
    content: attr(data-tooltip);
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 2px);
    transition: opacity 50ms ease, transform 50ms ease;
}

.required-field-indicator:hover::after,
.required-field-indicator:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.required-field-indicator i {
    color: #d58a12;
    font-size: .72rem;
}

.required-field-indicator:hover,
.required-field-indicator:focus-visible {
    border-color: #e9b94f;
    background: #fff3d5;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(217, 145, 24, .10);
}

.required-field-indicator.is-compact {
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
    flex: 0 0 28px;
    justify-content: center;
    padding: 0;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.required-field-indicator.is-compact i {
    color: #df7200;
    font-size: 1.15rem;
    filter: drop-shadow(0 1px 1px rgba(164, 84, 0, .18));
}

.required-field-indicator.is-compact:hover i,
.required-field-indicator.is-compact:focus-visible i {
    color: #bd5700;
}

.required-field-indicator.is-compact:hover,
.required-field-indicator.is-compact:focus-visible {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.required-field-indicator.is-compact:focus-visible {
    outline: 2px solid rgba(213, 138, 18, .45);
    outline-offset: 2px;
}

.required-field-indicator[hidden] {
    display: none !important;
}

.excel-product-sheet .excel-cell-input.is-missing-required,
.excel-product-sheet .excel-cell-input.is-missing-required[readonly] {
    color: #9a5b08;
}

.excel-product-sheet .excel-cell-input.is-missing-required::placeholder {
    color: #a66a15;
    font-weight: 850;
    opacity: 1;
}

.excel-product-sheet.is-standalone-price-page .purchase-price-required-cell.is-missing-required-field {
    box-shadow: inset 0 0 0 1px rgba(220, 38, 55, .26);
    animation: margin-chart-purchase-needed 1.45s ease-in-out infinite;
}

.excel-product-sheet.is-standalone-price-page .purchase-price-required-cell.is-missing-required-field .excel-cell-input {
    border-color: transparent;
    background: transparent;
}

.excel-product-sheet.is-standalone-price-page .purchase-price-required-cell.is-missing-required-field:focus-within {
    box-shadow: inset 0 0 0 1px rgba(220, 38, 55, .48);
    animation: none;
}

@keyframes margin-chart-purchase-needed {
    0%, 100% { box-shadow: inset 0 0 0 1px rgba(220, 38, 55, .22); }
    50% { box-shadow: inset 0 0 0 1px rgba(220, 38, 55, .68); }
}

@media (prefers-reduced-motion: reduce) {
    .excel-product-sheet.is-standalone-price-page .purchase-price-required-cell.is-missing-required-field {
        animation: none;
        box-shadow: inset 0 0 0 1px rgba(220, 38, 55, .42);
    }
}

.product-master-table.has-quick-edit {
    min-width: 1260px;
}

.product-master-table.has-quick-edit .product-quick-edit-column {
    width: 170px !important;
}

.product-master-table tr.is-editing .common-quick-number {
    display: flex;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
}

.product-master-table tr.is-editing .common-quick-number input.form-control {
    width: 1%;
    min-width: 0;
    flex: 1 1 auto;
    margin: 0;
}

.product-master-table tr.is-editing .product-weight-column,
.product-master-table tr.is-editing .product-cost-column,
.product-master-table tr.is-editing .product-quick-edit-column,
.product-master-table tr.is-editing .product-market-link-market-column,
.product-master-table tr.is-editing .product-delete-column,
.product-master-table tr.is-editing .product-buy-management-column {
    overflow: visible;
    vertical-align: middle;
}

.product-market-link-market-labels {
    display: grid;
    justify-items: stretch;
    gap: 5px;
    width: 100%;
    min-width: 0;
}

.product-market-link-market-label {
    display: inline-flex;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 5px 7px;
    border: 1px solid #dce5f2;
    border-radius: 7px;
    background: #f7f9fc;
}

.product-market-link-market-label .market-account-identity {
    width: 100%;
    min-width: 0;
    gap: 5px;
}

.product-market-link-market-label .market-account-brand.is-label {
    min-height: 20px;
    padding: 2px 5px;
    font-size: .58rem;
}

.product-market-link-market-label .market-account-configured-name {
    font-size: .68rem;
}

.product-market-link-market-empty {
    color: #98a2b3;
}

@media (max-width: 860px) {
    .product-table.product-master-table tbody .product-number-column {
        grid-column: 1;
        grid-row: 1;
    }

    .product-table.product-master-table tbody .product-info-column {
        grid-column: 2;
        grid-row: 1 / span 2;
        min-width: 0;
    }

    .product-table.product-master-table tbody .product-brand-column,
    .product-table.product-master-table tbody .product-weight-column,
    .product-table.product-master-table tbody .product-cost-column,
    .product-table.product-master-table tbody .product-quick-edit-column,
    .product-table.product-master-table tbody .product-market-link-market-column,
    .product-table.product-master-table tbody .product-delete-column,
    .product-table.product-master-table tbody .product-buy-management-column {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 8px;
        align-items: center;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        text-align: left;
        white-space: normal;
    }

    .product-table.product-master-table tbody .product-brand-column { grid-row: 3; }
    .product-table.product-master-table tbody .product-weight-column { grid-row: 4; }
    .product-table.product-master-table tbody .product-cost-column { grid-row: 5; }
    .product-table.product-master-table tbody .product-quick-edit-column { grid-row: 6; }
    .product-table.product-master-table tbody .product-market-link-market-column { grid-row: 7; }
    .product-table.product-master-table tbody .product-delete-column { grid-row: 8; }
    .product-table.product-master-table tbody .product-buy-management-column { grid-row: 9; }

    .product-table.product-master-table tbody .product-brand-column::before { content: "브랜드"; }
    .product-table.product-master-table tbody .product-weight-column::before { content: "무게"; }
    .product-table.product-master-table tbody .product-cost-column::before { content: "매입가"; }
    .product-table.product-master-table tbody .product-quick-edit-column::before { content: "빠른수정"; }
    .product-table.product-master-table tbody .product-market-link-market-column::before { content: "연동마켓"; }
    .product-table.product-master-table tbody .product-delete-column::before { content: "삭제"; }
    .product-table.product-master-table tbody .product-buy-management-column::before { content: "구매관리"; }

    .product-table.product-master-table tbody .product-brand-column::before,
    .product-table.product-master-table tbody .product-weight-column::before,
    .product-table.product-master-table tbody .product-cost-column::before,
    .product-table.product-master-table tbody .product-quick-edit-column::before,
    .product-table.product-master-table tbody .product-market-link-market-column::before,
    .product-table.product-master-table tbody .product-delete-column::before,
    .product-table.product-master-table tbody .product-buy-management-column::before {
        color: var(--muted);
        font-size: 12px;
        font-weight: 900;
    }

    .product-master-table tr.is-editing .common-quick-number {
        grid-column: 2;
    }

    .product-master-table .product-quick-edit-column form,
    .product-master-table .product-delete-column form { justify-content: flex-start; }
}

.product-master-filter-row {
    grid-template-columns: minmax(160px, .8fr) minmax(160px, .8fr) minmax(320px, 1.6fr);
}

.product-master-import-panel {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 0;
    margin-bottom: 14px;
    padding: 10px 14px;
}

.product-foundation-flow {
    margin: 0 0 14px;
    padding: 14px 16px;
    border: 1px solid #d9e3f1;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #fbfdff 0%, #f6f9ff 100%);
    box-shadow: 0 8px 22px rgba(37, 69, 126, .05);
}

.product-foundation-heading {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 12px;
}

.product-foundation-heading > span {
    display: inline-grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 9px;
    color: #2456b3;
    background: #e8f0ff;
}

.product-foundation-heading strong,
.product-foundation-heading p {
    display: block;
    margin: 0;
}

.product-foundation-heading strong {
    color: #243149;
    font-size: .84rem;
    font-weight: 900;
}

.product-foundation-heading p {
    margin-top: 3px;
    color: #6f7f96;
    font-size: .7rem;
    line-height: 1.45;
}

.product-foundation-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.product-foundation-step {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #e0e7f1;
    border-radius: 10px;
    background: rgba(255, 255, 255, .86);
}

.product-foundation-step.is-primary {
    border-color: #9cb9ed;
    background: #edf4ff;
    box-shadow: inset 0 0 0 1px rgba(58, 106, 194, .06);
}

.product-foundation-step-icon {
    display: inline-grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border-radius: 8px;
    color: #54709d;
    background: #eef2f8;
    font-size: .72rem;
}

.product-foundation-step.is-primary .product-foundation-step-icon {
    color: #fff;
    background: #315fae;
}

.product-foundation-step > div {
    min-width: 0;
}

.product-foundation-step strong,
.product-foundation-step p {
    display: block;
    margin: 0;
}

.product-foundation-step strong {
    color: #27354d;
    font-size: .75rem;
    font-weight: 900;
}

.product-foundation-step p {
    margin-top: 3px;
    color: #718097;
    font-size: .65rem;
    font-weight: 650;
    line-height: 1.4;
}

.product-foundation-arrow {
    position: absolute;
    top: 50%;
    right: -15px;
    color: #9aaac0;
    font-size: .65rem;
    transform: translateY(-50%);
}

.product-foundation-flow.is-compact {
    padding: 11px;
    border-radius: 11px;
}

.product-foundation-flow.is-compact .product-foundation-heading {
    margin-bottom: 10px;
}

.product-foundation-flow.is-compact .product-foundation-step {
    padding: 9px 10px;
}

.market-sync-fixed-account + .product-foundation-flow {
    margin-top: 12px;
    margin-bottom: 8px;
}

.market-sync-product-policy {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.market-sync-product-policy > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border: 1px solid #dfe6f1;
    border-radius: 999px;
    color: #65758d;
    background: #fff;
    font-size: .65rem;
    font-weight: 700;
}

.market-sync-product-policy i {
    color: #4772c2;
    font-size: .58rem;
}

.market-sync-product-policy strong {
    color: #315596;
    font-weight: 900;
}

.product-master-import-action-group > .btn,
.product-master-manual-action > .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 36px;
    min-height: 36px;
    padding: 0 13px;
    white-space: nowrap;
}

.sourcing-product-import-actions > .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 34px;
    white-space: nowrap;
}

.product-master-import-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
}

.product-master-import-action-group {
    display: inline-flex;
    align-items: stretch;
}

.product-master-import-action-group > .btn:first-child {
    border-radius: 7px 0 0 7px;
}

.product-master-import-action-group > .btn:last-child {
    margin-left: -1px;
    border-radius: 0 7px 7px 0;
}

.product-master-manual-action {
    padding-left: 10px;
    border-left: 1px solid #d8e0eb;
}

.product-manual-create-button {
    border: 1px solid #b9a7ee;
    border-radius: 7px;
    background: #f6f3ff;
    color: #6547b8;
    box-shadow: 0 5px 14px rgba(101, 71, 184, .10);
}

.product-manual-create-button:hover,
.product-manual-create-button:focus-visible {
    border-color: #7457c7;
    background: #7457c7;
    color: #fff;
    outline: 0;
    box-shadow: 0 7px 18px rgba(101, 71, 184, .20);
}

.product-smart-collection-open {
    background: #f7f9ff;
    box-shadow: 0 5px 14px rgba(var(--accent-rgb), .08);
}

.smart-collection-guide-modal .modal-content {
    overflow: hidden;
}

.smart-collection-guide-modal .modal-dialog {
    max-width: 860px;
}

.smart-collection-guide-modal .modal-header p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: .78rem;
}

.smart-collection-guide-modal .modal-body {
    padding: 20px;
    background: #f7f9fc;
}

.smart-extension-callout {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 15px 16px;
    border: 1px solid #c9d9ff;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #edf4ff 100%);
    box-shadow: 0 8px 22px rgba(40, 83, 166, .08);
}

.smart-extension-callout-icon {
    display: inline-grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 12px;
    background: #ffffff;
    color: #4285f4;
    font-size: 1.45rem;
    box-shadow: 0 4px 12px rgba(52, 84, 143, .12);
}

.smart-extension-callout-copy {
    min-width: 0;
}

.smart-extension-callout-copy h3,
.smart-extension-callout-copy p {
    margin: 0;
}

.smart-extension-callout-copy h3 {
    color: var(--ink);
    font-size: .92rem;
    font-weight: 900;
}

.smart-extension-callout-copy p {
    margin-top: 4px;
    color: #66758a;
    font-size: .75rem;
    line-height: 1.5;
}

.smart-extension-install {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    white-space: nowrap;
}

.smart-collection-guide-heading {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 22px 2px 12px;
}

.smart-collection-guide-heading span {
    color: var(--accent);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .03em;
}

.smart-collection-guide-heading strong {
    color: var(--ink);
    font-size: 1rem;
    font-weight: 900;
}

.smart-collection-guide-heading small {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    color: var(--muted);
    font-size: .66rem;
    font-weight: 750;
}

.smart-collection-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.smart-collection-step {
    display: grid;
    grid-template-rows: auto 290px 1fr;
    align-items: start;
    gap: 14px;
    padding: 13px;
    border: 1px solid #e0e6ef;
    border-radius: 13px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(32, 52, 82, .06);
}

.smart-collection-step:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc(50% - 7px);
    justify-self: center;
}

.smart-collection-step-image {
    display: grid;
    width: 100%;
    height: 290px;
    place-items: center;
    overflow: hidden;
    border: 1px solid #e3e7ed;
    border-radius: 10px;
    background: #f2f4f7;
    cursor: zoom-in;
}

.smart-collection-step-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .18s ease;
}

.smart-collection-step-image:hover img {
    transform: scale(1.015);
}

.smart-collection-step-image.is-margin-focus img,
.smart-collection-step-image.is-completion-focus img {
    object-fit: cover;
}

.smart-collection-step-image.is-margin-focus img {
    object-position: center 82%;
}

.smart-collection-step-image.is-completion-focus img {
    object-position: center bottom;
}

@media (min-width: 861px) {
    .smart-collection-step-image.is-margin-focus img,
    .smart-collection-step-image.is-completion-focus img {
        align-self: start;
        height: auto;
        max-height: none;
        object-fit: fill;
    }

    .smart-collection-step-image.is-margin-focus img {
        transform: translateY(-44%);
    }

    .smart-collection-step-image.is-completion-focus img {
        transform: translateY(-46%);
    }

    .smart-collection-step-image.is-margin-focus:hover img {
        transform: translateY(-44%) scale(1.01);
    }

    .smart-collection-step-image.is-completion-focus:hover img {
        transform: translateY(-46%) scale(1.01);
    }
}

.smart-collection-step-copy {
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 9px;
    min-width: 0;
}

@media (max-width: 860px) {
    .smart-collection-guide-modal .modal-dialog {
        max-width: calc(100% - 24px);
    }

    .smart-collection-steps {
        grid-template-columns: 1fr;
    }

    .smart-collection-step:last-child:nth-child(odd) {
        grid-column: auto;
        width: 100%;
    }
}

.smart-collection-step-number {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eaf1ff;
    color: var(--accent);
    font-size: .66rem;
    font-weight: 900;
    letter-spacing: .03em;
}

.smart-collection-step-copy h3,
.smart-collection-step-copy p {
    margin: 0;
}

.smart-collection-step-copy h3 {
    color: var(--ink);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.35;
}

.smart-collection-step-copy p {
    color: #58687e;
    font-size: .79rem;
    line-height: 1.7;
}

.smart-collection-step-copy p strong {
    color: #26364d;
    font-weight: 900;
}

.smart-collection-step-tip {
    display: inline-flex;
    align-items: flex-start;
    gap: 7px;
    max-width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f2f6ff;
    color: #3e5f98;
    font-size: .7rem;
    font-weight: 750;
    line-height: 1.45;
}

.smart-collection-step-tip i {
    margin-top: 2px;
}

.smart-collection-step-tip.is-success {
    background: #ecf9f1;
    color: #187a46;
}

.sourcing-product-import-modal .modal-header p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: .78rem;
}

.sourcing-product-import-toolbar {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}

.sourcing-product-import-toolbar h3 {
    margin: 0;
    color: var(--ink);
    font-size: .92rem;
    font-weight: 900;
}

.sourcing-product-import-controls {
    display: grid;
    gap: 8px;
}

.sourcing-product-import-search {
    width: 100%;
}

.sourcing-product-import-actions {
    display: flex;
    justify-content: flex-end;
}

.sourcing-product-import-table-wrap {
    height: min(58vh, 540px);
    min-height: 390px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.sourcing-product-import-table tbody[aria-busy="true"] {
    user-select: none;
}

.sourcing-product-import-table .app-async-skeleton-row {
    height: 78px;
}

.sourcing-product-import-table {
    width: 100%;
    min-width: 980px;
    table-layout: fixed;
}

.sourcing-product-import-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f7f9fc;
}

.sourcing-product-import-table tbody td {
    white-space: normal;
}

.sourcing-product-import-image-column {
    width: 112px;
    text-align: center;
}

.sourcing-product-import-image-column img,
.sourcing-product-import-image-column .product-image-placeholder {
    display: inline-grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    object-fit: cover;
}

.sourcing-product-import-brand-column {
    width: 180px;
}

.sourcing-product-import-market-price-column {
    width: 270px;
}

.sourcing-product-import-market-price-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 88px;
    gap: 6px;
    align-items: center;
}

.sourcing-product-import-market-price-input,
.sourcing-product-import-market-price-currency {
    min-height: 36px;
    font-size: .76rem;
}

.sourcing-product-import-market-price-input {
    min-width: 0;
    text-align: right;
}

.sourcing-product-import-market-price-status {
    display: block;
    min-height: 15px;
    margin-top: 4px;
    color: var(--muted);
    font-size: .62rem;
    font-weight: 800;
    line-height: 1.2;
}

.sourcing-product-import-market-price-status.is-running { color: var(--accent); }
.sourcing-product-import-market-price-status.is-success { color: #149455; }
.sourcing-product-import-market-price-status.is-error { color: #d92d20; }

.sourcing-product-import-check-column {
    width: 86px;
    min-width: 86px;
    padding-right: 16px !important;
    padding-left: 16px !important;
    text-align: center;
}

.sourcing-product-import-check-column > .form-check-input {
    vertical-align: middle;
}

.sourcing-product-import-check-column > .form-check-input {
    margin-left: 0;
}

.sourcing-product-import-title {
    display: block;
    color: var(--ink);
    font-size: .8rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.sourcing-product-import-result {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: .62rem;
    font-weight: 800;
}

.sourcing-product-import-result.is-running { color: var(--accent); }
.sourcing-product-import-result.is-success { color: #149455; }
.sourcing-product-import-result.is-error { color: #d92d20; }
.sourcing-product-import-table tr.is-complete { background: #f0fbf5; }

.sourcing-product-import-more {
    display: grid;
    justify-items: center;
    gap: 7px;
    min-height: 42px;
    padding-top: 10px;
}

.sourcing-product-import-more > .btn {
    min-width: 150px;
    min-height: 34px;
}

.sourcing-product-import-scroll-status {
    color: var(--muted);
    font-size: .7rem;
    font-weight: 750;
}

@media (max-width: 640px) {
    .product-master-import-panel,
    .product-master-import-actions,
    .sourcing-product-import-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .product-master-import-actions,
    .product-master-import-action-group,
    .product-master-manual-action,
    .product-master-manual-action > .btn,
    .sourcing-product-import-actions > .btn {
        width: 100%;
    }

    .product-master-import-action-group > .btn {
        min-width: 0;
        flex: 1 1 50%;
    }

    .product-master-manual-action {
        padding-top: 10px;
        padding-left: 0;
        border-top: 1px solid #d8e0eb;
        border-left: 0;
    }

    .smart-collection-guide-modal .modal-body {
        padding: 12px;
    }

    .sourcing-product-import-table-wrap {
        height: min(52vh, 480px);
        min-height: 300px;
    }

    .smart-extension-callout {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 10px;
        padding: 12px;
    }

    .smart-extension-callout-icon {
        width: 38px;
        height: 38px;
        font-size: 1.15rem;
    }

    .smart-extension-install {
        grid-column: 1 / -1;
        width: 100%;
    }

    .smart-collection-guide-heading {
        display: grid;
        gap: 3px;
        margin-top: 18px;
    }

    .smart-collection-guide-heading small {
        margin: 2px 0 0;
    }

    .smart-collection-step {
        grid-template-rows: auto auto 1fr;
        gap: 14px;
        padding: 11px;
    }

    .smart-collection-step-image {
        height: min(440px, 116vw);
    }

    .smart-collection-step-image img {
        max-height: 100%;
    }
}

/* Shared deferred list loading */
.async-list-loader { position: relative; min-height: 430px; overflow: hidden; }
.async-list-loader-progress { position: absolute; inset: 0 0 auto; height: 3px; overflow: hidden; background: #e8effc; }
.async-list-loader-progress span { width: 38%; height: 100%; display: block; border-radius: 999px; background: linear-gradient(90deg, #79a2ef, #275fc8, #79a2ef); animation: async-list-progress 1.05s ease-in-out infinite; }
.async-list-loader-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; color: #233f80; }
.async-list-loader-head strong,
.async-list-loader-head small { display: block; }
.async-list-loader-head strong { font-size: .96rem; }
.async-list-loader-head small { margin-top: 3px; color: #8290a9; font-size: .78rem; font-weight: 600; }
.async-list-loader-icon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #d8e4fb; border-radius: 10px; background: #f2f6ff; color: #3168cf; }
.async-list-skeleton { border: 1px solid #e1e7f1; border-radius: 12px; overflow: hidden; }
.async-list-skeleton-toolbar,
.async-list-skeleton-row { display: grid; grid-template-columns: minmax(90px, .7fr) minmax(220px, 2fr) repeat(3, minmax(100px, 1fr)); gap: 18px; align-items: center; padding: 15px 18px; border-bottom: 1px solid #e9edf4; }
.async-list-skeleton-toolbar { min-height: 58px; background: #f5f8fd; }
.async-list-skeleton-row:last-child { border-bottom: 0; }
.async-list-skeleton span { height: 13px; border-radius: 999px; background: linear-gradient(90deg, #edf1f7 25%, #f8faff 45%, #edf1f7 65%); background-size: 300% 100%; animation: async-list-shimmer 1.15s ease-in-out infinite; }
.async-list-skeleton-toolbar span:nth-child(2) { max-width: 180px; }
.async-list-skeleton-row span:nth-child(2) { height: 18px; }
.async-list-loader-error { min-height: 260px; display: grid; place-items: center; align-content: center; gap: 12px; text-align: center; color: #66738b; }
.async-list-loader-error[hidden] { display: none; }
.async-list-loader-error > i { font-size: 1.5rem; color: #dc5964; }
.async-list-loader-error strong,
.async-list-loader-error small { display: block; }
.async-list-loader-error small { margin-top: 5px; }
.async-list-loader.has-error .async-list-loader-head,
.async-list-loader.has-error .async-list-skeleton { display: none; }
[data-async-list-fragment] { position: relative; }
[data-async-list-fragment].is-refreshing { min-height: 180px; pointer-events: none; }
[data-async-list-fragment].is-refreshing::before {
    position: absolute;
    z-index: 20;
    inset: 0;
    border-radius: 14px;
    background: rgba(248, 250, 254, .72);
    content: "";
}
[data-async-list-fragment].is-refreshing::after {
    position: absolute;
    z-index: 21;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #dbe7fb;
    border-top-color: #2765d0;
    border-radius: 50%;
    content: "";
    animation: async-list-refresh-spin .7s linear infinite;
}
@keyframes async-list-shimmer { to { background-position: -200% 0; } }
@keyframes async-list-refresh-spin { to { transform: rotate(360deg); } }
@keyframes async-list-progress {
    from { transform: translateX(-110%); }
    to { transform: translateX(365%); }
}
@media (max-width: 800px) {
    .async-list-skeleton-toolbar,
    .async-list-skeleton-row { grid-template-columns: 60px minmax(180px, 2fr) minmax(90px, 1fr); }
    .async-list-skeleton-toolbar span:nth-child(n+4),
    .async-list-skeleton-row span:nth-child(n+4) { display: none; }
}

.collection-source-counts {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.collection-source-counts span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    padding: 5px 8px;
    border-radius: 7px;
    background: #fff7e8;
}

.collection-source-counts b {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.market-link-account-counts {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    gap: 4px;
    min-width: 0;
    margin-top: 8px;
}

.product-list-summary-listed {
    position: relative;
    z-index: 20;
    overflow: visible;
}

.market-link-account-counts > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1 1 0;
    width: 0;
    max-width: 100%;
    gap: 12px;
    min-width: 0;
    padding: 6px 8px;
    border-radius: 7px;
    color: inherit;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}

.market-link-account-counts > a:hover,
.market-link-account-counts > a:focus-visible {
    background: rgba(var(--accent-rgb), .07);
    color: var(--accent);
    outline: 0;
}

.market-link-account-counts > a.is-active {
    flex: 1 1 0;
    width: 0;
    background: rgba(var(--accent-rgb), .1);
    color: var(--accent);
}

.market-link-account-counts > a > .market-account-identity {
    flex: 1 1 auto;
    overflow: hidden;
}

.market-link-account-counts a span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.market-link-account-more {
    flex: 0 0 auto;
}

.market-link-account-more-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 5px 8px;
    border: 0;
    border-radius: 7px;
    background: #f4f6f9;
    color: #667085;
    font-size: .68rem;
    font-weight: 900;
    white-space: nowrap;
}

.market-link-account-more-button:hover,
.market-link-account-more-button:focus-visible,
.market-link-account-more-button[aria-expanded="true"] {
    background: rgba(var(--accent-rgb), .1);
    color: var(--accent);
    outline: 0;
}

.market-link-account-more-button i {
    font-size: .55rem;
}

.market-link-account-more-menu {
    z-index: 1200;
    min-width: 250px;
    max-height: 280px;
    overflow-y: auto;
    padding: 6px;
    border-color: #dce3ed;
    border-radius: 10px;
    box-shadow: 0 14px 34px rgba(34, 52, 84, .16);
}

.market-link-account-more-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 9px 8px;
    color: #667085;
    font-size: .68rem;
    font-weight: 900;
}

.market-link-account-more-title span {
    color: var(--accent);
}

.market-link-account-more-menu .dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 8px 9px;
    border-radius: 7px;
    color: #344054;
}

.market-link-account-more-menu .dropdown-item:hover,
.market-link-account-more-menu .dropdown-item:focus,
.market-link-account-more-menu .dropdown-item.is-active {
    background: rgba(var(--accent-rgb), .08);
    color: var(--accent);
}

.market-account-summary-copy {
    display: grid;
    min-width: 0;
    line-height: 1.2;
}

.market-account-summary-copy b,
.market-account-summary-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.market-account-identity {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    max-width: 100%;
    line-height: 1.2;
}

.market-account-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.market-account-brand.is-logo {
    width: 24px;
    height: 24px;
}

.market-account-brand.is-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.market-account-brand.is-label {
    min-height: 23px;
    padding: 3px 7px;
    border: 1px solid #d8e0eb;
    border-radius: 6px;
    background: #f7f9fc;
    color: #445268;
    font-size: .66rem;
    font-weight: 900;
    letter-spacing: -.01em;
    white-space: nowrap;
}

.market-account-identity.is-shopee .market-account-brand.is-label,
.market-platform-chip.is-shopee .market-account-brand.is-label {
    border-color: #ffd3c2;
    background: #fff1eb;
    color: #c84b22;
}

.market-account-identity.is-lazada .market-account-brand.is-label,
.market-platform-chip.is-lazada .market-account-brand.is-label {
    border-color: #ddd0ff;
    background: #f2edff;
    color: #663cc0;
}

.market-account-identity.is-qoo10 .market-account-brand.is-label,
.market-platform-chip.is-qoo10 .market-account-brand.is-label {
    border-color: #c8e5df;
    background: #edf9f6;
    color: #087f70;
}

.market-account-configured-name {
    display: block;
    overflow: hidden;
    min-width: 0;
    color: #344054;
    font-size: .76rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.market-account-dropdown {
    position: relative;
    min-width: 0;
}

.market-account-scope-selector {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    width: var(--market-account-setting-width);
    max-width: 100%;
    min-width: 0;
}

.market-account-scope-selector.has-merchant-selector {
    grid-template-columns: minmax(0, var(--market-account-setting-width)) minmax(0, var(--market-account-merchant-width));
    width: var(--market-account-combined-width);
}

.market-account-scope-setting,
.market-account-scope-merchant {
    min-width: 0;
}

.market-account-scope-merchant .market-account-dropdown-trigger {
    background: #f8faff;
}

.market-account-scope-merchant .market-account-identity {
    max-width: none;
}

.market-account-scope-merchant .market-account-configured-name {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
}

.market-account-scope-merchant .market-account-dropdown-panel {
    width: max(100%, 280px);
    max-width: min(380px, calc(100vw - 32px));
}

.market-account-scope-merchant .market-account-dropdown-option {
    align-items: flex-start;
}

.product-sourcing-import-icon {
    display: inline-grid;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    place-items: center;
}

@media (max-width: 960px) {
    .market-account-scope-selector.has-merchant-selector {
        grid-template-columns: minmax(0, 1fr);
        width: var(--market-account-setting-width);
    }
}

@media (max-width: 520px) {
    .market-account-scope-selector,
    .market-account-scope-selector.has-merchant-selector {
        width: 100%;
    }
}

.market-account-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid #cfd8e6;
    border-radius: 10px;
    background: #fff;
    color: #344054;
    text-align: left;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.market-account-dropdown-trigger:hover:not(:disabled) {
    border-color: #9eb5dd;
    background: #fbfcff;
}

.market-account-dropdown-trigger:focus-visible,
.market-account-dropdown.is-open .market-account-dropdown-trigger {
    border-color: #4d7ee8;
    box-shadow: 0 0 0 3px rgba(77, 126, 232, .13);
    outline: 0;
}

.market-account-dropdown-trigger:disabled {
    background: #f5f7fa;
    color: #98a2b3;
    cursor: not-allowed;
}

.market-account-dropdown-value {
    display: flex;
    align-items: center;
    min-width: 0;
}

.market-account-dropdown-value.is-placeholder {
    color: #7d899a;
    font-size: .82rem;
    font-weight: 700;
}

.market-account-dropdown-value .market-account-configured-name,
.market-account-dropdown-option .market-account-configured-name {
    font-size: .82rem;
}

.market-account-dropdown-chevron {
    flex: 0 0 auto;
    color: #8290a3;
    font-size: .72rem;
    transition: transform .16s ease;
}

.market-account-dropdown.is-open .market-account-dropdown-chevron {
    transform: rotate(180deg);
}

.market-account-dropdown-panel {
    position: absolute;
    z-index: 1085;
    top: calc(100% + 7px);
    left: 0;
    width: 100%;
    max-height: 260px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid #d8e0eb;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(34, 52, 84, .16);
}

.market-account-dropdown-panel[hidden] {
    display: none;
}

.market-account-dropdown-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 44px;
    gap: 12px;
    padding: 9px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #344054;
    text-align: left;
}

.market-account-dropdown-option:hover,
.market-account-dropdown-option:focus-visible {
    background: #f4f7fc;
    outline: 0;
}

.market-account-dropdown-option.is-selected {
    background: #edf3ff;
}

.market-account-dropdown-check {
    visibility: hidden;
    color: #2f6feb;
    font-size: .78rem;
}

.market-account-dropdown-option.is-selected .market-account-dropdown-check {
    visibility: visible;
}

.market-account-summary-copy b {
    color: #344054;
    font-size: .78rem;
}

.market-account-summary-copy small {
    margin-top: 2px;
    color: #7a8799;
    font-size: .68rem;
}

.market-link-account-counts a strong {
    flex: 0 0 auto;
    font-size: 1rem;
}

.market-link-account-count-value {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.market-link-account-count-value > i {
    color: #a0a9b8;
    font-size: .62rem;
    transition: transform .15s ease, color .15s ease;
}

.market-link-account-counts a:hover .market-link-account-count-value > i,
.market-link-account-counts a:focus-visible .market-link-account-count-value > i,
.market-link-account-counts a.is-active .market-link-account-count-value > i {
    color: var(--accent);
    transform: none;
}

.product-list-summary-hint {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    color: #8a96a8;
    font-size: .64rem;
    font-weight: 800;
    white-space: nowrap;
}

.catalog-filter-panel,
.product-common-search.catalog-filter-panel {
    margin: 0 0 14px;
    padding: 12px;
    border: 1px solid #e1e7f0;
    border-radius: 10px;
    background: #f7f9fc;
}

.catalog-filter-panel .form-control,
.catalog-filter-panel .form-select,
.catalog-filter-panel .input-group-text,
.catalog-filter-panel .btn {
    min-height: 38px;
}

.product-common-filter-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(320px, 2fr);
    gap: 10px;
    padding-top: 11px;
}

.product-common-filter-row.is-standalone {
    padding-top: 0;
}

.product-common-filter-row.is-keyword-only {
    grid-template-columns: minmax(0, 1fr);
}

.product-common-filter-row.market-link-filter-row {
    grid-template-columns: minmax(145px, .72fr) minmax(180px, 1fr) minmax(180px, 1fr) minmax(320px, 2fr);
}

.market-link-status-filter {
    border-color: #c5d3e7;
    color: #344866;
    font-weight: 800;
    background-color: #fff;
}

.market-link-status-filter:focus {
    border-color: #7198dc;
    box-shadow: 0 0 0 3px rgba(66, 111, 197, .1);
}

.common-filter-picker {
    position: relative;
    min-width: 0;
}

.common-filter-picker .market-search-dropdown-toggle {
    min-height: 38px;
    padding: 7px 12px;
}

.common-filter-picker .market-search-dropdown-results {
    min-height: 180px;
    max-height: min(360px, 45vh);
}

.catalog-list-panel .list-toolbar {
    min-height: 42px;
    margin: 0;
    padding: 0 0 10px;
}

.catalog-list-panel .list-toolbar-left,
.catalog-list-panel .list-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.catalog-list-panel .list-toolbar-right {
    flex-wrap: nowrap;
    white-space: nowrap;
}

.catalog-list-panel .list-toolbar .btn {
    min-height: 34px;
}

.catalog-table-wrap {
    border: 1px solid #e3e8f0;
    border-radius: 10px;
    overflow-x: auto;
}

.catalog-table-wrap .board-table {
    width: 100%;
    table-layout: fixed;
}

.catalog-table-wrap .board-table thead th {
    height: 46px;
    padding: 10px 8px;
    background: #f7f9fc;
    color: #586579;
    font-size: .78rem;
    font-weight: 700;
    vertical-align: middle;
    white-space: nowrap;
}

.catalog-table-wrap .board-table tbody td {
    height: 82px;
    padding: 10px 8px;
    vertical-align: middle;
}

.catalog-table-wrap .product-cell {
    gap: 10px;
    min-width: 0;
}

.catalog-table-wrap .product-cell > img,
.catalog-table-wrap .product-image-placeholder {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 7px;
    object-fit: cover;
}

.catalog-table-wrap .product-title-link {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.35;
}

.catalog-table-wrap .product-row-meta {
    display: block;
    overflow: hidden;
    margin-bottom: 3px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sourcing-common-table {
    min-width: 1320px;
}

.sourcing-common-table th:nth-child(1),
.sourcing-common-table td:nth-child(1) { width: 44px !important; }
.sourcing-common-table th:nth-child(2),
.sourcing-common-table td:nth-child(2) { width: 58px !important; text-align: center; }
.sourcing-common-table th:nth-child(3),
.sourcing-common-table td:nth-child(3) { width: auto !important; }
.sourcing-common-table th:nth-child(4),
.sourcing-common-table td:nth-child(4) { width: 118px !important; }
.sourcing-common-table th:nth-child(5),
.sourcing-common-table td:nth-child(5) { width: 132px !important; }
.sourcing-common-table th:nth-child(6),
.sourcing-common-table td:nth-child(6) { width: 86px !important; }
.sourcing-common-table th:nth-child(7),
.sourcing-common-table td:nth-child(7) { width: 88px !important; text-align: center; }
.sourcing-common-table th:nth-child(8),
.sourcing-common-table td:nth-child(8) { width: 76px !important; min-width: 76px !important; max-width: 76px !important; text-align: center; }
.sourcing-common-table th:nth-child(9),
.sourcing-common-table td:nth-child(9) { width: 142px !important; text-align: center; }

.sourcing-common-table.has-quick-edit {
    min-width: 1480px;
}

.sourcing-common-table.has-quick-edit th:nth-child(3),
.sourcing-common-table.has-quick-edit td:nth-child(3) {
    min-width: 420px !important;
}

.sourcing-common-table.has-quick-edit th:nth-child(4),
.sourcing-common-table.has-quick-edit td:nth-child(4) {
    width: 160px !important;
    min-width: 160px !important;
}

.sourcing-common-table.has-quick-edit th:nth-child(5),
.sourcing-common-table.has-quick-edit td:nth-child(5) {
    width: 170px !important;
    min-width: 170px !important;
}

.sourcing-common-table.has-quick-edit th:nth-child(6),
.sourcing-common-table.has-quick-edit td:nth-child(6) {
    width: 130px !important;
    min-width: 130px !important;
}

.sourcing-common-table.has-quick-edit th:nth-child(9),
.sourcing-common-table.has-quick-edit td:nth-child(9) {
    width: 172px !important;
    min-width: 172px !important;
}

.market-link-common-table {
    min-width: 960px;
}

.product-table.market-link-common-table .product-check-column { width: 44px !important; }
.product-table.market-link-common-table .product-number-column { width: 58px !important; text-align: center; }
.product-table.market-link-common-table .product-info-column { width: auto !important; min-width: 250px !important; }
.product-table.market-link-common-table .product-brand-column { width: 120px !important; }
.product-table.market-link-common-table .product-weight-column { width: 88px !important; }
.product-table.market-link-common-table .product-market-price-column { width: 130px !important; }
.product-table.market-link-common-table .market-link-market-column { width: 360px !important; min-width: 360px !important; max-width: 360px !important; }
.product-table.market-link-common-table .market-link-action-column { width: 112px !important; text-align: center; }

@media (max-width: 860px) {
    .product-table.market-link-common-table tbody .product-info-column {
        grid-column: 2;
        grid-row: 1 / span 2;
        min-width: 0;
    }

    .product-table.market-link-common-table tbody .product-info-column::before {
        content: none;
    }

    .product-table.market-link-common-table tbody .product-brand-column,
    .product-table.market-link-common-table tbody .product-weight-column,
    .product-table.market-link-common-table tbody .product-market-price-column,
    .product-table.market-link-common-table tbody .market-link-market-column,
    .product-table.market-link-common-table tbody .market-link-action-column {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 74px minmax(0, 1fr);
        gap: 8px;
        align-items: center;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        padding: 0 !important;
        text-align: left;
        white-space: normal;
    }

    .product-table.market-link-common-table tbody .product-brand-column { grid-row: 3; }
    .product-table.market-link-common-table tbody .product-weight-column { grid-row: 4; }
    .product-table.market-link-common-table tbody .product-market-price-column { grid-row: 5; }
    .product-table.market-link-common-table tbody .market-link-market-column { grid-row: 6; }
    .product-table.market-link-common-table tbody .market-link-action-column { grid-row: 7; }

    .product-table.market-link-common-table tbody .product-brand-column::before { content: "브랜드"; }
    .product-table.market-link-common-table tbody .product-weight-column::before { content: "무게"; }
    .product-table.market-link-common-table tbody .product-market-price-column::before { content: "가격"; }
    .product-table.market-link-common-table tbody .market-link-market-column::before { content: "연동"; }
    .product-table.market-link-common-table tbody .market-link-action-column::before { content: "연동"; }

    .product-table.market-link-common-table tbody .product-brand-column::before,
    .product-table.market-link-common-table tbody .product-weight-column::before,
    .product-table.market-link-common-table tbody .product-market-price-column::before,
    .product-table.market-link-common-table tbody .market-link-market-column::before,
    .product-table.market-link-common-table tbody .market-link-action-column::before {
        color: var(--muted);
        font-size: 12px;
        font-weight: 900;
    }

    .product-table.market-link-common-table tbody .market-link-action-column .product-market-link-open {
        justify-self: start;
    }
}

.collection-common-title,
.common-product-title-wrap {
    min-width: 0;
    flex: 1;
}

.collection-common-title > input {
    width: min(680px, 45vw);
}

.common-quick-number {
    display: inline-flex;
    align-items: stretch;
    min-width: 142px;
    vertical-align: middle;
}

.common-quick-number input.form-control {
    min-width: 86px;
    height: 36px !important;
    min-height: 36px !important;
    border-right: 0;
    border-radius: 8px 0 0 8px;
    box-shadow: none;
}

.common-quick-number > span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    min-height: 36px;
    padding: 0 9px;
    border: 1px solid #ced6e2;
    border-radius: 0 8px 8px 0;
    background: #f7f9fc;
    color: #667085;
    font-size: .76rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.common-quick-number:focus-within > span {
    border-color: #86a8ef;
}

.common-quick-number.is-currency > span {
    min-width: 52px;
}

.common-quick-number.is-weight > span {
    min-width: 36px;
    padding-right: 7px;
    padding-left: 7px;
}

.common-quick-number.is-real-stock > span {
    min-width: 34px;
    padding-right: 7px;
    padding-left: 7px;
}

.product-real-stock-option-link {
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.sourcing-common-table.has-quick-edit .collection-common-title > input,
.sourcing-common-table.has-quick-edit .common-quick-number {
    width: 100%;
    min-width: 0;
}

.catalog-table-wrap tr.is-editing .collection-common-title > input {
    height: 36px !important;
    min-height: 36px !important;
    padding-top: 6px;
    padding-bottom: 6px;
}

.sourcing-common-table.has-quick-edit .common-quick-number input {
    width: 1%;
    min-width: 0;
    flex: 1 1 auto;
}

.collection-market-create-card {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    width: 100%;
    padding: 6px;
    border: 1px solid #b8e7c7;
    border-radius: 9px;
    background: #f0fff5;
}

.market-link-market-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    width: 100%;
    overflow: hidden;
    padding: 3px;
    border: 1px solid #e0e6ef;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(30, 45, 70, .045);
}

.market-link-market-card.is-unlinked {
    border-color: #d8dee8;
    background: #f6f7f9;
    box-shadow: none;
}

.market-link-market-card.is-linked {
    border-color: #b9dfc8;
    background: #f1fbf5;
    box-shadow: 0 3px 10px rgba(22, 101, 52, .07);
}

.market-link-market-card.is-linked.is-shopee {
    border-color: #ffd9c9;
    background: #fff8f5;
    box-shadow: 0 3px 10px rgba(194, 65, 12, .07);
}

.market-link-market-card.is-linked.is-lazada {
    border-color: #dfd2ff;
    background: #faf8ff;
    box-shadow: 0 3px 10px rgba(91, 33, 182, .07);
}

.market-link-market-card.is-linked.has-banned-item {
    border-color: #f0a6ad;
    background: #fff7f7;
    box-shadow: 0 3px 10px rgba(190, 24, 45, .08);
}

.market-link-auto-control {
    display: grid;
    justify-items: start;
    gap: 6px;
    min-width: 0;
    width: 100%;
    overflow: hidden;
    padding: 8px 10px;
    border: 1px solid #dce5f2;
    border-radius: 9px;
    background: #f8faff;
    box-shadow: 0 2px 8px rgba(30, 64, 120, .045);
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.market-link-auto-control.is-pending,
.market-link-auto-control.is-processing {
    border-color: #bfd1f0;
    background: #f5f8ff;
    box-shadow: 0 3px 10px rgba(53, 103, 189, .07);
}

.market-link-auto-control.is-failed {
    border-color: #f3bdc4;
    background: #fff8f9;
    box-shadow: 0 3px 10px rgba(213, 44, 63, .06);
}

.market-link-auto-control-main {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
}

.market-link-auto-control-icon {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 8px;
    background: #e9effc;
    color: #3567bd;
    font-size: .78rem;
}

.market-link-auto-switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 22px;
    margin: 0;
    cursor: pointer;
}

.market-link-auto-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.market-link-auto-switch > span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #cbd5e1;
    box-shadow: inset 0 0 0 1px rgba(71, 85, 105, .12);
    transition: background .16s ease, box-shadow .16s ease;
}

.market-link-auto-switch > span::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, .2);
    transition: transform .16s ease;
}

.market-link-auto-switch input:focus-visible + span {
    box-shadow: 0 0 0 3px rgba(53, 103, 189, .18);
}

.market-link-auto-switch input:checked + span {
    background: #3567bd;
}

.market-link-auto-switch input:checked + span::after {
    transform: translateX(16px);
}

.market-link-auto-switch:has(input:disabled) {
    cursor: default;
}

.market-link-auto-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #8a6110;
    font-size: .7rem;
    font-weight: 850;
}

.market-link-auto-status[hidden],
.market-link-auto-error[hidden] {
    display: none;
}

.market-link-auto-status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e7a820;
}

.market-link-auto-control.is-processing .market-link-auto-status {
    color: #2759ad;
}

.market-link-auto-control.is-processing .market-link-auto-status::before {
    background: #3567bd;
    box-shadow: 0 0 0 4px rgba(53, 103, 189, .12);
    animation: market-link-auto-pulse 1.1s ease-in-out infinite;
}

.market-link-auto-error {
    display: -webkit-box;
    overflow: hidden;
    max-width: 100%;
    color: #d52c3f;
    font-size: .66rem;
    font-weight: 800;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

@keyframes market-link-auto-pulse {
    50% { opacity: .45; }
}

@media (prefers-reduced-motion: reduce) {
    .market-link-auto-control.is-processing .market-link-auto-status::before {
        animation: none;
    }
}

.collection-market-create-card {
    justify-content: space-between;
}

.sourcing-common-table .collection-market-create-card,
.sourcing-common-table .collection-market-create-card.is-empty,
.sourcing-common-table .collection-market-create-card.is-created {
    justify-content: center;
    width: 36px;
    min-width: 36px;
    margin: 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
}

.sourcing-common-table .collection-market-create-card form {
    margin: 0;
}

.sourcing-common-table .collection-market-create-card .btn {
    display: inline-grid;
    place-items: center;
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 8px;
}

.collection-market-create-card.is-empty {
    border-color: #dce3ec;
    background: #f7f9fc;
    color: #78869a;
}

.market-link-market-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 6px;
    min-height: 34px;
    padding: 4px 6px;
    border: 0;
    border-radius: 6px;
    background: transparent;
}

.market-link-market-line + .market-link-market-line {
    border-top: 1px solid #edf1f6;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.market-link-market-state {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    flex: 1 1 auto;
}

.market-link-market-state-icon {
    display: inline-grid;
    width: 26px;
    min-width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 50%;
    background: #e6e9ee;
    color: #8792a2;
    font-size: .76rem;
}

.market-link-market-card.is-linked .market-link-market-state-icon {
    background: #d8f2e2;
    color: #149455;
}

.market-link-market-state-label {
    overflow: hidden;
    color: #667085;
    font-size: .72rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.market-link-market-product-number {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.market-link-market-product-number-line {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.market-link-market-product-number-line i {
    flex: 0 0 auto;
    color: #638171;
    font-size: .7rem;
}

.market-link-market-product-number-line strong {
    overflow: hidden;
    color: #254536;
    font-size: .7rem;
    font-weight: 850;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.market-link-market-banned-status {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border: 1px solid #f3a6ad;
    border-radius: 999px;
    background: #fff;
    color: #c51f36;
    font-size: .57rem;
    font-weight: 750;
    line-height: 1.2;
}

.market-link-market-banned-status strong {
    color: inherit;
    font-size: inherit;
    font-weight: 900;
}

.market-link-market-banned-status span {
    color: #a8142a;
}

.market-link-market-published-countries {
    display: grid;
    grid-template-columns: repeat(4, max-content);
    gap: 3px;
    justify-content: start;
    padding-left: 0;
}

.market-link-market-published-countries span,
.market-link-market-published-countries a {
    display: inline-flex;
    min-height: 16px;
    min-width: 27px;
    align-items: center;
    justify-content: center;
    padding: 1px 5px;
    border: 1px solid #b8dfc7;
    border-radius: 999px;
    background: #ffffff;
    color: #28734b;
    font-size: .55rem;
    font-weight: 850;
    line-height: 1.15;
    text-decoration: none;
}

.market-link-market-published-countries a:hover,
.market-link-market-published-countries a:focus-visible {
    border-color: #60b882;
    background: #eaf9f0;
    color: #145c36;
    outline: none;
}

.market-link-market-published-countries .market-link-market-published-more {
    border-style: dashed;
    background: #edf6f1;
    color: #527563;
}

.market-link-market-publish-state {
    display: inline-grid;
    width: 20px;
    min-width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 50%;
    font-size: .64rem;
    cursor: help;
}

.market-link-market-publish-state.is-pending {
    background: #eaf2ff;
    color: #2864c7;
}

.market-link-market-publish-state.is-failed {
    background: #fff0f1;
    color: #d92d3f;
}

.market-market-link-label {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    flex: 1 1 auto;
    padding: 0;
    background: transparent;
}

.market-market-link-label .market-account-identity {
    width: 100%;
    gap: 5px;
}

.market-market-link-label .market-account-brand.is-label {
    min-height: 22px;
    padding: 2px 5px;
    font-size: .61rem;
}

.market-market-link-label .market-account-configured-name {
    max-width: 78px;
    font-size: .68rem;
}

.market-link-market-actions {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 2px;
}

.market-link-market-actions form {
    display: inline-flex;
    flex: 0 0 auto;
    margin: 0;
}

.market-link-market-action {
    display: inline-grid;
    width: 26px !important;
    min-width: 26px !important;
    max-width: 26px;
    height: 26px !important;
    min-height: 26px !important;
    max-height: 26px;
    padding: 0 !important;
    place-items: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #a3adbb;
    font-size: .67rem;
    line-height: 1;
    text-decoration: none;
}

.market-link-market-settings {
    border: 1px solid #cbd6e5;
    background: #fff;
    color: #7185a5;
    box-shadow: 0 1px 2px rgba(31, 50, 81, .08);
}

.market-link-market-settings:hover,
.market-link-market-settings:focus-visible {
    border-color: #8eaae0;
    background: #eef4ff;
    color: var(--accent);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(35, 105, 225, .12);
}

.market-link-market-settings:disabled {
    border-color: #d8dee8;
    background: #eef0f3;
    color: #a6afbc;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 1;
}

.market-link-market-unlink {
    color: #dc3f49;
}

.market-link-market-unlink:hover,
.market-link-market-unlink:focus-visible {
    background: #fff1f1;
    color: #c92f3a;
    outline: 0;
}

/* MarketLink page: compact Shopee country publish manager */
.shopee-publish-manager-modal .modal-dialog {
    max-width: min(760px, calc(100vw - 32px));
}

.shopee-publish-manager-modal .modal-content {
    overflow: hidden;
    border: 1px solid #dce3ed;
    border-radius: 16px;
}

.shopee-publish-manager-modal .modal-header,
.shopee-publish-manager-modal .modal-footer {
    padding: 15px 18px;
}

.shopee-publish-manager-modal .modal-body {
    padding: 16px 18px 18px;
    background: #f7f9fc;
}

.shopee-publish-manager-heading {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.shopee-publish-manager-heading > div:last-child {
    flex: 1 1 auto;
    min-width: 0;
}

.shopee-publish-heading-account {
    display: flex;
    align-items: center;
    max-width: 190px;
    min-height: 34px;
    padding-right: 12px;
    border-right: 1px solid #e0e6ef;
}

.shopee-publish-heading-account .market-account-configured-name {
    max-width: 116px;
    font-size: .74rem;
}

.shopee-publish-manager-heading h2 {
    margin: 0 0 3px;
    color: #172033;
    font-weight: 900;
}

.shopee-publish-manager-heading p {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin: 0;
    color: #758196;
    font-size: .8rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shopee-publish-manager-product > span {
    flex: 0 0 auto;
    padding: 2px 6px;
    border-radius: 5px;
    color: #52637a;
    background: #edf2f8;
    font-size: .66rem;
    font-weight: 850;
}

.shopee-publish-manager-product > strong {
    min-width: 0;
    overflow: hidden;
    color: #758196;
    font-size: .8rem;
    font-weight: 700;
    text-overflow: ellipsis;
}

.shopee-publish-global-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 10px 14px;
    border: 1px solid #dce4f0;
    border-radius: 11px;
    background: #fff;
}

.shopee-publish-global-summary > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #66758b;
    font-size: .76rem;
    font-weight: 800;
}

.shopee-publish-global-summary > span:first-child i {
    color: #2b6ff2;
}

.shopee-publish-global-summary > strong {
    color: #172033;
    font-size: .9rem;
    font-weight: 900;
    letter-spacing: .02em;
}

.shopee-publish-manager-guide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 10px 2px 14px;
    color: #66758b;
    font-size: .76rem;
    line-height: 1.45;
}

.shopee-publish-manager-guide-text {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}

.shopee-publish-manager-guide-text > i {
    margin-top: 2px;
    color: #2b6ff2;
}

.shopee-publish-all-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.shopee-publish-manager-list {
    display: grid;
    gap: 10px;
}

.shopee-publish-country-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #dfe5ee;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(29, 45, 71, .04);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.shopee-publish-country-card.is-loading {
    border-color: #91b4f8;
    box-shadow: 0 0 0 3px rgba(43, 111, 242, .08), 0 3px 12px rgba(29, 45, 71, .04);
}

.shopee-publish-country-loading {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(248, 251, 255, .82);
    color: #245fc9;
    font-size: .74rem;
    font-weight: 900;
    backdrop-filter: blur(1px);
}

.shopee-publish-country-loading-message {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.35;
}

.shopee-publish-country-loading-message small {
    color: #5f6f89;
    font-size: .68rem;
    font-weight: 700;
}

.shopee-publish-country-card.is-manual {
    border-color: #c9d6ea;
}

.shopee-publish-country-head {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto 34px;
    align-items: center;
    gap: 10px;
    min-height: 60px;
    padding: 9px 10px 9px 13px;
}

.shopee-publish-country-identity {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.shopee-publish-country-flag {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: #f8fafc;
    font-size: 1.15rem;
}

.shopee-publish-country-identity > span:last-child {
    display: grid;
    min-width: 0;
}

.shopee-publish-country-identity strong {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    color: #263248;
    font-size: .88rem;
    font-weight: 900;
}

.shopee-publish-country-identity strong small {
    color: #8290a4;
    font-size: .68rem;
    font-weight: 800;
}

.shopee-publish-country-identity small {
    overflow: hidden;
    color: #8290a4;
    font-size: .68rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shopee-auto-price-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #4e5d73;
    font-size: .72rem;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

.shopee-auto-price-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.shopee-auto-price-switch i {
    position: relative;
    width: 36px;
    height: 20px;
    border-radius: 999px;
    background: #cbd4e1;
    box-shadow: inset 0 0 0 1px rgba(30, 41, 59, .05);
    transition: background .18s ease;
}

.shopee-auto-price-switch i::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, .22);
    content: "";
    transition: transform .18s ease;
}

.shopee-auto-price-switch input:checked + i { background: #16a967; }
.shopee-auto-price-switch input:checked + i::after { transform: translateX(16px); }
.shopee-auto-price-switch input:focus-visible + i { outline: 3px solid rgba(43, 111, 242, .2); }
.shopee-auto-price-switch input:disabled + i { opacity: .5; }

.shopee-country-publish-action {
    display: inline-grid;
    grid-column: 3;
    width: 34px;
    justify-items: center;
    gap: 4px;
}

.shopee-country-publish-button,
.shopee-country-publish-delete-button {
    width: 34px;
    height: 34px;
}

.shopee-country-publish-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 34px;
    padding: 0;
    border: 1px solid #1e5bc7;
    border-radius: 8px;
    background: linear-gradient(180deg, #357cf1 0%, #1e4ba5 100%);
    color: #fff;
    font-size: .72rem;
    font-weight: 900;
    box-shadow: 0 4px 10px rgba(30, 75, 165, .16);
}

.shopee-country-publish-delete-button {
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1px solid #efb8b8;
    border-radius: 8px;
    background: #fff5f5;
    color: #cf3f3f;
    font-size: .72rem;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.shopee-country-publish-delete-button:hover,
.shopee-country-publish-delete-button:focus-visible {
    border-color: #dc3545;
    background: #dc3545;
    color: #fff;
    outline: none;
}

.shopee-country-publish-delete-button:disabled {
    border-color: #e1e5eb;
    background: #f3f5f8;
    color: #aab3c0;
}

.shopee-country-publish-button:disabled {
    border-color: #d8dee8;
    background: #edf1f6;
    color: #9aa6b6;
    box-shadow: none;
}

.shopee-publish-price-guide {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 13px 10px 57px;
    padding: 8px 10px;
    border: 1px solid #c9e4d7;
    border-radius: 8px;
    background: #f2fbf6;
    color: #53677d;
    font-size: .71rem;
}

.shopee-publish-price-guide i { color: #16a967; }

.shopee-publish-price-guide > span {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 7px;
}

.shopee-publish-marketing-recommendation {
    display: inline-flex;
    align-items: center;
    padding: 1px 2px;
    color: #a65300;
    font-size: .69rem;
    font-weight: 900;
    line-height: 1.25;
    box-shadow: inset 0 -.55em 0 #ffe4a8;
}

.shopee-publish-price-guide.is-warning {
    border-color: #f1d39b;
    background: #fff9ed;
    color: #a45d18;
}

.shopee-publish-price-guide.is-warning i { color: #df841c; }

.shopee-publish-linked-price {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 13px 10px 57px;
    color: #66758b;
    font-size: .7rem;
}

.shopee-publish-linked-price > span {
    font-weight: 800;
}

.shopee-publish-linked-price > strong {
    color: #245fc9;
    font-size: .76rem;
    font-weight: 900;
}

.shopee-publish-linked-price > i {
    color: #a6b0bf;
    font-size: .62rem;
}

.shopee-publish-linked-price > strong.is-discount {
    color: #c75322;
}

.shopee-publish-linked-price > em {
    padding: 2px 6px;
    border-radius: 999px;
    background: #fff0e8;
    color: #c75322;
    font-size: .62rem;
    font-style: normal;
    font-weight: 900;
}

.shopee-publish-country-reason {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: -2px 15px 11px 63px;
    color: #a65858;
    font-size: .7rem;
}

.shopee-publish-manager-loading,
.shopee-publish-manager-empty {
    display: grid;
    min-height: 190px;
    place-items: center;
    align-content: center;
    gap: 8px;
    border: 1px dashed #d7dee9;
    border-radius: 11px;
    background: #fff;
    color: #77859a;
    font-size: .78rem;
}

.shopee-publish-manager-empty i { color: #a5b0bf; font-size: 1.4rem; }
.shopee-publish-manager-empty strong { color: #465469; }
.shopee-publish-manager-empty span { font-size: .7rem; }

@media (max-width: 760px) {
    .shopee-publish-manager-modal .modal-dialog { max-width: calc(100vw - 16px); margin: 8px; }
    .shopee-publish-manager-modal .modal-header,
    .shopee-publish-manager-modal .modal-footer { padding: 14px; }
    .shopee-publish-manager-modal .modal-body { padding: 14px; }
    .shopee-publish-global-summary { flex-wrap: wrap; }
    .shopee-publish-manager-guide { align-items: stretch; flex-direction: column; }
    .shopee-publish-all-button { justify-content: center; width: 100%; }
    .shopee-publish-heading-account { max-width: 150px; }
    .shopee-publish-heading-account .market-account-configured-name { max-width: 82px; }
    .shopee-publish-country-head { grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
    .shopee-auto-price-switch { grid-row: 2; grid-column: 1; justify-self: start; padding-left: 48px; }
    .shopee-country-publish-action { grid-row: 2; grid-column: 2; justify-self: end; }
    .shopee-publish-price-guide,
    .shopee-publish-country-reason { padding-left: 15px; margin-left: 0; }
    .shopee-publish-price-guide { margin: 0 13px 10px; padding: 8px 10px; }
}

.catalog-table-wrap .product-row-action-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.catalog-table-wrap .product-row-action-group > form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.catalog-table-wrap .product-row-icon-button {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
}

.market-link-progress-list {
    display: grid;
    gap: 7px;
    margin-top: 12px;
}

.market-link-progress-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(160px, 2fr);
    align-items: center;
    gap: 8px;
    padding: 9px;
    border-radius: 8px;
    background: #f5f7fa;
}

.market-link-progress-item > strong {
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.market-link-progress-item.is-success { background: #ecfdf3; color: #087a45; }
.market-link-progress-item.is-error { background: #fff0f0; color: #b42318; }

/* Product detail marketLink manager */
.product-market-sync-summary {
    padding: 0 !important;
    overflow: hidden;
}

.market-link-manager-card {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.market-link-manager-heading,
.market-link-manager-heading > div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.market-link-manager-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 9px;
    background: #edf2ff;
    color: #244a9f;
}

.market-link-manager-heading h2 {
    margin: 1px 0 3px;
    font-size: 1rem;
    font-weight: 800;
}

.market-link-manager-heading p,
.market-link-manager-help {
    margin: 0;
    color: #7a879a;
    font-size: .76rem;
    line-height: 1.4;
}

.market-link-manager-count {
    flex: 0 0 auto;
    padding: 5px 8px;
    border-radius: 999px;
    background: #f1f4f8;
    color: #566478;
    font-size: .72rem;
    font-weight: 700;
}

.market-link-manager-links {
    display: grid;
    gap: 8px;
}

.market-link-manager-empty {
    display: grid;
    justify-items: center;
    gap: 5px;
    padding: 20px 12px;
    border: 1px dashed #d8e0eb;
    border-radius: 9px;
    background: #f8fafc;
    color: #8491a3;
    text-align: center;
}

.market-link-manager-empty strong { color: #526074; }
.market-link-manager-empty span { font-size: .76rem; }

.market-link-manager-link {
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 10px;
    border: 1px solid #dce4ef;
    border-radius: 9px;
    background: #fff;
}

.market-link-manager-link-main {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.market-link-manager-link.is-shopee { border-color: #ffd9c9; background: #fff8f5; }
.market-link-manager-link.is-lazada { border-color: #dfd2ff; background: #faf8ff; }

.market-link-manager-market-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 8px;
    background: #eef3fb;
    color: #41536c;
}

.market-link-manager-link-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.market-link-manager-link-copy strong,
.market-link-manager-link-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.market-link-manager-link-copy strong { font-size: .83rem; }
.market-link-manager-link-copy small { color: #7a8799; font-size: .7rem; }
.market-link-manager-link-copy .market-account-configured-name { font-size: .8rem; }
.market-link-manager-linked-icon {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    border-radius: 50%;
    background: #dcf7e8;
    color: #18a15f;
}

.market-link-manager-secondary-linked-icon { color: #18a15f; }

.market-link-manager-product-number {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 5px;
    color: #254536;
}

.market-link-manager-product-number i {
    flex: 0 0 auto;
    color: #638171;
    font-size: .7rem;
}

.market-link-manager-product-number strong {
    overflow: hidden;
    color: #254536;
    font-size: .78rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.market-link-manager-link-actions {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
}

.market-link-manager-link-actions > form {
    display: inline-flex;
    margin: 0;
}

.market-link-manager-icon-action,
.market-link-manager-publish-settings {
    display: inline-grid;
    width: 30px;
    height: 30px;
    padding: 0;
    place-items: center;
    border: 1px solid #cbd6e5;
    border-radius: 7px;
    background: #fff;
    color: #7185a5;
    box-shadow: 0 1px 2px rgba(31, 50, 81, .08);
}

.market-link-manager-icon-action:hover,
.market-link-manager-icon-action:focus-visible,
.market-link-manager-publish-settings:hover,
.market-link-manager-publish-settings:focus-visible {
    border-color: #8eaae0;
    background: #eef4ff;
    color: var(--accent);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(35, 105, 225, .12);
}

.market-link-manager-delete {
    border-color: #fecaca;
    background: #fff7f7;
    color: #ef4444;
}

.market-link-manager-delete:hover,
.market-link-manager-delete:focus-visible {
    border-color: #ef4444;
    background: #ef4444;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .14);
}

.market-link-manager-sync-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 7px;
    padding-top: 9px;
    border-top: 1px solid rgba(148, 163, 184, .22);
}

.market-link-manager-sync-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding-inline: 9px;
    font-size: .74rem;
    font-weight: 800;
}

.market-link-manager-open {
    width: 100%;
    min-height: 34px;
    height: 34px;
    padding-inline: 9px;
    font-size: .74rem;
    font-weight: 800;
}

.market-link-manager-open i { margin-right: 6px; }

.market-link-account-modal .modal-header p {
    margin: 4px 0 0;
    color: #7a8799;
    font-size: .78rem;
}

.market-link-auto-help-button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #cbd7eb;
    background: #fff;
    color: #4770b8;
    font-weight: 800;
}

.market-link-auto-help-button:hover,
.market-link-auto-help-button:focus-visible {
    border-color: #8da9da;
    background: #f5f8ff;
    color: #2759ad;
}

.market-link-auto-help-kicker {
    display: block;
    margin-bottom: 2px;
    color: #4777d4;
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .07em;
}

.market-link-auto-help-list {
    display: grid;
    gap: 9px;
}

.market-link-auto-help-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 12px;
    border: 1px solid #e0e7f1;
    border-radius: 9px;
    background: #fafbfd;
}

.market-link-auto-help-item > span {
    display: inline-grid;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 8px;
    background: #e9effc;
    color: #3567bd;
}

.market-link-auto-help-item > div {
    display: grid;
    gap: 3px;
}

.market-link-auto-help-item strong {
    color: #344054;
    font-size: .8rem;
}

.market-link-auto-help-item p {
    margin: 0;
    color: #6e7c90;
    font-size: .72rem;
    line-height: 1.45;
}

.market-link-auto-help-item a {
    color: #2759ad;
    font-weight: 850;
    text-decoration: none;
}

.market-link-auto-help-item em {
    color: #2759ad;
    font-style: normal;
    font-weight: 850;
}

.market-link-auto-help-item a:hover,
.market-link-auto-help-item a:focus-visible {
    text-decoration: underline;
}

.market-link-auto-help-warning {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    background: #fff7e8;
    color: #8a6110;
    font-size: .7rem;
}

.market-link-auto-help-warning a {
    color: #2759ad;
    font-weight: 850;
}

.market-link-auto-layer {
    position: fixed;
    z-index: 1090;
    width: min(300px, calc(100vw - 24px));
    padding: 14px;
    border: 1px solid #ccd8eb;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(29, 50, 84, .18);
}

.market-link-auto-layer[hidden] {
    display: none;
}

.market-link-auto-confirm {
    display: block;
    color: #344054;
    font-size: .82rem;
}

.market-link-auto-price-notice {
    display: block;
    margin-top: 7px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

.market-link-auto-price-notice[hidden] {
    display: none;
}

.market-link-auto-layer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 14px;
}

.market-link-auto-layer-actions .btn {
    min-height: 30px;
    padding: 4px 10px;
    font-size: .7rem;
}

.market-link-modal-fixed-account {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 62px;
    padding: 12px 14px;
    border: 1px solid #cbd8ed;
    border-radius: 10px;
    background: #f7f9fd;
}

.market-link-modal-fixed-account-copy {
    display: grid;
    flex: 1;
    gap: 4px;
    min-width: 0;
}

.market-link-modal-fixed-account-copy small {
    color: #7a8799;
    font-size: .72rem;
}

.market-sync-fixed-account {
    border-color: #cad7eb;
    background: #f8faff;
}

.market-country-select-button {
    cursor: pointer;
    font-family: inherit;
    transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}

.market-country-select-button > i {
    width: 0;
    overflow: hidden;
    color: #fff;
    font-size: .58rem;
    opacity: 0;
    transition: width .15s ease, opacity .15s ease;
}

.market-country-select-button:hover,
.market-country-select-button:focus-visible {
    border-color: #9bb2dd;
    background: #f3f6fd !important;
    outline: 0;
}

.market-country-select-button.is-selected {
    border-color: #4777d4;
    background: #315fae !important;
    color: #fff;
    box-shadow: 0 0 0 2px rgba(49, 95, 174, .1);
}

.market-country-select-button.is-selected > i {
    width: auto;
    opacity: 1;
}

.market-link-modal-product {
    display: grid;
    gap: 5px;
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid #e1e7f0;
    border-radius: 9px;
    background: #f8fafc;
}

.market-link-modal-product span {
    color: #78869a;
    font-size: .72rem;
    font-weight: 700;
}

.market-link-modal-product strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.market-link-modal-auto {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid #d8e4fb;
    border-radius: 9px;
    background: #f8faff;
}

.market-link-modal-auto[hidden] {
    display: none;
}

.market-link-modal-auto-heading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.market-link-modal-auto-label {
    margin-right: auto;
    color: #263b63;
    font-size: .84rem;
    font-weight: 800;
}

.market-link-modal-auto p {
    margin: 9px 0 0;
    padding-top: 9px;
    border-top: 1px solid #e2e9f7;
    color: #566987;
    font-size: .76rem;
    line-height: 1.5;
}

.market-link-modal-auto p[hidden] {
    display: none;
}

.market-link-modal-confirm {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 11px 12px;
    border: 1px solid #d8e4fb;
    border-radius: 9px;
    background: #f4f7ff;
    color: #31569f;
    font-size: .8rem;
}

.market-link-modal-confirm.is-success {
    border-color: #86efac;
    background: #ecfdf3;
    color: #087a45;
}

.market-link-publish-guide {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid #bfd3ff;
    border-radius: 9px;
    background: #f2f6ff;
    color: #244f9f;
    font-size: .8rem;
    line-height: 1.55;
}

.market-link-publish-guide[hidden] { display: none; }

.market-link-publish-guide > i {
    flex: 0 0 auto;
    margin-top: .2em;
    color: #376fd0;
}

@media (max-width: 1000px) {
    .collection-common-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-common-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-common-summary.product-summary-grid-cols-3,
    .product-common-summary.product-summary-grid-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-common-filter-row.market-link-filter-row { grid-template-columns: minmax(145px, .75fr) repeat(2, minmax(180px, 1fr)); }
    .market-link-filter-row .input-group { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
    .product-common-filter-row { grid-template-columns: 1fr; }
    .product-common-filter-row.market-link-filter-row { grid-template-columns: 1fr; }
    .market-link-filter-row .input-group { grid-column: auto; }
    .product-master-filter-row { grid-template-columns: 1fr; }
    .market-link-account-toolbar { top: 66px; grid-template-columns: 1fr; align-items: stretch; }
    .product-edit-layout.is-market-link-detail .product-edit-summary {
        top: auto;
        max-height: none;
        overflow: visible;
    }
    .market-link-account-toolbar-actions { display: grid; grid-template-columns: 1fr; }
    .market-link-account-toolbar-actions > .btn { width: 100%; }
    .market-link-sync-live-status { justify-content: center; }
    .product-foundation-steps { grid-template-columns: 1fr; gap: 8px; }
    .product-foundation-arrow {
        top: auto;
        right: 50%;
        bottom: -7px;
        z-index: 1;
        padding: 2px;
        background: #f8faff;
        transform: translateX(50%) rotate(90deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .market-account-selection-actions .market-link-sync-attention,
    .market-account-selection-actions .market-link-sync-attention i { animation: none; }
    .market-link-sync-live-icon .fa-spin { animation: none; }
    .market-link-catalog-list { animation: none; }
    .is-market-account-transitioning .market-link-catalog-list { transition: none; }
    .is-market-account-transitioning .market-link-account-toolbar.is-loading .market-account-dropdown-chevron { animation: none; }
}

@media (max-width: 640px) {
    .catalog-list-panel { padding: 12px; }
    .collection-common-summary { grid-template-columns: 1fr; }
    .market-link-progress-item { grid-template-columns: 1fr; }
    .market-sync-console-head { grid-template-columns: 34px minmax(0, 1fr); gap: 9px; padding: 10px; }
    .market-sync-status-icon { width: 34px; height: 34px; }
    .market-sync-counter { grid-column: 2; justify-self: start; }
    .market-sync-status-copy small { white-space: normal; }
}

/* Mobile UI hardening: keep shared navigation, forms, dialogs and data grids predictable. */
@media (max-width: 860px) {
    .dashboard-layout,
    .dashboard-header,
    .dashboard-body,
    .dashboard-main,
    .work-panel,
    .body-heading,
    .body-heading > *,
    .modal-content,
    .modal-body {
        min-width: 0;
    }

    .dashboard-logo {
        min-width: 0;
        overflow: hidden;
    }

    .dashboard-logo img {
        display: block;
        max-width: 100%;
        object-fit: contain;
    }

    .body-heading h1 {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .app-mobile-menu,
    .app-mobile-account {
        --bs-offcanvas-width: min(88vw, 340px);
    }

    .app-mobile-menu .offcanvas-body,
    .app-mobile-account .offcanvas-body {
        padding-bottom: max(16px, env(safe-area-inset-bottom));
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .modal-dialog,
    .market-fee-settings-modal .modal-dialog,
    .shopee-publish-manager-modal .modal-dialog {
        width: auto;
        max-width: calc(100vw - 16px) !important;
        margin: 8px;
    }

    .modal-content {
        max-height: calc(100dvh - 16px);
    }

    .modal-body {
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .board-table-wrap,
    .excel-product-sheet-wrap,
    .market-fee-settings-table-wrap,
    .excel-country-selector,
    .dashboard-chart {
        contain: inline-size;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        touch-action: pan-x pan-y;
    }

    .excel-product-sheet-wrap {
        height: calc(100dvh - 260px);
        min-height: 320px;
    }

    .excel-country-selector {
        scroll-padding-inline: 1px;
        scroll-snap-type: x proximity;
    }

    .excel-country-card {
        scroll-snap-align: start;
    }

    /* Keep an empty result visible even when its table is wider than the phone. */
    .board-table-wrap td[colspan] > .empty-state {
        position: sticky;
        left: 14px;
        width: calc(100vw - 56px);
        max-width: calc(100vw - 56px);
        margin-right: auto;
        margin-left: 0;
    }
}

@media (max-width: 680px) {
    .dashboard-body {
        padding-right: 14px;
        padding-left: 14px;
    }

    .body-heading {
        align-items: stretch;
    }

    .body-heading > div:first-child {
        min-width: 0;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 12px;
    }

    .modal-title {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .modal-footer {
        flex-wrap: wrap;
    }

    .modal-footer .btn {
        flex: 1 1 110px;
        min-width: 0;
    }

    /* A 16px form font prevents unwanted input zoom on iOS. Compact grid cells stay compact. */
    input.form-control:not(.excel-cell-input):not(.excel-market-price-input),
    select.form-select,
    textarea.form-control {
        font-size: 16px;
    }

    input,
    select,
    textarea,
    button {
        max-width: 100%;
    }

    .marketing-shop-selector .excel-country-card {
        min-width: max-content;
    }
}

@media (max-width: 360px) {
    .dashboard-header {
        gap: 6px;
    }

    .mobile-header-icon,
    .header-user-menu {
        width: 38px;
        min-width: 38px;
        height: 38px;
        min-height: 38px;
    }

    .body-heading h1 {
        font-size: 21px;
    }

    .work-panel {
        padding-right: 12px;
        padding-left: 12px;
    }

    .board-table-wrap td[colspan] > .empty-state {
        left: 12px;
        width: calc(100vw - 48px);
        max-width: calc(100vw - 48px);
    }
}
/* Shopee Voucher — live API list and editor */
.voucher-page-heading p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.voucher-panel,
.voucher-form-panel {
    display: grid;
    gap: 14px;
}

.voucher-live-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    background: #eff6ff;
    color: #315a9f;
    font-size: 12px;
    font-weight: 700;
}

.voucher-live-note > span:first-child {
    display: flex;
    align-items: center;
    gap: 7px;
}

.voucher-live-dot {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 3px 8px;
    border-radius: 999px;
    background: #dcfce7;
    color: #15803d;
    font-size: 9px;
    font-weight: 950;
    letter-spacing: .04em;
    white-space: nowrap;
}

.voucher-country-selector {
    margin: 0;
}

.voucher-country-box {
    display: grid;
    gap: 12px;
    padding: 13px;
    border: 1px solid #dbe5f2;
    border-radius: 12px;
    background: linear-gradient(145deg, #f8fbff 0%, #fff 55%);
    box-shadow: 0 4px 16px rgba(30, 64, 175, .05);
}

.voucher-country-head,
.voucher-country-actions,
.voucher-card-title-row,
.voucher-card-actions,
.voucher-code-row,
.voucher-period {
    display: flex;
    align-items: center;
}

.voucher-country-head {
    justify-content: space-between;
    gap: 12px;
}

.voucher-country-actions,
.voucher-card-actions {
    gap: 7px;
}

.voucher-country-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 900;
}

.voucher-status-tabs {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}

.voucher-status-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 6px 13px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
}

.voucher-status-tab b {
    min-width: 20px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
    text-align: center;
    font-size: 9px;
}

.voucher-status-tab.is-active {
    border-color: #93b4ff;
    background: #fff;
    color: #1d4ed8;
    box-shadow: 0 2px 8px rgba(37, 99, 235, .08);
}

.voucher-status-tab.is-active b {
    background: #dbeafe;
    color: #1d4ed8;
}

.voucher-search {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 150px 150px auto;
    align-items: end;
    gap: 8px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
}

.voucher-search label {
    display: grid;
    gap: 4px;
}

.voucher-search label > span {
    color: #64748b;
    font-size: 9px;
    font-weight: 850;
}

.voucher-search .form-control,
.voucher-search .input-group-text,
.voucher-search .btn {
    min-height: 34px;
    font-size: 11px;
}

.voucher-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.voucher-empty {
    grid-column: 1 / -1;
}

.voucher-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dfe7f1;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(15, 23, 42, .035);
}

.voucher-card-main {
    min-width: 0;
    padding: 12px;
}

.voucher-card-title-row {
    min-width: 0;
    gap: 7px;
}

.voucher-card-title-row > strong {
    overflow: hidden;
    min-width: 0;
    color: #1e293b;
    font-size: 13px;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.voucher-kind-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #fff1ed;
    color: #c2410c;
    font-size: 9px;
    font-weight: 900;
    white-space: nowrap;
}

.voucher-kind-badge.is-product {
    background: #ede9fe;
    color: #6d28d9;
}

.voucher-code-row {
    gap: 8px;
    margin-top: 7px;
}

.voucher-code-row code {
    padding: 3px 7px;
    border: 1px dashed #93c5fd;
    border-radius: 5px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 10px;
    font-weight: 900;
}

.voucher-code-row span {
    color: #94a3b8;
    font-size: 9px;
    font-weight: 750;
}

.voucher-card-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-top: 10px;
}

.voucher-card-metrics > span {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding: 7px;
    border-radius: 7px;
    background: #f8fafc;
}

.voucher-card-metrics small {
    color: #94a3b8;
    font-size: 8px;
    font-weight: 800;
}

.voucher-card-metrics b {
    overflow: hidden;
    color: #334155;
    font-size: 10px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.voucher-card-side {
    display: flex;
    min-width: 155px;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: 11px;
    border-left: 1px solid #e7edf5;
    background: #fbfdff;
}

.voucher-period {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
    color: #475569;
    font-size: 9px;
    font-weight: 800;
}

.voucher-period small {
    width: 100%;
    color: #94a3b8;
    text-align: right;
}

.voucher-card-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 29px;
    padding: 4px 8px;
    border-radius: 7px;
    font-size: 9px;
    font-weight: 900;
}

.voucher-shop-switch {
    padding: 13px;
    border: 1px solid #dbe5f2;
    border-radius: 10px;
    background: #f8fbff;
}

.voucher-shop-switch label {
    display: grid;
    max-width: 360px;
    gap: 5px;
}

.voucher-shop-switch label > span,
.voucher-field-grid label > span,
.voucher-early-row label > span {
    color: #475569;
    font-size: 11px;
    font-weight: 900;
}

.voucher-editor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
    gap: 14px;
}

.voucher-editor-main {
    display: grid;
    gap: 12px;
}

.voucher-form-card,
.voucher-preview-card {
    padding: 16px;
    border: 1px solid #dfe7f1;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(15, 23, 42, .035);
}

.voucher-form-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.voucher-form-title > div {
    display: grid;
    flex: 1;
    gap: 2px;
}

.voucher-form-title strong {
    color: #1e293b;
    font-size: 14px;
    font-weight: 950;
}

.voucher-form-title small {
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
}

.voucher-step {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    border-radius: 8px;
    background: #e8f0ff;
    color: #2250b5;
    font-size: 11px;
    font-weight: 950;
}

.voucher-type-options,
.voucher-display-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.voucher-type-option,
.voucher-display-options label {
    position: relative;
    cursor: pointer;
}

.voucher-type-option input,
.voucher-display-options input,
.voucher-reward-options input {
    position: absolute;
    opacity: 0;
}

.voucher-type-option > span,
.voucher-display-options label > span {
    display: grid;
    min-height: 86px;
    gap: 4px;
    padding: 13px;
    border: 1px solid #dfe7f1;
    border-radius: 9px;
    background: #fbfdff;
}

.voucher-type-option input:checked + span,
.voucher-display-options input:checked + span {
    border-color: #4f82f7;
    background: #f3f7ff;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, .1);
}

.voucher-type-option i,
.voucher-display-options i {
    color: #f05a32;
    font-size: 17px;
}

.voucher-type-option b,
.voucher-display-options b {
    color: #1e293b;
    font-size: 12px;
    font-weight: 950;
}

.voucher-type-option small,
.voucher-display-options small {
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
}

.voucher-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.voucher-field-grid label {
    display: grid;
    align-content: start;
    gap: 5px;
}

.voucher-field-grid label.is-wide {
    grid-column: 1 / -1;
}

.voucher-field-grid em {
    color: #ef4444;
    font-style: normal;
    font-size: 9px;
}

.voucher-field-grid label > small {
    color: #94a3b8;
    font-size: 9px;
    font-weight: 700;
}

.voucher-reward-options {
    display: flex;
    gap: 7px;
    margin-bottom: 12px;
}

.voucher-reward-options label > span {
    display: inline-flex;
    padding: 7px 12px;
    border: 1px solid #dfe7f1;
    border-radius: 8px;
    color: #64748b;
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
}

.voucher-reward-options input:checked + span {
    border-color: #4f82f7;
    background: #eef4ff;
    color: #1d4ed8;
}

.voucher-early-row {
    display: grid;
    grid-template-columns: auto minmax(220px, 320px);
    align-items: end;
    gap: 16px;
    margin-top: 12px;
    padding: 11px;
    border-radius: 8px;
    background: #f8fafc;
}

.voucher-early-row > label:last-child {
    display: grid;
    gap: 5px;
}

.voucher-selected-count {
    color: #2563eb;
    font-size: 10px;
}

.voucher-scope-notice {
    margin-bottom: 10px;
    padding: 9px 11px;
    border-radius: 8px;
    background: #eff6ff;
    color: #315a9f;
    font-size: 10px;
    font-weight: 750;
}

.voucher-product-toolbar {
    margin-bottom: 9px;
}

.voucher-product-list {
    display: grid;
    max-height: 430px;
    gap: 6px;
    overflow-y: auto;
}

.voucher-product-row {
    display: grid;
    grid-template-columns: auto 42px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.voucher-product-row:has(input:checked) {
    border-color: #93b4ff;
    background: #f7faff;
}

.voucher-product-thumb {
    display: grid;
    width: 42px;
    height: 42px;
    overflow: hidden;
    place-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    background: #f8fafc;
}

.voucher-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.voucher-product-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.voucher-product-copy strong {
    overflow: hidden;
    color: #334155;
    font-size: 11px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.voucher-product-copy small {
    color: #64748b;
    font-size: 9px;
    font-weight: 700;
}

.voucher-preview-card {
    position: sticky;
    top: 84px;
    display: grid;
    gap: 12px;
    background: linear-gradient(160deg, #fff 0%, #f7faff 100%);
}

.voucher-preview-card h2 {
    margin: 0;
    color: #1e293b;
    font-size: 15px;
    font-weight: 950;
}

.voucher-preview-ticket {
    position: relative;
    display: grid;
    gap: 7px;
    padding: 17px;
    overflow: hidden;
    border: 1px solid #ffcab9;
    border-radius: 11px;
    background: linear-gradient(145deg, #fff7f4, #fff);
}

.voucher-preview-ticket > i {
    color: #f05a32;
    font-size: 24px;
}

.voucher-preview-ticket strong {
    color: #1e293b;
    font-size: 13px;
    font-weight: 950;
}

.voucher-preview-ticket code {
    width: max-content;
    padding: 3px 7px;
    border-radius: 5px;
    background: #ffede7;
    color: #c2410c;
    font-size: 10px;
    font-weight: 900;
}

.voucher-preview-ticket b {
    color: #e44c25;
    font-size: 17px;
    font-weight: 950;
}

.voucher-preview-ticket small {
    color: #64748b;
    font-size: 10px;
    font-weight: 750;
}

.voucher-preview-card dl {
    display: grid;
    gap: 8px;
    margin: 0;
}

.voucher-preview-card dl > div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 7px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 9px;
}

.voucher-preview-card dt { color: #94a3b8; font-weight: 800; }
.voucher-preview-card dd { margin: 0; color: #334155; font-weight: 900; text-align: right; }
.voucher-preview-card > p { margin: 0; color: #64748b; font-size: 9px; font-weight: 700; }

.voucher-form-actions {
    position: sticky;
    bottom: 0;
    z-index: 10;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
    padding: 12px;
    border: 1px solid #dfe7f1;
    border-radius: 10px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 -5px 18px rgba(15, 23, 42, .06);
    backdrop-filter: blur(8px);
}

.voucher-create-modal .modal-dialog {
    max-width: min(1180px, calc(100vw - 32px));
}

.voucher-create-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, .28);
}

.voucher-create-modal .modal-header {
    align-items: flex-start;
    padding: 20px 24px 16px;
    border-bottom-color: #dbe5f2;
}

.voucher-create-modal .modal-header small {
    display: block;
    margin-bottom: 3px;
    color: #5f6f89;
    font-size: 11px;
    font-weight: 900;
}

.voucher-create-modal .modal-title {
    color: #172033;
    font-size: 24px;
    font-weight: 950;
}

.voucher-create-modal .modal-header p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.voucher-create-modal .modal-body {
    display: grid;
    gap: 12px;
    padding: 16px 20px;
    background: #f7f9fc;
}

.voucher-modal-section {
    padding: 15px;
    border: 1px solid #dbe5f2;
    border-radius: 12px;
    background: #fff;
}

.voucher-create-products {
    min-height: 220px;
}

.voucher-create-product-toolbar {
    display: grid;
    grid-template-columns: auto minmax(240px, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.voucher-select-all {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 7px;
    padding: 0 11px;
    border: 1px solid #d6dfeb;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.voucher-create-product-list {
    max-height: 360px;
    margin-top: 10px;
    padding-right: 4px;
    overflow-y: auto;
}

.voucher-create-product-list .voucher-product-row {
    grid-template-columns: auto 38px minmax(0, 1fr);
}

.voucher-candidate-loading {
    min-height: 160px;
}

.voucher-create-footer {
    gap: 9px;
    padding: 13px 20px;
    border-top-color: #dbe5f2;
}

.voucher-create-footer > span {
    min-width: 0;
    margin-right: auto;
    color: #52627a;
    font-size: 11px;
    font-weight: 850;
}

.voucher-create-footer .btn {
    min-width: 112px;
}

@media (max-width: 1199.98px) {
    .voucher-list { grid-template-columns: 1fr; }
}

@media (max-width: 991.98px) {
    .voucher-editor-layout { grid-template-columns: 1fr; }
    .voucher-preview-card { position: static; order: -1; }
    .voucher-search { grid-template-columns: 1fr 1fr; }
    .voucher-search .input-group { grid-column: 1 / -1; }
}

@media (max-width: 767.98px) {
    .voucher-country-head,
    .voucher-country-actions { align-items: stretch; flex-direction: column; }
    .voucher-country-actions .btn { width: 100%; }
    .voucher-status-tabs { overflow-x: auto; }
    .voucher-search,
    .voucher-field-grid,
    .voucher-type-options,
    .voucher-display-options { grid-template-columns: 1fr; }
    .voucher-card { grid-template-columns: 1fr; }
    .voucher-card-side { min-width: 0; align-items: stretch; border-top: 1px solid #e7edf5; border-left: 0; }
    .voucher-card-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .voucher-period { justify-content: flex-start; }
    .voucher-period small { text-align: left; }
    .voucher-early-row { grid-template-columns: 1fr; }
    .voucher-create-modal .modal-dialog { max-width: calc(100vw - 16px); margin: 8px auto; }
    .voucher-create-modal .modal-header { padding: 16px; }
    .voucher-create-modal .modal-body { padding: 12px; }
    .voucher-create-product-toolbar { grid-template-columns: 1fr; }
    .voucher-select-all { justify-content: center; }
    .voucher-create-footer { align-items: stretch; flex-wrap: wrap; }
    .voucher-create-footer > span { width: 100%; margin: 0 0 2px; }
    .voucher-create-footer .btn { flex: 1 1 0; }
}
.marketing-product-add-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 900;
}

.marketing-product-add-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 13px;
}

.marketing-product-add-heading {
    display: grid;
    gap: 3px;
}

.marketing-product-add-heading > span {
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
}

.marketing-product-add-heading h2 {
    color: #1e293b;
    font-weight: 950;
}

.marketing-product-add-body {
    display: grid;
    gap: 10px;
    padding: 15px;
    background: #f8fafc;
}

.marketing-product-add-guide {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    padding: 9px 11px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    color: #315a9f;
    font-size: 10px;
    font-weight: 750;
}

.marketing-product-add-search {
    position: relative;
}

.marketing-product-add-search > i {
    position: absolute;
    top: 50%;
    left: 11px;
    z-index: 2;
    color: #94a3b8;
    font-size: 11px;
    transform: translateY(-50%);
}

.marketing-product-add-search .form-control {
    min-height: 36px;
    padding-left: 32px;
    font-size: 11px;
}

.marketing-product-select-all {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 7px;
    min-height: 28px;
    padding: 3px 6px;
    color: #334155;
    font-size: 10px;
    font-weight: 850;
    cursor: pointer;
    user-select: none;
}

.marketing-product-select-all .form-check-input {
    width: 15px;
    height: 15px;
    margin: 0;
    cursor: pointer;
}

.marketing-product-select-all:has(.form-check-input:disabled) {
    color: #94a3b8;
    cursor: not-allowed;
}

.marketing-product-select-all .form-check-input:disabled {
    cursor: not-allowed;
}

.marketing-candidate-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 32px;
    color: #64748b;
    font-size: 12px;
}

.marketing-candidate-pagination[hidden] {
    display: none;
}

.marketing-candidate-pagination span {
    text-align: center;
}

.marketing-product-candidate-list {
    display: grid;
    max-height: min(52vh, 520px);
    gap: 6px;
    padding: 3px;
    overflow-y: auto;
}

.marketing-product-candidate {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 10px 11px;
    border: 1px solid #dfe7f1;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color .14s ease, background .14s ease;
}

.marketing-product-candidate:has(input:checked) {
    border-color: #4f82f7;
    background: #f3f7ff;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, .08);
}

.marketing-product-candidate.is-disabled {
    cursor: not-allowed;
    opacity: .62;
}

.marketing-product-candidate-copy {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    align-items: center;
    min-width: 0;
    gap: 10px;
}

.marketing-product-candidate-copy b {
    color: #315a9f;
    font-size: 10px;
    font-weight: 900;
}

.marketing-product-candidate-copy strong {
    overflow: hidden;
    color: #334155;
    font-size: 11px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.marketing-product-candidate-copy small {
    grid-column: 2;
    color: #b45309;
    font-size: 9px;
    font-weight: 750;
}

.marketing-product-candidate-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    gap: 9px;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.marketing-product-add-footer > span {
    margin-right: auto;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.marketing-product-add-footer > span b {
    color: #2563eb;
}

.excel-product-sheet tbody tr.is-marketing-staged-new > td:not([data-excel-country-col]) {
    background: #f0fdf8;
}

.excel-product-sheet tbody tr.is-marketing-staged-new > td.excel-row-number.is-product-group-cell {
    box-shadow: inset 3px 0 0 #10b981;
}

.excel-product-sheet tbody tr.is-marketing-staged-new td.excel-sticky-product-title,
.excel-product-sheet tbody tr.is-marketing-staged-new td.excel-sticky-option-title {
    background: #f0fdf8;
}

.excel-product-sheet tbody tr.is-marketing-staged-new > td:not([data-excel-country-col]) .excel-cell-input:not(:focus) {
    background: rgba(255, 255, 255, .46);
}

.marketing-promotion-pagination {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}

.marketing-product-mode-tabs {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.marketing-product-mode-tabs[hidden] {
    display: none;
}

.marketing-product-mode-tabs b {
    margin-left: 3px;
}

.marketing-promotion-pagination[hidden] {
    display: none;
}

.marketing-promotion-page-controls {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.marketing-promotion-page-controls .btn {
    display: inline-grid;
    width: 30px;
    min-width: 30px;
    height: 30px;
    padding: 0;
    place-items: center;
}

.marketing-promotion-page-controls > span {
    min-width: 48px;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
}

.marketing-promotion-page-controls strong {
    color: #1d4ed8;
}

.marketing-promotion-apply-scope {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 1px;
    padding: 4px 7px;
    border: 1px solid #cbdaf5;
    border-radius: 999px;
    color: #315796;
    background: #f2f6fd;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.marketing-promotion-apply-scope i {
    color: #3970cf;
    font-size: 9px;
}

.marketing-promotion-product-kind {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 5px;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.marketing-promotion-product-kind i {
    color: #2563eb;
}

.marketing-promotion-product-kind.has-new-products {
    color: #047857;
}

.marketing-promotion-product-kind.has-new-products i {
    color: #10b981;
}

@media (max-width: 767.98px) {
    .marketing-product-candidate-copy { grid-template-columns: 1fr; gap: 3px; }
    .marketing-product-candidate-copy small { grid-column: 1; }
    .marketing-promotion-pagination {
        width: 100%;
        flex-wrap: wrap;
        justify-content: space-between;
    }
}
.excel-product-sheet tbody tr.is-marketing-apply-error > td {
    background: #fff1f2;
}

.excel-product-sheet tbody tr.is-marketing-apply-error > td.excel-row-number.is-product-group-cell {
    box-shadow: inset 3px 0 0 #e11d48;
}

.product-purchase-price-toolbar { gap: .75rem; }
.product-purchase-price-dropdown { display:flex; align-items:center; gap:.5rem; min-height:34px; font-weight:700; border-color:#b8c8eb; color:#173b8f; background:#fff; }
.product-purchase-price-dropdown .fa-chevron-down { margin-left:.15rem; font-size:.68rem; }
.product-purchase-price-menu { width:330px; max-width:calc(100vw - 2rem); padding:.45rem; border:1px solid #d8e1f3; border-radius:14px; box-shadow:0 16px 36px rgba(18,43,91,.15); }
.product-purchase-price-menu .dropdown-item { display:flex; gap:.7rem; align-items:center; padding:.72rem; border-radius:10px; white-space:normal; }
.product-purchase-price-menu .dropdown-item:hover { background:#f1f5ff; color:#152d68; }
.product-purchase-price-menu .dropdown-item > span:last-child { display:grid; gap:.15rem; }
.product-purchase-price-menu small { color:#75829a; font-size:.75rem; }
.product-purchase-price-menu-icon { display:grid; place-items:center; flex:0 0 34px; height:34px; border-radius:9px; background:#fff1eb; color:#e85723; }
.product-purchase-price-menu-icon.is-excel { background:#e8f7ef; color:#148553; }
.purchase-price-modal .modal-content { border:1px solid #cad7f1; border-radius:18px; box-shadow:0 24px 70px rgba(13,35,80,.23); overflow:hidden; }
.purchase-price-modal .modal-header { padding:1.35rem 1.5rem 1rem; border:0; }
.purchase-price-modal .modal-title { margin-top:.2rem; color:#101c35; font-size:1.25rem; font-weight:800; }
.purchase-price-modal-kicker { color:#315fc8; font-size:.7rem; font-weight:800; letter-spacing:.1em; }
.purchase-price-modal-kicker.is-excel { color:#148553; }
.purchase-price-modal .modal-body { padding:.25rem 1.5rem 1.25rem; }
.purchase-price-modal .modal-footer { padding:1rem 1.5rem; background:#f7f9fd; border-color:#e2e8f4; }
.purchase-price-modal-summary { display:flex; gap:.85rem; padding:1rem; border:1px solid #d8e3f8; border-radius:13px; background:#f4f7fd; }
.purchase-price-modal-summary > span { display:grid; place-items:center; flex:0 0 40px; height:40px; border-radius:11px; background:#dfe9ff; color:#2149a0; }
.purchase-price-modal-summary strong { display:block; color:#16264a; }
.purchase-price-modal-summary p { margin:.3rem 0 0; color:#66738a; font-size:.86rem; line-height:1.55; }
.purchase-price-rules { display:grid; gap:.55rem; margin:1rem 0 0; padding:0; list-style:none; color:#536078; font-size:.84rem; }
.purchase-price-rules i { width:22px; color:#2c61cd; }
.purchase-price-progress { margin-top:1rem; padding:.9rem 1rem; border-radius:12px; background:#f5f7fb; }
.purchase-price-progress > div:first-child { display:flex; justify-content:space-between; color:#293955; font-size:.84rem; }
.purchase-price-progress .progress { height:6px; margin:.65rem 0; }
.purchase-price-progress p { margin:0; color:#758096; font-size:.76rem; }
.purchase-price-excel-copy { color:#5e6b82; line-height:1.65; }
.purchase-price-template-download { display:flex; align-items:center; gap:.8rem; margin:1rem 0; padding:.9rem 1rem; border:1px solid #cbd9f1; border-radius:13px; color:#173b8f; text-decoration:none; background:#f7f9fe; }
.purchase-price-template-download > span { display:grid; place-items:center; width:38px; height:38px; border-radius:10px; background:#e3ebfb; }
.purchase-price-template-download div { display:grid; flex:1; }
.purchase-price-template-download small { color:#78849a; }
.purchase-price-file-field { display:grid; place-items:center; padding:1.2rem; border:1px dashed #9eb4dd; border-radius:13px; background:#fbfcff; cursor:pointer; text-align:center; color:#334565; }
.purchase-price-file-field > span { color:#315fc8; font-size:1.35rem; }
.purchase-price-file-field small,.purchase-price-file-field em { color:#7d899d; font-size:.76rem; font-style:normal; }
.purchase-price-file-field input { position:absolute; width:1px; height:1px; opacity:0; }
.purchase-price-file-field em { margin-top:.4rem; color:#315fc8; }
.purchase-price-result { margin-top:.8rem; padding:.75rem; border-radius:10px; background:#eaf8f1; color:#176b48; font-size:.82rem; font-weight:700; }
.purchase-price-result details { margin-top:.55rem; font-weight:500; }
.purchase-price-result summary { cursor:pointer; }
.purchase-price-result ul { max-height:120px; margin:.45rem 0 0; padding-left:1.15rem; overflow:auto; }
.product-price-modal-open {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border: 1px solid #c9d6f2;
    border-radius: 9px;
    color: #173b91;
    background: #f7f9ff;
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.product-price-modal-open:hover:not(:disabled) {
    border-color: #5377ce;
    background: #edf3ff;
    transform: translateY(-1px);
}

.product-price-modal-open:disabled { opacity: .42; cursor: not-allowed; }
.product-table.market-link-common-table .product-market-price-column { width: 76px !important; text-align: center; }

.product-price-modal .modal-dialog { max-width: 1120px; }
.product-price-modal .modal-content { border: 1px solid #bdcbed; border-radius: 20px; overflow: hidden; }
.product-price-modal .modal-header { padding: 20px 24px; border-bottom-color: #e0e7f5; background: #fbfcff; }
.product-price-modal .modal-title { margin: 2px 0 0; color: #111d36; font-size: 1.32rem; font-weight: 800; }
.product-price-modal-kicker { color: #24489d; font-size: .7rem; font-weight: 800; letter-spacing: .12em; }
.product-price-modal .modal-body { padding: 20px 24px 24px; background: #f5f7fc; }
.product-price-modal .modal-footer { padding: 14px 24px; border-top-color: #e0e7f5; background: #fff; }

.product-price-modal-loading,
.product-price-modal-error {
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #60708f;
}
.product-price-modal-loading i { color: #2856bd; }
.product-price-modal-error { color: #b42318; }

.product-price-modal-content { display: grid; gap: 11px; }
.product-price-modal-section {
    border: 1px solid #d8e1f3;
    border-radius: 15px;
    background: #fff;
}
.product-price-modal-thumbnail { width: 48px; height: 48px; display: grid; place-items: center; overflow: hidden; border: 1px solid #dce4f1; border-radius: 10px; color: #9aa7bb; background: #f7f9fc; }
.product-price-modal-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.product-price-modal-product-copy { min-width: 0; display: grid; gap: 4px; }
.product-price-modal-product-copy > strong { color: #15213a; font-size: .98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-price-modal-meta { display: flex; flex-wrap: wrap; gap: 7px 14px; color: #71809b; font-size: .76rem; }
.product-price-modal-meta span { display: inline-flex; align-items: center; gap: 5px; }
.product-price-modal-meta .market-account-identity { min-width: 0; }
.product-price-modal-meta .is-linked { color: #087f5b; }
.product-price-modal-meta .is-unlinked { color: #7b879d; }

.product-price-modal-section { padding: 16px; }
.product-price-modal-section-heading { margin-bottom: 13px; display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.product-price-modal-section-heading > div { display: grid; gap: 2px; }
.product-price-modal-section-heading span { color: #31529b; font-size: .7rem; font-weight: 800; }
.product-price-modal-section-heading strong { color: #18243a; font-size: .96rem; }
.product-price-modal-section-heading > small { color: #7a879e; font-size: .72rem; }
.product-price-modal-section-guides { display: grid; justify-items: end; gap: 5px; min-width: 0; }
.product-price-modal-section-guides > small { color: #7a879e; font-size: .72rem; }
.product-price-promotion-recommendation {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 9px;
    border: 1px solid #f1c77f;
    border-radius: 7px;
    background: #fff8e9;
    color: #8b5708 !important;
    font-size: .74rem !important;
    font-weight: 900;
    line-height: 1.35;
}
.product-price-promotion-recommendation i { color: #d58208; font-size: .7rem; }

.product-price-option-summary { padding: 10px 12px; display: grid; grid-template-columns: 48px minmax(210px, 1.45fr) minmax(420px, 2fr); align-items: center; gap: 11px; }
.product-price-option-summary dl { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #e1e7f1; border-radius: 9px; overflow: hidden; }
.product-price-option-summary dl > div { min-width: 0; padding: 7px 9px; display: grid; gap: 2px; border-right: 1px solid #e1e7f1; background: #fafbfe; }
.product-price-option-summary dl > div:last-child { border-right: 0; }
.product-price-option-summary dt { color: #7d8aa1; font-size: .68rem; font-weight: 700; }
.product-price-option-summary dd { margin: 0; color: #25324a; font-size: .8rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-price-option-summary dd.is-linked { color: #087f5b; }
.product-price-option-summary dd.is-unlinked { color: #7b879d; }

.product-price-basic-table-wrap { overflow-x: auto; border: 1px solid #dce4f0; border-radius: 10px; background: #fff; }
.product-price-basic-table { width: 100%; min-width: 720px; table-layout: fixed; border-collapse: collapse; }
.product-price-basic-table th { padding: 7px 8px; color: #52617b; font-size: .67rem; font-weight: 750; text-align: left; white-space: nowrap; background: #f4f7fc; }
.product-price-basic-table th:nth-child(1) { width: 22%; }
.product-price-basic-table th:nth-child(2) { width: 20%; }
.product-price-basic-table th:nth-child(3) { width: 9%; }
.product-price-basic-table th:nth-child(4),
.product-price-basic-table th:nth-child(5) { width: 24.5%; }
.product-price-basic-table th small { color: #8a96aa; }
.product-price-basic-table td { min-width: 0; padding: 6px 8px; color: #52617b; font-size: .72rem; vertical-align: middle; border-top: 1px solid #e5eaf2; }
.product-price-basic-table td > strong,
.product-price-basic-table td > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-price-basic-table td > strong { color: #263550; font-size: .75rem; }
.product-price-compact-input { display: grid; grid-template-columns: minmax(0, 1fr) 30px; gap: 5px; }
.product-price-compact-input .form-control,
.product-price-shop-row .form-control { height: 30px; padding: 4px 7px; border-color: #d5deeb; border-radius: 6px; font-size: .72rem; background: #fbfcff; }
.product-price-compact-input .btn,
.product-price-shop-save { width: 30px; min-width: 30px; height: 30px; padding: 0; display: inline-grid; place-items: center; border-radius: 6px; font-size: .7rem; }

.product-price-shop-table-wrap { overflow-x: auto; border: 1px solid #dce4f0; border-radius: 11px; background: #fff; }
.product-price-shop-table { width: 100%; min-width: 860px; table-layout: fixed; border-collapse: collapse; }
.product-price-shop-table th { padding: 7px 7px; color: #52617b; font-size: .67rem; font-weight: 750; text-align: left; white-space: nowrap; background: #f4f7fc; }
.product-price-shop-table th:nth-child(1) { width: 14%; }
.product-price-shop-table th:nth-child(2) { width: 34px; text-align: center; }
.product-price-shop-table th:nth-child(3) { width: 20%; }
.product-price-shop-table th:nth-child(4) { width: 14%; }
.product-price-shop-table th:nth-child(5) { width: 11%; }
.product-price-shop-table th:nth-child(6) { width: 14%; }
.product-price-shop-table th:nth-child(7) { width: 11%; }
.product-price-shop-table th:nth-child(8) { width: 36px; }
.product-price-shop-table th small { color: #8a96aa; }
.product-price-shop-row td { padding: 5px 6px; vertical-align: middle; border-top: 1px solid #e5eaf2; }
.product-price-shop-row td:last-child { padding-left: 0; text-align: center; }
.product-price-shop-row:hover td { background: #fbfcff; }
.product-price-shop-row.is-shop-first td { border-top-color: #cbd6e8; }
.product-price-shop-empty { min-height: 76px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #748198; font-size: .78rem; background: #fafbfe; }
.product-price-shop-empty i { color: #4966a5; }
.product-price-shop-identity { min-width: 0; display: grid; gap: 1px; }
.product-price-shop-identity strong,
.product-price-shop-identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-price-shop-identity strong { color: #1d2b45; font-size: .8rem; }
.product-price-shop-identity strong > span { margin-right: 5px; color: #24499c; font-size: .65rem; font-weight: 850; letter-spacing: .02em; }
.product-price-shop-identity small { color: #8a96aa; font-size: .64rem; }
.product-price-shop-status-cell { text-align: center; }
.product-price-shop-status { display: inline-grid; place-items: center; color: #8692a7; font-size: .78rem; }
.product-price-shop-row.is-linked .product-price-shop-status { color: #087f5b; }
.product-price-shop-option { overflow: hidden; color: #33435f; font-size: .72rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.product-price-shop-unlinked { color: #6f7d94; font-size: .72rem; font-weight: 700; text-align: center; background: #f7f9fc; }
.product-price-shop-unlinked i { margin-right: 5px; color: #8494af; }
.product-price-shop-row .form-control:disabled { color: #8490a5; background: #f2f4f8; opacity: 1; cursor: not-allowed; }
.product-price-shop-row input[readonly] { color: #28498e; font-weight: 750; background: #f0f4fc; }
.product-price-shop-row input.is-loading { color: transparent; background-image: linear-gradient(90deg, #f0f4fc 25%, #e1e9f7 50%, #f0f4fc 75%); background-size: 200% 100%; animation: product-price-loading 1.1s linear infinite; }
.product-price-promotion-value { width: 100%; min-width: 0; height: 30px; padding: 0 5px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid #d5deeb; border-radius: 6px; background: #fbfcff; }
.product-price-promotion-value strong { min-width: 0; overflow: hidden; color: #465674; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.product-price-shop-row.has-active-promotion .product-price-promotion-value { border-color: #f3c48d; color: #a65a00; background: #fff8ed; }
.product-price-shop-row.has-active-promotion .product-price-promotion-value strong { color: #a65a00; }
.product-price-shop-actions { min-height: 30px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.product-price-shop-result { display: inline-grid; place-items: center; font-size: .72rem; cursor: help; }
.product-price-shop-result[hidden] { display: none !important; }
.product-price-shop-result.is-success { color: #087f5b; }
.product-price-shop-result.is-error { color: #d92d20; }
.product-price-shop-save[hidden] { display: none !important; }
.product-price-shop-edit { width: 30px; min-width: 30px; height: 30px; padding: 0; display: inline-grid; place-items: center; border: 1px solid #a9bee9; border-radius: 6px; color: #24499c; background: #eef3ff; font-size: .7rem; }
.product-price-shop-edit:hover:not(:disabled) { border-color: #5279d1; color: #173b91; background: #e3ecff; }
.product-price-shop-edit.is-locked:disabled { border-color: #f0c48f; color: #b76808; background: #fff6e8; opacity: 1; cursor: not-allowed; }
.product-price-compact-input .btn:disabled,
.product-price-shop-save:disabled { color: #97a2b6; border-color: #e1e5ed; background: #eef1f6; opacity: 1; box-shadow: none; }
.product-price-compact-input .btn.is-saved,
.product-price-shop-save.is-saved { border-color: #0b9568; background: #0b9568; }
.product-price-compact-input .btn.is-error,
.product-price-shop-save.is-error { border-color: #d92d20; background: #d92d20; }

@keyframes product-price-loading { to { background-position: -200% 0; } }

@media (max-width: 900px) {
    .product-price-option-summary { grid-template-columns: 48px minmax(0, 1fr); }
    .product-price-option-summary dl { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .product-price-modal .modal-body { padding: 14px; }
    .product-price-option-summary dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-price-option-summary dl > div:nth-child(2n) { border-right: 0; }
    .product-price-option-summary dl > div { border-bottom: 1px solid #e1e7f1; }
    .product-price-option-summary dl > div:nth-last-child(-n+2) { border-bottom: 0; }
    .product-price-modal-section-heading { align-items: flex-start; flex-direction: column; }
    .product-price-modal-section-guides { justify-items: start; }
}
.ops-dashboard-heading {
    align-items: flex-end;
    margin-bottom: 22px;
}

.ops-dashboard-heading-compact {
    min-height: 42px;
    justify-content: flex-end;
    margin-bottom: 14px;
}

.ops-dashboard-heading-compact > div:first-child {
    display: none;
}

.ops-dashboard-heading > div:first-child > p:last-child {
    margin: 8px 0 0;
    color: #65758d;
    font-size: 14px;
}

.ops-dashboard-heading-actions {
    display: flex;
    gap: 10px;
}

.ops-dashboard-heading-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding-inline: 18px;
}

.ops-dashboard-shell > .async-list-loader {
    min-height: 650px;
}

.ops-dashboard-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "products orders";
    align-items: start;
    gap: 26px;
    position: relative;
}

.ops-dashboard-column {
    min-width: 0;
}

.ops-dashboard-order-column {
    grid-area: orders;
}

.ops-dashboard-product-column {
    grid-area: products;
}

.ops-dashboard-column-heading {
    min-height: 64px;
    padding: 0 4px 14px;
}

.ops-dashboard-column-heading h1 {
    margin: 0;
    color: #182334;
    font-size: 24px;
    font-weight: 850;
    letter-spacing: -.035em;
}

.ops-dashboard-column-heading p {
    margin: 5px 0 0;
    color: #77869a;
    font-size: 13px;
}

.ops-dashboard-content.is-refreshing {
    pointer-events: none;
}

.ops-dashboard-content.is-refreshing::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 30;
    border-radius: 20px;
    background: rgba(247, 249, 253, .74);
    backdrop-filter: blur(2px);
}

.ops-dashboard-content.is-refreshing::after {
    content: "";
    position: fixed;
    z-index: 31;
    top: 48%;
    left: 50%;
    width: 34px;
    height: 34px;
    margin: -17px;
    border: 3px solid #dce7fa;
    border-top-color: #2d67c7;
    border-radius: 50%;
    animation: ops-dashboard-spin .75s linear infinite;
}

@keyframes ops-dashboard-spin {
    to { transform: rotate(360deg); }
}

.ops-dashboard-section {
    padding: 26px;
    border: 1px solid #dfe7f2;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(36, 56, 87, .055);
}

.ops-dashboard-orders {
    border-top: 3px solid #356fd0;
}

.ops-dashboard-products {
    border-top: 3px solid #25a779;
}

.ops-dashboard-content .ops-order-priority,
.ops-dashboard-content .ops-order-detail-grid,
.ops-dashboard-content .ops-product-detail-grid {
    grid-template-columns: 1fr;
}

.ops-dashboard-content .ops-dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ops-dashboard-content .ops-product-recent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ops-dashboard-content .ops-order-alerts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ops-dashboard-content .ops-order-alerts > a {
    align-items: flex-start;
    flex-direction: column;
}

.ops-dashboard-content .ops-order-alerts > a > strong {
    align-self: flex-end;
}

.ops-dashboard-section-head,
.ops-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.ops-dashboard-section-head {
    margin-bottom: 22px;
}

.ops-dashboard-section-head h2,
.ops-panel-head h3 {
    margin: 0;
    color: #182334;
    font-weight: 800;
    letter-spacing: -.025em;
}

.ops-dashboard-section-head h2 {
    margin-top: 5px;
    font-size: 24px;
}

.ops-dashboard-section-head p,
.ops-panel-head p {
    margin: 6px 0 0;
    color: #78869a;
    font-size: 13px;
}

.ops-dashboard-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #2c64c3;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
}

.ops-dashboard-section-kicker.is-product {
    color: #16845f;
}

.ops-dashboard-period {
    display: inline-flex;
    padding: 4px;
    border: 1px solid #dce5f1;
    border-radius: 12px;
    background: #f5f8fc;
}

.ops-dashboard-period button {
    min-width: 58px;
    height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #6b7890;
    font-size: 12px;
    font-weight: 700;
}

.ops-dashboard-period button.is-active {
    background: #fff;
    color: #214f9e;
    box-shadow: 0 3px 10px rgba(38, 70, 120, .12);
}

.ops-order-priority {
    display: grid;
    grid-template-columns: minmax(270px, .9fr) minmax(0, 2.1fr);
    gap: 14px;
}

.ops-order-focus-card {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 140px;
    padding: 24px;
    border: 1px solid #c9dcfb;
    border-radius: 17px;
    background: linear-gradient(135deg, #edf5ff 0%, #f8fbff 100%);
    color: inherit;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}

.ops-order-focus-card:hover {
    transform: translateY(-2px);
    color: inherit;
    box-shadow: 0 12px 26px rgba(44, 100, 195, .13);
}

.ops-order-focus-icon {
    display: grid;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 16px;
    background: #2864c8;
    color: #fff;
    font-size: 22px;
    box-shadow: 0 9px 20px rgba(40, 100, 200, .22);
}

.ops-order-focus-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.ops-order-focus-copy small {
    color: #3c629e;
    font-size: 12px;
    font-weight: 800;
}

.ops-order-focus-copy strong {
    margin: 2px 0;
    color: #173f82;
    font-size: 36px;
    line-height: 1.1;
}

.ops-order-focus-copy strong em {
    margin-left: 4px;
    font-size: 14px;
    font-style: normal;
}

.ops-order-focus-copy > span {
    color: #6b7e9d;
    font-size: 12px;
}

.ops-card-arrow {
    color: #6c8fc6;
}

.ops-order-alerts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.ops-order-alerts > a {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px;
    border: 1px solid #e3e8f0;
    border-radius: 15px;
    background: #fbfcfe;
    color: inherit;
    text-decoration: none;
    transition: border-color .18s ease, background .18s ease;
}

.ops-order-alerts > a:hover {
    border-color: #c9d8ec;
    background: #f7faff;
}

.ops-order-alerts > a.is-urgent {
    border-color: #f1c7c7;
    background: #fff8f8;
}

.ops-order-alerts > a > span {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
}

.ops-order-alerts i {
    grid-row: span 2;
    color: #637791;
}

.ops-order-alerts .is-urgent i,
.ops-order-alerts .is-urgent > strong {
    color: #ce424c;
}

.ops-order-alerts b {
    color: #29374c;
    font-size: 13px;
}

.ops-order-alerts small {
    margin-top: 3px;
    color: #8a96a7;
    font-size: 11px;
}

.ops-order-alerts > a > strong {
    color: #25354e;
    font-size: 25px;
}

.ops-dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.ops-dashboard-metrics > a {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid #e3e8f0;
    border-radius: 15px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}

.ops-dashboard-metrics > a:hover {
    transform: translateY(-2px);
    color: inherit;
    box-shadow: 0 9px 22px rgba(38, 58, 87, .08);
}

.ops-metric-icon {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    background: #edf3fd;
    color: #3569bd;
}

.ops-metric-icon.is-new { background: #fff3df; color: #d57c13; }
.ops-metric-icon.is-shipping { background: #e9f6fb; color: #2385a8; }
.ops-metric-icon.is-complete { background: #e8f7f1; color: #16845f; }
.ops-metric-icon.is-warning { background: #fff2ec; color: #d65c32; }

.ops-dashboard-metrics > a > span:last-child {
    min-width: 0;
    line-height: 1;
}

.ops-dashboard-metrics small {
    display: block;
    margin-bottom: 7px;
    overflow: hidden;
    color: #78869a;
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ops-dashboard-metrics strong {
    color: #1c293a;
    font-size: 26px;
}

.ops-dashboard-metrics em {
    margin-left: 4px;
    color: #8591a3;
    font-size: 11px;
    font-style: normal;
}

.ops-dashboard-split {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.ops-order-detail-grid {
    grid-template-columns: minmax(0, 1.65fr) minmax(330px, .85fr);
}

.ops-product-detail-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr);
}

.ops-dashboard-panel {
    min-width: 0;
    padding: 20px;
    border: 1px solid #e3e8f0;
    border-radius: 16px;
    background: #fff;
}

.ops-panel-head {
    margin-bottom: 17px;
}

.ops-panel-head h3 {
    font-size: 16px;
}

.ops-panel-head > a {
    color: #5b7194;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.ops-panel-head > strong {
    padding: 5px 10px;
    border-radius: 999px;
    background: #eff4fa;
    color: #66768c;
    font-size: 12px;
}

.ops-panel-head > strong.has-issue {
    background: #fff0ee;
    color: #c94d42;
}

.ops-chart-legend {
    display: flex;
    gap: 12px;
    color: #758399;
    font-size: 11px;
}

.ops-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ops-chart-legend i {
    width: 8px;
    height: 8px;
    border-radius: 3px;
}

.ops-chart-legend i.is-order { background: #3972cf; }
.ops-chart-legend i.is-completed { background: #74c9aa; }
.ops-chart-legend i.is-product { background: #27a77b; }

.ops-chart-panel-head {
    min-height: 72px;
}

.ops-chart-head-actions {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 9px;
}

.ops-dashboard-top-chart + .ops-order-priority {
    margin-top: 14px;
}

.ops-dashboard-top-chart.is-refreshing {
    position: relative;
    overflow: hidden;
    pointer-events: none;
}

.ops-dashboard-top-chart.is-refreshing::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .66);
    backdrop-filter: blur(1px);
}

.ops-order-chart {
    display: flex;
    min-height: 190px;
    align-items: stretch;
    gap: 7px;
    padding: 13px 5px 0;
    border-bottom: 1px solid #e5eaf1;
    background: repeating-linear-gradient(to bottom, transparent 0, transparent 44px, #eef2f7 45px);
}

.ops-order-chart-item {
    display: grid;
    min-width: 0;
    flex: 1;
    grid-template-rows: 22px 1fr 26px;
    text-align: center;
}

.ops-order-chart-value {
    color: #6e7d91;
    font-size: 10px;
    font-weight: 700;
}

.ops-order-chart-bars {
    display: flex;
    min-height: 115px;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
}

.ops-order-chart-bars i {
    display: block;
    width: min(12px, 38%);
    border-radius: 5px 5px 2px 2px;
    transition: height .25s ease;
}

.ops-order-chart-bars i.is-order {
    background: linear-gradient(180deg, #568be1, #326bc9);
}

.ops-order-chart-bars i.is-completed {
    background: linear-gradient(180deg, #92d9bf, #57b994);
}

.ops-order-chart-bars i.is-product {
    width: min(20px, 56%);
    background: linear-gradient(180deg, #67c9a7, #249e75);
}

.ops-order-chart-item > small {
    padding-top: 8px;
    overflow: hidden;
    color: #8390a2;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ops-recent-list,
.ops-health-list,
.ops-required-grid {
    display: grid;
    gap: 8px;
}

.ops-recent-list > a {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #edf0f5;
    color: inherit;
    text-decoration: none;
}

.ops-recent-list > a:last-child {
    border-bottom: 0;
}

.ops-recent-market {
    display: grid;
    flex: 0 0 35px;
    width: 35px;
    height: 35px;
    place-items: center;
    border-radius: 10px;
    background: #edf3fd;
    color: #3567b7;
    font-size: 9px;
    font-weight: 800;
}

.ops-recent-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.ops-recent-copy strong,
.ops-product-recent-grid strong {
    overflow: hidden;
    color: #263448;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ops-recent-copy small,
.ops-product-recent-grid small {
    margin-top: 3px;
    overflow: hidden;
    color: #8793a4;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ops-recent-list em,
.ops-product-recent-grid em {
    flex: 0 0 auto;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-style: normal;
    font-weight: 800;
}

.ops-recent-flag {
    color: #df6a62;
    font-size: 11px;
}

.ops-dashboard-content .is-action { background: #eaf1ff; color: #2e66c0; }
.ops-dashboard-content .is-warning { background: #fff4df; color: #b86b0e; }
.ops-dashboard-content .is-info { background: #e7f6fb; color: #227f9e; }
.ops-dashboard-content .is-success { background: #e8f7f1; color: #177c5c; }
.ops-dashboard-content .is-danger { background: #fff0ee; color: #c94b44; }
.ops-dashboard-content .is-muted { background: #f0f2f5; color: #748094; }

.ops-required-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ops-required-grid > a,
.ops-health-list > a {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
    padding: 13px;
    border: 1px solid #e7ebf1;
    border-radius: 12px;
    background: #fbfcfe;
    color: inherit;
    text-decoration: none;
}

.ops-required-grid > a.has-issue {
    border-color: #efdbd7;
    background: #fffafa;
}

.ops-required-grid > a > span:first-child,
.ops-health-list > a > span:first-child {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: #edf3fa;
    color: #607796;
}

.ops-required-grid > a.has-issue > span:first-child {
    background: #fff0ed;
    color: #c95348;
}

.ops-required-grid > a > span:nth-child(2),
.ops-health-list > a > span:nth-child(2) {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.ops-required-grid strong,
.ops-health-list strong {
    color: #2c394c;
    font-size: 12px;
}

.ops-required-grid small,
.ops-health-list small {
    margin-top: 3px;
    overflow: hidden;
    color: #8793a4;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ops-required-grid em,
.ops-health-list em {
    color: #35445a;
    font-size: 17px;
    font-style: normal;
    font-weight: 800;
}

.ops-health-list > a > span:first-child.is-danger {
    background: #fff0ee;
    color: #c94b44;
}

.ops-health-list > a > span:first-child.is-warning {
    background: #fff4df;
    color: #b86b0e;
}

.ops-health-list > a > span:first-child.is-info {
    background: #e8f5fb;
    color: #2580a0;
}

.ops-product-recent-panel {
    margin-top: 14px;
}

.ops-product-recent-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.ops-product-recent-grid > a {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
    padding: 12px;
    border: 1px solid #e7ebf1;
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
}

.ops-product-recent-icon {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: #eaf7f2;
    color: #208763;
}

.ops-product-recent-grid > a > span:nth-child(2) {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.ops-dashboard-empty {
    grid-column: 1 / -1;
    padding: 28px 16px;
    color: #8a96a7;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 1199.98px) {
    .ops-dashboard-content {
        grid-template-columns: 1fr;
        grid-template-areas:
            "products"
            "orders";
    }

    .ops-order-priority,
    .ops-order-detail-grid,
    .ops-product-detail-grid {
        grid-template-columns: 1fr;
    }

    .ops-product-recent-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .ops-dashboard-heading {
        align-items: flex-start;
    }

    .ops-dashboard-heading-actions {
        width: 100%;
    }

    .ops-dashboard-heading-actions .btn {
        flex: 1;
        justify-content: center;
    }

    .ops-dashboard-section {
        padding: 18px;
        border-radius: 16px;
    }

    .ops-dashboard-section-head {
        flex-direction: column;
    }

    .ops-dashboard-period {
        width: 100%;
    }

    .ops-dashboard-period button {
        flex: 1;
    }

    .ops-chart-panel-head {
        min-height: 0;
        flex-direction: column;
    }

    .ops-chart-head-actions {
        width: 100%;
        align-items: stretch;
    }

    .ops-order-alerts,
    .ops-dashboard-metrics,
    .ops-required-grid,
    .ops-product-recent-grid {
        grid-template-columns: 1fr;
    }

    .ops-order-focus-card {
        min-height: 120px;
        padding: 19px;
    }

    .ops-order-chart {
        min-width: 520px;
    }

    .ops-dashboard-trend-panel {
        overflow-x: auto;
    }
}

.product-ai-video-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 18px;
    padding: 16px 18px;
    border: 1px solid #dbe5f3;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fbff 0%, #f5f3ff 100%);
}

.product-ai-video-section .product-ai-video-panel {
    margin: 16px 0 0;
}

.product-ai-video-heading-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.product-ai-video-heading-copy p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.product-ai-video-panel[hidden] { display: none; }

.product-ai-video-panel.is-ready {
    border-color: #b8dfcf;
    background: linear-gradient(135deg, #f6fffb 0%, #f8fbff 100%);
}

.product-ai-video-panel.is-failed {
    border-color: #f0caca;
    background: #fff8f8;
}

.product-ai-video-copy {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.product-ai-video-copy > span:last-child {
    display: grid;
    gap: 3px;
}

.product-ai-video-copy strong {
    color: #1f3158;
    font-size: 14px;
    font-weight: 800;
}

.product-ai-video-copy small {
    color: #64748b;
    font-size: 12px;
}

.product-ai-video-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 10px;
    color: #3159b8;
    background: #e8efff;
}

.product-ai-video-panel video {
    width: 90px;
    height: 160px;
    flex: 0 0 auto;
    border-radius: 9px;
    background: #0f172a;
    object-fit: cover;
}

@media (max-width: 640px) {
    .product-ai-video-panel { align-items: flex-start; }
}

/* Customer center */
.support-shell {
    width: min(var(--centered-page-width), 100%);
    margin: 0 auto;
}

.support-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 18px;
}

.support-heading h1 {
    margin: 0 0 6px;
    color: #172033;
    font-size: clamp(24px, 2.2vw, 32px);
    font-weight: 900;
}

.support-heading p {
    margin: 0;
    color: #71809a;
    font-size: 14px;
}

.support-tabs {
    display: inline-flex;
    gap: 5px;
    margin-bottom: 18px;
    padding: 5px;
    border: 1px solid #dce5f2;
    border-radius: 13px;
    background: #f4f7fb;
}

.support-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 9px;
    color: #66758f;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.support-tabs a.active {
    color: #204898;
    background: #fff;
    box-shadow: 0 4px 14px rgb(31 66 133 / 10%);
}

.support-panel {
    padding: 26px;
    border: 1px solid #dce5f2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgb(31 52 90 / 5%);
}

.support-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.support-panel-head h2 {
    margin: 0;
    color: #1c2940;
    font-size: 20px;
    font-weight: 900;
}

.support-list {
    border-top: 1px solid #e7edf6;
}

.support-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 68px;
    padding: 14px 5px;
    border-bottom: 1px solid #e7edf6;
    color: #26344c;
    text-decoration: none;
}

.support-list-row:hover {
    color: #204898;
    background: #fbfcff;
}

.support-list-main,
.support-list-meta,
.support-actions,
.support-attachments {
    display: flex;
    align-items: center;
    gap: 10px;
}

.support-list-main {
    min-width: 0;
}

.support-list-main strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.support-list-meta {
    flex: 0 0 auto;
    color: #8793a7;
    font-size: 12px;
}

.support-badge,
.support-status {
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 999px;
    color: #596984;
    background: #eef2f7;
    font-size: 11px;
    font-weight: 850;
}

.support-badge.is-primary {
    color: #2156b3;
    background: #e9f0ff;
}

.support-status {
    color: #9a6519;
    background: #fff3dc;
}

.support-status.is-answered {
    color: #08765a;
    background: #e5f8f1;
}

.support-comment-count {
    color: #2f66c8;
    font-size: 12px;
    font-weight: 800;
}

.support-empty {
    display: grid;
    place-items: center;
    gap: 10px;
    min-height: 230px;
    color: #96a2b5;
}

.support-empty i {
    font-size: 28px;
}

.support-article > header {
    padding-bottom: 22px;
    border-bottom: 1px solid #e5ebf4;
}

.support-article h2 {
    margin: 10px 0;
    color: #172033;
    font-size: 24px;
    font-weight: 900;
}

.support-rich-content,
.support-plain-content {
    min-height: 180px;
    padding: 28px 2px;
    color: #2f3b50;
    font-size: 15px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.support-rich-content table {
    width: 100%;
    border-collapse: collapse;
}

.support-rich-content th,
.support-rich-content td {
    padding: 9px;
    border: 1px solid #dce5f2;
}

.support-actions {
    justify-content: flex-end;
    margin-top: 24px;
}

.support-comments {
    margin-top: 16px;
}

.support-comments h3 {
    font-size: 17px;
    font-weight: 900;
}

.support-comments h3 span {
    color: #2d64c4;
}

.support-comment-form {
    display: flex;
    align-items: stretch;
    gap: 9px;
    margin: 18px 0;
}

.support-comment-form button {
    min-width: 76px;
}

.support-comment {
    position: relative;
    padding: 18px 4px;
    border-top: 1px solid #e7edf6;
}

.support-comment > div,
.support-reply > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.support-comment time,
.support-reply time {
    color: #929db0;
    font-size: 11px;
}

.support-comment p,
.support-reply p {
    margin: 9px 0 0;
    line-height: 1.65;
}

.support-comment form {
    position: absolute;
    top: 17px;
    right: 4px;
}

.support-comment form button {
    border: 0;
    color: #9aa5b6;
    background: transparent;
    font-size: 11px;
}

.support-form .form-label {
    color: #344158;
    font-weight: 800;
}

.support-form .form-label small {
    color: #8c98aa;
    font-weight: 500;
}

.support-form .ck-editor__editable_inline {
    min-height: 320px;
}

.support-attachments {
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid #e7edf6;
}

.support-attachments a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border: 1px solid #d9e3f1;
    border-radius: 8px;
    color: #41618f;
    background: #f8faff;
    text-decoration: none;
}

.support-replies {
    margin-top: 16px;
}

.support-reply,
.support-waiting {
    padding: 22px 24px;
    border: 1px solid #cfe0fb;
    border-radius: 14px;
    color: #2d405f;
    background: #f5f9ff;
}

.support-reply + .support-reply {
    margin-top: 10px;
}

.support-waiting {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #7a879a;
    border-color: #dfe6ef;
    background: #f8fafc;
}

.support-admin-filter {
    display: flex;
    gap: 7px;
    margin-bottom: 18px;
}

.support-admin-filter a {
    padding: 7px 13px;
    border: 1px solid #dce4ef;
    border-radius: 8px;
    color: #69778d;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.support-admin-filter a.active {
    color: #fff;
    border-color: #2855aa;
    background: #2855aa;
}

@media (max-width: 760px) {
    .support-shell {
        padding: 0 2px;
    }
    .support-heading p {
        display: none;
    }
    .support-tabs {
        display: flex;
        width: 100%;
    }
    .support-tabs a {
        flex: 1;
        justify-content: center;
        padding: 0 8px;
    }
    .support-panel {
        padding: 18px;
        border-radius: 13px;
    }
    .support-list-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
    .support-list-meta {
        width: 100%;
    }
    .support-comment-form {
        flex-direction: column;
    }
}
