html {
    background: #fff7f2;
    color: #17211b;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

/* H5 account authentication */
.bnm-auth-page {
    max-width: 480px;
}

.bnm-auth-page .bnm-top {
    display: flex;
    justify-content: center;
}

.bnm-auth-card {
    overflow: hidden;
    border: 1px solid #f0d8d2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(96, 48, 24, .12);
}

.bnm-auth-card > header {
    padding: 28px 24px 22px;
    background: linear-gradient(135deg, #fff3e8 0%, #fffaf6 58%, #ffe7e2 100%);
    text-align: center;
}

.bnm-auth-card h2 {
    margin: 0 0 8px;
    color: #17211b;
    font-size: 25px;
}

.bnm-auth-card header p {
    margin: 0;
    color: #705a55;
    font-size: 14px;
    line-height: 1.55;
}

.bnm-auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #f0d8d2;
    border-bottom: 1px solid #f0d8d2;
}

.bnm-auth-tabs a {
    position: relative;
    padding: 15px;
    background: #fffaf6;
    color: #705a55;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.bnm-auth-tabs a.active {
    background: #fff;
    color: #d92d20;
}

.bnm-auth-tabs a.active::after {
    position: absolute;
    right: 32%;
    bottom: 0;
    left: 32%;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: #ff5000;
    content: "";
}

.bnm-auth-form {
    display: grid;
    gap: 17px;
    padding: 25px 24px 12px;
}

.bnm-auth-form > label {
    display: grid;
    gap: 8px;
    color: #44332f;
    font-size: 14px;
    font-weight: 700;
}

.bnm-auth-form input:not([type="checkbox"]) {
    box-sizing: border-box;
    width: 100%;
    height: 46px;
    border: 1px solid #ead8d2;
    border-radius: 8px;
    outline: none;
    padding: 0 13px;
    background: #fff;
    color: #17211b;
    font: inherit;
}

.bnm-auth-form input:focus {
    border-color: #ff7b43;
    box-shadow: 0 0 0 3px rgba(255, 80, 0, .1);
}

.bnm-auth-options,
.bnm-auth-check {
    color: #705a55;
    font-size: 13px;
    font-weight: 400;
}

.bnm-auth-form > button {
    min-height: 46px;
    border: 0;
    border-radius: 8px;
    background: #ff5000;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.bnm-auth-form > button:disabled {
    cursor: wait;
    opacity: .65;
}

.bnm-auth-message {
    margin: -4px 0 0;
    border-radius: 7px;
    padding: 10px 12px;
    background: #fff1eb;
    color: #c32a1c;
    font-size: 13px;
    line-height: 1.45;
}

.bnm-auth-switch {
    margin: 0;
    padding: 12px 24px 25px;
    color: #705a55;
    font-size: 14px;
    text-align: center;
}

.bnm-auth-switch a {
    color: #d92d20;
    font-weight: 700;
    text-decoration: none;
}

.bnm-auth-captcha {
    display: block;
}

.bnm-auth-captcha .input-group {
    display: flex;
}

@media (max-width: 480px) {
    .bnm-auth-page { padding-top: 14px; }
    .bnm-auth-card > header { padding: 24px 18px 19px; }
    .bnm-auth-form { padding: 22px 18px 10px; }
    .bnm-auth-switch { padding: 12px 18px 22px; }
}

button,
textarea {
    font: inherit;
    letter-spacing: 0;
}

button {
    cursor: pointer;
}

.bnm-page {
    min-height: 100vh;
    max-width: 560px;
    margin: 0 auto;
    padding: 22px 16px 40px;
}

.bnm-top {
    padding: 10px 0 18px;
}

.bnm-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.bnm-mark {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
}

.bnm-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bnm-brand h1 {
    margin: 0;
    font-size: 26px;
    line-height: 1.15;
}

.bnm-brand p {
    margin: 4px 0 0;
    color: #705a55;
    font-size: 14px;
}

.bnm-check {
    display: grid;
    gap: 12px;
    margin-top: 8px;
}

.bnm-check textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 86px;
    resize: vertical;
    border: 1px solid #f0d8d2;
    border-radius: 8px;
    padding: 14px;
    background: #fff;
    color: #17211b;
    outline: none;
    line-height: 1.5;
}

.bnm-check textarea:focus {
    border-color: #d92d20;
    box-shadow: 0 0 0 3px rgba(217, 45, 32, .14);
}

