:root {
    --ink: #2e251d;
    --ink-soft: #52463a;
    --muted: #746a5d;
    --paper: #f7f4ef;
    --panel: #fffdf9;
    --line: #e7ded1;
    --brown: #3e2c1f;
    --brown-soft: #6a5037;
    --green: #27624d;
    background: var(--paper);
    color: var(--ink);
    font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color-scheme: light;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 0; background: var(--paper); }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
p { line-height: 1.65; }
h1, h2 { line-height: 1.2; }
h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h2 { margin-top: 30px; font-size: 1.15rem; }

button, .button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--brown);
    border-radius: 9px;
    background: var(--brown);
    color: #fffdf9;
    cursor: pointer;
    font-size: .84rem;
    font-weight: 750;
    line-height: 1.25;
    text-align: center;
}
button:hover, .button:hover { background: var(--brown-soft); border-color: var(--brown-soft); }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid rgb(185 134 55 / 52%); outline-offset: 2px; }
.secondary { border-color: var(--line); background: var(--panel); color: var(--brown); }
.secondary:hover { border-color: #cdbb9e; background: #fbf7f0; }
.muted { color: var(--muted); font-size: .85rem; font-weight: 600; }
.eyebrow { color: #9b6b2c; font-size: .71rem; font-weight: 800; letter-spacing: .13em; }
.notice { margin: 20px 0; padding: 13px 15px; border: 1px solid #e4c995; border-radius: 11px; background: #fff8e9; color: #75531b; font-size: .8rem; font-weight: 600; line-height: 1.65; }
.notice.success { border-color: #b9d9c4; background: #eff8f2; color: var(--green); }
.notice.error { border-color: #e7bdb6; background: #fff2f0; color: #913631; }
.field { display: grid; min-width: 0; gap: 7px; }
.field label { color: var(--ink-soft); font-size: .77rem; font-weight: 750; }
.field small { line-height: 1.45; }
.field input:not([type="checkbox"]) { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid #cfbfa9; border-radius: 9px; background: #fff; color: var(--ink); }
.field input[type="checkbox"] { margin-right: 5px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 43px; height: 53px; flex: none; object-fit: contain; }
.brand strong { display: block; color: #fff9ef; font-size: 1rem; font-weight: 800; letter-spacing: -.035em; line-height: 1.15; white-space: nowrap; }
.brand small { display: block; margin-top: 4px; color: #d8c7a8; font-size: .61rem; font-weight: 700; letter-spacing: .075em; }

.login-wrap { display: grid; min-height: 100vh; grid-template-columns: minmax(330px, 1fr) minmax(0, 1fr); }
.login-brand { display: flex; min-height: 100%; flex-direction: column; justify-content: space-between; padding: clamp(34px, 6vw, 72px); background: radial-gradient(circle at 78% 14%, #725237, var(--brown) 48%); color: #fffdf9; }
.login-brand .brand-logo { width: 63px; height: 78px; }
.login-brand .brand strong { font-size: 1.45rem; }
.login-brand .brand small { font-size: .72rem; }
.login-brand h1 { max-width: 480px; color: #fffaf0; font-size: clamp(2.15rem, 4vw, 3.25rem); line-height: 1.17; }
.login-brand p, .login-brand footer { max-width: 430px; color: #decfb8; font-size: .88rem; font-weight: 600; }
.login-brand footer { font-size: .72rem; }
.login-main { display: grid; min-width: 0; place-items: center; padding: 38px; }
.login-box { width: min(100%, 410px); }
.login-box form { display: grid; gap: 18px; margin-top: 27px; }
.login-help { margin-top: 27px; }
.recovery-choice { display: grid; gap: 10px; }
.recovery-choice summary, details summary { color: #80591f; cursor: pointer; font-size: .84rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.recovery-field { margin-top: 12px; }

.simple-page { grid-column: 1 / -1; width: min(100%, 1440px); margin: 0 auto; padding: 28px clamp(18px, 4vw, 60px) 70px; }
.simple-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 64px; }
.dark-brand strong { color: var(--brown); }
.dark-brand small { color: var(--muted); }
.simple-card { max-width: 720px; margin: 0 auto; padding: clamp(24px, 5vw, 44px); border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: 0 14px 34px rgb(57 39 24 / 8%); }
.simple-card > .muted { margin-bottom: 25px; }
.simple-card form { margin-top: 20px; }
.stacked-form { display: grid; max-width: 300px; gap: 15px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 25px; }
.actions form { margin: 0; }
.two-factor-qr { width: fit-content; max-width: 100%; overflow: auto; margin: 18px 0; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.two-factor-qr svg { display: block; max-width: 100%; }
.secret-code { padding: 12px; border-radius: 9px; background: var(--paper); overflow-wrap: anywhere; }
.recovery-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-left: 22px; }
code { overflow-wrap: anywhere; font-size: .82rem; }

@media (max-width: 760px) {
    .login-wrap { display: block; }
    .login-brand { min-height: auto; padding: 26px 24px; }
    .login-brand > :not(.brand) { display: none; }
    .login-brand .brand-logo { width: 47px; height: 59px; }
    .login-brand .brand strong { font-size: 1.15rem; }
    .login-main { display: block; padding: 32px 20px; }
    .login-box { width: 100%; max-width: 440px; margin: 0 auto; }
    .simple-page { padding: clamp(20px, 5vw, 48px); }
    .simple-header { margin-bottom: 30px; }
    .recovery-codes { grid-template-columns: 1fr; }
}

.catalog-page { grid-column: 1 / -1; width: min(100%, 1440px); margin: 0 auto; padding: 28px clamp(18px, 4vw, 60px) 70px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 25px; }.dashboard-grid .card-panel { display: flex; flex-direction: column; align-items: start; }.dashboard-grid h2 { margin: 12px 0 0; }.dashboard-grid p { flex: 1; }
.catalog-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.catalog-header nav, .catalog-actions, .form-submit { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.catalog-header nav a { font-size: .84rem; font-weight: 700; }
.catalog-header nav form, .catalog-actions form { margin: 0; }
.card-panel { min-width: 0; padding: clamp(20px, 3vw, 30px); border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: 0 8px 28px rgb(57 39 24 / 5%); }
.card-panel h2 { margin: 0 0 20px; }
.catalog-intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.catalog-intro h1 { margin: 8px 0; }
.catalog-intro p { margin: 0; }
.catalog-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 14px; margin: 22px 0; }
.catalog-filters .field:first-child { flex: 2 1 260px; }
.catalog-filters .field { flex: 1 1 150px; }
.field { display: grid; gap: 6px; min-width: 0; font-size: .82rem; font-weight: 700; }
.field input:not([type=checkbox]), .field select, .field textarea, .variation-row input { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid #cfbfa9; border-radius: 9px; background: #fff; color: var(--ink); font: inherit; }
.field textarea { resize: vertical; }
.field small { color: var(--muted); font-size: .73rem; }
.catalog-count { margin: 22px 0 14px; color: var(--muted); font-size: .82rem; font-weight: 700; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 16px; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); box-shadow: 0 8px 24px rgb(57 39 24 / 5%); transition: transform .15s, box-shadow .15s; }
.product-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgb(57 39 24 / 11%); }
.product-photo { position: relative; display: grid; height: 245px; overflow: hidden; place-items: center; background: #efe9df; color: var(--muted); font-size: .8rem; }
.product-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.product-card-body { display: grid; gap: 10px; padding: 16px; }
.product-card h2 { min-height: 2.6em; margin: 0; font-size: 1rem; line-height: 1.3; }
.product-card p { margin: 0; }
.product-price { font-size: 1.05rem; }
.product-badges { display: flex; justify-content: space-between; gap: 6px; color: var(--brown-soft); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.status-publish { color: var(--green); }
.sync-warning { color: #913631; font-size: .73rem; font-weight: 800; }
.catalog-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 24px; color: var(--muted); font-size: .82rem; }
.pagination-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.pagination-button { display: inline-flex; min-width: 36px; min-height: 36px; align-items: center; justify-content: center; padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); font-size: .78rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.pagination-button:hover, .pagination-button:focus-visible { border-color: var(--brown-soft); background: #f5eee5; }
.pagination-button.is-current { border-color: var(--ink); background: var(--ink); color: #fff; }
.pagination-button.is-disabled { opacity: .45; cursor: default; }
.pagination-number { padding-inline: 8px; }
.catalog-back { margin: 0 0 18px; font-size: .84rem; font-weight: 800; }
.product-form { display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.form-grid .wide { grid-column: 1 / -1; }
.category-list { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 18px; font-size: .8rem; }
.category-list label { min-width: 130px; }
.image-list { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.image-list label { display: grid; gap: 6px; width: 120px; font-size: .75rem; }
.image-list img { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; }
.product-detail-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); align-items: start; gap: 18px; }
.product-detail-grid aside { display: grid; gap: 16px; }
.product-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: .8rem; }
.product-facts dt { color: var(--muted); }.product-facts dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.variation-section { margin-top: 34px; }.variation-section h2 { margin: 8px 0 20px; }.variation-create { display: grid; gap: 15px; margin-bottom: 18px; }.variation-create h3 { margin: 0; }
.variation-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(275px, 1fr)); gap: 16px; }
.variation-grid h3 { margin: 0 0 6px; font-size: 1rem; }.variation-image { width: 90px; height: 90px; object-fit: cover; border-radius: 8px; }
.variation-form, .variation-stock { display: grid; gap: 12px; margin-top: 16px; }.variation-stock { padding-top: 15px; border-top: 1px solid var(--line); }
.variation-row { display: grid; grid-template-columns: 1fr 1fr 1fr 90px 2fr 1.3fr; gap: 8px; margin: 10px 0; }.empty-state { grid-column: 1 / -1; }
@media(max-width: 850px) { .catalog-intro, .catalog-header { align-items: flex-start; flex-direction: column; } .product-detail-grid { grid-template-columns: 1fr; } .variation-row { grid-template-columns: 1fr 1fr; } }
@media(max-width: 550px) { .form-grid, .variation-row { grid-template-columns: 1fr; } .catalog-page { padding: 18px 14px 55px; } }

.order-tabs { display: flex; flex-wrap: wrap; gap: 9px; margin: 22px 0; }
.order-tab { display: inline-flex; align-items: center; gap: 9px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); font-size: .82rem; font-weight: 800; }
.order-tab span { color: var(--muted); }
.order-tab.is-current { border-color: var(--brown); background: var(--brown); color: #fff; }
.order-tab.is-current span { color: #e9d9c1; }
.order-list { display: grid; gap: 10px; }
.order-card { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.order-card:hover { border-color: #cdbb9e; box-shadow: 0 8px 24px rgb(57 39 24 / 7%); }
.order-card-main, .order-card-side { display: grid; gap: 5px; }
.order-card-side { text-align: right; }
.order-card small { font-size: .72rem; }
.order-badge { width: fit-content; padding: 4px 8px; border-radius: 6px; background: #efe8dc; color: var(--brown); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.order-card-side .order-badge { justify-self: end; }
.shipping-action { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.shipping-action summary { cursor: pointer; font-weight: 700; }
.shipping-action form { display: grid; gap: 14px; margin-top: 16px; }
.shipping-settings { margin-top: 20px; }
.shipping-settings form { display: grid; gap: 16px; max-width: 620px; margin-top: 20px; }
.order-detail-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 18px; }
.order-detail-head h1 { margin: 8px 0; }
.order-detail-head p { margin: 0; }
.order-detail-status { display: grid; justify-items: end; gap: 10px; }
.order-detail-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(270px, 1fr); align-items: start; gap: 18px; }
.order-sidebar { display: grid; gap: 18px; }
.order-items { display: grid; }
.order-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 0; border-top: 1px solid var(--line); }
.order-item-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.order-item-main .product-thumbnail { width: 64px; height: 76px; border-radius: 9px; }
.order-item-copy, .order-item-total { display: grid; gap: 5px; min-width: 0; }
.order-item-total { flex: none; text-align: right; }
.order-item small { display: block; }
.order-action-list { display: grid; gap: 8px; padding-left: 19px; color: var(--ink-soft); font-size: .8rem; line-height: 1.5; }
.candidate-labels { margin-bottom: 18px; }
.candidate-labels h2 { margin-bottom: 10px; }
.candidate-labels.has-valid-link { padding-block: 0; }
.candidate-labels-disclosure > summary { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 14px; color: var(--ink); cursor: pointer; font-size: .94rem; font-weight: 750; line-height: 1.4; list-style: none; text-decoration: none; }
.candidate-labels-disclosure > summary::marker { content: ''; }
.candidate-labels-disclosure > summary::-webkit-details-marker { display: none; }
.candidate-labels-disclosure[open] .disclosure-chevron::after { margin-top: 4px; transform: rotate(225deg); }
.candidate-labels-body { padding: 0 0 20px; border-top: 1px solid var(--line); }
.candidate-labels-body .candidate-labels-intro { padding-top: 16px; }
.candidate-labels-intro { margin: 0; line-height: 1.6; }
.candidate-label-list { display: grid; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.candidate-label { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; min-width: 0; padding: 18px; border: 1px solid #dcccb6; border-radius: 12px; background: #fcf9f4; }
.candidate-label-content { display: grid; min-width: 0; gap: 9px; }
.candidate-label-id { font-size: .88rem; overflow-wrap: anywhere; }
.candidate-label-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--ink-soft); font-size: .78rem; line-height: 1.5; overflow-wrap: anywhere; }
.candidate-label-warning { display: flex; align-items: center; gap: 10px; width: fit-content; max-width: 100%; margin: 4px 0 0; padding: 11px 13px; border: 1px solid #d59b5b; border-radius: 9px; background: #fff0d9; color: #684114; font-size: .79rem; font-weight: 800; line-height: 1.45; }
.candidate-warning-icon { display: inline-grid; width: 20px; height: 20px; flex: none; place-items: center; border-radius: 50%; background: #91531c; color: white; font-size: .75rem; line-height: 1; }
.candidate-label-action { min-height: 46px; white-space: nowrap; }

.order-verifications { margin: 0 0 24px; }
.verification-header, .verification-steps, .verification-finish { width: 100%; max-width: 1120px; margin-inline: auto; }
.verification-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.verification-header h2 { margin: 7px 0 9px; font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.verification-header p { max-width: 650px; margin: 0; color: var(--ink-soft); font-size: .91rem; line-height: 1.6; }
.verification-progress { display: grid; flex: none; min-width: 136px; justify-items: center; gap: 2px; padding: 13px 20px; border: 1px solid #ddcfba; border-radius: 13px; background: #f7f0e6; text-align: center; }
.verification-progress strong { font-size: 1.45rem; line-height: 1.2; }
.verification-progress strong span { color: var(--muted); font-size: .98rem; }
.verification-progress small { color: var(--muted); font-size: .68rem; font-weight: 750; }
.verification-steps { display: grid; gap: 20px; padding: 28px 0 0; list-style: none; }
.verification-step { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 18px; min-width: 0; }
.verification-rail { position: relative; display: flex; justify-content: center; }
.verification-icon { position: relative; z-index: 1; display: grid; width: 52px; height: 52px; flex: none; place-items: center; border: 1px solid #d7c4a8; border-radius: 50%; background: #f4eadd; color: var(--brown); }
.verification-icon svg { width: 25px; height: 25px; }
.verification-step.is-approved .verification-icon { border-color: #a8cbb4; background: #e5f2e9; color: var(--green); }
.verification-line { position: absolute; top: 57px; left: calc(50% - 1px); width: 2px; height: calc(100% - 37px); color: #ddcfba; }
.verification-step:last-child .verification-line { display: none; }
.verification-step.is-approved .verification-line { color: #a8cbb4; }
.verification-step-card { min-width: 0; padding: 22px clamp(18px, 2.5vw, 30px); border: 1px solid var(--line); border-radius: 14px; background: #fcfaf6; }
.verification-step.is-approved .verification-step-card { border-color: #c8dfce; background: #fbfdfa; }
.verification-step-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.verification-number { color: #95652a; font-size: .68rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.verification-step-heading h3 { margin: 4px 0 0; font-size: 1.08rem; line-height: 1.35; }
.verification-status { flex: none; padding: 6px 10px; border-radius: 999px; background: #f1e6d4; color: #75531b; font-size: .68rem; font-weight: 800; white-space: nowrap; }
.verification-status.is-approved { background: #e0f0e5; color: var(--green); }
.verification-step-card p { margin: 0; }
.verification-description { margin-top: 10px !important; color: var(--ink-soft); font-size: .86rem; }
.verification-fact { margin-top: 17px !important; padding: 11px 14px; border-left: 3px solid #89b99a; border-radius: 0 8px 8px 0; background: #eef7f0; color: var(--green); font-size: .82rem; font-weight: 700; }
.verification-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0 0; }
.verification-facts > div { min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.verification-facts dt { color: var(--muted); font-size: .71rem; font-weight: 750; }
.verification-facts dd { margin: 5px 0 0; font-size: .88rem; font-weight: 800; overflow-wrap: anywhere; }
.verification-note { margin-top: 13px !important; color: var(--muted); font-size: .76rem; }
.verification-evidence { display: grid; gap: 4px; min-width: 0; margin-top: 16px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); font-size: .81rem; overflow-wrap: anywhere; }
.verification-evidence span { color: var(--muted); line-height: 1.5; }
.verification-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; margin-top: 18px; }
.verification-actions form { margin: 0; }
.verification-actions .button, .verification-actions button { min-height: 44px; }
.verification-records { display: grid; gap: 7px; margin: 14px 0 0; padding: 0 0 0 20px; color: var(--ink-soft); font-size: .79rem; line-height: 1.5; overflow-wrap: anywhere; }
.verification-disclosure { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.verification-disclosure summary { width: fit-content; max-width: 100%; padding: 10px 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: var(--brown); cursor: pointer; font-size: .8rem; font-weight: 750; line-height: 1.5; }
.verification-disclosure[open] summary { border-color: #cdbb9e; background: #f8f1e7; }
.verification-disclosure-body { display: grid; gap: 14px; max-width: 760px; padding-top: 17px; }
.verification-disclosure-body p { color: var(--muted); font-size: .8rem; }
.verification-disclosure-body a { color: var(--brown); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.verification-disclosure-body form { display: grid; justify-items: start; gap: 13px; }
.verification-disclosure-body .field { width: 100%; }
.verification-confirm { display: flex; align-items: flex-start; gap: 9px; color: var(--ink-soft); font-size: .79rem; font-weight: 700; line-height: 1.5; }
.verification-confirm input { width: 18px; height: 18px; flex: none; margin: 1px 0 0; accent-color: var(--brown); }
.verification-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; width: 100%; }
.verification-finish { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 26px; padding: 21px 24px; border: 1px solid #ddcfba; border-radius: 13px; background: #f7f0e6; }
.verification-finish strong { font-size: .98rem; }
.verification-finish p { margin: 5px 0 0; color: var(--ink-soft); font-size: .8rem; }
.verification-finish form { flex: none; margin: 0; }
.verification-finish button:disabled { border-color: #b5a590; background: #b5a590; color: #fff; }
@media(max-width: 850px) { .order-detail-grid { grid-template-columns: 1fr; } }
@media(max-width: 550px) { .order-card, .order-detail-head { align-items: flex-start; flex-direction: column; } .order-card-side, .order-detail-status { justify-items: start; text-align: left; } .order-card-side .order-badge { justify-self: start; } }
@media(max-width: 640px) {
    .verification-header, .verification-finish { align-items: flex-start; flex-direction: column; }
    .verification-progress { min-width: 0; justify-items: start; padding: 10px 14px; }
    .verification-step { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; }
    .verification-icon { width: 40px; height: 40px; }
    .verification-icon svg { width: 21px; height: 21px; }
    .verification-line { top: 44px; height: calc(100% - 24px); }
    .verification-step-card { padding: 17px 15px; }
    .verification-step-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
    .verification-facts, .verification-form-grid { grid-template-columns: minmax(0, 1fr); }
    .verification-actions { align-items: stretch; flex-direction: column; }
    .verification-actions form, .verification-actions button, .verification-actions .button, .verification-finish form, .verification-finish button { width: 100%; }
    .verification-finish { padding: 18px; }
}

/* Shared responsive workspace and product actions. */
[hidden] { display: none !important; }
button, .button, .pagination-button { min-height: 44px; }
.pagination-button { min-width: 44px; }
button:disabled { opacity: .6; cursor: not-allowed; }
select:focus-visible, textarea:focus-visible { outline: 3px solid #b98637; outline-offset: 3px; }
h1, h2, h3, p, dd, .notice, .product-card, .order-card { overflow-wrap: anywhere; }
.field input:not([type=checkbox]), .field select { min-height: 44px; }
.catalog-back a, .stock-shortcut { display: inline-flex; align-items: center; min-height: 44px; }
.product-identity, .item-identity { display: flex; align-items: center; gap: 20px; }
.product-identity { margin-bottom: 24px; background: linear-gradient(120deg, #fffdf9, #f3ecdf); }
.product-identity-text, .item-identity > div { min-width: 0; }
.product-identity h1 { margin: 8px 0; }
.product-identity p, .item-identity p { margin: 7px 0; }
.product-identity .product-badges { justify-content: flex-start; gap: 12px; flex-wrap: wrap; }
.product-thumbnail { display: grid; position: relative; width: 96px; height: 112px; flex: none; place-items: center; overflow: hidden; border: 1px solid #e0d4c2; border-radius: 13px; background: #eee6d9; }
.product-thumbnail img { width: 100%; height: 100%; object-fit: contain; }
.photo-placeholder { padding: 8px; text-align: center; color: #655540; font-size: .75rem; }
.item-identity .product-thumbnail { width: 64px; height: 76px; }
.item-identity h2 { margin: 0; font-size: 1.1rem; }
.product-action-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 26px 0; }
.product-action-card { display: flex; flex-direction: column; gap: 12px; padding: 26px; border: 1px solid #deceb8; border-radius: 18px; background: #fffdf9; box-shadow: 0 5px 20px rgb(57 39 24 / 4%); }
a.product-action-card:hover { border-color: #9b6b2c; box-shadow: 0 8px 28px rgb(57 39 24 / 12%); }
.product-action-card h2 { margin: 4px 0 0; font-size: 1.25rem; }
.product-action-card p { margin: 0 0 12px; color: var(--ink-soft); font-size: .88rem; }
.action-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #efe3cc; color: #704b1b; font-size: 1.45rem; font-weight: 800; }
.action-link { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; font-size: .85rem; font-weight: 800; color: #745023; }
.stock-action { border-top: 4px solid #60836f; }
.stock-action .action-icon { color: #27624d; background: #e5efe8; }
.action-unavailable { background: #f0ede7; border-style: dashed; box-shadow: none; }
.coming-soon { width: fit-content; margin-top: auto; padding: 6px 12px; border-radius: 20px; background: #e2ddd4; color: #655949; font-size: .75rem; font-weight: 800; }
.product-reference { max-width: 680px; margin-top: 24px; }
.product-form > section { border-top: 3px solid #c7aa77; }
.product-form .form-submit { justify-content: flex-end; }
.product-form .form-submit button { min-width: 220px; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 18px; }
.section-title h2 { margin: 8px 0; }
.stock-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 18px; }
.stock-card { border-top: 3px solid #60836f; }
.stock-settings, .quantity-form { display: grid; gap: 14px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.stock-total { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 0; color: var(--green); }
.stock-total strong { font-size: 1.7rem; }
.stock-shortcut { margin-top: 18px; color: #27624d; font-size: .8rem; font-weight: 800; }
.variation-create-panel { margin-top: 28px; border-top: 3px solid #c7aa77; }
.variation-form { display: grid; gap: 15px; margin-top: 22px; }
.product-workspace .variation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.order-item-main, .order-item-copy { min-width: 0; }
.product-facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.category-list label, .image-list label > span { display: flex; align-items: center; min-height: 44px; }
@media(max-width: 1050px) { .product-action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media(max-width: 760px) {
    .stock-cards, .product-workspace .variation-grid { grid-template-columns: minmax(0, 1fr); }
    .field input:not([type=checkbox]), .field textarea, .field select { font-size: 1rem; }
}
@media(max-width: 550px) {
    .product-action-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .product-action-card { padding: 22px; }
    .product-identity { align-items: flex-start; gap: 12px; padding: 18px; }
    .product-identity .product-thumbnail { width: 60px; height: 76px; }
    .product-identity h1 { font-size: 1.5rem; }
    .product-identity .eyebrow { font-size: .63rem; letter-spacing: .06em; }
    .section-title { align-items: flex-start; flex-direction: column; }
    .form-submit button, .catalog-actions, .catalog-actions form, .catalog-actions .button, .catalog-actions button { width: 100%; }
    .product-badges { flex-wrap: wrap; }
    .product-grid { grid-template-columns: minmax(0, 1fr); }
    .order-tabs .order-tab { width: 100%; justify-content: space-between; }
    .order-item { flex-wrap: wrap; }
    .order-item-total { margin-left: 78px; text-align: left; }
    .product-facts { gap: 12px; }
}

.stock-total { flex-wrap: wrap; }

.shipping-summary { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 18px; }
.shipping-summary h2 { margin: 7px 0 8px; }
.shipping-summary p { margin: 0 0 8px; overflow-wrap: anywhere; }
.shipping-summary small { color: var(--muted); }
.tracking-action { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 18px; padding: 22px 26px; border: 1px solid #c8dfce; border-radius: 14px; background: #eef7f0; }
.tracking-action > div { min-width: 0; }
.tracking-action:not(.tracking-action-ready, .tracking-action-retry, .tracking-action-already, .tracking-action-delivered) { border-color: #e7d4b4; background: #fff8ec; }
.tracking-action strong { color: var(--green); font-size: 1rem; }
.tracking-action:not(.tracking-action-ready, .tracking-action-retry, .tracking-action-already, .tracking-action-delivered) strong { color: #75531b; }
.tracking-action p { margin: 5px 0 0; color: var(--ink-soft); font-size: .83rem; line-height: 1.5; }
.tracking-action form { flex: none; margin: 0; }
.tracking-action button { min-height: 44px; }
.label-next-step .tracking-action { display: grid; gap: 18px; margin: 0; padding: 20px; }
.label-next-step .tracking-action form, .label-next-step .tracking-action button, .label-next-step .tracking-action .button { width: 100%; }
.match-evidence { margin-bottom: 18px; }
.match-evidence-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.match-evidence-head h2 { margin: 7px 0 0; }
.match-evidence-head a { font-size: .8rem; font-weight: 750; }
.match-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0; margin: 20px 0 0; list-style: none; }
.match-checks li { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 11px 13px; border-radius: 9px; background: #f3f6f2; font-size: .8rem; font-weight: 700; line-height: 1.4; }
.match-checks li span, .match-name span { display: inline-grid; flex: none; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #dcefe1; color: var(--green); font-size: .8rem; font-weight: 900; }
.match-checks li small { color: var(--muted); font-weight: 600; }
.match-checks .is-warning, .match-name.is-warning { background: #fff2de; color: #75531b; }
.match-checks .is-warning span, .match-name.is-warning span { background: #f8ddb0; color: #75531b; }
.match-name { display: flex; align-items: flex-start; gap: 8px; margin: 16px 0 0; padding: 10px 12px; border-radius: 9px; background: #f3f6f2; font-size: .78rem; line-height: 1.5; }
.customer-details { margin: 0 0 18px; }
.customer-details > summary { display: flex; min-height: 48px; justify-content: space-between; align-items: center; gap: 14px; color: var(--ink); cursor: pointer; list-style: none; text-decoration: none; }
.customer-details > summary::marker { content: ''; }
.customer-details > summary::-webkit-details-marker { display: none; }
.customer-details-heading { display: grid; min-width: 0; gap: 5px; }
.customer-details > summary strong { color: var(--ink); font-size: 1.05rem; line-height: 1.35; text-decoration: none; }
.customer-details > summary small { color: var(--muted); font-size: .77rem; font-weight: 600; line-height: 1.45; text-decoration: none; }
.disclosure-chevron { display: grid; width: 34px; height: 34px; flex: none; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: #f8f2e9; }
.disclosure-chevron::after { content: ''; width: 8px; height: 8px; margin-top: -4px; border-right: 2px solid var(--brown); border-bottom: 2px solid var(--brown); transform: rotate(45deg); transition: transform .2s, margin-top .2s; }
.customer-details[open] .disclosure-chevron::after { margin-top: 4px; transform: rotate(225deg); }
.customer-details-body { display: grid; gap: 18px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.customer-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.customer-facts > div, .customer-addresses section { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fcfaf6; }
.customer-facts > div { display: grid; align-content: start; gap: 5px; }
.customer-facts span { color: var(--muted); font-size: .71rem; font-weight: 750; }
.customer-facts strong { font-size: .83rem; overflow-wrap: anywhere; }
.customer-facts small { color: var(--muted); font-size: .7rem; }
.customer-addresses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.customer-addresses h3 { margin: 0 0 12px; font-size: .94rem; }
.customer-addresses p { margin: 0 0 7px; color: var(--ink-soft); font-size: .81rem; line-height: 1.5; overflow-wrap: anywhere; }
.shipping-details { margin-top: 18px; }
.shipping-details > summary { cursor: pointer; font-weight: 750; }
.shipping-details-body { display: grid; justify-items: start; gap: 11px; padding-top: 18px; }
.shipping-details-body h2 { margin: 8px 0 0; font-size: 1rem; }
.shipping-details-body p { margin: 0; font-size: .82rem; }
.shipping-details-body form { display: grid; gap: 11px; width: min(100%, 700px); }
.shipping-details-body .field { width: 100%; }
.operational-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.operational-facts > div { display: grid; align-content: start; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: #fcfaf6; }
.operational-facts span, .operational-facts small { color: var(--muted); font-size: .72rem; }
.operational-facts strong { font-size: .82rem; }
.order-verifications .tracking-action { margin-top: 20px; }
.order-verifications .verification-header { max-width: none; margin-inline: 0; }
@media(max-width: 760px) {
    .candidate-label { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .candidate-label-action { width: 100%; }
    .shipping-summary, .tracking-action { flex-direction: column; align-items: stretch; }
    .tracking-action form, .tracking-action button { width: 100%; }
    .match-checks, .customer-addresses { grid-template-columns: minmax(0, 1fr); }
    .customer-facts, .operational-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media(max-width: 550px) {
    .candidate-label { padding: 15px; }
    .candidate-label-warning { width: 100%; }
    .tracking-action { padding: 18px; }
    .customer-facts, .operational-facts { grid-template-columns: minmax(0, 1fr); }
    .match-evidence-head { flex-direction: column; }
}

.labels-page .labels-intro h1 { margin: 7px 0 9px; }
.labels-page .catalog-filters { margin: 16px 0; }
.label-section-help { margin: 0; color: var(--ink-soft); font-size: .87rem; }
.label-list { display: grid; gap: 16px; margin-top: 14px; }
.label-card { min-width: 0; }
.label-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.label-card-head h2 { margin: 7px 0; font-size: 1.18rem; }
.label-card-head p { margin: 0; font-size: .85rem; }
.label-card-head .button { flex: none; }
.label-match-summary { display: grid; gap: 5px; margin: 18px 0 12px; padding: 13px 15px; border-radius: 10px; background: #edf5ef; color: var(--green); font-size: .87rem; line-height: 1.45; }
.label-match-summary strong { overflow-wrap: anywhere; }
.label-match-summary span { color: var(--ink-soft); }
.label-customer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; min-width: 0; }
.label-customer-source { min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fcfaf6; }
.label-customer-source h3 { margin: 0 0 10px; font-size: .86rem; }
.label-customer-source dl { display: grid; gap: 8px; margin: 0; }
.label-customer-source dl > div { display: grid; grid-template-columns: minmax(85px, 100px) minmax(0, 1fr); gap: 8px; }
.label-customer-source dt { color: var(--muted); font-size: .73rem; font-weight: 700; }
.label-customer-source dd { min-width: 0; margin: 0; font-size: .79rem; overflow-wrap: anywhere; }
.label-card-action { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 17px; }
.label-card-action form { margin: 0; }
.label-card-action > a { color: var(--brown-soft); font-size: .82rem; font-weight: 750; text-decoration: underline; }
.label-action-note { margin: 0; padding: 11px 13px; border-radius: 9px; background: #fff5e5; color: #75531b; font-size: .82rem; font-weight: 650; }
.label-candidates-title { margin: 18px 0 10px; font-weight: 750; }
.label-candidate-order { margin-top: 13px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.label-candidate-order .label-match-summary { margin: 0 0 10px; background: #fff5e5; color: #75531b; }
.label-candidate-order .button { margin-top: 12px; }
.label-lookup { margin-top: 24px; }
.label-lookup form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-top: 12px; }
.label-lookup .field { flex: 1 1 230px; }
.label-ignore { margin-top: 18px; padding-top: 13px; border-top: 1px solid var(--line); }
.label-ignore p, .label-ignore-state p { margin: 10px 0; color: var(--ink-soft); font-size: .82rem; }
.label-ignore form { margin-top: 10px; }
.label-ignore-state { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.label-ignore-state p { margin: 0; }
.match-simple { margin: 18px 0 8px; padding: 12px 14px; border-radius: 9px; background: #edf5ef; color: var(--green); font-size: .87rem; }
.match-simple.is-warning { background: #fff5e5; color: #75531b; }
.match-full-data { margin: 0; color: var(--ink-soft); font-size: .82rem; overflow-wrap: anywhere; }
.match-technical { margin-top: 15px; }
.match-technical .match-checks { margin-top: 14px; }
.match-technical .match-name { margin-top: 12px; }
@media(max-width: 760px) {
    .label-card-head { display: grid; }
    .label-card-head .button, .label-card-action form, .label-card-action button, .label-candidate-order .button { width: 100%; }
    .label-card-action { display: grid; }
    .label-ignore-state { align-items: stretch; flex-direction: column; }
    .label-ignore-state button { width: 100%; }
}
@media(max-width: 550px) {
    .labels-page .labels-intro form, .labels-page .labels-intro button, .labels-page .catalog-filters button, .label-lookup button { width: 100%; }
    .label-card { padding: 16px; }
    .label-customer-source dl > div { grid-template-columns: 1fr; gap: 2px; }
    .label-tabs { display: grid; grid-template-columns: 1fr; }
    .label-tabs .order-tab { width: 100%; justify-content: space-between; }
}
