:root {
  color: #332522;
  background: #f7f3ef;
  font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  line-height: 1.5;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #faf6f0; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #c7483c; outline-offset: 2px; }

.shell { min-height: 100vh; }
.utility-bar { display: flex; justify-content: flex-end; gap: 18px; padding: 7px 5vw; color: #f7ebe4; background: #4a2420; font-size: 12px; }
.topbar { position: sticky; z-index: 3; top: 0; min-height: 72px; padding: 0 5vw; display: flex; align-items: center; gap: 16px; background: rgb(255 253 250 / 96%); color: #3b2421; box-shadow: 0 2px 12px rgb(77 41 35 / 8%); backdrop-filter: blur(12px); }
.brand { color: inherit; display: inline-flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.brand-mark { width: 38px; height: 38px; display: block; border: 0; object-fit: contain; }
.brand small { display: block; color: #8b6f68; font-size: 11px; font-weight: 400; }
.global-search { display: grid; flex: 0 1 360px; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; min-width: 240px; gap: 0; }
.global-search input { min-width: 0; border: 2px solid #a7372f; border-right: 0; border-radius: 4px 0 0 4px; padding: 10px 13px; background: #fff; color: #382725; }
.global-search span { display: grid; place-items: center; padding: 0 19px; color: #fff; background: #a7372f; font-size: 13px; font-weight: 700; }
.main-nav { display: flex; flex: 1 1 auto; min-width: 0; align-self: stretch; align-items: stretch; gap: 2px; overflow-x: auto; }
.nav-link, .account-button, .quiet-button, .text-action, .primary-button, .danger-link { border: 0; background: transparent; }
.nav-link { position: relative; color: #5d4945; padding: 0 9px; font-size: 14px; white-space: nowrap; }
.nav-link:hover, .nav-link.is-active { color: #a7372f; background: #fff6f3; }
.nav-link.is-active::after { position: absolute; right: 12px; bottom: 0; left: 12px; height: 3px; content: ""; background: #a7372f; }
.account-button { border: 1px solid #a7372f; color: #9c322b; padding: 8px 14px; border-radius: 4px; white-space: nowrap; }
.account-button:hover { color: #fff; background: #a7372f; }

main { width: min(1380px, 100% - 10vw); margin: 0 auto; padding: 24px 0 56px; }
.connection-bar { min-height: 40px; display: flex; align-items: center; gap: 9px; padding: 7px 13px; color: #715650; background: #f2e7df; font-size: 13px; }
.connection-dot { width: 8px; height: 8px; border-radius: 50%; background: #c7483c; }
.connection-dot.is-online { background: #5b7661; }
.text-action { color: #a7372f; text-decoration: none; padding: 2px; }
.text-action:hover { text-decoration: underline; }
.view { padding-top: 28px; }
.market-stage { display: grid; grid-template-columns: 176px minmax(0, 1fr) 264px; gap: 14px; }
.category-menu { display: grid; align-content: start; gap: 0; overflow: hidden; background: #fffdfa; border-radius: 8px; box-shadow: 0 2px 7px rgb(92 51 43 / 6%); }
.category-menu strong { padding: 17px 17px 12px; color: #452721; font-size: 16px; }
.category-menu button { padding: 10px 17px; border: 0; color: #634b45; background: #fffdfa; text-align: left; font-size: 14px; }
.category-menu button:hover { color: #a7372f; background: #fff2ed; }
.home-intro { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(194px, 0.32fr); gap: 28px; min-height: 390px; align-items: end; padding: 38px; overflow: hidden; color: #fff; background: #60251f url("./assets/processing-workshop-hero.png") center / cover no-repeat; border-radius: 8px; box-shadow: 0 12px 28px rgb(91 41 35 / 20%); }
.home-intro::before { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgb(48 20 17 / 91%) 0%, rgb(68 25 21 / 73%) 48%, rgb(63 25 21 / 18%) 100%); }
.hero-copy-block, .service-summary { position: relative; z-index: 1; }
.home-intro .section-label { color: #f4c7a2; }
.home-intro h1 { max-width: 610px; color: #fffaf7; }
.home-copy { max-width: 51ch; margin: 14px 0 0; color: #f6e7de; font-size: 15px; }
.home-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.home-actions a { display: inline-grid; place-items: center; text-decoration: none; }
.hero-secondary { min-height: 40px; padding: 8px 15px; border: 1px solid #f2c1aa; border-radius: 4px; color: #fff; background: rgb(86 29 27 / 44%); }
.service-summary { display: grid; gap: 10px; padding: 19px; color: #fbebe3; background: rgb(65 24 22 / 68%); border: 1px solid rgb(250 210 189 / 25%); border-radius: 8px; }
.service-summary strong { color: #f8c190; font-size: 16px; }
.service-summary span { padding-top: 9px; border-top: 1px solid rgb(251 230 219 / 24%); font-size: 14px; }
.market-feature { display: grid; grid-template-rows: 174px 1fr; overflow: hidden; background: #fffdfa; border-radius: 8px; box-shadow: 0 2px 8px rgb(92 51 43 / 8%); }
.market-feature img { width: 100%; height: 100%; object-fit: cover; }
.market-feature div { padding: 16px; }
.market-feature h2 { margin: 3px 0 8px; color: #452721; font-size: 19px; }
.market-feature p:not(.section-label) { margin-bottom: 10px; color: #7c625b; font-size: 13px; }
.market-feature .text-action { color: #a7372f; }
.market-shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 16px 0 0; }
.market-shortcuts button { min-height: 110px; padding: 17px 18px; border: 1px solid #ecdcd3; border-radius: 8px; color: #503934; background: #fffdfa; text-align: left; box-shadow: 0 4px 12px rgb(92 51 43 / 5%); }
.market-shortcuts button:hover { background: #fff1eb; }
.market-shortcuts strong, .market-shortcuts span { display: block; }
.market-shortcuts strong { color: #452721; font-size: 16px; }
.market-shortcuts span { margin-top: 5px; color: #82665e; font-size: 13px; }
.market-shortcuts .shortcut-index { width: 28px; height: 28px; display: grid; place-items: center; margin: 0 0 10px; color: #fff; background: #a7372f; border-radius: 50%; font-weight: 700; font-size: 12px; }
.processing-evidence-band { display: grid; grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.1fr); align-items: stretch; margin-top: 22px; overflow: hidden; background: #fffdfa; border: 1px solid #eadbd4; border-radius: 8px; }
.processing-evidence-band img { width: 100%; height: 230px; object-fit: cover; }
.processing-evidence-band div { display: grid; align-content: center; justify-items: start; padding: 28px 32px; }
.processing-evidence-band h2 { margin: 0; color: #452721; font-size: 24px; }
.processing-evidence-band p:not(.section-label) { max-width: 48ch; margin: 10px 0 15px; color: #765a52; }
.catalog-heading { margin-top: 30px; }
.catalog-heading h2 { margin: 0; color: #3d2723; font-size: 25px; font-weight: 700; }
.view-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-label { margin: 0 0 5px; color: #ae4a38; font-size: 13px; font-weight: 700; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 780px; margin-bottom: 0; font-size: clamp(28px, 3vw, 40px); line-height: 1.18; font-weight: 700; letter-spacing: 0; }
h2 { margin-bottom: 14px; font-size: 19px; line-height: 1.35; font-weight: 700; }
.quiet-button { min-height: 44px; padding: 8px 12px; color: #9f352e; border: 1px solid #c7a49a; border-radius: 4px; background: #fffaf7; }
.quiet-button:hover { border-color: #a7372f; background: #fff0ea; }

.catalog-toolbar { display: flex; justify-content: flex-end; gap: 24px; align-items: end; margin-bottom: 20px; }
label { display: grid; gap: 6px; color: #53403a; font-size: 14px; }
input, textarea, select { width: 100%; border: 1px solid #cfbbb2; border-radius: 4px; padding: 10px 11px; background: #fffdfa; color: #382725; }
textarea { resize: vertical; }
.catalog-toolbar p { margin: 0; color: #7d625b; font-size: 14px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 14px; }
.product-card { min-height: 242px; padding: 18px; display: flex; flex-direction: column; background: #fffdfa; border: 1px solid #e2d5ce; border-radius: 4px; }
.product-card h2 { margin-bottom: 5px; font-size: 19px; }
.product-card p { color: #715c55; font-size: 14px; }
.product-card footer { margin-top: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: end; gap: 7px 12px; }
.product-card footer > div { grid-row: 1 / span 2; }
.product-card footer .text-action { justify-self: start; white-space: nowrap; }
.product-card footer .primary-button { grid-column: 2; grid-row: 1 / span 2; min-width: 96px; min-height: 44px; white-space: nowrap; }
.product-price { display: block; color: #a7372f; font-size: 20px; font-weight: 700; }
.product-meta { display: block; max-width: 84px; overflow: hidden; color: #876d65; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.product-detail-panel { margin-top: 18px; padding: 20px; border-top: 3px solid #a7372f; background: #fffdfa; }
.processing-store-detail-panel { margin-top: 18px; padding: 20px; border-top: 3px solid #a7372f; background: #fffdfa; }
.processing-store-detail-panel .product-attribute-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.processing-review-form { display: grid; gap: 12px; }
.processing-review-form label { display: grid; gap: 6px; color: #513d36; font-weight: 700; }
.processing-review-form select, .processing-review-form textarea { width: 100%; box-sizing: border-box; border: 1px solid #d9bbb0; background: #fff; color: #2d2421; font: inherit; padding: 10px 12px; }
.processing-review-form textarea { min-height: 96px; resize: vertical; }
.processing-review-form .primary-button { justify-self: start; min-width: 132px; }
.processing-review-form .form-result { color: #80655d; font-size: 13px; }
.processing-review-result strong { color: #a7372f; font-size: 18px; letter-spacing: 0; }
.product-detail-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.product-detail-heading h2 { margin: 0; }
.product-detail-heading p { max-width: 760px; margin: 8px 0 0; color: #715c55; }
.product-attribute-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 18px 0; background: #decac2; }
.product-attribute-grid div { padding: 12px; background: #f9f0eb; }
.product-attribute-grid span, .product-attribute-grid strong { display: block; }
.product-attribute-grid span { color: #80655d; font-size: 12px; }
.product-attribute-grid strong { margin-top: 5px; color: #452721; font-size: 14px; overflow-wrap: anywhere; }
.product-sku-section { margin-top: 20px; border-top: 1px solid #e5d9d3; }
.product-sku-section h3 { margin: 14px 0; color: #542c27; font-size: 16px; }
.processing-store-service-section { margin-top: 20px; border-top: 1px solid #e5d9d3; }
.processing-store-service-section h3 { margin: 14px 0; color: #542c27; font-size: 16px; }
.product-sku-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.65fr) auto; gap: 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid #eee3de; }
.product-sku-row strong, .product-sku-row span { display: block; }
.product-sku-row strong { color: #452721; }
.product-sku-row span { margin-top: 5px; color: #80655d; font-size: 13px; overflow-wrap: anywhere; }
.cart-list { display: grid; gap: 22px; }
.address-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; padding: 15px 0; border-top: 2px solid #bd5b4a; border-bottom: 1px solid #e4d8d2; }
.address-summary h2 { margin: 0 0 4px; color: #452721; font-size: 18px; }
.address-summary p:not(.section-label) { margin: 0; color: #80655d; font-size: 13px; }
.address-summary .quiet-button { flex: none; }
.address-book-dialog { width: min(900px, calc(100% - 32px)); max-height: calc(100dvh - 32px); }
.address-book-body { max-height: calc(100dvh - 76px); overflow-y: auto; }
.address-book-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 16px; border-bottom: 1px solid #e4d8d2; }
.address-book-heading h2 { margin: 0; color: #452721; }
.address-book-heading p:not(.section-label) { margin: 5px 0 0; color: #80655d; font-size: 13px; }
.address-book-list { display: grid; margin: 14px 0 20px; border-top: 1px solid #e4d8d2; }
.address-book-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 15px 0; border-bottom: 1px solid #e4d8d2; }
.address-book-item strong, .address-book-item span { display: block; }
.address-book-item strong { color: #452721; }
.address-book-item p { margin: 5px 0; color: #6d554e; font-size: 13px; overflow-wrap: anywhere; }
.address-book-item span { color: #90766e; font-size: 12px; }
.address-book-actions { display: flex; gap: 12px; }
.address-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; padding: 18px 0 0; border-top: 2px solid #bd5b4a; }
.address-form-heading { grid-column: 1 / -1; padding-bottom: 4px; border-bottom: 1px solid #e4d8d2; }
.address-form-heading h2, .address-form-heading h3 { margin: 0 0 4px; color: #452721; font-size: 19px; }
.address-form-heading p:not(.section-label) { margin: 0; color: #80655d; font-size: 13px; }
.address-form .address-detail { grid-column: span 2; }
.address-form-actions { display: flex; justify-content: end; align-items: end; gap: 10px; }
.location-button { margin-top: 10px; }
.field-hint { display: block; margin-top: 8px; color: #745b53; font-size: 12px; line-height: 1.5; }
.cart-item { padding: 18px 0 0; border-top: 2px solid #a7372f; }
.cart-item-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.cart-item-heading p { margin: 0 0 4px; color: #8b6b62; font-size: 12px; }
.cart-item-heading h2 { margin: 0; overflow-wrap: anywhere; font-size: 16px; }
.cart-item-heading > span { flex: none; color: #80655d; font-size: 13px; }
.cart-lines { display: grid; color: #705952; font-size: 14px; border-top: 1px solid #e7d8d1; }
.cart-line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 18px; min-height: 74px; padding: 12px 0; border-bottom: 1px solid #e7d8d1; }
.cart-line.is-unavailable { background: #fff8f5; }
.cart-line-summary { min-width: 0; }
.cart-line-summary strong, .cart-line-summary span { display: block; }
.cart-line-summary strong { color: #452721; overflow-wrap: anywhere; }
.cart-line-summary span { margin-top: 5px; color: #80655d; font-size: 12px; }
.cart-line.is-unavailable .cart-line-summary span { color: #8e302a; }
.cart-quantity-control { display: grid; grid-template-columns: 36px 64px 36px; align-items: stretch; width: 138px; height: 36px; border: 1px solid #cfbbb2; border-radius: 4px; overflow: hidden; background: #fffdfa; }
.cart-quantity-button { display: grid; place-items: center; width: 36px; padding: 0; border: 0; color: #75342e; background: #fff7f3; font-size: 19px; line-height: 1; }
.cart-quantity-button:hover:not(:disabled) { background: #f7e4dc; }
.cart-quantity-input { width: 64px; min-width: 0; padding: 0 4px; border: 0; border-right: 1px solid #dfcec7; border-left: 1px solid #dfcec7; border-radius: 0; appearance: textfield; text-align: center; }
.cart-quantity-input::-webkit-inner-spin-button, .cart-quantity-input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.cart-quantity-input:focus { position: relative; outline: 2px solid #a7372f; outline-offset: -2px; }
.cart-quantity-button:disabled, .cart-quantity-input:disabled, .cart-remove-button:disabled { cursor: not-allowed; opacity: 0.52; }
.cart-remove-button { min-width: 76px; margin: 0; padding: 8px; color: #9f352e; text-align: center; }
.cart-remove-button:hover:not(:disabled) { text-decoration: underline; }
.cart-locations { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.cart-note { margin: 14px 0 0; color: #745b53; }
.cart-note.is-error { color: #8e302a; }
.primary-button { min-height: 40px; padding: 8px 15px; border-radius: 4px; color: #fff; background: #a7372f; }
.primary-button:hover { background: #862a25; }
.primary-button:disabled { cursor: not-allowed; background: #a0aaa4; }
.empty-state { padding: 34px 0; text-align: center; color: #80655d; border-top: 1px solid #e1d5cf; border-bottom: 1px solid #e1d5cf; }
.empty-state strong { display: block; color: #432b26; font-size: 18px; }
.empty-state p { margin: 5px 0 0; }

.table-wrap { overflow-x: auto; background: #fffdfa; border-top: 2px solid #a7372f; }
table { width: 100%; min-width: 700px; border-collapse: collapse; text-align: left; }
th, td { padding: 14px 12px; border-bottom: 1px solid #e5d9d3; font-size: 14px; }
.orders-subheading { margin-top: 32px; }
.pickup-reader { margin-top: 8px; }
.pickup-code { display: block; margin-top: 8px; color: #a7372f; font-weight: 700; }
.pickup-redemption-form { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; margin-top: 10px; }
.pickup-redemption-form label { width: min(180px, 100%); }
.pickup-redemption-form input { min-width: 0; }
.weighing-form, .raw-evidence-form, .processing-flow-form { display: grid; gap: 10px; margin-top: 12px; padding: 12px; border: 1px solid #e1ccc4; background: #fff8f4; }
.weighing-form > span, .raw-evidence-form > span, .processing-flow-form > span, .weighing-result, .processing-flow-status { margin: 0; color: #765d56; font-size: 13px; }
.weighing-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.raw-evidence-files { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.weighing-form button, .raw-evidence-form button, .processing-flow-form button { justify-self: start; }
th { color: #765b53; font-weight: 700; background: #f7ece7; }
td { color: #3d2b27; }
.order-detail-panel { margin-top: 18px; padding: 20px; border-top: 3px solid #a7372f; background: #fffdfa; }
.order-detail-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.order-detail-heading h2 { margin: 0; }
.order-status-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 18px 0; background: #decac2; }
.order-status-grid div { padding: 12px; background: #f9f0eb; }
.order-status-grid span, .order-status-grid strong { display: block; }
.order-status-grid span { color: #80655d; font-size: 12px; }
.order-status-grid strong { margin-top: 4px; color: #6c2924; font-size: 14px; overflow-wrap: anywhere; }
.order-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; }
.order-summary-grid div { padding: 10px 0; border-bottom: 1px solid #eaded8; }
.order-summary-grid dt { color: #80655d; font-size: 12px; }
.order-summary-grid dd { margin: 4px 0 0; color: #3d2b27; font-size: 14px; overflow-wrap: anywhere; }
.order-detail-section { margin-top: 22px; border-top: 1px solid #e5d9d3; }
.order-detail-section h3 { margin: 14px 0 0; color: #542c27; font-size: 16px; }
.order-detail-section p { margin: 12px 0 0; color: #80655d; font-size: 13px; }
.order-detail-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid #eee3de; color: #6d554e; font-size: 13px; overflow-wrap: anywhere; }
.order-detail-row strong { color: #452721; }
.commerce-customer-services > .inline-heading { align-items: start; }
.commerce-customer-services > .inline-heading p { margin-top: 5px; }
.order-service-history { margin-top: 12px; border-top: 1px solid #e5d9d3; }
.order-service-history > div { display: grid; grid-template-columns: 100px minmax(110px, 0.6fr) minmax(0, 1fr); gap: 12px; align-items: center; padding: 11px 2px; border-bottom: 1px solid #eee3de; }
.order-service-history span { color: #80655d; font-size: 12px; }
.order-service-history strong { color: #542c27; font-size: 13px; }
.order-service-history small { color: #6d554e; font-size: 12px; overflow-wrap: anywhere; }
.commerce-logistics[data-state="error"] { border-top-color: #d8a078; }
.commerce-logistics[data-state="error"] p { color: #8c3f2f; }
.delivery-dispute-section[data-state="error"] { border-top-color: #d8a078; }
.delivery-dispute-section[data-state="error"] p, .workflow-warning { color: #8c3f2f; }
.delivery-dispute-list { display: grid; gap: 14px; margin-top: 12px; }
.delivery-dispute-item { min-width: 0; padding: 14px; border: 1px solid #e3d1ca; background: #fffaf7; }
.delivery-dispute-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.delivery-dispute-heading strong { color: #452721; font-size: 14px; }
.delivery-dispute-heading span { color: #8e302a; font-size: 12px; font-weight: 700; text-align: right; }
.delivery-dispute-item > p { overflow-wrap: anywhere; }
.delivery-dispute-events { display: grid; margin-top: 10px; border-top: 1px solid #eaded8; }
.delivery-dispute-events > div { display: grid; grid-template-columns: 132px minmax(132px, .7fr) minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid #eee3de; }
.delivery-dispute-events span, .delivery-dispute-events small { color: #80655d; font-size: 12px; overflow-wrap: anywhere; }
.delivery-dispute-events strong { color: #542c27; font-size: 12px; }
.delivery-dispute-actions { margin-top: 8px; }
.processing-logistics[data-state="error"] { border-top-color: #d8a078; }
.processing-logistics[data-state="error"] p { color: #8c3f2f; }
.order-lifecycle-primary-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.commerce-order-lifecycle .order-service-panel:first-of-type { margin-top: 12px; border-top: 1px solid #e5d9d3; }
.commerce-order-lifecycle .danger-link { justify-self: start; margin-top: 0; }
.processing-complaints[data-state="error"] { border-top-color: #d8a078; }
.processing-complaints[data-state="error"] p { color: #8c3f2f; }
.order-service-grid { margin-top: 12px; border-top: 1px solid #e5d9d3; }
.order-service-panel { border-bottom: 1px solid #e5d9d3; }
.order-service-panel summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 2px; color: #542c27; cursor: pointer; list-style-position: inside; }
.order-service-panel summary span { font-weight: 700; }
.order-service-panel summary small { color: #80655d; font-size: 12px; font-weight: 400; text-align: right; }
.order-service-panel[data-disabled] summary { color: #8b7771; cursor: default; }
.order-service-panel form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 4px 2px 18px; }
.order-service-panel form label:has(textarea), .order-service-panel form .field-hint, .order-service-panel form .form-result { grid-column: 1 / -1; }
.commerce-after-sales-panel form > p, .commerce-after-sales-panel form > .form-grid { grid-column: 1 / -1; }
.order-service-panel form button { justify-self: start; }
.order-service-panel .form-result { color: #6c2924; font-size: 13px; }

.two-column { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(300px, 1.15fr); gap: 48px; align-items: start; }
.booking-intro { max-width: 560px; margin: 9px 0 0; color: #765a52; font-size: 15px; }
.booking-flow { padding: 18px; border: 1px solid #ead8cf; border-radius: 8px; background: #fffdfa; }
.booking-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; padding: 0; color: #755952; list-style: none; font-size: 14px; }
.booking-steps li { display: flex; align-items: center; gap: 9px; min-height: 54px; padding: 10px 13px; border: 1px solid #ead8cf; border-radius: 6px; background: #f8eee8; }
.booking-steps li > span { display: grid; width: 24px; height: 24px; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #8d3d35; background: #f6dfd5; font-size: 12px; font-weight: 700; }
.booking-steps li > strong { overflow-wrap: anywhere; }
.booking-steps li.is-active { border-color: #a7372f; color: #fff; background: #a7372f; }
.booking-steps li.is-active > span { color: #a7372f; background: #fff; }
.service-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.service-methods button { min-height: 92px; padding: 16px; border: 1px solid #dfcbc4; border-radius: 8px; color: #624842; background: #fffdfa; text-align: left; }
.service-methods button:hover { border-color: #bd5b4a; background: #fff5f0; }
.service-methods button.is-active { border-color: #a7372f; color: #8e302a; background: #fff0ea; box-shadow: inset 0 3px #a7372f; }
.service-methods strong, .service-methods span { display: block; }
.service-methods strong { color: #452721; font-size: 17px; }
.service-methods span { margin-top: 5px; color: #846962; font-size: 13px; }
.booking-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr); gap: 28px; align-items: start; }
.booking-layout .service-list { min-height: 270px; }
.processing-step-panel { display: grid; gap: 16px; min-width: 0; }
.processing-step-panel[hidden] { display: none; }
.processing-location-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 14px; border: 1px solid #eadbd4; border-radius: 8px; background: #fffaf7; }
.processing-location-fields label { display: grid; gap: 5px; min-width: 0; color: #765a52; font-size: 13px; }
.processing-location-fields input, .processing-location-fields select { width: 100%; min-width: 0; min-height: 38px; padding: 7px 9px; border: 1px solid #d8bdb5; border-radius: 3px; color: #452721; background: #fffdfa; }
.processing-store-field { grid-column: 1 / -1; }
.region-cascader { position: relative; z-index: 1; min-width: 0; grid-column: 1 / -1; }
.region-cascader-trigger { display: grid; grid-template-columns: minmax(76px, 0.28fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #c98c80; border-radius: 5px; color: #492a25; background: #fffdfa; text-align: left; }
.region-cascader-trigger:hover:not(:disabled), .region-cascader-trigger[aria-expanded="true"] { border-color: #a7372f; background: #fff4ef; }
.region-cascader-trigger:focus-visible { outline: 2px solid #d26d5a; outline-offset: 2px; }
.region-cascader-trigger > span { color: #765a52; font-size: 13px; }
.region-cascader-trigger strong { overflow: hidden; color: #452721; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.region-cascader-trigger i { color: #a7372f; font-size: 14px; font-style: normal; }
.region-cascader-panel { position: absolute; z-index: 8; top: calc(100% + 6px); left: 0; right: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 12px; border: 1px solid #bf695a; border-radius: 6px; background: #fffdfa; box-shadow: 0 14px 30px rgb(89 42 34 / 18%); }
.region-cascader-panel[hidden] { display: none; }
.region-cascader-panel label { display: grid; min-width: 0; gap: 6px; color: #765a52; font-size: 13px; }
.region-cascader-panel select { box-sizing: border-box; width: 100%; min-width: 0; min-height: 154px; padding: 5px; border: 1px solid #d8bdb5; border-radius: 3px; color: #452721; background: #fffdfa; }
.region-cascader-panel select:focus-visible { outline: 2px solid #d26d5a; outline-offset: 1px; border-color: #a7372f; }
.processing-pickup-address { display: grid; min-width: 0; margin: 0; padding: 14px; border: 1px solid #eadbd4; border-radius: 7px; background: #fffaf7; }
.processing-pickup-address > legend { padding: 0 5px; color: #765a52; font-size: 13px; }
.processing-pickup-address > label { display: grid; gap: 5px; margin-top: 12px; min-width: 0; color: #765a52; font-size: 13px; }
.processing-pickup-address textarea { width: 100%; min-width: 0; box-sizing: border-box; }
.address-form .region-cascader { grid-column: span 3; }
.processing-project-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.processing-slot-list { display: grid; gap: 8px; }
.processing-slot-row { grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.7fr) minmax(0, 1fr) auto; align-items: center; }
.processing-step-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding-top: 4px; }
.processing-step-actions .primary-button { min-width: 180px; }
.booking-form { min-height: 0; }
.booking-form[hidden] { display: none; }
.booking-form [data-processing-address-field][hidden] { display: none; }
.booking-selection { margin: -4px 0 2px; color: #785d55; font-size: 13px; }
.form-panel { display: grid; gap: 16px; padding: 24px; background: #f8ece6; border-radius: 8px; }
.form-panel h2 { margin: 0; }
.service-list, .workbench-grid > section { border-top: 2px solid #c47b6b; padding-top: 16px; }
.inline-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.inline-heading h2 { margin: 0; }
.inline-actions { display: flex; align-items: center; gap: 8px; }
.inline-search { display: flex; align-items: center; gap: 7px; color: #765a52; font-size: 13px; white-space: nowrap; }
.inline-search input { width: min(250px, 28vw); min-height: 34px; padding: 6px 9px; border: 1px solid #d8bdb5; border-radius: 3px; background: #fffdfa; color: #452721; }
.inline-search input:focus { outline: 2px solid #d26d5a; outline-offset: 1px; border-color: #a7372f; }
.processing-catalog-heading { display: block; }
.processing-catalog-filters { display: grid; grid-template-columns: minmax(220px, 1fr) auto; align-items: end; gap: 10px; width: 100%; margin-top: 12px; padding: 12px; border: 1px solid #eadbd4; border-radius: 8px; background: #fffaf7; }
.processing-catalog-filters label { display: grid; gap: 4px; min-width: 0; color: #765a52; font-size: 13px; }
.processing-catalog-filters .inline-search { white-space: normal; }
.processing-catalog-filters input, .processing-catalog-filters select { box-sizing: border-box; width: 100%; min-width: 0; min-height: 36px; padding: 6px 9px; border: 1px solid #d8bdb5; border-radius: 3px; background: #fffdfa; color: #452721; }
.processing-catalog-filters input:focus, .processing-catalog-filters select:focus { outline: 2px solid #d26d5a; outline-offset: 1px; border-color: #a7372f; }
.processing-catalog-filters .quiet-button { min-height: 36px; white-space: nowrap; }
.service-filter-utility { display: flex; align-items: end; gap: 8px; }
.service-filter-more { position: relative; }
.service-filter-more summary { min-height: 36px; display: flex; align-items: center; padding: 7px 10px; border: 1px solid #c7a49a; border-radius: 4px; color: #9f352e; background: #fffdfa; cursor: pointer; list-style: none; white-space: nowrap; }
.service-filter-more summary::-webkit-details-marker { display: none; }
.service-filter-options { display: grid; grid-template-columns: repeat(3, minmax(140px, 1fr)); gap: 10px; width: min(560px, calc(100vw - 72px)); position: absolute; z-index: 2; right: 0; top: calc(100% + 8px); padding: 14px; border: 1px solid #dfcbc4; border-radius: 8px; background: #fffdfa; box-shadow: 0 12px 28px rgb(70 39 33 / 15%); }
.service-filter-options label { display: grid; gap: 4px; }
[data-processing-service-list] .list-row { margin-top: 10px; padding: 15px; border: 1px solid #eadbd4; border-radius: 8px; background: #fffdfa; }
[data-processing-service-list] .list-row:first-child { margin-top: 0; }
.list-row { padding: 13px 0; border-bottom: 1px solid #e4d8d2; }
.list-row strong, .list-row span { display: block; }
.list-row span { color: #7b615a; font-size: 13px; }
.list-row .status { color: #a7372f; font-weight: 700; }
.metric-grid { display: grid; grid-template-columns: repeat(6, minmax(120px, 1fr)); gap: 1px; background: #ddc6be; border-top: 3px solid #a7372f; }
.metric { padding: 18px 14px; background: #fffdfa; }
.metric span { display: block; color: #80665e; font-size: 13px; }
.metric strong { display: block; margin-top: 7px; font-size: 29px; color: #572b27; }
.workbench-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 34px; }
.workbench-toolbar { display: flex; align-items: end; gap: 12px; }
.workbench-scope-select { display: grid; gap: 5px; color: #765a52; font-size: 12px; }
.workbench-scope-select select { min-width: 196px; min-height: 36px; padding: 6px 9px; border: 1px solid #d8bdb5; border-radius: 3px; color: #452721; background: #fffdfa; }
.workbench-scope-select select:focus { outline: 2px solid #d26d5a; outline-offset: 1px; border-color: #a7372f; }
.merchant-type-section { margin-bottom: 30px; }
.merchant-type-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 14px; }
.merchant-type-heading h2 { margin: 0; color: #452721; }
.merchant-type-heading > p { max-width: 48ch; margin: 0; color: #765a52; font-size: 13px; }
.merchant-type-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.merchant-type-grid article { display: grid; grid-template-columns: minmax(144px, 0.7fr) minmax(0, 1.3fr); gap: 18px; padding: 20px; background: #fffdfa; border: 1px solid #eadbd4; border-radius: 8px; }
.merchant-type-grid strong, .merchant-type-grid span { display: block; }
.merchant-type-grid strong { color: #542c27; font-size: 19px; }
.merchant-type-grid span { margin-top: 8px; color: #7a615a; font-size: 13px; line-height: 1.65; }
.merchant-type-grid dl { display: grid; gap: 8px; margin: 0; }
.merchant-type-grid dl div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px; }
.merchant-type-grid dt { color: #8d473a; font-size: 12px; font-weight: 700; }
.merchant-type-grid dd { margin: 0; color: #5f4b45; font-size: 13px; line-height: 1.55; }
.merchant-task-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; max-width: 920px; margin: 0 auto 14px; }
.merchant-task-heading h2 { margin: 0; color: #452721; }
.merchant-task-heading > p { max-width: 46ch; margin: 0; color: #765a52; font-size: 13px; line-height: 1.65; }
.merchant-onboarding-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; align-items: start; }
.merchant-onboarding-grid .form-panel { min-height: 0; padding: 6px 4px 24px; border: 0; border-radius: 0; background: transparent; }
.merchant-onboarding-grid .form-panel[hidden] { display: none; }
.merchant-onboarding-grid .onboarding-wide { grid-column: auto; min-height: 0; }
.merchant-onboarding-launcher { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 920px; margin: 0 auto 26px; }
.merchant-onboarding-launcher button { position: relative; min-height: 124px; display: grid; align-content: center; justify-items: start; gap: 5px; padding: 20px 62px 20px 20px; border: 1px solid #eadbd4; border-radius: 8px; color: #452721; background: #fffdfa; text-align: left; transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease; }
.merchant-onboarding-launcher button::after { content: "›"; position: absolute; top: 50%; right: 20px; display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid #d8bdb5; border-radius: 50%; color: #a7372f; font-size: 24px; line-height: 1; transform: translateY(-50%); }
.merchant-onboarding-launcher button:hover { border-color: #a7372f; background: #fff8f4; box-shadow: 0 9px 24px rgb(95 46 38 / 10%); }
.merchant-onboarding-launcher button:hover::after { color: #fff; border-color: #a7372f; background: #a7372f; }
.merchant-onboarding-launcher span { color: #a7372f; font-size: 12px; font-weight: 700; }
.merchant-onboarding-launcher strong { font-size: 18px; }
.merchant-onboarding-launcher small { color: #765a52; font-size: 13px; }
.merchant-onboarding-dialog { width: min(980px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; overflow: hidden; border: 0; border-radius: 8px; background: #fffdfa; box-shadow: 0 22px 60px rgb(57 31 27 / 34%); }
.merchant-onboarding-dialog::backdrop { background: rgb(46 25 22 / 56%); }
.merchant-onboarding-dialog .dialog-close { padding: 10px 16px 0; background: #fffdfa; }
.merchant-onboarding-dialog .dialog-close button { display: grid; width: 44px; height: 44px; place-items: center; padding: 0; border: 0; border-radius: 50%; color: #8f302a; background: transparent; text-decoration: none; }
.merchant-onboarding-dialog .dialog-close button:hover { background: #fbebe5; }
.merchant-onboarding-dialog .dialog-close button span { font-size: 26px; line-height: 1; }
.merchant-onboarding-dialog-body { max-height: calc(100dvh - 76px); overflow-y: auto; padding: 2px 30px 28px; }
.merchant-onboarding-dialog-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; padding: 4px 0 18px; border-bottom: 1px solid #e5d8d1; }
.merchant-onboarding-dialog-heading h2 { margin: 0; color: #452721; }
.merchant-dialog-context { max-width: 44ch; text-align: right; }
.merchant-dialog-context strong { display: block; color: #a7372f; font-size: 13px; }
.merchant-dialog-context p { margin: 4px 0 0; color: #765a52; font-size: 13px; line-height: 1.55; }
.merchant-onboarding-workspace { display: grid; grid-template-columns: 184px minmax(0, 1fr); gap: 28px; min-height: 430px; padding-top: 22px; }
.merchant-step-nav { display: grid; align-content: start; gap: 6px; padding-right: 20px; border-right: 1px solid #e5d8d1; }
.merchant-step-nav button { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 42px; padding: 8px 10px; border: 0; border-radius: 4px; color: #6d5149; background: transparent; text-align: left; }
.merchant-step-nav button span { color: #a56a5d; font-size: 11px; font-weight: 700; }
.merchant-step-nav button:hover { color: #6b2520; background: #fbefe9; }
.merchant-step-nav button.is-active { color: #fff; background: #a7372f; }
.merchant-step-nav button.is-active span { color: #ffe8df; }
.merchant-step-nav button[aria-current="step"] { font-weight: 700; }
.merchant-onboarding-content { min-width: 0; }
.merchant-step-controls { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding-top: 16px; border-top: 1px solid #e5d8d1; }
.merchant-step-controls span { color: #80675f; font-size: 12px; text-align: center; }
.merchant-step-controls button:disabled { cursor: not-allowed; opacity: 0.45; }
.merchant-onboarding-dialog button[aria-busy="true"] { cursor: wait; }
.inline-form-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.inline-form-fields .region-cascader { grid-column: 1 / -1; }
.merchant-store-list { margin-top: 4px; border-top: 1px solid #e4d8d2; }
.merchant-store-list .list-row { padding: 10px 0; }
.merchant-equipment-list { margin-top: 4px; border-top: 1px solid #e4d8d2; }
.merchant-equipment-list .list-row { padding: 10px 0; }
.merchant-staff-list { margin-top: 4px; border-top: 1px solid #e4d8d2; }
.merchant-staff-list .list-row { padding: 10px 0; }
.health-certificate-fields { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.merchant-application-list { margin-top: 34px; border-top: 2px solid #c47b6b; padding-top: 16px; }
.merchant-application-list .list-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 18px; align-items: start; }
.merchant-application-list .list-row span:last-child { grid-column: 1 / -1; }
.merchant-qualification-list { margin-top: 4px; border-top: 1px solid #e4d8d2; }
.merchant-qualification-list .list-row { padding: 10px 0; }

.account-dialog { width: min(520px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 5px; box-shadow: 0 18px 50px rgb(57 31 27 / 30%); }
.account-dialog::backdrop { background: rgb(46 25 22 / 56%); }
.dialog-close { display: flex; justify-content: end; padding: 10px 12px 0; }
.dialog-close button, .danger-link { color: #a7372f; text-decoration: underline; }
.dialog-body { padding: 4px 28px 28px; }
.privacy-consent-panel { display: grid; gap: 8px; margin: 18px 0; padding: 14px; border: 1px solid #e1c4bb; border-radius: 6px; background: #fff8f4; }
.privacy-consent-panel .section-label, .privacy-consent-panel h3, .privacy-consent-panel p { margin: 0; }
.privacy-consent-panel h3 { color: #4a2924; font-size: 16px; }
.privacy-consent-panel > p:not(.section-label):not(.field-hint) { color: #765a52; font-size: 13px; }
.privacy-consent-choice { display: flex; align-items: start; gap: 8px; color: #563b35; font-size: 13px; }
.privacy-consent-choice input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: #a7372f; }
.privacy-guide-content { max-height: min(72vh, 680px); overflow: auto; }
.privacy-guide-content h3 { margin: 20px 0 6px; color: #4a2924; font-size: 16px; }
.privacy-guide-content p { color: #654d46; }
.dialog-body form:not(.dialog-close) { display: grid; gap: 15px; }
.catalog-draft-dialog { width: min(620px, calc(100% - 32px)); }
.service-capability-dialog { width: min(760px, calc(100% - 32px)); }
.service-capability-list { display: grid; gap: 8px; margin-top: 20px; }
.service-capability-list .list-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; }
.service-capability-list .list-row span { grid-column: 1 / -1; }
.checkbox-label { display: flex; align-items: center; gap: 8px; min-height: 32px; }
.checkbox-label input { width: 16px; height: 16px; }
.field-hint.is-error { color: #a7372f; }
.workbench-after-sales-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 18px 0; border-top: 2px solid #a7372f; background: #e6d5ce; }
.workbench-after-sales-summary div { padding: 11px 12px; background: #fffdfa; }
.workbench-after-sales-summary span { display: block; color: #80655d; font-size: 12px; }
.workbench-after-sales-summary strong { display: block; margin-top: 4px; color: #452721; overflow-wrap: anywhere; }
.workbench-after-sales-reason { margin: 0 0 12px; color: #5f433c; line-height: 1.65; overflow-wrap: anywhere; }
.workbench-after-sales-form { margin-top: 18px; padding-top: 16px; border-top: 1px solid #e4d8d2; }
.login-copy { color: #745c55; font-size: 14px; }
.wechat-login-button { width: 100%; min-height: 46px; border: 0; border-radius: 5px; color: #fff; background: #a7372f; }
.wechat-login-button:hover { background: #862a25; }
.login-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: #836961; font-size: 13px; }
.login-divider::before, .login-divider::after { content: ""; height: 1px; flex: 1; background: #dfd0ca; }
.verification-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.login-result { min-height: 20px; color: #745c55; font-size: 13px; }
.form-actions { display: flex; align-items: center; gap: 12px; color: #745c55; font-size: 13px; }
hr { width: 100%; border: 0; border-top: 1px solid #dfd0ca; margin: 8px 0; }
.danger-link { margin-top: 20px; padding: 0; }
.yl-toast { position: fixed; z-index: 2; right: 24px; bottom: 24px; max-width: min(420px, calc(100% - 48px)); padding: 12px 14px; color: #fff; background: #4a2420; border-radius: 4px; box-shadow: 0 10px 24px rgb(80 39 33 / 24%); }
.yl-toast.is-error { background: #8e302a; }

@media (max-width: 880px) {
  .topbar { padding: 12px 5vw; flex-wrap: wrap; gap: 12px; }
  .global-search { order: 3; width: 100%; min-width: 0; }
  .main-nav { order: 4; width: 100%; flex-basis: 100%; min-height: 36px; }
  .nav-link { padding: 0 11px; }
  .account-button { margin-left: auto; }
  .view-heading, .catalog-toolbar, .workbench-toolbar { align-items: start; flex-direction: column; gap: 14px; }
  .home-intro, .two-column, .booking-layout, .workbench-grid, .merchant-onboarding-grid { grid-template-columns: 1fr; gap: 28px; }
  .processing-location-fields, .processing-project-fields { grid-template-columns: 1fr; }
  .region-cascader-panel { grid-template-columns: 1fr; max-height: min(68dvh, 640px); overflow-y: auto; }
  .region-cascader-panel select { min-height: 118px; }
  .processing-slot-row { grid-template-columns: 1fr; }
  .inline-form-fields { grid-template-columns: 1fr; }
  .processing-catalog-filters { grid-template-columns: minmax(0, 1fr) auto; }
  .processing-catalog-filters .quiet-button { width: max-content; }
  .service-capability-list .list-row { grid-template-columns: 1fr; }
  .health-certificate-fields { grid-template-columns: 1fr; }
    .weighing-fields, .raw-evidence-files { grid-template-columns: 1fr; }
  .market-stage { grid-template-columns: 160px minmax(0, 1fr); }
  .market-feature { grid-column: span 2; grid-template-columns: 220px 1fr; grid-template-rows: 1fr; }
  .processing-evidence-band { grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1fr); }
  .market-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .merchant-type-heading { align-items: start; flex-direction: column; gap: 6px; }
  .merchant-type-grid { grid-template-columns: 1fr; }
  .merchant-task-heading { align-items: start; flex-direction: column; gap: 6px; }
  .merchant-onboarding-launcher { grid-template-columns: 1fr; }
  .merchant-onboarding-workspace { grid-template-columns: 1fr; gap: 20px; min-height: 0; }
  .merchant-step-nav { display: flex; gap: 7px; padding: 0 0 10px; overflow-x: auto; border-right: 0; border-bottom: 1px solid #e5d8d1; }
  .merchant-step-nav button { flex: 0 0 auto; grid-template-columns: 24px auto; min-height: 44px; padding: 7px 10px; }
  .address-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .address-form .region-cascader { grid-column: 1 / -1; }
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .order-status-grid, .order-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 12px 16px; }
  main { width: min(100% - 32px, 1380px); padding-top: 16px; }
  .brand small { display: none; }
  .utility-bar { display: none; }
  .account-button { grid-column: 2; grid-row: 1; margin-left: 0; font-size: 13px; }
  .global-search { grid-column: 1 / -1; grid-row: 2; }
  .main-nav { display: grid; grid-column: 1 / -1; grid-row: 3; grid-template-columns: repeat(2, minmax(0, 1fr)); align-self: auto; width: 100%; min-height: 0; overflow: visible; }
  .nav-link { min-width: 0; padding: 8px 4px; text-align: center; white-space: normal; }
  .nav-link.is-active::after { right: 5px; bottom: 2px; left: 5px; }
  h1 { font-size: 31px; }
  .market-stage { grid-template-columns: 1fr; }
  .category-menu { display: none; }
  .home-intro { min-height: 440px; padding: 26px; background-position: 63% center; }
  .home-intro::before { background: linear-gradient(0deg, rgb(48 20 17 / 92%) 0%, rgb(65 25 21 / 60%) 70%, rgb(63 25 21 / 22%) 100%); }
  .market-feature { grid-column: auto; grid-template-columns: 1fr; grid-template-rows: 190px 1fr; }
  .processing-evidence-band { grid-template-columns: 1fr; }
  .processing-evidence-band img { height: 220px; }
  .processing-evidence-band div { padding: 22px; }
  .market-shortcuts { grid-template-columns: 1fr; }
  .merchant-type-grid article { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .merchant-onboarding-dialog { width: min(100% - 20px, 960px); max-height: calc(100dvh - 20px); }
  .merchant-onboarding-dialog-body { max-height: calc(100dvh - 68px); padding: 4px 18px 22px; }
  .merchant-onboarding-dialog-heading { align-items: start; flex-direction: column; gap: 7px; }
  .merchant-dialog-context { max-width: none; text-align: left; }
  .merchant-onboarding-launcher button { min-height: 108px; }
  .merchant-step-controls { grid-template-columns: 1fr 1fr; }
  .merchant-step-controls span { grid-column: 1 / -1; grid-row: 1; text-align: left; }
  .booking-flow { padding: 14px; }
  .booking-steps { gap: 6px; font-size: 12px; }
  .booking-steps li { min-height: 58px; padding: 8px; }
  .service-methods { grid-template-columns: 1fr; }
  .processing-step-actions { grid-template-columns: 1fr; }
  .processing-step-actions .primary-button { width: 100%; min-width: 0; }
  .inline-heading, .inline-actions { align-items: stretch; flex-direction: column; }
  .processing-catalog-filters { grid-template-columns: 1fr; }
  .processing-catalog-filters .quiet-button { width: 100%; }
  .service-filter-utility { align-items: stretch; flex-direction: column; }
  .service-filter-more summary { justify-content: center; }
  .service-filter-options { grid-template-columns: 1fr; width: 100%; right: auto; left: 0; }
  .inline-search { align-items: stretch; flex-direction: column; gap: 4px; }
  .inline-search input { width: 100%; }
  .product-grid { grid-template-columns: 1fr; }
  .address-summary, .address-book-heading { align-items: stretch; flex-direction: column; }
  .address-summary .quiet-button, .address-book-heading .quiet-button { width: 100%; }
  .address-book-dialog { width: min(100% - 20px, 900px); max-height: calc(100dvh - 20px); }
  .address-book-item { grid-template-columns: 1fr; gap: 10px; }
  .address-book-actions { justify-content: flex-end; }
  .address-form { grid-template-columns: 1fr; }
  .address-form .region-cascader { grid-column: auto; }
  .address-form .address-detail { grid-column: auto; }
  .address-form-actions { justify-content: stretch; }
  .address-form-actions button { flex: 1; }
  .cart-line { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .cart-line-summary { grid-column: 1 / -1; }
  .cart-remove-button { justify-self: end; min-width: 0; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .order-detail-panel { padding: 16px; }
  .order-detail-heading, .product-detail-heading { flex-direction: column; }
  .order-status-grid, .order-summary-grid, .product-attribute-grid { grid-template-columns: 1fr; }
  .order-detail-row { grid-template-columns: 1fr; gap: 4px; }
  .order-service-panel summary { align-items: flex-start; flex-direction: column; gap: 5px; }
  .order-service-panel summary small { text-align: left; }
  .order-service-panel form { grid-template-columns: 1fr; }
  .delivery-dispute-events > div { grid-template-columns: 1fr; gap: 3px; }
  .order-service-panel form label:has(textarea), .order-service-panel form .field-hint, .order-service-panel form .form-result { grid-column: auto; }
  .order-service-history > div { grid-template-columns: 88px minmax(0, 1fr); gap: 5px 10px; }
  .order-service-history small { grid-column: 1 / -1; }
  .product-sku-row { grid-template-columns: 1fr; gap: 8px; }
  .view { padding-top: 29px; }
  .dialog-body { padding: 4px 20px 22px; }
  .workbench-after-sales-summary { grid-template-columns: 1fr; }
  .verification-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .merchant-onboarding-launcher button { transition: none; }
}

.yl-site-footer {
  display: grid;
  justify-items: center;
  margin-top: var(--yl-space-major);
  padding: var(--yl-space-standard) var(--yl-page-inset);
  border-top: var(--yl-border-width) solid var(--yl-divider);
  color: var(--yl-secondary-text);
  background: var(--yl-reading-surface);
  font-size: var(--yl-role-label-font-size);
  font-weight: var(--yl-role-label-font-weight);
  line-height: var(--yl-role-label-line-height);
  text-align: center;
}

.yl-site-footer a {
  color: inherit;
  text-decoration-color: var(--yl-strong-divider);
  text-decoration-thickness: var(--yl-border-width);
  text-underline-offset: var(--yl-space-micro);
}

.yl-site-footer a:hover { color: var(--yl-commerce-action); }
.yl-site-footer a:focus-visible { outline: var(--yl-focus-ring-width) solid var(--yl-focus-ring); outline-offset: var(--yl-focus-ring-offset); }