.bnm-check button,
.bnm-action {
    min-height: 48px;
    border: 0;
    border-radius: 8px;
    background: #d92d20;
    color: #fff;
    font-weight: 700;
    transition: background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.bnm-check button:hover,
.bnm-check button:focus,
.bnm-action:hover,
.bnm-action:focus {
    background: #e33d2f;
    box-shadow: 0 8px 18px rgba(217, 45, 32, .18);
    transform: translateY(-1px);
}

.bnm-check button:disabled {
    background: #c9aaa3;
    box-shadow: none;
    transform: none;
}

.bnm-result {
    margin-top: 18px;
    border: 1px solid #ead8d2;
    border-radius: 8px;
    background: #fffdfb;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(180, 35, 24, .06);
}

.bnm-result.bnm-search-result-shell {
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
    box-shadow: none;
}

.bnm-result-head {
    padding: 14px;
    border-bottom: 1px solid #f4e4df;
}

.bnm-search-result-shell .bnm-result-head {
    padding: 0 0 12px;
    border-bottom: 0;
}

.bnm-chip-section {
    display: grid;
    gap: 8px;
    margin: 0 0 12px;
}

.bnm-chip-title {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #705a55;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
}

.bnm-chip-title::before {
    content: "";
    width: 3px;
    height: 13px;
    border-radius: 3px;
    background: #d92d20;
}

.bnm-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.bnm-suggestion-chip {
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid #f0d8d2;
    border-radius: 8px;
    background: #fff;
    color: #d92d20;
    font-size: 13px;
    font-weight: 700;
}

.bnm-suggestion-chip:hover,
.bnm-suggestion-chip:focus {
    border-color: #d92d20;
    background: #fff1eb;
}

.bnm-brand-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.bnm-brand-chip {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    border: 1px solid #e5ddd8;
    border-radius: 8px;
    background: #fffdfb;
    color: #493936;
    font-size: 13px;
    font-weight: 700;
}

.bnm-brand-chip span {
    color: #8a716b;
    font-size: 12px;
    font-weight: 600;
}

.bnm-brand-chip:hover,
.bnm-brand-chip:focus,
.bnm-brand-chip.active {
    border-color: #d92d20;
    background: #fff1eb;
    color: #d92d20;
}

.bnm-status {
    margin: 0;
    color: #17211b;
    font-size: 18px;
    font-weight: 700;
}

.bnm-message {
    margin: 6px 0 0;
    color: #705a55;
    font-size: 14px;
}

.bnm-goods {
    display: grid;
    grid-template-columns: 94px 1fr;
    gap: 12px;
    padding: 14px;
}

.bnm-goods img,
.bnm-hot-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    background: #f7ebe7;
}

.bnm-goods h3,
.bnm-hot-item h3 {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #17211b;
    font-size: 15px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.bnm-shop {
    margin-top: 8px;
    color: #705a55;
    font-size: 13px;
}

.bnm-goods-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.bnm-goods-meta span {
    max-width: 100%;
    padding: 3px 7px;
    border-radius: 6px;
    background: #fff4ed;
    color: #8a4b32;
    font-size: 12px;
    line-height: 1.35;
}

.bnm-goods-copywriting {
    display: -webkit-box;
    margin-top: 8px;
    overflow: hidden;
    color: #705a55;
    font-size: 12px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.bnm-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 10px;
}

.bnm-price strong {
    color: #e33d2f;
    font-size: 20px;
}

.bnm-price span {
    color: #8a716b;
    font-size: 13px;
}

.bnm-money {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 7px 12px;
    border-radius: 8px;
    background: #d92d20;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.bnm-rebate-tip {
    justify-content: center;
}

.bnm-head-action {
    display: grid;
    margin-top: 10px;
}

.bnm-result-title {
    margin: 0 0 10px;
    color: #7a3726;
    font-size: 14px;
    font-weight: 800;
}

.bnm-coupon-section {
    margin-top: 12px;
}

.bnm-coupon-section .bnm-result-title {
    color: #ff5000;
}

.bnm-created-result {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.bnm-created-info {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff7f2;
    color: #7a3726;
    font-size: 13px;
}

.bnm-created-info strong {
    color: #d92d20;
    font-size: 16px;
}

.bnm-created-info span,
.bnm-created-info em {
    color: #8a625a;
    font-style: normal;
}

.bnm-taobao-link {
    background: #ff5000;
}

.bnm-taobao-link:hover,
.bnm-taobao-link:focus {
    background: #ff6a00;
}

.bnm-rebate-link {
    background: #d92d20;
}

.bnm-rebate-link:hover,
.bnm-rebate-link:focus {
    background: #e33d2f;
}

.bnm-reason {
    display: inline-flex;
    margin-top: 10px;
    padding: 4px 8px;
    border-radius: 6px;
    background: #fff4e0;
    color: #9a5a00;
    font-size: 13px;
    font-weight: 700;
}

.bnm-result-actions {
    display: grid;
    gap: 10px;
    padding: 0 14px 14px;
}

.bnm-create-error {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fff4e0;
    color: #9a5a00;
    font-size: 13px;
    line-height: 1.45;
}

.bnm-price-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.bnm-price-cell {
    min-width: 0;
    padding: 9px 8px;
    border-radius: 8px;
    background: #fff1eb;
    color: #705a55;
    font-size: 12px;
    line-height: 1.25;
}

.bnm-coupon-section .bnm-price-cell {
    background: #fff2e8;
    color: #7a4a20;
}

.bnm-coupon-section .bnm-price-cell strong {
    color: #9a3b00;
}

.bnm-price-cell strong {
    display: block;
    margin-top: 4px;
    color: #17211b;
    font-size: 15px;
}

.bnm-price-cell.bnm-final {
    background: #d92d20;
    color: #fff;
}

.bnm-price-cell.bnm-rebate {
    background: #d92d20;
    color: #fff;
}

.bnm-price-cell.bnm-coupon-pay {
    background: #ff5000;
    color: #fff;
}

.bnm-price-cell.bnm-coupon-pay strong {
    color: #fff;
}

.bnm-price-cell.bnm-coupon-save strong {
    text-decoration: line-through;
    text-decoration-color: rgba(255, 80, 0, .62);
    text-decoration-thickness: 1px;
}

.bnm-price-cell.bnm-final strong {
    color: #fff;
}

.bnm-price-cell.bnm-rebate strong {
    color: #fff;
}

.bnm-price-cell.bnm-quantity {
    border: 1px solid rgba(217, 45, 32, .22);
    background: #fff7f2;
}

.bnm-coupon-section .bnm-price-cell.bnm-quantity {
    border-color: rgba(255, 80, 0, .22);
    background: #fff7ed;
}

.bnm-price-cell.bnm-save strong {
    text-decoration: line-through;
    text-decoration-color: rgba(217, 45, 32, .62);
    text-decoration-thickness: 1px;
}

.bnm-coupon-note {
    margin-top: 8px;
    color: #8a625a;
    font-size: 12px;
    line-height: 1.45;
}

.bnm-promo-box {
    display: grid;
    gap: 10px;
    padding: 14px;
    background: #fffdfb;
}

.bnm-promo-taobao {
    margin-top: 12px;
    border: 1px solid #ffd7bd;
    border-radius: 8px;
    background: #fffaf6;
}

.bnm-promo-taobao .bnm-tpwd {
    border-color: #ffb180;
    background: #fff7ed;
}

.bnm-promo-taobao .bnm-primary-link,
.bnm-promo-taobao .bnm-copy-button {
    min-height: 42px;
    border: 1px solid #ff5000;
    border-color: #ff5000;
    background: #ff5000;
    color: #fff;
}

.bnm-promo-taobao .bnm-primary-link:hover,
.bnm-promo-taobao .bnm-primary-link:focus,
.bnm-promo-taobao .bnm-copy-button:hover,
.bnm-promo-taobao .bnm-copy-button:focus {
    border-color: #ff6a00;
    background: #ff6a00;
    color: #fff;
}

.bnm-rebate-section {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    padding: 14px;
    border-radius: 8px;
    background: #d92d20;
    box-shadow: 0 10px 24px rgba(217, 45, 32, .18);
}

.bnm-rebate-section .bnm-price-grid {
    margin-top: 0;
}

.bnm-rebate-section .bnm-price-cell {
    background: #ff4b0b;
    color: #fff;
}

.bnm-rebate-section .bnm-price-cell strong {
    color: #fff;
    font-size: 17px;
}

.bnm-price-cell.bnm-rebate-final {
    background: #fff;
    color: #9f241b;
}

.bnm-price-cell.bnm-rebate-final strong {
    color: #d92d20;
}

.bnm-rebate-tip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #fff;
    color: #9f241b;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 6px 18px rgba(116, 12, 8, .18);
}

.bnm-rebate-icon {
    display: inline-grid;
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(217, 45, 32, .22), 0 3px 8px rgba(217, 45, 32, .18);
    font-size: 16px;
    line-height: 1;
}

.bnm-rebate-tip strong {
    color: #d92d20;
}

.bnm-rebate-section .bnm-action {
    background: #fff;
    color: #d92d20;
}

.bnm-rebate-section .bnm-action:hover,
.bnm-rebate-section .bnm-action:focus {
    background: #fff7f2;
    color: #b42318;
    box-shadow: 0 8px 18px rgba(116, 12, 8, .2);
}

.bnm-promo-rebate {
    padding: 0;
    border: 0;
    background: transparent;
}

.bnm-tpwd {
    width: 100%;
    text-align: left;
    padding: 10px;
    border: 1px dashed #efaaa1;
    border-radius: 8px;
    background: #fff7f2;
    color: #17211b;
    font-size: 13px;
    line-height: 1.45;
    word-break: break-all;
    cursor: pointer;
}

.bnm-copy-button {
    min-height: 42px;
    border: 1px solid #f0d8d2;
    border-radius: 8px;
    background: #fff;
    color: #d92d20;
    font-weight: 700;
}

.bnm-share-button {
    min-height: 40px;
    border: 1px solid #f0d8d2;
    border-radius: 8px;
    background: #fff;
    color: #d92d20;
    font-weight: 800;
}

.bnm-share-button:disabled {
    color: #9b817b;
    cursor: default;
}

.bnm-card-share {
    position: relative;
    z-index: 4;
    width: max-content;
    min-height: 32px;
    margin-top: 8px;
    padding: 0 10px;
    font-size: 13px;
}

.bnm-qr {
    display: grid;
    justify-items: center;
    gap: 8px;
}

.bnm-qr img {
    width: 128px;
    height: 128px;
    border-radius: 8px;
    background: #fff;
}

.bnm-rank {
    margin-top: 24px;
}

.bnm-debug-fab {
    position: fixed;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 80;
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 50%;
    background: #17211b;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 10px 28px rgba(23, 33, 27, .24);
}

.bnm-debug-fab:disabled {
    cursor: not-allowed;
    opacity: .42;
}

.bnm-debug-card-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    padding: 4px 7px;
    border: 0;
    border-radius: 6px;
    background: rgba(23, 33, 27, .88);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: 0 6px 16px rgba(23, 33, 27, .18);
}

