:root {
    color-scheme: light;
    --mp-page: #dedede;
    --mp-surface: #ffffff;
    --mp-soft: #f1f2f3;
    --mp-ink: #20252b;
    --mp-muted: #68717d;
    --mp-line: #c9cdd2;
    --mp-blue: #405bd4;
    --mp-blue-dark: #334bc0;
    --mp-blue-soft: #eef2ff;
    --mp-green: #16734f;
    --mp-radius: 13px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--mp-page); }

body {
    min-height: 100vh;
    margin: 0;
    background: var(--mp-page);
    color: var(--mp-ink);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 15px;
}

button, input { font: inherit; }

.mp-header {
    position: sticky;
    z-index: 20;
    top: 0;
    height: 68px;
    border-bottom: 1px solid #d2d5d9;
    background: #fff;
    box-shadow: 0 4px 18px rgba(15, 23, 42, .08);
}

.mp-header-inner {
    display: flex;
    width: min(1240px, calc(100% - 40px));
    height: 100%;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
}

.mp-brand { display: inline-flex; align-items: center; text-decoration: none; }
.mp-brand img { display: block; width: 154px; height: 42px; object-fit: contain; }
.mp-header nav { display: flex; align-items: center; gap: 8px; }

.mp-header nav a {
    display: inline-flex;
    min-height: 40px;
    padding: 0 14px;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #4c555f;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.mp-header nav a.is-active { background: #e9ecef; color: #20252b; }
.mp-header nav a:hover { background: #f1f2f3; color: #20252b; }
.mp-header nav .mp-sign-in { border-color: #aeb4bb; background: #fff; color: #20252b; }
.mp-header nav .mp-sign-in:hover { border-color: var(--mp-blue); background: var(--mp-blue); color: #fff; }

.mp-shell, .mp-order-shell {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 60px;
}

.mp-kicker {
    margin: 0;
    color: #5f6872;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

.mp-section {
    margin-top: 0;
    margin-bottom: 18px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, .1);
    border-radius: var(--mp-radius);
    background: #fff;
    box-shadow: 0 5px 18px rgba(15, 23, 42, .06);
}

.mp-section > header {
    display: flex;
    min-height: 76px;
    padding: 17px 21px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--mp-line);
    background: #fff;
}

.mp-section h2 { margin: 3px 0 0; color: #24292e; font-size: 21px; font-weight: 500; }
.mp-section-description { max-width: 760px; margin: 5px 0 0; color: #68717d; font-size: 13px; line-height: 1.45; }

.mp-section > header > span {
    padding: 6px 10px;
    border: 1px solid #bec8ef;
    border-radius: 999px;
    background: var(--mp-blue-soft);
    color: var(--mp-blue);
    font-size: 12px;
}

.mp-table-tools { display: flex; min-height: 52px; padding: 9px 18px; align-items: center; justify-content: flex-end; border-bottom: 1px solid var(--mp-line); background: #f8f9fa; }
.mp-table-search { display: flex; align-items: center; gap: 7px; }
.mp-table-search label { color: #505961; font-size: 12px; }
.mp-table-search input { width: 190px; height: 33px; padding: 0 10px; border: 1px solid #aeb4bb; border-radius: 6px; background: #fff; color: var(--mp-ink); font-size: 13px; outline: 0; }
.mp-table-search input:focus { border-color: var(--mp-blue); box-shadow: 0 0 0 3px rgba(64, 91, 212, .14); }
.mp-table-search button { height: 33px; padding: 0 12px; border: 1px solid var(--mp-blue); border-radius: 6px; background: var(--mp-blue); color: #fff; cursor: pointer; font-size: 12px; font-weight: 500; }
.mp-table-search button:hover { border-color: var(--mp-blue-dark); background: var(--mp-blue-dark); }
.mp-table-search a { color: var(--mp-blue); font-size: 12px; text-decoration: none; }
.mp-table-search a:hover { text-decoration: underline; }

.mp-table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 760px; border-collapse: collapse; }

th, td {
    padding: 14px 18px;
    border-bottom: 1px solid #d9dcdf;
    text-align: left;
    vertical-align: middle;
}

th {
    background: #e9ecef;
    color: #444c54;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .45px;
    text-transform: uppercase;
}

td { color: #3b4249; font-size: 14px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #f7f7f7; }
.mp-country { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.mp-country img { border: 1px solid #bfc4ca; border-radius: 2px; object-fit: cover; }

.mp-buy, .mp-submit, .mp-download {
    display: inline-flex;
    min-height: 37px;
    padding: 8px 17px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--mp-blue);
    border-radius: 7px;
    background: var(--mp-blue);
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.mp-buy:hover, .mp-submit:hover, .mp-download:hover {
    border-color: var(--mp-blue-dark);
    background: var(--mp-blue-dark);
    color: #fff;
}

.mp-empty { padding: 33px; color: #6d757d; text-align: center; }
.mp-pagination { display: flex; min-height: 58px; padding: 12px 18px; align-items: center; justify-content: flex-end; gap: 6px; border-top: 1px solid var(--mp-line); }
.mp-pagination span { padding: 0 2px; color: #79818a; font-size: 12px; }

.mp-pagination a {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid #bfc4ca;
    border-radius: 6px;
    background: #fff;
    color: #343a40;
    font-size: 12px;
    text-decoration: none;
}

.mp-pagination a:hover { border-color: var(--mp-blue); color: var(--mp-blue); }
.mp-pagination a.mp-page-wide { width: auto; padding: 0 10px; }
.mp-pagination a.is-current { border-color: var(--mp-blue); background: var(--mp-blue); color: #fff; }

.mp-dialog {
    width: min(540px, calc(100% - 24px));
    padding: 0;
    overflow: hidden;
    border: 1px solid #aeb4bb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
}

.mp-dialog::backdrop { background: rgba(32, 37, 43, .72); }
.mp-dialog form > header { display: flex; padding: 21px 24px 17px; justify-content: space-between; border-bottom: 1px solid var(--mp-line); }
.mp-dialog h2 { margin: 5px 0 2px; color: #20252b; font-size: 22px; font-weight: 500; }
.mp-dialog header p:last-child { margin: 0; color: var(--mp-green); font-weight: 600; }
.mp-close { border: 0; background: transparent; color: #59616a; cursor: pointer; font-size: 27px; line-height: 1; }
.mp-dialog form > label, .mp-dialog fieldset { display: block; margin: 18px 24px 0; }
.mp-dialog label { color: #343a40; font-size: 13px; font-weight: 500; }

.mp-dialog input[type=email] {
    display: block;
    width: 100%;
    height: 42px;
    margin-top: 7px;
    padding: 0 12px;
    border: 1px solid #aeb4bb;
    border-radius: 7px;
    background: #fff;
    color: #20252b;
}

.mp-dialog input[type=email]:focus { border-color: var(--mp-blue); outline: 2px solid rgba(64, 91, 212, .15); }
.mp-dialog small { display: block; margin-top: 6px; color: var(--mp-muted); font-size: 12px; font-weight: 400; line-height: 1.45; }
.mp-dialog fieldset { padding: 0; border: 0; }
.mp-dialog [data-mp-coins][hidden] { display: none; }
.mp-dialog legend { margin-bottom: 8px; color: #343a40; font-size: 13px; font-weight: 500; }
.mp-choice-row { display: flex; gap: 7px; }
.mp-choice-wrap { flex-wrap: wrap; }

.mp-choice {
    min-height: 35px;
    padding: 6px 12px;
    border: 1px solid #aeb4bb;
    border-radius: 7px;
    background: #fff;
    color: #3b4249;
    cursor: pointer;
    font-size: 13px;
}

.mp-choice:hover { background: #f3f3f3; }
.mp-choice.is-selected { border-color: var(--mp-blue); background: var(--mp-blue-soft); color: #253fae; box-shadow: inset 0 0 0 1px var(--mp-blue); }

.mp-captcha {
    display: flex;
    margin: 18px 24px 0;
    justify-content: center;
}

.mp-captcha .cf-turnstile { width: min(300px, 100%); min-height: 65px; }

.mp-modal-note {
    margin: 18px 24px 0;
    padding: 11px 13px;
    border-left: 3px solid var(--mp-blue);
    background: #eee;
    color: #424950;
    font-size: 12px;
    line-height: 1.5;
}

.mp-dialog footer { display: flex; padding: 18px 24px 22px; justify-content: flex-end; gap: 9px; }

.mp-secondary {
    padding: 8px 15px;
    border: 1px solid #aeb4bb;
    border-radius: 7px;
    background: #fff;
    color: #343a40;
    cursor: pointer;
}

.mp-secondary:hover { background: #e9ecef; }
.mp-alert { margin: 14px 0; padding: 13px 15px; border: 1px solid; border-radius: 8px; background: #fff; }
.mp-alert-danger { border-color: #d59aa2; color: #942435; }
.mp-alert-success { border-color: #78b7a3; color: #0e654d; }
.mp-alert-warning { border-color: #c2a65d; color: #715612; }

.mp-order-shell { max-width: 1120px; }
.mp-back { color: var(--mp-blue); font-size: 14px; text-decoration: none; }
.mp-back:hover { color: var(--mp-blue-dark); text-decoration: underline; }

.mp-order-head {
    display: flex;
    margin: 20px 0;
    padding: 22px 25px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid #c8ccd1;
    border-top: 3px solid var(--mp-blue);
    border-radius: var(--mp-radius);
    background: #fff;
    box-shadow: 0 5px 16px rgba(15, 23, 42, .06);
}

.mp-order-head h1 { margin: 5px 0 6px; color: #20252b; font-size: 27px; font-weight: 500; }
.mp-order-head p:last-child { margin: 0; color: var(--mp-muted); }
.mp-status { padding: 6px 10px; border: 1px solid #bfc4ca; border-radius: 20px; background: #e9ecef; font-size: 12px; text-transform: capitalize; white-space: nowrap; }
.mp-status-delivered { border-color: #8abaaa; background: #fff; color: #0d664f; }
.mp-status-invalid_replaced, .mp-status-payment_failed { border-color: #d5a4aa; background: #fff; color: #952a39; }
.mp-order-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 370px; align-items: start; gap: 18px; }
.mp-order-main { display: grid; gap: 18px; }
.mp-order-sidebar { position: sticky; top: 88px; }

.mp-order-card {
    padding: 22px;
    border: 1px solid #c8ccd1;
    border-radius: var(--mp-radius);
    background: #fff;
    box-shadow: 0 5px 16px rgba(15, 23, 42, .05);
}

.mp-order-card > header { display: flex; margin-bottom: 14px; padding-bottom: 14px; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid #d9dcdf; }
.mp-order-card h2 { margin: 0; color: #292e33; font-size: 18px; font-weight: 500; }
.mp-order-card dl { margin: 0; }
.mp-order-card dl > div { display: grid; padding: 9px 0; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; border-bottom: 1px solid #e1e3e5; }
.mp-order-card dl > div:last-child { border-bottom: 0; }
.mp-order-card dt { color: var(--mp-muted); font-size: 13px; }
.mp-order-card dd { margin: 0; word-break: break-word; }
.mp-order-save {
    display: flex;
    padding: 19px 21px;
    align-items: flex-start;
    gap: 14px;
    border: 1px solid #b9c3ea;
    border-left: 4px solid var(--mp-blue);
    border-radius: var(--mp-radius);
    background: #fff;
}
.mp-order-save-icon, .mp-order-lock, .mp-pin-info-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 50%;
    background: var(--mp-blue);
    color: #fff;
    font-size: 15px;
}
.mp-order-save h2, .mp-order-security h2, .mp-order-code h2 { margin: 0 0 5px; color: #252a30; font-size: 17px; font-weight: 500; }
.mp-order-save p, .mp-order-security p, .mp-order-code p { margin: 0; color: #59626b; font-size: 13px; line-height: 1.55; }
.mp-order-security { display: flex; align-items: flex-start; gap: 14px; }
.mp-order-lock { background: #343a40; }
.mp-order-code { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 18px; border-color: #9da9dc; }
.mp-order-code .mp-kicker { margin-bottom: 5px; color: var(--mp-blue); }
.mp-order-code-value {
    padding: 9px 14px;
    border: 1px solid #aeb5bd;
    border-radius: 8px;
    color: #20252b;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 25px;
    font-weight: 600;
    letter-spacing: 6px;
}
.mp-payment-card p { color: var(--mp-muted); }
.mp-payment-card > header span { color: #4e5760; font-size: 12px; font-weight: 600; }
.mp-payment-qr-wrap { margin-bottom: 18px; text-align: center; }
.mp-payment-qr {
    display: grid;
    width: 210px;
    height: 210px;
    margin: 0 auto 8px;
    place-items: center;
    border: 1px solid #c8ccd1;
    border-radius: 10px;
    background: #fff;
}
.mp-payment-qr img, .mp-payment-qr canvas { display: block; width: 180px; height: 180px; }
.mp-payment-qr-wrap p { margin: 0; font-size: 12px; }
.mp-payment-label { margin: 0 0 4px; font-size: 12px; }
.mp-payment-amount { margin: 0 0 18px; color: #20252b; font-size: 25px; font-weight: 600; overflow-wrap: anywhere; }
.mp-payment-amount span { color: var(--mp-green); font-size: 13px; }
.mp-copy-line { display: flex; margin-top: 7px; }
.mp-copy-line input { min-width: 0; height: 40px; padding: 0 10px; flex: 1; border: 1px solid #aeb4bb; border-radius: 7px 0 0 7px; }
.mp-copy-line button { padding: 0 14px; border: 0; border-radius: 0 7px 7px 0; background: var(--mp-blue); color: #fff; cursor: pointer; }
.mp-payment-warning { margin: 11px 0 0 !important; color: #555e67 !important; font-size: 12px; line-height: 1.45; }
.mp-payment-auto { display: flex; margin: 14px 0 0 !important; align-items: center; gap: 8px; color: #3f4851 !important; font-size: 12px; line-height: 1.4; }
.mp-payment-auto-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--mp-green); box-shadow: 0 0 0 4px rgba(22, 139, 100, .12); }
.mp-payment-auto.is-checking .mp-payment-auto-dot { animation: mp-payment-pulse 1s ease-in-out infinite; }
.mp-payment-auto.is-error .mp-payment-auto-dot { background: #b64252; box-shadow: 0 0 0 4px rgba(182, 66, 82, .11); }
@keyframes mp-payment-pulse { 50% { opacity: .35; transform: scale(.75); } }
.mp-payment-card form, .mp-replacement-card form { margin-top: 17px; }
.mp-payment-card .mp-submit { width: 100%; }
.mp-download { min-height: 32px; padding: 6px 11px; font-size: 12px; }
.mp-secret { padding: 6px 8px; border: 1px solid #d2d5d8; border-radius: 5px; background: #eee; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.mp-link-button { margin-top: 17px; }
.mp-order-status-card h2 { margin: 7px 0 8px; font-size: 22px; }
.mp-order-status-card > p:last-child { margin: 0; color: var(--mp-muted); line-height: 1.55; }

.mp-pin-shell { max-width: 1040px; }
.mp-pin-layout { display: grid; margin-top: 20px; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; }
.mp-pin-card, .mp-pin-info {
    padding: 30px;
    border: 1px solid #c8ccd1;
    border-radius: var(--mp-radius);
    background: #fff;
    box-shadow: 0 5px 16px rgba(15, 23, 42, .05);
}
.mp-pin-card { border-top: 3px solid var(--mp-blue); }
.mp-pin-card h1 { margin: 7px 0 9px; color: #20252b; font-size: 28px; font-weight: 500; }
.mp-pin-card > p:not(.mp-kicker):not(.mp-pin-help) { max-width: 580px; margin: 0; color: #59626b; line-height: 1.55; }
.mp-pin-card form { display: grid; max-width: 330px; margin-top: 24px; gap: 8px; }
.mp-pin-card label { margin-top: 4px; color: #343a40; font-size: 13px; font-weight: 500; }
.mp-order-pin-input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #aeb4bb;
    border-radius: 8px;
    background: #fff;
    color: #20252b;
    font-size: 20px;
    letter-spacing: 8px;
}
.mp-order-pin-input:focus { border-color: var(--mp-blue); outline: 3px solid rgba(64, 91, 212, .14); }
.mp-pin-card form .mp-submit { margin-top: 10px; }
.mp-pin-help { margin: 17px 0 0; color: #68717d; font-size: 12px; }
.mp-pin-info h2 { margin: 16px 0 8px; font-size: 21px; font-weight: 500; }
.mp-pin-info > p { margin: 0; color: #59626b; font-size: 13px; line-height: 1.55; }
.mp-pin-info dl { margin: 20px 0; border-top: 1px solid #d9dcdf; }
.mp-pin-info dl > div { padding: 10px 0; border-bottom: 1px solid #d9dcdf; }
.mp-pin-info dt { color: #68717d; font-size: 12px; }
.mp-pin-info dd { margin: 3px 0 0; color: #292e33; overflow-wrap: anywhere; }
.mp-pin-private { color: #343a40 !important; font-weight: 500; }

@media (max-width: 760px) {
    .mp-header, .mp-header-inner { height: 62px; }
    .mp-header-inner { width: calc(100% - 24px); }
    .mp-brand img { width: 126px; height: 38px; }
    .mp-header nav { gap: 4px; }
    .mp-header nav a { min-height: 36px; padding: 0 9px; font-size: 12px; }
    .mp-header nav a.is-active { display: none; }
    .mp-shell, .mp-order-shell { width: calc(100% - 24px); padding-top: 18px; }
    .mp-table-tools { padding: 9px 12px; justify-content: stretch; }
    .mp-table-search { width: 100%; }
    .mp-table-search input { min-width: 0; flex: 1; }
    .mp-section > header { padding: 16px; }
    .mp-order-workspace, .mp-pin-layout { grid-template-columns: 1fr; }
    .mp-order-sidebar { position: static; }
    .mp-order-head { display: block; padding: 21px; }
    .mp-status { display: inline-block; margin-top: 15px; }
    .mp-order-card { padding: 18px; }
    .mp-order-card dl > div { grid-template-columns: 92px minmax(0, 1fr); }
    .mp-order-code { grid-template-columns: 1fr; }
    .mp-order-code-value { width: fit-content; }
    .mp-order-code .mp-secondary { width: fit-content; }
    .mp-pin-info { grid-row: 1; }
    .mp-pin-card, .mp-pin-info { padding: 22px; }
    .mp-pin-card h1 { font-size: 24px; }
}

@media (max-width: 430px) {
    .mp-dialog form > header, .mp-dialog footer { padding-right: 18px; padding-left: 18px; }
    .mp-dialog form > label, .mp-dialog fieldset { margin-right: 18px; margin-left: 18px; }
    .mp-captcha, .mp-modal-note { margin-right: 18px; margin-left: 18px; }
}

/* ── Grouped tool table ── */
.mp-tool-table th, .mp-tool-table td { vertical-align: middle; }
.mp-tool-table { min-width: 900px; }
.mp-tool-table th:first-child, .mp-tool-table td:first-child { width: 240px; }
.mp-tool-table th:nth-child(3), .mp-tool-table td:nth-child(3) { width: 110px; }
.mp-tool-table th:nth-child(4), .mp-tool-table td:nth-child(4) { width: 140px; }
.mp-tool-table th:last-child,  .mp-tool-table td:last-child  { width: 100px; text-align: right; }

.mp-tool-name {
    display: flex;
    align-items: center;
    gap: 11px;
}

.mp-tool-name strong { color: #2c333a; font-weight: 500; }

.mp-type-description {
    color: #68717d;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
}

.mp-type-description span { color: #9ba4ae; }

.mp-tool-icon {
    display: inline-block;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 7px;
    border: 1px solid #e0e3e7;
    background: #f7f9fc;
}

.mp-tool-icon--sprite { background-repeat: no-repeat; }

.mp-tool-initial {
    display: inline-flex;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: #e9ecef;
    color: #444c54;
    font-size: 14px;
    font-weight: 700;
}

.mp-stock-badge {
    display: inline-block;
    padding: 3px 9px;
    border: 1px solid #cbd2dc;
    border-radius: 20px;
    background: #f1f3f5;
    color: #3b4249;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.mp-stock-badge--oos {
    border-color: #e0c0c4;
    background: #fff5f5;
    color: #9b3040;
}

.mp-from-price {
    font-size: 14px;
    font-weight: 600;
    color: #16734f;
    white-space: nowrap;
}

.mp-from-price--na { color: #9ba4ae; font-weight: 400; }

.mp-buy--oos {
    opacity: 0.45;
    cursor: not-allowed;
}


/* Seller selection */
.mp-items-dialog {
    width: min(1040px, calc(100% - 32px));
    max-width: none;
    max-height: min(780px, calc(100vh - 32px));
    border: 0;
    border-top: 4px solid var(--mp-blue);
    border-radius: 14px;
    box-shadow: 0 30px 90px rgba(20, 25, 31, .38);
}

.mp-items-dialog .mp-dialog-inner {
    display: flex;
    max-height: min(776px, calc(100vh - 36px));
    flex-direction: column;
    background: #fff;
}

.mp-items-header {
    display: flex;
    padding: 24px 28px 20px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid #cfd3d7;
}

.mp-items-header h2 { margin-top: 6px; font-size: 25px; }
.mp-items-subtitle { margin: 7px 0 0; color: #616a73; font-size: 13px; line-height: 1.45; }
.mp-items-heading { display: flex; min-width: 0; align-items: center; gap: 15px; }
.mp-modal-tool-icon {
    display: grid;
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    place-items: center;
    border: 1px solid #c4c9cf;
    border-radius: 11px;
    background: #f1f2f3;
}
.mp-modal-tool-art {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    background-repeat: no-repeat;
    color: #404850;
    font-size: 15px;
    font-weight: 600;
}

.mp-items-metrics {
    display: grid;
    padding: 16px 28px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    border-bottom: 1px solid #cfd3d7;
    background: #f4f5f6;
}

.mp-items-metrics.has-back {
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(150px, auto);
}

.mp-items-metrics > div {
    display: flex;
    min-height: 57px;
    padding: 10px 14px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid #c9cdd2;
    border-radius: 9px;
    background: #fff;
}

.mp-items-metrics strong { color: #252a30; font-size: 19px; font-weight: 600; }
.mp-items-metrics span { color: #68717d; font-size: 12px; }

.mp-items-back {
    display: inline-flex;
    min-height: 57px;
    padding: 10px 18px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #c72e42;
    border-radius: 9px;
    background: #d9364d;
    color: #fff;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

.mp-items-back span { color: inherit; font-size: 17px; line-height: 1; }
.mp-items-back:hover { border-color: #aa2134; background: #bf293e; }
.mp-items-back:focus-visible { outline: 3px solid rgba(64, 91, 212, .2); outline-offset: 2px; }
.mp-items-back[hidden] { display: none; }

.mp-items-table-wrap {
    min-height: 190px;
    flex: 1 1 auto;
    overflow: auto;
    background: #fff;
}

.mp-items-table { min-width: 620px; table-layout: fixed; }
.mp-items-table th { padding: 12px 18px; background: #e5e7e9; color: #3f474f; }
.mp-items-table td { padding: 16px 18px; background: #fff; }
.mp-items-table tbody tr:hover td { background: #f7f7f7; }
.mp-items-table th:first-child, .mp-items-table td:first-child { width: auto; }
.mp-items-table th:nth-child(2), .mp-items-table td:nth-child(2) { width: 140px; }
.mp-items-table th:nth-child(3), .mp-items-table td:nth-child(3) { width: 155px; }
.mp-items-table th:last-child, .mp-items-table td:last-child { width: 105px; text-align: right; }

.mp-seller-cell { display: flex; align-items: center; gap: 10px; }
.mp-seller-avatar {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border: 1px solid #b9c0c8;
    border-radius: 50%;
    background: #fff;
    color: #3e4750;
    font-size: 12px;
    font-weight: 600;
}

.mp-seller-name { color: #262c32; font-weight: 600; }

.mp-seller-stock {
    display: inline-flex;
    min-height: 28px;
    padding: 4px 9px;
    align-items: center;
    border: 1px solid #c6ccd2;
    border-radius: 999px;
    background: #fff;
    color: #394149;
    font-size: 12px;
    white-space: nowrap;
}

.mp-seller-price { color: var(--mp-green); font-size: 15px; font-weight: 600; white-space: nowrap; }
.mp-buy-sm { min-height: 34px; padding: 7px 14px; }

.mp-items-table.is-inventory th:first-child,
.mp-items-table.is-inventory td:first-child { width: 115px; }
.mp-items-table.is-inventory th:nth-child(2),
.mp-items-table.is-inventory td:nth-child(2) { width: auto; }
.mp-items-table.is-inventory th:nth-child(3),
.mp-items-table.is-inventory td:nth-child(3) { width: 135px; }
.mp-items-table.is-inventory th:last-child,
.mp-items-table.is-inventory td:last-child { width: 90px; }
.mp-item-country { color: #3f474f; font-weight: 500; white-space: nowrap; }
.mp-item-country-wrap { display: inline-flex; align-items: center; gap: 8px; }
.mp-item-country-flag {
    width: 24px;
    height: 17px;
    flex: 0 0 auto;
    border: 1px solid #d1d4d8;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 1px 2px rgba(28, 35, 43, .08);
}
.mp-item-description { color: #515a63; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.mp-items-error {
    margin: 18px 28px;
    padding: 13px 15px;
    border: 1px solid #d59aa2;
    border-radius: 8px;
    background: #fff;
    color: #8c2635;
    text-align: center;
}

.mp-items-footer {
    display: flex;
    padding: 16px 28px 18px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid #cfd3d7;
    background: #fff;
}

.mp-items-footer p { max-width: 700px; margin: 0; color: #68717d; font-size: 12px; line-height: 1.45; }
.mp-items-pagination {
    display: flex;
    padding: 12px 28px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    border-top: 1px solid #cfd3d7;
    background: #f4f5f6;
}
.mp-items-pagination[hidden] { display: none; }
.mp-items-pagination > span { min-width: 78px; color: #59626c; font-size: 12px; text-align: center; white-space: nowrap; }
.mp-items-pagination strong { color: #262c32; font-weight: 600; }
.mp-items-pagination button {
    display: inline-flex;
    min-width: 94px;
    min-height: 36px;
    padding: 7px 13px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid #aeb6c0;
    border-radius: 7px;
    background: #fff;
    color: var(--mp-blue);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}
.mp-items-pagination button span { color: inherit; font-size: 15px; }
.mp-items-pagination button:hover:not(:disabled) { border-color: var(--mp-blue); background: var(--mp-blue-soft); }
.mp-items-pagination button:disabled { color: #a2a8ae; cursor: not-allowed; opacity: .7; }

@media (max-width: 700px) {
    .mp-items-dialog { width: calc(100% - 18px); max-height: calc(100vh - 18px); }
    .mp-items-dialog .mp-dialog-inner { max-height: calc(100vh - 22px); }
    .mp-items-header { padding: 20px 18px 16px; }
    .mp-items-header h2 { font-size: 21px; }
    .mp-items-metrics { padding: 12px 18px; gap: 7px; }
    .mp-items-metrics.has-back { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mp-items-metrics > div { display: block; min-height: 54px; padding: 8px 9px; }
    .mp-items-metrics strong, .mp-items-metrics span { display: block; }
    .mp-items-metrics strong { font-size: 16px; }
    .mp-items-metrics span { margin-top: 2px; }
    .mp-items-back { min-height: 54px; padding: 8px 10px; white-space: normal; }
    .mp-items-footer { padding: 14px 18px 16px; }
    .mp-items-footer p { display: none; }
    .mp-items-pagination { padding: 10px 18px; justify-content: space-between; gap: 6px; }
    .mp-items-pagination button { min-width: 82px; padding-inline: 9px; }
    .mp-items-footer .mp-secondary { flex: 1; }
}

.mp-tool-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}
.mp-page-intro{margin:0 0 28px;padding:28px 30px;border:1px solid #dbe4f1;border-radius:14px;background:linear-gradient(135deg,#f3f7ff,#fff)}
.mp-page-intro p{margin:0 0 7px;color:#2f68e8;font-size:10px;font-weight:900;letter-spacing:.15em}
.mp-page-intro h1{margin:0;color:#111827;font-size:clamp(28px,4vw,42px);line-height:1.08;letter-spacing:-.04em}
.mp-page-intro span{display:block;margin-top:10px;color:#64748b;font-size:14px}
.mp-site-footer{display:flex;align-items:center;justify-content:space-between;gap:24px;max-width:1180px;margin:8px auto 0;padding:26px 24px 34px;border-top:1px solid #dce4f0;color:#6b778a;font-size:12px}
.mp-site-footer nav{display:flex;flex-wrap:wrap;gap:17px}.mp-site-footer a{color:inherit;font-weight:750;text-decoration:none}.mp-site-footer a:hover{color:var(--mp-blue)}
@media(max-width:620px){.mp-site-footer{align-items:flex-start;flex-direction:column}.mp-site-footer nav{gap:12px 16px}}
