.muted {
    color: var(--muted);
}
.seller-order-country {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 80px;
    padding: 16px 20px;
    border-radius: calc(var(--radius-large) - 4px);
    color: var(--ink);
    text-decoration: none;
}
.seller-order-country + .seller-order-country {
    border-top: 1px solid var(--line);
}
.seller-order-country .country-summary {
    flex: 1;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 600;
}
.seller-order-country > svg {
    width: 20px;
    height: 20px;
    color: var(--muted);
}
.seller-order-controls {
    min-width: 0;
    border: 0;
    margin: 0;
    padding: 0;
}
.seller-order-list {
    margin: 0;
    list-style: none;
}
.seller-order-row {
    display: grid;
    grid-template-columns: 36px 48px minmax(0, 1fr) 48px;
    align-items: center;
    gap: 16px;
    min-height: 88px;
    padding: 16px;
    border-radius: calc(var(--radius-large) - 4px);
    border: 1px solid transparent;
}
.seller-order-row + .seller-order-row {
    border-top-color: var(--line);
}
.seller-order-number {
    text-align: center;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}
.seller-order-name {
    overflow-wrap: anywhere;
    font-weight: 600;
}
.seller-order-handle {
    width: 48px;
    min-height: 48px;
    padding: 12px;
    cursor: grab;
    color: var(--muted);
}
.seller-order-handle svg {
    stroke-width: 3;
}
.seller-order-row.dragging {
    opacity: 0.45;
}
.seller-order-row.drop-target {
    border-color: var(--accent-ink);
    background: var(--soft);
}
.seller-order-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
}
.seller-order-editor .pagination {
    justify-content: flex-end;
}
.seller-order-actions .inline-actions {
    margin-left: auto;
}
@media (max-width: 480px) {
    .seller-order-row {
        grid-template-columns: 24px 40px minmax(0, 1fr) 44px;
        gap: 8px;
        padding: 12px 8px;
    }
    .seller-order-row .reseller-avatar {
        width: 40px;
        height: 40px;
    }
    .seller-order-handle {
        width: 44px;
        padding: 10px;
    }
    .seller-order-country {
        padding: 16px 12px;
        gap: 12px;
    }
}
@media (hover: hover) and (pointer: fine) {
    .seller-order-country:hover {
        background: var(--soft);
    }
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.reseller-search {
    flex: 1 1 14rem;
    min-width: min(100%, 14rem);
    max-width: min(100%, 28rem);
}
.reseller-search input {
    width: 100%;
}
.reseller-list {
    container: reseller-list / inline-size;
    padding: 4px;
    border-radius: var(--radius-large);
    background: var(--surface);
    overflow: hidden;
}
.reseller-row {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto 20px;
    align-items: center;
    gap: 16px;
    min-height: 96px;
    padding: 16px;
    border-radius: calc(var(--radius-large) - 4px);
    color: var(--ink);
    text-decoration: none;
}
.reseller-row:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 80px;
    right: 16px;
    bottom: 0;
    height: 1px;
    background: var(--line);
    pointer-events: none;
}
.reseller-row > svg {
    width: 20px;
    height: 20px;
    color: var(--muted);
}
.reseller-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--soft);
    color: var(--muted);
    overflow: hidden;
}
.reseller-avatar.large {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
    border-radius: var(--radius-large);
}
.reseller-avatar svg {
    width: 24px;
    height: 24px;
}
.reseller-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.reseller-identity {
    display: grid;
    gap: 5px;
    min-width: 0;
    font-size: 1rem;
}
.reseller-identity > strong,
.reseller-identity > .muted {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.reseller-identity > .muted {
    font-size: 0.875rem;
}
.reseller-row-account {
    display: grid;
    justify-items: end;
    gap: 8px;
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
}
.country-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 0.875rem;
    color: var(--muted);
}
.country-summary-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.country-summary-item img {
    width: 20px;
    height: 15px;
    object-fit: contain;
}
.country-summary-item svg {
    width: 18px;
    height: 18px;
}
.reseller-heading {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    column-gap: 16px;
    row-gap: 8px;
    margin: 24px 0;
}
.reseller-heading > .reseller-avatar {
    grid-row: 1 / 3;
}
.reseller-heading-identity {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    min-width: 0;
    overflow-wrap: anywhere;
}
.reseller-heading-identity h1 {
    margin: 0;
    font-size: 1.625rem;
    line-height: 1.2;
    letter-spacing: -0.035em;
}
.reseller-email {
    grid-column: 2;
    margin: 0;
    font-size: 0.875rem;
    overflow-wrap: anywhere;
}
.reseller-controls {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.reseller-controls .button,
.reseller-wallet .button {
    min-height: 48px;
}
.reseller-sections {
    display: grid;
    grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.reseller-profile,
.reseller-wallet {
    min-width: 0;
    padding: 24px;
    border-radius: var(--radius-large);
    background: var(--surface);
}
.reseller-wallet {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.wallet-identity {
    flex: 1 1 12rem;
    min-width: 0;
}
.reseller-wallet .wallet-balance {
    margin: 8px 0 0;
}
.reseller-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 0 0 24px;
}
.reseller-facts dt {
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 6px;
}
.reseller-facts dd {
    margin: 0;
    font-size: 1rem;
    overflow-wrap: anywhere;
}
.reseller-coverage {
    border-top: 1px solid var(--line);
    padding-top: 20px;
}
.reseller-coverage .section-label {
    margin-bottom: 12px;
}
.wallet-balance {
    display: block;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.035em;
    margin: 12px 0 20px;
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
}
.wallet-summary {
    padding: 24px;
    margin-bottom: 20px;
    border-radius: var(--radius-large);
    background: var(--surface);
}
.wallet-summary .wallet-balance {
    margin-bottom: 0;
}
.reseller-history-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 0 16px;
}
.reseller-history-heading h2 {
    font-size: 1.125rem;
}
.history-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: var(--radius-large);
    background: var(--surface);
}
.history-tabs .button {
    position: relative;
    border-radius: calc(var(--radius-large) - 4px);
    min-height: 48px;
    color: var(--muted);
}
.history-tabs [aria-pressed='true'] {
    color: var(--ink);
    background: var(--soft);
}
.history-tabs [aria-pressed='true']::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: calc(50% - 6px);
    width: 12px;
    height: 3px;
    border-radius: 2px;
    background: var(--accent-ink);
}
.history-list {
    padding: 4px 20px;
    border-radius: var(--radius-large);
    background: var(--surface);
    overflow: hidden;
}
.history-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: start;
    padding: 20px 0;
}
.history-row:not(:last-child) {
    border-bottom: 1px solid var(--line);
}
.history-description,
.history-amount {
    display: grid;
    gap: 6px;
    font-size: 0.9375rem;
    min-width: 0;
    overflow-wrap: anywhere;
}
.history-description strong {
    font-weight: 600;
}
.history-description small,
.history-amount small {
    font-size: 0.8125rem;
    line-height: 1.5;
}
.history-amount {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.amount-credit {
    color: var(--positive);
}
.amount-debit {
    color: var(--ink);
}
.reseller-photo-editor {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}
.reseller-photo-editor > :first-child {
    flex: 0 0 64px;
}
.reseller-photo-editor > :last-child {
    flex: 1 1 10rem;
    min-width: 0;
}
.reseller-photo-editor .button {
    min-height: 48px;
}
.reseller-contacts {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}
.reseller-contacts legend {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.reseller-contacts > .hint {
    margin: 0 0 12px;
}
.balance-current {
    margin-bottom: 20px;
    font-size: 0.9375rem;
    color: var(--muted);
}
.balance-preview {
    min-height: 22px;
    font-size: 0.9375rem;
    margin-top: 16px;
}
.generation-cost {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--line);
    padding-top: 16px;
    font-size: 0.9375rem;
}
@media (max-width: 1000px) {
    .reseller-sections {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (max-width: 760px) {
    .reseller-search {
        flex-basis: 100%;
        max-width: none;
        grid-column: 1 / -1;
    }
    .reseller-row {
        grid-template-columns: 48px minmax(0, 1fr) auto;
        gap: 12px;
        padding: 16px 12px;
    }
    .reseller-row:not(:last-child)::after {
        left: 72px;
        right: 12px;
    }
    .reseller-row > svg {
        display: none;
    }
    .reseller-heading {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 12px;
    }
    .reseller-heading > .reseller-avatar {
        width: 56px;
        height: 56px;
        grid-row: 1;
    }
    .reseller-heading-identity {
        display: grid;
        justify-items: start;
        gap: 8px;
    }
    .reseller-heading-identity h1 {
        font-size: 1.375rem;
        line-height: 1.25;
    }
    .reseller-email {
        grid-column: 1 / -1;
        line-height: 1.5;
    }
    .wallet-balance {
        font-size: 1.75rem;
    }
    .reseller-profile,
    .reseller-wallet,
    .wallet-summary {
        padding: 20px;
    }
    .reseller-history-heading {
        gap: 12px;
        flex-wrap: wrap;
    }
    .history-row {
        gap: 12px;
    }
    .history-list {
        padding: 0 16px;
    }
}
@media (max-width: 480px) {
    .reseller-facts {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
    .history-amount {
        max-width: 124px;
    }
}
@container reseller-list (max-width: 30rem) {
    .reseller-row {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 12px;
        padding: 16px 12px;
    }
    .reseller-row:not(:last-child)::after {
        left: 72px;
        right: 12px;
    }
    .reseller-row > svg {
        display: none;
    }
    .reseller-row-account {
        grid-column: 2;
        display: flex;
        flex-wrap: wrap;
        gap: 8px 16px;
        justify-content: space-between;
        align-items: center;
    }
}
@media (hover: hover) and (pointer: fine) {
    .reseller-row:hover {
        background: var(--soft);
    }
}