.bnm-rank-item,
.bnm-hot-item,
.bnm-record-card,
.bnm-detail-card {
    position: relative;
}

.bnm-debug-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: end center;
    padding: 16px;
    background: rgba(23, 33, 27, .48);
    box-sizing: border-box;
}

.bnm-debug-overlay[hidden],
.bnm-debug-card-btn[hidden] {
    display: none;
}

.bnm-debug-dialog {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(960px, 100%);
    max-height: min(86vh, 820px);
    border-radius: 8px;
    background: #101815;
    color: #eef6f1;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .36);
    overflow: hidden;
}

.bnm-debug-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.bnm-debug-dialog.is-dragging .bnm-debug-head {
    cursor: grabbing;
}

.bnm-debug-head strong {
    display: block;
    font-size: 16px;
}

.bnm-debug-head span {
    display: block;
    margin-top: 3px;
    color: #a9bbb2;
    font-size: 12px;
}

.bnm-debug-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: auto;
}

.bnm-debug-head-actions button:not(.bnm-debug-close) {
    min-height: 30px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 6px;
    background: rgba(255, 255, 255, .08);
    color: #eef6f1;
    font-size: 12px;
}

.bnm-debug-close {
    display: grid;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 24px;
    line-height: 1;
}

.bnm-debug-body {
    min-height: 0;
    overflow: auto;
    padding: 12px;
}

.bnm-debug-loading,
.bnm-debug-error {
    padding: 18px;
    color: #c6d2cc;
}

.bnm-debug-section {
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .04);
}

.bnm-debug-section + .bnm-debug-section {
    margin-top: 12px;
}

.bnm-debug-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.bnm-debug-section-head h3 {
    margin: 0;
    color: #fff;
    font-size: 14px;
}

.bnm-debug-section-head p {
    margin: 4px 0 0;
    color: #a9bbb2;
    font-size: 12px;
    line-height: 1.45;
}

.bnm-debug-section-head button {
    min-height: 30px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 6px;
    background: rgba(255, 255, 255, .08);
    color: #eef6f1;
    font-size: 12px;
}

.bnm-debug-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.bnm-debug-actions button {
    min-width: 46px;
}

.bnm-debug-content[hidden] {
    display: none;
}

.bnm-debug-empty {
    padding: 12px;
    color: #a9bbb2;
    font-size: 12px;
}

.bnm-debug-copy-source {
    display: none;
}

.bnm-debug-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
    padding: 12px;
}

.bnm-debug-summary-cell {
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, .05);
}

.bnm-debug-summary-cell.finance-price {
    border-color: rgba(139, 211, 255, .22);
    background: rgba(65, 137, 188, .16);
}

.bnm-debug-summary-cell.finance-commission {
    border-color: rgba(167, 230, 176, .22);
    background: rgba(52, 141, 87, .16);
}

.bnm-debug-summary-cell.finance-rebate {
    border-color: rgba(255, 210, 125, .24);
    background: rgba(194, 126, 36, .16);
}

.bnm-debug-summary-cell.finance-profit,
.bnm-debug-summary-cell.finance-ok {
    border-color: rgba(113, 221, 134, .32);
    background: rgba(41, 152, 82, .22);
}

.bnm-debug-summary-cell.finance-danger {
    border-color: rgba(255, 116, 116, .36);
    background: rgba(168, 51, 51, .26);
}

.bnm-debug-summary-cell.finance-muted {
    border-color: rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .035);
}

.bnm-debug-summary-cell.bnm-debug-info-cell {
    border-color: rgba(182, 197, 191, .18);
    background: rgba(182, 197, 191, .08);
}

.bnm-debug-summary-cell span {
    display: block;
    color: #a9bbb2;
    font-size: 12px;
    line-height: 1.35;
}

.bnm-debug-summary-cell strong {
    display: block;
    margin-top: 5px;
    color: #eef6f1;
    font-size: 17px;
    line-height: 1.3;
    word-break: break-word;
}

.bnm-debug-summary-cell.finance-price strong {
    color: #8bd3ff;
}

.bnm-debug-summary-cell.finance-commission strong,
.bnm-debug-summary-cell.finance-profit strong,
.bnm-debug-summary-cell.finance-ok strong {
    color: #a7e6b0;
}

.bnm-debug-summary-cell.finance-rebate strong {
    color: #ffd27d;
}

.bnm-debug-summary-cell.finance-danger strong {
    color: #ffad8f;
}

.bnm-debug-formula {
    margin: 0 12px 12px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 10px;
    color: #a9bbb2;
    font-size: 12px;
    line-height: 1.65;
}

.bnm-debug-formula b {
    color: #eef6f1;
}

.bnm-debug-taobao {
    border-color: rgba(217, 45, 32, .38);
    background: #16211b;
}

.bnm-debug-api-list {
    display: grid;
    gap: 10px;
}

.bnm-debug-api-card {
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background: #0b1711;
    overflow: hidden;
}

.bnm-debug-api-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.bnm-debug-api-title strong {
    min-width: 0;
    color: #eef6f1;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.bnm-debug-api-status {
    flex: 0 0 auto;
    padding: 3px 8px;
    border-radius: 999px;
    background: #22332a;
    color: #a9bbb2;
    font-size: 12px;
    font-weight: 700;
}

.bnm-debug-api-status.success {
    background: rgba(34, 197, 94, .16);
    color: #86efac;
}

.bnm-debug-api-status.failed {
    background: rgba(217, 45, 32, .2);
    color: #ffad8f;
}

.bnm-debug-api-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 8px 12px 0;
    color: #a9bbb2;
    font-size: 12px;
}

.bnm-debug-api-message {
    margin: 8px 12px 0;
    padding: 8px 10px;
    border-radius: 6px;
    background: rgba(245, 158, 11, .14);
    color: #ffd08a;
    font-size: 12px;
    line-height: 1.45;
}

.bnm-debug-api-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    padding: 10px 12px 12px;
}

.bnm-debug-api-columns h4 {
    margin: 0 0 6px;
    color: #dbe8e1;
    font-size: 12px;
}

.bnm-debug-api-columns pre {
    max-height: 260px;
    margin: 0;
}

.bnm-debug-table-wrap {
    overflow: auto;
}

.bnm-debug-table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    color: #dbe8e1;
    font-size: 12px;
}

.bnm-debug-table th,
.bnm-debug-table td {
    max-width: 180px;
    padding: 9px 10px;
    border: 1px solid rgba(255, 255, 255, .1);
    text-align: left;
    vertical-align: top;
    white-space: nowrap;
}

.bnm-debug-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #18231f;
    color: #fff;
    font-weight: 700;
}

.bnm-debug-table th:first-child,
.bnm-debug-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #15201c;
}

.bnm-debug-table th:first-child {
    z-index: 3;
}

.bnm-debug-record-list {
    padding: 12px;
}

.bnm-debug-record-list .bnm-debug-section {
    background: rgba(255, 255, 255, .03);
}

.bnm-debug-record-list .bnm-debug-section:first-child {
    margin-top: 0;
}

.bnm-debug-section pre {
    max-height: 360px;
    margin: 0;
    padding: 12px;
    overflow: auto;
    color: #dbe8e1;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.bnm-json-viewer {
    tab-size: 2;
}

.bnm-json-key {
    color: #8bd3ff;
}

.bnm-json-string {
    color: #a7e6b0;
}

.bnm-json-number {
    color: #ffd27d;
}

.bnm-json-boolean {
    color: #ffad8f;
}

.bnm-json-null {
    color: #9aa8a1;
}

.bnm-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.bnm-section-title h2 {
    margin: 0;
    font-size: 18px;
}

.bnm-section-title a {
    color: #d92d20;
    font-size: 14px;
    text-decoration: none;
}

.bnm-hot-list {
    display: grid;
    gap: 10px;
}

.bnm-hot-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 10px;
    padding: 10px;
    border: 1px solid #ead8d2;
    border-radius: 8px;
    background: #fff;
    text-decoration: none;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease;
}

.bnm-hot-item:hover,
.bnm-hot-item:focus {
    border-color: #d92d20;
    background: #fffaf6;
    box-shadow: 0 8px 22px rgba(217, 45, 32, .12);
    transform: translateY(-1px);
}

.bnm-recent-badge {
    display: grid;
    width: 72px;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 8px;
    background: #fff4e0;
    color: #b46a00;
    font-size: 22px;
    font-weight: 700;
}

.bnm-recent-badge img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.bnm-hot-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
}

.bnm-hot-meta strong {
    color: #e33d2f;
}

.bnm-hot-meta span {
    color: #705a55;
    font-size: 13px;
}

.bnm-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin: 6px 0 16px;
}

.bnm-nav a,
.bnm-nav button,
.bnm-action-link {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid #f0d8d2;
    border-radius: 8px;
    background: #fff;
    color: #d92d20;
    font-weight: 700;
    text-decoration: none;
    transition: border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.bnm-nav button {
    font: inherit;
}

.bnm-nav-active,
.bnm-nav-primary {
    border-color: #d92d20 !important;
    background: #d92d20 !important;
    color: #fff !important;
}

.bnm-nav a:hover,
.bnm-nav a:focus,
.bnm-nav button:hover,
.bnm-nav button:focus,
.bnm-action-link:hover,
.bnm-action-link:focus {
    border-color: #d92d20;
    background: #fff1eb;
    color: #d92d20;
    box-shadow: 0 6px 16px rgba(217, 45, 32, .12);
    transform: translateY(-1px);
}

.bnm-nav-active:hover,
.bnm-nav-active:focus,
.bnm-nav-primary:hover,
.bnm-nav-primary:focus {
    border-color: #e33d2f !important;
    background: #e33d2f !important;
    color: #fff !important;
}

.bnm-quick-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 16px;
}

.bnm-quick-row a {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid #f0d8d2;
    border-radius: 8px;
    background: #fff;
    color: #d92d20;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.bnm-quick-row a:hover,
.bnm-quick-row a:focus {
    border-color: #d92d20;
    background: #fff1eb;
    color: #d92d20;
    box-shadow: 0 6px 16px rgba(217, 45, 32, .12);
    transform: translateY(-1px);
}

.bnm-loading,
.bnm-empty {
    padding: 22px 14px;
    border: 1px solid #ead8d2;
    border-radius: 8px;
    background: #fff;
    color: #705a55;
    text-align: center;
}

.bnm-detail,
.bnm-user,
.bnm-records {
    display: grid;
    gap: 12px;
}

.bnm-detail-card,
.bnm-user-card,
.bnm-record-card {
    border: 1px solid #ead8d2;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.bnm-detail-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: #f7ebe7;
}

.bnm-detail-body,
.bnm-user-card,
.bnm-record-card {
    padding: 14px;
}

.bnm-detail-title {
    margin: 0;
    color: #17211b;
    font-size: 19px;
    line-height: 1.35;
}

.bnm-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.bnm-tag {
    padding: 5px 8px;
    border-radius: 6px;
    background: #e8f7f5;
    color: #0f766e;
    font-size: 13px;
    font-weight: 700;
}

.bnm-subsidy-tag {
    background: #fff1eb;
    color: #d92d20;
}

.bnm-gift-tag {
    background: #d92d20;
    color: #fff;
}

.bnm-after-tag {
    background: #ffe8e2;
    color: #a5281f;
}

.bnm-muted-tag {
    background: #f4efed;
    color: #705a55;
}

.bnm-material-box {
    display: grid;
    gap: 10px;
    margin-top: 12px;
    padding: 10px;
    border: 1px solid #ead8d2;
    border-radius: 8px;
    background: #fffaf6;
}

.bnm-material-box p {
    margin: 0;
    color: #4f3f3b;
    font-size: 14px;
    line-height: 1.55;
}

.bnm-material-images {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.bnm-material-images img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    object-fit: cover;
    background: #f7ebe7;
}

.bnm-detail-actions,
.bnm-actions {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.bnm-logout-button {
    width: 100%;
    margin-top: 6px;
    border-color: #e6c6c0;
    background: #fff8f6;
    color: #a72b21;
    font: inherit;
    cursor: pointer;
}

.bnm-logout-button:disabled {
    cursor: wait;
    opacity: .65;
    transform: none;
}

.bnm-primary-link {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #d92d20;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.bnm-choice-overlay {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(80, 22, 18, .42);
}

.bnm-choice-overlay[hidden] {
    display: none;
}

.bnm-choice-dialog {
    width: min(100%, 360px);
    padding: 18px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(80, 22, 18, .18);
}

.bnm-choice-dialog h2 {
    margin: 0;
    color: #17211b;
    font-size: 18px;
}

.bnm-choice-dialog p {
    margin: 8px 0 14px;
    color: #705a55;
    font-size: 14px;
    line-height: 1.55;
}

.bnm-choice-actions {
    display: grid;
    gap: 10px;
}

.bnm-user-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bnm-avatar {
    width: 58px;
    height: 58px;
    border-radius: 8px;
    object-fit: cover;
    background: #f7ebe7;
}

.bnm-user-head h1,
.bnm-title-row h1 {
    margin: 0;
    color: #17211b;
    font-size: 22px;
}

.bnm-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 16px;
}

.bnm-title-row a {
    color: #d92d20;
    font-weight: 700;
    text-decoration: none;
}

.bnm-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.bnm-tabs::-webkit-scrollbar {
    display: none;
}

.bnm-tabs button {
    flex: 0 0 auto;
    min-height: 40px;
    border: 1px solid #f0d8d2;
    border-radius: 8px;
    background: #fff;
    color: #705a55;
    font-weight: 700;
    white-space: nowrap;
}

.bnm-tabs button.active {
    border-color: #d92d20;
    background: #d92d20;
    color: #fff;
}

.bnm-record-type-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
    padding-bottom: 0;
}

.bnm-record-type-tabs button {
    min-width: 0;
    width: 100%;
}

.bnm-rank-tabs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    overflow: visible;
    padding-bottom: 0;
}

.bnm-rank-tabs button {
    min-width: 0;
    width: 100%;
    padding: 0 4px;
    font-size: 12px;
}

.bnm-library-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
    padding-bottom: 0;
}

.bnm-library-tabs button {
    min-width: 0;
    width: 100%;
}

.bnm-filter-row {
    display: flex;
    gap: 8px;
    margin: 10px 0 12px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    white-space: nowrap;
}

.bnm-filter-row::-webkit-scrollbar {
    display: none;
}

.bnm-filter-row button {
    flex: 0 0 auto;
    min-height: 34px;
    border: 1px solid #ead8d2;
    border-radius: 999px;
    background: #fff;
    color: #705a55;
    font-size: 13px;
    font-weight: 700;
    padding: 0 12px;
    white-space: nowrap;
}

.bnm-filter-row button.active {
    border-color: #d92d20;
    background: #fff1eb;
    color: #d92d20;
}

.bnm-library-categories {
    flex-wrap: wrap;
    overflow: visible;
    white-space: normal;
}

.bnm-library-filter-note {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 12px;
    color: #705a55;
    font-size: 12px;
    line-height: 1.4;
}

.bnm-library-filter-note span {
    display: inline-flex;
    gap: 4px;
    max-width: 100%;
    padding: 6px 8px;
    border: 1px solid #ead8d2;
    border-radius: 8px;
    background: #fffdfb;
}

.bnm-library-filter-note .bnm-library-explain {
    flex-basis: 100%;
    display: block;
    color: #493936;
}

.bnm-library-filter-note strong {
    color: #d92d20;
}

.bnm-rank-list {
    display: grid;
    gap: 10px;
}

.bnm-search-footer {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.bnm-search-count {
    margin: 0;
    color: #705a55;
    font-size: 13px;
    text-align: center;
}

.bnm-load-more {
    min-height: 42px;
    border: 1px solid #ead8d2;
    border-radius: 8px;
    background: #fffdfb;
    color: #d92d20;
    font-weight: 700;
}

.bnm-load-more:hover,
.bnm-load-more:focus {
    border-color: #d92d20;
    background: #fff7f2;
}

.bnm-load-more:disabled {
    color: #c9aaa3;
    cursor: default;
}

.bnm-rank-item {
    display: grid;
    grid-template-columns: 30px 76px 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid #ead8d2;
    border-radius: 8px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease;
}

.bnm-rank-item:hover,
.bnm-rank-item:focus {
    border-color: #d92d20;
    background: #fffaf6;
    box-shadow: 0 8px 22px rgba(217, 45, 32, .12);
    transform: translateY(-1px);
}

.bnm-rank-no {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 8px;
    background: #fff1eb;
    color: #d92d20;
    font-weight: 700;
}

.bnm-rank-item img {
    width: 76px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    background: #f7ebe7;
}

.bnm-rank-body {
    min-width: 0;
}

.bnm-rank-body h3 {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #17211b;
    font-size: 15px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.bnm-rank-shop {
    margin-top: 6px;
    color: #705a55;
    font-size: 13px;
}

.bnm-rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-top: 8px;
    color: #705a55;
    font-size: 13px;
}

.bnm-rank-meta strong {
    color: #e33d2f;
    font-size: 16px;
}

.bnm-rank-reason {
    margin-top: 6px;
    color: #d92d20;
    font-size: 13px;
    font-weight: 700;
}

.bnm-user-head p {
    margin: 4px 0 0;
    color: #705a55;
}

.bnm-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.bnm-metric {
    padding: 12px;
    border-radius: 8px;
    background: #fff1eb;
}

.bnm-metric span {
    color: #705a55;
    font-size: 13px;
}

.bnm-metric strong {
    display: block;
    margin-top: 4px;
    color: #17211b;
    font-size: 20px;
}

.bnm-record-card {
    display: grid;
    gap: 8px;
}

.bnm-record-main {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.bnm-record-main img {
    width: 72px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    background: #f7ebe7;
}

.bnm-record-card h3 {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #17211b;
    font-size: 15px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.bnm-record-shop {
    margin-top: 6px;
    color: #705a55;
    font-size: 13px;
}

.bnm-record-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    margin-top: 7px;
}

.bnm-record-price strong {
    color: #e33d2f;
    font-size: 16px;
}

.bnm-record-price span {
    color: #8a716b;
    font-size: 13px;
}

.bnm-record-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: #705a55;
    font-size: 13px;
}

.bnm-record-status {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    border-radius: 999px;
    padding: 0 8px;
    background: #fff1eb;
    color: #d92d20;
    font-weight: 700;
}

.bnm-record-status.is-good {
    background: #e8f7f5;
    color: #0f766e;
}

.bnm-record-status.is-wait {
    background: #fff4e0;
    color: #b46a00;
}

.bnm-record-status.is-muted {
    background: #f3efed;
    color: #8a716b;
}

.bnm-record-type {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    border-radius: 999px;
    padding: 0 8px;
    background: #d92d20;
    color: #fff;
    font-weight: 700;
}

.bnm-record-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 2px;
}

.bnm-record-actions .bnm-primary-link,
.bnm-record-actions .bnm-action-link {
    min-height: 38px;
    font-size: 13px;
}

.bnm-record-actions .bnm-primary-link:first-child {
    grid-column: 1 / -1;
}

.bnm-load-more {
    padding: 14px 0 22px;
    color: #8a716b;
    font-size: 13px;
    text-align: center;
}

.bnm-load-more[hidden] {
    display: none;
}

.bnm-form {
    display: grid;
    gap: 12px;
}

.bnm-setting-card {
    display: grid;
    gap: 2px;
    border: 1px solid #ead8d2;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.bnm-switch-row,
.bnm-field-row {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border-bottom: 1px solid #f4e4df;
}

.bnm-switch-row:last-child,
.bnm-field-row:last-child {
    border-bottom: 0;
}

.bnm-switch-row span {
    display: grid;
    gap: 4px;
}

.bnm-switch-row strong,
.bnm-field-row label {
    color: #17211b;
    font-size: 15px;
    font-weight: 700;
}

.bnm-switch-row em {
    color: #705a55;
    font-size: 13px;
    font-style: normal;
}

.bnm-switch-row input[type="checkbox"] {
    width: 46px;
    height: 26px;
    flex: 0 0 auto;
    appearance: none;
    border-radius: 999px;
    background: #d9c2bc;
    outline: none;
    transition: background .15s ease;
}

.bnm-switch-row input[type="checkbox"]::before {
    display: block;
    width: 22px;
    height: 22px;
    margin: 2px;
    border-radius: 50%;
    background: #fff;
    content: "";
    transition: transform .15s ease;
}

.bnm-switch-row input[type="checkbox"]:checked {
    background: #d92d20;
}

.bnm-switch-row input[type="checkbox"]:checked::before {
    transform: translateX(20px);
}

.bnm-field-row input {
    width: 116px;
    border: 1px solid #f0d8d2;
    border-radius: 8px;
    padding: 9px 10px;
    background: #fff;
    color: #17211b;
    font: inherit;
}

.bnm-inline-message {
    min-height: 20px;
    margin: 0;
    color: #d92d20;
    font-size: 14px;
    text-align: center;
}

.bnm-inline-message.failed {
    color: #e33d2f;
}

@media (min-width: 720px) {
    .bnm-page {
        padding-top: 34px;
    }
}

@media (max-width: 640px) {
    .bnm-debug-api-columns {
        grid-template-columns: 1fr;
    }
}

.bnm-purchase-page {
    max-width: 560px;
    padding: 0 0 92px;
    background: #f6f7f3;
}

.bnm-purchase-hero {
    position: relative;
    min-height: 236px;
    padding: 14px 16px 24px;
    overflow: hidden;
    background: linear-gradient(135deg, #d92d20 0%, #ff6a00 48%, #f4b23d 100%);
    color: #fff;
}

.bnm-purchase-hero:after {
    content: "";
    position: absolute;
    right: -92px;
    bottom: -88px;
    width: 240px;
    height: 240px;
    border: 34px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
}

.bnm-purchase-nav {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.bnm-purchase-nav::-webkit-scrollbar {
    display: none;
}

.bnm-purchase-nav button,
.bnm-purchase-nav a {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 8px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.bnm-purchase-nav-active {
    border-color: rgba(255, 255, 255, .9) !important;
    background: #fff !important;
    color: #d92d20 !important;
}

.bnm-purchase-user {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
}

.bnm-purchase-avatar {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, .72);
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    font-size: 22px;
    font-weight: 800;
    color: inherit;
    text-decoration: none;
}

.bnm-purchase-avatar img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.bnm-purchase-user > div > strong,
.bnm-purchase-user > div > span {
    display: block;
}

.bnm-purchase-user > div > strong {
    font-size: 17px;
}

.bnm-purchase-user > div > span {
    margin-top: 3px;
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
}

.bnm-purchase-hero-copy {
    position: relative;
    z-index: 1;
    margin-top: 24px;
}

.bnm-purchase-hero-copy p,
.bnm-purchase-hero-copy h1 {
    margin: 0;
}

.bnm-purchase-hero-copy p {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 8px;
    background: rgba(23, 33, 27, .18);
    font-size: 13px;
    font-weight: 800;
}

.bnm-purchase-hero-copy h1 {
    max-width: 360px;
    margin-top: 10px;
    font-size: 30px;
    line-height: 1.15;
}

.bnm-purchase-hero-copy span {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, .86);
    font-size: 14px;
}

.bnm-purchase-card {
    position: relative;
    z-index: 2;
    margin: -26px 16px 0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(119, 47, 23, .14);
    overflow: hidden;
}

.bnm-purchase-card article {
    padding: 14px;
}

.bnm-purchase-images {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(86px, .78fr);
    gap: 8px;
}

.bnm-purchase-images img {
    display: block;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    background: #f0eee8;
}

.bnm-purchase-image-main {
    aspect-ratio: 1;
}

.bnm-purchase-images > div {
    display: grid;
    gap: 8px;
}

.bnm-purchase-images > div img {
    aspect-ratio: 1;
}

.bnm-purchase-title {
    margin-top: 14px;
}

.bnm-purchase-title h2 {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #17211b;
    font-size: 18px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.bnm-purchase-title p {
    margin: 7px 0 0;
    color: #756861;
    font-size: 13px;
}

.bnm-purchase-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.bnm-purchase-tags span {
    padding: 5px 8px;
    border-radius: 6px;
    background: #f2f3ee;
    color: #5d665f;
    font-size: 12px;
    font-weight: 700;
}

.bnm-purchase-price-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.bnm-purchase-price-grid div {
    min-width: 0;
    padding: 10px 8px;
    border-radius: 8px;
    background: #fff3e8;
    color: #7a4a20;
}

.bnm-purchase-price-grid span,
.bnm-purchase-price-grid strong {
    display: block;
}

.bnm-purchase-price-grid span {
    font-size: 12px;
}

.bnm-purchase-price-grid strong {
    margin-top: 4px;
    color: #17211b;
    font-size: 16px;
}

.bnm-purchase-price-grid .is-hot {
    background: #ffe7e2;
    color: #8a2d24;
}

.bnm-purchase-price-grid .is-hot strong {
    color: #d92d20;
}

.bnm-purchase-price-grid .is-final {
    grid-column: span 2;
    background: #d92d20;
    color: #fff;
}

.bnm-purchase-price-grid .is-final strong {
    color: #fff;
    font-size: 22px;
}

.bnm-purchase-message {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f7f8f4;
    color: #687269;
    font-size: 13px;
}

.bnm-purchase-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
}

.bnm-purchase-empty {
    display: grid;
    gap: 8px;
    justify-items: start;
    padding: 22px 14px;
}

.bnm-purchase-empty strong {
    color: #17211b;
    font-size: 18px;
}

.bnm-purchase-empty span {
    color: #756861;
    font-size: 14px;
}

.bnm-purchase-created {
    display: grid;
    gap: 3px;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff7f2;
    color: #7a3726;
    font-size: 13px;
}

.bnm-purchase-created strong {
    color: #d92d20;
    font-size: 16px;
}

.bnm-purchase-tpwd {
    display: grid;
    gap: 10px;
    margin: 16px 16px 0;
    padding: 14px;
    border: 1px solid #ffd7bd;
    border-radius: 8px;
    background: #fffaf6;
}

.bnm-purchase-tpwd[hidden] {
    display: none;
}

.bnm-purchase-tpwd h2 {
    margin: 0;
    color: #17211b;
    font-size: 16px;
}

.bnm-purchase-rank {
    margin: 22px 16px 0;
}

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

.bnm-purchase-hot {
    display: grid;
    gap: 7px;
    padding: 8px;
    border-radius: 8px;
    background: #fff;
    color: #17211b;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(23, 33, 27, .06);
}

.bnm-purchase-hot img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    background: #f0eee8;
}

.bnm-purchase-hot strong {
    display: -webkit-box;
    min-height: 38px;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.bnm-purchase-hot span {
    color: #d92d20;
    font-size: 13px;
    font-weight: 800;
}

.bnm-purchase-bar {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    box-sizing: border-box;
    width: min(560px, 100%);
    padding: 10px 14px max(10px, env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96);
    border-top: 1px solid #ead8d2;
    transform: translateX(-50%);
    box-shadow: 0 -10px 28px rgba(23, 33, 27, .12);
}

.bnm-purchase-bar[hidden] {
    display: none;
}

.bnm-purchase-bar span,
.bnm-purchase-bar strong {
    display: block;
}

.bnm-purchase-bar span {
    color: #756861;
    font-size: 12px;
}

.bnm-purchase-bar strong {
    color: #d92d20;
    font-size: 22px;
}

.bnm-purchase-bar button {
    min-width: 148px;
    min-height: 46px;
    border: 0;
    border-radius: 8px;
    background: #d92d20;
    color: #fff;
    font-weight: 800;
}

.bnm-purchase-bar button:disabled {
    background: #c9aaa3;
}

@media (max-width: 380px) {
    .bnm-purchase-hero-copy h1 {
        font-size: 26px;
    }

    .bnm-purchase-actions {
        grid-template-columns: 1fr;
    }

    .bnm-purchase-price-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bnm-purchase-price-grid .is-final {
        grid-column: span 2;
    }
}
.bnm-subscription-tip {
    margin: 6px 0 0;
    color: var(--bnm-muted, #777);
    font-size: 13px;
}

.bnm-subscription-settings {
    margin: 14px 0;
}

.bnm-subscription-settings-head,
.bnm-subscription-toolbar,
.bnm-subscription-price-row,
.bnm-subscription-switches {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.bnm-subscription-settings-head {
    justify-content: space-between;
    margin-bottom: 12px;
}

.bnm-subscription-switches,
.bnm-subscription-price-row {
    margin-bottom: 12px;
}

.bnm-subscription-price-row select,
.bnm-subscription-price-row input {
    min-height: 38px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 7px 10px;
    background: #fff;
}

.bnm-subscription-price-row input {
    width: 110px;
}

.bnm-subscription-toolbar {
    justify-content: flex-end;
}

.bnm-subscription-card {
    position: relative;
    padding-top: 42px;
}

.bnm-subscription-check {
    position: absolute;
    top: 12px;
    left: 14px;
    color: var(--bnm-muted, #666);
}

@media (max-width: 560px) {
    .bnm-subscription-price-row select {
        flex: 1 1 100%;
    }

    .bnm-subscription-toolbar .bnm-action,
    .bnm-subscription-toolbar .bnm-action-link {
        flex: 1;
    }
}
